:root {
  --bg: #f4f6f9;
  --white: #ffffff;
  --soft: #f8fafc;
  --soft-2: #f1f5f9;
  --ink: #0f1115;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: rgba(15, 23, 42, 0.07);
  --line-hi: rgba(15, 23, 42, 0.13);
  --orange: #ff5500;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;
  --blue: #2563eb;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(960px 460px at 12% -10%, rgba(255, 85, 0, 0.045), transparent 60%),
    radial-gradient(880px 460px at 90% -8%, rgba(16, 185, 129, 0.045), transparent 60%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mono {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.22); }

/* =========================================================
   TOP NAVIGATION BAR — Official Daylight White Glass
========================================================= */
.topbar {
  height: 58px;
  width: 100%;
  max-width: 100vw;
  flex-shrink: 0;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  white-space: nowrap; flex-shrink: 0;
}
.brand img {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); object-fit: cover; flex-shrink: 0;
}
.brand strong { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-pill {
  padding: 2px 8px; border-radius: 6px;
  background: var(--soft-2); color: var(--ink-2);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* Clean Segmented Channel Switcher */
.ch-switcher {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px; border-radius: 11px;
  background: #eef1f6;
  border: 1px solid rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}
.ch-tab {
  border: none; background: transparent; color: var(--ink-2);
  padding: 6px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.ch-tab:hover { color: var(--ink); }
.ch-tab.active {
  background: var(--white); color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ch-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; transition: all 0.2s; }
.ch-tab.active[data-ch="h1"] .ch-badge-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.ch-tab.active[data-ch="h2"] .ch-badge-dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18); }
.ch-tab.active[data-ch="h3"] .ch-badge-dot { background: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }
.ch-tab.active[data-ch="h4"] .ch-badge-dot { background: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2); }

.top-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.t-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.t-pill:hover { border-color: var(--line-hi); color: var(--ink); transform: translateY(-1px); }
.t-pill.qq { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }
.t-pill.qq:hover { background: #dbeafe; }

.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.live-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }

/* =========================================================
   ONE-SCREEN ZERO-SCROLL COCKPIT
========================================================= */
.cockpit {
  flex: 1;
  min-height: 0;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 28px 22px;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 20px;
}
.col { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }

