/* CIMA Radar H5 — 令牌与组件对齐 design-system/cima-radar/MASTER.md */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg, #0A0E13);
  color: var(--ink, #F2F4F7);
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html { --bg: #0A0E13; }
html.theme-light { --bg: #F4F5F8; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button { appearance: none; background: none; border: none; padding: 0; cursor: pointer; }
[data-act] { cursor: pointer; }
input, textarea { outline: none; border: none; background: transparent; width: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#first-packet {
  display: block;
  padding: 28px 20px 48px;
  max-width: 720px;
  margin: 0 auto;
  color: #0f172a;
  background: #fff;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
#first-packet h1 { font-size: 1.5rem; margin: 0 0 12px; }
#first-packet h2 { font-size: 1.05rem; margin: 24px 0 8px; }
#first-packet p, #first-packet li { color: #334155; }
#first-packet a { color: #0891b2; }
#frame { display: none; }
html.app-ready #first-packet { display: none !important; }
html.app-ready #frame {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

@media (min-width: 768px) {
  body { background: #05070a; }
  html.theme-light body { background: #e8eaef; }
  #frame {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--line);
    min-height: 100vh;
    min-height: 100dvh;
  }
}
@media (min-width: 1024px) {
  #frame { max-width: 560px; }
}

.mono {
  font-family: "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.page, .page-padbar {
  padding: 12px 16px 130px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.page-padbar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.page.has-tab { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.page-leads { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.theme-light .card {
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.btn-primary {
  display: block; width: 100%; height: 48px; line-height: 48px;
  background: var(--brand); color: var(--on-brand);
  border-radius: 7px; font-size: 16px; font-weight: 700;
  text-align: center; letter-spacing: 0.02em;
}
.btn-primary[disabled] { opacity: 0.45; }
.btn-ghost {
  display: block; width: 100%; height: 48px; line-height: 46px;
  background: transparent; color: var(--brand);
  border: 1px solid var(--brand-line); border-radius: 7px;
  font-size: 16px; font-weight: 600; text-align: center;
}
.btn-hover:active, .card:active.tap, [data-act]:active { opacity: 0.82; transform: scale(0.985); }
.btn-mini {
  display: inline-block; height: 32px; line-height: 30px; padding: 0 16px;
  background: var(--brand); color: var(--on-brand); border-radius: 16px;
  font-size: 13px; font-weight: 700;
}
.btn-mini-ghost {
  display: inline-block; height: 32px; line-height: 30px; padding: 0 16px;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 16px;
  font-size: 13px;
}

.chips { display: flex; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--card-2);
  color: var(--ink-2); font-size: 13px; margin: 0 8px 8px 0;
}
.chip-on {
  background: var(--brand-weak); border-color: var(--brand-line);
  color: var(--brand); font-weight: 700;
}
.theme-light .chip { background: var(--bg-elevated); }

.tag {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: 11px; line-height: 1.6; margin: 0 6px 4px 0;
}
.tag-role { background: var(--info-weak); color: var(--info); }
.tag-intent { background: var(--brand-weak); color: var(--brand); }
.tag-urg-high { background: var(--bad-weak); color: var(--bad); }
.tag-urg-mid { background: var(--warn-weak); color: var(--warn); }
.tag-urg-low { background: var(--neutral-weak); color: var(--ink-2); }

.fs-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.fs-pending { background: var(--neutral-weak); color: var(--ink-2); }
.fs-contacted { background: var(--info-weak); color: var(--info); }
.fs-opportunity { background: var(--warn-weak); color: var(--warn); }
.fs-deal { background: var(--ok-weak); color: var(--ok); }
.fs-invalid { background: var(--bad-weak); color: var(--bad); }

.mm { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.mm-confirmed { background: var(--ok-weak); color: var(--ok); }
.mm-candidate { background: var(--warn-weak); color: var(--warn); }
.mm-unmatched { background: var(--neutral-weak); color: var(--ink-3); }

.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field-label .req { color: var(--bad); font-size: 11px; margin-left: 4px; }
.field-input {
  height: 44px; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 0 12px; font-size: 14px; color: var(--ink);
  background: var(--bg-elevated); width: 100%;
}
.field-on { border-color: var(--brand-line) !important; box-shadow: 0 0 0 1px var(--brand-weak); }
.ph { color: var(--ink-3); }
.field-textarea {
  width: 100%; border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--ink);
  background: var(--bg-elevated); min-height: 70px; resize: vertical;
}
.field-help { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.field-count { font-size: 11px; color: var(--ink-3); text-align: right; margin-top: 4px; }

.sec-head { display: flex; align-items: center; margin: 4px 0 10px; }
.sec-badge {
  width: 22px; height: 22px; border-radius: 5.5px;
  background: var(--brand-weak); color: var(--brand);
  border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-right: 8px;
  flex-shrink: 0;
}
.sec-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.sec-aside { margin-left: auto; font-size: 11px; color: var(--brand); }

.t2 { color: var(--ink-2); }
.t3 { color: var(--ink-3); }
.tiny { font-size: 11px; color: var(--ink-3); }
.link { color: var(--brand); }
.mt8 { margin-top: 4px; } .mt16 { margin-top: 8px; } .mt24 { margin-top: 12px; }
.center { text-align: center; }

/* nav */
.nb {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 7px var(--shadow);
  padding-top: env(safe-area-inset-top);
}
.nb-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 12px;
}
.nb-side { display: flex; align-items: center; min-width: 72px; }
.nb-right { justify-content: flex-end; }
.nb-back { display: flex; align-items: center; height: 32px; padding-right: 6px; }
.nb-arrow {
  width: 8px; height: 8px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); margin-right: 5px; margin-left: 2px;
}
.nb-backtxt { font-size: 13px; color: var(--ink); }
.nb-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px; font-weight: 700; color: var(--ink);
  max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.nb-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--neutral-weak); border: 1px solid var(--line);
}
.nb-ic { width: 20px; height: 20px; }

/* tabbar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #0c1117;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
  padding-bottom: env(safe-area-inset-bottom);
}
.bar-light { background: #ffffff; box-shadow: 0 -3px 10px rgba(15, 23, 42, 0.08); }
@media (min-width: 768px) {
  .bar { left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; }
}
@media (min-width: 1024px) {
  .bar { max-width: 560px; }
}
.bar-inner { display: flex; height: 56px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bar-light .bar-inner { border-top-color: rgba(17, 24, 39, 0.08); }
.item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 56px; color: #6b7480; position: relative;
}
.bar-light .item { color: #64748b; }
.item.on { color: #22d3ee; }
.bar-light .item.on { color: #0891b2; }
.ind {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: transparent;
}
.item.on .ind { background: #22d3ee; }
.bar-light .item.on .ind { background: #0891b2; }
.ic { width: 22px; height: 22px; }
.label { font-size: 11px; margin-top: 3px; letter-spacing: 0.04em; font-weight: 500; }
.item.on .label { font-weight: 700; }

/* empty */
.es { padding: 28px 16px 24px; text-align: center; }
.es-glyph { width: 44px; height: 44px; margin: 0 auto 14px; position: relative; }
.es-ring { position: absolute; inset: 0; border: 1px solid var(--brand-line); border-radius: 50%; opacity: 0.55; }
.es-core {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 6px var(--brand-line);
}
.es-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.es-desc { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.es-action {
  display: inline-block; min-width: 100px; height: 44px; line-height: 44px;
  padding: 0 18px; margin-top: 18px; background: var(--brand); color: var(--on-brand);
  border-radius: 22px; font-size: 13px; font-weight: 700;
}

/* toast / modal */
#toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(12px);
  background: rgba(15, 20, 27, 0.92); color: #F2F4F7;
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; z-index: 3000; transition: opacity .18s, transform .18s;
  max-width: 80%;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#modal { position: fixed; inset: 0; z-index: 2500; }
#modal[hidden] { display: none; }
.md-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.md-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 48px)); background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px 12px;
}
.md-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.md-body { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.md-row { display: flex; gap: 8px; margin-top: 16px; }
.md-btn { flex: 1; height: 40px; border-radius: 8px; background: var(--card-2); color: var(--ink-2); font-weight: 600; }
.md-ok { color: var(--brand); background: var(--brand-weak); }

/* P1 home */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, var(--brand-weak), transparent 52%),
    radial-gradient(circle at 8% 88%, var(--neutral-weak), transparent 45%),
    var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 18px 24px; margin-bottom: 12px;
}
.demo-pill {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-size: 11px; letter-spacing: 0.16em; color: var(--brand);
  border: 1px solid var(--brand-line); background: var(--brand-weak);
  padding: 3px 7px; border-radius: 4px; font-weight: 700;
}
.radar { position: absolute; top: 18px; right: 14px; width: 100px; height: 100px; opacity: 0.92; }
.ring { position: absolute; border: 1px solid var(--brand-line); border-radius: 50%; opacity: 0.55; }
.r1 { inset: 0; opacity: 0.75; }
.r2 { inset: 17px; opacity: 0.5; }
.r3 { inset: 34px; opacity: 0.35; }
.core {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px;
  background: var(--brand); border-radius: 50%; box-shadow: 0 0 9px var(--brand-line);
}
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand-line), transparent 58deg, transparent);
  opacity: 0.85; animation: radar-sweep 5s linear infinite;
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sweep { animation: none; } }
.blip { position: absolute; width: 5px; height: 5px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 5px var(--brand-line); }
.b1 { top: 24px; right: 29px; }
.b2 { bottom: 30px; left: 32px; }
.hero-text { position: relative; z-index: 2; max-width: 230px; margin-top: 14px; }
.hero-eyebrow { font-size: 11px; color: var(--brand); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 9px; font-weight: 600; }
.hero-title { font-size: 28px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.14; color: var(--ink); }
.hero-value { font-size: 13px; margin-top: 10px; line-height: 1.62; max-width: 200px; }
.hero-meta { font-size: 11px; margin-top: 11px; }

