/* Continuum Control Center v2 device-review polish
   Screenshot-driven refinement for mobile hierarchy, density and simulation sheet behavior.
   Loaded after control-center-v1.css. */

@media(max-width:880px){
  body{font-size:15px}
  .cc-topbar{min-height:60px;padding:8px 12px;background:color-mix(in srgb,var(--bg) 94%,transparent)}
  .cc-heading h1{font-size:19px}
  .cc-wrap{padding:12px 10px 94px}

  .cc-status-strip{
    padding:14px;
    gap:12px;
    border-radius:18px;
    box-shadow:0 9px 28px rgba(24,45,67,.06);
    background:linear-gradient(145deg,color-mix(in srgb,var(--blue-soft) 58%,var(--bg-raised)),var(--bg-raised) 64%);
  }
  html[data-theme="dark"] .cc-status-strip{box-shadow:0 16px 38px rgba(0,0,0,.24)}
  .cc-status-strip::after{width:220px;height:220px;right:-132px;top:-134px}
  .cc-now{gap:12px;align-items:center}
  .cc-orbit{width:48px;height:48px;box-shadow:0 0 0 5px color-mix(in srgb,var(--blue) 5%,transparent)}
  .cc-orbit::before{inset:7px}
  .cc-orbit::after{width:9px;height:9px}
  .cc-now-label{font-size:9px}
  .cc-now h2{margin:3px 0 4px;font-size:22px;line-height:1.08;letter-spacing:-.045em}
  .cc-now p{max-width:620px;font-size:11.5px;line-height:1.45}
  .cc-now-meta{gap:6px;margin-top:9px}
  .cc-chip{min-height:24px;padding:0 8px;font-size:9px}

  .cc-controls{grid-template-columns:minmax(0,1fr) 116px;gap:8px;max-width:none}
  .cc-autonomy{min-height:48px;padding:8px 10px;border-radius:13px}
  .cc-autonomy-icon{width:32px;height:32px;border-radius:9px}
  .cc-autonomy-copy small{font-size:8px}
  .cc-autonomy-copy strong{font-size:10.5px}
  .cc-toggle{font-size:9px}
  .cc-sim-button{min-width:0;min-height:48px;border-radius:13px;padding:0 10px;font-size:11px}

  .cc-view-tabs{
    position:sticky;
    top:60px;
    z-index:12;
    margin:10px -10px 10px;
    padding:0 10px;
    background:color-mix(in srgb,var(--bg) 94%,transparent);
    backdrop-filter:blur(18px);
  }
  .cc-view-tab{padding:10px 10px 11px;font-size:11px}
  .cc-view-count{font-size:9px}

  .cc-dashboard{gap:12px}
  .cc-dashboard>.cc-stack:first-child{
    gap:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--bg-raised);
    box-shadow:var(--shadow-soft);
  }
  .cc-dashboard>.cc-stack:first-child>.cc-panel{
    border:0;
    border-radius:0;
    box-shadow:none;
    border-bottom:1px solid var(--line);
  }
  .cc-dashboard>.cc-stack:first-child>.cc-panel:last-child{border-bottom:0}
  .cc-dashboard>.cc-stack:last-child{gap:10px}

  .cc-panel-head{padding:13px 14px 10px}
  .cc-panel-kicker{font-size:9px}
  .cc-panel-head h3{font-size:15px}
  .cc-panel-link{font-size:10px}

  .cc-attention-row{padding:13px 14px}
  .cc-row-title{font-size:12px;line-height:1.35}
  .cc-row-title small{font-size:7.5px;padding:3px 6px}
  .cc-row-desc{font-size:10px;line-height:1.4}

  .cc-work-list{padding:5px}
  .cc-work-row{padding:9px 8px}
  .cc-work-copy strong{font-size:12px}
  .cc-work-copy span{font-size:10px;line-height:1.35}
  .cc-state{font-size:8px}

  .cc-activity{padding:4px 5px 6px}
  .cc-event{padding:9px}
  .cc-event-copy strong{font-size:11px}
  .cc-event-copy span{font-size:9.5px;line-height:1.4}

  .cc-continuity{padding:14px}
  .cc-mini-orbit{width:48px;height:48px}
  .cc-continuity-copy small{font-size:8.5px}
  .cc-continuity-copy strong{font-size:19px}
  .cc-continuity-copy p{font-size:9.5px}
  .cc-health-grid{gap:6px;margin-top:12px}
  .cc-health-cell{padding:9px}
  .cc-health-cell small{font-size:8px}
  .cc-health-cell strong{font-size:10.5px}
  .cc-continuity-note{margin-top:9px;font-size:8.5px}

  .cc-upcoming{padding-bottom:10px}
  .cc-time-content strong{font-size:10.5px}
  .cc-time-content span{font-size:9px}
  .cc-health-copy strong{font-size:10.5px}
  .cc-health-copy span,.cc-health-meta{font-size:9px}

  .cc-mobile-nav{left:8px;right:8px;padding:5px;border-radius:17px}
  .cc-mobile-link{height:50px;font-size:8px}
  .cc-mobile-link svg{width:18px;height:18px}
}

