:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-elev: #0d1119;
  --panel: rgba(17, 22, 32, 0.78);
  --panel-solid: #111620;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef8;
  --text-2: #b9c2d4;
  --muted: #7e889e;
  --faint: #5b6478;
  --accent: #6ee7b7;
  --accent-deep: #34d399;
  --accent-2: #7dd3fc;
  --violet: #c4b5fd;
  --warn: #fb923c;
  --bad: #f87171;
  --region: #f472b6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --bg-elev: #ffffff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-soft: rgba(16, 24, 40, 0.035);
  --line: rgba(16, 24, 40, 0.09);
  --line-strong: rgba(16, 24, 40, 0.18);
  --text: #121722;
  --text-2: #3d475a;
  --muted: #667085;
  --faint: #8a94a6;
  --accent: #0d9f78;
  --accent-deep: #047857;
  --accent-2: #0284c7;
  --violet: #7c3aed;
  --warn: #c2410c;
  --bad: #dc2626;
  --region: #be185d;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

body.is-locked { overflow: hidden; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 12% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(52vw 46vh at 92% 4%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 64%),
    radial-gradient(48vw 44vh at 58% 110%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 66%);
  opacity: 0.9;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #04110c;
  background: linear-gradient(145deg, var(--accent), var(--accent-2) 110%);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.4);
  flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text h1 { margin: 0; font-size: 17px; letter-spacing: 0.04em; font-weight: 700; }
.brand-text p { margin: 1px 0 0; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.ghost-btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; min-width: 40px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text-2);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.ghost-btn svg, .icon-btn svg { width: 17px; height: 17px; }
.ghost-btn:hover, .icon-btn:hover { border-color: var(--line-strong); color: var(--text); background: color-mix(in srgb, var(--panel-soft) 60%, var(--panel)); }
.ghost-btn:active, .icon-btn:active { transform: scale(.97); }
.icon-btn .ico-sun { display: none; }
html[data-theme="dark"] .icon-btn .ico-sun { display: block; }
html[data-theme="dark"] .icon-btn .ico-moon { display: none; }

.shell { width: min(1320px, 100%); margin: 0 auto; padding: 34px 24px 56px; }

.intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding: 6px 4px 30px;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.intro h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 760;
}
.intro h2 span {
  background: linear-gradient(92deg, var(--accent), var(--accent-2) 58%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.control-deck {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.control-deck::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 34%, transparent), transparent 34%, transparent 70%, color-mix(in srgb, var(--violet) 26%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.deck-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.deck-row + .deck-row { border-top: 1px solid var(--line); }
.deck-devices { justify-content: space-between; align-items: flex-start; padding-top: 0; }
.deck-tools { gap: 12px; }
.deck-filters { padding: 8px 0; align-items: flex-start; }
.deck-filters .row-label { padding-top: 8px; }

.device-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.device-tabs button {
  display: flex; align-items: center; gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.device-tabs button svg { width: 17px; height: 17px; }
.device-tabs button:hover { color: var(--text-2); }
.device-tabs button.is-active {
  color: #04110c;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent-2) 62%, var(--accent)));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}
html[data-theme="light"] .device-tabs button.is-active { color: #fff; }
.scope-note {
  margin: 0;
  max-width: 520px;
  text-align: right;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.row-label {
  flex: none;
  width: 58px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.version-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.chips::-webkit-scrollbar { height: 5px; }
.chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: all .16s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-soft); }
.chip.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.chip.is-active .chip-v { color: var(--accent); }

.chips.small { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chips.cat-chips { flex-wrap: wrap; overflow-x: visible; }
.app-filters { border-left: 2px solid var(--accent); padding-left: 12px; background: var(--panel-soft); border-radius: 0 10px 10px 0; }
.app-filters[hidden] { display: none; }
.chips.app-chips { flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 640px) {
  .chips.cat-chips, .chips.app-chips { flex-wrap: nowrap; overflow-x: auto; }
}
.chip.small { height: 30px; padding: 0 11px; font-family: var(--font); font-size: 12px; }
.chip .chip-count { margin-left: 6px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.chip.is-active .chip-count { color: var(--accent); }

.searchbox {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  transition: border-color .18s ease, background .18s ease;
}
.searchbox:focus-within { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--panel-soft)); }
.searchbox svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.searchbox input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px;
}
.searchbox input::placeholder { color: var(--faint); }
.searchbox kbd {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
}

.view-switch {
  display: inline-flex; gap: 3px; padding: 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft);
}
.view-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600;
  transition: all .16s ease;
}
.view-switch button svg { width: 15px; height: 15px; }
.view-switch button.is-active { background: var(--panel-solid); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.18); }

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 22px 2px 6px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 72%, transparent), transparent);
}
.summary-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.summary-context {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.summary-context .ctx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.summary-context em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 14px; }
.summary-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.stat {
  display: flex; align-items: baseline; gap: 6px;
  padding: 2px 0; border: 0; background: none;
  color: var(--muted); font-size: 12px; text-align: left;
  border-radius: 6px;
  transition: color .16s ease;
}
.stat:hover { color: var(--text-2); }
.stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stat b { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.stat.ok b { color: var(--accent); }
.stat.future b, .stat.unknown b, .stat.conditional b { color: var(--warn); }
.group.unknown .g-dot, .group.conditional .g-dot { background: var(--warn); }
.pill.unknown, .pill.conditional { color: var(--warn); border: 1px dashed var(--warn); }
.cell.unknown span, .cell.conditional span { color: var(--warn); border: 1px dashed var(--warn); }
.lg.unknown, .lg.conditional { border: 1px dashed var(--warn); }
.status-banner.unknown .sb-icon, .status-banner.conditional .sb-icon { color: var(--warn); border: 1px dashed var(--warn); }
.stat.na b { color: var(--bad); }
.stat.new b { color: var(--accent-2); }
.summary-meter { flex: 1; min-width: 120px; max-width: 260px; }
.meter { height: 6px; border-radius: 99px; background: var(--panel-soft); overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.meter-label { margin-top: 5px; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--faint); }

.view { margin-top: 18px; }

.group { margin-top: 26px; }
.group-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 2px 12px;
}
.group-head .g-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.group.future .g-dot { background: var(--warn); }
.group.na .g-dot { background: var(--bad); }
.group.new .g-dot { background: var(--violet); }
.group-head h3 { margin: 0; font-size: 15px; letter-spacing: 0.02em; }
.group-head .g-count { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; }
.group-head .g-note { margin-left: 4px; color: var(--faint); font-size: 12px; }

.cards { columns: 2; column-gap: 10px; }

.action-card {
  --cat: var(--accent-2);
  position: relative;
  display: flex; align-items: flex-start; gap: 13px;
  width: 100%;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: 10px;
  padding: 14px 15px;
  text-align: left;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 82%, transparent), color-mix(in srgb, var(--panel-solid) 58%, transparent));
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.action-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--cat), transparent);
  opacity: .55;
}
.action-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.action-card:active { transform: scale(.995); }
.action-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.glyph {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 22%, transparent);
}
.card-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-title b { font-size: 14px; font-weight: 650; letter-spacing: 0.01em; }
.card-title em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.card-meta { font-size: 11px; color: var(--muted); }
.card-note { margin-top: 3px; font-size: 12px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pill {
  flex: none;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.pill.future { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 24%, transparent); }
.pill.na { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.pill.new { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); border-color: color-mix(in srgb, var(--violet) 28%, transparent); }
/* 真机导出实测在册（外环）／首发版本系推定（虚线） */
.pill.ok.ev { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.pill.ok.inf { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); border: 1px dashed color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: none; }
.pill.ok.prop { color: color-mix(in srgb, var(--accent) 80%, var(--text)); background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pill.ok.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 50%, transparent); box-shadow: none; }

.empty {
  margin: 44px auto;
  max-width: 420px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-glyph {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: 22px; color: var(--faint);
}
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.empty p { margin: 0 0 16px; font-size: 13px; }
.empty button { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-soft); }