.win { padding: 14px 16px; }
.win-kicker { font-size: 10px; color: var(--brand); letter-spacing: 0.12em; font-weight: 600; margin-bottom: 5px; }
.win-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.win-hint { font-size: 12px; margin-top: 5px; line-height: 1.55; }
.win-go { margin-top: 8px; font-size: 12px; color: var(--brand); font-weight: 700; }
.win-high { border-color: var(--warn); background: linear-gradient(135deg, var(--warn-weak), transparent 62%), var(--card); }
.win-high .win-kicker { color: var(--warn); }
.win-closed { border-color: var(--line-strong); }
.win-closed .win-kicker { color: var(--ink-3); }

.room-card { display: flex; align-items: center; padding-left: 20px; overflow: hidden; }
.rc-accent { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand); }
.rc-main { flex: 1; min-width: 0; }
.rc-kicker { font-size: 10px; color: var(--brand); letter-spacing: 0.14em; margin-bottom: 4px; font-weight: 600; }
.rc-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.rc-code { font-size: 11px; }
.rc-go { flex-shrink: 0; margin-left: 8px; display: flex; align-items: center; gap: 2px; }
.rc-go-t { font-size: 12px; color: var(--brand); font-weight: 700; }
.rc-arrow { font-size: 16px; color: var(--brand); font-weight: 600; line-height: 1; }

