/* MBot H5 · ForgeAI quote shadow parity · 2026-11-04 */
:root {
  --bg: #070A12;
  --text: #E8ECF8;
  --muted: #8B93A7;
  --muted2: #6B7280;
  --accent: #7C8CFF;
  --glass: rgba(255,255,255,.06);
  --glass-strong: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.10);
  --border-hi: rgba(255,255,255,.18);
  --short: #F87171;
  --short-dim: rgba(248,113,113,.16);
  --long: #34D399;
  --long-dim: rgba(52,211,153,.16);
  --warn: #FBBF24;
  --warn-dim: rgba(251,191,36,.16);
  --r: 16px;
  --shell: 480px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(124,140,255,.12), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(45,212,191,.06), transparent 50%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: var(--shell); margin: 0 auto; min-height: 100vh; }

/* —— topbar —— */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
  padding: 12px 14px;
  background: rgba(7,10,18,.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.top-sym { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.top-chip {
  justify-self: center;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  color: #FDA4AF;
  background: rgba(251,113,133,.16);
  border: 1px solid rgba(251,113,133,.45);
  white-space: nowrap;
}
.top-upd {
  justify-self: end;
  font-size: 11px; font-weight: 500; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.page { padding: 14px 14px 48px; }

/* —— hero —— */
.hero {
  position: relative;
  border-radius: 22px;
  padding: 22px 18px 20px;
  margin-bottom: 16px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(124,140,255,.14), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(45,212,191,.07), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(18,22,32,.92) 100%);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(36px) saturate(1.12);
  -webkit-backdrop-filter: blur(36px) saturate(1.12);
  box-shadow: 0 10px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-badge {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: lowercase; color: var(--muted2);
  opacity: .85;
}
.hero-last {
  font-size: 60px; font-weight: 700; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--text);
}
.hero-say {
  margin-top: 10px;
  font-size: 14px; font-weight: 500; line-height: 1.45;
  color: rgba(232,236,248,.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 1.45em;
}

/* —— section —— */
.sec { margin-bottom: 18px; }
.sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-hd h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.sec-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: rgba(124,140,255,.16);
  border: 1px solid rgba(124,140,255,.3);
}
.sec-meta { margin-left: auto; font-size: 11px; color: var(--muted2); font-weight: 500; }

.armed-list { display: flex; flex-direction: column; gap: 10px; }
.empty-state {
  padding: 18px 14px; text-align: center; color: var(--muted2); font-size: 13px;
  background: rgba(0,0,0,.18); border: 1px dashed rgba(255,255,255,.08); border-radius: 14px;
}

/* —— armed glass cards —— */
.armed-card {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 12px 14px; color: inherit; font: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 28%),
    radial-gradient(120% 80% at 0% 50%, rgba(124,140,255,.10), transparent 55%),
    rgba(22,28,40,.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 10px 28px rgba(0,0,0,.28);
  overflow: hidden;
  appearance: none; -webkit-appearance: none;
}
.armed-card.side-short {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%),
    radial-gradient(110% 90% at 100% 20%, rgba(248,113,113,.14), transparent 55%),
    radial-gradient(120% 80% at 0% 50%, rgba(124,140,255,.10), transparent 55%),
    rgba(22,28,40,.92);
}
.armed-card.side-long {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%),
    radial-gradient(110% 90% at 100% 20%, rgba(52,211,153,.14), transparent 55%),
    radial-gradient(120% 80% at 0% 50%, rgba(124,140,255,.10), transparent 55%),
    rgba(22,28,40,.92);
}
.armed-card.is-open {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 14px 36px rgba(0,0,0,.36);
}
.armed-card.st-broken {
  opacity: .92;
  border-color: rgba(251,113,133,.55) !important;
  box-shadow: inset 0 0 0 1px rgba(251,113,133,.25);
}
.armed-card.st-dead { opacity: .72; }

