:root{
  --mc-green:#0f4a38;
  --mc-green-dark:#083c2f;
  --mc-gold:#d6ad4b;
  --mc-cream:#faf6ee;
  --mc-card:#fffdf8;
  --mc-ink:#14231d;
  --mc-muted:#66756f;
  --mc-line:#e8d9b8;
  --mc-soft:#f7efe0;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:radial-gradient(circle at 12% 0,rgba(214,173,75,.18),transparent 32%),var(--mc-cream);
  color:var(--mc-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.45;
}
a{text-decoration:none;color:inherit}
.mc-topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  background:rgba(255,253,248,.94);
  border-bottom:1px solid rgba(232,217,184,.9);
  backdrop-filter:blur(16px);
}
.mc-brand{display:flex;align-items:center;gap:10px;min-width:0}
.mc-logo{
  width:42px;
  height:42px;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 20px rgba(8,60,47,.12);
  flex:0 0 auto;
}
.mc-logo img{width:100%;height:100%;object-fit:cover}
.mc-brand h1{margin:0;font-size:17px;font-weight:950;color:var(--mc-green-dark)}
.mc-brand p{margin:1px 0 0;font-size:12px;font-weight:800;color:var(--mc-muted)}
.mc-lang{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:38px;
  border:1px solid var(--mc-line);
  border-radius:13px;
  background:#fff;
  font-weight:950;
  color:var(--mc-green-dark);
}
.mission-control-page{
  width:100%;
  max-width:1060px;
  margin:0 auto;
  padding:16px 12px 76px;
}
.mc-hero{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  border-radius:20px;
  padding:18px;
  background:linear-gradient(135deg,var(--mc-green-dark),var(--mc-green));
  color:#fffdf8;
  box-shadow:0 18px 44px rgba(8,60,47,.18);
}
.mc-eyebrow{
  display:inline-flex;
  margin-bottom:6px;
  color:#f7dc7e;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-hero h1{
  margin:0;
  font-size:clamp(27px,8vw,54px);
  line-height:1.06;
  font-family:Georgia,"Times New Roman",serif;
}
.mc-hero p{
  margin:8px 0 0;
  max-width:680px;
  color:rgba(255,253,248,.82);
  font-size:15px;
}
.score-card{
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.score-card span,.score-card small{display:block;color:rgba(255,253,248,.74);font-weight:850}
.score-card strong{display:block;font-size:34px;line-height:1;margin:4px 0;color:#fff}
.daily-score-panel{
  margin:14px 0 0;
  border:1px solid var(--mc-line);
  border-radius:20px;
  background:#fff;
  padding:14px;
  box-shadow:0 10px 28px rgba(8,60,47,.07);
}
.score-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.score-summary div{
  border:1px solid #edf0ea;
  border-radius:15px;
  background:#fffaf0;
  padding:12px;
}
.score-summary strong{display:block;font-size:24px;line-height:1;color:var(--mc-green-dark)}
.score-summary span{display:block;margin-top:5px;color:#66756f;font-size:12px;font-weight:850}
.progress-track{
  height:12px;
  margin:14px 0 10px;
  border-radius:999px;
  background:#edf4ef;
  overflow:hidden;
}
.progress-track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--mc-gold),var(--mc-green));
}
.daily-score-panel p{
  margin:0;
  color:#475569;
  font-size:14px;
  font-weight:780;
}
.quick-links-section{margin-top:14px}
.quick-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.quick-links a{
  min-height:42px;
  border:1px solid var(--mc-line);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 10px;
  background:#fff;
  color:var(--mc-green-dark);
  font-size:13px;
  font-weight:950;
}
.action-section{margin-top:16px}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.section-head h2{
  margin:0;
  font-size:18px;
  color:var(--mc-green-dark);
}
.section-head p{
  margin:4px 0 0;
  color:var(--mc-muted);
  font-size:13px;
  font-weight:760;
}
.section-head-stacked{
  align-items:flex-start;
}
.section-head button{
  min-height:34px;
  border:1px solid var(--mc-line);
  border-radius:999px;
  padding:7px 11px;
  background:#fff;
  color:var(--mc-green-dark);
  font-weight:900;
}
.action-list{display:grid;grid-template-columns:1fr;gap:12px}
.action-card{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:10px;
  border:1px solid var(--mc-line);
  border-left-width:5px;
  border-radius:16px;
  padding:12px;
  background:var(--mc-card);
  box-shadow:0 10px 28px rgba(8,60,47,.07);
}
.action-card.is-featured{
  min-height:0;
  padding:15px;
  box-shadow:0 14px 34px rgba(8,60,47,.1);
}
.action-card.is-compact{
  min-height:0;
  box-shadow:0 8px 22px rgba(8,60,47,.05);
}
.action-card.is-high{border-left-color:#dc2626}
.action-card.is-medium{border-left-color:var(--mc-gold)}
.action-card.is-low{border-left-color:#0ea5e9}
.action-card.is-done{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.action-card.is-skipped{opacity:.72;background:#f8fafc}
.action-card.is-crm-recommendation{
  border-left-color:var(--mc-green);
  background:linear-gradient(180deg,#fffdf8,#f5fbf7);
}
.action-rank{
  width:32px;
  height:32px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--mc-soft);
  color:var(--mc-green-dark);
  font-weight:950;
}
.action-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  margin-bottom:8px;
}
.action-meta span,.action-meta b,.action-meta em,.source-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  border-radius:999px;
  padding:3px 8px;
  font-size:11px;
  font-style:normal;
  font-weight:900;
  background:#fff7df;
  color:#765515;
}
.action-meta b{background:#ecfdf3;color:#166534}
.action-meta em{background:#f1f5f9;color:#475569}
.source-badge{background:#eef2ff;color:#31468f}
.crm-contact-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 9px;
}
.crm-contact-meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  border:1px solid rgba(15,74,56,.12);
  border-radius:12px;
  padding:4px 9px;
  background:#fff;
  color:var(--mc-green-dark);
  font-size:12px;
  font-weight:850;
}
.crm-contact-meta strong{
  color:var(--mc-muted);
  font-size:11px;
  text-transform:uppercase;
}
.action-body h3{
  margin:0 0 5px;
  font-size:17px;
  line-height:1.2;
  color:var(--mc-green-dark);
}
.action-card.is-featured .action-body h3{font-size:21px}
.action-card.is-compact .action-body h3{font-size:16px}
.action-body p{
  margin:0;
  color:#475569;
  font-size:14px;
}
.action-card.is-featured .action-body p{font-size:15px}
.suggested-message{
  display:grid;
  gap:6px;
  margin-top:11px;
  border:1px solid rgba(214,173,75,.45);
  border-radius:12px;
  padding:11px;
  background:#fffaf0;
}
.suggested-message strong{font-size:12px;color:#7c5b17}
.suggested-message span{font-size:13px;line-height:1.45;color:#334155}
.action-warning{
  margin-top:10px;
  border:1px solid rgba(214,173,75,.5);
  border-radius:12px;
  padding:10px;
  background:#fff4e6;
  color:#8a4b00;
  font-size:13px;
  font-weight:800;
}
.action-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.action-buttons button,.action-buttons a{
  min-height:44px;
  border:none;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 10px;
  background:linear-gradient(135deg,var(--mc-green-dark),var(--mc-green));
  color:#fff;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
}
.action-buttons .ghost{
  border:1px solid var(--mc-line);
  background:#fff;
  color:var(--mc-green-dark);
}
.action-buttons a{
  grid-column:1 / -1;
  border:1px solid var(--mc-line);
  background:#fff8df;
  color:#6f4d0d;
}
.customer-care-section .section-head{
  align-items:flex-start;
}
.customer-care-section{
  border:1px solid rgba(15,74,56,.14);
  border-radius:20px;
  padding:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(244,250,246,.76));
}
.customer-care-info{
  margin:0 0 14px;
  border:1px solid rgba(15,74,56,.14);
  border-radius:14px;
  padding:11px 12px;
  background:#eef8f1;
  color:var(--mc-green-dark);
  font-size:13px;
  line-height:1.45;
  font-weight:820;
}
.customer-care-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.customer-care-card{
  display:grid;
  gap:12px;
  border:1px solid var(--mc-line);
  border-left:5px solid var(--mc-green);
  border-radius:16px;
  padding:13px;
  background:linear-gradient(180deg,#fffdf8,#f6fbf8);
  box-shadow:0 10px 28px rgba(8,60,47,.07);
  overflow:hidden;
  min-width:0;
}
.customer-care-card.is-high{border-left-color:#dc2626}
.customer-care-card.is-medium{border-left-color:var(--mc-gold)}
.customer-care-card.is-low{border-left-color:#0ea5e9}
.customer-care-card-head,
.customer-care-footer{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.customer-care-card h3{
  margin:0;
  color:var(--mc-green-dark);
  font-size:17px;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.customer-care-card-head p{
  margin:3px 0 0;
  color:var(--mc-muted);
  font-size:13px;
  line-height:1.35;
  font-weight:780;
  overflow-wrap:anywhere;
}
.customer-care-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}
.customer-care-badges span,
.customer-care-footer span{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:26px;
  border-radius:999px;
  padding:4px 9px;
  background:#fff7df;
  color:#765515;
  font-size:11px;
  font-weight:950;
  overflow-wrap:anywhere;
}
.customer-care-footer span.is-safe{background:#ecfdf3;color:#166534}
.customer-care-footer span.is-warning{background:#fff7ed;color:#9a3412}
.customer-care-block{
  border:1px solid rgba(15,74,56,.1);
  border-radius:14px;
  padding:11px;
  background:#fff;
  min-width:0;
}
.customer-care-block h4{
  margin:0 0 5px;
  color:var(--mc-green-dark);
  font-size:14px;
  line-height:1.25;
}
.customer-care-block p{
  margin:0;
  color:var(--mc-muted);
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.customer-care-block ul{
  margin:0;
  padding-left:18px;
  color:var(--mc-muted);
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.customer-care-block li + li{
  margin-top:4px;
}
.customer-care-recipe-block{
  background:#fbfdf8;
}
.customer-care-recipe-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.customer-care-recipe-head h4{
  margin:0;
}
.customer-care-recipe-head span,
.customer-care-recipe-block > span{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:24px;
  border-radius:999px;
  padding:3px 8px;
  background:#fff7df;
  color:#765515;
  font-size:10px;
  font-weight:950;
  overflow-wrap:anywhere;
}
.customer-care-recipe-block > span.is-safe{background:#ecfdf3;color:#166534}
.customer-care-recipe-block > span.is-warning{background:#fff7ed;color:#9a3412}
.customer-care-recipe-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:8px 0;
}
.customer-care-recipe-grid strong,
.customer-care-recipe-block p strong{
  color:var(--mc-green-dark);
  font-weight:950;
}
.customer-care-recipe-grid ul,
.customer-care-recipe-grid ol{
  margin:4px 0 0;
  padding-left:17px;
  color:var(--mc-muted);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.customer-care-footer button{
  min-height:42px;
  border:0;
  border-radius:999px;
  padding:9px 14px;
  background:var(--mc-green);
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.mc-copy-toast{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:80;
  transform:translate(-50%,10px);
  opacity:0;
  border-radius:999px;
  padding:10px 14px;
  background:var(--mc-green-dark);
  color:#fff;
  font-size:13px;
  font-weight:950;
  box-shadow:0 18px 34px rgba(8,60,47,.2);
  transition:opacity .18s ease,transform .18s ease;
}
.mc-copy-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}
.empty-state{
  border:1px dashed var(--mc-line);
  border-radius:18px;
  padding:18px;
  background:#fff;
  color:var(--mc-muted);
  font-weight:800;
}
.crm-recommendations-section{
  border:1px solid rgba(15,74,56,.14);
  border-radius:20px;
  padding:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(243,250,246,.72));
}
.crm-debug-panel{
  margin-top:12px;
  border:1px solid rgba(15,74,56,.14);
  border-radius:18px;
  background:#fffdf8;
  box-shadow:0 8px 22px rgba(8,60,47,.05);
  overflow:hidden;
}
.crm-debug-panel summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  color:var(--mc-green-dark);
  font-weight:950;
  list-style:none;
}
.crm-debug-panel summary::-webkit-details-marker{display:none}
.crm-debug-panel summary b{
  border:1px solid var(--mc-line);
  border-radius:999px;
  padding:6px 10px;
  background:#fff;
  color:#6f4d0d;
  font-size:12px;
}
.crm-debug-body{
  display:grid;
  gap:12px;
  border-top:1px solid rgba(232,217,184,.8);
  padding:14px;
}
.crm-debug-source,.crm-debug-note{
  margin:0;
  color:#475569;
  font-size:13px;
  font-weight:800;
}
.crm-debug-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.crm-debug-grid span{
  min-height:58px;
  border:1px solid #edf0ea;
  border-radius:14px;
  padding:10px;
  background:#fffaf0;
  color:#66756f;
  font-size:12px;
  font-weight:850;
}
.crm-debug-grid strong{
  display:block;
  color:var(--mc-green-dark);
  font-size:22px;
  line-height:1;
  margin-bottom:5px;
}
.crm-debug-columns{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.crm-debug-columns div{
  border:1px solid #edf0ea;
  border-radius:14px;
  padding:10px;
  background:#fff;
}
.crm-debug-columns h3{
  margin:0 0 8px;
  color:var(--mc-green-dark);
  font-size:14px;
}
.crm-debug-columns p{
  margin:4px 0;
  color:#475569;
  font-size:13px;
  font-weight:800;
}
@media (min-width:760px){
  .mission-control-page{padding:28px 20px 90px}
  .mc-hero{grid-template-columns:minmax(0,1fr) 190px;align-items:end;padding:26px}
  .quick-links{grid-template-columns:repeat(5,minmax(0,1fr))}
  .action-list.top-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .action-list.crm-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-care-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-list.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-debug-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .crm-debug-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-card{grid-template-columns:38px minmax(0,1fr)}
  .action-card.is-featured{min-height:230px}
  .score-card strong{font-size:40px}
}
@media (max-width:520px){
  .score-summary{grid-template-columns:1fr}
  .quick-links{grid-template-columns:1fr}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head button{width:100%}
  .action-card{grid-template-columns:1fr}
  .customer-care-section{padding:12px}
  .customer-care-card-head,
  .customer-care-footer{flex-direction:column}
  .customer-care-badges{justify-content:flex-start}
  .customer-care-recipe-grid{grid-template-columns:1fr}
  .customer-care-footer button{width:100%}
  .customer-care-card{padding:12px}
  .customer-care-block{padding:10px}
  .action-rank{width:30px;height:30px}
  .action-buttons{grid-template-columns:1fr}
  .action-buttons a{grid-column:auto}
  .mc-topbar{padding:10px 12px}
  .mc-logo{width:38px;height:38px}
  .mc-brand h1{font-size:15px}
  .mc-brand p{font-size:11px}
}