.cta {
  background: linear-gradient(135deg, var(--brand-weak), transparent 62%), var(--card);
  border: 1px solid var(--brand-line); padding: 14px;
}
.cta-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cta-ic { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.cta-text { flex: 1; min-width: 0; }
.cta-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cta-desc { font-size: 11px; margin-top: 5px; line-height: 1.5; }
.cta-bar {
  height: 40px; line-height: 40px; text-align: center; border-radius: 6px;
  background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700;
}
.row2 { display: flex; gap: 10px; }
.entry { flex: 1; margin-bottom: 12px; min-height: 100px; padding: 14px 12px; }
.entry-kicker { font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; margin-bottom: 8px; font-weight: 600; }
.entry-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); line-height: 1.35; }
.entry-desc { font-size: 11px; line-height: 1.55; }
.foot-note { text-align: center; font-size: 11px; color: var(--ink-3); padding: 4px 0 16px; line-height: 1.7; }

/* P2 room */
.seg {
  display: flex; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px; margin-bottom: 12px;
}
.seg-item {
  flex: 1; height: 36px; line-height: 36px; text-align: center;
  font-size: 13px; color: var(--ink-2); border-radius: 5px;
}
.seg-on { background: var(--brand-weak); color: var(--brand); font-weight: 700; border: 1px solid var(--brand-line); line-height: 34px; }
.code-input {
  height: 70px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--bg-elevated); color: var(--brand); text-align: center;
  font-size: 32px; font-weight: 800; letter-spacing: 12px;
  font-family: "SF Mono", Menlo, monospace; font-feature-settings: "tnum";
}
.demo-tip {
  margin-top: 14px; text-align: center; font-size: 11px; color: var(--ink-3);
  padding: 8px; border-radius: 6px; background: var(--neutral-weak); line-height: 1.6;
}