.armed-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.armed-title {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.armed-zone {
  margin-top: 8px; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.armed-hardline {
  margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.armed-body { margin-top: 10px; display: none; }
.armed-card.is-open .armed-body { display: block; }
.armed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.armed-chips .chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; border: 1px solid transparent;
}
.armed-chips .chip em { font-style: normal; opacity: .75; font-weight: 500; font-size: 11px; }
.armed-chips .chip.short { color: var(--short); background: var(--short-dim); border-color: rgba(248,113,113,.3); }
.armed-chips .chip.warn { color: var(--warn); background: var(--warn-dim); border-color: rgba(251,191,36,.3); }
.armed-chips .chip.long { color: var(--long); background: var(--long-dim); border-color: rgba(52,211,153,.3); }
.armed-note {
  margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
}
.armed-note strong { color: rgba(232,236,248,.9); font-weight: 600; }

/* —— pills —— */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
}
.pill.short { color: var(--short); background: var(--short-dim); border-color: rgba(248,113,113,.35); }
.pill.long { color: var(--long); background: var(--long-dim); border-color: rgba(52,211,153,.35); }
.pill.muted { color: var(--muted2); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }

.st-pill {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent;
}
.st-pill[data-st="待触发"] {
  color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14);
}
.st-pill[data-st="条件未齐"] {
  color: #FBBF24; background: rgba(251,191,36,.14); border-style: dashed; border-color: rgba(251,191,36,.45);
}
.st-pill[data-st="请留意！！"] {
  color: #FDBA74; background: rgba(251,146,60,.22); border-color: rgba(251,146,60,.65);
  animation: stHeedPulse 1.2s ease-in-out infinite;
}
.st-pill[data-st="已触发"] {
  color: #A5B4FC; background: rgba(124,140,255,.20); border-color: rgba(124,140,255,.55);
}
.st-pill[data-st="结构已破·勿追"] {
  color: #FDA4AF; background: rgba(251,113,133,.18); border-color: rgba(251,113,133,.55);
}
.st-pill[data-st="已作废"] {
  color: rgba(255,255,255,.38); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08);
}
@keyframes stHeedPulse { 0%,100%{opacity:1} 50%{opacity:.85} }

/* —— eng fold —— */
.eng-fold { margin-top: 8px; }
.eng-fold details {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; background: rgba(0,0,0,.22); overflow: hidden;
}
.eng-fold summary {
  cursor: pointer; list-style: none; padding: 12px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  user-select: none;
}
.eng-fold summary::-webkit-details-marker { display: none; }
.eng-fold summary::before { content: "▸ "; color: var(--muted2); }
.eng-fold details[open] summary::before { content: "▾ "; }
.eng-body { padding: 0 14px 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.eng-body .eng-block { margin-bottom: 12px; }
.eng-body .eng-k { font-size: 11px; font-weight: 700; color: rgba(232,236,248,.75); margin-bottom: 6px; }
.eng-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.eng-row .ms-hot { color: #FBBF24; font-weight: 700; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; word-break: break-all; color: var(--muted2);
}

/* —— alert —— */
.armed-status-alert {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.armed-status-alert[hidden] { display: none !important; }
.armed-status-alert .asa-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,8,16,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.armed-status-alert .asa-card {
  position: relative; z-index: 1; width: min(360px, 100%);
  background: #12161F; border: 1px solid rgba(124,140,255,.35);
  border-radius: 18px; padding: 20px 18px 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.armed-status-alert .asa-title {
  font-size: 16px; font-weight: 700; color: #E8ECF8; margin-bottom: 12px;
}
.armed-status-alert .asa-lines {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px;
  max-height: min(52vh, 360px); overflow-y: auto;
}
.armed-status-alert .asa-sym {
  font-size: 14px; font-weight: 600; color: #E8ECF8; margin-bottom: 4px; line-height: 1.4;
}
.armed-status-alert .asa-change {
  font-size: 15px; font-weight: 700; color: #2DD4BF; margin-bottom: 2px;
}
.armed-status-alert .asa-ok {
  margin-top: 14px; width: 100%; appearance: none; border: 0; border-radius: 12px;
  background: #7C8CFF; color: #0B0E16;
  font-size: 14px; font-weight: 700; padding: 12px 14px; cursor: pointer;
}
.armed-status-alert .asa-ok:active { opacity: .88; }

@media (max-width: 380px) {
  .hero-last { font-size: 52px; }
}