.matrix-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg.ok { background: var(--accent); }
.lg.ok.ev { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent); }
.lg.ok.inf { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.lg.ok.prop { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.lg.ok.warn { background: color-mix(in srgb, var(--warn) 24%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); }
.lg.new { background: var(--violet); }
.lg.future { border: 1px dashed var(--warn); }
.lg.na { background: color-mix(in srgb, var(--bad) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 34%, transparent); }
.matrix-hint { color: var(--faint); font-size: 11.5px; white-space: nowrap; }

.matrix-wrap {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
.matrix {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
.matrix thead th {
  position: sticky; top: 0; z-index: 5;
  padding: 10px 6px;
  background: var(--panel-solid);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.matrix thead th.v-col { min-width: 58px; cursor: pointer; }
.matrix thead th.v-col:hover { color: var(--text); }
.matrix thead th.v-col.is-current { color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel-solid)); }
.matrix thead th.v-col small { display: block; font-family: var(--font); font-size: 9.5px; color: var(--faint); font-weight: 400; }
.matrix thead th.v-col.is-current small { color: color-mix(in srgb, var(--accent) 70%, var(--faint)); }
.matrix thead th.name-col {
  left: 0; z-index: 7;
  min-width: 250px; max-width: 250px;
  text-align: left;
  padding-left: 14px;
  font-family: var(--font);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .06em;
}
.matrix tbody th, .matrix tbody td {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding: 0;
  height: 40px;
}
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody th.name-col {
  position: sticky; left: 0; z-index: 3;
  background: var(--panel-solid);
  border-right: 1px solid var(--line);
  text-align: left;
  padding: 6px 12px;
  font-weight: 400;
  min-width: 250px; max-width: 250px;
}
.matrix tbody tr { cursor: pointer; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th.name-col { background: color-mix(in srgb, var(--accent) 4%, var(--panel-solid)); }
.matrix tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.m-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-name b { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name em { font-style: normal; font-size: 9.5px; color: var(--faint); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-app { display: block; font-size: 9.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matrix td.cell { text-align: center; }
.cell span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  transition: transform .12s ease;
}
.cell.ok span { color: #04110c; background: color-mix(in srgb, var(--accent) 82%, transparent); }
html[data-theme="light"] .cell.ok span { color: #fff; background: color-mix(in srgb, var(--accent) 88%, transparent); }
html[data-theme="light"] .cell.ok.inf span { color: color-mix(in srgb, var(--accent) 78%, #000); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cell.new span { color: #fff; background: linear-gradient(145deg, var(--violet), color-mix(in srgb, var(--violet) 55%, var(--accent-2))); box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 20%, transparent); }
.cell.future span { color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); }
.cell.na span { color: color-mix(in srgb, var(--bad) 72%, transparent); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.cell.ok.ev span { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent); }
.cell.ok.inf span { color: color-mix(in srgb, var(--accent) 60%, var(--text-2)); background: color-mix(in srgb, var(--accent) 24%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.cell.ok.prop span { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.cell.ok.warn span { color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); }
html[data-theme="light"] .cell.ok.prop span { background: color-mix(in srgb, var(--accent) 42%, transparent); }
.matrix tr:hover .cell span { transform: scale(1.08); }
.matrix .cat-row th {
  position: sticky; left: 0;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--panel-solid) 86%, var(--accent) 6%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .08em;
  font-weight: 600;
  text-align: left;
}
.matrix .cat-row .cr-count { margin-left: 8px; font-family: var(--mono); font-weight: 400; color: var(--faint); }

.sheet-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 5, 10, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .18s ease;
}
.sheet {
  position: fixed; z-index: 90;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100% - 28px));
  max-height: min(86vh, 800px);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
  animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet-head { display: flex; align-items: flex-start; gap: 13px; padding-right: 170px; }
.sheet-tools { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.sheet-close, .modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel-soft); color: var(--muted);
}
.sheet-tools .sheet-close { position: static; }
.sheet-verify {
  height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 11px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent); font-family: inherit; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.sheet-verify:hover, .sheet-verify:focus-visible {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: var(--accent); outline: none;
}
.sheet-verify svg { width: 14px; height: 14px; flex: none; }
.sheet-doubt {
  border-color: color-mix(in srgb, var(--warn) 42%, transparent);
  background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn);
}
.sheet-doubt:hover, .sheet-doubt:focus-visible {
  background: color-mix(in srgb, var(--warn) 22%, transparent); border-color: var(--warn);
}
.vf-modal.is-doubt h2::after {
  content: "标错线索"; margin-left: 8px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 600; color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 999px; padding: 2px 7px;
}
.sheet-close:hover, .modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.sheet-close svg, .modal-close svg { width: 16px; height: 16px; }
.sheet-title-zh { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.sheet-title-en { margin: 3px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--faint); word-break: break-word; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel-soft);
}
.sheet-glyph {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--cat, var(--accent-2));
  background: color-mix(in srgb, var(--cat, var(--accent-2)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent-2)) 24%, transparent);
  flex: none;
}

.status-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.status-banner .sb-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 15px;
}
.status-banner.ok .sb-icon { color: #04110c; background: var(--accent); }
.status-banner.future .sb-icon { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--warn) 40%, transparent); }
.status-banner.na .sb-icon { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 26%, transparent); }
.sb-title { font-size: 13px; font-weight: 650; }
.sb-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.block { margin-top: 22px; }
.block-title { margin: 0 0 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.platform-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.platform-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.platform-table tr:last-child td { border-bottom: 0; }
.platform-table td:first-child { color: var(--muted); }
.platform-table td:last-child { text-align: right; font-family: var(--mono); font-size: 12px; }
.platform-table .yes { color: var(--accent); }
.platform-table .no { color: var(--faint); }
.platform-table .cur { color: var(--text); font-weight: 700; }
.sheet-note { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sheet-note-p { margin: 0 0 9px; }
.sheet-note-p:last-child { margin-bottom: 0; }
.sheet-note-p.is-lead { color: var(--text); }
.sheet-source { display: block; margin-top: 8px; font-size: 12.5px; word-break: break-all; }
.conf-line { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.conf-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.conf-o { background: var(--accent); }
.conf-c { background: var(--accent-2); }
.conf-i { background: var(--faint); }

.ident-copy {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2, rgba(128,128,128,.06)); color: var(--text);
  font-family: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.ident-copy:hover, .ident-copy:focus-visible { border-color: var(--accent); background: rgba(110,231,183,.07); outline: none; }
.ident-copy code { flex: 1; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; word-break: break-all; color: var(--text); }
.ident-ico { display: flex; color: var(--faint); }
.ident-ico svg { width: 15px; height: 15px; }
.ident-copy.is-copied, .ident-copy.is-failed { position: relative; border-color: var(--accent); }
.ident-copy.is-copied::after, .ident-copy.is-failed::after {
  content: "已复制"; position: absolute; right: 10px; top: -9px;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #06110c;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
}
.ident-copy.is-failed::after { content: "复制失败"; background: var(--accent-2); }
.ident-none { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.7; }
.ident-id { margin: 8px 0 0; color: var(--faint); font-size: 11px; }
.ident-id code { font-family: var(--mono); color: var(--muted); }
.ident-aka { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.ident-aka code { font-family: var(--mono); color: var(--text); }

.modal {
  position: fixed; z-index: 90;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 32px));
  max-height: 84vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { transform: translate(-50%, -46%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal .modal-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.modal h3 { margin: 22px 0 8px; font-size: 14px; }
.modal p, .modal li { color: var(--text-2); font-size: 13px; line-height: 1.8; }
.modal ul { margin: 0; padding-left: 18px; }
.modal .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 4px; }
.modal .stat-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft); }
.modal .stat-box b { display: block; font-family: var(--mono); font-size: 22px; color: var(--text); }
.modal .stat-box span { font-size: 11px; color: var(--muted); }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 0; }
.source-list .s-label { font-size: 12.5px; font-weight: 600; }
.source-list .s-note { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.source-list a { font-size: 11px; font-family: var(--mono); word-break: break-all; }
.legend-conf { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.legend-conf span { display: inline-flex; align-items: center; }

/* ── 机型销售地区 ───────────────────────────────────────────── */
.region-tabs { padding: 3px; border-radius: 12px; }
.region-tabs button { height: 34px; padding: 0 14px; font-size: 12.5px; gap: 6px; }
.region-tabs button.is-active {
  color: var(--region);
  background: color-mix(in srgb, var(--region) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--region) 42%, transparent);
}
html[data-theme="light"] .region-tabs button.is-active { color: #fff; background: var(--region); }
.region-tabs .chip-count { margin-left: 4px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.region-note.is-cn { color: var(--region); }

@media (max-width: 640px) {
  .region-tabs { width: 100%; flex-wrap: wrap; }
  .region-tabs button { flex: 1 1 auto; min-width: 60px; padding: 0 8px; font-size: 12.5px; }
}

.pill.region { color: var(--region); background: color-mix(in srgb, var(--region) 12%, transparent); border-color: color-mix(in srgb, var(--region) 32%, transparent); }
.stat.region b { color: var(--region); }
.group.region .g-dot { background: var(--region); }
.lg.region { background: color-mix(in srgb, var(--region) 26%, transparent); border: 1px solid color-mix(in srgb, var(--region) 55%, transparent); }
.cell.region span { color: var(--region); background: color-mix(in srgb, var(--region) 14%, transparent); }
.status-banner.region .sb-icon { color: #fff; background: var(--region); }
.action-card.is-blocked { opacity: .86; }
.matrix tr.is-blocked .m-name b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--region) 65%, transparent); }
.region-flag {
  font-size: 10px; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  color: var(--region);
  background: color-mix(in srgb, var(--region) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--region) 34%, transparent);
}
.region-table td.blocked { color: var(--region); font-weight: 700; }
.region-table td.part { color: var(--warn); }
.region-why { margin: 10px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.75; }
.region-foot { margin: 8px 0 0; color: var(--faint); font-size: 11px; line-height: 1.7; }

@media (max-width: 980px) {
  .intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .deck-devices { flex-direction: column; align-items: stretch; }
  .scope-note { text-align: left; max-width: none; }
  .summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .summary-meter { width: 100%; max-width: none; }
  .cards { columns: 1; }
  .matrix thead th.name-col, .matrix tbody th.name-col { min-width: 190px; max-width: 190px; }
}

@media (max-width: 640px) {
  .shell { padding: 22px 14px 40px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .ghost-btn span { display: none; }
  .intro h2 { font-size: 31px; }
  .control-deck { padding: 14px; border-radius: 18px; }
  .device-tabs { width: 100%; }
  .device-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
  .device-tabs button svg { display: none; }
  .row-label { width: 48px; font-size: 11px; }
  .deck-tools { flex-wrap: wrap; }
  .searchbox { flex-basis: 100%; }
  .searchbox kbd { display: none; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; justify-content: center; }
  .summary { padding: 14px; }
  .summary-context { font-size: 16px; }
  .summary-stats { gap: 12px; }
  .action-card { padding: 13px; }
  .pill { font-size: 10px; }
  .matrix-wrap { max-height: 68vh; }
  .matrix thead th.name-col, .matrix tbody th.name-col { min-width: 160px; max-width: 160px; }
  .m-name em { display: none; }
  .sheet {
    width: calc(100% - 16px);
    max-height: 88vh;
    border-radius: 18px;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .sheet-head { padding-right: 164px; }
  .sheet-verify { padding: 0 9px; font-size: 11px; }
  .vf-row { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; max-height: 90vh; }
  .vf-modal { padding: 22px 18px; }
  .vf-modal h2 { padding-right: 40px; }
  .modal .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .version-chips, .chips.small {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-right: 14px;
  }
  .version-chips::-webkit-scrollbar, .chips.small::-webkit-scrollbar { display: none; }
}
@media (pointer: coarse) {
  .chip { height: 38px; padding: 0 14px; }
  .chip.small { height: 36px; padding: 0 12px; }
  .ghost-btn, .icon-btn { height: 44px; min-width: 44px; }
  .sheet-close, .modal-close { width: 44px; height: 44px; }
  .sheet-verify { height: 44px; }
  .matrix tbody th, .matrix tbody td { height: 44px; }
  .stat { padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── 社区核实 ─────────────────────────────────────────────── */
.cv-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -6px 0 14px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.cv-badge.cv-warn {
  border-radius: 12px; margin-top: 0; line-height: 1.6;
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 34%, transparent);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

.vf-backdrop { z-index: 100; }
.vf-modal { z-index: 110; width: min(520px, calc(100% - 32px)); padding: 26px; }
.vf-modal h2 { margin: 0; padding-right: 44px; font-size: 19px; }
.vf-modal .modal-sub { margin: 3px 0 20px; padding-right: 8px; }
.vf-modal #vfCancel { margin-left: auto; }

.vf { display: grid; gap: 12px; }
.vf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf label { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); }
.vf select, .vf input[type="text"], .vf input[type="number"], .vf textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text); font: inherit; font-size: 13px;
}
.vf select:focus, .vf input:focus, .vf textarea:focus { outline: none; border-color: var(--accent); }
.vf textarea { resize: vertical; min-height: 56px; }
.vf-has {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
}
.vf-has legend { padding: 0 6px; font-size: 11.5px; color: var(--muted); }
.vf .vf-radio { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.vf .vf-radio input { accent-color: var(--accent); }
.vf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vf-submit {
  height: 38px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--accent); color: #04110c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.vf-submit:disabled { opacity: .55; cursor: default; }
.vf-cancel {
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer;
}
.vf-cancel:hover { color: var(--text); border-color: var(--line-strong); }
.vf-msg { font-size: 12px; color: var(--muted); }
.vf-msg.is-good { color: var(--accent); }
.vf-msg.is-bad { color: var(--bad); }

.cv-thanks { padding-top: 4px; }
.cv-thanks-line { margin: 0 0 9px; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.cv-thanks-line b { color: var(--accent); font-family: var(--mono); }
.cv-names { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-name {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted);
}

@media (max-width: 560px) {
  .vf-row { grid-template-columns: 1fr; }
}

.chg-flag {
  font-size: 10px; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 34%, transparent);
}
.lg.chg { background: color-mix(in srgb, var(--violet) 40%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 65%, transparent); }
.chg-block { border-left: 2px solid color-mix(in srgb, var(--violet) 55%, transparent); padding-left: 12px; }
.chg-quote { font-family: var(--mono, ui-monospace, monospace); font-size: 12px; color: var(--text-2); }
.chg-foot { color: var(--faint); font-size: 11.5px; }

/* ── 第三方 App 投稿：子分类旁的「添加」与投稿弹窗 ─────────────── */
.row-label-col { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; }
.row-label-col .row-label { width: auto; padding-top: 0; }
.tp-add {
  height: 26px; padding: 0 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-family: var(--font); font-size: 11.5px; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.tp-add:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); color: var(--text); }
.tp-add[hidden] { display: none; }

.tp-modal { width: min(720px, calc(100% - 32px)); max-height: 88vh; padding: 26px 26px calc(26px + env(safe-area-inset-bottom)); }
.tp-modal h2 { padding-right: 44px; }

.tp-form { display: grid; gap: 14px; }
.tp-field { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); }
.tp-field > span { letter-spacing: .01em; }
.tp-form input[type="text"], .tp-form input[type="url"], .tp-form input:not([type]), .tp-form textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text); font: inherit; font-size: 13px;
}
.tp-form textarea { resize: vertical; min-height: 52px; }
.tp-form input:focus, .tp-form textarea:focus { outline: none; border-color: var(--accent); }
.tp-form input[type="file"] { width: 100%; font-size: 12px; color: var(--text-2); }
.tp-form input[type="file"]::file-selector-button {
  margin-right: 10px; height: 28px; padding: 0 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); font: inherit; font-size: 12px;
}