/* P3 share */
.share-card {
  text-align: center; padding: 28px 18px 24px;
  background: radial-gradient(circle at 50% 0%, var(--brand-weak), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--card);
}
.sc-kicker { font-size: 10px; color: var(--brand); letter-spacing: 0.18em; font-weight: 600; margin-bottom: 8px; }
.sc-name { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.sc-code-label { font-size: 12px; color: var(--ink-3); margin-top: 18px; }
.sc-code {
  font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--brand);
  margin: 4px 0 0; font-family: "SF Mono", Menlo, monospace; font-feature-settings: "tnum";
}
.tiny.center { text-align: center; padding: 8px 24px 28px; line-height: 1.8; }
.tiny.center a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; margin: 20px 0 4px; }
.qr-box {
  width: 160px; height: 160px; background: #fff; border-radius: 7px; padding: 6px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px var(--shadow);
  overflow: hidden;
}
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; }
.qr-cell { width: 11.11%; height: 11.11%; box-sizing: border-box; }
.qr-dark { background: #111827; border-radius: 1px; }
.qr-tip { font-size: 11px; color: var(--ink-3); margin-top: 9px; }
.btn-row { margin-top: 14px; }

/* P4 leads */
.room-head { display: flex; align-items: center; justify-content: space-between; padding-left: 20px; overflow: hidden; }
.rh-accent { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand); }
.rh-main { flex: 1; min-width: 0; padding-right: 8px; }
.rh-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.rh-sub { font-size: 11px; }
.rh-members { display: flex; align-items: center; flex-shrink: 0; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-weak); color: var(--brand); border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }
.avatar-more { background: var(--card-2); color: var(--ink-2); border-color: var(--line-strong); font-size: 10px; }
.rh-share { font-size: 11px; color: var(--brand); margin-left: 10px; font-weight: 600; }
.nr-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.nr-desc { font-size: 12px; margin-bottom: 12px; line-height: 1.55; }
.nr-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  display: flex; align-items: center; margin-bottom: 10px; padding: 4px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 8px;
}
.theme-light .filter { background: var(--bg-elevated); }
.f-chip { height: 28px; line-height: 28px; padding: 0 14px; border-radius: 6px; color: var(--ink-2); font-size: 13px; }
.f-on { background: var(--brand-weak); color: var(--brand); font-weight: 700; border: 1px solid var(--brand-line); }
.f-count { margin-left: auto; font-size: 11px; padding-right: 6px; }
.hall-scroll { width: 100%; margin-bottom: 10px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.hall-row { display: inline-flex; gap: 6px; padding: 2px 0 4px; }
.h-chip {
  flex-shrink: 0; min-width: 44px; height: 32px; line-height: 32px; padding: 0 12px;
  text-align: center; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--ink-2); font-size: 12px;
}
.h-on { background: var(--brand-weak); color: var(--brand); border-color: var(--brand-line); font-weight: 700; }
.lc-place { margin-top: 4px; color: var(--brand); font-size: 11px; }
.lead-card { position: relative; padding: 14px 16px 14px 20px; overflow: hidden; }
.lc-accent { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; }
.acc-pending { background: var(--ink-3); }
.acc-contacted { background: var(--info); }
.acc-opportunity { background: var(--warn); }
.acc-deal { background: var(--ok); }
.acc-invalid { background: var(--bad); }
.lc-top { display: flex; justify-content: space-between; margin-bottom: 7px; }
.lc-name-row { display: flex; align-items: center; flex-wrap: wrap; }
.lc-name { font-size: 16px; font-weight: 700; margin-right: 7px; color: var(--ink); }
.lc-co { font-size: 12px; margin-top: 3px; line-height: 1.45; }
.lc-time { flex-shrink: 0; margin-left: 8px; }
.lc-tags { margin-bottom: 7px; }
.lc-bottom { display: flex; align-items: flex-start; flex-wrap: wrap; margin-bottom: 7px; }
.lc-next { font-size: 12px; margin-left: 8px; line-height: 1.45; flex: 1; min-width: 100px; }
.lc-meta { border-top: 1px solid var(--line); padding-top: 7px; }
.fab {
  position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom));
  height: 48px; line-height: 48px; padding: 0 20px;
  background: var(--brand); color: var(--on-brand); border-radius: 24px;
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px var(--brand-weak); z-index: 50;
}
@media (min-width: 768px) {
  .fab { right: calc(50vw - 240px + 16px); }
}
@media (min-width: 1024px) {
  .fab { right: calc(50vw - 280px + 16px); }
}

