/*
 * FLASH7 application styles.
 * Extracted from flash7.html to keep the document shell readable.
 */

/* style block 1: main */
    *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
    html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
    :root{
      --bg:#f3f4f6;--bg-soft:#e5e7eb;
      --card-bg:rgba(255,255,255,0.96);
      --card-glass-border-outer:rgba(255,255,255,0.95);
      --card-glass-border-inner:rgba(148,163,184,0.88);
      --card-shadow:0 10px 24px rgba(15,23,42,0.10);
      --text-main:#0f172a;--text-soft:#6b7280;--text-mono:#374151;
      --accent:#2563eb;--accent-soft:rgba(37,99,235,0.10);--accent-strong:#1d4ed8;
      --ok:#16a34a;--ok-soft:rgba(22,163,74,0.12);
      --danger:#ef4444;--danger-soft:rgba(248,113,113,0.12);
      --warn:#f59e0b;--warn-soft:rgba(245,158,11,0.16);
      --border-subtle:rgba(148,163,184,0.42);--border-strong:rgba(148,163,184,0.82);
      --radius-xl:10px;--radius-lg:8px;--radius-md:6px;--radius-pill:999px;
      --page-pad-x:48px;--page-pad-y:24px;--page-pad-bottom:56px;
      --shell-gap:14px;--card-pad:16px;
      --chart-height:590px;
      --log-height:clamp(180px,24vh,260px);
      --mobile-nav-height:72px;
      --mobile-nav-gap:12px;
    }
    body{
      font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
      background:
        radial-gradient(circle at top left,#e0edff 0,transparent 55%),
        radial-gradient(circle at top right,#fde2ff 0,transparent 55%),
        linear-gradient(180deg,#f9fafb,#eef2ff);
      min-height:100dvh;display:flex;justify-content:flex-start;align-items:flex-start;
      padding:0;margin:0;color:var(--text-main);
    }
    body::before{
      content:"";
      position:fixed;
      top:0;left:0;right:0;
      height:56px;
      background:linear-gradient(180deg,rgba(15,23,42,0.22) 0,rgba(15,23,42,0.12) 45%,rgba(15,23,42,0) 100%);
      pointer-events:none;
      z-index:1;
    }
    .app-shell{
      width:100%;
      display:flex;gap:28px;align-items:flex-start;
      padding:0;
      height:auto;
      min-height:100dvh;
      padding-bottom:env(safe-area-inset-bottom, 0px);
    }
    .side-nav{
      display:flex;
    }
    .side-nav-mobile{
      display:none;
    }
    .mobile-sequence-nav-float,
    .mobile-sequence-nav-timer{
      display:none;
    }
    .side-nav-logo{
      width:42px;height:42px;border-radius:0;background:transparent;
      border:none;box-shadow:none;display:flex;align-items:center;justify-content:center;
    }
    .side-nav-logo img{width:34px;height:34px;display:block}
    .side-nav-menu{
      width:100%;display:flex;flex-direction:column;gap:10px;align-items:center;
    }
    .side-nav-item{
      width:38px;height:38px;border-radius:12px;border:1px solid transparent;
      background:transparent;color:#6b7280;font-size:0;
      display:grid;place-items:center;cursor:pointer;
    }
    .side-nav-divider{
      width:100%;height:1px;background:var(--ui-line);margin:6px 0;
    }
    .side-nav-action{
      width:38px;height:38px;border-radius:12px;border:1px solid transparent;
      background:transparent;color:#6b7280;font-size:0;
      display:grid;place-items:center;cursor:pointer;
    }
    .side-nav-item::before{content:none}
    .side-nav-item svg{
      width:20px;height:20px;min-width:20px;min-height:20px;
      flex:0 0 20px;
      stroke:currentColor;fill:none;stroke-width:1.8;
      transform:scale(1);
      stroke-linecap:round;stroke-linejoin:round;
    }
    .side-nav-action svg{
      width:20px;height:20px;min-width:20px;min-height:20px;
      flex:0 0 20px;
      stroke:currentColor;fill:none;stroke-width:1.8;
      transform:scale(1);
      stroke-linecap:round;stroke-linejoin:round;
    }
    .side-nav-item.active{
      border-color:transparent;
      background:transparent;
      color:#3b82f6;
      box-shadow:none;
    }
    .side-nav-item:hover,
    .side-nav-action:hover,
    .side-nav-btn:hover{
      background:#f3f4f6;
      color:#475569;
      box-shadow:none;
      transform:none;
    }
    .side-nav-action.disabled{opacity:.45;pointer-events:none}
    .side-nav-spacer{flex:1}
    .side-nav-btn{
      width:38px;height:38px;border-radius:12px;border:1px solid transparent;
      background:transparent;color:#6b7280;display:grid;place-items:center;cursor:pointer;
    }
    .side-nav-btn svg{
      width:20px;height:20px;min-width:20px;min-height:20px;
      flex:0 0 20px;
      stroke:currentColor;fill:none;stroke-width:1.8;
      transform:scale(1);
      stroke-linecap:round;stroke-linejoin:round;
    }
    .side-nav-btn.is-active,
    .side-nav-action.is-active{
      background:rgba(59,130,246,0.12);
      color:#2563eb;
      border-color:rgba(59,130,246,0.22);
    }
    .mobile-controls-panel{
      display:none;
    }
    .page-kicker{
      font-size:12px;font-weight:600;letter-spacing:.02em;color:#94a3b8;
    }
    .page-title{
      font-size:20px;font-weight:700;letter-spacing:.02em;color:#0f172a;
    }
    /* ✅ LOCKOUT 배경(빨간 그라데이션 깜빡임) */
    .page-wrap{
      width:100%;max-width:1240px;display:flex;flex-direction:column;gap:12px;position:relative;z-index:1;flex:1;

      /* ✅ 스플래시 끝나기 전까지 숨김 */
      opacity:0;
      transform:translateY(14px) scale(0.92);
      filter:blur(16px) saturate(0.9);
      pointer-events:none;
      transition:opacity .36s ease, transform .46s ease, filter .42s ease;
    }
    .page-wrap.ready{
      opacity:1;
      transform:none;
      filter:none;
      animation:pageReveal .58s cubic-bezier(.22,1,.36,1);
      pointer-events:auto;
    }
    .lockout-bg{
      position:fixed;inset:0;z-index:0;pointer-events:none;
      opacity:0;transition:opacity .18s ease;
      background:
        radial-gradient(circle at 20% 20%, rgba(239,68,68,.75), transparent 58%),
        radial-gradient(circle at 80% 15%, rgba(234,88,12,.65), transparent 60%),
        radial-gradient(circle at 50% 55%, rgba(220,38,38,.45), transparent 62%),
        radial-gradient(circle at 50% 95%, rgba(127,29,29,.45), transparent 65%),
        linear-gradient(180deg, rgba(127,29,29,.6), rgba(15,23,42,.2));
    }
    .lockout-bg.active{
      opacity:1;
      animation:lockoutPulse 1.05s ease-in-out infinite;
    }
    @keyframes lockoutPulse{
      0%{transform:scale(1);opacity:.28;filter:saturate(1.15)}
      50%{transform:scale(1.03);opacity:.75;filter:saturate(1.6)}
      100%{transform:scale(1);opacity:.28;filter:saturate(1.15)}
    }
    @keyframes pageReveal{
      0%{transform:translateY(14px) scale(0.92);opacity:0;filter:blur(16px) saturate(0.9);}
      60%{transform:translateY(4px) scale(0.98);opacity:1;filter:blur(4px) saturate(1.02);}
      100%{transform:none;opacity:1;filter:none;}
    }

    /* =========================
       ✅ SPLASH (Intro + Preload)
       ========================= */
    #splash{
      position:fixed; inset:0; z-index:9999;
      background:#ffffff; /* “아무것도 없는 바탕” */
      display:flex; flex-direction:column;
      align-items:center; justify-content:center;
      gap:14px;
      transition:opacity .28s ease, transform .28s ease;
    }
    #splash.hide{
      opacity:0;
      pointer-events:none;
      transform:scale(1.01);
    }
    .splash-logo{
      width:min(80px, 17vw);
      height:auto;
      display:block;
      filter:drop-shadow(0 10px 22px rgba(15,23,42,0.12));
      transition:opacity .45s ease, transform .45s ease;
      will-change:opacity, transform;
    }
    .splash-logo--flash{
      position:static;
      opacity:1;
      transform:none;
    }
    #splashLoading{
      font-size:12px;
      color:#64748b;
      letter-spacing:.14em;
      text-transform:uppercase;
      opacity:1;
      transform:translateY(4px);
      transition:opacity .24s ease, transform .24s ease;
      user-select:none;
    }
    #splashLoading.show{
      opacity:1;
      transform:translateY(0);
    }
    #splashDots{
      display:inline-block;
      width:18px;
      text-align:left;
    }
    @media(max-width:900px) and (pointer:coarse){
      #splash{
        background:#050505;
        color:#f5f5f5;
        gap:0;
      }
      .splash-logo{
        width:72px;
        filter:none;
      }
      #splashLoading{
        display:none;
      }
    }

    .top-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}
    .top-left{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
    .logo-img{height:40px;width:auto;display:block;filter:drop-shadow(0 2px 6px rgba(15,23,42,0.18))}
    .title-block{display:flex;flex-direction:column;gap:2px}
    .title-main{font-size:18px;font-weight:600;letter-spacing:.03em}
    .title-sub{font-size:12px;color:var(--text-soft)}
    .top-right{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
    .status-bar{
      display:flex;align-items:center;gap:8px;
      flex-wrap:wrap;
      padding:0;
      background:transparent;
      border:none;
      box-shadow:none;
      backdrop-filter:none;
    }
    .status-compact-hud{display:none}
    .status-conn-block{
      display:flex;align-items:center;gap:6px;
      height:22px;padding:0 9px;
      background:rgba(255,255,255,0.75);
      border:1px solid rgba(148,163,184,0.35);
      border-radius:999px;
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
    }
    .status-conn-block::before{
      content:"";
      width:6px;height:6px;border-radius:999px;
      background:#94a3b8;
      box-shadow:0 0 0 3px rgba(148,163,184,0.18);
    }
    .status-conn-text{
      font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:none;
      color:#1f2937;opacity:.9;line-height:1;
    }
    .status-bar.is-online .status-conn-text{opacity:.95}
    .status-bar.is-offline .status-conn-text{opacity:.55}
    .status-bar.is-online .status-conn-block,
    .status-bar.is-offline .status-conn-block{
      border-radius:999px;
    }
    .status-bar.is-online .status-conn-block{
      background:rgba(236,253,245,0.9);
      border-color:rgba(34,197,94,0.35);
    }
    .status-bar.is-offline .status-conn-block{
      background:rgba(248,250,252,0.9);
    }
    .status-bar.is-online .status-conn-block::before{
      background:var(--ok);
      box-shadow:0 0 0 3px var(--ok-soft);
    }
    .status-bar.is-offline .status-conn-block::before{
      background:#94a3b8;
      box-shadow:0 0 0 3px rgba(148,163,184,0.2);
    }
    .conn-icon{
      display:none;
    }
    .status-bar.is-online .conn-icon{opacity:.9}
    .status-bar .status-battery{
      display:flex;align-items:center;justify-content:flex-start;
      gap:6px;
      height:22px;padding:0 9px;
      background:rgba(255,255,255,0.75);
      border:1px solid rgba(148,163,184,0.35);
      border-radius:999px;
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
    }
    .status-bar .status-battery .value{font-size:0}
    .status-bar .status-battery .value .num{
      font-size:10px;font-weight:800;letter-spacing:.04em;color:#0f172a
    }
    .status-bar .battery-icon{
      position:relative;display:inline-flex;align-items:center;justify-content:center;
      width:26px;height:12px;padding:1px 2px;box-sizing:border-box;
      border:1px solid #0f172a;border-radius:3px;opacity:.65;
    }
    .status-bar .battery-icon::after{
      content:"";position:absolute;right:-4px;top:50%;
      width:3px;height:6px;border-radius:2px;background:#0f172a;opacity:.5;
      transform:translateY(-50%);
    }
    .status-bar .battery-fill{
      position:absolute;left:1px;right:1px;top:1px;bottom:1px;
      width:45%;border-radius:2px;background:#0f172a;opacity:.7;
      transition:width .2s ease;
    }
    .status-bar .battery-text{
      line-height:1;
      font-size:10px;font-weight:600;letter-spacing:.02em;
      color:#1f2937;
    }
    .status-bar .status-battery.status-ok .battery-icon{border-color:#22c55e;opacity:.75}
    .status-bar .status-battery.status-ok .battery-icon::after{background:#22c55e;opacity:.75}
    .status-bar .status-battery.status-ok .battery-fill{background:#22c55e;opacity:.7}
    .status-bar .status-battery.status-ok .battery-text{color:#15803d}
    .status-bar .status-battery.status-warn .battery-icon{border-color:#f59e0b;opacity:.75}
    .status-bar .status-battery.status-warn .battery-icon::after{background:#f59e0b;opacity:.75}
    .status-bar .status-battery.status-warn .battery-fill{background:#f59e0b;opacity:.7}
    .status-bar .status-battery.status-bad .battery-icon{border-color:var(--danger);opacity:.75}
    .status-bar .status-battery.status-bad .battery-icon::after{background:var(--danger);opacity:.75}
    .status-bar .status-battery.status-bad .battery-fill{background:var(--danger);opacity:.7}
    .status-bar .status-chiptemp{
      display:flex;align-items:center;justify-content:flex-start;
      gap:6px;
      height:22px;padding:0 9px;
      background:rgba(255,255,255,0.75);
      border:1px solid rgba(148,163,184,0.35);
      border-radius:999px;
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
      cursor:pointer;
      transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }
    .status-bar .status-chiptemp:hover{
      transform:translateY(-1px);
      box-shadow:0 9px 18px rgba(15,23,42,0.12);
      border-color:rgba(34,197,94,0.4);
    }
    .status-bar .status-chiptemp:focus-visible{
      outline:none;
      box-shadow:0 0 0 2px rgba(34,197,94,0.28),0 9px 18px rgba(15,23,42,0.12);
      border-color:rgba(34,197,94,0.65);
    }
    .status-bar .chiptemp-label{
      line-height:1;
      font-size:9px;font-weight:700;letter-spacing:.06em;
      color:#64748b;
    }
    .status-bar .chiptemp-text{
      line-height:1;
      font-size:10px;font-weight:600;letter-spacing:.02em;
      color:#1f2937;
    }
    .status-bar .status-chiptemp.status-ok .chiptemp-text{color:#15803d}
    .status-bar .status-chiptemp.status-warn .chiptemp-text{color:#b45309}
    .status-bar .status-chiptemp.status-bad .chiptemp-text{color:var(--danger)}
    .chip{
      display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:var(--radius-pill);
      background:rgba(255,255,255,0.9);border:1px solid var(--border-subtle);
      backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
      font-size:11px;color:var(--text-soft)
    }
    .chip-group{display:inline-flex;align-items:center;gap:6px}
    .chip-sep{width:1px;height:14px;background:rgba(148,163,184,0.6)}
    .chip-label{font-weight:500}
    .chip-value{font-weight:600;color:var(--text-main)}
    .chip-dot{width:8px;height:8px;border-radius:999px;background:var(--danger);box-shadow:0 0 0 4px var(--danger-soft)}
    .chip-dot.ok{background:var(--ok);box-shadow:0 0 0 4px var(--ok-soft)}
    .shell{width:100%;display:flex;flex-direction:column;gap:var(--shell-gap)}
    .card-base{
      position:relative;background:var(--card-bg);border-radius:var(--radius-xl);
      border:1px solid rgba(148,163,184,0.62);box-shadow:var(--card-shadow);
      padding:var(--card-pad);overflow:hidden;
      backdrop-filter:blur(20px) saturate(1.25);-webkit-backdrop-filter:blur(20px) saturate(1.25)
    }
    .card-base::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,var(--card-glass-border-outer),var(--card-glass-border-inner));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;
      opacity:0.92;pointer-events:none
    }
    .card-base::after{
      content:"";position:absolute;inset:0;border-radius:inherit;
      background:radial-gradient(circle at 0 0,rgba(255,255,255,0.32),transparent 55%);
      opacity:0.6;pointer-events:none
    }
    .card-base>*{position:relative;z-index:1}
    .main-card{
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.35);
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
    }
    .main-card::before,.main-card::after{content:none}
    .main-card.status-card{
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.5);
      box-shadow:0 14px 26px rgba(15,23,42,0.12);
    }
    .main-card.status-card.status-map-only{
      background:transparent;
      border:none;
      box-shadow:none;
      padding:0;
    }
    .main-card.status-card::before{
      content:none;
    }
    .main-card.status-card::after{
      content:none;
    }
    .main-card.status-card.status-map-only::before,
    .main-card.status-card.status-map-only::after{
      content:none;
    }
    .main-card.status-card.status-map-only .card-header{
      display:none;
    }
    .main-card.status-card.status-map-only .status-map-layout{
      display:block;
      height:100%;
    }
    .main-card.status-card.status-map-only .status-map-panel{
      margin-top:0;
      height:100%;
      min-height:220px;
    }
    .main-card.status-card.status-map-only .status-flight-preview{
      justify-content:stretch;
      align-items:stretch;
      align-self:stretch;
      padding-left:0;
    }
    .main-card.status-card.status-map-only .status-flight-preview .status-gyro-canvas{
      width:100%;
      height:100%;
    }
    .mode-flight .main-card.status-card.status-map-only .status-map-layout{
      display:grid;
      grid-template-columns:220px minmax(0,1fr);
      grid-template-areas:"preview map";
      gap:8px;
      align-items:stretch;
    }
    .mode-flight .main-card.status-card.status-map-only .status-map-panel{
      grid-area:map;
    }
    .mode-flight .main-card.status-card.status-map-only .status-flight-preview{
      grid-area:preview;
    }
    .card-base.status-frame{
      border:1px solid rgba(148,163,184,0.5);
      box-shadow:0 14px 26px rgba(15,23,42,0.12);
    }
    .card-base.status-frame::before,
    .card-base.status-frame::after{
      content:none;
    }
    .side-col{display:flex;flex-direction:column;gap:12px}
    .card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
    .card-title{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--text-soft)}
    .card-badge{padding:3px 10px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-strong);font-size:11px;font-weight:500;white-space:nowrap}
    .section-label{margin-top:6px;font-size:11px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:#9ca3af}
    .status-row{display:flex;flex-direction:column;gap:2px}
    .status-line{display:flex;align-items:center;justify-content:flex-start;gap:10px}
    .status-title{display:flex;align-items:center;gap:10px}
    .status-title-stack{flex-direction:column;align-items:flex-start;gap:10px}
    .status-main-line{display:flex;align-items:center;gap:10px}
    .status-signal{
      display:inline-flex;
      align-items:flex-end;
      gap:3px;
      width:20px;
      height:14px;
      padding:2px 1px;
      border-radius:6px;
      background:linear-gradient(135deg,rgba(59,130,246,0.2),rgba(14,165,233,0.12));
      border:1px solid rgba(59,130,246,0.35);
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.75);
    }
    .status-signal span{
      display:block;
      flex:1 1 0;
      border-radius:4px;
      background:linear-gradient(180deg,#0ea5e9,#2563eb);
      animation:statusSignalEq 1.4s ease-in-out infinite;
      transform-origin:bottom;
    }
    .status-signal span:nth-child(1){height:50%;animation-delay:0s}
    .status-signal span:nth-child(2){height:85%;animation-delay:.16s}
    .status-signal span:nth-child(3){height:62%;animation-delay:.32s}
    @keyframes statusSignalEq{
      0%,100%{transform:scaleY(.55);opacity:.75}
      50%{transform:scaleY(1);opacity:1}
    }
    .status-countdown-inline{display:flex;flex-direction:column;gap:2px}
    .status-countdown-inline .countdown-label{
      font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-soft);
    }
    .status-countdown-inline .countdown-mobile,
    .status-countdown-inline #countdownMobile{
      display:block;
      font-family:SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:28px;font-weight:600;letter-spacing:.08em;color:#0f172a;
      min-width:0;
    }
    .status-card .status-top{
      background:transparent;
      border:none;
      border-radius:0;
      padding:8px 2px 0;
      box-shadow:none;
    }
    .status-card .status-map-panel{
      margin-top:8px;
      position:relative;
      border-radius:var(--radius-xl);
      border:1px solid rgba(148,163,184,0.45);
      overflow:hidden;
      height:220px;
      background:linear-gradient(180deg,#f8fafc,#e2e8f0);
      box-shadow:0 8px 16px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.85);
    }
    .status-map-panel.is-expanded{
      position:fixed;
      left:var(--status-map-expand-left, 0px);
      top:var(--status-map-expand-top, 0px);
      right:var(--status-map-expand-right, 0px);
      bottom:var(--status-map-expand-bottom, 0px);
      width:auto !important;
      height:auto !important;
      margin:0;
      overflow:hidden;
      border-radius:0;
      border:0;
      box-shadow:none;
      z-index:6000;
      background:linear-gradient(180deg,#d8e4f1,#c6d5e6);
    }
    .status-map-panel.is-expanded::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:118px;
      pointer-events:none;
      z-index:1201;
      background:linear-gradient(180deg, rgba(15,23,42,0.26) 0%, rgba(15,23,42,0.12) 48%, rgba(15,23,42,0) 100%);
    }
    html.status-map-expanded body{overflow:hidden}
    .status-map-canvas{
      display:block;
      width:100%;
      height:100%;
      border:0;
    }
    #statusMapViewport.is-expanded #statusMap,
    #statusMapViewport.is-expanded #statusMap.leaflet-container{
      position:absolute !important;
      inset:0 !important;
      width:100% !important;
      height:100% !important;
      min-height:100% !important;
      background:#cbd5e1 !important;
    }
    .status-map-canvas.status-map-canvas--offline{
      position:relative;
      overflow:hidden;
      background:linear-gradient(180deg,#dbeafe,#bfdbfe);
    }
    .status-map-offline{
      position:absolute;
      inset:0;
      overflow:hidden;
      z-index:680;
      pointer-events:none;
      background:
        radial-gradient(circle at 16% 18%,rgba(255,255,255,0.55),transparent 48%),
        linear-gradient(180deg,#cfe8ff 0%,#dbeafe 45%,#e0f2fe 100%);
    }
    .status-map-canvas.status-map-canvas--offline .leaflet-tile-pane,
    .status-map-canvas.status-map-canvas--offline .leaflet-overlay-pane,
    .status-map-canvas.status-map-canvas--offline .leaflet-shadow-pane,
    .status-map-canvas.status-map-canvas--offline .leaflet-marker-pane{
      opacity:0;
    }
    .status-map-offline::before{
      content:"";
      position:absolute;
      inset:0;
      background-image:
        linear-gradient(to right,rgba(15,23,42,0.1) 1px,transparent 1px),
        linear-gradient(to bottom,rgba(15,23,42,0.1) 1px,transparent 1px);
      background-size:34px 34px;
      opacity:.22;
      pointer-events:none;
    }
    .status-map-offline-kr{
      position:absolute;
      left:30%;
      top:8%;
      width:40%;
      height:84%;
      background:linear-gradient(180deg,#dcfce7,#86efac);
      border:1px solid rgba(22,163,74,0.32);
      clip-path:polygon(53% 0%,63% 6%,71% 12%,70% 19%,74% 28%,70% 35%,73% 43%,69% 52%,72% 61%,66% 72%,62% 82%,58% 93%,49% 100%,38% 97%,34% 88%,29% 80%,31% 71%,27% 62%,29% 54%,24% 46%,28% 37%,26% 29%,31% 20%,35% 11%,43% 4%);
      border-radius:20px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.55),0 6px 12px rgba(15,23,42,0.12);
      pointer-events:none;
    }
    .status-map-offline-jeju{
      position:absolute;
      left:44%;
      top:88%;
      width:11%;
      height:5%;
      border-radius:999px;
      background:#bbf7d0;
      border:1px solid rgba(22,163,74,0.35);
      box-shadow:0 3px 8px rgba(15,23,42,0.1);
      pointer-events:none;
    }
    .status-map-offline-label{
      position:absolute;
      left:10px;
      bottom:10px;
      padding:5px 9px;
      border-radius:999px;
      border:1px solid rgba(59,130,246,0.24);
      background:rgba(255,255,255,0.9);
      color:#1e3a8a;
      font-size:10px;
      font-weight:800;
      letter-spacing:.12em;
      text-transform:uppercase;
      pointer-events:none;
    }
    .status-map-troubleshoot-btn{
      position:absolute;
      right:10px;
      bottom:10px;
      z-index:8;
      pointer-events:auto;
      appearance:none;
      -webkit-appearance:none;
      border:1px solid rgba(34,197,94,0.45);
      border-radius:999px;
      background:linear-gradient(135deg,rgba(34,197,94,0.96),rgba(22,163,74,0.94));
      color:#052e16;
      box-shadow:0 12px 24px rgba(21,128,61,0.28), inset 0 1px 0 rgba(255,255,255,0.32);
      padding:8px 12px;
      display:inline-flex;
      align-items:center;
      gap:6px;
      cursor:pointer;
      font:inherit;
      font-size:11px;
      font-weight:900;
      line-height:1;
      letter-spacing:-0.01em;
      white-space:nowrap;
    }
    .status-map-troubleshoot-btn:hover{
      filter:brightness(1.05);
      transform:translateY(-1px);
    }
    .status-map-panel.is-expanded .status-map-troubleshoot-btn{
      right:16px;
      bottom:16px;
      padding:10px 14px;
      font-size:13px;
    }
    .status-map-offline-badge{
      position:absolute;
      right:10px;
      top:10px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(239,68,68,0.45);
      background:rgba(127,29,29,0.86);
      color:#fee2e2;
      font-size:10px;
      font-weight:900;
      letter-spacing:.13em;
      text-transform:uppercase;
      box-shadow:0 8px 20px rgba(127,29,29,0.32);
      pointer-events:none;
      z-index:6;
    }
    .status-map-offline-marker{
      position:absolute;
      width:34px;
      height:34px;
      border-radius:50%;
      display:flex;
      align-items:center;
      justify-content:center;
      transform:translate(-50%,-82%);
      background:linear-gradient(180deg,rgba(255,255,255,0.5),rgba(255,255,255,0.2));
      border:1px solid rgba(255,255,255,0.6);
      box-shadow:0 8px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
      font-size:18px;
      z-index:5;
      pointer-events:none;
    }
    .gps-help-dialog{
      width:min(560px, calc(100vw - 28px));
      max-height:min(86vh, 760px);
      overflow:auto;
      border-radius:24px;
    }
    .gps-help-hero{
      margin:14px 0 12px;
      overflow:hidden;
      border-radius:18px;
      border:1px solid rgba(148,163,184,0.3);
      background:#020617;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 34px rgba(15,23,42,0.18);
    }
    .gps-help-hero img{
      display:block;
      width:100%;
      height:auto;
    }
    .gps-help-list{
      margin:12px 0 0;
      padding:0;
      list-style:none;
      display:grid;
      gap:8px;
      text-align:left;
    }
    .gps-help-list li{
      position:relative;
      padding:9px 11px 9px 32px;
      border-radius:14px;
      background:rgba(248,250,252,0.88);
      border:1px solid rgba(148,163,184,0.22);
      color:#334155;
      font-size:13px;
      line-height:1.45;
      font-weight:650;
    }
    .gps-help-list li::before{
      content:"";
      position:absolute;
      left:12px;
      top:15px;
      width:8px;
      height:8px;
      border-radius:50%;
      background:#22c55e;
      box-shadow:0 0 0 4px rgba(34,197,94,0.14);
    }
    .gps-help-dialog .confirm-note{
      text-align:left;
      line-height:1.5;
    }
    .agent-help-dialog{
      width:min(560px, calc(100vw - 28px));
      max-height:min(86vh, 760px);
      overflow:auto;
      border-radius:24px;
    }
    #agentHelpOverlay,
    #intelligentCalibrationOverlay,
    #agentIssueOverlay,
    #dataListOverlay,
    #dataDownloadConfirmOverlay,
    #dataResetConfirmOverlay{
      align-items:flex-end !important;
      justify-content:center !important;
      padding:max(12px, env(safe-area-inset-top, 0px)) 0 0 !important;
      background:rgba(0,0,0,.48) !important;
      -webkit-backdrop-filter:blur(8px);
      backdrop-filter:blur(8px);
      z-index:89000 !important;
    }
    #agentIssueOverlay,
    #dataListOverlay,
    #dataDownloadConfirmOverlay,
    #dataResetConfirmOverlay{
      z-index:89100 !important;
    }
    #agentHelpOverlay > .agent-help-dialog,
    #intelligentCalibrationOverlay > .agent-help-dialog,
    #agentIssueOverlay > .agent-help-dialog,
    #dataListOverlay > .agent-help-dialog,
    #dataDownloadConfirmOverlay > .agent-help-dialog,
    #dataResetConfirmOverlay > .agent-help-dialog{
      display:flex !important;
      flex-direction:column !important;
      position:relative;
      width:100vw !important;
      max-width:100vw !important;
      max-height:calc(100dvh - max(12px, env(safe-area-inset-top, 0px))) !important;
      margin:0 !important;
      border:1px solid #2f2f2f !important;
      border-bottom:0 !important;
      border-radius:16px 16px 0 0 !important;
      padding:0 !important;
      background:#151515 !important;
      color:#f4f4f4 !important;
      box-shadow:0 -18px 52px rgba(0,0,0,.44) !important;
      overflow:hidden !important;
      transform:translateY(calc(100% + 24px));
      opacity:0;
      transition:transform .32s cubic-bezier(0.22,0.61,0.36,1), opacity .24s ease;
      will-change:transform,opacity;
    }
    #agentHelpOverlay.is-open > .agent-help-dialog,
    #intelligentCalibrationOverlay.is-open > .agent-help-dialog,
    #agentIssueOverlay.is-open > .agent-help-dialog,
    #dataListOverlay.is-open > .agent-help-dialog,
    #dataDownloadConfirmOverlay.is-open > .agent-help-dialog,
    #dataResetConfirmOverlay.is-open > .agent-help-dialog{
      transform:translateY(0);
      opacity:1;
    }
    #agentHelpOverlay > .agent-help-dialog::before,
    #intelligentCalibrationOverlay > .agent-help-dialog::before,
    #agentIssueOverlay > .agent-help-dialog::before,
    #dataListOverlay > .agent-help-dialog::before,
    #dataDownloadConfirmOverlay > .agent-help-dialog::before,
    #dataResetConfirmOverlay > .agent-help-dialog::before{
      content:none !important;
      display:none !important;
    }
    #agentHelpOverlay .mobile-chart-picker-head,
    #intelligentCalibrationOverlay .mobile-chart-picker-head,
    #agentIssueOverlay .mobile-chart-picker-head,
    #dataListOverlay .mobile-chart-picker-head,
    #dataDownloadConfirmOverlay .mobile-chart-picker-head,
    #dataResetConfirmOverlay .mobile-chart-picker-head{
      flex:0 0 auto;
    }
    #agentHelpOverlay .mobile-chart-picker-body,
    #intelligentCalibrationOverlay .mobile-chart-picker-body,
    #agentIssueOverlay .mobile-chart-picker-body,
    #dataListOverlay .mobile-chart-picker-body,
    #dataDownloadConfirmOverlay .mobile-chart-picker-body,
    #dataResetConfirmOverlay .mobile-chart-picker-body{
      flex:1 1 auto;
      min-height:0;
      overflow-y:auto;
      -webkit-overflow-scrolling:touch;
      padding:14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    html:not(.phone-landscape-layout) body:has(#agentHelpOverlay:not(.hidden)) .side-nav-mobile,
    html:not(.phone-landscape-layout) body:has(#intelligentCalibrationOverlay:not(.hidden)) .side-nav-mobile{
      display:none !important;
      pointer-events:none !important;
    }
    html.intelligent-calibration-open:not(.phone-landscape-layout) .side-nav-mobile{
      display:none !important;
      pointer-events:none !important;
    }
    html:not(.phone-landscape-layout) body:has(#agentIssueOverlay:not(.hidden)) .side-nav-mobile,
    html:not(.phone-landscape-layout) body:has(#dataListOverlay:not(.hidden)) .side-nav-mobile,
    html:not(.phone-landscape-layout) body:has(#dataResetConfirmOverlay:not(.hidden)) .side-nav-mobile{
      display:none !important;
      pointer-events:none !important;
    }
    .agent-help-intro{
      margin:0 0 14px;
      color:#bdbdbd;
      font-size:14px;
      line-height:1.45;
      font-weight:620;
      letter-spacing:-.02em;
      word-break:keep-all;
    }
    .intelligent-calibration-map-card{
      margin:0 0 14px;
      border:1px solid #303030;
      border-radius:14px;
      background:#101010;
      overflow:hidden;
    }
    .intelligent-calibration-map-head{
      min-height:38px;
      padding:10px 12px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      border-bottom:1px solid #282828;
    }
    .intelligent-calibration-map-title{
      color:#f4f4f4;
      font-size:12px;
      font-weight:760;
      line-height:1;
    }
    .intelligent-calibration-map-coord{
      min-width:0;
      color:#9ca3af;
      font-size:11px;
      font-weight:680;
      line-height:1;
      text-align:right;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      font-variant-numeric:tabular-nums;
    }
    .intelligent-calibration-map-viewport{
      position:relative;
      height:178px;
      min-height:178px;
      background:
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(0deg,rgba(255,255,255,.035) 1px,transparent 1px),
        radial-gradient(circle at 50% 50%,rgba(34,197,94,.16),transparent 58%),
        #111827;
      background-size:28px 28px,28px 28px,100% 100%,100% 100%;
    }
    .intelligent-calibration-map{
      position:absolute;
      inset:0;
      z-index:1;
      background:transparent;
    }
    .intelligent-calibration-map-empty{
      position:absolute;
      inset:0;
      z-index:2;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:18px;
      color:#a8a8a8;
      font-size:12px;
      font-weight:720;
      line-height:1.35;
      text-align:center;
      background:rgba(16,16,16,.48);
      pointer-events:none;
    }
    .intelligent-calibration-map-empty.is-hidden{
      display:none;
    }
    .intelligent-calibration-map .leaflet-container,
    .intelligent-calibration-map.leaflet-container{
      width:100%;
      height:100%;
      background:transparent;
      overflow:hidden;
      touch-action:none;
    }
    .intelligent-calibration-map.leaflet-container .leaflet-pane,
    .intelligent-calibration-map.leaflet-container .leaflet-tile,
    .intelligent-calibration-map.leaflet-container .leaflet-marker-icon,
    .intelligent-calibration-map.leaflet-container .leaflet-marker-shadow,
    .intelligent-calibration-map.leaflet-container .leaflet-tile-container,
    .intelligent-calibration-map.leaflet-container .leaflet-layer{
      position:absolute !important;
      left:0 !important;
      top:0 !important;
    }
    .intelligent-calibration-map.leaflet-container .leaflet-tile-pane{z-index:200}
    .intelligent-calibration-map.leaflet-container .leaflet-overlay-pane{z-index:400}
    .intelligent-calibration-map.leaflet-container .leaflet-shadow-pane{z-index:500}
    .intelligent-calibration-map.leaflet-container .leaflet-marker-pane{z-index:600}
    .intelligent-calibration-map.leaflet-container .leaflet-tile{
      visibility:hidden;
      max-width:none !important;
      max-height:none !important;
      width:auto;
      height:auto;
      padding:0;
      border:0;
    }
    .intelligent-calibration-map.leaflet-container .leaflet-tile-loaded{
      visibility:inherit;
    }
    .intelligent-calibration-map.leaflet-container .leaflet-marker-icon{
      display:block;
      max-width:none !important;
      max-height:none !important;
    }
    .intelligent-calibration-marker{
      width:18px;
      height:18px;
      border:3px solid #22c55e;
      border-radius:999px;
      background:#f8fafc;
      box-shadow:0 0 0 6px rgba(34,197,94,.2),0 10px 22px rgba(0,0,0,.35);
    }
    .agent-help-summary{
      margin:0 0 12px;
      padding:12px 14px;
      border-radius:16px;
      border:1px solid #303030;
      background:#101010;
      text-align:left;
      color:#d8d8d8;
      font-size:13px;
      line-height:1.45;
      font-weight:650;
    }
    .agent-help-summary.is-ok{
      border-color:rgba(34,197,94,0.45);
      background:rgba(22,163,74,0.14);
      color:#86efac;
    }
    #dataListOverlay .agent-help-summary.is-message,
    #dataListOverlay .agent-help-intro.is-message{
      text-align:center;
    }
    #dataListOverlay .agent-help-summary.is-message{
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:44px;
    }
    #dataListOverlay .mobile-chart-picker-body{
      display:flex;
      flex-direction:column;
      overflow:hidden !important;
    }
    #dataListOverlay #dataListBody{
      flex:1 1 auto;
      min-height:116px;
      max-height:min(42dvh, 360px);
      overflow-y:auto;
      overscroll-behavior:contain;
      -webkit-overflow-scrolling:touch;
      padding-right:2px;
      margin-bottom:12px;
    }
    #dataListOverlay #dataListBody.agent-help-list{
      margin-top:0;
      margin-bottom:12px;
    }
    #dataListOverlay .data-storage-head{
      display:flex;
      align-items:baseline;
      justify-content:space-between;
      gap:12px;
      margin-bottom:10px;
    }
    #dataListOverlay .data-storage-title{
      color:#f4f4f4;
      font-size:14px;
      font-weight:780;
    }
    #dataListOverlay .data-storage-paused-notice{
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:14px;
      padding:11px 12px;
      border:1px solid #333;
      border-radius:8px;
      background:#181818;
      color:#f0f0f0;
    }
    #dataListOverlay .data-storage-paused-dot{
      flex:0 0 auto;
      width:8px;
      height:8px;
      border-radius:50%;
      background:#8d8d8d;
    }
    #dataListOverlay .data-storage-paused-notice strong,
    #dataListOverlay .data-storage-paused-notice small{
      display:block;
    }
    #dataListOverlay .data-storage-paused-notice strong{
      font-size:12px;
      font-weight:780;
    }
    #dataListOverlay .data-storage-paused-notice small{
      margin-top:2px;
      color:#9d9d9d;
      font-size:10px;
      font-weight:620;
    }
    #dataListOverlay .data-storage-total{
      color:#a8a8a8;
      font-size:12px;
      font-weight:650;
      text-align:right;
    }
    #dataListOverlay .data-storage-track{
      position:relative;
      display:block !important;
      flex:none !important;
      box-sizing:border-box;
      width:100%;
      min-height:12px !important;
      height:12px !important;
      overflow:hidden;
      border-radius:999px;
      background:#353535 !important;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
    }
    #dataListOverlay .data-storage-fill{
      position:absolute;
      z-index:1;
      left:0;
      top:0;
      bottom:0;
      display:block !important;
      width:var(--storage-used, 0%);
      max-width:100%;
      border-radius:inherit;
      background:#22c55e !important;
      box-shadow:0 0 10px rgba(34,197,94,.28);
    }
    #dataListOverlay .data-storage-fill.has-usage{
      min-width:3px;
    }
    #dataListOverlay .data-storage-meta{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-top:9px;
      color:#bdbdbd;
      font-size:11px;
      font-weight:650;
    }
    #dataListOverlay .data-storage-used::before{
      content:"";
      display:inline-block;
      width:8px;
      height:8px;
      margin-right:6px;
      border-radius:50%;
      vertical-align:1px;
    }
    #dataListOverlay .data-storage-used::before{ background:#22c55e; }
    #dataListOverlay .data-storage-spec{
      margin-top:8px;
      color:#8f8f8f;
      font-size:10px;
      font-weight:620;
      text-align:right;
    }
    #dataListOverlay .data-origin-filter{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:4px;
      margin-bottom:12px;
      padding:4px;
      border:1px solid #333;
      border-radius:8px;
      background:#171717;
    }
    #dataListOverlay.is-avionics-only .data-origin-filter{
      display:none;
    }
    #dataListOverlay .data-origin-filter button{
      min-height:38px;
      border:0;
      border-radius:6px;
      background:transparent;
      color:#8f8f8f;
      font:inherit;
      font-size:12px;
      font-weight:780;
      cursor:pointer;
    }
    #dataListOverlay .data-origin-filter button.is-active{
      background:#f2f2f2;
      color:#111;
    }
    #dataListOverlay .data-storage-actions{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:8px;
      margin-top:4px;
    }
    #dataListOverlay .data-storage-actions.is-app-only{
      grid-template-columns:1fr;
    }
    #dataListOverlay .data-storage-reset,
    #dataListOverlay .data-storage-download{
      width:100%;
      min-height:46px;
      margin:0;
      border:1px solid transparent;
      border-radius:15px;
      font:inherit;
      font-size:12px;
      font-weight:760;
      cursor:pointer;
    }
    #dataListOverlay .data-storage-download{
      border-color:#22c55e;
      background:#22c55e;
      color:#fff;
    }
    #dataListOverlay .data-storage-reset{
      border-color:#ef4444;
      background:#ef4444;
      color:#fff;
    }
    #dataListOverlay .data-storage-reset:active,
    #dataListOverlay .data-storage-download:active{
      transform:scale(.985);
      filter:brightness(.94);
    }
    #dataListOverlay .data-storage-download:disabled{
      opacity:.38;
      cursor:not-allowed;
      filter:grayscale(.35);
    }
    #dataListOverlay .data-storage-reset:disabled{
      opacity:.38;
      cursor:not-allowed;
      filter:grayscale(.35);
    }
    #dataResetConfirmOverlay .data-reset-warning,
    #dataDownloadConfirmOverlay .data-reset-warning{
      margin:0 0 12px;
      color:#f2f2f2;
      font-size:16px;
      line-height:1.5;
      font-weight:720;
      word-break:keep-all;
    }
    #dataResetConfirmOverlay .data-reset-note,
    #dataDownloadConfirmOverlay .data-reset-note{
      margin:0 0 18px;
      color:#a8a8a8;
      font-size:13px;
      line-height:1.55;
      font-weight:600;
      word-break:keep-all;
    }
    #dataResetConfirmOverlay .data-reset-actions,
    #dataDownloadConfirmOverlay .data-reset-actions{
      display:grid;
      gap:10px;
    }
    #dataResetConfirmOverlay .data-reset-hold,
    #dataResetConfirmOverlay .data-reset-cancel,
    #dataDownloadConfirmOverlay .data-reset-hold,
    #dataDownloadConfirmOverlay .data-reset-cancel{
      width:100%;
      min-height:52px;
      border-radius:15px;
      font:inherit;
      font-size:14px;
      font-weight:780;
      cursor:pointer;
    }
    #dataResetConfirmOverlay .data-reset-hold,
    #dataDownloadConfirmOverlay .data-reset-hold{
      border:1px solid #ef4444;
      background:#dc2626;
      color:#fff;
    }
    #dataResetConfirmOverlay .data-reset-cancel,
    #dataDownloadConfirmOverlay .data-reset-cancel{
      border:1px solid #353535;
      background:#222;
      color:#e5e5e5;
    }
    #dataResetConfirmOverlay .data-reset-hold:disabled,
    #dataResetConfirmOverlay .data-reset-cancel:disabled,
    #dataDownloadConfirmOverlay .data-reset-hold:disabled,
    #dataDownloadConfirmOverlay .data-reset-cancel:disabled{
      opacity:.72;
      cursor:wait;
    }
    .agent-help-list{
      display:grid;
      gap:8px;
      margin:0 0 12px;
    }
    .agent-help-issue{
      width:100%;
      appearance:none;
      -webkit-appearance:none;
      border:1px solid #303030;
      border-radius:15px;
      background:#101010;
      color:#f4f4f4;
      padding:11px 12px;
      display:grid;
      grid-template-columns:auto 1fr auto;
      align-items:center;
      gap:10px;
      text-align:left;
      cursor:pointer;
      font:inherit;
    }
    .agent-help-issue.is-active{
      border-color:rgba(34,197,94,0.5);
      box-shadow:0 0 0 3px rgba(34,197,94,0.12);
    }
    .agent-help-dot{
      width:10px;
      height:10px;
      border-radius:50%;
      background:#f59e0b;
      box-shadow:0 0 0 4px rgba(245,158,11,0.15);
    }
    .agent-help-issue[data-severity="critical"] .agent-help-dot{
      background:#ef4444;
      box-shadow:0 0 0 4px rgba(239,68,68,0.15);
    }
    #dataListOverlay .data-list-item .agent-help-dot{
      background:#22c55e;
      box-shadow:0 0 0 4px rgba(34,197,94,0.15);
    }
    #dataListOverlay .data-list-item.is-download-select{
      border-color:#22c55e;
      cursor:pointer;
    }
    #dataListOverlay .data-list-more{
      width:100%;
      border:1px solid #303030;
      border-radius:13px;
      background:#191919;
      color:#d7d7d7;
      padding:11px 12px;
      font:inherit;
      font-size:13px;
      font-weight:760;
      cursor:pointer;
    }
    #dataListOverlay .data-list-more:active{
      background:#222;
    }
    .agent-help-issue-title{
      display:block;
      font-size:13px;
      font-weight:780;
      line-height:1.2;
    }
    .agent-help-issue-sub{
      display:block;
      margin-top:3px;
      color:#a8a8a8;
      font-size:11px;
      font-weight:620;
      line-height:1.25;
    }
    .agent-help-chevron{
      color:#a8a8a8;
      font-size:20px;
      line-height:1;
    }
    .agent-help-detail{
      min-height:82px;
      border-radius:16px;
      border:1px solid #303030;
      background:#101010;
      padding:13px 14px;
      text-align:left;
    }
    .agent-help-detail-title{
      color:#f4f4f4;
      font-size:14px;
      font-weight:820;
      line-height:1.25;
    }
    .agent-help-detail-text{
      margin-top:6px;
      color:#cfcfcf;
      font-size:13px;
      font-weight:620;
      line-height:1.5;
      white-space:pre-line;
    }
    .agent-issue-image{
      margin-top:12px;
      overflow:hidden;
      border-radius:14px;
      border:1px solid #303030;
      background:#050505;
    }
    .agent-issue-image.hidden{
      display:none !important;
    }
    .agent-issue-image-track{
      display:flex;
      overflow-x:auto;
      scroll-snap-type:x mandatory;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
    }
    .agent-issue-image-track::-webkit-scrollbar{
      display:none;
    }
    .agent-issue-image-slide{
      flex:0 0 100%;
      scroll-snap-align:center;
    }
    .agent-issue-image-slide img{
      display:block;
      width:100%;
      height:auto;
    }
    .agent-issue-image-dots{
      display:flex;
      justify-content:center;
      gap:6px;
      padding:9px 0 10px;
    }
    .agent-issue-image-dot{
      width:6px;
      height:6px;
      border-radius:50%;
      background:#555;
    }
    .agent-issue-image-dot.is-active{
      background:#22c55e;
    }
    /* Retain the light, neutral map identity with the key-free tile source.
       Filter only geography; markers, labels and attribution keep their own UI colors. */
    .status-map-panel .leaflet-tile-pane{
      filter:grayscale(1) contrast(.6) brightness(1.4);
    }
    .status-map-tint{
      position:absolute;
      inset:0;
      pointer-events:none;
      background:rgba(255,255,255,0.03);
      z-index:200;
    }
    .status-map-panel .leaflet-control-attribution{
      font-size:9px;
      line-height:16px;
      white-space:normal;
      pointer-events:auto;
    }
    .status-map-panel .leaflet-container a{color:#2563eb}
    .status-map-panel .leaflet-control-attribution a{color:inherit}
    .status-map-panel .leaflet-popup-content-wrapper{
      background:rgba(255,255,255,.92);
      color:#0f172a;
      border-radius:8px;
      backdrop-filter:blur(12px) saturate(170%);
    }
    .status-map-panel .leaflet-popup-tip{
      background:rgba(255,255,255,.92);
    }
    .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-content-wrapper{
      border-radius:12px;
      border:1px solid rgba(148,163,184,0.32);
      background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(248,250,252,0.95));
      box-shadow:0 10px 18px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.75);
      backdrop-filter:blur(8px) saturate(150%);
    }
    .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-content{
      margin:0;
      min-width:140px;
    }
    .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-tip{
      background:rgba(248,250,252,0.96);
      box-shadow:0 6px 10px rgba(15,23,42,0.14);
    }
    .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-close-button{
      width:20px;
      height:20px;
      border-radius:999px;
      top:6px;
      right:6px;
      color:#1d4ed8;
      font-size:16px;
      font-weight:700;
      line-height:18px;
      border:1px solid rgba(59,130,246,0.24);
      background:rgba(239,246,255,0.92);
      box-shadow:0 2px 6px rgba(37,99,235,0.15);
      padding:0;
      text-align:center;
    }
    .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-close-button:hover{
      color:#1e40af;
      background:#ffffff;
    }
    .status-map-popup-body{
      padding:8px 10px;
      display:flex;
      flex-direction:column;
      gap:2px;
    }
    .status-map-popup-kicker{
      font-size:8px;
      font-weight:800;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:#2563eb;
    }
    .status-map-popup-title{
      font-size:13px;
      font-weight:700;
      line-height:1.2;
      color:#0f172a;
      letter-spacing:-0.01em;
    }
    .status-map-popup-sub{
      margin-top:1px;
      font-size:11px;
      font-weight:650;
      color:#64748b;
      letter-spacing:.03em;
    }
    .status-map-hud{
      position:absolute;
      top:12px;
      left:12px;
      right:12px;
      bottom:12px;
      z-index:1000;
      display:block;
      pointer-events:none;
    }
    .status-map-card{
      position:absolute;
      left:0;
      top:0;
      pointer-events:auto;
      background:rgba(255,255,255,0.14);
      border:1px solid rgba(255,255,255,0.34);
      backdrop-filter:blur(12px) saturate(180%);
      border-radius:12px;
      padding:7px 11px;
      box-shadow:0 10px 22px rgba(0,0,0,.2);
      display:inline-flex;
      align-items:center;
      gap:8px;
      width:fit-content;
      max-width:100%;
    }
    .status-map-actions{
      position:absolute;
      left:0;
      bottom:0;
      display:flex;
      gap:8px;
      align-items:center;
      flex-wrap:wrap;
      pointer-events:none;
    }
    .status-map-coords{
      font-size:12px;
      line-height:1;
      font-weight:700;
      letter-spacing:.2px;
      color:#0f172a;
    }
    .status-map-zoom{
      font-size:12px;
      line-height:1;
      color:#475569;
      font-weight:600;
      white-space:nowrap;
    }
    .status-map-btn{
      pointer-events:auto;
      appearance:none;
      -webkit-appearance:none;
      border:1px solid rgba(255,255,255,0.4);
      background:rgba(255,255,255,0.9);
      padding:7px 11px;
      border-radius:999px;
      color:#0f172a;
      box-shadow:0 10px 22px rgba(0,0,0,.2);
      display:inline-flex;
      align-items:center;
      gap:6px;
      cursor:pointer;
      font:inherit;
      font-size:12px;
      font-weight:600;
      line-height:1;
    }
    .status-map-btn:hover{background:#ffffff}
    .status-map-btn--expand{
      font-weight:700;
      letter-spacing:.04em;
    }
    .status-gyro-actions{
      position:absolute;
      top:6px;
      right:6px;
      z-index:6;
      display:none;
      pointer-events:auto;
    }
    .status-map-return-actions{
      position:absolute;
      top:6px;
      right:6px;
      z-index:1002;
      display:none;
      pointer-events:auto;
    }
    .status-gyro-btn{
      pointer-events:auto;
      appearance:none;
      -webkit-appearance:none;
      border:1px solid rgba(255,255,255,0.4);
      background:rgba(255,255,255,0.9);
      width:30px;
      height:30px;
      padding:0;
      border-radius:8px;
      color:#0f172a;
      box-shadow:0 8px 18px rgba(0,0,0,.2);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      font:inherit;
      font-size:13px;
      font-weight:700;
      line-height:1;
    }
    .status-gyro-btn--map-close{
      display:none;
    }
    .status-gyro-btn--map-open{
      display:none;
      width:auto;
      min-width:86px;
      padding:0 10px;
      gap:5px;
      font-size:11px;
      letter-spacing:.01em;
      white-space:nowrap;
    }
    .status-gyro-btn--map-open svg{
      width:14px;
      height:14px;
      fill:none;
      stroke:currentColor;
      stroke-width:2;
      stroke-linecap:round;
      stroke-linejoin:round;
      flex:0 0 auto;
    }
    .status-expanded-metrics{
      position:absolute;
      right:calc(16px + env(safe-area-inset-right, 0px));
      bottom:calc(16px + env(safe-area-inset-bottom, 0px));
      display:flex;
      align-items:stretch;
      justify-content:flex-start;
      flex-direction:row;
      gap:10px;
      flex-wrap:nowrap;
      pointer-events:none;
      z-index:1204;
    }
    .status-expanded-metric{
      width:min(178px, calc((100vw - 52px) / 2));
      min-height:92px;
      padding:16px 18px 14px;
      border-radius:8px;
      border:1px solid #cfd6df;
      background:#f3f4f6;
      box-shadow:none;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
    }
    .status-expanded-metric-label{
      font-size:11px;
      letter-spacing:.28em;
      text-transform:uppercase;
      color:#7a8aa1;
      margin-bottom:10px;
      font-weight:600;
    }
    .status-expanded-metric-value{
      font-size:20px;
      font-weight:700;
      color:#0f172a;
      letter-spacing:.02em;
      text-align:right;
      line-height:1;
    }
    .status-expanded-metric-value .unit{
      margin-left:6px;
      font-size:12px;
      color:#64748b;
      letter-spacing:.12em;
      text-transform:uppercase;
      font-weight:700;
    }
    .status-expanded-metric.is-alert{
      border-color:rgba(239,68,68,0.55);
      box-shadow:none;
    }
    .status-expanded-metric.is-alert .status-expanded-metric-value{
      color:#b91c1c;
      font-size:11px;
      line-height:1.25;
      text-align:left;
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
      overflow:hidden;
      word-break:keep-all;
    }
    .status-gyro-canvas--3d > .status-expanded-metrics{
      display:none;
      z-index:4;
    }
    .status-gyro-canvas--3d.is-expanded > .status-expanded-metrics{
      display:flex;
    }
    .status-map-panel.is-expanded .status-map-hud{
      top:calc(16px + env(safe-area-inset-top, 0px));
      left:calc(16px + env(safe-area-inset-left, 0px));
      right:calc(12px + env(safe-area-inset-right, 0px));
      z-index:1203;
    }
    .status-map-panel:not(.is-expanded) #statusMapRecenterBtn,
    .status-map-panel:not(.is-expanded) #statusMapCopyBtn{
      display:none !important;
    }
    .status-map-panel.is-expanded #statusMapExpandBtn{
      display:none !important;
    }
    .status-map-rocket-icon{
      background:transparent;
      border:none;
      overflow:visible !important;
      will-change:transform;
    }
    .status-map-rocket-pill{
      --rocket-size:44px;
      --rocket-expanded-width:214px;
      pointer-events:auto;
      appearance:none;
      -webkit-appearance:none;
      width:var(--rocket-size);
      min-width:var(--rocket-size);
      max-width:var(--rocket-size);
      height:var(--rocket-size);
      padding:0;
      margin:0;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.56);
      background:linear-gradient(180deg,rgba(255,255,255,0.72),rgba(255,255,255,0.24));
      display:grid;
      grid-template-columns:var(--rocket-size) minmax(0,1fr);
      align-items:center;
      justify-items:center;
      overflow:hidden;
      cursor:pointer;
      backdrop-filter:blur(10px) saturate(170%);
      box-shadow:0 8px 18px rgba(15,23,42,0.2), inset 0 1px 0 rgba(255,255,255,0.64);
      transform-origin:left center;
      transition:width .24s ease,max-width .24s ease,border-radius .24s ease,background .24s ease,border-color .24s ease,box-shadow .24s ease;
    }
    .status-map-rocket-pill:hover:not(:disabled),
    .status-map-rocket-pill:active:not(:disabled){
      transform:none;
    }
    .status-map-rocket-pill.is-expanded{
      width:var(--rocket-expanded-width);
      min-width:var(--rocket-expanded-width);
      max-width:var(--rocket-expanded-width);
      border-radius:24px;
      justify-items:start;
      border-color:rgba(148,163,184,0.4);
      background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(246,249,255,0.95));
      box-shadow:0 10px 24px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
    }
    .status-map-rocket-pill .status-map-rocket-meta{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      justify-content:center;
      gap:0;
      min-width:0;
      opacity:0;
      transform:translateX(-10px);
      pointer-events:none;
      transition:opacity .2s ease,transform .22s ease,padding .22s ease;
    }
    .status-map-rocket-pill .status-map-rocket-meta > span{
      display:block;
      width:100%;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .status-map-rocket-pill.is-expanded .status-map-rocket-meta{
      opacity:1;
      transform:translateX(0);
      padding:0 12px 0 4px;
    }
    .status-map-rocket-kicker{
      font-size:8px;
      font-weight:800;
      letter-spacing:.16em;
      text-transform:uppercase;
      color:#2563eb;
      line-height:1.16;
    }
    .status-map-rocket-title{
      margin-top:1px;
      font-size:12px;
      font-weight:800;
      letter-spacing:.02em;
      color:#0f172a;
      line-height:1.14;
    }
    .status-map-rocket-mission{
      margin-top:1px;
      font-size:9px;
      font-weight:700;
      letter-spacing:.02em;
      color:#64748b;
      line-height:1.16;
      text-transform:uppercase;
    }
    .status-map-rocket-circle{
      width:34px;
      height:34px;
      margin-left:0;
      border-radius:50%;
      backdrop-filter:blur(10px) saturate(175%);
      background:linear-gradient(180deg,rgba(255,255,255,0.66),rgba(255,255,255,0.2));
      border:1px solid rgba(255,255,255,0.6);
      box-shadow:0 2px 8px rgba(15,23,42,0.15), inset 0 1px 0 rgba(255,255,255,0.72);
      display:flex;
      align-items:center;
      justify-content:center;
      justify-self:center;
      position:relative;
      transition:width .22s ease,height .22s ease,margin .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease;
    }
    .status-map-rocket-circle .emoji{
      font-size:18px;
      line-height:1;
      filter:drop-shadow(0 1px 1px rgba(0,0,0,0.22));
      display:flex;
      align-items:center;
      justify-content:center;
      width:100%;
      height:100%;
      position:absolute;
      inset:0;
      opacity:1;
      transform:scale(1) rotate(0deg);
      transition:opacity .2s ease,transform .2s ease;
    }
    .status-map-info-icon{
      width:auto;
      height:auto;
      border-radius:0;
      display:block;
      font-size:24px;
      font-weight:700;
      font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;
      color:#1d4ed8;
      background:none;
      border:none;
      box-shadow:none;
      text-transform:lowercase;
      line-height:1;
      position:absolute;
      left:50%;
      top:50%;
      transform:translate(-50%,-52%) scale(.72);
      opacity:0;
      transition:opacity .2s ease,transform .2s ease;
    }
    .status-map-rocket-pill.is-expanded .status-map-rocket-circle{
      width:18px;
      height:18px;
      margin-left:11px;
      justify-self:start;
      background:transparent;
      border-color:transparent;
      box-shadow:none;
      backdrop-filter:none;
    }
    .status-map-rocket-pill.is-expanded .status-map-rocket-circle .emoji{
      opacity:0;
      transform:scale(.6) rotate(16deg);
    }
    .status-map-rocket-pill.is-expanded .status-map-rocket-circle .status-map-info-icon{
      opacity:1;
      transform:translate(-50%,-52%) scale(1);
    }
    .status-runtime-cache{display:none!important}
    .status-card .status-left{display:flex;flex-direction:column;gap:12px}
    .status-card .status-title-stack{
      padding-left:12px;
      border-left:2px solid rgba(59,130,246,0.3);
    }
    .status-card .status-main-line{
      background:transparent;
      border:none;
      border-radius:0;
      padding:0;
      box-shadow:none;
    }
    .status-card #statusText{
      font-size:clamp(18px,2.5vw,22px);
      color:#1f2937;
      line-height:1.2;
    }
    .status-card #statusPill{
      padding:4px 10px;
      font-size:10px;
      letter-spacing:.16em;
      border-radius:999px;
      box-shadow:0 6px 12px rgba(15,23,42,0.12);
    }
    #statusText{color:#4b5563}
    .status-line{width:100%;justify-content:space-between}
    .status-subline{margin-top:6px;display:flex;gap:10px;align-items:center}
    .status-sub-label{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:#94a3b8}
    .status-sub-value{font-size:13px;font-weight:700;color:#1f2937}
    .status-gyro{display:none;flex:0 0 auto;align-items:center;align-self:center}
    .status-gyro-title{
      font-size:11px;
      letter-spacing:.14em;
      text-transform:uppercase;
      font-weight:700;
      color:#374151;
    }
    .status-gyro-canvas{
      width:180px;
      height:180px;
      border-radius:var(--radius-xl);
      display:block;
      position:relative;
      overflow:hidden;
    }
    .status-flight-preview{
      position:relative;
    }
    .status-gyro-canvas--3d{
      background:
        radial-gradient(120% 100% at 50% 0%, #dce6f1 0%, #cad8e8 68%),
        linear-gradient(180deg,#e3ebf4,#cfdae9);
      border:1px solid rgba(120,142,166,0.42);
      box-shadow:0 10px 18px rgba(15,23,42,0.12);
      cursor:zoom-in;
      outline:none;
    }
    .status-gyro-canvas--3d:focus-visible{
      box-shadow:0 0 0 2px rgba(59,130,246,0.4), 0 10px 18px rgba(15,23,42,0.12);
    }
    .gyro3d-canvas{
      width:100%;
      height:100%;
      display:block;
      background:transparent;
    }
    .status-gyro-canvas--3d.is-expanded{
      position:fixed;
      left:var(--gyro3d-expand-left, 0px);
      top:var(--gyro3d-expand-top, 0px);
      right:var(--gyro3d-expand-right, 0px);
      bottom:var(--gyro3d-expand-bottom, 0px);
      width:auto !important;
      height:auto !important;
      border-radius:0;
      border:0;
      box-shadow:none;
      cursor:grab;
      z-index:1205;
      background:
        radial-gradient(120% 100% at 50% 0%, #d6e2ef 0%, #c4d3e4 66%),
        linear-gradient(180deg,#dde7f2,#cbd8e8);
    }
    .status-gyro-canvas--3d.is-expanded::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:148px;
      pointer-events:none;
      z-index:3;
      background:linear-gradient(180deg, rgba(15,23,42,0.62) 0%, rgba(15,23,42,0.30) 50%, rgba(15,23,42,0.08) 72%, rgba(15,23,42,0) 100%);
    }
    .status-gyro-canvas--3d.is-expanded.is-dragging{cursor:grabbing}
    html.gyro3d-expanded body{overflow:hidden}
    @media(max-width:900px){
      .status-gyro-canvas--3d.is-expanded{
        border-radius:0;
      }
      .status-expanded-metrics{
        right:calc(12px + env(safe-area-inset-right, 0px));
        bottom:calc(12px + env(safe-area-inset-bottom, 0px));
        gap:8px;
      }
      .status-expanded-metric{
        width:min(158px, calc((100vw - 36px) / 2));
        min-height:84px;
        padding:14px 14px 12px;
      }
      .status-expanded-metric-value{
        font-size:16px;
      }
      .status-expanded-metric-value .unit{font-size:10px}
    }
    html[data-theme="dark"] .status-gyro-canvas--3d{
      background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        radial-gradient(140% 110% at 50% 0%, rgba(66,94,134,0.18), rgba(6,14,27,0.16) 66%),
        rgba(18,18,18,.08);
      border:1px solid rgba(255,255,255,.18);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
      backdrop-filter:saturate(175%) blur(64px);
      -webkit-backdrop-filter:saturate(175%) blur(64px);
    }
    html[data-theme="dark"] .status-gyro-canvas--3d:focus-visible{
      box-shadow:0 0 0 2px rgba(125,211,252,0.55), 0 18px 30px rgba(2,6,23,0.44);
    }
    html[data-theme="dark"] .status-gyro-canvas--3d.is-expanded{
      background:
        radial-gradient(140% 110% at 50% 0%, rgba(66,94,134,0.46), rgba(6,14,27,0.94) 66%),
        linear-gradient(165deg, rgba(12,24,41,0.96), rgba(4,9,18,0.96));
      border-color:rgba(96,165,250,0.54);
      box-shadow:none;
    }
    html[data-theme="dark"] .status-gyro-canvas--3d.is-expanded::before{
      background:linear-gradient(180deg, rgba(2,6,23,0.94) 0%, rgba(2,6,23,0.64) 50%, rgba(2,6,23,0.18) 72%, rgba(2,6,23,0) 100%);
    }
    .gyro3d-expanded-hud{
      position:absolute;
      top:calc(12px + env(safe-area-inset-top, 0px));
      left:calc(var(--gyro3d-hud-left, 92px) + env(safe-area-inset-left, 0px));
      right:calc(16px + env(safe-area-inset-right, 0px));
      display:none;
      pointer-events:none;
      z-index:4;
    }
    .status-gyro-canvas--3d.is-expanded .gyro3d-expanded-hud{
      display:block;
    }
    .gyro3d-expanded-topbar{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:16px;
      padding:12px 14px;
      background:transparent;
      border:0;
      border-radius:0;
      box-shadow:none;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      pointer-events:none;
    }
    .gyro3d-expanded-left{
      flex:1 1 auto;
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .gyro3d-expanded-label{
      font-size:12px;
      font-weight:700;
      letter-spacing:.32em;
      text-transform:uppercase;
      color:rgba(226,232,240,0.76);
      line-height:1;
      text-shadow:0 2px 10px rgba(2,6,23,0.24);
    }
    .gyro3d-expanded-mainline{
      align-items:flex-end;
      gap:14px;
      flex-wrap:wrap;
    }
    .gyro3d-expanded-countdown{
      font-family:SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:clamp(26px,3.05vw,34px);
      font-weight:600;
      letter-spacing:.06em;
      font-variant-numeric:tabular-nums;
      font-feature-settings:"tnum" 1;
      color:#f8fafc;
      line-height:.98;
      text-shadow:0 4px 18px rgba(2,6,23,0.34);
      white-space:nowrap;
    }
    .gyro3d-expanded-mainline .countdown-inline-status{
      min-height:30px;
      padding-left:13px;
      border-left:1px solid rgba(226,232,240,0.18);
      gap:7px;
    }
    .gyro3d-expanded-mainline .countdown-inline-status-text{
      font-size:clamp(14px,1.45vw,17px);
      color:#e2e8f0;
      text-shadow:0 2px 10px rgba(2,6,23,0.24);
      white-space:nowrap;
    }
    .gyro3d-expanded-hud-pill{
      min-height:24px;
      padding:1px 10px;
      font-size:9px;
      font-weight:800;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .gyro3d-expanded-hud-pill.status-ready{
      background:#16a34a;
      color:#f0fdf4;
      border-color:#4ade80;
      box-shadow:0 6px 14px rgba(22,163,74,0.2);
    }
    .gyro3d-expanded-hud-pill.status-count{
      background:rgba(245,158,11,0.22);
      color:#fef3c7;
      border-color:rgba(251,191,36,0.38);
    }
    .gyro3d-expanded-hud-pill.status-seq{
      background:rgba(37,99,235,0.22);
      color:#dbeafe;
      border-color:rgba(96,165,250,0.4);
    }
    .gyro3d-expanded-hud-pill.status-fire,
    .gyro3d-expanded-hud-pill.status-abort,
    .gyro3d-expanded-hud-pill.status-lock,
    .gyro3d-expanded-hud-pill.status-loadcell{
      background:rgba(239,68,68,0.22);
      color:#fee2e2;
      border-color:rgba(248,113,113,0.42);
    }
    .gyro3d-expanded-hud-pill.status-disc{
      background:rgba(30,41,59,0.72);
      color:#e2e8f0;
      border-color:rgba(148,163,184,0.34);
    }
    .gyro3d-expanded-statusbar{
      align-self:flex-start;
      flex-shrink:0;
      gap:8px;
    }
    .gyro3d-expanded-statusbar .status-conn-block,
    .gyro3d-expanded-statusbar .status-battery{
      height:22px;
      padding:0 9px;
    }
    .gyro3d-expanded-statusbar .status-conn-text,
    .gyro3d-expanded-statusbar .battery-text{
      font-size:10px;
      font-weight:600;
    }
    .gyro3d-expanded-statusbar .battery-icon{
      width:26px;
      height:12px;
    }
    html[data-theme="dark"] .gyro3d-expanded-topbar{
      background:transparent;
      border:0;
      box-shadow:none;
    }
    html[data-theme="dark"] .gyro3d-expanded-label{color:rgba(226,232,240,0.74)}
    html[data-theme="dark"] .gyro3d-expanded-countdown{color:#f8fafc}
    html[data-theme="dark"] .gyro3d-expanded-mainline .countdown-inline-status{
      border-left-color:rgba(226,232,240,0.16);
    }
    html[data-theme="dark"] .gyro3d-expanded-mainline .countdown-inline-status-text{color:#e2e8f0}
    html[data-theme="dark"] .gyro3d-expanded-statusbar .status-conn-block,
    html[data-theme="dark"] .gyro3d-expanded-statusbar .status-battery{
      background:rgba(15,23,42,0.72);
      border-color:rgba(148,163,184,0.42);
      box-shadow:none;
    }
    html[data-theme="dark"] .gyro3d-expanded-statusbar .status-conn-text,
    html[data-theme="dark"] .gyro3d-expanded-statusbar .battery-text{color:#e2e8f0}
    html[data-theme="dark"] .gyro3d-expanded-statusbar .battery-icon{
      border-color:#e2e8f0;
      opacity:.75;
    }
    html[data-theme="dark"] .gyro3d-expanded-statusbar .battery-icon::after{
      background:#e2e8f0;
      opacity:.65;
    }
    html[data-theme="dark"] .gyro3d-expanded-statusbar .battery-fill{
      background:#e2e8f0;
      opacity:.6;
    }
    @media(max-width:900px){
      .status-map-panel.is-expanded .status-map-hud{
        top:calc(12px + env(safe-area-inset-top, 0px));
        left:calc(12px + env(safe-area-inset-left, 0px));
        right:calc(12px + env(safe-area-inset-right, 0px));
        bottom:calc(12px + env(safe-area-inset-bottom, 0px));
      }
      .gyro3d-expanded-hud{
        top:calc(12px + env(safe-area-inset-top, 0px));
        left:calc(var(--gyro3d-hud-left, 12px) + env(safe-area-inset-left, 0px));
        right:calc(12px + env(safe-area-inset-right, 0px));
      }
      .gyro3d-expanded-topbar{
        padding:10px 12px;
        gap:10px;
      }
      .gyro3d-expanded-countdown{
        font-size:clamp(26px,3.05vw,34px);
      }
      .gyro3d-expanded-mainline .countdown-inline-status{
        min-height:30px;
        padding-left:13px;
      }
      .gyro3d-expanded-mainline .countdown-inline-status-text{
        font-size:clamp(14px,1.45vw,17px);
      }
      .gyro3d-expanded-statusbar .status-conn-block,
      .gyro3d-expanded-statusbar .status-battery{
        height:22px;
        padding:0 9px;
      }
      .gyro3d-expanded-statusbar .status-conn-text,
      .gyro3d-expanded-statusbar .battery-text{font-size:10px}
      .gyro3d-expanded-statusbar .battery-icon{width:26px;height:12px}
    }
    @media(max-width:640px){
      .status-map-panel.is-expanded .status-map-hud{
        top:calc(12px + env(safe-area-inset-top, 0px));
      }
      .gyro3d-expanded-topbar{
        flex-direction:column;
        align-items:flex-start;
      }
      .gyro3d-expanded-statusbar{
        justify-content:flex-start;
      }
    }
    .status-gyro-canvas--navball{
      border:none;
      background:#2f4f73;
      box-shadow:none;
    }
    .preview-navball .status-gyro-canvas--3d{display:none}
    .preview-3d .status-gyro-canvas--navball{display:none}
    .mode-flight .status-top{gap:16px;align-items:center}
    .mode-flight .status-left{flex:1 1 auto;max-width:520px}
    .mode-flight .status-gyro{display:flex}
    .status-motor-grid{
      margin-top:8px;
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:6px 12px;
      max-width:320px;
      padding:6px 0;
    }
    .status-divider{
      height:1px;
      background:rgba(148,163,184,0.22);
      margin:10px 0 6px;
    }
    .status-motor-item{
      display:flex;
      flex-direction:column;
      gap:3px;
    }
    .status-motor-item .label{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:#94a3b8;
      font-weight:600;
    }
    .status-motor-item .value{
      font-size:12px;
      font-weight:700;
      color:#111827;
      letter-spacing:.01em;
    }
    .imu-card{
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.35);
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
    }
    .imu-card::before,.imu-card::after{content:none}
    .imu-grid{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:10px;
      margin-top:8px;
    }
    .imu-item{display:flex;flex-direction:column;gap:4px}
    .imu-item .label{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:#94a3b8;
      font-weight:600;
    }
    .imu-item .value{
      font-size:16px;
      font-weight:700;
      color:#111827;
    }
    .imu-card .row-divider{
      height:1px;
      background:rgba(148,163,184,0.18);
      margin:10px 0 6px;
    }
    .imu-hint{
      margin-top:6px;
      font-size:10px;
      color:var(--text-soft);
    }
    .gyro-stage{
      margin-top:12px;
      display:flex;
      align-items:stretch;
      justify-content:space-between;
      gap:16px;
      padding:12px 0 6px;
    }
    .gyro-left{
      flex:0 0 auto;
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .gyro-right{
      flex:1;
      min-width:220px;
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .gyro-right .imu-grid{margin-top:0}
    .gyro-left .navball-wrap{margin-top:6px}
    .gyro-section{
      background:#f9fafb;
      border:1px solid rgba(148,163,184,0.25);
      border-radius:12px;
      padding:10px 12px;
    }
    .gyro-section-title{
      font-size:11px;
      letter-spacing:.14em;
      text-transform:uppercase;
      font-weight:700;
      color:#374151;
      margin-bottom:8px;
    }
    .gyro-status{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin:4px 0 10px;
      padding:0;
      border-radius:0;
      background:transparent;
      border:0;
    }
    .gyro-status-left{display:flex;align-items:center;gap:10px;min-width:0}
    .gyro-status-pill{
      padding:3px 8px;
      border-radius:999px;
      font-size:9px;
      font-weight:700;
      letter-spacing:.1em;
      text-transform:uppercase;
      border:1px solid rgba(148,163,184,0.35);
      background:#f3f4f6;
      color:#4b5563;
      white-space:nowrap;
    }
    .gyro-status-text{
      font-size:12px;
      font-weight:600;
      color:#1f2937;
      min-width:0;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .gyro-conn-pill{
      display:flex;
      align-items:center;
      gap:6px;
      font-size:10px;
      font-weight:700;
      letter-spacing:.08em;
      text-transform:uppercase;
      color:#64748b;
      white-space:nowrap;
    }
    .gyro-conn-pill .dot{
      width:8px;
      height:8px;
      border-radius:999px;
      background:#94a3b8;
      box-shadow:0 0 0 4px rgba(148,163,184,0.18);
    }
    .gyro-conn-pill.ok .dot{
      background:var(--ok);
      box-shadow:0 0 0 4px var(--ok-soft);
    }
    .gyro-hidden{
      position:absolute;
      width:0;
      height:0;
      overflow:hidden;
      visibility:hidden;
      pointer-events:none;
    }
    .gyro-hidden canvas{
      width:240px;
      height:240px;
    }
    .gyro-meta{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
      margin:0;
    }
    .gyro-meta-item{
      background:rgba(248,250,252,0.95);
      border:1px solid rgba(148,163,184,0.35);
      border-radius:12px;
      padding:8px 10px;
      display:flex;
      flex-direction:column;
      gap:6px;
      min-width:0;
    }
    .gyro-meta-label{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:#94a3b8;
      font-weight:600;
    }
    .gyro-meta-value{
      font-size:12px;
      font-weight:700;
      color:#111827;
      min-width:0;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .navball-wrap{
      position:relative;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:10px;
      border-radius:12px;
      width:fit-content;
      max-width:100%;
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.3);
      overflow:hidden;
    }
    .navball-canvas{
      width:240px;
      height:240px;
      display:block;
    }
    .gyro-charts{
      display:flex;
      gap:10px;
      align-items:stretch;
    }
    .gyro-charts .chart-box{flex:1;min-width:0}
    @media(max-width:900px){
      .gyro-charts{flex-direction:column}
    }
    @media(max-width:900px) and (pointer:coarse){
      .gyro-stage{flex-direction:column;align-items:stretch}
      .gyro-left,.gyro-right{width:100%}
      .mode-flight .status-gyro{display:none}
      .mode-flight .main-card.status-card.status-map-only .status-map-layout{
        display:block !important;
        grid-template-columns:1fr !important;
        grid-template-areas:"map" !important;
      }
      .mode-flight .main-card.status-card.status-map-only .status-map-panel{display:none !important}
      html.mobile-flight-map-preview.mode-flight .main-card.status-card.status-map-only .status-map-panel{
        display:block !important;
        width:100% !important;
        aspect-ratio:16 / 9 !important;
        height:auto !important;
        min-height:0 !important;
        margin-top:0 !important;
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview{
        display:flex !important;
        flex-direction:column !important;
        gap:14px !important;
        width:100% !important;
        aspect-ratio:auto !important;
        min-height:0 !important;
        height:auto !important;
        align-items:stretch !important;
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview .status-gyro-canvas{
        width:100% !important;
        height:auto !important;
        aspect-ratio:16 / 9 !important;
        border-radius:var(--radius-xl) !important;
        overflow:hidden !important;
      }
      html.mobile-flight-map-preview.mode-flight .main-card.status-card.status-map-only .status-flight-preview{
        display:none !important;
      }
      html.mobile-flight-map-preview.mode-flight .main-card.status-card.status-map-only .status-map-card{
        max-width:calc(100% - 44px);
      }
      html.mobile-flight-map-preview.mode-flight .main-card.status-card.status-map-only .status-map-actions{
        display:none;
      }
      html.mobile-flight-map-preview.mode-flight .status-map-return-actions{
        display:flex;
        gap:6px;
      }
      html.mobile-flight-map-preview.mode-flight #statusMapReturnGyroBtn{
        display:inline-flex !important;
        align-items:center;
        justify-content:center;
        height:30px;
        border-radius:8px !important;
        font-size:11px;
        letter-spacing:.01em;
      }
      html.mobile-flight-map-preview.mode-flight #statusMapReturnGyroBtn{
        width:auto;
        min-width:116px;
        padding:0 10px;
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview .status-gyro-actions{
        display:flex;
        gap:6px;
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview .status-gyro-btn--map-open{
        display:inline-flex;
      }
      html.status-map-expanded .status-gyro-btn--map-open,
      html.mobile-flight-map-preview .status-gyro-btn--map-open{
        display:none !important;
      }
    }
    .gyro-canvas{
      width:240px;
      height:240px;
      display:block;
      border-radius:12px;
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.3);
      flex:1;
    }
    .gyro-panel{
      padding:10px 12px;
      height:280px;
      box-sizing:border-box;
      display:flex;
      flex-direction:column;
      border-radius:12px;
      background:#f9fafb;
      border:1px solid rgba(148,163,184,0.25);
    }
    .gyro-panel-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      margin-bottom:10px;
    }
    .gyro-panel-title{
      font-size:12px;
      font-weight:700;
      letter-spacing:.14em;
      text-transform:uppercase;
      color:#1f2937;
    }
    .gyro-legend{
      display:flex;
      align-items:center;
      gap:10px;
      font-size:10px;
      color:var(--text-soft);
    }
    .gyro-legend span{
      display:inline-flex;
      align-items:center;
      gap:6px;
    }
    .gyro-dot{
      width:8px;
      height:8px;
      border-radius:999px;
      background:#94a3b8;
    }
    @media(max-width:980px){
      .status-motor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .imu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    #statusText{font-size:clamp(18px,2.4vw,20px);font-weight:600;color:#4b5563}
    #statusPill{padding:3px 8px;border-radius:8px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border:1px solid rgba(148,163,184,0.35);box-shadow:none}
    .status-ready{background:#16a34a;color:#f0fdf4;border-color:#4ade80}
    .status-count{background:rgba(245,158,11,0.10);color:#b45309;border-color:rgba(245,158,11,0.35)}
    .status-loadcell{background:rgba(239,68,68,0.10);color:#b91c1c;border-color:rgba(239,68,68,0.4)}
    .status-parachute{background:rgba(20,184,166,0.14);color:#0f766e;border-color:rgba(20,184,166,0.42)}
    .status-fire{background:rgba(239,68,68,0.08);color:#b91c1c;border-color:rgba(239,68,68,0.35)}
    .status-seq{background:rgba(37,99,235,0.10);color:#1d4ed8;border-color:rgba(37,99,235,0.35)}
    .status-abort{background:rgba(239,68,68,0.12);color:#b91c1c;border-color:rgba(239,68,68,0.45)}
    .status-disc{background:#f3f4f6;color:#4b5563;border-color:rgba(148,163,184,0.35)}
    .status-lock{background:rgba(239,68,68,0.08);color:#991b1b;border-color:rgba(239,68,68,0.45)}
    #statusPill.status-fire,
    #statusPill.status-abort,
    #statusPill.status-lock,
    #statusPill.status-loadcell{
      animation:statusBadgePulse 1.1s ease-in-out infinite;
      box-shadow:0 0 0 3px rgba(239,68,68,0.14);
    }
    @keyframes statusBadgePulse{
      0%,100%{transform:translateY(0);filter:saturate(1)}
      50%{transform:translateY(-1px);filter:saturate(1.15)}
    }
    .countdown-wrap{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .status-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
    .status-left{flex:1;min-width:0}
    .status-metrics{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:20px}
    .status-metric{
      background:#f9fafb;
      border:1px solid rgba(148,163,184,0.3);
      border-radius:10px;
      padding:12px 14px;
      min-width:112px;
      min-height:76px;
      display:flex;
      flex-direction:column;
      justify-content:center;
    }
    .status-metric.is-alert{
      border-color:rgba(239,68,68,0.7);
      box-shadow:0 0 0 1px rgba(239,68,68,0.12);
    }
    .status-metric.is-alert.is-alert-blink{
      animation:loadcellAlertBlink 1.1s ease-in-out infinite;
    }
    .status-metric.is-alert.loadcell-blink{
      animation:loadcellAlertBlinkStrong 1s ease-in-out infinite;
    }
    .status-metric.is-alert .status-metric-value{
      color:#b91c1c;
      font-size:10px;
      line-height:1.2;
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
      overflow:hidden;
      text-align:left;
      word-break:keep-all;
    }
    @keyframes loadcellAlertBlink{
      0%,100%{border-color:rgba(239,68,68,0.35);box-shadow:0 0 0 1px rgba(239,68,68,0.06)}
      50%{border-color:rgba(239,68,68,0.9);box-shadow:0 0 0 2px rgba(239,68,68,0.2)}
    }
    @keyframes loadcellAlertBlinkStrong{
      0%,100%{
        border-color:rgba(239,68,68,0.45);
        box-shadow:0 0 0 1px rgba(239,68,68,0.08);
        background:linear-gradient(135deg,rgba(248,113,113,0.08),rgba(239,68,68,0.04));
      }
      50%{
        border-color:rgba(239,68,68,0.95);
        box-shadow:0 0 0 2px rgba(239,68,68,0.25);
        background:linear-gradient(135deg,rgba(248,113,113,0.2),rgba(239,68,68,0.12));
      }
    }
    .status-metric-label{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:#94a3b8;margin-bottom:6px}
    .status-metric-value{font-size:18px;font-weight:700;letter-spacing:.02em;color:#111827}
    .status-metric-value .unit{margin-left:4px;font-size:10px;color:#64748b;letter-spacing:.1em;text-transform:uppercase}
    .status-meta-row{margin-top:16px}
    .status-card .status-meta-row{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:10px;
      background:transparent;
      border:none;
      border-radius:0;
      padding:8px 0 0;
      box-shadow:none;
      margin-top:0;
    }
    .status-card .status-meta-row .pill{
      width:100%;
      justify-content:flex-start;
      align-items:flex-start;
      flex-direction:column;
      gap:2px;
      background:transparent;
      border:none;
      font-weight:700;
      letter-spacing:.08em;
      color:#1f2937;
      padding:0;
      min-height:auto;
    }
    .status-card .status-meta-row .status-meta-kicker{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:#64748b;
      font-weight:700;
    }
    .status-card .status-meta-row .status-meta-pill > span:last-child{
      font-size:12px;
      font-weight:800;
      color:#0f172a;
      letter-spacing:.04em;
    }
    .status-slab{
      background:rgba(248,250,252,0.92);
      border:1px solid rgba(148,163,184,0.35);
      border-radius:14px;
      padding:12px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.8);
    }
    .status-slab-title{
      font-size:10px;
      letter-spacing:.2em;
      text-transform:uppercase;
      font-weight:700;
      color:#64748b;
      margin-bottom:8px;
    }
    .status-slab-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }
    .status-slab-item{
      background:linear-gradient(135deg,#ffffff,#eef2ff);
      border:1px dashed rgba(148,163,184,0.55);
      border-radius:12px;
      padding:10px 12px;
      display:flex;
      flex-direction:column;
      gap:6px;
      min-width:0;
    }
    .status-slab-label{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      font-weight:700;
      color:#94a3b8;
    }
    .status-slab-value{
      font-size:16px;
      font-weight:700;
      color:#0f172a;
      letter-spacing:.04em;
    }
    .quick-metrics{
      margin-top:0;
      margin-bottom:12px;
      gap:14px;
    }
    .quick-data-body .quick-metrics{margin-top:6px}
    .quick-data-body{
      display:flex;
      gap:14px;
      align-items:stretch;
    }
    .quick-data-body .quick-metrics{
      flex:0 0 24%;
      flex-direction:column;
      align-items:stretch;
      gap:14px;
      height:100%;
      margin-bottom:0;
    }
    .quick-data-body .quick-metrics .status-metric{flex:1;min-height:72px;height:82px;overflow:hidden}
    .quick-data-body .quick-metrics .status-metric-value{text-align:right;margin-top:6px}
    .quick-data-body .item-grid{
      flex:1 1 auto;
      min-width:0;
      grid-template-columns:repeat(2,minmax(0,1fr));
      align-content:stretch;
      grid-auto-rows:1fr;
    }
    .item.status-time-progress{
      border-color:rgba(245,158,11,0.6);
      background:linear-gradient(135deg,rgba(245,158,11,0.08),rgba(245,158,11,0.03));
      box-shadow:0 4px 12px rgba(245,158,11,0.15);
    }
    .item.status-time-ready{
      border-color:rgba(34,197,94,0.5);
      box-shadow:0 0 0 1px rgba(34,197,94,0.12);
      animation:loadcellReadyBlink 1s ease-in-out infinite;
    }
    @keyframes loadcellReadyBlink{
      0%,100%{
        border-color:rgba(34,197,94,0.45);
        box-shadow:0 0 0 1px rgba(34,197,94,0.12);
        background:linear-gradient(135deg,rgba(22,163,74,0.08),rgba(34,197,94,0.04));
      }
      50%{
        border-color:rgba(16,185,129,0.8);
        box-shadow:0 0 0 2px rgba(16,185,129,0.18);
        background:linear-gradient(135deg,rgba(22,163,74,0.16),rgba(34,197,94,0.12));
      }
    }
    @media(max-width:980px){
      .quick-data-body{
        flex-direction:column;
      }
      .quick-data-body .quick-metrics{
        flex:1 1 auto;
        margin-bottom:10px;
      }
    }
    @media(max-width:980px){
      .status-top{flex-direction:column}
    .status-metrics{width:100%;justify-content:flex-start}
      .status-card .status-meta-row{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    .countdown-label-block{display:flex;flex-direction:column;gap:2px}
    .countdown-caption{font-size:11px;color:var(--text-soft);letter-spacing:.14em;text-transform:uppercase}
    .countdown-sub{font-size:12px;color:var(--text-soft)}
    .countdown-mobile{
      display:none;
      font-family:SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:clamp(28px,9vw,40px);
      font-weight:600;letter-spacing:.05em;color:var(--danger);
      text-align:left;min-width:120px
    }
    .status-left .countdown-mobile{
      display:block;
      font-size:16px;
      letter-spacing:.08em;
      color:#b91c1c;
      min-width:0;
    }
    #countdown{
      font-family:SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:clamp(46px,7vw,64px);font-weight:800;letter-spacing:.05em;color:var(--danger);
      text-align:right;min-width:120px
    }
    #countdown span{font-size:14px;margin-left:4px;color:var(--text-soft);letter-spacing:0}
    .pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
    .pill{
      padding:5px 12px;border-radius:var(--radius-pill);font-size:11px;
      border:1px solid rgba(148,163,184,0.5);background:rgba(249,250,251,0.96);color:var(--text-soft);
      display:inline-flex;align-items:center;gap:4px;white-space:nowrap
    }
    .pill-toggle{padding:4px 10px;font-size:10px;min-width:42px;justify-content:center;cursor:pointer}
    .pill-toggle.is-on{
      background:rgba(34,197,94,0.16);
      color:#16a34a;
      border-color:rgba(34,197,94,0.5);
    }
    .pill-toggle.is-off{
      background:rgba(148,163,184,0.2);
      color:#4b5563;
      border-color:rgba(148,163,184,0.5);
    }
    .pill-toggle.is-pending{
      cursor:progress;
      animation:board-control-pending 1s ease-in-out infinite;
    }
    @keyframes board-control-pending{
      0%,100%{opacity:1}
      50%{opacity:.55}
    }
    .hidden-input{display:none}
    .pill strong{color:var(--text-main);font-weight:600;margin-right:4px}
    .pill-sep{opacity:.55;margin:0 2px}
    .pill-green{background:rgba(22,163,74,0.12);color:var(--ok);border-color:rgba(22,163,74,0.4)}
    .pill-red{background:rgba(248,113,113,0.12);color:var(--danger);border-color:rgba(248,113,113,0.4)}
    .pill-gray{background:#e5e7eb;color:#374151;border-color:rgba(148,163,184,0.7)}
    .ign-metrics{margin-top:4px;font-size:11px;color:var(--text-soft);display:flex;gap:10px}
    .ign-metrics span{white-space:nowrap}
    .item-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:6px}
    .item{
      display:flex;justify-content:space-between;align-items:center;
      padding:7px 10px;border-radius:var(--radius-md);
      background:linear-gradient(135deg,#f9fafb,#eef2ff);
      border:1px solid rgba(209,213,219,0.9)
    }
    .item.status-ok{
      background:linear-gradient(135deg,rgba(34,197,94,0.14),rgba(16,185,129,0.08));
      border-color:rgba(34,197,94,0.45);
    }
    .item.status-warn{
      background:linear-gradient(135deg,rgba(245,158,11,0.16),rgba(251,191,36,0.1));
      border-color:rgba(245,158,11,0.5);
    }
    .item.status-bad{
      background:linear-gradient(135deg,rgba(239,68,68,0.16),rgba(248,113,113,0.1));
      border-color:rgba(239,68,68,0.55);
    }
    .item-quick-state.state-lockout{
      background:linear-gradient(135deg,rgba(248,113,113,0.18),rgba(239,68,68,0.08));
      border-color:rgba(239,68,68,0.6);
      box-shadow:0 0 0 1px rgba(239,68,68,0.12);
      animation:loadcellAlertBlinkStrong 1s ease-in-out infinite;
    }
    .item.relay-lockout{
      background:linear-gradient(135deg,rgba(248,113,113,0.08),rgba(239,68,68,0.04));
      border-color:rgba(239,68,68,0.7);
      box-shadow:0 0 0 1px rgba(239,68,68,0.12);
      animation:loadcellAlertBlinkStrong 1s ease-in-out infinite;
    }
    .label{
      font-size:12px;color:#475569;font-weight:600;letter-spacing:.01em;
      display:flex;align-items:center;gap:8px;
    }
    .label-icon{
      width:6px;height:6px;border-radius:999px;
      background:var(--accent);
      box-shadow:0 0 0 4px var(--accent-soft);
      animation:pulse-dot 3s ease-in-out infinite;
    }
    .value{
      display:flex;justify-content:flex-end;align-items:baseline;gap:7px;
      font-size:0;font-weight:600;color:var(--text-main);
    }
    .value .num{font-size:clamp(17px,2.2vw,21px);font-weight:650;letter-spacing:.01em;}
    .value .unit{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#64748b;}
    .item-quick-state .label{
      font-size:10px;
      letter-spacing:.04em;
    }
    #quick-state{flex:1;min-width:0;justify-content:flex-end}
    #quick-state .num{
      font-size:clamp(7px,0.9vw,10px);
      letter-spacing:0;
      display:-webkit-box;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
      overflow:hidden;
      white-space:normal;
      word-break:keep-all;
      overflow-wrap:normal;
      line-height:1.1;
      text-align:right;
    }
    #quick-state.is-not-armed .num{font-size:clamp(6px,0.8vw,8px)}
    #quick-sw .quick-arm-lock{
      flex:0 0 auto;
      color:#6b7280;
      font-size:clamp(7px,0.78vw,9px);
      font-weight:700;
      line-height:1;
      white-space:nowrap;
      letter-spacing:0;
    }
    #quick-sw .quick-arm-lock[hidden]{display:none}
    html[data-theme="dark"] #quick-sw .quick-arm-lock{color:#a3a3a3}
    .motor-card{
      background:linear-gradient(135deg,#f7f7fb 0%,#eef2ff 60%,#f8fafc 100%);
      border:1px solid rgba(148,163,184,0.25);
      box-shadow:0 16px 28px rgba(15,23,42,0.08);
    }
    .motor-card .card-header{margin-bottom:14px}
    .motor-card .card-header.quick-data-header{
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .motor-card .quick-data-header .status-bar{
      margin-left:auto;
      flex-shrink:0;
      row-gap:6px;
      max-width:100%;
    }
    .motor-card .card-title{
      letter-spacing:.28em;
      color:#475569;
    }
    .motor-card .card-badge{
      background:rgba(59,130,246,0.12);
      color:#1d4ed8;
      border:1px solid rgba(59,130,246,0.28);
      font-weight:700;
    }
    .motor-card .item-grid{
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }
    .motor-card .item{
      background:#f8f9ff;
      border:1px solid rgba(148,163,184,0.22);
      border-radius:8px;
      padding:11px 13px;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .motor-card .item.item-null{
      background:#f8f9ff;
      border:1px solid rgba(148,163,184,0.22);
      color:inherit;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .motor-card .item.item-null .label,
    .motor-card .item.item-null .value{
      color:inherit;
    }
    .mode-flight .motor-card .item.item-null{
      background:#f8f9ff;
      border:1px solid rgba(148,163,184,0.22);
      color:inherit;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .mode-flight .motor-card .item.item-null .label,
    .mode-flight .motor-card .item.item-null .value{
      color:#0f172a;
    }
    .motor-card .item.status-ok{
      background:linear-gradient(135deg,rgba(34,197,94,0.14),rgba(16,185,129,0.08));
      border-color:rgba(34,197,94,0.45);
    }
    .motor-card .item.status-warn{
      background:linear-gradient(135deg,rgba(245,158,11,0.16),rgba(251,191,36,0.1));
      border-color:rgba(245,158,11,0.5);
    }
    .motor-card .item.status-bad{
      background:linear-gradient(135deg,rgba(239,68,68,0.16),rgba(248,113,113,0.1));
      border-color:rgba(239,68,68,0.55);
    }
    .motor-card .label{
      font-size:10px;
      color:#475569;
      letter-spacing:.06em;
      text-transform:uppercase;
      line-height:1.1;
    }
    .motor-card .label-icon{display:none}
    .motor-card .value{
      color:#6b7280;
      font-weight:600;
      gap:6px;
      line-height:1.1;
    }
    .motor-card .value .num{font-size:11px}
    .motor-card .value .unit{font-size:8px;letter-spacing:.08em;color:#94a3b8}
    .mobile-device-control-section,
    .mobile-quick-data-title{display:none}
    .mobile-only-quick-metric{display:none !important}
    #commStatus .num{
      font-size:clamp(8px,0.9vw,10px);
      font-weight:600;
      display:inline-block;
      max-width:90px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      vertical-align:bottom;
    }
    .item-pressure .value-block{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
    .switch{position:relative;display:inline-block;width:52px;height:30px;}
    .switch input{display:none}
    .slider{
      position:absolute;inset:0;cursor:pointer;background:#e5e7eb;border-radius:999px;
      border:1px solid rgba(148,163,184,0.9);transition:.26s
    }
    .slider:before{
      position:absolute;content:'';height:24px;width:24px;left:3px;bottom:2px;background:#ffffff;border-radius:50%;
      box-shadow:0 4px 10px rgba(148,163,184,0.9);transition:.26s
    }
    input:checked+.slider{
      background:linear-gradient(90deg,#22c55e,#4ade80);
      box-shadow: inset 0 0 0 3px rgba(34,197,94,0.32);
    }
    input:checked+.slider:before{transform:translateX(20px)}
    button{
      border:none;border-radius:var(--radius-pill);font-family:inherit;cursor:pointer;
      transition:transform .12s ease,box-shadow .12s ease,background .12s ease,color .12s ease,border-color .12s ease;
      -webkit-tap-highlight-color:transparent;
      touch-action:manipulation;
    }
    button:disabled{opacity:.45;box-shadow:none;cursor:default;transform:none}
    button:hover:not(:disabled){transform:translateY(-1px)}
    button:active:not(:disabled){transform:translateY(0);box-shadow:none}
    .controls-card button,.log-card button,.settings-dialog button,.launcher-dialog button{
      display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:500
    }
    .controls-toolbar .toolbar-btn{
      border-radius:12px;
      height:38px;
    }
    .toolbar-btn{
      border-radius:var(--radius-pill);border:1px solid rgba(209,213,219,0.9);
      background:linear-gradient(135deg,#f9fafb,#eef2ff);color:#111827;
      padding:6px 8px;height:34px;font-size:11px;font-weight:600;
      box-shadow:0 4px 10px rgba(148,163,184,0.18);white-space:nowrap
    }
    .primary-btn{
      border-radius:14px;
      border:1px solid rgba(249,115,22,0.65);
      background:linear-gradient(120deg,rgba(244,67,54,0.78),rgba(249,115,22,0.78));
      color:#fff7ed;
      font-size:14px;font-weight:700;letter-spacing:.05em;
      padding:10px 18px;height:42px;width:100%;
      box-shadow:0 6px 16px rgba(249,115,22,0.24),0 3px 8px rgba(239,68,68,0.18);
      text-shadow:0 1px 2px rgba(0,0,0,0.12);
      backdrop-filter:blur(10px) saturate(1.15);-webkit-backdrop-filter:blur(10px) saturate(1.15);
    }
    .primary-btn.sequence-btn{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      text-align:left;
      height:auto;
      min-height:52px;
      padding:10px 14px;
      border-radius:10px;
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.25);
      box-shadow:none;
      color:var(--text-main);
      text-shadow:none;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
    }
    .primary-btn.sequence-btn:disabled{
      background:#f1f5f9;
      border-color:rgba(148,163,184,0.35);
      color:#94a3b8;
      box-shadow:none;
      cursor:not-allowed;
    }
    .controls-main-row .abort-btn-wrap{
      flex:1.6;
      display:flex;
      align-items:stretch;
    }
    .controls-main-row .abort-btn-wrap .secondary-btn{
      height:auto;
      min-height:52px;
      border-radius:10px;
      font-size:13px;
      letter-spacing:.06em;
    }
    .sequence-btn-text{
      display:flex;
      flex-direction:column;
      gap:0;
      min-width:0;
    }
    .sequence-btn-title{
      font-size:11px;
      font-weight:700;
      letter-spacing:.05em;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .sequence-status-pill{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:4px 10px;
      border-radius:999px;
      font-size:11px;
      font-weight:700;
      letter-spacing:.08em;
      border:1px solid rgba(148,163,184,0.4);
      color:#475569;
      background:rgba(148,163,184,0.08);
      flex-shrink:0;
      line-height:1.2;
    }
    .sequence-status-pill.storage-guard-green,
    .mobile-sequence-status-pill.storage-guard-green{
      border-color:rgba(34,197,94,0.62);
      background:rgba(34,197,94,0.14);
      color:#15803d;
    }
    .sequence-status-pill.storage-guard-orange,
    .mobile-sequence-status-pill.storage-guard-orange{
      border-color:rgba(249,115,22,0.72);
      background:rgba(249,115,22,0.16);
      color:#c2410c;
    }
    .sequence-status-pill.storage-guard-red,
    .mobile-sequence-status-pill.storage-guard-red{
      border-color:rgba(239,68,68,0.72);
      background:rgba(239,68,68,0.16);
      color:#b91c1c;
    }
    .primary-btn.sequence-btn.storage-guard-green{
      border-color:rgba(34,197,94,0.42);
      box-shadow:inset 0 0 0 1px rgba(34,197,94,0.08);
    }
    .primary-btn.sequence-btn.storage-guard-orange{
      border-color:rgba(249,115,22,0.55);
      box-shadow:inset 0 0 0 1px rgba(249,115,22,0.10);
    }
    .primary-btn.sequence-btn.storage-guard-red{
      border-color:rgba(239,68,68,0.62);
      box-shadow:inset 0 0 0 1px rgba(239,68,68,0.12);
    }
    .secondary-btn{
      border-radius:10px;
      border:1px solid rgba(239,68,68,0.6);
      background:linear-gradient(135deg,#f87171,#ef4444);
      color:#fff7ed;
      font-size:12px;font-weight:700;letter-spacing:.04em;
      padding:10px 16px;height:42px;width:100%;
      box-shadow:0 8px 16px rgba(239,68,68,0.25);
      text-shadow:0 1px 2px rgba(0,0,0,0.12);
    }
    .secondary-btn:disabled{
      background:linear-gradient(135deg,rgba(148,163,184,0.4),rgba(100,116,139,0.4));
      border-color:rgba(148,163,184,0.4);
      color:#e2e8f0;
      box-shadow:none;
      text-shadow:none;
    }
    .force-btn,.launcher-open-btn{
      margin-top:6px;width:100%;padding:10px 14px;border-radius:var(--radius-pill);
      border:1px solid rgba(148,163,184,0.75);background:linear-gradient(135deg,#f9fafb,#e5e7eb);
      color:#111827;font-size:13px;font-weight:600;box-shadow:0 4px 10px rgba(148,163,184,0.2)
    }
    .force-btn{justify-content:center}
    .force-btn.disabled{opacity:.45;pointer-events:none;filter:saturate(0.6) grayscale(0.1)}
    .launcher-open-btn{justify-content:space-between}
    .controls-card{padding-top:14px;padding-bottom:14px;position:relative}
    .controls-card{
      background:#ffffff;
    }
    .controls-card.status-frame{
      border-color:rgba(148,163,184,0.58);
      box-shadow:0 16px 30px rgba(15,23,42,0.13);
    }
    .controls-card::before,.controls-card::after{content:none}
    #controlsHeader{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      border:none;
      border-radius:0;
      background:transparent;
      padding:0;
      margin-bottom:10px;
    }
    #controlsCardTitle{
      font-size:12px;
      letter-spacing:.18em;
      color:#334155;
    }
    .controls-subtitle{
      font-size:10px;
      color:#64748b;
      margin-top:2px;
      letter-spacing:.08em;
      text-transform:uppercase;
    }
    .controls-help{
      font-size:11px;color:var(--accent-strong);margin-top:4px;cursor:pointer;
      text-decoration:none;
    }
    .controls-grid{margin-top:0;display:flex;flex-direction:column;gap:10px}
    .controls-section-label{margin-top:6px;font-size:11px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:#9ca3af}
    .controls-toolbar{
      margin-top:0;
      display:flex;
      justify-content:flex-end;
      align-items:center;
      gap:4px;
    }
    .controls-header-actions .controls-toolbar{
      flex-shrink:0;
    }
    .controls-toolbar .controls-toolbar-action{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:0;
      width:34px;
      min-width:34px;
      height:34px;
      min-height:34px;
      padding:0;
      border:none;
      background:transparent;
      box-shadow:none;
      color:#475569;
    }
    .controls-toolbar .controls-toolbar-action:hover{
      background:rgba(148,163,184,0.14);
      box-shadow:none;
    }
    .controls-toolbar-icon{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:18px;
      height:18px;
      color:currentColor;
      opacity:.9;
      flex:0 0 auto;
    }
    .controls-toolbar-icon svg{
      width:18px;
      height:18px;
      fill:none;
      stroke:currentColor;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .controls-toolbar-text{min-width:0}
    .controls-main-row{
      display:flex;
      gap:8px;
      align-items:stretch;
      margin-top:0;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
    }
    .primary-btn-wrap{flex:3;display:flex}
    .abort-btn-wrap{flex:1.4;display:flex}
    .control-row{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
      align-items:stretch;
      margin-top:0
    }
    .control-tile{
      padding:9px 12px;border-radius:10px;
      border:1px solid rgba(148,163,184,0.25);
      background:#ffffff;
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      min-width:0
    }
    .controls-card .control-tile{
      padding:7px 12px !important;
      min-height:54px;
      height:54px;
      border-color:rgba(148,163,184,0.3);
      border-radius:12px;
      background:rgba(255,255,255,0.96);
      box-shadow:0 5px 10px rgba(15,23,42,0.07);
    }
    .controls-card .control-tile-label{
      font-size:12px;
      font-weight:700;
      color:#0f172a;
    }
    .controls-card .control-tile-sub{
      font-size:10px;
      color:#64748b;
    }
    .controls-card .control-tile-mode{
      min-height:60px !important;
      height:auto;
      align-items:center;
    }
    .controls-card .control-tile-mode > div:first-child{
      min-width:0;
      flex:1 1 auto;
    }
    .controls-card .control-tile-mode .control-tile-actions{
      margin-left:auto;
    }
    .controls-card .control-tile-select{
      min-width:64px;
      height:23px;
      padding:0 20px 0 8px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.8);
      background:#f8fafc;
      color:#0f172a;
      font-size:10px;
      font-weight:700;
      cursor:pointer;
      outline:none;
      line-height:1;
      box-sizing:border-box;
    }
    .controls-card .control-tile-select:focus{
      border-color:rgba(59,130,246,0.9);
      box-shadow:0 0 0 2px rgba(59,130,246,0.18);
    }
    .controls-card .control-row .control-tile-actions .pill,
    .controls-card .control-row .control-tile-actions button,
    .controls-card .control-row .control-tile-actions .control-tile-select{
      height:23px;
      min-width:64px;
      padding:0 8px;
      border-radius:999px;
      font-size:10px;
      font-weight:700;
      line-height:1;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
    }
    .controls-card .control-row .control-tile-actions .control-tile-select{
      display:inline-block;
      padding-right:20px;
      text-align:left;
    }
    #dashboardServoPanelBtn,
    #dashboardPyroPanelBtn{
      min-width:64px;
      height:23px;
      padding:0 8px;
      justify-content:center;
      cursor:pointer;
      font-weight:700;
    }
    .control-tile.span-2{grid-column:1 / -1}
    .control-tile-label{
      font-size:13px;color:#111827;font-weight:500;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }
    .control-tile-sub{
      font-size:11px;color:#6b7280;margin-top:2px;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }
    .controls-header-actions{display:flex;align-items:center;gap:6px}
    .tablet-controls-nav-btn,
    .tablet-controls-close{display:none}
    html:not(.tablet-controls-layout) .tablet-controls-nav-btn,
    html:not(.tablet-controls-layout) .tablet-controls-close{
      display:none!important;
    }
    .tablet-controls-close{
      width:28px;
      height:28px;
      border-radius:0;
      border:none;
      background:transparent;
      color:#475569;
      align-items:center;
      justify-content:center;
      padding:0;
      font-size:20px;
      line-height:1;
    }
    .controls-gear-btn{
      width:26px;height:26px;border-radius:999px;border:1px solid rgba(148,163,184,0.75);
      background:radial-gradient(circle at 30% 20%,#f9fafb,#e5e7eb);
      color:#4b5563;font-size:14px;display:flex;align-items:center;justify-content:center;
      box-shadow:0 5px 12px rgba(148,163,184,0.32);padding:0
    }
    .controls-gear-btn svg{
      width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;
      stroke-linecap:round;stroke-linejoin:round;
    }
    .controls-mobile-only{display:none}
    .launcher-desktop-only{display:grid}
    .controls-gear-btn:hover{background:#0f172a;color:#e5e7eb}
    .controls-card.replay-mode .controls-grid{display:none}
    .controls-card.replay-mode .devtools-panel{display:none!important}
    .controls-card.launcher-mode .controls-grid,
    .controls-card.launcher-mode .replay-panel,
    .controls-card.launcher-mode .devtools-panel{display:none!important}
    .controls-card.mission-mode .controls-grid,
    .controls-card.mission-mode .replay-panel,
    .controls-card.mission-mode .devtools-panel,
    .controls-card.mission-mode .launcher-panel,
    .controls-card.mission-mode .inspection-panel{display:none!important}
    .controls-card.inspection-mode .controls-grid,
    .controls-card.inspection-mode .replay-panel,
    .controls-card.inspection-mode .devtools-panel,
    .controls-card.inspection-mode .launcher-panel,
    .controls-card.inspection-mode .mission-panel{display:none!important}
    .controls-card.replay-mode .controls-subtitle,
    .controls-card.launcher-mode .controls-subtitle,
    .controls-card.mission-mode .controls-subtitle,
    .controls-card.inspection-mode .controls-subtitle,
    .controls-card.devtools-mode .controls-subtitle{display:none}
    .controls-card.replay-mode .controls-toolbar,
    .controls-card.launcher-mode .controls-toolbar,
    .controls-card.mission-mode .controls-toolbar,
    .controls-card.inspection-mode .controls-toolbar,
    .controls-card.devtools-mode .controls-toolbar{display:none}
    html:not(.tablet-controls-layout) .controls-card.replay-mode .tablet-controls-close,
    html:not(.tablet-controls-layout) .controls-card.launcher-mode .tablet-controls-close,
    html:not(.tablet-controls-layout) .controls-card.mission-mode .tablet-controls-close,
    html:not(.tablet-controls-layout) .controls-card.inspection-mode .tablet-controls-close,
    html:not(.tablet-controls-layout) .controls-card.devtools-mode .tablet-controls-close{
      display:inline-flex!important;
    }
    .controls-card.replay-mode,
    .controls-card.launcher-mode,
    .controls-card.mission-mode,
    .controls-card.inspection-mode{
      display:flex;
      flex-direction:column;
    }
    .controls-card.replay-mode #controlsHeader,
    .controls-card.launcher-mode #controlsHeader,
    .controls-card.mission-mode #controlsHeader,
    .controls-card.inspection-mode #controlsHeader,
    .controls-card.devtools-mode #controlsHeader{
      margin-bottom:4px;
    }
    .replay-panel{
      display:none;
      margin-top:2px;
      flex-direction:column;
      gap:9px;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
    }
    .controls-card.replay-mode .replay-panel{
      display:flex;
      animation:replayPanelEnter .24s ease;
    }
    .launcher-panel{
      display:none;
      margin-top:2px;
      flex-direction:column;
      gap:8px;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
    }
    .controls-card.launcher-mode .launcher-panel{
      display:flex!important;
      flex:1 1 auto;
      min-height:0;
      animation:replayPanelEnter .24s ease;
    }
    .mission-panel,
    .inspection-panel{
      display:none;
      margin-top:2px;
      flex-direction:column;
      gap:8px;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      min-height:0;
    }
    .controls-card.mission-mode .mission-panel,
    .controls-card.inspection-mode .inspection-panel{
      display:flex!important;
      flex:1 1 auto;
      min-height:0;
      animation:replayPanelEnter .24s ease;
    }
    .panel-action-note{
      font-size:11px;
      color:#64748b;
      line-height:1.5;
      margin:2px 0 8px;
    }
    .panel-action-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
      width:100%;
    }
    .panel-action-btn{
      border:1px solid rgba(148,163,184,0.24);
      background:linear-gradient(180deg,#ffffff, #f8fafc);
      color:#1e293b;
      border-radius:16px;
      font-size:13px;
      font-weight:700;
      letter-spacing:.01em;
      min-height:52px;
      padding:12px 14px;
      cursor:pointer;
      box-shadow:0 10px 22px rgba(148,163,184,0.16), inset 0 1px 0 rgba(255,255,255,0.92);
      transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
    }
    .panel-action-btn:hover{
      border-color:rgba(96,165,250,0.62);
      background:linear-gradient(180deg,#ffffff, #eff6ff);
      box-shadow:0 14px 28px rgba(96,165,250,0.2), inset 0 1px 0 rgba(255,255,255,0.96);
      transform:translateY(-2px);
    }
    .panel-action-btn:active{
      transform:translateY(0);
      filter:brightness(.95);
    }
    .panel-action-btn:focus-visible{
      outline:none;
      border-color:rgba(59,130,246,0.7);
      box-shadow:0 0 0 3px rgba(96,165,250,0.22), 0 12px 24px rgba(96,165,250,0.14);
    }
    .mission-panel .panel-action-note{
      margin:0 0 10px;
      color:#607089;
      font-size:12px;
      letter-spacing:.01em;
    }
    .mission-panel .panel-action-grid{
      gap:14px;
    }
    .mission-quick-btn{
      --mission-accent-rgb:59,130,246;
      position:relative;
      overflow:hidden;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      justify-content:flex-end;
      gap:6px;
      min-height:94px;
      padding:14px 16px 15px;
      border-radius:20px;
      text-align:left;
      background:
        radial-gradient(circle at 88% 14%, rgba(var(--mission-accent-rgb),0.18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.98));
      border-color:rgba(var(--mission-accent-rgb),0.18);
      box-shadow:0 14px 28px rgba(148,163,184,0.18), inset 0 1px 0 rgba(255,255,255,0.96);
    }
    .mission-quick-btn::after{
      content:"";
      position:absolute;
      inset:auto -16% -34% auto;
      width:110px;
      height:110px;
      border-radius:999px;
      background:radial-gradient(circle, rgba(var(--mission-accent-rgb),0.16), transparent 68%);
      pointer-events:none;
    }
    .mission-quick-btn:hover{
      border-color:rgba(var(--mission-accent-rgb),0.34);
      background:
        radial-gradient(circle at 88% 14%, rgba(var(--mission-accent-rgb),0.24), transparent 36%),
        linear-gradient(180deg,#ffffff, #f8fbff);
      box-shadow:0 18px 34px rgba(148,163,184,0.22), 0 0 0 1px rgba(var(--mission-accent-rgb),0.08);
      transform:translateY(-2px);
    }
    .mission-quick-btn .mission-quick-chip,
    .mission-quick-btn .mission-quick-title,
    .mission-quick-btn .mission-quick-meta{
      position:relative;
      z-index:1;
    }
    .mission-quick-chip{
      display:inline-flex;
      align-items:center;
      min-height:22px;
      padding:0 9px;
      border-radius:999px;
      background:rgba(var(--mission-accent-rgb),0.1);
      border:1px solid rgba(var(--mission-accent-rgb),0.18);
      color:rgb(var(--mission-accent-rgb));
      font-size:10px;
      font-weight:800;
      letter-spacing:.1em;
      text-transform:uppercase;
    }
    .mission-quick-title{
      font-size:18px;
      font-weight:800;
      line-height:1.08;
      letter-spacing:-.03em;
      color:#0f172a;
      text-wrap:balance;
    }
    .mission-quick-meta{
      font-size:11px;
      line-height:1.35;
      color:#6b7280;
      font-weight:600;
      letter-spacing:.01em;
    }
    .mission-quick-btn.is-frontier{
      --mission-accent-rgb:37,99,235;
    }
    .mission-quick-btn.is-stage{
      --mission-accent-rgb:14,165,233;
    }
    .mission-quick-btn.is-quail{
      --mission-accent-rgb:249,115,22;
    }
    .mission-quick-btn.is-manual{
      --mission-accent-rgb:100,116,139;
    }
    .panel-action-status{
      margin-top:10px;
      font-size:12px;
      font-weight:700;
      color:#94a3b8;
      line-height:1.4;
    }
    .panel-action-status.ok{color:#22c55e}
    .panel-action-status.error{color:#f87171}
    .panel-action-status.running{color:#fbbf24}
    .panel-dialog-mount{
      display:flex;
      flex:1 1 auto;
      min-height:0;
      overflow:auto;
      padding-right:2px;
    }
    .mission-dialog.is-embedded-panel,
    .inspection-dialog.is-embedded-panel{
      width:100%;
      max-width:none;
      min-height:0;
      margin:0;
    }
    .controls-card .mission-dialog.is-embedded-panel,
    .controls-card .inspection-dialog.is-embedded-panel{
      border-radius:14px;
      max-height:none;
      height:auto;
    }
    .controls-card .mission-dialog.is-embedded-panel{
      min-height:0;
    }
    .controls-card .inspection-dialog.is-embedded-panel{
      min-height:0;
      height:100%;
    }
    .launcher-panel-note{
      font-size:11px;
      color:#64748b;
      line-height:1.45;
    }
    .launcher-panel .launcher-arrow-row{
      gap:12px;
      padding:8px 0 2px;
    }
    .launcher-panel .launcher-angle{
      display:flex;
    }
    .launcher-panel .launcher-auto-desc{
      display:block;
      margin-top:0;
    }
    @keyframes replayPanelEnter{
      from{opacity:0;transform:translateY(6px)}
      to{opacity:1;transform:translateY(0)}
    }
    .replay-layout-row{
      display:flex;
      flex-direction:column;
      align-items:stretch;
      gap:10px;
    }
    .replay-file-row{
      display:flex;
      width:100%;
      max-width:none;
      justify-content:flex-start;
      align-items:flex-start;
    }
    .replay-dropzone{
      position:relative;
      width:100%;
      aspect-ratio:auto;
      min-height:86px;
      padding:10px 8px;
      border-radius:12px;
      border:1px dashed rgba(100,116,139,0.78);
      background:
        linear-gradient(180deg,rgba(255,255,255,0.86),rgba(248,250,252,0.84)),
        repeating-linear-gradient(135deg,rgba(148,163,184,0.06) 0 8px,rgba(148,163,184,0.12) 8px 16px);
      color:#475569;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:4px;
      text-align:center;
      cursor:pointer;
      overflow:hidden;
      transition:border-color .18s ease,background .18s ease,transform .18s ease,color .18s ease,box-shadow .18s ease;
    }
    .replay-panel.replay-empty .replay-layout-row{
      display:block;
    }
    .replay-panel.replay-empty .replay-file-row{
      width:100%;
      max-width:none;
      flex:1 1 auto;
    }
    .replay-panel.replay-empty .replay-dropzone{
      width:100%;
      max-width:none;
      aspect-ratio:auto;
      min-height:280px;
    }
    .replay-panel.replay-empty .replay-playback-box,
    .replay-panel.replay-empty .replay-speed-row,
    .replay-panel.replay-empty .replay-export-row{
      display:none;
    }
    .replay-playback-box{
      display:flex;
      flex-direction:column;
      gap:6px;
      padding:8px 2px 2px;
      border:none;
      background:transparent;
    }
    .replay-playback-box .replay-seek-row{
      border:none;
      background:transparent;
      padding:0;
    }
    .replay-dropzone:hover{
      border-color:#475569;
      color:#334155;
      background:
        linear-gradient(180deg,rgba(255,255,255,0.92),rgba(241,245,249,0.9)),
        repeating-linear-gradient(135deg,rgba(148,163,184,0.08) 0 8px,rgba(148,163,184,0.14) 8px 16px);
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
    }
    .replay-dropzone:focus-visible{
      outline:2px solid rgba(71,85,105,0.3);
      outline-offset:2px;
    }
    .replay-dropzone.is-dragover{
      border-color:#334155;
      background:
        linear-gradient(180deg,rgba(255,255,255,0.96),rgba(226,232,240,0.92)),
        repeating-linear-gradient(135deg,rgba(100,116,139,0.12) 0 8px,rgba(100,116,139,0.18) 8px 16px);
      color:#1e293b;
      transform:translateY(-1px);
    }
    .replay-dropzone.is-loaded{
      border-style:solid;
      border-color:rgba(100,116,139,0.55);
      background:
        linear-gradient(180deg,rgba(248,250,252,0.94),rgba(226,232,240,0.82));
      box-shadow:0 8px 16px rgba(15,23,42,0.08);
    }
    .replay-dropzone-icon{
      width:22px;
      height:22px;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .replay-dropzone-icon svg{
      width:18px;
      height:18px;
      fill:none;
      stroke:currentColor;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .replay-dropzone.is-loaded .replay-dropzone-icon{display:none}
    .replay-dropzone-title{
      font-size:11px;
      font-weight:700;
      letter-spacing:.01em;
      line-height:1.28;
      word-break:break-all;
      color:#334155;
    }
    .replay-dropzone-guide{
      font-size:11px;
      color:#64748b;
      line-height:1.3;
    }
    .replay-control-row{
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:4px;
    }
    .replay-action-row{
      display:flex;
      align-items:center;
      gap:10px;
      width:100%;
    }
    .replay-icon-btn{
      width:100%;
      min-height:42px;
      padding:0 12px;
      border:none;
      border-radius:12px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      color:#475569;
      background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
      box-shadow:0 6px 12px rgba(15,23,42,0.12);
      transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease,background .16s ease,color .16s ease;
    }
    .replay-icon-btn svg{
      width:18px;
      height:18px;
      fill:none;
      stroke:currentColor;
      stroke-width:2.2;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .replay-icon-btn .replay-btn-label{
      font-size:12px;
      font-weight:700;
      letter-spacing:.01em;
      line-height:1;
    }
    .replay-icon-only{
      width:34px;
      min-height:34px;
      padding:0;
      gap:0;
      background:transparent !important;
      box-shadow:none !important;
      border-radius:0;
      color:#64748b;
    }
    .replay-icon-only .replay-btn-label{
      display:none;
    }
    .replay-icon-only .icon-pause{
      display:none;
    }
    .replay-icon-only.is-playing .icon-play{
      display:none;
    }
    .replay-icon-only.is-playing .icon-pause{
      display:block;
    }
    .replay-icon-only.replay-icon-btn-start{
      color:#f97316;
    }
    .replay-icon-only:disabled{
      background:transparent !important;
      box-shadow:none !important;
      color:#94a3b8;
      opacity:0.5;
    }
    .replay-icon-only:not(:disabled):hover{
      background:transparent !important;
      box-shadow:none !important;
      transform:none;
    }
    .replay-icon-btn:disabled{
      background:linear-gradient(180deg,#e5e7eb,#d1d5db);
      color:#94a3b8;
      box-shadow:none;
      opacity:0.95;
      cursor:not-allowed;
    }
    .replay-icon-btn:not(:disabled):hover{
      transform:translateY(-1px);
      box-shadow:0 8px 16px rgba(15,23,42,0.16);
    }
    .replay-icon-btn-start{
      background:linear-gradient(135deg,#f97316,#fb923c);
      color:#fff7ed;
      box-shadow:0 10px 18px rgba(249,115,22,0.3);
    }
    .replay-icon-btn-start:disabled{
      background:linear-gradient(180deg,#e5e7eb,#d1d5db);
      color:#94a3b8;
      box-shadow:none;
    }
    .replay-speed-row{
      margin-left:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:6px;
      flex-wrap:nowrap;
      padding:0;
      border:none;
      background:transparent;
    }
    .replay-speed-label{
      font-size:11px;
      font-weight:700;
      letter-spacing:.09em;
      text-transform:uppercase;
      color:#64748b;
    }
    .replay-speed-buttons{
      display:flex;
      width:auto;
      align-items:center;
      gap:6px;
    }
    .replay-speed-buttons .pill.replay-speed-btn{
      min-width:0;
      width:auto;
      min-height:0;
      height:auto;
      padding:0 4px;
      font-size:11px;
      white-space:nowrap;
      justify-content:center;
      border:none !important;
      background:transparent !important;
      box-shadow:none !important;
      color:#64748b !important;
      font-weight:700;
      border-radius:0 !important;
    }
    .replay-tminus-btn{
      letter-spacing:0;
    }
    .replay-speed-buttons .pill.replay-speed-btn.is-active{
      border:none !important;
      background:transparent !important;
      color:#f97316 !important;
      box-shadow:none !important;
    }
    .replay-seek-row{
      display:flex;
      flex-direction:column;
      gap:4px;
      padding:0;
      border:none;
      background:transparent;
    }
    .replay-seek-row input[type="range"]{
      width:100%;
      appearance:none;
      -webkit-appearance:none;
      height:4px;
      border-radius:999px;
      background:rgba(148,163,184,0.35);
      outline:none;
    }
    .replay-seek-row input[type="range"]::-webkit-slider-thumb{
      appearance:none;
      -webkit-appearance:none;
      width:12px;
      height:12px;
      border-radius:999px;
      border:1px solid rgba(71,85,105,0.35);
      background:#ffffff;
      box-shadow:none;
      cursor:pointer;
    }
    .replay-seek-row input[type="range"]::-moz-range-thumb{
      width:12px;
      height:12px;
      border-radius:999px;
      border:1px solid rgba(71,85,105,0.35);
      background:#ffffff;
      box-shadow:none;
      cursor:pointer;
    }
    .replay-seek-label{
      font-size:11px;
      color:#64748b;
      letter-spacing:0;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Courier New",monospace;
    }
    .replay-status-text{
      position:relative;
      padding:10px 10px 10px 28px;
      border-radius:12px;
      border:1px solid rgba(148,163,184,0.32);
      background:rgba(255,255,255,0.74);
      font-size:12px;
      color:#334155;
      line-height:1.35;
    }
    .replay-status-text::before{
      content:"";
      position:absolute;
      left:12px;
      top:50%;
      width:8px;
      height:8px;
      border-radius:999px;
      background:#64748b;
      transform:translateY(-50%);
      box-shadow:0 0 0 3px rgba(148,163,184,0.22);
    }
    .replay-export-row{
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:8px;
      margin-top:0;
    }
    .replay-convert-btn{
      width:100%;
      min-height:44px;
    }
    .replay-panel.replay-empty .replay-event-panel{
      display:none;
    }
    .replay-event-panel{
      margin-top:10px;
      padding:10px;
      border-radius:14px;
      border:1px solid rgba(148,163,184,0.28);
      background:rgba(255,255,255,0.64);
    }
    .replay-event-panel.hidden{
      display:none;
    }
    .replay-event-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-bottom:8px;
    }
    .replay-event-title{
      font-size:12px;
      font-weight:800;
      color:#334155;
      letter-spacing:.02em;
    }
    .replay-event-count{
      font-size:11px;
      font-weight:700;
      color:#64748b;
    }
    .replay-event-list{
      display:flex;
      flex-direction:column;
      gap:7px;
      max-height:190px;
      overflow:auto;
      padding-right:2px;
    }
    .replay-event-item{
      width:100%;
      border:1px solid rgba(148,163,184,0.28);
      border-radius:12px;
      background:rgba(248,250,252,0.82);
      color:#334155;
      padding:9px 10px;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:4px;
      text-align:left;
      cursor:pointer;
      transition:background .16s ease,border-color .16s ease,transform .16s ease;
    }
    .replay-event-item:hover{
      border-color:rgba(249,115,22,0.5);
      background:rgba(255,247,237,0.9);
      transform:translateY(-1px);
    }
    .replay-event-item.is-active{
      border-color:rgba(249,115,22,0.72);
      background:rgba(255,237,213,0.92);
    }
    .replay-event-time{
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:11px;
      font-weight:800;
      color:#f97316;
      line-height:1.3;
    }
    .replay-event-headline{
      width:100%;
      display:flex;
      align-items:baseline;
      justify-content:flex-start;
      gap:8px;
      min-width:0;
      text-align:left;
    }
    .replay-event-main{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:3px;
    }
    .replay-event-item-title{
      font-size:12px;
      font-weight:800;
      color:#1f2937;
      line-height:1.25;
      word-break:keep-all;
    }
    .replay-event-message{
      width:100%;
      font-size:11px;
      color:#64748b;
      line-height:1.35;
      word-break:keep-all;
      text-align:left;
    }
    .replay-event-meta{
      width:100%;
      font-size:10px;
      color:#94a3b8;
      font-weight:700;
      letter-spacing:.02em;
      text-align:left;
    }
    html[data-theme="dark"] .replay-panel{
      border:none;
      background:transparent;
      box-shadow:none;
    }
    html[data-theme="dark"] .replay-dropzone{
      border-color:rgba(100,116,139,0.7);
      color:#cbd5e1;
      background:
        linear-gradient(180deg,rgba(15,23,42,0.88),rgba(15,23,42,0.8)),
        repeating-linear-gradient(135deg,rgba(51,65,85,0.18) 0 8px,rgba(51,65,85,0.26) 8px 16px);
    }
    html[data-theme="dark"] .replay-dropzone:hover{
      border-color:rgba(148,163,184,0.82);
      background:
        linear-gradient(180deg,rgba(30,41,59,0.9),rgba(15,23,42,0.84)),
        repeating-linear-gradient(135deg,rgba(71,85,105,0.2) 0 8px,rgba(71,85,105,0.3) 8px 16px);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .replay-dropzone.is-dragover{
      border-color:#cbd5e1;
      color:#f8fafc;
    }
    html[data-theme="dark"] .replay-dropzone.is-loaded{
      border-color:rgba(100,116,139,0.72);
      background:linear-gradient(180deg,rgba(15,23,42,0.9),rgba(30,41,59,0.62));
    }
    html[data-theme="dark"] .replay-dropzone-title{color:#e2e8f0}
    html[data-theme="dark"] .replay-dropzone-guide{color:#94a3b8}
    html[data-theme="dark"] .replay-icon-btn{
      background:linear-gradient(180deg,#334155,#1f2937);
      color:#e2e8f0;
      box-shadow:0 8px 16px rgba(2,6,23,0.36);
    }
    html[data-theme="dark"] .replay-icon-btn:disabled{
      background:linear-gradient(180deg,#1f2937,#111827);
      color:#64748b;
      box-shadow:none;
    }
    html[data-theme="dark"] .replay-icon-btn-start{
      background:linear-gradient(135deg,#ea580c,#f97316);
      color:#fff7ed;
    }
    html[data-theme="dark"] .replay-icon-btn-start:disabled{
      background:linear-gradient(180deg,#1f2937,#111827);
      color:#64748b;
      box-shadow:none;
    }
    html[data-theme="dark"] .replay-icon-only,
    html[data-theme="dark"] .replay-icon-only.replay-icon-btn-start{
      background:transparent !important;
      box-shadow:none !important;
      color:#cbd5e1;
    }
    html[data-theme="dark"] .replay-icon-only:disabled{
      color:#64748b;
      opacity:0.5;
    }
    html[data-theme="dark"] .replay-speed-row,
    html[data-theme="dark"] .replay-status-text{
      border-color:rgba(71,85,105,0.7);
      background:rgba(15,23,42,0.58);
    }
    html[data-theme="dark"] .replay-speed-row{
      border:none;
      background:transparent;
    }
    html[data-theme="dark"] .replay-playback-box,
    html[data-theme="dark"] .replay-seek-row{
      border:none;
      background:transparent;
    }
    html[data-theme="dark"] .replay-speed-label{color:#94a3b8}
    html[data-theme="dark"] .replay-speed-buttons .pill.replay-speed-btn{
      border:none !important;
      background:transparent !important;
      color:#cbd5e1 !important;
    }
    html[data-theme="dark"] .replay-speed-buttons .pill.replay-speed-btn.is-active{
      border:none !important;
      background:transparent !important;
      color:#fb923c !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .replay-seek-row input[type="range"]{
      background:rgba(148,163,184,0.35);
    }
    html[data-theme="dark"] .replay-seek-row input[type="range"]::-webkit-slider-thumb{
      border-color:rgba(148,163,184,0.5);
      background:#e2e8f0;
    }
    html[data-theme="dark"] .replay-seek-row input[type="range"]::-moz-range-thumb{
      border-color:rgba(148,163,184,0.5);
      background:#e2e8f0;
    }
    html[data-theme="dark"] .replay-seek-label,
    html[data-theme="dark"] .replay-status-text{
      color:#cbd5e1;
    }
    html[data-theme="dark"] .replay-status-text::before{
      background:#94a3b8;
      box-shadow:0 0 0 3px rgba(71,85,105,0.36);
    }
    html[data-theme="dark"] .replay-event-panel{
      border-color:rgba(71,85,105,0.7);
      background:rgba(15,23,42,0.58);
    }
    html[data-theme="dark"] .replay-event-title{color:#e2e8f0}
    html[data-theme="dark"] .replay-event-count{color:#94a3b8}
    html[data-theme="dark"] .replay-event-item{
      border-color:rgba(71,85,105,0.72);
      background:rgba(15,23,42,0.72);
      color:#cbd5e1;
    }
    html[data-theme="dark"] .replay-event-item:hover,
    html[data-theme="dark"] .replay-event-item.is-active{
      border-color:rgba(251,146,60,0.72);
      background:rgba(67,45,25,0.76);
    }
    html[data-theme="dark"] .replay-event-item-title{color:#f8fafc}
    html[data-theme="dark"] .replay-event-message{color:#cbd5e1}
    html[data-theme="dark"] .replay-event-meta{color:#94a3b8}
    html[data-theme="dark"] .replay-convert-btn{
      border-color:rgba(148,163,184,0.62);
      background:linear-gradient(180deg,#1e293b,#111827);
      color:#f1f5f9;
      box-shadow:0 8px 14px rgba(2,6,23,0.36);
    }
    .devtools-panel{
      display:none;
      flex-direction:column;
      gap:12px;
      flex:1 1 auto;
      min-height:0;
      overflow:auto;
    }
    .controls-card.devtools-mode .controls-grid{display:none}
    .controls-card.devtools-mode .devtools-panel{display:flex}
    .devtools-header{display:flex;align-items:center;justify-content:space-between}
    .controls-card.devtools-mode .devtools-header{display:none}
    .devtools-title{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#4b5563}
    .devtools-close-btn{
      width:26px;height:26px;border-radius:999px;border:1px solid rgba(148,163,184,0.75);
      background:radial-gradient(circle at 30% 20%,#f9fafb,#e5e7eb);
      color:#4b5563;font-size:16px;display:flex;align-items:center;justify-content:center;
      box-shadow:0 5px 12px rgba(148,163,184,0.32);padding:0
    }
    .devtools-close-btn:hover{background:#0f172a;color:#e5e7eb}
    .devtools-divider{display:flex;align-items:center;gap:10px}
    .devtools-divider::before,.devtools-divider::after{
      content:"";height:1px;flex:1;background:rgba(148,163,184,0.4);
    }
    .devtools-divider-label{
      font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;
    }
    .devtools-relay-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .devtools-relay-btn{
      width:100%;padding:12px 10px;border-radius:14px;border:1px solid rgba(148,163,184,0.6);
      background:#f1f5f9;
      border-color:#9bd7a7;
      color:#2f7d3a;font-weight:800;letter-spacing:.06em;font-size:12px;
      box-shadow:0 4px 10px rgba(15,23,42,0.08);
    }
    .devtools-relay-btn.is-on{
      background:#fee2e2;
      border-color:#f59e9e;
      color:#b4232c;
      box-shadow:0 4px 10px rgba(239,68,68,0.14);
    }
    .devtools-relay-btn.is-warning{
      box-shadow:0 0 0 2px rgba(245,158,11,0.45),0 6px 14px rgba(245,158,11,0.16);
    }
    .devtools-relay-btn.span-2{grid-column:1 / -1}
    .devtools-warning{
      display:none;padding:8px 10px;border-radius:12px;border:1px solid rgba(245,158,11,0.55);
      background:rgba(251,191,36,0.12);color:#92400e;font-size:11px;font-weight:700;text-align:center;
      letter-spacing:.06em;
    }
    .devtools-warning.show{display:block}
    .charts-card{
      padding:12px;
      padding-bottom:12px;
      overflow:hidden;
      display:grid;
      grid-template-rows:auto 1fr;
      height:var(--chart-height);
      min-height:var(--chart-height);
    }
    .chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;gap:8px;flex-wrap:wrap}
    .chart-title-main{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-soft)}
    .chart-title-main--flight{display:none}
    .mode-flight .chart-title-main--daq{display:none}
    .mode-flight .chart-title-main--flight{display:block}
    .mode-flight #missionOpenBtn{display:none !important;}
    .chart-controls{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
    .chart-btn{
      border-radius:var(--radius-pill);border:1px solid rgba(148,163,184,0.7);
      background:#f9fafb;color:#4b5563;padding:2px 8px;font-size:11px;min-width:26px;text-align:center
    }
    .chart-btn-live{background:var(--accent);border-color:var(--accent-strong);color:#eff6ff;font-weight:600;letter-spacing:.05em}
    .chart-row{
      display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;
      gap:8px;margin-top:2px;min-height:0;align-items:stretch;
    }
    .chart-box{
      background:linear-gradient(135deg,#f8fafc,#e2e8f0);
      border-radius:var(--radius-md);padding:4px;border:1px solid rgba(148,163,184,0.55);flex:1 1 0;
      display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;
      box-shadow:0 6px 14px rgba(15,23,42,0.08),0 1px 0 rgba(255,255,255,0.8) inset
    }
    .chart-box--flight{display:none}
    .mode-flight .chart-box--daq{display:none}
    .mode-flight .chart-box--flight{display:flex}
    .chart-box-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}
    .chart-title{font-size:12px;font-weight:600;color:#111827}
    .chart-badge{font-size:10px;padding:3px 8px;border-radius:var(--radius-pill);background:rgba(255,255,255,0.8);color:#4b5563}
    .chart-canvas-stage{
      position:relative;
      flex:1;
      min-height:0;
      padding:1px 2px 12px 12px;
    }
    .chart-axis-tag{
      position:absolute;
      font-size:10px;
      font-weight:600;
      letter-spacing:.08em;
      text-transform:uppercase;
      color:rgba(71,85,105,0.78);
      pointer-events:none;
      user-select:none;
      white-space:nowrap;
    }
    .chart-axis-tag--y{
      left:0;
      top:50%;
      transform:translate(-8%, -50%) rotate(-90deg);
      transform-origin:left top;
    }
    .chart-axis-tag--x{
      left:50%;
      bottom:-2px;
      transform:translateX(-50%);
    }
    .chart-canvas-stage canvas{width:100%;height:100%;max-height:100%;display:block;min-height:0}
    @media(max-width:900px){
      .charts-card{height:auto}
      .chart-row{flex-direction:column;flex-wrap:nowrap}
      .chart-box{flex:1 1 auto;min-height:220px}
    }

    .log-card{
      position:relative;background:#020617;color:#e5e7eb;border-radius:var(--radius-lg);
      padding:10px;box-shadow:0 10px 28px rgba(15,23,42,0.75);
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:11px;display:flex;flex-direction:column;height:var(--log-height);max-height:var(--log-height);
      border:1px solid rgba(15,23,42,0.95);backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2);
      overflow:hidden
    }
    @media(min-width:1024px){.log-card{height:300px;max-height:300px}}
    .log-card::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(148,163,184,0.8),rgba(37,99,235,0.9),rgba(15,23,42,1));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.8;pointer-events:none
    }
    .log-card::after{
      content:"";position:absolute;inset:0;border-radius:inherit;
      background:radial-gradient(circle at 0 0,rgba(248,250,252,0.12),transparent 55%);
      opacity:0.8;pointer-events:none
    }
    .log-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:8px}
    .log-title{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#9ca3af}
    .terminal-shell{
      margin-top:4px;border-radius:14px;border:1px solid #020617;background:#020617;
      box-shadow:0 10px 26px rgba(15,23,42,0.85);
      flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative
    }
    .terminal-header{display:flex;align-items:center;justify-content:space-between;padding:6px 9px;background:#020617;border-bottom:1px solid #111827}
    .term-title{font-size:10px;color:#9ca3af}
    .term-actions{display:flex;align-items:center;gap:6px}
    .term-copy-btn{
      border:1px solid #1f2937;border-radius:999px;padding:2px 8px;
      background:transparent;color:#cbd5e1;font-size:9px;font-weight:600;
      letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
      transition:background .16s ease,color .16s ease,border-color .16s ease
    }
    .term-copy-btn:hover{background:#111827;border-color:#334155;color:#e2e8f0}
    #logView{
      padding:8px 10px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
      white-space:pre-wrap;word-wrap:break-word;scrollbar-width:thin;scrollbar-color:#4b5563 #020617
    }
    #logView::-webkit-scrollbar{width:6px}
    #logView::-webkit-scrollbar-track{background:#020617}
    #logView::-webkit-scrollbar-thumb{background:#4b5563;border-radius:999px}
    .log-line{font-family:inherit;font-size:11px;line-height:1.4;color:#e5e7eb}
    .log-prefix{color:#6b7280}
    .terminal-input-row{
      display:flex;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #111827;background:#020617
    }
    .terminal-prompt{color:#64748b;font-size:11px}
    .terminal-input{
      flex:1 1 auto;background:#0f172a;border:1px solid #1f2937;border-radius:10px;padding:6px 10px;
      color:#e2e8f0;font-size:11px;font-family:inherit;outline:none
    }
    .terminal-input::placeholder{color:#475569}
    .terminal-input:focus{border-color:#334155;box-shadow:0 0 0 2px rgba(148,163,184,0.2)}
    .terminal-send-btn{
      border:1px solid #1f2937;border-radius:999px;padding:4px 10px;
      background:#111827;color:#e2e8f0;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
      transition:background .16s ease,color .16s ease,border-color .16s ease
    }
    .terminal-send-btn:hover{background:#1f2937;border-color:#334155}
    .terminal-view{
      flex:1;
      min-height:0;
    }
    .terminal-view .shell{
      display:flex;
      flex-direction:column;
      align-items:stretch;
      flex:1;
      min-height:0;
    }
    .terminal-view .log-card{
      height:calc(100dvh - 150px - env(safe-area-inset-bottom, 0px));
      max-height:none;
      width:100%;
    }
    .terminal-view .log-card,
    .terminal-view .terminal-shell,
    .terminal-view #logView{
      width:100%;
    }
    .terminal-view .terminal-shell{
      height:100%;
      width:100%;
    }
    @keyframes countdownGlow{
      0%,100%{
        text-shadow:
          0 16px 34px rgba(15,23,42,0.22),
          0 3px 0 rgba(255,255,255,0.6),
          0 0 18px rgba(59,130,246,0.18);
      }
      50%{
        text-shadow:
          0 26px 54px rgba(30,64,175,0.45),
          0 4px 0 rgba(255,255,255,0.75),
          0 0 28px rgba(59,130,246,0.32);
      }
    }
    .hardware-view{
      flex:1;
      min-height:0;
    }
    .mission-view{
      display:flex;
      flex-direction:column;
      flex:1;
      min-height:0;
      overflow:hidden;
    }
    .mission-view .shell{
      display:flex;
      flex-direction:column;
      flex:1 1 auto;
      gap:8px;
      min-height:0;
      overflow:hidden;
    }
    .mission-landing-card{
      display:flex;
      flex-direction:column;
      flex:1 1 auto;
      min-height:0;
      padding:14px 20px;
      overflow:hidden;
    }
    .mission-landing-card > .card-header:empty,
    .mission-landing-card > .mission-landing-actions:empty{
      display:none;
      margin:0;
      padding:0;
    }
    .mission-landing-title{
      font-size:18px;
      font-weight:800;
      letter-spacing:.04em;
      color:#111827;
    }
    .mission-landing-desc{
      margin-top:8px;
      font-size:13px;
      line-height:1.7;
      color:#6b7280;
    }
    .mission-landing-actions{
      margin-top:16px;
      display:flex;
      align-items:center;
      gap:10px;
    }
    .mission-view-mount{
      margin-top:0;
      flex:1 1 auto;
      min-height:0;
      height:100%;
      max-height:none;
      border:none;
      background:transparent;
      padding:0;
      overflow:hidden;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel{
      border-radius:0;
      border:none;
      box-shadow:none;
      background:transparent;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      padding:0;
      min-height:0;
      max-height:none;
      height:100%;
      display:flex;
      flex-direction:column;
      overflow:hidden;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel::before{
      display:none;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionBackBtn{
      display:none !important;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel .mission-header{
      display:none;
      padding:0;
      margin:0;
      border-bottom:none;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel .mission-sub{
      max-width:none;
    }
    .mission-block-list.is-dragging{
      user-select:none;
    }
    .mission-block-row{
      cursor:grab;
      touch-action:none;
      will-change:transform;
      transition:transform .12s ease, opacity .12s ease, box-shadow .12s ease;
    }
    .mission-block-row.is-free-moving{
      transition:none;
      z-index:2;
      cursor:grabbing;
    }
    .mission-block-row.is-dragging{
      opacity:.5;
      transform:scale(.985);
    }
    .mission-block-row.drop-before{
      box-shadow:
        0 -6px 0 0 rgba(250,204,21,0.98),
        0 0 0 2px rgba(250,204,21,0.36);
    }
    .mission-block-row.drop-after{
      box-shadow:
        0 6px 0 0 rgba(250,204,21,0.98),
        0 0 0 2px rgba(250,204,21,0.36);
    }
    .mission-block-row.drop-inside{
      box-shadow:inset 0 0 0 4px rgba(250,204,21,0.9);
      border-radius:14px;
    }
    @media(max-width:760px){
      .mission-view-mount{
        min-height:320px;
        max-height:none;
        padding:0;
        overflow:auto;
      }
      .mission-block-workspace{
        flex-direction:column;
        min-height:0;
      }
      .mission-block-palette{
        align-self:auto !important;
        height:auto;
        min-height:140px;
        max-height:none;
      }
    }
    .hardware-view .shell{
      display:flex;
      flex-direction:column;
      gap:16px;
      min-height:0;
    }
    .hardware-card{
      padding:18px;
    }
    .hardware-title{
      font-size:16px;font-weight:700;letter-spacing:.04em;color:#111827;
    }
    .hardware-desc{
      margin-top:8px;font-size:13px;color:#6b7280;line-height:1.6;
    }
    .hardware-servo-group{
      margin-top:14px;
      padding-top:14px;
      border-top:1px solid rgba(229,231,235,0.9);
    }
    .hardware-servo-open-row{
      margin-top:14px;
      padding-top:14px;
      border-top:1px solid rgba(229,231,235,0.9);
    }
    .hardware-servo-quick-row{
      margin:8px 0 8px;
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:8px;
    }
    .hardware-servo-quick-btn{
      position:relative;
      overflow:hidden;
      width:100%;
      min-height:40px;
      padding:8px 10px;
      border-radius:8px;
      border:1px solid rgba(148,163,184,0.5);
      background:#ffffff;
      color:#1e293b;
      font-size:14px;
      font-weight:700;
      box-shadow:none;
    }
    .hardware-servo-quick-btn.is-active{
      border-color:rgba(15,23,42,0.55);
      background:#ffffff;
      color:#0f172a;
      box-shadow:none;
    }
    .hardware-servo-quick-btn.is-active::before{
      content:none;
      display:none;
    }
    .hardware-servo-inline-wrap{
      margin-top:10px;
    }
    .hardware-servo-inline-wrap .hardware-servo-grid{
      grid-template-columns:minmax(0,1fr);
    }
    .hardware-servo-inline-wrap .hardware-servo-presets{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:8px;
      align-items:center;
    }
    .hardware-servo-inline-wrap .hardware-servo-preset{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      gap:6px;
      align-items:center;
    }
    .hardware-servo-inline-wrap .hardware-servo-preset-input{
      min-width:72px;
      width:100%;
    }
    .hardware-servo-inline-wrap .hardware-servo-row{
      display:none;
    }
    .hardware-servo-inline-wrap .hardware-servo-row.is-active{
      display:grid;
    }
    .hardware-servo-dialog{
      width:min(560px, 96vw);
      max-width:min(560px, 96vw);
      height:auto;
      max-height:min(92vh, 780px);
      padding:16px 18px 18px;
      border-radius:16px;
      border:1px solid rgba(148,163,184,0.3);
      background:
        radial-gradient(120% 100% at 0% 0%, rgba(191,219,254,0.22), transparent 60%),
        linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
      box-shadow:0 18px 40px rgba(15,23,42,0.2);
    }
    .hardware-servo-dialog .settings-header{
      min-height:62px;
      padding:2px 4px 12px;
      border-bottom:1px solid rgba(203,213,225,0.78);
      margin-bottom:12px;
    }
    .hardware-servo-dialog .settings-title{
      letter-spacing:.09em;
      font-size:14px;
      font-weight:800;
      color:#1e293b;
    }
    .hardware-servo-dialog .hardware-servo-group > .settings-label{
      color:#0f172a;
      font-size:14px;
      font-weight:800;
    }
    .hardware-servo-dialog .hardware-servo-quick-row{
      margin-top:10px;
    }
    .hardware-servo-dialog .settings-close-btn{
      width:38px;
      height:38px;
      border-radius:10px;
      border:1px solid rgba(148,163,184,0.52);
      background:#ffffff;
      color:#334155;
      font-size:22px;
      line-height:1;
    }
    .hardware-servo-dialog-body{
      min-height:0;
      overflow-y:auto;
      padding-right:4px;
    }
    .hardware-servo-mobile-stage{
      display:none;
    }
    .hardware-servo-channel-picker{
      display:none;
    }
    .hardware-servo-dialog .hardware-servo-group{
      margin-top:0;
      padding-top:0;
      border-top:none;
    }
    .hardware-servo-grid{
      margin-top:10px;
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:10px;
    }
    .hardware-servo-row{
      border:1px solid rgba(148,163,184,0.34);
      border-radius:12px;
      background:rgba(255,255,255,0.96);
      padding:16px 14px 18px;
      display:grid;
      gap:13px;
      box-shadow:0 3px 10px rgba(15,23,42,0.06);
    }
    .hardware-servo-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .hardware-servo-meta{
      font-size:11px;
      color:#64748b;
      white-space:nowrap;
      font-weight:700;
      letter-spacing:.03em;
    }
    .hardware-servo-row .hardware-servo-head .settings-label{
      color:#0f172a !important;
      opacity:1 !important;
      visibility:visible !important;
      font-weight:800 !important;
      letter-spacing:.02em;
      text-shadow:none !important;
    }
    .hardware-servo-current-label{
      display:flex;
      align-items:baseline;
      gap:8px;
    }
    .hardware-servo-current-label [data-servo-current-angle]::before{
      content:"·";
      margin-right:8px;
      color:currentColor;
      opacity:.62;
    }
    .hardware-servo-slider{
      -webkit-appearance:none;
      appearance:none;
      width:100%;
      height:8px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.3);
      background:linear-gradient(90deg, rgba(148,163,184,0.24), rgba(59,130,246,0.3));
      outline:none;
    }
    .hardware-servo-slider-line{
      display:contents;
    }
    .hardware-servo-slider::-webkit-slider-thumb{
      -webkit-appearance:none;
      appearance:none;
      width:18px;
      height:18px;
      border-radius:50%;
      background:#2563eb;
      border:2px solid #ffffff;
      box-shadow:0 2px 7px rgba(15,23,42,0.22);
    }
    .hardware-servo-slider::-moz-range-thumb{
      width:18px;
      height:18px;
      border-radius:50%;
      background:#2563eb;
      border:2px solid #ffffff;
      box-shadow:0 2px 7px rgba(15,23,42,0.22);
    }
    .hardware-servo-actions{
      display:flex;
      justify-content:flex-end;
      gap:6px;
    }
    .hardware-servo-presets{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:10px;
      margin-top:4px;
    }
    .hardware-servo-preset{
      display:grid;
      grid-template-columns:minmax(0, 1fr) auto;
      gap:6px;
      align-items:center;
      min-width:0;
    }
    .hardware-servo-preset-input{
      width:100%;
      min-width:0;
      padding:10px 8px;
      font-size:12px;
      border-radius:8px;
      border:1px solid rgba(148,163,184,0.7);
      background:#ffffff;
      color:#0f172a;
      text-align:center;
      outline:none;
    }
    .hardware-servo-preset-input:focus{
      border-color:rgba(59,130,246,0.9);
      box-shadow:0 0 0 2px rgba(59,130,246,0.2);
    }
    .hardware-servo-preset-btn{
      padding:10px 12px;
      font-size:11px;
      border-radius:8px;
      border:1px solid rgba(148,163,184,0.66);
      background:#ffffff;
      color:#1f2937;
      font-weight:700;
      letter-spacing:.03em;
      white-space:nowrap;
    }
    .hardware-servo-preset-btn:hover{
      border-color:rgba(99,102,241,0.68);
      color:#1e3a8a;
      background:#f8fafc;
    }
    html[data-theme="dark"] .hardware-servo-group{
      border-top-color:rgba(71,85,105,0.8);
    }
    html[data-theme="dark"] .hardware-servo-open-row{
      border-top-color:rgba(71,85,105,0.8);
    }
    html[data-theme="dark"] .hardware-servo-row{
      background:rgba(15,23,42,0.58);
      border-color:rgba(71,85,105,0.75);
    }
    html[data-theme="dark"] .hardware-servo-row .hardware-servo-head .settings-label{
      color:#f8fafc !important;
    }
    html[data-theme="dark"] .hardware-servo-meta{
      color:#cbd5e1;
    }
    html[data-theme="dark"] .hardware-servo-preset-input{
      background:#0f172a;
      border-color:rgba(71,85,105,0.95);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .hardware-servo-preset-btn{
      background:rgba(15,23,42,0.7);
      border-color:rgba(71,85,105,0.95);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .hardware-servo-slider{
      border-color:rgba(71,85,105,0.95);
      background:linear-gradient(90deg, rgba(59,130,246,0.3), rgba(37,99,235,0.3));
    }
    html[data-theme="dark"] .hardware-servo-slider::-webkit-slider-thumb{
      border-color:#0f172a;
      box-shadow:0 2px 8px rgba(2,6,23,0.6);
    }
    html[data-theme="dark"] .hardware-servo-slider::-moz-range-thumb{
      border-color:#0f172a;
      box-shadow:0 2px 8px rgba(2,6,23,0.6);
    }
    .settings-btn.hardware-servo-quick-btn,
    html[data-theme="dark"] .settings-btn.hardware-servo-quick-btn,
    html.phone-landscape-layout .settings-btn.hardware-servo-quick-btn,
    html.phone-landscape-layout #settingsOverlay .settings-btn.hardware-servo-quick-btn{
      min-height:38px !important;
      border-radius:8px !important;
      border:1px solid rgba(148,163,184,0.58) !important;
      background:#ffffff !important;
      color:#1e293b !important;
      box-shadow:none !important;
      text-shadow:none !important;
    }
    .settings-btn.hardware-servo-quick-btn.is-active,
    html[data-theme="dark"] .settings-btn.hardware-servo-quick-btn.is-active,
    html.phone-landscape-layout .settings-btn.hardware-servo-quick-btn.is-active,
    html.phone-landscape-layout #settingsOverlay .settings-btn.hardware-servo-quick-btn.is-active{
      border-color:rgba(15,23,42,0.55) !important;
      background:#ffffff !important;
      color:#0f172a !important;
      box-shadow:none !important;
    }
    @media (max-width:760px){
      .hardware-servo-dialog{
        width:min(100%, 440px);
        max-width:calc(100vw - 28px);
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
        padding:14px 12px;
      }
      .hardware-servo-grid{
        grid-template-columns:1fr;
      }
      .hardware-servo-presets{
        grid-template-columns:1fr;
      }
      .hardware-servo-dialog .settings-header{
        min-height:58px;
        padding:0 2px 10px;
      }
    }

    .toast-container{
      position:fixed;bottom:22px;left:calc(72px + 22px);transform:none;
      z-index:90000;display:flex;flex-direction:column;align-items:flex-start;gap:12px;pointer-events:none;
      transition:left .2s ease, top .2s ease, bottom .2s ease, width .2s ease;
    }
    html.mobile-controls-active .toast-container{
      bottom:auto;
      top:calc(env(safe-area-inset-top, 0px) + 14px);
      left:50%;
      transform:translateX(-50%);
      width:calc(100% - 32px);
      max-width:640px;
      align-items:center;
      z-index:90000;
    }
    .toast{
      position:relative;width:min(440px,calc(100vw - 44px));padding:16px 18px 14px;border-radius:14px;
      --toast-accent:#9ca3af;
      background:#1f1f1f;
      border:1px solid rgba(255,255,255,0.06);
      box-shadow:0 18px 40px rgba(15,23,42,0.35);
      overflow:hidden;display:flex;align-items:flex-start;gap:14px;
      opacity:0;transform:translateY(10px);pointer-events:auto;cursor:pointer;
      transition:transform .22s ease,opacity .22s ease;
      color:#f8fafc;
    }
    .toast::after{
      content:"";position:absolute;inset:0;
      background:radial-gradient(circle at 20% 0,rgba(255,255,255,0.12),transparent 55%);
      pointer-events:none
    }
    .toast-show{animation:toastIn .24s ease-out forwards}
    .toast-hide{animation:toastOut .18s ease-in forwards}
    @keyframes toastIn{to{opacity:1;transform:translateY(0)}}
    @keyframes toastOut{to{opacity:0;transform:translateY(-8px)}}
    .toast-icon{
      display:none !important;
      width:0 !important;
      height:0 !important;
      min-width:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      overflow:hidden !important;
    }
    .toast-icon::after{
      content:none;
    }
    .toast-icon img{
      width:28px;
      height:28px;
      display:block;
      filter:grayscale(12%) contrast(0.72) brightness(1.06);
      opacity:0.68;
    }
    .toast-body{
      flex:1;min-width:0;
      display:flex;flex-direction:column;gap:6px;
      justify-content:flex-start;
      text-align:left;
    }
    .toast-title{
      font-size:12px;
      font-weight:700;
      letter-spacing:.04em;
      color:#e2e8f0;
    }
    .toast-text{
      font-size:13px;color:#d1d5db;line-height:1.5;
      word-break:keep-all;text-align:left;
      white-space:normal;overflow:visible;text-overflow:clip;
      padding-right:28px;
    }
    .toast-close{
      position:absolute;right:12px;top:10px;
      width:28px;height:28px;border-radius:8px;border:none;
      background:transparent;color:rgba(255,255,255,0.7);
      font-size:20px;line-height:1;cursor:pointer;
    }
    .toast-close:hover{color:#ffffff;background:rgba(255,255,255,0.08)}
    .toast-expanded{
      width:min(440px,calc(100vw - 44px));
      padding:16px 18px 14px;
      border-radius:14px;
      background:#1f1f1f;
      box-shadow:0 18px 40px rgba(15,23,42,0.35);
    }
    .toast-expanded .toast-text{
      font-size:inherit;
      line-height:1.5;
    }
    .toast-info{
      --toast-accent:#9ca3af;
      --toast-icon-bg:radial-gradient(circle at 30% 30%, #d1d5db, #6b7280);
      --toast-glow:rgba(148,163,184,0.35);
    }
    .toast-success{
      --toast-accent:#22c55e;
      --toast-icon-bg:radial-gradient(circle at 30% 30%, #6ee7b7, #22c55e);
      --toast-glow:rgba(34,197,94,0.35);
    }
    .toast-warn{
      --toast-accent:#f59e0b;
      --toast-icon-bg:radial-gradient(circle at 30% 30%, #fcd34d, #f59e0b);
      --toast-glow:rgba(245,158,11,0.38);
    }
    .toast-warn .toast-title{color:#fbbf24 !important}
    .toast-error .toast-title{color:#f87171 !important}
    .toast-error{
      --toast-accent:#ef4444;
      --toast-icon-bg:radial-gradient(circle at 30% 30%, #fda4af, #ef4444);
      --toast-glow:rgba(239,68,68,0.38);
    }
    .toast-ignite{
      --toast-accent:#fb923c;
      --toast-icon-bg:radial-gradient(circle at 30% 30%, #fdba74, #fb923c);
      --toast-glow:rgba(251,146,60,0.38);
    }
    @media(max-width:920px){
      .toast-container{bottom:14px;left:14px}
    }
    @media(max-width:600px){
      .toast-container{
        top:auto;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px);
        left:50%;
        right:auto;
        width:calc(100vw - 28px);
        max-width:420px;
        max-height:min(34dvh, 240px);
        transform:translateX(-50%);
        align-items:center;
        gap:8px;
        overflow-y:auto;
        overscroll-behavior:contain;
      }
      body.mobile-board-header-active .toast-container{
        top:auto;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px);
      }
      html.mobile-controls-active .toast-container{
        top:auto;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px);
        left:50%;
        right:auto;
        width:calc(100vw - 28px);
        max-width:420px;
        transform:translateX(-50%);
        align-items:center;
      }
      .toast{
        width:100%;
        max-width:min(420px, calc(100vw - 24px));
        min-height:54px;
        margin:0 auto;
        padding:11px 42px 11px 14px;
        border-radius:8px;
        border:1px solid rgba(255,255,255,0.08);
        border-left:3px solid var(--toast-accent);
        background:rgba(18,18,18,0.96);
        box-shadow:0 10px 26px rgba(0,0,0,0.28);
        gap:0;
        transform:translateY(-8px);
        -webkit-backdrop-filter:blur(12px);
        backdrop-filter:blur(12px);
      }
      .toast::after{content:none}
      .toast-body{gap:4px}
      .toast-title{
        font-size:10px;
        line-height:1.15;
        letter-spacing:.06em;
      }
      .toast-text{
        padding-right:0;
        font-size:12px;
        line-height:1.35;
        color:#e5e7eb;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
      }
      .toast-close{
        top:50%;
        right:7px;
        width:30px;
        height:30px;
        border-radius:8px;
        transform:translateY(-50%);
        font-size:18px;
        color:rgba(255,255,255,0.66);
      }
      .toast-expanded{
        width:100%;
        max-width:min(420px, calc(100vw - 24px));
        padding:12px 42px 12px 14px;
        border-radius:8px;
      }
      .toast-expanded .toast-text{
        display:block;
        max-height:32dvh;
        overflow:auto;
      }
      .toast-icon{display:none !important}
      #controlsCard.controls-mobile-hidden{display:none}
    }

    .confirm-overlay,.settings-overlay{
      position:fixed;inset:0;background:rgba(15,23,42,0.45);
      display:flex;align-items:center;justify-content:center;padding:16px;z-index:50
    }
    #launcherAutoOverlay{z-index:60}
    .ws-alert-overlay{
      position:fixed;inset:0;background:rgba(15,23,42,0.45);
      display:flex;align-items:center;justify-content:center;padding:16px;z-index:70;
      backdrop-filter:blur(2px);
    }
    .disconnect-overlay{
      position:fixed;inset:0;background:rgba(2,6,23,0.82);
      display:flex;align-items:center;justify-content:center;padding:16px;z-index:65;
      backdrop-filter:blur(10px);
    }
    .controls-overlay{
      position:fixed;inset:0;z-index:85;
      display:flex;align-items:center;justify-content:center;
      background:rgba(15,23,42,0.65);
      padding:16px;
    }
    .controls-overlay.hidden{display:none}
    .replay-seek-overlay{
      position:fixed;inset:0;z-index:92;
      display:flex;align-items:center;justify-content:center;
      background:rgba(2,6,23,0.42);
      backdrop-filter:blur(3px);
      -webkit-backdrop-filter:blur(3px);
      padding:18px;
    }
    .replay-seek-dialog{
      width:auto;
      border-radius:0;
      background:transparent;
      border:none;
      box-shadow:none;
      padding:0;
      text-align:center;
      color:#e5e7eb;
    }
    .replay-seek-spinner{
      width:28px;height:28px;
      border-radius:50%;
      border:3px solid rgba(148,163,184,0.35);
      border-top-color:#fb923c;
      margin:0 auto 10px;
      animation:replaySeekSpin .9s linear infinite;
    }
    .replay-seek-title{
      font-size:14px;
      font-weight:800;
      letter-spacing:.03em;
      color:#f8fafc;
      margin-bottom:4px;
    }
    .replay-seek-text{
      font-size:12px;
      line-height:1.5;
      color:#cbd5e1;
      font-weight:600;
      letter-spacing:.01em;
    }
    @keyframes replaySeekSpin{to{transform:rotate(360deg)}}
    .wifi-connect-dialog{
      text-align:center;
      background:transparent !important;
      border:none !important;
      box-shadow:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }
    .wifi-connect-dialog::before,
    .wifi-connect-dialog::after{
      content:none;
      display:none;
    }
    .wifi-connect-dialog .confirm-title{
      margin-top:2px;
    }
    .wifi-connect-dialog .confirm-text{
      margin-bottom:6px;
    }
    .wifi-connect-dialog .confirm-note{
      margin-top:0;
      min-height:18px;
    }
    .wifi-connect-dialog .confirm-icon{
      margin:0 auto 12px;
    }
    .wifi-connect-dialog .confirm-icon svg{
      width:46px;
      height:46px;
      stroke-width:2;
    }
    .wifi-connect-actions{
      margin-top:14px;
    }
    .wifi-connect-actions #wifiConnectNextBtn{
      min-width:112px;
    }
    .wifi-connect-actions #wifiConnectNextBtn:disabled{
      opacity:0.7;
      cursor:wait;
    }
    .wifi-connect-actions .confirm-cancel{
      color:#cbd5f5;
      text-decoration:none;
    }
    .wifi-connect-spinner{
      width:24px;
      height:24px;
      margin:4px auto 0;
      border-radius:50%;
      border:2px solid rgba(148,163,184,0.30);
      border-top-color:#1d7efc;
      animation:replaySeekSpin .85s linear infinite;
    }
    .connect-method-actions{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:10px;
      margin-top:14px;
    }
    .connect-method-btn{
      appearance:none;
      border:1px solid rgba(148,163,184,.35);
      border-radius:16px;
      background:rgba(15,23,42,.78);
      color:#f8fafc;
      padding:14px 12px;
      min-height:92px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:7px;
      font:inherit;
      cursor:pointer;
      text-align:center;
    }
    .connect-method-btn svg{
      width:30px;
      height:30px;
      stroke:currentColor;
      fill:none;
      stroke-width:2;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .connect-method-btn strong{
      font-size:15px;
      font-weight:850;
      letter-spacing:-.02em;
    }
    .connect-method-btn span{
      color:#cbd5e1;
      font-size:11px;
      font-weight:650;
      line-height:1.35;
    }
    .connect-method-btn.is-usb{
      border-color:rgba(59,130,246,.46);
    }
    .connect-method-btn.is-wifi{
      border-color:rgba(34,197,94,.46);
    }
    @media (max-width:740px){
      .controls-card .control-row .control-tile-actions .pill,
      .controls-card .control-row .control-tile-actions button,
      .controls-card .control-row .control-tile-actions .control-tile-select{
        min-width:58px;
        height:21px;
        font-size:9px;
      }
      .wifi-connect-dialog .confirm-title{
        font-size:32px;
      }
    }
    .controls-overlay-slot{
      position:relative;
      width:min(96vw,560px);
      max-height:min(95vh,calc(100vh - 56px));
      overflow:auto;
      display:flex;
      justify-content:center;
    }
    .controls-card{
      position:relative;
    }
    .controls-overlay-close{
      position:absolute;
      top:6px;
      right:6px;
      width:32px;height:32px;
      border:none;
      border-radius:50%;
      background:transparent;
      color:#0f172a;
      font-size:24px;
      line-height:1;
      cursor:pointer;
      box-shadow:none;
      z-index:5;
      padding:0;
    }
    @media(min-width:601px){
      .controls-overlay{display:none!important}
    }
    .disconnect-dialog{
      min-width:min(360px,calc(100vw - 48px));
      max-width:520px;
      padding:10px 16px 6px;
      text-align:center;
    }
    .disconnect-title{
      font-size:16px;font-weight:700;letter-spacing:.08em;color:#f8fafc;
      margin-top:12px;
    }
    .disconnect-text{
      margin-top:6px;font-size:13px;color:#cbd5f5;line-height:1.5;
    }
    .disconnect-actions{
      display:flex;justify-content:center;margin-top:14px;
    }
    .reboot-overlay{
      position:fixed;inset:0;background:rgba(2,6,23,0.82);
      display:flex;align-items:center;justify-content:center;padding:16px;z-index:66;
      backdrop-filter:blur(10px);
    }
    .reboot-dialog{
      min-width:min(360px,calc(100vw - 48px));
      max-width:520px;
      padding:10px 16px 6px;
      text-align:center;
    }
    .reboot-actions{
      display:flex;
      justify-content:center;
      align-items:center;
      flex-direction:column;
      gap:10px;
      margin-top:14px;
    }
    .reboot-actions .confirm-cancel{
      margin-top:0;
      color:#cbd5f5;
      text-decoration:none;
      font-size:12px;
    }
    .reboot-actions .confirm-cancel:hover{
      color:#f8fafc;
    }
    .reboot-confirm{
      min-width:112px;
    }
    .reboot-overlay.is-waiting .reboot-actions{
      display:none;
    }
    .reboot-overlay.is-waiting .confirm-icon{
      animation:rebootPulse 1.2s ease-in-out infinite;
    }
    @keyframes rebootPulse{
      0%,100%{transform:scale(1);opacity:1}
      50%{transform:scale(0.94);opacity:.84}
    }
    .disconnect-ok{
      background:#e2e8f0;color:#0f172a;border:1px solid rgba(148,163,184,0.35);
      border-radius:999px;padding:8px 18px;font-weight:700;font-size:12px;
      letter-spacing:.06em;cursor:pointer;
      box-shadow:0 6px 18px rgba(15,23,42,0.25);
    }
    .disconnect-ok:hover{background:#f8fafc}
    .hidden{display:none}
    #confirmOverlay.hidden{
      display:none !important;
      pointer-events:none !important;
    }
    .confirm-dialog{
      position:relative;
      background:linear-gradient(180deg,rgba(255,255,255,0.97),rgba(244,247,252,0.95));
      border-radius:22px;padding:18px 18px 14px;width:100%;max-width:360px;
      box-shadow:0 14px 34px rgba(15,23,42,0.14),0 2px 0 rgba(255,255,255,0.9) inset;
      color:#0f172a;border:1px solid rgba(255,255,255,0.7);
      backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);overflow:hidden
    }
    .confirm-dialog.force-dialog{min-height:270px;padding-bottom:22px}
    .confirm-dialog>*{position:relative;z-index:1}
    .confirm-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(148,163,184,0.4));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.9;pointer-events:none;z-index:0
    }
    .confirm-dialog::after{
      content:"";position:absolute;inset:0;border-radius:inherit;
      background:radial-gradient(circle at 20% 0,rgba(254,202,202,0.35),transparent 60%);
      opacity:0.6;pointer-events:none;z-index:0
    }
    .confirm-icon{
      width:auto;height:auto;border-radius:0;
      background:none !important;
      border:none !important;
      display:flex;align-items:center;justify-content:center;margin:2px auto 10px;
      box-shadow:none !important;
      color:#ffffff;
    }
    .confirm-icon span{
      font-size:46px;font-weight:900;color:currentColor;line-height:1;
      text-shadow:0 1px 2px rgba(15,23,42,0.35)
    }
    .confirm-icon img{
      width:46px;height:46px;display:block;
      filter:brightness(0) invert(1);
    }
    .confirm-icon svg{
      width:46px;height:46px;display:block;
      stroke:currentColor;fill:none;stroke-width:2;
      stroke-linecap:round;stroke-linejoin:round;
    }
    .confirm-title{font-size:16px;font-weight:700;color:#0f172a;text-align:center;margin-bottom:6px}
    .confirm-text{font-size:12px;color:#64748b;margin-bottom:10px;line-height:1.5;text-align:center}
    .confirm-note{font-size:11px;color:#94a3b8;text-align:center;margin-bottom:10px}
    .prize-actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;margin-top:8px}
    .confirm-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:4px}
    .confirm-cancel{border:none;background:none;color:#9ca3af;font-size:11px;text-decoration:underline;cursor:pointer;margin-top:2px;box-shadow:none}
    .confirm-cancel:hover{color:#e5e7eb}
    #confirmOverlay .confirm-dialog{
      background:linear-gradient(180deg,#ffffff,#f8fafc);
      border-color:rgba(148,163,184,0.45);
      color:#0f172a;
      border-radius:12px;
    }
    #confirmOverlay .confirm-title{
      color:#0f172a;
    }
    #confirmOverlay .confirm-text,
    #confirmOverlay .confirm-note{
      color:#475569;
    }
    .ignition-warning-illustration{
      width:390px;
      max-width:86vw;
      aspect-ratio:1;
      margin:0 0 12px;
      padding:0;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:hidden;
      border:0 !important;
      outline:0 !important;
      border-radius:8px;
      background:transparent !important;
      box-shadow:none !important;
    }
    .ignition-warning-illustration img{
      display:block;
      width:100%;
      max-width:none;
      aspect-ratio:1;
      object-fit:cover;
      border:0 !important;
      border-radius:0;
      background:transparent;
      filter:brightness(.98) contrast(1.06);
      box-shadow:none;
      transform:none;
    }
    .pyro-control-confirm-illustration{
      width:390px;
      max-width:86vw;
      aspect-ratio:1;
      overflow:hidden;
      border:0 !important;
      outline:0 !important;
      border-radius:8px;
      background:transparent !important;
      box-shadow:none !important;
    }
    .pyro-control-confirm-illustration img{
      width:100%;
      max-width:none;
      border:0 !important;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      transform:none;
    }
    .pyro-hold-button{
      --pyro-hold-progress:0;
      position:relative;
      isolation:isolate;
      overflow:hidden;
      touch-action:none;
      -webkit-user-select:none;
      user-select:none;
    }
    .pyro-hold-button::before{
      content:"";
      position:absolute;
      z-index:0;
      inset:0;
      border-radius:inherit;
      background:rgba(255,255,255,.2);
      transform:scaleX(var(--pyro-hold-progress));
      transform-origin:left center;
      pointer-events:none;
    }
    .pyro-hold-button > span{
      position:relative;
      z-index:1;
      pointer-events:none;
    }
    #forceOverlay .confirm-dialog{
      background:linear-gradient(180deg,#ffffff,#f8fafc);
      border-color:rgba(148,163,184,0.45);
      color:#0f172a;
      border-radius:12px;
    }
    #forceOverlay .confirm-title{
      color:#0f172a;
    }
    #forceOverlay .confirm-text,
    #forceOverlay .confirm-note{
      color:#475569;
    }
    #forceOverlay .force-cancel-link,
    #forceOverlay .force-cancel-link:hover,
    #forceOverlay .force-cancel-link:focus,
    #forceOverlay .force-cancel-link:focus-visible,
    #forceOverlay .force-cancel-link:active{
      border:none;
      background:transparent;
      box-shadow:none;
      outline:none;
      border-radius:0;
      text-decoration:underline;
      text-underline-offset:4px;
      color:#9ca3af;
      -webkit-tap-highlight-color:transparent;
    }
    #confirmOverlay .confirm-cancel,
    #confirmOverlay .confirm-cancel:hover,
    #confirmOverlay .confirm-cancel:focus,
    #confirmOverlay .confirm-cancel:focus-visible,
    #confirmOverlay .confirm-cancel:active{
      border:none;
      background:transparent;
      box-shadow:none;
      outline:none;
      border-radius:0;
      -webkit-tap-highlight-color:transparent;
    }
    .ws-alert-dialog{
      position:relative;
      background:linear-gradient(180deg,rgba(255,255,255,0.97),rgba(244,247,252,0.95));
      border-radius:22px;padding:18px 18px 16px;width:100%;max-width:420px;
      box-shadow:0 14px 34px rgba(15,23,42,0.14),0 2px 0 rgba(255,255,255,0.9) inset;
      border:1px solid rgba(255,255,255,0.7);
      color:#0f172a;
      backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);
      overflow:hidden
    }
    .ws-alert-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(148,163,184,0.4));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.9;pointer-events:none
    }
    .ws-alert-dialog::after{
      content:"";position:absolute;inset:0;border-radius:inherit;
      background:radial-gradient(circle at 20% 0,rgba(254,202,202,0.35),transparent 60%);
      opacity:0.6;pointer-events:none
    }
    .ws-alert-dialog > *{position:relative;z-index:1}
    .ws-alert-title{font-size:16px;font-weight:700;text-align:center;margin-bottom:6px}
    .ws-alert-text{font-size:12px;color:#64748b;line-height:1.5;text-align:center;margin-bottom:12px;word-break:keep-all}
    .ws-alert-close-btn{
      width:100%;border:none;border-radius:12px;padding:10px 12px;
      background:linear-gradient(135deg,#0f172a,#1e293b);
      color:#f8fafc;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer;
      box-shadow:0 6px 14px rgba(15,23,42,0.2);
    }
    .ws-alert-close-btn:hover{filter:brightness(1.05)}

    /* ✅ 경고 모달 전체화면 */
    .warning-fullscreen{
      padding:0;
      align-items:stretch;
      justify-content:stretch;
      background:
        radial-gradient(560px 380px at 50% 14%, rgba(239,68,68,0.14), transparent 70%),
        radial-gradient(420px 220px at 12% 88%, rgba(59,130,246,0.12), transparent 70%),
        linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.72));
      backdrop-filter:blur(6px) saturate(1.05);
    }
    .warning-fullscreen::before{
      content:"";
      position:absolute;
      inset:0;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size:140px 140px;
      opacity:0.12;
      pointer-events:none;
    }
    .warning-fullscreen .confirm-dialog,
    .warning-fullscreen .ws-alert-dialog{
      width:100%;
      height:100%;
      max-width:none;
      border-radius:0;
      border:none;
      background:transparent;
      box-shadow:none;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding:clamp(24px,6vw,64px);
      text-align:center;
      color:#e2e8f0;
      backdrop-filter:none;
    }
    .warning-fullscreen .confirm-dialog::before,
    .warning-fullscreen .confirm-dialog::after,
    .warning-fullscreen .ws-alert-dialog::before,
    .warning-fullscreen .ws-alert-dialog::after{
      display:none;
    }
    .warning-fullscreen .confirm-icon{
      width:auto;height:auto;border-radius:0;
      background:none !important;border:none !important;box-shadow:none !important;
    }
    .warning-fullscreen .confirm-icon svg{
      width:52px;height:52px;stroke-width:1.9;
    }
    .warning-fullscreen .confirm-title,
    .warning-fullscreen .ws-alert-title{
      font-size:clamp(20px,4vw,30px);
      color:#f1f5f9;
      letter-spacing:.04em;
      text-transform:none;
      font-weight:700;
      text-shadow:0 8px 24px rgba(2,6,23,0.35);
    }
    .warning-fullscreen .confirm-text,
    .warning-fullscreen .ws-alert-text,
    .warning-fullscreen .confirm-note{
      font-size:clamp(12px,2vw,14px);
      color:#cbd5f5;
      max-width:64ch;
    }
    .warning-fullscreen .confirm-text{
      line-height:1.6;
    }
    .warning-fullscreen .confirm-note{
      border-top:1px solid rgba(148,163,184,0.2);
      padding-top:8px;
      letter-spacing:.02em;
    }
    .warning-fullscreen .ws-alert-close-btn{
      width:auto;
      border-radius:0;
      margin-top:6px;
      background:none;
      box-shadow:none;
      border:none;
      color:#cbd5f5;
      text-decoration:underline;
      text-underline-offset:4px;
      letter-spacing:.03em;
    }
    .warning-fullscreen .confirm-cancel{
      color:#94a3b8;
    }
    .warning-fullscreen .confirm-actions{
      gap:12px;
      margin-top:8px;
      width:min(360px,86vw);
    }
    .warning-fullscreen .loadcell-primary{
      padding:10px 20px;
      border-radius:999px;
      font-weight:700;
      letter-spacing:.04em;
      background:linear-gradient(135deg,#f25b56,#e24a46);
      color:#fff;
      box-shadow:0 10px 20px rgba(239,68,68,0.28);
    }
    .warning-fullscreen .loadcell-primary:hover{filter:brightness(1.05)}
    .warning-fullscreen .confirm-cancel{
      text-decoration:none;
      padding:8px 16px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.35);
      background:rgba(15,23,42,0.35);
      color:#e2e8f0;
    }
    .warning-fullscreen .force-danger-small{
      height:46px;
      font-size:14px;
    }
    .warning-fullscreen .lockout-dialog .confirm-text,
    .warning-fullscreen .lockout-dialog .confirm-note{
      color:#cbd5f5;
    }
    .warning-fullscreen .lockout-close{
      color:#e2e8f0;
    }
    .longpress-wrap{display:flex;justify-content:center;width:100%;margin-bottom:2px}
    .longpress-btn{
      position:relative;width:86px;height:86px;border-radius:999px;border:none;
      background:radial-gradient(circle at 30% 20%,#ffffff,#e5e7eb);
      color:#0f172a;font-size:11px;display:flex;align-items:center;justify-content:center;
      box-shadow:0 0 0 1px rgba(148,163,184,0.55),0 4px 10px rgba(15,23,42,0.1);overflow:hidden;
      -webkit-user-select:none;user-select:none;-webkit-touch-callout:none
    }
    .longpress-btn::before{content:'';position:absolute;inset:16px;border-radius:999px;background:radial-gradient(circle at 30% 20%,#f8fafc,#e2e8f0);opacity:.95}
    .longpress-btn span{position:relative;text-align:center;line-height:1.2;pointer-events:none;z-index:1;font-weight:500;letter-spacing:.06em}
    .longpress-ring{position:absolute;inset:5px;border-radius:999px;overflow:hidden;pointer-events:none}
    .longpress-spinner{
      position:absolute;inset:0;border-radius:999px;
      background:conic-gradient(#38bdf8 var(--lp-angle,0deg),rgba(15,23,42,0.18) var(--lp-angle,0deg) 360deg);
      -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 100%);
      mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 100%);
      box-shadow:0 0 16px rgba(56,189,248,0.6)
    }
    #confirmOverlay .longpress-ring{inset:0;border-radius:inherit}
    #confirmOverlay .longpress-spinner{
      inset:0;
      border-radius:inherit;
      background:rgba(255,255,255,.2);
      -webkit-mask:none;
      mask:none;
      transform:scaleX(var(--lp-progress,0));
      transform-origin:left center;
      box-shadow:none;
    }
    .force-actions{width:100%;display:flex;flex-direction:column;gap:12px;margin-top:10px}
    .force-slide{
      position:relative;width:100%;max-width:320px;height:52px;border-radius:999px;
      border:1px solid rgba(100,116,139,0.72);
      background:linear-gradient(180deg,#0f172a,#0b1220);
      box-shadow:inset 0 0 0 1px rgba(148,163,184,0.2),0 10px 22px rgba(2,6,23,0.55);
      display:flex;align-items:center;justify-content:center;overflow:hidden;
      -webkit-user-select:none;user-select:none;touch-action:none;
      margin:6px auto 0;
    }
    .force-slide::before{
      content:"";position:absolute;inset:0;
      background:
        linear-gradient(90deg,rgba(248,113,113,0.44) var(--slide-pct,0%),transparent 0),
        radial-gradient(circle at 12% 50%,rgba(248,113,113,0.24),transparent 48%);
      opacity:.98;pointer-events:none
    }
    .force-slide::after{
      content:"";position:absolute;inset:0;
      background:
        linear-gradient(120deg,transparent 20%,rgba(255,255,255,0.16) 48%,transparent 75%),
        repeating-linear-gradient(90deg,rgba(148,163,184,0.14) 0 6px,transparent 6px 12px);
      opacity:.34;
      transform:translateX(-38%);
      animation:forceTrackScan 2.2s ease-in-out infinite;
      pointer-events:none;
    }
    .force-slide-arrows{
      position:absolute;right:16px;top:0;bottom:0;
      display:flex;align-items:center;
      font-size:18px;letter-spacing:2px;line-height:1;color:#cbd5e1;opacity:.76;pointer-events:none;
      z-index:1;
      animation:forceArrowPulse 1.1s ease-in-out infinite;
    }
    .force-slide-thumb{
      position:absolute;left:4px;top:50%;height:44px;border-radius:999px;
      border:1px solid rgba(255,255,255,0.78);
      background:linear-gradient(135deg,#f8fafc,#e2e8f0);
      color:#0f172a;
      display:flex;align-items:center;justify-content:center;
      padding:0 18px;font-size:12px;font-weight:800;line-height:1;
      box-shadow:0 8px 18px rgba(2,6,23,0.42),0 1px 0 rgba(255,255,255,0.62) inset;
      transform:translate(var(--slide-x,0px), -50%);transition:transform .18s ease;
      z-index:2;
      will-change:transform;
    }
    .force-slide-label{
      pointer-events:none;white-space:nowrap;
      display:inline-flex;align-items:center;gap:8px;
      letter-spacing:.04em;
    }
    .force-slide-label::before{
      content:"⇢";
      font-size:14px;
      opacity:.72;
    }
    .force-slide.dragging{
      border-color:rgba(248,113,113,0.9);
      box-shadow:inset 0 0 0 1px rgba(248,113,113,0.24),0 14px 28px rgba(220,38,38,0.34);
    }
    .force-slide.dragging .force-slide-thumb{transition:none}
    .force-slide.unlocked{
      border-color:rgba(34,197,94,0.88);
      box-shadow:inset 0 0 0 1px rgba(34,197,94,0.28),0 14px 28px rgba(22,163,74,0.35);
    }
    .force-slide.unlocked::before{
      background:linear-gradient(90deg,rgba(34,197,94,0.38) 100%,rgba(34,197,94,0.12) 100%);
      opacity:1;
    }
    .force-slide.unlocked .force-slide-arrows{
      color:#86efac;
      animation:none;
      opacity:.9;
    }
    .force-cancel-link{
      border:1px solid rgba(148,163,184,0.45);
      background:rgba(248,250,252,0.9);
      color:#64748b;
      font-size:11px;letter-spacing:.04em;text-decoration:none;
      cursor:pointer;padding:6px 14px;border-radius:999px;align-self:center;margin-top:4px;
      box-shadow:0 4px 10px rgba(15,23,42,0.08);
    }
    .force-cancel-link:hover{
      border-color:rgba(59,130,246,0.4);
      color:#1f2937;
      background:#ffffff;
    }
    @media(max-width:480px){
      .force-slide{max-width:100%;height:48px}
      .force-slide-thumb{height:40px;padding:0 14px;font-size:11px}
      .force-slide-arrows{right:12px;font-size:16px}
    }
    @keyframes forceArrowPulse{
      0%,100%{transform:translateX(0);opacity:.56}
      50%{transform:translateX(3px);opacity:.96}
    }
    @keyframes forceTrackScan{
      0%{transform:translateX(-38%);opacity:.2}
      50%{transform:translateX(18%);opacity:.42}
      100%{transform:translateX(44%);opacity:.2}
    }
    .force-cancel-big{
      width:100%;height:40px;border-radius:var(--radius-pill);
      border:1px solid rgba(148,163,184,0.75);
      background:linear-gradient(135deg,#f9fafb,#e5e7eb);
      color:#111827;font-size:14px;font-weight:800;
      box-shadow:0 4px 10px rgba(15,23,42,0.18);
    }
    .force-danger-small{
      width:100%;height:40px;border-radius:var(--radius-pill);
      border:1px solid rgba(239,68,68,0.9);
      background:linear-gradient(135deg,#ef4444,#f97316);
      color:#fff7ed;font-size:12px;font-weight:800;letter-spacing:.04em;
      box-shadow:0 4px 10px rgba(239,68,68,0.28);
    }

    .launcher-dialog{
      position:relative;background:linear-gradient(180deg,#f8fafc,#eef2f7);border-radius:20px;padding:16px 18px 14px;width:100%;max-width:340px;
      box-shadow:0 12px 30px rgba(15,23,42,0.18),0 2px 0 rgba(255,255,255,0.7) inset;border:1px solid rgba(148,163,184,0.55);color:#0f172a;
      backdrop-filter:blur(20px) saturate(1.1);-webkit-backdrop-filter:blur(20px) saturate(1.1);
      overflow:hidden
    }
    .launcher-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(148,163,184,0.4));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.85;pointer-events:none
    }
    .launcher-dialog::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at 15% 0,rgba(255,255,255,0.45),transparent 60%);opacity:0.9;pointer-events:none}
    .launcher-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
    .launcher-title{font-size:13px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:#0f172a}
    .launcher-close-btn{border:none;background:transparent;font-size:18px;line-height:1;padding:2px 4px;border-radius:999px;box-shadow:none;color:#94a3b8}
    .launcher-close-btn:hover{background:rgba(148,163,184,0.25);color:#0f172a}
    .launcher-note{font-size:11px;color:#64748b;margin-bottom:10px}
    .launcher-divider{height:1px;background:rgba(148,163,184,0.35);margin:6px 0 4px}
    .launcher-controls{margin-top:4px;display:flex;flex-direction:column;gap:10px}
    .launcher-arrow-row{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:10px 0}
    .launcher-angle{
      display:none;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:2px;
      padding:6px 0 2px;
    }
    #launcherOverlay.auto-active .launcher-angle{display:flex}
    .launcher-angle-value{
      font-size:22px;
      font-weight:800;
      color:#0f172a;
      letter-spacing:.02em;
    }
    .launcher-angle-label{
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:#94a3b8;
      font-weight:600;
    }
    .launcher-auto-row{display:flex;align-items:center;justify-content:center}
    .launcher-auto-btn{display:none;width:100%;justify-content:center}
    .mode-daq .launcher-auto-btn{display:inline-flex}
    .launcher-auto-desc{
      display:none;
      font-size:11px;
      color:#94a3b8;
      text-align:center;
      line-height:1.35;
    }
    .mode-daq .launcher-auto-desc{display:block}
    .launcher-auto-divider{margin-top:4px;margin-bottom:2px}
    .launcher-text-btn{
      background:transparent;
      border:none;
      color:#64748b;
      font-weight:600;
      letter-spacing:.08em;
      text-transform:uppercase;
      box-shadow:none;
      padding:4px 0;
      text-decoration:underline;
      text-underline-offset:4px;
    }
    .launcher-text-btn:hover{color:#0f172a}
    .launcher-manual-row{display:flex;align-items:center;justify-content:center}
    .launcher-manual-btn{
      width:100%;
      justify-content:center;
    }
    .launcher-arrow-row.is-hidden{display:none}
    .launcher-arrow-btn{
      width:92px;height:46px;border-radius:999px;border:none;
      background:linear-gradient(135deg,#f1f5f9,#d7dee7);
      border:1px solid rgba(148,163,184,0.6);
      color:#111827;font-size:18px;font-weight:800;
      box-shadow:0 4px 10px rgba(15,23,42,0.12);
      user-select:none;touch-action:none
    }
    .launcher-panel .launcher-arrow-btn,
    #launcherOverlay .launcher-arrow-btn{
      width:156px !important;
      height:54px;
      border-radius:12px !important;
      border:1px solid rgba(203,213,225,0.55) !important;
      background:#ffffff !important;
      color:#0f172a !important;
      box-shadow:none !important;
      -webkit-box-shadow:none !important;
      text-shadow:none !important;
      filter:none !important;
    }
    .launcher-panel .launcher-arrow-btn:hover,
    .launcher-panel .launcher-arrow-btn:active,
    .launcher-panel .launcher-arrow-btn:focus,
    .launcher-panel .launcher-arrow-btn:focus-visible,
    .launcher-panel .launcher-arrow-btn.pressed,
    #launcherOverlay .launcher-arrow-btn:hover,
    #launcherOverlay .launcher-arrow-btn:active,
    #launcherOverlay .launcher-arrow-btn:focus,
    #launcherOverlay .launcher-arrow-btn:focus-visible,
    #launcherOverlay .launcher-arrow-btn.pressed{
      box-shadow:none !important;
      -webkit-box-shadow:none !important;
      text-shadow:none !important;
      filter:none !important;
    }
    .launcher-panel .launcher-arrow-btn:hover:not(:disabled),
    .launcher-panel .launcher-arrow-btn:active:not(:disabled),
    #launcherOverlay .launcher-arrow-btn:hover:not(:disabled),
    #launcherOverlay .launcher-arrow-btn:active:not(:disabled){
      transform:none !important;
    }
    .launcher-panel .launcher-arrow-btn:active,
    .launcher-panel .launcher-arrow-btn.pressed,
    #launcherOverlay .launcher-arrow-btn:active,
    #launcherOverlay .launcher-arrow-btn.pressed{
      background:#e5e7eb !important;
      color:#0f172a !important;
    }
    .launcher-arrow-btn.pressed{background:#e5e7eb;color:#0f172a}
    .launcher-hint{font-size:10px;color:#6b7280;text-align:center;margin-top:2px}
    .controls-hint{font-size:11px;color:#6b7280;margin-top:2px}
    .control-tile.disabled{opacity:.55;pointer-events:none;filter:grayscale(0.1)}

    .inspection-dialog{
      position:relative;width:560px;max-width:92vw;height:420px;max-height:90vh;
      background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(243,246,251,0.96));
      border-radius:18px;
      box-shadow:0 16px 38px rgba(15,23,42,0.14),0 2px 0 rgba(255,255,255,0.9) inset;
      border:1px solid rgba(255,255,255,0.7);
      padding:20px 20px 16px;
      color:#0f172a;
      backdrop-filter:blur(24px) saturate(1.12);-webkit-backdrop-filter:blur(24px) saturate(1.12);
      display:flex;flex-direction:column;overflow:hidden;
    }
    .inspection-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(148,163,184,0.4));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;
      opacity:.9;pointer-events:none
    }
    .inspection-dialog::after{
      content:"";position:absolute;inset:0;
      background:radial-gradient(circle at 18% 0,rgba(255,255,255,0.75),transparent 55%);
      opacity:.6;pointer-events:none
    }
    .inspection-dialog .settings-title{
      font-size:15px;font-weight:700;letter-spacing:.02em;color:#0f172a
    }
    .inspection-dialog .settings-close-btn{
      font-size:20px;color:#94a3b8;border-radius:999px;padding:4px 8px
    }
    .inspection-dialog .settings-close-btn:hover{background:rgba(148,163,184,0.18);color:#0f172a}
    .inspection-sub{font-size:12px;color:#6b7280;margin-top:2px}
    .inspection-body{
      display:flex;flex-direction:column;gap:10px;flex:1;
      justify-content:center;align-items:center;text-align:center;
      padding:6px 0 8px
    }
    .inspection-kicker{
      font-size:10px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
      color:#64748b;background:rgba(15,23,42,0.06);padding:4px 10px;border-radius:999px
    }
    .inspection-step-title{font-size:18px;font-weight:700;color:#0f172a}
    .inspection-step-desc{font-size:12px;color:#6b7280;line-height:1.6;max-width:420px}
    .inspection-status-card{
      width:100%;max-width:240px;
      padding:0;border-radius:16px;
      background:transparent;
      border:none;
      box-shadow:none;
      display:flex;justify-content:center;align-items:center
    }
    .inspection-status-pill{
      min-width:100px;padding:8px 14px;border-radius:20px;
      font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
      border:1px solid rgba(148,163,184,0.35);background:rgba(148,163,184,0.12);
      color:#64748b;transition:transform .12s ease,box-shadow .12s ease,background .12s ease,color .12s ease;
      text-align:center;
    }
    .inspection-status-pill.is-active{
      transform:translateY(-1px);
      box-shadow:0 6px 12px rgba(15,23,42,0.12);
    }
    .inspection-status-pill.is-running{
      color:#b45309;border-color:rgba(245,158,11,0.5);background:rgba(245,158,11,0.16)
    }
    .inspection-status-pill.is-ok{
      color:#166534;border-color:rgba(22,163,74,0.45);background:rgba(22,163,74,0.14)
    }
    .inspection-status-pill.is-bad{
      color:#b91c1c;border-color:rgba(239,68,68,0.45);background:rgba(239,68,68,0.14)
    }
    .inspection-footer{
      margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;
      padding-top:10px;border-top:1px solid rgba(148,163,184,0.2)
    }
    .inspection-result{font-size:12px;font-weight:600;color:#475569}
    .inspection-result.ok{color:#166534}
    .inspection-result.error{color:#b91c1c}
    .inspection-result.running{color:#f59e0b}
    .inspection-actions{display:flex;gap:8px}

    .settings-dialog{
      position:relative;width:640px;max-width:95vw;height:460px;max-height:90vh;
      background:rgba(255,255,255,0.97);border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,0.14);
      padding:14px 18px 12px;color:var(--text-main);
      border:1px solid rgba(148,163,184,0.7);
      display:flex;flex-direction:column;
      backdrop-filter:blur(22px) saturate(1.2);-webkit-backdrop-filter:blur(22px) saturate(1.2);
      overflow:hidden
    }
    .settings-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(145deg,rgba(255,255,255,0.98),rgba(148,163,184,0.8));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.85;pointer-events:none
    }
    .settings-header{
      display:flex;
      justify-content:center;
      align-items:center;
      position:relative;
      min-height:44px;
      padding:6px 0 10px;
      margin-bottom:10px;
      border-bottom:1px solid rgba(203,213,225,0.75);
      flex-shrink:0;
    }
    .settings-title{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-soft);text-align:center}
    #settingsOverlay .settings-header .settings-close-btn{
      position:absolute;
      left:0;
      top:50%;
      transform:translateY(-50%);
      min-width:44px;
      min-height:44px;
      padding:6px 12px;
      border-radius:8px;
    }
    .settings-close-btn{border:none;background:transparent;font-size:28px;line-height:1;padding:2px 4px;border-radius:8px;box-shadow:none;color:#9ca3af}
    .settings-close-btn:hover{background:rgba(229,231,235,0.7);color:#111827}
    .mobile-settings-home{display:none}
    .settings-body{margin-top:4px;display:flex;gap:12px;flex:1;overflow:hidden;min-height:0}
    .settings-nav{width:160px;border-right:1px solid rgba(209,213,219,0.9);padding-right:8px;display:flex;flex-direction:column;gap:4px;flex-shrink:0}
    .settings-nav-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.10em;color:#9ca3af;margin-bottom:4px}

    /* ✅ 설정 네비/버튼 살짝 업그레이드 */
    .settings-nav-btn{
      border:none;background:transparent;padding:6px 10px;border-radius:12px;font-size:12px;text-align:left;color:#6b7280;
      display:flex;justify-content:space-between;align-items:center;box-shadow:none;
      border:1px solid transparent;position:relative;
      transition:background .12s ease,border-color .12s ease,color .12s ease;
    }
    .settings-nav-btn span{font-weight:500}
    .settings-nav-badge{font-size:10px;color:#9ca3af}
    .settings-nav-btn:hover{background:#f3f4f6}
    .settings-nav-btn.active{
      background:linear-gradient(135deg,#0f172a,#111827);
      border-color:rgba(148,163,184,0.28);
      color:#e5e7eb;
    }
    .settings-nav-btn.active .settings-nav-badge{color:#e5e7eb;opacity:.7}

    .settings-panels{flex:1;padding-left:4px;padding-right:12px;min-width:0;overflow-y:auto}
    .settings-panel{display:none;animation:fadeInSettings .15s ease-out}
    .settings-panel.active{display:block}
    .settings-group{padding:6px 0 10px;border-top:1px solid rgba(229,231,235,0.9)}
    .settings-group:first-of-type{border-top:none}
    .settings-group-title{font-size:12px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:#9ca3af;margin-bottom:6px}
    .settings-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:6px 0}
    .settings-row > div{flex:1;min-width:0}
    .settings-row .switch{flex:0 0 auto;align-self:flex-start}
    .settings-label{font-size:13px;color:#111827;font-weight:600}
    .settings-desc{font-size:11px;color:#6b7280;text-align:right;line-height:1.35}
    .settings-select{min-width:110px;padding:4px 8px;font-size:12px;border-radius:999px;border:1px solid rgba(148,163,184,0.9);background:#f9fafb}
    .settings-row.is-disabled .settings-label,
    .settings-row.is-disabled .hint-mini{opacity:.62}
    .settings-select:disabled{opacity:.72;cursor:not-allowed}
    .flash-link-settings-group{display:block}
    .flash-link-settings-group.is-ail-off .flash-link-status,
    .flash-link-settings-group.is-ail-off .flash-link-metrics,
    .flash-link-settings-group.is-ail-off .flash-link-chart-panel,
    .flash-link-settings-group.is-ail-off #flashLinkPeer,
    .flash-link-settings-group.is-ail-off #flashLinkCommandStatus,
    .flash-link-settings-group.is-ail-off #flashLinkReportBtn,
    .flash-link-settings-group.is-ail-off #flashLinkReportStatus{
      opacity:.48;
      pointer-events:none;
    }
    .flash-link-status{
      display:inline-flex;align-items:center;gap:7px;min-width:96px;justify-content:flex-end;
      font-size:11px;font-weight:700;color:#64748b
    }
    .flash-link-status-dot{
      width:8px;height:8px;border-radius:50%;background:#94a3b8;
      box-shadow:0 0 0 3px rgba(148,163,184,.12)
    }
    .flash-link-status.is-linked{color:#15803d}
    .flash-link-status.is-linked .flash-link-status-dot{
      background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.14)
    }
    .flash-link-metrics{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
    .flash-link-node-status{display:flex;gap:10px;margin-top:3px;font-size:10px;color:#64748b}
    .flash-link-node-status span{display:inline-flex;align-items:center;gap:4px}
    .flash-link-node-status span::before{content:"";width:6px;height:6px;border-radius:50%;background:#64748b}
    .flash-link-node-status span.is-linked{color:#16a34a}
    .flash-link-node-status span.is-linked::before{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.14)}
    .flash-link-chart-panel{
      margin-top:4px;
      padding:10px 0 8px;
      border-top:1px solid rgba(148,163,184,0.22);
    }
    .flash-link-chart-tabs{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:3px;
      width:100%;
      padding:3px;
      border:1px solid rgba(148,163,184,0.28);
      border-radius:8px;
      background:rgba(241,245,249,0.82);
    }
    .flash-link-chart-tab{
      min-width:0;
      min-height:34px;
      padding:6px 8px;
      border:0;
      border-radius:6px;
      background:transparent;
      color:#64748b;
      box-shadow:none;
      font-size:11px;
      font-weight:700;
      letter-spacing:0;
      white-space:nowrap;
      transition:background .14s ease,color .14s ease,box-shadow .14s ease;
    }
    .flash-link-chart-tab:hover{color:#0f172a;background:rgba(255,255,255,0.72)}
    .flash-link-chart-tab.is-active{
      background:#ffffff;
      color:#0f172a;
      box-shadow:0 1px 4px rgba(15,23,42,0.14);
    }
    .flash-link-chart-stage{
      position:relative;
      width:100%;
      height:190px;
      margin-top:8px;
      overflow:hidden;
    }
    .flash-link-chart-stage canvas{
      display:block;
      width:100%;
      height:100%;
    }
    .flash-link-chart-value{
      position:absolute;
      top:7px;
      right:8px;
      z-index:1;
      color:#334155;
      font-size:12px;
      font-weight:800;
      line-height:1;
      pointer-events:none;
    }
    html[data-theme="dark"] .flash-link-chart-panel{
      border-top-color:rgba(148,163,184,0.2);
    }
    html[data-theme="dark"] .flash-link-chart-tabs{
      border-color:rgba(148,163,184,0.22);
      background:rgba(8,15,24,0.58);
    }
    html[data-theme="dark"] .flash-link-chart-tab{color:#94a3b8}
    html[data-theme="dark"] .flash-link-chart-tab:hover{
      color:#e2e8f0;
      background:rgba(30,41,59,0.66);
    }
    html[data-theme="dark"] .flash-link-chart-tab.is-active{
      color:#f8fafc;
      background:rgba(51,65,85,0.84);
      box-shadow:0 1px 5px rgba(0,0,0,0.28);
    }
    html[data-theme="dark"] .flash-link-chart-value{color:#e2e8f0}
    .flash-link-report-status{
      margin-top:3px;
      font-size:10px;
      color:#64748b;
      text-align:right;
      line-height:1.25;
    }
    #flashLinkReportOverlay{
      align-items:flex-end !important;
      justify-content:center !important;
      padding:0 !important;
      z-index:6000 !important;
      background:rgba(0,0,0,.42) !important;
      -webkit-backdrop-filter:blur(8px);
      backdrop-filter:blur(8px);
    }
    #flashLinkReportOverlay > *{
      margin:0 !important;
    }
    .flash-link-report-dialog{
      width:min(560px, 100vw);
      max-width:min(560px, 100vw);
      height:auto;
      min-height:0;
      max-height:min(64dvh, 540px);
      border:0;
      border-top:1px solid #303030;
      border-radius:12px 12px 0 0;
      background:#171717;
      color:#f2f2f2;
      box-shadow:none;
      padding:0 16px calc(16px + env(safe-area-inset-bottom, 0px));
      overflow:hidden;
    }
    .flash-link-report-dialog::before,
    .flash-link-report-dialog::after{
      content:none;
      display:none;
    }
    .flash-link-report-dialog .settings-header{
      position:relative;
      min-height:58px;
      margin:0 -16px;
      padding:16px 50px 11px;
      display:flex;
      align-items:center;
      justify-content:center;
      border:0;
      border-bottom:1px solid #292929;
      background:transparent;
    }
    .flash-link-report-dialog .settings-title{
      color:#f2f2f2;
      font-size:17px;
      line-height:1.1;
      font-weight:560;
      letter-spacing:0;
      text-transform:none;
    }
    .flash-link-report-dialog .settings-close-btn{
      position:absolute;
      right:16px;
      top:50%;
      transform:translateY(-50%);
      width:36px;
      height:36px;
      border:0;
      border-radius:8px;
      background:transparent;
      color:transparent;
      font-size:0;
      line-height:1;
      box-shadow:none;
    }
    .flash-link-report-dialog .settings-close-btn::before,
    .flash-link-report-dialog .settings-close-btn::after{
      content:"";
      position:absolute;
      left:9px;
      top:17px;
      width:18px;
      height:2px;
      border-radius:2px;
      background:#dedede;
    }
    .flash-link-report-dialog .settings-close-btn::before{transform:rotate(45deg)}
    .flash-link-report-dialog .settings-close-btn::after{transform:rotate(-45deg)}
    .flash-link-report-body{
      max-height:calc(min(64dvh, 540px) - 58px);
      overflow:auto;
      padding:14px 0 0;
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    .flash-link-report-dialog .confirm-text{margin-bottom:8px}
    .flash-link-report-step-indicator{
      display:grid;
      grid-template-columns:auto minmax(30px,1fr) auto;
      align-items:center;
      gap:12px;
      width:min(100%,360px);
      margin:0 auto 2px;
      color:#6f7680;
    }
    .flash-link-report-step-indicator > span{
      display:flex;
      align-items:center;
      gap:7px;
      white-space:nowrap;
    }
    .flash-link-report-step-indicator > span > b{
      display:grid;
      place-items:center;
      width:24px;
      height:24px;
      border:1px solid #34373d;
      border-radius:50%;
      color:#777e88;
      font:650 9px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    }
    .flash-link-report-step-indicator > span > em{
      color:inherit;
      font-size:10px;
      line-height:1;
      font-style:normal;
      font-weight:650;
    }
    .flash-link-report-step-indicator > i{
      height:1px;
      background:#34373d;
    }
    .flash-link-report-step-indicator > span.is-active{
      color:#e5e7eb;
    }
    .flash-link-report-step-indicator > span.is-active > b{
      border-color:#d7d9dd;
      background:#e5e7eb;
      color:#17181a;
    }
    .flash-link-report-step-indicator > span.is-complete{
      color:#9ba1aa;
    }
    .flash-link-report-step-indicator > span.is-complete > b{
      border-color:#5b626d;
      background:#2a2d32;
      color:#d9dce1;
    }
    .flash-link-report-visual{
      position:relative;
      min-height:148px;
      overflow:hidden;
      border:1px solid #303238;
      border-radius:8px;
      background:
        linear-gradient(rgba(255,255,255,.018),rgba(255,255,255,0)),
        #101113;
    }
    .flash-link-report-visual::before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      opacity:.45;
      background:
        linear-gradient(90deg,transparent 49.9%,rgba(148,163,184,.08) 50%,transparent 50.1%),
        linear-gradient(transparent 49.9%,rgba(148,163,184,.06) 50%,transparent 50.1%);
      background-size:42px 42px;
    }
    .flash-link-report-visual-pane{
      position:relative;
      z-index:1;
      min-height:148px;
      padding:20px 24px;
    }
    .flash-link-report-visual-pane.is-placement{
      display:none;
      grid-template-columns:112px minmax(90px,1fr) 112px;
      align-items:center;
      gap:18px;
    }
    .flash-link-report-visual-pane.is-environment{
      display:none;
      grid-template-columns:repeat(3,minmax(0,1fr));
      align-items:stretch;
      padding:20px 8px;
    }
    .flash-link-report-visual[data-step="1"] .is-placement{
      display:grid;
    }
    .flash-link-report-visual[data-step="2"] .is-environment{
      display:grid;
    }
    .flash-link-report-node{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:5px;
      color:#e5e7eb;
      text-align:center;
    }
    .flash-link-report-node strong,
    .flash-link-report-check strong{
      color:#e4e6e9;
      font-size:10px;
      line-height:1;
      font-weight:700;
      letter-spacing:.09em;
    }
    .flash-link-report-node small,
    .flash-link-report-distance small,
    .flash-link-report-check small{
      color:#717883;
      font-size:7px;
      line-height:1.15;
      font-weight:650;
      letter-spacing:.1em;
    }
    .flash-link-report-signal{
      position:relative;
      width:42px;
      height:42px;
      margin-bottom:4px;
      border:1px solid #59616c;
      border-radius:50%;
    }
    .flash-link-report-signal::before{
      content:"";
      position:absolute;
      left:50%;
      top:50%;
      width:7px;
      height:7px;
      border-radius:50%;
      background:#dfe2e6;
      transform:translate(-50%,-50%);
      box-shadow:0 0 14px rgba(226,232,240,.5);
    }
    .flash-link-report-signal::after{
      content:"";
      position:absolute;
      inset:8px;
      border:1px solid #4a515b;
      border-radius:50%;
    }
    .flash-link-report-distance{
      display:grid;
      grid-template-rows:auto 1px auto;
      align-items:center;
      gap:9px;
      text-align:center;
    }
    .flash-link-report-distance strong{
      color:#f0f1f3;
      font:580 18px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    }
    .flash-link-report-distance > span{
      position:relative;
      height:1px;
      background:#68717d;
    }
    .flash-link-report-distance > span::before,
    .flash-link-report-distance > span::after{
      content:"";
      position:absolute;
      top:-2px;
      width:5px;
      height:5px;
      border-radius:50%;
      background:#aab0b8;
    }
    .flash-link-report-distance > span::before{left:0}
    .flash-link-report-distance > span::after{right:0}
    .flash-link-report-check{
      display:flex;
      min-width:0;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:7px;
      padding:0 12px;
      text-align:center;
      border-left:1px solid #2e3035;
    }
    .flash-link-report-check:first-child{
      border-left:0;
    }
    .flash-link-report-check > b{
      min-height:32px;
      color:#e9eaec;
      font:500 25px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    }
    .flash-link-report-check > b > em{
      margin-left:2px;
      color:#858c96;
      font-size:10px;
      font-style:normal;
    }
    .flash-link-report-check:first-child > b{
      font-size:28px;
    }
    .flash-link-report-steps{
      display:block;
      margin:0 0 10px;
      color:#c7c7c7;
      text-align:center;
      font-size:11px;
      line-height:1.5;
    }
    .flash-link-report-step{
      display:block;
      padding:0;
      border:0;
      border-radius:0;
      background:transparent;
    }
    .flash-link-report-step + .flash-link-report-step{margin-top:4px}
    .flash-link-report-progress{
      margin:0 0 10px;
      color:#c7c7c7;
      text-align:center;
      font-size:11px;
      line-height:1.5;
      font-weight:700;
      letter-spacing:0;
    }
    .flash-link-report-progress.hidden{display:none !important}
    .flash-link-report-dialog .confirm-text{
      color:#d0d0d0;
      font-size:14px;
      line-height:1.5;
      font-weight:620;
      text-align:center;
    }
    .flash-link-report-dialog .confirm-actions{
      display:flex;
      flex-direction:column;
      gap:8px;
      margin-top:0;
    }
    .flash-link-report-dialog .loadcell-primary{
      width:100%;
      min-height:54px;
      border:0;
      border-radius:10px;
      font-size:14px;
      line-height:1;
      font-weight:620;
    }
    .flash-link-report-dialog .confirm-cancel{
      width:100%;
      min-height:44px;
      margin:0;
      border:1px solid #303030;
      border-radius:10px;
      background:#222222;
      color:#d6d6d6;
      text-decoration:none;
      font-size:13px;
      font-weight:560;
    }
    html[data-theme="dark"] .flash-link-report-status{color:#94a3b8}
    html[data-theme="dark"] .flash-link-report-steps,
    html[data-theme="dark"] .flash-link-report-progress{color:#c7c7c7}
    @media(max-width:600px){
      .flash-link-chart-stage{height:180px}
      .flash-link-chart-tab{min-height:36px;padding:6px 4px;font-size:10px}
    }
    .settings-number-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
    .settings-number-row{display:flex;align-items:center;gap:8px}
    .settings-inline-btn{
      padding:6px 10px;
      font-size:11px;
      border-radius:10px;
      border:1px solid rgba(148,163,184,0.7);
      background:#f8fafc;
      color:#1f2937;
      font-weight:700;
      letter-spacing:.04em;
      white-space:nowrap;
      writing-mode:horizontal-tb;
      line-height:1;
      min-height:34px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
    }
    .settings-inline-btn:hover{filter:brightness(0.98)}
    .settings-number{width:90px;padding:6px 8px;font-size:13px;border-radius:999px;border:1px solid rgba(148,163,184,0.9);background:#f9fafb;text-align:center;outline:none}
    .settings-number:focus{box-shadow:0 0 0 2px rgba(59,130,246,0.35);border-color:rgba(59,130,246,0.9)}
    .settings-footer{margin-top:8px;display:flex;justify-content:flex-end;flex-shrink:0}
    .settings-save-btn{padding:8px 16px;font-size:13px;border-radius:999px;border:none;background:#0f172a;color:#e5e7eb;box-shadow:0 5px 12px rgba(15,23,42,0.3)}
    .settings-btn{
      padding:7px 14px;font-size:12px;border-radius:999px;border:1px solid rgba(148,163,184,0.7);
      background:#ffffff;color:#0f172a;font-weight:700;
      box-shadow:0 5px 12px rgba(15,23,42,0.08);
    }
    .settings-btn:hover{filter:brightness(0.98)}
    .settings-btn.settings-btn-danger{
      background:rgba(248,113,113,0.12);
      color:#b91c1c;
      border-color:rgba(248,113,113,0.45);
      box-shadow:0 5px 12px rgba(239,68,68,0.10);
    }
    .chiptemp-dialog{
      width:720px;max-width:94vw;height:auto;max-height:88vh;
      padding:16px 18px 14px;
    }
    .chiptemp-body{
      display:flex;flex-direction:column;gap:12px;
      min-height:0;overflow-y:auto;padding-right:2px;
    }
    .chiptemp-kicker{
      display:inline-flex;align-self:flex-start;
      font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
      color:#166534;background:rgba(34,197,94,0.12);
      border:1px solid rgba(34,197,94,0.2);border-radius:999px;
      padding:4px 9px;
    }
    .chiptemp-summary{
      display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
    }
    .chiptemp-stat{
      padding:10px 10px 9px;
      border:none;
      border-right:1px solid rgba(148,163,184,0.22);
      background:transparent;
      box-shadow:none;
    }
    .chiptemp-stat:last-child{border-right:none}
    .chiptemp-stat-label{
      font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;
    }
    .chiptemp-stat-value{
      margin-top:5px;font-size:16px;font-weight:800;letter-spacing:.01em;color:#0f172a;
    }
    .chiptemp-chart-card{
      border:none;
      border-radius:0;
      background:transparent;
      padding:0;
    }
    .chiptemp-chart-head{
      display:none;
    }
    .chiptemp-chart-title{
      font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#334155;
    }
    .chiptemp-chart-note{
      font-size:11px;color:#64748b;
    }
    .chiptemp-chart-stage{
      position:relative;
      border:1px solid rgba(148,163,184,0.2);
      background:rgba(248,250,252,0.8);
      border-radius:12px;
      padding:4px;
      height:400px;
    }
    .chiptemp-chart-stage canvas{
      width:100%;
      height:100%;
      display:block;
    }
    .chiptemp-meta{
      display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
    }
    .chiptemp-meta-item{
      border:1px solid rgba(148,163,184,0.22);
      border-radius:12px;padding:9px 10px;
      background:rgba(255,255,255,0.82);
    }
    .chiptemp-meta-key{
      font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;
    }
    .chiptemp-meta-value{
      margin-top:4px;font-size:13px;font-weight:700;color:#0f172a;
      word-break:break-word;
    }
    @media(max-width:760px){
      .chiptemp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
      .chiptemp-stat:nth-child(2n){border-right:none}
      .chiptemp-stat:nth-child(-n+2){border-bottom:1px solid rgba(148,163,184,0.22)}
      .chiptemp-meta{grid-template-columns:1fr}
      .chiptemp-chart-stage{height:400px}
    }
    html[data-theme="dark"] .chiptemp-kicker{
      color:#86efac;background:rgba(22,163,74,0.16);border-color:rgba(74,222,128,0.28);
    }
    html[data-theme="dark"] .chiptemp-stat,
    html[data-theme="dark"] .chiptemp-meta-item{
      background:transparent;
      border-color:rgba(100,116,139,0.35);
      box-shadow:none;
    }
    html[data-theme="dark"] .chiptemp-stat-label,
    html[data-theme="dark"] .chiptemp-meta-key,
    html[data-theme="dark"] .chiptemp-chart-note{
      color:#94a3b8;
    }
    html[data-theme="dark"] .chiptemp-stat-value,
    html[data-theme="dark"] .chiptemp-meta-value,
    html[data-theme="dark"] .chiptemp-chart-title{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .chiptemp-chart-stage{
      background:rgba(15,23,42,0.58);
      border-color:rgba(100,116,139,0.4);
    }

    .mission-dialog{
      position:relative;width:600px;max-width:94vw;
      background:#ffffff;
      border-radius:24px;padding:18px 20px 16px;color:#0f172a;
      min-height:510px;
      box-shadow:0 20px 44px rgba(15,23,42,0.18),0 2px 0 rgba(255,255,255,0.7) inset;
      border:1px solid rgba(255,255,255,0.8);
      backdrop-filter:blur(26px) saturate(1.2);-webkit-backdrop-filter:blur(26px) saturate(1.2);
      overflow:hidden;display:flex;flex-direction:column
    }
    .mission-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:rgba(148,163,184,0.45);
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;opacity:0.9;pointer-events:none;
      z-index:0
    }
    .mission-dialog > *{position:relative;z-index:1}
    .mission-header{
      display:flex;justify-content:space-between;align-items:flex-start;gap:8px;
      padding-bottom:10px;margin-bottom:12px;
      border-bottom:1px solid rgba(148,163,184,0.3)
    }
    .mission-head-main{display:flex;flex-direction:column}
    .mission-head-right{
      margin-left:auto;
      display:flex;
      align-items:flex-start;
      justify-content:flex-end;
      gap:8px;
      flex-wrap:wrap;
    }
    .mission-title{font-size:14px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#0f172a}
    .mission-sub{font-size:11px;color:#6b7280;margin-top:6px;max-width:320px}
    .mission-sub-note{font-size:11px;color:#b45309;margin-top:6px;max-width:420px;font-weight:700}
    .mission-firmware-lock-notice{
      display:flex;align-items:center;gap:12px;flex:0 0 auto;
      min-height:42px;padding:10px 14px;
      border:1px solid rgba(245,158,11,.32);
      background:rgba(245,158,11,.08);
      color:#92400e;font-size:13px;font-weight:600;line-height:1.45;
    }
    .mission-firmware-lock-kicker{
      flex:0 0 auto;color:#fbbf24;font-size:10px;font-weight:800;
      letter-spacing:.16em;
    }
    html[data-theme="dark"] .mission-firmware-lock-notice{color:#f3f4f6}
    .mission-close-btn{
      border:none;background:rgba(255,255,255,0.7);font-size:18px;line-height:1;
      padding:4px 6px;border-radius:999px;box-shadow:0 4px 10px rgba(15,23,42,0.12);color:#64748b
    }
    .mission-close-btn:hover{background:#ffffff;color:#111827}
    .mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .mission-field{display:flex;flex-direction:column;gap:4px}
    .mission-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8}
    .mission-input{
      padding:9px 10px;border-radius:12px;border:1px solid rgba(148,163,184,0.65);
      background:#f8fafc;
      font-size:13px;color:#0f172a;outline:none;
      box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;
      transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease
    }
    .mission-input:focus{
      box-shadow:0 0 0 3px rgba(59,130,246,0.25),0 1px 0 rgba(255,255,255,0.8) inset;
      border-color:rgba(59,130,246,0.9);transform:translateY(-1px)
    }
    .mission-row{display:flex;align-items:center;gap:8px}
    .mission-unit{
      padding:6px 10px;border-radius:999px;
      background:rgba(15,23,42,0.04);border:1px solid rgba(148,163,184,0.35);
      font-size:11px;font-weight:700;color:#475569;white-space:nowrap
    }
    .mission-block-editor{
      margin-top:14px;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      display:flex;
      flex-direction:column;
      gap:10px;
      width:100%;
      min-width:0;
    }
    .mission-block-head{
      display:flex;
      flex-direction:column;
      gap:4px;
    }
    .mission-block-title{
      font-size:12px;
      font-weight:900;
      letter-spacing:.13em;
      text-transform:uppercase;
      color:#1e293b;
    }
    .mission-block-sub{
      font-size:11px;
      color:#475569;
      line-height:1.5;
    }
    .mission-block-workspace{
      display:flex;
      gap:10px;
      align-items:stretch;
      width:100%;
      min-width:0;
      height:520px;
      min-height:480px;
      max-height:520px;
    }
    .mission-block-palette{
      flex:0 0 224px;
      min-width:180px;
      max-width:252px;
      align-self:stretch !important;
      height:auto;
      min-height:0;
      max-height:none;
      border:1px solid rgba(148,163,184,0.3);
      border-radius:14px;
      background:linear-gradient(180deg,#dbeafe,#eff6ff 28%,#f8fafc);
      padding:10px;
      display:flex;
      flex-direction:column;
      gap:8px;
      overflow-y:auto;
      overflow-x:hidden;
      scrollbar-gutter:stable;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.86);
    }
    .mission-palette-title{
      font-size:10px;
      letter-spacing:.16em;
      text-transform:uppercase;
      font-weight:900;
      color:#1d4ed8;
      padding:2px 2px 4px;
    }
    .mission-palette-group{
      display:flex;
      flex-direction:column;
      gap:6px;
      border:1px solid rgba(148,163,184,0.24);
      border-radius:12px;
      background:rgba(255,255,255,0.8);
      padding:8px;
    }
    .mission-palette-group-title{
      font-size:10px;
      font-weight:800;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:#64748b;
      margin-bottom:2px;
    }
    .mission-palette-group--utility{
      background:rgba(248,250,252,0.95);
    }
    .mission-tool-btn{
      border:none;
      border-radius:13px;
      padding:8px 10px;
      text-align:left;
      color:#f8fafc;
      font-weight:800;
      cursor:grab;
      box-shadow:0 4px 10px rgba(15,23,42,0.16);
      display:flex;
      flex-direction:column;
      gap:2px;
      transition:transform .12s ease, filter .12s ease, box-shadow .12s ease;
    }
    .mission-tool-btn:hover{
      transform:translateY(-1px);
      filter:saturate(1.05);
      box-shadow:0 8px 16px rgba(15,23,42,0.18);
    }
    .mission-tool-btn:active{
      cursor:grabbing;
      transform:translateY(1px);
    }
    .mission-tool-main{
      font-size:12px;
      font-weight:900;
      letter-spacing:.01em;
      line-height:1.2;
      color:#f8fafc;
    }
    .mission-tool-sub{
      font-size:10px;
      color:rgba(248,250,252,0.84);
      font-weight:700;
      line-height:1.2;
    }
    .mission-tool-btn--event{
      background:linear-gradient(135deg,#0ea5a4,#06b6d4);
    }
    .mission-tool-btn--action{
      background:linear-gradient(135deg,#7c3aed,#a855f7);
    }
    .mission-tool-btn--logic{
      background:linear-gradient(135deg,#0284c7,#0ea5e9);
    }
    .mission-block-canvas{
      flex:1 1 auto;
      min-width:0;
      max-width:100%;
      border:1px solid rgba(148,163,184,0.3);
      border-radius:14px;
      padding:10px;
      background:
        radial-gradient(circle at 1px 1px, rgba(148,163,184,0.22) 1px, transparent 1.1px) 0 0/12px 12px,
        linear-gradient(180deg,#f8fafc,#eef2ff);
      display:flex;
      flex-direction:column;
      gap:8px;
      min-height:0;
      overflow:hidden;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.86);
    }
    .mission-block-canvas.is-empty{
      background:
        radial-gradient(circle at 1px 1px, rgba(148,163,184,0.18) 1px, transparent 1.1px) 0 0/12px 12px,
        linear-gradient(180deg,#f8fafc,#f1f5f9);
    }
    .mission-block-canvas.drop-active{
      box-shadow:0 0 0 3px rgba(250,204,21,0.42) inset;
      border-color:rgba(250,204,21,0.8);
    }
    .mission-block-canvas-top{
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      gap:10px;
      padding:0 2px;
    }
    .mission-block-canvas-meta{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:wrap;
      margin-left:auto;
      gap:8px;
    }
    .mission-block-canvas-label{
      font-size:10px;
      letter-spacing:.16em;
      text-transform:uppercase;
      font-weight:900;
      color:#334155;
    }
    .mission-block-canvas-count{
      font-size:10px;
      font-weight:800;
      letter-spacing:.04em;
      color:#1d4ed8;
      border:1px solid rgba(96,165,250,0.35);
      border-radius:999px;
      padding:2px 8px;
      background:rgba(219,234,254,0.78);
    }
    .mission-canvas-zoom-controls{
      display:inline-flex;
      align-items:center;
      gap:4px;
      padding:2px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.35);
      background:rgba(255,255,255,0.9);
    }
    .mission-canvas-zoom-btn,
    .mission-canvas-zoom-reset{
      border:none;
      border-radius:999px;
      background:transparent;
      color:#1e293b;
      font-weight:800;
      font-size:11px;
      line-height:1;
      height:24px;
      padding:0 9px;
      cursor:pointer;
    }
    .mission-canvas-zoom-btn{
      width:24px;
      padding:0;
      font-size:14px;
    }
    .mission-canvas-zoom-btn:hover,
    .mission-canvas-zoom-reset:hover{
      background:rgba(219,234,254,0.8);
    }
    .mission-block-canvas-hint{
      font-size:10px;
      line-height:1.4;
      color:#64748b;
      padding:6px 8px;
      border:1px dashed rgba(148,163,184,0.42);
      border-radius:10px;
      background:rgba(255,255,255,0.56);
    }
    .mission-block-actions{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }
    .mission-block-actions--footer{
      display:none;
    }
    .mission-block-actions .settings-btn{
      min-width:92px;
      padding:7px 12px;
      font-size:11px;
    }
    .mission-block-list{
      position:relative;
      flex:1 1 auto;
      min-height:260px;
      min-width:0;
      width:100%;
      max-width:100%;
      overflow:auto;
      overscroll-behavior:contain;
      touch-action:pan-x pan-y;
      scroll-behavior:smooth;
      cursor:grab;
    }
    .mission-block-list.is-panning{
      cursor:grabbing;
    }
    .mission-block-stage{
      position:relative;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:8px;
      width:max-content;
      min-width:max(100%, 1600px);
      min-height:max(100%, 1200px);
      padding:2px 320px 420px 2px;
      transform-origin:0 0;
      zoom:1;
    }
    .mission-block-row{
      border:1px solid transparent;
      border-radius:14px;
      background:transparent;
      padding:0;
      display:flex;
      flex-direction:column;
      gap:6px;
      align-items:flex-start;
      min-width:max-content;
    }
    .mission-block-empty{
      border:2px dashed rgba(148,163,184,0.48);
      border-radius:12px;
      padding:14px 12px;
      font-size:11px;
      color:#475569;
      text-align:center;
      background:rgba(248,250,252,0.72);
      width:100%;
      line-height:1.5;
    }
    .scratch-stack{
      display:flex !important;
      flex-direction:column !important;
      gap:6px !important;
      align-items:flex-start !important;
      border:none !important;
      background:transparent !important;
      padding:0 !important;
    }
    .scratch-row-meta{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin-left:2px;
    }
    .scratch-row-index{
      min-width:22px;
      height:20px;
      border-radius:10px;
      background:#1d4ed8;
      color:#dbeafe;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:11px;
      font-weight:900;
      box-shadow:0 2px 6px rgba(29,78,216,0.28);
    }
    .scratch-row-kind{
      border-radius:999px;
      padding:2px 8px;
      font-size:10px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
      color:#334155;
      background:rgba(226,232,240,0.92);
      border:1px solid rgba(148,163,184,0.38);
    }
    .mission-if-group{
      --if-shell:#f59e0b;
      --if-shell-dark:#d97706;
      position:relative;
      display:inline-flex;
      flex-direction:column;
      align-self:flex-start;
      gap:0;
      margin:0 0 10px 0;
      width:auto;
      min-width:max-content;
      max-width:none;
    }
    .mission-if-group > .mission-block-row{
      margin-bottom:0;
      border:none !important;
      background:transparent !important;
      padding:0 !important;
      width:auto;
      max-width:none;
    }
    .mission-if-group > .mission-block-row .scratch-control--if{
      background:linear-gradient(180deg,var(--if-shell),var(--if-shell-dark));
      border-radius:12px 12px 12px 0;
      box-shadow:0 6px 14px rgba(15,23,42,0.16);
      padding:10px 12px;
      gap:8px;
      width:auto;
      max-width:none;
    }
    .mission-if-branch{
      position:relative;
      margin:0;
      padding:8px 0 8px 8px;
      border-left:10px solid var(--if-shell);
      border-bottom:10px solid var(--if-shell);
      border-radius:0 0 0 12px;
      min-height:44px;
      min-width:260px;
      width:max-content;
      box-sizing:border-box;
      display:flex;
      flex-direction:column;
      gap:8px;
      transition:background .12s ease, box-shadow .12s ease, border-color .12s ease;
    }
    .mission-if-branch:empty::after{
      content:"여기에 블럭 넣기";
      font-size:11px;
      font-weight:700;
      color:#a16207;
      padding:2px 0 3px;
      display:block;
    }
    .mission-if-branch.drop-active{
      background:rgba(251,191,36,0.2);
      box-shadow:
        inset 0 0 0 2px rgba(217,119,6,0.45),
        inset 0 10px 0 0 rgba(250,204,21,0.88);
    }
    .mission-if-branch.drop-active::before{
      content:"";
      position:absolute;
      left:0;
      right:0;
      top:0;
      height:10px;
      border-radius:8px 0 0 0;
      background:linear-gradient(90deg, rgba(245,158,11,0.92), rgba(250,204,21,0.88));
      pointer-events:none;
    }
    .mission-row--nested{
      margin:0;
    }
    .mission-if-group .scratch-text{
      color:#fff7ed;
    }
    .mission-if-group .scratch-field--if-type{
      background:#b45309;
      color:#fff7ed;
      min-width:102px;
    }
    .mission-if-group .scratch-field--if-op{
      background:#92400e;
      color:#fff7ed;
      border-color:rgba(255,237,213,0.38);
    }
    .mission-if-group .scratch-input--if-value{
      background:#fde68a;
      color:#7c2d12;
      box-shadow:inset 0 -1px 0 rgba(120,53,15,0.2),0 2px 4px rgba(0,0,0,0.1);
    }
    .mission-if-group .scratch-badge--if-key{
      background:#b45309;
      border-color:rgba(255,237,213,0.32);
      clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);
      min-width:38px;
      text-align:center;
      padding-left:12px;
      padding-right:12px;
    }
    .mission-if-group .scratch-control--if .scratch-mini-btn--close{
      background:#a16207;
      color:#fff7ed;
    }
    .scratch-badge--t0{
      background:rgba(20,184,166,0.9);
      border-color:rgba(204,251,241,0.38);
      color:#ecfeff;
      font-weight:900;
      letter-spacing:.02em;
    }
    .scratch-block{
      border:none;
      border-radius:18px;
      padding:10px 12px;
      display:flex;
      flex-wrap:nowrap;
      align-items:center;
      gap:7px;
      color:#ffffff;
      font-size:12px;
      font-weight:700;
      box-shadow:0 6px 14px rgba(15,23,42,0.16);
      position:relative;
    }
    .scratch-block::after{
      content:none;
    }
    .scratch-action{
      background:linear-gradient(135deg,#7c3aed,#a855f7);
    }
    .mission-block-row[data-action-type="wait"] .scratch-action{
      background:linear-gradient(135deg,#2563eb,#1d4ed8);
    }
    .scratch-control{
      background:linear-gradient(135deg,#0284c7,#0ea5e9);
      justify-content:space-between;
    }
    .scratch-control--if{
      background:linear-gradient(135deg,#0891b2,#06b6d4);
      border-radius:18px;
      justify-content:flex-start;
      gap:8px;
    }
    .scratch-text{
      font-size:12px;
      font-weight:800;
      letter-spacing:.01em;
      color:#f8fafc;
    }
    .scratch-inline{
      display:inline-flex;
      align-items:center;
      gap:6px;
    }
    .scratch-field{
      border:none;
      border-radius:999px;
      background:#facc15;
      color:#1f2937;
      font-size:12px;
      font-weight:800;
      padding:4px 10px;
      min-height:28px;
      outline:none;
      box-shadow:inset 0 -1px 0 rgba(0,0,0,0.14),0 2px 4px rgba(0,0,0,0.12);
    }
    .scratch-field:focus{
      box-shadow:0 0 0 3px rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.14),0 2px 4px rgba(0,0,0,0.12);
    }
    .scratch-input{
      width:86px;
      text-align:center;
    }
    .scratch-input--xs{
      width:56px;
      min-width:56px;
    }
    .scratch-select{
      cursor:pointer;
    }
    .scratch-text--if{
      min-width:28px;
      text-align:center;
    }
    .scratch-field--if-type{
      background:#8b5cf6;
      color:#f8fafc;
      min-width:104px;
    }
    .scratch-input--if-value{
      width:52px;
      min-width:52px;
      padding:4px 8px;
    }
    .scratch-field--if-op{
      width:48px;
      min-width:48px;
      padding:4px 6px;
      background:rgba(15,23,42,0.35);
      color:#f8fafc;
      border:1px solid rgba(148,163,184,0.4);
      box-shadow:inset 0 -1px 0 rgba(0,0,0,0.14),0 2px 4px rgba(0,0,0,0.1);
    }
    .scratch-badge{
      border-radius:999px;
      background:rgba(255,255,255,0.24);
      padding:4px 9px;
      font-size:11px;
      font-weight:800;
      color:#ffffff;
      border:1px solid rgba(255,255,255,0.28);
    }
    .scratch-badge--if-key{
      background:#7c3aed;
      border-color:rgba(248,250,252,0.24);
    }
    .scratch-mini-btn{
      border:none;
      border-radius:10px;
      padding:5px 9px;
      font-size:11px;
      font-weight:800;
      color:#0f172a;
      background:#e2e8f0;
      cursor:pointer;
      box-shadow:0 2px 4px rgba(0,0,0,0.14);
    }
    .scratch-mini-btn--close{
      width:30px;
      height:30px;
      padding:0;
      border-radius:10px;
      font-size:20px;
      line-height:1;
      color:#e2e8f0;
      margin-left:auto;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 2px 4px rgba(0,0,0,0.14);
      background:rgba(109,40,217,0.8);
    }
    .scratch-control--if .scratch-mini-btn--close{
      background:rgba(8,145,178,0.8);
    }
    .mission-block-editor--scratch-entry{
      --entry-bg:#f4f7fc;
      --entry-grid:#d8e2f0;
      --entry-border:#b8c8de;
      --entry-ink:#1f2937;
      --entry-muted:#5b6a80;
      --entry-palette:#edf5ff;
      --entry-palette-group:#ffffff;
      --entry-shadow:0 10px 18px rgba(15,23,42,0.12);
      font-family:"Nunito","Noto Sans KR","Apple SD Gothic Neo","Segoe UI",sans-serif;
    }
    .mission-block-editor--scratch-entry .mission-block-workspace{
      gap:12px;
      height:560px;
      min-height:500px;
      max-height:560px;
    }
    .mission-block-editor--scratch-entry .mission-block-palette{
      flex:0 0 256px;
      min-width:220px;
      max-width:276px;
      border:2px solid var(--entry-border);
      border-radius:16px;
      background:linear-gradient(180deg,#f8fbff 0%, var(--entry-palette) 100%);
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.96), 0 8px 18px rgba(15,23,42,0.08);
      padding:10px 10px 12px;
      gap:9px;
    }
    .mission-block-editor--scratch-entry .mission-palette-title{
      color:#1976d2;
      font-size:11px;
      letter-spacing:.14em;
      padding:2px 4px 6px;
    }
    .mission-block-editor--scratch-entry .mission-palette-group{
      border:none;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      padding:0;
      gap:8px;
    }
    .mission-block-editor--scratch-entry .mission-palette-group-title{
      color:#51637d;
      letter-spacing:.09em;
      padding-left:6px;
      border-left:3px solid #93b4de;
      margin-bottom:2px;
    }
    .mission-block-editor--scratch-entry .mission-tool-btn{
      position:relative;
      border-radius:11px;
      padding:10px 12px 10px 16px;
      border:1px solid rgba(255,255,255,0.48);
      box-shadow:0 4px 10px rgba(15,23,42,0.2), inset 0 1px 0 rgba(255,255,255,0.28);
      transform:none;
      filter:none;
      overflow:visible;
    }
    .mission-block-editor--scratch-entry .mission-tool-btn::before,
    .mission-block-editor--scratch-entry .mission-tool-btn::after{
      content:"";
      position:absolute;
      left:22px;
      width:18px;
      height:8px;
      border-radius:6px;
      pointer-events:none;
      background:rgba(0,0,0,0.24);
    }
    .mission-block-editor--scratch-entry .mission-tool-btn::before{
      top:-4px;
    }
    .mission-block-editor--scratch-entry .mission-tool-btn::after{
      bottom:-4px;
    }
    .mission-block-editor--scratch-entry .mission-tool-btn:hover{
      transform:translateY(-1px) scale(1.01);
      box-shadow:0 8px 16px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.32);
    }
    .mission-block-editor--scratch-entry .mission-tool-btn.is-dragging{
      opacity:.94;
      filter:brightness(1.03);
    }
    .mission-block-editor--scratch-entry .mission-tool-btn--event{
      background:linear-gradient(180deg,#ffbc32,#f4a011);
    }
    .mission-block-editor--scratch-entry .mission-tool-btn--action{
      background:linear-gradient(180deg,#4c97ff,#3373cc);
    }
    .mission-block-editor--scratch-entry .mission-tool-btn--logic{
      background:linear-gradient(180deg,#9966ff,#7d4fd5);
    }
    .mission-block-editor--scratch-entry .mission-tool-main{
      font-size:12px;
      letter-spacing:.01em;
      text-shadow:0 1px 0 rgba(0,0,0,0.2);
    }
    .mission-block-editor--scratch-entry .mission-tool-sub{
      font-size:10px;
      color:rgba(255,255,255,0.9);
    }
    .mission-block-editor--scratch-entry .mission-block-canvas{
      border:2px solid var(--entry-border);
      border-radius:16px;
      background:
        radial-gradient(circle at 1px 1px, rgba(186,202,225,0.78) 1px, transparent 1.1px) 0 0/18px 18px,
        linear-gradient(180deg,#f9fbff 0%, var(--entry-bg) 100%);
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.96), var(--entry-shadow);
      padding:10px 12px 12px;
      gap:10px;
    }
    .mission-block-editor--scratch-entry .mission-block-canvas-top{
      padding:0 2px;
    }
    .mission-block-editor--scratch-entry .mission-block-canvas-label{
      color:#314156;
      font-size:11px;
      letter-spacing:.14em;
    }
    .mission-block-editor--scratch-entry .mission-block-canvas-count{
      font-size:11px;
      color:#264f8a;
      background:rgba(223,236,255,0.9);
      border:1px solid rgba(115,153,208,0.58);
      padding:3px 10px;
    }
    .mission-block-editor--scratch-entry .mission-canvas-zoom-controls{
      border:1px solid rgba(126,155,197,0.5);
      background:#ffffff;
      box-shadow:0 1px 2px rgba(15,23,42,0.08);
    }
    .mission-block-editor--scratch-entry .mission-canvas-zoom-btn,
    .mission-block-editor--scratch-entry .mission-canvas-zoom-reset{
      color:#2b3f57;
      font-weight:900;
    }
    .mission-block-editor--scratch-entry .mission-block-canvas-hint{
      font-size:10px;
      color:#4d6078;
      background:rgba(255,255,255,0.86);
      border:1px dashed rgba(128,155,196,0.58);
      border-radius:10px;
      padding:7px 10px;
    }
    .mission-block-editor--scratch-entry .mission-block-list{
      border:1px solid rgba(157,178,208,0.4);
      border-radius:12px;
      background:rgba(255,255,255,0.42);
      cursor:grab;
      padding:8px;
    }
    .mission-block-editor--scratch-entry .mission-block-list.is-dragging{
      cursor:grabbing;
    }
    .mission-block-editor--scratch-entry .mission-block-stage{
      min-width:max(100%, 1800px);
      min-height:max(100%, 1320px);
      padding:6px 360px 520px 8px;
      gap:10px;
    }
    .mission-block-editor--scratch-entry .mission-block-row{
      cursor:grab;
      user-select:none;
    }
    .mission-block-editor--scratch-entry .scratch-row-meta,
    .mission-block-editor--scratch-entry .scratch-row-index,
    .mission-block-editor--scratch-entry .scratch-row-kind,
    .mission-block-editor--scratch-entry .scratch-row-handle{
      display:none !important;
    }
    .mission-block-editor--scratch-entry .mission-block-row.is-dragging{
      opacity:.68;
      filter:saturate(0.86);
    }
    .mission-block-editor--scratch-entry .mission-block-row.drop-before{
      box-shadow:0 -5px 0 0 rgba(59,130,246,0.95), 0 0 0 2px rgba(59,130,246,0.3);
    }
    .mission-block-editor--scratch-entry .mission-block-row.drop-after{
      box-shadow:0 5px 0 0 rgba(59,130,246,0.95), 0 0 0 2px rgba(59,130,246,0.3);
    }
    .mission-block-editor--scratch-entry .mission-block-row.drop-inside{
      box-shadow:inset 0 0 0 3px rgba(59,130,246,0.72);
    }
    .mission-block-editor--scratch-entry .scratch-stack{
      gap:7px !important;
    }
    .mission-block-editor--scratch-entry .scratch-row-meta{
      gap:8px;
      margin-left:6px;
    }
    .mission-block-editor--scratch-entry .scratch-row-index{
      min-width:26px;
      height:22px;
      border-radius:11px;
      background:#2b64b2;
      color:#ecf4ff;
      font-size:11px;
      font-weight:900;
    }
    .mission-block-editor--scratch-entry .scratch-row-kind{
      border-radius:999px;
      padding:3px 9px;
      font-size:10px;
      font-weight:900;
      letter-spacing:.05em;
      color:#40506a;
      background:#e8effa;
      border:1px solid rgba(144,166,197,0.58);
    }
    .mission-block-editor--scratch-entry .scratch-row-handle{
      width:20px;
      height:20px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:6px;
      font-size:11px;
      font-weight:900;
      color:#5f6f86;
      background:rgba(226,236,249,0.92);
      border:1px solid rgba(153,176,207,0.6);
      cursor:grab;
      line-height:1;
    }
    .mission-block-editor--scratch-entry .scratch-row-handle:active{
      cursor:grabbing;
    }
    .mission-block-editor--scratch-entry .scratch-block{
      --blk-main:#4c97ff;
      --blk-deep:#3373cc;
      border-radius:11px;
      padding:10px 13px 10px 16px;
      box-shadow:0 4px 10px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.24);
      background:linear-gradient(180deg,var(--blk-main),var(--blk-deep));
      border:1px solid rgba(255,255,255,0.3);
    }
    .mission-block-editor--scratch-entry .scratch-block::before,
    .mission-block-editor--scratch-entry .scratch-block::after{
      content:"";
      position:absolute;
      left:22px;
      width:18px;
      height:8px;
      border-radius:6px;
      background:rgba(0,0,0,0.24);
      pointer-events:none;
    }
    .mission-block-editor--scratch-entry .scratch-block::before{top:-4px;}
    .mission-block-editor--scratch-entry .scratch-block::after{bottom:-4px;}
    .mission-block-editor--scratch-entry .scratch-action{
      --blk-main:#4c97ff;
      --blk-deep:#357ad0;
    }
    .mission-block-editor--scratch-entry .scratch-control,
    .mission-block-editor--scratch-entry .scratch-control--if{
      --blk-main:#ffab19;
      --blk-deep:#e99100;
    }
    .mission-block-editor--scratch-entry .mission-block-row[data-row-type="loop"] .scratch-control{
      --blk-main:#9966ff;
      --blk-deep:#7d4fd5;
    }
    .mission-block-editor--scratch-entry .scratch-text{
      color:#f8fbff;
      font-weight:800;
      letter-spacing:.005em;
      text-shadow:0 1px 0 rgba(0,0,0,0.22);
    }
    .mission-block-editor--scratch-entry .scratch-field{
      border:1px solid rgba(104,128,161,0.45);
      border-radius:8px;
      background:#ffffff;
      color:var(--entry-ink);
      box-shadow:none;
      min-height:30px;
      font-weight:800;
      padding:4px 9px;
    }
    .mission-block-editor--scratch-entry .scratch-field:focus{
      box-shadow:0 0 0 2px rgba(76,151,255,0.3);
      border-color:rgba(76,151,255,0.84);
    }
    .mission-block-editor--scratch-entry .scratch-field--if-type{
      background:#f3f7ff;
      color:#324866;
      min-width:114px;
    }
    .mission-block-editor--scratch-entry .scratch-field--if-op{
      background:#eef4ff;
      color:#2d4667;
      border-color:rgba(100,130,170,0.44);
    }
    .mission-block-editor--scratch-entry .scratch-badge{
      background:rgba(22,37,58,0.18);
      border:1px solid rgba(255,255,255,0.32);
      color:#e9f2ff;
    }
    .mission-block-editor--scratch-entry .scratch-mini-btn--close{
      background:rgba(23,38,62,0.34);
      color:#f8fbff;
      border:1px solid rgba(255,255,255,0.35);
      box-shadow:none;
    }
    .mission-block-editor--scratch-entry .mission-if-group .scratch-control--if{
      border-radius:11px 11px 11px 0;
    }
    .mission-block-editor--scratch-entry .mission-if-branch{
      border-left-width:9px;
      border-bottom-width:9px;
      border-radius:0 0 0 10px;
      min-height:48px;
      padding:9px 0 9px 9px;
      background:rgba(255,255,255,0.26);
    }
    .mission-block-editor--scratch-entry .mission-if-branch.drop-active{
      background:rgba(255,220,153,0.38);
      box-shadow:inset 0 0 0 2px rgba(234,147,0,0.46);
    }
    .mission-block-editor--scratch-entry .mission-if-branch:empty::after{
      color:#8a5a00;
      font-weight:800;
    }
    .mission-block-editor--scratch-entry .mission-block-empty{
      background:rgba(255,255,255,0.8);
      border:2px dashed rgba(124,152,194,0.54);
      color:#4a5d77;
      border-radius:12px;
    }
    @media (max-width:760px){
      .mission-block-editor--scratch-entry .mission-block-workspace{
        height:auto;
        min-height:0;
        max-height:none;
        flex-direction:column;
      }
      .mission-block-editor--scratch-entry .mission-block-palette{
        flex:none;
        width:100%;
        min-width:0;
        max-width:none;
        max-height:260px;
      }
      .mission-block-editor--scratch-entry .mission-block-canvas{
        min-height:420px;
      }
      .mission-block-editor--scratch-entry .mission-block-stage{
        min-width:max(100%, 1120px);
        min-height:max(100%, 980px);
        padding-right:220px;
        padding-bottom:260px;
      }
    }
    .mission-divider{height:1px;background:rgba(148,163,184,0.28);margin:8px 0 10px}
    .mission-fields .mission-divider{display:none}
    .mission-dialog.custom-mode .mission-header{
      border-bottom:none;margin-bottom:8px;padding-bottom:0
    }
    #missionPresetDivider{display:none}
    .mission-preset-block{
      flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;
      padding-top:2px;padding-bottom:16px
    }
    .mission-preset-title{
      font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
      color:#475569;text-align:center
    }
    .mission-preset-row{transform:translateY(6px)}
    .mission-sync-row{
      display:flex;justify-content:center;gap:8px;margin-top:6px;padding-top:6px;
    }
    .mission-sync-row--top{
      margin-top:0;
      padding-top:0;
      justify-content:flex-start;
      flex-wrap:wrap;
    }
    .mission-sync-row--canvas{
      margin:0;
      padding:0;
      gap:6px;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:wrap;
    }
    .mission-sync-row--canvas .settings-btn,
    .mission-sync-row--canvas .mission-import-label{
      min-height:30px;
      min-width:88px;
      padding:6px 10px;
      font-size:11px;
    }
    .mission-sync-row .settings-btn{
      min-width:92px;
      padding:9px 14px;
    }
    .mission-import-label{
      display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
    }
    .mission-import-input{
      position:absolute;
      width:1px;
      height:1px;
      opacity:0;
      pointer-events:none;
    }
    .mission-footer{
      display:flex;justify-content:center;gap:8px;margin-top:auto;padding-top:12px;
      border-top:1px solid rgba(148,163,184,0.25)
    }
    .mission-footer .settings-btn{
      min-width:92px;
      padding:9px 15px;
    }
    .mission-confirm-btn{
      border-radius:999px;border:1px solid rgba(34,197,94,0.6);
      background:#22c55e;
      color:#f0fdf4;font-weight:800;font-size:12px;padding:9px 16px;
      box-shadow:0 8px 14px rgba(34,197,94,0.18);
      transition:transform .18s ease, box-shadow .18s ease
    }
    .mission-confirm-btn:hover{transform:translateY(-1px);box-shadow:0 10px 16px rgba(34,197,94,0.24)}
    .mission-preset-row{display:flex;align-items:center;justify-content:center;gap:8px}
    .mission-preset-row.hidden{display:none}
    .mission-scroll-btn{
      width:40px;height:40px;border-radius:999px;border:none;
      background:transparent;
      color:#6b7280;font-weight:700;font-size:0;
      display:inline-flex;align-items:center;justify-content:center;
      box-shadow:none;text-shadow:none;
      transition:transform .18s ease, opacity .18s ease
    }
    .mission-scroll-btn:hover{transform:translateY(-2px);opacity:.7}
    .mission-scroll-btn:active{transform:translateY(0)}
    .mission-scroll-btn::before{
      content:"";width:14px;height:14px;border-right:2px solid #334155;border-bottom:2px solid #334155;
      transform:rotate(135deg);
    }
    .mission-scroll-btn.right::before{transform:rotate(-45deg)}
    .mission-preset-viewport{
      position:relative;overflow:hidden;
      flex:0 0 calc(var(--preset-card) * 3 + var(--preset-gap) * 2);
      max-width:calc(var(--preset-card) * 3 + var(--preset-gap) * 2);
      padding:40px 0 18px;
      border-radius:20px;
      background:#ffffff;
    }
    .mission-preset-viewport::before,
    .mission-preset-viewport::after{content:none}
    .mission-preset-grid{
      --preset-card:160px;--preset-gap:10px;
      display:flex;gap:var(--preset-gap);overflow:hidden;scroll-behavior:smooth;
      width:100%;
      box-sizing:content-box;
      scroll-snap-type:x mandatory;
    }
    .mission-preset-btn{scroll-snap-align:center}
    .mission-preset-spacer{
      flex:0 0 calc(50% - (var(--preset-card) / 2));
    }
    .mission-preset-grid.hidden{display:none}
    .mission-preset-btn{
      border-radius:16px;border:1px solid rgba(148,163,184,0.3);
      background:linear-gradient(180deg,#ffffff,#f7f9fc);
      padding:6px;display:flex;flex-direction:column;align-items:center;gap:6px;
      min-width:var(--preset-card);flex:0 0 var(--preset-card);
      min-height:165px;
      box-shadow:0 6px 14px rgba(15,23,42,0.08);
      transform:scale(0.94);
      transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      position:relative;overflow:hidden
    }
    .mission-preset-btn:hover,
    .mission-preset-btn:active{transform:scale(0.94);box-shadow:0 10px 18px rgba(15,23,42,0.13)}
    .mission-preset-btn.is-center{
      transform:scale(1);
      box-shadow:0 10px 18px rgba(15,23,42,0.14);
      border-color:rgba(59,130,246,0.55)
    }
    .mission-preset-photo{
      width:100%;aspect-ratio:4/3;border-radius:12px;overflow:hidden;
      min-height:140px;
      background:linear-gradient(180deg,#f8fafc,#eef2f7);
      border:1px solid rgba(148,163,184,0.25);
      box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;
      display:flex;align-items:center;justify-content:center;color:#64748b;font-size:10px;font-weight:800;
      letter-spacing:.08em;text-transform:uppercase
    }
    .mission-preset-btn.has-spec{min-height:150px}
    .mission-preset-btn.has-spec .mission-preset-photo{min-height:150px}
    .mission-preset-btn.no-spec{min-height:0;padding-bottom:0}
    .mission-preset-btn.no-spec .mission-preset-photo{min-height:150px;margin-bottom:0}
    .mission-preset-photo img{
      width:100%;height:100%;object-fit:cover
    }
    .mission-preset-name{font-size:11px;font-weight:700;text-align:center;color:#374151}
    .mission-preset-sub{
      font-size:9px;font-weight:600;color:#94a3b8;text-align:center;line-height:1.1;margin-bottom:-2px
    }
    .mission-preset-btn.has-info:hover .mission-preset-photo,
    .mission-preset-btn.has-info:hover .mission-preset-name,
    .mission-preset-btn.has-info:focus-visible .mission-preset-photo,
    .mission-preset-btn.has-info:focus-visible .mission-preset-name,
    .mission-preset-btn.has-info:active .mission-preset-photo,
    .mission-preset-btn.has-info:active .mission-preset-name{opacity:0}
    .mission-preset-info{
      position:absolute;inset:10px;border-radius:12px;
      background:rgba(248,250,252,0.94);
      border:1px solid rgba(148,163,184,0.4);
      box-shadow:0 10px 18px rgba(15,23,42,0.12);
      padding:8px 10px;display:flex;flex-direction:column;gap:4px;
      justify-content:center;
      opacity:0;transform:translateY(6px);pointer-events:none;
      max-height:100%;overflow:hidden;
      transition:opacity .18s ease, transform .18s ease
    }
    .mission-preset-btn.has-info:hover .mission-preset-info,
    .mission-preset-btn.has-info:focus-visible .mission-preset-info,
    .mission-preset-btn.has-info:active .mission-preset-info{opacity:1;transform:translateY(0)}
    .mission-info-line{
      display:flex;align-items:center;justify-content:space-between;gap:8px;
      padding:3px 0
    }
    .mission-info-line.is-divider{
      border-top:1px solid rgba(148,163,184,0.25);
      margin-top:2px;padding-top:6px
    }
    .mission-info-label{
      font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;line-height:1.1
    }
    .mission-info-value{
      font-size:10px;font-weight:700;color:#0f172a;text-align:right;line-height:1.1
    }
    .mission-info-value.is-muted{
      color:#6b7280;font-weight:600
    }
    .mission-info-message{
      font-size:11px;font-weight:600;color:#0f172a;text-align:center;line-height:1.3
    }
    .mission-preset-vendor{
      font-size:8px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
      color:#94a3b8;text-align:center;margin-bottom:-2px;line-height:1
    }
    .mission-fields.hidden{display:none}
    .mission-dialog.custom-mode #missionPresetBlock{display:none}
    .mission-dialog.custom-mode #missionFields{display:block}
    .mission-test-actions{display:flex;align-items:center;gap:6px}
    .mission-test-cancel{border:none;background:transparent;color:#6b7280;font-size:12px}
    .mission-back-btn{
      border:none;background:transparent;color:#2563eb;font-size:12px;font-weight:700;
      padding:4px 0;cursor:pointer;letter-spacing:.02em;
      display:inline-flex;align-items:center;gap:6px
    }
    @media(max-width:700px){.mission-grid{grid-template-columns:1fr}}

    .loadcell-dialog{
      position:relative;width:620px;max-width:92vw;height:480px;
      background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(244,247,252,0.95));
      border-radius:24px;
      box-shadow:0 16px 38px rgba(15,23,42,0.14),0 2px 0 rgba(255,255,255,0.9) inset;
      border:1px solid rgba(255,255,255,0.7);
      padding:22px 22px 18px;color:#0f172a;
      backdrop-filter:blur(26px) saturate(1.15);-webkit-backdrop-filter:blur(26px) saturate(1.15);
      display:flex;flex-direction:column;overflow:hidden;
    }
    .loadcell-dialog::before{
      content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
      background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(148,163,184,0.4));
      -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;mask-composite:exclude;
      opacity:.9;pointer-events:none
    }
    .loadcell-dialog::after{
      content:"";position:absolute;inset:0;
      background:radial-gradient(circle at 20% 0,rgba(255,255,255,0.75),transparent 55%);
      opacity:.6;pointer-events:none
    }
    .loadcell-dialog .settings-title{
      font-size:15px;font-weight:700;letter-spacing:.02em;color:#0f172a
    }
    .loadcell-dialog .settings-close-btn{
      font-size:20px;color:#94a3b8;border-radius:999px;padding:4px 8px
    }
    .loadcell-dialog .settings-close-btn:hover{background:rgba(148,163,184,0.18);color:#0f172a}
    .loadcell-body{
      display:flex;flex-direction:column;gap:16px;margin-top:2px;
      flex:1;justify-content:center;align-items:center;
      position:relative;padding-bottom:78px
    }
    .loadcell-main{
      display:flex;flex-direction:column;gap:16px;flex:1;justify-content:center;
      width:100%;max-width:420px;align-items:center;text-align:center
    }
    .loadcell-kicker{
      font-size:10px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
      color:#64748b;background:rgba(15,23,42,0.06);padding:4px 10px;border-radius:999px
    }
    .loadcell-steps{font-size:13px;color:#4b5563;line-height:1.55}
    .loadcell-card{
      display:block;text-align:center;
      padding:14px 16px;border-radius:16px;
      background:rgba(255,255,255,0.9);
      border:1px solid rgba(148,163,184,0.25);width:100%;
      box-shadow:0 6px 14px rgba(15,23,42,0.08)
    }
    .loadcell-card > div{
      width:100%;
      display:flex;flex-direction:column;align-items:center;gap:6px;
      text-align:center
    }
    .loadcell-value-wrap{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:6px;width:100%}
    .loadcell-value,.loadcell-unit{display:block;text-align:center}
    .loadcell-value{
      font-size:28px;font-weight:700;color:#0f172a;letter-spacing:.01em
    }
    .loadcell-unit{
      font-size:11px;letter-spacing:.12em;color:#94a3b8;font-weight:700;text-transform:uppercase
    }
    .loadcell-input-row{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%}
    .loadcell-input{
      width:170px;padding:10px 12px;font-size:15px;border-radius:14px;border:1px solid rgba(148,163,184,0.35);
      background:rgba(255,255,255,0.95);text-align:center;outline:none;
      box-shadow:0 4px 10px rgba(15,23,42,0.08)
    }
    .loadcell-input:focus{box-shadow:0 0 0 4px rgba(10,132,255,0.2),0 8px 16px rgba(15,23,42,0.08);border-color:rgba(10,132,255,0.6)}
    .loadcell-note{font-size:11px;color:#6b7280}
    .loadcell-calc-card{margin-top:2px}
    .loadcell-card > .loadcell-calc-box{
      width:100%;
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:stretch;
      text-align:left;
    }
    .loadcell-calc-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:6px 8px;
      border-radius:10px;
      background:rgba(15,23,42,0.04);
    }
    .loadcell-calc-key{
      font-size:12px;
      color:#475569;
      letter-spacing:0.01em;
    }
    .loadcell-calc-value{
      font-size:12px;
      font-weight:700;
      color:#111827;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;
    }
    .loadcell-actions{
      display:flex;gap:8px;justify-content:center;width:100%;
      position:absolute;left:0;right:0;bottom:0;
      padding:14px 0;
      border-top:1px solid rgba(226,232,240,0.7)
    }
    .loadcell-primary{
      padding:9px 16px;font-size:12px;border-radius:12px;border:1px solid rgba(17,24,39,0.15);
      background:#111827;color:#f9fafb;font-weight:700;box-shadow:0 5px 12px rgba(17,24,39,0.18)
    }
    .loadcell-secondary{
      padding:9px 14px;font-size:12px;border-radius:12px;border:1px solid rgba(34,197,94,0.4);
      background:rgba(34,197,94,0.12);color:#166534;font-weight:700
    }
    .loadcell-cancel{
      padding:9px 14px;font-size:12px;border-radius:12px;border:1px solid rgba(148,163,184,0.7);
      background:#ffffff;color:#374151
    }
    .loadcell-primary:disabled,
    .loadcell-secondary:disabled,
    .loadcell-cancel:disabled{
      opacity:.45;
      cursor:not-allowed;
      filter:saturate(0.65);
      box-shadow:none;
    }
    .loadcell-warning{
      display:none;
      padding:0;border:none;
      background:transparent;
      box-shadow:none;
      text-align:center;
      align-items:center;
      justify-content:flex-start;
      flex-direction:column;
      gap:10px;
      width:100%;
      max-width:none;
      margin:0 auto;
      min-height:360px;
      position:relative;
      flex:1;
      align-self:stretch;
      height:100%;
      padding-bottom:78px
    }
    .loadcell-warning::before{
      content:"";position:absolute;left:-10px;right:-10px;top:-18px;height:220px;
      background:
        radial-gradient(circle at 50% 30%, rgba(254,202,202,0.6), transparent 60%),
        radial-gradient(circle at 50% 0, rgba(219,234,254,0.45), transparent 70%);
      pointer-events:none;filter:blur(4px);opacity:0.6;z-index:0
    }
    .loadcell-warning-content{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:8px;
      margin-top:auto;
      margin-bottom:auto;
      position:relative;z-index:1
    }
    .loadcell-warning-icon{
      width:56px;height:56px;border-radius:18px;margin:0 auto 10px;
      background:radial-gradient(circle at 30% 20%,#ff6b6b,#ef4444);
      border:1px solid rgba(220,38,38,0.85);
      display:flex;align-items:center;justify-content:center;
      box-shadow:0 14px 28px rgba(220,38,38,0.28),0 0 0 6px rgba(248,113,113,0.12)
    }
    .loadcell-warning-icon span{
      font-size:28px;font-weight:900;color:#ffffff;line-height:1;
      text-shadow:0 1px 2px rgba(15,23,42,0.35)
    }
    .loadcell-warning-kicker{
      font-size:10px;letter-spacing:.22em;text-transform:uppercase;
      color:#94a3b8;font-weight:700
    }
    .loadcell-warning-title{
      font-size:16px;font-weight:700;color:#0f172a;margin-bottom:6px;text-align:center
    }
    .loadcell-warning .confirm-text{
      color:#64748b;text-align:center;margin-bottom:12px
    }
    .loadcell-warning-sub{
      color:#94a3b8;font-size:11px;line-height:1.5;text-align:center
    }
    .loadcell-step-input{display:none;flex-direction:column;align-items:center;gap:8px;width:100%}
    .loadcell-step-complete{display:none}
    .loadcell-success-title{
      font-size:16px;
      font-weight:800;
      color:#0f172a;
      letter-spacing:.01em;
    }
    .loadcell-success-text{
      font-size:12px;
      color:#475569;
      line-height:1.6;
    }
    .loadcell-dialog.step-input .loadcell-step-input{display:flex}
    .loadcell-dialog.step-complete .loadcell-step-current,
    .loadcell-dialog.step-complete .loadcell-step-input{display:none}
    .loadcell-dialog.step-complete .loadcell-step-complete{display:block}
    .loadcell-dialog.show-warning .loadcell-main{display:none}
    .loadcell-dialog.show-warning .loadcell-warning{
      display:flex;
      position:absolute;
      inset:0;
    }
    .footer-nav{margin-top:6px;display:flex;justify-content:center}
    .footer-meta{font-size:11px;color:#9ca3af}
    .hint-mini{margin-top:3px;font-size:11px;color:#64748b;line-height:1.35}
    .hint-mini strong{color:#0f172a}
    .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Courier New",monospace}
    .serial-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid rgba(148,163,184,0.55);background:rgba(249,250,251,0.96);font-size:11px;color:#64748b}
    .serial-pill.ok{border-color:rgba(22,163,74,0.45);background:rgba(22,163,74,0.10);color:#166534}
    .serial-pill.bad{border-color:rgba(239,68,68,0.45);background:rgba(239,68,68,0.10);color:#991b1b}
    .serial-pill .dot{width:8px;height:8px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,0.18)}
    .serial-pill.ok .dot{background:var(--ok);box-shadow:0 0 0 4px var(--ok-soft)}
    .serial-pill.bad .dot{background:var(--danger);box-shadow:0 0 0 4px var(--danger-soft)}

    button:focus-visible,input:focus-visible,select:focus-visible{
      outline:none;
      box-shadow:0 0 0 3px rgba(59,130,246,0.35);
    }
    .side-nav-item:focus-visible,
    .side-nav-action:focus-visible,
    .side-nav-btn:focus-visible{
      box-shadow:none;
    }
    .side-nav-item:focus,
    .side-nav-action:focus,
    .side-nav-btn:focus,
    .side-nav-item:active,
    .side-nav-action:active,
    .side-nav-btn:active{
      outline:none;
      box-shadow:none;
    }

    @keyframes pulse-dot{
      0%{transform:scale(1);box-shadow:0 0 0 3px rgba(37,99,235,0.18)}
      50%{transform:scale(1.05);box-shadow:0 0 0 5px rgba(37,99,235,0.26)}
      100%{transform:scale(1);box-shadow:0 0 0 3px rgba(37,99,235,0.18)}
    }
    @keyframes fadeInSettings{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}
    #launcherOverlay{align-items:center;justify-content:center}
    #inspectionOverlay{align-items:center;justify-content:center}
    @media(max-width:600px){#launcherOverlay{align-items:center!important;justify-content:center!important;padding:16px!important}}
    @media(max-width:600px){#inspectionOverlay{align-items:center!important;justify-content:center!important;padding:0 12px!important}}
    @media(max-width:767px){
      :root{--shell-gap:10px;--page-pad-x:18px;--page-pad-y:18px;--page-pad-bottom:40px}
      .shell{display:flex;flex-direction:column;gap:var(--shell-gap)}
      .row-top,.row-bottom{display:contents}
      .side-col{display:contents}
      .main-card{order:1}
      .controls-card{order:2}
      .motor-card{order:3}
      .charts-card{order:4}
      .log-card{order:5}
    }
    @media(min-width:768px){
      .shell{display:flex;flex-direction:column;gap:var(--shell-gap)}
      .row-top{
        display:grid;
        grid-template-columns:minmax(0,1.25fr) minmax(320px,1.35fr);
        gap:8px;
        align-items:stretch
      }
      .row-bottom{
        display:grid;
        grid-template-columns:minmax(0,2.4fr) minmax(220px,0.8fr);
        gap:14px;
        align-items:stretch
      }
      .row-top > .card-base,
      .row-bottom > .card-base{height:100%;min-height:0}
      .row-bottom > .charts-card{height:var(--chart-height);min-height:var(--chart-height)}
      .row-bottom > .controls-card{
        height:var(--chart-height);
        min-height:var(--chart-height);
        display:flex;
        flex-direction:column;
        overflow:auto;
      }
      .row-bottom > .controls-card .controls-grid{
        flex:1 1 auto;
        min-height:0;
      }
      .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      #dashboardView{flex:0 0 auto;min-height:0}
      #dashboardView .shell{
        height:auto;
        min-height:0;
        display:grid;
        grid-template-rows:auto auto;
        align-content:start;
        gap:var(--shell-gap);
      }
      #dashboardView .row-top,
      #dashboardView .row-bottom{min-height:0}
      #dashboardView .row-top > .card-base{height:auto}
    }
    @media(min-width:1100px){
      .row-top{grid-template-columns:minmax(0,1.45fr) minmax(320px,1.35fr)}
      .row-bottom{grid-template-columns:minmax(0,2.55fr) minmax(220px,0.9fr)}
    }
    @media (min-width:768px) and (max-width:1440px){
      html.tablet-controls-layout{
        --page-pad-x:32px;
        --page-pad-y:20px;
        --page-pad-bottom:44px;
        --shell-gap:12px;
        --card-pad:14px;
        --chart-height:clamp(400px,46vh,540px);
        --log-height:clamp(160px,20vh,230px);
      }
      html.tablet-controls-layout body{overflow-y:auto}
      html.tablet-controls-layout .page-wrap{height:auto;overflow:visible}
      html.tablet-controls-layout .row-bottom{
        min-height:var(--chart-height);
        position:relative;
      }
      html.tablet-controls-layout .row-bottom > .charts-card{
        height:var(--chart-height)!important;
        min-height:var(--chart-height)!important;
      }
      html.tablet-controls-layout:not(.tablet-controls-open) .row-bottom{
        grid-template-columns:minmax(0,1fr);
      }
      html.tablet-controls-layout.tablet-controls-open .row-bottom{
        grid-template-columns:minmax(0,1fr) minmax(300px,340px);
      }
      html.tablet-controls-layout .row-bottom > .controls-card{
        width:100%;
        max-width:340px;
        width:min(340px,38vw);
        max-height:var(--chart-height);
        height:var(--chart-height);
        min-height:0;
        z-index:8;
        overflow:hidden;
        align-self:stretch;
        justify-self:end;
        transition:width .22s ease,height .22s ease,transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease,bottom .22s ease,right .22s ease;
      }
      html.tablet-controls-layout:not(.tablet-controls-open) .row-bottom > .controls-card{display:none}
      html.tablet-controls-layout.tablet-controls-open #controlsCard{
        position:relative;
        right:auto;
        bottom:auto;
        top:auto;
      }
      html.tablet-controls-layout .chart-row{
        min-height:0;
      }
      html.tablet-controls-layout .tablet-controls-nav-btn{display:flex}
      html.tablet-controls-layout #controlsCard{
        padding:14px;
        border-color:rgba(148,163,184,0.42);
        background:rgba(255,255,255,0.98);
        box-shadow:0 18px 42px rgba(15,23,42,0.18);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
      }
      html.tablet-controls-layout.tablet-controls-open #controlsCard .tablet-controls-close{
        display:inline-flex;
      }
      html.tablet-controls-layout .page-title{font-size:32px}
    }
    @media (min-width: 768px) and (max-width: 1440px){
      html.tablet-controls-layout{--chart-height:clamp(470px,55vh,680px)}
      html.tablet-controls-layout .chart-box{min-height:clamp(190px,27vh,260px)}
    }
    @media(max-width:980px){
      .app-shell{flex-direction:row}
    }
    @media(max-width:600px){
      body{padding:0;overflow-y:auto;display:block}
      .app-shell{
        min-height:100dvh;
        padding-bottom:calc(68px + env(safe-area-inset-bottom, 0px));
      }
      .side-nav-mobile{
        display:flex;
        position:fixed;left:0;right:0;bottom:0;z-index:60;
        width:100%;min-height:auto;height:calc(60px + env(safe-area-inset-bottom, 0px));
        flex-direction:row;justify-content:space-between;align-items:center;
        border-right:none;border-bottom:none;
        background:rgba(255,255,255,0.98);
        border:0;
        border-top:1px solid rgba(148,163,184,0.25);
        border-radius:0;
        box-shadow:0 18px 40px rgba(15,23,42,0.18);
        padding:4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
        overflow:visible;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .side-nav-mobile{
        top:auto;
        bottom:0;
        z-index:92;
        height:auto;
        min-height:calc(72px + env(safe-area-inset-bottom, 0px));
        padding:10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        border-radius:0;
        box-shadow:none;
        flex-direction:column;
        justify-content:flex-start;
        align-items:stretch;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .side-nav-mobile .side-nav-menu{
        order:1;
        width:100%;
        flex:0 0 auto;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .side-nav-mobile::after{
        content:none;
      }
      .side-nav-mobile .side-nav-menu{
        flex:1;
        flex-direction:row;align-items:center;justify-content:center;
        width:100%;gap:clamp(38px,12vw,56px);
      }
      .side-nav-divider-mobile{
        width:1px;height:26px;
        background:rgba(148,163,184,0.4);
        margin:0 3px;
      }
      .side-nav-mobile .side-nav-item,
      .side-nav-mobile .side-nav-btn{
        width:46px;height:46px;border-radius:10px;
        border:1px solid transparent;
        flex-direction:column;
        gap:2px;
        padding:2px;
        -webkit-tap-highlight-color:transparent;
      }
      .side-nav-mobile .side-nav-item svg,
      .side-nav-mobile .side-nav-btn svg{
        width:25px;
        height:25px;
        min-width:25px;
        min-height:25px;
        flex-basis:25px;
      }
      .side-nav-mobile .side-nav-item::after,
      .side-nav-mobile .side-nav-btn::after{
        display:block;
        width:100%;
        max-width:100%;
        opacity:1;
        transform:none;
        overflow:hidden;
        text-align:center;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:10px;
        line-height:1;
        font-weight:700;
        letter-spacing:0;
        color:currentColor;
      }
      .side-nav-mobile .side-nav-item:focus,
      .side-nav-mobile .side-nav-item:focus-visible,
      .side-nav-mobile .side-nav-item:active,
      .side-nav-mobile .side-nav-btn:focus,
      .side-nav-mobile .side-nav-btn:focus-visible,
      .side-nav-mobile .side-nav-btn:active{
        outline:none;
        box-shadow:none;
      }
      .side-nav-mobile .side-nav-item.active{
        background:transparent;
        color:#3b82f6;
        box-shadow:none;
      }
      .mobile-sequence-nav-float{
        position:absolute;
        left:50%;
        bottom:calc(100% + 12px);
        z-index:3;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        opacity:0;
        visibility:hidden;
        transform:translate(-50%, 8px) scale(.96);
        transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
        pointer-events:none;
      }
      .mobile-sequence-nav-timer{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        min-width:116px;
        height:42px;
        padding:0 16px;
        box-sizing:border-box;
        border:1px solid rgba(255,255,255,.22);
        border-radius:999px;
        background:rgba(28,28,28,.58);
        color:#f7f7f7;
        box-shadow:
          0 12px 30px rgba(0,0,0,.34),
          inset 0 1px 0 rgba(255,255,255,.18);
        -webkit-backdrop-filter:blur(18px) saturate(165%);
        backdrop-filter:blur(18px) saturate(165%);
        overflow:hidden;
        pointer-events:none;
      }
      .mobile-sequence-nav-timer::before{
        content:"";
        position:absolute;
        inset:0;
        border-radius:inherit;
        background:linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.025) 48%, rgba(255,255,255,.08));
        pointer-events:none;
      }
      .mobile-sequence-nav-timer span{
        position:relative;
        z-index:1;
        display:flex;
        align-items:center;
        justify-content:center;
        width:100%;
        height:100%;
        font-size:16px;
        line-height:1;
        font-weight:700;
        font-variant-numeric:tabular-nums;
        letter-spacing:0;
        white-space:nowrap;
        transform:translateY(1px);
      }
      .mobile-sequence-nav-abort{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        width:42px;
        height:42px;
        flex:0 0 42px;
        padding:0;
        box-sizing:border-box;
        border:1px solid rgba(248,113,113,.55);
        border-radius:999px;
        background:rgba(127,29,29,.62);
        color:#fff;
        box-shadow:
          0 12px 30px rgba(69,10,10,.38),
          inset 0 1px 0 rgba(255,255,255,.2);
        -webkit-backdrop-filter:blur(18px) saturate(170%);
        backdrop-filter:blur(18px) saturate(170%);
        cursor:pointer;
        pointer-events:auto;
        overflow:hidden;
        -webkit-tap-highlight-color:transparent;
      }
      .mobile-sequence-nav-abort::before{
        content:"";
        position:absolute;
        inset:0;
        border-radius:inherit;
        background:linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.025) 52%, rgba(248,113,113,.12));
        pointer-events:none;
      }
      .mobile-sequence-nav-abort svg{
        position:relative;
        z-index:1;
        width:21px;
        height:21px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-sequence-nav-abort:active{
        transform:scale(.93);
        filter:brightness(1.16);
      }
      html.sequence-running:not(.mobile-controls-active):not(.phone-landscape-layout) .mobile-sequence-nav-float{
        opacity:1;
        visibility:visible;
        transform:translate(-50%, 0) scale(1);
      }
      .mobile-abort-wrapper{
        position:absolute;
        bottom:100%;
        left:50%;
        transform:translate(-50%, -22px);
        pointer-events:none;
        width:100%;
        display:flex;
        justify-content:center;
      }
      .mobile-abort-help{
        font-size:11px;
        color:#6b7280;
        text-align:center;
        line-height:1.4;
      }
      .page-wrap{
        height:auto;overflow:visible;
        padding-bottom:calc(108px + env(safe-area-inset-bottom, 0px));
      }
      .top-bar{flex-direction:column;align-items:flex-start;gap:6px}
      .top-left{width:100%}
      .top-right{width:100%;display:flex;justify-content:flex-end}
      .status-bar{width:100%;justify-content:flex-end}
      .motor-card .card-header.quick-data-header{
        flex-direction:column;
        align-items:flex-start;
      }
      .motor-card .quick-data-header .status-bar{
        width:100%;
        justify-content:flex-start;
      }
      .logo-img{height:40px}
      .title-main{font-size:16px}
      .title-sub{font-size:11px}
      .card-base{padding:14px 14px}
      .countdown-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
      .countdown-mobile{display:block}
      .pill-row{width:100%;justify-content:flex-start}
      .countdown-label-block{min-width:0}
      #countdown{justify-self:end;min-width:0;line-height:1;font-size:clamp(34px,11vw,48px)}
      .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .motor-card .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .motor-card .item{min-height:48px}
      .controls-main-row{flex-direction:column}
      .primary-btn,.secondary-btn{height:44px}
      .controls-mobile-only{display:inline-flex}
      .launcher-desktop-only{display:none}
      .side-nav-mobile .js-launcher-open{display:none !important}
      .chart-row{flex-direction:column}
      .chart-box{flex:1 1 auto}
      .settings-overlay{align-items:center;justify-content:center;padding:12px}
      .settings-dialog{
        width:100%;max-width:520px;height:70vh;max-height:70vh;border-radius:12px;margin:0;
        padding:14px 16px max(12px,env(safe-area-inset-bottom,12px))
      }
      html.settings-open .side-nav-mobile{
        display:none !important;
      }
      html.settings-open .app-shell{
        padding-bottom:0 !important;
      }
      html.settings-open #settingsOverlay{
        z-index:1305;
        align-items:stretch !important;
        justify-content:stretch !important;
        padding:0 !important;
      }
      html.settings-open #settingsOverlay .settings-dialog{
        width:100vw !important;
        max-width:none !important;
        height:100dvh !important;
        max-height:none !important;
        margin:0 !important;
        border-radius:0 !important;
        padding:
          max(12px, env(safe-area-inset-top, 0px))
          max(12px, env(safe-area-inset-right, 0px))
          max(12px, env(safe-area-inset-bottom, 0px))
          max(12px, env(safe-area-inset-left, 0px)) !important;
      }
      .mobile-controls-panel{
        display:flex;
        position:fixed;
        top:auto;
        left:12px;
        right:12px;
        bottom:calc(12px + env(safe-area-inset-bottom, 0px));
        max-width:640px;
        margin:0 auto;
        width:auto;
        border-radius:16px;
        padding:30px 14px 24px;
        background:linear-gradient(180deg,rgba(255,255,255,0.99),rgba(248,250,252,0.97));
        border:1px solid rgba(148,163,184,0.34);
        box-shadow:0 18px 36px rgba(15,23,42,0.16);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
        flex-direction:column;
        justify-content:flex-start;
        gap:12px;
        min-height:0;
        max-height:calc(100dvh - 24px);
        transform:translateY(calc(100% + 20px));
        transition:transform .32s cubic-bezier(0.22,0.61,0.36,1),opacity .28s ease;
        opacity:0;
        pointer-events:none;
        z-index:80;
        will-change:transform,opacity;
        overflow:hidden;
      }
      .mobile-controls-panel.is-open{
        transform:translateY(0);
        opacity:1;
        pointer-events:auto;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel{
        position:fixed;
        left:12px;
        right:12px;
        bottom:calc(12px + env(safe-area-inset-bottom, 0px));
        width:auto;
        max-width:640px;
        margin:0 auto;
        border:1px solid rgba(148,163,184,0.34);
        border-radius:16px;
        padding:30px 14px 24px;
        background:linear-gradient(180deg,rgba(255,255,255,0.99),rgba(248,250,252,0.97));
        box-shadow:0 18px 36px rgba(15,23,42,0.16);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
        transform:none;
        opacity:1;
        pointer-events:auto;
        overflow:visible;
        max-height:none;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-controls-handle{
        display:none;
      }
      .mobile-controls-handle{
        display:block;
        position:absolute;
        top:10px;
        left:50%;
        transform:translateX(-50%);
        width:44px;
        height:4px;
        border-radius:999px;
        background:rgba(100,116,139,0.34);
      }
      .mobile-controls-head{display:none}
      .mobile-controls-head-title{font-weight:600;color:#94a3b8}
      .mobile-controls-head-sub{font-size:14px;font-weight:700;color:var(--text-main);letter-spacing:0;text-transform:none}
      .mobile-controls-top-actions{
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        align-items:stretch;
        gap:12px 10px;
        margin:0 0 8px;
        width:100%;
        padding-right:0;
        padding-left:4px;
        padding-right:4px;
        box-sizing:border-box;
      }
      .mobile-top-action-btn{
        min-width:0;
        min-height:56px;
        height:100%;
        width:92%;
        justify-self:center;
        border-radius:12px;
        border:1px solid rgba(148,163,184,0.46);
        background:#ffffff;
        color:#1e293b;
        font-size:13px;
        font-weight:800;
        letter-spacing:.03em;
        cursor:pointer;
      }
      .mobile-controls-top-actions .mobile-top-action-sequence.primary-btn.sequence-btn{
        grid-column:span 3;
        min-height:56px;
        height:100%;
        width:92%;
        justify-self:center;
        border-radius:12px;
        padding:8px 12px;
      }
      .mobile-top-action-btn.mobile-top-action-arm{
        grid-column:span 1;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0;
        color:#64748b;
      }
      .mobile-top-action-btn.mobile-top-action-arm.is-active{
        border-color:rgba(239,68,68,0.6);
        background:rgba(239,68,68,0.14);
        color:#b91c1c;
      }
      .mobile-top-action-btn.mobile-top-action-mission{
        grid-column:span 1;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0;
      }
      .mobile-top-action-btn.mobile-top-action-arm svg{
        width:20px;
        height:20px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-top-action-btn.mobile-top-action-arm .arm-icon-unlocked{
        display:block;
      }
      .mobile-top-action-btn.mobile-top-action-arm .arm-icon-locked{
        display:none;
      }
      .mobile-top-action-btn.mobile-top-action-arm.is-active .arm-icon-unlocked{
        display:none;
      }
      .mobile-top-action-btn.mobile-top-action-arm.is-active .arm-icon-locked{
        display:block;
      }
      .mobile-top-action-btn.mobile-top-action-mission svg{
        width:20px;
        height:20px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      html.mode-flight #mobileMissionWideBtn{
        display:none !important;
      }
      html.mode-flight #mobileArmLockWideBtn{
        display:flex !important;
      }
      html.mode-daq #mobileArmLockWideBtn{
        display:none !important;
      }
      html.mode-daq #mobileMissionWideBtn{
        display:flex !important;
      }
      .mobile-top-action-btn:disabled,
      .mobile-top-action-btn.disabled{
        opacity:.45;
        cursor:not-allowed;
      }
      .mobile-controls-slot{
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:6px;
        row-gap:24px;
        flex:1 1 auto;
        min-height:0;
        width:100%;
        max-height:none;
        overflow:visible;
        padding-right:0;
        padding-left:4px;
        padding-right:4px;
        padding-bottom:24px;
        grid-auto-flow:row dense;
        align-content:start;
        box-sizing:border-box;
      }
      .mobile-controls-slot .control-tile:first-of-type{
        grid-column:auto;
      }
      .mobile-controls-slot .control-tile{
        min-height:0;
        border:none;
        background:transparent;
        color:#334155;
        min-width:0;
        width:100%;
        gap:8px;
        align-items:center;
        justify-content:flex-start;
        padding:0;
        border-radius:0;
      }
      .mobile-controls-panel .control-tile-actions{margin-left:auto}
      .mobile-controls-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px}
      .mobile-controls-toolbar-top{
        margin:0;
        padding:4px 0 10px;
        border-bottom:1px solid rgba(203,213,225,0.72);
      }
      .mobile-toolbar-btn{
        min-width:0;
        width:100%;
        height:46px;
        border:1px solid rgba(203,213,225,0.9);
        background:#ffffff;
        color:#334155;
        padding:0;
        border-radius:12px;
        display:flex;
        align-items:center;
        justify-content:center;
        box-shadow:none;
      }
    .mobile-controls-panel .mobile-quick-btn{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:0;
        text-align:center;
        cursor:pointer;
        border-radius:12px;
        min-height:0;
        aspect-ratio:auto;
        height:58px;
        min-height:58px;
        padding:1px 1px;
        width:78%;
        max-width:74px;
        justify-self:center;
        border:1px solid rgba(148,163,184,0.46);
        background:#ffffff;
        box-sizing:border-box;
        position:relative;
        overflow:visible;
      }
      .mobile-controls-panel .mobile-quick-icon{
        width:24px;
        height:24px;
        border-radius:12px;
        border:none;
        background:transparent;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        box-shadow:none;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-gray{
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-gray svg{
        stroke:#334155;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-green{
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-green svg{
        stroke:#334155;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-red{
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-red svg{
        stroke:#334155;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-blue{
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-blue svg{
        stroke:#334155;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-orange{
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
      }
      .mobile-controls-panel .mobile-quick-icon.tone-orange svg{
        stroke:#334155;
      }
      .mobile-controls-panel .mobile-quick-icon svg{
        width:23px;
        height:23px;
        stroke:#334155;
        fill:none;
        stroke-width:1.9;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-controls-panel [data-mobile-control="launcher"] .mobile-quick-icon{
        border-radius:10px;
        border-color:rgba(148,163,184,0.48);
        background:#ffffff;
        box-shadow:none;
      }
      .mobile-controls-panel [data-mobile-control="launcher"] .mobile-quick-icon svg{
        stroke:#334155;
      }
      .mobile-controls-panel [data-mobile-control="launcher"] .mobile-quick-icon svg path{
        fill:#334155 !important;
        stroke:none !important;
      }
      .mobile-controls-panel .mobile-quick-icon,
      .mobile-controls-panel .mobile-quick-icon.tone-gray,
      .mobile-controls-panel .mobile-quick-icon.tone-green,
      .mobile-controls-panel .mobile-quick-icon.tone-red,
      .mobile-controls-panel .mobile-quick-icon.tone-blue,
      .mobile-controls-panel [data-mobile-control="launcher"] .mobile-quick-icon{
        box-shadow:none !important;
      }
      .mobile-controls-panel .mobile-quick-label{
        font-size:10px;
        font-weight:700;
        color:#334155;
        line-height:1.2;
        min-height:0;
        letter-spacing:0;
        white-space:normal;
        word-break:keep-all;
        display:block;
        position:absolute;
        left:50%;
        bottom:-17px;
        transform:translateX(-50%);
        width:100%;
        text-align:center;
        pointer-events:none;
      }
      .mobile-controls-panel .mobile-quick-state{
        display:none !important;
      }
      .mobile-controls-panel .mobile-quick-btn:disabled,
      .mobile-controls-panel .mobile-quick-btn.disabled{
        opacity:.45;
      }
      .mobile-controls-panel .mobile-quick-btn:active{
        opacity:.78;
      }
      .mobile-controls-panel .mobile-quick-btn.is-active .mobile-quick-icon{
        color:#60a5fa !important;
      }
      .mobile-controls-panel .mobile-launcher-panel,
      .mobile-controls-panel .mobile-mission-panel,
      .mobile-controls-panel .mobile-inspection-panel,
      .mobile-controls-panel .mobile-servo-panel,
      .mobile-controls-panel .mobile-downloads-panel{
        display:none;
      }
      .mobile-controls-panel.is-launcher-view .mobile-controls-slot,
      .mobile-controls-panel.is-launcher-view .mobile-controls-top-actions,
      .mobile-controls-panel.is-mission-view .mobile-controls-slot,
      .mobile-controls-panel.is-mission-view .mobile-controls-top-actions,
      .mobile-controls-panel.is-inspection-view .mobile-controls-slot,
      .mobile-controls-panel.is-servo-view .mobile-controls-slot,
      .mobile-controls-panel.is-servo-view .mobile-controls-top-actions,
      .mobile-controls-panel.is-downloads-view .mobile-controls-slot,
      .mobile-controls-panel.is-downloads-view .mobile-controls-top-actions{
        display:none;
      }
      .mobile-controls-panel.is-inspection-view .mobile-controls-top-actions{
        display:none;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel,
      .mobile-controls-panel.is-mission-view .mobile-mission-panel,
      .mobile-controls-panel.is-inspection-view .mobile-inspection-panel,
      .mobile-controls-panel.is-servo-view .mobile-servo-panel,
      .mobile-controls-panel.is-downloads-view .mobile-downloads-panel{
        display:flex !important;
        flex:1 1 auto;
        min-height:0;
        margin-top:0;
        gap:10px;
        padding:2px 2px 0;
        animation:replayPanelEnter .2s ease;
      }
      .mobile-controls-panel.is-launcher-view .panel-action-grid,
      .mobile-controls-panel.is-mission-view .panel-action-grid,
      .mobile-controls-panel.is-inspection-view .panel-action-grid{
        grid-template-columns:1fr;
        gap:8px;
      }
      .mobile-controls-panel.is-launcher-view .panel-action-btn,
      .mobile-controls-panel.is-mission-view .panel-action-btn,
      .mobile-controls-panel.is-inspection-view .panel-action-btn,
      .mobile-controls-panel.is-downloads-view .panel-action-btn{
        min-height:42px;
        border-radius:12px;
        font-size:12px;
        padding:8px 10px;
      }
      .mobile-downloads-panel{
        flex-direction:column;
      }
      .mobile-download-actions{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
      }
      .mobile-download-list{
        display:flex;
        flex-direction:column;
        gap:8px;
        min-height:0;
        overflow:auto;
        padding:2px 0 0;
      }
      .mobile-download-empty{
        border:1px dashed rgba(148,163,184,0.6);
        border-radius:12px;
        padding:14px 12px;
        color:#64748b;
        font-size:12px;
        font-weight:650;
        text-align:center;
        background:rgba(248,250,252,0.82);
      }
      .mobile-download-item{
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        gap:8px;
        align-items:center;
        padding:9px 10px;
        border:1px solid rgba(148,163,184,0.38);
        border-radius:12px;
        background:#ffffff;
      }
      .mobile-download-name{
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        color:#1e293b;
        font-size:12px;
        font-weight:800;
      }
      .mobile-download-meta{
        margin-top:2px;
        color:#64748b;
        font-size:10px;
        font-weight:650;
      }
      .mobile-download-replay{
        min-height:34px;
        border:none;
        border-radius:10px;
        padding:0 12px;
        background:#1e293b;
        color:#ffffff;
        font-size:11px;
        font-weight:800;
        cursor:pointer;
      }
      .mobile-controls-panel.is-mission-view .mission-quick-btn{
        min-height:76px;
        border-radius:18px;
        padding:12px 14px;
        gap:5px;
      }
      .mobile-controls-panel.is-mission-view .mission-quick-title{
        font-size:16px;
      }
      .mobile-controls-panel.is-mission-view .mission-quick-meta{
        font-size:10px;
      }
      .mobile-controls-panel .mobile-launcher-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
      }
      .mobile-controls-panel .mobile-launcher-title{
        font-size:11px;
        font-weight:700;
        letter-spacing:.12em;
        text-transform:uppercase;
        color:#334155;
      }
      .mobile-controls-panel .mobile-launcher-back{
        display:none !important;
      }
      .mobile-controls-panel.is-launcher-view{
        background:linear-gradient(180deg,rgba(255,255,255,0.99),rgba(248,250,252,0.97));
        border-color:rgba(148,163,184,0.34);
      }
      .mobile-controls-panel.is-servo-view{
        background:linear-gradient(180deg,rgba(255,255,255,0.99),rgba(248,250,252,0.97));
        border-color:transparent;
      }
      .mobile-controls-panel .mobile-servo-panel{
        flex-direction:column;
      }
      .mobile-servo-dialog-mount{
        display:flex;
        flex:1 1 auto;
        min-height:0;
        overflow:visible;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel{
        width:100%;
        max-width:none;
        max-height:none;
        padding:0;
        margin:0;
        border:none !important;
        outline:none !important;
        border-radius:0;
        background:transparent;
        box-shadow:none !important;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel::before,
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel::after{
        content:none !important;
        display:none !important;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .settings-header{
        display:none;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-dialog-body{
        overflow:visible;
        padding:0;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-group{
        margin-top:0;
        padding-top:0;
        border:none !important;
        outline:none !important;
        background:transparent !important;
        box-shadow:none !important;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-inline-wrap,
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-grid{
        border:none !important;
        outline:none !important;
        background:transparent !important;
        box-shadow:none !important;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-quick-row{
        margin:8px 0;
      }
      .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-row{
        border-radius:14px;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-panel-note{
        color:#64748b;
        font-size:10px;
        line-height:1.5;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-divider{
        background:rgba(148,163,184,0.38);
        margin:4px 0 6px;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-row{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
        padding:4px 0;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn{
        width:min(156px, 62%);
        height:54px;
        margin:0 auto;
        border-radius:12px;
        border:1px solid rgba(203,213,225,0.55);
        background:#ffffff !important;
        color:#0f172a;
        font-size:18px;
        box-shadow:none !important;
        -webkit-box-shadow:none !important;
        text-shadow:none !important;
        filter:none !important;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:hover,
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:active,
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:focus,
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:focus-visible,
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn.pressed{
        box-shadow:none !important;
        -webkit-box-shadow:none !important;
        text-shadow:none !important;
        filter:none !important;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:hover:not(:disabled),
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:active:not(:disabled){
        transform:none !important;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn:active,
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-arrow-btn.pressed{
        background:#e5e7eb !important;
        color:#0f172a !important;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-angle{
        display:flex;
        padding:2px 0 0;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-angle-value{
        color:#0f172a;
        font-size:34px;
        text-shadow:0 4px 10px rgba(15,23,42,0.16);
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-angle-label{
        color:#64748b;
      }
      .mobile-controls-panel.is-launcher-view .mobile-launcher-panel .launcher-auto-btn{
        border-radius:11px;
        border:1px solid rgba(148,163,184,0.44);
        background:rgba(255,255,255,0.92);
        color:#334155;
      }
      .replay-layout-row{
        display:flex;
        flex-direction:column;
        align-items:stretch;
      }
      .replay-file-row{
        flex:0 0 auto;
        width:100%;
        max-width:none;
      }
      .replay-control-row{gap:3px}
      .settings-body{flex-direction:column;overflow:hidden;padding-right:2px}
      .settings-panels{overflow-y:auto;padding-right:10px}
      .settings-nav{
        width:100%;border-right:none;border-bottom:1px solid rgba(209,213,219,0.9);
        padding-right:0;padding-bottom:6px;flex-direction:row;gap:6px;overflow-x:auto
      }
      .settings-nav-title{display:none}
      .settings-nav-btn{
        flex:0 0 auto;justify-content:center;align-items:center;flex-direction:column;
        padding:8px 10px;gap:3px;min-height:64px;min-width:88px;text-align:center
      }
      .settings-nav-btn span{display:block;white-space:nowrap;word-break:keep-all}
      .settings-nav-btn::before{display:none}
      .launcher-arrow-btn{width:110px;height:54px;font-size:20px}
      .launcher-dialog .launcher-arrow-btn{width:92px}
    }
    @media(max-width:380px){
      .countdown-wrap{grid-template-columns:1fr}
      #countdown{margin-top:6px;justify-self:end}
      .item-grid{grid-template-columns:1fr}
      html:not(.mobile-controls-active) .mobile-controls-slot{grid-template-columns:repeat(3,minmax(0,1fr))}
    }
    html.phone-landscape-layout .side-nav-mobile{
      display:flex;
      position:fixed;
      top:50%;
      right:calc(12px + env(safe-area-inset-right, 0px));
      left:auto;
      bottom:auto;
      width:auto;
      height:auto;
      min-height:0;
      padding:0;
      border-radius:0;
      border:none;
      background:transparent;
      box-shadow:none;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      z-index:80;
      transform:translateY(-50%);
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-menu{
      width:100%;
      flex-direction:column;
      align-items:center;
      justify-content:flex-start;
      gap:8px;
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-divider-mobile{
      width:28px;
      height:1px;
      margin:4px 0;
      background:rgba(255,255,255,0.14);
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-item,
    html.phone-landscape-layout .side-nav-mobile .side-nav-btn{
      width:44px;
      height:44px;
      color:rgba(226,232,240,0.82);
      background:transparent;
      border-color:transparent;
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-item::after,
    html.phone-landscape-layout .side-nav-mobile .side-nav-btn::after{
      content:none;
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-item:not(.active){
      display:none;
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-item.active,
    html.phone-landscape-layout .side-nav-mobile .side-nav-btn.is-active{
      background:rgba(255,255,255,0.12);
      color:#f8fafc;
      border-color:rgba(255,255,255,0.14);
    }
    html.phone-landscape-layout .side-nav-mobile .side-nav-item,
    html.phone-landscape-layout .side-nav-mobile .side-nav-divider-mobile,
    html.phone-landscape-layout .side-nav-mobile .js-launcher-open,
    html.phone-landscape-layout .side-nav-mobile .js-sidebar-settings{
      display:none;
    }
    html.phone-landscape-layout .side-nav-mobile .js-controls-open{
      display:inline-flex;
      background:rgba(255,255,255,0.12);
      color:#f8fafc;
      border-color:rgba(255,255,255,0.14);
    }
    html.phone-landscape-layout.settings-open .side-nav-mobile{
      display:none !important;
    }
    html.phone-landscape-layout.settings-open .side-nav-mobile .js-controls-open{
      display:none;
    }
    html.phone-landscape-layout.settings-open .side-nav-mobile .js-controls-open,
    html.phone-landscape-layout.settings-open #tabletControlsNavBtn{
      display:none !important;
      pointer-events:none !important;
      opacity:0 !important;
      visibility:hidden !important;
    }
    html.phone-landscape-layout.mobile-controls-active .side-nav-mobile .js-controls-open{
      display:none;
    }
    html.phone-landscape-layout.settings-open .js-controls-open{
      display:none !important;
      pointer-events:none !important;
      opacity:0 !important;
      visibility:hidden !important;
    }
    html.phone-landscape-layout .mobile-abort-wrapper{
      position:static !important;
      top:auto !important;
      left:auto !important;
      right:auto !important;
      bottom:auto !important;
      width:0 !important;
      height:0 !important;
      transform:none !important;
      justify-content:center !important;
      z-index:1210;
      pointer-events:none;
    }
    html.phone-landscape-layout .mobile-abort-help{
      display:block !important;
      order:2;
      color:rgba(248,250,252,0.96);
      font-size:11px;
      font-weight:600;
      line-height:1.2;
      text-align:left;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      background:rgba(7,12,22,0.86);
      border:1px solid rgba(255,255,255,0.16);
      border-radius:10px;
      padding:10px 12px;
      box-shadow:0 10px 20px rgba(2,6,23,0.28);
    }
    html.phone-landscape-layout .mobile-abort-help br{
      display:none !important;
    }
    html.phone-landscape-layout.status-map-expanded .mobile-abort-wrapper{
      z-index:1210 !important;
    }
    html.phone-landscape-layout .mobile-controls-panel{
      display:flex;
      position:fixed;
      top:calc(12px + env(safe-area-inset-top, 0px));
      right:calc(8px + env(safe-area-inset-right, 0px));
      bottom:calc(12px + env(safe-area-inset-bottom, 0px));
      left:auto;
      width:min(380px, calc(100vw - 24px));
      max-width:none;
      min-height:0;
      height:auto;
      margin:0;
      padding:14px 14px;
      border-radius:16px;
      border:1px solid rgba(255,255,255,0.14);
      background:linear-gradient(180deg,rgba(14,22,36,0.64),rgba(8,14,26,0.58));
      box-shadow:0 18px 36px rgba(2,6,23,0.24);
      backdrop-filter:blur(20px) saturate(1.08);
      -webkit-backdrop-filter:blur(20px) saturate(1.08);
      flex-direction:column;
      align-items:stretch;
      justify-content:center;
      gap:12px;
      transform:translateX(calc(100% + 28px));
      transition:transform .32s cubic-bezier(0.22,0.61,0.36,1),opacity .28s ease;
      opacity:0;
      pointer-events:none;
      overflow-y:auto;
      overflow-x:hidden;
      z-index:90;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-open{
      transform:translateX(0);
      opacity:1;
      pointer-events:auto;
    }
    html.phone-landscape-layout .mobile-controls-handle{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-head{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-toolbar{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:10px 8px;
      padding-left:0;
      margin:0;
    }
    html.phone-landscape-layout .mobile-controls-toolbar-top{
      margin:0;
    }
    html.phone-landscape-layout .mobile-toolbar-btn{
      min-width:0;
      min-height:0;
      border:none;
      background:transparent;
      color:#f8fafc;
      padding:0;
      border-radius:0;
    }
    html.phone-landscape-layout .mobile-controls-slot{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:10px 8px;
      width:100%;
      max-height:none;
      padding:0;
      overflow:visible;
      grid-auto-flow:row dense;
    }
    html.phone-landscape-layout .mobile-controls-top-actions{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      align-items:stretch;
      gap:8px;
      margin:0 0 8px;
      padding-right:2px;
    }
    html.phone-landscape-layout .mobile-top-action-btn{
      min-height:46px;
      height:100%;
      border-radius:11px;
      font-size:12px;
    }
    html.phone-landscape-layout .mobile-controls-top-actions .mobile-top-action-sequence.primary-btn.sequence-btn{
      grid-column:span 3;
      min-height:46px;
      border-radius:11px;
      padding:8px 10px;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-launcher-panel{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-mission-panel,
    html.phone-landscape-layout .mobile-controls-panel .mobile-inspection-panel,
    html.phone-landscape-layout .mobile-controls-panel .mobile-servo-panel,
    html.phone-landscape-layout .mobile-controls-panel .mobile-downloads-panel{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-launcher-view .mobile-controls-slot{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-launcher-view .mobile-controls-top-actions{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-mission-view .mobile-controls-slot,
    html.phone-landscape-layout .mobile-controls-panel.is-inspection-view .mobile-controls-slot,
    html.phone-landscape-layout .mobile-controls-panel.is-servo-view .mobile-controls-slot,
    html.phone-landscape-layout .mobile-controls-panel.is-downloads-view .mobile-controls-slot{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-mission-view .mobile-controls-top-actions,
    html.phone-landscape-layout .mobile-controls-panel.is-inspection-view .mobile-controls-top-actions,
    html.phone-landscape-layout .mobile-controls-panel.is-servo-view .mobile-controls-top-actions,
    html.phone-landscape-layout .mobile-controls-panel.is-downloads-view .mobile-controls-top-actions{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-launcher-view{
      width:min(300px, calc(100vw - 24px));
    }
    html.phone-landscape-layout .mobile-controls-panel.is-mission-view{
      width:min(420px, calc(100vw - 24px));
    }
    html.phone-landscape-layout .mobile-controls-panel.is-inspection-view{
      width:min(360px, calc(100vw - 24px));
    }
    html.phone-landscape-layout .mobile-controls-panel.is-servo-view{
      width:min(430px, calc(100vw - 24px));
      justify-content:flex-start;
      border-color:transparent;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-downloads-view{
      width:min(420px, calc(100vw - 24px));
      justify-content:flex-start;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-launcher-view .mobile-launcher-panel{
      display:flex !important;
      flex:1 1 auto;
      min-height:0;
      margin-top:0;
      gap:10px;
      padding:2px 2px 0;
      animation:replayPanelEnter .2s ease;
    }
    html.phone-landscape-layout .mobile-controls-panel.is-mission-view .mobile-mission-panel,
    html.phone-landscape-layout .mobile-controls-panel.is-inspection-view .mobile-inspection-panel,
    html.phone-landscape-layout .mobile-controls-panel.is-servo-view .mobile-servo-panel,
    html.phone-landscape-layout .mobile-controls-panel.is-downloads-view .mobile-downloads-panel{
      display:flex !important;
      flex:1 1 auto;
      min-height:0;
      margin-top:0;
      gap:10px;
      padding:2px 2px 0;
      animation:replayPanelEnter .2s ease;
    }
    html.phone-landscape-layout .mobile-controls-panel .panel-action-grid{
      grid-template-columns:1fr;
      gap:8px;
    }
    html.phone-landscape-layout .mobile-controls-panel .panel-action-btn{
      min-height:42px;
      border-radius:10px;
      font-size:12px;
      padding:8px 10px;
    }
    html.phone-landscape-layout .mobile-controls-panel .mission-quick-btn{
      min-height:70px;
      border-radius:16px;
      padding:11px 13px;
      gap:4px;
    }
    html.phone-landscape-layout .mobile-controls-panel .mission-quick-title{
      font-size:15px;
    }
    html.phone-landscape-layout .mobile-controls-panel .mission-quick-meta{
      font-size:10px;
    }
    html.phone-landscape-layout .mobile-launcher-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    html.phone-landscape-layout .mobile-launcher-title{
      font-size:12px;
      font-weight:700;
      letter-spacing:.14em;
      text-transform:uppercase;
      color:#e2e8f0;
    }
    html.phone-landscape-layout .mobile-launcher-back{
      display:none !important;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-panel-note{
      color:rgba(226,232,240,0.82);
      font-size:10px;
      line-height:1.4;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-divider{
      background:rgba(255,255,255,0.12);
      margin:4px 0 2px;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-arrow-row{
      display:grid;
      grid-template-columns:1fr;
      gap:8px;
      padding:4px 0;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-arrow-btn{
      width:min(188px, 74%);
      margin:0 auto;
      height:44px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,0.2);
      background:#ffffff !important;
      color:#0f172a;
      font-size:17px;
      box-shadow:none;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-arrow-btn:active,
    html.phone-landscape-layout .mobile-launcher-panel .launcher-arrow-btn.pressed{
      background:#e5e7eb !important;
      color:#0f172a !important;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-angle{
      display:flex;
      padding:2px 0;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-angle-value{
      color:#f8fafc;
      font-size:16px;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-angle-label{
      color:rgba(148,163,184,0.9);
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-auto-btn{
      display:inline-flex;
      border-radius:10px;
      border:1px solid rgba(255,255,255,0.2);
      background:rgba(255,255,255,0.08);
      color:#f8fafc;
      padding:8px 10px;
      text-decoration:none;
      text-transform:none;
      letter-spacing:.02em;
    }
    html.phone-landscape-layout .mobile-launcher-panel .launcher-auto-desc{
      display:block;
      color:rgba(148,163,184,0.92);
      font-size:10px;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel{
      color:#e2e8f0;
      border:none !important;
      outline:none !important;
      background:transparent !important;
      box-shadow:none !important;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel::before,
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel::after{
      content:none !important;
      display:none !important;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-group,
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-inline-wrap,
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-grid{
      border:none !important;
      outline:none !important;
      background:transparent !important;
      box-shadow:none !important;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-group > .settings-label{
      color:#f8fafc !important;
      font-size:13px;
      letter-spacing:.04em;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hint-mini{
      color:rgba(226,232,240,0.78);
      font-size:10px;
      line-height:1.35;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-quick-btn{
      min-height:36px;
      padding:7px 8px;
      border-radius:8px;
      background:#ffffff;
      border-color:rgba(148,163,184,0.58);
      color:#1e293b;
      box-shadow:none;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-quick-btn.is-active{
      border-color:rgba(15,23,42,0.55);
      background:#ffffff;
      color:#0f172a;
      box-shadow:none;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-row{
      padding:16px 14px 18px;
      gap:13px;
      border-radius:18px;
      background:rgba(255,255,255,0.96);
      border-color:rgba(226,232,240,0.86);
      box-shadow:0 12px 26px rgba(2,6,23,0.24);
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-row .hardware-servo-head .settings-label{
      color:#0f172a !important;
      opacity:1 !important;
      visibility:visible !important;
      font-weight:900 !important;
      text-shadow:none !important;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-presets{
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:10px;
    }
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-preset-input,
    html.phone-landscape-layout .mobile-servo-dialog-mount .hardware-servo-dialog.is-embedded-panel .hardware-servo-preset-btn{
      padding-top:10px;
      padding-bottom:10px;
      background:#ffffff;
      border-color:rgba(148,163,184,0.7);
      color:#0f172a;
    }
    html.phone-landscape-layout .mobile-dialog-mount{
      display:flex;
      flex:1 1 auto;
      min-height:0;
      overflow:auto;
      padding-right:2px;
    }
    html.phone-landscape-layout .mobile-dialog-mount .mission-dialog.is-embedded-panel,
    html.phone-landscape-layout .mobile-dialog-mount .inspection-dialog.is-embedded-panel{
      width:100%;
      max-width:none;
      min-height:0;
      height:auto;
      max-height:none;
      border-radius:12px;
      margin:0;
    }
    .panel-dialog-mount .inspection-dialog.is-embedded-panel .inspection-header,
    html.phone-landscape-layout .mobile-dialog-mount .inspection-dialog.is-embedded-panel .inspection-header{
      display:none;
    }
    html.phone-landscape-layout .mobile-controls-slot .control-tile:first-of-type{
      grid-column:auto;
    }
    html.phone-landscape-layout .mobile-controls-slot .control-tile{
      min-height:0;
      border:none;
      background:transparent;
      color:#f8fafc;
      min-width:0;
      width:100%;
      gap:6px;
      align-items:flex-start;
      justify-content:flex-start;
      padding:0;
      border-radius:0;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-btn{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:6px;
      text-align:center;
      cursor:pointer;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon{
      width:48px;
      height:48px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.12);
      background:rgba(255,255,255,0.1);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-gray{
      border-color:rgba(148,163,184,0.26);
      background:rgba(148,163,184,0.16);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-gray svg{
      stroke:rgba(203,213,225,0.92);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-green{
      border-color:rgba(74,222,128,0.5);
      background:rgba(22,163,74,0.26);
      box-shadow:0 0 0 1px rgba(74,222,128,0.24), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-green svg{
      stroke:#166534;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-red{
      border-color:rgba(248,113,113,0.52);
      background:rgba(220,38,38,0.3);
      box-shadow:0 0 0 1px rgba(248,113,113,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-red svg{
      stroke:#991b1b;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-blue{
      border-color:rgba(96,165,250,0.55);
      background:rgba(30,64,175,0.3);
      box-shadow:0 0 0 1px rgba(96,165,250,0.24), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-blue svg{
      stroke:#dbeafe;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon,
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-gray,
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-green,
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-red,
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon.tone-blue,
    html.phone-landscape-layout .mobile-controls-panel [data-mobile-control="launcher"] .mobile-quick-icon{
      box-shadow:none !important;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-icon svg{
      width:24px;
      height:24px;
      stroke:rgba(241,245,249,0.95);
      fill:none;
      stroke-width:1.9;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-label{
      font-size:10px;
      font-weight:600;
      color:#e2e8f0;
      line-height:1.2;
      min-height:22px;
      letter-spacing:0;
      white-space:normal;
      word-break:keep-all;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-state{
      display:none !important;
      min-height:12px;
      font-size:9px;
      font-weight:700;
      line-height:1;
      color:#94a3b8;
      padding:0;
      border:none;
      background:transparent;
      text-transform:uppercase;
      letter-spacing:.02em;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-state.pill-green{
      color:#22c55e;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-state.pill-red{
      color:#f87171;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-state.pill-gray{
      color:#94a3b8;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-btn.is-active .mobile-quick-icon{
      color:#60a5fa !important;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-btn:disabled,
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-btn.disabled{
      opacity:.45;
    }
    html.phone-landscape-layout .mobile-controls-panel .mobile-quick-btn:active{
      opacity:.78;
    }
    .intelligent-mobile-return{
      z-index:4300;
      pointer-events:auto;
    }
    html.phone-landscape-layout.intelligent-mobile-active .intelligent-mobile-return{
      display:flex;
    }
    .intelligent-mobile-return-dialog{
      min-width:min(360px,calc(100vw - 48px));
      max-width:520px;
      padding:10px 16px 6px;
      text-align:center;
    }
    .intelligent-mobile-return-copy{
      min-width:0;
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:6px;
    }
    .intelligent-mobile-return-title{
      font-size:16px;
      font-weight:700;
      letter-spacing:.08em;
      color:#f8fafc;
      margin-top:12px;
    }
    .intelligent-mobile-return-text{
      margin-top:6px;
      font-size:13px;
      font-weight:600;
      line-height:1.5;
      color:#cbd5f5;
      word-break:keep-all;
    }
    .intelligent-mobile-return-btn{
      -webkit-tap-highlight-color:transparent;
    }
    .intelligent-mobile-return-btn:active{
      transform:translateY(1px);
      opacity:.86;
    }
    html.phone-landscape-layout.mobile-controls-active body.dashboard-view-active #gyro3dViewport::after{
      content:"";
      position:absolute;
      inset:0;
      background:rgba(2,6,23,0.22);
      pointer-events:none;
      z-index:2;
    }
    html.phone-landscape-layout body.dashboard-view-active{
      --hud-inset-left:calc(16px + env(safe-area-inset-left, 0px));
      --hud-inset-bottom:calc(8px + env(safe-area-inset-bottom, 0px));
      --hud-inset-width:clamp(164px, 23vw, 214px);
      --hud-inset-height:clamp(112px, 25vh, 140px);
      --hud-inset-radius:4px;
      --hud-inset-border:1px solid rgba(255,255,255,0.18);
      --hud-inset-shadow:0 18px 34px rgba(2,6,23,0.34);
      --hud-inset-aspect:2 / 1;
      overflow:hidden;
      background:#08101d;
    }
    html.phone-landscape-layout body.dashboard-view-active .page-wrap{
      height:100dvh;
      overflow:hidden;
      padding:0;
    }
    html.phone-landscape-layout body.dashboard-view-active .top-bar,
    html.phone-landscape-layout body.dashboard-view-active .status-runtime-cache,
    html.phone-landscape-layout body.dashboard-view-active .charts-card,
    html.phone-landscape-layout body.dashboard-view-active #controlsCard.controls-mobile-hidden{
      display:none !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #dashboardView,
    html.phone-landscape-layout body.dashboard-view-active #dashboardView .shell{
      width:100%;
      height:100%;
      min-height:100%;
      display:block;
    }
    html.phone-landscape-layout body.dashboard-view-active #dashboardView .row-top,
    html.phone-landscape-layout body.dashboard-view-active #dashboardView .row-bottom{
      display:contents;
    }
    html.phone-landscape-layout body.dashboard-view-active .main-card.status-card.status-map-only{
      position:fixed;
      inset:0;
      padding:0;
      border:0;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      overflow:visible;
      z-index:1;
    }
    html.phone-landscape-layout body.dashboard-view-active .main-card.status-card.status-map-only::before,
    html.phone-landscape-layout body.dashboard-view-active .main-card.status-card.status-map-only::after{
      display:none;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-layout{
      display:block;
      width:100%;
      height:100%;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-flight-preview{
      display:block;
      position:static;
    }
    html.phone-landscape-layout body.dashboard-view-active .preview-navball .status-gyro-canvas--3d,
    html.phone-landscape-layout body.dashboard-view-active .status-flight-preview .status-gyro-canvas--3d{
      display:block !important;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-flight-preview .status-gyro-canvas--navball{
      display:none !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #gyro3dViewport{
      position:fixed;
      inset:0;
      width:100vw;
      height:100dvh;
      border:0;
      border-radius:0;
      box-shadow:none;
      cursor:default;
      z-index:1;
      background:
        radial-gradient(130% 120% at 50% 0%, #36506f 0%, #263750 55%, #182536 100%),
        linear-gradient(180deg,#314763,#182536);
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #gyro3dViewport{
      inset:auto;
      left:var(--hud-inset-left);
      bottom:var(--hud-inset-bottom);
      width:var(--hud-inset-width);
      height:var(--hud-inset-height);
      border:var(--hud-inset-border);
      border-radius:var(--hud-inset-radius);
      box-shadow:var(--hud-inset-shadow);
      aspect-ratio:var(--hud-inset-aspect);
      overflow:hidden;
      z-index:1202;
      background:
        radial-gradient(130% 120% at 50% 0%, #36506f 0%, #263750 55%, #182536 100%),
        linear-gradient(180deg,#314763,#182536);
    }
    html.phone-landscape-layout body.dashboard-view-active .gyro3d-canvas{
      width:100%;
      height:100%;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-hud,
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-gyro-canvas--3d > .status-expanded-metrics{
      display:none !important;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-hud{
      display:block;
      position:absolute;
      top:calc(12px + env(safe-area-inset-top, 0px));
      left:calc(12px + env(safe-area-inset-left, 0px));
      right:calc(8px + env(safe-area-inset-right, 0px));
      z-index:4;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-label{
      display:none;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-topbar{
      padding:0;
      align-items:flex-start;
      gap:14px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-left{
      gap:0;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-mainline{
      align-items:center;
      gap:10px;
      flex-wrap:nowrap;
    }
    html.phone-landscape-layout body.dashboard-view-active .gyro3d-expanded-countdown{
      font-family:"SF Pro Text","Apple SD Gothic Neo","Noto Sans KR","Segoe UI",system-ui,sans-serif;
      font-size:clamp(13px,1.9vw,16px);
      font-weight:500;
      letter-spacing:.01em;
      line-height:1.05;
      font-variant-numeric:tabular-nums;
      font-feature-settings:"tnum" 1;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-mainline .countdown-inline-status{
      min-height:auto;
      padding-left:10px;
      gap:6px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-mainline .countdown-inline-status-text{
      font-size:clamp(12px,1.6vw,14px);
      font-weight:700;
      color:rgba(248,250,252,0.9);
      max-width:200px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-hud-pill{
      min-height:20px;
      padding:1px 8px;
      font-size:8px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d .gyro3d-expanded-statusbar{
      gap:6px;
      transform:translateY(-2px);
      display:flex;
      align-items:center;
      position:relative;
      z-index:8;
      pointer-events:auto;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-hud{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:0 2px;
      color:#f8fafc;
      pointer-events:auto;
      position:relative;
      z-index:8;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-clock{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      color:rgba(248,250,252,0.92);
      opacity:.94;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-clock svg{
      width:14px;
      height:14px;
      stroke:currentColor;
      fill:none;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-link{
      display:inline-flex;
      align-items:center;
      color:rgba(248,250,252,0.9);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-link svg{
      width:15px;
      height:15px;
      stroke:currentColor;
      fill:none;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
      opacity:.92;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-battery{
      display:inline-flex;
      align-items:center;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-battery-icon{
      position:relative;
      width:28px;
      height:14px;
      border-radius:4px;
      border:1.4px solid rgba(248,250,252,0.88);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:8px;
      font-weight:800;
      letter-spacing:.02em;
      color:#f8fafc;
      background:rgba(255,255,255,0.06);
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-battery-icon::after{
      content:"";
      position:absolute;
      right:-3px;
      top:3px;
      width:2px;
      height:6px;
      border-radius:2px;
      background:rgba(248,250,252,0.88);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-battery-level{
      position:relative;
      z-index:1;
      line-height:1;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-value{
      font-size:11px;
      font-weight:700;
      line-height:1;
      color:#f8fafc;
      white-space:nowrap;
      min-width:34px;
      text-align:left;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-sep{
      width:1px;
      height:14px;
      border-radius:1px;
      background:rgba(248,250,252,0.34);
      margin:0 1px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-time{
      font-size:11px;
      font-weight:650;
      line-height:1;
      color:#f8fafc;
      white-space:nowrap;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-time-wrap{
      display:inline-flex;
      align-items:baseline;
      gap:3px;
      white-space:nowrap;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-time-zone{
      color:rgba(248,250,252,0.62);
      font-size:8px;
      font-weight:600;
      line-height:1;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-settings{
      width:28px;
      height:28px;
      margin-left:4px;
      padding:0;
      border:none;
      border-radius:0;
      background:transparent;
      color:rgba(248,250,252,0.9);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      pointer-events:auto;
      cursor:pointer;
      position:relative;
      z-index:9;
      touch-action:manipulation;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-settings svg{
      width:16px;
      height:16px;
      stroke:currentColor;
      fill:none;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
      opacity:.96;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-compact-settings:active{
      opacity:.72;
    }
    html.phone-landscape-layout body.dashboard-view-active .gyro3d-expanded-statusbar .status-conn-block,
    html.phone-landscape-layout body.dashboard-view-active .gyro3d-expanded-statusbar .status-battery{
      display:none;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-canvas--3d > .status-expanded-metrics{
      display:flex;
      right:calc(16px + env(safe-area-inset-right, 0px));
      bottom:calc(16px + env(safe-area-inset-bottom, 0px));
      z-index:6;
      gap:22px;
      align-items:flex-end;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-expanded-metric{
      width:auto;
      min-height:0;
      padding:0;
      border-radius:0;
      background:transparent;
      border:none;
      box-shadow:none;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      align-items:flex-start;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-expanded-metric-label{
      order:2;
      color:rgba(226,232,240,0.78);
      font-size:10px;
      margin:6px 0 0;
      letter-spacing:0;
      text-transform:none;
      font-weight:500;
      text-shadow:0 3px 10px rgba(2,6,23,0.34);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-expanded-metric-value{
      order:1;
      color:#f8fafc;
      font-size:24px;
      line-height:1;
      text-align:left;
      font-weight:600;
      text-shadow:0 2px 8px rgba(2,6,23,0.42), 0 10px 24px rgba(2,6,23,0.34);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-expanded-metric-value .unit{
      font-size:.62em;
      color:#f8fafc;
      margin-left:4px;
      letter-spacing:0;
      text-transform:none;
      font-weight:500;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport{
      position:fixed;
      left:var(--hud-inset-left);
      bottom:var(--hud-inset-bottom);
      width:var(--hud-inset-width) !important;
      height:var(--hud-inset-height) !important;
      min-height:0 !important;
      max-height:var(--hud-inset-height) !important;
      margin:0;
      border-radius:var(--hud-inset-radius) !important;
      border:var(--hud-inset-border);
      background:rgba(7,12,22,0.24);
      box-shadow:var(--hud-inset-shadow);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
      overflow:hidden;
      z-index:6;
      aspect-ratio:var(--hud-inset-aspect);
      flex:none !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .status-map-canvas,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .status-map-tint,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .leaflet-container,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .leaflet-pane,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .leaflet-map-pane,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport .leaflet-control-container{
      border-radius:4px !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded{
      left:0 !important;
      top:0 !important;
      right:0 !important;
      bottom:0 !important;
      width:100vw !important;
      height:100dvh !important;
      max-width:none !important;
      max-height:none !important;
      border-radius:0 !important;
      border:0 !important;
      aspect-ratio:auto !important;
      box-shadow:none !important;
      background:linear-gradient(180deg,#d8e4f1,#c6d5e6) !important;
      z-index:1200 !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:146px;
      pointer-events:none;
      z-index:1202;
      background:linear-gradient(180deg, rgba(2,6,23,0.58) 0%, rgba(2,6,23,0.29) 52%, rgba(2,6,23,0) 100%);
    }
    html.phone-landscape-layout body.dashboard-view-active #gyro3dViewport::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:126px;
      pointer-events:none;
      z-index:3;
      background:linear-gradient(180deg, rgba(2,6,23,0.4) 0%, rgba(2,6,23,0.18) 54%, rgba(2,6,23,0) 100%);
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .status-map-canvas,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .status-map-tint,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-container,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-pane,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-map-pane,
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-control-container{
      border-radius:0 !important;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-control-attribution a{
      color:inherit;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport:not(.is-expanded) .status-map-card{
      display:none !important;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #gyro3dViewport{
      display:none !important;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport{
      position:fixed !important;
      left:0 !important;
      top:0 !important;
      right:0 !important;
      bottom:0 !important;
      width:100vw !important;
      height:100dvh !important;
      max-width:none !important;
      max-height:none !important;
      min-height:100dvh !important;
      margin:0 !important;
      border:0 !important;
      border-radius:0 !important;
      aspect-ratio:auto !important;
      box-shadow:none !important;
      background:linear-gradient(180deg,#d8e4f1,#c6d5e6) !important;
      z-index:1 !important;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .status-map-canvas,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .status-map-tint,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .leaflet-container,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .leaflet-pane,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .leaflet-map-pane,
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport .leaflet-control-container{
      border-radius:0 !important;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport:not(.is-expanded) .status-map-card{
      display:inline-flex !important;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapViewport:not(.is-expanded) #statusMapExpandBtn{
      width:auto;
      min-width:112px;
      height:26px;
      padding:0 9px;
      border-radius:7px !important;
      font-size:10px;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active .status-map-actions{
      display:none;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active .status-map-return-actions{
      display:flex;
      top:8px;
      right:8px;
      gap:6px;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapReturnGyroBtn{
      display:inline-flex !important;
      align-items:center;
      justify-content:center;
      height:26px;
      border-radius:7px !important;
      font-size:10px;
    }
    html.phone-landscape-layout.mobile-flight-map-preview body.dashboard-view-active #statusMapReturnGyroBtn{
      width:auto;
      min-width:112px;
      padding:0 9px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-hud{
      top:8px;
      left:8px;
      right:8px;
      bottom:8px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-card{
      top:34px;
      right:0;
      left:auto;
      bottom:auto;
      gap:6px;
      padding:7px 10px;
      border-radius:4px !important;
      background:rgba(7,12,22,0.74);
      border:1px solid rgba(255,255,255,0.14);
      box-shadow:0 8px 16px rgba(2,6,23,0.2);
      max-width:min(58vw, 240px);
      justify-content:flex-end;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-coords{
      font-size:9px;
      color:#f8fafc;
      letter-spacing:.02em;
      text-align:right;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-zoom{
      display:none;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-actions{
      top:auto;
      right:auto;
      left:0;
      bottom:0;
      gap:6px;
    }
    html.phone-landscape-layout body.dashboard-view-active #statusMapViewport:not(.is-expanded) #statusMapExpandBtn{
      width:26px;
      height:26px;
      font-size:12px;
      border-radius:7px !important;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-map-actions{
      top:0;
      right:0;
      left:0;
      bottom:0;
      gap:0;
      pointer-events:none;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #statusMapExpandBtn{
      display:none !important;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #statusMapRecenterBtn{
      position:absolute;
      top:50%;
      right:0;
      transform:translateY(calc(-100% - 6px));
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #statusMapCopyBtn{
      position:absolute;
      top:50%;
      right:0;
      transform:translateY(6px);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-map-btn{
      width:30px;
      height:30px;
      padding:0;
      justify-content:center;
      border-radius:8px !important;
      box-shadow:0 8px 18px rgba(2,6,23,0.24);
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-btn{
      width:26px;
      height:26px;
      font-size:12px;
      border-radius:7px;
    }
    html.phone-landscape-layout body.dashboard-view-active .status-gyro-btn--map-open{
      width:auto;
      min-width:78px;
      height:26px;
      padding:0 8px;
      gap:4px;
      font-size:10px;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #gyro3dViewport .status-gyro-actions{
      display:flex;
      z-index:16;
      top:auto;
      right:auto;
      left:8px;
      bottom:8px;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #gyro3dViewport .status-gyro-btn--map-close{
      display:inline-flex;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #gyro3dViewport .status-gyro-btn--expand{
      display:none !important;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active #gyro3dViewport.is-expanded .status-gyro-actions{
      display:none;
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-expanded-metric-label{
      color:rgba(15,23,42,0.68);
      text-shadow:0 2px 8px rgba(255,255,255,0.5);
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-expanded-metric-value{
      color:#0f172a;
      text-shadow:0 2px 8px rgba(255,255,255,0.62), 0 8px 20px rgba(255,255,255,0.34);
    }
    html.phone-landscape-layout.status-map-expanded body.dashboard-view-active .status-expanded-metric-value .unit{
      color:#334155;
    }
    html.phone-landscape-layout body.dashboard-view-active .motor-card{
      display:none !important;
    }
    html.phone-landscape-layout #launcherOverlay{
      align-items:stretch !important;
      justify-content:flex-end !important;
      padding:12px 84px 12px 12px !important;
    }
    html.phone-landscape-layout #hardwareServoOverlay{
      align-items:stretch !important;
      justify-content:flex-end !important;
      padding:12px 84px 12px 12px !important;
      background:rgba(2,6,23,0.58);
      backdrop-filter:blur(4px);
      -webkit-backdrop-filter:blur(4px);
    }
    html.phone-landscape-layout .launcher-dialog{
      width:min(340px, 42vw);
      max-width:none;
      max-height:none;
      height:auto;
      border-radius:24px;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-dialog{
      width:min(390px, 46vw);
      max-width:none;
      max-height:calc(100dvh - 24px);
      height:auto;
      border-radius:24px;
      padding:14px;
      background:linear-gradient(180deg,rgba(10,16,29,0.96),rgba(6,12,22,0.98));
      border:1px solid rgba(148,163,184,0.28);
      color:#e2e8f0;
      box-shadow:0 18px 36px rgba(2,6,23,0.58),inset 0 1px 0 rgba(148,163,184,0.14);
      backdrop-filter:blur(20px) saturate(1.12);
      -webkit-backdrop-filter:blur(20px) saturate(1.12);
      overflow:hidden;
    }
    html.phone-landscape-layout #hardwareServoOverlay .settings-header{
      min-height:0;
      margin-bottom:10px;
      padding:0 2px 10px;
      border-bottom:1px solid rgba(148,163,184,0.2);
    }
    html.phone-landscape-layout #hardwareServoOverlay .settings-title{
      color:#f8fafc;
      font-size:12px;
      letter-spacing:.14em;
    }
    html.phone-landscape-layout #hardwareServoOverlay .settings-close-btn{
      display:inline-flex !important;
      align-items:center;
      justify-content:center;
      background:rgba(15,23,42,0.82);
      border-color:rgba(148,163,184,0.36);
      color:#f8fafc;
      box-shadow:none;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-dialog-body{
      overflow:visible;
      padding-right:0;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-group > .settings-label{
      color:#f8fafc !important;
      font-size:13px;
      letter-spacing:.04em;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hint-mini{
      color:#94a3b8;
      font-size:10px;
      line-height:1.35;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-quick-row{
      gap:6px;
      margin:8px 0;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-quick-btn{
      min-height:36px;
      padding:7px 8px;
      border-radius:8px;
      background:#ffffff;
      border-color:rgba(148,163,184,0.58);
      color:#1e293b;
      box-shadow:none;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-quick-btn.is-active{
      border-color:rgba(15,23,42,0.55);
      background:#ffffff;
      color:#0f172a;
      box-shadow:none;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-row{
      padding:16px 14px 18px;
      gap:13px;
      border-radius:18px;
      background:rgba(255,255,255,0.96);
      border-color:rgba(226,232,240,0.86);
      box-shadow:0 12px 26px rgba(2,6,23,0.24);
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-presets{
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:10px;
    }
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-preset-input,
    html.phone-landscape-layout #hardwareServoOverlay .hardware-servo-preset-btn{
      padding-top:10px;
      padding-bottom:10px;
      background:#ffffff;
      border-color:rgba(148,163,184,0.7);
      color:#0f172a;
    }
    html.phone-landscape-layout #settingsOverlay{
      z-index:1305;
      align-items:stretch !important;
      justify-content:stretch !important;
      padding:0 !important;
      background:rgba(2,6,23,0.62);
      overflow:hidden;
    }
    html.phone-landscape-layout #settingsOverlay .settings-dialog{
      width:100vw;
      max-width:none;
      height:100dvh;
      max-height:none;
      margin:0;
      border-radius:0;
      padding:10px 12px max(10px, env(safe-area-inset-bottom, 8px));
      background:linear-gradient(180deg, rgba(8,13,21,0.96), rgba(7,12,20,0.98));
      border:1px solid rgba(148,163,184,0.24);
      box-shadow:0 24px 48px rgba(2,6,23,0.45);
      color:#e2e8f0;
    }
    html.phone-landscape-layout #settingsOverlay .settings-dialog::before{
      background:linear-gradient(145deg,rgba(148,163,184,0.18),rgba(30,41,59,0.2));
      opacity:1;
    }
    html.phone-landscape-layout #settingsOverlay .settings-header{
      margin-bottom:8px;
      padding:0 2px;
    }
    html.phone-landscape-layout #settingsOverlay .settings-title{
      color:rgba(226,232,240,0.78);
      letter-spacing:.16em;
      font-size:11px;
    }
    html.phone-landscape-layout #settingsOverlay .settings-close-btn{
      display:none !important;
    }
    html.phone-landscape-layout #settingsOverlay .settings-body{
      flex-direction:column;
      gap:10px;
      margin-top:0;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav{
      width:100%;
      border-right:none;
      border-bottom:1px solid rgba(148,163,184,0.24);
      padding:0 0 6px;
      display:flex;
      flex-direction:row;
      gap:4px;
      overflow-x:auto;
      overflow-y:hidden;
      scrollbar-width:none;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav::-webkit-scrollbar{
      display:none;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-title,
    html.phone-landscape-layout #settingsOverlay .settings-nav-badge{
      display:none;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-btn{
      flex:0 0 auto;
      min-width:74px;
      min-height:38px;
      padding:6px 8px 10px;
      border:none;
      border-radius:0;
      justify-content:center;
      text-align:center;
      color:rgba(226,232,240,0.72);
      background:transparent;
      line-height:1.1;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-btn:hover{
      background:transparent;
      color:#f8fafc;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-btn.active{
      background:transparent;
      color:#f8fafc;
      border-color:transparent;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-btn::after{
      content:"";
      position:absolute;
      left:8px;
      right:8px;
      bottom:0;
      height:2px;
      border-radius:999px;
      background:transparent;
    }
    html.phone-landscape-layout #settingsOverlay .settings-nav-btn.active::after{
      background:#f8fafc;
    }
    html.phone-landscape-layout #settingsOverlay .settings-panels{
      padding-left:0;
      padding-right:2px;
      overflow-y:auto;
    }
    html.phone-landscape-layout #settingsOverlay .settings-group{
      border-top:none;
      padding:0 2px 8px;
    }
    html.phone-landscape-layout #settingsOverlay .settings-group-title{
      color:rgba(148,163,184,0.72);
      letter-spacing:.12em;
      margin:0 0 4px;
      font-size:10px;
    }
    html.phone-landscape-layout #settingsOverlay .settings-row{
      padding:9px 0;
      border-bottom:1px solid rgba(148,163,184,0.18);
      align-items:center;
    }
    html.phone-landscape-layout #settingsOverlay .settings-row:last-child{
      border-bottom:none;
    }
    html.phone-landscape-layout #settingsOverlay .settings-label{
      color:#f8fafc;
      font-size:13px;
      font-weight:600;
    }
    html.phone-landscape-layout #settingsOverlay .settings-desc{
      color:#cbd5e1;
    }
    html.phone-landscape-layout #settingsOverlay .hint-mini{
      color:#94a3b8;
      font-size:10px;
      line-height:1.35;
    }
    html.phone-landscape-layout #settingsOverlay .settings-select,
    html.phone-landscape-layout #settingsOverlay .settings-number{
      background:rgba(15,23,42,0.84);
      border-color:rgba(148,163,184,0.4);
      color:#f8fafc;
    }
    html.phone-landscape-layout #settingsOverlay .settings-btn,
    html.phone-landscape-layout #settingsOverlay .settings-inline-btn{
      background:rgba(15,23,42,0.84);
      border-color:rgba(148,163,184,0.4);
      color:#f8fafc;
      box-shadow:none;
    }
    html.phone-landscape-layout #missionOverlay,
    html.phone-landscape-layout #inspectionOverlay,
    html.phone-landscape-layout #loadcellOverlay{
      align-items:center !important;
      justify-content:center !important;
      padding:10px calc(74px + env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px)) !important;
      background:rgba(2,6,23,0.58);
      backdrop-filter:blur(4px);
      -webkit-backdrop-filter:blur(4px);
    }
    html.phone-landscape-layout #missionOverlay .mission-dialog,
    html.phone-landscape-layout #inspectionOverlay .inspection-dialog,
    html.phone-landscape-layout #loadcellOverlay .loadcell-dialog{
      width:min(430px, 46vw);
      max-width:calc(100vw - 98px);
      min-height:0;
      height:auto;
      max-height:calc(100dvh - 20px);
      border-radius:16px;
      padding:14px 14px 12px;
      background:linear-gradient(180deg,rgba(10,16,29,0.96),rgba(6,12,22,0.98));
      border:1px solid rgba(148,163,184,0.28);
      color:#e2e8f0;
      box-shadow:0 18px 36px rgba(2,6,23,0.58),inset 0 1px 0 rgba(148,163,184,0.14);
      backdrop-filter:blur(20px) saturate(1.12);
      -webkit-backdrop-filter:blur(20px) saturate(1.12);
      overflow:hidden;
    }
    html.phone-landscape-layout #launcherOverlay .launcher-dialog,
    html.phone-landscape-layout .confirm-overlay:not(.warning-fullscreen) .confirm-dialog,
    html.phone-landscape-layout .disconnect-dialog,
    html.phone-landscape-layout .reboot-dialog{
      background:linear-gradient(180deg,rgba(10,16,29,0.96),rgba(6,12,22,0.98));
      border:1px solid rgba(148,163,184,0.28);
      color:#e2e8f0;
      box-shadow:0 18px 36px rgba(2,6,23,0.58),inset 0 1px 0 rgba(148,163,184,0.14);
      backdrop-filter:blur(20px) saturate(1.12);
      -webkit-backdrop-filter:blur(20px) saturate(1.12);
    }
    html.phone-landscape-layout #launcherOverlay .launcher-dialog::before,
    html.phone-landscape-layout #missionOverlay .mission-dialog::before,
    html.phone-landscape-layout #inspectionOverlay .inspection-dialog::before,
    html.phone-landscape-layout #loadcellOverlay .loadcell-dialog::before,
    html.phone-landscape-layout .confirm-overlay:not(.warning-fullscreen) .confirm-dialog::before{
      background:linear-gradient(145deg,rgba(148,163,184,0.24),rgba(30,41,59,0.35));
      opacity:.95;
    }
    html.phone-landscape-layout #launcherOverlay .launcher-dialog::after,
    html.phone-landscape-layout #inspectionOverlay .inspection-dialog::after,
    html.phone-landscape-layout #loadcellOverlay .loadcell-dialog::after,
    html.phone-landscape-layout .confirm-overlay:not(.warning-fullscreen) .confirm-dialog::after{
      background:radial-gradient(circle at 16% 0,rgba(148,163,184,0.24),transparent 58%);
      opacity:.55;
    }
    html.phone-landscape-layout .mission-title,
    html.phone-landscape-layout .inspection-step-title,
    html.phone-landscape-layout .launcher-title,
    html.phone-landscape-layout .confirm-title,
    html.phone-landscape-layout .disconnect-title{
      color:#f8fafc;
    }
    html.phone-landscape-layout .mission-sub,
    html.phone-landscape-layout .inspection-sub,
    html.phone-landscape-layout .inspection-step-desc,
    html.phone-landscape-layout .launcher-note,
    html.phone-landscape-layout .confirm-text,
    html.phone-landscape-layout .confirm-note,
    html.phone-landscape-layout .disconnect-text{
      color:#94a3b8;
    }
    html.phone-landscape-layout .mission-label,
    html.phone-landscape-layout .settings-label{
      color:#dbe4f1;
    }
    html.phone-landscape-layout .hardware-servo-row .settings-label{
      color:#0f172a !important;
      font-weight:800;
      opacity:1;
      text-shadow:none;
    }
    html.phone-landscape-layout .hardware-servo-row .hardware-servo-meta{
      color:#475569 !important;
      opacity:1;
      text-shadow:none;
    }
    html.phone-landscape-layout .mission-input,
    html.phone-landscape-layout .mission-unit,
    html.phone-landscape-layout .loadcell-input,
    html.phone-landscape-layout .loadcell-card,
    html.phone-landscape-layout .inspection-kicker{
      background:rgba(15,23,42,0.9);
      border-color:rgba(71,85,105,0.72);
      color:#e2e8f0;
    }
    html.phone-landscape-layout .mission-preset-viewport{
      background:rgba(15,23,42,0.82);
      border:1px solid rgba(71,85,105,0.7);
    }
    html.phone-landscape-layout .mission-preset-btn{
      background:linear-gradient(180deg,rgba(15,23,42,0.92),rgba(11,18,32,0.94));
      border-color:rgba(71,85,105,0.68);
      box-shadow:0 8px 16px rgba(2,6,23,0.48);
    }
    html.phone-landscape-layout .mission-preset-name{
      color:#e2e8f0;
    }
    html.phone-landscape-layout .mission-preset-sub,
    html.phone-landscape-layout .mission-preset-vendor,
    html.phone-landscape-layout .loadcell-note,
    html.phone-landscape-layout .loadcell-steps{
      color:#94a3b8;
    }

    @media(max-height:900px){
      :root{
        --page-pad-y:20px;
        --card-pad:14px;
        --chart-height:clamp(390px,53vh,540px);
        --log-height:clamp(170px,22vh,230px);
      }
      .page-title{font-size:32px}
      .controls-card{padding-top:12px;padding-bottom:12px}
      .primary-btn,.secondary-btn{height:38px}
    }
    @media(max-height:760px){
      :root{
        --page-pad-y:16px;
        --card-pad:12px;
        --shell-gap:10px;
        --chart-height:clamp(335px,49vh,460px);
        --log-height:clamp(140px,18vh,200px);
      }
      .page-title{font-size:28px}
      .chart-box{min-height:150px}
      .toolbar-btn{height:30px;font-size:10px}
      .control-tile{padding:7px 10px}
      .controls-card .control-tile{
        padding:5px 10px !important;
        min-height:48px;
        height:48px;
      }
      .control-tile-label{font-size:12px}
      .control-tile-sub{font-size:10px}
      .status-metric{min-height:60px}
    }
    @media(max-height:680px){
      .page-wrap{overflow:auto}
    }

    /* ✅ LOCKOUT 모달 */
    .lockout-dialog{
      max-width:440px;border:1px solid rgba(248,113,113,0.9);
      background:
        linear-gradient(180deg,#fee2e2 0,#fde7e7 18%,#ffffff 56%);
      box-shadow:0 16px 38px rgba(15,23,42,0.2);
    }
    .lockout-dialog::after{
      background:radial-gradient(circle at 20% 0,rgba(248,113,113,0.32),transparent 62%);
    }
    .lockout-dialog::before{display:none}
    .lockout-close{position:absolute;right:12px;top:12px;color:#94a3b8;}
    .lockout-close:hover{background:rgba(148,163,184,0.22);color:#0f172a;}
    .lockout-dialog .confirm-icon{
      width:auto;height:auto;border-radius:0;margin-top:8px;
      background:none !important;border:none !important;box-shadow:none !important;
    }
    .lockout-dialog .confirm-title{letter-spacing:.08em}
    .lockout-dialog .confirm-text{color:#475569}
    .lockout-dialog .confirm-icon{margin-bottom:22px}
    .lockout-dialog .confirm-text{margin-top:12px}

    /* Firmware information brand and partner logos */
    .fw-head{
      display:flex;align-items:center;gap:18px;flex-wrap:wrap;
      padding:6px 0 12px;
    }
    .fw-logo-block{
      display:flex;align-items:center;gap:16px;flex-wrap:wrap;
      min-width:0;
    }
    .fw-f-logo{
      width:46px;height:46px;object-fit:contain;
      filter:drop-shadow(0 2px 6px rgba(15,23,42,0.16));
      opacity:.95;
    }
    .fw-gnu-logo{
      width:132px;height:36px;object-fit:contain;
      filter:drop-shadow(0 2px 6px rgba(15,23,42,0.16));
      opacity:.95;
    }
    .fw-team-inline{
      display:flex;flex-direction:column;align-items:flex-start;gap:6px;
      margin-bottom:6px;
    }
    .fw-team-inline img{
      height:28px;width:auto;object-fit:contain;
      filter:drop-shadow(0 1px 4px rgba(15,23,42,0.12));
      opacity:.9;
    }
    .fw-team-inline img.is-small{
      height:16px;
    }
    html:not([data-theme="dark"]) .fw-team-inline img.is-invert{
      filter:invert(1) drop-shadow(0 1px 4px rgba(15,23,42,0.12));
    }
    html[data-theme="dark"] .fw-team-inline img.is-invert{
      filter:drop-shadow(0 1px 4px rgba(15,23,42,0.12));
    }
    .fw-team-inline-label{
      font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
      color:#94a3b8;
    }
    .fw-team-inline-logos{
      display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    }
    .fw-partner-inline{
      display:flex;flex-direction:column;align-items:flex-start;gap:7px;
      margin:12px 0 8px;
    }
    .fw-partner-logos{
      width:100%;
      display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;
      padding:12px 14px;
      border-radius:6px;
      background:#101820;
      box-sizing:border-box;
    }
    .fw-partner-logo{
      position:relative;display:block;height:34px;overflow:hidden;flex:0 0 auto;
    }
    .fw-partner-logo img{
      position:absolute;left:50%;top:50%;display:block;
      width:auto;max-width:none;height:auto;
      transform:translate(-50%,-50%);
    }
    .fw-partner-logo.is-jlcpcb{width:115px}
    .fw-partner-logo.is-jlcpcb img{width:115px}
    .fw-partner-logo.is-easyeda{width:135px}
    .fw-partner-logo.is-easyeda img{width:135px}
    .fw-partner-logo.is-innospace{width:230px}
    .fw-partner-logo.is-innospace img{width:230px}
    @media(max-width:560px){
      .fw-head{gap:12px}
      .fw-logo-block{gap:12px}
      .fw-f-logo{width:40px;height:40px}
      .fw-partner-logos{gap:10px;padding:11px 12px}
      .fw-partner-logo{height:30px}
      .fw-partner-logo.is-jlcpcb{width:102px}
      .fw-partner-logo.is-jlcpcb img{width:102px}
      .fw-partner-logo.is-easyeda{width:122px}
      .fw-partner-logo.is-easyeda img{width:122px}
      .fw-partner-logo.is-innospace{width:205px}
      .fw-partner-logo.is-innospace img{width:205px}
    }

    /* ✅ 접근성/JS 호환용 숨김 버튼 */
    .sr-only{
      position:absolute !important;
      width:1px;height:1px;
      padding:0;margin:-1px;
      overflow:hidden;clip:rect(0,0,0,0);
      white-space:nowrap;border:0;
    }

    /* ✅ 타일을 "버튼"처럼 */
    .control-tile.is-btn{
      cursor:pointer;
      user-select:none;
      padding:10px 12px;        /* 세로 길이 줄임 */
      min-height:62px;          /* 기존 70px → 줄임 */
      transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    }

    .control-tile.is-btn:hover{
      transform:translateY(-1px);
      border-color:rgba(37,99,235,0.55);
      box-shadow:0 6px 14px rgba(37,99,235,0.12);
    }

    .control-tile.is-btn:active{
      transform:translateY(0);
      box-shadow:0 4px 10px rgba(148,163,184,0.2);
    }

    .control-tile.is-btn:focus-visible{
      outline:none;
      box-shadow:0 0 0 3px rgba(59,130,246,0.35), 0 6px 14px rgba(37,99,235,0.12);
      border-color:rgba(59,130,246,0.9);
    }
    .force-tile{justify-content:space-between}
    .force-tile .control-tile-actions{margin-left:auto}

    /* ✅ 오른쪽 액션 영역 정렬 고정(줄바꿈 방지) */
    .control-tile-actions{
      display:flex;
      align-items:center;
      flex-wrap:nowrap;
      gap:10px;
    }

    /* ✅ 서브텍스트 조금 타이트하게 */
    .control-tile-sub{
      line-height:1.25;
    }

    :root{
      --ui-bg:#f7f7f5;
      --ui-surface:#ffffff;
      --ui-line:#ededed;
      --ui-text:#111827;
      --ui-muted:#6b7280;
      --ui-accent:#1e6cff;
      --ui-accent-soft:rgba(30,108,255,0.12);
    }
    html[data-theme="dark"]{
      --ui-bg:#0b0f14;
      --ui-surface:#0f172a;
      --ui-line:#1f2937;
      --ui-text:#e2e8f0;
      --ui-muted:#94a3b8;
      --ui-accent:#60a5fa;
      --ui-accent-soft:rgba(96,165,250,0.16);
      color-scheme:dark;
    }
    html,body{height:100%}
    body{
      font-family:"SUIT","Pretendard","Noto Sans KR","Apple SD Gothic Neo","Segoe UI",sans-serif;
      background:var(--ui-bg);
      color:var(--ui-text);
      overflow:hidden;
    }
    @media(max-width:600px){
      body{overflow-y:auto}
      .page-wrap{height:auto;overflow:visible}
    }
    html[data-theme="dark"] .side-nav-mobile{
      background:#0f141b;
      border-right:1px solid var(--ui-line);
      box-shadow:8px 0 30px rgba(2,6,23,0.6);
    }
    html[data-theme="dark"] .card-base{
      background:rgba(15,23,42,0.92);
      border:1px solid rgba(51,65,85,0.8);
      box-shadow:0 18px 30px rgba(2,6,23,0.55);
    }
    html[data-theme="dark"] .card-base.status-frame{
      border:1px solid rgba(71,85,105,0.92);
      box-shadow:0 20px 34px rgba(2,6,23,0.62);
    }
    html[data-theme="dark"] .chart-box{
      background:linear-gradient(135deg,#111827,#0b1220);
      border-color:rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .chart-title{color:#e2e8f0}
    html[data-theme="dark"] .chart-badge{
      background:rgba(15,23,42,0.8);
      color:#cbd5f5;
      border:1px solid rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .chart-axis-tag{
      color:rgba(191,219,254,0.74);
    }
    html[data-theme="dark"] .pill{
      background:#111827;
      color:#e2e8f0;
      border-color:rgba(51,65,85,0.8);
    }
    html[data-theme="dark"] .pill strong{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .pill-gray{
      background:rgba(51,65,85,0.6);
      color:#cbd5f5;
      border-color:rgba(71,85,105,0.8);
    }
    html[data-theme="dark"] .control-tile{
      background:rgba(15,23,42,0.72);
      border-color:rgba(51,65,85,0.7);
      color:var(--ui-text);
    }
    html[data-theme="dark"] .control-tile-label{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .control-tile-sub{
      color:#94a3b8;
    }
    html[data-theme="dark"] .toolbar-btn{
      background:linear-gradient(135deg,#111827,#0f172a);
      border-color:rgba(51,65,85,0.8);
      color:#e2e8f0;
      box-shadow:0 4px 10px rgba(2,6,23,0.35);
    }
    html[data-theme="dark"] .controls-card.status-frame{
      border-color:rgba(71,85,105,0.95);
      box-shadow:0 20px 34px rgba(2,6,23,0.62);
    }
    html[data-theme="dark"] #controlsHeader{
      background:rgba(15,23,42,0.78);
      border-color:rgba(71,85,105,0.72);
    }
    html[data-theme="dark"] #controlsCardTitle{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .controls-subtitle{
      color:#94a3b8;
    }
    html[data-theme="dark"] .controls-toolbar .controls-toolbar-action{
      background:transparent;
      border-color:transparent;
      box-shadow:none;
      color:#cbd5e1;
    }
    html[data-theme="dark"] .controls-toolbar .controls-toolbar-action:hover{
      background:rgba(71,85,105,0.28);
      box-shadow:none;
    }
    html[data-theme="dark"] .controls-main-row{
      background:transparent;
      border:none;
    }
    html[data-theme="dark"] .primary-btn.sequence-btn{
      background:rgba(15,23,42,0.9);
      border-color:rgba(71,85,105,0.72);
      box-shadow:none;
      color:#e2e8f0;
    }
    html[data-theme="dark"] .controls-card .control-tile{
      background:rgba(15,23,42,0.8);
      border-color:rgba(71,85,105,0.66);
      box-shadow:none;
    }
    html[data-theme="dark"] .controls-card .control-tile-label{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .controls-card .control-tile-sub{
      color:#94a3b8;
    }
    html[data-theme="dark"] .controls-card .control-tile-select{
      background:rgba(15,23,42,0.9);
      border-color:rgba(71,85,105,0.78);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .side-nav-btn.is-active,
    html[data-theme="dark"] .side-nav-action.is-active{
      background:rgba(37,99,235,0.22);
      border-color:rgba(96,165,250,0.28);
      color:#bfdbfe;
    }
    html[data-theme="dark"] .settings-dialog{
      background:rgba(15,23,42,0.96);
      border-color:rgba(51,65,85,0.8);
      box-shadow:0 12px 30px rgba(2,6,23,0.55);
      color:var(--ui-text);
    }
    html[data-theme="dark"] .settings-dialog::before{
      background:linear-gradient(145deg,rgba(30,41,59,0.9),rgba(51,65,85,0.9));
    }
    html[data-theme="dark"] .settings-nav{
      border-right:1px solid rgba(51,65,85,0.8);
    }
    html[data-theme="dark"] .settings-nav-btn:hover{background:rgba(30,41,59,0.8)}
    html[data-theme="dark"] .settings-label{color:#e2e8f0}
    html[data-theme="dark"] .settings-desc{color:#94a3b8}
    html[data-theme="dark"] .settings-select,
    html[data-theme="dark"] .settings-number{
      background:#0f172a;
      border-color:rgba(51,65,85,0.8);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .settings-inline-btn{
      background:#0f172a;
      border-color:rgba(51,65,85,0.8);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .settings-close-btn:hover{
      background:rgba(30,41,59,0.8);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .serial-pill{
      background:rgba(15,23,42,0.9);
      border-color:rgba(51,65,85,0.8);
      color:#cbd5f5;
    }
    html[data-theme="dark"] #countdown{
      color:#e2e8f0;
      text-shadow:none;
    }
    html[data-theme="dark"] .countdown-inline-status{
      border-left-color:rgba(100,116,139,0.45);
    }
    html[data-theme="dark"] .countdown-inline-status-text{
      color:#cbd5e1;
    }
    html[data-theme="dark"] .countdown-inline-status-pill{
      border-color:rgba(100,116,139,0.5);
      background:rgba(30,41,59,0.78);
      color:#cbd5e1;
    }
    html[data-theme="dark"] .countdown-inline-status-pill.status-ready{
      background:#16a34a;
      color:#f0fdf4;
      border-color:#4ade80;
    }
    html[data-theme="dark"] .card-title,
    html[data-theme="dark"] .section-label,
    html[data-theme="dark"] .controls-section-label,
    html[data-theme="dark"] .countdown-caption,
    html[data-theme="dark"] .countdown-sub,
    html[data-theme="dark"] .status-metric-label{
      color:var(--ui-muted);
    }
    html[data-theme="dark"] #statusText{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .status-signal{
      background:linear-gradient(135deg,rgba(30,64,175,0.35),rgba(30,58,138,0.24));
      border-color:rgba(59,130,246,0.45);
      box-shadow:inset 0 1px 0 rgba(148,163,184,0.22);
    }
    html[data-theme="dark"] .status-signal span{
      background:linear-gradient(180deg,#38bdf8,#60a5fa);
    }
    html[data-theme="dark"] .status-metric-value{
      color:var(--ui-text);
    }
    html[data-theme="dark"] .status-metric-value .unit{
      color:var(--ui-muted);
    }
    html[data-theme="dark"] .status-metric{
      background:#0f172a;
      border-color:rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .status-card .status-main-line{
      background:transparent;
      border:none;
      box-shadow:none;
    }
    html[data-theme="dark"] .status-card .status-map-panel{
      border-color:rgba(71,85,105,0.65);
      background:#111827;
      box-shadow:inset 0 1px 0 rgba(148,163,184,0.2);
    }
    html[data-theme="dark"] .status-map-panel.is-expanded{
      border:0;
      box-shadow:none;
      background:linear-gradient(180deg,#101a2b,#0c1523);
    }
    html[data-theme="dark"] .status-map-panel.is-expanded::before{
      background:linear-gradient(180deg, rgba(2,6,23,0.64) 0%, rgba(2,6,23,0.34) 48%, rgba(2,6,23,0) 100%);
    }
    html[data-theme="dark"] .status-map-canvas.status-map-canvas--offline{
      background:linear-gradient(180deg,#0f172a,#1e293b);
    }
    html[data-theme="dark"] .status-map-offline{
      background:
        radial-gradient(circle at 16% 18%,rgba(148,163,184,0.25),transparent 48%),
        linear-gradient(180deg,#0f172a 0%,#1e293b 45%,#1f2937 100%);
    }
    html[data-theme="dark"] .status-map-offline::before{
      opacity:.14;
    }
    html[data-theme="dark"] .status-map-offline-kr{
      background:linear-gradient(180deg,#14532d,#166534);
      border-color:rgba(74,222,128,0.45);
      box-shadow:inset 0 1px 0 rgba(134,239,172,0.35),0 8px 18px rgba(2,6,23,0.5);
    }
    html[data-theme="dark"] .status-map-offline-jeju{
      background:#166534;
      border-color:rgba(74,222,128,0.45);
    }
    html[data-theme="dark"] .status-map-offline-label{
      background:rgba(15,23,42,0.82);
      border-color:rgba(96,165,250,0.45);
      color:#bfdbfe;
    }
    html[data-theme="dark"] .status-map-card{
      background:rgba(15,23,42,0.55);
      border-color:rgba(148,163,184,0.28);
    }
    html[data-theme="dark"] .status-map-coords{color:#e2e8f0}
    html[data-theme="dark"] .status-map-zoom{color:#cbd5e1}
    html[data-theme="dark"] .status-map-btn{
      background:rgba(15,23,42,0.86);
      border-color:rgba(100,116,139,0.55);
      color:#e2e8f0;
      box-shadow:0 10px 22px rgba(2,6,23,.42);
    }
    html[data-theme="dark"] .status-map-btn:hover{background:rgba(15,23,42,0.95)}
    html[data-theme="dark"] .status-map-rocket-pill{
      border-color:rgba(148,163,184,0.54);
      background:linear-gradient(180deg,rgba(30,41,59,0.92),rgba(15,23,42,0.78));
      box-shadow:0 8px 18px rgba(2,6,23,0.48), inset 0 1px 0 rgba(148,163,184,0.26);
    }
    html[data-theme="dark"] .status-map-rocket-pill.is-expanded{
      background:linear-gradient(180deg,rgba(15,23,42,0.96),rgba(30,41,59,0.94));
      border-color:rgba(148,163,184,0.62);
      box-shadow:0 12px 24px rgba(2,6,23,0.58), inset 0 1px 0 rgba(148,163,184,0.24);
    }
    html[data-theme="dark"] .status-map-rocket-circle{
      background:linear-gradient(180deg,rgba(148,163,184,0.28),rgba(51,65,85,0.22));
      border-color:rgba(148,163,184,0.48);
      box-shadow:0 4px 10px rgba(2,6,23,0.5), inset 0 1px 0 rgba(148,163,184,0.22);
    }
    html[data-theme="dark"] .status-map-rocket-pill.is-expanded .status-map-rocket-circle{
      background:transparent;
      border-color:transparent;
      box-shadow:none;
    }
    html[data-theme="dark"] .status-map-rocket-kicker{color:#60a5fa}
    html[data-theme="dark"] .status-map-rocket-title{color:#f8fafc}
    html[data-theme="dark"] .status-map-rocket-mission{color:#94a3b8}
    html[data-theme="dark"] .status-map-info-icon{
      color:#bfdbfe;
      background:none;
      border:none;
      box-shadow:none;
    }
    html[data-theme="dark"] .status-map-panel .leaflet-control-attribution{
      background:rgba(15,23,42,0.72);
      color:#cbd5e1;
    }
    html[data-theme="dark"] .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-content-wrapper{
      border-color:rgba(100,116,139,0.65);
      background:linear-gradient(180deg,rgba(15,23,42,0.96),rgba(30,41,59,0.94));
      box-shadow:0 16px 30px rgba(2,6,23,0.65), inset 0 1px 0 rgba(148,163,184,0.2);
    }
    html[data-theme="dark"] .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-tip{
      background:rgba(30,41,59,0.95);
    }
    html[data-theme="dark"] .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-close-button{
      color:#93c5fd;
      border-color:rgba(96,165,250,0.42);
      background:rgba(15,23,42,0.9);
      box-shadow:0 3px 10px rgba(2,6,23,0.45);
    }
    html[data-theme="dark"] .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-close-button:hover{
      color:#bfdbfe;
      background:rgba(15,23,42,0.98);
    }
    html[data-theme="dark"] .status-map-popup-kicker{color:#60a5fa}
    html[data-theme="dark"] .status-map-popup-title{color:#f8fafc}
    html[data-theme="dark"] .status-map-popup-sub{color:#94a3b8}
    html[data-theme="dark"] .status-card .status-meta-row{
      background:transparent;
      border:none;
      box-shadow:none;
    }
    html[data-theme="dark"] .status-card .status-meta-row .pill{
      background:transparent;
      border:none;
      color:#e2e8f0;
    }
    html[data-theme="dark"] .status-card .status-meta-row .status-meta-kicker{
      color:#94a3b8;
    }
    html[data-theme="dark"] .status-card .status-meta-row .status-meta-pill > span:last-child{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .status-metric.is-alert{
      border-color:rgba(248,113,113,0.8);
      box-shadow:0 0 0 1px rgba(248,113,113,0.18);
    }
    html[data-theme="dark"] .status-metric.is-alert.is-alert-blink{
      animation:loadcellAlertBlinkDark 1.1s ease-in-out infinite;
    }
    html[data-theme="dark"] .status-metric.is-alert .status-metric-value{
      color:#fecaca;
    }
    @keyframes loadcellAlertBlinkDark{
      0%,100%{border-color:rgba(248,113,113,0.45);box-shadow:0 0 0 1px rgba(248,113,113,0.12)}
      50%{border-color:rgba(248,113,113,0.95);box-shadow:0 0 0 2px rgba(248,113,113,0.3)}
    }
    html[data-theme="dark"] .item{
      background:linear-gradient(135deg,#0f172a,#0b1220);
      border-color:rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .item.status-ok{
      background:linear-gradient(135deg,rgba(22,163,74,0.18),rgba(34,197,94,0.12));
      border-color:rgba(34,197,94,0.45);
    }
    html[data-theme="dark"] .item.status-warn{
      background:linear-gradient(135deg,rgba(245,158,11,0.2),rgba(251,191,36,0.12));
      border-color:rgba(245,158,11,0.5);
    }
    html[data-theme="dark"] .item.status-bad{
      background:linear-gradient(135deg,rgba(239,68,68,0.22),rgba(248,113,113,0.14));
      border-color:rgba(239,68,68,0.6);
    }
    html[data-theme="dark"] .label{
      color:#cbd5f5;
    }
    html[data-theme="dark"] .value{
      color:var(--ui-text);
    }
    html[data-theme="dark"] .value .unit{
      color:var(--ui-muted);
    }
    html[data-theme="dark"] .motor-card{
      background:linear-gradient(135deg,#0f172a 0%,#101826 60%,#0b1220 100%);
      border-color:rgba(51,65,85,0.55);
      box-shadow:0 16px 28px rgba(2,6,23,0.5);
    }
    html[data-theme="dark"] .motor-card .card-title{
      color:#cbd5f5;
    }
    html[data-theme="dark"] .motor-card .card-badge{
      background:rgba(96,165,250,0.18);
      color:#bfdbfe;
      border-color:rgba(96,165,250,0.35);
    }
    html[data-theme="dark"] .motor-card .item{
      background:#0f172a;
      border-color:rgba(51,65,85,0.7);
      box-shadow:inset 0 0 0 1px rgba(15,23,42,0.6);
    }
    html[data-theme="dark"] .motor-card .item.status-ok{
      background:linear-gradient(135deg,rgba(22,163,74,0.2),rgba(34,197,94,0.12));
      border-color:rgba(34,197,94,0.45);
    }
    html[data-theme="dark"] .motor-card .item.status-warn{
      background:linear-gradient(135deg,rgba(245,158,11,0.22),rgba(251,191,36,0.12));
      border-color:rgba(245,158,11,0.5);
    }
    html[data-theme="dark"] .motor-card .item.status-bad{
      background:linear-gradient(135deg,rgba(239,68,68,0.24),rgba(248,113,113,0.14));
      border-color:rgba(239,68,68,0.6);
    }
    html[data-theme="dark"] .motor-card .label{
      color:#cbd5f5;
    }
    html[data-theme="dark"] .motor-card .value{
      color:#e2e8f0;
    }
    html[data-theme="dark"] .motor-card .value .unit{
      color:#94a3b8;
    }
    html[data-theme="dark"] .chart-btn{
      background:#0f172a;
      color:#e2e8f0;
      border-color:rgba(51,65,85,0.8);
    }
    html[data-theme="dark"] .chart-btn-live{
      background:#1d4ed8;
      border-color:#1e3a8a;
      color:#e2e8f0;
    }
    html[data-theme="dark"] .primary-btn{
      border-color:rgba(249,115,22,0.5);
      box-shadow:0 6px 16px rgba(2,6,23,0.45),0 3px 8px rgba(249,115,22,0.18);
    }
    html[data-theme="dark"] .secondary-btn{
      border-color:rgba(248,113,113,0.55);
      background:linear-gradient(135deg,rgba(185,28,28,0.88),rgba(239,68,68,0.88));
      color:#fff7ed;
    }
    html[data-theme="dark"] .card-badge{
      background:rgba(96,165,250,0.16);
      color:#bfdbfe;
      border-color:rgba(96,165,250,0.3);
    }
    html[data-theme="dark"] .slider{
      background:#111827;
      border-color:rgba(51,65,85,0.8);
    }
    html[data-theme="dark"] .slider:before{
      background:#e2e8f0;
      box-shadow:0 4px 10px rgba(2,6,23,0.6);
    }
    html[data-theme="dark"] .settings-overlay,
    html[data-theme="dark"] .confirm-overlay{
      background:rgba(2,6,23,0.72);
    }
    html[data-theme="dark"] .force-slide{
      border-color:rgba(71,85,105,0.84);
      background:linear-gradient(180deg,#0b1220,#060b16);
      box-shadow:inset 0 0 0 1px rgba(71,85,105,0.28),0 12px 24px rgba(2,6,23,0.68);
    }
    html[data-theme="dark"] .force-slide::before{
      background:
        linear-gradient(90deg,rgba(248,113,113,0.42) var(--slide-pct,0%),transparent 0),
        radial-gradient(circle at 12% 50%,rgba(239,68,68,0.24),transparent 50%);
    }
    html[data-theme="dark"] .force-slide-arrows{
      color:#94a3b8;
      opacity:.84;
    }
    html[data-theme="dark"] .force-slide-thumb{
      border-color:rgba(148,163,184,0.55);
      background:linear-gradient(135deg,#0f172a,#111827);
      color:#e2e8f0;
      box-shadow:0 10px 20px rgba(2,6,23,0.58),0 1px 0 rgba(148,163,184,0.18) inset;
    }
    html[data-theme="dark"] .force-cancel-link{
      background:rgba(15,23,42,0.86);
      border-color:rgba(71,85,105,0.72);
      color:#94a3b8;
      box-shadow:none;
    }
    html[data-theme="dark"] .force-cancel-link:hover{
      background:rgba(30,41,59,0.94);
      border-color:rgba(96,165,250,0.58);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .launcher-dialog{
      background:linear-gradient(180deg,#0f172a,#0b1220);
      border-color:rgba(51,65,85,0.7);
      color:#e2e8f0;
      box-shadow:0 12px 30px rgba(2,6,23,0.6),0 2px 0 rgba(15,23,42,0.7) inset;
    }
    html[data-theme="dark"] .launcher-dialog::before{
      background:linear-gradient(135deg,rgba(30,41,59,0.9),rgba(51,65,85,0.6));
    }
    html[data-theme="dark"] .launcher-dialog::after{
      background:radial-gradient(circle at 15% 0,rgba(30,41,59,0.6),transparent 60%);
    }
    html[data-theme="dark"] .launcher-title{color:#e2e8f0}
    html[data-theme="dark"] .launcher-note,
    html[data-theme="dark"] .launcher-hint{color:#94a3b8}
    html[data-theme="dark"] .launcher-divider{background:rgba(51,65,85,0.7)}
    html[data-theme="dark"] .launcher-arrow-btn{
      background:linear-gradient(135deg,#111827,#0f172a);
      border-color:rgba(51,65,85,0.8);
      color:#e2e8f0;
      box-shadow:0 4px 10px rgba(2,6,23,0.35);
    }
    html[data-theme="dark"] .launcher-dialog .launcher-arrow-btn{
      box-shadow:none;
    }
    html[data-theme="dark"] .inspection-dialog{
      background:linear-gradient(180deg,#0f172a,#0b1220);
      border-color:rgba(51,65,85,0.7);
      color:#e2e8f0;
      box-shadow:0 12px 30px rgba(2,6,23,0.55);
    }
    html[data-theme="dark"] .inspection-dialog::before{
      background:linear-gradient(145deg,rgba(30,41,59,0.9),rgba(51,65,85,0.6));
    }
    html[data-theme="dark"] .inspection-dialog::after{
      background:radial-gradient(circle at 18% 0,rgba(148,163,184,0.35),transparent 60%);
    }
    html[data-theme="dark"] .inspection-dialog .settings-title{color:#e2e8f0}
    html[data-theme="dark"] .inspection-sub{color:#94a3b8}
    html[data-theme="dark"] .inspection-kicker{
      color:#cbd5f5;background:rgba(148,163,184,0.12)
    }
    html[data-theme="dark"] .inspection-step-title{color:#e2e8f0}
    html[data-theme="dark"] .inspection-step-desc{color:#94a3b8}
    html[data-theme="dark"] .inspection-status-card{
      background:transparent;
      border:none;
      box-shadow:none;
    }
    html[data-theme="dark"] .inspection-status-pill{
      color:#cbd5f5;
      border-color:rgba(51,65,85,0.7);
      background:rgba(51,65,85,0.25);
    }
    html[data-theme="dark"] .inspection-status-pill.is-running{
      color:#fbbf24;border-color:rgba(245,158,11,0.45);background:rgba(245,158,11,0.2)
    }
    html[data-theme="dark"] .inspection-status-pill.is-ok{
      color:#86efac;border-color:rgba(34,197,94,0.45);background:rgba(34,197,94,0.2)
    }
    html[data-theme="dark"] .inspection-status-pill.is-bad{
      color:#fca5a5;border-color:rgba(248,113,113,0.45);background:rgba(248,113,113,0.2)
    }
    html[data-theme="dark"] .inspection-result{color:#cbd5f5}
    html[data-theme="dark"] .mission-dialog{
      background:rgba(15,23,42,0.98);
      border-color:rgba(51,65,85,0.7);
      color:#e2e8f0;
      box-shadow:0 20px 44px rgba(2,6,23,0.6),0 2px 0 rgba(15,23,42,0.7) inset;
    }
    html[data-theme="dark"] .mission-dialog::before{
      background:rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .mission-title{color:#e2e8f0}
    html[data-theme="dark"] .mission-sub{color:#94a3b8}
    html[data-theme="dark"] .mission-close-btn{
      background:rgba(30,41,59,0.8);
      color:#cbd5f5;
      box-shadow:0 4px 10px rgba(2,6,23,0.4);
    }
    html[data-theme="dark"] .mission-close-btn:hover{background:#1f2937;color:#e2e8f0}
    html[data-theme="dark"] .mission-divider{background:rgba(51,65,85,0.6)}
    html[data-theme="dark"] .mission-label{color:#94a3b8}
    html[data-theme="dark"] .mission-input{
      background:#0f172a;
      color:#e2e8f0;
      border-color:rgba(51,65,85,0.8);
      box-shadow:0 1px 0 rgba(15,23,42,0.6) inset;
    }
    html[data-theme="dark"] .mission-unit{
      background:rgba(15,23,42,0.8);
      border-color:rgba(51,65,85,0.6);
      color:#cbd5f5;
    }
    html[data-theme="dark"] .mission-preset-title{color:#cbd5f5}
    html[data-theme="dark"] .mission-preset-viewport{
      background:#0f172a;
      border:1px solid rgba(51,65,85,0.7);
    }
    html[data-theme="dark"] .mission-preset-btn{
      background:linear-gradient(180deg,#0f172a,#0b1220);
      border-color:rgba(51,65,85,0.7);
      box-shadow:0 6px 16px rgba(2,6,23,0.5);
    }
    html[data-theme="dark"] .mission-preset-btn.is-center{
      border-color:rgba(96,165,250,0.62);
      box-shadow:0 10px 18px rgba(37,99,235,0.24);
    }
    html[data-theme="dark"] .mission-preset-photo{
      background:linear-gradient(180deg,#111827,#0f172a);
      border-color:rgba(51,65,85,0.7);
      color:#94a3b8;
    }
    html[data-theme="dark"] .mission-preset-name{color:#e2e8f0}
    html[data-theme="dark"] .mission-preset-sub,
    html[data-theme="dark"] .mission-preset-vendor{color:#94a3b8}
    html[data-theme="dark"] .mission-preset-info{
      background:rgba(15,23,42,0.96);
      border-color:rgba(51,65,85,0.7);
      box-shadow:0 10px 18px rgba(2,6,23,0.55);
    }
    html[data-theme="dark"] .mission-info-label{color:#94a3b8}
    html[data-theme="dark"] .mission-info-value,
    html[data-theme="dark"] .mission-info-message{color:#e2e8f0}
    html[data-theme="dark"] .panel-action-note{color:#94a3b8}
    html[data-theme="dark"] .panel-action-btn{
      background:linear-gradient(180deg, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
      border-color:rgba(51,65,85,0.72);
      color:#e2e8f0;
      box-shadow:0 14px 26px rgba(2,6,23,0.4), inset 0 1px 0 rgba(148,163,184,0.08);
    }
    html[data-theme="dark"] .panel-action-btn:hover{
      border-color:rgba(96,165,250,0.52);
      background:linear-gradient(180deg, rgba(30,41,59,0.98), rgba(15,23,42,0.94));
      box-shadow:0 16px 30px rgba(2,6,23,0.48), 0 0 0 1px rgba(96,165,250,0.1);
    }
    html[data-theme="dark"] .mission-quick-btn{
      background:
        radial-gradient(circle at 88% 14%, rgba(var(--mission-accent-rgb),0.2), transparent 36%),
        linear-gradient(180deg, rgba(15,23,42,0.98), rgba(11,18,32,0.98));
      border-color:rgba(var(--mission-accent-rgb),0.24);
      box-shadow:0 16px 30px rgba(2,6,23,0.46), inset 0 1px 0 rgba(148,163,184,0.08);
    }
    html[data-theme="dark"] .mission-quick-btn:hover{
      border-color:rgba(var(--mission-accent-rgb),0.42);
      background:
        radial-gradient(circle at 88% 14%, rgba(var(--mission-accent-rgb),0.26), transparent 38%),
        linear-gradient(180deg, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
      box-shadow:0 18px 34px rgba(2,6,23,0.5), 0 0 0 1px rgba(var(--mission-accent-rgb),0.12);
    }
    html[data-theme="dark"] .mission-quick-chip{
      background:rgba(var(--mission-accent-rgb),0.16);
      border-color:rgba(var(--mission-accent-rgb),0.22);
      color:rgb(var(--mission-accent-rgb));
    }
    html[data-theme="dark"] .mission-quick-title{color:#f8fafc}
    html[data-theme="dark"] .mission-quick-meta{color:#94a3b8}
    html[data-theme="dark"] .mission-test-cancel{color:#94a3b8}
    html[data-theme="dark"] .mission-back-btn{color:#93c5fd}
    html[data-theme="dark"] .mission-block-editor{
      background:transparent;
      border:none;
      box-shadow:none;
    }
    html[data-theme="dark"] .mission-block-sub{color:#cbd5e1}
    html[data-theme="dark"] .mission-block-palette{
      background:linear-gradient(180deg,#1e3a8a,#0f172a 42%,#111827);
      border-color:rgba(71,85,105,0.7);
      box-shadow:inset 0 1px 0 rgba(148,163,184,0.2);
    }
    html[data-theme="dark"] .mission-palette-title{color:#bfdbfe}
    html[data-theme="dark"] .mission-palette-group{
      background:rgba(15,23,42,0.8);
      border-color:rgba(71,85,105,0.58);
    }
    html[data-theme="dark"] .mission-palette-group-title{color:#cbd5e1}
    html[data-theme="dark"] .mission-tool-sub{color:rgba(226,232,240,0.88)}
    html[data-theme="dark"] .mission-block-canvas{
      border-color:rgba(71,85,105,0.62);
      background:
        radial-gradient(circle at 1px 1px, rgba(100,116,139,0.28) 1px, transparent 1.1px) 0 0/12px 12px,
        linear-gradient(180deg,#0f172a,#111827);
    }
    html[data-theme="dark"] .mission-block-canvas-hint{
      background:rgba(15,23,42,0.8);
      border-color:rgba(71,85,105,0.62);
      color:#94a3b8;
    }
    html[data-theme="dark"] .mission-block-canvas-label{color:#cbd5e1}
    html[data-theme="dark"] .mission-block-canvas-count{
      color:#bfdbfe;
      border-color:rgba(59,130,246,0.42);
      background:rgba(30,58,138,0.36);
    }
    html[data-theme="dark"] .scratch-row-kind{
      color:#cbd5e1;
      background:rgba(30,41,59,0.9);
      border-color:rgba(71,85,105,0.65);
    }
    html[data-theme="dark"] .mission-block-empty{
      background:rgba(15,23,42,0.78);
      border-color:rgba(71,85,105,0.62);
      color:#94a3b8;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry{
      --entry-bg:#111c2b;
      --entry-grid:#2b3e58;
      --entry-border:#425b7c;
      --entry-ink:#e2e8f0;
      --entry-muted:#a8bbd4;
      --entry-palette:#12243b;
      --entry-palette-group:#102033;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-palette{
      background:linear-gradient(180deg,#153357,#10253c);
      border-color:#486088;
      box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-palette-group{
      background:transparent;
      border:none;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-palette-group-title{
      color:#b9cbe3;
      border-left-color:#7ba0d4;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-canvas{
      border-color:#4a6186;
      background:
        radial-gradient(circle at 1px 1px, rgba(74,103,143,0.65) 1px, transparent 1.1px) 0 0/18px 18px,
        linear-gradient(180deg,#0f1c2b,#13253a);
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-list{
      background:rgba(9,18,31,0.34);
      border-color:rgba(81,108,146,0.5);
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-canvas-label{
      color:#d7e4f7;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-canvas-hint{
      color:#b6c8e0;
      background:rgba(15,30,50,0.78);
      border-color:rgba(87,113,152,0.62);
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .scratch-row-kind{
      background:#1b2e46;
      border-color:#536b8c;
      color:#d7e5f7;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .scratch-row-handle{
      background:#1b2e46;
      border-color:#5c7394;
      color:#cdddf3;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .scratch-field{
      background:#0f1d2f;
      color:#e2e8f0;
      border-color:#59759c;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .scratch-field--if-type,
    html[data-theme="dark"] .mission-block-editor--scratch-entry .scratch-field--if-op{
      background:#1a2f4a;
      color:#d6e5f8;
    }
    html[data-theme="dark"] .mission-block-editor--scratch-entry .mission-block-empty{
      background:rgba(15,30,50,0.72);
      border-color:rgba(94,121,160,0.56);
      color:#b8cce8;
    }
    html[data-theme="dark"] .loadcell-dialog{
      background:linear-gradient(180deg,rgba(15,23,42,0.98),rgba(11,18,32,0.96));
      border-color:rgba(51,65,85,0.7);
      color:#e2e8f0;
      box-shadow:0 16px 38px rgba(2,6,23,0.6),0 2px 0 rgba(15,23,42,0.7) inset;
    }
    html[data-theme="dark"] .loadcell-dialog::before{
      background:linear-gradient(135deg,rgba(30,41,59,0.9),rgba(51,65,85,0.6));
    }
    html[data-theme="dark"] .loadcell-dialog::after{
      background:radial-gradient(circle at 20% 0,rgba(30,41,59,0.6),transparent 55%);
    }
    html[data-theme="dark"] .loadcell-kicker{
      background:rgba(148,163,184,0.16);
      color:#cbd5f5;
    }
    html[data-theme="dark"] .loadcell-steps,
    html[data-theme="dark"] .loadcell-note{color:#94a3b8}
    html[data-theme="dark"] .loadcell-card{
      background:rgba(15,23,42,0.95);
      border-color:rgba(51,65,85,0.7);
      box-shadow:0 6px 14px rgba(2,6,23,0.45);
    }
    html[data-theme="dark"] .loadcell-calc-row{
      background:rgba(30,41,59,0.72);
    }
    html[data-theme="dark"] .loadcell-calc-key{color:#94a3b8}
    html[data-theme="dark"] .loadcell-calc-value{color:#e2e8f0}
    html[data-theme="dark"] .loadcell-value{color:#e2e8f0}
    html[data-theme="dark"] .loadcell-success-title{color:#e2e8f0}
    html[data-theme="dark"] .loadcell-success-text{color:#94a3b8}
    html[data-theme="dark"] .loadcell-unit{color:#94a3b8}
    html[data-theme="dark"] .loadcell-input{
      background:#0f172a;
      border-color:rgba(51,65,85,0.8);
      color:#e2e8f0;
      box-shadow:0 4px 10px rgba(2,6,23,0.4);
    }
    html[data-theme="dark"] .loadcell-actions{border-top:1px solid rgba(51,65,85,0.7)}
    html[data-theme="dark"] .loadcell-secondary{
      background:rgba(34,197,94,0.18);
      color:#86efac;
      border-color:rgba(34,197,94,0.45);
    }
    html[data-theme="dark"] .loadcell-cancel{
      background:#0f172a;
      color:#e2e8f0;
      border-color:rgba(51,65,85,0.8);
    }
    html[data-theme="dark"] .loadcell-warning-title{color:#e2e8f0}
    html[data-theme="dark"] .loadcell-warning .confirm-text,
    html[data-theme="dark"] .loadcell-warning-sub{color:#94a3b8}
    html[data-theme="dark"] .lockout-dialog{
      background:linear-gradient(180deg,#2b0f14 0,#1f1015 20%,#0f172a 70%);
      border-color:rgba(248,113,113,0.6);
      box-shadow:0 16px 38px rgba(2,6,23,0.7);
    }
    html[data-theme="dark"] .lockout-dialog .confirm-text{color:#cbd5f5}
    .app-shell{gap:0;height:100dvh;min-height:100dvh}
    .side-nav-item,.side-nav-action,.side-nav-btn{
      width:40px;height:40px;border-radius:12px;
      color:#6b7280;
      display:flex;align-items:center;justify-content:center;
      gap:0;padding:0 10px;overflow:hidden;
      transition:background .18s ease,color .18s ease;
    }
    .side-nav-item::after,
    .side-nav-action::after,
    .side-nav-btn::after{
      content:attr(data-nav-label);
      font-size:12px;font-weight:600;letter-spacing:.02em;
      color:currentColor;white-space:nowrap;
      opacity:0;transform:translateX(-6px);
      max-width:0;overflow:hidden;
      transition:opacity .18s ease,transform .18s ease,max-width .2s ease;
      pointer-events:none;
    }
    .side-nav-item.active{
      border-color:transparent;
      background:transparent;
      color:#3b82f6;
      box-shadow:none;
    }
    .side-nav-item:hover:not(.active),
    .side-nav-action:hover,
    .side-nav-btn:hover{
      background:#f3f4f6;
      color:#475569;
      box-shadow:none;
      transform:none;
    }
    .side-nav-action.is-active,
    .side-nav-btn.is-active{
      background:#e8f0ff;
      color:#2563eb;
      box-shadow:none;
    }
    .webcam-panel{
      position:fixed;
      left:92px;
      top:22px;
      width:min(420px, calc(100vw - 120px));
      background:#ffffff;
      border:1px solid rgba(148,163,184,0.32);
      border-radius:14px;
      box-shadow:0 24px 48px rgba(15,23,42,0.18);
      padding:12px;
      z-index:6100;
      color:#0f172a;
    }
    .webcam-panel.hidden{
      display:none !important;
    }
    .webcam-panel-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:2px 2px 10px;
    }
    .webcam-title{
      font-size:12px;
      font-weight:800;
      letter-spacing:.1em;
      color:#0f172a;
    }
    .webcam-status{
      margin-top:2px;
      font-size:12px;
      color:#64748b;
    }
    .webcam-icon-btn{
      width:32px;
      height:32px;
      border:1px solid rgba(148,163,184,0.36);
      border-radius:10px;
      background:#f8fafc;
      color:#334155;
      font-size:20px;
      line-height:1;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .webcam-icon-btn:hover{
      background:#eef2f7;
    }
    .webcam-frame{
      position:relative;
      overflow:hidden;
      aspect-ratio:16/9;
      border-radius:10px;
      background:#020617;
      border:1px solid rgba(15,23,42,0.14);
    }
    .webcam-frame video{
      width:100%;
      height:100%;
      display:block;
      object-fit:cover;
      background:#020617;
    }
    .webcam-placeholder{
      position:absolute;
      inset:0;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      padding:18px;
      font-size:13px;
      font-weight:700;
      color:#cbd5e1;
      background:linear-gradient(180deg,rgba(2,6,23,0.98),rgba(15,23,42,0.96));
    }
    .webcam-panel.is-live .webcam-placeholder{
      display:none;
    }
    .webcam-panel-actions{
      display:flex;
      justify-content:flex-end;
      padding-top:10px;
    }
    .webcam-secondary-btn{
      height:34px;
      padding:0 14px;
      border-radius:10px;
      border:1px solid rgba(148,163,184,0.36);
      background:#f8fafc;
      color:#334155;
      font-size:12px;
      font-weight:800;
    }
    .webcam-secondary-btn:hover{
      background:#eef2f7;
    }
    @media(max-width:767px){
      .webcam-panel{
        display:none !important;
      }
    }
    html[data-theme="dark"] .side-nav-item:hover:not(.active),
    html[data-theme="dark"] .side-nav-action:hover,
    html[data-theme="dark"] .side-nav-btn:hover{
      background:rgba(148,163,184,0.14);
      color:#cbd5e1;
      box-shadow:none;
      transform:none;
    }
    html[data-theme="dark"] .side-nav-action.is-active,
    html[data-theme="dark"] .side-nav-btn.is-active{
      background:rgba(59,130,246,0.2);
      color:#bfdbfe;
    }
    html[data-theme="dark"] .webcam-panel{
      background:linear-gradient(180deg,rgba(15,23,42,0.98),rgba(8,13,22,0.98));
      border-color:rgba(148,163,184,0.22);
      color:#e2e8f0;
      box-shadow:0 24px 52px rgba(2,6,23,0.58);
    }
    html[data-theme="dark"] .webcam-title{
      color:#f8fafc;
    }
    html[data-theme="dark"] .webcam-status{
      color:#94a3b8;
    }
    html[data-theme="dark"] .webcam-icon-btn,
    html[data-theme="dark"] .webcam-secondary-btn{
      background:rgba(15,23,42,0.9);
      border-color:rgba(148,163,184,0.24);
      color:#e2e8f0;
    }
    html[data-theme="dark"] .webcam-icon-btn:hover,
    html[data-theme="dark"] .webcam-secondary-btn:hover{
      background:rgba(30,41,59,0.94);
    }
    body.camera-view-active .top-bar{
      display:none;
    }
    body.camera-view-active .page-wrap{
      padding:0;
      gap:0;
      background:#020617;
    }
    .camera-view{
      position:relative;
      flex:1 1 auto;
      min-height:0;
      height:100%;
      overflow:hidden;
      background:#020617;
      border-radius:0;
    }
    .camera-view.hidden{
      display:none !important;
    }
    .camera-view .webcam-panel{
      position:relative;
      left:auto;
      top:auto;
      width:100%;
      height:100%;
      min-height:100%;
      padding:0;
      border:none;
      border-radius:0;
      box-shadow:none;
      background:#020617;
      color:#f8fafc;
      overflow:hidden;
      z-index:auto;
    }
    .camera-view .webcam-frame{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      aspect-ratio:auto;
      border:none;
      border-radius:0;
    }
    .camera-view .webcam-panel video,
    .camera-view #webcamVideo{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
      background:#020617;
    }
    .camera-view .webcam-placeholder{
      z-index:2;
      font-size:15px;
      color:#cbd5e1;
      background:
        linear-gradient(180deg,rgba(2,6,23,0.9),rgba(15,23,42,0.92));
    }
    .camera-view .webcam-panel.is-live .webcam-placeholder{
      display:none;
    }
    .camera-shade{
      position:absolute;
      left:0;
      right:0;
      pointer-events:none;
      z-index:3;
    }
    .camera-shade-top{
      top:0;
      height:180px;
      background:linear-gradient(180deg,rgba(0,0,0,0.56),rgba(0,0,0,0));
    }
    .camera-shade-bottom{
      bottom:0;
      height:45%;
      background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,0.76));
    }
    .camera-live-topbar{
      position:absolute;
      top:22px;
      left:24px;
      right:24px;
      z-index:6;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      pointer-events:auto;
    }
    .camera-live-brand,
    .camera-live-topbar .webcam-status{
      display:inline-flex;
      align-items:center;
      min-height:34px;
      padding:0 12px;
      border-radius:999px;
      background:rgba(0,0,0,0.36);
      border:1px solid rgba(255,255,255,0.16);
      color:#e2e8f0;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:11px;
      font-weight:800;
      letter-spacing:.14em;
      text-transform:uppercase;
      text-shadow:0 12px 28px rgba(0,0,0,0.55);
      backdrop-filter:blur(10px);
      -webkit-backdrop-filter:blur(10px);
    }
    .camera-live-brand{
      gap:8px;
    }
    .camera-live-dot{
      width:8px;
      height:8px;
      border-radius:999px;
      background:#64748b;
      box-shadow:0 0 0 4px rgba(148,163,184,0.16);
    }
    .webcam-panel.is-live .camera-live-dot{
      background:#22c55e;
      box-shadow:0 0 0 4px rgba(34,197,94,0.18),0 0 18px rgba(34,197,94,0.38);
    }
    .camera-live-topbar .webcam-secondary-btn{
      height:34px;
      border-radius:999px;
      background:rgba(0,0,0,0.34);
      border:1px solid rgba(255,255,255,0.16);
      color:#e2e8f0;
      box-shadow:none;
      backdrop-filter:blur(10px);
      -webkit-backdrop-filter:blur(10px);
    }
    .camera-hud{
      position:absolute;
      left:30px;
      right:30px;
      bottom:26px;
      z-index:5;
      display:grid;
      grid-template-columns:minmax(220px,360px) 1fr minmax(220px,360px);
      gap:22px;
      align-items:end;
      pointer-events:none;
      color:#f8fafc;
    }
    .camera-hud-left{
      display:grid;
      gap:10px;
    }
    .camera-hud-left{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .camera-hud-metric,
    .camera-hud-chip{
      min-width:0;
      padding:12px;
      border-radius:12px;
      background:rgba(0,0,0,0.34);
      border:1px solid rgba(255,255,255,0.14);
      box-shadow:0 18px 42px rgba(0,0,0,0.32);
      backdrop-filter:blur(12px) saturate(112%);
      -webkit-backdrop-filter:blur(12px) saturate(112%);
    }
    .camera-hud-metric span,
    .camera-hud-chip span{
      display:block;
      font-size:10px;
      font-weight:800;
      letter-spacing:.15em;
      color:rgba(226,232,240,0.72);
      white-space:nowrap;
    }
    .camera-hud-metric strong{
      display:block;
      margin-top:6px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:clamp(24px,3.2vw,42px);
      line-height:.95;
      letter-spacing:0;
      color:#f8fafc;
      text-shadow:0 18px 42px rgba(0,0,0,0.62);
    }
    .camera-hud-metric em{
      display:block;
      margin-top:4px;
      font-style:normal;
      font-size:11px;
      font-weight:800;
      color:rgba(203,213,225,0.78);
    }
    .camera-hud-chip strong{
      display:block;
      margin-top:6px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:18px;
      line-height:1;
      color:#f8fafc;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .camera-hud-chip-wide{
      grid-column:1 / -1;
    }
    .camera-hud-mission{
      max-width:min(720px, 70vw);
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:13px;
      font-weight:800;
      letter-spacing:.18em;
      color:rgba(226,232,240,0.86);
      text-transform:uppercase;
    }
    .camera-hud-state{
      margin-top:8px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:clamp(24px,4vw,54px);
      font-weight:950;
      letter-spacing:.08em;
      line-height:.95;
      color:#f8fafc;
      text-transform:uppercase;
    }
    .camera-hud-state.status-warn{color:#fde68a}
    .camera-hud-state.status-bad{color:#fecaca}
    .camera-hud-state.status-ok{color:#bbf7d0}
    .camera-hud-countdown{
      margin-top:10px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      font-size:clamp(38px,6vw,88px);
      font-weight:950;
      letter-spacing:0;
      line-height:.92;
      color:#ffffff;
    }
    @media(max-width:1100px){
      .camera-hud{
        grid-template-columns:1fr;
        left:18px;
        right:18px;
        bottom:18px;
      }
      .camera-hud-left{
        display:none;
      }
    }
    .page-wrap{
      max-width:none;
      height:100dvh;
      min-height:100dvh;
      padding:
        calc(var(--page-pad-y) + env(safe-area-inset-top, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-right, 0px))
        calc(var(--page-pad-bottom) + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-left, 0px));
      gap:var(--shell-gap);
      overflow:hidden;
    }
    @media(min-width:768px){
      body.mission-view-active .page-wrap{
        padding-top:var(--page-pad-y);
        padding-bottom:var(--page-pad-y);
      }
    }
    .top-bar{align-items:flex-start;margin-bottom:6px}
    .page-kicker{
      font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
      color:var(--ui-text);
    }
    .page-kicker .board-name-strong{color:#111827}
    .page-kicker .board-name-regular{color:#1f2937}
    .page-kicker .board-name-light{color:#4b5563}
    html[data-theme="dark"] .page-kicker .board-name-strong,
    html[data-theme="dark"] .page-kicker .board-name-regular,
    html[data-theme="dark"] .page-kicker .board-name-light{color:#f8fafc}
    .board-name-strong{font-weight:700}
    .board-name-regular{font-weight:500}
    .board-name-light{font-weight:300}
    .page-title{
      font-size:36px;font-weight:700;letter-spacing:.01em;color:var(--ui-text);
    }
    .card-base{
      background:rgba(255,255,255,0.98);
      border:1px solid var(--ui-line);
      box-shadow:0 18px 30px rgba(15,23,42,0.06);
    }
    .card-base::before,.card-base::after{content:none}
    .card-title{
      color:var(--ui-muted);
      font-weight:700;
      letter-spacing:.22em;
    }
    .card-badge{
      background:var(--ui-accent-soft);
      color:var(--ui-accent);
      border:1px solid rgba(29,78,216,0.2);
    }
    .pill{
      background:#f9fafb;
      border:1px solid var(--ui-line);
      color:var(--ui-muted);
    }
    .countdown-header{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:4px;
      min-width:140px;
    }
    .countdown-mainline{
      display:flex;
      align-items:flex-end;
      gap:14px;
      flex-wrap:wrap;
    }
    .view-label{
      font-size:14px;
      font-weight:700;
      letter-spacing:.22em;
      text-transform:uppercase;
      color:var(--ui-muted);
      padding-top:6px;
    }
    .countdown-label{
      font-size:12px;
      letter-spacing:.32em;
      text-transform:uppercase;
      color:var(--ui-muted);
    }
    #countdown{
      font-family:SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,"Courier New",monospace;
      font-size:clamp(26px,3.05vw,34px);
      font-weight:600;
      letter-spacing:.06em;
      font-variant-numeric:tabular-nums;
      font-feature-settings:"tnum" 1;
      color:var(--ui-text);
      text-align:left;
      line-height:.98;
      text-shadow:none;
    }
    .countdown-inline-status{
      display:inline-flex;
      align-items:center;
      gap:7px;
      min-height:30px;
      padding-left:13px;
      border-left:1px solid rgba(148,163,184,0.34);
    }
    .countdown-inline-status-text{
      font-size:clamp(14px,1.45vw,17px);
      font-weight:650;
      line-height:1.1;
      color:#334155;
      letter-spacing:-0.01em;
      white-space:nowrap;
    }
    .countdown-inline-status-pill{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:26px;
      padding:2px 10px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.35);
      font-size:10px;
      font-weight:700;
      letter-spacing:.14em;
      text-transform:uppercase;
      background:#f8fafc;
      color:#475569;
      white-space:nowrap;
    }
    .countdown-inline-status-pill.status-ready{background:#16a34a;color:#f0fdf4;border-color:#4ade80}
    .countdown-inline-status-pill.status-count{background:rgba(245,158,11,0.10);color:#b45309;border-color:rgba(245,158,11,0.34)}
    .countdown-inline-status-pill.status-seq{background:rgba(37,99,235,0.10);color:#1d4ed8;border-color:rgba(37,99,235,0.34)}
    .countdown-inline-status-pill.status-parachute{background:rgba(20,184,166,0.14);color:#0f766e;border-color:rgba(20,184,166,0.42)}
    .countdown-inline-status-pill.status-fire{background:rgba(239,68,68,0.10);color:#b91c1c;border-color:rgba(239,68,68,0.34)}
    .countdown-inline-status-pill.status-abort{background:rgba(239,68,68,0.12);color:#b91c1c;border-color:rgba(239,68,68,0.38)}
    .countdown-inline-status-pill.status-lock{background:rgba(239,68,68,0.10);color:#991b1b;border-color:rgba(239,68,68,0.38)}
    .countdown-inline-status-pill.status-loadcell{background:rgba(239,68,68,0.10);color:#b91c1c;border-color:rgba(239,68,68,0.38)}
    .countdown-inline-status-pill.status-disc{background:#f3f4f6;color:#4b5563;border-color:rgba(148,163,184,0.34)}
    .tablet-header-abort{
      display:none;
      align-items:center;
      justify-content:center;
      min-height:42px;
      padding:0 18px;
      border:none;
      border-radius:14px;
      background:#dc2626;
      color:#fff;
      font-size:13px;
      font-weight:700;
      letter-spacing:.12em;
      text-transform:uppercase;
      box-shadow:0 12px 28px rgba(220,38,38,0.22);
      transition:opacity .18s ease,transform .18s ease;
    }
    .tablet-header-abort:not(.hidden){
      display:inline-flex;
    }
    .tablet-header-abort:disabled{
      opacity:.55;
      box-shadow:none;
      cursor:not-allowed;
    }
    html:not(.tablet-controls-layout) .tablet-header-abort{
      display:none !important;
    }
    @keyframes homeRise{
      from{opacity:0;transform:translateY(16px)}
      to{opacity:1;transform:translateY(0)}
    }
    @media(max-width:760px){
      :root{--page-pad-x:18px;--page-pad-y:22px;--page-pad-bottom:40px}
      .page-wrap{
        --mobile-safe-top: max(34px, env(safe-area-inset-top, 0px));
        padding-top:calc(var(--page-pad-y) + var(--mobile-safe-top));
      }
      .page-title{font-size:30px}
      .countdown-mainline{gap:10px}
      .status-card .status-map-panel{height:190px}
      .status-map-hud{top:10px;left:10px;gap:6px}
      .status-map-card{padding:6px 9px}
      .status-map-coords{font-size:11px}
      .status-map-zoom{font-size:11px}
      .status-map-actions{gap:6px}
      .status-map-btn{padding:6px 9px;font-size:11px}
      .countdown-inline-status{
        min-height:24px;
        padding-left:0;
        border-left:none;
      }
      .countdown-inline-status-text{font-size:14px}
    }
    @media(max-width:540px){
      .side-nav-mobile{width:auto}
    }
    @media(max-width:600px){
      html,body{height:auto}
      body{overflow-y:auto}
      .app-shell{height:auto}
      :root{
        --page-pad-x:16px;
        --page-pad-y:16px;
        --page-pad-bottom:88px;
      }
      .page-wrap{
        --mobile-safe-top: max(38px, env(safe-area-inset-top, 0px));
        height:auto;
        min-height:auto;
        overflow:visible;
        padding-top:calc(var(--page-pad-y) + var(--mobile-safe-top));
      }
      .terminal-view .log-card{
        height:62dvh;
        max-height:62dvh;
        min-height:340px;
      }
    }
    @media(max-width:900px), (max-height:720px){
      .confirm-overlay,
      .settings-overlay,
      .ws-alert-overlay,
      .disconnect-overlay,
      .reboot-overlay{
        align-items:flex-start;
        justify-content:center;
        padding:max(10px, env(safe-area-inset-top, 10px)) 10px max(10px, env(safe-area-inset-bottom, 10px));
        overflow-y:auto;
      }
      .warning-fullscreen{
        align-items:stretch !important;
        justify-content:stretch !important;
        padding:0 !important;
        overflow:hidden !important;
      }
      .settings-dialog,
      .mission-dialog,
      .loadcell-dialog,
      .inspection-dialog{
        width:min(100%, 440px);
        max-width:calc(100vw - 28px);
        min-height:0;
        height:auto;
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
      }
      .launcher-dialog{
        width:min(100%, 340px);
        max-width:calc(100vw - 28px);
        min-height:0;
        height:auto;
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
      }
      .confirm-dialog{
        width:min(100%, 360px);
        max-width:calc(100vw - 28px);
        min-height:0;
        height:auto;
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
      }
      .ws-alert-dialog{
        width:min(100%, 390px);
        max-width:calc(100vw - 28px);
        min-height:0;
        height:auto;
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
      }
      .disconnect-dialog{
        width:min(100%, 340px);
        max-width:calc(100vw - 28px);
        min-height:0;
        height:auto;
        max-height:calc(100dvh - max(20px, env(safe-area-inset-top, 10px) + env(safe-area-inset-bottom, 10px)));
      }
      .confirm-dialog,
      .ws-alert-dialog,
      .disconnect-dialog{
        overflow-y:auto;
      }
      #settingsOverlay .settings-dialog{
        padding:12px 14px 12px;
      }
      #settingsOverlay .settings-body{
        min-height:0;
        gap:10px;
      }
      #settingsOverlay .settings-panels{
        padding-right:4px;
      }

      #missionOverlay .mission-dialog{
        padding:14px 14px 12px;
        border-radius:16px;
        overflow:hidden;
      }
      #missionOverlay #missionPresetBlock,
      #missionOverlay #missionFields{
        min-height:0;
        overflow-y:auto;
      }
      #missionOverlay #missionPresetWrap{
        transform:none;
      }
      #missionOverlay .mission-preset-viewport{
        flex:1 1 auto;
        max-width:100%;
        padding:14px 0 10px;
      }
      #missionOverlay .mission-footer{
        margin-top:10px;
        padding-top:10px;
        flex-wrap:wrap;
      }

      #inspectionOverlay .inspection-dialog{
        padding:14px 14px 12px;
        border-radius:16px;
        overflow:hidden;
      }
      #inspectionOverlay .inspection-body{
        min-height:0;
        overflow-y:auto;
        justify-content:flex-start;
        padding:8px 0 6px;
      }
      #inspectionOverlay .inspection-footer{
        margin-top:8px;
        padding-top:8px;
        flex-wrap:wrap;
        justify-content:center;
      }

      #loadcellOverlay .loadcell-dialog{
        padding:14px 14px 12px;
        border-radius:16px;
        overflow:hidden;
      }
      #loadcellOverlay .loadcell-body{
        min-height:0;
        overflow-y:auto;
        justify-content:flex-start;
        padding-bottom:8px;
      }
      #loadcellOverlay .loadcell-main{
        justify-content:flex-start;
      }
      #loadcellOverlay .loadcell-actions{
        position:static;
        padding:10px 0 0;
        border-top:1px solid rgba(226,232,240,0.7);
        flex-wrap:wrap;
      }
      #loadcellOverlay .loadcell-warning{
        position:relative;
        inset:auto;
        min-height:0;
        height:auto;
        padding-bottom:0;
      }
      #loadcellOverlay .loadcell-warning::before{
        top:-8px;
        height:140px;
      }
      #confirmOverlay{
        align-items:center;
        justify-content:center;
      }
      #forceOverlay{
        align-items:center;
        justify-content:center;
      }
    }
    @media(max-width:600px){
      #settingsOverlay .settings-body{
        flex-direction:column;
      }
      .confirm-overlay,
      .settings-overlay,
      .ws-alert-overlay,
      .disconnect-overlay,
      .reboot-overlay{
        background:rgba(2,6,23,0.64);
        backdrop-filter:blur(4px);
        -webkit-backdrop-filter:blur(4px);
      }
      .confirm-overlay:not(.warning-fullscreen) .confirm-dialog,
      .ws-alert-dialog,
      .disconnect-dialog,
      .reboot-dialog,
      #settingsOverlay .settings-dialog,
      #missionOverlay .mission-dialog,
      #inspectionOverlay .inspection-dialog,
      #loadcellOverlay .loadcell-dialog,
      #launcherOverlay .launcher-dialog{
        background:linear-gradient(180deg,rgba(10,16,29,0.96),rgba(6,12,22,0.98));
        border-color:rgba(148,163,184,0.3);
        color:#e2e8f0;
        box-shadow:0 16px 32px rgba(2,6,23,0.56),inset 0 1px 0 rgba(148,163,184,0.13);
      }
      #settingsOverlay .settings-dialog,
      #missionOverlay .mission-dialog,
      #inspectionOverlay .inspection-dialog,
      #loadcellOverlay .loadcell-dialog{
        width:calc(100vw - 18px);
        max-width:calc(100vw - 18px);
      }
      #launcherOverlay .launcher-dialog{
        width:min(330px, calc(100vw - 24px));
        max-width:calc(100vw - 24px);
      }
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-dialog{
        background:linear-gradient(180deg,#ffffff,#f8fafc);
        border-color:rgba(148,163,184,0.45);
        color:#0f172a;
        box-shadow:0 16px 30px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
      }
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-dialog::before{
        background:linear-gradient(145deg,rgba(255,255,255,0.92),rgba(148,163,184,0.46));
      }
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-dialog::after{
        background:radial-gradient(circle at 15% 0,rgba(148,163,184,0.18),transparent 60%);
      }
      .confirm-overlay:not(.warning-fullscreen) .confirm-dialog,
      .ws-alert-dialog,
      .disconnect-dialog,
      .reboot-dialog{
        max-width:calc(100vw - 24px);
      }
      #confirmOverlay{
        align-items:center;
        justify-content:center;
      }
      #confirmOverlay .confirm-dialog{
        background:linear-gradient(180deg,#ffffff,#f8fafc);
        border-color:rgba(148,163,184,0.45);
        border-radius:10px;
      }
      #forceOverlay{
        align-items:center;
        justify-content:center;
      }
      #forceOverlay .confirm-dialog{
        background:linear-gradient(180deg,#ffffff,#f8fafc);
        border-color:rgba(148,163,184,0.45);
        border-radius:10px;
      }
      .settings-title,
      .settings-label,
      .mission-title,
      .inspection-step-title,
      .launcher-title,
      .confirm-title,
      .disconnect-title{
        color:#f8fafc;
      }
      .settings-desc,
      .hint-mini,
      .mission-sub,
      .inspection-sub,
      .inspection-step-desc,
      .launcher-note,
      .confirm-text,
      .confirm-note,
      .disconnect-text{
        color:#94a3b8;
      }
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-title{
        color:#0f172a;
      }
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-note,
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-hint,
      html:not(.phone-landscape-layout) #launcherOverlay .launcher-angle-label{
        color:#64748b;
      }
      .settings-select,
      .settings-number,
      .settings-inline-btn,
      .settings-btn,
      .mission-input,
      .mission-unit,
      .loadcell-input,
      .loadcell-card{
        background:rgba(15,23,42,0.9);
        border-color:rgba(71,85,105,0.7);
        color:#e2e8f0;
      }
      #settingsOverlay .settings-nav{
        width:100%;
        border-right:none;
        border-bottom:1px solid rgba(148,163,184,0.24);
        padding-right:0;
        padding-bottom:8px;
        margin-bottom:2px;
        max-height:36vh;
        overflow:auto;
      }
      #settingsOverlay .settings-nav-title{
        margin-bottom:2px;
      }
      #settingsOverlay .settings-nav-btn{
        min-height:34px;
        color:rgba(226,232,240,0.75);
      }
      #settingsOverlay .settings-nav-btn.active{color:#f8fafc}
      #settingsOverlay .settings-panels{
        padding-left:0;
      }
      html:not(.phone-landscape-layout) #settingsOverlay{
        align-items:center;
        justify-content:center;
      }
      html.settings-open #settingsOverlay .settings-header{
        position:sticky;
        top:0;
        z-index:2;
        background:inherit;
        min-height:48px;
        padding:8px 0 12px;
        margin-bottom:10px;
        border-bottom:1px solid rgba(203,213,225,0.75);
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-dialog{
        width:calc(100vw - 18px);
        max-width:calc(100vw - 18px);
        height:min(68dvh, 620px);
        max-height:min(68dvh, 620px);
        background:#ffffff;
        border:none;
        box-shadow:0 14px 30px rgba(15,23,42,0.24);
        color:#0f172a;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-dialog::before{
        content:none;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-title,
      html:not(.phone-landscape-layout) #settingsOverlay .settings-label{
        color:#0f172a;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-desc,
      html:not(.phone-landscape-layout) #settingsOverlay .hint-mini{
        color:#64748b;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-nav{
        border-bottom:1px solid rgba(148,163,184,0.28);
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-nav-btn{
        color:#334155;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-nav-btn.active{
        color:#f8fafc;
      }
      html:not(.phone-landscape-layout) #settingsOverlay .settings-select,
      html:not(.phone-landscape-layout) #settingsOverlay .settings-number,
      html:not(.phone-landscape-layout) #settingsOverlay .settings-inline-btn,
      html:not(.phone-landscape-layout) #settingsOverlay .settings-btn{
        background:#f8fafc;
        border-color:rgba(148,163,184,0.62);
        color:#0f172a;
      }
      #missionOverlay .mission-header{
        padding-bottom:8px;
        margin-bottom:8px;
      }
      #missionOverlay .mission-sub{
        margin-top:4px;
      }
      #missionOverlay .mission-preset-row{
        gap:4px;
      }
      #missionOverlay .mission-scroll-btn{
        width:34px;
        height:34px;
      }
      #missionOverlay .mission-preset-grid{
        --preset-card:136px;
        --preset-gap:8px;
      }
      #missionOverlay .mission-preset-photo{
        min-height:118px;
      }
      #missionOverlay .mission-preset-btn.has-spec .mission-preset-photo,
      #missionOverlay .mission-preset-btn.no-spec .mission-preset-photo{
        min-height:118px;
      }
      #loadcellOverlay .loadcell-value{
        font-size:24px;
      }
    }

    /* Commercial mission workspace layout */
    #missionOverlay .mission-dialog{
      width:min(96vw, 1520px);
      max-width:min(96vw, 1520px);
      height:min(92dvh, 980px);
      max-height:min(92dvh, 980px);
      min-height:0;
      padding:14px 16px 14px;
      display:flex;
      flex-direction:column;
      gap:10px;
      overflow:hidden;
    }
    #missionOverlay .mission-header{
      margin:0;
      padding-bottom:10px;
      flex:0 0 auto;
    }
    #missionOverlay .mission-sub{
      max-width:none;
    }
    #missionOverlay .mission-sync-row--top{
      justify-content:flex-start;
      gap:6px;
    }
    #missionOverlay .mission-sync-row .settings-btn,
    #missionOverlay .mission-import-label{
      min-height:34px;
      padding:7px 12px;
    }
    #missionOverlay .mission-designer-layout{
      flex:1 1 auto;
      min-height:0;
      display:grid;
      grid-template-columns:minmax(300px, 360px) minmax(0, 1fr);
      gap:12px;
      overflow:hidden;
    }
    #missionOverlay #missionPresetBlock{
      display:flex;
      flex-direction:column;
      gap:10px;
      min-height:0;
      padding:10px;
      border:1px solid rgba(148,163,184,0.35);
      border-radius:16px;
      background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 42%,#f8fafc 100%);
      overflow:hidden;
    }
    #missionOverlay .mission-preset-title{
      text-align:left;
      font-size:11px;
      letter-spacing:.16em;
      color:#334155;
    }
    #missionOverlay #missionPresetWrap{
      transform:none;
      display:flex;
      align-items:center;
      gap:6px;
      flex:1 1 auto;
      min-height:0;
    }
    #missionOverlay .mission-preset-viewport{
      flex:1 1 auto;
      max-width:none;
      min-height:0;
      padding:0;
      border-radius:12px;
      background:rgba(255,255,255,0.75);
      border:1px solid rgba(148,163,184,0.26);
      overflow:hidden;
    }
    #missionOverlay .mission-preset-grid{
      --preset-card:150px;
      --preset-gap:8px;
      padding:10px 0 10px;
      overflow-x:auto;
      overflow-y:hidden;
      scrollbar-gutter:stable both-edges;
    }
    #missionOverlay .mission-preset-btn{
      min-height:154px;
      transform:none;
      transition:border-color .14s ease, box-shadow .14s ease, transform .14s ease;
    }
    #missionOverlay .mission-preset-btn:hover{
      transform:translateY(-1px);
    }
    #missionOverlay .mission-preset-btn.is-selected,
    .mission-dialog .mission-preset-btn.is-selected{
      border-color:rgba(37,99,235,0.62);
      box-shadow:0 10px 20px rgba(37,99,235,0.22);
      transform:translateY(-1px);
    }
    #missionOverlay .mission-preset-btn.is-selected .mission-preset-name,
    .mission-dialog .mission-preset-btn.is-selected .mission-preset-name{
      color:#1d4ed8;
    }
    #missionOverlay #missionFields{
      display:grid;
      grid-template-rows:auto minmax(0, 1fr);
      gap:10px;
      min-height:0;
      min-width:0;
      overflow:hidden;
    }
    #missionOverlay .mission-meta-panel{
      border:1px solid rgba(148,163,184,0.34);
      border-radius:14px;
      background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
      padding:10px;
      display:flex;
      flex-direction:column;
      gap:8px;
      flex:0 0 auto;
    }
    #missionOverlay .mission-meta-head{
      font-size:11px;
      font-weight:900;
      letter-spacing:.14em;
      text-transform:uppercase;
      color:#334155;
    }
    #missionOverlay .mission-meta-sub{
      font-size:11px;
      color:#64748b;
      line-height:1.45;
    }
    #missionOverlay #missionBackBtn{
      display:none !important;
    }
    #missionOverlay .mission-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:8px 10px;
    }
    #missionOverlay .mission-field{
      gap:3px;
    }
    #missionOverlay .mission-label{
      font-size:10px;
      letter-spacing:.1em;
    }
    #missionOverlay .mission-input{
      padding:7px 9px;
      border-radius:10px;
      font-size:12px;
    }
    #missionOverlay .mission-unit{
      padding:5px 8px;
      font-size:10px;
    }
    #missionOverlay #missionBlockEditor{
      margin-top:0;
      min-height:0;
      height:100%;
      width:100%;
      max-width:100%;
      min-width:0;
    }
    #missionOverlay #missionBlockEditor .mission-block-workspace{
      height:100%;
      min-height:0;
      max-height:none;
      width:100%;
      min-width:0;
    }
    #missionOverlay #missionBlockEditor .mission-block-palette{
      flex:0 0 272px;
      min-width:238px;
      max-width:286px;
      height:100%;
      min-height:0;
      overflow-y:auto;
      overflow-x:hidden;
      padding:9px;
    }
    #missionOverlay #missionBlockEditor .mission-block-canvas{
      min-height:0;
      height:100%;
      min-width:0;
      overflow:hidden;
    }
    #missionOverlay #missionBlockEditor .mission-block-list{
      min-height:0;
      min-width:0;
    }
    #missionOverlay #missionBlockEditor .mission-block-stage{
      min-width:max(100%, 1180px);
      min-height:max(100%, 980px);
      padding:6px 260px 340px 8px;
    }
    #missionOverlay .mission-block-actions--footer{
      display:flex;
      justify-content:flex-end;
      margin-top:2px;
    }
    /* Temporary hide requested: preset + metadata panel */
    #missionOverlay #missionPresetBlock,
    #missionOverlay .mission-meta-panel,
    .mission-dialog.is-embedded-panel #missionPresetBlock,
    .mission-dialog.is-embedded-panel .mission-meta-panel{
      display:none !important;
    }
    #missionOverlay .mission-head-main,
    .mission-dialog.is-embedded-panel .mission-head-main{
      display:none !important;
    }
    #missionOverlay .mission-header,
    .mission-dialog.is-embedded-panel .mission-header{
      display:none;
      padding:0;
      margin:0;
      border-bottom:none;
    }
    #missionOverlay .mission-designer-layout,
    .mission-dialog .mission-designer-layout{
      grid-template-columns:minmax(0,1fr);
    }
    #missionOverlay #missionFields,
    .mission-dialog #missionFields{
      grid-template-rows:minmax(0,1fr);
      gap:0;
    }
    .mission-dialog .mission-designer-layout{
      flex:1 1 auto;
      min-height:0;
      display:grid;
      grid-template-columns:minmax(0,1fr);
      gap:12px;
      overflow:hidden;
    }
    .mission-dialog #missionPresetBlock{
      display:flex;
      flex-direction:column;
      gap:10px;
      min-height:0;
    }
    .mission-dialog #missionPresetWrap{
      transform:none;
      display:flex;
      align-items:center;
      gap:6px;
      flex:1 1 auto;
      min-height:0;
    }
    .mission-dialog .mission-preset-viewport{
      flex:1 1 auto;
      max-width:none;
      min-height:0;
      padding:0;
      border-radius:12px;
      background:rgba(255,255,255,0.75);
      border:1px solid rgba(148,163,184,0.26);
      overflow:hidden;
    }
    .mission-dialog .mission-preset-grid{
      --preset-card:150px;
      --preset-gap:8px;
      padding:10px 0 10px;
      overflow-x:auto;
      overflow-y:hidden;
      scrollbar-gutter:stable both-edges;
    }
    .mission-dialog .mission-preset-btn{
      min-height:154px;
      transform:none;
      transition:border-color .14s ease, box-shadow .14s ease, transform .14s ease;
    }
    .mission-dialog .mission-preset-btn:hover{
      transform:translateY(-1px);
    }
    .mission-dialog #missionFields{
      display:grid;
      grid-template-rows:auto minmax(0, 1fr);
      gap:10px;
      min-height:0;
      min-width:0;
      overflow:hidden;
    }
    .mission-dialog .mission-meta-panel{
      border:1px solid rgba(148,163,184,0.34);
      border-radius:14px;
      background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
      padding:10px;
      display:flex;
      flex-direction:column;
      gap:8px;
      flex:0 0 auto;
    }
    .mission-dialog .mission-meta-head{
      font-size:11px;
      font-weight:900;
      letter-spacing:.14em;
      text-transform:uppercase;
      color:#334155;
    }
    .mission-dialog .mission-meta-sub{
      font-size:11px;
      color:#64748b;
      line-height:1.45;
    }
    .mission-dialog .mission-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:8px 10px;
    }
    .mission-dialog #missionBlockEditor{
      margin-top:0;
      min-height:0;
      height:100%;
      width:100%;
      max-width:100%;
      min-width:0;
    }
    .mission-dialog #missionBlockEditor .mission-block-workspace{
      height:100%;
      min-height:0;
      max-height:none;
      width:100%;
      min-width:0;
    }
    .mission-dialog #missionBlockEditor .mission-block-palette{
      flex:0 0 272px;
      min-width:238px;
      max-width:286px;
      height:100%;
      min-height:0;
      overflow-y:auto;
      overflow-x:hidden;
      padding:9px;
    }
    .mission-dialog #missionBlockEditor .mission-block-canvas{
      min-height:0;
      height:100%;
      min-width:0;
      overflow:hidden;
    }
    .mission-dialog #missionBlockEditor .mission-block-list{
      min-height:0;
      min-width:0;
    }
    .mission-dialog #missionBlockEditor .mission-block-stage{
      min-width:max(100%, 1180px);
      min-height:max(100%, 980px);
      padding:6px 260px 340px 8px;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel .mission-designer-layout{
      height:100%;
      min-height:0;
      overflow:hidden;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionFields,
    .mission-view-mount .mission-dialog.is-embedded-panel #missionBlockEditor{
      height:100%;
      min-height:0;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionBlockEditor .mission-block-workspace{
      height:100% !important;
      min-height:0 !important;
      max-height:none !important;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionBlockEditor .mission-block-palette{
      height:100% !important;
      min-height:0 !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionBlockEditor .mission-block-canvas{
      height:100% !important;
      min-height:0 !important;
      overflow:hidden !important;
    }
    .mission-view-mount .mission-dialog.is-embedded-panel #missionPresetBlock,
    .mission-view-mount .mission-dialog.is-embedded-panel .mission-grid{
      display:none !important;
    }
    html[data-theme="dark"] #missionOverlay #missionPresetBlock,
    html[data-theme="dark"] .mission-dialog #missionPresetBlock{
      background:linear-gradient(180deg,#132339 0%,#0f1c2e 42%,#111827 100%);
      border-color:rgba(71,85,105,0.72);
    }
    html[data-theme="dark"] #missionOverlay .mission-preset-title,
    html[data-theme="dark"] .mission-dialog .mission-preset-title{
      color:#cbd5e1;
    }
    html[data-theme="dark"] #missionOverlay .mission-preset-viewport,
    html[data-theme="dark"] .mission-dialog .mission-preset-viewport{
      background:rgba(15,23,42,0.62);
      border-color:rgba(71,85,105,0.6);
    }
    html[data-theme="dark"] #missionOverlay .mission-meta-panel,
    html[data-theme="dark"] .mission-dialog .mission-meta-panel{
      background:linear-gradient(180deg,rgba(15,23,42,0.98),rgba(17,24,39,0.98));
      border-color:rgba(71,85,105,0.72);
    }
    html[data-theme="dark"] #missionOverlay .mission-meta-head,
    html[data-theme="dark"] .mission-dialog .mission-meta-head{
      color:#dbeafe;
    }
    html[data-theme="dark"] #missionOverlay .mission-meta-sub,
    html[data-theme="dark"] .mission-dialog .mission-meta-sub{
      color:#94a3b8;
    }
    html[data-theme="dark"] #missionOverlay .mission-preset-btn.is-selected,
    html[data-theme="dark"] .mission-dialog .mission-preset-btn.is-selected{
      border-color:rgba(96,165,250,0.74);
      box-shadow:0 10px 20px rgba(59,130,246,0.32);
    }
    html[data-theme="dark"] #missionOverlay .mission-preset-btn.is-selected .mission-preset-name,
    html[data-theme="dark"] .mission-dialog .mission-preset-btn.is-selected .mission-preset-name{
      color:#bfdbfe;
    }
    html.phone-landscape-layout #missionOverlay .mission-dialog{
      width:calc(100vw - 96px);
      max-width:calc(100vw - 96px);
      height:calc(100dvh - 20px);
      max-height:calc(100dvh - 20px);
      min-height:0;
    }
    @media (max-width:1280px){
      #missionOverlay .mission-designer-layout{
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:auto minmax(0,1fr);
      }
      .mission-dialog .mission-designer-layout{
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:auto minmax(0,1fr);
      }
      #missionOverlay #missionPresetBlock{
        padding:8px 10px;
      }
      .mission-dialog #missionPresetBlock{
        padding:8px 10px;
      }
      #missionOverlay .mission-preset-grid{
        --preset-card:138px;
      }
      .mission-dialog .mission-preset-grid{
        --preset-card:138px;
      }
    }
    @media (max-width:900px){
      #missionOverlay .mission-dialog{
        width:calc(100vw - 16px);
        max-width:calc(100vw - 16px);
        height:calc(100dvh - 16px);
        max-height:calc(100dvh - 16px);
        padding:12px;
      }
      #missionOverlay .mission-header{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
      }
      #missionOverlay .mission-head-right{
        width:100%;
      }
      #missionOverlay .mission-sync-row--top{
        justify-content:flex-start;
      }
      #missionOverlay .mission-grid{
        grid-template-columns:1fr;
      }
      .mission-dialog .mission-grid{
        grid-template-columns:1fr;
      }
      #missionOverlay #missionBlockEditor .mission-block-workspace{
        flex-direction:column;
      }
      .mission-dialog #missionBlockEditor .mission-block-workspace{
        flex-direction:column;
      }
      #missionOverlay #missionBlockEditor .mission-block-palette{
        flex:none;
        width:100%;
        min-width:0;
        max-width:none;
        max-height:190px;
        overflow:auto;
      }
      .mission-dialog #missionBlockEditor .mission-block-palette{
        flex:none;
        width:100%;
        min-width:0;
        max-width:none;
        max-height:190px;
        overflow:auto;
      }
      #missionOverlay #missionBlockEditor .mission-block-stage{
        min-width:max(100%, 960px);
        min-height:max(100%, 840px);
        padding-right:180px;
        padding-bottom:220px;
      }
      .mission-dialog #missionBlockEditor .mission-block-stage{
        min-width:max(100%, 960px);
        min-height:max(100%, 840px);
        padding-right:180px;
        padding-bottom:220px;
      }
    }
    @media (max-width:600px){
      #missionOverlay .mission-dialog{
        width:100vw;
        max-width:100vw;
        height:100dvh;
        max-height:100dvh;
        border-radius:0;
        padding:10px;
      }
      #missionOverlay .mission-preset-grid{
        --preset-card:124px;
      }
      #missionOverlay .mission-sync-row .settings-btn,
      #missionOverlay .mission-import-label{
        min-height:32px;
        padding:6px 10px;
        font-size:11px;
      }
      #missionOverlay .mission-scroll-btn{
        width:32px;
        height:32px;
      }
    }

    .confirm-overlay,
    .settings-overlay,
    .ws-alert-overlay,
    .disconnect-overlay,
    .reboot-overlay,
    .controls-overlay,
    #launcherOverlay,
    #inspectionOverlay,
    #missionOverlay,
    #loadcellOverlay,
    #lockoutOverlay,
    #forceOverlay,
    #missionRequiredOverlay,
    #noMotorOverlay,
    #launcherAutoOverlay {
      z-index:95;
    }

    /* Transit-style dark mode refresh */
    html[data-theme="dark"]{
      --ui-bg:#040b14;
      --ui-surface:#0b1421;
      --ui-line:rgba(141,159,186,0.24);
      --ui-text:#e8eef7;
      --ui-muted:#97a6bf;
      --ui-accent:#4f73ff;
      --ui-accent-soft:rgba(79,115,255,0.16);
      --ui-success:#9fd7a9;
      --ui-warn:#f2a95b;
      --ui-danger:#f57676;
      --ui-glass-1:rgba(10,17,28,0.72);
      --ui-glass-2:rgba(9,15,24,0.86);
      --ui-glass-line:rgba(200,216,240,0.16);
      --ui-glass-highlight:rgba(220,233,255,0.1);
      --ui-shadow:0 24px 40px rgba(2,7,14,0.56);
    }
    html[data-theme="dark"] body{
      background:
        radial-gradient(900px 560px at 14% -16%, rgba(71,110,157,0.24), transparent 60%),
        radial-gradient(780px 520px at 86% -20%, rgba(51,88,134,0.2), transparent 64%),
        radial-gradient(820px 440px at 66% 100%, rgba(82,98,66,0.16), transparent 62%),
        linear-gradient(180deg,#040b14 0%, #030a12 48%, #02070f 100%);
      color:var(--ui-text);
    }
    html[data-theme="dark"] body::before{
      background:linear-gradient(180deg,rgba(2,8,16,0.72) 0,rgba(2,8,16,0.22) 56%,rgba(2,8,16,0) 100%);
    }
    html[data-theme="dark"] .side-nav-mobile{
      background:linear-gradient(180deg,rgba(8,15,25,0.96),rgba(6,12,20,0.96));
      border-right:1px solid rgba(146,167,198,0.2);
      box-shadow:10px 0 28px rgba(1,5,10,0.58);
    }
    html[data-theme="dark"] .side-nav-item.active{
      color:#90aaff;
      text-shadow:0 0 14px rgba(79,115,255,0.35);
    }
    html[data-theme="dark"] .side-nav-item:hover:not(.active),
    html[data-theme="dark"] .side-nav-action:hover,
    html[data-theme="dark"] .side-nav-btn:hover{
      background:rgba(143,166,201,0.12);
      color:#d8e5fb;
    }
    html[data-theme="dark"] .top-bar{
      background:linear-gradient(180deg,rgba(4,9,16,0.44),rgba(4,9,16,0));
      border-radius:16px;
      padding:4px 8px 0;
    }
    html[data-theme="dark"] .page-title{
      color:#f1f6ff;
      letter-spacing:.02em;
      text-shadow:0 8px 24px rgba(44,87,150,0.18);
    }
    html[data-theme="dark"] .page-kicker{
      color:#c0cde1;
    }
    html[data-theme="dark"] .card-base{
      background:
        linear-gradient(160deg, var(--ui-glass-1), var(--ui-glass-2)),
        linear-gradient(180deg, rgba(226,238,255,0.04), rgba(226,238,255,0));
      border:1px solid var(--ui-glass-line);
      box-shadow:var(--ui-shadow);
      backdrop-filter:blur(14px) saturate(115%);
      -webkit-backdrop-filter:blur(14px) saturate(115%);
    }
    html[data-theme="dark"] .card-base.status-frame{
      border-color:rgba(173,193,224,0.22);
      box-shadow:0 26px 44px rgba(1,6,12,0.62);
    }
    html[data-theme="dark"] .card-title{
      color:#aebed6;
    }
    html[data-theme="dark"] .pill{
      background:rgba(17,28,42,0.88);
      border-color:rgba(156,178,212,0.24);
      color:#d9e6fb;
    }
    html[data-theme="dark"] .pill-toggle.is-on{
      background:linear-gradient(180deg,rgba(79,115,255,0.34),rgba(79,115,255,0.2));
      border-color:rgba(133,158,255,0.62);
      color:#eaf0ff;
      box-shadow:0 8px 18px rgba(79,115,255,0.32);
    }
    html[data-theme="dark"] .pill-toggle.is-off{
      background:rgba(33,44,58,0.82);
      border-color:rgba(136,152,176,0.32);
      color:#a6b4ca;
    }
    html[data-theme="dark"] .toolbar-btn,
    html[data-theme="dark"] .primary-btn,
    html[data-theme="dark"] .settings-btn,
    html[data-theme="dark"] .settings-inline-btn{
      background:linear-gradient(180deg,rgba(21,33,49,0.96),rgba(13,23,36,0.96));
      border:1px solid rgba(156,178,212,0.3);
      color:#e7eefb;
      box-shadow:0 10px 20px rgba(1,7,13,0.4);
    }
    html[data-theme="dark"] .primary-btn.sequence-btn{
      background:
        radial-gradient(circle at 20% 0, rgba(87,123,255,0.24), transparent 42%),
        linear-gradient(180deg,rgba(22,37,57,0.98),rgba(12,22,34,0.98));
      border-color:rgba(128,155,255,0.48);
      color:#ecf2ff;
    }
    html[data-theme="dark"] .control-tile{
      background:
        linear-gradient(165deg,rgba(13,22,35,0.92),rgba(9,17,27,0.94));
      border-color:rgba(168,188,221,0.2);
      box-shadow:inset 0 1px 0 rgba(222,236,255,0.07), 0 14px 24px rgba(1,7,13,0.32);
    }
    html[data-theme="dark"] .control-tile-sub{
      color:#9caec8;
    }
    html[data-theme="dark"] .chart-box{
      background:
        radial-gradient(circle at 76% -14%, rgba(84,120,172,0.16), transparent 45%),
        linear-gradient(180deg, rgba(12,21,33,0.94), rgba(8,15,24,0.96));
      border-color:rgba(159,183,220,0.2);
      box-shadow:0 20px 30px rgba(1,6,12,0.52);
    }
    html[data-theme="dark"] .status-card .status-map-panel{
      border-color:rgba(175,195,224,0.24);
      box-shadow:0 20px 36px rgba(1,6,11,0.6);
    }
    html[data-theme="dark"] .status-map-card,
    html[data-theme="dark"] .status-map-rocket-pill,
    html[data-theme="dark"] .status-map-panel .leaflet-popup.status-map-popup .leaflet-popup-content-wrapper{
      background:
        linear-gradient(165deg,rgba(19,31,46,0.78),rgba(11,20,31,0.86));
      border-color:rgba(186,204,233,0.24);
      backdrop-filter:blur(12px) saturate(112%);
      -webkit-backdrop-filter:blur(12px) saturate(112%);
    }
    html[data-theme="dark"] .status-map-rocket-kicker,
    html[data-theme="dark"] .status-map-popup-kicker{
      color:#9ac07e;
    }
    html[data-theme="dark"] .status-map-btn{
      background:rgba(15,25,38,0.86);
      border-color:rgba(170,191,225,0.24);
      color:#d8e6fb;
    }
    html[data-theme="dark"] .status-map-btn:hover{
      background:rgba(25,39,58,0.92);
    }
    html[data-theme="dark"] .countdown-inline-status-pill{
      background:rgba(19,32,47,0.84);
      border-color:rgba(156,178,212,0.28);
      color:#d5e2f8;
    }
    html[data-theme="dark"] .settings-dialog,
    html[data-theme="dark"] .mission-dialog,
    html[data-theme="dark"] .loadcell-dialog,
    html[data-theme="dark"] .inspection-dialog,
    html[data-theme="dark"] .launcher-dialog{
      background:
        radial-gradient(circle at 82% -28%, rgba(81,118,175,0.18), transparent 46%),
        linear-gradient(165deg,rgba(11,19,30,0.97),rgba(8,14,23,0.98));
      border:1px solid rgba(173,193,224,0.24);
      box-shadow:0 28px 48px rgba(1,6,12,0.64);
      backdrop-filter:blur(16px) saturate(116%);
      -webkit-backdrop-filter:blur(16px) saturate(116%);
    }
    html[data-theme="dark"] .settings-select,
    html[data-theme="dark"] .settings-number,
    html[data-theme="dark"] .control-tile-select,
    html[data-theme="dark"] .loadcell-input,
    html[data-theme="dark"] .mission-input{
      background:rgba(11,20,32,0.92);
      border-color:rgba(158,180,215,0.3);
      color:#e7eefb;
    }
    html[data-theme="dark"] .mobile-controls-panel{
      background:
        linear-gradient(180deg,rgba(8,14,22,0.98),rgba(5,10,17,0.98));
      border-top:1px solid rgba(155,176,208,0.22);
      box-shadow:0 -18px 40px rgba(1,6,11,0.6);
    }

    #hardwareView .hardware-card{padding:14px 12px}
    #hardwareView .settings-row{
      flex-direction:column !important;
      align-items:stretch !important;
      gap:10px !important;
    }
    #hardwareView .settings-row > div{
      flex:0 0 auto !important;
      width:100% !important;
      min-width:0 !important;
    }
    #hardwareView .hardware-row-block{
      margin-top:12px !important;
      padding-top:12px !important;
    }
    #hardwareView .settings-btn,
    #hardwareView .settings-number{
      background:#ffffff !important;
      color:#334155 !important;
      border:1px solid rgba(148,163,184,0.72) !important;
      box-shadow:none !important;
      border-radius:12px !important;
    }
    #hardwareView .settings-btn{
      min-height:42px !important;
      padding:9px 12px !important;
      font-size:14px !important;
    }
    #hardwareView .settings-number{
      min-height:42px !important;
      width:100% !important;
      text-align:center !important;
    }
    #hardwareView #swUpdateBtn{width:100% !important}
    #hardwareView .hardware-action-wrap{
      width:100% !important;
      gap:8px !important;
      justify-content:stretch !important;
    }
    #hardwareView .hardware-action-wrap-pyro{
      display:grid !important;
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      align-items:stretch !important;
    }
    #hardwareView #hardwarePyroDurationInput{grid-column:1 / -1 !important}
    #hardwareView #hardwarePyroFireCh1Btn,
    #hardwareView #hardwarePyroFireCh2Btn{width:100% !important}
    #hardwareView .hardware-action-wrap-flash{
      display:grid !important;
      grid-template-columns:1fr !important;
    }
    /* Final hard lock: top row only */
    .mobile-controls-panel{
      --mobile-btn-size:84px;
      --mobile-btn-gap:6px;
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
      overflow:visible !important;
    }
    .mobile-controls-panel .mobile-controls-top-actions{
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      gap:6px !important;
      width:100% !important;
      margin-left:0 !important;
      margin-right:0 !important;
      padding-left:4px !important;
      padding-right:4px !important;
      box-sizing:border-box !important;
    }
    .mobile-controls-panel .mobile-controls-top-actions .mobile-top-action-btn{
      width:78% !important;
      min-width:0 !important;
      max-width:74px !important;
      height:56px !important;
      min-height:56px !important;
      justify-self:center !important;
      box-sizing:border-box !important;
    }
    .mobile-controls-panel .mobile-controls-top-actions .mobile-top-action-sequence.primary-btn.sequence-btn{
      width:100% !important;
      max-width:none !important;
      justify-self:stretch !important;
      padding:8px 12px !important;
      height:56px !important;
      min-height:56px !important;
      box-sizing:border-box !important;
    }
    html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel{
      padding:26px 12px 18px !important;
      gap:10px !important;
      max-height:calc(100dvh - 24px) !important;
      overflow:visible !important;
    }
    html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-slot{
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      row-gap:24px !important;
      overflow:visible !important;
      padding-bottom:24px !important;
    }
    html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-quick-btn{
      height:58px !important;
      min-height:58px !important;
      max-width:74px !important;
    }
    html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-quick-label{
      bottom:-17px !important;
      font-size:10px !important;
      line-height:1.15 !important;
    }
    @media(max-width:380px){
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-slot{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        row-gap:20px !important;
        padding-bottom:20px !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-quick-btn{
        height:52px !important;
        min-height:52px !important;
        max-width:64px !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-quick-icon svg{
        width:20px !important;
        height:20px !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel .mobile-quick-label{
        bottom:-15px !important;
        font-size:9px !important;
      }
    }
    html.phone-landscape-layout .mobile-controls-panel{
      --mobile-btn-size:84px;
      --mobile-btn-gap:6px;
    }
    /* Modal center hard lock: mobile overrides above must not pin dialogs to the top. */
    html body .confirm-overlay:not(.warning-fullscreen),
    html body .reboot-overlay,
    html body .ws-alert-overlay,
    html body .disconnect-overlay,
    html body #settingsOverlay,
    html body #missionOverlay,
    html body #inspectionOverlay,
    html body #loadcellOverlay,
    html body #chipTempOverlay,
    html body #perfOverlay,
    html body #hardwareServoOverlay,
    html body #pyroControlOverlay,
    html body #launcherOverlay,
    html body #wifiConnectOverlay,
    html body #serialConnectOverlay,
    html body #pyroConfirmOverlay,
    html body #rebootConfirmOverlay,
    html body #intelligentMobileReturn{
      align-items:center !important;
      justify-content:center !important;
      padding:16px !important;
    }
    html body .confirm-overlay:not(.warning-fullscreen) > *,
    html body .reboot-overlay > *,
    html body .ws-alert-overlay > *,
    html body .disconnect-overlay > *,
    html body #settingsOverlay > *,
    html body #missionOverlay > *,
    html body #inspectionOverlay > *,
    html body #loadcellOverlay > *,
    html body #chipTempOverlay > *,
    html body #perfOverlay > *,
    html body #hardwareServoOverlay > *,
    html body #pyroControlOverlay > *,
    html body #launcherOverlay > *,
    html body #wifiConnectOverlay > *,
    html body #serialConnectOverlay > *,
    html body #pyroConfirmOverlay > *,
    html body #rebootConfirmOverlay > *,
    html body #intelligentMobileReturn > *{
      margin:auto !important;
    }
    /* Toast final override: keep alerts above every modal/control surface. */
    .toast-container{
      position:fixed !important;
      top:auto !important;
      right:auto !important;
      left:14px !important;
      bottom:16px !important;
      transform:none !important;
      z-index:90000 !important;
      align-items:flex-start !important;
    }
    .toast{
      width:420px !important;
      min-width:420px !important;
      max-width:420px !important;
      height:86px !important;
      min-height:86px !important;
      max-height:86px !important;
      padding:9px 38px 9px 12px !important;
      border-radius:10px !important;
      background:rgba(17,24,39,0.96) !important;
      border:1px solid rgba(148,163,184,0.22) !important;
      border-left:3px solid var(--toast-accent) !important;
      box-shadow:0 6px 14px rgba(2,6,23,0.28) !important;
      color:#f8fafc !important;
      gap:0 !important;
      align-items:center !important;
    }
    .toast::after{content:none !important}
    .toast-body{
      display:flex !important;
      flex-direction:column !important;
      align-items:flex-start !important;
      justify-content:center !important;
      gap:2px !important;
      width:100% !important;
    }
    .toast-title{
      display:block !important;
      font-size:11px !important;
      font-weight:800 !important;
      letter-spacing:.05em !important;
      color:#f8fafc !important;
      line-height:1.2 !important;
    }
    .toast-text{
      font-size:12px !important;
      line-height:1.45 !important;
      font-weight:400 !important;
      color:#cbd5e1 !important;
      white-space:normal !important;
      overflow:visible !important;
      text-overflow:clip !important;
      word-break:keep-all !important;
      padding-right:0 !important;
    }
    .toast-close{
      display:flex !important;
      position:absolute !important;
      right:10px !important;
      top:50% !important;
      transform:translateY(-50%) !important;
      width:18px !important;
      height:18px !important;
      align-items:center !important;
      justify-content:center !important;
      border:none !important;
      background:transparent !important;
      color:#94a3b8 !important;
      font-size:16px !important;
      line-height:1 !important;
      padding:0 !important;
      margin:0 !important;
      border-radius:0 !important;
      box-shadow:none !important;
      cursor:pointer !important;
    }
    .toast-close:hover{color:#e2e8f0 !important}
    .toast-icon{
      display:none !important;
      width:0 !important;
      height:0 !important;
      min-width:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      border:none !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      overflow:hidden !important;
    }
    .toast-icon::after{content:none !important}
    .toast-icon img{display:none !important}
    .toast-icon svg,
    .toast-icon svg *{
      fill:none !important;
      stroke:#334155 !important;
      stroke-width:1.45 !important;
      stroke-linecap:round !important;
      stroke-linejoin:round !important;
      vector-effect:non-scaling-stroke;
    }
    .toast-icon svg{
      width:28px !important;
      height:28px !important;
      display:block !important;
      opacity:.95 !important;
    }
    .toast-expanded{
      width:420px !important;
      min-width:420px !important;
      max-width:420px !important;
      height:86px !important;
      min-height:86px !important;
      max-height:86px !important;
      padding:9px 38px 9px 12px !important;
      border-radius:10px !important;
      background:rgba(17,24,39,0.96) !important;
      box-shadow:0 6px 14px rgba(2,6,23,0.28) !important;
    }
    .toast-expanded .toast-text{
      font-size:12px !important;
      line-height:1.45 !important;
      font-weight:400 !important;
      white-space:normal !important;
      overflow:visible !important;
      text-overflow:clip !important;
    }
    .toast-success .toast-title{color:#86efac !important}
    .toast-warn .toast-title{color:#fbbf24 !important}
    .toast-error .toast-title{color:#f87171 !important}
    .toast-ignite .toast-title{color:#fdba74 !important}

    /* Global icon simplification (line style) */
    .side-nav-item svg,
    .side-nav-action svg,
    .side-nav-btn svg,
    .mobile-top-action-btn svg,
    .mobile-controls-panel .mobile-quick-icon svg,
    .controls-toolbar-icon svg,
    .controls-gear-btn svg,
    .status-compact-clock svg,
    .status-compact-link svg,
    .status-compact-settings svg,
    .replay-dropzone-icon svg,
    .replay-icon-btn svg,
    .conn-icon{
      fill:none !important;
      stroke:currentColor !important;
      stroke-width:1.6 !important;
      stroke-linecap:round !important;
      stroke-linejoin:round !important;
      vector-effect:non-scaling-stroke;
    }
    @media(min-width:761px){
      #hardwareView .shell{
        width:100%;
        max-width:none;
        margin:0;
        display:grid;
        grid-template-columns:minmax(360px, 470px) minmax(320px, 1fr);
        align-items:stretch;
        gap:16px;
      }
      #hardwareView .hardware-card{
        width:100%;
        max-width:760px;
        margin:0;
        height:100%;
      }
      #hardwareView .hardware-empty-card{
        width:100%;
        height:100%;
        border:1px solid rgba(148,163,184,0.28);
        border-radius:18px;
        background:rgba(255,255,255,0.45);
      }
    }
    @media(max-width:600px){
      .toast-container{
        top:auto !important;
        left:50% !important;
        right:auto !important;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
        width:calc(100vw - 28px) !important;
        max-width:420px !important;
        max-height:min(34dvh, 240px) !important;
        transform:translateX(-50%) !important;
        align-items:center !important;
        gap:8px !important;
        overflow-y:auto !important;
        overscroll-behavior:contain !important;
      }
      body.mobile-board-header-active .toast-container{
        top:auto !important;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
      }
      .toast{
        width:100% !important;
        min-width:0 !important;
        max-width:min(420px, calc(100vw - 24px)) !important;
        height:auto !important;
        min-height:54px !important;
        max-height:none !important;
        margin:0 auto !important;
        padding:11px 42px 11px 14px !important;
        border-radius:8px !important;
        background:rgba(18,18,18,0.96) !important;
        box-shadow:0 10px 26px rgba(0,0,0,0.28) !important;
        -webkit-backdrop-filter:blur(12px);
        backdrop-filter:blur(12px);
      }
      .toast-icon{display:none !important}
      .toast-body{gap:4px !important}
      .toast-title{
        font-size:10px !important;
        line-height:1.15 !important;
        letter-spacing:.06em !important;
      }
      .toast-text{
        display:-webkit-box !important;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden !important;
        font-size:12px !important;
        line-height:1.35 !important;
        color:#e5e7eb !important;
      }
      .toast-close{
        right:7px !important;
        width:30px !important;
        height:30px !important;
        border-radius:8px !important;
        font-size:18px !important;
      }
      .toast-expanded{
        width:100% !important;
        min-width:0 !important;
        max-width:min(420px, calc(100vw - 24px)) !important;
        height:auto !important;
        min-height:54px !important;
        max-height:none !important;
        padding:12px 42px 12px 14px !important;
        border-radius:8px !important;
      }
      .toast-expanded .toast-text{
        display:block !important;
        max-height:32dvh !important;
        overflow:auto !important;
      }
    }
    html.mobile-controls-active .toast-container,
    html.phone-landscape-layout .toast-container,
    html.settings-open .toast-container{
      top:calc(env(safe-area-inset-top, 0px) + 14px) !important;
      right:auto !important;
      bottom:auto !important;
      left:50% !important;
      transform:translateX(-50%) !important;
      width:min(640px, calc(100vw - 32px)) !important;
      align-items:center !important;
      z-index:90000 !important;
    }
    html.mobile-controls-active .toast,
    html.phone-landscape-layout .toast,
    html.settings-open .toast{
      width:min(420px, calc(100vw - 32px)) !important;
      min-width:0 !important;
      max-width:min(420px, calc(100vw - 32px)) !important;
    }
    @media(max-width:600px){
      html.mobile-controls-active .toast-container,
      html.settings-open .toast-container{
        top:auto !important;
        right:auto !important;
        bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
        left:50% !important;
        transform:translateX(-50%) !important;
        width:calc(100vw - 28px) !important;
        max-width:420px !important;
        align-items:center !important;
      }
    }

    /* Pyro CH buttons hard lock: 1 row x 4 on desktop+mobile */
    #hardwareView .hardware-action-wrap.hardware-action-wrap-pyro{
      display:grid !important;
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      gap:8px !important;
      align-items:stretch !important;
    }
    #hardwareView #hardwarePyroDurationInput{
      grid-column:1 / -1 !important;
    }
    #hardwareView .hardware-pyro-duration-row{
      grid-column:1 / -1 !important;
      display:flex;
      align-items:center;
      gap:10px;
      width:100%;
      flex-wrap:nowrap;
    }
    #hardwareView .hardware-pyro-duration-row #hardwarePyroDurationInput{
      flex:1 1 auto;
      width:100% !important;
      min-width:0;
    }
    #hardwareView .hardware-pyro-presets{
      display:inline-flex;
      align-items:center;
      gap:6px;
      flex:0 0 auto;
    }
    #hardwareView .hardware-pyro-preset-btn{
      height:34px;
      min-width:58px;
      padding:0 12px;
      border-radius:10px;
      border:1px solid rgba(148,163,184,0.55);
      background:#ffffff;
      color:#334155;
      font-size:13px;
      font-weight:700;
      line-height:1;
      white-space:nowrap;
    }
    #hardwareView .hardware-pyro-preset-btn:hover{
      border-color:rgba(99,102,241,0.66);
      color:#1e3a8a;
      background:#f8fafc;
    }
    #hardwareView #hardwarePyroFireCh1Btn,
    #hardwareView #hardwarePyroFireCh2Btn{
      grid-column:auto !important;
      width:100% !important;
      min-width:0 !important;
    }
    @media (max-width:900px){
      #hardwareView .hardware-action-wrap.hardware-action-wrap-pyro{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      }
      #hardwareView .hardware-pyro-duration-row{
        flex-wrap:nowrap;
        gap:8px;
      }
      #hardwareView .hardware-pyro-duration-row #hardwarePyroDurationInput{
        flex:0 1 46% !important;
        width:46% !important;
        max-width:46% !important;
        min-width:0 !important;
      }
      #hardwareView .hardware-pyro-presets{
        flex:0 0 auto;
        width:auto !important;
        justify-content:flex-start;
        gap:6px;
        white-space:nowrap;
      }
      #hardwareView .hardware-pyro-preset-btn{
        height:34px;
        min-width:56px;
        padding:0 10px;
        font-size:12px;
      }
      #hardwareView #hardwarePyroFireCh1Btn,
      #hardwareView #hardwarePyroFireCh2Btn{
        min-height:58px !important;
        padding:8px 6px !important;
        font-size:13px !important;
        line-height:1.15 !important;
      }
    }
    #pyroConfirmOverlay{
      align-items:center !important;
      justify-content:center !important;
      padding:max(10px, env(safe-area-inset-top, 10px)) 10px max(10px, env(safe-area-inset-bottom, 10px)) !important;
    }

    /* Disconnect modal: remove box and keep centered */
    #disconnectOverlay{
      display:flex;
      align-items:center !important;
      justify-content:center !important;
    }
    #disconnectOverlay .disconnect-dialog{
      background:transparent !important;
      border:none !important;
      box-shadow:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
      min-width:0 !important;
      width:min(92vw, 420px) !important;
      max-width:min(92vw, 420px) !important;
      padding:0 !important;
      margin:0 auto !important;
      text-align:center !important;
    }
    #disconnectOverlay .disconnect-title{
      margin-top:10px !important;
      color:#f8fafc !important;
    }
    #disconnectOverlay .disconnect-text{
      color:#cbd5e1 !important;
    }
    #disconnectOverlay .disconnect-actions{
      margin-top:12px !important;
    }
    #disconnectOverlay .ground-waiting-actions{
      display:none;
      justify-content:center;
      margin-top:16px;
    }
    #disconnectOverlay.is-ground-waiting .disconnect-actions{
      display:none !important;
    }
    #disconnectOverlay.is-ground-waiting .ground-waiting-actions{
      display:flex !important;
    }
    #disconnectOverlay .ground-waiting-icon{
      display:none !important;
    }
    #disconnectOverlay.is-ground-waiting .disconnect-state-icon{
      display:none !important;
    }
    #disconnectOverlay.is-ground-waiting .ground-waiting-icon{
      display:block !important;
    }
    .connection-guide-overlay{
      position:fixed;
      inset:0;
      z-index:7000;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:16px;
      background:rgba(0,0,0,.72);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
    }
    .connection-guide-overlay.hidden{
      display:none !important;
    }
    .connection-guide-dialog{
      width:min(100%,520px);
      max-height:calc(100dvh - 32px);
      display:flex;
      flex-direction:column;
      overflow:hidden;
      border:1px solid #303030;
      border-radius:12px;
      background:#111;
      color:#f5f5f5;
      box-shadow:0 24px 70px rgba(0,0,0,.55);
    }
    .connection-guide-header{
      min-height:72px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      padding:15px 18px;
      border-bottom:1px solid #292929;
    }
    .connection-guide-kicker{
      margin-bottom:4px;
      color:#777;
      font-size:9px;
      line-height:1;
      font-weight:850;
      letter-spacing:.12em;
    }
    .connection-guide-header h2{
      margin:0;
      color:#f5f5f5;
      font-size:20px;
      line-height:1.15;
      font-weight:850;
      letter-spacing:0;
    }
    .connection-guide-close{
      position:relative;
      width:38px;
      height:38px;
      flex:0 0 38px;
      border:0;
      border-radius:8px;
      background:#222;
      color:#d5d5d5;
      font-size:25px;
      line-height:1;
      cursor:pointer;
    }
    .connection-guide-tabs{
      display:grid;
      grid-template-columns:1fr 1fr;
      align-items:center;
      gap:4px;
      min-height:52px;
      box-sizing:border-box;
      margin:14px 18px 0;
      padding:4px;
      border:1px solid #2d2d2d;
      border-radius:8px;
      background:#0b0b0b;
    }
    .connection-guide-tabs button{
      min-width:0;
      width:100%;
      height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      align-self:center;
      gap:8px;
      padding:0 10px;
      margin:0;
      box-sizing:border-box;
      border:0;
      border-radius:6px;
      background:transparent;
      color:#898989;
      font-size:13px;
      line-height:1;
      font-weight:800;
      letter-spacing:0;
      cursor:pointer;
    }
    .connection-guide-tabs button.is-active{
      background:#262626;
      color:#f5f5f5;
    }
    .connection-guide-tabs svg{
      width:19px;
      height:19px;
      flex:0 0 19px;
      display:block;
      fill:none;
      stroke:currentColor;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .connection-guide-tabs button span{
      min-height:19px;
      display:inline-flex;
      align-items:center;
      line-height:19px;
    }
    .connection-guide-content{
      min-height:0;
      display:none;
      overflow-y:auto;
      padding:18px 18px 4px;
    }
    .connection-guide-content.is-active{
      display:block;
    }
    .connection-guide-summary{
      display:flex;
      flex-direction:column;
      gap:5px;
      padding-bottom:16px;
    }
    .connection-guide-summary strong{
      color:#f2f2f2;
      font-size:17px;
      line-height:1.25;
      font-weight:850;
    }
    .connection-guide-summary span{
      color:#999;
      font-size:12px;
      line-height:1.45;
      font-weight:620;
    }
    .connection-guide-steps{
      list-style:none;
      margin:0;
      padding:0;
      border-top:1px solid #2a2a2a;
    }
    .connection-guide-steps li{
      display:grid;
      grid-template-columns:28px minmax(0,1fr);
      gap:12px;
      align-items:start;
      padding:13px 0;
      border-bottom:1px solid #242424;
    }
    .connection-guide-steps b{
      width:28px;
      height:28px;
      display:flex;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
      padding:0;
      border-radius:7px;
      background:#303030;
      color:#f0f0f0;
      font-size:12px;
      line-height:1;
      font-weight:900;
      font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-variant-numeric:tabular-nums;
      text-align:center;
    }
    .connection-guide-steps div{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:4px;
    }
    .connection-guide-steps div strong{
      color:#ededed;
      font-size:13px;
      line-height:1.25;
      font-weight:800;
    }
    .connection-guide-steps div span{
      color:#999;
      font-size:12px;
      line-height:1.5;
      font-weight:600;
      overflow-wrap:anywhere;
    }
    .connection-guide-steps code{
      color:#cfe0ff;
      font-size:11px;
    }
    .connection-guide-note{
      display:grid;
      gap:4px;
      margin-top:14px;
      padding:11px 12px;
      border-left:3px solid #4f83ff;
      background:#191919;
    }
    .connection-guide-note strong{
      color:#e7e7e7;
      font-size:12px;
      line-height:1.3;
      font-weight:800;
    }
    .connection-guide-note span{
      color:#9d9d9d;
      font-size:11px;
      line-height:1.5;
      font-weight:600;
    }
    .connection-guide-footer{
      padding:14px 18px 18px;
    }
    .connection-guide-action{
      width:100%;
      min-height:48px;
      border:0;
      border-radius:8px;
      background:#f1f1f1;
      color:#111;
      font-size:14px;
      font-weight:850;
      letter-spacing:0;
      cursor:pointer;
    }
    @media(max-width:600px), (max-width:900px) and (orientation:landscape){
      .connection-guide-overlay{
        align-items:flex-end;
        justify-content:center;
        padding:0;
      }
      .connection-guide-dialog{
        width:100vw;
        max-width:100vw;
        max-height:90dvh;
        margin:0;
        border-right:0;
        border-bottom:0;
        border-left:0;
        border-radius:14px 14px 0 0;
      }
      .connection-guide-header{
        min-height:64px;
        padding:12px 14px;
      }
      .connection-guide-tabs{
        margin:12px 14px 0;
      }
      .connection-guide-content{
        padding:15px 14px 2px;
      }
      .connection-guide-footer{
        padding:12px 14px max(14px, env(safe-area-inset-bottom, 0px));
      }
    }

    /* Graphite dark mode final pass */
    html[data-theme="dark"]{
      --bg:#050505;
      --bg-soft:#111111;
      --card-bg:rgba(18,18,18,0.94);
      --card-glass-border-outer:rgba(255,255,255,0.10);
      --card-glass-border-inner:rgba(115,115,115,0.34);
      --card-shadow:0 22px 42px rgba(0,0,0,0.58);
      --text-main:#f3f4f6;
      --text-soft:#a3a3a3;
      --text-mono:#d4d4d8;
      --accent:#d4d4d8;
      --accent-soft:rgba(229,231,235,0.10);
      --accent-strong:#fafafa;
      --border-subtle:rgba(115,115,115,0.42);
      --border-strong:rgba(163,163,163,0.62);
      --ui-bg:#050505;
      --ui-surface:#111111;
      --ui-line:rgba(115,115,115,0.30);
      --ui-text:#f3f4f6;
      --ui-muted:#a3a3a3;
      --ui-accent:#d4d4d8;
      --ui-accent-soft:rgba(229,231,235,0.10);
      --ui-glass-1:rgba(20,20,20,0.82);
      --ui-glass-2:rgba(10,10,10,0.94);
      --ui-glass-line:rgba(163,163,163,0.20);
      --ui-glass-highlight:rgba(255,255,255,0.07);
      --ui-shadow:0 24px 42px rgba(0,0,0,0.62);
    }
    html[data-theme="dark"] body{
      background:
        radial-gradient(880px 520px at 15% -18%, rgba(82,82,82,0.24), transparent 62%),
        radial-gradient(720px 480px at 92% -14%, rgba(64,64,64,0.18), transparent 64%),
        linear-gradient(180deg,#080808 0%, #050505 48%, #000000 100%) !important;
      color:var(--text-main);
    }
    html[data-theme="dark"] body::before{
      background:linear-gradient(180deg,rgba(0,0,0,0.78) 0,rgba(0,0,0,0.24) 58%,rgba(0,0,0,0) 100%) !important;
    }
    html[data-theme="dark"] #splash{
      background:#050505;
    }
    html[data-theme="dark"] #splashLoading{
      color:#a3a3a3;
    }
    html[data-theme="dark"] .splash-logo{
      filter:drop-shadow(0 12px 24px rgba(0,0,0,0.5));
    }
    html[data-theme="dark"] .side-nav-mobile{
      background:linear-gradient(180deg,rgba(15,15,15,0.98),rgba(5,5,5,0.98)) !important;
      border-color:rgba(115,115,115,0.28) !important;
      box-shadow:10px 0 30px rgba(0,0,0,0.58) !important;
    }
    html[data-theme="dark"] .side-nav-logo{
      background:transparent !important;
      border-color:transparent !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .side-nav-item,
    html[data-theme="dark"] .side-nav-action,
    html[data-theme="dark"] .side-nav-btn{
      color:#a3a3a3;
    }
    html[data-theme="dark"] .side-nav-item.active,
    html[data-theme="dark"] .side-nav-btn.is-active,
    html[data-theme="dark"] .side-nav-action.is-active{
      background:rgba(229,231,235,0.10) !important;
      border-color:rgba(229,231,235,0.18) !important;
      color:#fafafa !important;
      text-shadow:none !important;
    }
    html[data-theme="dark"] .side-nav-item:hover:not(.active),
    html[data-theme="dark"] .side-nav-action:hover,
    html[data-theme="dark"] .side-nav-btn:hover{
      background:rgba(115,115,115,0.20) !important;
      color:#f5f5f5 !important;
    }
    html[data-theme="dark"] .page-title,
    html[data-theme="dark"] .title-main{
      color:#fafafa !important;
      text-shadow:none !important;
    }
    html[data-theme="dark"] .page-kicker,
    html[data-theme="dark"] .title-sub{
      color:#a3a3a3 !important;
    }
    html[data-theme="dark"] .card-base,
    html[data-theme="dark"] .main-card,
    html[data-theme="dark"] .log-card,
    html[data-theme="dark"] .settings-dialog,
    html[data-theme="dark"] .mission-dialog,
    html[data-theme="dark"] .loadcell-dialog,
    html[data-theme="dark"] .inspection-dialog,
    html[data-theme="dark"] .launcher-dialog,
    html[data-theme="dark"] .confirm-dialog,
    html[data-theme="dark"] .reboot-dialog{
      background:
        linear-gradient(165deg,rgba(24,24,27,0.94),rgba(9,9,11,0.98)) !important;
      border-color:rgba(115,115,115,0.28) !important;
      box-shadow:0 24px 44px rgba(0,0,0,0.58) !important;
      color:#f3f4f6 !important;
    }
    html[data-theme="dark"] .main-card.status-card.status-map-only{
      background:transparent !important;
      border:none !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .card-base::after{
      background:radial-gradient(circle at 0 0,rgba(255,255,255,0.08),transparent 56%);
      opacity:.7;
    }
    html[data-theme="dark"] .card-title,
    html[data-theme="dark"] .section-label,
    html[data-theme="dark"] .settings-label{
      color:#d4d4d8 !important;
    }
    html[data-theme="dark"] .settings-desc,
    html[data-theme="dark"] .hint-mini,
    html[data-theme="dark"] .countdown-sub,
    html[data-theme="dark"] .status-sub-label{
      color:#a3a3a3 !important;
    }
    html[data-theme="dark"] .control-tile,
    html[data-theme="dark"] .item,
    html[data-theme="dark"] .status-metric,
    html[data-theme="dark"] .chart-box,
    html[data-theme="dark"] .replay-panel,
    html[data-theme="dark"] .inspection-status-card,
    html[data-theme="dark"] .loadcell-card{
      background:linear-gradient(165deg,rgba(23,23,23,0.96),rgba(10,10,10,0.98)) !important;
      border-color:rgba(115,115,115,0.26) !important;
      box-shadow:0 18px 34px rgba(0,0,0,0.46) !important;
    }
    html[data-theme="dark"] .status-sub-value,
    html[data-theme="dark"] .status-countdown-inline #countdownMobile,
    html[data-theme="dark"] .status-countdown-inline .countdown-mobile,
    html[data-theme="dark"] .status-metric-value,
    html[data-theme="dark"] .value,
    html[data-theme="dark"] .label{
      color:#f5f5f5 !important;
    }
    html[data-theme="dark"] .status-conn-block,
    html[data-theme="dark"] .status-bar .status-battery,
    html[data-theme="dark"] .status-bar .status-chiptemp,
    html[data-theme="dark"] .chip,
    html[data-theme="dark"] .pill,
    html[data-theme="dark"] .card-badge,
    html[data-theme="dark"] .status-map-card,
    html[data-theme="dark"] .status-map-btn,
    html[data-theme="dark"] .status-map-rocket-pill{
      background:rgba(18,18,18,0.88) !important;
      border-color:rgba(115,115,115,0.30) !important;
      color:#e5e7eb !important;
      box-shadow:0 10px 22px rgba(0,0,0,0.42) !important;
    }
    html[data-theme="dark"] .status-bar.is-online .status-conn-block{
      background:rgba(20,83,45,0.24) !important;
      border-color:rgba(34,197,94,0.34) !important;
    }
    html[data-theme="dark"] .status-bar.is-offline .status-conn-block{
      background:rgba(38,38,38,0.86) !important;
    }
    html[data-theme="dark"] .status-conn-text,
    html[data-theme="dark"] .battery-text,
    html[data-theme="dark"] .chiptemp-text,
    html[data-theme="dark"] .chip-value{
      color:#e5e7eb !important;
    }
    html[data-theme="dark"] .chiptemp-label,
    html[data-theme="dark"] .chip-label,
    html[data-theme="dark"] .status-metric-value .unit,
    html[data-theme="dark"] .value .unit{
      color:#a3a3a3 !important;
    }
    html[data-theme="dark"] .battery-icon{
      border-color:#d4d4d8 !important;
    }
    html[data-theme="dark"] .battery-icon::after,
    html[data-theme="dark"] .battery-fill{
      background:#d4d4d8 !important;
    }
    html[data-theme="dark"] .toolbar-btn,
    html[data-theme="dark"] .settings-btn,
    html[data-theme="dark"] .settings-inline-btn,
    html[data-theme="dark"] .chart-btn,
    html[data-theme="dark"] .term-copy-btn,
    html[data-theme="dark"] .terminal-send-btn,
    html[data-theme="dark"] #hardwareView .hardware-pyro-preset-btn{
      background:linear-gradient(180deg,#262626,#171717) !important;
      border-color:rgba(115,115,115,0.42) !important;
      color:#f3f4f6 !important;
      box-shadow:0 10px 18px rgba(0,0,0,0.36) !important;
    }
    html[data-theme="dark"] .toolbar-btn:hover,
    html[data-theme="dark"] .settings-btn:hover,
    html[data-theme="dark"] .settings-inline-btn:hover,
    html[data-theme="dark"] .chart-btn:hover,
    html[data-theme="dark"] #hardwareView .hardware-pyro-preset-btn:hover{
      background:#303030 !important;
      border-color:rgba(212,212,216,0.46) !important;
      color:#ffffff !important;
    }
    html[data-theme="dark"] .settings-select,
    html[data-theme="dark"] .settings-number,
    html[data-theme="dark"] .control-tile-select,
    html[data-theme="dark"] .mission-input,
    html[data-theme="dark"] .loadcell-input,
    html[data-theme="dark"] .hardware-servo-preset-input,
    html[data-theme="dark"] .terminal-input,
    html[data-theme="dark"] input[type="text"],
    html[data-theme="dark"] input[type="number"],
    html[data-theme="dark"] select,
    html[data-theme="dark"] textarea{
      background:#0a0a0a !important;
      border-color:rgba(115,115,115,0.42) !important;
      color:#f3f4f6 !important;
    }
    html[data-theme="dark"] input::placeholder,
    html[data-theme="dark"] textarea::placeholder{
      color:#737373 !important;
    }
    html[data-theme="dark"] input:focus,
    html[data-theme="dark"] select:focus,
    html[data-theme="dark"] textarea:focus{
      border-color:rgba(229,231,235,0.62) !important;
      box-shadow:0 0 0 3px rgba(229,231,235,0.12) !important;
      outline:none;
    }
    html[data-theme="dark"] .slider{
      background:#171717 !important;
      border-color:rgba(115,115,115,0.48) !important;
    }
    html[data-theme="dark"] input:checked + .slider{
      background:#f5f5f5 !important;
      border-color:#f5f5f5 !important;
    }
    html[data-theme="dark"] input:checked + .slider::before{
      background:#050505 !important;
    }
    html[data-theme="dark"] .terminal-header,
    html[data-theme="dark"] .terminal-shell,
    html[data-theme="dark"] #logView{
      background:#050505 !important;
      border-color:rgba(115,115,115,0.28) !important;
    }
    html[data-theme="dark"] .terminal-prompt,
    html[data-theme="dark"] .term-title{
      color:#a3a3a3 !important;
    }
    html[data-theme="dark"] .settings-overlay,
    html[data-theme="dark"] .confirm-overlay,
    html[data-theme="dark"] .reboot-overlay,
    html[data-theme="dark"] .disconnect-overlay,
    html[data-theme="dark"] .controls-overlay{
      background:rgba(0,0,0,0.78) !important;
    }
    html[data-theme="dark"] .disconnect-title,
    html[data-theme="dark"] .confirm-title,
    html[data-theme="dark"] .settings-title,
    html[data-theme="dark"] .mission-title,
    html[data-theme="dark"] .launcher-title{
      color:#fafafa !important;
    }
    html[data-theme="dark"] .disconnect-text,
    html[data-theme="dark"] .confirm-text,
    html[data-theme="dark"] .confirm-note,
    html[data-theme="dark"] .mission-sub,
    html[data-theme="dark"] .launcher-note{
      color:#c7c7c7 !important;
    }
    html[data-theme="dark"] .mobile-controls-panel{
      background:linear-gradient(180deg,rgba(15,15,15,0.98),rgba(5,5,5,0.98)) !important;
      border-color:rgba(115,115,115,0.28) !important;
      box-shadow:0 -20px 42px rgba(0,0,0,0.62) !important;
    }
    html[data-theme="dark"] .hardware-empty-card{
      background:rgba(18,18,18,0.74) !important;
      border-color:rgba(115,115,115,0.28) !important;
    }

    /* Monochrome dark mode hard pass: black background, gray surfaces, no gradients. */
    html[data-theme="dark"] *,
    html[data-theme="dark"] *::before,
    html[data-theme="dark"] *::after{
      background-image:none !important;
      box-shadow:none !important;
      text-shadow:none !important;
      letter-spacing:0;
    }
    html[data-theme="dark"],
    html[data-theme="dark"] body{
      background:#000000 !important;
      color:#f5f5f5 !important;
    }
    html[data-theme="dark"] body::before,
    html[data-theme="dark"] .card-base::before,
    html[data-theme="dark"] .card-base::after,
    html[data-theme="dark"] .settings-dialog::before,
    html[data-theme="dark"] .settings-dialog::after,
    html[data-theme="dark"] .mission-dialog::before,
    html[data-theme="dark"] .mission-dialog::after,
    html[data-theme="dark"] .loadcell-dialog::before,
    html[data-theme="dark"] .loadcell-dialog::after,
    html[data-theme="dark"] .inspection-dialog::before,
    html[data-theme="dark"] .inspection-dialog::after,
    html[data-theme="dark"] .launcher-dialog::before,
    html[data-theme="dark"] .launcher-dialog::after,
    html[data-theme="dark"] .confirm-dialog::before,
    html[data-theme="dark"] .confirm-dialog::after{
      background:transparent !important;
      opacity:0 !important;
    }
    html[data-theme="dark"] #splash,
    html[data-theme="dark"] .terminal-shell,
    html[data-theme="dark"] .terminal-header,
    html[data-theme="dark"] #logView{
      background:#000000 !important;
      border-color:#2a2a2a !important;
    }
    html[data-theme="dark"] .side-nav-mobile,
    html[data-theme="dark"] .mobile-controls-panel{
      background:#080808 !important;
      border-color:#2b2b2b !important;
      box-shadow:none !important;
    }
    @media(max-width:600px){
      html[data-theme="dark"] .side-nav-mobile{
        background:#080808 !important;
        border:none !important;
        border-top:1px solid #2b2b2b !important;
        border-radius:0 !important;
      }
    }
    html[data-theme="dark"] .side-nav-item:hover:not(.active),
    html[data-theme="dark"] .side-nav-action:hover,
    html[data-theme="dark"] .side-nav-btn:hover{
      background:#1f1f1f !important;
      border-color:#343434 !important;
    }
    html[data-theme="dark"] .side-nav-item.active,
    html[data-theme="dark"] .side-nav-btn.is-active,
    html[data-theme="dark"] .side-nav-action.is-active{
      background:transparent !important;
      border-color:transparent !important;
      color:#3b82f6 !important;
    }
    html[data-theme="dark"] .side-nav-item svg,
    html[data-theme="dark"] .side-nav-action svg,
    html[data-theme="dark"] .side-nav-btn svg{
      width:23px !important;
      height:23px !important;
      min-width:23px !important;
      min-height:23px !important;
      stroke:currentColor !important;
      stroke-width:2 !important;
    }
    html[data-theme="dark"] .side-nav-item svg *,
    html[data-theme="dark"] .side-nav-action svg *,
    html[data-theme="dark"] .side-nav-btn svg *{
      fill:currentColor !important;
      fill-opacity:.16 !important;
      stroke:currentColor !important;
      stroke-opacity:.96 !important;
      stroke-width:2 !important;
      stroke-linecap:round !important;
      stroke-linejoin:round !important;
    }
    html[data-theme="dark"] .side-nav-item.active svg,
    html[data-theme="dark"] .side-nav-btn.is-active svg,
    html[data-theme="dark"] .side-nav-action.is-active svg{
      width:24px !important;
      height:24px !important;
      min-width:24px !important;
      min-height:24px !important;
      stroke-width:2.08 !important;
    }
    html[data-theme="dark"] .side-nav-item.active svg *,
    html[data-theme="dark"] .side-nav-btn.is-active svg *,
    html[data-theme="dark"] .side-nav-action.is-active svg *{
      fill:currentColor !important;
      fill-opacity:.26 !important;
      stroke-width:2.08 !important;
      stroke-opacity:1 !important;
    }
    html[data-theme="dark"] .card-base,
    html[data-theme="dark"] .main-card,
    html[data-theme="dark"] .control-tile,
    html[data-theme="dark"] .item,
    html[data-theme="dark"] .status-metric,
    html[data-theme="dark"] .chart-box,
    html[data-theme="dark"] .replay-panel,
    html[data-theme="dark"] .log-card,
    html[data-theme="dark"] .settings-dialog,
    html[data-theme="dark"] .mission-dialog,
    html[data-theme="dark"] .loadcell-dialog,
    html[data-theme="dark"] .inspection-dialog,
    html[data-theme="dark"] .launcher-dialog,
    html[data-theme="dark"] .confirm-dialog,
    html[data-theme="dark"] .reboot-dialog,
    html[data-theme="dark"] .disconnect-dialog,
    html[data-theme="dark"] .inspection-status-card,
    html[data-theme="dark"] .loadcell-card,
    html[data-theme="dark"] .hardware-empty-card{
      background:#151515 !important;
      border-color:#333333 !important;
      box-shadow:none !important;
      color:#f5f5f5 !important;
    }
    html[data-theme="dark"] .main-card.status-card.status-map-only{
      background:transparent !important;
      border:none !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .status-map-panel,
    html[data-theme="dark"] .status-gyro-canvas--navball,
    html[data-theme="dark"] .mission-block-editor,
    html[data-theme="dark"] .mission-block-canvas,
    html[data-theme="dark"] .mission-block-palette,
    html[data-theme="dark"] .mission-preset-viewport{
      background:#101010 !important;
      border-color:#303030 !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .status-gyro-canvas--3d{
      background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        radial-gradient(140% 110% at 50% 0%, rgba(66,94,134,0.18), rgba(6,14,27,0.16) 66%),
        rgba(18,18,18,.08) !important;
      border-color:rgba(255,255,255,.18) !important;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
      backdrop-filter:saturate(175%) blur(64px);
      -webkit-backdrop-filter:saturate(175%) blur(64px);
    }
    html[data-theme="dark"] .status-map-canvas.status-map-canvas--offline,
    html[data-theme="dark"] .status-map-offline,
    html[data-theme="dark"] .status-map-offline-kr,
    html[data-theme="dark"] .status-map-offline-jeju{
      background:#181818 !important;
      border-color:#363636 !important;
    }
    html[data-theme="dark"] .status-map-offline-label,
    html[data-theme="dark"] .status-map-offline-badge,
    html[data-theme="dark"] .status-map-card,
    html[data-theme="dark"] .status-map-btn,
    html[data-theme="dark"] .status-map-rocket-pill,
    html[data-theme="dark"] .status-gyro-btn,
    html[data-theme="dark"] .status-conn-block,
    html[data-theme="dark"] .status-bar .status-battery,
    html[data-theme="dark"] .status-bar .status-chiptemp,
    html[data-theme="dark"] .chip,
    html[data-theme="dark"] .pill,
    html[data-theme="dark"] .card-badge,
    html[data-theme="dark"] .toast{
      background:#202020 !important;
      border-color:#3d3d3d !important;
      color:#eeeeee !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .toolbar-btn,
    html[data-theme="dark"] .primary-btn,
    html[data-theme="dark"] .secondary-btn,
    html[data-theme="dark"] .settings-btn,
    html[data-theme="dark"] .settings-inline-btn,
    html[data-theme="dark"] .chart-btn,
    html[data-theme="dark"] .term-copy-btn,
    html[data-theme="dark"] .terminal-send-btn,
    html[data-theme="dark"] .launcher-arrow-btn,
    html[data-theme="dark"] .panel-action-btn,
    html[data-theme="dark"] .mission-quick-btn,
    html[data-theme="dark"] #hardwareView .hardware-pyro-preset-btn{
      background:#262626 !important;
      border-color:#454545 !important;
      color:#f5f5f5 !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .toolbar-btn:hover,
    html[data-theme="dark"] .primary-btn:hover,
    html[data-theme="dark"] .secondary-btn:hover,
    html[data-theme="dark"] .settings-btn:hover,
    html[data-theme="dark"] .settings-inline-btn:hover,
    html[data-theme="dark"] .chart-btn:hover,
    html[data-theme="dark"] .launcher-arrow-btn:hover,
    html[data-theme="dark"] .panel-action-btn:hover,
    html[data-theme="dark"] .mission-quick-btn:hover,
    html[data-theme="dark"] #hardwareView .hardware-pyro-preset-btn:hover{
      background:#333333 !important;
      border-color:#5a5a5a !important;
      color:#ffffff !important;
    }
    html[data-theme="dark"] .settings-select,
    html[data-theme="dark"] .settings-number,
    html[data-theme="dark"] .control-tile-select,
    html[data-theme="dark"] .mission-input,
    html[data-theme="dark"] .loadcell-input,
    html[data-theme="dark"] .hardware-servo-preset-input,
    html[data-theme="dark"] .terminal-input,
    html[data-theme="dark"] input[type="text"],
    html[data-theme="dark"] input[type="number"],
    html[data-theme="dark"] input[type="range"],
    html[data-theme="dark"] select,
    html[data-theme="dark"] textarea{
      background:#0f0f0f !important;
      border-color:#3a3a3a !important;
      color:#f3f3f3 !important;
    }
    html[data-theme="dark"] .slider{
      background:#2a2a2a !important;
      border-color:#4a4a4a !important;
    }
    html[data-theme="dark"] input:checked + .slider,
    html[data-theme="dark"] .pill-toggle.is-on{
      background:#d8d8d8 !important;
      border-color:#eeeeee !important;
      color:#080808 !important;
      box-shadow:none !important;
    }
    html[data-theme="dark"] .pill-toggle.is-off{
      background:#2a2a2a !important;
      border-color:#444444 !important;
      color:#c8c8c8 !important;
    }
    html[data-theme="dark"] .settings-overlay,
    html[data-theme="dark"] .confirm-overlay,
    html[data-theme="dark"] .reboot-overlay,
    html[data-theme="dark"] .disconnect-overlay,
    html[data-theme="dark"] .controls-overlay{
      background:rgba(0,0,0,0.86) !important;
    }
    html[data-theme="dark"] .page-title,
    html[data-theme="dark"] .title-main,
    html[data-theme="dark"] .card-title,
    html[data-theme="dark"] .settings-title,
    html[data-theme="dark"] .mission-title,
    html[data-theme="dark"] .confirm-title,
    html[data-theme="dark"] .disconnect-title,
    html[data-theme="dark"] .value,
    html[data-theme="dark"] .label,
    html[data-theme="dark"] .status-metric-value{
      color:#f5f5f5 !important;
    }
    html[data-theme="dark"] .page-kicker,
    html[data-theme="dark"] .title-sub,
    html[data-theme="dark"] .settings-desc,
    html[data-theme="dark"] .hint-mini,
    html[data-theme="dark"] .confirm-text,
    html[data-theme="dark"] .disconnect-text,
    html[data-theme="dark"] .toast-text,
    html[data-theme="dark"] .value .unit,
    html[data-theme="dark"] .status-metric-value .unit{
      color:#a8a8a8 !important;
    }
    html[data-theme="dark"] .splash-logo,
    html[data-theme="dark"] .logo-img{
      filter:none !important;
    }
    .status-gyro-canvas--3d.is-home-mounted{
      width:100% !important;
      height:100% !important;
      min-height:0 !important;
      border:0 !important;
      border-radius:16px !important;
      background:#1b2431 !important;
      box-shadow:none !important;
      display:block !important;
      overflow:hidden !important;
    }
    .status-gyro-canvas--3d.is-home-mounted .gyro3d-canvas{
      width:100% !important;
      height:100% !important;
      display:block;
      border-radius:16px !important;
      clip-path:inset(0 round 16px);
      background:#1b2431 !important;
    }
    .status-gyro-canvas--3d.is-home-mounted .status-gyro-actions{
      top:10px;
      right:10px;
    }
    html[data-theme="dark"] .status-gyro-canvas--3d.is-home-mounted{
      background:#1b2431 !important;
      border-color:transparent !important;
      box-shadow:none !important;
    }

    .mobile-sequence-progress-card{
      display:none;
    }
    .mobile-board-header{
      display:none;
    }
    .mobile-preview-carousel,
    .mobile-gyro-preview-slide,
    .mobile-map-preview-slide{
      display:contents;
    }
    .mobile-device-preview-slide,
    .mobile-chart-preview-slide,
    .mobile-preview-dots{
      display:none;
    }
    @media(max-width:900px) and (pointer:coarse){
      html,
      body,
      .page-wrap{
        scrollbar-width:none;
        -ms-overflow-style:none;
      }
      html::-webkit-scrollbar,
      body::-webkit-scrollbar,
      .page-wrap::-webkit-scrollbar{
        display:none;
        width:0;
        height:0;
      }
      body.mobile-board-header-active{
        --mobile-board-safe-top:env(safe-area-inset-top, 0px);
        --mobile-board-fixed-height:calc(82px + var(--mobile-board-safe-top));
      }
      body.dashboard-view-active{
        --page-pad-y:10px;
        --shell-gap:8px;
        background-color:#000 !important;
        background-image:linear-gradient(180deg, #2f2f2f 0%, #202020 32%, #0f0f0f 68%, rgba(0,0,0,0) 100%) !important;
        background-size:100% 42vh !important;
        background-repeat:no-repeat !important;
        background-attachment:fixed !important;
      }
      body.dashboard-view-active::before,
      html[data-theme="dark"] body.dashboard-view-active::before{
        content:"" !important;
        position:fixed !important;
        left:0 !important;
        right:0 !important;
        top:0 !important;
        height:46vh !important;
        z-index:0 !important;
        display:block !important;
        opacity:1 !important;
        pointer-events:none !important;
        background:linear-gradient(180deg, #303030 0%, #242424 26%, #141414 58%, rgba(0,0,0,0) 100%) !important;
      }
      body.mobile-board-header-active .page-wrap{
        padding-top:var(--mobile-board-fixed-height);
      }
      body.mobile-board-header-active .mobile-board-header{
        position:fixed;
        top:0;
        left:0;
        right:0;
        z-index:120;
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:9px;
        width:auto;
        min-height:var(--mobile-board-fixed-height);
        margin:0;
        padding:calc(6px + var(--mobile-board-safe-top)) var(--page-pad-x) 11px;
        background:transparent;
        isolation:isolate;
      }
      body.mobile-board-header-active .mobile-board-header.is-scrolled{
        min-height:var(--mobile-board-fixed-height);
        padding:calc(6px + var(--mobile-board-safe-top)) var(--page-pad-x) 11px;
      }
      body.mobile-board-header-active .mobile-board-header::before{
        content:"";
        position:absolute;
        left:0;
        right:0;
        top:0;
        bottom:-34px;
        z-index:0;
        background:
          linear-gradient(180deg, rgba(8,8,8,.58) 0%, rgba(8,8,8,.38) 46%, rgba(8,8,8,.14) 76%, rgba(8,8,8,0) 100%),
          linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.06) 46%, rgba(255,255,255,.02));
        -webkit-backdrop-filter:none;
        backdrop-filter:none;
        mask-image:linear-gradient(180deg, #000 0%, #000 54%, rgba(0,0,0,.72) 76%, transparent 100%);
        -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 54%, rgba(0,0,0,.72) 76%, transparent 100%);
        pointer-events:none;
      }
      body.mobile-board-header-active .mobile-board-header::after{
        content:"";
        position:absolute;
        left:0;
        right:0;
        bottom:-42px;
        height:54px;
        z-index:1;
        pointer-events:none;
        background:
          radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.04), rgba(255,255,255,0) 55%),
          linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08) 42%, rgba(0,0,0,0));
        filter:none;
      }
      body.mobile-board-header-active .mobile-board-header.is-scrolled::before{
        bottom:auto;
        height:calc(72px + var(--mobile-board-safe-top));
        background:rgba(0,0,0,.72);
        -webkit-backdrop-filter:blur(10px);
        backdrop-filter:blur(10px);
        mask-image:none;
        -webkit-mask-image:none;
      }
      body.mobile-board-header-active .mobile-board-header.is-scrolled::after{
        content:"";
        position:absolute;
        left:0;
        right:0;
        top:calc(72px + var(--mobile-board-safe-top));
        bottom:auto;
        height:10px;
        z-index:1;
        pointer-events:none;
        background:linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
        filter:none;
      }
      body.dashboard-view-active .charts-card{
        display:none !important;
      }
      .mobile-board-main{
        position:absolute;
        top:calc(11px + var(--mobile-board-safe-top));
        left:var(--page-pad-x);
        z-index:2;
        transform:none;
        min-width:0;
        border:0;
        background:transparent;
        color:#f5f5f5;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
        padding:0;
        text-align:left;
        font:inherit;
      }
      .mobile-board-title-row{
        min-width:0;
        display:flex;
        align-items:flex-end;
        gap:8px;
        max-width:calc(100vw - 150px);
      }
      .mobile-board-name{
        min-width:0;
        color:#f5f5f5;
        font-size:clamp(18px, 5.1vw, 24px);
        line-height:1.02;
        font-weight:520;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-caret{
        display:block;
        position:relative;
        width:11px;
        height:11px;
        flex:0 0 auto;
        margin-bottom:3px;
        opacity:.92;
      }
      .mobile-board-caret::before{
        content:"";
        position:absolute;
        left:2px;
        top:1px;
        width:7px;
        height:7px;
        border-right:2px solid #e5e5e5;
        border-bottom:2px solid #e5e5e5;
        border-radius:1px;
        transform:rotate(45deg);
        transform-origin:center;
      }
      .mobile-board-header.is-open .mobile-board-caret::before{
        top:4px;
        transform:rotate(225deg);
      }
      .mobile-board-state,
      .mobile-board-row-state{
        display:inline-flex;
        align-items:center;
        gap:7px;
        max-width:calc(100vw - 150px);
        white-space:nowrap;
        color:#a3a3a3;
        font-size:clamp(12px, 3.3vw, 15px);
        line-height:1;
        font-weight:400;
      }
      #mobileBoardStatus,
      #mobileBoardPanelStatus{
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-dot{
        width:7px;
        height:7px;
        border-radius:999px;
        background:#08c722;
        flex:0 0 auto;
      }
      .mobile-board-header.is-offline .mobile-board-dot,
      .mobile-board-row.is-offline .mobile-board-dot{
        background:#737373;
      }
      .mobile-board-actions{
        position:absolute;
        top:calc(19px + var(--mobile-board-safe-top));
        right:var(--page-pad-x);
        transform:none;
        z-index:2;
        flex:0 0 auto;
        display:flex;
        align-items:center;
        gap:12px;
        padding-top:0;
      }
      .mobile-board-header.is-scrolled .mobile-board-actions{
        top:calc(19px + var(--mobile-board-safe-top));
        transform:none;
      }
      .mobile-board-icon-btn{
        width:23px;
        height:23px;
        border:0;
        background:transparent;
        color:#f5f5f5;
        display:grid;
        place-items:center;
        padding:0;
      }
      .mobile-board-icon-btn svg{
        width:18px;
        height:18px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-board-panel{
        position:absolute;
        top:100%;
        left:calc(-1 * var(--page-pad-x));
        right:calc(-1 * var(--page-pad-x));
        display:none;
        flex-direction:column;
        gap:14px;
        padding:6px var(--page-pad-x) 10px;
        border-radius:0;
        border:1px solid #2f2f2f;
        border-top:0;
        border-left:0;
        border-right:0;
        background:rgba(0,0,0,.92);
        backdrop-filter:saturate(120%) blur(10px);
        -webkit-backdrop-filter:saturate(120%) blur(10px);
        color:#f5f5f5;
      }
      .mobile-board-header.is-open .mobile-board-panel{
        display:flex;
      }
      body.mobile-board-header-active .mobile-board-header.is-open{
        background:rgba(0,0,0,.94);
      }
      body.mobile-board-header-active .mobile-board-header.is-open::before{
        bottom:0;
        background:rgba(0,0,0,.94);
        mask-image:none;
        -webkit-mask-image:none;
      }
      .mobile-board-search{
        height:44px;
        border-radius:999px;
        background:#282828;
        display:none;
        align-items:center;
        gap:10px;
        padding:0 15px;
        color:#8a8a8a;
      }
      .mobile-board-search svg{
        width:20px;
        height:20px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        flex:0 0 20px;
      }
      .mobile-board-search input{
        min-width:0;
        width:100%;
        border:0;
        outline:0;
        background:transparent;
        color:#f5f5f5;
        font:inherit;
        font-size:14px;
      }
      .mobile-board-search input::placeholder{
        color:#7a7a7a;
      }
      .mobile-board-row{
        border:0;
        border-bottom:1px solid #282828;
        background:transparent;
        color:#f5f5f5;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        padding:8px 0 18px;
        text-align:left;
        font:inherit;
      }
      #mobileBoardRow{
        display:none;
      }
      .mobile-board-row-name{
        display:block;
        max-width:calc(100vw - 100px);
        font-size:clamp(17px, 5vw, 22px);
        line-height:1.05;
        font-weight:600;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        margin-bottom:8px;
      }
      .mobile-board-check{
        width:26px;
        height:26px;
        fill:none;
        stroke:#08c722;
        stroke-width:2.6;
        stroke-linecap:round;
        stroke-linejoin:round;
        flex:0 0 26px;
      }
      .mobile-board-add{
        width:calc(100% - 28px);
        min-height:58px;
        margin:0 14px;
        padding:12px 14px;
        border:1px solid #242424;
        border-radius:8px;
        background:#101010;
        color:#f5f5f5;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        text-align:left;
        font:inherit;
        -webkit-tap-highlight-color:transparent;
      }
      .mobile-board-add:active{
        background:#1b1b1b;
      }
      .mobile-board-add-copy{
        min-width:0;
        display:flex;
        flex-direction:column;
        gap:4px;
      }
      .mobile-board-add-label{
        color:#f5f5f5;
        font-size:14px;
        font-weight:850;
        line-height:1.15;
      }
      .mobile-board-add-sub{
        color:#8f8f8f;
        font-size:11px;
        font-weight:650;
        line-height:1.25;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-add-status{
        min-width:0;
        display:flex;
        align-items:center;
        gap:7px;
      }
      .mobile-board-add-dot{
        width:8px;
        height:8px;
        border-radius:999px;
        background:#ff4747;
        box-shadow:0 0 0 4px rgba(255,71,71,.10);
        flex:0 0 auto;
      }
      .mobile-board-add-icon{
        width:28px;
        height:28px;
        color:#d8d8d8;
        display:grid;
        place-items:center;
        flex:0 0 auto;
      }
      .mobile-board-add-icon svg{
        width:22px;
        height:22px;
        fill:none;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-board-connect-section{
        width:100%;
        margin:0;
        padding:10px 0 0;
        border-top:0;
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
      }
      .mobile-connect-guide{
        display:none;
      }
      .mobile-board-connect-section.is-open{
        width:100%;
        margin:0;
        padding:0 0 12px;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
        gap:10px;
      }
      .mobile-board-connect-section.is-open .mobile-connect-guide{display:none}
      .mobile-connect-guide-status{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:11px;
        padding:0;
        border-bottom:0;
      }
      .mobile-connect-guide-kicker{
        display:none;
      }
      .mobile-connect-guide-title{
        color:#f5f5f5;
        font-size:15px;
        font-weight:800;
        line-height:1.15;
        letter-spacing:0;
      }
      .mobile-connect-guide-subtitle{
        margin-top:3px;
        color:#8f8f8f;
        font-size:11px;
        font-weight:650;
        line-height:1.25;
      }
      .mobile-connect-guide-dot{
        width:10px;
        height:10px;
        border-radius:999px;
        background:#ff4747;
        flex:0 0 auto;
        margin-top:0;
        box-shadow:0 0 0 4px rgba(255,71,71,.12);
      }
      .mobile-connect-info-btn{
        width:26px;
        height:26px;
        margin-left:auto;
        border:1px solid #3a3a3a;
        border-radius:999px;
        background:#181818;
        color:#bdbdbd;
        display:grid;
        place-items:center;
        font:inherit;
        font-size:13px;
        font-weight:800;
        line-height:1;
      }
      .mobile-connect-info-btn[aria-expanded="true"]{
        color:#f5f5f5;
        border-color:#5a5a5a;
        background:#242424;
      }
      .mobile-connect-guide-steps{
        list-style:none;
        margin:12px 0 0;
        padding:0;
        display:none;
        gap:8px;
      }
      .mobile-board-connect-section.is-info-open .mobile-connect-guide-steps{
        display:grid;
      }
      .mobile-connect-guide-steps li{
        display:grid;
        grid-template-columns:18px minmax(0,1fr);
        gap:8px;
        align-items:start;
        color:#a9a9a9;
        font-size:12px;
        font-weight:650;
        line-height:1.4;
      }
      .mobile-connect-guide-steps b{
        width:18px;
        height:18px;
        border-radius:999px;
        display:grid;
        place-items:center;
        background:#222;
        color:#d8d8d8;
        font-size:10px;
        font-weight:800;
        line-height:1;
      }
      .mobile-board-connect-section .mobile-board-add{
        align-self:stretch;
      }
      .mobile-board-connect-methods{
        width:100%;
        margin-top:0;
        display:none;
        gap:0;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods{
        display:grid;
        width:calc(100% - 28px);
        margin-inline:14px;
        grid-template-columns:1fr;
        gap:0;
        overflow:hidden;
        border:1px solid #242424;
        border-radius:8px;
        background:#101010;
      }
      .mobile-board-connect-methods .connect-method-btn{
        min-height:70px;
        padding:12px 10px;
        border:0;
        border-radius:0;
        background:transparent;
        display:grid;
        grid-template-columns:28px 1fr;
        grid-template-areas:
          "icon title"
          "icon desc";
        align-items:center;
        justify-content:start;
        column-gap:12px;
        row-gap:2px;
        text-align:left;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn{
        min-height:62px;
        padding:12px 14px;
        border:0;
        border-radius:0;
        background:transparent;
        color:#f5f5f5;
        display:grid;
        grid-template-columns:30px minmax(0,1fr);
        grid-template-areas:
          "icon title"
          "icon desc";
        align-items:center;
        justify-content:flex-start;
        column-gap:12px;
        row-gap:2px;
        text-align:left;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn.is-usb{
        background:transparent;
        border-color:transparent;
        color:#f5f5f5;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn:active{
        background:#1b1b1b;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn strong{
        min-width:0;
        color:inherit;
        font-size:14px;
        font-weight:850;
        line-height:1.15;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn span{
        display:block;
        min-width:0;
        color:#8f8f8f;
        font-size:11px;
        font-weight:650;
        line-height:1.25;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-connect-methods .connect-method-btn + .connect-method-btn{
        border-top:1px solid #282828;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn + .connect-method-btn{
        border-top:1px solid #242424;
      }
      .mobile-board-connect-methods .connect-method-btn svg{
        grid-area:icon;
        width:24px;
        height:24px;
      }
      .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn svg{
        width:22px;
        height:22px;
        color:#f5f5f5;
      }
      .mobile-board-connect-methods .connect-method-btn strong{
        grid-area:title;
        font-size:13px;
        line-height:1.15;
      }
      .mobile-board-connect-methods .connect-method-btn span{
        grid-area:desc;
        font-size:10px;
        line-height:1.25;
      }
      .mobile-connect-guide-help{
        display:none;
        color:#858585;
        font-size:11px;
        font-weight:700;
        line-height:1.25;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-board-connect-section.is-open .mobile-connect-guide-help{
        display:none;
      }
      .mobile-board-connect-section.is-info-open .mobile-connect-guide-help{
        display:block;
      }
      @media(max-width:640px){
        .mobile-board-connect-section.is-open{
          width:100%;
          margin:0;
          padding:0 0 12px;
        }
        .mobile-board-connect-section.is-open .mobile-board-connect-methods .connect-method-btn{
          min-height:62px;
        }
      }
      .mobile-sequence-progress-card{
        display:flex;
        flex-direction:column;
        gap:16px;
        width:100%;
        padding:18px;
        border-radius:var(--radius-xl);
        border:1px solid #2f2f2f;
        background:#171717;
        color:#f5f5f5;
      }
      .mobile-preview-carousel{
        display:flex;
        width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x mandatory;
        scroll-behavior:smooth;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        gap:12px;
        border-radius:0;
        clip-path:none;
        background:transparent;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only{
        display:block !important;
        width:100%;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout{
        display:block !important;
        width:100%;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-flight-preview{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        min-height:0 !important;
        height:auto !important;
        gap:10px !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .mobile-preview-carousel{
        display:flex !important;
      }
      body.dashboard-view-active .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) .leaflet-container{
        pointer-events:none !important;
        touch-action:pan-x !important;
      }
      body.dashboard-view-active .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) #statusMapExpandBtn{
        display:inline-flex !important;
        align-items:center;
        justify-content:center;
        width:32px;
        height:32px;
        padding:0;
        border:1px solid #3a3a3a;
        border-radius:7px;
        background:rgba(12,12,12,.84);
        color:#ededed;
        box-shadow:none;
        font-size:15px;
      }
      body.dashboard-view-active .mobile-gyro-preview-slide #gyro3dViewport:not(.is-expanded){
        pointer-events:none !important;
        touch-action:pan-x !important;
      }
      body.dashboard-view-active .mobile-gyro-preview-slide .status-gyro-btn--expand{
        display:none !important;
      }
      .mobile-preview-carousel::-webkit-scrollbar{
        display:none;
      }
      .mobile-device-preview-slide,
      .mobile-gyro-preview-slide,
      .mobile-map-preview-slide,
      .mobile-chart-preview-slide{
        position:relative;
        display:block;
        flex:0 0 100%;
        min-width:100%;
        width:100%;
        box-sizing:border-box;
        aspect-ratio:16 / 9;
        scroll-snap-align:start;
        scroll-snap-stop:always;
        border:1px solid rgba(255,255,255,.18);
        border-radius:8px;
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.08);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
        overflow:hidden;
      }
      .mobile-device-preview-slide::before,
      .mobile-gyro-preview-slide::before,
      .mobile-map-preview-slide::before,
      .mobile-chart-preview-slide::before{
        content:"";
        position:absolute;
        inset:0;
        z-index:0;
        pointer-events:none;
        background:
          linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
          rgba(18,18,18,.08);
        backdrop-filter:saturate(185%) blur(76px);
        -webkit-backdrop-filter:saturate(185%) blur(76px);
      }
      .mobile-device-preview-slide > *,
      .mobile-gyro-preview-slide > *,
      .mobile-map-preview-slide > *,
      .mobile-chart-preview-slide > *{
        position:relative;
        z-index:1;
      }
      body.dashboard-view-active .mobile-device-preview-slide{
        display:none !important;
        position:relative;
        overflow:hidden;
        border:1px solid rgba(255,255,255,.18);
        border-radius:8px;
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.10);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
      }
      body.dashboard-view-active .mobile-device-preview-art{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
      }
      body.dashboard-view-active .mobile-stb-preview-image{
        display:block;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center;
      }
      body.dashboard-view-active .mobile-device-preview-art .mobile-mockup-canvas,
      body.dashboard-view-active .mobile-device-preview-file{
        display:none !important;
      }
      body.dashboard-view-active .mobile-gyro-preview-slide .mobile-stb-preview-image,
      body.dashboard-view-active .mobile-map-preview-slide .mobile-stb-preview-image,
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-stb-preview-image{
        position:absolute;
        inset:0;
        z-index:50;
        display:none !important;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center;
        pointer-events:none;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-gyro-preview-slide .mobile-stb-preview-image,
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide .mobile-stb-preview-image{
        display:block !important;
        filter:none;
        opacity:1;
        mix-blend-mode:normal;
      }
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-stb-preview-image{
        display:block !important;
        filter:none;
        opacity:1;
        mix-blend-mode:normal;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-gyro-preview-slide #gyro3dViewport:not(.is-expanded),
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide #statusMapViewport:not(.is-expanded),
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-chart-empty{
        filter:blur(4px) saturate(1.04);
        transform:scale(1.01);
        opacity:.96;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide #statusMapViewport:not(.is-expanded),
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) *,
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide .status-map-actions,
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide .status-map-btn{
        pointer-events:none !important;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-gyro-preview-slide::after,
      html.mobile-preview-offline body.dashboard-view-active .mobile-map-preview-slide::after,
      html.mobile-preview-offline body.dashboard-view-active .mobile-chart-preview-slide::after{
        content:"기기 오프라인";
        position:absolute;
        right:10px;
        top:10px;
        z-index:60;
        min-width:0;
        padding:7px 10px;
        border:1px solid rgba(255,255,255,.14);
        border-radius:999px;
        background:rgba(28,28,28,.72);
        color:#f0f0f0;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
        transform:none;
        font-size:11px;
        line-height:1;
        font-weight:560;
        text-align:center;
        letter-spacing:-.01em;
        box-shadow:0 8px 20px rgba(0,0,0,.22);
        pointer-events:none;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-chart-preview-slide .mobile-chart-empty,
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-chart-empty{
        visibility:visible !important;
      }
      body.dashboard-view-active .mobile-chart-preview-slide::after{
        content:"차트 데이터 선택하기 >";
        position:absolute;
        right:10px;
        top:10px;
        z-index:60;
        min-width:0;
        padding:7px 10px;
        border:1px solid rgba(255,255,255,.14);
        border-radius:999px;
        background:rgba(28,28,28,.72);
        color:#f0f0f0;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
        transform:none;
        font-size:11px;
        line-height:1;
        font-weight:560;
        text-align:center;
        letter-spacing:-.01em;
        box-shadow:0 8px 20px rgba(0,0,0,.22);
        pointer-events:none;
      }
      html.mobile-preview-offline body.dashboard-view-active .mobile-chart-preview-slide::after{
        content:"기기 오프라인";
      }
      body.dashboard-view-active .mobile-chart-preview-slide::after,
      html.mobile-preview-offline body.dashboard-view-active .mobile-chart-preview-slide::after{
        display:none !important;
      }
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-chart-select-btn{
        position:absolute;
        right:10px;
        top:10px;
        z-index:70;
        appearance:none;
        -webkit-appearance:none;
        display:block;
        width:auto;
        max-width:58%;
        height:30px;
        min-height:30px;
        min-width:0;
        padding:0 11px;
        border:1px solid rgba(255,255,255,.14);
        border-radius:999px;
        background:rgba(28,28,28,.76);
        color:#f0f0f0;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
        transform:none;
        font-size:11px;
        line-height:1;
        font-weight:560;
        text-align:center;
        letter-spacing:-.01em;
        box-shadow:0 8px 20px rgba(0,0,0,.22);
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      body.dashboard-view-active .mobile-chart-preview-slide.has-chart-selection .mobile-chart-empty-head{
        padding-right:min(58%, 180px);
        justify-content:flex-start;
        gap:9px;
      }
      body.dashboard-view-active .mobile-chart-preview-slide .mobile-chart-select-btn:active{
        transform:scale(.98);
      }
      html:not(.mobile-preview-offline) body.dashboard-view-active .mobile-chart-preview-slide.has-chart-selection .mobile-stb-preview-image{
        display:none !important;
      }
      html:not(.mobile-preview-offline) body.dashboard-view-active .mobile-chart-preview-slide.has-chart-selection .mobile-chart-empty{
        visibility:visible !important;
      }
      .mobile-gyro-preview-slide{
        position:relative;
        overflow:hidden;
        border:1px solid rgba(255,255,255,.18);
        border-radius:8px;
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.08);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
        isolation:isolate;
      }
      .mobile-gyro-preview-slide::before{
        content:"";
        position:absolute;
        inset:0;
        z-index:0;
        pointer-events:none;
        background:
          linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
          rgba(18,18,18,.08);
        backdrop-filter:saturate(185%) blur(76px);
        -webkit-backdrop-filter:saturate(185%) blur(76px);
      }
      .mobile-map-preview-slide{
        position:relative;
        overflow:hidden;
        border-radius:8px;
        border:1px solid rgba(255,255,255,.18);
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.08);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
        isolation:isolate;
      }
      .mobile-map-preview-slide::before{
        content:"";
        position:absolute;
        inset:0;
        z-index:0;
        pointer-events:none;
        background:
          linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
          rgba(18,18,18,.08);
        backdrop-filter:saturate(185%) blur(76px);
        -webkit-backdrop-filter:saturate(185%) blur(76px);
      }
      .mobile-chart-preview-slide{
        position:relative;
        overflow:hidden;
        border:1px solid rgba(255,255,255,.18);
        border-radius:8px;
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.08);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
        color:#f1f1f1;
      }
      .mobile-chart-preview-slide::before{
        content:"";
        position:absolute;
        inset:0;
        z-index:0;
        pointer-events:none;
        background:
          linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
          rgba(18,18,18,.08);
        backdrop-filter:saturate(185%) blur(76px);
        -webkit-backdrop-filter:saturate(185%) blur(76px);
      }
      .mobile-chart-empty{
        position:absolute;
        inset:0;
        padding:12px 12px 10px;
        display:flex;
        flex-direction:column;
        gap:6px;
        background:
          linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
          #121212;
        background-size:100% 33.333%, 25% 100%, auto;
      }
      .mobile-chart-empty-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        color:#b8b8b8;
        font-size:9.5px;
        line-height:1;
        font-weight:560;
        letter-spacing:.08em;
        text-transform:uppercase;
      }
      .mobile-chart-empty-head span:last-child{
        color:#777;
        font-weight:520;
        letter-spacing:.04em;
      }
      .mobile-chart-empty-plot{
        position:relative;
        flex:1 1 auto;
        min-height:0;
        margin-top:2px;
        border-left:1px solid rgba(255,255,255,.16);
        border-bottom:1px solid rgba(255,255,255,.16);
      }
      .mobile-chart-empty-plot canvas{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
      }
      .mobile-chart-preview-message{
        position:absolute;
        left:50%;
        top:50%;
        transform:translate(-50%,-50%);
        color:#8c8c8c;
        font-size:12px;
        font-weight:520;
        letter-spacing:-.01em;
        pointer-events:none;
      }
      .mobile-chart-preview-message.is-hidden{
        display:none;
      }
      .mobile-chart-preview-legend{
        display:flex;
        flex-wrap:wrap;
        gap:4px 8px;
        min-height:9px;
        color:#aaa;
        font-size:9px;
        line-height:1;
        font-weight:560;
        letter-spacing:-.01em;
      }
      .mobile-chart-preview-legend span{
        display:inline-flex;
        align-items:center;
        gap:4px;
        white-space:nowrap;
      }
      .mobile-chart-preview-legend i{
        display:block;
        width:7px;
        height:7px;
        border-radius:999px;
        background:var(--legend-color, #22c55e);
      }
      .mobile-chart-picker-overlay{
        position:fixed;
        inset:0;
        z-index:6000;
        display:flex;
        align-items:flex-end;
        justify-content:center;
        padding:max(12px, env(safe-area-inset-top, 0px)) 0 0;
        background:rgba(0,0,0,.48);
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
      }
      .mobile-chart-picker-overlay.hidden{
        display:none !important;
      }
      .mobile-chart-picker-dialog{
        display:flex;
        flex-direction:column;
        width:100vw;
        max-width:100vw;
        max-height:calc(100dvh - max(12px, env(safe-area-inset-top, 0px)));
        border:1px solid #2f2f2f;
        border-bottom:0;
        border-radius:16px 16px 0 0;
        background:#151515;
        color:#f4f4f4;
        box-shadow:0 -18px 52px rgba(0,0,0,.44);
        overflow:hidden;
      }
      .mobile-chart-picker-head{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:58px;
        padding:16px 50px 11px;
        border-bottom:1px solid #292929;
      }
      .mobile-chart-picker-title{
        color:#f2f2f2;
        font-size:17px;
        line-height:1.1;
        font-weight:560;
        letter-spacing:0;
        text-align:center;
      }
      .mobile-chart-picker-close{
        position:absolute;
        right:16px;
        top:50%;
        transform:translateY(-50%);
        appearance:none;
        -webkit-appearance:none;
        width:36px;
        height:36px;
        border:0;
        border-radius:999px;
        background:transparent;
        color:#e8e8e8;
        font-size:27px;
        line-height:1;
      }
      .mobile-chart-picker-close:active{
        transform:translateY(-50%) scale(.96);
      }
      .mobile-chart-picker-body{
        flex:1 1 auto;
        min-height:0;
        padding:14px 14px 16px;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
      }
      .mobile-chart-picker-grid{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:8px;
      }
      .mobile-chart-option{
        position:relative;
        display:flex;
        align-items:center;
        gap:10px;
        min-height:48px;
        padding:0 12px;
        border:1px solid #303030;
        border-radius:12px;
        background:#101010;
        color:#d8d8d8;
        font-size:14px;
        font-weight:650;
        letter-spacing:-.02em;
      }
      .mobile-chart-option input{
        position:absolute;
        opacity:0;
        pointer-events:none;
      }
      .mobile-chart-option-dot{
        width:10px;
        height:10px;
        border-radius:999px;
        background:var(--chart-color, #22c55e);
        box-shadow:0 0 0 4px color-mix(in srgb, var(--chart-color, #22c55e) 16%, transparent);
        opacity:.55;
      }
      .mobile-chart-option:has(input:checked){
        border-color:color-mix(in srgb, var(--chart-color, #22c55e) 68%, #303030);
        background:linear-gradient(180deg, color-mix(in srgb, var(--chart-color, #22c55e) 14%, #151515), #111);
        color:#fff;
      }
      .mobile-chart-option:has(input:checked) .mobile-chart-option-dot{
        opacity:1;
      }
      .mobile-chart-picker-actions{
        position:sticky;
        bottom:0;
        z-index:2;
        display:grid;
        grid-template-columns:1fr 1.5fr;
        gap:9px;
        margin-top:14px;
        padding-top:10px;
        padding-bottom:max(2px, env(safe-area-inset-bottom, 0px));
        background:linear-gradient(180deg, rgba(21,21,21,0), #151515 14px);
      }
      .mobile-chart-picker-actions button{
        appearance:none;
        -webkit-appearance:none;
        height:48px;
        border-radius:12px;
        border:1px solid #333;
        background:#222;
        color:#eee;
        font-size:15px;
        font-weight:750;
        letter-spacing:-.02em;
      }
      .mobile-chart-picker-actions .mobile-chart-apply{
        border-color:#16a34a;
        background:#16a34a;
        color:#fff;
      }
      html:not(.phone-landscape-layout) body:has(#mobileChartPickerOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
        pointer-events:none !important;
      }
      .mobile-gyro-preview-slide #gyro3dViewport{
        border:0 !important;
        border-radius:inherit !important;
        box-shadow:none !important;
      }
      .mobile-map-preview-mount{
        width:100%;
        height:100%;
        position:relative;
        z-index:1;
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview .mobile-map-preview-slide .status-map-panel{
        display:block !important;
        width:100% !important;
        height:100% !important;
        min-height:0 !important;
        aspect-ratio:auto !important;
        margin:0 !important;
        border:0 !important;
        border-radius:inherit;
        overflow:hidden;
      }
      .mobile-map-preview-slide .status-map-canvas,
      .mobile-map-preview-slide .status-map-tint{
        border-radius:inherit;
      }
      .mobile-map-preview-slide .status-map-return-actions{
        display:none !important;
      }
      .mobile-map-preview-slide .status-map-hud{
        left:10px;
        right:10px;
        bottom:12px;
      }
      .mobile-map-preview-slide .status-map-card{
        position:absolute;
        left:0;
        top:auto;
        bottom:0;
        max-width:calc(100% - 44px);
        min-height:34px;
        height:34px;
        padding:0 10px;
        gap:8px;
        border:1px solid rgba(255,255,255,.18);
        border-radius:9px;
        background:rgba(18,18,18,.9);
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
        box-shadow:0 3px 10px rgba(0,0,0,.18);
        color:#ededed;
      }
      .mobile-map-preview-slide .status-map-card::before{
        content:"";
        width:7px;
        height:7px;
        flex:0 0 7px;
        border:1.5px solid #b8b8b8;
        border-radius:50%;
        box-shadow:0 0 0 2px rgba(255,255,255,.08);
      }
      .mobile-map-preview-slide .status-map-coords,
      .mobile-map-preview-slide .status-map-zoom{
        color:#dedede !important;
        font-size:10.5px;
        line-height:1;
        font-variant-numeric:tabular-nums;
        white-space:nowrap;
      }
      .mobile-map-preview-slide .status-map-coords{
        font-weight:590;
        letter-spacing:.02em;
      }
      .mobile-map-preview-slide .status-map-zoom{
        padding-left:8px;
        border-left:1px solid rgba(255,255,255,.16);
        color:#9f9f9f !important;
        font-weight:650;
      }
      .mobile-map-preview-slide .status-map-actions{
        left:auto;
        right:0;
        bottom:0;
      }
      .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) .status-map-hud{
        inset:12px 12px 14px 12px !important;
        width:auto !important;
        height:auto !important;
      }
      .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) .status-map-card{
        bottom:0 !important;
        transform:translateY(-2px);
      }
      .mobile-map-preview-slide #statusMapViewport:not(.is-expanded) .status-map-actions{
        bottom:0 !important;
        transform:translateY(-2px);
      }
      .mode-flight .main-card.status-card.status-map-only .status-flight-preview .mobile-gyro-preview-slide .status-gyro-canvas{
        height:100% !important;
        aspect-ratio:auto !important;
      }
      .mobile-device-preview-slide{
        position:relative;
        overflow:hidden;
        border-radius:8px;
        border:1px solid rgba(255,255,255,.18);
        background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(18,18,18,.10);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:saturate(175%) blur(64px);
        -webkit-backdrop-filter:saturate(175%) blur(64px);
        color:#f5f5f5;
      }
      body.dashboard-view-active .mobile-device-preview-slide{
        display:none !important;
      }
      .mobile-device-preview-art{
        position:absolute;
        inset:0;
        display:block;
        background:rgba(0,0,0,.045);
      }
      .mobile-device-preview-art::before{
        content:none;
      }
      .mobile-device-preview-art::after{
        content:none;
      }
      .mobile-mockup-canvas{
        position:absolute;
        inset:0 0 auto 0;
        width:100%;
        height:calc(100% - 54px);
        display:block;
        z-index:1;
        cursor:grab;
        touch-action:none;
        -webkit-user-select:none;
        user-select:none;
      }
      .mobile-mockup-canvas.is-dragging{
        cursor:grabbing;
      }
      .mobile-device-preview-slide.is-loading .mobile-mockup-canvas{
        opacity:.55;
      }
      .mobile-device-chip{
        position:absolute;
        z-index:2;
        min-width:78px;
        height:28px;
        padding:0 10px;
        border-radius:999px;
        background:#070707;
        border:1px solid rgba(255,255,255,.08);
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:6px;
        color:#f5f5f5;
      }
      .mobile-device-chip svg{
        width:13px;
        height:13px;
        fill:none;
        stroke:#d4d4d4;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      .mobile-device-chip strong{
        font-size:17px;
        line-height:1;
        font-weight:440;
      }
      .mobile-device-chip span{
        color:#8f8f8f;
        font-size:11px;
        line-height:1;
        font-weight:360;
      }
      .mobile-device-info-column{
        position:absolute;
        top:11%;
        z-index:2;
        width:clamp(104px, 23vw, 126px);
        display:flex;
        flex-direction:column;
        gap:6px;
      }
      .mobile-device-info-column--left{
        left:8%;
      }
      .mobile-device-info-column--right{
        right:8%;
      }
      .mobile-device-info-column .mobile-device-chip{
        position:relative;
        inset:auto;
        width:100%;
        min-width:0;
        height:28px;
        padding:0 9px;
      }
      .mobile-device-mini-stack{
        position:relative;
        display:grid;
        grid-auto-rows:28px;
        gap:6px;
        min-width:0;
      }
      .mobile-device-info-column--right .mobile-device-mini-stack{
        grid-template-rows:repeat(2, 28px);
      }
      .mobile-device-mini-stack span{
        width:100%;
        height:28px;
        padding:0 9px;
        border-radius:999px;
        background:rgba(7,7,7,.92);
        border:1px solid rgba(255,255,255,.07);
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:8px;
        color:#f2f2f2;
        font-size:9px;
        line-height:1;
        white-space:nowrap;
      }
      .mobile-device-mini-stack b{
        color:#8f8f8f;
        font-size:8px;
        font-weight:460;
        letter-spacing:.02em;
      }
      .mobile-device-mini-stack em{
        color:#f2f2f2;
        font-style:normal;
        font-size:9px;
        font-weight:520;
        max-width:48px;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-device-status-strip{
        position:absolute;
        left:4%;
        right:4%;
        bottom:5%;
        z-index:2;
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:6px;
      }
      .mobile-device-status-strip > span{
        min-width:0;
        height:38px;
        padding:5px 6px;
        border-radius:9px;
        border:1px solid rgba(255,255,255,.09);
        background:rgba(10,10,10,.92);
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        white-space:nowrap;
      }
      .mobile-device-status-strip b{
        color:#858585;
        font-size:7px;
        line-height:1;
        font-weight:560;
        letter-spacing:.06em;
      }
      .mobile-device-status-strip em{
        max-width:100%;
        overflow:hidden;
        color:#f2f2f2;
        font-size:10px;
        line-height:1;
        font-style:normal;
        font-weight:560;
        text-overflow:ellipsis;
      }
      .status-flight-preview > .mobile-device-status-strip{
        position:static;
        width:100%;
        margin-top:0;
        padding:0;
        z-index:auto;
        gap:8px;
        order:4;
      }
      .status-flight-preview > .mobile-device-status-strip > span{
        height:46px;
        border-radius:10px;
        background:#171717;
        border-color:#303030;
      }
      .status-flight-preview > .mobile-device-status-strip b{
        font-size:8px;
      }
      .status-flight-preview > .mobile-device-status-strip em{
        font-size:11px;
      }
      .mobile-device-preview-file{
        display:none;
      }
      .mobile-preview-dots{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:7px;
        margin-top:-2px;
      }
      .mobile-preview-dots span{
        width:6px;
        height:6px;
        border-radius:999px;
        background:#5a5a5a;
      }
      .mobile-preview-dots span.is-active{
        width:22px;
        background:#00c928;
      }
      body.dashboard-view-active .status-flight-preview > .mobile-sequence-progress-card{
        order:3;
      }
      body.dashboard-view-active .status-flight-preview > .mobile-preview-carousel{
        order:1;
      }
      body.dashboard-view-active .status-flight-preview > .mobile-preview-dots{
        order:2;
      }
      body.dashboard-view-active .motor-card .card-header.quick-data-header{
        display:none !important;
      }
      body.dashboard-view-active .row-top > .motor-card{
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
        padding:0 !important;
      }
      body.dashboard-view-active .row-top > .motor-card::before,
      body.dashboard-view-active .row-top > .motor-card::after{
        content:none !important;
      }
      body.dashboard-view-active .quick-data-body{
        margin-top:0;
        display:block;
      }
      body.dashboard-view-active .mobile-device-control-title.mobile-quick-data-title{
        display:block;
        margin-top:16px;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics{
        width:100%;
        flex:0 0 auto;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        margin:0 0 20px;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .mobile-only-quick-metric{
        display:flex !important;
        flex-direction:column;
        justify-content:center;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .status-metric{
        width:100%;
        min-width:0;
        min-height:82px;
        height:88px;
        border-radius:10px;
        background:#181818;
        border:1px solid #2d2d2d;
        padding:12px 16px;
        box-shadow:none;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .status-metric-label{
        color:#a8a8a8;
        font-size:11px;
        font-weight:480;
        letter-spacing:.08em;
        margin-bottom:8px;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .status-metric-value{
        color:#f5f5f5;
        font-size:20px;
        font-weight:520;
        text-align:right;
        margin-top:4px;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .status-metric-value .unit{
        color:#a8a8a8;
        font-size:10px;
        font-weight:480;
        letter-spacing:0;
      }
      body.dashboard-view-active .motor-card .item-grid{
        display:none !important;
      }
      body.dashboard-view-active .motor-card .item-null{
        display:none !important;
      }
      body.dashboard-view-active .mobile-device-control-section{
        display:block;
      }
      body.dashboard-view-active .mobile-device-control-title{
        margin:0 0 16px 6px;
        color:#f5f5f5;
        font-size:19px;
        line-height:1;
        font-weight:560;
        letter-spacing:0;
      }
      body.dashboard-view-active .mobile-device-control-grid{
        display:grid;
        grid-template-columns:repeat(6,minmax(0,1fr));
        gap:10px;
      }
      body.dashboard-view-active .mobile-intelligent-control-section{
        margin-top:24px;
      }
      body.dashboard-view-active #mobileServoControlBtn{
        grid-column:1 / -1;
        grid-row:1;
      }
      body.dashboard-view-active #mobilePyroControlBtn{
        grid-column:1 / -1;
        grid-row:2;
      }
      body.dashboard-view-active #mobileReportBtn{
        grid-column:3 / span 2;
        grid-row:3;
      }
      body.dashboard-view-active #mobileSafetyModeBtn{
        grid-column:5 / span 2;
        grid-row:3;
      }
      body.dashboard-view-active #mobileArmUnlockBtn{
        grid-column:1 / span 2;
        grid-row:3;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn,
      body.dashboard-view-active #mobileAgentBtn{
        grid-column:1 / -1;
        min-height:82px;
        flex-direction:row;
        align-items:center;
        justify-content:flex-start;
        gap:14px;
        background:linear-gradient(135deg,#172033,#111827);
        border-color:#334155;
      }
      body.dashboard-view-active .mobile-intelligent-control-section #mobileIntelligentCalibrationBtn{ grid-row:1; }
      body.dashboard-view-active .mobile-intelligent-control-section #mobileAgentBtn{ grid-row:2; }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-copy,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-copy{
        min-width:0;
        display:flex;
        flex-direction:column;
        gap:5px;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-label,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-label{
        color:#f8fafc;
        font-size:16px;
        font-weight:620;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-sub,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-sub{
        color:#94a3b8;
        font-size:12px;
        line-height:1.25;
        font-weight:460;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-icon,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-icon{
        flex:0 0 auto;
        width:42px;
        height:42px;
        color:#86efac;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-icon svg,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-icon svg{
        width:38px;
        height:38px;
      }
      body.dashboard-view-active #mobileIntelligentCalibrationBtn .mobile-device-control-arrow,
      body.dashboard-view-active #mobileAgentBtn .mobile-device-control-arrow{
        top:50%;
        transform:translateY(-50%);
      }
      body.dashboard-view-active #mobileSafetyModeBtn .mobile-device-control-icon{
        transition:color .2s ease;
      }
      body.dashboard-view-active #mobileSafetyModeBtn.is-active .mobile-device-control-icon{
        color:#22c55e;
      }
      body.dashboard-view-active #mobileArmUnlockBtn .arm-icon-locked{
        display:none;
      }
      body.dashboard-view-active #mobileArmUnlockBtn .arm-icon-unlocked{
        display:block;
      }
      body.dashboard-view-active #mobileArmUnlockBtn.is-locked .arm-icon-locked{
        display:block;
      }
      body.dashboard-view-active #mobileArmUnlockBtn.is-locked .arm-icon-unlocked{
        display:none;
      }
      body.dashboard-view-active .mobile-device-control-card{
        position:relative;
        min-height:94px;
        border:1px solid #2d2d2d;
        border-radius:12px;
        background:#181818;
        color:#f5f5f5;
        padding:14px 14px;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:space-between;
        text-align:left;
        box-shadow:none;
        -webkit-tap-highlight-color:transparent;
      }
      body.dashboard-view-active .mobile-device-control-label{
        max-width:calc(100% - 18px);
        color:#a8a8a8;
        font-size:13px;
        line-height:1.15;
        font-weight:460;
        letter-spacing:0;
      }
      body.dashboard-view-active .mobile-device-control-copy{
        max-width:calc(100% - 18px);
        display:flex;
        flex-direction:column;
        gap:4px;
      }
      body.dashboard-view-active .mobile-device-control-sub{
        color:#737373;
        font-size:11px;
        line-height:1.2;
        font-weight:520;
      }
      body.dashboard-view-active .mobile-device-control-icon{
        width:36px;
        height:36px;
        color:#d8d8d8;
        display:grid;
        place-items:center;
      }
      body.dashboard-view-active .mobile-device-control-icon svg{
        width:34px;
        height:34px;
        fill:none;
        stroke:currentColor;
        stroke-width:1.8;
        stroke-linecap:round;
        stroke-linejoin:round;
      }
      body.dashboard-view-active .mobile-device-control-card--icononly{
        align-items:center;
        justify-content:center;
        padding:0;
      }
      body.dashboard-view-active .mobile-device-control-card--icononly .mobile-device-control-label{
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
      }
      body.dashboard-view-active .mobile-device-control-card--icononly .mobile-device-control-icon{
        width:38px;
        height:38px;
      }
      body.dashboard-view-active .mobile-device-control-card--icononly .mobile-device-control-icon svg{
        width:36px;
        height:36px;
      }
      body.dashboard-view-active .mobile-device-control-card--icononly .mobile-device-control-arrow{
        display:none;
      }
      body.dashboard-view-active .mobile-device-control-arrow{
        position:absolute;
        top:14px;
        right:14px;
        width:16px;
        height:16px;
        font-size:0;
        line-height:0;
        color:#b8b8b8;
      }
      body.dashboard-view-active .mobile-device-control-arrow::before{
        content:"";
        position:absolute;
        left:4px;
        top:3px;
        width:8px;
        height:8px;
        border-top:2.4px solid currentColor;
        border-right:2.4px solid currentColor;
        transform:rotate(45deg);
        border-radius:1px;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay{
        top:0 !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        z-index:6000 !important;
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
        background:rgba(0,0,0,.42) !important;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
      }
      html:not(.phone-landscape-layout) body:has(#hardwareServoOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
        pointer-events:none !important;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay > *{
        margin:0 !important;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog{
        width:100vw !important;
        max-width:100vw !important;
        max-height:min(64dvh, 540px) !important;
        border:0 !important;
        border-top:1px solid #303030 !important;
        border-radius:12px 12px 0 0 !important;
        background:#171717 !important;
        box-shadow:none !important;
        padding:0 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        overflow:hidden !important;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog::before,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-header{
        position:relative;
        min-height:58px;
        margin:0 -16px;
        padding:16px 50px 11px;
        display:flex;
        align-items:center;
        justify-content:center;
        border:0;
        border-bottom:1px solid #292929;
        background:transparent;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-title{
        color:#f2f2f2;
        font-size:17px;
        line-height:1.1;
        font-weight:560;
        letter-spacing:0;
        text-transform:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-close-btn{
        position:absolute;
        right:16px;
        top:50%;
        transform:translateY(-50%);
        width:36px;
        height:36px;
        border:0;
        border-radius:8px;
        background:transparent;
        color:transparent;
        font-size:0;
        font-weight:260;
        line-height:1;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-close-btn::before,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-close-btn::after{
        content:"";
        position:absolute;
        left:9px;
        top:17px;
        width:18px;
        height:2px;
        border-radius:2px;
        background:#dedede;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-close-btn::before{transform:rotate(45deg)}
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .settings-close-btn::after{transform:rotate(-45deg)}
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog-body{
        max-height:calc(min(64dvh, 540px) - 58px);
        overflow:auto;
        padding:14px 0 0;
        scrollbar-width:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog-body::-webkit-scrollbar{
        display:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-mobile-stage{
        min-height:0;
        display:block;
        padding:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-visual,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-cable,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-case,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-hub{
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-mobile-pad{
        height:34px;
        min-height:34px;
        border-radius:8px;
        background:#111111;
        border:1px solid #2d2d2d;
        padding:0;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:6px;
        align-items:center;
        justify-items:stretch;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-pad-label{
        display:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-nudge-btn{
        width:32px;
        height:28px;
        border:0;
        border-radius:7px;
        background:transparent;
        display:grid;
        place-items:center;
        color:#e0e0e0;
        -webkit-tap-highlight-color:transparent;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-nudge-btn:active{
        background:transparent;
        color:#ffffff;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-nudge-btn span{
        width:0;
        height:0;
        border-left:7px solid transparent;
        border-right:7px solid transparent;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-nudge-btn[data-servo-mobile-nudge="up"] span{
        border-bottom:10px solid currentColor;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-nudge-btn[data-servo-mobile-nudge="down"] span{
        border-top:10px solid currentColor;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .hardware-servo-group{
        margin:0;
        padding:0;
        border:0;
        background:transparent;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .hardware-servo-group > .settings-label{
        color:#a9a9a9;
        font-size:12px;
        font-weight:480;
        letter-spacing:0;
        margin:0 0 7px;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-dialog .hint-mini{
        display:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-channel-picker{
        position:relative;
        display:block;
        margin:0 0 10px;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-channel-picker::after{
        content:"";
        position:absolute;
        right:15px;
        top:50%;
        width:8px;
        height:8px;
        border-right:2px solid #bdbdbd;
        border-bottom:2px solid #bdbdbd;
        transform:translateY(-66%) rotate(45deg);
        pointer-events:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-channel-select{
        width:100%;
        height:46px;
        min-height:46px;
        appearance:none;
        -webkit-appearance:none;
        border:1px solid #303030;
        border-radius:9px;
        background:#111111;
        color:#eeeeee;
        padding:0 42px 0 14px;
        font-size:14px;
        font-weight:500;
        outline:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-channel-select:focus{
        background:#2c2c2c;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-quick-row{
        display:none;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:7px;
        margin:0 0 12px;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .settings-btn.hardware-servo-quick-btn{
        min-height:40px;
        border:0;
        border-radius:10px;
        background:#303030;
        color:#b6b6b6;
        font-size:12px;
        font-weight:500;
        padding:0;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .settings-btn.hardware-servo-quick-btn.is-active{
        background:#1fc653;
        color:#f5f5f5;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-grid{
        display:block;
        margin:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-row{
        border:1px solid #2d2d2d;
        border-radius:10px;
        background:#1d1d1d;
        box-shadow:none;
        padding:14px;
        gap:13px;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-slider-line{
        display:grid;
        grid-template-columns:minmax(0,1fr) 72px;
        gap:10px;
        align-items:center;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-head{
        align-items:center;
        width:100%;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-row .hardware-servo-head .settings-label{
        color:#f1f1f1 !important;
        width:100%;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:9px;
        font-size:15px;
        font-weight:540 !important;
        letter-spacing:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-current-label [data-servo-channel-label]{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:24px;
        padding:0;
        border-radius:0;
        background:transparent;
        color:#b8b8b8;
        font-size:13px;
        line-height:1;
        font-weight:520;
        letter-spacing:.02em;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-current-label [data-servo-current-angle]{
        display:inline-flex;
        align-items:baseline;
        justify-content:flex-start;
        min-width:0;
        min-height:0;
        padding:0;
        border-radius:0;
        background:transparent;
        color:#f2f2f2;
        font-size:18px;
        line-height:1;
        font-weight:540;
        letter-spacing:0;
        font-variant-numeric:tabular-nums;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-current-label [data-servo-current-angle]::before{
        content:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-meta{
        display:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-slider{
        height:6px;
        border:0;
        background:#0f0f0f;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-slider::-webkit-slider-thumb{
        width:20px;
        height:20px;
        border:0;
        background:#19ce48;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-slider::-moz-range-thumb{
        width:20px;
        height:20px;
        border:0;
        background:#19ce48;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-presets{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        margin-top:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset{
        display:grid;
        grid-template-columns:minmax(0,1fr) 50px;
        gap:6px;
        min-width:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-input{
        width:100%;
        min-height:42px;
        border:1px solid #2b2b2b;
        border-radius:8px;
        background:#101010;
        color:#f1f1f1;
        font-size:14px;
        font-weight:520;
        padding:0 8px;
        text-align:center;
        pointer-events:auto;
        outline:none;
        -moz-appearance:textfield;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-input::-webkit-outer-spin-button,
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-input::-webkit-inner-spin-button{
        -webkit-appearance:none;
        margin:0;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-input:focus{
        background:#151515;
        box-shadow:inset 0 0 0 1px rgba(31,198,83,.75);
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-btn{
        min-height:42px;
        border:1px solid #343434;
        border-radius:8px;
        background:#292929;
        color:#eeeeee;
        font-size:11px;
        font-weight:560;
        padding:0;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #hardwareServoOverlay .hardware-servo-preset-btn:active{
        background:#19ce48;
        color:#fff;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay{
        top:0 !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        z-index:6000 !important;
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
        background:rgba(0,0,0,.48) !important;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
      }
      html:not(.phone-landscape-layout) body:has(#confirmOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay > *{
        margin:0 !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog{
        width:100vw !important;
        max-width:100vw !important;
        min-height:min(58dvh,480px) !important;
        max-height:min(92dvh,760px) !important;
        border:0 !important;
        border-top:1px solid #303030 !important;
        border-radius:14px 14px 0 0 !important;
        background:#181818 !important;
        color:#f2f2f2 !important;
        padding:0 16px calc(14px + env(safe-area-inset-bottom,0px)) !important;
        box-shadow:none !important;
        overflow-y:auto !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog::before,
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-title{
        color:#f4f4f4 !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-text,
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-note{
        color:#a7a7a7 !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        padding-top:0 !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog::before{
        content:"" !important;
        display:block !important;
        position:absolute;
        top:7px;
        left:50%;
        width:34px;
        height:3px;
        border-radius:999px;
        background:#454545;
        transform:translateX(-50%);
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-icon{
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-icon span{
        font-size:28px;
        text-shadow:none;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-title{
        min-height:58px;
        margin:0 -16px 14px;
        padding:20px 52px 10px;
        border-bottom:1px solid #292929;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:17px;
        line-height:1.15;
        font-weight:560;
      }
      html:not(.phone-landscape-layout) body .ignition-warning-illustration{
        width:min(80vw,360px);
        max-width:100%;
        aspect-ratio:1;
        margin:0 0 12px;
        padding:0;
        display:flex;
        justify-content:center;
        align-self:center;
        overflow:hidden;
        border:0 !important;
        outline:0 !important;
        border-radius:8px;
        background:transparent !important;
        box-shadow:none !important;
      }
      html:not(.phone-landscape-layout) body .ignition-warning-illustration img{
        display:block;
        width:100%;
        max-width:none;
        aspect-ratio:1;
        object-fit:cover;
        border:0 !important;
        border-radius:0;
        background:transparent;
        filter:brightness(.98) contrast(1.06);
        box-shadow:none;
        transform:none;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-text{
        max-width:none;
        margin:0 2px 12px;
        font-size:13px;
        line-height:1.6;
        text-align:center;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-note{
        width:100%;
        max-width:none;
        margin-bottom:14px;
        padding:11px 12px;
        border:1px solid #2e2e2e;
        border-radius:10px;
        background:#222222;
        color:#c1c1c1 !important;
        font-size:11px;
        line-height:1.45;
        text-align:center;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-actions{
        width:100%;
        gap:10px;
        margin-top:0;
        margin-bottom:0;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-wrap{
        min-height:54px;
        margin:0;
        display:flex !important;
        align-items:center;
        justify-content:center;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn{
        position:relative !important;
        display:flex !important;
        flex:1 1 auto;
        width:100% !important;
        min-width:0 !important;
        height:54px !important;
        min-height:54px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:hidden !important;
        border:1px solid #2ebd59 !important;
        border-radius:10px !important;
        background:#169b43 !important;
        color:#fff !important;
        opacity:1 !important;
        visibility:visible !important;
        box-shadow:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn::before{
        content:none;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn span{
        position:relative;
        z-index:2;
        color:#fff !important;
        margin:0;
        font-size:14px;
        line-height:1;
        font-weight:620;
        letter-spacing:0;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-ring{
        display:block !important;
        inset:0;
        width:auto;
        height:auto;
        border-radius:10px;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-spinner{
        inset:0;
        padding:0;
        border-radius:10px;
        background:rgba(255,255,255,.2);
        -webkit-mask:none;
        mask:none;
        transform:scaleX(var(--lp-progress,0));
        transform-origin:left center;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel{
        position:absolute;
        top:18px;
        right:16px;
        z-index:4;
        width:32px;
        min-height:32px;
        margin:0;
        padding:0;
        border:0;
        background:transparent;
        color:#e8e8e8;
        font-size:0;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::before{
        content:"";
        position:absolute;
        left:8px;
        top:15px;
        width:16px;
        height:2px;
        border-radius:2px;
        background:#e2e2e2;
        transform:rotate(45deg);
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::after{
        content:"";
        position:absolute;
        left:8px;
        top:15px;
        width:16px;
        height:2px;
        border-radius:2px;
        background:#e2e2e2;
        transform:rotate(-45deg);
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay{
        top:0 !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        z-index:6000 !important;
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
        background:rgba(0,0,0,.42) !important;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
      }
      html:not(.phone-landscape-layout) body:has(#pyroControlOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
        pointer-events:none !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay > *{
        margin:0 !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog{
        width:100vw !important;
        max-width:100vw !important;
        min-height:0 !important;
        max-height:min(64dvh,540px) !important;
        border:0 !important;
        border-top:1px solid #303030 !important;
        border-radius:12px 12px 0 0 !important;
        background:#171717 !important;
        box-shadow:none !important;
        padding:0 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        overflow:hidden !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog::before,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-header{
        position:relative;
        min-height:58px;
        margin:0 -16px;
        padding:16px 50px 11px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-bottom:1px solid #292929;
        background:transparent;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-title{
        color:#f2f2f2;
        font-size:17px;
        line-height:1.1;
        font-weight:560;
        letter-spacing:0;
        text-transform:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-close-btn{
        position:absolute;
        right:16px;
        top:50%;
        transform:translateY(-50%);
        width:36px;
        height:36px;
        border:0;
        border-radius:8px;
        background:transparent;
        color:transparent;
        font-size:0;
        font-weight:260;
        line-height:1;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-close-btn::before,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-close-btn::after{
        content:"";
        position:absolute;
        left:9px;
        top:17px;
        width:18px;
        height:2px;
        border-radius:2px;
        background:#dedede;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-close-btn::before{transform:rotate(45deg)}
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-close-btn::after{transform:rotate(-45deg)}
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-body{
        display:flex;
        flex:1 1 auto;
        flex-direction:column;
        gap:12px;
        padding:14px 0 0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-panel{
        border:1px solid #2d2d2d;
        border-radius:10px;
        background:#1d1d1d;
        padding:14px;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-row{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
        align-items:stretch;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-kicker{
        color:#9f9f9f;
        font-size:11px;
        line-height:1;
        font-weight:480;
        margin-bottom:8px;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value{
        position:relative;
        display:block;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value input{
        width:100%;
        min-height:44px;
        border:1px solid #2c2c2c;
        border-radius:8px;
        background:#101010;
        color:#f1f1f1;
        font-size:17px;
        font-weight:560;
        text-align:left;
        padding:0 48px 0 14px;
        outline:none;
        -moz-appearance:textfield;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value input::-webkit-outer-spin-button,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value input::-webkit-inner-spin-button{
        -webkit-appearance:none;
        margin:0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value input:focus{
        box-shadow:inset 0 0 0 1px rgba(239,68,68,.72);
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-value span{
        position:absolute;
        right:14px;
        top:50%;
        transform:translateY(-50%);
        color:#a9a9a9;
        font-size:12px;
        font-weight:500;
        pointer-events:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-presets{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:6px;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-presets button{
        min-height:34px;
        border:1px solid #343434;
        border-radius:7px;
        background:#292929;
        color:#d8d8d8;
        font-size:11px;
        font-weight:520;
        padding:0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-presets button:active{
        background:#4a4a4a;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-channel-grid{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-channel-btn{
        min-height:54px;
        border:1px solid #2d2d2d;
        border-radius:9px;
        background:#1d1d1d;
        color:#f2f2f2;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        padding:0 13px;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-channel-btn span{
        color:#b8b8b8;
        font-size:12px;
        font-weight:520;
        letter-spacing:.02em;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-channel-btn strong{
        color:#ef6262;
        font-size:13px;
        line-height:1;
        font-weight:580;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-channel-btn:active{
        background:#2d2d2d;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-note{
        color:#b8b8b8 !important;
        font-size:10.5px;
        line-height:1.4;
        font-weight:480;
        padding:10px 12px;
        border:1px solid #302a2a;
        border-radius:8px;
        background:#1d1919;
        text-align:left;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm{
        display:none;
        border-radius:0;
        background:transparent;
        padding:10px 0 2px;
        text-align:center;
        gap:12px;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog.is-confirming .pyro-control-panel,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog.is-confirming .pyro-channel-grid,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog.is-confirming .pyro-control-note{
        display:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog.is-confirming .pyro-control-confirm{
        display:flex;
        flex:1 1 auto;
        min-height:0;
        flex-direction:column;
        align-items:stretch;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog.is-confirming{
        max-height:min(92dvh,760px) !important;
        overflow-y:auto !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-title{
        display:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-desc{
        color:#cfcfcf;
        font-size:13px;
        line-height:1.6;
        font-weight:460;
        text-align:center;
        margin:0 2px 12px;
        white-space:pre-line;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-illustration{
        width:min(80vw,360px);
        max-width:100%;
        aspect-ratio:1;
        align-self:center;
        overflow:hidden;
        border:0 !important;
        outline:0 !important;
        border-radius:8px;
        background:transparent !important;
        box-shadow:none !important;
        margin:-4px 0 0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-illustration img{
        width:100%;
        max-width:none;
        border:0 !important;
        border-radius:0;
        background:transparent;
        box-shadow:none;
        transform:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-warning{
        color:#c8c8c8;
        font-size:11px;
        line-height:1.45;
        font-weight:480;
        padding:11px 12px;
        border:1px solid #2e2e2e;
        border-radius:10px;
        background:#222222;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-actions{
        display:block;
        margin-top:0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-btn{
        width:100%;
        min-height:54px;
        border:0;
        border-radius:10px;
        font-size:14px;
        line-height:1;
        font-weight:580;
        padding:0;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-btn--ghost{
        display:none;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-btn--danger{
        background:#ef4444;
        color:#ffffff;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay{
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
        background:rgba(0,0,0,.48) !important;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-dialog{
        position:relative;
        width:100vw !important;
        max-width:100vw !important;
        min-height:min(58dvh,480px) !important;
        max-height:min(92dvh,760px) !important;
        margin:0 !important;
        padding:0 16px calc(52px + env(safe-area-inset-bottom,0px)) !important;
        border:0 !important;
        border-top:1px solid #303030 !important;
        border-radius:14px 14px 0 0 !important;
        background:#181818 !important;
        box-shadow:none !important;
        text-align:center !important;
        overflow-y:auto !important;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-title{
        min-height:58px;
        margin:0 -16px 14px !important;
        padding:20px 52px 10px;
        border-bottom:1px solid #292929;
        display:flex;
        align-items:center;
        justify-content:center;
        color:#f4f4f4 !important;
        font-size:17px;
        font-weight:560;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-text{
        margin:0 0 12px !important;
        color:#d0d0d0 !important;
        font-size:13px;
        text-align:center !important;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .ignition-warning-illustration{
        margin-bottom:12px;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .ignition-warning-illustration img{
        width:min(80vw,360px);
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .pyro-control-confirm-illustration{
        width:min(80vw,360px);
        max-width:100%;
        aspect-ratio:1;
        overflow:hidden;
        border:0 !important;
        outline:0 !important;
        border-radius:8px;
        background:transparent !important;
        box-shadow:none !important;
        margin:0 auto 12px;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .pyro-control-confirm-illustration img{
        width:100%;
        max-width:none;
        border:0 !important;
        border-radius:0;
        background:transparent;
        box-shadow:none;
        transform:none;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-note{
        margin:0 0 14px !important;
        padding:11px 12px;
        border:1px solid #2e2e2e;
        border-radius:10px;
        background:#222222;
        color:#c8c8c8 !important;
        font-size:11px;
        line-height:1.45;
        text-align:center !important;
        white-space:pre-line;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-actions{
        display:block;
        margin:0 0 12px !important;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .reboot-confirm{
        width:100%;
        min-height:54px;
        border:0;
        border-radius:10px;
        background:#ef4444 !important;
        color:#fff !important;
        font-size:14px;
        font-weight:620;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-cancel{
        position:absolute;
        top:18px;
        right:16px;
        width:32px;
        height:32px;
        min-height:32px;
        margin:0;
        padding:0;
        border:0;
        background:transparent;
        color:transparent;
        font-size:0;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-cancel::before,
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-cancel::after{
        content:"";
        position:absolute;
        left:8px;
        top:15px;
        width:16px;
        height:2px;
        border-radius:2px;
        background:#e2e2e2;
      }
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-cancel::before{transform:rotate(45deg)}
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-cancel::after{transform:rotate(-45deg)}
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-confirm-btn:active{
        filter:brightness(1.12);
      }
      .mobile-sequence-file{
        display:block;
      }
      .mobile-sequence-info{
        min-width:0;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        gap:12px;
      }
      .mobile-sequence-status{
        min-width:0;
        display:flex;
        align-items:center;
        gap:10px;
        white-space:nowrap;
        overflow:hidden;
      }
      .mobile-sequence-status-text{
        min-width:0;
        color:#f5f5f5;
        font-size:clamp(15px, 4vw, 20px);
        line-height:1.18;
        font-weight:600;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-sequence-status-pill{
        appearance:none;
        -webkit-appearance:none;
        flex:0 0 auto;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:5px 11px;
        border-radius:999px;
        border:1px solid rgba(148,163,184,0.35);
        font-size:12px;
        line-height:1;
        font-weight:700;
        font-family:inherit;
        white-space:nowrap;
        cursor:pointer;
      }
      .mobile-sequence-status-pill:active{
        filter:brightness(1.18);
      }
      .sequence-condition-list{
        display:grid;
        gap:8px;
      }
      .sequence-condition-row{
        display:grid;
        grid-template-columns:auto minmax(0, 1fr) auto;
        align-items:center;
        gap:10px;
        min-height:48px;
        padding:10px 12px;
        border:1px solid #303030;
        border-radius:8px;
        background:#101010;
      }
      .sequence-condition-dot{
        width:9px;
        height:9px;
        border-radius:50%;
        background:#ef4444;
      }
      .sequence-condition-row.is-ok .sequence-condition-dot{
        background:#22c55e;
      }
      .sequence-condition-name{
        min-width:0;
        color:#ededed;
        font-size:13px;
        font-weight:700;
      }
      .sequence-condition-value{
        color:#ef4444;
        font-size:11px;
        font-weight:700;
        white-space:nowrap;
      }
      .sequence-condition-row.is-ok .sequence-condition-value{
        color:#86efac;
      }
      .mobile-sequence-title{
        color:#f5f5f5;
        font-size:clamp(15px, 4vw, 20px);
        line-height:1.18;
        font-weight:600;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .mobile-sequence-meta{
        display:flex;
        align-items:flex-end;
        justify-content:space-between;
        gap:12px;
        color:#f5f5f5;
      }
      .mobile-sequence-meta strong{
        font-size:clamp(18px, 4.9vw, 24px);
        line-height:.95;
        font-weight:600;
      }
      .mobile-sequence-meta strong span{
        font-size:.55em;
        font-weight:600;
      }
      .mobile-sequence-meta > span{
        color:#e5e5e5;
        font-size:clamp(14px, 3.8vw, 19px);
        line-height:1.1;
        white-space:nowrap;
      }
      .mobile-sequence-clock-wrap{
        display:inline-flex;
        align-items:baseline;
        gap:6px;
      }
      .mobile-sequence-clock-source{
        color:#a3a3a3;
        font-size:.58em;
        font-weight:650;
        letter-spacing:0;
        white-space:nowrap;
      }
      .mobile-sequence-bar{
        height:10px;
        border-radius:999px;
        background:#050505;
        overflow:hidden;
      }
      .mobile-sequence-bar span{
        display:block;
        width:4%;
        height:100%;
        min-width:16px;
        border-radius:999px;
        background:#00c928;
      }
      .mobile-sequence-actions{
        display:grid;
        grid-template-columns:minmax(0,1.6fr) 56px 56px;
        gap:14px;
      }
      .mobile-sequence-action{
        min-width:0;
        min-height:50px;
        border:none;
        border-radius:12px;
        background:#282828;
        color:#f5f5f5;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        padding:0 10px;
        font-size:clamp(14px, 3.8vw, 18px);
        font-weight:650;
        white-space:nowrap;
      }
      .mobile-sequence-action:disabled,
      .mobile-sequence-action.disabled{
        opacity:.42;
        cursor:not-allowed;
      }
      .mobile-sequence-action.storage-guard-green{
        border:1px solid rgba(34,197,94,.44);
        box-shadow:inset 0 0 0 1px rgba(34,197,94,.06);
      }
      .mobile-sequence-action.storage-guard-orange{
        border:1px solid rgba(249,115,22,.54);
        box-shadow:inset 0 0 0 1px rgba(249,115,22,.08);
      }
      .mobile-sequence-action.storage-guard-red{
        border:1px solid rgba(239,68,68,.62);
        box-shadow:inset 0 0 0 1px rgba(239,68,68,.10);
      }
      .mobile-sequence-action svg{
        width:20px;
        height:20px;
        flex:0 0 20px;
        fill:currentColor;
        stroke:currentColor;
        stroke-width:0;
      }
      .mobile-sequence-action .is-stop-icon{
        color:#ef3b3b;
      }
      .mobile-sequence-action--icon{
        padding:0;
        gap:0;
      }
      .mobile-sequence-action--icon svg{
        width:22px;
        height:22px;
        flex-basis:22px;
      }
    }
    @media(max-width:430px){
      .mobile-sequence-progress-card{
        padding:16px;
        gap:14px;
        border-radius:var(--radius-xl);
      }
      .mobile-sequence-file{
        display:block;
      }
      .mobile-sequence-actions{
        gap:10px;
        grid-template-columns:minmax(0,1.6fr) 50px 50px;
      }
      .mobile-sequence-action{
        min-height:46px;
        gap:6px;
        padding:0 8px;
      }
      .mobile-sequence-action svg{
        width:18px;
        height:18px;
        flex-basis:18px;
      }
      .mobile-sequence-action--icon svg{
        width:20px;
        height:20px;
        flex-basis:20px;
      }
    }
    @media(max-width:900px){
      body.mobile-board-header-active .top-bar{
        display:none !important;
      }
    }
    @media(max-width:600px){
      body.terminal-view-active{
        height:100dvh;
        overflow:hidden;
      }
      body.terminal-view-active .app-shell{
        height:100dvh;
        min-height:100dvh;
        padding-bottom:0;
        overflow:hidden;
      }
      body.terminal-view-active .page-wrap{
        height:100dvh;
        min-height:100dvh;
        padding-bottom:calc(72px + env(safe-area-inset-bottom, 0px));
        overflow:hidden;
      }
      body.terminal-view-active #terminalView,
      body.terminal-view-active #terminalView .shell{
        display:flex;
        flex:1 1 0;
        min-height:0;
        height:auto;
        overflow:hidden;
      }
      body.terminal-view-active #terminalView .log-card{
        flex:1 1 0;
        height:auto;
        min-height:0;
        max-height:none;
      }
    }
    @media(min-width:768px) and (pointer:fine){
      body.dashboard-view-active #dashboardView .row-top{
        --desktop-preview-height:clamp(220px, 30vh, 260px);
        height:var(--desktop-preview-height) !important;
        min-height:var(--desktop-preview-height) !important;
        max-height:var(--desktop-preview-height) !important;
        align-items:stretch !important;
      }
      body.dashboard-view-active #dashboardView .row-top > .card-base{
        height:var(--desktop-preview-height) !important;
        min-height:var(--desktop-preview-height) !important;
        max-height:var(--desktop-preview-height) !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only{
        display:block !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout{
        display:grid !important;
        grid-template-columns:220px minmax(0, 1fr) !important;
        grid-template-areas:"preview map" !important;
        gap:8px !important;
        align-items:stretch !important;
        height:var(--desktop-preview-height) !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-map-panel{
        display:block !important;
        grid-area:map !important;
        width:100% !important;
        height:var(--desktop-preview-height) !important;
        min-height:220px !important;
        margin:0 !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-flight-preview{
        display:flex !important;
        grid-area:preview !important;
        width:100% !important;
        height:var(--desktop-preview-height) !important;
        min-width:0 !important;
        min-height:0 !important;
        align-items:stretch !important;
        justify-content:stretch !important;
        padding:0 !important;
        overflow:hidden !important;
      }
      body.dashboard-view-active .mobile-preview-carousel,
      body.dashboard-view-active .mobile-gyro-preview-slide{
        display:none !important;
      }
      body.dashboard-view-active .mobile-chart-preview-slide,
      body.dashboard-view-active .mobile-device-preview-slide,
      body.dashboard-view-active .mobile-map-preview-slide,
      body.dashboard-view-active .mobile-preview-dots,
      body.dashboard-view-active .mobile-chart-picker-overlay{
        display:none !important;
      }
      body.dashboard-view-active .status-flight-preview > .mobile-device-status-strip,
      body.dashboard-view-active .status-flight-preview > .mobile-sequence-progress-card,
      body.dashboard-view-active .status-flight-preview > .mobile-preview-dots{
        display:none !important;
      }
      body.dashboard-view-active #gyro3dViewport.status-gyro-canvas--3d{
        display:block !important;
        position:relative !important;
        width:100% !important;
        height:var(--desktop-preview-height) !important;
        min-height:220px !important;
        aspect-ratio:auto !important;
        border-radius:var(--radius-xl) !important;
        overflow:hidden !important;
      }
      body.dashboard-view-active #gyro3dViewport.is-desktop-preview-mounted{
        display:block !important;
        flex:1 1 auto !important;
      }
      body.dashboard-view-active #gyroGlPreview{
        display:block !important;
        width:100% !important;
        height:100% !important;
      }
    }
    @media(max-width:600px) and (pointer:coarse){
      html.settings-open,
      html.settings-open body{
        overflow:hidden !important;
      }
      html body #settingsOverlay{
        position:fixed !important;
        inset:0 !important;
        z-index:7000 !important;
        display:flex !important;
        align-items:stretch !important;
        justify-content:stretch !important;
        padding:0 !important;
        background:#101010 !important;
        -webkit-backdrop-filter:none !important;
        backdrop-filter:none !important;
      }
      html body #settingsOverlay.hidden{
        display:none !important;
      }
      html body #settingsOverlay > .settings-dialog{
        position:fixed !important;
        inset:0 !important;
        width:100vw !important;
        max-width:100vw !important;
        height:100dvh !important;
        max-height:100dvh !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:#101010 !important;
        color:#eeeeee !important;
        box-shadow:none !important;
        -webkit-backdrop-filter:none !important;
        backdrop-filter:none !important;
      }
      html body #settingsOverlay > .settings-dialog::before,
      html body #settingsOverlay > .settings-dialog::after{
        content:none !important;
        display:none !important;
      }
      html.settings-open body #settingsOverlay .settings-header{
        position:absolute !important;
        left:0 !important;
        right:0 !important;
        top:0 !important;
        width:100vw !important;
        box-sizing:border-box !important;
        z-index:3 !important;
        flex:0 0 auto !important;
        min-height:calc(64px + env(safe-area-inset-top, 0px)) !important;
        margin:0 !important;
        padding:env(safe-area-inset-top, 0px) 56px 0 !important;
        border:0 !important;
        border-bottom:1px solid #292929 !important;
        background:#202020 !important;
      }
      html body #settingsOverlay .settings-title{
        color:#eeeeee !important;
        font-size:20px !important;
        line-height:1 !important;
        font-weight:600 !important;
        letter-spacing:-.02em !important;
        text-transform:none !important;
      }
      html body #settingsOverlay .settings-header .settings-close-btn{
        position:absolute !important;
        left:14px !important;
        top:calc(env(safe-area-inset-top, 0px) + 14px) !important;
        transform:none !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
        min-height:40px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:8px !important;
        background:transparent !important;
        color:#dddddd !important;
        font-size:0 !important;
        box-shadow:none !important;
      }
      html body #settingsOverlay .settings-header .settings-close-btn::before,
      html body #settingsOverlay .settings-header .settings-close-btn::after{
        content:"";
        position:absolute;
        left:12px;
        width:16px;
        height:2px;
        border-radius:2px;
        background:#dddddd;
        transform-origin:left center;
      }
      html body #settingsOverlay .settings-header .settings-close-btn::before{
        top:19px;
        transform:rotate(-45deg);
      }
      html body #settingsOverlay .settings-header .settings-close-btn::after{
        top:19px;
        transform:rotate(45deg);
      }
      html body #settingsOverlay .settings-body{
        display:block !important;
        flex:1 1 auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:calc(76px + env(safe-area-inset-top, 0px)) 10px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        width:100% !important;
        box-sizing:border-box !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch;
        background:#101010 !important;
      }
      html body #settingsOverlay .mobile-settings-home{
        display:flex !important;
        flex-direction:column;
        gap:12px;
        width:100% !important;
      }
      html body #settingsOverlay.mobile-settings-detail .mobile-settings-home{
        display:none !important;
      }
      html body #settingsOverlay .mobile-settings-menu-card{
        width:100% !important;
        box-sizing:border-box !important;
        overflow:hidden;
        border:1px solid #2b2b2b;
        border-radius:10px;
        background:#202020;
      }
      html body #settingsOverlay .mobile-settings-home-btn{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:space-between;
        width:100%;
        min-height:66px;
        padding:0 18px;
        border:0;
        border-radius:0;
        background:transparent;
        color:#e0e0e0;
        box-shadow:none;
        font-size:17px;
        line-height:1;
        font-weight:450;
        text-align:left;
      }
      html body #settingsOverlay .mobile-settings-home-btn + .mobile-settings-home-btn::before{
        content:"";
        position:absolute;
        left:18px;
        right:18px;
        top:0;
        height:1px;
        background:#323232;
      }
      html body #settingsOverlay .mobile-settings-home-btn i{
        color:#9d9d9d;
        font-size:30px;
        line-height:1;
        font-style:normal;
        font-weight:300;
      }
      html body #settingsOverlay .settings-nav{
        display:none !important;
      }
      html body #settingsOverlay .settings-panels{
        display:none !important;
        width:100% !important;
        padding:0 !important;
        overflow:visible !important;
      }
      html body #settingsOverlay.mobile-settings-detail .settings-panels{
        display:block !important;
      }
      html body #settingsOverlay.mobile-settings-detail .settings-panel.active{
        display:block !important;
      }
      html body #settingsOverlay .settings-group{
        margin:0 0 12px !important;
        padding:6px 16px !important;
        border:1px solid #2b2b2b !important;
        border-radius:10px !important;
        background:#202020 !important;
      }
      html body #settingsOverlay .settings-group-title{
        margin:8px 0 2px !important;
        color:#8e8e8e !important;
        font-size:11px !important;
        font-weight:550 !important;
        letter-spacing:.04em !important;
      }
      html body #settingsOverlay .settings-row{
        min-height:58px;
        padding:12px 0 !important;
        border-bottom:1px solid #323232;
        align-items:center !important;
      }
      html body #settingsOverlay .settings-row:last-child{
        border-bottom:0;
      }
      html body #settingsOverlay .settings-label{
        color:#e2e2e2 !important;
        font-size:14px !important;
        font-weight:520 !important;
      }
      html body #settingsOverlay .settings-desc,
      html body #settingsOverlay .hint-mini{
        color:#929292 !important;
      }
      html body #settingsOverlay .settings-select,
      html body #settingsOverlay .settings-number,
      html body #settingsOverlay .settings-inline-btn,
      html body #settingsOverlay .settings-btn{
        background:#161616 !important;
        border-color:#3a3a3a !important;
        color:#e5e5e5 !important;
      }
      html.settings-open body:has(#settingsOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
      }

      /* Wi-Fi / Serial connection sheets: match the servo and pyro bottom sheets. */
      html:not(.phone-landscape-layout) body #wifiConnectOverlay,
      html:not(.phone-landscape-layout) body #serialConnectOverlay{
        position:fixed !important;
        inset:0 !important;
        z-index:6000 !important;
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
        background:rgba(0,0,0,.42) !important;
        -webkit-backdrop-filter:blur(8px);
        backdrop-filter:blur(8px);
        overflow:hidden !important;
      }
      html:not(.phone-landscape-layout) body:has(#wifiConnectOverlay:not(.hidden)) .side-nav-mobile,
      html:not(.phone-landscape-layout) body:has(#serialConnectOverlay:not(.hidden)) .side-nav-mobile{
        display:none !important;
        pointer-events:none !important;
      }
      html:not(.phone-landscape-layout) body #wifiConnectOverlay > *,
      html:not(.phone-landscape-layout) body #serialConnectOverlay > *{
        margin:0 !important;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog{
        width:100vw !important;
        max-width:100vw !important;
        min-height:0 !important;
        height:auto !important;
        max-height:min(64dvh,540px) !important;
        border:0 !important;
        border-top:1px solid #303030 !important;
        border-radius:12px 12px 0 0 !important;
        background:#171717 !important;
        box-shadow:none !important;
        padding:0 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        color:#f2f2f2 !important;
        overflow:hidden !important;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog::before,
      html:not(.phone-landscape-layout) body .connection-sheet-dialog::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-header{
        position:relative;
        min-height:58px;
        margin:0 -16px;
        padding:16px 50px 11px;
        display:flex;
        align-items:center;
        justify-content:center;
        border:0;
        border-bottom:1px solid #292929;
        background:transparent;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-title{
        color:#f2f2f2 !important;
        font-size:17px;
        line-height:1.1;
        font-weight:560;
        letter-spacing:0;
        text-transform:none;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-close-btn{
        position:absolute;
        right:16px;
        top:50%;
        transform:translateY(-50%);
        width:36px;
        height:36px;
        border:0;
        border-radius:8px;
        background:transparent;
        color:transparent;
        font-size:0;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-close-btn::before,
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-close-btn::after{
        content:"";
        position:absolute;
        left:9px;
        top:17px;
        width:18px;
        height:2px;
        border-radius:2px;
        background:#dedede;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-close-btn::before{transform:rotate(45deg)}
      html:not(.phone-landscape-layout) body .connection-sheet-dialog .settings-close-btn::after{transform:rotate(-45deg)}
      html:not(.phone-landscape-layout) body .connection-sheet-body{
        display:flex;
        flex-direction:column;
        gap:12px;
        padding:16px 0 0;
        overflow:auto;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-desc{
        color:#e7e7e7;
        font-size:15px;
        line-height:1.55;
        font-weight:520;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-note{
        padding:14px;
        border:1px solid #2d2d2d;
        border-radius:10px;
        background:#1d1d1d;
        color:#a8a8a8;
        font-size:12px;
        line-height:1.5;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-primary{
        width:100%;
        min-height:48px;
        margin-top:2px;
        border:0;
        border-radius:10px;
        background:#f0f0f0;
        color:#111;
        font:inherit;
        font-size:15px;
        font-weight:700;
        box-shadow:none;
      }
      html:not(.phone-landscape-layout) body .connection-sheet-primary:disabled{
        opacity:.48;
      }
    }

    /* Use one native scroll owner while firmware owns an active sequence. */
    html.sequence-running:not(.phone-landscape-layout):not(.status-map-expanded):not(.gyro3d-expanded),
    html.sequence-running:not(.phone-landscape-layout):not(.status-map-expanded):not(.gyro3d-expanded) body{
      height:100% !important;
      overflow:hidden !important;
    }
    html.sequence-running:not(.phone-landscape-layout):not(.status-map-expanded):not(.gyro3d-expanded) .app-shell{
      height:100dvh !important;
      min-height:100dvh !important;
    }
    html.sequence-running:not(.phone-landscape-layout):not(.status-map-expanded):not(.gyro3d-expanded) .page-wrap{
      height:100dvh !important;
      min-height:0 !important;
      overflow-x:hidden !important;
      overflow-y:auto !important;
      touch-action:pan-y !important;
      overscroll-behavior-y:contain !important;
      -webkit-overflow-scrolling:touch;
    }
    @media (max-width:900px), (pointer:coarse){
      html.sequence-running .mobile-controls-panel.is-open{
        max-height:calc(100dvh - 24px) !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        touch-action:pan-y !important;
        -webkit-overflow-scrolling:touch;
      }
    }

    /* Replay: mobile dark identity + contained scrolling */
    #controlsCard.replay-mode #controlsCardTitle{
      letter-spacing:.02em !important;
    }
    #controlsCard.replay-mode .replay-panel{
      min-height:0;
      background:transparent !important;
      border:0 !important;
      box-shadow:none !important;
    }
    #controlsCard.replay-mode .replay-panel:not(.replay-empty) .replay-dropzone{
      min-height:74px;
      padding:12px 14px;
      align-items:flex-start;
      text-align:left;
      border-radius:14px;
    }
    #controlsCard.replay-mode .replay-dropzone-title{
      font-size:13px;
      font-weight:800;
      line-height:1.25;
    }
    #controlsCard.replay-mode .replay-dropzone-guide{
      font-size:12px;
      line-height:1.28;
    }
    #controlsCard.replay-mode .replay-event-panel{
      margin-top:16px;
      padding:14px 0 0;
      border:0;
      border-top:1px solid rgba(255,255,255,.08);
      border-radius:0;
      background:transparent;
    }
    #controlsCard.replay-mode .replay-event-head{
      margin-bottom:10px;
      padding:0 2px;
    }
    #controlsCard.replay-mode .replay-event-title{
      color:#f5f5f5;
      font-size:14px;
      font-weight:850;
      letter-spacing:0;
    }
    #controlsCard.replay-mode .replay-event-count{
      min-width:0;
      padding:3px 8px;
      border:1px solid rgba(115,115,115,.36);
      border-radius:999px;
      background:rgba(38,38,38,.72);
      color:#a3a3a3;
      font-size:11px;
      font-weight:800;
      line-height:1.15;
    }
    #controlsCard.replay-mode .replay-event-list{
      gap:8px;
      max-height:min(240px, 26dvh);
      padding-right:2px;
      scrollbar-width:thin;
      scrollbar-color:#3f3f46 transparent;
    }
    #controlsCard.replay-mode .replay-event-list::-webkit-scrollbar{
      width:4px;
    }
    #controlsCard.replay-mode .replay-event-list::-webkit-scrollbar-thumb{
      border-radius:999px;
      background:#3f3f46;
    }
    #controlsCard.replay-mode .replay-event-item{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:4px;
      min-height:62px;
      padding:10px 12px;
      border:1px solid rgba(82,82,91,.62);
      border-radius:14px;
      background:rgba(24,24,27,.86);
      color:#e5e5e5;
      box-shadow:none;
      transform:none;
    }
    #controlsCard.replay-mode .replay-event-item:hover{
      border-color:rgba(115,115,115,.82);
      background:rgba(32,32,36,.92);
      transform:none;
    }
    #controlsCard.replay-mode .replay-event-item.is-active{
      border-color:rgba(34,197,94,.72);
      background:rgba(20,83,45,.20);
      box-shadow:inset 3px 0 0 #22c55e;
    }
    #controlsCard.replay-mode .replay-event-time{
      min-width:0;
      color:#22c55e;
      font-size:11px;
      font-weight:850;
      line-height:1.25;
      letter-spacing:0;
    }
    #controlsCard.replay-mode .replay-event-headline{
      width:100%;
      display:flex;
      align-items:baseline;
      justify-content:flex-start;
      gap:8px;
      min-width:0;
      text-align:left;
    }
    #controlsCard.replay-mode .replay-event-item-title{
      color:#f5f5f5;
      font-size:13px;
      font-weight:850;
      line-height:1.24;
    }
    #controlsCard.replay-mode .replay-event-message{
      color:#b8b8bc;
      font-size:12px;
      line-height:1.34;
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
      overflow:hidden;
    }
    #controlsCard.replay-mode .replay-event-meta{
      color:#737373;
      font-size:10px;
      font-weight:750;
      letter-spacing:0;
    }
    html[data-theme="dark"] #controlsCard.replay-mode .replay-event-panel,
    html[data-theme="dark"] #controlsCard.replay-mode .replay-event-item{
      box-shadow:none !important;
    }
    .mobile-controls-panel #controlsCard.replay-mode{
      display:flex !important;
      flex-direction:column !important;
      max-height:calc(100dvh - 48px - env(safe-area-inset-bottom, 0px)) !important;
      min-height:0 !important;
      overflow-x:hidden !important;
      overflow-y:auto !important;
      overscroll-behavior:contain;
      -webkit-overflow-scrolling:touch;
    }
    .mobile-controls-panel #controlsCard.replay-mode #controlsHeader{
      flex:0 0 auto;
    }
    .mobile-controls-panel #controlsCard.replay-mode .replay-panel{
      flex:0 0 auto;
      min-height:0;
      overflow:visible !important;
      padding-bottom:max(10px, env(safe-area-inset-bottom, 0px));
    }
    .mobile-controls-panel #controlsCard.replay-mode::-webkit-scrollbar{
      width:0;
      height:0;
    }
    @media(max-width:600px){
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        max-height:calc(100dvh - 48px - env(safe-area-inset-bottom, 0px)) !important;
        min-height:0 !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode #controlsHeader{
        flex:0 0 auto;
        margin-bottom:14px !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode #controlsCardTitle{
        font-size:19px !important;
        letter-spacing:.01em !important;
        line-height:1.1 !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .controls-subtitle{
        margin-top:3px !important;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-panel{
        flex:0 0 auto;
        min-height:0;
        overflow:visible !important;
        padding:0 2px max(10px, env(safe-area-inset-bottom, 0px));
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode::-webkit-scrollbar{
        width:0;
        height:0;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-layout-row{
        gap:12px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-panel:not(.replay-empty) .replay-dropzone{
        min-height:68px;
        padding:12px 14px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-action-row{
        flex-wrap:wrap;
        gap:8px 12px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-speed-row{
        margin-left:0;
        min-width:0;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-speed-buttons{
        flex-wrap:wrap;
        row-gap:8px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-convert-btn{
        min-height:42px;
        border-radius:14px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-event-panel{
        margin-top:14px;
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-event-list{
        max-height:clamp(128px, 24dvh, 220px);
      }
      html.mobile-controls-active:not(.phone-landscape-layout) .mobile-controls-panel #controlsCard.replay-mode .replay-event-item{
        grid-template-columns:70px minmax(0,1fr);
        min-height:58px;
        padding:10px 11px;
        border-radius:13px;
      }
    }
    html.replay-ui-active .controls-card.replay-mode .tablet-controls-close{
      display:none !important;
    }
    html.replay-ui-active .side-nav-mobile .side-nav-item:not([data-page-title="Dashboard"]),
    html.replay-ui-active .side-nav-mobile .side-nav-btn,
    html.replay-ui-active .side-nav-mobile .side-nav-action{
      opacity:.22 !important;
      filter:saturate(.15) grayscale(1) !important;
      pointer-events:none !important;
      cursor:not-allowed !important;
    }
    html.replay-ui-active .side-nav-mobile .side-nav-divider-mobile{
      opacity:.18 !important;
    }
/* Shared layout overrides. */
    @media (min-width:768px) and (pointer:fine){
      body.dashboard-view-active{
        overflow:hidden !important;
      }
      body.dashboard-view-active .app-shell{
        height:100dvh !important;
        min-height:100dvh !important;
        gap:0 !important;
      }
      body.dashboard-view-active .page-wrap{
        height:100dvh !important;
        min-height:100dvh !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        padding:16px clamp(28px,3.2vw,54px) 26px !important;
        gap:30px !important;
      }
      body.dashboard-view-active .top-bar{
        align-items:flex-start !important;
        margin:0 !important;
        padding:0 !important;
      }
      body.dashboard-view-active .countdown-mainline{
        gap:14px !important;
      }
      body.dashboard-view-active .shell{
        gap:16px !important;
      }
      body.dashboard-view-active #dashboardView .row-top{
        --desktop-layout-top-height:clamp(154px,29vh,260px);
        display:grid !important;
        grid-template-columns:minmax(0,1.08fr) minmax(420px,1fr) !important;
        gap:10px !important;
        height:var(--desktop-layout-top-height) !important;
        min-height:var(--desktop-layout-top-height) !important;
        max-height:var(--desktop-layout-top-height) !important;
      }
      body.dashboard-view-active #dashboardView .row-top > .card-base{
        height:var(--desktop-layout-top-height) !important;
        min-height:0 !important;
        max-height:var(--desktop-layout-top-height) !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only{
        padding:0 !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only::before,
      body.dashboard-view-active .main-card.status-card.status-map-only::after{
        display:none !important;
        content:none !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout{
        display:grid !important;
        grid-template-areas:"preview map" !important;
        grid-template-columns:minmax(180px,.48fr) minmax(0,1fr) !important;
        gap:8px !important;
        height:100% !important;
        margin:0 !important;
        padding:0 !important;
      }
      body.dashboard-view-active #gyro3dExpandedHud,
      body.dashboard-view-active .gyro3d-expanded-hud,
      body.dashboard-view-active .status-expanded-metrics{
        display:none !important;
        opacity:0 !important;
        pointer-events:none !important;
        visibility:hidden !important;
      }
      body.dashboard-view-active #statusMapViewport.is-expanded,
      body.dashboard-view-active #statusMapViewport.is-expanded #statusMap,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-container,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-pane,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-map-pane{
        width:auto !important;
        height:auto !important;
      }
      body.dashboard-view-active #statusMapViewport.is-expanded #statusMap,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-container{
        position:absolute !important;
        inset:0 !important;
        min-width:100vw !important;
        min-height:100vh !important;
      }
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-tile,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-marker-icon,
      body.dashboard-view-active #statusMapViewport.is-expanded .leaflet-marker-shadow{
        max-width:none !important;
      }
      body.dashboard-view-active .main-card.status-card.status-map-only .status-flight-preview,
      body.dashboard-view-active .main-card.status-card.status-map-only .status-map-panel,
      body.dashboard-view-active #gyro3dViewport.status-gyro-canvas--3d{
        height:100% !important;
        min-height:0 !important;
        max-height:none !important;
      }
      body.dashboard-view-active .status-flight-preview .mobile-preview-carousel{
        display:block !important;
        height:100% !important;
        overflow:hidden !important;
      }
      body.dashboard-view-active .status-flight-preview .mobile-preview-carousel > section{
        display:none !important;
      }
      body.dashboard-view-active .status-flight-preview .mobile-preview-carousel > .mobile-gyro-preview-slide{
        display:block !important;
        height:100% !important;
        opacity:1 !important;
        position:relative !important;
        transform:none !important;
        width:100% !important;
      }
      body.dashboard-view-active .status-flight-preview .mobile-stb-preview-image,
      body.dashboard-view-active .status-flight-preview .mobile-chart-empty,
      body.dashboard-view-active .status-flight-preview .mobile-chart-select-btn,
      body.dashboard-view-active .status-flight-preview .mobile-preview-dots,
      body.dashboard-view-active .status-flight-preview .mobile-sequence-progress-card,
      body.dashboard-view-active .status-flight-preview .mobile-device-status-strip,
      body.dashboard-view-active #navBallPreview{
        display:none !important;
      }
      body.dashboard-view-active .status-flight-preview #gyro3dViewport.status-gyro-canvas--3d{
        display:flex !important;
        width:100% !important;
      }
      body.dashboard-view-active .motor-card{
        display:flex !important;
        flex-direction:column !important;
        padding:16px !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header{
        display:grid !important;
        flex:0 0 auto !important;
        grid-template-columns:auto minmax(0,1fr) !important;
        gap:8px !important;
        align-items:start !important;
        margin-bottom:20px !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-bar{
        justify-content:flex-end !important;
        gap:5px !important;
        min-width:0 !important;
        max-width:100% !important;
        overflow:hidden !important;
        width:auto !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-bar > *{
        min-width:0 !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-battery{
        order:99 !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-conn-block,
      body.dashboard-view-active .motor-card .quick-data-header .status-battery,
      body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp{
        height:auto !important;
        padding:0 2px !important;
        background:transparent !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-conn-block::before{
        box-shadow:none !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp:hover,
      body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp:focus-visible{
        transform:none !important;
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
      }
      body.dashboard-view-active .motor-card .quick-data-header .status-conn-text,
      body.dashboard-view-active .motor-card .quick-data-header .battery-text,
      body.dashboard-view-active .motor-card .quick-data-header .chiptemp-label,
      body.dashboard-view-active .motor-card .quick-data-header .chiptemp-text{
        font-size:8px !important;
      }
      body.dashboard-view-active .quick-data-body{
        display:flex !important;
        flex:1 1 auto !important;
        gap:14px !important;
        min-height:0 !important;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics{
        flex:0 0 24% !important;
        gap:14px !important;
        height:100% !important;
        margin:0 !important;
      }
      body.dashboard-view-active .quick-data-body .quick-metrics .status-metric:nth-child(n+3),
      body.dashboard-view-active .quick-data-body .quick-metrics .mobile-only-quick-metric{
        display:none !important;
      }
      body.dashboard-view-active .motor-card .item-grid .item-null{
        display:flex !important;
      }
      body.dashboard-view-active .motor-card .item-grid .item.hidden{
        display:flex !important;
      }
      body.dashboard-view-active .motor-card .item-grid .item-null:last-child{
        display:none !important;
      }
      body.dashboard-view-active .quick-data-body .item-grid{
        align-content:stretch !important;
        gap:14px !important;
        grid-auto-rows:1fr !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        height:100% !important;
        margin:0 !important;
      }
      body.dashboard-view-active .status-metric,
      body.dashboard-view-active .motor-card .item{
        height:auto !important;
        min-height:0 !important;
        padding:12px 14px !important;
      }
      body.dashboard-view-active #dashboardView .row-bottom{
        display:grid !important;
        grid-template-columns:minmax(0,2.65fr) minmax(320px,.95fr) !important;
        gap:16px !important;
        align-items:start !important;
      }
      body.dashboard-view-active .row-bottom > .charts-card,
      body.dashboard-view-active .row-bottom > .controls-card{
        height:clamp(260px,49vh,440px) !important;
        min-height:0 !important;
      }
      body.dashboard-view-active .charts-card{
        grid-template-rows:minmax(0,1fr) !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
      }
      body.dashboard-view-active .chart-header{
        display:none !important;
      }
      body.dashboard-view-active .chart-row{
        gap:10px !important;
        height:100% !important;
        margin:0 !important;
        min-height:0 !important;
      }
      body.dashboard-view-active .chart-box{
        height:100% !important;
        min-height:0 !important;
      }
      body.dashboard-view-active .controls-card{
        overflow:hidden !important;
        padding:14px 16px !important;
      }
      body.dashboard-view-active #controlsHeader{
        align-items:flex-start !important;
        min-height:36px !important;
        margin-bottom:12px !important;
        padding:0 !important;
        background:transparent !important;
        border:0 !important;
      }
      body.dashboard-view-active #controlsCardTitle{
        font-size:13px !important;
        letter-spacing:.22em !important;
        line-height:1.05 !important;
      }
      body.dashboard-view-active .controls-subtitle{
        font-size:9px !important;
        line-height:1.15 !important;
        margin-top:4px !important;
      }
      body.dashboard-view-active .controls-header-actions{
        display:flex !important;
        align-items:flex-start !important;
        min-width:0 !important;
      }
      body.dashboard-view-active .controls-toolbar{
        gap:6px !important;
      }
      body.dashboard-view-active .controls-toolbar .controls-toolbar-action{
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        border-radius:10px !important;
      }
      body.dashboard-view-active .controls-grid,
      body.dashboard-view-active .control-row{
        gap:8px !important;
      }
      body.dashboard-view-active .controls-grid{
        height:calc(100% - 48px) !important;
        min-height:0 !important;
      }
      body.dashboard-view-active .controls-main-row{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(92px,.56fr) !important;
        gap:8px !important;
        min-height:58px !important;
      }
      body.dashboard-view-active .primary-btn-wrap,
      body.dashboard-view-active .abort-btn-wrap{
        min-width:0 !important;
      }
      body.dashboard-view-active .control-row{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        align-content:start !important;
        min-height:0 !important;
        overflow:hidden !important;
      }
      body.dashboard-view-active .controls-card .control-tile{
        height:auto !important;
        min-height:47px !important;
        padding:8px 10px !important;
      }
      body.dashboard-view-active .controls-card .control-tile.span-2{
        min-height:49px !important;
      }
      body.dashboard-view-active .controls-card .control-tile-mode{
        min-height:49px !important;
      }
      body.dashboard-view-active .controls-card .control-tile-label{
        font-size:11px !important;
        line-height:1.1 !important;
      }
      body.dashboard-view-active .controls-card .control-tile-sub{
        font-size:9px !important;
        line-height:1.15 !important;
        margin-top:2px !important;
      }
      body.dashboard-view-active .control-tile-actions{
        gap:6px !important;
        margin-left:auto !important;
      }
      body.dashboard-view-active .controls-card .control-row .control-tile-actions .pill,
      body.dashboard-view-active .controls-card .control-row .control-tile-actions button,
      body.dashboard-view-active .controls-card .control-row .control-tile-actions .control-tile-select{
        height:25px !important;
        min-width:58px !important;
        max-width:112px !important;
        font-size:9px !important;
        padding-left:8px !important;
        padding-right:8px !important;
      }
      body.dashboard-view-active .sequence-btn-title{
        font-size:11px !important;
      }
      body.dashboard-view-active .sequence-status-pill{
        padding:4px 9px !important;
        font-size:10px !important;
      }
      body.dashboard-view-active .primary-btn.sequence-btn,
      body.dashboard-view-active .controls-main-row .abort-btn-wrap .secondary-btn{
        min-height:58px !important;
        height:58px !important;
        border-radius:12px !important;
      }
      .sequence-status-pill.storage-guard-green,
      .mobile-sequence-status-pill.storage-guard-green{
        border-color:rgba(34,197,94,0.68) !important;
        background:rgba(34,197,94,0.16) !important;
        color:#22c55e !important;
      }
      .sequence-status-pill.storage-guard-orange,
      .mobile-sequence-status-pill.storage-guard-orange{
        border-color:rgba(249,115,22,0.76) !important;
        background:rgba(249,115,22,0.18) !important;
        color:#fb923c !important;
      }
      .sequence-status-pill.storage-guard-red,
      .mobile-sequence-status-pill.storage-guard-red{
        border-color:rgba(239,68,68,0.78) !important;
        background:rgba(239,68,68,0.18) !important;
        color:#f87171 !important;
      }
      .primary-btn.sequence-btn.storage-guard-green,
      .mobile-sequence-action.storage-guard-green{
        border-color:rgba(34,197,94,0.54) !important;
      }
      .primary-btn.sequence-btn.storage-guard-orange,
      .mobile-sequence-action.storage-guard-orange{
        border-color:rgba(249,115,22,0.66) !important;
      }
      .primary-btn.sequence-btn.storage-guard-red,
      .mobile-sequence-action.storage-guard-red{
        border-color:rgba(239,68,68,0.74) !important;
      }
      body.dashboard-view-active .controls-main-row .abort-btn-wrap .secondary-btn{
        font-size:13px !important;
        letter-spacing:.08em !important;
      }
      @media(max-width:1180px){
        body.dashboard-view-active .page-wrap{
          padding-left:28px !important;
          padding-right:28px !important;
        }
        body.dashboard-view-active #dashboardView .row-top{
          grid-template-columns:minmax(0,1.02fr) minmax(405px,.98fr) !important;
        }
        body.dashboard-view-active #dashboardView .row-bottom{
          grid-template-columns:minmax(0,2.1fr) minmax(230px,.78fr) !important;
        }
        body.dashboard-view-active .motor-card .quick-data-header #chipTempWrap,
        body.dashboard-view-active .motor-card .quick-data-header #perfWrap{
          display:none !important;
        }
      }
    }
    /* Desktop modal identity pass: keep mobile's dark cockpit tone, but use centered desktop dialogs. */
    @media (min-width:901px) and (min-height:721px){
      html:not(.phone-landscape-layout) body .confirm-overlay,
      html:not(.phone-landscape-layout) body .reboot-overlay,
      html:not(.phone-landscape-layout) body .ws-alert-overlay,
      html:not(.phone-landscape-layout) body .disconnect-overlay,
      html:not(.phone-landscape-layout) body #pyroControlOverlay,
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay{
        position:fixed !important;
        inset:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:24px !important;
        background:rgba(0,0,0,.68) !important;
        -webkit-backdrop-filter:blur(12px) saturate(1.05) !important;
        backdrop-filter:blur(12px) saturate(1.05) !important;
        overflow:auto !important;
      }
      html:not(.phone-landscape-layout) body .confirm-overlay.hidden,
      html:not(.phone-landscape-layout) body .reboot-overlay.hidden,
      html:not(.phone-landscape-layout) body .ws-alert-overlay.hidden,
      html:not(.phone-landscape-layout) body .disconnect-overlay.hidden,
      html:not(.phone-landscape-layout) body #pyroControlOverlay.hidden,
      html:not(.phone-landscape-layout) body #pyroConfirmOverlay.hidden{
        display:none !important;
      }
      html:not(.phone-landscape-layout) body .confirm-dialog,
      html:not(.phone-landscape-layout) body .reboot-dialog,
      html:not(.phone-landscape-layout) body .ws-alert-dialog,
      html:not(.phone-landscape-layout) body .disconnect-dialog,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog{
        width:min(92vw, 560px) !important;
        max-width:min(92vw, 560px) !important;
        min-width:0 !important;
        min-height:0 !important;
        height:auto !important;
        max-height:calc(100dvh - 48px) !important;
        margin:auto !important;
        padding:22px 24px 20px !important;
        border:1px solid #343434 !important;
        border-radius:18px !important;
        background:#171717 !important;
        color:#f4f4f4 !important;
        box-shadow:0 28px 72px rgba(0,0,0,.56) !important;
        overflow:auto !important;
        text-align:center !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-dialog,
      html:not(.phone-landscape-layout) body #forceOverlay .confirm-dialog{
        width:min(92vw, 620px) !important;
        max-width:min(92vw, 620px) !important;
      }
      html:not(.phone-landscape-layout) body .confirm-dialog::before,
      html:not(.phone-landscape-layout) body .confirm-dialog::after,
      html:not(.phone-landscape-layout) body .reboot-dialog::before,
      html:not(.phone-landscape-layout) body .reboot-dialog::after,
      html:not(.phone-landscape-layout) body .ws-alert-dialog::before,
      html:not(.phone-landscape-layout) body .ws-alert-dialog::after,
      html:not(.phone-landscape-layout) body .disconnect-dialog::before,
      html:not(.phone-landscape-layout) body .disconnect-dialog::after,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog::before,
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body .confirm-icon{
        display:flex !important;
        margin:0 auto 14px !important;
        width:auto !important;
        height:auto !important;
        color:#f4f4f4 !important;
      }
      html:not(.phone-landscape-layout) body .confirm-icon span{
        font-size:52px !important;
        line-height:1 !important;
        color:#f4f4f4 !important;
      }
      html:not(.phone-landscape-layout) body .confirm-title,
      html:not(.phone-landscape-layout) body .ws-alert-title,
      html:not(.phone-landscape-layout) body .disconnect-title{
        min-height:0 !important;
        margin:0 0 10px !important;
        padding:0 !important;
        border:0 !important;
        display:block !important;
        color:#f5f5f5 !important;
        font-size:22px !important;
        line-height:1.25 !important;
        font-weight:760 !important;
        letter-spacing:0 !important;
        text-align:center !important;
      }
      html:not(.phone-landscape-layout) body .confirm-text,
      html:not(.phone-landscape-layout) body .confirm-note,
      html:not(.phone-landscape-layout) body .ws-alert-text,
      html:not(.phone-landscape-layout) body .disconnect-text{
        color:#b8b8b8 !important;
        font-size:14px !important;
        line-height:1.58 !important;
        text-align:center !important;
        word-break:keep-all !important;
      }
      html:not(.phone-landscape-layout) body .confirm-text{
        margin:0 auto 16px !important;
        max-width:46rem !important;
      }
      html:not(.phone-landscape-layout) body .confirm-note{
        width:auto !important;
        max-width:46rem !important;
        margin:0 auto 16px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        color:#d6d6d6 !important;
      }
      html:not(.phone-landscape-layout) body .ignition-warning-illustration,
      html:not(.phone-landscape-layout) body .pyro-control-confirm-illustration{
        width:min(100%, 430px) !important;
        max-width:430px !important;
        aspect-ratio:1 !important;
        margin:8px auto 16px !important;
        border-radius:12px !important;
        overflow:hidden !important;
        background:#f8f8f8 !important;
      }
      html:not(.phone-landscape-layout) body .ignition-warning-illustration img,
      html:not(.phone-landscape-layout) body .pyro-control-confirm-illustration img{
        width:100% !important;
        height:100% !important;
        object-fit:cover !important;
      }
      html:not(.phone-landscape-layout) body .confirm-actions,
      html:not(.phone-landscape-layout) body .reboot-actions,
      html:not(.phone-landscape-layout) body .disconnect-actions{
        width:100% !important;
        margin:12px auto 0 !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:10px !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-wrap{
        width:100% !important;
        min-height:0 !important;
        margin:0 !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn{
        position:relative !important;
        width:min(100%, 360px) !important;
        height:52px !important;
        min-height:52px !important;
        padding:0 18px !important;
        border:1px solid #2fb65b !important;
        border-radius:12px !important;
        background:#179746 !important;
        color:#fff !important;
        box-shadow:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn span{
        font-size:14px !important;
        font-weight:720 !important;
        color:#fff !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-ring,
      html:not(.phone-landscape-layout) body #confirmOverlay .longpress-spinner{
        border-radius:12px !important;
      }
      html:not(.phone-landscape-layout) body .confirm-cancel,
      html:not(.phone-landscape-layout) body .force-cancel-link,
      html:not(.phone-landscape-layout) body .reboot-actions .confirm-cancel{
        position:static !important;
        width:auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:6px 10px !important;
        border:0 !important;
        background:transparent !important;
        color:#9c9c9c !important;
        font-size:13px !important;
        line-height:1.2 !important;
        text-decoration:underline !important;
        text-underline-offset:4px !important;
        box-shadow:none !important;
      }
      html:not(.phone-landscape-layout) body .confirm-cancel::before,
      html:not(.phone-landscape-layout) body .confirm-cancel::after{
        content:none !important;
        display:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel{
        position:absolute !important;
        top:14px !important;
        right:14px !important;
        z-index:4 !important;
        width:34px !important;
        height:34px !important;
        min-height:34px !important;
        padding:0 !important;
        border-radius:10px !important;
        color:transparent !important;
        text-decoration:none !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::before,
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::after{
        content:"" !important;
        display:block !important;
        position:absolute !important;
        left:9px !important;
        top:16px !important;
        width:16px !important;
        height:2px !important;
        border-radius:2px !important;
        background:#bdbdbd !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::before{
        transform:rotate(45deg) !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel::after{
        transform:rotate(-45deg) !important;
      }
      html:not(.phone-landscape-layout) body #confirmOverlay .confirm-cancel:hover{
        background:#242424 !important;
      }
      html:not(.phone-landscape-layout) body .force-slide{
        width:min(100%, 380px) !important;
        max-width:380px !important;
        height:52px !important;
        border-radius:12px !important;
        background:#202020 !important;
        border-color:#3d3d3d !important;
        box-shadow:none !important;
      }
      html:not(.phone-landscape-layout) body .force-slide-thumb{
        height:44px !important;
        border-radius:10px !important;
        background:#efefef !important;
        color:#111 !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-dialog .settings-header{
        min-height:0 !important;
        margin:0 0 14px !important;
        padding:0 !important;
        border:0 !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-title{
        color:#f5f5f5 !important;
        font-size:22px !important;
      }
      html:not(.phone-landscape-layout) body #pyroControlOverlay .pyro-control-close{
        top:14px !important;
        right:14px !important;
      }
    }

/* style block 3: id="daqGyroPreviewGuard" */
    html.mode-daq.board-connected body.dashboard-view-active #gyro3dViewport,
    html.mode-daq.board-connected body.dashboard-view-active #gyroGlPreview,
    html.mode-daq.board-connected body.dashboard-view-active #navBallPreview,
    html.mode-daq.board-connected body.dashboard-view-active .mobile-gyro-preview-slide{
      display:none !important;
    }
    @media(min-width:768px) and (pointer:fine){
      html.mode-daq.board-connected body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout{
        grid-template-columns:1fr !important;
        grid-template-areas:"map" !important;
      }
      html.mode-daq.board-connected body.dashboard-view-active .main-card.status-card.status-map-only .status-flight-preview{
        display:none !important;
      }
      html.mode-daq.board-connected body.dashboard-view-active .main-card.status-card.status-map-only .status-map-panel{
        grid-area:map !important;
        width:100% !important;
      }
    }
    @media(max-width:900px), (pointer:coarse){
      html.mode-daq.board-connected body.dashboard-view-active .status-flight-preview .mobile-gyro-preview-slide,
      html.mode-daq.board-connected body.dashboard-view-active .status-flight-preview #gyro3dViewport,
      html.mode-daq.board-connected body.dashboard-view-active .status-flight-preview #navBallPreview{
        display:none !important;
      }
    }

/* style block 5: id="replayScrollFinalOverride" */
    html.replay-ui-active body.dashboard-view-active #controlsCard.controls-card.replay-mode,
    html.replay-ui-active #controlsCard.controls-card.replay-mode{
      display:flex !important;
      flex-direction:column !important;
      min-height:0 !important;
      overflow-x:hidden !important;
      overflow-y:auto !important;
      overscroll-behavior:contain !important;
      -webkit-overflow-scrolling:touch !important;
      touch-action:pan-y !important;
    }
    html.replay-ui-active body.dashboard-view-active #controlsCard.controls-card.replay-mode .replay-panel,
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-panel{
      display:flex !important;
      flex:0 0 auto !important;
      min-height:0 !important;
      overflow:visible !important;
      padding-bottom:max(18px, env(safe-area-inset-bottom, 0px)) !important;
    }
    html.replay-ui-active body.dashboard-view-active #controlsCard.controls-card.replay-mode #controlsHeader,
    html.replay-ui-active #controlsCard.controls-card.replay-mode #controlsHeader{
      flex:0 0 auto !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-item{
      box-sizing:border-box !important;
      display:flex !important;
      flex-direction:column !important;
      justify-content:flex-start !important;
      align-items:flex-start !important;
      gap:4px !important;
      text-align:left !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-headline{
      display:flex !important;
      width:100% !important;
      min-width:0 !important;
      align-items:baseline !important;
      justify-content:flex-start !important;
      gap:8px !important;
      text-align:left !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-time{
      flex:0 0 auto !important;
      min-width:0 !important;
      width:auto !important;
      text-align:left !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-item-title{
      flex:0 1 auto !important;
      min-width:0 !important;
      text-align:left !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-message,
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-meta{
      width:100% !important;
      text-align:left !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-message{
      margin-top:2px !important;
    }
    html.replay-ui-active .mobile-controls-panel.is-open{
      overflow-x:hidden !important;
      overflow-y:auto !important;
      overscroll-behavior:contain !important;
      -webkit-overflow-scrolling:touch !important;
      touch-action:pan-y !important;
    }
    html.replay-ui-active .mobile-controls-panel #controlsCard.controls-card.replay-mode{
      max-height:calc(100dvh - 48px - env(safe-area-inset-bottom, 0px)) !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode::-webkit-scrollbar{
      width:6px !important;
      height:6px !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode::-webkit-scrollbar-track{
      background:transparent !important;
    }
    html.replay-ui-active #controlsCard.controls-card.replay-mode::-webkit-scrollbar-thumb{
      border-radius:999px !important;
      background:rgba(115,115,115,.58) !important;
    }
    @media(max-width:600px){
      html.replay-ui-active #controlsCard.controls-card.replay-mode{
        max-height:calc(100dvh - 40px - env(safe-area-inset-bottom, 0px)) !important;
      }
      html.replay-ui-active .mobile-controls-panel #controlsCard.controls-card.replay-mode{
        max-height:calc(100dvh - 40px - env(safe-area-inset-bottom, 0px)) !important;
      }
      html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-item{
        gap:3px 8px !important;
        padding:10px 12px !important;
      }
      html.replay-ui-active #controlsCard.controls-card.replay-mode .replay-event-time{
        width:auto !important;
      }
      html.replay-ui-active #controlsCard.controls-card.replay-mode::-webkit-scrollbar{
        width:0 !important;
        height:0 !important;
      }
    }
/* Camera page overlay skin: mirrors FLASH7/overlay.html inside the dashboard shell. */
body.camera-view-active .top-bar{display:none !important}
html.sim-active.mode-daq body.daq-simulation-main .page-wrap{padding:8px clamp(12px,1.25vw,24px) 12px!important;gap:8px!important}
.daq-board-status{display:none}
html.sim-active.mode-daq body.daq-simulation-main .top-bar{min-height:28px;align-items:center!important;margin:0!important;padding:0!important}
html.sim-active.mode-daq body.daq-simulation-main .top-left{display:none!important}
html.sim-active.mode-daq body.daq-simulation-main .top-right{min-width:0;flex:1;flex-wrap:nowrap}
html.sim-active.mode-daq body.daq-simulation-main .daq-board-status{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-width:0;color:var(--ui-muted);font:600 11px/1 "SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.015em;white-space:nowrap}
.daq-board-stage,.daq-board-identity,.daq-board-metrics,.daq-board-tools{display:flex;align-items:center;gap:14px;min-width:0}
.daq-board-identity{gap:9px;color:var(--ui-text)}
.daq-board-identity strong{font:inherit;font-weight:650}
.daq-board-identity span{font:inherit;color:var(--ui-muted);font-weight:500;letter-spacing:.06em}
.daq-board-metrics{gap:13px;overflow:hidden}
.daq-board-metrics span{flex:0 0 auto}
.daq-board-metrics b{margin-left:4px;color:var(--ui-text);font:inherit;font-variant-numeric:tabular-nums}
.daq-board-metrics #daqBoardState{color:var(--ui-text)}
.daq-board-tools{flex:0 0 auto;gap:14px}
.daq-board-tools time{font:inherit;font-variant-numeric:tabular-nums}
.daq-board-tools button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:28px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;font:inherit;letter-spacing:inherit;cursor:pointer}
.daq-board-tools button:is(:hover,.is-active,.is-open,.has-unread){color:var(--ui-text)}
.daq-board-tools button:focus-visible{outline:1px solid var(--ui-muted);outline-offset:3px}
html.sim-active.mode-daq body.daq-simulation-main :is(.alarm-history-toggle,.control-center-toggle){display:none!important}
@media(max-width:1100px){.daq-board-metrics{gap:9px}}
@media(max-width:700px){.daq-board-metrics{display:none}.daq-board-tools{gap:10px}html.sim-active.mode-daq body.daq-simulation-main .daq-board-status{gap:10px;font-size:10px}}

body.camera-view-active .page-wrap{
  padding:0 !important;
  gap:0 !important;
  background:#020617 !important;
}

/* Dashboard control panel · use the same restrained hardware-control language. */
@media (min-width:901px){
  body.dashboard-view-active #controlsCard.controls-card{
    display:flex !important;
    flex-direction:column !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #34363b !important;
    border-radius:8px !important;
    background:#151618 !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard #controlsHeader{
    flex:0 0 62px !important;
    min-height:62px !important;
    margin:0 !important;
    padding:0 14px 0 18px !important;
    align-items:center !important;
    border:0 !important;
    border-bottom:1px solid #2c2e32 !important;
    background:#191a1d !important;
  }
  body.dashboard-view-active #controlsCardTitle{
    color:#f4f5f6 !important;
    font-size:15px !important;
    font-weight:650 !important;
    line-height:1.1 !important;
    letter-spacing:.16em !important;
  }
  body.dashboard-view-active #controlsCard .controls-subtitle{
    margin-top:4px !important;
    color:#858a94 !important;
    font-size:9px !important;
    font-weight:550 !important;
    letter-spacing:.12em !important;
  }
  body.dashboard-view-active #controlsCard .controls-toolbar{
    gap:5px !important;
  }
  body.dashboard-view-active #controlsCard .controls-toolbar .controls-toolbar-action{
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    border:1px solid #303238 !important;
    border-radius:7px !important;
    background:#1d1e21 !important;
    color:#b7bbc2 !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard .controls-toolbar .controls-toolbar-action:hover{
    transform:none !important;
    border-color:#44474e !important;
    background:#27292d !important;
    color:#f4f5f6 !important;
  }
  body.dashboard-view-active #controlsCard .controls-grid{
    flex:1 1 auto !important;
    height:auto !important;
    min-height:0 !important;
    gap:8px !important;
    margin:0 !important;
    padding:14px 16px 16px !important;
  }
  body.dashboard-view-active #controlsCard .controls-main-row{
    grid-template-columns:minmax(0,1fr) minmax(96px,.42fr) !important;
    min-height:58px !important;
    gap:7px !important;
  }
  body.dashboard-view-active #controlsCard .primary-btn.sequence-btn,
  body.dashboard-view-active #controlsCard .controls-main-row .secondary-btn{
    height:58px !important;
    min-height:58px !important;
    border-radius:7px !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard .primary-btn.sequence-btn{
    padding:0 14px !important;
    border:1px solid #393c42 !important;
    background:#1b1c1f !important;
    color:#f2f3f5 !important;
  }
  body.dashboard-view-active #controlsCard .primary-btn.sequence-btn:hover:not(:disabled){
    transform:none !important;
    border-color:#51545c !important;
    background:#222327 !important;
  }
  body.dashboard-view-active #controlsCard .sequence-btn-title{
    color:#f2f3f5 !important;
    font-size:11px !important;
    font-weight:650 !important;
    letter-spacing:.1em !important;
  }
  body.dashboard-view-active #controlsCard .sequence-status-pill{
    min-width:52px !important;
    padding:5px 8px !important;
    border:1px solid #393c42 !important;
    border-radius:5px !important;
    background:#24262a !important;
    color:#aeb2ba !important;
    font-size:9px !important;
  }
  body.dashboard-view-active #controlsCard .controls-main-row .secondary-btn{
    border:1px solid #553033 !important;
    background:#26191b !important;
    color:#e08d93 !important;
    font-size:11px !important;
    font-weight:650 !important;
    letter-spacing:.12em !important;
  }
  body.dashboard-view-active #controlsCard .controls-main-row .secondary-btn:not(:disabled):hover{
    transform:none !important;
    border-color:#744047 !important;
    background:#321d20 !important;
    color:#ffb0b5 !important;
  }
  body.dashboard-view-active #controlsCard .controls-main-row .secondary-btn:disabled{
    opacity:.5 !important;
    border-color:#303238 !important;
    background:#1a1b1e !important;
    color:#737780 !important;
  }
  body.dashboard-view-active #controlsCard .control-row{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    overflow:visible !important;
  }
  body.dashboard-view-active #controlsCard .control-tile,
  body.dashboard-view-active #controlsCard .control-tile.span-2,
  body.dashboard-view-active #controlsCard .control-tile-mode{
    height:52px !important;
    min-height:52px !important;
    padding:0 11px !important;
    border:1px solid #303238 !important;
    border-radius:7px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard .control-tile.is-btn:hover{
    transform:none !important;
    border-color:#44474e !important;
    background:#202125 !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard .flight-logging-tile.is-recording{
    border-color:#315a45 !important;
    background:#19231e !important;
  }
  body.dashboard-view-active #controlsCard .flight-logging-tile.is-recording .control-tile-label{
    color:#9ce0b8 !important;
  }
  body.dashboard-view-active #controlsCard .flight-logging-tile.is-stopped{
    border-color:#5b3438 !important;
    background:#241a1c !important;
  }
  body.dashboard-view-active #controlsCard .flight-logging-tile.is-stopped .control-tile-label{
    color:#f0a3aa !important;
  }
  body.dashboard-view-active #controlsCard .flight-logging-tile.is-pending{
    opacity:.72;
  }
  body.dashboard-view-active #controlsCard .control-tile-label{
    color:#e9eaec !important;
    font-size:11px !important;
    font-weight:620 !important;
  }
  body.dashboard-view-active #controlsCard .control-tile-sub{
    margin-top:3px !important;
    color:#7f848e !important;
    font-size:8px !important;
    font-weight:520 !important;
    letter-spacing:.04em !important;
  }
  body.dashboard-view-active #controlsCard .control-tile-actions .pill,
  body.dashboard-view-active #controlsCard .control-tile-actions button,
  body.dashboard-view-active #controlsCard .control-tile-actions .control-tile-select{
    min-width:60px !important;
    max-width:108px !important;
    height:27px !important;
    padding:0 9px !important;
    border:1px solid #393c42 !important;
    border-radius:6px !important;
    background:#24262a !important;
    color:#c9ccd1 !important;
    font-size:9px !important;
    font-weight:620 !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #controlsCard .control-tile-actions .pill-toggle.is-on{
    border-color:#315a45 !important;
    background:#1b3026 !important;
    color:#83d5a6 !important;
  }
  body.dashboard-view-active #controlsCard .control-tile-actions .pill-toggle.is-off{
    border-color:#3b3d43 !important;
    background:#232428 !important;
    color:#9a9ea6 !important;
  }

}

/* Desktop dashboard vehicle rail: keep the mobile dashboard untouched. */
body.dashboard-view-active .stage-overview-panel:has(> .stage-telemetry-deck.hidden){
  display:none !important;
}
@media (min-width:1181px) and (pointer:fine){
  body.dashboard-view-active .main-card.status-card.status-map-only .status-flight-preview{
    display:none !important;
  }
  body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout{
    grid-template-areas:"vehicle" !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout:has(> .stage-overview-panel > .stage-telemetry-deck.hidden){
    grid-template-areas:"map" !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.dashboard-view-active .main-card.status-card.status-map-only .status-map-layout:has(> .stage-overview-panel > .stage-telemetry-deck:not(.hidden)) > .status-map-panel{
    display:none !important;
  }
  body.dashboard-view-active .stage-overview-panel{
    grid-area:vehicle;
    display:block;
    min-width:0;
    min-height:0;
    height:100%;
    overflow:hidden;
  }
  body.dashboard-view-active .stage-overview-panel .stage-telemetry-deck{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:minmax(0,1fr);
    gap:8px;
    width:100%;
    height:100%;
    margin:0 !important;
  }
  body.dashboard-view-active .stage-overview-panel .stage-telemetry-card{
    display:flex !important;
    flex-direction:column;
    width:100%;
    height:100%;
    min-height:0;
    padding:16px 18px 14px !important;
    border-color:rgba(148,163,184,.18) !important;
    border-radius:7px !important;
    background:#101318 !important;
    box-shadow:none !important;
    visibility:visible !important;
    opacity:1 !important;
    cursor:pointer;
    transition:border-color .16s ease,background-color .16s ease;
  }
  body.dashboard-view-active .stage-overview-panel .stage-telemetry-card.is-selected{
    border-color:rgba(148,163,184,.46) !important;
    background:#13171c !important;
  }
  body.dashboard-view-active .stage-overview-panel .stage-telemetry-card:focus-visible{
    outline:1px solid rgba(226,232,240,.72);
    outline-offset:-3px;
  }
  body.dashboard-view-active .stage-overview-panel .stage-telemetry-card header strong{
    font-size:15px !important;
    font-weight:560 !important;
    letter-spacing:.07em !important;
  }
  body.dashboard-view-active #stageTelemetryDeck > [data-stage-card="2"]{
    display:flex !important;
    grid-column:2 !important;
    grid-row:1 !important;
  }
  body.dashboard-view-active:has(#stageTelemetryDeck:not(.hidden)) .motor-card > .quick-data-header{
    display:none !important;
  }
  body.dashboard-view-active:has(#stageTelemetryDeck:not(.hidden)) .motor-card > .quick-data-body{
    flex:1 1 auto;
  }
  body.dashboard-view-active .stage-telemetry-health{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    margin-top:12px;
    padding-top:10px;
    border-top:1px solid rgba(148,163,184,.14);
  }
  body.dashboard-view-active .stage-health-chip{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
    min-width:0;
    min-height:34px;
    padding:0 12px;
    border:0;
    border-left:1px solid rgba(148,163,184,.12);
    border-radius:0;
    background:transparent;
  }
  body.dashboard-view-active .stage-health-chip:first-child{
    padding-left:0;
    border-left:0;
  }
  body.dashboard-view-active .stage-health-chip small{
    color:#6f7d8d;
    font-size:7px;
    font-weight:650;
    line-height:1;
    letter-spacing:.12em;
  }
  body.dashboard-view-active .stage-health-chip b{
    color:#d7dce3;
    font-size:10px;
    font-weight:500;
    line-height:1;
    white-space:nowrap;
  }
  body.dashboard-view-active .stage-health-chip--link::before{
    content:none;
    display:none;
  }
  body.dashboard-view-active .motor-card .quick-data-header .status-bar{
    gap:7px !important;
    overflow:visible !important;
  }
  body.dashboard-view-active .motor-card .quick-data-header .status-conn-block,
  body.dashboard-view-active .motor-card .quick-data-header .status-battery,
  body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:30px !important;
    height:30px !important;
    padding:0 10px !important;
    border:1px solid rgba(148,163,184,.2) !important;
    border-radius:7px !important;
    background:rgba(14,18,23,.9) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
  }
  body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp:hover,
  body.dashboard-view-active .motor-card .quick-data-header .status-chiptemp:focus-visible{
    transform:none !important;
    border-color:rgba(148,163,184,.3) !important;
    background:rgba(18,23,29,.96) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  }
}

/* Replay compatibility notice: one quiet, blocking decision before a legacy
 * decoder is used.  It intentionally shares the current desktop/mobile modal
 * language without borrowing the destructive red action styling. */
html body #replayLegacyProtocolOverlay.mobile-chart-picker-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483646 !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
  background:rgba(5,6,8,.78) !important;
}
html body #replayLegacyProtocolOverlay.mobile-chart-picker-overlay:not(.hidden){
  display:flex !important;
}
html body #replayLegacyProtocolOverlay .replay-legacy-protocol-dialog{
  width:min(540px, calc(100vw - 40px)) !important;
  max-width:540px !important;
  min-height:0 !important;
  height:auto !important;
  max-height:calc(100dvh - 40px) !important;
  padding:32px !important;
  border:1px solid #393c42 !important;
  border-radius:8px !important;
  background:#17181a !important;
  color:#f4f4f5 !important;
  box-shadow:0 28px 80px rgba(0,0,0,.58) !important;
  overflow:auto !important;
}
.replay-legacy-protocol-kicker{
  color:#9ca3af;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
}
.replay-legacy-protocol-title{
  margin-top:8px;
  color:#f5f5f5;
  font-size:25px;
  font-weight:700;
  letter-spacing:-.025em;
}
.replay-legacy-protocol-copy{
  margin:18px 0 0;
  color:#b8bbc1;
  font-size:14px;
  line-height:1.7;
}
.replay-legacy-protocol-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:22px;
  border-top:1px solid #31343a;
  border-bottom:1px solid #31343a;
}
.replay-legacy-protocol-meta > span{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:15px 0;
  color:#858b95;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
}
.replay-legacy-protocol-meta > span + span{
  padding-left:20px;
  border-left:1px solid #31343a;
}
.replay-legacy-protocol-meta strong{
  color:#e5e7eb;
  font-size:14px;
  font-weight:650;
  letter-spacing:0;
}
.replay-legacy-protocol-file{
  margin:14px 0 0;
  color:#7f858f;
  font-family:var(--mono, ui-monospace, monospace);
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.replay-legacy-protocol-continue{
  width:100%;
  min-height:48px;
  margin-top:24px;
  border:1px solid #d6d8dc;
  border-radius:6px;
  background:#e8e9eb;
  color:#151618;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}
.replay-legacy-protocol-continue:hover{
  background:#fff;
}
@media (max-width:600px){
  html body #replayLegacyProtocolOverlay .replay-legacy-protocol-dialog{
    width:calc(100vw - 28px) !important;
    padding:24px 20px !important;
  }
  .replay-legacy-protocol-meta{
    grid-template-columns:1fr;
  }
  .replay-legacy-protocol-meta > span + span{
    padding-left:0;
    border-top:1px solid #31343a;
    border-left:0;
  }
}

/* Stage-2 early-apogee decision. This uses the same restrained confirmation
 * language as the mission standby modal while keeping the destructive action
 * visually unambiguous. */
body #stage2EarlyApogeeOverlay{
  z-index:100180 !important;
  padding:24px !important;
  background:rgba(5,7,10,.76) !important;
  backdrop-filter:blur(12px) saturate(.82) !important;
  -webkit-backdrop-filter:blur(12px) saturate(.82) !important;
}
body #stage2EarlyApogeeOverlay.hidden{
  display:none !important;
}
body #stage2EarlyApogeeOverlay > .stage2-early-apogee-dialog{
  width:min(720px, calc(100vw - 48px)) !important;
  min-height:0 !important;
  max-height:calc(100dvh - 48px) !important;
  margin:auto !important;
  padding:36px !important;
  overflow:auto !important;
  border:1px solid rgba(146,153,164,.28) !important;
  border-radius:18px !important;
  background:#17191c !important;
  box-shadow:0 24px 72px rgba(0,0,0,.5) !important;
}
body #stage2EarlyApogeeOverlay > .stage2-early-apogee-dialog::before,
body #stage2EarlyApogeeOverlay > .stage2-early-apogee-dialog::after{
  display:none !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-heading{
  display:grid;
  gap:8px;
  padding-bottom:22px;
  border-bottom:1px solid rgba(137,144,154,.22);
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-kicker{
  color:#ff7b86;
  font:700 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.17em;
}
body #stage2EarlyApogeeOverlay .confirm-title{
  margin:0 !important;
  color:#f2f3f5 !important;
  font-size:clamp(25px,2.2vw,32px) !important;
  font-weight:690 !important;
  letter-spacing:-.025em !important;
}
body #stage2EarlyApogeeOverlay .confirm-text{
  margin:24px 0 0 !important;
  color:#c6c9ce !important;
  font-size:16px !important;
  line-height:1.65 !important;
  text-align:left !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-status{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:24px;
  border:1px solid rgba(137,144,154,.22);
  border-radius:10px;
  overflow:hidden;
  background:#131518;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-status > div{
  display:grid;
  gap:8px;
  min-width:0;
  padding:17px 18px;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-status > div + div{
  border-left:1px solid rgba(137,144,154,.2);
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-status span{
  color:#858b95;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-status strong{
  color:#e2e4e8;
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
}
body #stage2EarlyApogeeOverlay .confirm-note{
  margin:20px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#8e949e !important;
  font-size:13px !important;
  line-height:1.6 !important;
  text-align:left !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-actions{
  display:grid !important;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) !important;
  gap:12px !important;
  margin-top:28px !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-actions button{
  width:100% !important;
  min-height:54px !important;
  margin:0 !important;
  border-radius:9px !important;
  font-size:15px !important;
  font-weight:700 !important;
  box-shadow:none !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-eject{
  border:1px solid #b94b55 !important;
  background:#a93640 !important;
  color:#fff !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-eject:hover:not(:disabled){
  background:#b83d48 !important;
}
body #stage2EarlyApogeeOverlay .stage2-early-apogee-eject:disabled{
  opacity:.55 !important;
  cursor:wait !important;
}
@media (max-width:680px){
  body #stage2EarlyApogeeOverlay{
    padding:12px !important;
  }
  body #stage2EarlyApogeeOverlay > .stage2-early-apogee-dialog{
    width:100% !important;
    max-height:calc(100dvh - 24px) !important;
    padding:26px 22px !important;
    border-radius:14px !important;
  }
  body #stage2EarlyApogeeOverlay .stage2-early-apogee-status{
    grid-template-columns:1fr !important;
  }
  body #stage2EarlyApogeeOverlay .stage2-early-apogee-status > div + div{
    border-left:0 !important;
    border-top:1px solid rgba(137,144,154,.2) !important;
  }
  body #stage2EarlyApogeeOverlay .stage2-early-apogee-actions{
    grid-template-columns:1fr !important;
  }
}

@media (max-width:600px){
  .flash-link-report-visual,
  .flash-link-report-visual-pane{
    min-height:126px;
  }
  .flash-link-report-visual-pane.is-placement{
    grid-template-columns:78px minmax(62px,1fr) 78px;
    gap:8px;
    padding:14px 12px;
  }
  .flash-link-report-visual-pane.is-environment{
    padding:14px 4px;
  }
  .flash-link-report-check{
    gap:5px;
    padding:0 5px;
  }
  .flash-link-report-check strong{
    font-size:8px;
  }
  .flash-link-report-check small{
    font-size:6px;
  }
  .flash-link-report-signal{
    width:36px;
    height:36px;
  }
  .flash-link-report-distance strong{
    font-size:15px;
  }
}

/* Desktop control drawer: the dashboard keeps the chart canvas clear and the
   right navigation opens the command surface as one attached layer. */
@media (min-width:901px){
  body.dashboard-view-active #dashboardView .row-bottom{
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.dashboard-view-active #dashboardView .row-bottom > .charts-card{
    width:100% !important;
    grid-column:1 / -1 !important;
  }
  body.dashboard-view-active #controlsCard.controls-card,
  html.tablet-controls-layout body.dashboard-view-active #controlsCard.controls-card,
  .desktop-control-drawer-mount #controlsCard.controls-card{
    display:flex !important;
    position:fixed !important;
    top:50% !important;
    right:91px !important;
    bottom:auto !important;
    left:auto !important;
    width:min(410px,calc(100vw - 130px)) !important;
    max-width:410px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100dvh - 40px) !important;
    margin:0 !important;
    transform:translate(20px,-50%) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    border-color:#35383e !important;
    border-radius:12px !important;
    background:#15171a !important;
    box-shadow:0 24px 64px rgba(0,0,0,.42) !important;
    transition:opacity .18s ease,transform .22s cubic-bezier(.2,.78,.28,1),visibility 0s linear .22s !important;
    z-index:47 !important;
  }
  html.control-drawer-open body.dashboard-view-active #controlsCard.controls-card{
    transform:translate(0,-50%) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transition:opacity .18s ease,transform .22s cubic-bezier(.2,.78,.28,1),visibility 0s !important;
  }
  html.control-drawer-open .desktop-control-drawer-mount #controlsCard.controls-card{
    transform:translate(0,-50%) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transition:opacity .18s ease,transform .22s cubic-bezier(.2,.78,.28,1),visibility 0s !important;
  }
  body.dashboard-view-active #controlsCard .controls-grid,
  .desktop-control-drawer-mount #controlsCard .controls-grid{
    overflow-y:auto !important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  body.dashboard-view-active #controlsCard .tablet-controls-close,
  .desktop-control-drawer-mount #controlsCard .tablet-controls-close{
    display:none !important;
  }
  html.control-drawer-open body.dashboard-view-active #controlsCard .tablet-controls-close,
  html.control-drawer-open .desktop-control-drawer-mount #controlsCard .tablet-controls-close{
    display:inline-flex !important;
    position:static !important;
    width:32px !important;
    height:32px !important;
    margin-left:4px !important;
    border:1px solid #34373d !important;
    border-radius:7px !important;
    background:#202226 !important;
    color:#aeb3bb !important;
    align-items:center !important;
    justify-content:center !important;
  }
  body.dashboard-view-active #controlsCard #controlsHeader,
  .desktop-control-drawer-mount #controlsCard #controlsHeader{
    padding-right:10px !important;
  }
  .desktop-control-drawer-mount #controlsCard.controls-card{
    flex-direction:column !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #35383e !important;
    background:#15171a !important;
  }
  .desktop-control-drawer-mount #controlsCard #controlsHeader{
    flex:0 0 62px !important;
    min-height:62px !important;
    margin:0 !important;
    padding:0 10px 0 18px !important;
    align-items:center !important;
    border:0 !important;
    border-bottom:1px solid #2c2e32 !important;
    background:#191a1d !important;
  }
  .desktop-control-drawer-mount #controlsCardTitle{
    color:#f4f5f6 !important;
    font-size:15px !important;
    font-weight:650 !important;
    letter-spacing:.16em !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-subtitle{
    margin-top:4px !important;
    color:#858a94 !important;
    font-size:9px !important;
    letter-spacing:.12em !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-toolbar{
    gap:5px !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-toolbar-action{
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    border:1px solid #303238 !important;
    border-radius:7px !important;
    background:#1d1e21 !important;
    color:#b7bbc2 !important;
    box-shadow:none !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-grid{
    flex:1 1 auto !important;
    min-height:0 !important;
    gap:8px !important;
    margin:0 !important;
    padding:14px 16px 16px !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-main-row{
    grid-template-columns:minmax(0,1fr) minmax(92px,.4fr) !important;
    min-height:56px !important;
    gap:7px !important;
  }
  .desktop-control-drawer-mount #controlsCard :is(.primary-btn.sequence-btn,.controls-main-row .secondary-btn){
    height:56px !important;
    min-height:56px !important;
    border-radius:7px !important;
    box-shadow:none !important;
  }
  .desktop-control-drawer-mount #controlsCard .primary-btn.sequence-btn{
    border:1px solid #393c42 !important;
    background:#1b1c1f !important;
    color:#f2f3f5 !important;
  }
  .desktop-control-drawer-mount #controlsCard .controls-main-row .secondary-btn{
    border:1px solid #553033 !important;
    background:#26191b !important;
    color:#e08d93 !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-row{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    overflow:visible !important;
  }
  .desktop-control-drawer-mount #controlsCard :is(.control-tile,.control-tile.span-2,.control-tile-mode){
    height:52px !important;
    min-height:52px !important;
    padding:0 11px !important;
    border:1px solid #303238 !important;
    border-radius:7px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-tile-label{
    color:#e9eaec !important;
    font-size:11px !important;
    font-weight:620 !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-tile-sub{
    margin-top:3px !important;
    color:#7f848e !important;
    font-size:8px !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-tile-actions :is(.pill,button){
    min-width:60px !important;
    height:27px !important;
    padding:0 9px !important;
    border:1px solid #393c42 !important;
    border-radius:6px !important;
    background:#24262a !important;
    color:#c9ccd1 !important;
    font-size:9px !important;
    box-shadow:none !important;
  }
  .desktop-control-drawer-mount #controlsCard .flight-logging-tile.is-recording{
    border-color:#315a45 !important;
    background:#19231e !important;
  }
  .desktop-control-drawer-mount #controlsCard .flight-logging-tile.is-recording .control-tile-label{
    color:#9ce0b8 !important;
  }
  .desktop-control-drawer-mount #controlsCard .flight-logging-tile.is-stopped{
    border-color:#5b3438 !important;
    background:#241a1c !important;
  }
  .desktop-control-drawer-mount #controlsCard .flight-logging-tile.is-stopped .control-tile-label{
    color:#f0a3aa !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-tile-actions--dual{
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
  }
  .desktop-control-drawer-mount #controlsCard .control-tile-actions--dual > button{
    min-width:54px !important;
    padding:0 7px !important;
  }
  html.mode-flight .desktop-control-drawer-mount #controlsCard #gyroZeroControlTile{
    grid-column:1 / -1 !important;
  }
  .desktop-control-drawer-mount #controlsCard :is(.force-mission-tile,.mission-standby-tile){
    grid-column:auto !important;
  }
  .desktop-control-drawer-mount #controlsCard :is(.force-mission-tile,.mission-standby-tile) .control-tile-sub{
    display:none !important;
  }
}
@media (max-width:1180px), (pointer:coarse){
  body.dashboard-view-active .stage-overview-panel{
    display:none !important;
  }
}
/* Flight data surfaces; desktop composition is refined in ui/desktop/flight-data.css. */
.camera-map-panel{display:none}
@media (min-width:768px) and (pointer:fine){
  .camera-data-stack{
    --camera-data-edge:clamp(24px,2.2vw,36px);
    --camera-data-width:clamp(270px,22vw,320px);
    --camera-map-height:clamp(185px,21vh,220px);
    position:fixed;
    top:calc(34px + env(safe-area-inset-top, 0px));
    bottom:calc(116px + env(safe-area-inset-bottom, 0px));
    left:var(--camera-data-edge);
    z-index:7;
    display:grid;
    width:var(--camera-data-width);
    grid-template-rows:auto var(--camera-map-height);
    align-content:center;
    gap:8px;
    pointer-events:none;
  }
  .camera-map-panel{
    position:relative;
    inset:auto;
    z-index:auto;
    display:block;
    width:100%;
    height:var(--camera-map-height);
    min-width:0;
    min-height:0;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.20);
    border-radius:5px;
    background:rgba(4,5,8,.52);
    box-shadow:0 14px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.03);
    backdrop-filter:blur(10px) saturate(88%);
    -webkit-backdrop-filter:blur(10px) saturate(88%);
    pointer-events:auto;
  }
  .camera-map-heading{
    position:absolute;
    top:10px;
    left:11px;
    z-index:1002;
    display:flex;
    align-items:baseline;
    gap:8px;
    color:rgba(255,255,255,.78);
    text-shadow:0 1px 8px rgba(0,0,0,.9);
    pointer-events:none;
  }
  .camera-map-heading strong{
    font:600 10px/1 "SF Pro Text","Helvetica Neue","Inter","Segoe UI",Arial,sans-serif;
    letter-spacing:.08em;
  }
  .camera-map-heading span{
    color:rgba(226,232,240,.56);
    font:500 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
    letter-spacing:.08em;
  }
  .camera-map-mount{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }
  .camera-map-mount .status-map-panel.is-camera-map-mounted:not(.is-expanded){
    position:relative !important;
    inset:auto !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#111923 !important;
    box-shadow:none !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-return-actions{
    display:none !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-tint{
    background:rgba(255,255,255,.12) !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-hud{
    inset:auto 8px 20px 8px !important;
    height:28px !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-card{
    top:auto !important;
    bottom:0 !important;
    height:28px !important;
    max-width:calc(100% - 40px) !important;
    box-sizing:border-box !important;
    min-width:0 !important;
    padding:0 8px !important;
    border-radius:5px !important;
    background:rgba(3,7,12,.68) !important;
    color:rgba(248,250,252,.88) !important;
    backdrop-filter:blur(8px) !important;
    -webkit-backdrop-filter:blur(8px) !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-coords{
    color:rgba(248,250,252,.86) !important;
    font-size:8px !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-zoom{
    color:rgba(203,213,225,.58) !important;
    font-size:7px !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-btn{
    width:28px !important;
    height:28px !important;
    padding:0 !important;
    justify-content:center !important;
    border-radius:5px !important;
    background:rgba(3,7,12,.70) !important;
    color:rgba(248,250,252,.84) !important;
  }
  .camera-map-mount .status-map-panel:not(.is-expanded) .status-map-actions{
    right:0 !important;
    left:auto !important;
    bottom:0 !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-panel{
    display:none !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-gyro-plus-stage::after{
    display:none !important;
  }
  body.camera-view-active.camera-gyro-plus-layout #gyro3dViewport.is-camera-gyro-plus-mounted{
    cursor:default !important;
  }
  body.camera-view-active.camera-gyro-plus-layout #gyro3dViewport.is-camera-gyro-plus-mounted > .status-gyro-actions{
    display:none !important;
  }
}

@media (min-width:768px) and (pointer:fine) and (max-width:1100px){
  .camera-data-stack{
    --camera-data-edge:24px;
    --camera-data-width:min(300px,36vw);
  }
}

@media (min-width:768px) and (pointer:fine) and (max-height:700px){
  .camera-data-stack{
    --camera-data-edge:20px;
    --camera-map-height:140px;
    gap:7px;
  }
}

/* ALTIS INTELLIGENT LINK · communication topology */
.flash-link-topology-btn{
  min-width:118px;
  border-radius:8px;
  border-color:#0f6685;
  background:#0f6685;
  color:#fff;
  box-shadow:none;
  white-space:nowrap;
}
.flash-link-topology-btn:hover{background:#0b5875;filter:none}
.flash-link-topology-overlay{
  position:fixed;
  inset:0;
  z-index:6500;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(10px,2vw,28px);
  background:rgba(4,15,25,.68);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.flash-link-topology-overlay.hidden{display:none !important}
.flash-link-topology-dialog{
  width:min(1440px,100%);
  max-height:calc(100dvh - clamp(20px,4vw,56px));
  overflow:auto;
  border:1px solid #c8d2da;
  border-radius:4px;
  background:#f7f9fb;
  color:#102534;
  box-shadow:0 28px 80px rgba(0,13,23,.36);
}
.flash-link-topology-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:24px 28px 18px;
  border-bottom:1px solid #d7e0e6;
  background:#fff;
}
.flash-link-topology-eyebrow{
  margin-bottom:5px;
  color:#187093;
  font-size:10px;
  font-weight:760;
  letter-spacing:.18em;
}
.flash-link-topology-header h2{
  margin:0;
  color:#102534;
  font-size:clamp(20px,2vw,29px);
  font-weight:680;
  line-height:1.05;
  letter-spacing:-.025em;
}
.flash-link-topology-header p{
  margin:7px 0 0;
  color:#6a7b88;
  font-size:12px;
  line-height:1.45;
}
.flash-link-topology-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}
.flash-link-topology-overall{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid #cbd5dc;
  border-radius:3px;
  background:#f3f6f8;
  color:#71818d;
  font:700 10px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.07em;
  white-space:nowrap;
}
.flash-link-topology-overall.is-online{
  border-color:rgba(20,126,98,.38);
  background:rgba(20,126,98,.09);
  color:#117255;
}
.flash-link-topology-overall.is-degraded{
  border-color:rgba(202,128,26,.42);
  background:rgba(226,153,38,.1);
  color:#9a6011;
}
.flash-link-topology-close{
  position:relative;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #cbd5dc;
  border-radius:3px;
  background:#fff;
  color:#516572;
  box-shadow:none;
  font-size:25px;
  font-weight:300;
  line-height:1;
}
.flash-link-topology-close:hover{background:#edf2f5;color:#102534}
.flash-link-topology-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-bottom:1px solid #d7e0e6;
  background:#eef3f6;
}
.flash-link-topology-metrics > div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  padding:11px 20px;
  border-right:1px solid #d7e0e6;
}
.flash-link-topology-metrics > div:last-child{border-right:0}
.flash-link-topology-metrics span{
  color:#78909e;
  font-size:9px;
  font-weight:780;
  letter-spacing:.12em;
  white-space:nowrap;
}
.flash-link-topology-metrics strong{
  min-width:0;
  overflow:hidden;
  color:#183546;
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flash-link-topology-canvas{
  position:relative;
  height:clamp(500px,57dvh,650px);
  min-height:500px;
  overflow:hidden;
  background:
    linear-gradient(rgba(20,82,110,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(20,82,110,.045) 1px,transparent 1px),
    #fbfcfd;
  background-size:32px 32px;
}
.flash-link-topology-canvas::after{
  content:"RELAY NETWORK / LIVE STATUS";
  position:absolute;
  right:22px;
  bottom:15px;
  color:#9aa9b3;
  font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.16em;
}
.flash-link-topology-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  overflow:visible;
}
.flash-link-topology-lines path{
  fill:none;
  stroke:#a9b6bf;
  stroke-width:2.2;
  vector-effect:non-scaling-stroke;
  transition:stroke .18s ease,opacity .18s ease;
}
.flash-link-topology-lines path.is-wireless{stroke-dasharray:10 9}
.flash-link-topology-lines path.is-wired{stroke-width:2}
.flash-link-topology-lines path.is-online{
  stroke:#176f94;
  opacity:1;
}
.flash-link-topology-lines path.is-online.is-wireless{
  animation:flash-topology-signal 1.4s linear infinite;
}
.flash-link-topology-lines path.is-offline{stroke:#b8c2c9;opacity:.54}
.flash-link-topology-lines--mobile{display:none}
@keyframes flash-topology-signal{to{stroke-dashoffset:-38}}
.flash-topology-node{
  position:absolute;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  color:#fff;
  text-align:center;
  filter:drop-shadow(0 8px 12px rgba(10,35,49,.14));
  transition:opacity .18s ease,filter .18s ease,transform .18s ease;
}
.flash-topology-node--stage{
  width:16%;
  height:28%;
  padding:55px 20px 10px;
  background:#176a89;
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.flash-topology-node--stage2{left:4.5%;top:6%}
.flash-topology-node--stage1{left:4.5%;top:64%}
.flash-topology-node--ground{
  left:55.7%;
  top:54%;
  width:14.5%;
  height:25%;
  border:2px solid #0b3447;
  background:#176a89;
}
.flash-topology-node--client{
  left:80%;
  width:18.7%;
  height:19%;
  border:2px solid #173a4a;
  background:#abb4ba;
}
.flash-topology-node--mobile{top:20%}
.flash-topology-node--pc{top:66%}
.flash-topology-node-kicker{
  margin-bottom:5px;
  color:rgba(255,255,255,.72);
  font-size:8px;
  font-style:normal;
  font-weight:750;
  line-height:1;
  letter-spacing:.12em;
}
.flash-topology-node strong{
  display:block;
  color:#fff;
  font-size:clamp(14px,1.45vw,22px);
  font-weight:680;
  line-height:1.06;
  letter-spacing:-.02em;
}
.flash-topology-node em{
  display:inline-flex;
  align-items:center;
  min-height:19px;
  margin-top:9px;
  padding:0 7px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:2px;
  background:rgba(4,29,41,.2);
  color:rgba(255,255,255,.82);
  font:700 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
}
.flash-topology-node small{
  margin-top:7px;
  color:rgba(255,255,255,.66);
  font-size:7px;
  font-weight:700;
  letter-spacing:.11em;
}
.flash-topology-node.is-offline{opacity:.52;filter:none}
.flash-topology-node.is-online{
  opacity:1;
  filter:drop-shadow(0 10px 16px rgba(10,77,105,.22));
}
.flash-topology-node.is-online em{
  border-color:rgba(121,245,202,.56);
  background:rgba(9,83,61,.5);
  color:#d7ffef;
}
.flash-topology-node.is-current{
  outline:3px solid rgba(36,149,194,.22);
  outline-offset:4px;
}
.flash-topology-link-label{
  position:absolute;
  z-index:2;
  padding:3px 6px;
  border:1px solid #d4dde3;
  background:rgba(251,252,253,.92);
  color:#788b97;
  font:700 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
  white-space:nowrap;
}
.flash-topology-link-label--relay{left:11.2%;top:48%;transform:rotate(-90deg)}
.flash-topology-link-label--backup{left:35%;top:38%;transform:rotate(33deg)}
.flash-topology-link-label--uplink{left:34%;top:70%;transform:rotate(-8deg)}
.flash-topology-link-label--wifi{left:73.4%;top:37%;transform:rotate(-62deg)}
.flash-topology-link-label--wired{left:73.6%;top:75%}
.flash-link-topology-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:58px;
  padding:10px 28px;
  border-top:1px solid #d7e0e6;
  background:#fff;
}
.flash-link-topology-legend{display:flex;align-items:center;gap:22px;flex:0 0 auto}
.flash-link-topology-legend span{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#425b69;
  font-size:11px;
  font-weight:650;
}
.flash-link-topology-legend i{
  display:inline-block;
  width:48px;
  height:0;
  border-top:2px solid #176f94;
}
.flash-link-topology-legend i.is-wireless{border-top-style:dashed}
.flash-link-topology-footer p{
  margin:0;
  color:#738590;
  font-size:10px;
  line-height:1.4;
  text-align:right;
}
@media(max-width:700px){
  .flash-link-topology-overlay{padding:0;background:#f7f9fb}
  .flash-link-topology-dialog{
    width:100%;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .flash-link-topology-header{position:sticky;top:0;z-index:8;padding:17px 16px 13px;gap:10px}
  .flash-link-topology-header p{font-size:10px}
  .flash-link-topology-header-actions{align-items:flex-start}
  .flash-link-topology-overall{display:none}
  .flash-link-topology-close{width:34px;height:34px}
  .flash-link-topology-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .flash-link-topology-metrics > div{padding:9px 12px}
  .flash-link-topology-metrics > div:nth-child(2){border-right:0}
  .flash-link-topology-metrics > div:nth-child(-n+2){border-bottom:1px solid #d7e0e6}
  .flash-link-topology-metrics span{font-size:8px}
  .flash-link-topology-metrics strong{font-size:10px}
  .flash-link-topology-canvas{height:760px;min-height:760px;background-size:24px 24px}
  .flash-link-topology-lines--desktop{display:none}
  .flash-link-topology-lines--mobile{display:block}
  .flash-topology-node--stage{left:50%;width:150px;height:140px;padding:46px 14px 8px;transform:translateX(-50%)}
  .flash-topology-node--stage2{top:0}
  .flash-topology-node--stage1{top:215px}
  .flash-topology-node--ground{left:50%;top:440px;width:140px;height:125px;transform:translateX(-50%)}
  .flash-topology-node--client{top:635px;width:calc(50% - 15px);height:110px}
  .flash-topology-node--mobile{left:10px}
  .flash-topology-node--pc{left:auto;right:10px}
  .flash-topology-node strong{font-size:15px}
  .flash-topology-node-kicker{font-size:7px}
  .flash-topology-link-label{display:none}
  .flash-link-topology-canvas::after{display:none}
  .flash-link-topology-footer{align-items:flex-start;flex-direction:column;padding:13px 16px 18px;gap:10px}
  .flash-link-topology-legend{gap:17px}
  .flash-link-topology-legend i{width:32px}
  .flash-link-topology-footer p{text-align:left}
}

/* Communication topology · dark HUD skin */
.flash-link-topology-btn{
  border:1px solid rgba(148,163,184,.25);
  border-radius:7px;
  background:rgba(15,23,42,.72);
  color:#e5e7eb;
}
.flash-link-topology-btn:hover{
  border-color:rgba(125,211,252,.46);
  background:rgba(30,41,59,.88);
}
.flash-link-topology-overlay{
  padding:clamp(12px,2vw,26px);
  background:rgba(0,3,12,.84);
  -webkit-backdrop-filter:blur(18px) saturate(.8);
  backdrop-filter:blur(18px) saturate(.8);
}
.flash-link-topology-dialog{
  width:min(1360px,100%);
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  background:
    radial-gradient(circle at 50% -30%,rgba(30,64,175,.14),transparent 42%),
    #030712;
  color:#e5e7eb;
  box-shadow:0 30px 100px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.025);
}
.flash-link-topology-header{
  align-items:center;
  padding:22px 25px 18px;
  border-bottom:1px solid rgba(148,163,184,.14);
  background:rgba(2,6,23,.7);
}
.flash-link-topology-eyebrow{
  margin-bottom:6px;
  color:#7dd3fc;
  font-size:9px;
  font-weight:620;
  letter-spacing:.2em;
}
.flash-link-topology-header h2{
  color:#f8fafc;
  font-size:clamp(19px,1.8vw,26px);
  font-weight:520;
  letter-spacing:.01em;
}
.flash-link-topology-header p{
  margin-top:8px;
  color:#7f8ca3;
  font-size:11px;
}
.flash-link-topology-header-actions{gap:10px}
.flash-link-topology-overall{
  min-height:29px;
  padding:0 12px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#94a3b8;
  font-weight:540;
  letter-spacing:.09em;
}
.flash-link-topology-overall.is-online{
  border-color:rgba(52,211,153,.35);
  background:rgba(6,78,59,.22);
  color:#6ee7b7;
}
.flash-link-topology-overall.is-degraded{
  border-color:rgba(251,191,36,.3);
  background:rgba(120,53,15,.18);
  color:#fcd34d;
}
.flash-link-topology-close{
  width:36px;
  height:36px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:9px;
  background:rgba(15,23,42,.72);
  color:#94a3b8;
  font-size:22px;
}
.flash-link-topology-close:hover{
  border-color:rgba(226,232,240,.34);
  background:rgba(30,41,59,.92);
  color:#f8fafc;
}
.flash-link-topology-metrics{
  gap:0;
  border-bottom:1px solid rgba(148,163,184,.12);
  background:rgba(2,6,23,.36);
}
.flash-link-topology-metrics > div{
  padding:12px 18px;
  border-right:1px solid rgba(148,163,184,.12);
}
.flash-link-topology-metrics span{
  color:#64748b;
  font-size:8px;
  font-weight:620;
}
.flash-link-topology-metrics strong{
  color:#dbeafe;
  font-size:12px;
  font-weight:520;
}
.flash-link-topology-canvas{
  height:clamp(420px,54dvh,520px);
  min-height:420px;
  background:
    radial-gradient(circle at 62% 42%,rgba(14,165,233,.07),transparent 27%),
    linear-gradient(rgba(148,163,184,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(148,163,184,.035) 1px,transparent 1px),
    #030712;
  background-size:auto,36px 36px,36px 36px,auto;
}
.flash-link-topology-canvas::after{
  right:20px;
  bottom:14px;
  color:#334155;
  font-weight:560;
}
.flash-link-topology-lines path{
  stroke:rgba(100,116,139,.42);
  stroke-width:1.5;
}
.flash-link-topology-lines path.is-wireless{stroke-dasharray:7 8}
.flash-link-topology-lines path.is-wired{stroke-width:1.5}
.flash-link-topology-lines path.is-online{
  stroke:#38bdf8;
  filter:drop-shadow(0 0 4px rgba(56,189,248,.28));
}
.flash-link-topology-lines path.is-backup{stroke:rgba(167,139,250,.3)}
.flash-link-topology-lines path.is-backup.is-online{
  stroke:#a78bfa;
  filter:drop-shadow(0 0 4px rgba(167,139,250,.3));
}
.flash-link-topology-lines path.is-offline{stroke:#334155;opacity:.58}
.flash-topology-node{
  width:17%;
  height:128px;
  padding:18px 16px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(15,23,42,.93),rgba(2,6,23,.97));
  color:#e5e7eb;
  filter:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 16px 34px rgba(0,0,0,.2);
}
.flash-topology-node--stage{
  width:17%;
  height:128px;
  padding:18px 16px;
  clip-path:none;
  background:linear-gradient(145deg,rgba(15,23,42,.93),rgba(2,6,23,.97));
}
.flash-topology-node--stage2{left:5%;top:22%}
.flash-topology-node--stage1{left:29%;top:22%}
.flash-topology-node--ground{
  left:55%;
  top:22%;
  width:17%;
  height:128px;
  border:1px solid rgba(56,189,248,.34);
  background:linear-gradient(145deg,rgba(8,47,73,.9),rgba(3,18,34,.97));
}
.flash-topology-node--client{
  left:80%;
  width:17%;
  height:112px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(145deg,rgba(17,24,39,.88),rgba(3,7,18,.96));
}
.flash-topology-node--mobile{top:9%}
.flash-topology-node--pc{top:56%}
.flash-topology-node-kicker{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
  color:#64748b;
  font-size:7px;
  font-weight:600;
  letter-spacing:.16em;
}
.flash-topology-node-kicker::before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#475569;
  box-shadow:0 0 0 3px rgba(71,85,105,.12);
}
.flash-topology-node strong{
  color:#f1f5f9;
  font-size:clamp(14px,1.2vw,18px);
  font-weight:520;
  letter-spacing:.01em;
}
.flash-topology-node em{
  min-height:18px;
  margin-top:10px;
  padding:0 7px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:999px;
  background:rgba(15,23,42,.66);
  color:#64748b;
  font-size:7px;
  font-weight:560;
}
.flash-topology-node small{
  margin-top:7px;
  color:#475569;
  font-size:7px;
  font-weight:560;
}
.flash-topology-node.is-offline{opacity:.5;filter:none}
.flash-topology-node.is-mode-disabled{
  opacity:.28;
  border-style:dashed;
  box-shadow:none;
}
.flash-topology-node.is-mode-disabled em{
  border-color:rgba(148,163,184,.14);
  background:rgba(15,23,42,.38);
  color:#64748b;
}
.flash-topology-node.is-online{
  opacity:1;
  border-color:rgba(56,189,248,.34);
  filter:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 24px rgba(14,165,233,.08);
}
.flash-topology-node.is-online .flash-topology-node-kicker::before{
  background:#34d399;
  box-shadow:0 0 0 3px rgba(52,211,153,.12),0 0 8px rgba(52,211,153,.45);
}
.flash-topology-node.is-online em{
  border-color:rgba(52,211,153,.3);
  background:rgba(6,78,59,.2);
  color:#6ee7b7;
}
.flash-topology-node.is-current{
  outline:1px solid rgba(125,211,252,.42);
  outline-offset:3px;
}
.flash-topology-link-label{
  padding:3px 7px;
  border:1px solid rgba(100,116,139,.22);
  border-radius:999px;
  background:rgba(3,7,18,.92);
  color:#64748b;
  font-size:7px;
  font-weight:560;
}
.flash-topology-link-label--relay{left:23.4%;top:27%;transform:none}
.flash-topology-link-label--backup{left:35%;top:75%;transform:none;color:#8b7ab8}
.flash-topology-link-label--uplink{left:46.2%;top:27%;transform:none}
.flash-topology-link-label--wifi{left:74.7%;top:19%;transform:none}
.flash-topology-link-label--wired{left:74.7%;top:65%;transform:none}
.flash-link-topology-footer{
  min-height:54px;
  padding:10px 24px;
  border-top:1px solid rgba(148,163,184,.12);
  background:rgba(2,6,23,.7);
}
.flash-link-topology-legend span{
  color:#64748b;
  font-size:10px;
  font-weight:520;
}
.flash-link-topology-legend i{
  width:38px;
  border-color:#38bdf8;
  border-width:1px;
}
.flash-link-topology-footer p{
  color:#64748b;
  font-size:9px;
}
@media(max-width:700px){
  .flash-link-topology-overlay{padding:0;background:#030712}
  .flash-link-topology-dialog{background:#030712}
  .flash-link-topology-header{
    padding:17px 16px 14px;
    background:rgba(2,6,23,.96);
    border-bottom-color:rgba(148,163,184,.14);
  }
  .flash-link-topology-metrics > div{border-color:rgba(148,163,184,.12)}
  .flash-link-topology-canvas{
    height:700px;
    min-height:700px;
    background-size:auto,28px 28px,28px 28px,auto;
  }
  .flash-topology-node--stage,
  .flash-topology-node--ground{
    left:50%;
    width:160px;
    height:112px;
    padding:15px 12px;
    transform:translateX(-50%);
  }
  .flash-topology-node--stage2{top:20px}
  .flash-topology-node--stage1{top:188px}
  .flash-topology-node--ground{top:356px}
  .flash-topology-node--client{top:560px;width:calc(50% - 20px);height:106px}
  .flash-topology-node--mobile{left:10px}
  .flash-topology-node--pc{left:auto;right:10px}
  .flash-link-topology-footer{background:rgba(2,6,23,.96)}
}

/* Dual-vehicle ground-station telemetry */
.stage-telemetry-deck{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  min-height:0;
  margin:0 0 12px;
}
.stage-telemetry-deck.hidden{display:none !important}
.stage-telemetry-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:12px 13px 10px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(15,23,42,.88),rgba(2,6,23,.94));
  color:#e5e7eb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  cursor:pointer;
  transition:border-color .16s ease,background-color .16s ease;
}
.stage-telemetry-card.is-selected{
  border-color:rgba(148,163,184,.46);
  background:linear-gradient(145deg,rgba(24,32,44,.94),rgba(7,12,21,.96));
}
.stage-telemetry-card:focus-visible{
  outline:1px solid rgba(226,232,240,.72);
  outline-offset:-3px;
}
.stage-telemetry-card header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.stage-telemetry-card header div{display:grid;gap:1px}
.stage-telemetry-card header span,
.stage-telemetry-card footer span{
  color:#64748b;
  font-size:7px;
  font-weight:650;
  letter-spacing:.16em;
}
.stage-telemetry-card header strong{
  color:#f8fafc;
  font-size:12px;
  font-weight:560;
  letter-spacing:.08em;
}
.stage-telemetry-card header em{
  display:flex;
  align-items:center;
  gap:5px;
  color:#94a3b8;
  font-size:8px;
  font-style:normal;
  font-weight:650;
  letter-spacing:.09em;
}
.stage-telemetry-card header em::before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#64748b;
}
.stage-telemetry-card.is-linked header em{color:#86efac}
.stage-telemetry-card.is-linked header em::before{background:#22c55e;box-shadow:0 0 8px rgba(34,197,94,.62)}
.stage-telemetry-phase{
  margin-top:8px;
  overflow:hidden;
  color:#94a3b8;
  font-size:8px;
  font-weight:520;
  letter-spacing:.11em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stage-telemetry-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:7px;
}
.stage-telemetry-metrics > span{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:baseline;
  min-width:0;
  padding-top:5px;
  border-top:1px solid rgba(148,163,184,.16);
}
.stage-telemetry-metrics small{
  grid-column:1/-1;
  color:#64748b;
  font-size:7px;
  font-weight:650;
  letter-spacing:.12em;
}
.stage-telemetry-metrics b{
  min-width:0;
  overflow:hidden;
  color:#f8fafc;
  font-size:15px;
  font-weight:430;
  line-height:1.1;
  text-overflow:ellipsis;
}
.stage-telemetry-metrics i{
  color:#64748b;
  font-size:7px;
  font-style:normal;
}
.stage-telemetry-card footer{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  margin-top:7px;
  padding-top:6px;
  border-top:1px solid rgba(148,163,184,.12);
}
.stage-telemetry-card footer b{
  min-width:0;
  overflow:hidden;
  color:#cbd5e1;
  font-size:8px;
  font-weight:480;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(min-width:768px) and (pointer:fine){
  body.dashboard-view-active .motor-card.is-dual-stage .quick-data-header{
    margin-bottom:8px !important;
  }
  body.dashboard-view-active .motor-card.is-dual-stage .stage-telemetry-deck{
    display:grid;
    flex:1 1 auto;
    min-height:0;
    margin:0;
  }
  body.dashboard-view-active .motor-card.is-dual-stage .quick-data-body{
    display:none !important;
  }
  body.dashboard-view-active .motor-card.is-dual-stage .stage-telemetry-card{
    height:100%;
    min-height:0;
    padding:9px 10px 8px;
    border-radius:8px;
  }
  body.dashboard-view-active .motor-card.is-dual-stage .stage-telemetry-phase{margin-top:5px}
  body.dashboard-view-active .motor-card.is-dual-stage .stage-telemetry-metrics{margin-top:5px}
  body.dashboard-view-active .motor-card.is-dual-stage .stage-telemetry-card footer{margin-top:5px;padding-top:4px}
}

/* Replay data picker */
.replay-data-picker-overlay{
  z-index:2147483600 !important;
}
body.dashboard-view-active #replayDataPickerOverlay.replay-data-picker-overlay:not(.hidden),
body:has(#welcomeConnectScreen:not(.hidden)) #replayDataPickerOverlay.replay-data-picker-overlay:not(.hidden){
  display:flex !important;
}
.replay-data-picker-dialog{
  width:min(920px, calc(100vw - 32px));
  max-width:920px;
}
.replay-data-picker-head > div:first-child{
  min-width:0;
}
.replay-data-picker-subtitle{
  margin-top:5px;
  color:#8f939a;
  font-size:12px;
  line-height:1.35;
}
.replay-data-picker-body{
  display:grid;
  grid-template-columns:minmax(0, .82fr) minmax(0, 1.18fr);
  gap:20px;
  padding:22px;
}
.replay-data-picker-section{
  min-width:0;
}
.replay-data-picker-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  color:#d7d9dd;
  font-size:12px;
  font-weight:700;
}
.replay-data-picker-count{
  color:#858990;
  font-variant-numeric:tabular-nums;
}
.replay-data-picker-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  max-height:277px;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
}
.replay-data-picker-list .replay-data-picker-item{
  height:64px;
  min-height:64px;
  flex:0 0 64px;
}
.replay-data-summary{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-right:20px;
  border-right:1px solid #2b2d31;
}
.replay-data-summary-card{
  min-height:218px;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border:1px solid #303339;
  border-radius:8px;
  background:#111214;
}
.replay-data-summary-empty{
  flex:1 1 auto;
  display:grid;
  place-items:center;
  color:#777b82;
  font-size:12px;
  text-align:center;
}
.replay-data-summary-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#bfc3ca;
  font-size:11px;
  font-weight:700;
}
.replay-data-summary-status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#36c978;
}
.replay-data-summary-name{
  color:#f3f4f5;
  font-size:16px;
  line-height:1.35;
  font-weight:680;
  overflow-wrap:anywhere;
}
.replay-data-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  margin-top:auto;
  overflow:hidden;
  border:1px solid #2c2f34;
  border-radius:6px;
  background:#2c2f34;
}
.replay-data-summary-grid span{
  min-width:0;
  padding:10px 11px;
  background:#17181b;
  color:#7e838c;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
}
.replay-data-summary-grid strong{
  display:block;
  margin-top:4px;
  color:#dfe1e5;
  font-size:11px;
  letter-spacing:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.replay-data-library{
  display:flex;
  min-width:0;
  flex-direction:column;
}
.replay-data-picker-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  margin-bottom:14px;
  padding:3px;
  border:1px solid #303339;
  border-radius:8px;
  background:#111214;
}
.replay-data-picker-tabs button{
  min-height:38px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#8d929a;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.replay-data-picker-tabs button.is-active{
  background:#e7e8ea;
  color:#17181a;
}
.replay-data-picker-list-head{
  margin-bottom:10px;
}
.replay-data-picker-empty{
  min-height:92px;
  display:grid;
  place-items:center;
  padding:18px;
  border:1px solid #2d3035;
  border-radius:8px;
  background:#111214;
  color:#777b82;
  font-size:12px;
  text-align:center;
}
.replay-data-picker-item,
.replay-data-picker-file{
  width:100%;
  min-height:64px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 14px;
  border:1px solid #303339;
  border-radius:8px;
  background:#1a1b1e;
  color:#f2f3f5;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.replay-data-picker-item:hover,
.replay-data-picker-file:hover{
  border-color:#4a4e56;
  background:#222428;
}
.replay-data-picker-file.is-dragover{
  border-color:#7da9ee;
  background:#17202d;
  box-shadow:inset 0 0 0 1px rgba(125,169,238,.34);
}
.replay-data-picker-file.is-dragover .replay-data-picker-file-icon,
.replay-data-picker-file.is-dragover .replay-data-picker-file-copy strong{
  color:#dce9ff;
}
.replay-data-picker-item:active,
.replay-data-picker-file:active{
  transform:translateY(1px);
}
.replay-data-picker-item:disabled{
  cursor:wait;
  opacity:.62;
}
.replay-data-picker-item-mark{
  width:4px;
  height:34px;
  flex:0 0 auto;
  border-radius:2px;
  background:#2f7df4;
}
.replay-data-picker-item-copy,
.replay-data-picker-file-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.replay-data-picker-item-copy strong,
.replay-data-picker-file-copy strong{
  overflow:hidden;
  color:#f4f4f5;
  font-size:13px;
  line-height:1.25;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.replay-data-picker-item-copy small,
.replay-data-picker-file-copy small{
  overflow:hidden;
  color:#92969e;
  font-size:11px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.replay-data-picker-divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:#676b72;
  font-size:10px;
  font-weight:700;
}
.replay-data-picker-divider::before,
.replay-data-picker-divider::after{
  content:"";
  height:1px;
  flex:1 1 auto;
  background:#2b2d31;
}
.replay-data-picker-file-icon{
  width:38px;
  height:38px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:#b9bdc4;
}
.replay-data-picker-file-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.replay-data-picker-file-arrow{
  flex:0 0 auto;
  color:#777b82;
  font-size:25px;
  font-weight:300;
  line-height:1;
}
.replay-data-picker-mode-toggle{
  width:100%;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 14px;
  border:1px solid #303339;
  border-radius:8px;
  background:#151619;
  color:#e8e9eb;
  text-align:left;
}
.replay-data-picker-mode-toggle:hover{
  border-color:#474b52;
  background:#1a1c20;
}
.replay-data-picker-mode-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.replay-data-picker-mode-copy strong{
  font-size:12px;
  font-weight:700;
}
.replay-data-picker-mode-copy small{
  overflow:hidden;
  color:#878c94;
  font-size:10px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.replay-data-picker-toggle-track{
  position:relative;
  width:38px;
  height:22px;
  flex:0 0 auto;
  border:1px solid #444850;
  border-radius:999px;
  background:#24262a;
  transition:border-color .16s ease,background .16s ease;
}
.replay-data-picker-toggle-track i{
  position:absolute;
  top:3px;
  left:3px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#8a8f98;
  transition:transform .16s ease,background .16s ease;
}
.replay-data-picker-mode-toggle.is-on .replay-data-picker-toggle-track{
  border-color:#3f8b63;
  background:#1d4932;
}
.replay-data-picker-mode-toggle.is-on .replay-data-picker-toggle-track i{
  background:#52d68b;
  transform:translateX(16px);
}
.replay-data-picker-proceed{
  width:100%;
  min-height:48px;
  border:1px solid #d5d7db;
  border-radius:8px;
  background:#e7e8ea;
  color:#17181a;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.replay-data-picker-proceed:hover:not(:disabled){
  border-color:#fff;
  background:#fff;
}
.replay-data-picker-proceed:active:not(:disabled){
  background:#d7d9dc;
}
.replay-data-picker-proceed:disabled{
  border-color:#303339;
  background:#1a1b1e;
  color:#666b73;
  cursor:not-allowed;
}
@media(max-width:600px){
  .replay-data-picker-overlay{
    align-items:flex-end !important;
    padding:0 !important;
  }
  .replay-data-picker-dialog{
    width:100% !important;
    max-width:none !important;
    max-height:88dvh !important;
    margin:0 !important;
    border-width:1px 0 0 !important;
    border-radius:12px 12px 0 0 !important;
  }
  .replay-data-picker-body{
    display:flex;
    flex-direction:column;
    padding:16px 16px max(18px, env(safe-area-inset-bottom, 0px));
  }
  .replay-data-summary{
    padding-right:0;
    padding-bottom:16px;
    border-right:0;
    border-bottom:1px solid #2b2d31;
  }
  .replay-data-summary-card{
    min-height:150px;
  }
}
body.camera-view-active .mobile-board-header{display:none !important}
.camera-view{
  position:relative;
  flex:1 1 auto;
  height:100%;
  min-height:0;
  overflow:hidden;
  background:#020617;
}
.camera-view.hidden{display:none !important}
.camera-view .webcam-panel{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#020617 !important;
  overflow:hidden !important;
  color:rgba(248,250,252,.96);
}
.camera-view #webcamVideo,
.camera-view .webcam-sim-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#020617;
}
.camera-view .webcam-sim-image{
  display:none;
  z-index:1;
  object-position:center 52%;
}
.camera-view .webcam-panel.is-sim .webcam-sim-image{display:block}
.camera-view .webcam-panel.is-sim #webcamVideo{visibility:hidden}
.camera-view .webcam-placeholder{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  text-align:center;
  padding:18px;
  color:#cbd5e1;
  font-size:15px;
  font-weight:800;
  pointer-events:none;
  background-color:transparent;
  background-image:
    linear-gradient(rgba(148,163,184,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(148,163,184,.13) 1px,transparent 1px);
  background-size:44px 44px;
  background-position:center;
}
.camera-view .webcam-panel.is-camera-disabled .webcam-placeholder{
  z-index:4;
  pointer-events:auto;
  background-color:rgba(2,6,23,.90);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.camera-view .webcam-placeholder img{
  width:58px;
  height:58px;
  object-fit:contain;
  opacity:.96;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.42));
}
.camera-view .webcam-placeholder-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  max-width:min(520px,88vw);
}
.camera-view .webcam-placeholder-copy strong{
  color:#f8fafc;
  font-size:21px;
  font-weight:850;
  letter-spacing:-.01em;
}
.camera-view .webcam-placeholder-copy span{
  color:rgba(226,232,240,.82);
  font-size:13px;
  font-weight:750;
  letter-spacing:.08em;
  line-height:1.65;
}
.camera-view .webcam-placeholder-action{
  pointer-events:auto;
  min-height:42px;
  padding:0 20px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:4px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:none;
}
.camera-view .webcam-placeholder-action:hover{
  background:rgba(255,255,255,.18);
}
.camera-view .webcam-placeholder-action.hidden{display:none !important}
.camera-view .webcam-panel.is-camera-disabled #webcamVideo{visibility:hidden}
.camera-view .webcam-panel.is-live .webcam-placeholder{display:none}
.camera-view .webcam-panel::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:260px;
  z-index:3;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.46),rgba(0,0,0,.20) 50%,rgba(0,0,0,0));
}
.camera-view .webcam-panel::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:52%;
  z-index:4;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.22) 24%,
      rgba(0,0,0,.62) 62%,
      rgba(2,6,23,.96) 100%);
}
.camera-overlay-top{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px));
  left:24px;
  z-index:8;
  display:flex;
  flex-direction:column;
  gap:8px;
  pointer-events:none;
}
.camera-mini-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(226,232,240,.9);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:10px;
  font-weight:850;
  letter-spacing:.20em;
  text-transform:uppercase;
  text-shadow:0 10px 24px rgba(0,0,0,.55);
  backdrop-filter:blur(10px) saturate(112%);
  -webkit-backdrop-filter:blur(10px) saturate(112%);
}
.camera-live-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.40);
  box-shadow:0 0 0 4px rgba(255,255,255,.10);
  flex:0 0 auto;
}
.camera-mini-pill.ok .camera-live-dot,
.webcam-panel.is-live .camera-overlay-top .camera-mini-pill:not(.bad) .camera-live-dot{
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.camera-mini-pill.warn .camera-live-dot{
  background:#f59e0b;
  box-shadow:0 0 0 4px rgba(245,158,11,.18);
}
.camera-mini-pill.bad .camera-live-dot{
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.18);
}
.camera-status{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px));
  right:130px;
  z-index:8;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(226,232,240,.9);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-shadow:0 10px 24px rgba(0,0,0,.55);
  backdrop-filter:blur(10px) saturate(112%);
  -webkit-backdrop-filter:blur(10px) saturate(112%);
}
.camera-sequence-dock{
  position:absolute;
  top:calc(46px + env(safe-area-inset-top, 0px));
  right:auto;
  left:32px;
  z-index:8;
  width:clamp(300px,27vw,420px);
  display:grid;
  justify-items:start;
  gap:5px;
  color:rgba(190,196,204,.68);
  font-family:"SF Pro Display","Inter","Segoe UI",Arial,sans-serif;
  letter-spacing:.03em;
  text-shadow:0 3px 14px rgba(0,0,0,.9);
}
.camera-sequence-kicker{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
  font-family:"SF Pro Display","Helvetica Neue","Inter","Segoe UI",Arial,sans-serif;
  font-size:clamp(12px,.82vw,14px);
  font-weight:300;
  line-height:1.25;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(226,232,240,.66);
  text-shadow:0 2px 12px rgba(0,0,0,.72);
}
.camera-sequence-heading{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  min-width:0;
}
.camera-sequence-heading .camera-sequence-kicker{
  min-width:0;
}
.camera-hud-stage-source{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:5px;
  min-height:18px;
  padding:2px 7px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:3px;
  color:rgba(255,255,255,.82);
  background:rgba(0,0,0,.24);
  font-size:8px;
  font-weight:520;
  line-height:1;
  letter-spacing:.16em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.camera-hud-stage-source::before{
  content:"";
  flex:0 0 auto;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#77808b;
}
.camera-hud-stage-source.is-linked::before{
  background:#22c55e;
  box-shadow:0 0 7px rgba(34,197,94,.72);
}
.camera-hud-stage-source.hidden{display:none !important}
.camera-sequence-time{
  display:flex;
  align-items:baseline;
  gap:9px;
}
body.camera-view-active .camera-sequence-time .camera-tmark{
  color:rgba(190,196,204,.68) !important;
  font-size:clamp(17px,1.2vw,19px) !important;
  font-weight:400 !important;
}
body.camera-view-active .camera-sequence-time .camera-count-time{
  min-width:0;
  color:#fff;
  font-size:clamp(42px,3.2vw,48px) !important;
  font-weight:200 !important;
  letter-spacing:.025em;
  font-variant-numeric:tabular-nums lining-nums;
}
.camera-sequence-rule{
  display:none;
}
.camera-sequence-dock.is-tplus .camera-sequence-rule{
  display:none;
}
.camera-control-menu-layer{
  position:absolute;
  inset:0;
  z-index:18;
  pointer-events:auto;
  background:rgba(0,0,0,.10);
}
.camera-control-menu-layer.hidden{display:none !important}
.camera-control-menu{
  position:absolute;
  top:156px;
  right:24px;
  width:320px;
  max-height:calc(100% - 180px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.24);
  border-radius:4px;
  background:rgba(4,8,14,.88);
  box-shadow:0 22px 60px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(18px) saturate(112%);
  -webkit-backdrop-filter:blur(18px) saturate(112%);
  color:#f8fafc;
  transform-origin:top right;
  animation:camera-control-menu-enter .24s cubic-bezier(.18,.82,.22,1) both;
}
@keyframes camera-control-menu-enter{
  from{opacity:0;transform:translate3d(18px,-8px,0) scale(.97)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
.camera-control-menu-head{
  height:66px;
  padding:0 14px 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.15);
}
.camera-control-menu-head > div{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.camera-control-menu-head span{
  color:rgba(203,213,225,.58);
  font:700 8px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.18em;
}
.camera-control-menu-head strong{
  color:#fff;
  font:750 15px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.10em;
}
.camera-control-menu-close{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:2px;
  background:transparent;
  color:rgba(226,232,240,.72);
  cursor:pointer;
}
.camera-control-menu-close:hover{background:rgba(255,255,255,.09);color:#fff}
.camera-control-menu-close svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.camera-control-status{
  min-height:58px;
  padding:10px 16px;
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:14px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.025);
}
.camera-control-status div{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}
.camera-control-status span{
  color:rgba(148,163,184,.64);
  font:700 8px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.16em;
}
.camera-control-status strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(248,250,252,.94);
  font:700 11px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.08em;
}
.camera-control-status strong.is-online{color:#86efac}
.camera-control-device{
  min-height:62px;
  padding:10px 16px;
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  align-items:center;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.018);
}
.camera-control-device > span{
  color:rgba(148,163,184,.68);
  font:700 8px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.14em;
}
.camera-control-device select{
  width:100%;
  height:34px;
  min-width:0;
  padding:0 30px 0 10px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:2px;
  background-color:rgba(0,0,0,.30);
  color:#f8fafc;
  font:650 10px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.06em;
  outline:none;
  cursor:pointer;
}
.camera-control-device select:focus{border-color:rgba(255,255,255,.56)}
.camera-control-device select:disabled{opacity:.42;cursor:not-allowed}
.camera-control-actions{display:grid}
.camera-control-action{
  width:100%;
  min-height:54px;
  padding:0 16px;
  display:grid;
  grid-template-columns:34px 1fr;
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.10);
  border-radius:0;
  background:transparent;
  color:rgba(241,245,249,.90);
  text-align:left;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease;
}
.camera-control-action:last-child{border-bottom:0}
.camera-control-action:hover{background:rgba(255,255,255,.08);color:#fff}
.camera-control-action:disabled{opacity:.36;cursor:not-allowed}
.camera-control-action-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:2px;
  color:rgba(255,255,255,.80);
  font:700 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.camera-control-action > strong{
  font:700 11px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.12em;
}
.camera-control-action--danger{color:#fecaca}
.camera-control-action--danger .camera-control-action-icon{border-color:rgba(248,113,113,.48);color:#fca5a5}
.camera-control-action--danger:hover{background:rgba(127,29,29,.24);color:#fff}
@media(max-width:760px){
  .camera-control-menu{top:132px;right:18px;width:min(320px,calc(100vw - 36px));max-height:calc(100% - 150px)}
}
@media(prefers-reduced-motion:reduce){
  .camera-control-menu{animation:none}
}
.camera-switch-btn{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px));
  right:78px;
  z-index:9;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  background:rgba(0,0,0,.34);
  color:rgba(226,232,240,.92);
  box-shadow:none;
  backdrop-filter:blur(10px) saturate(112%);
  -webkit-backdrop-filter:blur(10px) saturate(112%);
  cursor:pointer;
}
.camera-switch-btn svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.camera-switch-btn:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.camera-stop-btn{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px));
  right:24px;
  z-index:9;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.34);
  color:rgba(226,232,240,.9);
  font-size:11px;
  font-weight:850;
  box-shadow:none;
  backdrop-filter:blur(10px) saturate(112%);
  -webkit-backdrop-filter:blur(10px) saturate(112%);
}
.camera-hud{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:300px;
  z-index:5;
  pointer-events:none;
  color:rgba(248,250,252,.96);
}
.camera-hud::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.48) 30%,rgba(4,7,13,.84) 66%,rgba(4,7,13,.98));
}
.camera-hud-inner{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:100%;
  z-index:2;
  display:grid;
  grid-template-columns:360px 1fr 420px;
  align-items:end;
  gap:26px;
  padding:30px 36px calc(26px + env(safe-area-inset-bottom, 0px));
}
.camera-hud-left{
  display:flex !important;
  align-items:flex-end;
  justify-content:flex-start;
  gap:16px;
  padding-bottom:6px;
}
body.camera-view-active .camera-hud-left.hidden{
  display:none !important;
}
body.camera-view-active .camera-hud-left:not(.hidden) .camera-gauge--alt{
  animation:camera-flight-gauge-enter .76s cubic-bezier(.14,.86,.18,1) both;
}
body.camera-view-active .camera-hud-left:not(.hidden) .camera-gauge--speed{
  animation:camera-flight-gauge-enter .80s .09s cubic-bezier(.14,.86,.18,1) both;
}
@keyframes camera-flight-gauge-enter{
  0%{opacity:0;transform:translate3d(-58px,38px,0) scale(.68)}
  48%{opacity:1;transform:translate3d(8px,-7px,0) scale(1.06)}
  72%{transform:translate3d(-3px,2px,0) scale(.985)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
.camera-gauge{
  --gColor:rgba(255,255,255,.9);
  width:160px;
  height:160px;
  position:relative;
  display:grid;
  place-items:center;
  filter:drop-shadow(0 18px 46px rgba(0,0,0,.32));
}
.camera-gauge--speed{--gColor:#38bdf8}
.camera-gauge--accel{--gColor:#f59e0b}
.camera-gauge--alt{--gColor:#22c55e}
.camera-gauge::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(10px) saturate(110%);
  -webkit-backdrop-filter:blur(10px) saturate(110%);
}
.camera-gauge-svg{
  width:100%;
  height:100%;
  display:block;
  position:relative;
  z-index:1;
}
.camera-gauge-track,
.camera-gauge-prog{
  stroke-width:4;
  fill:none;
  stroke-linecap:round;
}
.camera-gauge-track{stroke:rgba(255,255,255,.14)}
.camera-gauge-prog{
  stroke:var(--gColor);
  filter:drop-shadow(0 0 10px rgba(255,255,255,.08));
}
.camera-gauge-center{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.camera-gauge-label,
.camera-gauge-unit,
.camera-hud-mission,
.camera-mode-kicker,
.camera-tmark,
.camera-hud-meta{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
.camera-gauge-label{
  font-size:10px;
  letter-spacing:.18em;
  color:rgba(226,232,240,.82);
}
.camera-gauge-value{
  margin-top:8px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:28px;
  font-weight:900;
  line-height:1;
  color:rgba(248,250,252,.98);
  text-shadow:0 20px 50px rgba(0,0,0,.70);
}
.camera-gauge-unit{
  margin-top:6px;
  font-size:10px;
  letter-spacing:.16em;
  color:rgba(148,163,184,.92);
}
.camera-hud-mission{
  max-width:min(720px,70vw);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:850;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(248,250,252,.94);
  text-shadow:0 18px 50px rgba(0,0,0,.65);
}
.camera-hud-state{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:18px;
  font-weight:950;
  letter-spacing:.14em;
  line-height:1;
  text-transform:uppercase;
  color:rgba(248,250,252,.98);
  text-shadow:0 22px 60px rgba(0,0,0,.70);
}
.camera-hud-state.status-ok,
.camera-hud-state.ok{color:rgba(232,255,242,.98)}
.camera-hud-state.status-warn,
.camera-hud-state.warn{color:rgba(255,244,214,.98)}
.camera-hud-state.status-bad,
.camera-hud-state.bad{color:rgba(255,215,215,.98)}
.camera-hud-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 14px;
  max-width:760px;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
  color:rgba(226,232,240,.78);
  text-transform:uppercase;
}
.camera-hud-meta strong{
  color:rgba(248,250,252,.96);
  font-weight:950;
}
.camera-count-wrap{
  width:min(420px,46vw);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.camera-mode-kicker{
  font-size:11px;
  letter-spacing:.22em;
  color:rgba(226,232,240,.86);
  text-transform:uppercase;
  text-shadow:0 18px 50px rgba(0,0,0,.70);
}
.camera-count-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}
.camera-primary-display{
  display:grid;
  place-items:center;
  width:100%;
  min-height:50px;
}
.camera-primary-display > *{
  grid-area:1 / 1;
}
.camera-center-countdown{
  justify-content:center;
  align-items:baseline;
  gap:14px;
  min-height:48px;
  margin-top:2px;
}
.camera-center-countdown .camera-count-time{
  min-width:0;
  text-align:center;
  font-size:42px;
}
.camera-center-countdown .camera-tmark{
  font-size:18px;
}
.camera-tmark{
  font-size:18px;
  font-weight:850;
  letter-spacing:.22em;
  color:rgba(255,255,255,.82);
}
.camera-count-time{
  min-width:280px;
  text-align:right;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-variant-numeric:tabular-nums;
  font-size:64px;
  font-weight:250;
  letter-spacing:.10em;
  line-height:1;
  color:rgba(255,255,255,.98);
  -webkit-text-stroke:.45px rgba(0,0,0,.32);
  text-shadow:0 2px 0 rgba(0,0,0,.35),0 22px 60px rgba(0,0,0,.72),0 0 18px rgba(255,255,255,.10);
}
@media(max-width:1100px){
  .camera-hud{height:370px}
  .camera-hud-inner{
    grid-template-columns:1fr;
    gap:12px;
    padding:24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .camera-hud-left{justify-content:center;order:2}
    .camera-count-wrap{align-items:center;width:min(560px,96vw)}
  .camera-count-row{justify-content:center}
  .camera-count-time{text-align:center;min-width:auto;font-size:56px}
  .camera-gauge{width:150px;height:150px}
}
body.camera-view-active .side-nav-mobile{
  display:none !important;
}
body.camera-view-active .app-shell{
  display:block !important;
  width:100vw !important;
  height:100dvh !important;
  min-height:100dvh !important;
  overflow:hidden !important;
}
body.camera-view-active .page-wrap{
  width:100vw !important;
  height:100dvh !important;
  min-height:100dvh !important;
  max-width:none !important;
  overflow:hidden !important;
}
body.camera-view-active .camera-view{
  background:#000 !important;
}
body.camera-view-active .camera-view #webcamVideo{
  filter:contrast(1.04) saturate(.92) brightness(.96);
}
body.camera-view-active .camera-view .webcam-sim-image{
  filter:contrast(1.04) saturate(.92) brightness(.96);
}
body.camera-view-active .camera-view .webcam-panel::before{
  height:220px !important;
  background:linear-gradient(180deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.28) 45%,rgba(0,0,0,0) 100%) !important;
}
body.camera-view-active .camera-view .webcam-panel::after{
  height:34% !important;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.06) 34%,
      rgba(0,0,0,.30) 70%,
      rgba(0,0,0,.68) 100%) !important;
}
body.camera-view-active .camera-hud::before{
  background:linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,.26) 74%,
    rgba(0,0,0,.66) 100%) !important;
}
body.camera-view-active .camera-mini-pill,
body.camera-view-active .camera-status,
body.camera-view-active .camera-stop-btn{
  min-height:31px;
  border-radius:2px !important;
  background:rgba(0,0,0,.28) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  color:rgba(255,255,255,.92) !important;
  font-size:10px !important;
  font-weight:700 !important;
  letter-spacing:.18em !important;
  text-shadow:0 2px 10px rgba(0,0,0,.75) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body.camera-view-active .camera-live-dot{
  width:6px !important;
  height:6px !important;
  box-shadow:none !important;
  background:rgba(255,255,255,.76) !important;
}
body.camera-view-active .camera-mini-pill.ok .camera-live-dot,
body.camera-view-active .webcam-panel.is-live .camera-overlay-top .camera-mini-pill:not(.bad) .camera-live-dot{
  background:#ffffff !important;
}
body.camera-view-active .camera-mini-pill.warn .camera-live-dot{
  background:#ffffff !important;
}
body.camera-view-active .camera-mini-pill.bad .camera-live-dot{
  background:#ef4444 !important;
}
body.camera-view-active .camera-stop-btn:hover{
  background:rgba(255,255,255,.12) !important;
}
body.camera-view-active .camera-switch-btn:not(:disabled):hover{
  background:rgba(255,255,255,.12) !important;
}
@media(max-width:600px){
  body.camera-view-active .camera-status{
    display:none !important;
  }
}

/* Desktop dashboard keeps navigation while using the camera HUD as its canvas. */
@media (min-width:901px){
  body.camera-view-active.camera-dashboard-default .app-shell{
    display:flex !important;
    width:100vw !important;
    height:100dvh !important;
    min-height:100dvh !important;
    align-items:stretch !important;
    overflow:hidden !important;
  }
  body.camera-view-active.camera-dashboard-default .side-nav-mobile{
    display:none !important;
  }
  body.camera-view-active.camera-dashboard-default .page-wrap{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:100dvh !important;
    min-height:100dvh !important;
  }
  body.camera-view-active.camera-dashboard-default .camera-view{
    width:100% !important;
    height:100% !important;
  }
}

.camera-gyro-plus-stage{display:none}

.dashboard-drawer-head{display:none}

@media (min-width:901px){
  body.camera-view-active #dashboardView{
    --dashboard-drawer-v-gap:clamp(24px,4vh,44px);
    position:fixed !important;
    inset:var(--dashboard-drawer-v-gap) clamp(18px,2vw,34px) var(--dashboard-drawer-v-gap) calc(72px + clamp(18px,2vw,34px)) !important;
    z-index:32 !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    border:1px solid rgba(255,255,255,.22) !important;
    border-radius:8px !important;
    background:rgba(8,10,14,.76) !important;
    box-shadow:0 -18px 64px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.05) !important;
    backdrop-filter:blur(22px) saturate(112%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(112%) !important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate3d(0,105%,0);
    transition:left .2s ease,transform .36s cubic-bezier(.18,.82,.22,1),opacity .24s ease,visibility 0s linear .36s;
  }
  body.camera-view-active.dashboard-drawer-open #dashboardView{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate3d(0,0,0);
    transition:left .2s ease,transform .36s cubic-bezier(.18,.82,.22,1),opacity .24s ease,visibility 0s;
  }
  body.camera-view-active #dashboardView > .shell{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    overflow:auto !important;
    padding:68px clamp(16px,1.5vw,26px) 28px !important;
    background:transparent !important;
  }
  body.camera-view-active #dashboardView .card-base{
    background:rgba(20,22,27,.80) !important;
    border-color:rgba(255,255,255,.15) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
    backdrop-filter:blur(12px) saturate(108%);
    -webkit-backdrop-filter:blur(12px) saturate(108%);
  }
  body.camera-view-active #dashboardView .dashboard-drawer-head{
    position:absolute;
    inset:0 0 auto;
    z-index:6;
    height:56px;
    padding:0 18px 0 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid rgba(255,255,255,.13);
    background:rgba(8,10,14,.72);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }
  .dashboard-drawer-head > div{
    display:flex;
    align-items:baseline;
    gap:10px;
  }
  .dashboard-drawer-head span{
    color:rgba(148,163,184,.72);
    font:700 9px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
    letter-spacing:.16em;
  }
  .dashboard-drawer-head strong{
    color:#f8fafc;
    font:750 15px/1 "Arial Narrow","Helvetica Neue",Arial,sans-serif;
    letter-spacing:.10em;
  }
  .dashboard-drawer-close{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:4px;
    background:transparent;
    color:rgba(226,232,240,.72);
    cursor:pointer;
  }
  .dashboard-drawer-close:hover{background:rgba(255,255,255,.09);color:#fff}
  .dashboard-drawer-close svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
  }
}

@media (min-width:901px){
  body.camera-view-active.camera-gyro-plus-layout .camera-view{
    display:block !important;
    position:relative !important;
    width:100% !important;
    height:100dvh !important;
    overflow:hidden !important;
    background:#080b11 !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-gyro-plus-stage{
    position:absolute;
    inset:0;
    z-index:0;
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
    background:#080b11;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-gyro-plus-stage::after{
    content:"GYRO 3D+";
    position:absolute;
    top:18px;
    left:20px;
    z-index:5;
    padding:7px 9px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:4px;
    background:rgba(5,8,13,.54);
    color:rgba(241,245,249,.82);
    font:600 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
    letter-spacing:.08em;
    pointer-events:none;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-gyro-plus-mount{
    position:absolute;
    inset:0;
    overflow:hidden;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-panel{
    position:absolute !important;
    inset:clamp(32px,4vh,46px) auto auto clamp(32px,2.3vw,48px) !important;
    z-index:12 !important;
    width:clamp(380px,24vw,500px) !important;
    height:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    aspect-ratio:16 / 9 !important;
    border:1px solid rgba(255,255,255,.30) !important;
    border-radius:6px !important;
    box-shadow:0 18px 52px rgba(0,0,0,.48),0 0 0 1px rgba(0,0,0,.28) !important;
    background:#05070a !important;
    overflow:hidden !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view #webcamVideo,
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-sim-image{
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    filter:contrast(1.03) saturate(.9) brightness(.92) !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-placeholder{
    z-index:5 !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-hud,
  body.camera-view-active.camera-gyro-plus-layout .camera-sequence-dock{
    display:block !important;
    z-index:8 !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-hud{
    height:300px !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-hud-inner{
    grid-template-columns:minmax(0,22vw) minmax(280px,1fr) minmax(0,22vw) !important;
    gap:26px !important;
    padding:30px 36px calc(26px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-gyro-preview-mount{
    display:none !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-panel::before{
    height:140px !important;
    background:linear-gradient(180deg,rgba(0,0,0,.48),transparent) !important;
  }
  body.camera-view-active.camera-gyro-plus-layout .camera-view .webcam-panel::after{
    height:45% !important;
    background:linear-gradient(0deg,rgba(0,0,0,.58),transparent) !important;
  }
  body.camera-view-active.camera-gyro-plus-layout #gyro3dViewport.is-camera-preview-mounted.is-camera-gyro-plus-mounted{
    position:absolute !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-width:100% !important;
    min-height:100% !important;
    max-width:none !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:#080b11 !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }
  body.camera-view-active.camera-gyro-plus-layout #gyro3dViewport.is-camera-gyro-plus-mounted .gyro3d-canvas{
    display:block !important;
    width:100% !important;
    height:100% !important;
    border-radius:0 !important;
    transform:none !important;
  }
}

.pyro-control-channel-label{
  color:#9a9da4;
  font-size:11px;
  line-height:1;
  font-weight:600;
}
.pyro-control-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.pyro-control-head span{
  color:#f4f5f6;
  font-size:20px;
  line-height:1;
  font-weight:620;
}
.pyro-control-head strong{
  color:#8d929a;
  font-size:11px;
  font-weight:600;
}
.pyro-control-run{
  width:100%;
  min-height:48px;
  border:1px solid #613337;
  border-radius:7px;
  background:#352023;
  color:#ff8b93;
  font:inherit;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.pyro-control-run:hover{background:#44262a;color:#ffabb0}
.pyro-control-run:active{transform:translateY(1px)}

/* Desktop control dialogs: compact cockpit surfaces with desktop-first layouts. */
@media (min-width:901px){
  @keyframes desktopControlDialogIn{
    from{opacity:0;transform:translateY(8px) scale(.985)}
    to{opacity:1;transform:none}
  }
  html:not(.phone-landscape-layout) body #hardwareServoOverlay,
  html:not(.phone-landscape-layout) body #pyroControlOverlay,
  html:not(.phone-landscape-layout) body #chipTempOverlay,
  html:not(.phone-landscape-layout) body #perfOverlay,
  html:not(.phone-landscape-layout) body #loadcellOverlay,
  html:not(.phone-landscape-layout) body #launcherOverlay,
  html:not(.phone-landscape-layout) body #inspectionOverlay,
  html:not(.phone-landscape-layout) body #agentHelpOverlay,
  html:not(.phone-landscape-layout) body #intelligentCalibrationOverlay,
  html:not(.phone-landscape-layout) body #agentIssueOverlay,
  html:not(.phone-landscape-layout) body #dataListOverlay,
  html:not(.phone-landscape-layout) body #dataDownloadConfirmOverlay,
  html:not(.phone-landscape-layout) body #dataResetConfirmOverlay,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-overlay{
    position:fixed !important;
    inset:0 !important;
    z-index:89100 !important;
    align-items:center !important;
    justify-content:center !important;
    padding:32px !important;
    overflow:auto !important;
    background:rgba(0,0,0,.66) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoOverlay.hidden,
  html:not(.phone-landscape-layout) body #pyroControlOverlay.hidden,
  html:not(.phone-landscape-layout) body #chipTempOverlay.hidden,
  html:not(.phone-landscape-layout) body #perfOverlay.hidden,
  html:not(.phone-landscape-layout) body #loadcellOverlay.hidden,
  html:not(.phone-landscape-layout) body #launcherOverlay.hidden,
  html:not(.phone-landscape-layout) body #inspectionOverlay.hidden,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-overlay.hidden{
    display:none !important;
  }

  html:not(.phone-landscape-layout) body #hardwareServoDialog,
  html:not(.phone-landscape-layout) body #pyroControlDialog,
  html:not(.phone-landscape-layout) body #chipTempDialog,
  html:not(.phone-landscape-layout) body #perfDialog,
  html:not(.phone-landscape-layout) body #loadcellDialog,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-dialog,
  html:not(.phone-landscape-layout) body #inspectionDialog,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-dialog{
    position:relative !important;
    width:min(760px, calc(100vw - 64px)) !important;
    max-width:760px !important;
    height:auto !important;
    max-height:calc(100dvh - 64px) !important;
    margin:auto !important;
    padding:0 !important;
    border:1px solid #35383d !important;
    border-radius:8px !important;
    background:#151618 !important;
    color:#f3f4f6 !important;
    box-shadow:0 24px 70px rgba(0,0,0,.58) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    overflow:hidden !important;
    isolation:isolate;
    animation:desktopControlDialogIn .18s cubic-bezier(.2,.75,.3,1) both;
  }

  html:not(.phone-landscape-layout) body #hardwareServoDialog::before,
  html:not(.phone-landscape-layout) body #hardwareServoDialog::after,
  html:not(.phone-landscape-layout) body #pyroControlDialog::before,
  html:not(.phone-landscape-layout) body #pyroControlDialog::after,
  html:not(.phone-landscape-layout) body #loadcellDialog::before,
  html:not(.phone-landscape-layout) body #loadcellDialog::after,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-dialog::before,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-dialog::after,
  html:not(.phone-landscape-layout) body #inspectionDialog::before,
  html:not(.phone-landscape-layout) body #inspectionDialog::after,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-dialog::before,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-dialog::after{
    content:none !important;
    display:none !important;
  }

  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-header,
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-header,
  html:not(.phone-landscape-layout) body #chipTempDialog .settings-header,
  html:not(.phone-landscape-layout) body #perfDialog .settings-header,
  html:not(.phone-landscape-layout) body #loadcellDialog .settings-header,
  html:not(.phone-landscape-layout) body #inspectionDialog .settings-header,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-head,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-header{
    position:relative !important;
    min-height:62px !important;
    margin:0 !important;
    padding:0 62px 0 22px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border:0 !important;
    border-bottom:1px solid #2c2e32 !important;
    background:#191a1d !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-title,
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-title,
  html:not(.phone-landscape-layout) body #chipTempDialog .settings-title,
  html:not(.phone-landscape-layout) body #perfDialog .settings-title,
  html:not(.phone-landscape-layout) body #loadcellDialog .settings-title,
  html:not(.phone-landscape-layout) body #inspectionDialog .settings-title,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-title,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-title{
    color:#f5f5f5 !important;
    font-size:16px !important;
    line-height:1.2 !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body #chipTempDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body #perfDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body #loadcellDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body #inspectionDialog .settings-close-btn,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-close,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-close-btn{
    position:absolute !important;
    top:13px !important;
    right:16px !important;
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid transparent !important;
    border-radius:7px !important;
    background:transparent !important;
    color:#a9adb5 !important;
    font-size:24px !important;
    line-height:1 !important;
    font-weight:300 !important;
    transform:none !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body #chipTempDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body #perfDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body #loadcellDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body #inspectionDialog .settings-close-btn:hover,
  html:not(.phone-landscape-layout) body .mobile-chart-picker-close:hover,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-close-btn:hover{
    border-color:#393c42 !important;
    background:#24262a !important;
    color:#f4f4f5 !important;
  }

  /* Servo: channel tabs above one focused control surface. */
  html:not(.phone-landscape-layout) body #hardwareServoDialog{
    width:min(720px, calc(100vw - 64px)) !important;
    max-width:720px !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-dialog-body{
    max-height:calc(100dvh - 126px) !important;
    padding:20px 22px 22px !important;
    overflow:auto !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-group{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-group > .settings-label{
    margin:0 0 9px !important;
    color:#92969e !important;
    font-size:11px !important;
    font-weight:600 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-channel-picker,
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-mobile-stage,
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hint-mini{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-quick-row{
    display:grid !important;
    grid-template-columns:repeat(5, minmax(0,1fr)) !important;
    gap:6px !important;
    margin:0 0 16px !important;
    padding:4px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#101113 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-btn.hardware-servo-quick-btn{
    min-height:38px !important;
    padding:0 8px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#868a92 !important;
    font-size:12px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-btn.hardware-servo-quick-btn.is-active{
    background:#e8e9eb !important;
    color:#121315 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-grid{
    display:block !important;
    margin:0 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-row{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-row.is-active{
    display:grid !important;
    gap:20px !important;
    padding:22px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-row .settings-label{
    color:#f2f3f5 !important;
    font-size:15px !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-current-label [data-servo-current-angle]{
    color:#fff !important;
    font-size:24px !important;
    font-weight:560 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-meta{
    display:block !important;
    color:#858a94 !important;
    font-size:11px !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-slider-line{
    display:block !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-slider{
    height:7px !important;
    border:0 !important;
    background:#0d0e10 !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-slider::-webkit-slider-thumb{
    width:20px !important;
    height:20px !important;
    border:3px solid #151618 !important;
    background:#f1f2f3 !important;
    box-shadow:0 0 0 1px #62666e !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-presets{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset{
    grid-template-columns:minmax(0,1fr) 46px !important;
    gap:5px !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset-input,
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset-btn{
    min-height:40px !important;
    border:1px solid #35383e !important;
    border-radius:6px !important;
    background:#111214 !important;
    color:#e5e7eb !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset-btn:hover{
    background:#292b30 !important;
  }

  /* Pyro: duration and channel selection share one horizontal work area. */
  html:not(.phone-landscape-layout) body #pyroControlOverlay #pyroControlDialog{
    width:min(700px, calc(100vw - 64px)) !important;
    max-width:700px !important;
    min-height:0 !important;
    max-height:calc(100dvh - 64px) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-body{
    display:block !important;
    padding:20px 22px 22px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-channel-label{
    margin:0 0 9px !important;
    color:#92969e !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-panel{
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-panel{
    padding:22px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-kicker{
    margin-bottom:9px !important;
    color:#969aa2 !important;
    font-size:11px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value input{
    min-height:48px !important;
    border:1px solid #35383e !important;
    border-radius:7px !important;
    background:#0f1012 !important;
    color:#f5f5f5 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets button{
    min-height:36px !important;
    border:1px solid #35383e !important;
    border-radius:6px !important;
    background:#25272b !important;
    color:#d8dadd !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
    margin:0 0 16px !important;
    padding:4px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#101113 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn{
    min-height:38px !important;
    padding:0 10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#868a92 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn span{
    color:inherit !important;
    font-size:12px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn.is-active{
    background:#e8e9eb !important;
    color:#121315 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-head{
    margin-bottom:20px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value input{
    font-size:20px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-run{
    min-height:46px !important;
    margin-top:18px !important;
    border-radius:7px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-note{
    margin:12px 0 0 !important;
    padding:11px 13px !important;
    border:1px solid #3a3031 !important;
    border-radius:7px !important;
    background:#201819 !important;
    color:#c9b9bb !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm{
    grid-column:1 / -1 !important;
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-panel,
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-channel-grid,
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-channel-label,
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-note{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-body{
    display:block !important;
    padding:20px 22px 22px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm{
    display:grid !important;
    grid-template-columns:270px minmax(0,1fr) !important;
    grid-template-areas:
      "visual title"
      "visual desc"
      "visual warning"
      "visual actions" !important;
    align-items:start !important;
    gap:10px 18px !important;
    padding:0 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-title{
    grid-area:title !important;
    display:block !important;
    margin:4px 0 0 !important;
    color:#f4f5f6 !important;
    font-size:18px !important;
    line-height:1.25 !important;
    font-weight:650 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-desc{
    grid-area:desc !important;
    margin:0 !important;
    color:#b4b7bd !important;
    font-size:13px !important;
    line-height:1.55 !important;
    text-align:left !important;
    white-space:pre-line !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-illustration{
    grid-area:visual !important;
    width:270px !important;
    max-width:270px !important;
    height:270px !important;
    aspect-ratio:1 !important;
    margin:0 !important;
    border:1px solid #34363b !important;
    border-radius:8px !important;
    background:#f4f4f3 !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-illustration img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-warning{
    grid-area:warning !important;
    margin:0 !important;
    padding:11px 12px !important;
    border:1px solid #443234 !important;
    border-radius:7px !important;
    background:#251a1b !important;
    color:#e6b9bd !important;
    font-size:11px !important;
    line-height:1.45 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-actions{
    grid-area:actions !important;
    display:grid !important;
    grid-template-columns:auto minmax(180px,1fr) !important;
    gap:8px !important;
    margin-top:auto !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-btn{
    min-height:48px !important;
    border-radius:7px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm-btn--ghost{
    display:block !important;
    min-width:74px !important;
    border:1px solid #393c42 !important;
    background:#24262a !important;
    color:#d8dade !important;
  }

  /* Fallback pyro confirmation uses the same desktop-safe two-column composition. */
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-dialog{
    width:min(740px, calc(100vw - 64px)) !important;
    max-width:740px !important;
    display:grid !important;
    grid-template-columns:270px minmax(0,1fr) !important;
    grid-template-areas:
      "title title"
      "visual desc"
      "visual note"
      "visual actions" !important;
    gap:10px 18px !important;
    padding:0 22px 22px !important;
    overflow:hidden !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-title{
    grid-area:title !important;
    min-height:62px !important;
    margin:0 -22px 10px !important;
    padding:0 62px 0 22px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border-bottom:1px solid #2c2e32 !important;
    background:#191a1d !important;
    font-size:16px !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-text{
    grid-area:desc !important;
    margin:4px 0 0 !important;
    color:#f0f1f2 !important;
    font-size:15px !important;
    line-height:1.45 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .pyro-control-confirm-illustration{
    grid-area:visual !important;
    width:270px !important;
    height:270px !important;
    max-width:270px !important;
    margin:0 !important;
    border:1px solid #34363b !important;
    border-radius:8px !important;
    background:#f4f4f3 !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-note{
    grid-area:note !important;
    margin:0 !important;
    padding:11px 12px !important;
    border:1px solid #443234 !important;
    border-radius:7px !important;
    background:#251a1b !important;
    color:#e6b9bd !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-actions{
    grid-area:actions !important;
    margin:0 !important;
    align-self:end !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .reboot-confirm{
    min-height:48px !important;
    border-radius:7px !important;
  }

  /* Storage: overview on the left, session list on the right. */
  html:not(.phone-landscape-layout) body #dataListOverlay > .agent-help-dialog{
    width:min(860px, calc(100vw - 64px)) !important;
    max-width:860px !important;
    max-height:min(720px, calc(100dvh - 64px)) !important;
    transform:translateY(8px) scale(.985) !important;
    opacity:0 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay.is-open > .agent-help-dialog{
    transform:translateY(0) scale(1) !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .mobile-chart-picker-body{
    display:grid !important;
    grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr) !important;
    grid-template-rows:auto minmax(250px,1fr) auto !important;
    gap:14px 18px !important;
    min-height:440px !important;
    padding:20px 22px 22px !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-origin-filter{
    grid-column:1 !important;
    grid-row:1 !important;
    margin:0 !important;
    border-radius:7px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay #dataListSummary{
    grid-column:1 !important;
    grid-row:2 !important;
    margin:0 !important;
    padding:18px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1a1b1e !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay #dataListBody{
    grid-column:2 !important;
    grid-row:1 / 4 !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 6px 0 0 !important;
    overflow-y:auto !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-actions{
    grid-column:1 !important;
    grid-row:3 !important;
    margin:0 !important;
    gap:8px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-download,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-reset{
    min-height:44px !important;
    border-radius:7px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-download{
    border-color:#dedfe1 !important;
    background:#dedfe1 !important;
    color:#151618 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-reset{
    border-color:#563234 !important;
    background:#2b1c1d !important;
    color:#ff8c8c !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .agent-help-issue{
    border-radius:7px !important;
  }

  /* Temperature/performance: dense summary strip and readable chart. */
  html:not(.phone-landscape-layout) body #chipTempDialog,
  html:not(.phone-landscape-layout) body #perfDialog{
    width:min(820px, calc(100vw - 64px)) !important;
    max-width:820px !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-body,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-body{
    gap:18px !important;
    padding:20px 22px 22px !important;
    overflow:auto !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-summary,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-summary{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1a1b1e !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-stat,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-stat{
    padding:14px !important;
    border-right:1px solid #303238 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-stat:last-child,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-stat:last-child{
    border-right:0 !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-stat-label,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-stat-label,
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-meta-key,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-meta-key{
    color:#858a93 !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-stat-value,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-stat-value,
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-meta-value,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-meta-value{
    color:#f4f5f6 !important;
  }
  html:not(.phone-landscape-layout) body #chipTempDialog .chiptemp-chart-stage,
  html:not(.phone-landscape-layout) body #perfDialog .chiptemp-chart-stage{
    height:360px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#101113 !important;
  }

  /* Remaining control dialogs inherit the same shell and restrained dark controls. */
  html:not(.phone-landscape-layout) body #loadcellDialog{
    width:min(680px, calc(100vw - 64px)) !important;
    max-width:680px !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-body{
    min-height:390px !important;
    margin:0 !important;
    padding:22px 22px 80px !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-card{
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-value,
  html:not(.phone-landscape-layout) body #loadcellDialog .settings-label,
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-success-title{
    color:#f4f5f6 !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-steps,
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-note,
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-success-text{
    color:#92969e !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-input{
    border:1px solid #35383e !important;
    border-radius:7px !important;
    background:#101113 !important;
    color:#f4f5f6 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-actions{
    left:22px !important;
    right:22px !important;
    width:auto !important;
    border-top-color:#2c2e32 !important;
  }
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-primary,
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-secondary,
  html:not(.phone-landscape-layout) body #loadcellDialog .loadcell-cancel{
    min-height:42px !important;
    border-radius:7px !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #inspectionDialog{
    width:min(680px, calc(100vw - 64px)) !important;
    max-width:680px !important;
  }
  html:not(.phone-landscape-layout) body #inspectionDialog .inspection-sub,
  html:not(.phone-landscape-layout) body #inspectionDialog .inspection-step-desc,
  html:not(.phone-landscape-layout) body #inspectionDialog .inspection-result{
    color:#92969e !important;
  }
  html:not(.phone-landscape-layout) body #inspectionDialog .inspection-step-title{
    color:#f4f5f6 !important;
  }
  html:not(.phone-landscape-layout) body #inspectionDialog .inspection-kicker{
    border-radius:6px !important;
    background:#25272b !important;
    color:#aeb2ba !important;
  }
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-dialog{
    width:min(500px, calc(100vw - 64px)) !important;
    max-width:500px !important;
  }
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-controls{
    padding:22px !important;
  }
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-note{
    margin:0 !important;
    padding:16px 22px 0 !important;
    color:#92969e !important;
  }
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-arrow-btn,
  html:not(.phone-landscape-layout) body #launcherOverlay .launcher-auto-btn{
    border:1px solid #35383e !important;
    border-radius:7px !important;
    background:#24262a !important;
    color:#f4f5f6 !important;
    box-shadow:none !important;
  }

  html:not(.phone-landscape-layout) body #dataResetConfirmOverlay > .agent-help-dialog,
  html:not(.phone-landscape-layout) body #dataDownloadConfirmOverlay > .agent-help-dialog{
    width:min(520px, calc(100vw - 64px)) !important;
    max-width:520px !important;
    transform:translateY(8px) scale(.985) !important;
  }
  html:not(.phone-landscape-layout) body #dataResetConfirmOverlay.is-open > .agent-help-dialog,
  html:not(.phone-landscape-layout) body #dataDownloadConfirmOverlay.is-open > .agent-help-dialog{
    transform:translateY(0) scale(1) !important;
  }
}

/* Replay picker must stay above the full-screen welcome layer on every layout. */
html body #replayDataPickerOverlay.replay-data-picker-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483646 !important;
}

/*
 * Storage overlays are direct body children and must not inherit the
 * dashboard preview rule that hides generic mobile picker overlays.
 * Keep the list below its confirmation dialogs and the transfer lock.
 */
html body #dataListOverlay.mobile-chart-picker-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483642 !important;
}
html body #dataDownloadConfirmOverlay.mobile-chart-picker-overlay,
html body #dataResetConfirmOverlay.mobile-chart-picker-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483645 !important;
}
html body #dataListOverlay.mobile-chart-picker-overlay:not(.hidden),
html body #dataDownloadConfirmOverlay.mobile-chart-picker-overlay:not(.hidden),
html body #dataResetConfirmOverlay.mobile-chart-picker-overlay:not(.hidden){
  display:flex !important;
}
body.camera-view-active .camera-gauge{
  --gColor:rgba(255,255,255,.96) !important;
  filter:drop-shadow(0 14px 34px rgba(0,0,0,.56)) !important;
}

/*
 * Desktop download confirmation is deliberately isolated from the mobile
 * bottom-sheet rules. Mobile keeps the existing mobile-chart-picker layout.
 */
html body #dataDownloadConfirmOverlay.is-desktop-download-dialog{
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overflow:auto !important;
}
html body #dataDownloadConfirmOverlay.is-desktop-download-dialog > .agent-help-dialog{
  display:flex !important;
  flex-direction:column !important;
  width:min(520px, calc(100vw - 48px)) !important;
  max-width:520px !important;
  min-height:0 !important;
  height:auto !important;
  max-height:calc(100vh - 48px) !important;
  max-height:calc(100dvh - 48px) !important;
  margin:auto !important;
  box-sizing:border-box !important;
  border:1px solid #35383d !important;
  border-radius:8px !important;
  background:#151618 !important;
  overflow:hidden !important;
  transform:translateY(8px) scale(.985) !important;
  opacity:0 !important;
}
html body #dataDownloadConfirmOverlay.is-desktop-download-dialog.is-open > .agent-help-dialog{
  transform:translateY(0) scale(1) !important;
  opacity:1 !important;
}
html body #dataDownloadConfirmOverlay.is-desktop-download-dialog .mobile-chart-picker-head{
  flex:0 0 60px !important;
  min-height:60px !important;
  padding:0 60px 0 22px !important;
  box-sizing:border-box !important;
  border-bottom:1px solid #2c2e32 !important;
  background:#191a1d !important;
}
html body #dataDownloadConfirmOverlay.is-desktop-download-dialog .mobile-chart-picker-body{
  flex:0 1 auto !important;
  min-height:0 !important;
  max-height:calc(100vh - 110px) !important;
  max-height:calc(100dvh - 110px) !important;
  padding:22px !important;
  padding-bottom:22px !important;
  box-sizing:border-box !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
}

/*
 * Desktop storage reset confirmation. Its own class keeps the compact PC
 * surface independent from the mobile bottom-sheet and full-width buttons.
 */
html body #dataResetConfirmOverlay.is-desktop-reset-dialog{
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overflow:auto !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog > .agent-help-dialog{
  display:flex !important;
  flex-direction:column !important;
  width:min(520px, calc(100vw - 48px)) !important;
  max-width:520px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  max-height:calc(100vh - 48px) !important;
  max-height:calc(100dvh - 48px) !important;
  margin:auto !important;
  padding:0 !important;
  box-sizing:border-box !important;
  border:1px solid #35383d !important;
  border-radius:8px !important;
  background:#151618 !important;
  box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
  overflow:hidden !important;
  transform:translateY(8px) scale(.985) !important;
  opacity:0 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog.is-open > .agent-help-dialog{
  transform:translateY(0) scale(1) !important;
  opacity:1 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .mobile-chart-picker-head{
  flex:0 0 58px !important;
  min-height:58px !important;
  padding:0 58px 0 20px !important;
  box-sizing:border-box !important;
  border-bottom:1px solid #2c2e32 !important;
  background:#191a1d !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .mobile-chart-picker-title{
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:640 !important;
  letter-spacing:0 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .mobile-chart-picker-close{
  top:13px !important;
  right:14px !important;
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  min-height:32px !important;
  border-radius:50% !important;
  font-size:22px !important;
  font-weight:300 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .mobile-chart-picker-body{
  flex:0 1 auto !important;
  min-height:0 !important;
  max-height:calc(100vh - 106px) !important;
  max-height:calc(100dvh - 106px) !important;
  padding:20px !important;
  padding-bottom:20px !important;
  box-sizing:border-box !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-warning{
  margin:0 0 8px !important;
  color:#f1f2f3 !important;
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:640 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-note{
  margin:0 !important;
  color:#969ba4 !important;
  font-size:12px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-actions{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 116px !important;
  gap:8px !important;
  width:100% !important;
  margin:18px 0 0 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-hold,
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-cancel{
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 14px !important;
  border-radius:6px !important;
  box-shadow:none !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:650 !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-hold{
  border:1px solid #b84349 !important;
  background:#9f3037 !important;
  color:#fff !important;
}
html body #dataResetConfirmOverlay.is-desktop-reset-dialog .data-reset-cancel{
  border:1px solid #373a40 !important;
  background:#202226 !important;
  color:#c5c8ce !important;
}

/* Storage download transfer lock: independent from desktop/mobile sheet dialogs. */
html.storage-download-active,
html.storage-download-active body{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html.storage-download-active body{
  cursor:wait !important;
}
html.storage-download-active body > :not(#storageDownloadProgressOverlay){
  pointer-events:none !important;
  user-select:none !important;
  -webkit-user-select:none !important;
}
.storage-download-progress-overlay{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
  background:rgba(3,5,8,.76);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  touch-action:none;
  cursor:wait;
  opacity:0;
  transition:opacity .18s ease;
}
.storage-download-progress-overlay.hidden{
  display:none !important;
}
.storage-download-progress-overlay.is-open{
  opacity:1;
}
.storage-download-progress-dialog{
  width:min(520px, calc(100vw - 48px));
  max-width:520px;
  padding:26px;
  box-sizing:border-box;
  border:1px solid #35383d;
  border-radius:8px;
  outline:0;
  background:#151618;
  color:#f4f5f6;
  box-shadow:0 26px 80px rgba(0,0,0,.58);
  transform:translateY(7px) scale(.99);
  transition:transform .18s cubic-bezier(.2,.75,.3,1);
}
.storage-download-progress-overlay.is-open .storage-download-progress-dialog{
  transform:none;
}
.storage-download-progress-kicker{
  margin:0 0 12px;
  color:#7f8792;
  font-size:10px;
  line-height:1;
  font-weight:700;
  letter-spacing:.18em;
}
.storage-download-progress-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
}
.storage-download-progress-heading h2{
  min-width:0;
  margin:0;
  color:#f5f6f7;
  font-size:20px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:-.02em;
}
.storage-download-progress-heading strong{
  flex:0 0 auto;
  color:#f8f9fa;
  font-size:30px;
  line-height:1;
  font-weight:350;
  font-variant-numeric:tabular-nums;
}
.storage-download-progress-file{
  margin:16px 0 13px;
  overflow:hidden;
  color:#aeb3ba;
  font-size:12px;
  line-height:1.35;
  font-weight:550;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.storage-download-progress-track{
  position:relative;
  height:5px;
  overflow:hidden;
  border-radius:2px;
  background:#2a2d31;
}
.storage-download-progress-track span{
  display:block;
  width:0;
  height:100%;
  background:#e9ebee;
  transition:width .16s linear, background-color .16s ease;
}
.storage-download-progress-overlay.is-complete .storage-download-progress-track span{
  background:#34d17b;
}
.storage-download-progress-overlay.is-failed .storage-download-progress-track span{
  background:#ef5d68;
}
.storage-download-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:11px;
  color:#9da3ab;
  font-size:11px;
  line-height:1.35;
  font-weight:560;
}
.storage-download-progress-meta span:last-child{
  flex:0 0 auto;
  color:#c6c9ce;
  font-variant-numeric:tabular-nums;
}
.storage-download-progress-estimate{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-top:8px;
  color:#777e87;
  font-size:10px;
  line-height:1.35;
  font-weight:620;
  letter-spacing:.04em;
}
.storage-download-progress-estimate strong{
  flex:0 0 auto;
  color:#e3e5e8;
  font-size:12px;
  font-weight:560;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.storage-download-progress-overlay.is-complete .storage-download-progress-estimate strong{
  color:#5dde94;
}
.storage-download-progress-overlay.is-failed .storage-download-progress-estimate strong{
  color:#f27a84;
}
.storage-download-progress-note{
  margin:18px 0 0;
  padding-top:16px;
  border-top:1px solid #2b2e32;
  color:#777e87;
  font-size:11px;
  line-height:1.5;
  font-weight:520;
}
@media(max-width:600px){
  .storage-download-progress-overlay{
    padding:14px;
  }
  .storage-download-progress-dialog{
    width:calc(100vw - 28px);
    max-width:none;
    padding:22px 20px;
    border-radius:10px;
  }
  .storage-download-progress-heading h2{
    font-size:18px;
  }
  .storage-download-progress-heading strong{
    font-size:27px;
  }
  .storage-download-progress-meta{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .storage-download-progress-estimate{
    margin-top:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .storage-download-progress-overlay,
  .storage-download-progress-dialog,
  .storage-download-progress-track span{
    transition:none !important;
  }
}
body.camera-view-active .camera-gauge::before{
  background:rgba(0,0,0,.18) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body.camera-view-active .camera-gauge-track{
  stroke:rgba(255,255,255,.20) !important;
  stroke-width:3 !important;
}
body.camera-view-active .camera-gauge-prog{
  stroke:rgba(255,255,255,.96) !important;
  stroke-width:3 !important;
  filter:none !important;
}
body.camera-view-active .camera-gauge-label,
body.camera-view-active .camera-gauge-unit,
body.camera-view-active .camera-hud-mission,
body.camera-view-active .camera-mode-kicker,
body.camera-view-active .camera-tmark,
body.camera-view-active .camera-hud-meta{
  font-family:"Arial Narrow","Helvetica Neue",Arial,sans-serif !important;
  font-weight:700 !important;
  letter-spacing:.16em !important;
}
body.camera-view-active .camera-gauge-label,
body.camera-view-active .camera-gauge-unit,
body.camera-view-active .camera-hud-meta,
body.camera-view-active .camera-mode-kicker{
  color:rgba(255,255,255,.70) !important;
}
body.camera-view-active .camera-gauge-value{
  font-family:"Helvetica Neue",Arial,sans-serif !important;
  font-size:30px !important;
  font-weight:500 !important;
  color:rgba(255,255,255,.98) !important;
  text-shadow:0 3px 14px rgba(0,0,0,.8) !important;
}
body.camera-view-active .camera-hud-mission{
  color:rgba(255,255,255,.82) !important;
  font-size:12px !important;
}
body.camera-view-active .camera-hud-state{
  font-family:"Arial Narrow","Helvetica Neue",Arial,sans-serif !important;
  color:#fff !important;
  font-size:18px !important;
  font-weight:800 !important;
  letter-spacing:.18em !important;
  text-shadow:0 3px 16px rgba(0,0,0,.86) !important;
}
body.camera-view-active .camera-hud-state.ok,
body.camera-view-active .camera-hud-state.status-ok,
body.camera-view-active .camera-hud-state.warn,
body.camera-view-active .camera-hud-state.status-warn{
  color:#fff !important;
}
body.camera-view-active .camera-hud-state.bad,
body.camera-view-active .camera-hud-state.status-bad{
  color:#ffb4b4 !important;
}
body.camera-view-active .camera-hud-meta strong{
  color:#fff !important;
  font-weight:800 !important;
}
body.camera-view-active .camera-count-time{
  font-family:"SF Pro Display","Inter","Segoe UI",Arial,sans-serif !important;
  color:#fff !important;
  font-size:64px !important;
  font-weight:300 !important;
  letter-spacing:.03em !important;
  font-variant-numeric:tabular-nums lining-nums !important;
  font-feature-settings:"tnum" 1,"lnum" 1 !important;
  -webkit-text-stroke:0 !important;
  text-shadow:0 4px 24px rgba(0,0,0,.88) !important;
}
body.camera-view-active .camera-tmark{
  font-family:"SF Pro Display","Inter","Segoe UI",Arial,sans-serif !important;
  color:rgba(190,196,204,.68) !important;
  font-size:18px !important;
  font-weight:300 !important;
  letter-spacing:.03em !important;
  line-height:1 !important;
}

/* Camera page gyro preview mount. The preview itself keeps its existing design. */
.camera-telemetry-chart{
  position:relative;
  width:100%;
  height:clamp(240px,35vh,400px);
  z-index:2;
  display:grid;
  grid-template-rows:minmax(24px,max-content) minmax(0,1fr);
  row-gap:8px;
  box-sizing:border-box;
  padding:10px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:5px;
  background:rgba(4,5,8,.40);
  overflow:hidden;
  box-shadow:0 14px 32px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(10px) saturate(88%);
  -webkit-backdrop-filter:blur(10px) saturate(88%);
}
.camera-chart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 6px;
  min-width:0;
  color:rgba(255,255,255,.78);
  font-family:"SF Pro Text","Helvetica Neue","Inter","Segoe UI",Arial,sans-serif;
}
.camera-chart-heading{
  color:#e0e7ee;
  font-size:11px;
  font-weight:600;
  letter-spacing:.01em;
  white-space:nowrap;
}
.camera-chart-legend{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-left:auto;
  gap:4px 5px;
  flex-wrap:wrap;
}
.camera-chart-legend-item{
  display:inline-flex;
  align-items:center;
  gap:2px;
  color:rgba(255,255,255,.66);
  font-size:10px;
  font-weight:550;
  letter-spacing:0;
}
.camera-chart-legend-item i{
  width:8px;
  height:2px;
  display:block;
  background:currentColor;
}
.camera-chart-legend-item--alt{color:#d5dde4}
.camera-chart-legend-item--speed{color:#92aec1}
.camera-chart-legend-item--g{color:#bcb6a6}
.camera-chart-legend-item--gyro-x{color:#b68f8b}
.camera-chart-legend-item--gyro-y{color:#96ad9e}
.camera-chart-legend-item--gyro-z{color:#8fa9bf}
.camera-chart-legend-item b{
  display:inline;
  color:inherit;
  font:500 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:0;
  white-space:nowrap;
}
.camera-chart-tools{display:flex;gap:3px;align-items:center;pointer-events:auto}
.camera-chart-tools button{min-height:24px;padding:2px 5px;border:1px solid #ffffff20;border-radius:4px;background:transparent;color:#bac5d0;font:600 10px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.camera-chart-tools button[aria-pressed="true"]{background:#ffffff14;border-color:#ffffff45;color:#edf2f7}
.camera-chart-tools button:hover{background:#ffffff1f}
.camera-telemetry-chart canvas{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:block;
}
.camera-gyro-preview-mount{
  position:relative;
  width:160px;
  height:160px;
  aspect-ratio:1;
  min-width:160px;
  flex:0 0 160px;
  z-index:2;
  pointer-events:auto;
}
.camera-hud-attitude-group{
  position:absolute;
  right:36px;
  bottom:calc(32px + env(safe-area-inset-bottom, 0px));
  z-index:2;
  display:flex;
  align-items:center;
  gap:16px;
}
.camera-hud-attitude-group.hidden{
  display:none !important;
}
.camera-hud-attitude-group:not(.hidden) > .camera-gauge--alt{
  animation:camera-altitude-gauge-enter .78s cubic-bezier(.14,.86,.18,1) both;
  will-change:transform,opacity;
}
.camera-hud-attitude-group:not(.hidden) > .camera-gyro-preview-mount{
  animation:camera-gyro-preview-enter .92s .08s cubic-bezier(.14,.86,.18,1) both;
  will-change:transform,opacity,filter;
}
.camera-hud-attitude-group:not(.hidden) .camera-gauge--alt .camera-gauge-center{
  animation:camera-instrument-copy-enter .42s .22s ease-out both;
}
.camera-hud-attitude-group:not(.hidden) .camera-attitude-rings{
  animation:camera-attitude-rings-enter .72s .18s cubic-bezier(.14,.86,.18,1) both;
}
.camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--outer{
  animation:camera-attitude-outer-wake .72s .20s ease-out both;
}
.camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--horizon{
  transform-origin:50% 50%;
  animation:camera-attitude-horizon-sweep .88s .20s cubic-bezier(.12,.82,.18,1) both;
}
.camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--meridian{
  transform-origin:50% 50%;
  animation:camera-attitude-meridian-sweep .94s .24s cubic-bezier(.12,.82,.18,1) both;
}
.camera-hud-attitude-group.is-stage-separating > .camera-gauge--alt,
.camera-hud-attitude-group.is-stage-separating > .camera-gyro-preview-mount,
.camera-hud-attitude-group.is-stage-separating .camera-gauge-center,
.camera-hud-attitude-group.is-stage-separating .camera-attitude-rings,
.camera-hud-attitude-group.is-stage-separating .camera-attitude-ring,
body.camera-view-active .camera-hud-left.is-stage-separating .camera-gauge{
  animation:none !important;
}
@keyframes camera-altitude-gauge-enter{
  0%{opacity:0;transform:translate3d(46px,42px,0) scale(.68)}
  48%{opacity:1;transform:translate3d(-7px,-8px,0) scale(1.06)}
  72%{transform:translate3d(3px,2px,0) scale(.985)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes camera-gyro-preview-enter{
  0%{opacity:0;filter:blur(18px);transform:translate3d(78px,42px,0) scale(.58) rotate(7deg)}
  46%{opacity:1;filter:blur(2px);transform:translate3d(-9px,-7px,0) scale(1.08) rotate(-2deg)}
  70%{filter:blur(0);transform:translate3d(4px,2px,0) scale(.98) rotate(.7deg)}
  100%{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}
}
@keyframes camera-instrument-copy-enter{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes camera-attitude-rings-enter{
  0%{opacity:0;transform:scale(.70)}
  48%{opacity:1;transform:scale(1.09)}
  72%{transform:scale(.97)}
  100%{opacity:1;transform:scale(1)}
}
@keyframes camera-attitude-outer-wake{
  0%{opacity:0;border-color:rgba(255,255,255,0);box-shadow:0 0 0 0 rgba(255,255,255,0)}
  45%{opacity:1;border-color:rgba(255,255,255,.82);box-shadow:0 0 24px 3px rgba(255,255,255,.20)}
  100%{opacity:1;border-color:rgba(226,232,240,.42);box-shadow:0 0 0 0 rgba(255,255,255,0)}
}
@keyframes camera-attitude-horizon-sweep{
  0%{opacity:0;transform:rotate(-155deg) scale(.56)}
  46%{opacity:1;transform:rotate(28deg) scale(1.10)}
  68%{transform:rotate(-10deg) scale(.97)}
  84%{transform:rotate(3deg) scale(1.01)}
  100%{opacity:1;transform:rotate(0) scale(1)}
}
@keyframes camera-attitude-meridian-sweep{
  0%{opacity:0;transform:rotate(170deg) scale(.54)}
  44%{opacity:1;transform:rotate(-32deg) scale(1.12)}
  67%{transform:rotate(12deg) scale(.96)}
  84%{transform:rotate(-4deg) scale(1.01)}
  100%{opacity:1;transform:rotate(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .camera-hud-attitude-group:not(.hidden) > .camera-gauge--alt,
  .camera-hud-attitude-group:not(.hidden) > .camera-gyro-preview-mount,
  .camera-hud-attitude-group:not(.hidden) .camera-gauge--alt .camera-gauge-center,
  .camera-hud-attitude-group:not(.hidden) .camera-attitude-rings,
  .camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--outer,
  .camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--horizon,
  .camera-hud-attitude-group:not(.hidden) .camera-attitude-ring--meridian,
  body.camera-view-active .camera-hud-left:not(.hidden) .camera-gauge--alt,
  body.camera-view-active .camera-hud-left:not(.hidden) .camera-gauge--speed{
    animation:none;
  }
}
.camera-gyro-preview-mount::before{
  content:"";
  position:absolute;
  inset:4%;
  z-index:0;
  border-radius:50%;
  background:
    radial-gradient(circle at 40% 30%,rgba(255,255,255,.14),rgba(88,98,108,.16) 46%,rgba(3,7,12,.32) 100%);
  box-shadow:inset 0 0 26px rgba(0,0,0,.25),0 16px 38px rgba(0,0,0,.24);
  backdrop-filter:blur(10px) saturate(105%);
  -webkit-backdrop-filter:blur(10px) saturate(105%);
}
.camera-attitude-rings{
  position:absolute;
  inset:4%;
  z-index:1;
  border-radius:50%;
  pointer-events:none;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.72));
}
.camera-attitude-ring{
  position:absolute;
  display:block;
  border:1px solid rgba(235,240,246,.44);
  border-radius:50%;
}
.camera-attitude-ring--outer{inset:0;border-width:2px;border-color:rgba(235,240,246,.54)}
.camera-attitude-ring--horizon{left:5%;right:5%;top:35%;bottom:35%}
.camera-attitude-ring--meridian{left:34%;right:34%;top:5%;bottom:5%}
body.camera-view-active #gyro3dViewport.is-camera-preview-mounted{
  display:block !important;
  position:relative !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  z-index:2 !important;
  border-radius:50% !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overflow:hidden !important;
}
body.camera-view-active #gyro3dViewport.is-camera-preview-mounted .gyro3d-canvas{
  width:100% !important;
  height:100% !important;
  display:block !important;
  border-radius:inherit !important;
  transform:translate3d(2%,3%,0) !important;
  transition:transform .38s cubic-bezier(.2,.8,.2,1) !important;
}
body.camera-view-active #gyro3dViewport.is-camera-preview-mounted:not(.is-camera-gyro-plus-mounted):not(.is-expanded) .gyro3d-canvas{
  filter:brightness(1.05) contrast(1.06) saturate(.46) drop-shadow(0 3px 7px rgba(0,0,0,.50)) !important;
}
body.camera-view-active .camera-hud-attitude-group.is-stage-separating #gyro3dViewport.is-camera-preview-mounted .gyro3d-canvas{
  transform:translate3d(0,0,0) !important;
}
body.camera-view-active #gyro3dViewport.is-camera-preview-mounted .status-gyro-actions{
  display:none !important;
}
body.camera-view-active #gyro3dViewport.is-camera-preview-mounted .status-gyro-btn{
  min-width:28px !important;
  height:28px !important;
  border-radius:2px !important;
  background:rgba(0,0,0,.24) !important;
  border-color:rgba(255,255,255,.28) !important;
  color:#fff !important;
}
body.camera-view-active .camera-hud-left{
  position:absolute;
  left:36px;
  bottom:calc(32px + env(safe-area-inset-bottom, 0px));
  padding:0;
}

/* Compact broadcast instruments: label/unit and value. */
body.camera-view-active .camera-gauge{
  width:clamp(152px,11vw,184px) !important;
  height:auto !important;
  min-height:76px;
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-end;
  filter:drop-shadow(0 3px 12px rgba(0,0,0,.42)) !important;
}
body.camera-view-active .camera-gauge::before,
body.camera-view-active .camera-gauge-svg{
  display:none !important;
}
body.camera-view-active .camera-gauge-readout{
  display:grid;
  grid-template-columns:max-content max-content;
  align-items:center;
  min-height:52px;
  column-gap:13px;
}
body.camera-view-active .camera-gauge-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:4px;
}
body.camera-view-active .camera-gauge-label{
  overflow:hidden;
  max-width:100%;
  color:rgba(255,255,255,.80) !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1;
  letter-spacing:.11em !important;
  white-space:nowrap;
}
body.camera-view-active .camera-gauge-unit{
  margin:0 !important;
  color:rgba(255,255,255,.62) !important;
  font-size:10px !important;
  font-weight:500 !important;
  line-height:1;
  letter-spacing:.10em !important;
  text-transform:none;
}
body.camera-view-active .camera-gauge-value{
  margin:0 !important;
  justify-self:start;
  min-width:0;
  font-size:34px !important;
  font-weight:300 !important;
  line-height:1 !important;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
  text-shadow:0 2px 10px rgba(0,0,0,.70) !important;
}

body.camera-view-active .camera-hud-left{
  align-items:flex-end;
  gap:26px;
}
body.camera-view-active .camera-hud-attitude-group{
  align-items:flex-end;
  gap:22px;
}

body.camera-view-active .camera-center-countdown .camera-count-time{
  min-width:0 !important;
  font-size:42px !important;
  color:#fff !important;
}
@media(max-width:1100px){
  .camera-gyro-preview-mount{
    width:150px;
    height:150px;
    min-width:150px;
    flex-basis:150px;
  }
  .camera-hud-attitude-group{
    right:24px;
    bottom:calc(26px + env(safe-area-inset-bottom, 0px));
  }
  }
@media(max-width:760px){
  .camera-gyro-preview-mount{
    width:140px;
    height:140px;
    min-width:140px;
    flex-basis:140px;
  }
  .camera-hud-attitude-group{
    right:18px;
    bottom:calc(220px + env(safe-area-inset-bottom, 0px));
  }
  .camera-sequence-dock{right:auto;left:18px;width:min(320px,72vw)}
  .camera-hud-attitude-group .camera-gauge{
    width:140px;
    height:140px;
  }
  body.camera-view-active .camera-hud-left{
    left:18px;
    bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  }
    body.camera-view-active .camera-center-countdown .camera-count-time{font-size:32px !important}
  body.camera-view-active .camera-center-countdown .camera-tmark{font-size:15px !important}
}

/* Mobile uses the page header and in-context controls instead of a bottom menu. */
@media(max-width:600px){
  :root{
    --mobile-nav-height:0px;
    --mobile-nav-gap:0px;
  }
  body .side-nav-mobile{
    display:flex !important;
    left:0 !important;
    right:0 !important;
    bottom:env(safe-area-inset-bottom, 0px) !important;
    width:100% !important;
    height:0 !important;
    min-height:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
    pointer-events:none !important;
  }
  body .side-nav-mobile > .side-nav-menu{
    display:none !important;
  }
  html.mobile-controls-active:not(.phone-landscape-layout) body .side-nav-mobile{
    bottom:0 !important;
    height:auto !important;
    min-height:calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    padding:10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background:rgba(255,255,255,.98) !important;
    pointer-events:auto !important;
  }
  .app-shell{
    padding-bottom:env(safe-area-inset-bottom, 0px) !important;
  }
  .page-wrap{
    padding-bottom:max(16px, env(safe-area-inset-bottom, 0px)) !important;
  }
}

.desktop-nav-abort{display:none}

/* A single bottom-center sequence action stays clear of the side instruments. */
@media (min-width:901px){
  body .desktop-nav-abort{
    position:fixed;top:auto;right:auto;left:50%;bottom:calc(36px + env(safe-area-inset-bottom,0px));
    z-index:90910;display:none;align-items:center;justify-content:center;gap:8px;
    width:auto;min-width:142px;height:42px;min-height:42px;padding:0 18px;
    border:1px solid rgba(217,155,165,.34);border-radius:14px;
    background:rgba(69,31,40,.66);color:#e5b9c1;
    box-shadow:inset 0 1px 0 #ffffff13,0 8px 24px #0003;
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
    transform:translateX(-50%);font:600 11px/1 "Helvetica Neue",Arial,sans-serif;
    letter-spacing:.08em;transition:background .16s ease,border-color .16s ease,transform .12s ease;
  }
  body .desktop-nav-abort.is-visible{display:flex}
  body .desktop-nav-abort svg{width:16px;height:16px;stroke:none;fill:currentColor}
  body .desktop-nav-abort:disabled{cursor:not-allowed;opacity:.45}
  body .desktop-nav-abort.is-active:not(:disabled){cursor:pointer}
  body .desktop-nav-abort.is-active:not(:disabled):hover{transform:translateX(-50%);background:rgba(94,41,53,.8);border-color:rgba(222,159,171,.6);color:#f3d2d8}
  body .desktop-nav-abort.is-active:not(:disabled):active{transform:translateX(-50%) scale(.97)}
  body .desktop-nav-abort:focus-visible{outline:2px solid #d9a3ad;outline-offset:4px}
  body.camera-view-active #dashboardView{
    left:clamp(18px,2vw,34px) !important;
    right:calc(14px + 72px + clamp(18px,2vw,34px)) !important;
  }
}

/* Servo-derived Pyro and Storage dialogs. */
.pyro-control-head > div,
.data-storage-surface-head > div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.pyro-control-head small,
.data-storage-surface-head span,
.data-storage-list-head span{
  color:#777c85;
  font-size:9px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.08em;
}
.data-storage-summary-heading,
.data-storage-list-head,
.data-storage-surface-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.data-storage-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.data-storage-metrics > div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.data-storage-metrics > div + div{
  border-left:1px solid #303238;
}
.data-storage-metrics span{
  color:#7f848d;
  font-size:9px;
  line-height:1;
  font-weight:600;
  letter-spacing:.04em;
}
.data-storage-metrics strong{
  color:#f0f1f2;
  font-size:18px;
  line-height:1;
  font-weight:560;
}
.data-storage-stage-selector{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  margin:20px 20px 0;
  padding:4px;
  border:1px solid #303238;
  border-radius:8px;
  background:#101113;
}
.data-storage-stage-selector[hidden]{
  display:none !important;
}
.data-storage-stage-selector button{
  min-width:0;
  min-height:38px;
  padding:0 12px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#868a92;
  font-size:11px;
  font-weight:650;
  letter-spacing:.05em;
  box-shadow:none;
}
.data-storage-stage-selector button.is-active{
  background:#e8e9eb;
  color:#121315;
}
.data-storage-stage-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.data-storage-stage-card{
  min-width:0;
  padding:16px;
  border:1px solid #303238;
  border-radius:7px;
  background:#121315;
}
.data-storage-stage-card .data-storage-summary-heading{
  margin-bottom:13px;
}
.data-storage-stage-card .data-storage-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.data-storage-stage-card .data-storage-title i{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#666b74;
}
.data-storage-stage-card.is-ready .data-storage-title i{
  background:#48cf7a;
}
.data-storage-stage-card .data-storage-metrics > div{
  padding:0 10px;
}
.data-storage-stage-card .data-storage-metrics > div:first-child{
  padding-left:0;
}
.data-storage-stage-card .data-storage-metrics > div:last-child{
  padding-right:0;
}
.data-storage-stage-card .data-storage-metrics strong{
  font-size:15px;
}
.data-storage-empty.data-storage-empty--stage{
  min-height:72px !important;
}

@media (min-width:901px){
  html:not(.phone-landscape-layout) body #pyroControlOverlay #pyroControlDialog,
  html:not(.phone-landscape-layout) body #dataListOverlay > .data-storage-dialog{
    width:min(820px, calc(100vw - 64px)) !important;
    max-width:820px !important;
    min-height:0 !important;
    max-height:calc(100dvh - 64px) !important;
    overflow:hidden !important;
    border:1px solid #34363b !important;
    border-radius:8px !important;
    background:#151618 !important;
    box-shadow:0 24px 70px rgba(0,0,0,.46) !important;
  }

  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-body,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-dialog-body{
    display:block !important;
    padding:20px 22px 22px !important;
    overflow:auto !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-selector,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-selector{
    display:block !important;
    margin:0 0 16px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-channel-label,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-selector > .settings-label{
    display:block !important;
    margin:0 0 9px !important;
    color:#92969e !important;
    font-size:11px !important;
    font-weight:600 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-grid,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-origin-filter{
    display:grid !important;
    gap:6px !important;
    margin:0 !important;
    padding:4px !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#101113 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-grid,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-origin-filter{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-origin-filter button{
    min-height:38px !important;
    padding:0 10px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#868a92 !important;
    font-size:12px !important;
    font-weight:650 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn.is-active,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-origin-filter button.is-active{
    background:#e8e9eb !important;
    color:#121315 !important;
  }

  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-panel,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-surface{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1b1c1f !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-head,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-surface-head{
    min-height:60px !important;
    margin:0 !important;
    padding:0 20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    border-bottom:1px solid #2f3136 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-head span,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-surface-head strong{
    color:#f2f3f5 !important;
    font-size:15px !important;
    line-height:1 !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-head strong,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-live{
    color:#858a94 !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:700 !important;
    letter-spacing:.08em !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 230px !important;
    align-items:end !important;
    gap:18px !important;
    padding:20px 20px 0 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-kicker{
    margin:0 0 8px !important;
    color:#8d929a !important;
    font-size:10px !important;
    font-weight:600 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value{
    min-height:46px !important;
    display:flex !important;
    align-items:center !important;
    overflow:hidden !important;
    border:1px solid #35383e !important;
    border-radius:6px !important;
    background:#111214 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value input{
    width:100% !important;
    min-width:0 !important;
    min-height:44px !important;
    padding:0 14px !important;
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#f5f5f5 !important;
    font-size:20px !important;
    font-weight:560 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value span{
    padding-right:14px !important;
    color:#858a94 !important;
    font-size:11px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets button{
    min-height:46px !important;
    border:1px solid #35383e !important;
    border-radius:6px !important;
    background:#111214 !important;
    color:#d5d7db !important;
    font-size:11px !important;
    font-weight:650 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets button:hover{
    transform:none !important;
    background:#292b30 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-run{
    width:calc(100% - 40px) !important;
    min-height:46px !important;
    margin:18px 20px 0 !important;
    border:1px solid #63373b !important;
    border-radius:6px !important;
    background:#332023 !important;
    color:#ff9da4 !important;
    font-size:12px !important;
    font-weight:680 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-note{
    margin:14px 20px 18px !important;
    padding:13px 0 0 !important;
    border:0 !important;
    border-top:1px solid #2f3136 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#777c85 !important;
    font-size:9px !important;
    text-align:left !important;
  }

  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming{
    width:min(520px, calc(100vw - 64px)) !important;
    max-width:520px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-selector,
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-panel{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-body{
    padding:22px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog.is-confirming .pyro-control-confirm{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"title" "desc" "warning" "actions" !important;
    gap:12px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-title{
    grid-area:title !important;
    margin:0 !important;
    color:#f4f5f6 !important;
    font-size:20px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-desc{
    grid-area:desc !important;
    margin:0 !important;
    color:#b4b7bd !important;
    font-size:13px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-warning{
    grid-area:warning !important;
    margin:2px 0 4px !important;
    padding:14px 15px !important;
    border:1px solid #4b3033 !important;
    border-radius:7px !important;
    background:#251a1b !important;
    color:#e6b9bd !important;
    font-size:11px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-actions{
    grid-area:actions !important;
    display:grid !important;
    grid-template-columns:110px minmax(0,1fr) !important;
    gap:8px !important;
    margin:0 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-btn{
    min-height:48px !important;
    border-radius:6px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-confirm-btn--ghost{
    border:1px solid #393c42 !important;
    background:#24262a !important;
    color:#d8dade !important;
  }

  html:not(.phone-landscape-layout) body #dataListOverlay > .data-storage-dialog{
    transform:translateY(8px) scale(.985) !important;
    opacity:0 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay.is-open > .data-storage-dialog{
    transform:none !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-surface-head{
    padding:0 20px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay #dataListSummary{
    min-height:0 !important;
    margin:0 !important;
    padding:18px 20px 20px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#cfd1d5 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-summary-heading{
    margin-bottom:16px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-stage-card .data-storage-summary-heading{
    margin-bottom:13px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-title{
    color:#f0f1f2 !important;
    font-size:13px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-total{
    color:#777c85 !important;
    font-size:9px !important;
    font-weight:650 !important;
    letter-spacing:.06em !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-track{
    height:5px !important;
    margin:0 0 16px !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:999px !important;
    background:#0d0e10 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-fill{
    display:block !important;
    width:var(--storage-used, 0%) !important;
    height:100% !important;
    border-radius:inherit !important;
    background:#dfe1e4 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-metrics{
    padding:15px 0 !important;
    border-top:1px solid #2f3136 !important;
    border-bottom:1px solid #2f3136 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-metrics > div{
    padding:0 16px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-metrics > div:first-child{
    padding-left:0 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-spec{
    margin-top:14px !important;
    color:#777c85 !important;
    font-size:9px !important;
    font-weight:550 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-list-head{
    min-height:52px !important;
    padding:0 20px !important;
    border-top:1px solid #2f3136 !important;
    border-bottom:1px solid #2f3136 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-list-head strong{
    color:#e9eaec !important;
    font-size:12px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay #dataListBody{
    min-height:170px !important;
    max-height:250px !important;
    margin:0 !important;
    padding:0 !important;
    overflow-y:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay #dataListBody::before{
    content:none !important;
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .agent-help-issue,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-list-more{
    min-height:54px !important;
    margin:0 !important;
    padding:10px 20px !important;
    border:0 !important;
    border-bottom:1px solid #2d2f34 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .agent-help-issue:hover,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-list-more:hover{
    transform:none !important;
    background:#222327 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-list-item .agent-help-dot{
    width:6px !important;
    height:6px !important;
    background:#79c796 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .agent-help-issue-title{
    color:#eceef0 !important;
    font-size:12px !important;
    font-weight:620 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .agent-help-issue-sub{
    color:#777c85 !important;
    font-size:9px !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-empty{
    min-height:170px !important;
    margin:0 !important;
    padding:24px !important;
    display:grid !important;
    place-items:center !important;
    color:#777c85 !important;
    font-size:11px !important;
    text-align:center !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 176px !important;
    gap:8px !important;
    margin:0 !important;
    padding:16px 20px 20px !important;
    border-top:1px solid #2f3136 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-actions.is-app-only{
    grid-template-columns:minmax(0,1fr) !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-download,
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-reset{
    min-height:44px !important;
    border-radius:6px !important;
    font-size:11px !important;
    font-weight:650 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-download{
    border:1px solid #dedfe1 !important;
    background:#dedfe1 !important;
    color:#151618 !important;
  }
  html:not(.phone-landscape-layout) body #dataListOverlay .data-storage-reset{
    border:1px solid #563234 !important;
    background:#2b1c1d !important;
    color:#ff9696 !important;
  }

  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-dialog{
    width:min(520px, calc(100vw - 64px)) !important;
    max-width:520px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"title" "desc" "note" "actions" !important;
    gap:12px !important;
    padding:0 22px 22px !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-title{
    grid-area:title !important;
    min-height:62px !important;
    margin:0 -22px 8px !important;
    padding:0 64px 0 22px !important;
    display:flex !important;
    align-items:center !important;
    border-bottom:1px solid #2c2e32 !important;
    background:#191a1d !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .disconnect-text{
    grid-area:desc !important;
    margin:0 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .confirm-note{
    grid-area:note !important;
    margin:0 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #pyroConfirmOverlay .wifi-connect-actions{
    grid-area:actions !important;
    margin:0 !important;
  }
}

@media (max-width:900px){
  body #dataListOverlay .data-storage-stage-grid{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Roll-control parameter editor */
.mission-config-panel[hidden]{display:none !important;}
.mission-config-panel{display:grid;gap:16px;}
.mission-selector-settings .settings-select{min-width:180px;}
.mission-profile-description{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:11px 12px;
  border:1px solid var(--line,rgba(255,255,255,.1));
  border-radius:10px;
  background:rgba(127,127,127,.055);
}
.mission-profile-description b{font-size:12px;letter-spacing:.05em;white-space:nowrap;}
.mission-profile-description span{color:var(--muted,#89909a);font-size:11px;}
.mission-empty-state{
  display:grid;
  place-items:center;
  gap:6px;
  min-height:120px;
  padding:20px;
  border:1px dashed var(--line,rgba(255,255,255,.14));
  border-radius:10px;
  color:var(--muted,#89909a);
  text-align:center;
}
.mission-empty-state b{color:var(--text,#e9edf5);font-size:13px;}
.mission-empty-state span{font-size:11px;}
.roll-control-settings .settings-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.roll-control-form{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.roll-control-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.roll-control-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.roll-control-summary-grid > label,
.roll-channel-card{
  display:grid;
  gap:7px;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line,rgba(255,255,255,.1));
  border-radius:10px;
  background:rgba(127,127,127,.055);
  color:var(--text,#e9edf5);
  font-size:12px;
  font-weight:650;
}
.roll-control-summary-grid label > div,
.roll-channel-card > div{
  display:flex;
  align-items:center;
  gap:7px;
}
.roll-control-summary-grid input[type="number"],
.roll-control-summary-grid select,
.roll-channel-card input[type="number"],
.roll-channel-card select{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid var(--line,rgba(255,255,255,.12));
  border-radius:8px;
  background:var(--panel,#17191d);
  color:var(--text,#f1f3f6);
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
}
.roll-control-summary-grid i,
.roll-channel-card i{
  color:var(--muted,#89909a);
  font-size:11px;
  font-style:normal;
  white-space:nowrap;
}
.roll-control-check{
  grid-template-columns:1fr auto;
  align-items:center;
}
.roll-control-check input{width:18px;height:18px;accent-color:var(--accent,#ff6a00);}
.roll-control-section{
  overflow:hidden;
  border:1px solid var(--line,rgba(255,255,255,.1));
  border-radius:12px;
  background:rgba(127,127,127,.035);
}
.roll-control-section > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  cursor:pointer;
  list-style:none;
  font-size:13px;
  font-weight:750;
}
.roll-control-section > summary::-webkit-details-marker{display:none;}
.roll-control-section > summary::after{content:"＋";color:var(--muted,#89909a);font-size:15px;}
.roll-control-section[open] > summary::after{content:"−";}
.roll-control-section > summary small{margin-left:auto;color:var(--muted,#89909a);font-size:11px;font-weight:500;}
.roll-control-section > .roll-control-summary-grid,
.roll-control-section > .roll-control-channel-grid,
.roll-control-section > .roll-control-subtitle,
.roll-control-section > .roll-control-channel-hint{margin:0 12px 12px;}
.roll-control-subtitle{padding-top:3px;color:var(--muted,#89909a);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;}
.roll-control-channel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.roll-channel-card{padding:10px;}
.roll-channel-card > label{display:flex;align-items:center;gap:7px;}
.roll-channel-card input[type="checkbox"]{width:16px;height:16px;accent-color:var(--accent,#ff6a00);}
.roll-control-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px;}
.roll-control-actions > div{display:flex;gap:8px;}
@media (max-width:900px){
  .roll-control-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .roll-control-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .roll-control-actions{align-items:stretch;flex-direction:column;}
  .roll-control-actions > div{display:grid;grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .mission-profile-description{align-items:flex-start;flex-direction:column;}
  .roll-control-summary-grid,
  .roll-control-grid-3{grid-template-columns:1fr;}
  .roll-control-section > summary small{display:none;}
}
@media (max-width:900px){
  body #pyroControlDialog .pyro-control-selector,
  body #dataListOverlay .data-storage-selector{
    margin-bottom:14px !important;
  }
  body #pyroControlDialog .pyro-control-channel-label,
  body #dataListOverlay .data-storage-selector > .settings-label{
    margin-bottom:8px !important;
  }
  body #pyroControlDialog .pyro-channel-grid,
  body #dataListOverlay .data-origin-filter{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
  }
  body #pyroControlDialog .pyro-control-panel,
  body #dataListOverlay .data-storage-surface{
    overflow:hidden !important;
    border:1px solid #303238 !important;
    border-radius:8px !important;
    background:#1b1c1f !important;
  }
  body #pyroControlDialog .pyro-control-head,
  body #dataListOverlay .data-storage-surface-head{
    min-height:56px !important;
    margin:0 !important;
    padding:0 16px !important;
    border-bottom:1px solid #2f3136 !important;
  }
  body #pyroControlDialog .pyro-control-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
    padding:16px 16px 0 !important;
  }
  body #pyroControlDialog .pyro-control-run{
    width:calc(100% - 32px) !important;
    margin:16px !important;
  }
  body #pyroControlDialog .pyro-control-note{
    margin:0 16px 16px !important;
  }
  body #dataListOverlay .data-storage-dialog-body{
    display:block !important;
  }
  body #dataListOverlay #dataListSummary{
    margin:0 !important;
    padding:16px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  body #dataListOverlay .data-storage-metrics{
    margin-top:14px !important;
    padding:14px 0 !important;
    border-top:1px solid #2f3136 !important;
    border-bottom:1px solid #2f3136 !important;
  }
  body #dataListOverlay .data-storage-metrics > div{
    padding:0 10px !important;
  }
  body #dataListOverlay .data-storage-list-head{
    min-height:48px !important;
    padding:0 16px !important;
    border-top:1px solid #2f3136 !important;
    border-bottom:1px solid #2f3136 !important;
  }
  body #dataListOverlay #dataListBody{
    min-height:160px !important;
    max-height:34dvh !important;
    padding:0 !important;
    overflow-y:auto !important;
  }
  body #dataListOverlay .agent-help-issue{
    border-radius:0 !important;
    background:transparent !important;
  }
  body #dataListOverlay .data-storage-actions{
    margin:0 !important;
    padding:14px 16px 16px !important;
    border-top:1px solid #2f3136 !important;
  }
}

/* Pyro dialog header: keep the title and close action visually unboxed. */
html body #pyroControlOverlay > #pyroControlDialog > .settings-header{
  position:relative !important;
  min-height:60px !important;
  margin:0 !important;
  padding:0 58px 0 22px !important;
  display:flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  justify-content:flex-start !important;
  border:0 !important;
  border-bottom:1px solid #2c2e32 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left !important;
}

/* Storage stays fixed-height until the user explicitly opens the complete list. */
html body #dataListOverlay > .data-storage-dialog,
html body #dataListOverlay .data-storage-dialog-body{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html body #dataListOverlay #dataListBody{
  overflow:hidden !important;
  overscroll-behavior:none !important;
  scrollbar-width:none;
}
html body #dataListOverlay #dataListBody::-webkit-scrollbar{
  width:0;
  height:0;
}
html body #dataListOverlay.is-data-list-expanded #dataListBody{
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scrollbar-width:thin;
}
html body #dataListOverlay.is-data-list-expanded #dataListBody::-webkit-scrollbar{
  width:7px;
}
html body #dataListOverlay.is-data-list-expanded #dataListBody::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#555961;
}
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-title{
  display:inline-block !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#f2f3f5 !important;
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:620 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  text-align:left !important;
}
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn{
  position:absolute !important;
  top:50% !important;
  right:16px !important;
  left:auto !important;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  min-height:32px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  border:0 !important;
  border-radius:50% !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#9da2ab !important;
  font-size:23px !important;
  line-height:1 !important;
  font-weight:300 !important;
  transform:translateY(-50%) !important;
}
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn::before,
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn::after{
  content:none !important;
  display:none !important;
}
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn:hover{
  border:0 !important;
  background:rgba(255,255,255,.055) !important;
  color:#f3f4f6 !important;
  box-shadow:none !important;
}
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn:focus,
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn:focus-visible,
html body #pyroControlOverlay > #pyroControlDialog > .settings-header > .settings-close-btn:active{
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:translateY(-50%) !important;
}

@media (min-width:901px){
  body #pyroControlOverlay{
    align-items:center !important;
    justify-content:center !important;
    padding:32px !important;
  }
  body #pyroControlOverlay > #pyroControlDialog{
    width:min(720px, calc(100vw - 64px)) !important;
    max-width:720px !important;
    min-height:0 !important;
    height:auto !important;
    max-height:calc(100dvh - 64px) !important;
    margin:auto !important;
    padding:0 !important;
    border:1px solid #34363b !important;
    border-radius:8px !important;
    background:#151618 !important;
    box-shadow:0 24px 70px rgba(0,0,0,.46) !important;
    overflow:hidden !important;
  }
}

/*
 * Desktop avionics reboot dialog.
 * Mobile keeps its independent bottom-sheet/dialog styling.
 */
@media (min-width:901px){
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay.reboot-overlay{
    position:fixed !important;
    inset:0 !important;
    z-index:2147483643 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:24px !important;
    box-sizing:border-box !important;
    background:rgba(3,5,8,.76) !important;
    -webkit-backdrop-filter:blur(7px) !important;
    backdrop-filter:blur(7px) !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay.reboot-overlay.hidden{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay > .reboot-dialog{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    column-gap:0 !important;
    row-gap:5px !important;
    width:min(520px, calc(100vw - 48px)) !important;
    max-width:520px !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:calc(100dvh - 48px) !important;
    margin:auto !important;
    padding:24px !important;
    box-sizing:border-box !important;
    border:1px solid #35383d !important;
    border-radius:8px !important;
    background:#151618 !important;
    color:#f3f4f6 !important;
    box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
    overflow:hidden !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay .confirm-icon{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmTitle{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:auto !important;
    margin:0 !important;
    color:#f3f4f6 !important;
    font-size:18px !important;
    line-height:1.25 !important;
    font-weight:650 !important;
    letter-spacing:-.01em !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmText{
    grid-column:1 !important;
    grid-row:2 !important;
    margin:0 !important;
    color:#9da2ab !important;
    font-size:13px !important;
    line-height:1.5 !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmActions{
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 132px !important;
    gap:8px !important;
    width:100% !important;
    margin:20px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmBtn,
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmCancel{
    width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    margin:0 !important;
    padding:0 18px !important;
    border-radius:6px !important;
    box-shadow:none !important;
    font-size:13px !important;
    line-height:1 !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
    text-decoration:none !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmBtn{
    border:1px solid #b84349 !important;
    background:#9f3037 !important;
    color:#fff !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmBtn:hover{
    border-color:#d45a60 !important;
    background:#b83a41 !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmCancel{
    border:1px solid #373a40 !important;
    background:#202226 !important;
    color:#c5c8ce !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmCancel:hover{
    border-color:#4b4f57 !important;
    background:#282a2f !important;
    color:#f0f1f2 !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay.is-waiting #rebootConfirmActions{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #rebootConfirmOverlay.is-waiting > .reboot-dialog::after{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    bottom:0 !important;
    display:block !important;
    width:34% !important;
    height:2px !important;
    border-radius:0 !important;
    background:#d9dadd !important;
    opacity:1 !important;
    animation:avionicsRebootProgress 1.35s ease-in-out infinite !important;
  }
}
@keyframes avionicsRebootProgress{
  0%{transform:translateX(-105%)}
  100%{transform:translateX(400%)}
}

/* Supply-event acknowledgement. Kept independent from reboot confirmation. */
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay).brownout-warning-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483645 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  background:rgba(3,5,8,.78) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  backdrop-filter:blur(8px) !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay).brownout-warning-overlay.hidden{
  display:none !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) > .brownout-warning-dialog{
  width:min(480px, calc(100vw - 48px)) !important;
  margin:auto !important;
  padding:24px !important;
  box-sizing:border-box !important;
  border:1px solid #383b40 !important;
  border-radius:8px !important;
  background:#151618 !important;
  color:#f2f3f5 !important;
  box-shadow:0 24px 72px rgba(0,0,0,.52) !important;
  text-align:left !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-kicker{
  margin:0 0 8px !important;
  color:#d6a85b !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:.16em !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-title{
  margin:0 !important;
  color:#f5f5f6 !important;
  font-size:20px !important;
  line-height:1.3 !important;
  font-weight:650 !important;
  letter-spacing:-.02em !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-text{
  margin:12px 0 0 !important;
  color:#aeb2b9 !important;
  font-size:14px !important;
  line-height:1.58 !important;
  font-weight:450 !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-check{
  margin:18px 0 0 !important;
  padding:13px 14px !important;
  border:1px solid #303238 !important;
  border-radius:6px !important;
  background:#111214 !important;
  color:#c8cbd0 !important;
  font-size:12px !important;
  line-height:1.4 !important;
  letter-spacing:.01em !important;
  text-align:center !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-confirm{
  width:100% !important;
  min-height:46px !important;
  margin:20px 0 0 !important;
  padding:0 18px !important;
  border:1px solid #dedfe2 !important;
  border-radius:6px !important;
  background:#e6e7e9 !important;
  color:#17181a !important;
  box-shadow:none !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:700 !important;
}
body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-confirm:hover{
  background:#f4f4f5 !important;
}
@media (max-width:600px){
  body :is(#brownoutWarningOverlay,#missionArmRiskOverlay).brownout-warning-overlay{
    padding:16px !important;
  }
  body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) > .brownout-warning-dialog{
    width:100% !important;
    padding:21px 20px 20px !important;
  }
  body :is(#brownoutWarningOverlay,#missionArmRiskOverlay) .brownout-warning-title{
    font-size:19px !important;
  }
}

/* Protected A.I LINK role configuration. */
.flash-link-protected-role-row{
  align-items:center !important;
}
.flash-link-role-access{
  min-width:188px !important;
  padding-inline:18px !important;
  font-family:var(--font-mono, ui-monospace, monospace) !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  white-space:nowrap !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  touch-action:manipulation !important;
}
.flash-role-config-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483646 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  background:rgba(3,5,8,.78) !important;
  -webkit-backdrop-filter:blur(10px) !important;
  backdrop-filter:blur(10px) !important;
}
.flash-role-config-overlay.hidden{
  display:none !important;
}
.flash-role-config-dialog{
  width:min(620px, calc(100vw - 48px)) !important;
  max-height:calc(100dvh - 48px) !important;
  overflow:hidden !important;
  border:1px solid #383b40 !important;
  border-radius:9px !important;
  background:#151618 !important;
  color:#f3f4f6 !important;
  box-shadow:0 28px 86px rgba(0,0,0,.58) !important;
}
.flash-role-config-header{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:20px !important;
  padding:24px 24px 20px !important;
  border-bottom:1px solid #2d3035 !important;
  background:#181a1d !important;
}
.flash-role-config-kicker{
  margin:0 0 8px !important;
  color:#8d939e !important;
  font-family:var(--font-mono, ui-monospace, monospace) !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:.17em !important;
}
.flash-role-config-kicker-warning{
  color:#d7a95e !important;
}
.flash-role-config-title{
  color:#f4f5f6 !important;
  font-size:22px !important;
  line-height:1.2 !important;
  font-weight:660 !important;
  letter-spacing:-.025em !important;
}
.flash-role-config-close{
  width:38px !important;
  height:38px !important;
  flex:0 0 38px !important;
  padding:0 !important;
  border:1px solid #383b41 !important;
  border-radius:6px !important;
  background:#202226 !important;
  color:#aeb2b9 !important;
  font-size:25px !important;
  line-height:34px !important;
  font-weight:300 !important;
}
.flash-role-config-body{
  display:grid !important;
  gap:16px !important;
  padding:22px 24px 20px !important;
}
.flash-role-config-copy{
  color:#aeb2b9 !important;
  font-size:13px !important;
  line-height:1.58 !important;
}
.flash-role-config-copy strong{
  color:#e5e7ea !important;
  font-weight:650 !important;
}
.flash-role-config-label{
  margin-top:2px !important;
  color:#858b95 !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:.14em !important;
}
.flash-role-segment{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:6px !important;
  padding:6px !important;
  border:1px solid #33363c !important;
  border-radius:7px !important;
  background:#101113 !important;
}
.flash-role-segment button{
  min-height:48px !important;
  padding:0 16px !important;
  border:1px solid transparent !important;
  border-radius:5px !important;
  background:transparent !important;
  color:#9297a0 !important;
  font-size:13px !important;
  font-weight:650 !important;
  box-shadow:none !important;
}
.flash-role-segment button.is-active{
  border-color:#e0e1e3 !important;
  background:#e7e8ea !important;
  color:#17181a !important;
}
.flash-role-config-panel{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  min-height:74px !important;
  padding:17px 18px !important;
  box-sizing:border-box !important;
  border:1px solid #303339 !important;
  border-radius:7px !important;
  background:#191a1d !important;
}
.flash-role-config-panel[hidden]{
  display:none !important;
}
.flash-role-config-panel-stack{
  align-items:stretch !important;
  flex-direction:column !important;
}
.flash-role-config-panel-title{
  color:#e4e5e7 !important;
  font-size:13px !important;
  font-weight:650 !important;
}
.flash-role-config-panel-copy{
  margin-top:4px !important;
  color:#8e939c !important;
  font-size:11px !important;
  line-height:1.4 !important;
}
.flash-role-stage-segment{
  width:100% !important;
  box-sizing:border-box !important;
}
.flash-role-config-summary{
  padding:12px 14px !important;
  border-left:2px solid #666c75 !important;
  background:#111214 !important;
  color:#b1b5bc !important;
  font-size:12px !important;
  line-height:1.45 !important;
}
.flash-role-identity-section{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  padding:16px 2px 0 !important;
  border-top:1px solid #2e3136 !important;
}
.flash-role-identity-serial{
  font-family:var(--font-mono, ui-monospace, monospace) !important;
  letter-spacing:.035em !important;
}
.flash-role-identity-reset{
  min-height:38px !important;
  flex:0 0 auto !important;
  padding:0 15px !important;
  border:1px solid #5f4245 !important;
  border-radius:6px !important;
  background:#24191b !important;
  color:#e2a2a8 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.flash-role-identity-reset:hover{
  border-color:#8e4a51 !important;
  background:#2d1c1f !important;
  color:#f0b0b6 !important;
}
.flash-role-config-actions{
  display:grid !important;
  grid-template-columns:1fr 1.55fr !important;
  gap:10px !important;
  padding:0 24px 24px !important;
}
.flash-role-config-actions button{
  min-height:48px !important;
  border-radius:6px !important;
  font-size:13px !important;
  font-weight:700 !important;
}
.flash-role-config-secondary{
  border:1px solid #383b41 !important;
  background:#202226 !important;
  color:#c3c6cc !important;
}
.flash-role-config-primary{
  border:1px solid #e2e3e5 !important;
  background:#e7e8ea !important;
  color:#17181a !important;
}
.flash-role-config-danger{
  border:1px solid #a9434a !important;
  background:#97363d !important;
  color:#fff !important;
}
.flash-role-config-actions button:disabled{
  opacity:.48 !important;
  cursor:wait !important;
}
.flash-identity-reset-overlay{
  z-index:2147483647 !important;
}
.flash-identity-reset-dialog{
  width:min(520px, calc(100vw - 48px)) !important;
}
.flash-identity-reset-readout{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  padding:16px 17px !important;
  border:1px solid #3b3e44 !important;
  border-radius:7px !important;
  background:#111214 !important;
}
.flash-identity-reset-readout span{
  color:#8f949d !important;
  font-size:11px !important;
  font-weight:650 !important;
}
.flash-identity-reset-readout strong{
  color:#f1f2f4 !important;
  font-family:var(--font-mono, ui-monospace, monospace) !important;
  font-size:13px !important;
  letter-spacing:.04em !important;
}
.flash-stage2-mismatch-dialog{
  width:min(520px, calc(100vw - 48px)) !important;
}
.flash-stage2-mismatch-readout{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  padding:16px 17px !important;
  border:1px solid #3b3e44 !important;
  border-radius:7px !important;
  background:#111214 !important;
}
.flash-stage2-mismatch-readout span{
  color:#8f949d !important;
  font-size:11px !important;
  font-weight:650 !important;
}
.flash-stage2-mismatch-readout strong{
  color:#f1f2f4 !important;
  font-family:var(--font-mono, ui-monospace, monospace) !important;
  font-size:14px !important;
  letter-spacing:.06em !important;
}
@media (max-width:600px){
  .flash-link-protected-role-row{
    align-items:flex-start !important;
  }
  .flash-link-role-access{
    min-width:0 !important;
    max-width:54vw !important;
  }
  .flash-role-config-overlay{
    padding:14px !important;
  }
  .flash-role-config-dialog,
  .flash-identity-reset-dialog,
  .flash-stage2-mismatch-dialog{
    width:100% !important;
    max-height:calc(100dvh - 28px) !important;
  }
  .flash-role-config-header{
    padding:20px 18px 17px !important;
  }
  .flash-role-config-title{
    font-size:20px !important;
  }
  .flash-role-config-body{
    gap:13px !important;
    padding:18px !important;
  }
  .flash-role-config-actions{
    padding:0 18px 18px !important;
  }
}

/*
 * Desktop modal system.
 * Keep phone and phone-landscape dialogs independent from this layer.
 */
@media (min-width:901px){
  html:not(.phone-landscape-layout) body{
    --pc-modal-backdrop:rgba(3,5,8,.76);
    --pc-modal-surface:#151618;
    --pc-modal-header:#191a1d;
    --pc-modal-raised:#202226;
    --pc-modal-border:#35383d;
    --pc-modal-divider:#2c2e32;
    --pc-modal-text:#f3f4f6;
    --pc-modal-muted:#9da2ab;
    --pc-modal-danger:#9f3037;
    --pc-modal-danger-border:#b84349;
  }

  /* One backdrop treatment across desktop dialogs. */
  html:not(.phone-landscape-layout) body :is(
    .confirm-overlay:not(.warning-fullscreen),
    .settings-overlay,
    .reboot-overlay,
    .disconnect-overlay,
    .connection-guide-overlay,
    .flash-link-topology-overlay,
    .mobile-chart-picker-overlay
  ){
    background:var(--pc-modal-backdrop) !important;
    -webkit-backdrop-filter:blur(7px) !important;
    backdrop-filter:blur(7px) !important;
  }

  /* Shared shell. Width and internal layout remain owned by each feature. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog
  ){
    border:1px solid var(--pc-modal-border) !important;
    border-radius:8px !important;
    background:var(--pc-modal-surface) !important;
    color:var(--pc-modal-text) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog
  )::before,
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog
  )::after{
    content:none !important;
    display:none !important;
  }

  /* Flat title bars replace the mixed glass and boxed title treatments. */
  html:not(.phone-landscape-layout) body :is(
    .settings-header,
    .mobile-chart-picker-head,
    .connection-guide-header,
    .launcher-header
  ){
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    min-height:60px !important;
    margin:0 !important;
    padding:0 60px 0 22px !important;
    box-sizing:border-box !important;
    border:0 !important;
    border-bottom:1px solid var(--pc-modal-divider) !important;
    background:var(--pc-modal-header) !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-title,
    .mobile-chart-picker-title,
    .connection-guide-header h2,
    .launcher-title
  ){
    margin:0 !important;
    color:var(--pc-modal-text) !important;
    font-size:16px !important;
    line-height:1.2 !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
    text-align:left !important;
  }

  /* One unobtrusive close control. */
  html:not(.phone-landscape-layout) body :is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .launcher-close-btn
  ){
    position:absolute !important;
    top:13px !important;
    right:16px !important;
    left:auto !important;
    display:grid !important;
    place-items:center !important;
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#a9adb5 !important;
    box-shadow:none !important;
    font-size:22px !important;
    line-height:1 !important;
    font-weight:300 !important;
    transform:none !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .launcher-close-btn
  ):hover{
    border-color:#393c42 !important;
    background:#24262a !important;
    color:#f4f4f5 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-header #settingsClose{
    font-size:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-header #settingsClose::before{
    content:none !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-header #settingsClose::after{
    content:"×" !important;
    position:static !important;
    display:block !important;
    width:auto !important;
    height:auto !important;
    background:none !important;
    color:inherit !important;
    font-size:22px !important;
    line-height:1 !important;
    transform:none !important;
  }

  /* Compact confirmation family, matching the avionics reboot dialog. */
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay
  ) > .confirm-dialog,
  html:not(.phone-landscape-layout) body #disconnectOverlay > .disconnect-dialog,
  html:not(.phone-landscape-layout) body :is(
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) > .reboot-dialog{
    position:relative !important;
    width:min(520px, calc(100vw - 48px)) !important;
    max-width:520px !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    max-height:calc(100dvh - 48px) !important;
    margin:auto !important;
    padding:24px !important;
    box-sizing:border-box !important;
    border:1px solid var(--pc-modal-border) !important;
    border-radius:8px !important;
    background:var(--pc-modal-surface) !important;
    color:var(--pc-modal-text) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    overflow:auto !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay
  ) > .confirm-dialog::before,
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay
  ) > .confirm-dialog::after,
  html:not(.phone-landscape-layout) body :is(
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) > .reboot-dialog::before,
  html:not(.phone-landscape-layout) body :is(
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) > .reboot-dialog::after{
    content:none !important;
    display:none !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay,
    #disconnectOverlay,
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) .confirm-icon{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #gpsHelpOverlay > .gps-help-dialog{
    width:min(620px, calc(100vw - 48px)) !important;
    max-width:620px !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay
  ) .confirm-title,
  html:not(.phone-landscape-layout) body :is(
    #disconnectOverlay,
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) .disconnect-title{
    margin:0 0 7px !important;
    color:var(--pc-modal-text) !important;
    font-size:18px !important;
    line-height:1.3 !important;
    font-weight:650 !important;
    letter-spacing:-.01em !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #forceOverlay
  ) :is(.confirm-text,.confirm-note),
  html:not(.phone-landscape-layout) body :is(
    #disconnectOverlay,
    #connectMethodOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) :is(.disconnect-text,.confirm-note){
    margin:0 0 10px !important;
    color:var(--pc-modal-muted) !important;
    font-size:13px !important;
    line-height:1.5 !important;
    font-weight:500 !important;
    letter-spacing:0 !important;
    text-align:left !important;
  }

  /* Confirmation actions use a calm neutral action and red only for danger. */
  html:not(.phone-landscape-layout) body :is(
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay
  ) .confirm-actions,
  html:not(.phone-landscape-layout) body :is(
    #disconnectOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) :is(.disconnect-actions,.ground-waiting-actions,.reboot-actions){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 116px !important;
    gap:8px !important;
    align-items:center !important;
    width:100% !important;
    margin:20px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #disconnectOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) :is(
    .loadcell-primary,
    .disconnect-ok,
    .reboot-confirm,
    .confirm-cancel
  ){
    width:100% !important;
    min-width:0 !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 16px !important;
    border-radius:6px !important;
    box-shadow:none !important;
    font-size:13px !important;
    line-height:1 !important;
    font-weight:650 !important;
    text-decoration:none !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #exportLeaveOverlay,
    #noMotorOverlay,
    #disconnectOverlay,
    #gpsHelpOverlay,
    #pyroConfirmOverlay
  ) :is(
    .confirm-actions,
    .disconnect-actions,
    .ground-waiting-actions,
    .reboot-actions
  ) > :only-child{
    grid-column:1 / -1 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #missionRequiredOverlay,
    #inspectionWarnOverlay,
    #noMotorOverlay,
    #disconnectOverlay,
    #gpsHelpOverlay
  ) :is(.loadcell-primary,.disconnect-ok,.reboot-confirm){
    border:1px solid #d0d2d6 !important;
    background:#e7e8ea !important;
    color:#17181a !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #exportLeaveOverlay,
    #pyroConfirmOverlay
  ) :is(.loadcell-primary,.disconnect-ok,.reboot-confirm){
    border:1px solid var(--pc-modal-danger-border) !important;
    background:var(--pc-modal-danger) !important;
    color:#fff !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #exportLeaveOverlay,
    #pyroConfirmOverlay
  ) .confirm-cancel{
    border:1px solid #373a40 !important;
    background:var(--pc-modal-raised) !important;
    color:#c5c8ce !important;
  }

  /* Direct close/cancel controls in the ignition and pyro confirmations. */
  html:not(.phone-landscape-layout) body :is(#confirmOverlay,#pyroConfirmOverlay) > :is(.confirm-dialog,.reboot-dialog) > .confirm-cancel{
    position:absolute !important;
    top:14px !important;
    right:14px !important;
    z-index:3 !important;
    display:grid !important;
    place-items:center !important;
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    background:transparent !important;
    color:transparent !important;
    font-size:0 !important;
    text-decoration:none !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body :is(#confirmOverlay,#pyroConfirmOverlay) > :is(.confirm-dialog,.reboot-dialog) > .confirm-cancel::after{
    content:"×" !important;
    color:#a9adb5 !important;
    font-size:22px !important;
    line-height:1 !important;
    font-weight:300 !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay > .confirm-dialog{
    width:min(560px, calc(100vw - 48px)) !important;
    max-width:560px !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay .ignition-warning-illustration{
    width:100% !important;
    max-width:none !important;
    height:230px !important;
    aspect-ratio:auto !important;
    margin:16px 0 12px !important;
    border-radius:6px !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay .ignition-warning-illustration img{
    height:100% !important;
    object-fit:cover !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay .confirm-actions{
    display:block !important;
    width:100% !important;
    margin:18px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay :is(.longpress-wrap,.longpress-btn){
    width:100% !important;
  }
  html:not(.phone-landscape-layout) body #confirmOverlay .longpress-btn{
    min-height:46px !important;
    border-radius:6px !important;
    box-shadow:none !important;
  }

  /* Connection choice keeps its two options but loses the oversized cards. */
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-actions{
    gap:8px !important;
    margin:18px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-btn{
    min-height:78px !important;
    padding:12px !important;
    border:1px solid #373a40 !important;
    border-radius:6px !important;
    background:var(--pc-modal-raised) !important;
    color:var(--pc-modal-text) !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-btn:hover{
    border-color:#555960 !important;
    background:#282a2f !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-btn svg{
    width:22px !important;
    height:22px !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-btn strong{
    font-size:13px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .connect-method-btn span{
    color:var(--pc-modal-muted) !important;
    font-size:11px !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .reboot-actions{
    display:block !important;
    margin:10px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #connectMethodOverlay .confirm-cancel{
    width:100% !important;
    min-height:42px !important;
    margin:0 !important;
    border:1px solid #373a40 !important;
    border-radius:6px !important;
    background:var(--pc-modal-raised) !important;
    color:#c5c8ce !important;
    font-size:13px !important;
    font-weight:650 !important;
    text-decoration:none !important;
  }

  /* Main settings stays spacious, but now belongs to the same modal family. */
  html:not(.phone-landscape-layout) body #settingsOverlay > .settings-dialog{
    width:min(980px, calc(100vw - 64px)) !important;
    max-width:980px !important;
    height:min(680px, calc(100dvh - 64px)) !important;
    max-height:calc(100dvh - 64px) !important;
    padding:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-header{
    flex:0 0 60px !important;
    justify-content:flex-start !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-body{
    margin:0 !important;
    padding:18px 20px 20px !important;
    gap:18px !important;
    background:var(--pc-modal-surface) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav{
    width:180px !important;
    padding:0 16px 0 0 !important;
    border-right:1px solid var(--pc-modal-divider) !important;
    gap:4px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn{
    min-height:38px !important;
    padding:0 10px !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#9da2ab !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn:hover{
    background:#1c1e21 !important;
    color:#e3e4e6 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn.active{
    border-color:#373a40 !important;
    background:#24262a !important;
    color:#f3f4f6 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-badge{
    color:#747982 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panels{
    padding:0 8px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-group{
    border-top-color:var(--pc-modal-divider) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay :is(.settings-label,.settings-group-title){
    color:#e3e4e6 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay :is(.settings-desc,.hint-mini){
    color:var(--pc-modal-muted) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay :is(
    .settings-select,
    .settings-number,
    .settings-inline-btn,
    .settings-btn
  ){
    border:1px solid #373a40 !important;
    border-radius:6px !important;
    background:#101113 !important;
    color:#e7e8ea !important;
    box-shadow:none !important;
  }

  /* Report and connection sheets are compact variations of the same shell. */
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay > .flash-link-report-dialog{
    width:min(620px, calc(100vw - 48px)) !important;
    max-width:620px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100dvh - 48px) !important;
    padding:0 !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .flash-link-report-body,
  html:not(.phone-landscape-layout) body :is(#wifiConnectOverlay,#serialConnectOverlay) .connection-sheet-body{
    padding:22px !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .confirm-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 116px !important;
    gap:8px !important;
    width:100% !important;
    margin:18px 0 0 !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay :is(
    .loadcell-primary,
    .confirm-cancel
  ){
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    border-radius:6px !important;
    box-shadow:none !important;
    font-size:13px !important;
    font-weight:650 !important;
    text-decoration:none !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .loadcell-primary{
    border:1px solid #d0d2d6 !important;
    background:#e7e8ea !important;
    color:#17181a !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .confirm-cancel{
    border:1px solid #373a40 !important;
    background:var(--pc-modal-raised) !important;
    color:#c5c8ce !important;
  }
  html:not(.phone-landscape-layout) body :is(#wifiConnectOverlay,#serialConnectOverlay) > .connection-sheet-dialog{
    width:min(520px, calc(100vw - 48px)) !important;
    max-width:520px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100dvh - 48px) !important;
    padding:0 !important;
  }
  html:not(.phone-landscape-layout) body :is(#wifiConnectOverlay,#serialConnectOverlay) :is(
    .connection-sheet-desc,
    .connection-sheet-note
  ){
    color:var(--pc-modal-muted) !important;
    text-align:left !important;
  }
  html:not(.phone-landscape-layout) body :is(#wifiConnectOverlay,#serialConnectOverlay) .connection-sheet-primary,
  html:not(.phone-landscape-layout) body #connectionGuideOverlay .connection-guide-action{
    width:100% !important;
    min-height:44px !important;
    border:1px solid #d0d2d6 !important;
    border-radius:6px !important;
    background:#e7e8ea !important;
    color:#17181a !important;
    box-shadow:none !important;
    font-size:13px !important;
    font-weight:650 !important;
  }

  /* Large information dialogs retain their content density with the new shell. */
  html:not(.phone-landscape-layout) body #connectionGuideOverlay > .connection-guide-dialog{
    width:min(680px, calc(100vw - 64px)) !important;
    max-width:680px !important;
    max-height:calc(100dvh - 64px) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #connectionGuideOverlay :is(
    .connection-guide-summary,
    .connection-guide-steps li,
    .connection-guide-note
  ){
    border-color:#34373c !important;
    border-radius:6px !important;
    background:#1b1d20 !important;
    color:#e6e7e9 !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #connectionGuideOverlay :is(
    .connection-guide-summary span,
    .connection-guide-steps li span,
    .connection-guide-note span
  ){
    color:var(--pc-modal-muted) !important;
  }
}

/*
 * Desktop modal button palette.
 * Solid colors only: neutral, primary, danger, and disabled.
 */
@media (min-width:901px){
  html:not(.phone-landscape-layout) body{
    --pc-btn-neutral:#24262a;
    --pc-btn-neutral-hover:#2d3035;
    --pc-btn-neutral-active:#1d1f22;
    --pc-btn-neutral-border:#3b3e44;
    --pc-btn-neutral-text:#d4d6da;
    --pc-btn-primary:#e4e5e7;
    --pc-btn-primary-hover:#f3f4f5;
    --pc-btn-primary-active:#cfd1d4;
    --pc-btn-primary-border:#b9bdc3;
    --pc-btn-primary-text:#17181a;
    --pc-btn-danger:#9f3037;
    --pc-btn-danger-hover:#b83a41;
    --pc-btn-danger-active:#84272d;
    --pc-btn-danger-border:#b84349;
    --pc-btn-disabled:#1c1e21;
    --pc-btn-disabled-border:#2b2e32;
    --pc-btn-disabled-text:#656a72;
  }

  /* Default every actionable modal control to the same solid neutral color. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) button:not(:is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .flash-link-topology-close,
    .launcher-close-btn,
    .mission-preset-btn,
    .mission-tool-btn,
    .flash-link-chart-tab,
    .data-list-item
  )){
    border-color:var(--pc-btn-neutral-border) !important;
    background:var(--pc-btn-neutral) !important;
    color:var(--pc-btn-neutral-text) !important;
    box-shadow:none !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) button:not(:is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .flash-link-topology-close,
    .launcher-close-btn,
    .mission-preset-btn,
    .mission-tool-btn,
    .flash-link-chart-tab,
    .data-list-item
  )):hover{
    border-color:#50545b !important;
    background:var(--pc-btn-neutral-hover) !important;
    color:#f1f2f3 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) button:not(:is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .flash-link-topology-close,
    .launcher-close-btn,
    .mission-preset-btn,
    .mission-tool-btn,
    .flash-link-chart-tab,
    .data-list-item
  )):active{
    border-color:#34373c !important;
    background:var(--pc-btn-neutral-active) !important;
    color:#e3e5e8 !important;
  }

  /* Primary: one pale, opaque action color throughout the modal system. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) :is(
    .loadcell-primary,
    .connection-sheet-primary,
    .connection-guide-action,
    .mobile-chart-apply,
    .data-storage-download,
    #dataDownloadConfirmOk,
    #flashLinkReportStart,
    #intelligentCalibrationRunBtn,
    #missionSaveBoardBtn,
    #inspectionRetry,
    #disconnectOk,
    #gpsHelpOkBtn
  ){
    border-color:var(--pc-btn-primary-border) !important;
    background:var(--pc-btn-primary) !important;
    color:var(--pc-btn-primary-text) !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) :is(
    .loadcell-primary,
    .connection-sheet-primary,
    .connection-guide-action,
    .mobile-chart-apply,
    .data-storage-download,
    #dataDownloadConfirmOk,
    #flashLinkReportStart,
    #intelligentCalibrationRunBtn,
    #missionSaveBoardBtn,
    #inspectionRetry,
    #disconnectOk,
    #gpsHelpOkBtn
  ):hover{
    border-color:#d3d5d9 !important;
    background:var(--pc-btn-primary-hover) !important;
    color:#111214 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) :is(
    .loadcell-primary,
    .connection-sheet-primary,
    .connection-guide-action,
    .mobile-chart-apply,
    .data-storage-download,
    #dataDownloadConfirmOk,
    #flashLinkReportStart,
    #intelligentCalibrationRunBtn,
    #missionSaveBoardBtn,
    #inspectionRetry,
    #disconnectOk,
    #gpsHelpOkBtn
  ):active{
    border-color:#aeb2b8 !important;
    background:var(--pc-btn-primary-active) !important;
    color:#17181a !important;
  }

  /* Danger is reserved for destructive or hardware-actuating commands. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .launcher-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .mobile-chart-picker-dialog
  ) :is(
    .settings-btn-danger,
    .pyro-control-run,
    .pyro-control-confirm-btn--danger,
    .force-danger-small,
    #loadcellResetBtn,
    #missionBlockClearBtn,
    #longPressBtn,
    #launcherAutoBtn,
    #launcherAutoConfirm,
    #rebootConfirmBtn,
    #pyroConfirmOkBtn,
    #pyroControlRunBtn,
    #pyroControlConfirmOk,
    #dataResetHoldBtn,
    #dataStorageResetBtn,
    #exportLeaveConfirm
  ){
    border-color:var(--pc-btn-danger-border) !important;
    background:var(--pc-btn-danger) !important;
    color:#fff !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .launcher-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .mobile-chart-picker-dialog
  ) :is(
    .settings-btn-danger,
    .pyro-control-run,
    .pyro-control-confirm-btn--danger,
    .force-danger-small,
    #loadcellResetBtn,
    #missionBlockClearBtn,
    #longPressBtn,
    #launcherAutoBtn,
    #launcherAutoConfirm,
    #rebootConfirmBtn,
    #pyroConfirmOkBtn,
    #pyroControlRunBtn,
    #pyroControlConfirmOk,
    #dataResetHoldBtn,
    #dataStorageResetBtn,
    #exportLeaveConfirm
  ):hover{
    border-color:#d45a60 !important;
    background:var(--pc-btn-danger-hover) !important;
    color:#fff !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .launcher-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .mobile-chart-picker-dialog
  ) :is(
    .settings-btn-danger,
    .pyro-control-run,
    .pyro-control-confirm-btn--danger,
    .force-danger-small,
    #loadcellResetBtn,
    #missionBlockClearBtn,
    #longPressBtn,
    #launcherAutoBtn,
    #launcherAutoConfirm,
    #rebootConfirmBtn,
    #pyroConfirmOkBtn,
    #pyroControlRunBtn,
    #pyroControlConfirmOk,
    #dataResetHoldBtn,
    #dataStorageResetBtn,
    #exportLeaveConfirm
  ):active{
    border-color:#9b343a !important;
    background:var(--pc-btn-danger-active) !important;
    color:#fff !important;
  }

  /* Selected controls are solid graphite, never translucent accent pills. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .mobile-chart-picker-dialog
  ) button:is(.is-active,[aria-selected="true"],[aria-pressed="true"]):not(:is(
    .loadcell-primary,
    .connection-sheet-primary,
    .settings-btn-danger,
    .pyro-control-confirm-btn--danger
  )){
    border-color:#5a5f67 !important;
    background:#32353a !important;
    color:#fff !important;
    box-shadow:none !important;
  }

  /* Close controls are also opaque, but visually quieter than actions. */
  html:not(.phone-landscape-layout) body :is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .flash-link-topology-close,
    .launcher-close-btn
  ){
    border-color:#35383d !important;
    background:#202226 !important;
    color:#b8bcc3 !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .flash-link-topology-close,
    .launcher-close-btn
  ):hover{
    border-color:#4b4f57 !important;
    background:#2a2d31 !important;
    color:#fff !important;
  }

  /* Text-close and selection controls follow the same opaque neutral surface. */
  html:not(.phone-landscape-layout) body :is(
    #confirmOverlay,
    #pyroConfirmOverlay
  ) > :is(.confirm-dialog,.reboot-dialog) > .confirm-cancel,
  html:not(.phone-landscape-layout) body #forceOverlay .force-cancel-link{
    border:1px solid var(--pc-btn-neutral-border) !important;
    background:var(--pc-btn-neutral) !important;
    color:var(--pc-btn-neutral-text) !important;
    text-decoration:none !important;
    box-shadow:none !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn{
    border-color:#303339 !important;
    background:#1c1e21 !important;
    color:#aeb2b9 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn:hover{
    border-color:var(--pc-btn-neutral-border) !important;
    background:var(--pc-btn-neutral) !important;
    color:#e7e8ea !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn.active{
    border-color:#5a5f67 !important;
    background:#32353a !important;
    color:#fff !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .mission-preset-btn,
    .mission-tool-btn,
    .data-list-item
  ){
    background:#1e2023 !important;
    box-shadow:none !important;
    opacity:1 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .mission-preset-btn,
    .mission-tool-btn,
    .data-list-item
  ):hover{
    background:#282b30 !important;
  }

  /* Disabled state keeps an opaque surface instead of fading the whole button. */
  html:not(.phone-landscape-layout) body :is(
    .settings-dialog,
    .mission-dialog,
    .loadcell-dialog,
    .inspection-dialog,
    .launcher-dialog,
    .connection-guide-dialog,
    .flash-link-topology-dialog,
    .mobile-chart-picker-dialog,
    .confirm-dialog,
    .reboot-dialog,
    .disconnect-dialog
  ) button:disabled{
    border-color:var(--pc-btn-disabled-border) !important;
    background:var(--pc-btn-disabled) !important;
    color:var(--pc-btn-disabled-text) !important;
    box-shadow:none !important;
    opacity:1 !important;
    cursor:not-allowed !important;
  }
}

/* Refined product information panel. */
.fw-info-group{
  width:100%;
  box-sizing:border-box;
}
.fw-product-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  width:100%;
  min-height:104px;
  padding:18px 20px;
  box-sizing:border-box;
  border:1px solid #303339;
  border-radius:8px;
  background:#111315;
}
.fw-product-card .fw-head{
  display:block;
  margin:0;
  padding:0;
}
.fw-product-card .fw-logo-block{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:11px;
}
.fw-product-card .fw-f-logo{
  width:34px;
  height:34px;
  opacity:.92;
  filter:none;
}
.fw-product-copy{
  min-width:0;
  padding-left:18px;
  border-left:1px solid #303339;
}
.fw-product-eyebrow{
  margin:0 0 7px;
  color:#777d86;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.16em;
}
.fw-product-copy h2{
  margin:0;
  color:#f0f1f3;
  font-size:18px;
  line-height:1.2;
  font-weight:630;
  letter-spacing:.01em;
}
.fw-product-copy p{
  margin:7px 0 0;
  color:#8f949d;
  font-size:11px;
  line-height:1.4;
}
.fw-release-state{
  align-self:start;
  min-height:26px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  border:1px solid #3b3e44;
  border-radius:5px;
  background:#202226;
  color:#b9bdc4;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.1em;
  white-space:nowrap;
}
.fw-build-grid{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:10px 28px;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
.fw-build-grid > div{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  padding:0;
  border:0;
}
.fw-build-grid dt{
  margin:0;
  color:#747a83;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.15em;
}
.fw-build-grid dd{
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#d9dce1;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:11px;
  line-height:1.35;
  font-weight:560;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fw-product-card > .fw-build-grid{
  grid-column:1 / -1;
  margin:0;
}
.fw-credits-grid{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:12px;
  width:100%;
  margin:12px 0 0;
}
.fw-credit-block{
  min-width:0;
  min-height:86px;
  padding:15px 17px;
  box-sizing:border-box;
  border:1px solid #303339;
  border-radius:8px;
  background:#17191c;
}
.fw-credit-block .fw-team-inline,
.fw-credit-block .fw-partner-inline{
  height:100%;
  margin:0;
  gap:12px;
}
.fw-credit-block .fw-team-inline-label{
  color:#747a83;
  font-size:9px;
  font-weight:700;
  letter-spacing:.15em;
}
.fw-credit-block .fw-team-inline-logos{
  min-height:34px;
  gap:14px;
}
.fw-credit-block .fw-team-inline img{
  width:auto;
  height:24px;
  max-width:112px;
  opacity:.78;
  filter:grayscale(1) brightness(1.45);
}
.fw-credit-block .fw-team-inline img.is-small{
  height:17px;
  filter:grayscale(1) brightness(1.65);
}
.fw-credit-block .fw-partner-logos{
  width:100%;
  min-height:34px;
  margin:0;
  padding:0;
  gap:14px;
  border:0;
  border-radius:0;
  background:transparent;
}
.fw-credit-block .fw-partner-logo{
  height:27px;
  opacity:.78;
  filter:grayscale(1) brightness(1.25);
}
.fw-credit-block .fw-partner-logo.is-jlcpcb{width:82px}
.fw-credit-block .fw-partner-logo.is-jlcpcb img{width:82px}
.fw-credit-block .fw-partner-logo.is-easyeda{width:98px}
.fw-credit-block .fw-partner-logo.is-easyeda img{width:98px}
.fw-credit-block .fw-partner-logo.is-innospace{width:150px}
.fw-credit-block .fw-partner-logo.is-innospace img{width:150px}
.fw-legal{
  width:100%;
  margin:12px 0 0;
  border:1px solid #303339;
  border-radius:8px;
  background:#17191c;
  color:#d3d5d9;
  overflow:hidden;
}
.fw-legal-heading{
  min-height:48px;
  padding:0 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-sizing:border-box;
}
.fw-legal-heading span{
  color:#cfd2d7;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
}
.fw-legal-heading strong{
  margin-left:auto;
  color:#747a83;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.13em;
}
.fw-legal-body{
  padding:14px 17px 16px;
  border-top:1px solid #303339;
  color:#858b94;
  font-size:10px;
  line-height:1.55;
}
.fw-legal-body p{
  margin:0 0 8px;
}
.fw-legal-body p:last-child{
  margin-bottom:0;
}

@media (min-width:901px){
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel[data-panel="fw"]{
    width:100%;
    max-width:820px;
    margin:0 auto;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel[data-panel="fw"] .fw-info-group{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
}

@media (max-width:900px){
  .fw-product-card{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    min-height:0;
    padding:16px;
  }
  .fw-product-card .fw-head{
    grid-column:1 / -1;
  }
  .fw-product-copy{
    padding-left:0;
    border-left:0;
  }
  .fw-product-copy h2{
    font-size:16px;
  }
  .fw-product-copy p{
    display:none;
  }
  .fw-build-grid{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:9px 18px;
  }
  .fw-build-grid > div{
    display:flex;
    align-items:baseline;
    gap:6px;
    padding:0;
    border:0;
  }
  .fw-build-grid dt{
    margin:0;
  }
  .fw-build-grid dd{
    text-align:left;
  }
  .fw-credits-grid{
    grid-template-columns:1fr;
  }
  .fw-credit-block{
    min-height:78px;
  }
  .fw-credit-block .fw-partner-logos{
    flex-wrap:wrap;
  }
  .fw-legal-heading strong{
    display:none;
  }
}

/* Desktop info details stay flat beneath the single product hero. */
@media (min-width:901px){
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-build-grid{
    display:flex !important;
    align-items:baseline !important;
    flex-wrap:wrap !important;
    gap:10px 30px !important;
    margin-top:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-product-card > .fw-build-grid{
    grid-column:2 / -1 !important;
    padding-left:18px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-build-grid > div{
    display:flex !important;
    align-items:baseline !important;
    gap:8px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-build-grid dt{
    margin:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-build-grid dd{
    font-size:10.5px !important;
    font-weight:540 !important;
  }

  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credits-grid{
    display:block !important;
    margin-top:18px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block{
    display:block !important;
    min-height:0 !important;
    padding:17px 0 !important;
    border:0 !important;
    border-bottom:1px solid #303339 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block :is(
    .fw-team-inline,
    .fw-partner-inline
  ){
    display:grid !important;
    grid-template-columns:150px minmax(0,1fr) !important;
    align-items:center !important;
    gap:18px !important;
    min-height:28px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-team-inline-label{
    margin:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block :is(
    .fw-team-inline-logos,
    .fw-partner-logos
  ){
    min-height:28px !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:20px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-team-inline img{
    height:19px !important;
    max-width:90px !important;
    opacity:.72 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-team-inline img.is-small{
    height:14px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo{
    height:22px !important;
    opacity:.7 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-jlcpcb{
    width:70px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-jlcpcb img{
    width:70px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-easyeda{
    width:82px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-easyeda img{
    width:82px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-innospace{
    width:122px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-credit-block .fw-partner-logo.is-innospace img{
    width:122px !important;
  }

  html:not(.phone-landscape-layout) body #settingsOverlay .fw-legal{
    margin-top:0 !important;
    border:0 !important;
    border-bottom:1px solid #303339 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-legal-heading{
    min-height:50px !important;
    padding:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .fw-legal-body{
    padding:14px 0 18px !important;
    border-top:1px solid #26292e !important;
    background:transparent !important;
  }
}

/* Keep the portaled WebGL preview out of the top layer during modal transitions. */
body > #gyro3dViewport:not(.is-expanded){
  visibility:hidden !important;
  pointer-events:none !important;
}
html.phone-landscape-layout.status-map-expanded body.dashboard-view-active > #gyro3dViewport:not(.is-expanded){
  visibility:visible !important;
  pointer-events:auto !important;
}

/* A.I LINK settings — status first, configuration second, diagnostics last. */
.flash-link-settings-group{
  padding-top:0;
}
.flash-link-overview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:92px;
  padding:14px 2px 18px;
  border-bottom:1px solid rgba(148,163,184,.2);
}
.flash-link-overview-copy{
  min-width:0;
}
.flash-link-overview .settings-group-title{
  margin:0 0 8px;
  color:#777d87;
  font-size:9px;
  font-weight:700;
  letter-spacing:.16em;
}
.flash-link-overview-title{
  color:#f0f1f3;
  font-size:25px;
  line-height:1;
  font-weight:620;
  letter-spacing:.035em;
}
.flash-link-overview .hint-mini{
  margin-top:9px;
  color:#858b95;
  font-size:10px;
}
.flash-link-overview-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  flex:0 0 auto;
}
.flash-link-overview .flash-link-status{
  min-width:0;
  justify-content:flex-end;
  color:#8b919b;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.flash-link-overview .flash-link-status.is-linked{
  color:#55d68b;
}
.flash-link-section{
  margin-top:20px;
}
.flash-link-section-title{
  margin-bottom:8px;
  color:#7e848e;
  font-size:10px;
  line-height:1;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.flash-link-config-list{
  border-top:1px solid rgba(148,163,184,.18);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.flash-link-config-list > .settings-row{
  min-height:58px;
  padding:10px 2px;
  align-items:center;
  border-bottom:1px solid rgba(148,163,184,.13);
}
.flash-link-config-list > .settings-row:last-child{
  border-bottom:0;
}
.flash-link-config-list .settings-label{
  font-size:12px;
  font-weight:580;
}
.flash-link-config-list .hint-mini{
  margin-top:3px;
  font-size:9px;
}
.flash-link-settings-group .settings-select{
  min-width:124px;
  min-height:34px;
  padding:0 30px 0 11px;
}
.flash-link-settings-group .pill-toggle{
  min-width:58px;
}
.flash-link-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding-bottom:10px;
}
.flash-link-section-heading .flash-link-section-title{margin-bottom:5px}
.flash-link-section-heading .hint-mini{margin:0}
.flash-link-section-heading .settings-btn{
  min-width:112px;
  min-height:34px;
  flex:0 0 auto;
}
.flash-link-ground-serial{
  padding:10px 2px 8px;
  border-top:1px solid rgba(148,163,184,.18);
  color:#747b86;
  font-size:9px;
  letter-spacing:.08em;
}
.flash-link-binding-slots{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid rgba(148,163,184,.16);
  border-bottom:1px solid rgba(148,163,184,.16);
}
.flash-link-binding-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:48px;
  padding:8px 12px;
}
.flash-link-binding-row:first-child{
  padding-left:2px;
  border-right:1px solid rgba(148,163,184,.15);
}
.flash-link-binding-stage{
  color:#d9dce1;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.flash-link-binding-sn{
  overflow:hidden;
  color:#a9afb8;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flash-link-binding-state{
  color:#777e88;
  font-size:8px;
  font-weight:700;
  letter-spacing:.08em;
}
.flash-link-binding-state.is-online{color:#4dd486}
.flash-link-binding-remove{
  padding:5px 7px;
  border:0;
  background:transparent;
  color:#8b919a;
  font-size:9px;
  font-weight:650;
}
.flash-link-binding-remove:hover{color:#ff818e}
.flash-link-device-list{margin-top:8px}
.flash-link-device-empty{
  min-height:48px;
  padding:16px 2px;
  color:#777e88;
  font-size:10px;
}
.flash-link-device-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:54px;
  padding:8px 2px;
  border-bottom:1px solid rgba(148,163,184,.13);
}
.flash-link-device-meta{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:3px 12px;
  min-width:0;
}
.flash-link-device-meta strong{
  color:#d9dce1;
  font-size:11px;
  letter-spacing:.06em;
}
.flash-link-device-meta span{
  overflow:hidden;
  color:#aeb3bc;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flash-link-device-meta small{
  grid-column:2;
  color:#737a84;
  font-size:8px;
  letter-spacing:.08em;
}
.flash-link-device-bind{
  min-width:64px;
  min-height:32px;
  padding:0 12px;
  border:1px solid #3b3f46;
  border-radius:6px;
  background:#22252a;
  color:#e3e5e8;
  font-size:10px;
  font-weight:700;
}
.flash-link-device-bind:hover{
  border-color:#5a606a;
  background:#2a2e34;
}
.flash-link-device-bind.is-bound{
  border-color:rgba(77,212,134,.34);
  background:rgba(77,212,134,.08);
  color:#65d996;
  pointer-events:none;
}
.flash-link-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:0;
  border-top:1px solid rgba(148,163,184,.18);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.flash-link-metric{
  min-width:0;
  padding:12px 14px 11px;
  border-left:1px solid rgba(148,163,184,.15);
}
.flash-link-metric:first-child{
  padding-left:2px;
  border-left:0;
}
.flash-link-metric-label{
  display:block;
  margin-bottom:5px;
  color:#747b86;
  font-size:8px;
  line-height:1;
  font-weight:750;
  letter-spacing:.12em;
  white-space:nowrap;
}
.flash-link-metric .settings-desc{
  display:block;
  color:#e2e4e7 !important;
  font-size:14px;
  line-height:1.1;
  font-weight:580;
  text-align:left;
}
.flash-link-settings-group .flash-link-chart-panel{
  margin:12px 0 0;
  padding:0 0 8px;
  border-top:0;
}
.flash-link-settings-group .flash-link-chart-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
  padding:4px;
  gap:6px;
  border:1px solid #303238;
  border-radius:8px;
  background:#101113;
}
.flash-link-settings-group .flash-link-chart-tab{
  min-width:0;
  min-height:38px;
  padding:0 10px;
  border:0;
  border-radius:6px;
  background:transparent !important;
  color:#868a92;
  box-shadow:none !important;
  font-size:12px;
  font-weight:650;
}
.flash-link-settings-group .flash-link-chart-tab:hover{
  background:#1b1d21 !important;
  color:#d8dadd;
}
.flash-link-settings-group .flash-link-chart-tab.is-active{
  background:#e8e9eb !important;
  color:#121315;
}
.flash-link-settings-group .flash-link-chart-stage{
  height:150px;
  margin-top:4px;
}
.flash-link-settings-group .flash-link-chart-value{
  top:9px;
  right:2px;
  color:#d8dadd;
  font-size:11px;
  font-weight:600;
}
.flash-link-detail-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid rgba(148,163,184,.16);
  border-bottom:1px solid rgba(148,163,184,.16);
}
.flash-link-detail-list .settings-row{
  min-width:0;
  min-height:40px;
  padding:8px 12px;
  align-items:center;
}
.flash-link-detail-list .settings-row:first-child{
  padding-left:2px;
  border-right:1px solid rgba(148,163,184,.15);
}
.flash-link-detail-list .settings-label{
  color:#818792 !important;
  font-size:9px;
  font-weight:650;
  letter-spacing:.04em;
}
.flash-link-detail-list .settings-desc{
  overflow:hidden;
  color:#c9ccd1 !important;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flash-link-report-row{
  min-height:64px;
  margin-top:16px;
  padding:12px 2px !important;
  align-items:center !important;
  border-top:1px solid rgba(148,163,184,.18);
}
.flash-link-report-row .settings-number-wrap{
  align-items:flex-end;
}
.flash-link-settings-group.is-ail-off .flash-link-section,
.flash-link-settings-group.is-ail-off .flash-link-report-row{
  opacity:.42;
}

@media (max-width:860px){
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-settings-group{
    padding:0 16px 8px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-overview{
    min-height:86px;
    padding:12px 0 16px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-overview-title{
    font-size:22px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-overview-actions{
    gap:10px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-section{
    margin-top:18px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-config-list > .settings-row{
    min-height:58px;
    padding:10px 0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-metric{
    padding:11px 9px 10px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-metric:first-child{
    padding-left:0;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-metric-label{
    font-size:7px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-metric .settings-desc{
    font-size:12px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-section-heading{
    align-items:flex-start;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-binding-slots{
    grid-template-columns:minmax(0,1fr);
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-binding-row{
    padding:9px 0;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-binding-row:first-child{
    border-right:0;
    border-bottom:1px solid rgba(148,163,184,.13);
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-chart-stage{
    height:165px;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-detail-list{
    grid-template-columns:minmax(0,1fr);
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-detail-list .settings-row{
    padding:9px 0 !important;
    border-right:0;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .flash-link-detail-list .settings-row + .settings-row{
    border-top:1px solid rgba(148,163,184,.13);
  }
}

html.phone-landscape-layout body #settingsOverlay .flash-link-settings-group{
  padding:0 4px 8px !important;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-overview{
  min-height:70px;
  padding:6px 0 10px;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-overview-title{
  font-size:18px;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-overview .hint-mini{
  margin-top:5px;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-section{
  margin-top:12px;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-config-list > .settings-row{
  min-height:48px;
  padding:7px 0 !important;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-metric{
  padding:8px 10px;
}
html.phone-landscape-layout body #settingsOverlay .flash-link-chart-stage{
  height:120px;
}

/* Time-driven mission command · secondary placement below normal controls. */
body.dashboard-view-active #controlsCard .force-mission-tile{
  width:100%;
  text-align:left;
  cursor:pointer;
  border-color:#334155 !important;
  background:#171c24 !important;
}
body.dashboard-view-active #controlsCard .force-mission-tile:hover:not(:disabled){
  border-color:#49627f !important;
  background:#1b2430 !important;
}
body.dashboard-view-active #controlsCard .force-mission-tile:disabled{
  opacity:.42 !important;
  cursor:not-allowed;
}
body.dashboard-view-active #controlsCard .force-mission-tile.is-running{
  border-color:#4d79aa !important;
  background:#1b2b3e !important;
}
body.dashboard-view-active #controlsCard .force-mission-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
body.dashboard-view-active #controlsCard .force-mission-tile > .pill{
  flex:0 0 auto;
  min-width:82px;
  margin-left:auto;
  border-color:#3b4a5d !important;
  background:#202a37 !important;
  color:#94b6db !important;
}

body.dashboard-view-active #controlsCard .mission-standby-tile{
  border-color:#365246 !important;
  background:#1a211e !important;
}
body.dashboard-view-active #controlsCard .mission-standby-tile:hover:not(:disabled){
  border-color:#4b7964 !important;
  background:#1d2923 !important;
}
body.dashboard-view-active #controlsCard .mission-standby-tile:disabled{
  opacity:.46 !important;
  cursor:not-allowed;
}
body.dashboard-view-active #controlsCard .mission-standby-tile.is-running{
  opacity:1 !important;
  border-color:#4f8b6d !important;
  background:#1b2c24 !important;
}
body.dashboard-view-active #controlsCard .mission-standby-tile > .pill{
  flex:0 0 auto;
  min-width:82px;
  margin-left:auto;
  border-color:#39594a !important;
  background:#202d27 !important;
  color:#9fd3b8 !important;
}

/* Liquid propulsion DAQ simulation -------------------------------------------------
 * This view deliberately borrows FLASH7 typography, spacing and panel contrast,
 * while retaining the dense instrument-console hierarchy of the source P&ID. */
.simulation-mode-bar{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:54px;
  padding:8px 10px 8px 16px;
  border:1px solid var(--ui-line);
  border-radius:10px;
  background:var(--ui-surface);
}
html.sim-active .simulation-mode-bar{display:flex}
.simulation-mode-bar-copy{display:flex;align-items:center;gap:11px}
.simulation-live-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12);animation:daq-live-pulse 1.8s ease-out infinite}
.simulation-mode-bar-copy div{display:flex;align-items:baseline;gap:9px}
.simulation-mode-bar-copy small{color:var(--ui-muted);font:750 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em}
.simulation-mode-bar-copy strong{color:var(--ui-text);font-size:12px;letter-spacing:.04em}
.simulation-mode-segment{display:grid;grid-template-columns:repeat(2,1fr);padding:3px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-bg)}
.simulation-mode-segment button{min-width:82px;padding:8px 15px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;cursor:pointer}
html.mode-flight .simulation-mode-segment [data-simulation-switch-mode="flight"],
html.mode-daq .simulation-mode-segment [data-simulation-switch-mode="daq"]{background:var(--ui-surface);color:var(--ui-accent);box-shadow:0 2px 8px rgba(15,23,42,.08)}

.daq-console{display:none;flex-direction:column;gap:10px;padding-bottom:30px;color:var(--ui-text)}
html.sim-active.mode-daq .daq-console{display:flex}
html.sim-active.mode-daq #dashboardView > .shell > .dashboard-section-tabs,
html.sim-active.mode-daq #dashboardView > .shell > .row-top,
html.sim-active.mode-daq #dashboardView > .shell > .row-bottom,
html.sim-active.mode-daq #dashboardCommunicationCard{display:none!important}
html.sim-active.mode-daq body.camera-view-active #dashboardView > .shell{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
html.sim-active.mode-daq body.daq-simulation-main #dashboardView .dashboard-drawer-head{
  display:none!important;
}
@media (min-width:901px){
  html.sim-active.mode-daq body.daq-simulation-main .page-wrap{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
}
.daq-overview-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.daq-overview-card{
  position:relative;min-width:0;display:grid;
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 2px;
  gap:4px 16px;align-items:center;align-content:center;padding:12px 18px;
  border:0;border-radius:0;background:transparent;
}
.daq-overview-card>div{display:contents}
.daq-overview-card small{
  grid-column:1;grid-row:1;min-width:0;color:var(--ui-text);
  font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.07em;
}
.daq-overview-card strong{
  grid-column:2;grid-row:1/3;justify-self:end;color:var(--ui-text);
  font:300 40px/1 "SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:-.035em;
}
.daq-overview-card>em{
  grid-column:1;grid-row:2;color:var(--ui-muted);font-size:11px;font-weight:450;line-height:1.2;font-style:normal;
}
.daq-overview-meter{
  grid-column:1/-1;grid-row:3;display:block;align-self:end;width:100%;height:2px;
  margin-top:5px;overflow:hidden;border-radius:2px;background:color-mix(in srgb,var(--ui-muted) 18%,transparent);
}
.daq-overview-meter b{
  display:block;height:100%;width:0;min-width:0;border-radius:inherit;
  background:color-mix(in srgb,var(--daq-accent,#aab5c2) 52%,#c0c9d1 48%);transition:width .3s ease;
}
.daq-overview-card.is-gox{--daq-accent:#ef5b64}.daq-overview-card.is-n2{--daq-accent:#31a36d}.daq-overview-card.is-ethanol{--daq-accent:#c7a36b}.daq-overview-card.is-water{--daq-accent:#3b82f6}.daq-overview-card.is-thrust{--daq-accent:#8b5cf6}
.daq-console-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.72fr);gap:12px;align-items:stretch}
.daq-panel{border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);overflow:hidden}
.daq-panel-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;border-bottom:1px solid var(--ui-line)}
.daq-panel-head>div:first-child{display:flex;flex-direction:column;gap:4px}
.daq-panel-head small{color:var(--ui-muted);font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em}
.daq-panel-head strong{font-size:12px;letter-spacing:.035em}
.daq-panel-head>em{color:var(--ui-muted);font:750 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;letter-spacing:.08em}
.daq-pid-panel{--daq-pid-head-height:58px;position:relative;overflow:clip}
.daq-pid-head-tools{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.daq-flow-legend{display:flex!important;flex-direction:row!important;gap:11px!important;flex-wrap:wrap;justify-content:flex-end}
.daq-flow-legend span{display:flex;align-items:center;gap:5px;color:var(--ui-muted);font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.daq-flow-legend span::before{content:"";width:16px;height:2px;background:currentColor}.daq-flow-legend .is-gox{color:#ef5b64}.daq-flow-legend .is-n2{color:#31a36d}.daq-flow-legend .is-ethanol{color:#c7a36b}.daq-flow-legend .is-water{color:#3b82f6}
.daq-pid-tool{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-bg);color:var(--ui-muted);font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.daq-pid-tool svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.daq-pid-tool:hover{border-color:#64748b;color:var(--ui-text)}
.daq-pid-tool.is-locked{border-color:rgba(245,158,11,.38);background:rgba(245,158,11,.08);color:#f59e0b}
.daq-pid-tool.is-unlocked{border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.09);color:#22c55e}
.daq-pid-tool.is-active{border-color:rgba(59,130,246,.45);background:rgba(59,130,246,.1);color:#60a5fa;box-shadow:0 0 0 2px rgba(59,130,246,.08)}
body #daqValveUnlockOverlay{
  z-index:92000;
  padding:16px!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(3,5,10,.7)!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none
}
body #daqValveUnlockOverlay>.daq-valve-unlock-dialog{
  width:min(360px,calc(100vw - 32px))!important;
  max-width:360px!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:calc(100dvh - 32px)!important;
  margin:auto!important;
  padding:18px!important;
  border:1px solid #36383d!important;
  border-radius:6px!important;
  background:#17181b!important;
  color:#e7e8eb!important;
  box-shadow:0 16px 42px rgba(0,0,0,.42)!important;
  overflow:hidden!important;
  text-align:left!important
}
body #daqValveUnlockOverlay>.daq-valve-unlock-dialog::before,
body #daqValveUnlockOverlay>.daq-valve-unlock-dialog::after{
  content:none!important;
  display:none!important
}
body #daqValveUnlockOverlay .confirm-title{
  margin:0 0 9px!important;
  color:#f0f1f2!important;
  font-size:14px!important;
  line-height:1.3!important;
  font-weight:650!important;
  text-align:left!important
}
body #daqValveUnlockOverlay .confirm-text{
  display:grid!important;
  gap:5px!important;
  margin:0 0 16px!important;
  color:#aeb2b9!important;
  font-size:11px!important;
  line-height:1.5!important;
  text-align:left!important
}
body #daqValveUnlockOverlay .confirm-text span{color:#858a92}
body #daqValveUnlockOverlay .daq-valve-unlock-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important
}
body #daqValveUnlockOverlay .daq-valve-unlock-actions>button{
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:4px!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:650!important;
  text-decoration:none!important
}
body #daqValveUnlockOverlay .daq-valve-unlock-actions .confirm-cancel{
  border:1px solid #383b40!important;
  background:#1d1f22!important;
  color:#aeb2b8!important
}
body #daqValveUnlockOverlay .daq-valve-unlock-actions .confirm-cancel:hover{
  background:#25272b!important;
  color:#f0f1f2!important
}
body #daqValveUnlockOverlay .daq-valve-unlock-actions .daq-valve-unlock-confirm{
  border:1px solid #76501c!important;
  background:#282116!important;
  color:#dca24d!important;
  cursor:pointer!important
}
body #daqValveUnlockOverlay .daq-valve-unlock-actions .daq-valve-unlock-confirm:hover{
  border-color:#946724!important;
  background:#302719!important;
  color:#efb65e!important
}
.daq-pid-stage{min-height:480px;display:grid;place-items:center;padding:12px;background:color-mix(in srgb,var(--ui-surface) 97%,var(--ui-bg) 3%)}
.daq-pid-svg{display:block;width:100%;height:auto;max-height:520px}
.daq-line{fill:none;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round;transition:opacity .2s ease,filter .2s ease}.daq-line.gox{stroke:#d95c67}.daq-line.n2{stroke:#378d6b}.daq-line.ethanol{stroke:#c7a36b}.daq-line.water{stroke:#4779c6}.daq-line.is-vent{stroke-dasharray:5 6}.daq-line:not(.is-flowing){opacity:.68}.daq-line.is-flowing{filter:drop-shadow(0 0 2px currentColor);stroke-dasharray:9 7;animation:daq-flow var(--daq-flow-duration,1s) linear infinite}
.daq-equipment rect,.daq-equipment circle,.daq-equipment path{fill:color-mix(in srgb,var(--ui-surface) 91%,var(--ui-bg) 9%);stroke:#667085;stroke-width:1.35}.daq-equipment text{fill:var(--ui-text);font:600 11px/1 "SF Pro Text","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;text-anchor:middle}.daq-equipment.daq-regulator text{font-size:10px}.daq-equipment.daq-tank path{stroke-width:1;opacity:.72}.daq-equipment.daq-tank.is-water path{stroke:#4779c6}.daq-equipment.daq-tank.is-ethanol path{stroke:#c7a36b}.daq-equipment.is-gox rect,.daq-equipment.is-gox circle,.daq-equipment.is-gox path{stroke:#d95c67}.daq-equipment.daq-engine .daq-engine-outline{fill:color-mix(in srgb,var(--ui-surface) 95%,var(--ui-bg) 5%);stroke:#596273;stroke-width:1.2;stroke-linejoin:round}.daq-equipment.daq-engine text{fill:var(--ui-muted);font-size:7.5px;font-weight:650;letter-spacing:.08em}.daq-equipment.daq-engine .daq-engine-label{text-anchor:middle}
.daq-svg-valve{cursor:pointer;outline:none;transition:opacity .16s ease,filter .16s ease}.daq-svg-valve path{fill:color-mix(in srgb,var(--ui-surface) 92%,var(--ui-bg) 8%);stroke:#667085;stroke-width:1.35;transform:scale(.86);transform-box:fill-box;transform-origin:center;transition:fill .16s ease,stroke .16s ease}.daq-svg-valve text{fill:var(--ui-muted);font:650 9.5px ui-monospace,SFMono-Regular,Menlo,monospace;text-anchor:middle;pointer-events:none}.daq-svg-valve:hover,.daq-svg-valve:focus-visible{filter:drop-shadow(0 0 4px rgba(96,165,250,.45))}.daq-svg-valve:hover path,.daq-svg-valve:focus-visible path{stroke:#60a5fa}.daq-svg-valve.is-open path{fill:rgba(34,197,94,.14);stroke:#22a35a}.daq-svg-valve.is-open text{fill:#fff}.daq-pid-panel.is-valve-locked .daq-svg-valve{cursor:not-allowed;filter:none}.daq-pid-panel.is-valve-locked .daq-svg-valve:hover path,.daq-pid-panel.is-valve-locked .daq-svg-valve:focus-visible path{stroke:#c9973e}
.daq-valve-hit-target{fill:transparent;stroke:none;pointer-events:all;touch-action:manipulation}
.daq-svg-valve:focus-visible .daq-valve-hit-target{stroke:#8caed3;stroke-width:1;stroke-dasharray:3 3}
.daq-junction{fill:#667085;stroke:var(--ui-surface);stroke-width:1.5}
.daq-instrument-tap{fill:none;stroke:#717b8d;stroke-width:1.1;stroke-dasharray:3 3}.daq-instrument-tap.ethanol{stroke:#c7a36b}.daq-instrument-tap.gox{stroke:#d95c67}
.daq-pt rect{fill:var(--ui-bg);stroke:rgba(139,92,246,.5);stroke-width:1}.daq-pt text{fill:var(--ui-muted);font:650 9px ui-monospace,SFMono-Regular,Menlo,monospace;text-anchor:middle}.daq-pt text:last-child{fill:var(--ui-text);font-weight:600}.daq-vent-label,.daq-line-label{fill:color-mix(in srgb,var(--ui-muted) 82%,transparent);font:600 8.5px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.35px}.daq-line-label{opacity:.9}
.daq-side-stack{display:grid;grid-template-rows:auto auto;gap:10px;align-content:start;min-width:0}
.daq-sensor-panel{width:100%;min-width:0;background:var(--ui-surface)}
.daq-valve-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;overflow:auto}.daq-valve-grid button{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 8px;align-items:center;min-height:54px;padding:9px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-bg);color:var(--ui-text);text-align:left;cursor:pointer}.daq-valve-grid button:hover{border-color:#94a3b8}.daq-valve-grid button:disabled{cursor:not-allowed;opacity:.44}.daq-valve-grid button:disabled:hover{border-color:var(--ui-line)}.daq-valve-grid button>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.4);border-radius:7px;color:var(--ui-muted);font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.daq-valve-grid button strong{overflow:hidden;font-size:9px;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.02em}.daq-valve-grid button em{color:var(--ui-muted);font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal}.daq-valve-grid button.is-open{border-color:rgba(22,163,74,.4);background:rgba(34,197,94,.07)}.daq-valve-grid button.is-open>span{border-color:rgba(22,163,74,.35);background:#16a34a;color:#fff}.daq-valve-grid button.is-open em{color:#16a34a}
.daq-valve-command-note{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:9px 12px 0;color:var(--ui-text);font:650 9px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}
.daq-valve-command-note span{color:var(--ui-muted);font-weight:450}
.daq-valve-grid{flex:1 1 auto;min-height:0;align-content:start}
.daq-valve-control{min-width:0;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-bg);overflow:hidden}
.daq-valve-control>button{width:100%;border:0;border-radius:0;background:transparent}
.daq-valve-opening{display:grid;grid-template-columns:auto minmax(0,1fr) 34px;align-items:center;gap:7px;padding:3px 10px 10px;color:var(--ui-muted);font:550 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}
.daq-valve-opening input{width:100%;min-width:0;min-height:24px;margin:0;accent-color:#83ac9d;cursor:pointer}
.daq-valve-opening input:disabled{cursor:not-allowed;opacity:.4}
.daq-valve-opening output{text-align:right;font-variant-numeric:tabular-nums}
.daq-pid-svg .daq-line.is-purge-overlay:not(.is-flowing){opacity:0}
.daq-svg-valve .daq-svg-opening{font-size:8px;font-weight:550;fill:var(--ui-muted)}
.daq-check-valve path{fill:var(--ui-surface);stroke:#378d6b;stroke-width:1.3;stroke-linejoin:round}
.daq-outlet path{fill:none;stroke:#4779c6;stroke-width:1.5;stroke-linecap:round;opacity:.35}
.daq-outlet.is-flowing path{opacity:1}
.daq-temperature{--daq-accent:#c19470}.daq-temperature rect{stroke:#9b795f}
.daq-valve-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding:0 12px 12px}.daq-valve-actions button,.daq-sequence-actions button{min-height:36px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-surface);color:var(--ui-text);font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;cursor:pointer}.daq-valve-actions button:hover,.daq-sequence-actions button:hover{border-color:#94a3b8;background:var(--ui-bg)}.daq-valve-actions button:disabled{cursor:not-allowed;opacity:.42}#daqPurgeBtn{border-color:rgba(49,163,109,.35);color:#168652}
.daq-sequence-actions{display:grid;grid-template-columns:1fr 1.35fr .8fr;gap:6px;padding:0 10px 10px}#daqRunBtn{border-color:rgba(37,99,235,.35);background:#2563eb;color:#fff}#daqRunBtn:disabled{opacity:.45;cursor:not-allowed}#daqArmBtn.is-armed{border-color:rgba(22,163,74,.46);background:rgba(34,197,94,.10);color:#22c55e}#daqAbortBtn.is-abort{border-color:rgba(239,68,68,.34);color:#dc2626}.daq-panel-head>button{border:0;background:transparent;color:var(--ui-muted);font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}
@keyframes daq-live-pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
@keyframes daq-flow{to{stroke-dashoffset:-34}}

html[data-theme="dark"] .daq-line:not(.is-flowing){opacity:.54}

@media(max-width:1100px){
  .daq-console-layout{grid-template-columns:1fr}
  .daq-side-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}
}
@media(max-width:700px){
  .daq-overview-grid{grid-template-columns:minmax(0,1fr)}
  .daq-panel-head{align-items:flex-start}.daq-pid-head-tools{gap:7px}.daq-flow-legend{display:none!important}.daq-pid-stage{min-height:300px;padding:4px;overflow:auto}.daq-pid-svg{min-width:720px;max-height:none}.daq-side-stack{grid-template-columns:1fr}.daq-sequence-track{overflow-x:auto;justify-content:flex-start}.daq-sequence-track>span{flex:0 0 48px}.daq-sequence-track>i{min-width:18px}.daq-sequence-actions{grid-template-columns:1fr}
}
@media(max-width:480px){.daq-pid-tool{width:34px;padding:0}.daq-pid-tool span{display:none}.daq-valve-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.simulation-live-dot,.daq-line.is-flowing{animation:none}}

/* DAQ visual hierarchy. Kept after the base DAQ responsive rules. */
.daq-console{--daq-panel-inset:16px}
.daq-console .daq-panel{border-radius:10px}
.daq-console .daq-panel-head{gap:12px;padding:12px var(--daq-panel-inset)}
.daq-console .daq-panel-head small{font-size:9px;line-height:1.3;letter-spacing:.1em}
.daq-console .daq-panel-head strong{font-size:14px;line-height:1.25;letter-spacing:.015em}
.daq-console .daq-panel-head>em{font-size:10px;letter-spacing:.04em}
.daq-console .daq-pid-head-tools{gap:12px}
.daq-console .daq-pid-tool{min-height:34px;padding:0 12px;font-size:10px;letter-spacing:.025em}
.daq-console .daq-flow-legend{gap:12px!important}
.daq-console .daq-flow-legend span{gap:6px;font-size:10px;font-weight:600}
.daq-console .daq-flow-legend span::before{width:14px}
.daq-console .daq-console-layout,.daq-console .daq-pid-panel,.daq-console .daq-pid-stage{min-width:0}
.daq-console .daq-pid-stage{padding:14px}
.daq-console .daq-line{stroke-width:2.3}
.daq-console .daq-pipe-crossing{fill:none;stroke:color-mix(in srgb,var(--ui-surface) 97%,var(--ui-bg) 3%);stroke-width:7;stroke-linecap:round}
.daq-console .daq-line:not(.is-flowing){opacity:.78}
.daq-console .daq-line.gox{color:#d95c67}
.daq-console .daq-line.n2{color:#378d6b}
.daq-console .daq-line.ethanol{color:#c7a36b}
.daq-console .daq-line.water{color:#4779c6}
.daq-console .daq-line.is-flowing{stroke-width:2.8;filter:drop-shadow(0 0 1.5px currentColor)}
.daq-console .daq-pid-svg .daq-line.is-purge-overlay:not(.is-flowing){opacity:0}
.daq-console .daq-equipment text{font-size:14.5px;font-weight:650}
.daq-console .daq-equipment.daq-regulator text{font-size:12px}
.daq-console .daq-equipment.daq-engine text{font-size:10px;letter-spacing:.06em}
.daq-console .daq-svg-valve text{fill:var(--ui-text);font-size:11px;font-weight:700}
.daq-console .daq-svg-valve .daq-svg-valve-id{font-size:14px;paint-order:stroke;stroke:var(--ui-surface);stroke-width:4px;stroke-linejoin:round}
.daq-console .daq-svg-valve:not(.is-open) .daq-svg-opening{display:none}
.daq-console .daq-pid-divider{fill:none;stroke:var(--ui-line);stroke-width:1;opacity:.5}
.daq-console .daq-pid-column-label{fill:var(--ui-muted);font:550 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1px}
.daq-console .daq-pid-lane-label{fill:var(--ui-text);font:650 14px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.8px}
.daq-console .daq-pid-lane-label.is-water{fill:#8caed3}
.daq-console .daq-pid-lane-label.is-ethanol{fill:#d5ba91}
.daq-console .daq-pid-lane-label.is-gox{fill:#c69b9e}
.daq-console .daq-svg-valve .daq-svg-opening{fill:var(--ui-muted);font-size:10px;font-weight:550}
.daq-console .daq-svg-valve.is-open .daq-svg-opening{fill:#95c5ad}
.daq-console .daq-pt rect{stroke:#646c80;stroke-width:1.1}
.daq-console .daq-pt text{font-size:11px;font-weight:550}
.daq-console .daq-pt text:last-child{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
.daq-console .daq-temperature rect{stroke:#9b795f}
.daq-console .daq-vent-label,.daq-console .daq-line-label{
  fill:color-mix(in srgb,var(--ui-text) 76%,var(--ui-muted) 24%);
  font-size:12px;font-weight:550;letter-spacing:.15px;
  paint-order:stroke;stroke:var(--ui-surface);stroke-width:3px;stroke-linejoin:round;
}

/* Readout cards retain the same channels, units and simulation gauges. */
.daq-console .daq-sensor-panel{display:grid;grid-template-rows:64px minmax(0,1fr);min-height:0}
.daq-console .daq-sensor-panel>.daq-panel-head{min-height:64px;padding:12px var(--daq-panel-inset)}
.daq-console .daq-sensor-panel>.daq-panel-head strong{font-size:17px;letter-spacing:.12em}
.daq-console .daq-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(96px,1fr));gap:10px;padding:var(--daq-panel-inset);min-height:0}
.daq-console .daq-overview-card{
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr 2px;
  gap:5px 5px;padding:12px;min-height:0;border:1px solid var(--ui-line);border-radius:9px;
  background:color-mix(in srgb,var(--ui-bg) 60%,var(--ui-surface) 40%);
}
.daq-console .daq-overview-card small{
  grid-column:1/-1;grid-row:1;color:var(--ui-muted);
  font:550 10px/1.35 "SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.025em;
}
.daq-console .daq-overview-card strong{
  grid-column:1;grid-row:2;align-self:end;justify-self:end;min-width:0;
  font-size:28px;font-weight:450;letter-spacing:-.035em;
}
.daq-console .daq-overview-card.is-primary strong{font-size:36px;font-weight:350}
.daq-console .daq-overview-card>em{grid-column:2;grid-row:2;align-self:end;padding-bottom:2px;font-size:10px;font-weight:450}
.daq-console .daq-overview-meter{margin-top:4px}

/* A compact readout and inline stages form one continuous instrument row. */
.daq-sequence-row{display:grid;grid-template-columns:clamp(185px,17vw,230px) minmax(0,1fr);gap:24px;min-width:0;align-items:stretch}
.daq-console .daq-sequence-time-panel{display:grid;grid-template-rows:16px 30px;align-content:center;gap:9px;min-width:0;padding:4px;background:transparent}
.daq-sequence-time-panel h2{margin:0;color:var(--ui-muted);font-size:10px;font-weight:550;line-height:16px;letter-spacing:.12em}
.daq-console-elapsed{display:flex;align-items:baseline;gap:7px;color:var(--ui-text);white-space:nowrap}
.daq-console-elapsed .daq-time-prefix{color:var(--ui-muted);font:450 17px/1 "SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.015em}
.daq-console-elapsed .daq-timer-digits{font:350 30px/1 "SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.daq-console .daq-sequence-panel{display:grid;grid-template-rows:16px 30px;align-content:center;gap:9px;padding:4px 4px 4px 24px;min-width:0;border-left:1px solid var(--ui-line);background:transparent}
.daq-sequence-panel>header{display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0}
.daq-sequence-panel h2{margin:0;color:var(--ui-muted);font-size:10px;font-weight:550;line-height:16px;letter-spacing:.12em}
.daq-sequence-panel>header>div{display:flex;align-items:center;gap:10px;font-size:10px;line-height:16px}
.daq-sequence-panel>header strong{font-weight:600;letter-spacing:.025em}
.daq-sequence-panel>header span{color:var(--ui-muted);font-variant-numeric:tabular-nums}
.daq-console .daq-sequence-track{display:flex;align-items:center;gap:0;min-width:0;margin:0;padding:0;overflow:visible}
.daq-sequence-track::before{content:none}
.daq-console .daq-sequence-track>i{display:block;flex:1 1 16px;min-width:12px;height:1px;margin:0 clamp(10px,1.8vw,28px);background:var(--ui-line)}
.daq-console .daq-sequence-track>span{display:flex;position:relative;align-items:center;flex-direction:row;flex:0 0 auto;gap:8px;min-width:0;color:var(--ui-muted)}
.daq-console .daq-sequence-track>span b{display:block;box-sizing:border-box;flex:0 0 auto;width:7px;height:7px;margin:0;border:1px solid #77818a;border-radius:50%;background:var(--ui-bg)}
.daq-console .daq-sequence-track>span em{font:550 11px/1.2 "SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-style:normal;white-space:nowrap}
.daq-console .daq-sequence-track>span.is-complete{color:color-mix(in srgb,var(--ui-text) 65%,var(--ui-muted) 35%)}
.daq-console .daq-sequence-track>span.is-complete b{background:#929da5;border-color:#929da5}
.daq-console .daq-sequence-track>span.is-active{color:var(--ui-text)}
.daq-console .daq-sequence-track>span.is-active b{border-color:var(--ui-text);background:var(--ui-text);box-shadow:0 0 0 3px var(--ui-bg),0 0 0 4px var(--ui-text)}
.daq-console .daq-sequence-track>span.is-active em{font-weight:650}
.daq-console .daq-side-stack{grid-template-rows:minmax(0,1fr);align-content:stretch;gap:12px}

@media(min-width:1101px) and (min-height:780px){
  html.sim-active.mode-daq body.daq-simulation-main .page-wrap{overflow:hidden!important}
  html.sim-active.mode-daq .daq-console{display:grid;height:calc(100dvh - 70px);min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:74px minmax(0,1fr);gap:14px;padding-bottom:0;overflow:hidden}
  .daq-console .daq-console-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,28vw,420px);min-height:0;gap:14px}
  .daq-console .daq-pid-panel{--daq-pid-head-height:56px;display:grid;grid-template-rows:56px minmax(0,1fr);min-height:0}
  .daq-console .daq-pid-stage{height:auto;min-height:0;padding:12px}
  .daq-console .daq-pid-svg{height:100%;max-height:100%}
  .daq-console .daq-side-stack{grid-template-rows:minmax(0,1fr);height:100%;min-height:0;align-content:stretch}
  .daq-console .daq-sensor-panel{height:100%;grid-template-rows:56px minmax(0,1fr)}
  .daq-console .daq-sensor-panel>.daq-panel-head{min-height:56px}
  .daq-console .daq-overview-grid{grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}
  .daq-console .daq-overview-card{padding:10px}
}
@media(min-width:1101px) and (min-height:780px) and (max-height:860px){
  html.sim-active.mode-daq .daq-console{grid-template-rows:70px minmax(0,1fr);gap:12px}
  .daq-console .daq-overview-grid{padding:10px;gap:6px}
  .daq-console .daq-overview-card{padding:7px;gap:3px 4px}
  .daq-console .daq-overview-card strong{font-size:24px}
  .daq-console .daq-overview-card.is-primary strong{font-size:28px}
}
@media(max-width:1100px){
  .daq-console .daq-side-stack{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}
  .daq-console .daq-overview-grid{grid-template-rows:repeat(5,minmax(100px,1fr))}
}
@media(max-width:700px){
  .daq-console{--daq-panel-inset:14px;gap:14px}
  .daq-sequence-row{grid-template-columns:minmax(0,1fr);gap:10px}
  .daq-console .daq-sequence-time-panel{display:flex;align-items:center;justify-content:space-between;padding:8px 2px}
  .daq-console-elapsed .daq-timer-digits{font-size:26px}
  .daq-console .daq-sequence-panel{padding:6px 2px;border-left:0;gap:7px}
  .daq-console .daq-sequence-track>span{gap:5px}
  .daq-console .daq-sequence-track>i{min-width:4px;margin:0 5px}
  .daq-console .daq-sequence-track>span em{font-size:8px}
  .daq-console .daq-sequence-panel h2,.daq-console .daq-sequence-panel>header>div{font-size:10px}
  .daq-console .daq-pid-panel{--daq-pid-head-height:64px}
  .daq-console .daq-pid-panel>.daq-panel-head{min-height:64px;align-items:center;flex-wrap:nowrap}
  .daq-console .daq-pid-head-tools{gap:6px}
  .daq-console .daq-pid-stage{display:block;place-items:start;text-align:left;min-height:0;overflow:auto;padding:12px;overscroll-behavior-x:contain}
  .daq-console .daq-pid-svg{min-width:960px;height:auto;max-height:none}
}

.daq-console .daq-overview-card.daq-temperature{grid-column:1/-1}


.mission-force-dialog{
  width:min(92vw,640px) !important;
}
.mission-force-timeline{
  margin:18px 0 4px;
  border-top:1px solid rgba(148,163,184,.2);
  border-bottom:1px solid rgba(148,163,184,.2);
}
.mission-force-timeline > div{
  min-height:52px;
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  align-items:center;
  gap:12px;
  border-top:1px solid rgba(148,163,184,.12);
}
.mission-force-timeline > div:first-child{
  border-top:0;
}
.mission-force-timeline span{
  color:#8ba8c9;
  font:650 11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.08em;
}
.mission-force-timeline strong{
  color:#e5e7eb;
  font-size:13px;
  font-weight:600;
}
.mission-force-actions{
  display:grid !important;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  width:100%;
}
.mission-force-actions > button{
  width:100% !important;
  min-width:0 !important;
}
.mission-force-confirm{
  background:#304968 !important;
  border-color:#496b93 !important;
  color:#f8fafc !important;
}

html.phone-landscape-layout .mission-force-dialog{
  width:min(86vw,560px) !important;
}
html.phone-landscape-layout .mission-force-timeline{
  margin:10px 0 2px;
}
html.phone-landscape-layout .mission-force-timeline > div{
  min-height:34px;
  grid-template-columns:66px minmax(0,1fr);
}
html.phone-landscape-layout .mission-force-timeline strong{
  font-size:11px;
}

body #missionArmRiskOverlay .mission-arm-risk-level{
  color:#ff727c !important;
}
body #missionArmRiskOverlay .mission-arm-risk-stage{
  border-color:#4b3034 !important;
  background:#211719 !important;
  color:#ffabb2 !important;
  font-weight:650 !important;
}
body #missionArmRiskOverlay .mission-arm-risk-note{
  margin-top:10px !important;
  color:#858a94 !important;
  font-size:12px !important;
}

/* Built-in mission review. This is intentionally independent from the
   phone bottom-sheet rules so desktop and mobile can evolve separately. */
body #missionStandbyReviewOverlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483644 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  background:rgba(3,5,8,.74) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  backdrop-filter:blur(8px) !important;
}
body #missionStandbyReviewOverlay.hidden{
  display:none !important;
}
body #missionStandbyReviewOverlay > .mission-standby-review-dialog{
  width:min(650px,calc(100vw - 48px)) !important;
  max-width:650px !important;
  max-height:calc(100dvh - 48px) !important;
  margin:auto !important;
  padding:26px !important;
  box-sizing:border-box !important;
  border:1px solid #383b40 !important;
  border-radius:8px !important;
  background:#151618 !important;
  color:#f2f3f5 !important;
  box-shadow:0 24px 72px rgba(0,0,0,.52) !important;
  overflow:auto !important;
  text-align:left !important;
}
body #missionStandbyReviewOverlay > .mission-standby-review-dialog::before,
body #missionStandbyReviewOverlay > .mission-standby-review-dialog::after{
  content:none !important;
  display:none !important;
}
body #missionStandbyReviewOverlay .confirm-icon{
  display:none !important;
}
body #missionStandbyReviewOverlay .confirm-title{
  margin:0 !important;
  color:#f5f5f6 !important;
  font-size:21px !important;
  line-height:1.35 !important;
  font-weight:650 !important;
  text-align:left !important;
}
body #missionStandbyReviewOverlay .confirm-text{
  margin:8px 0 20px !important;
  color:#9ca0a8 !important;
  font-size:13px !important;
  line-height:1.55 !important;
  text-align:left !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  border-top:1px solid #303238 !important;
  border-bottom:1px solid #303238 !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid > div{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  min-height:52px !important;
  padding:0 14px !important;
  border-bottom:1px solid #292b30 !important;
  box-sizing:border-box !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid > div:nth-child(odd){
  border-right:1px solid #303238 !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid > div:nth-last-child(-n+2){
  border-bottom:0 !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid span{
  color:#828791 !important;
  font-size:11px !important;
  font-weight:650 !important;
  letter-spacing:.05em !important;
}
body #missionStandbyReviewOverlay .mission-standby-review-grid strong{
  color:#e7e8eb !important;
  font-size:12px !important;
  font-weight:650 !important;
  text-align:right !important;
}
body #missionStandbyReviewOverlay .confirm-note{
  margin:16px 0 20px !important;
  color:#8d929b !important;
  font-size:12px !important;
  line-height:1.55 !important;
  text-align:left !important;
}
body #missionStandbyReviewOverlay .confirm-actions{
  display:grid !important;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr) !important;
  gap:10px !important;
  width:100% !important;
  margin:0 !important;
}
body #missionStandbyReviewOverlay .confirm-actions > button{
  width:100% !important;
  min-width:0 !important;
  min-height:46px !important;
  margin:0 !important;
  border-radius:6px !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:700 !important;
  text-decoration:none !important;
}
body #missionStandbyReviewOverlay .confirm-cancel{
  border:1px solid #383b40 !important;
  background:#202226 !important;
  color:#c9ccd2 !important;
}
body #missionStandbyReviewOverlay .loadcell-primary{
  border:1px solid #dfe1e4 !important;
  background:#e7e8ea !important;
  color:#17181a !important;
}
@media (max-width:600px){
  body #missionStandbyReviewOverlay{
    padding:14px !important;
  }
  body #missionStandbyReviewOverlay > .mission-standby-review-dialog{
    width:100% !important;
    max-height:calc(100dvh - 28px) !important;
    padding:21px 18px 18px !important;
  }
  body #missionStandbyReviewOverlay .mission-standby-review-grid{
    grid-template-columns:1fr !important;
  }
  body #missionStandbyReviewOverlay .mission-standby-review-grid > div,
  body #missionStandbyReviewOverlay .mission-standby-review-grid > div:nth-child(odd){
    min-height:45px !important;
    border-right:0 !important;
    border-bottom:1px solid #292b30 !important;
  }
  body #missionStandbyReviewOverlay .mission-standby-review-grid > div:last-child{
    border-bottom:0 !important;
  }
}

/* Keep the phone report as a bottom sheet; center only the desktop dialog. */
@media (min-width:901px){
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay{
    align-items:center !important;
    justify-content:center !important;
    padding:24px !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay > .flash-link-report-dialog{
    margin:auto !important;
    border:1px solid var(--pc-modal-border) !important;
    border-radius:8px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .flash-link-report-body{
    max-height:calc(100dvh - 110px) !important;
    overflow-y:auto !important;
  }
  html:not(.phone-landscape-layout) body #flashLinkReportOverlay .confirm-actions{
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    margin:18px auto 0 !important;
  }
}

/*
 * Storage modal view states
 * - Overview: the complete modal is fixed; no ancestor or list can scroll.
 * - Records: summary controls disappear and the record list becomes the only
 *   scroll container inside an expanded dialog.
 */
html body #dataListOverlay.mobile-chart-picker-overlay{
  overflow:hidden !important;
  overscroll-behavior:none !important;
  scrollbar-width:none !important;
}
html body #dataListOverlay,
html body #dataListOverlay *{
  scrollbar-width:none !important;
}
html body #dataListOverlay::-webkit-scrollbar,
html body #dataListOverlay *::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
html.data-storage-modal-open,
html.data-storage-modal-open body,
body.data-storage-modal-open{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html body #dataListOverlay > .data-storage-dialog{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html body #dataListOverlay:not(.is-data-list-expanded) > .data-storage-dialog{
  height:min(700px, calc(100dvh - 48px)) !important;
  min-height:min(700px, calc(100dvh - 48px)) !important;
  max-height:calc(100dvh - 48px) !important;
}
html body #dataListOverlay .mobile-chart-picker-head{
  position:relative !important;
  flex:0 0 auto !important;
}
html body #dataListOverlay .data-storage-dialog-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html body #dataListOverlay #dataListSummary > .data-storage-summary-heading{
  margin-bottom:0 !important;
}
html body #dataListOverlay #dataListSummary > .data-storage-metrics,
html body #dataListOverlay #dataListSummary > .data-storage-avionics-summary > .data-storage-metrics{
  margin-top:18px !important;
  padding:16px 0 !important;
  border-top:1px solid #303238 !important;
  border-bottom:1px solid #303238 !important;
}
html body #dataListOverlay #dataListSummary > .data-storage-spec,
html body #dataListOverlay #dataListSummary > .data-storage-avionics-summary > .data-storage-spec{
  margin-top:14px !important;
}
html body #dataListOverlay:not(.is-data-list-expanded) #dataListBody{
  height:218px !important;
  min-height:218px !important;
  max-height:218px !important;
  flex:0 0 218px !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
  touch-action:none !important;
  scrollbar-width:none !important;
}
html body #dataListOverlay:not(.is-data-list-expanded) #dataListBody > .data-storage-empty{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
}
html body #dataListOverlay:not(.is-data-list-expanded) #dataListBody::-webkit-scrollbar{
  display:none !important;
}
html body #dataListOverlay .data-list-back{
  position:absolute !important;
  top:50% !important;
  left:14px !important;
  z-index:2 !important;
  width:34px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 0 3px !important;
  transform:translateY(-50%) !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid #35383e !important;
  border-radius:6px !important;
  background:#202226 !important;
  color:#d8dbe0 !important;
  font-size:28px !important;
  line-height:1 !important;
  box-shadow:none !important;
}
html body #dataListOverlay .data-list-back[hidden]{
  display:none !important;
}
html body #dataListOverlay.is-data-list-expanded .mobile-chart-picker-title{
  padding-left:42px !important;
}
html body #dataListOverlay.is-data-list-expanded > .data-storage-dialog{
  width:min(920px, calc(100vw - 48px)) !important;
  max-width:920px !important;
  height:min(820px, calc(100dvh - 48px)) !important;
  max-height:calc(100dvh - 48px) !important;
}
html body #dataListOverlay.is-data-list-expanded .data-storage-dialog-body{
  display:flex !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  padding:0 !important;
}
html body #dataListOverlay.is-data-list-expanded .data-storage-selector,
html body #dataListOverlay.is-data-list-expanded .data-storage-stage-selector,
html body #dataListOverlay.is-data-list-expanded #dataListSummary,
html body #dataListOverlay.is-data-list-expanded .data-storage-actions{
  display:none !important;
}
html body #dataListOverlay.is-data-list-expanded .data-storage-surface{
  display:flex !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:0 !important;
  background:#151618 !important;
}
html body #dataListOverlay.is-data-list-expanded #dataListBody{
  display:block !important;
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:8px 0 18px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  touch-action:pan-y !important;
  scrollbar-width:none !important;
}
html body #dataListOverlay.is-data-list-expanded #dataListBody::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
@media (max-width:900px){
  html body #dataListOverlay.mobile-chart-picker-overlay{
    padding:10px !important;
  }
  html body #dataListOverlay:not(.is-data-list-expanded) > .data-storage-dialog{
    height:min(700px, calc(100dvh - 20px)) !important;
    min-height:min(700px, calc(100dvh - 20px)) !important;
    max-height:calc(100dvh - 20px) !important;
  }
  html body #dataListOverlay.is-data-list-expanded > .data-storage-dialog{
    width:100% !important;
    max-width:none !important;
    height:calc(100dvh - 20px) !important;
    max-height:calc(100dvh - 20px) !important;
  }
}

@media (min-width:901px) and (max-width:1100px){
  body.camera-view-active .desktop-nav-abort{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
/*
 * FLASH7 interface consistency layer.
 * One restrained visual language for the dashboard and desktop dialogs while
 * preserving the independent mobile sheet layouts.
 */
html[data-theme="dark"] body{
  --ui-canvas:#0b0d10;
  --ui-surface:#151618;
  --ui-surface-raised:#1b1c1f;
  --ui-surface-control:#202226;
  --ui-border:#34363b;
  --ui-divider:#2c2e32;
  --ui-text:#f2f3f5;
  --ui-text-soft:#c3c6cc;
  --ui-muted:#858a94;
  --ui-faint:#666b74;
  --ui-success:#55d68b;
  --ui-danger:#e08d93;
  --ui-radius:8px;
  --ui-control-radius:6px;
  --ui-gap:12px;
  --ui-section-height:60px;
}

:where(button,[role="button"],select,input):focus-visible{
  outline:1px solid rgba(210,214,220,.82);
  outline-offset:2px;
}

html[data-theme="dark"] body :is(
  .flash-link-chart-tabs,
  .pyro-channel-grid,
  .data-origin-filter,
  .connection-guide-tabs
){
  gap:6px !important;
  padding:4px !important;
  border:1px solid var(--ui-border) !important;
  border-radius:var(--ui-radius) !important;
  background:#101113 !important;
  box-shadow:none !important;
}

.stage-selected-telemetry{
  display:none;
}

@media (min-width:901px){
  /* Dashboard geometry and surface hierarchy. */
  body.dashboard-view-active #dashboardView > .shell{
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active #dashboardView :is(.row-top,.row-bottom){
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active #dashboardView .row-bottom{
    align-items:stretch !important;
  }
  body.dashboard-view-active #dashboardView .row-bottom > :is(.charts-card,.controls-card){
    height:clamp(260px,49vh,440px) !important;
    align-self:stretch !important;
  }
  body.dashboard-view-active #dashboardView :is(.motor-card,.controls-card,.chart-box){
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #dashboardView :is(.motor-card,.controls-card,.chart-box)::before,
  body.dashboard-view-active #dashboardView :is(.motor-card,.controls-card,.chart-box)::after{
    content:none !important;
    display:none !important;
  }

  /* Quick Data now follows the same header/body rhythm as Control Panel. */
  body.dashboard-view-active #dashboardView .motor-card{
    padding:0 !important;
  }
  body.dashboard-view-active #dashboardView .motor-card > .quick-data-header{
    min-height:var(--ui-section-height) !important;
    margin:0 !important;
    padding:0 16px 0 18px !important;
    align-items:center !important;
    border:0 !important;
    border-bottom:1px solid var(--ui-divider) !important;
    background:#191a1d !important;
  }
  body.dashboard-view-active #dashboardView .motor-card > .quick-data-body{
    min-height:0 !important;
    margin:0 !important;
    padding:14px 16px 16px !important;
  }
  body.dashboard-view-active #dashboardView :is(.card-title,.chart-title-main){
    color:var(--ui-text) !important;
    font-size:14px !important;
    line-height:1.1 !important;
    font-weight:650 !important;
    letter-spacing:.15em !important;
  }
  body.dashboard-view-active #dashboardView .motor-card :is(.status-metric,.item){
    border:1px solid var(--ui-divider) !important;
    border-radius:var(--ui-control-radius) !important;
    background:var(--ui-surface-raised) !important;
    box-shadow:none !important;
  }

  /* Vehicle cards use the same flat material; link state is carried by the dot. */
  body.dashboard-view-active #dashboardView .stage-overview-panel .stage-telemetry-deck{
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active #dashboardView .stage-overview-panel .stage-telemetry-card{
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active #dashboardView .stage-overview-panel .stage-telemetry-card.is-selected{
    border-color:#555a63 !important;
    background:#15181d !important;
  }
  body.dashboard-view-active #dashboardView .stage-telemetry-metrics > span,
  body.dashboard-view-active #dashboardView :is(.stage-telemetry-health,.stage-telemetry-card footer){
    border-color:var(--ui-divider) !important;
  }

  /*
   * Selected-stage telemetry is a dedicated desktop component. The legacy
   * Quick Data DOM remains intact for mobile and direct-board operation.
   */
  body.dashboard-view-active:has(#stageTelemetryDeck:not(.hidden)) #dashboardView .motor-card{
    overflow:hidden !important;
  }
  body.dashboard-view-active:has(#stageTelemetryDeck:not(.hidden)) #dashboardView .motor-card > .quick-data-body{
    display:none !important;
  }
  body.dashboard-view-active:has(#stageTelemetryDeck:not(.hidden)) #dashboardView .motor-card > .stage-selected-telemetry{
    display:grid !important;
    flex:1 1 auto;
    grid-template-columns:minmax(168px,24%) minmax(0,1fr);
    min-width:0;
    min-height:0;
    height:100%;
    background:#151618;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary{
    display:grid;
    grid-template-rows:repeat(2,minmax(0,1fr));
    min-width:0;
    min-height:0;
    border-right:1px solid var(--ui-divider);
    background:#17181a;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-item{
    display:flex;
    position:relative;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    min-width:0;
    min-height:0;
    padding:18px 24px;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-item + .stage-selected-primary-item{
    border-top:1px solid var(--ui-divider);
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-item > span,
  body.dashboard-view-active #dashboardView .stage-selected-detail > span{
    color:#7f8792;
    font-size:9px;
    font-weight:650;
    line-height:1;
    letter-spacing:.11em;
    text-transform:uppercase;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-value{
    display:flex;
    align-items:baseline;
    justify-content:flex-start;
    gap:7px;
    width:100%;
    margin-top:13px;
    min-width:0;
    white-space:nowrap;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-value strong{
    overflow:hidden;
    color:#f2f3f5;
    font-size:28px;
    font-weight:540;
    line-height:1;
    letter-spacing:-.035em;
    text-overflow:ellipsis;
  }
  body.dashboard-view-active #dashboardView .stage-selected-primary-value i,
  body.dashboard-view-active #dashboardView .stage-selected-detail-value i{
    color:#8f959e;
    font-size:9px;
    font-style:normal;
    font-weight:560;
    letter-spacing:.04em;
  }
  body.dashboard-view-active #dashboardView .stage-selected-details{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    min-width:0;
    min-height:0;
    padding:8px 18px;
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail{
    display:flex;
    position:relative;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    min-width:0;
    min-height:0;
    padding:14px 16px;
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail:nth-child(n+5){
    border-top:1px solid var(--ui-divider);
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail:not(:nth-child(4n+1))::before{
    position:absolute;
    top:22%;
    bottom:22%;
    left:0;
    width:1px;
    background:rgba(112,118,128,.17);
    content:"";
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail-value{
    display:flex;
    align-items:baseline;
    justify-content:flex-start;
    gap:5px;
    width:100%;
    margin-top:12px;
    min-width:0;
    white-space:nowrap;
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail-value strong{
    color:#e3e5e8;
    font-size:15px;
    font-weight:560;
    line-height:1;
    text-align:left;
    letter-spacing:-.015em;
  }
  body.dashboard-view-active #dashboardView .stage-selected-detail-value strong[data-stage-selected="state"]{
    font-size:14px;
    white-space:nowrap;
  }
  body.dashboard-view-active #dashboardView .stage-selected-telemetry.is-offline :is(
    .stage-selected-primary-value strong,
    .stage-selected-detail-value strong
  ){
    color:#8a9099;
  }

  /* Charts keep the data prominent and remove unnecessary badge-shaped chrome. */
  body.dashboard-view-active #dashboardView .charts-card{
    background:transparent !important;
  }
  body.dashboard-view-active #dashboardView .chart-row{
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active #dashboardView .chart-box{
    min-width:0 !important;
    padding:14px 16px 12px !important;
    overflow:hidden !important;
  }
  body.dashboard-view-active #dashboardView .chart-box-header{
    min-height:28px !important;
    margin:0 0 8px !important;
    align-items:flex-start !important;
  }
  body.dashboard-view-active #dashboardView .chart-title{
    color:var(--ui-text-soft) !important;
    font-size:12px !important;
    font-weight:620 !important;
  }
  body.dashboard-view-active #dashboardView .chart-badge{
    min-height:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--ui-muted) !important;
    box-shadow:none !important;
    font-size:9px !important;
    font-weight:600 !important;
    letter-spacing:.06em !important;
  }
  body.dashboard-view-active #dashboardView .chart-canvas-stage{
    min-height:0 !important;
  }

  /* Control Panel shares exact section, tile, and action measurements. */
  body.dashboard-view-active #controlsCard #controlsHeader{
    flex:0 0 var(--ui-section-height) !important;
    min-height:var(--ui-section-height) !important;
    padding:0 14px 0 18px !important;
  }
  body.dashboard-view-active #controlsCard .controls-grid{
    gap:8px !important;
    padding:14px 16px 16px !important;
  }
  body.dashboard-view-active #controlsCard :is(
    .primary-btn.sequence-btn,
    .controls-main-row .secondary-btn
  ){
    height:54px !important;
    min-height:54px !important;
    border-radius:var(--ui-control-radius) !important;
  }
  body.dashboard-view-active #controlsCard :is(.control-tile,.control-tile.span-2,.control-tile-mode){
    height:50px !important;
    min-height:50px !important;
    border-radius:var(--ui-control-radius) !important;
  }
  body.dashboard-view-active #controlsCard .controls-toolbar .controls-toolbar-action{
    border-radius:var(--ui-control-radius) !important;
  }

  /*
   * Settings: one content surface with dividers instead of a pile of nested
   * cards. Product information and A.I LINK retain their intentional layouts.
   */
  html:not(.phone-landscape-layout) body #settingsOverlay > .settings-dialog{
    width:min(1000px,calc(100vw - 64px)) !important;
    max-width:1000px !important;
    height:min(720px,calc(100dvh - 64px)) !important;
    border-radius:var(--ui-radius) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-body{
    gap:20px !important;
    padding:20px 22px 22px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav{
    width:184px !important;
    padding-right:18px !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-title{
    margin:1px 0 9px !important;
    color:var(--ui-faint) !important;
    font-size:9px !important;
    font-weight:700 !important;
    letter-spacing:.16em !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-nav-btn{
    min-height:40px !important;
    padding:0 11px !important;
    border-radius:var(--ui-control-radius) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panels{
    padding:0 8px 2px 0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel{
    min-width:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group){
    margin:0 !important;
    padding:0 0 18px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group) + .settings-group{
    padding-top:19px !important;
    border-top:1px solid var(--ui-divider) !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-group-title{
    margin:0 0 8px !important;
    color:var(--ui-muted) !important;
    font-size:9px !important;
    line-height:1 !important;
    font-weight:700 !important;
    letter-spacing:.14em !important;
    text-transform:uppercase !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group) .settings-row{
    min-height:56px !important;
    padding:10px 2px !important;
    align-items:center !important;
    border-bottom:1px solid #25272b !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group) .settings-row:last-child{
    border-bottom:0 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group) .settings-label{
    font-size:12px !important;
    font-weight:600 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay .settings-panel > .settings-group:not(.fw-info-group):not(.flash-link-settings-group) .hint-mini{
    margin-top:4px !important;
    font-size:9px !important;
    line-height:1.4 !important;
  }
  html:not(.phone-landscape-layout) body #settingsOverlay :is(
    .settings-select,
    .settings-number,
    .settings-inline-btn,
    .settings-btn
  ){
    min-height:36px !important;
    border-radius:var(--ui-control-radius) !important;
  }

  /* The common modal frame and vertical rhythm also covers late-created dialogs. */
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #dataDownloadConfirmOverlay,
    #dataResetConfirmOverlay,
    #flashLinkReportOverlay,
    #missionForceOverlay,
    #missionArmRiskOverlay,
    #rebootConfirmOverlay,
    #connectMethodOverlay,
    #wifiConnectOverlay,
    #serialConnectOverlay
  ){
    align-items:center !important;
    justify-content:center !important;
    padding:32px !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #flashLinkReportOverlay,
    #wifiConnectOverlay,
    #serialConnectOverlay
  ) > :is(
    .settings-dialog,
    .data-storage-dialog
  ){
    border-radius:var(--ui-radius) !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-header,
    .mobile-chart-picker-head,
    .connection-guide-header,
    .launcher-header
  ){
    min-height:var(--ui-section-height) !important;
  }
  html:not(.phone-landscape-layout) body :is(
    .settings-close-btn,
    .mobile-chart-picker-close,
    .connection-guide-close,
    .launcher-close-btn
  ){
    border-radius:var(--ui-control-radius) !important;
  }
}
.camera-flight-instruments{display:contents}
@media(min-width:768px) and (pointer:fine){
  body.camera-view-active{
    --camera-bottom-map-width:clamp(200px,18vw,260px);
    --camera-bottom-map-height:calc(var(--camera-bottom-map-width)*.56);
    --camera-hud-edge:clamp(24px,2.2vw,36px);
    --camera-instruments-left:calc(var(--camera-hud-edge) + env(safe-area-inset-left,0px));
    --camera-right-edge:calc(var(--camera-hud-edge) - 12px + env(safe-area-inset-right,0px));
    --camera-readout-size:34px;
    --camera-status-font-size:10.5px;
    --camera-bottom-map-bottom:calc(32px + env(safe-area-inset-bottom,0px));
  }
  body.camera-view-active .camera-data-stack{
    --camera-data-width:var(--camera-bottom-map-width);
    --camera-map-height:var(--camera-bottom-map-height);
    top:auto;
    left:auto;
    right:var(--camera-right-edge);
    bottom:var(--camera-bottom-map-bottom);
    height:var(--camera-map-height);
    grid-template-rows:var(--camera-map-height);
  }
  body.camera-view-active .camera-map-heading{color:#50565d;text-shadow:0 1px 3px rgba(255,255,255,.85)}
  body.camera-view-active .camera-map-heading span{display:none}
  body.camera-view-active .camera-flight-instruments{
    position:fixed;
    left:var(--camera-instruments-left);
    bottom:var(--camera-bottom-map-bottom);
    display:flex;
    align-items:center;
    gap:20px;
  }
  body.camera-view-active .camera-flight-instruments .camera-hud-left{
    position:static;
    gap:22px;
    margin:0;
    padding:0;
  }
  body.camera-view-active .camera-flight-instruments .camera-sequence-time--timeline{
    position:relative;
    width:auto;
    flex:0 0 auto;
    height:52px;
    min-height:52px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    padding:0 20px 0 0;
    margin:0;
    border-right:1px solid rgba(230,234,240,.38);
  }
  body.camera-view-active .camera-flight-instruments .camera-sequence-time--timeline .camera-count-time{
    font-size:40px!important;
    font-weight:300!important;
    -webkit-text-stroke:.1px currentColor!important;
    min-width:0;
    text-align:left;
    white-space:nowrap;
    letter-spacing:-.035em!important;
  }
  body.camera-view-active .camera-flight-instruments .camera-sequence-time--timeline .camera-tmark{
    font-size:18px!important;
    line-height:1;
  }
  body.camera-view-active .camera-hud-left .camera-gauge-value{font-size:var(--camera-readout-size)!important}
  body.camera-view-active .camera-hud-left .camera-gauge{width:auto!important;min-height:52px;align-items:flex-start}
  body.camera-view-active .camera-hud-left .camera-gauge-readout{display:flex;min-height:52px;gap:8px}
}

/* The expanded map shares the actual flight instruments with the 3D view. */
.camera-map-flight-hud{display:none}
@media(min-width:901px) and (pointer:fine){
  body.camera-view-active .camera-map-flight-hud:not([hidden]){
    display:block;
    position:fixed;
    inset:0;
    z-index:1204;
    pointer-events:none;
    color:rgba(248,250,252,.96);
  }
  body.camera-view-active .camera-map-flight-hud::before{
    content:"";
    position:absolute;
    pointer-events:none;
  }
  body.camera-view-active .camera-map-flight-hud::before{
    inset:auto 0 0;
    height:200px;
    background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.38) 45%,rgba(0,0,0,.76)) !important;
  }
  .camera-map-flight-hud #cameraSystemStatusBar::before{
    background-image:linear-gradient(180deg,rgba(0,0,0,.82),rgba(0,0,0,.64) 45%,transparent) !important;
  }
  .camera-map-flight-hud > .camera-flight-instruments{z-index:2}
}


.desktop-split-settings{display:none}
@media(min-width:768px) and (pointer:fine){
  body.camera-view-active .desktop-split-settings{display:flex;justify-content:space-between;width:100%;padding:13px 0;color:#dedede;background:none;border:0;border-top:1px solid #ffffff14;text-align:left;cursor:pointer;font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
  .desktop-split-settings span:last-child{color:#999;font-weight:400}
}
.split-entry{
  position:fixed;inset:0;z-index:9500;display:grid;place-items:center;overflow:auto;
  box-sizing:border-box;padding:max(32px,env(safe-area-inset-top)) 24px max(32px,env(safe-area-inset-bottom));
  color:#eee;background:#000;
  isolation:isolate;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.split-entry-content{width:min(100%,620px);text-align:center;padding:20px 0}
.split-entry.hidden,.split-entry .hidden{display:none!important}
.split-entry-icon{display:block;width:88px;height:70.4px;margin:42px auto 28px;color:#eee}
.split-entry h1,.split-entry h2{margin:0;color:#eee;font-size:clamp(26px,3vw,38px);font-weight:650;line-height:1.35;letter-spacing:-.045em;outline:none}
.split-entry-description{margin:16px auto 30px;color:#999;font-size:14px;line-height:1.9;letter-spacing:-.02em;word-break:keep-all}
.split-entry button,.split-entry input{font-family:inherit}
.split-entry-primary{display:inline-flex;align-items:center;justify-content:center;gap:36px;min-width:204px;min-height:48px;padding:12px 24px;border:1px solid #eee;border-radius:10px;color:#111;background:#eee;box-shadow:0 5px 24px #0002;font-size:14px;font-weight:650;cursor:pointer;transition:background .18s,transform .18s}
.split-entry-primary:hover{background:#fff;transform:translateY(-1px)}
.split-entry-skip,.split-entry-back{display:block;margin:20px auto 0;padding:8px 12px;border:0;background:none;color:#888;font-size:12px;cursor:pointer;text-underline-offset:4px}
.split-entry-skip:hover,.split-entry-back:hover{color:#eee;text-decoration:underline}
.split-entry-footnote{display:block;margin:40px 0 0;color:#555;font-size:11px;letter-spacing:.08em}
.split-entry-status{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 20px;color:#bbb;font-size:12px;min-height:20px}
.split-entry h2 + .split-entry-status{margin-top:24px}
.split-entry-status i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#bbb;box-shadow:0 0 0 5px #ffffff08;animation:split-status-pulse 2s ease-in-out infinite}
.split-entry-link{display:flex;align-items:center;gap:8px;max-width:520px;margin:0 auto 24px;padding:6px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff06}
.split-entry-link input{width:0;min-width:0;flex:1;padding:10px 8px;border:0;outline:0;color:#bbb;background:none;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}
.split-entry-link button{flex:0 0 auto;padding:9px 13px;border:1px solid #ffffff28;border-radius:6px;background:#ffffff12;color:#ccc;font-size:12px;cursor:pointer}
.split-entry-error{margin:16px 0 0;color:#bbb;font-size:12px;line-height:1.7;word-break:keep-all}
.split-entry-error:empty{display:none}
body.desktop-split-entry-active{overflow:hidden}
body.desktop-split-entry-active :is(.camera-view,.alarm-history-toggle,.control-center-toggle,.alarm-history-panel,.notification-rail){visibility:hidden!important;pointer-events:none!important}
.split-monitor{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:40px minmax(0,1fr);align-items:stretch;justify-content:stretch;width:100%;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;background:#000;color:#ddd;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-theme] body.split-monitor{background:#000;color:#ddd}
.split-monitor::before{display:none}
.split-monitor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;padding:0 20px;border-bottom:1px solid #ffffff12}
.split-monitor-header strong{font-size:11px;letter-spacing:.16em}
.split-monitor-header span{color:#aaa;font-size:11px;white-space:nowrap}
.split-monitor-main{display:grid;grid-template-rows:52px 76px minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1fr);gap:10px;width:100%;max-width:1800px;height:100%;min-height:0;min-width:0;box-sizing:border-box;margin:0 auto;padding:12px 20px;overflow:hidden}
.split-monitor-heading{display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:0;gap:18px}
.split-monitor-heading > div:first-child{flex:1;min-width:0}
.split-monitor-heading small{color:#888;letter-spacing:.16em;font-size:9px;line-height:1.2}
.split-monitor-heading h1{margin:2px 0 0;font-size:clamp(16px,1.5vw,24px);line-height:1.2;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.split-monitor-heading p{margin:2px 0 0;color:#999;font-size:10px;line-height:1.2}
.split-monitor-time{flex:none;font-size:26px;line-height:1.1;font-weight:300;white-space:nowrap}
.split-sequence{--sequence-steps:9;--sequence-progress:0;display:grid;grid-template-rows:16px minmax(0,1fr);gap:12px;min-width:0;min-height:0;padding:10px 14px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff03;overflow:hidden}
.split-sequence header{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}
.split-sequence h2{margin:0;color:#aaaeb3;font-size:10px;font-weight:600;letter-spacing:.1em;white-space:nowrap}
.split-sequence header>div{display:flex;align-items:center;gap:16px;min-width:0}
.split-sequence header strong{color:#e1e5e8;font-size:10px;font-weight:550;letter-spacing:.05em}
.split-sequence header span{color:#81878d;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.split-sequence-rail{position:relative;min-width:0;min-height:0}
.split-sequence-line{position:absolute;top:4px;left:calc(50% / var(--sequence-steps));right:calc(50% / var(--sequence-steps));height:1px;background:#ffffff1c}
.split-sequence-line::before{content:"";display:block;width:calc(var(--sequence-progress)*100%);height:100%;background:#b5bec5;transition:width .2s linear}
.split-sequence-line>i{position:absolute;left:calc(var(--sequence-progress)*100%);top:50%;width:12px;height:12px;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid #dce2e6;border-radius:50%;background:#15181b;box-shadow:0 0 0 3px #ffffff08;transition:left .2s linear}
.split-sequence ol{position:relative;display:grid;grid-template-columns:repeat(var(--sequence-steps),minmax(0,1fr));margin:0;padding:0;list-style:none}
.split-sequence li{display:flex;align-items:center;flex-direction:column;gap:9px;min-width:0;color:#666c72;font-size:9px;font-weight:500;line-height:1.2;letter-spacing:.04em;white-space:nowrap}
.split-sequence li[hidden]{display:none}
.split-sequence li>i{display:block;width:5px;height:5px;box-sizing:border-box;margin-top:2px;border:1px solid #747d85;border-radius:50%;background:#101214}
.split-sequence li.is-passed{color:#a5adb4}.split-sequence li.is-passed>i{background:#a9b4bc;border-color:#a9b4bc}
.split-sequence li.is-active{color:#f0f2f4}.split-sequence li.is-active>i{background:#eef1f3;border-color:#eef1f3}
.split-sequence.is-waiting .split-sequence-line>i{display:none}.split-sequence.is-waiting header strong{color:#81878d}
.split-quick-data{display:grid;grid-template-rows:40px minmax(0,1fr);min-height:0;min-width:0;border:1px solid #ffffff22;border-radius:10px;background:#ffffff04;overflow:hidden}
.split-quick-header{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:0;padding:0 12px;border-bottom:1px solid #ffffff19}
.split-quick-header h2{flex:none;margin:0;color:#eee;font-size:14px;font-weight:650;letter-spacing:.13em}
.split-quick-chips{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:6px}
.split-quick-chips > span{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 9px;border:1px solid #ffffff20;border-radius:6px;background:#0004;color:#999;font-size:10px;font-weight:600}
.split-quick-chips b{color:#ddd;font-size:10px;font-weight:600;white-space:nowrap}
.split-quick-chips i{width:5px;height:5px;border-radius:50%;background:#666}
.split-quick-chips .is-connected i{background:#8faa9a}
.split-quick-chips svg{width:23px;height:16px;fill:none;stroke:#999;stroke-width:1.5}
.split-quick-body{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr);min-width:0;min-height:0;gap:12px;padding:10px;box-sizing:border-box}
.split-quick-primary{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));min-width:0;min-height:0;gap:8px}
.split-quick-primary > div,.split-quick-details > div{min-width:0;min-height:0;border:1px solid #ffffff1a;border-radius:6px;background:#ffffff03}
.split-quick-primary > div{display:flex;flex-direction:column;justify-content:space-between;gap:0;padding:8px;box-sizing:border-box}
.split-quick-primary small{color:#9299a1;font-size:10px;line-height:1.1}
.split-quick-primary strong{align-self:flex-end;color:#eee;font-size:clamp(22px,2.1vw,32px);line-height:1;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.split-quick-body em{margin-left:5px;color:#999;font-size:9px;font-weight:600;font-style:normal;white-space:nowrap}
.split-quick-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));min-width:0;min-height:0;gap:6px}
.split-quick-details > div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 9px;box-sizing:border-box}
.split-quick-details small{color:#c3c7cb;font-size:10px;line-height:1.15;font-weight:600;white-space:nowrap}
.split-quick-details strong{min-width:0;color:#eee;font-size:12px;line-height:1.15;font-weight:650;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.split-quick-details strong em{font-size:8px}
.split-monitor-charts,.split-monitor-systems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;min-height:0}
.split-monitor .camera-chart-settings{display:flex;flex:none;justify-content:flex-end;align-items:center;gap:8px;color:#aaa;font-size:10px}
.split-monitor .camera-telemetry-chart{position:relative;inset:auto;width:100%;height:100%;min-height:0;padding:12px;border-radius:8px}
.split-monitor .camera-telemetry-chart{grid-template-columns:minmax(0,1fr)}
.split-monitor .camera-chart-plot,.split-monitor .comm-v3-chart{position:relative;min-width:0;min-height:0;contain:layout paint}
.split-monitor .camera-chart-plot > canvas,.split-monitor .comm-v3-chart > canvas{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0}
.split-monitor .camera-chart-heading{font-size:11px}
.split-monitor .split-monitor-systems .comm-v3-quality-stage{height:100%;min-height:0;box-sizing:border-box;grid-template-rows:22px 48px minmax(0,1fr);padding:12px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff03}
.split-monitor-systems .comm-v3-panel-head strong{font-size:11px}
.split-monitor-systems .comm-v3-panel-head span,.split-monitor-systems .comm-v3-panel-head em{font-size:9px}
.split-monitor-systems .comm-v3-metrics > button{padding:5px 8px;cursor:pointer}
.split-monitor-systems .comm-v3-metrics small{font-size:8px}
.split-monitor-systems .comm-v3-metrics strong{font-size:18px}
.split-monitor-systems .comm-v3-metrics i{font-size:9px}
@media(min-width:1000px){
  .split-monitor-main{
    grid-template-columns:clamp(330px,27vw,440px) minmax(0,1fr);
    grid-template-rows:52px 76px repeat(2,minmax(0,1fr));
    grid-template-areas:"heading heading" "sequence sequence" "quick flight" "quick quality";
  }
  .split-monitor-heading{grid-area:heading}
  .split-sequence{grid-area:sequence}
  .split-quick-data{grid-area:quick;grid-template-rows:100px minmax(0,1fr)}
  .split-monitor-charts{grid-area:flight}
  .split-monitor-systems{grid-area:quality}
  .split-quick-header{display:grid;grid-template-rows:18px auto;align-content:center;gap:6px;padding:8px 12px}
  .split-quick-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .split-quick-chips > span{min-height:25px;padding:0 7px}
  .split-quick-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(78px,.24fr) minmax(0,1fr);gap:10px}
  .split-quick-primary{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
  .split-quick-details{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}
  .split-quick-details > div:last-child{grid-column:1/-1}
  .split-quick-details small{font-size:11px}
  .split-quick-details strong{font-size:13px}
}
@media(max-height:680px){
  .split-monitor{grid-template-rows:34px minmax(0,1fr)}
  .split-monitor-main{grid-template-rows:44px 66px minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1fr);gap:8px;padding:8px 16px}
  .split-sequence{gap:8px;padding:8px 12px}.split-sequence li{gap:7px;font-size:8px}
  .split-monitor-heading h1{font-size:17px}.split-monitor-heading small{font-size:8px}.split-monitor-heading p{font-size:9px}.split-monitor-time{font-size:23px}
  .split-quick-data{grid-template-rows:32px minmax(0,1fr)}.split-quick-header h2{font-size:12px}.split-quick-chips > span{min-height:23px;font-size:9px}.split-quick-chips b{font-size:9px}
  .split-quick-body{padding:8px;gap:8px}.split-quick-primary{gap:6px}.split-quick-primary > div{padding:4px 6px}.split-quick-primary small{font-size:9px}.split-quick-primary strong{font-size:21px}
  .split-quick-details > div{padding:3px 6px}.split-quick-details small{font-size:9px}.split-quick-details strong{font-size:11px}.split-quick-body em{font-size:8px}
  .split-monitor .camera-telemetry-chart{padding:9px;row-gap:4px}.split-monitor .camera-chart-heading{font-size:10px}
  .split-monitor .split-monitor-systems .comm-v3-quality-stage{grid-template-rows:18px 36px minmax(0,1fr);padding:8px}
  .split-monitor-systems .comm-v3-metrics > button{padding:3px 6px}.split-monitor-systems .comm-v3-metrics strong{font-size:16px}.split-monitor-systems .comm-v3-metrics small{font-size:7px}
}
@media(min-width:1000px) and (max-height:680px){
  .split-monitor-main{grid-template-rows:44px 66px repeat(2,minmax(0,1fr))}
  .split-quick-data{grid-template-rows:94px minmax(0,1fr)}
  .split-quick-body{grid-template-rows:minmax(62px,.24fr) minmax(0,1fr);gap:8px}
}
@media(max-width:900px){
  .split-monitor-heading{gap:10px}.split-monitor .camera-chart-settings > strong{display:none}.split-monitor-time{font-size:23px}
  .split-quick-header h2{font-size:12px}.split-quick-chips > span{padding:0 6px;gap:4px}.split-quick-chips svg{width:18px}
  .split-quick-body{grid-template-columns:minmax(105px,.8fr) minmax(0,3fr)}.split-quick-details small{font-size:9px}.split-quick-details > div{padding:4px 6px}
}
@media(max-width:700px){
  .split-monitor-header{padding:0 10px}.split-monitor-header strong,.split-monitor-header span{font-size:9px}.split-monitor-main{padding:8px;gap:8px}
  .split-monitor-heading{gap:6px}.split-monitor-heading h1{font-size:14px}.split-monitor-heading small,.split-monitor-heading p{font-size:8px}.split-monitor-time{font-size:18px}
  .split-monitor .camera-chart-tools button{font-size:8px;min-height:21px;padding:2px 3px}.split-monitor .camera-chart-settings{gap:4px}
  .split-quick-data{grid-template-rows:56px minmax(0,1fr)}.split-quick-header{padding:6px 8px;gap:6px;flex-wrap:wrap}.split-quick-header h2{font-size:11px}.split-quick-chips{flex-wrap:wrap;gap:3px}.split-quick-chips > span{min-height:20px;padding:0 4px;font-size:8px}.split-quick-chips b{font-size:8px}.split-quick-chips svg{width:16px}
  .split-quick-body{grid-template-columns:minmax(70px,.8fr) minmax(0,3fr);padding:6px;gap:6px}.split-quick-primary > div{padding:5px}.split-quick-primary small{font-size:8px}.split-quick-primary strong{font-size:20px}
  .split-quick-details{gap:4px}.split-quick-details > div{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:3px 4px}.split-quick-details small{font-size:8px}.split-quick-details strong{align-self:flex-end;font-size:10px}.split-quick-details strong em{font-size:7px;margin-left:3px}
  .split-monitor-charts,.split-monitor-systems{gap:8px}.split-monitor .camera-telemetry-chart{padding:8px}.split-monitor .camera-chart-heading{font-size:9px}.split-monitor .camera-chart-legend{gap:3px}.split-monitor .camera-chart-legend-item,.split-monitor .camera-chart-legend-item b{font-size:8px}
  .split-monitor .split-monitor-systems .comm-v3-quality-stage{padding:6px;grid-template-rows:30px 42px minmax(0,1fr)}.split-monitor-systems .comm-v3-panel-head{gap:2px}.split-monitor-systems .comm-v3-panel-head > div{flex-direction:column;align-items:flex-start;gap:3px}.split-monitor-systems .comm-v3-panel-head strong,.split-monitor-systems .comm-v3-panel-head span,.split-monitor-systems .comm-v3-panel-head em{font-size:8px}.split-monitor-systems .comm-v3-metrics > button{padding:4px}.split-monitor-systems .comm-v3-metrics strong{font-size:15px}.split-monitor-systems .comm-v3-metrics i{font-size:7px}
  .split-entry-icon{margin-top:28px}.split-entry-content{padding:0}
  .split-sequence li>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .split-sequence h2,.split-sequence header strong,.split-sequence header span{font-size:9px}
}
@keyframes split-status-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.split-entry-status i{animation:none}.split-entry-primary{transition:none}}
@media(prefers-reduced-motion:reduce){.split-sequence-line::before,.split-sequence-line>i{transition:none}}

/* Airbrake is a local simulation preview; live telemetry remains unknown. */
.split-airbrake{--airbrake-open:0;display:grid;grid-template-rows:22px minmax(0,1fr) 28px;gap:6px;min-width:0;min-height:0;height:100%;box-sizing:border-box;padding:12px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff03;overflow:hidden}
.split-airbrake-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.split-airbrake-header strong{font-size:11px;color:#d9dde2;letter-spacing:.04em}
.split-airbrake-header span{font-size:9px;letter-spacing:.08em;color:#a2b7ac}
.split-airbrake.is-unknown .split-airbrake-header span{color:#858d98}
.split-airbrake-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(76px,1fr);align-items:center;gap:12px;min-width:0;min-height:0;overflow:hidden}
.split-airbrake-visual{position:relative;height:100%;min-width:0;min-height:0}
.split-airbrake-visual svg{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.split-airbrake-hull{fill:#202327;stroke:#969fa9;stroke-width:1.3}
.split-airbrake-inset{stroke:#ffffff14;stroke-width:.8}
.split-airbrake-hub{fill:#30373e;stroke:#969fa980;stroke-width:1}
.split-airbrake-track{fill:#ffffff03;stroke:#b2bec633;stroke-width:.7}
.split-airbrake-track-line{stroke:#ffffff26;stroke-width:.7}
.split-airbrake-carriage{fill:#8f9ca655;stroke:#b1bdc655;stroke-width:.5}
.split-airbrake-fastener{fill:#11161b;stroke:#9ca6b080;stroke-width:.6}
.split-airbrake-core{fill:none;stroke:#b6c0ca66;stroke-width:.65}
.split-airbrake.is-unknown .split-airbrake-interior,.split-airbrake.is-unknown .split-airbrake-core{opacity:.35}
.split-airbrake-flap{fill:#8faa9a30;stroke:#9fb7aa;stroke-width:1.3}
.split-airbrake.is-unknown .split-airbrake-flap{visibility:hidden}
.split-airbrake.is-unknown .split-airbrake-hull,.split-airbrake.is-unknown .split-airbrake-hub{opacity:.4}
.split-airbrake-readout{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.split-airbrake-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;align-items:stretch}
.split-airbrake-values > div{display:grid;grid-template-rows:12px minmax(0,1fr);row-gap:4px;align-items:end;min-width:0}
.split-airbrake-values small{align-self:start;line-height:1.2;white-space:nowrap}
.split-airbrake-readout small{font-size:9px;font-weight:600;letter-spacing:.08em;color:#8e98a3}
.split-airbrake-readout strong{font-size:clamp(28px,2.4vw,44px);line-height:1.05;font-weight:350;font-variant-numeric:tabular-nums;color:#e1e6eb;white-space:nowrap}
.split-airbrake-servo strong{font-size:clamp(22px,1.8vw,30px)}
.split-airbrake-readout strong i{font-size:12px;font-style:normal;margin-left:5px;color:#98a3ae}
.split-airbrake-readout > span{font-size:10px;color:#a6b5ad;white-space:nowrap}
.split-airbrake.is-unknown .split-airbrake-readout > span{color:#858d98}
.split-airbrake-meter{height:3px;width:100%;max-width:150px;background:#ffffff12;margin-top:2px}
.split-airbrake-meter i{display:block;height:100%;width:calc(var(--airbrake-open) * 100%);background:#9fb7aa}
.split-airbrake-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-height:0}
.split-airbrake-controls button{min-width:0;min-height:0;padding:0 8px;border:1px solid #ffffff20;border-radius:5px;background:#ffffff05;color:#aeb8c2;font-size:10px;cursor:pointer}
.split-airbrake-controls button[aria-pressed="true"]{border-color:#9fb7aa60;color:#c0d0c7;background:#8faa9a12}
.split-airbrake-controls button:disabled{opacity:.35;cursor:default}
.split-airbrake-controls button:focus-visible{outline:1px solid #b4c6bd;outline-offset:1px}
@media(max-height:680px){
 .split-airbrake{grid-template-rows:18px minmax(0,1fr) 26px;padding:8px;gap:4px}
 .split-airbrake-header strong{font-size:10px}.split-airbrake-header span{font-size:8px}
 .split-airbrake-body{gap:8px}.split-airbrake-readout{gap:4px}.split-airbrake-readout small{font-size:8px}
 .split-airbrake-readout strong{font-size:28px}.split-airbrake-servo strong{font-size:22px}.split-airbrake-values > div{grid-template-rows:10px minmax(0,1fr)}.split-airbrake-readout > span{font-size:9px}
}
@media(max-width:900px){
 .split-airbrake-body{grid-template-columns:minmax(0,1fr) minmax(90px,1fr)}
 .split-airbrake-header strong{font-size:9px}.split-airbrake-header span{font-size:7px}
}

.split-airbrake-auto{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;color:#aeb7bc;font-size:9px;letter-spacing:.04em}
.split-airbrake-auto[hidden]{display:none!important}
.split-airbrake-auto span{display:flex;align-items:baseline;gap:7px}
.split-airbrake-auto strong{color:#d2dbdf;font:500 11px/1.2 ui-monospace,monospace;letter-spacing:0}
.split-airbrake.is-auto .split-airbrake-controls{display:none!important}


/* Narrow desktop/tablet: stack major dashboard regions instead of squeezing them. */
@media (min-width:901px) and (max-width:1100px){
  body.dashboard-view-active #dashboardView .row-bottom{
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.dashboard-view-active #dashboardView .row-bottom > .charts-card{
    height:360px !important;
  }
  body.dashboard-view-active #dashboardView .row-bottom > .controls-card{
    height:auto !important;
    min-height:430px !important;
  }
}

/*
 * Mobile keeps its own composition. Only measurements and materials are
 * normalized here, so desktop modal changes cannot turn sheets into dialogs.
 */
@media (max-width:900px){
  html[data-theme="dark"] body{
    --ui-gap:10px;
    --ui-radius:8px;
    --ui-control-radius:6px;
  }
  body.dashboard-view-active .stage-telemetry-deck{
    gap:var(--ui-gap) !important;
    margin-bottom:16px !important;
  }
  body.dashboard-view-active .stage-telemetry-card{
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active .quick-data-body .quick-metrics{
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active .quick-data-body .quick-metrics .status-metric{
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
  }
  body.dashboard-view-active .mobile-device-control-section{
    margin-top:24px !important;
  }
  body.dashboard-view-active .mobile-device-control-title{
    margin:0 0 12px 2px !important;
    color:var(--ui-text) !important;
    font-size:16px !important;
    font-weight:600 !important;
  }
  body.dashboard-view-active .mobile-device-control-grid{
    gap:var(--ui-gap) !important;
  }
  body.dashboard-view-active .mobile-device-control-card{
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:none !important;
  }
  body.dashboard-view-active :is(
    #mobileIntelligentCalibrationBtn,
    #mobileAgentBtn
  ){
    border-color:#3a3d43 !important;
    background:var(--ui-surface-raised) !important;
  }

  /* Portrait control dialogs remain bottom sheets with one shared rhythm. */
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #flashLinkReportOverlay
  ){
    align-items:flex-end !important;
    justify-content:center !important;
    padding:0 !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #flashLinkReportOverlay
  ) > :is(.settings-dialog,.data-storage-dialog){
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    border-radius:10px 10px 0 0 !important;
    border-bottom:0 !important;
    background:var(--ui-surface) !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #flashLinkReportOverlay
  ) .settings-header{
    min-height:56px !important;
    padding-left:16px !important;
    border-bottom:1px solid var(--ui-divider) !important;
    background:#191a1d !important;
  }
  html:not(.phone-landscape-layout) body :is(
    #hardwareServoOverlay,
    #pyroControlOverlay,
    #dataListOverlay,
    #flashLinkReportOverlay,
    #rebootConfirmOverlay,
    #missionForceOverlay
  ) :is(
    .loadcell-primary,
    .confirm-cancel,
    .settings-btn,
    .pyro-control-run,
    .pyro-control-confirm-btn,
    .data-storage-download,
    .data-storage-reset
  ){
    min-height:48px !important;
    border-radius:var(--ui-control-radius) !important;
    box-shadow:none !important;
  }
}

/*
 * A narrow desktop window is still a desktop surface. Do not turn hardware
 * controls into the touch bottom sheet solely because the viewport is narrow.
 */
@media (max-width:900px) and (pointer:fine){
  html:not(.phone-landscape-layout) body #pyroControlOverlay{
    position:fixed !important;
    inset:0 !important;
    z-index:89100 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:20px !important;
    overflow:auto !important;
    background:rgba(3,5,8,.76) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlOverlay.hidden{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlOverlay #pyroControlDialog{
    position:relative !important;
    width:min(680px, calc(100vw - 40px)) !important;
    max-width:680px !important;
    min-height:0 !important;
    max-height:calc(100dvh - 40px) !important;
    margin:auto !important;
    padding:0 !important;
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.58) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-header{
    position:relative !important;
    min-height:58px !important;
    margin:0 !important;
    padding:0 58px 0 20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border:0 !important;
    border-bottom:1px solid var(--ui-divider) !important;
    background:#191a1d !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-title{
    color:var(--ui-text) !important;
    font-size:16px !important;
    line-height:1.2 !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-close-btn{
    position:absolute !important;
    top:11px !important;
    right:14px !important;
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid transparent !important;
    border-radius:var(--ui-control-radius) !important;
    background:transparent !important;
    color:#a9adb5 !important;
    font-size:24px !important;
    line-height:1 !important;
    font-weight:300 !important;
    transform:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-close-btn::before,
  html:not(.phone-landscape-layout) body #pyroControlDialog .settings-close-btn::after{
    content:none !important;
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-body{
    display:block !important;
    max-height:calc(100dvh - 100px) !important;
    padding:18px 20px 20px !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-channel-label{
    margin:0 0 9px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
    margin:0 0 16px !important;
    padding:4px !important;
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-control-radius) !important;
    background:#101113 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn{
    min-height:40px !important;
    padding:0 10px !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:5px !important;
    background:transparent !important;
    color:#8f949c !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn span{
    color:inherit !important;
    font-size:12px !important;
    font-weight:650 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn.is-active{
    background:#e8e9eb !important;
    color:#121315 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-panel{
    padding:20px !important;
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:#1b1c1f !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(220px,.8fr) !important;
    gap:14px !important;
    align-items:end !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-value input,
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-presets button{
    min-height:46px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-run{
    min-height:46px !important;
    margin-top:16px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-note{
    margin-top:10px !important;
  }
}

/* Touch devices keep the bottom-sheet composition, but never clip its body. */
@media (max-width:900px) and (pointer:coarse), (max-width:900px) and (hover:none){
  html:not(.phone-landscape-layout) body #pyroControlOverlay{
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlOverlay #pyroControlDialog{
    max-height:min(92dvh,760px) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-body{
    max-height:calc(min(92dvh,760px) - 58px) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn.is-active{
    border-color:#e8e9eb !important;
    background:#e8e9eb !important;
    color:#121315 !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-btn.is-active span{
    color:inherit !important;
  }
}

/* Pyro control uses dividers, not nested cards. */
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-selector{
  margin:0 !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-channel-grid{
  margin-bottom:14px !important;
  padding:3px !important;
  border-color:#2d3035 !important;
  background:#111214 !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-panel{
  margin:0 !important;
  padding:17px 0 0 !important;
  border:0 !important;
  border-top:1px solid var(--ui-divider) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-head{
  margin:0 0 16px !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-row{
  gap:12px !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-run{
  margin-top:14px !important;
  border-radius:var(--ui-control-radius) !important;
  box-shadow:none !important;
}
html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-note{
  margin:11px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#8f949c !important;
  font-size:10.5px !important;
  line-height:1.45 !important;
  text-align:center !important;
}

@media (min-width:901px), (max-width:900px) and (pointer:fine){
  html:not(.phone-landscape-layout) body #pyroControlOverlay #pyroControlDialog{
    width:min(620px, calc(100vw - 40px)) !important;
    max-width:620px !important;
  }
  html:not(.phone-landscape-layout) body #pyroControlDialog .pyro-control-body{
    padding:17px 20px 20px !important;
  }
}

/* Servo control follows the same compact, divider-led modal language. */
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-group{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-group > .settings-label{
  margin:0 0 9px !important;
  color:#92969e !important;
  font-size:11px !important;
  font-weight:600 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-channel-picker,
html:not(.phone-landscape-layout) body #hardwareServoDialog .hint-mini{
  display:none !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-quick-row{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:5px !important;
  margin:0 0 14px !important;
  padding:3px !important;
  border:1px solid #2d3035 !important;
  border-radius:var(--ui-control-radius) !important;
  background:#111214 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-btn.hardware-servo-quick-btn{
  min-height:40px !important;
  padding:0 6px !important;
  border:0 !important;
  border-radius:5px !important;
  background:transparent !important;
  color:#8f949c !important;
  font-size:11.5px !important;
  font-weight:650 !important;
  box-shadow:none !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-btn.hardware-servo-quick-btn.is-active{
  background:#e8e9eb !important;
  color:#121315 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-inline-wrap{
  margin:0 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-grid{
  display:block !important;
  margin:0 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-row{
  display:none !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-row.is-active{
  display:grid !important;
  gap:16px !important;
  margin:0 !important;
  padding:17px 0 0 !important;
  border:0 !important;
  border-top:1px solid var(--ui-divider) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-head{
  margin:0 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-current-label{
  display:flex !important;
  align-items:baseline !important;
  gap:10px !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-current-label [data-servo-current-angle]{
  color:#f4f5f6 !important;
  font-size:23px !important;
  font-weight:560 !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-meta{
  color:#858a94 !important;
  font-size:10.5px !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-presets{
  gap:7px !important;
}
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset-input,
html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-preset-btn{
  min-height:40px !important;
  border:1px solid #35383e !important;
  border-radius:var(--ui-control-radius) !important;
  background:#111214 !important;
  color:#e5e7eb !important;
  box-shadow:none !important;
}

@media (min-width:901px), (max-width:900px) and (pointer:fine){
  html:not(.phone-landscape-layout) body #hardwareServoOverlay{
    position:fixed !important;
    inset:0 !important;
    z-index:89100 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:20px !important;
    overflow:auto !important;
    background:rgba(3,5,8,.76) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoOverlay.hidden{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoOverlay #hardwareServoDialog{
    position:relative !important;
    width:min(620px, calc(100vw - 40px)) !important;
    max-width:620px !important;
    min-height:0 !important;
    max-height:calc(100dvh - 40px) !important;
    margin:auto !important;
    padding:0 !important;
    border:1px solid var(--ui-border) !important;
    border-radius:var(--ui-radius) !important;
    background:var(--ui-surface) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.58) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-header{
    position:relative !important;
    min-height:58px !important;
    margin:0 !important;
    padding:0 58px 0 20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border:0 !important;
    border-bottom:1px solid var(--ui-divider) !important;
    background:#191a1d !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-title{
    color:var(--ui-text) !important;
    font-size:16px !important;
    line-height:1.2 !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-close-btn{
    position:absolute !important;
    top:11px !important;
    right:14px !important;
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid transparent !important;
    border-radius:var(--ui-control-radius) !important;
    background:transparent !important;
    color:#a9adb5 !important;
    font-size:24px !important;
    line-height:1 !important;
    font-weight:300 !important;
    transform:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-close-btn::before,
  html:not(.phone-landscape-layout) body #hardwareServoDialog .settings-close-btn::after{
    content:none !important;
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-dialog-body{
    max-height:calc(100dvh - 100px) !important;
    padding:17px 20px 20px !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-mobile-stage{
    display:none !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-presets{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}

@media (max-width:900px) and (pointer:coarse), (max-width:900px) and (hover:none){
  html:not(.phone-landscape-layout) body #hardwareServoOverlay{
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoOverlay #hardwareServoDialog{
    max-height:min(92dvh,760px) !important;
    overflow:hidden !important;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-dialog-body{
    max-height:calc(min(92dvh,760px) - 58px) !important;
    padding:14px 16px calc(16px + env(safe-area-inset-bottom,0px)) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  html:not(.phone-landscape-layout) body #hardwareServoDialog .hardware-servo-presets{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Critical alarms live outside the transient toast queue. */
.camera-system-statusbar{
  display:none;
}

@media (min-width:768px) and (pointer:fine){
  body.camera-view-active .camera-system-statusbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:90920;
    height:34px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    padding:0 18px;
    border-bottom:0;
    background:transparent;
    color:#d9dde2;
    font:500 var(--camera-status-font-size)/1 "Helvetica Neue","Inter","Segoe UI",Arial,sans-serif;
    letter-spacing:.02em;
    font-variant-numeric:tabular-nums;
    box-shadow:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    pointer-events:none;
  }
  body.camera-view-active .camera-system-statusbar::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    z-index:0;
    height:48px;
    background:linear-gradient(
      180deg,
      rgba(0,0,0,.62) 0%,
      rgba(0,0,0,.54) 24%,
      rgba(0,0,0,.4) 44%,
      rgba(0,0,0,.25) 61%,
      rgba(0,0,0,.13) 75%,
      rgba(0,0,0,.05) 87%,
      rgba(0,0,0,.015) 94%,
      transparent 100%
    );
    -webkit-backdrop-filter:blur(5px) saturate(.86) brightness(.9);
    backdrop-filter:blur(5px) saturate(.86) brightness(.9);
    -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.94) 38%,rgba(0,0,0,.62) 68%,rgba(0,0,0,.2) 88%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.94) 38%,rgba(0,0,0,.62) 68%,rgba(0,0,0,.2) 88%,transparent 100%);
    pointer-events:none;
  }
  body.camera-view-active .camera-system-statusbar::after{
    display:none;
  }
  body.camera-view-active .camera-system-statusbar > *{
    position:relative;
    z-index:1;
  }
  .camera-system-stage{
    min-width:0;
    display:flex;
    align-items:center;
    gap:18px;
    overflow:hidden;
    white-space:nowrap;
    text-shadow:none;
  }
  .camera-system-stage-name,
  .camera-system-stage-metrics{
    display:flex;
    align-items:center;
  }
  body.camera-view-active .camera-system-stage-name > strong,
  body.camera-view-active .camera-system-stage-name > span,
  body.camera-view-active .camera-system-stage-name > b,
  body.camera-view-active .camera-system-stage-metrics > span{
    text-shadow:0 7px 22px rgba(0,0,0,.42) !important;
    filter:none !important;
  }
  .camera-system-stage-name{
    flex:0 0 auto;
    gap:7px;
    color:#eef1f4;
    font:inherit;
    letter-spacing:inherit;
  }
  .camera-system-stage-name strong{font:inherit;letter-spacing:inherit}
  .camera-system-stage-name i{
    width:5px;
    height:5px;
    border-radius:50%;
    background:#69717d;
    box-shadow:0 7px 19px rgba(0,0,0,.42),0 0 0 2px rgba(105,113,125,.1) !important;
  }
  .camera-system-stage-name span{
    color:#bec5cd;
    font:inherit;
    letter-spacing:inherit;
  }
  .camera-system-stage-state{
    max-width:150px;
    overflow:hidden;
    color:#f4f6f8;
    font:inherit;
    letter-spacing:inherit;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .camera-system-stage-state.is-warn{color:#fbbf24}
  .camera-system-stage-state.is-bad{color:#fda4af}
  .camera-system-stage.is-online .camera-system-stage-name i{
    background:#45d582;
    box-shadow:0 7px 19px rgba(0,0,0,.42),0 0 0 2px rgba(69,213,130,.12),0 0 7px rgba(69,213,130,.14) !important;
  }
  .camera-system-stage.is-online .camera-system-stage-name span{
    color:#78dca5;
  }
  .camera-system-stage-metrics{
    min-width:0;
    gap:13px;
    overflow:hidden;
    color:#bdc3cb;
    font:inherit;
    letter-spacing:inherit;
  }
  .camera-system-stage-metrics span{
    flex:0 0 auto;
  }
  .camera-system-stage-metrics b{
    margin-left:3px;
    color:#f4f6f8;
    font:inherit;
    letter-spacing:inherit;
    font-variant-numeric:tabular-nums;
  }
  .camera-system-tools{
    display:flex;align-items:center;gap:14px;min-width:0;padding:0;
    font:inherit;letter-spacing:inherit;
  }
  .camera-system-clock{
    flex:0 0 auto;color:inherit;font:inherit;letter-spacing:inherit;
    font-variant-numeric:tabular-nums;white-space:nowrap;
  }
  .camera-system-action{
    flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
    width:auto;min-width:0;height:28px;margin:0;padding:0;border:0;border-radius:0;
    background:transparent;color:inherit;box-shadow:none;
    font:inherit;letter-spacing:inherit;white-space:nowrap;cursor:pointer;pointer-events:auto;
  }
  .camera-system-action:is(:hover,.is-open,.is-active,.has-unread){color:#fff}
  .camera-system-action:focus-visible{outline:1px solid rgba(255,255,255,.7);outline-offset:3px}
  body.camera-view-active :is(.alarm-history-toggle,.control-center-toggle){display:none}
  body.camera-view-active .alarm-history-panel{
    top:42px;
    left:auto;
    right:18px;
    transform:none !important;
  }
}

@media (min-width:901px) and (max-width:1250px){
  body.camera-view-active .camera-system-statusbar{
    gap:10px;
    padding:0 12px;
  }
  body.camera-view-active .alarm-history-panel{right:12px}
  .camera-system-stage{
    gap:10px;
  }
  .camera-system-stage-metrics{
    gap:8px;
  }
}

/* Independent centers use plain text buttons. */
.alarm-history-toggle,.control-center-toggle{
  position:fixed;top:2px;left:calc(50% - 38px);z-index:90950;
  width:64px;height:28px;display:flex;align-items:center;justify-content:center;
  padding:0;border:0;border-radius:0;background:transparent;color:#cfd5dd;
  font:500 12px/1 "Helvetica Neue","Inter","Segoe UI",sans-serif;
  white-space:nowrap;transform:translateX(-50%) !important;cursor:pointer;
  transition:color .15s ease;
}
.alarm-history-toggle{width:104px}
.control-center-toggle{left:calc(50% + 58px)}
:is(.alarm-history-toggle,.control-center-toggle):is(:hover,.is-open,.is-active){color:#fff;background:transparent}
:is(.alarm-history-toggle,.control-center-toggle):focus-visible{outline:1px solid rgba(255,255,255,.7);outline-offset:2px}
.alarm-history-toggle.has-unread{color:#fff}
.alarm-history-panel{
  --center-bg:#151618;
  --center-surface:#1b1d20;
  --center-control:#202226;
  --center-hover:#25272b;
  --center-active:#2c3035;
  --center-border:#35383d;
  --center-active-border:#4a4f56;
  --center-radius:16px;
  --center-card-radius:10px;
  --center-button-radius:8px;
  --center-shadow:none;
  position:fixed;
  top:38px;
  left:50%;
  z-index:90940;
  width:min(620px,calc(100vw - 32px));
  max-height:min(76dvh,650px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--center-border);
  border-radius:var(--center-radius);
  background:var(--center-bg);
  color:#eef0f3;
  box-shadow:var(--center-shadow);
  transform:translateX(-50%) !important;
}
.alarm-history-panel.hidden{ display:none !important; }

/* DAQ keeps the global control center beside the board-status trigger. */
html.sim-active.mode-daq body.daq-simulation-main .control-center-toggle{
  display:none !important;
}
html.sim-active.mode-daq body.daq-simulation-main .alarm-history-panel{
  top:38px;
  right:clamp(12px,1.25vw,24px);
  bottom:12px;
  left:auto;
  width:min(560px,calc(100vw - 32px));
  max-height:none;
  transform:none !important;
}
.alarm-history-header{
  flex:0 0 auto;
  min-height:52px;
  display:flex;
  align-items:center;
  padding:0 20px;
  border-bottom:1px solid #2c2e32;
  background:#191a1d;
}
.alarm-history-header strong{
  color:#f0f2f4;
  font-size:16px;
  line-height:1.2;
  font-weight:650;
}
/* Compact controls share the notification center's dark palette and corner sizes. */
#controlCenterPanel{
  width:min(380px,calc(100vw - 24px));
  max-height:calc(100dvh - 58px - env(safe-area-inset-bottom,0px));
  padding:14px;
  gap:10px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#ffffff36 transparent;
  border:1px solid var(--center-border);
  border-radius:var(--center-radius);
  background:var(--center-bg);
  color:#eef0f3;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:var(--center-shadow) !important;
}
#controlCenterPanel > *{flex-shrink:0;min-width:0}
.control-center-home{display:flex;flex-direction:column;gap:10px;min-width:0}
#controlCenterPanel :is(#controlCenterHome,#controlCenterContent,.control-center-back)[hidden]{display:none !important}
#controlCenterPanel.is-detail{width:min(var(--control-center-detail-width,620px),calc(100vw - 24px))}
#controlCenterPanel.is-detail > .alarm-history-header{
  position:sticky;top:-14px;z-index:20;min-height:38px;
  background:var(--center-bg);border-radius:var(--center-card-radius);
}
#controlCenterPanel.is-detail > .alarm-history-header > strong{display:none}
#controlCenterPanel .control-center-back{
  padding:6px 4px;border:0;background:none;color:#d3d7dd;
  font:500 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;
}
#controlCenterContent{min-width:0}
/* Keep each original dialog's contents and bindings; remove its fullscreen shell. */
#controlCenterPanel #controlCenterContent > .control-center-surface{
  position:relative !important;inset:auto !important;display:block !important;
  width:100% !important;height:auto !important;min-height:0 !important;max-height:none !important;
  margin:0 !important;padding:0 !important;overflow:visible !important;
  background:transparent !important;transform:none !important;opacity:1 !important;
  z-index:auto !important;pointer-events:auto !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
#controlCenterPanel #controlCenterContent > .control-center-surface > :first-child{
  position:relative !important;inset:auto !important;width:100% !important;
  max-width:none !important;min-width:0 !important;height:auto !important;
  max-height:none !important;min-height:0 !important;margin:0 !important;
  transform:none !important;opacity:1 !important;box-shadow:none !important;
  background:transparent !important;border:0 !important;border-radius:0 !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
#controlCenterPanel #controlCenterContent > .control-center-surface > :first-child::before,
#controlCenterPanel #controlCenterContent > .control-center-surface > :first-child::after{content:none !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.settings-header,.mobile-chart-picker-head){
  background:transparent !important;border-radius:0 !important;box-shadow:none !important;
}
#controlCenterPanel #controlCenterContent > .control-center-surface:is(.hidden,.is-control-center-suspended){display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-header{width:100% !important;max-width:100% !important}
#controlCenterPanel .alarm-history-header{
  display:flex;justify-content:space-between;
  min-height:30px;padding:0 3px 4px;
  border:0;background:transparent;
}
#controlCenterPanel .alarm-history-header strong{font-size:14px;font-weight:600}
#controlCenterPanel .control-center-close{
  padding:6px 4px;border:0;background:transparent;
  color:#bfc3c8;font-size:11px;cursor:pointer;
}
#controlCenterPanel .control-center-close:hover{color:#fff}
.control-center-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.control-center-shortcuts{display:grid;gap:10px}
body:not(.camera-view-active) .control-center-overview{grid-template-columns:minmax(0,1fr)}
body:not(.camera-view-active) .control-center-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
#controlCenterPanel :is(.alarm-control-button,.control-center-display,.scene3d-controls,.alarm-control-more-toggle){
  border:1px solid var(--center-border);
  border-radius:var(--center-card-radius);
  background:var(--center-surface);
  box-shadow:none !important;
}
#controlCenterPanel :is(.alarm-control-button,.control-center-display){
  display:flex;min-width:0;align-items:center;gap:10px;
  padding:12px;color:#edf0f3;text-align:left;
  cursor:pointer;transform:none !important;
  font:500 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition:background .15s,border-color .15s;
}
#controlCenterPanel .alarm-control-button{min-height:56px}
#controlCenterPanel :is(.alarm-control-button,.control-center-display):hover{
  background:var(--center-hover);border-color:var(--center-active-border);
}
#controlCenterPanel .alarm-control-button.is-active{background:var(--center-active);border-color:var(--center-active-border)}
#controlCenterPanel :is(.alarm-control-button,.control-center-display) svg{
  flex:0 0 auto;width:22px;height:22px;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.control-center-shortcut-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.control-center-shortcut-copy strong{font-size:12px;font-weight:600}
.control-center-shortcut-copy small{font-size:10px;color:#b2b6bc;white-space:nowrap}
#controlCenterPanel .control-center-display{
  display:none;flex-direction:column;align-items:flex-start;justify-content:center;
  width:100%;gap:5px;margin:0;padding:16px;
}
#controlCenterPanel .control-center-display svg{width:32px;height:32px;margin-bottom:6px}
#controlCenterPanel .control-center-display strong{font-size:12px;font-weight:600}
#controlCenterPanel .control-center-display span{font-size:10px;font-weight:400;color:#b2b6bc}
#controlCenterPanel .alarm-control-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  padding:0;background:transparent;
}
#controlCenterPanel .alarm-control-grid .alarm-control-button{
  min-height:44px;padding:8px;gap:6px;justify-content:center;border-radius:var(--center-card-radius);
}
#controlCenterPanel .alarm-control-grid svg{width:16px;height:16px}
#controlCenterPanel .alarm-control-grid span{font-size:11px;white-space:nowrap}
#controlCenterPanel .scene3d-controls{margin:0;padding:13px;gap:7px;font-size:11px;color:#eef0f3}
#controlCenterPanel .scene3d-heading{margin-bottom:3px}
#controlCenterPanel .scene3d-heading strong{font-size:12px}
#controlCenterPanel .scene3d-controls button{
  min-height:34px;padding:0 5px;border:1px solid var(--center-border);
  border-radius:var(--center-button-radius);background:var(--center-control);color:#c4c9cf;
}
#controlCenterPanel .scene3d-presets{gap:3px;padding:3px;border-radius:var(--center-card-radius);background:var(--center-bg)}
#controlCenterPanel .scene3d-presets button{min-height:30px;border:0;background:transparent}
#controlCenterPanel .scene3d-controls button:hover:not(:disabled){background:var(--center-hover);color:#fff}
#controlCenterPanel .scene3d-controls button[aria-pressed="true"]{background:var(--center-active);color:#fff;border-color:var(--center-active-border)}
#controlCenterPanel .scene3d-controls button:disabled{opacity:.35;cursor:default}
#controlCenterPanel .alarm-control-more-toggle{
  display:flex;align-items:center;justify-content:space-between;
  min-height:56px;gap:10px;margin:0;padding:12px 14px;color:#e6e9ed;
  cursor:pointer;transform:none !important;
}
.alarm-control-more-toggle-label{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.alarm-control-more-toggle-label strong{font-size:12px;font-weight:600}
.alarm-control-more-toggle-label small{font-size:10px;color:#aeb4bd}
.alarm-control-more-chevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .16s}
.alarm-control-more-toggle.is-active .alarm-control-more-chevron,
.control-center-scene[open] > summary .alarm-control-more-chevron{transform:rotate(180deg)}
#controlCenterPanel .control-center-scene > summary{list-style:none}
#controlCenterPanel .control-center-scene > summary::-webkit-details-marker{display:none}
#controlCenterPanel .control-center-scene[open] > summary{margin-bottom:8px}
#controlCenterPanel .control-center-scene:not([open]) > .scene3d-controls{display:none}
#controlCenterPanel .alarm-control-more-toggle:hover{background:var(--center-hover)}
#controlCenterPanel .alarm-control-more{padding:0 2px 2px;border:0;background:transparent}
.alarm-control-more.hidden{display:none !important}
.control-center-command-group + .control-center-command-group{margin-top:12px}
.control-center-command-group h3{margin:1px 0 7px;padding:0 3px;font-size:10px;font-weight:500;color:#acb2ba}
.alarm-control-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.alarm-control-more-grid button{
  display:flex;align-items:center;min-width:0;min-height:38px;gap:8px;padding:8px 10px;
  border:1px solid var(--center-border);border-radius:var(--center-button-radius);background:var(--center-control);color:#d3d7dc;
  font-size:11px;text-align:left;cursor:pointer;transform:none !important;
}
.alarm-control-more-grid button svg{flex:0 0 auto;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.alarm-control-more-grid button:hover:not(:disabled){background:var(--center-hover);border-color:var(--center-active-border);color:#fff}
.alarm-control-more-grid button.is-active{background:var(--center-active);border-color:var(--center-active-border);color:#fff}
.alarm-control-more-grid button:disabled{opacity:.35;cursor:not-allowed}
#controlCenterPanel :is(button,a):focus-visible{outline:2px solid #d9dde3;outline-offset:2px}
@media(min-width:768px) and (pointer:fine){
  body.camera-view-active #controlCenterPanel .control-center-display{display:flex}
}
@media(max-width:767px),(pointer:coarse){
  .control-center-overview{grid-template-columns:minmax(0,1fr)}
  .control-center-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

#controlCenterPanel .control-center-sim-start{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px;padding:12px 14px;border:1px solid var(--center-border);border-radius:var(--center-card-radius);background:var(--center-surface);color:#edf1f4;text-align:left;cursor:pointer}
#controlCenterPanel .control-center-sim-start[hidden]{display:none!important}
.control-center-sim-start span{display:flex;flex-direction:column;gap:5px}
.control-center-sim-start strong{font-size:12px;font-weight:600}
.control-center-sim-start small{font-size:10px;color:#aeb8c2}
.control-center-sim-start b{font-size:11px;font-weight:500;color:#d4e4df}
.control-center-sim-start:disabled{opacity:.4;cursor:default}

/* DAQ has its own operations; flight tools remain available only in flight mode. */
.control-center-flight-controls{display:flex;flex-direction:column;gap:10px;min-width:0}
.control-center-daq-controls{display:none}
html.sim-active.mode-daq #controlCenterHome>.control-center-flight-controls{display:none}
html.sim-active.mode-daq #controlCenterHome>.control-center-daq-controls{display:flex;flex-direction:column;gap:10px;min-width:0}
html.sim-active.mode-daq body.daq-simulation-main #controlCenterPanel{width:min(380px,calc(100vw - 24px));height:auto;bottom:auto;max-height:calc(100dvh - 58px - env(safe-area-inset-bottom,0px))}
html.sim-active.mode-daq #controlCenterPanel,
html.sim-active.mode-daq #controlCenterContent{scrollbar-width:none}
html.sim-active.mode-daq #controlCenterPanel::-webkit-scrollbar,
html.sim-active.mode-daq #controlCenterContent::-webkit-scrollbar{display:none;width:0;height:0}
#controlCenterPanel .control-center-daq-controls{--ui-bg:var(--center-bg);--ui-surface:var(--center-surface);--ui-line:var(--center-border);--ui-text:#eef0f3;--ui-muted:#aab2bd}
#controlCenterPanel .control-center-daq-controls .daq-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:20px;padding:0;border:0;background:transparent}
#controlCenterPanel .control-center-daq-controls .daq-panel-head>div{display:flex;flex-direction:column;gap:5px}
#controlCenterPanel .control-center-daq-controls .daq-panel-head strong{margin:0;color:#eef0f3;font-size:13px;font-weight:650;letter-spacing:.04em}
#controlCenterPanel .control-center-daq-controls .daq-panel-head small{color:#aab2bd;font-size:9px;font-weight:550;letter-spacing:.1em}
#controlCenterPanel .control-center-daq-controls .daq-panel-head>em{color:#aab2bd;font-size:10px;font-style:normal}
#controlCenterPanel .control-center-daq-controls .daq-run-panel{padding:12px 14px;border:1px solid var(--center-border);border-radius:var(--center-card-radius);background:var(--center-surface)}
#controlCenterPanel .control-center-daq-controls .daq-sequence-actions{padding:12px 0 0;gap:7px}
#controlCenterPanel .control-center-daq-controls :is(.daq-sequence-actions,.daq-valve-actions) button{min-height:38px;font-size:10px;font-weight:600;letter-spacing:0;border-radius:var(--center-button-radius)}
#controlCenterPanel .control-center-daq-controls .daq-pid-tool{min-height:32px;font-size:10px;font-weight:600;letter-spacing:0}
#controlCenterPanel .daq-center-interlock{margin:10px 0 0;color:#c9a363;font-size:10px;letter-spacing:.025em}
#controlCenterPanel .daq-center-interlock.is-ready{color:#92b8a6}
#controlCenterPanel .daq-valve-command-note{margin:0;padding:6px 0 12px;gap:4px;font-size:9px;line-height:1.5;font-weight:500;letter-spacing:0}
#controlCenterPanel .daq-valve-command-note span{color:#aab2bd}
#controlCenterPanel .daq-valve-grid{flex:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:9px;overflow:visible;padding:0}
#controlCenterPanel .daq-valve-group-label{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:8px 0 0;padding:10px 0 0;border-top:1px solid var(--center-border);font-size:11px;font-weight:600;line-height:1.4}
#controlCenterPanel .daq-valve-group-label:first-child{margin:0;padding:0;border:0}
#controlCenterPanel .daq-valve-group-label small{color:#aab2bd;font-size:9px;font-weight:450}
#controlCenterPanel .daq-valve-group-label.is-water span{color:#9ab5ce}
#controlCenterPanel .daq-valve-group-label.is-ethanol span{color:#d5ba91}
#controlCenterPanel .daq-valve-group-label.is-gox span{color:#c69b9e}
#controlCenterPanel .daq-valve-control{min-width:0;min-height:108px;border-radius:var(--center-card-radius);background:var(--center-surface)}
#controlCenterPanel .daq-valve-control>button{display:grid;grid-template-columns:30px minmax(0,1fr);width:100%;min-height:62px;padding:10px;gap:4px 8px;border:0;border-radius:0;background:transparent;text-align:left}
#controlCenterPanel .daq-valve-control>button>span{grid-row:1/3;width:30px;height:30px;font-size:10px}
#controlCenterPanel .daq-valve-control>button strong{font-size:10px;line-height:1.3;font-weight:600;white-space:normal;text-overflow:clip}
#controlCenterPanel .daq-valve-control>button em{font-size:9px;line-height:1.3;font-weight:500}
#controlCenterPanel .daq-valve-control>button.is-open{background:#80b69710}
#controlCenterPanel .daq-valve-opening{grid-template-columns:auto minmax(0,1fr) 32px;gap:6px;padding:0 10px 8px;font-size:10px}
#controlCenterPanel .daq-valve-opening input{min-height:28px}
#controlCenterPanel .daq-valve-actions{position:sticky;bottom:-14px;z-index:2;margin:12px 0 0;padding:12px 0 0;background:var(--center-bg);border-top:1px solid var(--center-border);gap:8px}
@media(max-width:420px){#controlCenterPanel .daq-valve-grid{grid-template-columns:1fr}}

/* DAQ uses the same cards, expandable group and muted buttons as flight controls. */
#controlCenterPanel .daq-valve-section-body{padding:12px 2px 2px}
#controlCenterPanel .daq-valve-section:not([open])>.daq-valve-section-body{display:none}
#controlCenterPanel .daq-center-valve-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
#controlCenterPanel .daq-center-valve-toolbar>strong{font-size:10px;font-weight:500;color:#acb2ba}
#controlCenterPanel .daq-run-panel .daq-panel-head strong{font-size:12px;font-weight:600;letter-spacing:0}
#controlCenterPanel .control-center-daq-controls .daq-sequence-actions button{background:var(--center-control);border-color:var(--center-border);color:#d3d7dc;font-size:10px;font-weight:500}
#controlCenterPanel .control-center-daq-controls .daq-sequence-actions button:hover:not(:disabled){background:var(--center-hover);border-color:var(--center-active-border);color:#fff}
#controlCenterPanel #daqRunBtn:not(:disabled),#controlCenterPanel #daqArmBtn.is-armed{background:var(--center-active);border-color:var(--center-active-border);color:#fff}
#controlCenterPanel #daqAbortBtn.is-abort{color:#dfb8be;border-color:#bb788134;background:#8b465116}


.alarm-history-section{
  min-height:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  border-top:1px solid #2c2e32;
  background:#151618;
}
.daq-control-event-section{ display:none; }
html.sim-active.mode-daq .alarm-history-flight-section{ display:none; }
html.sim-active.mode-daq .daq-control-event-section{ display:flex; }
.daq-control-event-item .alarm-history-item-meta strong{
  color:#8f98a5;
  font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
}
.daq-control-event-item.tone-success .alarm-history-item-meta strong{ color:#43d17c; }
.daq-control-event-item.tone-warn .alarm-history-item-meta strong{ color:#f0b35a; }
.daq-control-event-item.tone-error .alarm-history-item-meta strong{ color:#f87171; }
.daq-control-event-item > p{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
}
.alarm-history-section-header{
  flex:0 0 auto;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 18px 0 20px;
}
.alarm-history-section-header > div{
  display:flex;
  align-items:baseline;
  gap:9px;
}
.alarm-history-section-header strong{
  color:#dfe2e6;
  font-size:13px;
  font-weight:650;
}
.alarm-history-section-header span{
  color:#858b95;
  font:650 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.alarm-history-section-header button{
  min-width:72px;
  height:30px;
  padding:0 11px;
  border:1px solid #35383d;
  border-radius:6px;
  background:#202226;
  color:#a8adb5;
  font-size:11px;
  transform:none !important;
  cursor:pointer;
}
.alarm-history-section-header button:hover{
  border-color:#45484e;
  background:#25272b;
  color:#f1f2f4;
  transform:none !important;
}
.alarm-history-list{
  min-height:104px;
  max-height:min(36dvh,330px);
  padding:8px 0;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.alarm-history-empty{
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#737b86;
  font-size:12px;
}
.alarm-history-item{
  position:relative;
  margin:0 12px;
  padding:14px 14px 15px 26px;
  border-bottom:1px solid #2c2e32;
}
.alarm-history-item:last-child{ border-bottom:0; }
.alarm-history-item::before{
  content:"";
  position:absolute;
  top:19px;
  left:10px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#8b949f;
}
.alarm-history-item.tone-error::before{ background:#f87171; }
.alarm-history-item.tone-warn::before{ background:#f0b35a; }
.alarm-history-item.tone-success::before{ background:#43d17c; }
.alarm-history-item-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.alarm-history-item-meta strong{
  overflow:hidden;
  color:#e4e7eb;
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.alarm-history-item-meta time{
  flex:0 0 auto;
  color:#717985;
  font:550 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.alarm-history-item p{
  margin:7px 0 0;
  color:#aeb4bd;
  font-size:12px;
  line-height:1.5;
  word-break:keep-all;
}

/* Notifications stay compact beside the independent control center. */
#alarmHistoryPanel{width:min(380px,calc(100vw - 24px))}
#alarmHistoryPanel .alarm-history-header{min-height:46px;padding:0 16px}
#alarmHistoryPanel .alarm-history-header strong{font-size:14px}
#alarmHistoryPanel .alarm-history-section-header{min-height:40px;padding:0 14px 0 16px;gap:8px}
#alarmHistoryPanel .alarm-history-item{margin:0 8px;padding:12px 10px 13px 26px}
#alarmHistoryPanel .alarm-history-item::before{top:17px}
#alarmHistoryPanel .alarm-history-item-meta{align-items:baseline;gap:10px}
#alarmHistoryPanel .alarm-history-item-meta strong{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#alarmHistoryPanel .alarm-history-item p{overflow-wrap:anywhere}
#alarmHistoryPanel .alarm-history-section-header button{border-radius:var(--center-button-radius)}

@media (min-width:901px){
  body.dashboard-view-active #controlsCard.controls-card,
  .desktop-control-drawer-mount #controlsCard.controls-card{
    right:18px !important;
    width:min(410px,calc(100vw - 36px)) !important;
  }
}

@media (max-width:600px){
  .alarm-history-panel{
    top:36px;
    width:calc(100vw - 20px);
    max-height:calc(100dvh - 48px);
  }

}

.critical-alert-stack{
  position:fixed;
  top:auto;
  right:18px;
  bottom:clamp(18px,3.2vh,34px);
  left:auto;
  z-index:91000;
  width:min(440px,calc(100vw - 32px));
  max-height:min(42dvh,300px);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  overflow-y:auto;
  overscroll-behavior:contain;
  transform:none;
  pointer-events:none;
}
.critical-alert{
  position:relative;
  width:100%;
  min-height:0;
  padding:13px 16px 14px;
  display:block;
  border:1px solid rgba(148,163,184,.22);
  border-radius:8px;
  background:rgba(15,20,28,.97);
  color:#f8fafc;
  box-shadow:0 8px 20px rgba(2,6,23,.28);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .18s ease,transform .18s ease,border-color .18s ease;
  pointer-events:auto;
  overflow-x:hidden;
  overflow-y:auto;
}
.critical-alert.is-visible{
  opacity:1;
  transform:none;
}
.critical-alert.is-leaving{
  opacity:0;
  transform:translateY(6px);
}
.critical-alert.is-updated{
  border-color:rgba(248,113,113,.38);
}
.critical-alert-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.critical-alert-meta{
  min-height:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.critical-alert-label{
  color:#f87171;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
}
.critical-alert-repeat{
  min-width:18px;
  margin-left:auto;
  padding:0;
  border:0;
  border-radius:0;
  color:#a9afb9;
  font:650 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  text-align:center;
}
.critical-alert-title{
  color:#e5e7eb;
  font-size:11px;
  line-height:1.2;
  font-weight:650;
  letter-spacing:.01em;
}
.critical-alert-text{
  color:#cbd5e1;
  font-size:12.5px;
  line-height:1.45;
  font-weight:400;
  word-break:keep-all;
}

@media (max-width:700px){
  .critical-alert-stack{
    top:auto;
    right:12px;
    bottom:calc(var(--mobile-nav-height, 72px) + var(--mobile-nav-gap, 12px) + env(safe-area-inset-bottom,0px) + 12px);
    left:auto;
    width:min(390px,calc(100vw - 24px));
    max-height:min(40dvh,280px);
    gap:8px;
    transform:none;
  }
  .critical-alert{
    min-height:0;
    padding:12px 14px 13px;
    border-radius:8px;
  }
  .critical-alert-title{
    font-size:10.5px;
  }
  .critical-alert-text{
    font-size:11.5px;
  }
}

/* One notification rail for every view and severity. */
.notification-rail{
  position:fixed;
  top:calc(env(safe-area-inset-top,0px) + 62px);
  right:calc(18px + env(safe-area-inset-right,0px));
  bottom:auto;
  left:auto;
  z-index:91000;
  width:min(440px,calc(100vw - 32px));
  max-height:calc(100dvh - 78px);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  pointer-events:none;
}
html body .notification-rail > .critical-alert-stack,
html body .notification-rail > .toast-container{
  position:static !important;
  inset:auto !important;
  width:100% !important;
  max-width:none !important;
  max-height:min(42dvh,300px) !important;
  margin:0 !important;
  transform:none !important;
  align-items:stretch !important;
  overflow-y:auto !important;
}
.notification-rail .toast{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  pointer-events:auto;
}
.notification-rail .toast,
.notification-rail .toast-expanded,
.notification-rail .critical-alert{
  border-radius:0 !important;
  background:rgba(13,17,23,.98) !important;
  box-shadow:none !important;
}
.notification-rail .toast{
  border:1px solid rgba(148,163,184,.24) !important;
  border-left:3px solid var(--toast-accent) !important;
}
.notification-rail .critical-alert{
  border:1px solid rgba(148,163,184,.24) !important;
  border-left:3px solid #ef7180 !important;
}
@media (max-width:700px){
  .notification-rail{
    top:calc(env(safe-area-inset-top,0px) + 58px);
    right:calc(12px + env(safe-area-inset-right,0px));
    width:min(390px,calc(100vw - 24px));
    max-height:calc(100dvh - 70px);
  }
  html body .notification-rail > .critical-alert-stack,
  html body .notification-rail > .toast-container{
    max-height:min(40dvh,280px) !important;
  }
}

/* Keep the mission label centered; desktop instruments share the lower edge. */
@media (min-width:768px) and (pointer:fine){
  body.camera-view-active .camera-sequence-heading{
    position:fixed;
    left:50%;
    bottom:calc(14px + env(safe-area-inset-bottom,0px));
    z-index:12;
    width:min(720px,70vw);
    justify-content:center;
    transform:translateX(-50%);
    pointer-events:none;
  }
  body.camera-view-active .camera-sequence-heading .camera-sequence-kicker{
    max-width:100%;
    text-align:center;
  }
}

@media (prefers-reduced-motion:reduce){
  :where(button,[role="button"],.settings-dialog,.confirm-dialog,.reboot-dialog){
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

/* Desktop replay transport: keep the flight view visible and dock playback
   controls to the lower edge instead of opening the command side drawer. */
.replay-dock-close{
  display:none;
}
.replay-dock-minimize,
.replay-dock-restore{
  display:none;
}
.replay-tools-panel{
  position:fixed;
  top:50%;
  right:92px;
  z-index:82;
  width:min(310px,calc(100vw - 132px));
  padding:0;
  overflow:hidden;
  border:1px solid #373b43;
  border-radius:10px;
  background:#17191d;
  box-shadow:0 22px 58px rgba(0,0,0,.46);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(12px,-50%);
  transition:opacity .16s ease,transform .2s cubic-bezier(.2,.78,.28,1),visibility 0s linear .2s;
}
.replay-tools-panel.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(0,-50%);
  transition:opacity .16s ease,transform .2s cubic-bezier(.2,.78,.28,1),visibility 0s;
}
.replay-tools-head{
  min-height:60px;
  padding:0 12px 0 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #2d3036;
  background:#1a1c20;
}
.replay-tools-title{
  color:#f1f2f4;
  font-size:13px;
  line-height:1.2;
  font-weight:680;
  letter-spacing:.12em;
}
.replay-tools-subtitle{
  margin-top:4px;
  color:#777d87;
  font-size:9px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.replay-tools-close{
  width:32px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#969ba4;
  font-size:22px;
  line-height:1;
  font-weight:300;
}
.replay-tools-close:hover{
  border-color:#393d45;
  background:#24272c;
  color:#f3f4f6;
}
.replay-tools-actions{
  display:grid;
  gap:8px;
  padding:14px;
}
.replay-tool-action{
  width:100%;
  min-height:62px;
  padding:0 13px;
  display:flex;
  align-items:center;
  gap:11px;
  border:1px solid #32363e;
  border-radius:7px;
  background:#1c1f24;
  color:#e5e7eb;
  text-align:left;
  box-shadow:none;
}
.replay-tool-action:hover:not(:disabled){
  border-color:#525864;
  background:#23262c;
}
.replay-tool-action-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border:1px solid #3a3f48;
  border-radius:6px;
  color:#b5bac3;
}
.replay-tool-action-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.replay-tool-action strong,
.replay-tool-action small{
  display:block;
}
.replay-tool-action strong{
  color:#e9eaec;
  font-size:11px;
  line-height:1.2;
  font-weight:650;
}
.replay-tool-action small{
  margin-top:4px;
  color:#858b95;
  font-size:9px;
  line-height:1.25;
  font-weight:500;
}
.replay-tools-panel .replay-export-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}
.replay-tools-panel .replay-convert-btn{
  width:100%;
  min-width:0;
  min-height:48px;
  padding:0 8px;
  border:1px solid #32363e;
  border-radius:7px;
  background:#1c1f24;
  color:#b9bec7;
  box-shadow:none;
}
.replay-tools-panel .replay-convert-btn:hover:not(:disabled){
  border-color:#525864;
  background:#23262c;
  color:#f1f2f4;
  transform:none;
  box-shadow:none;
}
.replay-tools-panel .replay-convert-btn .replay-btn-label{
  font-size:9px;
  font-weight:620;
  white-space:nowrap;
}
.replay-tools-panel .replay-convert-btn svg{
  width:15px;
  height:15px;
}
.replay-tools-panel :is(button:disabled){
  opacity:.42;
  cursor:not-allowed;
}

.replay-link-status-overlay{
  position:fixed;
  inset:0;
  z-index:2147483645;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(4,6,9,.74);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.replay-link-status-overlay.hidden{
  display:none !important;
}
.replay-hud-live-overlay{
  position:fixed;
  inset:0;
  z-index:2147483646;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(4,6,9,.76);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.replay-hud-live-overlay.hidden{
  display:none !important;
}
.replay-hud-live-dialog{
  width:min(760px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  overflow:auto;
  border:1px solid #3a3e46;
  border-radius:11px;
  background:#15171b;
  color:#eceef1;
  box-shadow:0 30px 90px rgba(0,0,0,.58);
}
.replay-hud-live-head{
  min-height:102px;
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid #30343b;
  background:#181a1e;
}
.replay-hud-live-kicker{
  margin-bottom:7px;
  color:#7f8792;
  font:650 9px/1.2 var(--font-mono,ui-monospace,monospace);
  letter-spacing:.16em;
}
.replay-hud-live-head h2{
  margin:0;
  color:#f2f3f5;
  font-size:25px;
  line-height:1.05;
  font-weight:680;
  letter-spacing:.08em;
}
.replay-hud-live-head p{
  margin:8px 0 0;
  color:#9197a1;
  font-size:12px;
  line-height:1.55;
  font-weight:500;
}
.replay-hud-live-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid #3b3f47;
  border-radius:7px;
  background:#202329;
  color:#aeb3bc;
  font-size:26px;
  line-height:1;
  font-weight:250;
}
.replay-hud-live-close:hover{
  border-color:#555b65;
  background:#272a30;
  color:#fff;
}
.replay-hud-live-body{
  padding:22px 24px 24px;
}
.replay-hud-live-status{
  min-height:46px;
  padding:0 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid #30343b;
  border-radius:7px;
  background:#1b1e23;
  color:#8d949e;
  font:650 10px/1 var(--font-mono,ui-monospace,monospace);
  letter-spacing:.1em;
}
.replay-hud-live-status span{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#d9dde3;
}
.replay-hud-live-status span.is-offline{
  color:#a7adb6;
}
.replay-hud-live-status i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#35d47a;
  box-shadow:0 0 0 4px rgba(53,212,122,.1);
}
.replay-hud-live-status span.is-offline i{
  background:#737b87;
  box-shadow:none;
}
.replay-hud-live-status strong{
  font:inherit;
  color:#777e88;
}
.replay-hud-live-url-field{
  display:block;
  margin-top:19px;
}
.replay-hud-live-url-field > span{
  display:block;
  margin:0 0 8px 2px;
  color:#858c97;
  font:650 9px/1.2 var(--font-mono,ui-monospace,monospace);
  letter-spacing:.13em;
}
.replay-hud-live-url-field > div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:8px;
}
.replay-hud-live-url-field input{
  width:100%;
  height:48px;
  min-width:0;
  padding:0 14px;
  border:1px solid #353941;
  border-radius:7px;
  outline:none;
  background:#101216;
  color:#cfd3d9;
  font:550 11px/1 var(--font-mono,ui-monospace,monospace);
}
.replay-hud-live-url-field input:focus{
  border-color:#5b626e;
}
.replay-hud-live-url-field button{
  border:1px solid #d8dadd;
  border-radius:7px;
  background:#e6e7e9;
  color:#15171a;
  font-size:11px;
  font-weight:720;
}
.replay-hud-live-steps{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid #30343b;
  border-bottom:1px solid #30343b;
}
.replay-hud-live-steps article{
  min-height:116px;
  padding:19px 18px 18px 0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:11px;
}
.replay-hud-live-steps article + article{
  padding-left:20px;
  border-left:1px solid #30343b;
}
.replay-hud-live-steps article > span{
  color:#747b86;
  font:650 10px/1.4 var(--font-mono,ui-monospace,monospace);
  letter-spacing:.1em;
}
.replay-hud-live-steps strong{
  display:block;
  color:#e6e8eb;
  font-size:12px;
  line-height:1.35;
  font-weight:680;
}
.replay-hud-live-steps p{
  margin:7px 0 0;
  color:#888f99;
  font-size:11px;
  line-height:1.55;
  font-weight:480;
}
.replay-hud-live-note{
  margin:17px 2px 0;
  color:#8b929c;
  font-size:11px;
  line-height:1.55;
  font-weight:500;
}
.replay-hud-live-actions{
  margin-top:19px;
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:8px;
}
.replay-hud-live-actions button{
  min-height:48px;
  border-radius:7px;
  font-size:11px;
  font-weight:700;
}
.replay-hud-live-actions .is-secondary{
  border:1px solid #3b3f47;
  background:#202329;
  color:#c3c7ce;
}
.replay-hud-live-actions .is-primary{
  border:1px solid #dfe1e4;
  background:#e7e8ea;
  color:#15171a;
}
.replay-hud-live-actions button:hover{
  filter:brightness(1.08);
}
.replay-link-status-dialog{
  width:min(820px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  overflow:hidden;
  border:1px solid #3a3e46;
  border-radius:11px;
  background:#15171b;
  color:#eceef1;
  box-shadow:0 30px 90px rgba(0,0,0,.58);
}
.replay-link-status-head{
  min-height:92px;
  padding:21px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid #30343b;
  background:#181a1e;
}
.replay-link-status-kicker{
  color:#7f8793;
  font-size:9px;
  font-weight:700;
  letter-spacing:.17em;
}
.replay-link-status-head h2{
  margin:5px 0 0;
  color:#f3f4f6;
  font-size:24px;
  line-height:1.1;
  font-weight:680;
  letter-spacing:-.03em;
}
.replay-link-status-head p{
  margin:6px 0 0;
  color:#858b95;
  font-size:11px;
  line-height:1.4;
}
.replay-link-status-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #3a3e46;
  border-radius:7px;
  background:#202329;
  color:#a7acb5;
  font-size:25px;
  line-height:1;
  font-weight:300;
}
.replay-link-status-close:hover{
  border-color:#555b66;
  background:#272a30;
  color:#f4f5f6;
}
.replay-link-status-body{
  padding:20px 24px 18px;
  overflow:auto;
}
.replay-link-status-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(112px,.72fr);
  border:1px solid #31353c;
  border-radius:8px;
  overflow:hidden;
  background:#181a1e;
}
.replay-link-status-metric,
.replay-link-status-state{
  min-height:68px;
  padding:13px 15px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-right:1px solid #30343b;
}
.replay-link-status-summary > :last-child{
  border-right:0;
}
.replay-link-status-metric span{
  color:#747b87;
  font-size:8px;
  font-weight:700;
  letter-spacing:.13em;
}
.replay-link-status-metric strong{
  margin-top:7px;
  color:#e7e9ec;
  font-size:18px;
  line-height:1;
  font-weight:600;
}
.replay-link-status-state{
  align-items:center;
  gap:7px;
  flex-direction:row;
  color:#8c929c;
}
.replay-link-status-state span{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#676d77;
}
.replay-link-status-state strong{
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
}
.replay-link-status-state.is-linked{
  color:#49d889;
}
.replay-link-status-state.is-linked span{
  background:#25ca70;
  box-shadow:0 0 10px rgba(37,202,112,.35);
}
.replay-link-status-state.is-offline{
  color:#b3b7bf;
}
.replay-link-chart-shell{
  margin-top:14px;
  border:1px solid #31353c;
  border-radius:8px;
  overflow:hidden;
  background:#111317;
}
.replay-link-chart-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:6px;
  gap:6px;
  border-bottom:1px solid #2d3138;
  background:#181a1e;
}
.replay-link-chart-tab{
  min-height:36px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#878d97;
  font-size:11px;
  font-weight:650;
  box-shadow:none;
}
.replay-link-chart-tab:hover{
  background:#202329;
  color:#c9cdd3;
}
.replay-link-chart-tab.is-active{
  border-color:#4a4f59;
  background:#e7e9ec;
  color:#17191d;
}
.replay-link-chart-stage{
  position:relative;
  height:292px;
  min-height:220px;
  padding:16px 14px 8px;
}
.replay-link-chart-stage canvas{
  width:100%;
  height:100%;
  display:block;
}
.replay-link-chart-value{
  position:absolute;
  z-index:2;
  top:14px;
  right:18px;
  font-size:12px;
  font-weight:650;
  pointer-events:none;
}
.replay-link-chart-empty{
  position:absolute;
  z-index:3;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:32px;
  background:#111317;
  text-align:center;
}
.replay-link-chart-empty.hidden{
  display:none;
}
.replay-link-chart-empty strong{
  color:#d5d8dd;
  font-size:14px;
  font-weight:650;
}
.replay-link-chart-empty span{
  color:#7f8691;
  font-size:11px;
  line-height:1.5;
}
.replay-link-status-foot{
  min-height:35px;
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#757c87;
  font-size:9px;
  font-weight:650;
  letter-spacing:.08em;
}
html.replay-ui-active body .side-nav-mobile .js-controls-open{
  opacity:1 !important;
  filter:none !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}

@media (min-width:901px) and (pointer:fine){
  html.replay-ui-active.control-drawer-open body.dashboard-view-active #controlsCard.controls-card.replay-mode,
  html.replay-ui-active.control-drawer-open .desktop-control-drawer-mount #controlsCard.controls-card.replay-mode{
    top:auto !important;
    right:auto !important;
    bottom:max(18px,env(safe-area-inset-bottom,0px)) !important;
    left:50% !important;
    width:min(1180px,calc(100vw - 176px)) !important;
    max-width:1180px !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    overflow:visible !important;
    border:1px solid rgba(122,128,139,.44) !important;
    border-radius:10px !important;
    background:rgba(18,20,24,.96) !important;
    box-shadow:0 18px 52px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.025) inset !important;
    -webkit-backdrop-filter:blur(18px) !important;
    backdrop-filter:blur(18px) !important;
    transform:translate(-50%,0) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    z-index:80 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode #controlsHeader,
  html.replay-ui-active .desktop-control-drawer-mount #controlsCard.replay-mode #controlsHeader{
    display:none !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-panel,
  html.replay-ui-active .desktop-control-drawer-mount #controlsCard.replay-mode .replay-panel{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:14px 50px 14px 16px !important;
    overflow:visible !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-layout-row{
    display:grid !important;
    grid-template-columns:minmax(150px,210px) minmax(360px,1fr) !important;
    align-items:center !important;
    gap:16px !important;
    width:100% !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-file-row{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding-top:15px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-file-row::before{
    content:"REPLAY";
    position:absolute;
    top:0;
    left:1px;
    color:#858b96;
    font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
    letter-spacing:.16em;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone,
  html.replay-ui-active #controlsCard.replay-mode .replay-panel.replay-empty .replay-dropzone{
    width:100% !important;
    min-height:44px !important;
    max-height:44px !important;
    padding:0 11px !important;
    display:grid !important;
    grid-template-columns:20px minmax(0,1fr) !important;
    align-items:center !important;
    justify-content:start !important;
    gap:8px !important;
    border:1px solid #343840 !important;
    border-radius:7px !important;
    background:#1a1d22 !important;
    color:#c8ccd3 !important;
    text-align:left !important;
    box-shadow:none !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone:hover{
    border-color:#565c67 !important;
    background:#202329 !important;
    color:#f0f1f3 !important;
    transform:none !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone-icon{
    display:flex !important;
    width:18px !important;
    height:18px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone-icon svg{
    width:16px !important;
    height:16px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone-title{
    min-width:0 !important;
    overflow:hidden !important;
    color:#d8dbe0 !important;
    font-size:11px !important;
    font-weight:620 !important;
    line-height:1.2 !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dropzone-guide{
    display:none !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-playback-box{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:7px !important;
    min-width:0 !important;
    padding:0 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-seek-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:12px !important;
    min-width:0 !important;
    padding:0 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-seek-row input[type="range"]{
    height:3px !important;
    min-width:0 !important;
    background:#41464f !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-seek-row input[type="range"]::-webkit-slider-thumb{
    width:11px !important;
    height:11px !important;
    border:2px solid #15171b !important;
    background:#f2f3f5 !important;
    box-shadow:0 0 0 1px #7d838e !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-seek-row input[type="range"]::-moz-range-thumb{
    width:9px !important;
    height:9px !important;
    border:2px solid #15171b !important;
    background:#f2f3f5 !important;
    box-shadow:0 0 0 1px #7d838e !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-seek-label{
    min-width:142px !important;
    color:#a3a8b1 !important;
    font-size:10px !important;
    text-align:right !important;
    white-space:nowrap !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-action-row{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    min-width:0 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-control-row{
    gap:3px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-icon-only{
    width:30px !important;
    height:30px !important;
    min-height:30px !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    color:#aeb3bc !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-icon-only:hover:not(:disabled){
    border-color:#363a42 !important;
    background:#24272c !important;
    color:#f2f3f5 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-icon-only.replay-icon-btn-start{
    color:#f2f3f5 !important;
    background:#2b2f36 !important;
    border-color:#464c57 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-row{
    min-width:0 !important;
    margin-left:auto !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons{
    gap:3px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .pill.replay-speed-btn{
    height:27px !important;
    min-height:27px !important;
    padding:0 7px !important;
    border:1px solid transparent !important;
    border-radius:5px !important;
    color:#8f949d !important;
    font-size:9px !important;
    font-weight:650 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .pill.replay-speed-btn:hover{
    border-color:#343840 !important;
    background:#22252a !important;
    color:#d9dce1 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .pill.replay-speed-btn.is-active{
    border-color:#4c525d !important;
    background:#292d33 !important;
    color:#f5f6f7 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .replay-alarm-toggle{
    display:inline-flex !important;
    align-items:center !important;
    gap:5px !important;
    padding-inline:8px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .replay-alarm-toggle::before{
    content:"" !important;
    width:5px !important;
    height:5px !important;
    flex:0 0 5px !important;
    border-radius:50% !important;
    background:#656b75 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .replay-alarm-toggle.is-active::before{
    background:#ff6678 !important;
    box-shadow:0 0 0 3px rgba(255,102,120,.10) !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .replay-alarm-toggle-count{
    min-width:12px !important;
    color:#aeb3bc !important;
    font-variant-numeric:tabular-nums !important;
    text-align:right !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-speed-buttons .replay-alarm-toggle:disabled{
    opacity:.42 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dock-close{
    position:absolute !important;
    top:13px !important;
    right:12px !important;
    z-index:2 !important;
    width:30px !important;
    height:30px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#858b95 !important;
    font-size:22px !important;
    line-height:1 !important;
    font-weight:300 !important;
    cursor:pointer !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dock-close:hover{
    border-color:#3a3e46 !important;
    background:#24272c !important;
    color:#f3f4f6 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dock-minimize{
    position:absolute !important;
    top:13px !important;
    right:43px !important;
    z-index:2 !important;
    width:30px !important;
    height:30px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid transparent !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#858b95 !important;
    cursor:pointer !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dock-minimize svg{
    width:16px !important;
    height:16px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-dock-minimize:hover{
    border-color:#3a3e46 !important;
    background:#24272c !important;
    color:#f3f4f6 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-event-panel:not(.hidden){
    position:absolute !important;
    right:0 !important;
    bottom:calc(100% + 10px) !important;
    width:min(380px,calc(100vw - 48px)) !important;
    max-height:260px !important;
    margin:0 !important;
    padding:12px !important;
    overflow:hidden !important;
    border:1px solid #383c44 !important;
    border-radius:9px !important;
    background:rgba(19,21,25,.98) !important;
    box-shadow:0 18px 48px rgba(0,0,0,.42) !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-event-list{
    max-height:205px !important;
  }

  html.replay-ui-active #controlsCard.replay-mode.replay-empty,
  html.replay-ui-active #controlsCard.replay-mode .replay-panel.replay-empty{
    min-height:0 !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-panel.replay-empty .replay-layout-row{
    display:block !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-panel.replay-empty .replay-file-row{
    width:min(480px,100%) !important;
    margin:0 auto !important;
  }

  html.replay-ui-active #controlsCard.replay-mode .replay-panel.replay-empty .replay-dropzone{
    max-height:48px !important;
  }
}

@media (max-width:900px), (pointer:coarse){
  .replay-tools-panel{
    top:auto;
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom,0px));
    left:12px;
    width:auto;
    max-width:520px;
    margin:0 auto;
    transform:translateY(14px);
  }
  .replay-tools-panel.is-open{
    transform:none;
  }
  .replay-link-status-overlay{
    padding:12px;
  }
  .replay-hud-live-overlay{
    padding:12px;
  }
  .replay-hud-live-dialog{
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
  }
  .replay-hud-live-head{
    min-height:82px;
    padding:16px 17px;
  }
  .replay-hud-live-head h2{
    font-size:21px;
  }
  .replay-hud-live-head p{
    display:none;
  }
  .replay-hud-live-body{
    padding:16px;
  }
  .replay-hud-live-status{
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    padding:11px 13px;
  }
  .replay-hud-live-url-field > div{
    grid-template-columns:1fr;
  }
  .replay-hud-live-steps{
    grid-template-columns:1fr;
  }
  .replay-hud-live-steps article{
    min-height:0;
    padding:16px 0;
  }
  .replay-hud-live-steps article + article{
    padding-left:0;
    border-top:1px solid #30343b;
    border-left:0;
  }
  .replay-hud-live-actions{
    grid-template-columns:1fr;
  }
  .replay-link-status-dialog{
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
  }
  .replay-link-status-head{
    min-height:78px;
    padding:16px 17px;
  }
  .replay-link-status-head h2{
    font-size:20px;
  }
  .replay-link-status-body{
    padding:14px;
  }
  .replay-link-status-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .replay-link-status-summary > :nth-child(2){
    border-right:0;
  }
  .replay-link-status-summary > :nth-child(-n+2){
    border-bottom:1px solid #30343b;
  }
  .replay-link-chart-stage{
    height:236px;
  }
  .replay-link-status-foot{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
}

/* Camera/gyro replay uses two real layout rows: the HUD viewport and a
   dedicated transport strip. Nothing in the flight HUD is covered by the
   playback controls. */
@media (min-width:901px) and (pointer:fine){
  html.replay-ui-active body.camera-view-active{
    --replay-transport-height:82px;
  }

  html.replay-ui-active body.camera-view-active .app-shell,
  html.replay-ui-active body.camera-view-active.camera-dashboard-default .app-shell{
    height:calc(100dvh - var(--replay-transport-height)) !important;
    min-height:calc(100dvh - var(--replay-transport-height)) !important;
  }

  html.replay-ui-active body.camera-view-active .page-wrap,
  html.replay-ui-active body.camera-view-active.camera-dashboard-default .page-wrap{
    height:calc(100dvh - var(--replay-transport-height)) !important;
    min-height:calc(100dvh - var(--replay-transport-height)) !important;
  }

  html.replay-ui-active body.camera-view-active .camera-view,
  html.replay-ui-active body.camera-view-active.camera-dashboard-default .camera-view,
  html.replay-ui-active body.camera-view-active.camera-gyro-plus-layout .camera-view{
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:var(--replay-transport-height) !important;
    left:0 !important;
    width:100vw !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  html.replay-ui-active body.camera-view-active .desktop-nav-abort.is-visible{
    bottom:calc(var(--replay-transport-height) + 18px) !important;
  }

  html.replay-ui-active.control-drawer-open body.camera-view-active #controlsCard.controls-card.replay-mode,
  html.replay-ui-active.control-drawer-open body.camera-view-active .desktop-control-drawer-mount #controlsCard.controls-card.replay-mode{
    top:auto !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    width:100vw !important;
    max-width:none !important;
    height:var(--replay-transport-height) !important;
    min-height:var(--replay-transport-height) !important;
    border-right:0 !important;
    border-top:0 !important;
    border-bottom:0 !important;
    border-left:0 !important;
    border-radius:0 !important;
    background:linear-gradient(180deg,#0b0e13 0%,#101217 42%,#111318 100%) !important;
    box-shadow:none !important;
    transform:none !important;
  }

  html.replay-ui-active.control-drawer-open body.camera-view-active #controlsCard.controls-card.replay-mode::before,
  html.replay-ui-active.control-drawer-open body.camera-view-active .desktop-control-drawer-mount #controlsCard.controls-card.replay-mode::before{
    content:none !important;
    display:none !important;
  }

  html.replay-ui-active body.camera-view-active #cameraView.camera-view::after{
    content:"" !important;
    position:absolute !important;
    top:auto !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    z-index:4 !important;
    display:block !important;
    width:auto !important;
    height:30px !important;
    border:0 !important;
    background:linear-gradient(180deg,rgba(11,14,19,0) 0%,rgba(11,14,19,.16) 30%,rgba(11,14,19,.64) 74%,#0b0e13 100%) !important;
    box-shadow:none !important;
    pointer-events:none !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-panel{
    height:100% !important;
    padding:5px 122px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-layout-row{
    width:min(1380px,calc(100vw - 244px)) !important;
    margin:0 auto !important;
    grid-template-columns:minmax(170px,230px) minmax(420px,1fr) !important;
    gap:22px !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-file-row{
    padding-top:12px !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-dropzone{
    min-height:40px !important;
    max-height:40px !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-dock-close{
    top:50% !important;
    right:24px !important;
    transform:translateY(-50%) !important;
  }

  html.replay-ui-active body.camera-view-active #controlsCard.replay-mode .replay-dock-minimize{
    top:50% !important;
    right:60px !important;
    transform:translateY(-50%) !important;
  }

  html.replay-ui-active body.camera-view-active .replay-tools-panel{
    top:calc((100dvh - var(--replay-transport-height)) / 2) !important;
  }

  html.replay-ui-active.replay-dock-hidden body.camera-view-active{
    --replay-transport-height:0px;
  }

  html.replay-ui-active.replay-dock-hidden #controlsCard.controls-card.replay-mode,
  html.replay-ui-active.replay-dock-hidden .desktop-control-drawer-mount #controlsCard.controls-card.replay-mode,
  html.replay-ui-active.replay-dock-hidden.control-drawer-open body.camera-view-active #controlsCard.controls-card.replay-mode,
  html.replay-ui-active.replay-dock-hidden.control-drawer-open body.camera-view-active .desktop-control-drawer-mount #controlsCard.controls-card.replay-mode{
    display:none !important;
  }

  html.replay-ui-active.replay-dock-hidden .replay-dock-restore{
    position:fixed !important;
    right:auto !important;
    bottom:0 !important;
    left:50% !important;
    z-index:83 !important;
    width:54px !important;
    min-width:54px !important;
    height:24px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid rgba(116,122,132,.48) !important;
    border-bottom:0 !important;
    border-radius:8px 8px 0 0 !important;
    background:rgba(17,19,23,.94) !important;
    box-shadow:0 -7px 20px rgba(0,0,0,.22) !important;
    color:#c8ccd3 !important;
    transform:translateX(-50%) !important;
    -webkit-backdrop-filter:blur(14px) !important;
    backdrop-filter:blur(14px) !important;
    cursor:pointer !important;
  }

  html.replay-ui-active.replay-dock-hidden .replay-dock-restore svg{
    width:15px !important;
    height:15px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }

  html.replay-ui-active.replay-dock-hidden .replay-dock-restore:hover{
    border-color:#707783 !important;
    background:#22252a !important;
    color:#f3f4f6 !important;
  }
}

/* Dashboard communication switcher and live network state. */
body.dashboard-view-active #dashboardView .dashboard-communication-card{
  display:flex;
  flex-direction:column;
  width:100%;
  height:auto !important;
  min-height:0 !important;
  align-self:flex-start;
  min-width:0;
  padding:0 !important;
  overflow:hidden;
  border:1px solid var(--ui-border) !important;
  border-radius:var(--ui-radius) !important;
  background:var(--ui-surface) !important;
  box-shadow:none !important;
}
body.dashboard-view-active #dashboardView .dashboard-communication-card::before,
body.dashboard-view-active #dashboardView .dashboard-communication-card::after{
  content:none !important;
  display:none !important;
}
body.dashboard-view-active #dashboardView :is(.row-top,.row-bottom).hidden,
body.dashboard-view-active #dashboardView .dashboard-communication-card.hidden{
  display:none !important;
}
.dashboard-communication-section-head span{
  color:var(--ui-faint);
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.16em;
}
.dashboard-section-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  order:0;
  width:100%;
  padding:4px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius);
  background:#101113;
}
.dashboard-section-tab{
  min-width:0;
  min-height:42px;
  padding:0 10px;
  border:0;
  border-radius:6px;
  background:transparent !important;
  color:#9297a0;
  box-shadow:none !important;
  font-size:11px;
  line-height:1;
  font-weight:650;
}
.dashboard-section-tab:hover{
  background:#1b1d21 !important;
  color:#d8dadd;
}
.dashboard-section-tab.is-active{
  background:#e8e9eb !important;
  color:#121315;
}
.dashboard-communication-body{
  display:grid;
  flex:1 1 0;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.9fr);
  align-items:stretch;
  height:auto;
  min-width:0;
  min-height:0;
}
.dashboard-network-section,
.dashboard-link-quality-section{
  min-width:0;
  padding:10px 14px 8px;
}
.dashboard-network-section{
  display:flex;
  flex-direction:column;
}
.dashboard-link-quality-stack{
  display:grid;
  height:100%;
  min-width:0;
  grid-template-rows:repeat(2,minmax(0,1fr));
  align-content:stretch;
  border-left:1px solid var(--ui-divider);
}
.dashboard-link-quality-section{
  display:flex;
  flex-direction:column;
  height:auto !important;
  min-height:0;
}
.dashboard-link-quality-section + .dashboard-link-quality-section{
  border-top:1px solid var(--ui-divider);
}
.dashboard-communication-section-head{
  display:flex;
  min-height:22px;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.dashboard-communication-section-head > div{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.dashboard-communication-section-head strong{
  color:var(--ui-text-soft);
  font-size:11px;
  line-height:1;
  font-weight:620;
}
.dashboard-communication-section-head em{
  overflow:hidden;
  color:var(--ui-muted);
  font-size:9px;
  line-height:1.2;
  font-style:normal;
  font-weight:560;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-network-map{
  position:relative;
  flex:1 1 auto;
  height:auto;
  min-height:0;
  min-width:0;
  margin-top:2px;
}
.dashboard-network-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.dashboard-network-links path{
  fill:none;
  stroke:#3b3e44;
  stroke-width:1.4;
  vector-effect:non-scaling-stroke;
  transition:stroke .18s ease,opacity .18s ease;
}
.dashboard-network-links path.is-wireless{stroke-dasharray:6 6}
.dashboard-network-links path.is-online{stroke:#6d9b84;opacity:1}
.dashboard-network-links path.is-standby{stroke:#6a7079;opacity:.88}
.dashboard-network-links path[data-dashboard-link="stage2-ground"].is-standby{
  stroke:#6d9b84;
  opacity:1;
}
.dashboard-network-links path.is-offline{stroke:#33363b;opacity:.42}
.dashboard-network-route-label{
  position:absolute;
  z-index:2;
  min-height:18px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  border:1px solid #3a3d43;
  border-radius:4px;
  background:#151619;
  color:#787e87;
  font-size:6px;
  line-height:1;
  font-weight:700;
  letter-spacing:.08em;
  white-space:nowrap;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.dashboard-network-route-label.is-online{
  border-color:#4a5b52;
  color:#8cc7a5;
}
.dashboard-network-route-label.is-standby{
  border-color:#4b4f56;
  color:#a0a5ad;
}
.dashboard-network-route-label.is-stage2-direct.is-standby{
  border-color:#4a5b52;
  color:#8cc7a5;
}
.dashboard-network-route-label.is-offline{
  opacity:.34;
}
.dashboard-network-route-label.is-stage2-relay{left:12%;top:50%}
.dashboard-network-route-label.is-stage2-direct{left:33%;top:30%}
.dashboard-network-route-label.is-stage1-uplink{left:33%;top:70%}
.dashboard-network-node{
  position:absolute;
  z-index:3;
  display:flex;
  width:20%;
  min-width:92px;
  height:54px;
  padding:8px 10px 7px 14px;
  flex-direction:column;
  justify-content:center;
  border:1px solid #393c42;
  border-radius:6px;
  background:#18191c;
  color:var(--ui-text-soft);
  box-shadow:none;
}
.dashboard-network-node::before{
  content:"";
  position:absolute;
  top:10px;
  left:7px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#62666e;
}
.dashboard-network-node > span{
  color:#696e77;
  font-size:7px;
  line-height:1;
  font-weight:700;
  letter-spacing:.12em;
}
.dashboard-network-node > strong{
  margin-top:3px;
  color:#d9dce1;
  font-size:12px;
  line-height:1;
  font-weight:650;
  letter-spacing:.03em;
}
.dashboard-network-node > em{
  margin-top:4px;
  color:#777c85;
  font-size:7px;
  line-height:1;
  font-style:normal;
  font-weight:650;
  letter-spacing:.08em;
}
.dashboard-network-node.is-online{
  border-color:#49564f;
  background:#191c1b;
}
.dashboard-network-node.is-online::before{background:var(--ui-success)}
.dashboard-network-node.is-online > em{color:#8cc7a5}
.dashboard-network-node.is-current{border-color:#5a5e66}
.dashboard-network-node.is-disabled{opacity:.42}
.dashboard-network-node.is-stage2{left:2%;top:4px}
.dashboard-network-node.is-stage1{left:2%;bottom:4px}
.dashboard-network-node.is-ground{left:43%;top:calc(50% - 27px);width:18%}
.dashboard-network-node.is-mobile{right:2%;top:4px}
.dashboard-network-node.is-pc{right:2%;bottom:4px}
.dashboard-network-legend{
  display:flex;
  min-height:24px;
  align-items:center;
  gap:16px;
  border-top:1px solid var(--ui-divider);
  color:var(--ui-muted);
  font-size:8px;
  font-weight:600;
}
.dashboard-network-legend > span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.dashboard-network-legend i{
  display:block;
  width:22px;
  height:0;
  border-top:1px solid #686d75;
}
.dashboard-network-legend i.is-wireless{border-top-style:dashed}
.dashboard-network-legend b{
  min-width:0;
  margin-left:auto;
  overflow:hidden;
  color:#6f747d;
  font-size:8px;
  font-weight:600;
  letter-spacing:.07em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-link-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 0 6px;
  border-top:1px solid var(--ui-divider);
  border-bottom:1px solid var(--ui-divider);
}
.dashboard-link-metrics > button{
  display:grid;
  min-width:0;
  min-height:46px;
  padding:7px 10px 6px;
  grid-template-columns:1fr auto;
  grid-template-rows:auto 1fr;
  align-items:end;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
}
.dashboard-link-metrics > button + button{border-left:1px solid var(--ui-divider)}
.dashboard-link-metrics > button:hover{background:#191a1d}
.dashboard-link-metrics > button.is-active{background:#1d1f22}
.dashboard-link-metrics small{
  grid-column:1/-1;
  color:var(--ui-faint);
  font-size:8px;
  line-height:1;
  font-weight:700;
  letter-spacing:.11em;
}
.dashboard-link-metrics strong{
  margin-top:3px;
  color:var(--ui-text);
  font-size:17px;
  line-height:1;
  font-weight:560;
}
.dashboard-link-metrics i{
  padding-bottom:1px;
  color:var(--ui-muted);
  font-size:8px;
  line-height:1;
  font-style:normal;
  font-weight:600;
}
.dashboard-link-chart-stage{
  position:relative;
  flex:1 1 auto;
  height:auto;
  min-height:0;
}
.dashboard-link-chart-stage canvas{
  display:block;
  width:100%;
  height:100%;
}
.dashboard-link-chart-value{
  position:absolute;
  z-index:1;
  top:6px;
  right:3px;
  font-size:10px;
  font-weight:600;
  pointer-events:none;
}

@media (min-width:1101px) and (pointer:fine){
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active .page-wrap{
    min-height:0 !important;
    overflow-y:hidden !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView{
    display:flex;
    flex:1 1 0 !important;
    min-height:0 !important;
    overflow:hidden;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView > .shell{
    display:flex !important;
    flex:1 1 0;
    min-height:0 !important;
    height:auto !important;
    flex-direction:column;
    align-content:normal;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView .dashboard-section-tabs{
    flex:0 0 auto;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView .dashboard-communication-card{
    flex:1 1 0;
    align-self:stretch;
    min-height:0 !important;
  }
}

@media (max-width:767px){
  body.dashboard-view-active #dashboardView .dashboard-section-tabs{
    order:0;
  }
  body.dashboard-view-active #dashboardView .dashboard-communication-card{
    order:1;
  }
  body.dashboard-view-active #dashboardView .dashboard-communication-body{
    grid-template-columns:minmax(0,1fr);
    height:auto;
    min-height:0;
  }
  body.dashboard-view-active #dashboardView .dashboard-link-quality-stack{
    height:auto;
    grid-template-rows:repeat(2,minmax(303px,auto));
    border-top:1px solid var(--ui-divider);
    border-left:0;
  }
  body.dashboard-view-active #dashboardView .dashboard-network-map{
    height:360px;
    min-height:360px;
  }
  body.dashboard-view-active #dashboardView .dashboard-link-chart-stage{
    min-height:174px;
  }
}

@media (min-width:768px) and (max-width:1100px){
  body.dashboard-view-active #dashboardView .dashboard-communication-body{
    grid-template-columns:minmax(0,1fr);
    height:auto;
    min-height:0;
  }
  body.dashboard-view-active #dashboardView .dashboard-link-quality-stack{
    height:auto;
    grid-template-rows:repeat(2,minmax(303px,auto));
    border-top:1px solid var(--ui-divider);
    border-left:0;
  }
  body.dashboard-view-active #dashboardView .dashboard-link-chart-stage{
    min-height:174px;
  }
}

/*
 * Communication workspace v3
 * Isolated from the legacy dashboard card geometry. Every desktop layer uses
 * the remaining parent height; no viewport measurement is written by JS.
 */
.comm-v3-screen{
  display:block;
  width:100%;
  height:auto;
  min-width:0;
  min-height:0;
  flex:1 1 0;
  overflow:hidden;
  box-sizing:border-box;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius);
  background:var(--ui-surface);
}
.comm-v3-screen.hidden{
  display:none !important;
}
.comm-v3-layout{
  display:grid;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  grid-template-columns:minmax(0,1.42fr) minmax(360px,.96fr);
}
.comm-v3-topology,
.comm-v3-quality,
.comm-v3-quality-stage{
  min-width:0;
  min-height:0;
}
.comm-v3-topology{
  display:grid;
  padding:14px 18px 10px;
  grid-template-rows:28px minmax(0,1fr) 28px;
  overflow:hidden;
}
.comm-v3-panel-head{
  display:flex;
  min-width:0;
  min-height:0;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.comm-v3-panel-head > div{
  display:flex;
  min-width:0;
  align-items:baseline;
  gap:11px;
}
.comm-v3-panel-head span{
  flex:none;
  color:var(--ui-faint);
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.16em;
}
.comm-v3-panel-head strong{
  overflow:hidden;
  color:var(--ui-text-soft);
  font-size:11px;
  line-height:1;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.comm-v3-panel-head em{
  overflow:hidden;
  color:var(--ui-muted);
  font-size:9px;
  line-height:1.2;
  font-style:normal;
  font-weight:560;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.comm-v3-map{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
.comm-v3-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.comm-v3-links path{
  fill:none;
  stroke:#3c4046;
  stroke-width:1.4;
  vector-effect:non-scaling-stroke;
  transition:stroke .18s ease,opacity .18s ease;
}
.comm-v3-links path.is-wireless{
  stroke-dasharray:6 7;
}
.comm-v3-links path.is-online{
  stroke:#74a88e;
  opacity:1;
}
.comm-v3-links path.is-standby{
  stroke:#676d76;
  opacity:.78;
}
.comm-v3-links path[data-dashboard-link="stage2-ground"].is-standby{
  stroke:#74a88e;
  opacity:.72;
}
.comm-v3-links path.is-offline{
  stroke:#34373c;
  opacity:.34;
}
.comm-v3-route-label{
  position:absolute;
  z-index:2;
  display:inline-flex;
  min-height:18px;
  padding:0 6px;
  align-items:center;
  border:1px solid #3a3e44;
  border-radius:4px;
  background:#15171a;
  color:#747a83;
  font-size:6px;
  line-height:1;
  font-weight:700;
  letter-spacing:.06em;
  white-space:nowrap;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.comm-v3-route-label.is-online{
  border-color:#4e6559;
  color:#8cc9a8;
}
.comm-v3-route-label.is-standby{
  border-color:#454a51;
  color:#8d939b;
}
.comm-v3-route-label.is-stage2-direct.is-standby{
  border-color:#4e6559;
  color:#8cc9a8;
}
.comm-v3-route-label.is-offline{
  opacity:.3;
}
.comm-v3-route-label.is-stage2-relay{
  left:14%;
  top:50%;
}
.comm-v3-route-label.is-stage2-direct{
  left:37%;
  top:32%;
}
.comm-v3-route-label.is-stage1-uplink{
  left:37%;
  top:68%;
}
.comm-v3-node{
  position:absolute;
  z-index:3;
  display:flex;
  width:20%;
  min-width:92px;
  height:58px;
  padding:8px 10px 7px 15px;
  box-sizing:border-box;
  flex-direction:column;
  justify-content:center;
  border:1px solid #3a3e44;
  border-radius:6px;
  background:#181a1d;
  color:var(--ui-text-soft);
}
.comm-v3-node::before{
  content:"";
  position:absolute;
  top:10px;
  left:7px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#626872;
}
.comm-v3-node > span{
  color:#6e747d;
  font-size:7px;
  line-height:1;
  font-weight:700;
  letter-spacing:.12em;
}
.comm-v3-node > strong{
  margin-top:4px;
  color:#e0e2e6;
  font-size:12px;
  line-height:1;
  font-weight:650;
  letter-spacing:.03em;
}
.comm-v3-node > em{
  margin-top:5px;
  color:#7b818a;
  font-size:7px;
  line-height:1;
  font-style:normal;
  font-weight:650;
  letter-spacing:.08em;
}
.comm-v3-node.is-online{
  border-color:#4b5f55;
  background:#191d1b;
}
.comm-v3-node.is-online::before{
  background:var(--ui-success);
}
.comm-v3-node.is-online > em{
  color:#8cc9a8;
}
.comm-v3-node.is-current{
  border-color:#60656e;
}
.comm-v3-node.is-disabled{
  opacity:.42;
}
.comm-v3-node.is-stage2{
  left:2%;
  top:2%;
}
.comm-v3-node.is-stage1{
  left:2%;
  bottom:2%;
}
.comm-v3-node.is-ground{
  left:41%;
  top:calc(50% - 29px);
  width:19%;
}
.comm-v3-node.is-mobile{
  right:2%;
  top:2%;
}
.comm-v3-node.is-pc{
  right:2%;
  bottom:2%;
}
.comm-v3-legend{
  display:flex;
  min-width:0;
  min-height:0;
  align-items:flex-end;
  gap:17px;
  border-top:1px solid var(--ui-divider);
  color:var(--ui-muted);
  font-size:8px;
  line-height:1;
  font-weight:600;
}
.comm-v3-legend > span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.comm-v3-legend i{
  display:block;
  width:23px;
  height:0;
  border-top:1px solid #6a7078;
}
.comm-v3-legend i.is-wireless{
  border-top-style:dashed;
}
.comm-v3-legend b{
  min-width:0;
  margin-left:auto;
  overflow:hidden;
  color:#717780;
  font-size:8px;
  font-weight:600;
  letter-spacing:.07em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.comm-v3-quality{
  display:grid;
  height:100%;
  grid-template-rows:repeat(2,minmax(0,1fr));
  border-left:1px solid var(--ui-divider);
  overflow:hidden;
}
.comm-v3-quality-stage{
  display:grid;
  padding:14px 16px 10px;
  grid-template-rows:28px 54px minmax(0,1fr);
  overflow:hidden;
}
.comm-v3-quality-stage + .comm-v3-quality-stage{
  border-top:1px solid var(--ui-divider);
}
.comm-v3-metrics{
  display:grid;
  min-width:0;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--ui-divider);
  border-bottom:1px solid var(--ui-divider);
}
.comm-v3-metrics > button{
  display:grid;
  min-width:0;
  min-height:0;
  padding:7px 10px 6px;
  grid-template-columns:1fr auto;
  grid-template-rows:auto 1fr;
  align-items:end;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
}
.comm-v3-metrics > button + button{
  border-left:1px solid var(--ui-divider);
}
.comm-v3-metrics > button:hover{
  background:#191b1e;
}
.comm-v3-metrics > button.is-active{
  background:#1d1f22;
}
.comm-v3-metrics small{
  grid-column:1/-1;
  color:var(--ui-faint);
  font-size:8px;
  line-height:1;
  font-weight:700;
  letter-spacing:.11em;
}
.comm-v3-metrics strong{
  margin-top:4px;
  color:var(--ui-text);
  font-size:18px;
  line-height:1;
  font-weight:560;
}
.comm-v3-metrics i{
  padding-bottom:1px;
  color:var(--ui-muted);
  font-size:8px;
  line-height:1;
  font-style:normal;
  font-weight:600;
}
.comm-v3-chart{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
.comm-v3-chart canvas{
  display:block;
  width:100%;
  height:100%;
}
.comm-v3-chart-value{
  position:absolute;
  z-index:1;
  top:7px;
  right:3px;
  font-size:10px;
  font-weight:600;
  pointer-events:none;
}

@media (min-width:768px) and (pointer:fine){
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active .page-wrap{
    display:flex !important;
    height:100dvh !important;
    min-height:0 !important;
    box-sizing:border-box !important;
    flex-direction:column !important;
    overflow:hidden !important;
    gap:12px !important;
    padding-bottom:12px !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active .top-bar{
    flex:0 0 auto !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView{
    display:flex !important;
    flex:1 1 0 !important;
    height:auto !important;
    max-height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView > .shell{
    display:flex !important;
    flex:1 1 0 !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    flex-direction:column !important;
    align-content:normal !important;
    gap:12px !important;
    overflow:hidden !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView .dashboard-section-tabs{
    flex:0 0 auto !important;
  }
  body:not(.camera-view-active).dashboard-view-active.dashboard-communication-active #dashboardView .comm-v3-screen{
    flex:1 1 0 !important;
    height:auto !important;
    max-height:100% !important;
    min-height:0 !important;
  }
}

@media (min-width:901px) and (pointer:fine){
  body.camera-view-active.dashboard-view-active #dashboardView{
    width:auto !important;
    height:auto !important;
    max-height:none !important;
    overflow:hidden !important;
  }
  body.camera-view-active.dashboard-view-active #dashboardView > .shell{
    display:grid !important;
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    min-height:0 !important;
    padding:68px clamp(16px,1.5vw,26px) 16px !important;
    box-sizing:border-box !important;
    align-content:stretch !important;
    gap:12px !important;
    overflow:hidden !important;
  }
  body.camera-view-active.dashboard-view-active #dashboardView .dashboard-section-tabs{
    min-height:0 !important;
  }
  body.camera-view-active.dashboard-view-active.dashboard-communication-active #dashboardView > .shell{
    grid-template-rows:64px minmax(0,1fr) !important;
  }
  body.camera-view-active.dashboard-view-active.dashboard-communication-active #dashboardView .comm-v3-screen{
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    min-height:0 !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView > .shell{
    grid-template-rows:64px minmax(0,2fr) minmax(0,3fr) !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView :is(.row-top,.row-bottom){
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    align-items:stretch !important;
    overflow:hidden !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView :is(.row-top,.row-bottom) > .card-base{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .main-card.status-card.status-map-only,
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .main-card.status-card.status-map-only .status-map-layout,
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .main-card.status-card.status-map-only :is(.status-map-panel,.status-flight-preview){
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .charts-card{
    display:grid !important;
    grid-template-rows:auto minmax(0,1fr) !important;
  }
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .chart-row,
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .chart-box,
  body.camera-view-active.dashboard-view-active:not(.dashboard-communication-active) #dashboardView .chart-canvas-stage{
    min-height:0 !important;
    overflow:hidden !important;
  }
}

@media (min-width:768px) and (pointer:fine) and (max-height:760px){
  .comm-v3-topology{
    padding:10px 14px 8px;
    grid-template-rows:24px minmax(0,1fr) 22px;
  }
  .comm-v3-quality-stage{
    padding:10px 12px 7px;
    grid-template-rows:24px 48px minmax(0,1fr);
  }
  .comm-v3-node{
    height:50px;
    padding-top:6px;
    padding-bottom:6px;
  }
  .comm-v3-node.is-ground{
    top:calc(50% - 25px);
  }
}

@media (min-width:768px) and (pointer:fine) and (max-width:1120px){
  .comm-v3-layout{
    grid-template-columns:minmax(0,1.18fr) minmax(320px,.92fr);
  }
  .comm-v3-node{
    min-width:82px;
  }
}

@media (max-width:767px), (pointer:coarse){
  .comm-v3-screen{
    height:auto !important;
    min-height:0;
    overflow:visible;
  }
  .comm-v3-layout{
    display:block;
    height:auto;
  }
  .comm-v3-topology{
    height:430px;
  }
  .comm-v3-quality{
    height:auto;
    grid-template-rows:repeat(2,300px);
    border-top:1px solid var(--ui-divider);
    border-left:0;
  }
}

/* Local FLASH7 firmware updater. */
.firmware-update-settings-note{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--ui-divider, #303238);
  color:#858a93;
  font-size:11px;
  line-height:1.55;
}
.firmware-update-overlay{
  z-index:2147483647 !important;
  background:rgba(3,5,8,.76) !important;
  -webkit-backdrop-filter:blur(7px) !important;
  backdrop-filter:blur(7px) !important;
}
.firmware-update-dialog{
  width:min(520px, calc(100vw - 48px)) !important;
  max-width:520px !important;
  border-color:#35383d !important;
  border-radius:8px !important;
  background:#151618 !important;
  box-shadow:0 26px 80px rgba(0,0,0,.58) !important;
}
.firmware-update-header{
  align-items:center !important;
  padding:24px 26px 0 !important;
  border-bottom:0 !important;
  background:transparent !important;
}
.firmware-update-header .flash-role-config-kicker{
  margin-bottom:7px !important;
  color:#7f8792 !important;
  font-size:9px !important;
  letter-spacing:.18em !important;
}
.firmware-update-header .flash-role-config-title{
  font-size:20px !important;
  font-weight:650 !important;
}
.firmware-update-header .flash-role-config-close{
  width:32px !important;
  height:32px !important;
  flex-basis:32px !important;
  border:0 !important;
  background:transparent !important;
  color:#8d929a !important;
  font-size:24px !important;
  line-height:30px !important;
}
.firmware-update-header .flash-role-config-close:hover{
  background:#202226 !important;
  color:#e5e7ea !important;
}
.firmware-update-body{
  padding:18px 26px 20px;
}
.firmware-update-transport{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid #2b2e32;
  color:#777e87;
  font-size:10px;
  font-weight:620;
  letter-spacing:.04em;
}
.firmware-update-transport strong{
  color:#dfe1e4;
  font-family:inherit;
  font-size:11px;
  letter-spacing:0;
}
.firmware-update-target{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;
  margin-bottom:12px;
  padding:3px;
  border:1px solid #303339;
  border-radius:6px;
  background:#101113;
}
.firmware-update-target button{
  min-height:34px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#818791;
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
}
.firmware-update-target button:hover:not(:disabled){
  color:#d9dce0;
  background:#1b1d20;
}
.firmware-update-target button.is-active{
  background:#e4e6e9;
  color:#17191c;
}
.firmware-update-target button:disabled{
  opacity:.3;
  cursor:not-allowed;
}
.firmware-update-dropzone{
  width:100%;
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:15px 16px;
  border:1px dashed #484c53;
  border-radius:6px;
  background:#111214;
  color:#91969f;
  box-sizing:border-box;
  box-shadow:none;
  transition:border-color .15s ease, background .15s ease;
}
.firmware-update-dropzone:hover,
.firmware-update-dropzone.is-dragging{
  border-color:#b9bdc3;
  background:#181a1d;
}
.firmware-update-dropzone strong{
  color:#e7e8ea;
  font-size:12px;
  font-weight:650;
}
.firmware-update-dropzone > span:last-child{
  margin-left:auto;
  color:#747a83;
  font-size:9px;
  line-height:1.35;
  text-align:right;
}
.firmware-update-drop-kicker{
  flex:0 0 auto;
  color:#767c86;
  font-family:var(--font-mono, ui-monospace, monospace);
  font-size:8px;
  font-weight:700;
  letter-spacing:.16em;
}
.firmware-update-file-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:10px;
  padding:11px 0;
  border:0;
  border-bottom:1px solid #2b2e32;
  border-radius:0;
  background:transparent;
}
.firmware-update-file-card[hidden]{
  display:none !important;
}
.firmware-update-file-card > div:first-child{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.firmware-update-file-card strong{
  overflow:hidden;
  color:#e8e9eb;
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.firmware-update-file-label,
.firmware-update-file-meta{
  color:#858b94;
  font-size:10px;
}
.firmware-update-file-meta{
  flex:0 0 auto;
  font-family:var(--font-mono, ui-monospace, monospace);
}
.firmware-update-readiness{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:13px;
}
.firmware-update-check{
  min-width:0;
  display:grid;
  grid-template-columns:8px minmax(0,1fr);
  gap:2px 8px;
  flex:1 1 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.firmware-update-check-dot{
  width:7px;
  height:7px;
  margin-top:4px;
  border-radius:50%;
  background:#686e77;
}
.firmware-update-check > div{
  min-width:0;
}
.firmware-update-check strong{
  display:block;
  color:#d9dbdf;
  font-size:10px;
  font-weight:650;
}
.firmware-update-check small{
  display:block;
  overflow:hidden;
  margin-top:2px;
  color:#747a84;
  font-size:9px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.firmware-update-check b{
  grid-column:2;
  color:#7c828c;
  font-family:var(--font-mono, ui-monospace, monospace);
  font-size:8px;
  font-weight:700;
  letter-spacing:.08em;
}
.firmware-update-check.is-ready{
  border-color:transparent;
}
.firmware-update-check.is-ready .firmware-update-check-dot{
  background:#37d878;
  box-shadow:0 0 10px rgba(55,216,120,.28);
}
.firmware-update-check.is-ready b{
  color:#72d79a;
}
.firmware-update-status{
  min-height:16px;
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid #2b2e32;
  color:#8f959e;
  font-size:10px;
  line-height:1.5;
}
.firmware-update-status.is-ready{
  color:#8fdaa9;
}
.firmware-update-status.is-error{
  color:#ee929a;
}
.firmware-update-actions{
  grid-template-columns:1fr 1.65fr !important;
  gap:8px !important;
  padding:0 26px 24px !important;
}
.firmware-update-actions button{
  min-height:42px !important;
  border-radius:5px !important;
  font-size:11px !important;
}
.firmware-update-actions[hidden]{
  display:none !important;
}
.firmware-update-progress-view{
  display:block;
  min-height:0;
}
.firmware-update-progress-view[hidden]{
  display:none !important;
}
.firmware-update-confirm-view{
  display:block;
  min-height:0;
}
.firmware-update-confirm-view[hidden]{
  display:none !important;
}
.firmware-update-confirm-kicker{
  color:#8f969f;
  font-family:var(--font-mono, ui-monospace, monospace);
  font-size:9px;
  font-weight:750;
  letter-spacing:.16em;
}
.firmware-update-confirm-view > strong{
  display:block;
  margin-top:9px;
  color:#f0f1f3;
  font-size:19px;
  font-weight:650;
}
.firmware-update-confirm-view > p{
  margin:8px 0 0;
  color:#9298a1;
  font-size:11px;
  line-height:1.55;
}
.firmware-update-confirm-summary{
  display:grid;
  grid-template-columns:.8fr 1fr 1.4fr;
  margin-top:18px;
  border-top:1px solid #30343a;
  border-bottom:1px solid #30343a;
}
.firmware-update-confirm-summary > div{
  min-width:0;
  padding:12px 10px;
  border-right:1px solid #30343a;
}
.firmware-update-confirm-summary > div:first-child{
  padding-left:0;
}
.firmware-update-confirm-summary > div:last-child{
  padding-right:0;
  border-right:0;
}
.firmware-update-confirm-summary span,
.firmware-update-confirm-summary strong{
  display:block;
}
.firmware-update-confirm-summary span{
  color:#757b85;
  font-size:9px;
  font-weight:700;
  letter-spacing:.09em;
}
.firmware-update-confirm-summary strong{
  overflow:hidden;
  margin-top:7px;
  color:#e4e6e9;
  font-size:11px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.firmware-update-confirm-warning{
  margin-top:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#858c95;
  font-size:10px;
  line-height:1.5;
}
.firmware-update-confirm-actions{
  display:grid;
  grid-template-columns:1fr 1.7fr;
  gap:8px;
  margin-top:16px;
}
.firmware-update-confirm-actions button{
  min-height:42px;
  border:1px solid #3c4047;
  border-radius:5px;
  background:#24272b;
  color:#e8e9eb;
  font-size:12px;
  font-weight:650;
}
.firmware-update-confirm-actions button:last-child{
  border-color:#e5e7ea;
  background:#e5e7ea;
  color:#17181a;
}
.firmware-update-blocked-view{
  display:block;
  min-height:0;
}
.firmware-update-blocked-view[hidden]{
  display:none !important;
}
.firmware-update-blocked-kicker{
  color:#ef7f88;
  font-family:var(--font-mono, ui-monospace, monospace);
  font-size:9px;
  font-weight:750;
  letter-spacing:.16em;
}
.firmware-update-blocked-view > strong{
  margin-top:10px;
  color:#eceef0;
  font-size:18px;
  font-weight:650;
}
.firmware-update-blocked-view > p{
  margin:7px 0 0;
  color:#8e949d;
  font-size:11px;
}
.firmware-update-blocked-view ul{
  display:grid;
  gap:7px;
  margin:16px 0;
  padding:0;
  list-style:none;
}
.firmware-update-blocked-view li{
  padding:9px 0 9px 14px;
  border:0;
  border-left:2px solid #6a3439;
  border-radius:0;
  background:transparent;
  color:#d9c8cb;
  font-size:11px;
}
.firmware-update-blocked-view button{
  align-self:flex-end;
  min-width:132px;
  min-height:42px;
  border:1px solid #43474e;
  border-radius:5px;
  background:#25282d;
  color:#eceef0;
  font-size:12px;
  font-weight:650;
}
.firmware-update-progress-kicker{
  margin:0 0 12px;
  color:#7f8792;
  font-size:10px;
  line-height:1;
  font-weight:700;
  letter-spacing:.18em;
}
.firmware-update-progress-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
}
.firmware-update-progress-heading h2{
  min-width:0;
  margin:0;
  color:#f5f6f7;
  font-size:20px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:-.02em;
}
.firmware-update-progress-heading strong{
  flex:0 0 auto;
  color:#f0f1f3;
  font-size:30px;
  line-height:1;
  font-weight:350;
  font-variant-numeric:tabular-nums;
}
.firmware-update-progress-file{
  margin:16px 0 13px;
  color:#aeb3ba;
  font-size:12px;
  line-height:1.35;
  font-weight:550;
}
.firmware-update-progress-track{
  height:5px;
  overflow:hidden;
  border-radius:2px;
  background:#2a2d31;
}
.firmware-update-progress-track i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#e9ebee;
  transition:width .16s linear, background-color .16s ease;
}
.firmware-update-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:11px;
  color:#9da3ab;
  font-size:11px;
  line-height:1.35;
  font-weight:560;
}
.firmware-update-progress-meta span:first-child{
  min-width:0;
}
.firmware-update-progress-meta strong{
  margin-left:4px;
  color:#c6c9ce;
  font-weight:560;
  font-variant-numeric:tabular-nums;
}
.firmware-update-progress-meta > span:last-child{
  flex:0 0 auto;
  color:#c6c9ce;
  font-variant-numeric:tabular-nums;
}
.firmware-update-progress-estimate{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-top:8px;
  color:#777e87;
  font-size:10px;
  line-height:1.35;
  font-weight:620;
  letter-spacing:.04em;
}
.firmware-update-progress-estimate strong{
  flex:0 0 auto;
  color:#e3e5e8;
  font-size:12px;
  font-weight:560;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.firmware-update-lock-note{
  margin-top:18px;
  margin-bottom:0;
  padding-top:16px;
  border-top:1px solid #2b2e32;
  color:#777e87;
  font-size:11px;
  line-height:1.5;
  font-weight:520;
}
.firmware-update-overlay.is-updating .firmware-update-header{
  display:none !important;
}
.firmware-update-overlay.is-updating .firmware-update-body{
  padding:26px;
}
body.firmware-update-locked{
  cursor:progress;
  overflow:hidden !important;
}
body.firmware-update-locked > *:not(#firmwareUpdateOverlay){
  pointer-events:none !important;
}
body.firmware-update-locked #firmwareUpdateOverlay{
  cursor:progress;
}

/* Dual-stage gyro zero confirmation. */
html body #gyroZeroOverlay{
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
}
html body #gyroZeroOverlay > .gyro-zero-dialog{
  width:min(560px, calc(100vw - 48px)) !important;
  max-width:560px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:auto !important;
  padding:26px !important;
  border:1px solid #383b41 !important;
  border-radius:8px !important;
  background:#17181a !important;
  color:#f1f2f4 !important;
  box-shadow:0 24px 70px rgba(0,0,0,.5) !important;
  overflow:hidden !important;
  text-align:left !important;
}
html body #gyroZeroOverlay > .gyro-zero-dialog::before,
html body #gyroZeroOverlay > .gyro-zero-dialog::after{
  content:none !important;
  display:none !important;
}
.gyro-zero-heading{
  display:flex;
  align-items:baseline;
  gap:14px;
  padding-bottom:18px;
  border-bottom:1px solid #303238;
}
.gyro-zero-kicker{
  color:#8c929c;
  font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  letter-spacing:.14em;
}
html body #gyroZeroOverlay .confirm-title{
  margin:0 !important;
  color:#f4f5f6 !important;
  font-size:22px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:left !important;
}
html body #gyroZeroOverlay .confirm-text{
  margin:20px 0 0 !important;
  color:#b8bcc3 !important;
  font-size:14px !important;
  line-height:1.65 !important;
  text-align:left !important;
}
html body #gyroZeroOverlay .confirm-text strong{
  color:#f3f4f6 !important;
  font-weight:700 !important;
}
.gyro-zero-stage-guide{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.gyro-zero-stage-guide > div{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  gap:5px 12px;
  padding:15px 16px;
  border:1px solid #34373d;
  border-radius:6px;
  background:#1d1f22;
}
.gyro-zero-stage-guide span{
  color:#aeb2ba;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
}
.gyro-zero-stage-guide strong{
  grid-row:1 / 3;
  grid-column:2;
  align-self:center;
  color:#f2f3f5;
  font-size:24px;
  font-weight:500;
}
.gyro-zero-stage-guide small{
  color:#747a84;
  font-size:11px;
}
.gyro-zero-note{
  margin-top:16px;
  color:#858b95;
  font-size:11px;
  line-height:1.55;
}
html body #gyroZeroOverlay .gyro-zero-actions{
  display:grid !important;
  grid-template-columns:1fr 2fr;
  gap:10px !important;
  width:100% !important;
  margin:22px 0 0 !important;
}
html body #gyroZeroOverlay .gyro-zero-actions button{
  width:100% !important;
  min-width:0 !important;
  min-height:46px !important;
  margin:0 !important;
  padding:0 16px !important;
  border-radius:6px !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:650 !important;
  line-height:1 !important;
  text-decoration:none !important;
}
html body #gyroZeroOverlay .gyro-zero-actions .confirm-cancel{
  border:1px solid #383b41 !important;
  background:#222428 !important;
  color:#c4c7cd !important;
}
html body #gyroZeroOverlay .gyro-zero-actions .loadcell-primary{
  border:1px solid #d1d3d6 !important;
  background:#e7e8ea !important;
  color:#17181a !important;
}
html body #gyroZeroOverlay .gyro-zero-actions button:disabled{
  cursor:wait !important;
  opacity:.55 !important;
}

@media (max-width:600px){
  html body #gyroZeroOverlay{
    padding:12px !important;
  }
  html body #gyroZeroOverlay > .gyro-zero-dialog{
    width:100% !important;
    max-width:none !important;
    padding:20px !important;
  }
  .gyro-zero-heading{
    display:block;
  }
  .gyro-zero-kicker{
    display:block;
    margin-bottom:8px;
  }
  .gyro-zero-stage-guide{
    grid-template-columns:1fr;
  }
  html body #gyroZeroOverlay .gyro-zero-actions{
    grid-template-columns:1fr !important;
  }
  .firmware-update-dialog{
    width:calc(100vw - 28px) !important;
    max-width:none !important;
    border-radius:10px !important;
  }
  .firmware-update-header{
    padding:21px 20px 0 !important;
  }
  .firmware-update-body{
    max-height:calc(100dvh - 150px);
    overflow:auto;
    padding:16px 20px 18px;
  }
  .firmware-update-readiness{
    align-items:stretch;
    flex-direction:column;
    gap:9px;
  }
  .firmware-update-check small{
    white-space:normal;
  }
  .firmware-update-file-card,
  .firmware-update-dropzone{
    align-items:flex-start;
    flex-direction:column;
  }
  .firmware-update-dropzone > span:last-child{
    margin-left:0;
    text-align:left;
  }
  .firmware-update-confirm-summary,
  .firmware-update-confirm-actions{
    grid-template-columns:1fr;
  }
  .firmware-update-confirm-summary > div,
  .firmware-update-confirm-summary > div:first-child,
  .firmware-update-confirm-summary > div:last-child{
    padding:11px 0;
    border-right:0;
    border-bottom:1px solid #2e3136;
  }
  .firmware-update-confirm-summary > div:last-child{
    border-bottom:0;
  }
  .firmware-update-progress-meta{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .firmware-update-progress-estimate{
    margin-top:10px;
  }
  .firmware-update-overlay.is-updating .firmware-update-body{
    padding:22px 20px;
  }
}

/* Shared vehicle target selector for direct hardware controls. It is only
   revealed by the runtime when the ground station is in two-stage mode. */
.hardware-target-selector{
  display:grid;
  grid-template-columns:auto minmax(260px, 1fr);
  align-items:center;
  gap:18px;
  width:100%;
  padding:8px;
  border:1px solid #30343a;
  border-radius:10px;
  background:#111316;
}
.hardware-target-selector[hidden]{
  display:none !important;
}
.hardware-target-label{
  padding-left:10px;
  color:#8f949d;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  white-space:nowrap;
}
.hardware-target-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.hardware-target-tabs button{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#8e939c;
  font:700 13px/1 var(--font-sans, sans-serif);
  letter-spacing:.06em;
  cursor:pointer;
}
.hardware-target-tabs button:hover{
  background:#1b1e22;
  color:#d8dadd;
}
.hardware-target-tabs button.is-active{
  background:#e5e6e8;
  color:#17181a;
}
.hardware-target-tabs button:disabled{
  cursor:default;
  opacity:.58;
}
#hardwareServoDialog .hardware-target-selector,
#pyroControlDialog .hardware-target-selector{
  margin-bottom:18px;
}
#gyroZeroOverlay .hardware-target-selector,
#rebootConfirmOverlay .hardware-target-selector{
  margin:4px 0 2px;
}
html:not(.phone-landscape-layout) body #rebootConfirmOverlay .hardware-target-selector{
  grid-column:1 / -1 !important;
  grid-row:3 !important;
  margin-top:14px !important;
}
html:not(.phone-landscape-layout) body #rebootConfirmOverlay #rebootConfirmActions{
  grid-row:4 !important;
}

/* Sequence timer: use a quiet, humanist display face instead of the heavy
 * browser default used by <strong>.  Keep the timer legible while matching
 * the restrained HUD typography and avoiding the blocky, over-emphasized
 * countdown look. */
body.camera-view-active .camera-sequence-time--timeline .camera-tmark,
body.camera-view-active .camera-sequence-time--timeline .camera-count-time{
  font-family:"Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif !important;
  font-synthesis:none !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}
body.camera-view-active .camera-sequence-time--timeline .camera-tmark{
  color:rgba(210,215,222,.68) !important;
  font-size:clamp(16px,1.15vw,19px) !important;
  font-weight:400 !important;
  letter-spacing:.06em !important;
  text-shadow:none !important;
}
body.camera-view-active .camera-sequence-time--timeline .camera-count-time{
  color:rgba(255,255,255,.94) !important;
  font-size:clamp(40px,3vw,48px) !important;
  font-weight:300 !important;
  letter-spacing:.08em !important;
  line-height:1 !important;
  -webkit-text-stroke:0 !important;
  text-shadow:0 2px 16px rgba(0,0,0,.46) !important;
}
@media (max-width:600px){
  .hardware-target-selector{
    grid-template-columns:1fr;
    gap:7px;
  }
  .hardware-target-label{
    padding:2px 4px 0;
  }
}

/* Expanded map retains the main flight HUD; obsolete map information cards stay hidden. */
html.status-map-expanded #statusMapViewport.is-expanded .status-map-card{display:none !important}

/* Keep the same live WebGL viewport visible while the desktop map is expanded. */
@media (min-width:901px) and (pointer:fine){
  html.status-map-expanded #statusMapViewport.is-expanded .status-map-actions{left:auto;right:0;bottom:12px}
  html.status-map-expanded body.camera-view-active #statusMapViewport.is-expanded .status-map-actions{
    position:fixed;left:auto;right:var(--camera-right-edge);
    bottom:calc(var(--camera-bottom-map-bottom) + var(--camera-bottom-map-height) + 12px);
  }
  html.status-map-expanded body > #gyro3dViewport:not(.is-expanded),
  html.status-map-expanded body.camera-view-active > #gyro3dViewport.is-camera-preview-mounted:not(.is-expanded){
    position:fixed !important;inset:auto !important;
    right:var(--camera-right-edge,24px) !important;
    bottom:var(--camera-bottom-map-bottom,32px) !important;
    width:var(--camera-bottom-map-width,260px) !important;height:var(--camera-bottom-map-height,145.6px) !important;
    min-width:0 !important;min-height:0 !important;max-width:calc(100vw - 48px) !important;max-height:32dvh !important;
    margin:0 !important;padding:0 !important;aspect-ratio:auto !important;
    display:block !important;visibility:visible !important;pointer-events:auto !important;
    z-index:6001 !important;overflow:hidden !important;
    border:1px solid rgba(255,255,255,.18) !important;border-radius:6px !important;
    box-shadow:0 8px 28px rgba(0,0,0,.28) !important;background:#242b33 !important;
  }
  html.status-map-expanded body > #gyro3dViewport:not(.is-expanded) :is(.gyro3d-expanded-hud,.status-expanded-metrics){display:none !important}
  html.status-map-expanded body > #gyro3dViewport:not(.is-expanded) > .status-gyro-actions,
  html.status-map-expanded body.camera-view-active > #gyro3dViewport.is-camera-preview-mounted:not(.is-expanded) > .status-gyro-actions{
    display:flex !important;position:absolute !important;inset:auto !important;left:8px !important;bottom:8px !important;
  }
  html.status-map-expanded body > #gyro3dViewport:not(.is-expanded) #gyro3dMapCloseBtn{display:inline-flex !important}
  html.status-map-expanded body > #gyro3dViewport:not(.is-expanded) #gyro3dExpandBtn{display:none !important}
}

/* Adapt docked tools to the control center after the legacy dialog layers. */
/* Docked pages use the same compact dark surfaces as both centers. */
#controlCenterPanel.is-detail{overflow:hidden;bottom:auto}
#controlCenterPanel.is-detail #controlCenterContent{
  max-height:calc(100dvh - 142px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#ffffff30 transparent;scroll-padding:8px 0;
}
#controlCenterPanel.is-detail > .alarm-history-header{
  position:static;
  display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;
  min-height:42px;padding:0 0 10px;border-bottom:1px solid #ffffff13;
  border-radius:0;background:transparent;
}
#controlCenterPanel.is-detail > .alarm-history-header > strong{
  display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font-size:14px;font-weight:600;
}
#controlCenterPanel .control-center-back{
  width:30px;height:30px;padding:0;border-radius:var(--center-button-radius);background:var(--center-control);
  font-size:26px;font-weight:300;line-height:1;text-align:center;
}
#controlCenterPanel .control-center-back:hover{background:var(--center-hover);color:#fff}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.settings-header,.mobile-chart-picker-head,.flash-role-config-head){display:none !important}
#controlCenterPanel #controlCenterContent .control-center-surface > :first-child{padding:0 !important;overflow:visible !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.hardware-servo-dialog-body,.pyro-control-body,.data-storage-dialog-body,.flash-link-report-body){
  padding:0 !important;margin:0 !important;min-height:0 !important;max-height:none !important;
  background:transparent !important;overflow:visible !important;
}
#controlCenterPanel #controlCenterContent .control-center-surface :is(button,input,select){font-family:inherit}
#controlCenterPanel #controlCenterContent .control-center-surface :is(button,input[type="number"],select){border-radius:var(--center-button-radius) !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.settings-label,.pyro-control-kicker,.pyro-control-channel-label){
  color:#b8bec6 !important;font-size:10px !important;font-weight:500 !important;letter-spacing:0 !important;text-align:left !important;
}
#controlCenterPanel #controlCenterContent .control-center-surface .hardware-target-selector{
  margin:0 0 12px !important;padding:10px 12px !important;
  border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important;
}
/* Compact selectors and editing cards, with no modal-sized empty regions. */
#controlCenterPanel #controlCenterContent :is(#hardwareServoOverlay .hardware-servo-group,#pyroControlOverlay .pyro-control-selector,#pyroControlOverlay .pyro-control-panel,#dataListOverlay .data-storage-surface){
  padding:14px !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;
  background:var(--center-surface) !important;box-shadow:none !important;
}
#controlCenterPanel #controlCenterContent :is(.hardware-servo-quick-row,.pyro-channel-grid,.data-origin-filter,.hardware-target-tabs){
  display:grid !important;padding:3px !important;gap:3px !important;
  border:0 !important;border-radius:var(--center-card-radius) !important;background:var(--center-bg) !important;
}
#controlCenterPanel #controlCenterContent :is(.hardware-servo-quick-row,.pyro-channel-grid,.data-origin-filter,.hardware-target-tabs) button{
  min-height:34px !important;min-width:0 !important;padding:0 4px !important;
  border:0 !important;border-radius:var(--center-button-radius) !important;background:transparent !important;
  color:#b8bec6 !important;font-size:11px !important;font-weight:500 !important;
}
#controlCenterPanel #controlCenterContent :is(.hardware-servo-quick-row,.pyro-channel-grid,.data-origin-filter,.hardware-target-tabs) button:is(.is-active,[aria-selected="true"]){
  background:var(--center-active) !important;color:#fff !important;box-shadow:none !important;
}
#controlCenterPanel #controlCenterContent :is(.hardware-servo-quick-row,.pyro-channel-grid,.data-origin-filter,.hardware-target-tabs) button:hover:not(:disabled){background:var(--center-hover) !important}
/* Servo: channel strip, current reading/slider, then a two-column preset grid. */
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-group > .settings-label{margin:0 0 9px !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay :is(.hardware-servo-channel-picker,.hint-mini,.hardware-servo-group > .hint-mini){display:none !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-quick-row{grid-template-columns:repeat(5,minmax(0,1fr)) !important;margin:0 0 16px !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-inline-wrap{margin:0 !important;padding:0 !important;border:0 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-row.is-active{gap:14px !important;padding:0 !important;border:0 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-head{padding:0 !important;align-items:center !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-current-label{font-size:11px !important;gap:8px !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay [data-servo-current-angle]{font-size:28px !important;font-weight:400 !important;color:#f2f4f6 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-meta{font-size:9px !important;color:#a0a7b1 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-slider-line{margin:0 !important;gap:10px !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-presets{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;padding:0 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-preset{display:grid !important;grid-template-columns:minmax(0,1fr) 48px !important;gap:5px !important;min-width:0 !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay :is(.hardware-servo-preset-input,.hardware-servo-preset-btn){width:100% !important;min-width:0 !important;height:38px !important;padding:0 8px !important;border:1px solid var(--center-border) !important;background:var(--center-bg) !important;color:#dce0e5 !important;font-size:12px !important}
#controlCenterPanel #controlCenterContent #hardwareServoOverlay .hardware-servo-preset-btn{background:var(--center-control) !important;font-size:10px !important}
/* Pyro: duration and presets stack naturally inside the narrower editing card. */
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-selector{margin:0 0 10px !important;display:block !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-channel-label{display:block !important;margin:0 0 9px !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;margin:0 !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-panel{margin:0 !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-row{display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:14px !important;margin:0 0 14px !important;padding:0 !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-kicker{margin:0 0 7px !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-value{position:relative !important;display:block !important;width:100% !important;height:auto !important;padding:0 !important;border:0 !important;background:transparent !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-value > span{position:absolute !important;right:12px !important;top:50% !important;transform:translateY(-50%) !important;font-size:10px !important;color:#aab2bd !important;pointer-events:none}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-value input{width:100% !important;height:50px !important;padding:0 40px 0 12px !important;border:1px solid var(--center-border) !important;background:var(--center-bg) !important;color:#f0f2f5 !important;font-size:25px !important;font-weight:400 !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-presets{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-presets button{height:34px !important;min-height:34px !important;min-width:0 !important;border:1px solid var(--center-border) !important;background:var(--center-control) !important;color:#cbd0d7 !important;font-size:11px !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-run{width:100% !important;min-height:42px !important;margin:0 !important;background:#88404a !important;border:1px solid #c1788147 !important;font-size:12px !important}
#controlCenterPanel #controlCenterContent #pyroControlOverlay .pyro-control-note{margin:10px 0 0 !important;font-size:9px !important;line-height:1.5 !important;color:#a9b0ba !important}
/* Storage: summary metrics and actions stay together; records grow only as needed. */
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-selector{margin:0 0 10px !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-origin-filter{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
#controlCenterPanel #controlCenterContent #dataListOverlay :is(.data-storage-dialog-body,.data-storage-surface){display:flex !important;flex-direction:column !important;height:auto !important;min-height:0 !important;max-height:none !important;overflow:visible !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-surface{gap:12px !important}
#controlCenterPanel #controlCenterContent #dataListOverlay #dataListSummary{padding:0 !important;margin:0 !important;min-height:0 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-summary-heading{margin:0 !important;padding:0 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-title{font-size:11px !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-total{font-size:9px !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-metrics{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;margin:12px 0 0 !important;padding:12px 0 !important;gap:8px !important;border-top:1px solid #ffffff13 !important;border-bottom:1px solid #ffffff13 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-metrics > div{padding:0 0 0 8px !important;min-width:0 !important;border-color:#ffffff13 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-metrics > div:first-child{padding-left:0 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-metrics span{font-size:9px !important;color:#aab2bd !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-metrics strong{margin-top:6px !important;font-size:20px !important;font-weight:500 !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-spec{margin:10px 0 0 !important;font-size:9px !important;line-height:1.6 !important;text-align:left !important}
#controlCenterPanel #controlCenterContent #dataListOverlay #dataListBody{height:auto !important;min-height:0 !important;max-height:260px !important;flex:0 1 auto !important;padding:0 !important;overflow:auto !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-empty{height:auto !important;min-height:0 !important;margin:0 !important;padding:16px 4px !important;font-size:10px !important;line-height:1.6 !important;color:#abb2bc !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-actions{display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;position:static !important;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-actions button{width:100% !important;min-width:0 !important;min-height:38px !important;padding:8px !important;border:1px solid #ffffff20 !important;background:#ffffff13 !important;color:#e2e6ec !important;font-size:11px !important}
#controlCenterPanel #controlCenterContent #dataListOverlay .data-storage-actions .data-storage-reset{background:#8b465126 !important;border-color:#bb788134 !important;color:#dfb8be !important}
/* Settings use a compact category grid instead of a full desktop sidebar. */
#controlCenterPanel #controlCenterContent #settingsOverlay .mobile-settings-home{display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-body{display:flex !important;flex-direction:column !important;gap:12px !important;padding:0 !important;margin:0 !important;min-height:0 !important;max-height:none !important;height:auto !important;overflow:visible !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important;flex:none !important;width:100% !important;min-width:0 !important;margin:0 !important;padding:0 !important;border:0 !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav::before,
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav::after{content:none !important;display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav-btn{display:flex !important;justify-content:center !important;min-width:0 !important;min-height:36px !important;margin:0 !important;padding:8px 4px !important;border:1px solid var(--center-border) !important;border-radius:11px !important;background:var(--center-control) !important;color:#b5bdc7 !important;font-size:11px !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav-btn.active{background:#ffffff22 !important;color:#fff !important;border-color:#ffffff2b !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav-badge{display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-panels{display:block !important;width:100% !important;padding:0 !important;margin:0 !important;min-width:0 !important;overflow:visible !important;border:0 !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-panel:not(.active){display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-panel.active{display:block !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-group{margin:0 0 10px !important;padding:12px !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-control) !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-row{gap:12px !important;padding:11px 0 !important;margin:0 !important;border-color:#ffffff12 !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-label{font-size:11px !important;color:#dce1e8 !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-desc{font-size:10px !important;line-height:1.55 !important;color:#a6aeb9 !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-btn{font-size:10px !important;min-height:32px !important;padding:6px 9px !important}

/* Confirmation replaces the editing cards, retaining the existing hold controls. */
#controlCenterPanel #controlCenterContent #pyroControlDialog.is-confirming :is(.pyro-control-selector,.pyro-control-panel){display:none !important}
#controlCenterPanel #controlCenterContent #pyroControlDialog.is-confirming .pyro-control-confirm{
  padding:16px !important;gap:12px !important;border:1px solid var(--center-border) !important;
  border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important;
}
#controlCenterPanel #controlCenterContent #pyroControlDialog .pyro-control-confirm-title{font-size:15px !important}
#controlCenterPanel #controlCenterContent #pyroControlDialog .pyro-control-confirm-desc{font-size:12px !important;line-height:1.6 !important}
#controlCenterPanel #controlCenterContent #pyroControlDialog .pyro-control-confirm-actions{width:100% !important;margin:0 !important;gap:8px !important}

/* Audit of the remaining tool surfaces: remove leftover modal chrome. */
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-config-header,.settings-close-btn,.mobile-chart-picker-close,.flash-role-config-close,.gyro-zero-heading),
#controlCenterPanel #controlCenterContent #confirmCancel,
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-nav-title{display:none !important}
#controlCenterPanel #controlCenterContent #settingsOverlay .settings-body{background:transparent !important;border:0 !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-config-body,.connection-sheet-body){padding:0 !important;background:transparent !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-config-summary,.flash-identity-reset-readout){padding:10px 0 !important;background:transparent !important;border:0 !important;border-top:1px solid #ffffff15 !important;border-radius:0 !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-segment,.firmware-update-target){padding:3px !important;background:var(--center-bg) !important;border:0 !important;border-radius:var(--center-card-radius) !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-segment,.firmware-update-target) button{min-height:34px !important;font-size:11px !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.confirm-cancel,.data-reset-cancel,.loadcell-cancel,.flash-role-config-secondary){min-height:38px !important;border:1px solid var(--center-border) !important;background:var(--center-surface) !important;color:#d3d9e1 !important;font-size:11px !important}
/* Calibration keeps its step state and actions but no longer reserves modal-sized gaps. */
#controlCenterPanel #controlCenterContent #loadcellOverlay :is(.loadcell-body,.loadcell-main){position:relative !important;min-height:0 !important;height:auto !important;padding:0 !important;margin:0 !important}
#controlCenterPanel #controlCenterContent #loadcellOverlay .loadcell-kicker{display:none !important}
#controlCenterPanel #controlCenterContent #loadcellOverlay .loadcell-steps{margin:0 0 12px !important;font-size:11px !important;line-height:1.6 !important}
#controlCenterPanel #controlCenterContent #loadcellOverlay .loadcell-card{padding:14px !important;margin:0 !important;min-height:0 !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-control) !important}
#controlCenterPanel #controlCenterContent #loadcellOverlay .loadcell-actions{position:static !important;inset:auto !important;display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:7px !important;width:100% !important;margin:14px 0 0 !important;padding:0 !important;border:0 !important}
#controlCenterPanel #controlCenterContent #loadcellOverlay .loadcell-actions button{min-width:0 !important;min-height:38px !important;padding:7px !important;font-size:11px !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationOverlay .mobile-chart-picker-body{padding:0 !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationOverlay .agent-help-intro{margin:0 0 12px !important;font-size:11px !important;line-height:1.65 !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationOverlay .intelligent-calibration-map-card{border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important;overflow:hidden !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationOverlay .intelligent-calibration-map-head{padding:10px !important;background:transparent !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationOverlay .intelligent-calibration-map-viewport{height:160px !important}
#controlCenterPanel #controlCenterContent #intelligentCalibrationRunBtn{display:block !important;width:100% !important;min-height:40px !important;margin:12px 0 0 !important;padding:10px !important;border:1px solid #ffffff26 !important;border-radius:var(--center-card-radius) !important;background:var(--center-hover) !important;color:#eef1f5 !important;font-size:12px !important;font-weight:600 !important;font-family:inherit !important;line-height:1.3 !important;cursor:pointer}
/* Small live charts use the same quiet surface instead of a black plot box. */
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) .chiptemp-body{padding:0 !important;gap:12px !important}
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) .chiptemp-summary{border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important}
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) :is(.chiptemp-stat,.chiptemp-meta){background:transparent !important;border-color:#ffffff13 !important}
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) :is(.chiptemp-stat-label,.chiptemp-meta-label){font-size:9px !important;color:#aeb6c1 !important}
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) :is(.chiptemp-stat-value,.chiptemp-meta-value){font-size:14px !important}
#controlCenterPanel #controlCenterContent :is(#chipTempOverlay,#perfOverlay) .chiptemp-chart-stage{height:240px !important;min-height:0 !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:#ffffff04 !important}
#controlCenterPanel #controlCenterContent #flashLinkReportOverlay .flash-link-report-visual{border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important}
/* Keep help illustrations and steps readable inside the compact panel. */
#controlCenterPanel #controlCenterContent #gpsHelpOverlay .gps-help-hero{height:200px !important;min-height:0 !important;margin:12px 0 !important;border:0 !important;border-radius:var(--center-card-radius) !important;background:transparent !important;overflow:hidden !important}
#controlCenterPanel #controlCenterContent #gpsHelpOverlay .gps-help-hero img{width:100% !important;height:100% !important;object-fit:contain !important}
#controlCenterPanel #controlCenterContent #gpsHelpOverlay .gps-help-list{gap:8px !important;margin:12px 0 !important}
#controlCenterPanel #controlCenterContent #gpsHelpOverlay .gps-help-list li{padding:10px 12px 10px 28px !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-control) !important;color:#d3d9e1 !important;font-size:11px !important;line-height:1.6 !important}
#controlCenterPanel #controlCenterContent #gyroZeroOverlay .confirm-text{margin-top:0 !important;font-size:13px !important;line-height:1.7 !important}

#controlCenterPanel #controlCenterContent #firmwareUpdateOverlay .firmware-update-body{padding:0 !important;margin:0 !important}
#controlCenterPanel #controlCenterContent .control-center-surface .flash-role-config-actions{padding:14px 0 0 !important;margin:0 !important;border:0 !important;gap:8px !important}
#controlCenterPanel #controlCenterContent .control-center-surface :is(.flash-role-config-panel,.flash-role-identity-section){margin:12px 0 0 !important;padding:12px !important;border:1px solid var(--center-border) !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important}

#controlCenterPanel #controlCenterContent .control-center-surface .connection-sheet-primary{min-height:40px !important;margin-top:12px !important}
#controlCenterPanel #controlCenterContent #firmwareUpdateDropzone{border:1px dashed #ffffff26 !important;border-radius:var(--center-card-radius) !important;background:var(--center-surface) !important}

#controlCenterPanel #controlCenterContent :is(#forceConfirmCancel,#missionForceCancel){width:100% !important;min-height:36px !important;margin:10px 0 0 !important;padding:8px !important;border:1px solid var(--center-border) !important;border-radius:var(--center-button-radius) !important;background:var(--center-control) !important;color:#d3d9e1 !important;font-size:11px !important}
/* DAQ interlock confirmation stays inside the center and returns to its controls. */
#controlCenterPanel #daqValveUnlockOverlay .confirm-title{display:none}
#controlCenterPanel #daqValveUnlockOverlay .confirm-text{margin:0;padding:8px 0 16px;font-size:12px;line-height:1.6;text-align:left}
#controlCenterPanel #daqValveUnlockOverlay .confirm-actions{margin:0;gap:8px}


/* Welcome home, with separate desktop and mobile geometry. */
/* Shared welcome identity; desktop and mobile own their screen geometry. */
body.welcome-connect-active{overflow:hidden!important;background:#000!important}
body.welcome-connect-active::before,
body.welcome-connect-active :is(#splash,.app-shell,.footer-nav,.toast-container){display:none!important}
#welcomeConnectScreen{
  --welcome-inset:clamp(28px,3.8vw,64px);
  position:fixed;inset:0;z-index:2147483000;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  padding:28px var(--welcome-inset) 24px;overflow:hidden;isolation:isolate;
  color:#f5f5f5;background:#000;font-family:inherit;
}
#welcomeConnectScreen.hidden{display:none!important}
#welcomeConnectScreen button{-webkit-tap-highlight-color:transparent}
#welcomeConnectScreen button:focus-visible{outline:2px solid #fff;outline-offset:6px}
#welcomeConnectScreen .welcome-home-header{display:flex;justify-content:space-between;align-items:center;gap:24px;min-width:0;min-height:42px}
#welcomeConnectScreen .welcome-home-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;font-size:24px;font-weight:750;letter-spacing:.055em}
#welcomeConnectScreen .welcome-home-brand img{display:block;width:31px;height:31px;object-fit:contain;filter:brightness(0) invert(1)}
#welcomeConnectScreen .welcome-home-mission{display:flex;align-items:center;gap:12px;min-width:0;min-height:44px;margin:0;padding:6px 0 6px 12px;border:0;border-radius:6px;background:none;box-shadow:none;color:inherit;font-family:inherit;cursor:pointer}
#welcomeConnectScreen .welcome-home-mission svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;color:#9fa3a3}
#welcomeConnectScreen .welcome-home-mission:hover strong{text-decoration:underline;text-underline-offset:4px}
#welcomeConnectScreen .welcome-home-mission:disabled{opacity:.5;cursor:wait}
#welcomeConnectScreen .welcome-home-mission>span{font-size:10px;font-weight:650;letter-spacing:.15em;color:rgba(255,255,255,.55)}
#welcomeConnectScreen .welcome-home-mission strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650;letter-spacing:.025em}
#welcomeConnectScreen .welcome-home-stage{display:grid;grid-template-columns:340px minmax(0,1fr);gap:clamp(32px,6vw,100px);align-items:center;min-width:0;min-height:0;padding:0}
#welcomeConnectScreen .welcome-home-simulation{align-self:center;justify-self:center;width:min(100%,560px);min-width:0;padding-bottom:48px}
#welcomeConnectScreen .welcome-home-simulation[hidden]{display:none!important}
#welcomeConnectScreen .welcome-home-simulation header{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:22px}
#welcomeConnectScreen .welcome-home-simulation h2{margin:0;color:#ebeded;font-size:19px;font-weight:550;letter-spacing:-.02em}
#welcomeConnectScreen .welcome-home-simulation p{margin:0;color:#818686;font-size:12px;line-height:1.5}
#welcomeConnectScreen #welcomeSimConnectBtn[aria-expanded="true"]{color:#fff}
#welcomeConnectScreen .welcome-home-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#welcomeConnectScreen .welcome-home-modes button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;min-height:184px;padding:24px;border:1px solid #252828;border-radius:12px;background:#080909;box-shadow:none;color:#f0f2f2;font-family:inherit;line-height:1.4;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
#welcomeConnectScreen .welcome-home-modes button:hover{border-color:#6c7373;background:#101212}
#welcomeConnectScreen .welcome-home-modes svg{width:32px;height:32px;margin-bottom:12px;fill:none;stroke:#b8bdbd;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
#welcomeConnectScreen .welcome-home-modes strong{font-size:23px;font-weight:550;letter-spacing:.025em}
#welcomeConnectScreen .welcome-home-modes button>span{color:#929999;font-size:12px}
#welcomeConnectScreen .welcome-home-readiness{width:340px;max-width:100%;max-height:100%;overflow:auto;padding:24px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#welcomeConnectScreen .welcome-home-status-line{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#d3d4d4;font-size:13px;font-weight:550}
#welcomeConnectScreen .welcome-home-state{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:9px;font-weight:650;letter-spacing:.1em;color:#b9bcbc}
#welcomeConnectScreen .welcome-home-state i{width:5px;height:5px;border-radius:50%;background:currentColor}
#welcomeConnectScreen #welcomeConnectStatus{margin:21px 0 10px;font-size:27px;font-weight:550;line-height:1.35;letter-spacing:-.035em;overflow-wrap:anywhere;color:#fff}
#welcomeConnectScreen .welcome-home-description{margin:0;color:#b8baba;font-size:13px;line-height:1.65;letter-spacing:-.015em}
#welcomeConnectScreen .welcome-home-guide{margin-top:24px;border-top:1px solid rgba(255,255,255,.11)}
#welcomeConnectScreen .welcome-home-guide h2{display:flex;align-items:center;min-height:44px;margin:0;padding-top:10px;font-size:12px;font-weight:500;color:#d7d9d9}
#welcomeConnectScreen .welcome-home-guide-content{max-height:min(240px,33dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#606464 transparent}
#welcomeConnectScreen .welcome-home-guide ol{display:grid;gap:14px;margin:14px 0 18px;padding:0;list-style:none}
#welcomeConnectScreen .welcome-home-guide li{display:flex;align-items:baseline;gap:12px;font-size:12px;line-height:1.6;color:#c3c6c6}
#welcomeConnectScreen .welcome-home-guide li b{font-size:10px;color:#8f9696;font-weight:550}
#welcomeConnectScreen #welcomeConnectHelp{margin:0 0 2px;font-size:11px;line-height:1.6;color:#999f9f}
#welcomeConnectScreen .welcome-home-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14)}
#welcomeConnectScreen .welcome-home-shortcuts{display:flex;gap:40px;align-items:center}
#welcomeConnectScreen .welcome-home-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:68px;min-height:62px;padding:4px 0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#d9dbdb;font-family:inherit;font-size:12px;font-weight:500;line-height:1.3;cursor:pointer}
#welcomeConnectScreen .welcome-home-shortcut svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#welcomeConnectScreen .welcome-home-shortcut:hover{color:#fff}
#welcomeConnectScreen .welcome-home-shortcut[aria-pressed="true"]{color:#fff;font-weight:650}
#welcomeConnectScreen .welcome-home-shortcut[aria-pressed="true"] svg{stroke-width:1.8}
#welcomeConnectScreen .welcome-home-connect{display:flex;align-items:center;gap:22px}
#welcomeConnectScreen .welcome-home-connect>span{font-size:11px;font-weight:500;letter-spacing:.06em;color:#a3a7a7}
#welcomeConnectScreen #welcomeBoardSearchBtn{display:flex;align-items:center;justify-content:center;min-width:228px;height:62px;padding:0 28px;border:1px solid #eee;border-radius:9px;background:#eee;box-shadow:none;color:#141515;font-family:inherit;font-size:17px;font-weight:650;line-height:1.3;cursor:pointer;transition:background .15s}
#welcomeConnectScreen #welcomeBoardSearchBtn:hover{background:#fff}
#welcomeConnectScreen #welcomeBoardSearchBtn:disabled{opacity:.6;cursor:wait}
#welcomeConnectScreen.is-connecting .welcome-home-state i{animation:welcome-home-pulse 1.2s ease-in-out infinite}
#welcomeConnectScreen.is-connected .welcome-home-state{color:#fff}
@keyframes welcome-home-pulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){#welcomeConnectScreen.is-connecting .welcome-home-state i{animation:none}}
.welcome-mission-note{display:none}
#welcomeConnectScreen:not([data-welcome-view="flight"]) .welcome-home-readiness,
#welcomeConnectScreen:not([data-welcome-view="flight"]) .welcome-home-connect{display:none!important}
#welcomeConnectScreen:not([data-welcome-view="flight"]) .welcome-home-stage{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;gap:0;padding:0}
#welcomeConnectScreen:not([data-welcome-view="flight"]) .welcome-home-simulation{align-self:center;justify-self:center;margin:0;padding:0}
#welcomeConnectScreen .welcome-home-pane{width:min(100%,880px);max-height:100%;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4a4e4e transparent}
#welcomeConnectScreen .welcome-home-pane[hidden]{display:none!important}
#welcomeConnectScreen .welcome-home-mission-pane{width:min(100%,700px)}
#welcomeConnectScreen .welcome-home-pane-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
#welcomeConnectScreen .welcome-home-pane-header h2{margin:0;font-size:22px;font-weight:550;letter-spacing:-.025em;color:#f1f2f2}
#welcomeConnectScreen .welcome-fc-guide{width:min(100%,520px)}
#welcomeConnectScreen .welcome-fc-guide .welcome-home-pane-header{margin-bottom:12px}
#welcomeConnectScreen .welcome-fc-status{margin:0;color:#a7acac;font-size:13px;line-height:1.6}
#welcomeConnectScreen .welcome-fc-steps{display:grid;gap:28px;margin:36px 0;padding:0;list-style:none}
#welcomeConnectScreen .welcome-fc-steps li{display:flex;align-items:flex-start;gap:18px}
#welcomeConnectScreen .welcome-fc-steps li>span{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border:1px solid #737979;border-radius:50%;color:#f0f2f2;font-size:14px;font-weight:500;line-height:1}
#welcomeConnectScreen .welcome-fc-steps h3{margin:2px 0 7px;font-size:15px;font-weight:550;color:#ededed}
#welcomeConnectScreen .welcome-fc-steps p{margin:0;color:#999f9f;font-size:13px;line-height:1.6;word-break:keep-all}
#welcomeConnectScreen .welcome-fc-enter{width:100%;min-height:48px;padding:12px 18px;border:1px solid #3e4343;border-radius:8px;background:none;box-shadow:none;color:#dedfdf;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer}
#welcomeConnectScreen .welcome-fc-enter:hover{border-color:#929999;background:#101111}
#welcomeConnectScreen .welcome-fc-enter:disabled{opacity:.4;cursor:default}
#welcomeConnectScreen #replayDataPickerOverlay.is-welcome-inline{position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;z-index:auto!important;margin:0!important;padding:0!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-dialog{width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
#welcomeConnectScreen #replayDataPickerOverlay .mobile-chart-picker-head{display:none!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-body{display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;gap:28px!important;padding:0!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-summary{gap:12px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-summary-card{min-height:0!important;padding:14px!important;border:1px solid #252828!important;border-radius:10px!important;background:#090a0a!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-summary-empty{padding:8px 0!important;min-height:0!important;color:#909797!important;font-size:12px!important;line-height:1.5!important}
#welcomeConnectScreen #replayDataPickerOverlay :is(.replay-data-picker-file,.replay-data-picker-item,.replay-data-picker-mode-toggle){border-color:#292d2d!important;border-radius:9px!important;background:#090a0a!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-file-arrow{display:none!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-empty{min-height:110px!important;padding:20px!important;border:1px dashed #2d3232!important;border-radius:10px!important;background:none!important;color:#909797!important;font-size:12px!important;line-height:1.6!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-tabs button{color:#8e9696!important;background:none!important;border-color:#292d2d!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-tabs button.is-active{color:#f0f2f2!important;background:#181b1b!important}
#welcomeConnectScreen #replayDataPickerOverlay #replayProceedBtn{min-height:42px!important;border:1px solid #d7dada!important;border-radius:8px!important;background:#e4e6e6!important;color:#151818!important;box-shadow:none!important;font-size:13px!important}
#welcomeConnectScreen #replayDataPickerOverlay #replayProceedBtn:disabled{border-color:#272b2b!important;background:#171a1a!important;color:#737c7c!important;opacity:1!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-list{max-height:min(34dvh,300px)!important}
#welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-toggle-track{background:#333939!important}
#welcomeConnectScreen #replayDataPickerOverlay [aria-checked="true"] .replay-data-picker-toggle-track{background:#a4adad!important}
#welcomeConnectScreen #welcomeMissionMount>.settings-panel{display:block!important;min-width:0;padding:0!important}
#welcomeConnectScreen #welcomeMissionMount .welcome-mission-note{display:block;margin:0 0 24px;color:#939c9c;font-size:12px;line-height:1.7}
#welcomeConnectScreen #welcomeMissionMount .settings-group{margin:0 0 22px;padding:0 0 20px;border:0;border-bottom:1px solid #202525;border-radius:0;background:none;box-shadow:none}
#welcomeConnectScreen #welcomeMissionMount .settings-group-title{margin:0 0 14px;color:#e1e5e5;font-size:14px;font-weight:550}
#welcomeConnectScreen #welcomeMissionMount .mission-selector-settings>.settings-group-title{display:none}
#welcomeConnectScreen #welcomeMissionMount .settings-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,210px);align-items:center;gap:18px;margin:0;padding:12px 0;min-width:0;border-color:#202525}
#welcomeConnectScreen #welcomeMissionMount .settings-label{color:#e1e5e5;font-size:13px;font-weight:500}
#welcomeConnectScreen #welcomeMissionMount :is(.hint-mini,.settings-desc){margin-top:4px;color:#8a9595;font-size:11px;line-height:1.6}
#welcomeConnectScreen #welcomeMissionMount :is(input.settings-number,select.settings-select,select.settings-number){width:100%;min-width:0;min-height:40px;border:1px solid #323a3a;border-radius:7px;background:#101414;color:#e6eaea;font-family:inherit;font-size:13px}
#welcomeConnectScreen #welcomeMissionMount :is(.settings-number-wrap,.settings-number-row){min-width:0}
#welcomeConnectScreen #welcomeMissionMount :is(.settings-inline-btn,.settings-btn){min-height:38px;padding:8px 14px;border:1px solid #394141;border-radius:7px;background:#1c2222;color:#e5eaea;box-shadow:none;font-family:inherit;font-size:12px}
#welcomeConnectScreen #welcomeMissionMount .mission-profile-description{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 0;padding:12px 0;border:0;border-radius:0;background:none;color:#8e9a9a;font-size:12px;line-height:1.6}
#welcomeConnectScreen #welcomeMissionMount .mission-profile-description b{color:#d6dede;font-weight:550}

@media(min-width:901px){
  #welcomeConnectScreen .welcome-home-guide-content{max-height:min(240px,calc(100dvh - 390px))}
}

@media(max-width:900px){
  #welcomeConnectScreen{--welcome-inset:24px;padding:calc(20px + env(safe-area-inset-top,0px)) var(--welcome-inset) calc(16px + env(safe-area-inset-bottom,0px))}
  #welcomeConnectScreen .welcome-home-brand{gap:10px;font-size:20px}
  #welcomeConnectScreen .welcome-home-brand img{width:26px;height:26px}
  #welcomeConnectScreen .welcome-home-mission{gap:8px}
  #welcomeConnectScreen .welcome-home-mission>span{display:none}
  #welcomeConnectScreen .welcome-home-mission strong{font-size:12px}
}
@media(max-width:600px){
  #welcomeConnectScreen .welcome-home-pane-header{margin-bottom:16px}
  #welcomeConnectScreen .welcome-home-pane-header h2{font-size:19px}
  #welcomeConnectScreen .welcome-fc-steps{gap:20px;margin:24px 0}
  #welcomeConnectScreen .welcome-fc-steps li{gap:14px}
  #welcomeConnectScreen .welcome-fc-steps li>span{width:30px;height:30px;font-size:13px}
  #welcomeConnectScreen .welcome-fc-steps h3{font-size:14px}
  #welcomeConnectScreen .welcome-fc-steps p{font-size:12px}
  #welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-body{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}
  #welcomeConnectScreen #replayDataPickerOverlay .replay-data-picker-empty{min-height:70px!important}
  #welcomeConnectScreen #welcomeMissionMount .settings-row{grid-template-columns:minmax(0,1fr);gap:10px}
  #welcomeConnectScreen #welcomeMissionMount .welcome-mission-note{font-size:11px;margin-bottom:18px}
}
@media(max-width:600px) and (orientation:portrait){
  #welcomeConnectScreen .welcome-home-stage{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:18px;padding:0}
  #welcomeConnectScreen .welcome-home-readiness{order:2}
  #welcomeConnectScreen .welcome-home-simulation{order:1;align-self:stretch;width:100%;margin:auto 0;padding:0}
  #welcomeConnectScreen .welcome-home-simulation header{margin-bottom:12px}
  #welcomeConnectScreen .welcome-home-simulation h2{font-size:16px}
  #welcomeConnectScreen .welcome-home-simulation p{display:none}
  #welcomeConnectScreen .welcome-home-modes{gap:12px}
  #welcomeConnectScreen .welcome-home-modes button{min-height:126px;padding:16px;gap:5px;border-radius:10px}
  #welcomeConnectScreen .welcome-home-modes svg{width:24px;height:24px;margin-bottom:7px}
  #welcomeConnectScreen .welcome-home-modes strong{font-size:19px}
  #welcomeConnectScreen .welcome-home-modes button>span{font-size:10px;letter-spacing:-.025em}
  #welcomeConnectScreen .welcome-home-readiness{width:100%;padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  #welcomeConnectScreen #welcomeConnectStatus{margin:12px 0 7px;font-size:25px}
  #welcomeConnectScreen .welcome-home-guide{margin-top:12px}
  #welcomeConnectScreen .welcome-home-guide-content{max-height:17dvh}
  #welcomeConnectScreen .welcome-home-footer{flex-direction:column;align-items:stretch;gap:14px;padding-top:0;border-top:0}
  #welcomeConnectScreen .welcome-home-connect{order:-1}
  #welcomeConnectScreen .welcome-home-connect>span{display:none}
  #welcomeConnectScreen #welcomeBoardSearchBtn{width:100%;min-width:0;height:54px}
  #welcomeConnectScreen .welcome-home-shortcuts{justify-content:center;gap:clamp(16px,6vw,28px)}
  #welcomeConnectScreen .welcome-home-shortcut{gap:7px;min-height:56px;font-size:11px}
  #welcomeConnectScreen .welcome-home-shortcut svg{width:22px;height:22px}
}
@media(max-width:900px) and (orientation:landscape){
  #welcomeConnectScreen{--welcome-inset:28px;padding-top:12px;padding-bottom:12px}
  #welcomeConnectScreen .welcome-home-header{min-height:30px}
  #welcomeConnectScreen .welcome-home-stage{grid-template-columns:300px minmax(0,1fr);gap:24px;padding:0}
  #welcomeConnectScreen .welcome-home-simulation{padding:0;align-self:center}
  #welcomeConnectScreen .welcome-home-simulation header{margin-bottom:10px}
  #welcomeConnectScreen .welcome-home-simulation h2{font-size:15px}
  #welcomeConnectScreen .welcome-home-simulation p{display:none}
  #welcomeConnectScreen .welcome-home-modes{gap:12px}
  #welcomeConnectScreen .welcome-home-modes button{min-height:122px;padding:16px;gap:6px}
  #welcomeConnectScreen .welcome-home-modes strong{font-size:20px}
  #welcomeConnectScreen .welcome-home-modes svg{width:23px;height:23px;margin-bottom:4px}
  #welcomeConnectScreen .welcome-home-modes button>span{font-size:10px}
  #welcomeConnectScreen .welcome-home-readiness{width:300px;padding:16px 20px}
  #welcomeConnectScreen #welcomeConnectStatus{font-size:22px;margin:10px 0 5px}
  #welcomeConnectScreen .welcome-home-description{font-size:12px}
  #welcomeConnectScreen .welcome-home-guide{margin-top:10px}
  #welcomeConnectScreen .welcome-home-guide h2{min-height:30px;padding-top:6px}
  #welcomeConnectScreen .welcome-home-guide-content{max-height:65px}
  #welcomeConnectScreen .welcome-home-footer{padding-top:10px;align-items:center}
  #welcomeConnectScreen .welcome-home-shortcuts{gap:30px}
  #welcomeConnectScreen .welcome-home-shortcut{min-height:44px;flex-direction:row;gap:9px}
  #welcomeConnectScreen .welcome-home-shortcut svg{width:21px;height:21px}
  #welcomeConnectScreen .welcome-home-connect>span{display:none}
  #welcomeConnectScreen #welcomeBoardSearchBtn{height:46px;min-width:190px;font-size:15px}
}

/* View controls live in the control center; the canvas stays clear. */
.scene3d-controls{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;
  flex:0 0 auto;margin:0 20px 16px;padding:14px;
  border:1px solid #34363b;border-radius:8px;background:#1b1c1f;color:#e6edf3;
  font:550 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.scene3d-heading{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.scene3d-heading strong{font-weight:600}
.scene3d-controls button{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  grid-column:span 2;min-width:0;min-height:36px;padding:0 9px;
  border:1px solid #34363b;border-radius:6px;background:#202226;
  color:#d0dce6;font:inherit;cursor:pointer;touch-action:manipulation;
}
.scene3d-controls button:hover:not(:disabled){background:#ffffff0d;color:#fff}
.scene3d-controls button:disabled{opacity:.35;cursor:default}
.scene3d-controls button[aria-pressed="true"]{background:#ffffff12;color:#fff}
.scene3d-controls button[data-gyro-action="follow"][aria-pressed="true"]{color:#71e5af}
.scene3d-controls button:focus-visible{outline:2px solid #71e5af;outline-offset:2px}
.scene3d-controls button:active:not(:disabled){background:#ffffff22}
.scene3d-controls svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.scene3d-presets{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.scene3d-presets button{grid-column:auto}
.scene3d-zoom{grid-column:span 2;display:flex;gap:6px}
.scene3d-zoom button{flex:1;font-size:20px;font-weight:400;padding:0}
.scene3d-mode{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#aeb4bd;font-size:10px}
.scene3d-mode i{width:5px;height:5px;border-radius:50%;background:#71e5af}
[data-camera-mode="free"] .scene3d-mode i{background:#e1b866}
#gyro3dViewport.is-expanded, #gyro3dViewport.is-camera-gyro-plus-mounted,
html.phone-landscape-layout #gyro3dViewport{touch-action:none}
#gyro3dViewport.is-expanded, #gyro3dViewport.is-expanded > .gyro3d-canvas,
#gyro3dViewport.is-camera-gyro-plus-mounted, #gyro3dViewport.is-camera-gyro-plus-mounted > .gyro3d-canvas,
html.phone-landscape-layout body.dashboard-view-active #gyro3dViewport,
html.phone-landscape-layout body.dashboard-view-active #gyro3dViewport > .gyro3d-canvas{pointer-events:auto !important}
#gyro3dViewport.is-dragging{cursor:grabbing !important}
#gyro3dViewport .status-expanded-metric{background:#263440ee;border-color:#ffffff40;box-shadow:0 8px 30px #0003}
#gyro3dViewport .status-expanded-metric-value{color:#eaf1f6}
#gyro3dViewport .status-expanded-metric-label{color:#9aacb9;letter-spacing:.16em}
#gyro3dViewport .gyro3d-expanded-left{min-width:0}
#gyro3dViewport .gyro3d-expanded-mainline{flex-wrap:wrap;gap:8px}
@media(prefers-reduced-motion:reduce){.scene3d-controls *{transition:none !important}}

@media(min-width:901px){
  body.camera-view-active.camera-gyro-plus-layout #gyro3dViewport.is-camera-gyro-plus-mounted{cursor:grab !important}
}

@media(max-width:900px){
  .scene3d-controls{margin:0 12px 12px;padding:12px}
  .scene3d-controls button{min-height:40px;padding:0 5px}
  html.phone-landscape-layout:not(.status-map-expanded) body.dashboard-view-active #gyro3dViewport.status-gyro-canvas--3d{
    position:fixed !important;inset:0 !important;width:100vw !important;height:100dvh !important;
    min-height:0 !important;max-height:100dvh !important;aspect-ratio:auto !important;
    border:0 !important;border-radius:0 !important;
  }
  html.gyro3d-expanded #mobileBoardHeader{display:none !important}
  html.phone-landscape-layout body.dashboard-view-active #mobileBoardHeader{
    position:fixed !important;top:12px !important;left:12px !important;right:auto !important;
    width:112px !important;height:30px !important;min-height:0 !important;padding:0 !important;
    background:transparent !important;border:0 !important;
  }
  html.phone-landscape-layout #mobileBoardHeader .mobile-board-main{width:100%;min-height:30px;padding:0}
  html.phone-landscape-layout #mobileBoardHeader .mobile-board-name{max-width:88px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.phone-landscape-layout #mobileBoardHeader .mobile-board-state,
  html.phone-landscape-layout #mobileBoardHeader .mobile-board-actions{display:none}
  html.phone-landscape-layout #mobileBoardHeader .mobile-board-panel{top:38px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 64px);overflow-y:auto}
  html.phone-landscape-layout #gyro3dViewport .gyro3d-expanded-left{padding-left:120px;max-width:calc(100% - 260px)}
  html.phone-landscape-layout #gyro3dViewport .gyro3d-expanded-mainline{flex-wrap:nowrap}
  html.phone-landscape-layout #gyro3dViewport .countdown-inline-status{min-width:0}
  html.phone-landscape-layout #gyro3dViewport .countdown-inline-status-text{max-width:180px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.phone-landscape-layout.gyro3d-expanded #gyro3dViewport .gyro3d-expanded-left{padding-left:0}
}


/* Online mission and geographic recovery presentation. */
/* Online mission and recovery surfaces use the existing black console palette. */
.recovery-panel{color:#e5e7e9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:0}
.recovery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.recovery-header small{color:#8c939b;font-size:9px;letter-spacing:.13em}.recovery-header h2{margin:5px 0 0;font-size:22px;font-weight:600}.recovery-header>span{font-size:11px;color:#abb6bc;text-align:right}
.recovery-map{height:280px;min-height:180px;border:1px solid #30353a;border-radius:8px;overflow:hidden;background:#191d21;margin-bottom:14px;z-index:0}
.recovery-readouts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.recovery-readouts article{display:flex;flex-direction:column;gap:8px;border:1px solid #30353a;background:#151719;border-radius:8px;padding:15px;min-width:0}.recovery-readouts small{color:#8e969f;font-size:10px;font-weight:550;letter-spacing:.08em}.recovery-readouts strong{font-size:30px;line-height:1.2;font-weight:400;font-variant-numeric:tabular-nums}.recovery-readouts .recovery-state{font-size:23px}.recovery-readouts span{font-size:10px;line-height:1.6;color:#8d969f}.recovery-readouts .recovery-coordinates{grid-column:1/-1}.recovery-coordinates strong{font-size:21px;letter-spacing:.01em;overflow-wrap:anywhere}.recovery-reference{margin:12px 0 20px;color:#939ba3;font-size:11px;line-height:1.6}
.antenna-guide{border-top:1px solid #30353a;padding-top:18px}.antenna-guide header{display:flex;justify-content:space-between;align-items:center;gap:12px}.antenna-guide h3{font-size:11px;letter-spacing:.08em;margin:0}.antenna-guide header>span{color:#9ea7ae;font-size:10px;text-align:right}.antenna-aim{display:grid;justify-items:center;gap:12px;padding:22px 0 14px}.antenna-reticle{position:relative;display:grid;place-items:center;width:105px;height:105px;border:1px solid #444d55;border-radius:50%;background:radial-gradient(circle,#252d34 0,transparent 70%)}.antenna-reticle:before,.antenna-reticle:after{content:"";position:absolute;background:#3e4851}.antenna-reticle:before{width:1px;height:130px}.antenna-reticle:after{height:1px;width:130px}.antenna-reticle b{display:block;font-size:62px;font-weight:200;line-height:1;color:#d9e1e5;transform-origin:50% 50%;z-index:1}.antenna-aim strong{font-size:16px;font-weight:550;min-height:22px;text-align:center}.antenna-metrics{display:flex;justify-content:space-between;gap:10px;color:#929ca5;font-size:11px}.antenna-metrics b{margin-left:5px;color:#d7dfe3;font-weight:550;font-variant-numeric:tabular-nums}.antenna-guide p,.recovery-settings p{font-size:11px;color:#939ca5;line-height:1.65}
.recovery-panel button,.mission-publish-section button,.mission-share-result a,.mission-join-form button,.online-mission-nav button{min-height:37px;padding:9px 13px;border:1px solid #3d444a;border-radius:6px;background:#22272c;color:#e3e7ea;font:550 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;box-shadow:none}.recovery-panel button:hover,.mission-publish-section button:hover{background:#2a3036}.recovery-calibration{display:flex;gap:8px;margin-top:8px}.recovery-calibration button{flex:1;font-size:10px}.recovery-settings{margin-top:18px;border-top:1px solid #30353a;padding-top:14px}.recovery-settings summary{cursor:pointer;font-size:12px;color:#c8ced2}.recovery-settings label,.mission-publish-form label,.mission-join-form label{display:grid;gap:7px;margin:12px 0;color:#a8b0b7;font-size:11px}.recovery-panel input,.mission-publish-form input,.mission-join-form input{box-sizing:border-box;width:100%;min-width:0;min-height:38px;border:1px solid #363e46;border-radius:6px;background:#0d1013;color:#e8edf1;font:400 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:9px 11px}.recovery-settings form{border-top:1px solid #30353a;margin-top:14px;padding-top:4px}.recovery-settings>button{margin-top:14px}.mission-publish-section{margin:12px 0}.mission-publish-section summary>span:first-child,.mission-recovery-section summary>span:first-child{display:grid;gap:4px}.mission-publish-section summary small,.mission-recovery-section summary small{font-size:10px;color:#909aa3}.mission-publish-form{margin-top:14px}.mission-publish-form button{width:100%}.mission-share-result{margin-top:16px;padding-top:16px;border-top:1px solid #30353a}.mission-share-result[hidden]{display:none}.mission-share-result>small{display:block;font-size:9px;letter-spacing:.14em;color:#8f9ba4}.mission-share-result>strong{display:block;margin:9px 0;font-size:27px;letter-spacing:.17em;font-weight:550}.mission-share-result p,.mission-status{font-size:11px;color:#a0a9b2;line-height:1.6}.mission-share-result a{display:inline-flex;align-items:center;text-decoration:none;margin:8px 0}.mission-share-result [data-mission-end]{display:block;width:100%;color:#d0a6a5}.mission-recovery-section .recovery-panel{margin-top:16px}.control-center-panel .recovery-map{display:none}.control-center-panel .recovery-header h2{font-size:18px}.control-center-panel .recovery-readouts article{padding:12px}.control-center-panel .recovery-readouts strong{font-size:25px}.control-center-panel .recovery-coordinates strong{font-size:16px}.control-center-panel .recovery-readouts .recovery-state{font-size:20px}
.online-mission-nav{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;border-bottom:1px solid #292e33;background:#080a0cf2;color:#dce1e5}.online-mission-nav>a{color:#f2f3f4;font-weight:650;font-size:13px;letter-spacing:.12em;text-decoration:none}.online-mission-nav>div{display:flex;gap:5px}.online-mission-nav button{background:none;border-color:transparent;min-height:32px;font-size:11px}.online-mission-nav button[aria-pressed="true"]{background:#252b30;border-color:#3b434a}.online-mission-nav [data-online-leave]{color:#949ea7}.online-recovery-layout{max-width:1050px;width:100%;margin:0 auto;padding:24px;box-sizing:border-box}.online-mission-viewer[data-online-tab="telemetry"] .online-recovery-layout,.online-mission-viewer[data-online-tab="recovery"] .split-monitor-main{display:none!important}
html[data-theme] body.online-mission-viewer{display:block;height:100dvh;overflow:auto;background:#000;color:#e2e6ea}.online-mission-viewer .split-monitor-header{height:32px}.online-mission-viewer .split-monitor-main{height:calc(100dvh - 92px);min-height:600px}.online-mission-viewer .split-entry{z-index:2000}.mission-join-content{text-align:left;width:min(100%,410px);margin:auto}.mission-join-content h1{font-size:32px}.mission-join-content>p{color:#929ba3;font-size:13px;line-height:1.7}.mission-join-form{margin-top:26px}.mission-join-form input[data-mission-join-code]{font-size:24px;letter-spacing:.19em;text-transform:uppercase}.mission-join-form button{width:100%;background:#e7e9eb;color:#15181b;border-color:#e7e9eb;margin-top:10px}.mission-join-form details{margin-top:20px;color:#8c969e;font-size:11px}.mission-join-form p{font-size:11px;color:#8d969f;line-height:1.6}.mission-join-error{min-height:2em;color:#c9a5a4;font-size:12px;line-height:1.6}.mission-join-content>a{display:inline-block;margin-top:18px;color:#949ea7;font-size:12px}.mission-stale-strip{padding:7px 20px;font-size:11px;color:#c4b7a0;background:#201d17;border-bottom:1px solid #383025}.mission-stale-strip[hidden]{display:none}
@media(min-width:1000px){.online-recovery-layout .recovery-panel{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:16px 24px}.online-recovery-layout .recovery-header{grid-column:1/-1;margin:0}.online-recovery-layout .recovery-map{grid-column:1;grid-row:2/5;height:400px;margin:0}.online-recovery-layout .recovery-readouts{grid-column:2;grid-row:2}.online-recovery-layout .recovery-reference{grid-column:2;margin:0}.online-recovery-layout .antenna-guide{grid-column:1}.online-recovery-layout .recovery-settings{grid-column:2;margin:0}}
@media(max-width:700px){#welcomeConnectScreen .welcome-home-shortcuts{gap:clamp(10px,4vw,22px)}#welcomeConnectScreen .welcome-home-shortcut{min-width:54px;font-size:11px}.online-mission-nav{padding:10px 12px;gap:6px}.online-mission-nav>a{font-size:11px;letter-spacing:.05em}.online-mission-nav button{padding:7px;font-size:10px}.online-recovery-layout{padding:16px}.online-mission-viewer .split-monitor-main{display:flex!important;flex-direction:column;height:auto;min-height:0;padding:14px;overflow:visible}.online-mission-viewer[data-online-tab="recovery"] .split-monitor-main{display:none!important}.online-mission-viewer .split-monitor-heading{flex-wrap:wrap;min-height:60px}.online-mission-viewer .split-sequence{min-height:100px}.online-mission-viewer .split-quick-data{min-height:500px;overflow:visible}.online-mission-viewer .split-monitor-charts,.online-mission-viewer .split-monitor-systems{display:grid;grid-template-columns:1fr;grid-template-rows:auto;gap:12px;min-height:0}.online-mission-viewer .camera-telemetry-chart{height:250px;min-height:250px}.online-mission-viewer .comm-v3-quality-stage{min-height:300px}.online-mission-viewer .split-airbrake{min-height:320px}.online-mission-viewer .camera-chart-settings>strong{display:none}.online-mission-viewer .split-monitor-time{font-size:26px}.recovery-map{height:240px}}


.online-mission-viewer .split-airbrake-controls{display:none}

#welcomeConnectScreen .welcome-online-controls{position:relative;display:flex;align-items:center;gap:14px;margin-left:auto}
#welcomeConnectScreen .welcome-online-toggle{display:flex;align-items:center;gap:10px;padding:8px 0;min-height:40px;border:0;background:none;box-shadow:none;color:#d9dddd;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer}
#welcomeConnectScreen .welcome-online-toggle i{display:block;position:relative;width:34px;height:20px;border:1px solid #444a4a;border-radius:20px;background:#202424;transition:background .15s}
#welcomeConnectScreen .welcome-online-toggle i:after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#929999;transition:transform .15s}
#welcomeConnectScreen .welcome-online-toggle[aria-checked="true"] i{background:#e1e5e5;border-color:#e1e5e5}
#welcomeConnectScreen .welcome-online-toggle[aria-checked="true"] i:after{background:#222727;transform:translateX(14px)}
#welcomeConnectScreen .welcome-online-settings>summary{font-size:11px;color:#8e9797;cursor:pointer;list-style:none}
#welcomeConnectScreen .welcome-online-settings>div{position:absolute;right:0;top:48px;width:min(340px,calc(100vw - 48px));max-height:calc(100dvh - 140px);overflow:auto;z-index:5;padding:20px;border:1px solid #303535;border-radius:12px;background:#0d1010;box-shadow:0 16px 48px #0009;box-sizing:border-box}
#welcomeConnectScreen .welcome-online-join{display:block;margin-top:18px;border-top:1px solid #303535;padding-top:14px;color:#b9c1c1;font-size:12px;text-decoration:none}
@media(max-width:700px){#welcomeConnectScreen .welcome-home-header{flex-wrap:wrap;gap:10px}#welcomeConnectScreen .welcome-online-controls{order:3;width:100%;justify-content:flex-end}#welcomeConnectScreen .welcome-home-mission{margin-left:auto}}


.recovery-panel [data-recovery-camera-open]{width:100%;margin-top:10px;background:#e0e5e7;color:#15191c;border-color:#e0e5e7;font-weight:600}
.recovery-camera[hidden]{display:none!important}
.recovery-camera{position:fixed;inset:0;z-index:2147483200;overflow:hidden;background:#070a0c;color:#f4f6f7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--camera-aim:#f0f4f6;isolation:isolate}
.recovery-camera video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
.recovery-camera-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(#0009,transparent 28%,transparent 62%,#000d)}
.recovery-camera-header{position:absolute;top:calc(env(safe-area-inset-top,0px) + 20px);left:22px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.recovery-camera-header>div{display:grid;gap:5px}.recovery-camera-header small{font-size:9px;letter-spacing:.18em;color:#c2cacf}.recovery-camera-header strong{font-size:18px;font-weight:550}
.recovery-camera button{border:1px solid #ffffff40;border-radius:8px;background:#11181ac7;color:#e7ebed;font:500 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:10px 14px;min-height:40px;box-shadow:none;cursor:pointer;transform:none}
.recovery-camera button:hover{background:#283239d9;transform:none}.recovery-camera button:focus-visible{outline:2px solid #e7eff4;outline-offset:3px}
.recovery-camera-modes{position:absolute;top:calc(env(safe-area-inset-top,0px) + 88px);left:50%;transform:translateX(-50%);display:flex;padding:4px;gap:4px;background:#11181ac7;border:1px solid #ffffff25;border-radius:10px;white-space:nowrap}
.recovery-camera-modes button{border:0;background:none;min-height:34px;padding:7px 16px;color:#acb8bf}.recovery-camera-modes button[aria-pressed="true"]{background:#e3e9ec;color:#172026}
.recovery-camera-center{position:absolute;left:50%;top:50%;width:84px;height:84px;transform:translate(-50%,-50%);border:1.5px solid var(--camera-aim);border-radius:50%;box-shadow:0 0 0 9px #00000012,0 1px 12px #0006;pointer-events:none;transition:border-color .15s,background .15s}
.recovery-camera-center:before,.recovery-camera-center:after{content:"";position:absolute;background:var(--camera-aim);opacity:.7}.recovery-camera-center:before{width:1px;height:12px;left:50%;top:calc(50% - 6px)}.recovery-camera-center:after{width:12px;height:1px;left:calc(50% - 6px);top:50%}
.recovery-camera-target{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;pointer-events:none;color:var(--camera-aim)}.recovery-camera-target[hidden],.recovery-camera-direction[hidden]{display:none!important}.recovery-camera-target i{display:block;width:34px;height:34px;border:2px solid currentColor;border-radius:50%;background:#dce8ee20;box-shadow:0 0 0 6px #0002,0 1px 10px #0008}.recovery-camera-target span{position:absolute;top:48px;white-space:nowrap;font-size:11px;letter-spacing:.03em;text-shadow:0 1px 6px #000,0 1px 3px #000}
.recovery-camera-direction{position:absolute;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:15px solid var(--camera-aim);filter:drop-shadow(0 1px 4px #000b);pointer-events:none}
.recovery-camera[data-aligned="true"]{--camera-aim:#73d6a1}.recovery-camera[data-aligned="true"] .recovery-camera-center{background:#5cce8d16}.recovery-camera[data-aligned="true"] [data-camera-message]{color:#87e2af}
.recovery-camera-footer{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 20px);left:22px;right:22px;text-align:center;display:grid;justify-items:center;gap:9px;text-shadow:0 1px 5px #0008}
.recovery-camera-footer>strong{font-size:17px;font-weight:550}.recovery-camera-footer>span{font-size:20px;font-weight:400;font-variant-numeric:tabular-nums}.recovery-camera-footer p{font-size:11px;line-height:1.5;margin:0;color:#bbc6ce}.recovery-camera-footer>div{display:flex;gap:8px}.recovery-camera-footer small{max-width:340px;font-size:10px;line-height:1.5;color:#a7b3bc}
@media(max-height:500px){.recovery-camera-header{top:calc(env(safe-area-inset-top,0px) + 10px);left:16px;right:16px}.recovery-camera-header strong{font-size:15px}.recovery-camera-modes{top:calc(env(safe-area-inset-top,0px) + 10px)}.recovery-camera-footer{bottom:calc(env(safe-area-inset-bottom,0px) + 10px);gap:4px}.recovery-camera-footer>strong{font-size:13px}.recovery-camera-footer>span{font-size:15px}.recovery-camera-footer small{display:none}.recovery-camera-footer>div{position:absolute;right:0;bottom:0}}

.recovery-camera>:not(video):not(.recovery-camera-shade){z-index:2}
.recovery-camera-footer>div{flex-wrap:wrap;justify-content:center}