@media(max-width:580px){
  .cc-topbar{gap:7px}
  .cc-heading h1{font-size:18px}
  .cc-command{width:40px;flex-basis:40px;height:40px}
  .cc-icon-button{width:40px;height:40px}

  .cc-status-strip{padding:12px}
  .cc-now{align-items:center}
  .cc-orbit{width:44px;height:44px}
  .cc-now h2{font-size:20px;margin-top:2px}
  .cc-now p{display:none}
  .cc-now-meta{margin-top:8px}
  .cc-chip{min-height:23px;font-size:8.5px}
  .cc-controls{grid-template-columns:minmax(0,1fr) 104px}
  .cc-sim-button{font-size:10.5px}

  .cc-panel-head{padding:12px 13px 9px}
  .cc-panel-head h3{font-size:14.5px}
  .cc-attention-row{padding:12px 13px}
  .cc-row-title{font-size:11.5px;gap:6px;flex-wrap:wrap}
  .cc-row-desc{font-size:9.75px}
  .cc-work-copy strong{font-size:11.5px}
  .cc-work-copy span{font-size:9.75px}
  .cc-event-copy strong{font-size:10.5px}
  .cc-event-copy span{font-size:9.25px}

  .cc-drawer{
    top:auto;
    bottom:0;
    height:auto;
    max-height:min(86dvh,760px);
    width:100%;
    border-left:0;
    border-top:1px solid var(--line);
    border-radius:20px 20px 0 0;
    transform:translateY(100%);
  }
  .cc-drawer[data-open="true"]{transform:translateY(0)}
  .cc-drawer-head{padding:14px 16px 12px}
  .cc-drawer-title small{font-size:8.5px}
  .cc-drawer-title strong{font-size:15px;line-height:1.2}
  .cc-drawer-body{padding:14px 16px 16px;overflow:auto}
  .cc-drawer-intro{margin:0 0 12px;font-size:10.5px;line-height:1.5}
  .cc-scenario-grid{gap:7px}
  .cc-scenario{padding:10px 11px;border-radius:12px}
  .cc-scenario strong{font-size:11px}
  .cc-scenario span{margin-top:3px;font-size:9.5px}
  .cc-run-sim{min-height:44px;margin-top:10px;font-size:11px}
  .cc-sim-result{margin-top:10px;padding:11px;border-radius:12px}
  .cc-sim-result small{font-size:8px}
  .cc-sim-result strong{font-size:11.5px}
  .cc-sim-result p{font-size:9.5px;line-height:1.45}
}