/* P5 capture */
.capture-card { position: relative; overflow: hidden; }
.viewfinder {
  height: 190px; margin-bottom: 16px; position: relative;
  background: radial-gradient(circle at 50% 45%, var(--brand-weak), transparent 55%), var(--bg-elevated);
  border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.vf-corner { position: absolute; width: 22px; height: 22px; }
.vf-tl { top: 14px; left: 14px; border-top: 2.5px solid var(--brand); border-left: 2.5px solid var(--brand); border-top-left-radius: 5px; }
.vf-tr { top: 14px; right: 14px; border-top: 2.5px solid var(--brand); border-right: 2.5px solid var(--brand); border-top-right-radius: 5px; }
.vf-bl { bottom: 14px; left: 14px; border-bottom: 2.5px solid var(--brand); border-left: 2.5px solid var(--brand); border-bottom-left-radius: 5px; }
.vf-br { bottom: 14px; right: 14px; border-bottom: 2.5px solid var(--brand); border-right: 2.5px solid var(--brand); border-bottom-right-radius: 5px; }
.vf-hint { font-size: 13px; color: var(--ink-2); letter-spacing: 0.06em; }
.vf-preview { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.rec-mask {
  position: absolute; inset: 0; border-radius: 8px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 5;
}
.rec-text { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.rec-dots { display: flex; gap: 5px; margin-top: 10px; }
.rec-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: 0.35; animation: rec-pulse 1s ease-in-out infinite; }
.rec-dot:nth-child(2) { animation-delay: 0.15s; }
.rec-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes rec-pulse { 0%,100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
.alt-link { text-align: center; font-size: 12px; margin-top: 12px; padding: 8px; border-radius: 6px; background: var(--neutral-weak); }
.voice-card { padding: 18px 14px; }
.v-area {
  height: 150px; border: 1px dashed var(--line-strong); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-elevated); user-select: none; touch-action: none;
}
.v-area-on { border-style: solid; border-color: var(--brand); background: var(--brand-weak); }
.v-label { font-size: 15px; font-weight: 700; margin: 10px 0 4px; color: var(--ink); }
.v-area-on .v-label { color: var(--brand); }
.v-pulse { color: var(--brand); font-weight: 600; }
.v-icon { width: 32px; height: 44px; position: relative; }
.v-mic { position: absolute; top: 0; left: 50%; margin-left: -10px; width: 20px; height: 28px; border-radius: 10px; border: 2.5px solid var(--ink-2); }
.v-area-on .v-mic { border-color: var(--brand); }
.v-stand { position: absolute; top: 28px; left: 50%; width: 2.5px; height: 10px; margin-left: -1.25px; background: var(--ink-2); }
.v-area-on .v-stand { background: var(--brand); }
.v-base { position: absolute; bottom: 0; left: 50%; margin-left: -12px; width: 24px; height: 2.5px; border-radius: 1.5px; background: var(--ink-2); }
.v-area-on .v-base { background: var(--brand); }
.safe-note {
  margin-top: 4px; text-align: center; font-size: 11px; color: var(--ink-3);
  padding: 12px 14px; line-height: 1.75; border: 1px solid var(--line); border-radius: 7px; background: var(--neutral-weak);
}
.manual-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.manual-desc { font-size: 11px; line-height: 1.55; margin-bottom: 9px; }
.manual-go { font-size: 13px; font-weight: 700; }
#filePick {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* P6 confirm */
.cap-banner {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 12px;
  border-radius: 7px; border: 1px solid var(--brand-line); background: var(--brand-weak);
}
.cap-banner-t { font-size: 10px; color: var(--brand); letter-spacing: 0.12em; font-weight: 700; flex-shrink: 0; }
.cap-banner-d { font-size: 11px; line-height: 1.4; }
.radar-card {
  background: linear-gradient(135deg, var(--brand-weak), transparent 70%), var(--card-2);
  border: 1px solid var(--brand-line); border-radius: 7px; padding: 14px; margin-top: 4px;
}
.radar-cand { background: linear-gradient(135deg, var(--warn-weak), transparent 70%), var(--card-2); border-color: var(--warn); }
.rd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rd-name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; flex: 1; min-width: 0; }
.rd-row { font-size: 12px; margin-bottom: 5px; line-height: 1.45; }
.rd-desc { font-size: 12px; line-height: 1.7; margin-bottom: 7px; color: var(--ink-2); }
.rd-src { border-top: 1px solid var(--line); padding-top: 7px; font-size: 11px; color: var(--ink-3); }
.radar-actions { display: flex; gap: 10px; margin-top: 10px; }
.radar-cancel { text-align: center; font-size: 12px; margin-top: 10px; padding: 4px; }
.empty-radar {
  text-align: center; padding: 24px 14px 20px; border: 1px dashed var(--line-strong);
  border-radius: 7px; margin-top: 4px; background: var(--neutral-weak);
}
.er-glyph { width: 36px; height: 36px; margin: 0 auto 10px; position: relative; }
.er-ring { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 50%; opacity: 0.7; }
.er-core { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink-3); }
.er-title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.er-desc { font-size: 11px; margin-bottom: 14px; line-height: 1.55; }
.picker-value {
  height: 44px; line-height: 44px; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 0 12px; font-size: 14px; background: var(--bg-elevated); color: var(--ink);
}
.picker-value.ph { color: var(--ink-3); }
.u-hi.u-on { background: var(--bad-weak) !important; border-color: var(--bad) !important; color: var(--bad) !important; }
.u-mid.u-on { background: var(--warn-weak) !important; border-color: var(--warn) !important; color: var(--warn) !important; }
.u-lo.u-on { background: var(--neutral-weak) !important; border-color: var(--line-strong) !important; color: var(--ink-2) !important; }
.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-elevated); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px var(--shadow);
}
@media (min-width: 768px) {
  .save-bar { left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; }
}
@media (min-width: 1024px) {
  .save-bar { max-width: 560px; }
}