/* The ONLY Dark Hero Object: Physical 3D Metallic Pass Card on a Bright Studio Table */
.card-scene { perspective: 1200px; flex-shrink: 0; min-width: 0; }
.pass-card {
  width: 100%; height: 192px; border-radius: 20px; padding: 20px 24px;
  position: relative; overflow: hidden; color: #ffffff;
  background: linear-gradient(135deg, #161922 0%, #232836 55%, #11141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column; justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.24s var(--ease), background 0.45s var(--ease);
}
.pass-card.mode-h1 { background: linear-gradient(135deg, #0e1c19 0%, #15312a 52%, #0e1518 100%); }
.pass-card.mode-gemini { background: linear-gradient(135deg, #171921 0%, #2d1d16 54%, #12141b 100%); }
.pass-card.mode-codex { background: linear-gradient(135deg, #14172a 0%, #211e52 54%, #111320 100%); }
.pass-glare {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--mx, 78%) var(--my, 18%), rgba(255,255,255,0.16) 0%, transparent 48%);
  pointer-events: none;
}
.pass-glow {
  position: absolute; right: -30px; bottom: -55px; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,85,0,0.4) 0%, transparent 68%);
  pointer-events: none; transition: background 0.4s ease;
}
.pass-card.mode-h1 .pass-glow { background: radial-gradient(circle, rgba(16,185,129,0.44) 0%, transparent 68%); }
.pass-card.mode-h3 { background: linear-gradient(135deg, #131526 0%, #232056 54%, #0f1120 100%); }
.pass-card.mode-h3 .pass-glow { background: radial-gradient(circle, rgba(99,102,241,0.48) 0%, transparent 68%); }
.cmd-go.h3-accent:hover { background: #4f46e5; }
.g-step.h3 .num { color: #4f46e5; }
.btn-main.indigo { background: #4f46e5; }
.btn-main.indigo:hover { background: #4338ca; }
.pass-card.mode-h4 { background: linear-gradient(135deg, #0d1824 0%, #14304a 54%, #0c141d 100%); }
.pass-card.mode-h4 .pass-glow { background: radial-gradient(circle, rgba(14,165,233,0.44) 0%, transparent 68%); }
.cmd-go.h4-accent:hover { background: #0284c7; }
.g-step.h4 .num { color: #0284c7; }
.btn-main.sky { background: #0284c7; }
.btn-main.sky:hover { background: #0369a1; }
.pass-top, .pass-mid, .pass-bot { position: relative; z-index: 2; }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-brand { display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.86); }
.pass-brand img { width: 22px; height: 22px; border-radius: 6px; }
.pass-status {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  font-size: 11px; font-weight: 700;
}
.pass-status.ok { background: rgba(16,185,129,0.22); border-color: rgba(52,211,153,0.5); color: #6ee7b7; }
.pass-status.proc { background: rgba(245,158,11,0.24); border-color: rgba(251,191,36,0.52); color: #fde68a; }
.pass-status.err { background: rgba(244,63,94,0.22); border-color: rgba(251,113,133,0.5); color: #fda4af; }
.pass-type { font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.48); margin-bottom: 5px; }
.pass-code { font-size: 22px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.pm span { display: block; font-size: 9.5px; letter-spacing: 0.13em; color: rgba(255,255,255,0.46); margin-bottom: 2px; }
.pm strong { font-size: 13.5px; font-weight: 700; }

/* Crisp Pure White Command Bar */
.cmd-shell {
  flex-shrink: 0; min-width: 0;
  background: var(--white);
  border: 1px solid var(--line-hi);
  border-radius: 15px;
  padding: 6px;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.08);
  display: flex; gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cmd-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.06), 0 8px 24px -10px rgba(15, 23, 42, 0.1);
}
.cmd-input {
  flex: 1; min-width: 0; height: 44px; border: none; background: transparent;
  padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); outline: none;
}
.cmd-input::placeholder { color: var(--ink-3); font-weight: 500; }
.cmd-go {
  height: 44px; padding: 0 22px; border-radius: 10px; border: none;
  background: var(--ink); color: #ffffff;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.18s var(--ease);
}
.cmd-go:hover { background: var(--orange); transform: translateY(-1px); }
.cmd-go.h1-accent:hover { background: #059669; }
.cmd-go:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.mode-switch {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3);
}
.mode-switch strong { color: var(--ink-2); }
.q-chip {
  padding: 4px 11px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: all 0.16s var(--ease);
}
.q-chip:hover { border-color: var(--ink); color: var(--ink); }

.spin {
  width: 13px; height: 13px; border: 2px solid currentColor;
  border-top-color: transparent; border-radius: 50%; animation: rot 0.65s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* =========================================================
   UNIFIED PURE WHITE STUDIO PANELS (Zero Black Patches!)
========================================================= */
.panel {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 36px -16px rgba(15, 23, 42, 0.08);
}
.work-panel {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Clean Architectural 3-Step Strip */
.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 14px 0 8px;
}
.g-step {
  padding: 14px 14px 13px; border-radius: 14px;
  background: var(--soft); border: 1px solid rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.g-step:hover { background: var(--white); border-color: var(--line-hi); }
.g-step .num { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 6px; }
.g-step.h1 .num { color: #059669; }
.g-step strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.g-step span { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; display: block; }

.f-row { margin-bottom: 10px; }
.f-row label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.f-row input, .f-row textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #dde3ec; background: var(--soft);
  color: var(--ink); font-size: 13px; outline: none; transition: all 0.16s ease;
}
.f-row input:focus, .f-row textarea:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.05); }

.btn-main {
  padding: 9px 18px; border-radius: 10px; border: none;
  background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  transition: all 0.18s var(--ease);
}
.btn-main:hover { background: #e54900; transform: translateY(-1px); }
.btn-main.green { background: #059669; }
.btn-main.green:hover { background: #047857; }
.btn-main:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
  padding: 7px 13px; border-radius: 9px;
  border: 1px solid #fecdd3; background: #fff1f2; color: #e11d48;
  font-size: 12px; font-weight: 700; cursor: pointer;
}

.err-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #fff1f2; border: 1px solid #fecdd3; color: #be123c;
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.ok-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.warn-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}

.hist-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}

/* Batch Summary + Collapsible Details (Light Studio) */
.batch-summary {
  margin-top: 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.bs-counts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bs-pill {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: all 0.14s ease;
}
.bs-pill.all { background: var(--ink); color: #fff; }
.bs-pill.ok { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.bs-pill.idle { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.bs-pill.run { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.bs-pill.fail { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.bs-pill.dim { opacity: 0.42; }

.b-list {
  margin-top: 10px; display: flex; flex-direction: column; gap: 7px;
  flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px;
}
details.b-item {
  border-radius: 10px; background: var(--soft); border: 1px solid var(--line);
  overflow: hidden; transition: border-color 0.15s ease;
}
details.b-item[open] { background: #fff; border-color: var(--line-hi); }
details.b-item > summary {
  list-style: none; cursor: pointer; padding: 8px 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; user-select: none;
}
details.b-item > summary::-webkit-details-marker { display: none; }
.b-sum-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.b-caret { font-size: 9px; color: var(--ink-3); transition: transform 0.16s ease; }
details.b-item[open] .b-caret { transform: rotate(90deg); }
.b-code { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-body {
  padding: 8px 11px 10px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px;
}
.b-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   RIGHT: PURE APPLE-STORE DAYLIGHT TELEMETRY BOARD
   (100% Unified Light Palette — ZERO Black Patches!)
========================================================= */
.wall-panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 20px 22px 16px; gap: 14px;
}
.p-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.p-title-group { display: flex; align-items: center; gap: 9px; }
.p-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.date-tag {
  padding: 2px 8px; border-radius: 6px;
  background: var(--soft); border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.p-live {
  font-size: 11.5px; font-weight: 700; color: #059669;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

/* Unified 4-Cell Seamless Light Stat Bar (No Black Square, No Colored Eyebrows) */
.stat-deck {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.pod, .rate-capsule {
  padding: 13px 15px 12px;
  background: transparent;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  position: relative;
}
.pod + .pod::before, .rate-capsule::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: rgba(15, 23, 42, 0.07);
}
.rate-capsule {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.055) 0%, rgba(255, 85, 0, 0.01) 100%);
}
.pod-top, .rc-lbl {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.pod-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pod-num, .rc-num {
  font-size: 26px; font-weight: 800; line-height: 1;
  letter-spacing: -0.035em; white-space: nowrap;
}
.pod-ok .pod-dot { background: #10b981; }
.pod-ok .pod-num { color: #059669; }
.pod-fail .pod-dot { background: #f43f5e; }
.pod-fail .pod-num { color: #e11d48; }
.pod-run .pod-dot { background: #f59e0b; }
.pod-run .pod-num { color: #d97706; }
.rc-num { color: var(--ink); }

/* Sleek Stripe / Vercel Style 30-Bar Single-Row Telemetry Strip (NEVER Overflows, Zero Icon Clutter) */
.tray-box {
  flex-shrink: 0;
  border-radius: 14px;
  padding: 13px 16px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
}
.sec-head strong { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg-dot { width: 7px; height: 7px; border-radius: 99px; }

.tile-wrap {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 7px;
  min-height: 24px;
  align-items: center;
}
.tile-empty-msg {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--ink-3); padding: 4px 0;
}
.m-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 24px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: transform 0.16s var(--ease), box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.m-tile:hover { transform: translateY(-2px) scale(1.14); z-index: 10; }

/* Pure Refined Rounded Squares — Zero Icon Clutter, Apple Daylight Calibrated */
.m-tile.ok {
  background: #10b981;
  border: 1px solid rgba(5, 150, 105, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 5px rgba(16, 185, 129, 0.22);
}
.m-tile.ok:hover { background: #059669; box-shadow: 0 5px 12px rgba(16, 185, 129, 0.34); }
.m-tile.run {
  background: #f59e0b;
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 5px rgba(245, 158, 11, 0.22);
  animation: softGlow 1.9s ease-in-out infinite;
}
.m-tile.fail {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.26);
}
.m-tile.fail:hover { background: #f43f5e; border-color: #e11d48; box-shadow: 0 5px 12px rgba(244, 63, 94, 0.28); }
@keyframes softGlow { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Crisp Minimal Monospace Time-Only Tooltip */
.m-tile::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: #ffffff;
  padding: 3px 8px; border-radius: 6px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: all 0.14s var(--ease);
}
.m-tile:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Clean Light Live Activity Feed */
.feed-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.live-wall { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.empty-wall {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 12.5px; text-align: center;
}
.log-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 9px;
  font-size: 12.5px; transition: background 0.14s ease;
}
.log-row:hover { background: var(--soft); }
.log-seq { font-size: 11.5px; font-weight: 600; color: var(--ink-3); min-width: 32px; }
.lw-tag {
  padding: 2.5px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.lw-tag.ok { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.lw-tag.run { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.lw-tag.ref { background: #fff1f2; color: #e11d48; border: 1px solid #ffe4e6; }
.log-leader { flex: 1; border-bottom: 1px dotted rgba(15, 23, 42, 0.11); height: 1px; }
.log-time { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

.wall-foot {
  flex-shrink: 0; padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-3);
}

.h1-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 7px;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  color: #059669; font-size: 11px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: all 0.16s var(--ease);
}
.h1-cta:hover { background: #059669; color: #ffffff; border-color: #059669; }

/* Official QQ Support Card — Clean Light Sapphire */
.qq-strip {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 8px 24px -14px rgba(37, 99, 235, 0.14);
}
.qq-left { display: flex; align-items: center; gap: 13px; }
.qq-left img { width: 52px; height: 52px; border-radius: 10px; border: 1px solid #dbeafe; object-fit: cover; cursor: pointer; }
.qq-left strong { display: block; font-size: 14.5px; font-weight: 800; color: #1e3a8a; }
.qq-left span { font-size: 11.5px; color: var(--ink-2); }
.qq-btns { display: flex; gap: 8px; }

/* Light Modal & Toast */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 400px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 20px; padding: 26px; text-align: center; position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  transform: scale(0.95); transition: transform 0.24s var(--ease);
}
.modal-mask.open .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--soft);
  color: var(--ink-2); cursor: pointer; font-size: 17px;
}
.modal-close:hover { background: var(--soft-2); color: var(--ink); }

.toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--ink); color: #ffffff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
  transition: all 0.22s var(--ease); z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1360px) {
  .topbar { padding: 0 16px; gap: 8px; }
  .brand-pill { display: none; }
  .ch-tab { padding: 5px 10px; font-size: 12px; }
  .t-pill { padding: 5px 9px; font-size: 11.5px; }
}

@media (max-width: 1120px) {
  body { overflow-y: auto; overflow-x: hidden; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; row-gap: 8px; }
  .ch-switcher { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
  .top-right { flex-wrap: wrap; }
  .cockpit { grid-template-columns: 1fr; padding: 14px; }
  .stat-deck { grid-template-columns: repeat(2, 1fr); }
  .tile-wrap { grid-template-columns: repeat(10, 1fr); }
}