@media(max-width:380px){
  .cc-wrap{padding-left:8px;padding-right:8px}
  .cc-view-tabs{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
  .cc-controls{grid-template-columns:minmax(0,1fr) 98px}
  .cc-autonomy-copy strong{font-size:10px}
  .cc-now-meta .cc-chip:nth-child(3){display:none}
}

/* Flagship refinement pass: desktop hierarchy + operational command surface. */
@media(min-width:1181px){
  .cc-wrap{padding-top:28px}
  .cc-status-strip{
    min-height:188px;
    grid-template-columns:minmax(0,1.55fr) minmax(420px,.8fr);
    padding:26px 28px;
    border-radius:24px;
    box-shadow:0 24px 70px rgba(24,45,67,.085);
    background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 26%,var(--bg-raised)),var(--bg-raised) 44%,var(--bg-raised));
  }
  html[data-theme="dark"] .cc-status-strip{box-shadow:0 28px 80px rgba(0,0,0,.34)}
  .cc-now{gap:22px}
  .cc-orbit{width:84px;height:84px}
  .cc-now h2{font-size:40px;max-width:760px}
  .cc-now p{font-size:13.5px;max-width:760px}
  .cc-controls{align-self:stretch;grid-template-columns:1fr;align-content:center;gap:10px}
  .cc-autonomy,.cc-sim-button{min-height:58px}
  .cc-sim-button{justify-content:flex-start;padding-left:18px}
  .cc-view-tabs{margin-top:24px}
  .cc-dashboard{grid-template-columns:minmax(0,1.55fr) minmax(340px,.68fr);gap:18px}
  .cc-dashboard>.cc-stack:first-child{gap:0;border:1px solid var(--line);border-radius:20px;background:var(--bg-raised);box-shadow:var(--shadow-soft);overflow:hidden}
  .cc-dashboard>.cc-stack:first-child>.cc-panel{border:0;border-radius:0;box-shadow:none;border-bottom:1px solid var(--line)}
  .cc-dashboard>.cc-stack:first-child>.cc-panel:last-child{border-bottom:0}
  .cc-dashboard>.cc-stack:last-child{gap:14px}
  .cc-attention-row{position:relative;padding-left:21px}
  .cc-attention-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:transparent}
  .cc-attention-row:first-child::before{background:color-mix(in srgb,var(--red) 72%,transparent)}
  .cc-attention-row:nth-child(2)::before{background:color-mix(in srgb,var(--amber) 72%,transparent)}
  .cc-panel-head{padding-top:18px;padding-bottom:14px}
  .cc-panel-head h3{font-size:17px}
  .cc-continuity,.cc-upcoming,.cc-health-list{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-soft) 24%,transparent),transparent 48%)}
}

.cc-command-overlay{position:fixed;inset:0;z-index:80;background:rgba(3,8,12,.4);backdrop-filter:blur(6px);display:grid;place-items:start center;padding:clamp(82px,12vh,140px) 18px 24px;opacity:0;pointer-events:none;transition:opacity .16s ease}
.cc-command-overlay[data-open="true"]{opacity:1;pointer-events:auto}
.cc-command-palette{width:min(620px,100%);border:1px solid var(--line-strong);border-radius:18px;background:var(--bg-raised);box-shadow:0 34px 100px rgba(0,0,0,.24);overflow:hidden;transform:translateY(-8px) scale(.99);transition:transform .18s ease}
.cc-command-overlay[data-open="true"] .cc-command-palette{transform:translateY(0) scale(1)}
.cc-command-input-wrap{display:flex;align-items:center;gap:10px;padding:14px 15px;border-bottom:1px solid var(--line)}
.cc-command-input-wrap svg{width:18px;height:18px;color:var(--ink-3);flex:0 0 auto}
.cc-command-input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px;font-weight:650}
.cc-command-input::placeholder{color:var(--ink-3)}
.cc-command-results{max-height:min(56dvh,460px);overflow:auto;padding:8px}
.cc-command-group{padding:7px 8px 5px;color:var(--ink-3);font-size:8px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.cc-command-item{width:100%;border:0;background:transparent;color:inherit;border-radius:11px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;text-align:left;cursor:pointer}
.cc-command-item:hover,.cc-command-item:focus-visible,.cc-command-item[data-active="true"]{background:var(--blue-soft);outline:0}
.cc-command-item-icon{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:var(--bg-soft);display:grid;place-items:center;color:var(--blue)}
.cc-command-item-icon svg{width:15px;height:15px}
.cc-command-item strong{display:block;font-size:11px}
.cc-command-item span{display:block;margin-top:2px;color:var(--ink-3);font-size:9px}
.cc-command-key{color:var(--ink-3);font:700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.cc-command-empty{padding:22px;text-align:center;color:var(--ink-3);font-size:11px}
.cc-command-footer{display:flex;align-items:center;gap:12px;padding:9px 14px;border-top:1px solid var(--line);color:var(--ink-3);font-size:8px}
.cc-command-footer kbd{border:1px solid var(--line);background:var(--bg-soft);border-radius:5px;padding:2px 5px;font:700 8px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}

@media(max-width:580px){
  .cc-command-overlay{place-items:end center;padding:0}
  .cc-command-palette{width:100%;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0;max-height:82dvh}
  .cc-command-results{max-height:58dvh}
  .cc-command-input{font-size:16px}
}