/* P7 detail */
.head-card {
  padding: 20px 16px 18px;
  background: linear-gradient(135deg, var(--brand-weak), transparent 60%), var(--card);
}
.hd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hd-name { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.hd-sub { font-size: 13px; margin-top: 6px; line-height: 1.45; }
.hd-contact { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.radar-detail { background: linear-gradient(135deg, var(--brand-weak), transparent 65%), var(--card); border-color: var(--brand-line); }
.kv { display: flex; margin-bottom: 10px; }
.kv:last-child { margin-bottom: 0; }
.kv-k { width: 60px; flex-shrink: 0; font-size: 12px; padding-top: 2px; color: var(--ink-3); }
.kv-v { flex: 1; font-size: 13px; line-height: 1.7; color: var(--ink); }
.kv-col { flex-direction: column; }
.kv-col .kv-k { width: auto; margin-bottom: 4px; }
.notes { color: var(--ink-2); }
.empty-radar-mini { text-align: center; padding: 14px 8px 6px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  height: 32px; line-height: 30px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--card-2); color: var(--ink-2); font-size: 13px;
}
.st-on { font-weight: 700; }
.st-chip.fs-pending.st-on { background: var(--neutral-weak); color: var(--ink-2); border-color: var(--ink-3); }
.st-chip.fs-contacted.st-on { background: var(--info-weak); color: var(--info); border-color: var(--info); }
.st-chip.fs-opportunity.st-on { background: var(--warn-weak); color: var(--warn); border-color: var(--warn); }
.st-chip.fs-deal.st-on { background: var(--ok-weak); color: var(--ok); border-color: var(--ok); }
.st-chip.fs-invalid.st-on { background: var(--bad-weak); color: var(--bad); border-color: var(--bad); }
.meta-card { background: var(--card-2); border-style: dashed; }
.bar-row { display: flex; gap: 12px; }
.bar-row .btn-ghost { width: auto; flex: 1; }
.btn-del {
  display: block; width: 32%; height: 48px; line-height: 46px;
  background: transparent; color: var(--bad); border: 1px solid var(--bad);
  border-radius: 7px; font-size: 16px; font-weight: 700; flex-shrink: 0;
}

/* P8 company */
.co-head {
  padding: 20px 16px 18px;
  background: radial-gradient(circle at 100% 0%, var(--brand-weak), transparent 50%), var(--card);
  border-color: var(--brand-line);
}
.co-name { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.25; margin-bottom: 6px; }
.co-website { font-size: 13px; color: var(--brand); margin-top: 8px; font-weight: 600; word-break: break-all; }
.booth { font-size: 18px; font-weight: 800; color: var(--brand); font-family: "SF Mono", Menlo, monospace; font-feature-settings: "tnum"; }
.hist-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: none; }
.hist-year { width: 60px; font-size: 14px; font-weight: 700; font-family: "SF Mono", Menlo, monospace; color: var(--ink); }
.hist-booth { width: 80px; font-size: 13px; color: var(--brand); font-weight: 600; }
.hist-cat { flex: 1; font-size: 11px; color: var(--ink-2); }
.center-note { text-align: center; padding: 12px 20px 24px; line-height: 1.8; }