.tp-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-opt {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  height: 30px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 12px;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.tp-opt:has(input:checked) {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.tp-opt input { accent-color: var(--accent); margin: 0; }
.tp-hint { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }

.tp-op {
  display: grid; gap: 10px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-soft);
}
.tp-op + .tp-op { margin-top: 2px; }
.tp-op-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-op-head b { font-size: 12px; color: var(--text); letter-spacing: .02em; }
.tp-op-del {
  height: 26px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(248,113,113,.3); background: transparent;
  color: var(--bad); font: inherit; font-size: 11.5px;
}
.tp-op-del:hover { background: rgba(248,113,113,.14); color: #fff; }
.tp-add-op {
  justify-self: start; height: 32px; padding: 0 13px; border-radius: 9px; cursor: pointer;
  border: 1px dashed var(--line-strong); background: transparent;
  color: var(--muted); font: inherit; font-size: 12.5px;
}
.tp-add-op:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }

.tp-by { margin: 0 0 8px; color: var(--faint); font-size: 11.5px; }
.tp-shot { display: block; margin: 0; }
.tp-shot img {
  display: block; max-width: 100%; max-height: 340px; width: auto;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
}
a.tp-shot:hover img { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.tp-link { margin: 9px 0 0; font-size: 12.5px; }
.tp-link a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); }
.tp-link a:hover { color: var(--text); }

.vf-msg.is-ok { color: var(--accent); }

@media (max-width: 640px) {
  .row-label-col { flex-direction: row; align-items: center; gap: 8px; padding-top: 4px; }
  .tp-modal { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
}