/* P9 report */
.win-banner { padding: 12px 14px; }
.wb-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.wb-hint { font-size: 11px; margin-top: 4px; line-height: 1.5; }
.m-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.m-grid { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.m-cell { width: 33.333%; box-sizing: border-box; padding: 6px 6px 12px; }
.m-num {
  font-size: 24px; font-weight: 800; color: var(--brand);
  font-family: "SF Mono", Menlo, Consolas, monospace; font-feature-settings: "tnum"; line-height: 1.1;
}
.m-num.m-warn { color: var(--warn); }
.m-num.m-ok { color: var(--ok); }
.m-label { font-size: 11px; margin-top: 4px; color: var(--ink-3); }
.hot-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hot-row:last-child { border-bottom: none; padding-bottom: 0; }
.hot-row:first-child { padding-top: 0; }
.hot-main { flex: 1; min-width: 0; padding-right: 8px; }
.hot-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); line-height: 1.35; }
.hot-sub { font-size: 11px; line-height: 1.45; }
.canvas-wrap { display: flex; justify-content: center; }
.rc-canvas { width: 170px; height: 302px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }

/* P10 profile */
.user-card {
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--brand-weak), transparent 55%), var(--card);
  border-color: var(--brand-line);
}
.u-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.u-avatar-sm { width: 28px; height: 28px; font-size: 12px; background: var(--brand-weak); color: var(--brand); border: 1px solid var(--brand-line); }
.u-main { margin-left: 12px; min-width: 0; }
.u-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.u-sub { font-size: 11px; margin-top: 4px; }
.room-main { margin-bottom: 12px; }
.room-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.room-sub { font-size: 12px; margin-top: 4px; }
.member-list { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 4px; }
.member-row { display: flex; align-items: center; padding: 6px 0; }
.m-name { flex: 1; font-size: 13px; margin-left: 8px; color: var(--ink); }
.room-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-exit { color: var(--bad); border-color: var(--bad); }
.row-entry { display: flex; align-items: center; justify-content: space-between; }
.re-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.re-desc { font-size: 11px; margin-top: 4px; }
.re-right { font-size: 13px; color: var(--brand); font-family: "SF Mono", Menlo, monospace; font-weight: 700; flex-shrink: 0; margin-left: 8px; }
.privacy .pv-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.privacy .pv-row:first-child { padding-top: 0; }
.privacy .pv-row:last-child { border-bottom: none; padding-bottom: 0; }
.pv-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.pv-desc { font-size: 12px; line-height: 1.65; }

/* P11 venue */
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px 12px; margin-bottom: 12px; }
.map-label { text-align: center; margin-bottom: 10px; font-size: 12px; color: var(--ink-2); }
.grid { display: flex; flex-wrap: wrap; margin: 0 -3px; }
.hall { width: 25%; padding: 3px; box-sizing: border-box; }
.grid-2 { margin-top: 4px; }
.grid-2 .hall { width: 50%; }
.hall-box {
  width: 100%; min-height: 74px; box-sizing: border-box;
  border: 1px solid var(--brand-line); border-radius: 8px; background: var(--card-2);
  padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hall-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.hall-n { margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--brand); }
.hall:active .hall-box { background: var(--brand-weak); }
.hall-empty .hall-box { border-style: dashed; border-color: var(--line-strong); }
.hall-empty .hall-n { color: var(--ink-3); }
.src-note { text-align: center; padding: 4px 8px 8px; line-height: 1.7; color: var(--ink-3); }

/* P12 exhibitors */
.search {
  display: flex; align-items: center; height: 44px; padding: 0 12px; margin-bottom: 8px;
  background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 7px;
}
.search-in { flex: 1; height: 44px; font-size: 14px; color: var(--ink); }
.search-clear { padding: 6px 4px 6px 8px; color: var(--brand); font-weight: 600; }
.filter-k { margin: 2px 0 1px; font-size: 11px; }
.count { margin-bottom: 4px; font-size: 11px; }
.note { margin-bottom: 8px; line-height: 1.55; font-size: 11px; }
.co-card { padding: 14px 16px; }
.co-place { margin-top: 4px; font-size: 12px; color: var(--brand); font-weight: 700; }
.co-tags { margin-top: 6px; }

/* web */
.web-fallback { padding: 24px 16px; }
.web-url { word-break: break-all; color: var(--brand); font-size: 13px; margin: 12px 0; }
