:root {
  --bg: #08101d;
  --bg-deep: #050a12;
  --panel: rgba(16, 27, 45, 0.82);
  --panel-solid: #101b2d;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f0e6;
  --muted: #9aa9c0;
  --muted-2: #71829c;
  --amber: #ffb45c;
  --amber-2: #ff8a4c;
  --mint: #5ee2c6;
  --mint-2: #36bfc4;
  --blue: #87a9ff;
  --coral: #ff7a7a;
  --map-bg: #0d1724;
  --map-park: #152a28;
  --map-water: #10283a;
  --map-road: #1d3148;
  --map-road-2: #263e56;
  --map-building: #1a2c42;
  --map-building-2: #233b55;
  --map-label: #9fb2c4;
  --map-tree: #2d5a4a;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --font-scale: 1;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 680px at 14% -8%, rgba(255, 180, 92, 0.16), transparent 62%),
    radial-gradient(920px 620px at 92% 2%, rgba(94, 226, 198, 0.11), transparent 60%),
    radial-gradient(900px 720px at 54% 112%, rgba(94, 124, 255, 0.10), transparent 64%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  z-index: -1;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
::selection { background: rgba(255, 180, 92, 0.35); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 18px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--mint); color: #041512;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.app {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 2.4vw, 38px);
}

/* ---------------------------------------------------------------- header */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #1a1008;
  background: linear-gradient(135deg, var(--amber) 0%, #ffd29a 46%, var(--mint) 100%);
  box-shadow: 0 8px 24px rgba(255, 180, 92, 0.22);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  letter-spacing: 0.06em;
}
.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.modes {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.is-active {
  color: #1b1208;
  background: linear-gradient(135deg, var(--amber), #ffd7a0);
  box-shadow: 0 6px 18px rgba(255, 180, 92, 0.18);
}
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.header-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.status-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(94, 226, 198, 0.1);
}
.status-pill.is-online i { background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 226, 198, 0.16); }
.auth-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.auth-btn svg { width: 16px; height: 16px; }
.auth-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--line-strong); }
.auth-btn.is-user { color: var(--mint); border-color: rgba(94, 226, 198, 0.28); background: rgba(94, 226, 198, 0.08); }
.icon-btn, .text-btn {
  height: 34px; min-width: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  border-radius: 11px;
  display: inline-grid; place-items: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover, .text-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.icon-btn.is-on { color: var(--amber); border-color: rgba(255, 180, 92, 0.3); background: rgba(255, 180, 92, 0.08); }
.font-tools { display: flex; gap: 3px; }
.text-btn { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; }
#helpBtn span { font-size: 0.9rem; font-weight: 700; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 30px;
  padding: 14px 4px 18px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 11px;
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(94, 226, 198, 0.08);
}
.eyebrow-line { width: 64px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 2.9vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--amber) 2%, #ffdca6 38%, var(--mint) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #ffd19a 100%);
  color: #221406;
  box-shadow: 0 12px 28px rgba(255, 180, 92, 0.17);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 180, 92, 0.25); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.amber { background: var(--amber); }
.dot.mint { background: var(--mint); }
.dot.blue { background: var(--blue); }

.hero-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 220px;
  position: relative;
}
.orb {
  width: min(240px, 20vw);
  aspect-ratio: 1;
  min-width: 200px;
  position: relative;
  display: grid; place-items: center;
}
.orb-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 180, 92, 0.18);
  border-radius: 50%;
  animation: orbit 16s linear infinite;
}
.ring-a { inset: 7%; border-color: rgba(94, 226, 198, 0.2); animation-duration: 22s; }
.ring-b { inset: 16%; border-style: dashed; border-color: rgba(255, 255, 255, 0.11); animation-direction: reverse; animation-duration: 30s; }
.ring-c { inset: 26%; border-color: rgba(255, 180, 92, 0.24); }
.orb-ring::after {
  content: "";
  position: absolute; top: 50%; left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}
.orb-core {
  width: 48%; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 180, 92, 0.22), rgba(94, 226, 198, 0.1) 52%, rgba(12, 22, 38, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.018),
    0 0 60px rgba(255, 180, 92, 0.16),
    inset 0 0 40px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}
.orb-hand { width: 42%; color: #ffe1ba; opacity: 0.96; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 9px; }
.eq span {
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--mint), rgba(94, 226, 198, 0.25));
  animation: equalize 1.2s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 7px; animation-delay: -0.2s; }
.eq span:nth-child(2) { height: 14px; animation-delay: -0.5s; }
.eq span:nth-child(3) { height: 18px; animation-delay: -0.8s; }
.eq span:nth-child(4) { height: 11px; animation-delay: -0.35s; }
.eq span:nth-child(5) { height: 6px; animation-delay: -0.65s; }
.orb-caption {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.orb-caption i { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes equalize {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------------------------------------- workspace */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}
.card {
  background:
    linear-gradient(180deg, rgba(20, 32, 52, 0.94), rgba(10, 18, 31, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 180px at 0% 0%, rgba(255, 180, 92, 0.07), transparent 70%);
  pointer-events: none;
}
.conversation {
  display: flex; flex-direction: column;
  min-height: 590px;
  padding: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 22px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  position: relative; z-index: 1;
}
.card-head.compact { padding: 13px 16px 10px; }
.kicker {
  margin: 0 0 5px;
  color: var(--muted-2);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.card-title-group h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.26rem;
  letter-spacing: 0.01em;
}
.participants { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.person {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
}
.person i { width: 6px; height: 6px; border-radius: 50%; }
.person.you i { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,180,92,0.08); }
.person.them i { background: var(--mint); box-shadow: 0 0 0 4px rgba(94,226,198,0.08); }
.person em { color: var(--muted-2); font-style: normal; font-size: 0.6rem; }

.transcript {
  flex: 1;
  min-height: 300px;
  max-height: 390px;
  overflow-y: auto;
  padding: 16px 22px 8px;
  display: flex; flex-direction: column; gap: 13px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.transcript::-webkit-scrollbar { width: 6px; }
.transcript::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  animation: message-in 0.38s var(--ease) both;
}
.msg-avatar {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}
.message.user .msg-avatar { background: rgba(255, 180, 92, 0.12); border-color: rgba(255,180,92,0.24); color: var(--amber); }
.message.sign .msg-avatar { background: rgba(94, 226, 198, 0.1); border-color: rgba(94,226,198,0.22); color: var(--mint); }
.message.assistant .msg-avatar { background: rgba(135, 169, 255, 0.11); border-color: rgba(135,169,255,0.22); color: var(--blue); }
.msg-body { min-width: 0; }
.msg-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}
.msg-meta strong { color: var(--muted); font-weight: 700; font-size: 0.64rem; }
.msg-meta time { margin-left: auto; opacity: 0.7; }
.bubble {
  width: fit-content;
  max-width: 96%;
  padding: 10px 13px;
  border-radius: 4px 14px 14px 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dfe6f0;
  font-size: 0.86rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.message.user .bubble { background: rgba(255, 180, 92, 0.10); border-color: rgba(255,180,92,0.16); color: #ffe6c7; }
.message.sign .bubble { background: rgba(94, 226, 198, 0.075); border-color: rgba(94,226,198,0.15); color: #d8fff7; }
.message.assistant .bubble { background: rgba(135, 169, 255, 0.065); border-color: rgba(135,169,255,0.14); color: #e3eaff; }
.msg-actions { display: flex; gap: 4px; margin-top: 5px; opacity: 0.82; transition: opacity 0.2s; }
.message:hover .msg-actions, .message:focus-within .msg-actions { opacity: 1; }
.msg-action {
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 0.59rem; padding: 3px 5px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.msg-action:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.msg-action svg { width: 11px; height: 11px; }
.typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 4px 2px;
}
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes message-in { from { transform: translateY(8px); } to { transform: none; } }

/* --------------------------------------------------------------- composer */
.composer {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 18px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 12, 21, 0.35);
  position: relative; z-index: 2;
}
.mic-btn {
  width: 58px; height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 92, 0.35);
  background: linear-gradient(145deg, rgba(255, 180, 92, 0.24), rgba(255, 138, 76, 0.08));
  color: var(--amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  position: relative;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.mic-btn:hover { transform: translateY(-2px); background: rgba(255, 180, 92, 0.2); }
.mic-btn svg { width: 21px; height: 21px; position: relative; z-index: 2; }
.mic-label { font-size: 0.48rem; letter-spacing: 0.08em; color: rgba(255, 226, 186, 0.75); position: relative; z-index: 2; margin-top: 1px; }
.mic-rings { position: absolute; inset: 0; border-radius: 50%; }
.mic-btn.listening { background: linear-gradient(145deg, var(--amber), #ff8a4c); color: #211105; border-color: transparent; }
.mic-btn.listening .mic-label { color: rgba(35, 18, 6, 0.76); }
.mic-btn.listening .mic-rings {
  animation: mic-pulse 1.4s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 180, 92, 0.4);
}
@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 92, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(255, 180, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 92, 0); }
}
.composer-field {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 4px 7px 4px 14px;
  display: flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.composer-field:focus-within { border-color: rgba(94, 226, 198, 0.4); background: rgba(255,255,255,0.055); }
#composerInput {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0; background: transparent; color: var(--text);
  font-size: 0.84rem;
  outline: none;
}
#composerInput::placeholder { color: var(--muted-2); }
.composer-tools { display: flex; gap: 4px; flex: 0 0 auto; }
.chip-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  height: 30px; padding: 0 7px;
  border-radius: 8px;
  font-size: 0.6rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip-btn svg { width: 14px; height: 14px; }
.chip-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.chip-btn[aria-pressed="true"] { color: var(--mint); background: rgba(94,226,198,0.08); border-color: rgba(94,226,198,0.2); }
.send-btn {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 0; border-radius: 13px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.send-btn svg { width: 20px; height: 20px; }
.send-btn:hover { background: var(--mint); color: #041512; transform: translateY(-1px); }
.composer-hint {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 0 22px 11px;
  color: var(--muted-2);
  font-size: 0.57rem;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------- side */
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.camera-card { display: flex; flex-direction: column; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 9px;
  border: 1px solid rgba(94, 226, 198, 0.18);
  background: rgba(94, 226, 198, 0.06);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(94,226,198,0.12); animation: live 2s infinite; }
@keyframes live { 50% { opacity: 0.35; } }
.camera-view {
  position: relative;
  aspect-ratio: 2.1 / 1;
  margin: 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #050b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#cameraVideo { width: 100%; height: 100%; object-fit: cover; display: none; }
.gesture-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}
.model-line {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 16px 0;
  color: var(--muted-2);
  font-size: 0.5rem;
}
.model-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 0.5rem;
  white-space: nowrap;
}
.model-badge i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.model-badge.is-ready { color: var(--mint); border-color: rgba(94, 226, 198, 0.3); }
.model-badge.is-ready i { background: var(--mint); }
.model-badge.is-loading { color: var(--amber); border-color: rgba(255, 180, 92, 0.3); }
.model-badge.is-loading i { background: var(--amber); animation: live 1s infinite; }
.camera-view.has-video #cameraVideo { display: block; }
.camera-view.has-video .scene-fallback { display: none; }
.scene-fallback { position: absolute; inset: 0; }
.scene-fallback svg { width: 100%; height: 100%; }
.scene-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,18,0.16), transparent 40%, rgba(4,10,18,0.55));
  pointer-events: none;
}
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94,226,198,0.65), transparent);
  box-shadow: 0 0 20px rgba(94,226,198,0.25);
  animation: scan 4.8s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes scan { 0%,100% { top: 8%; opacity: 0; } 15% { opacity: 0.8; } 55% { top: 90%; opacity: 0.6; } 70% { opacity: 0; } }
.scene-label {
  position: absolute;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(5, 12, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8f0f8;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.scene-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.scene-label.label-a { left: 10%; top: 67%; }
.scene-label.label-b { right: 38%; top: 36%; }
.scene-label.label-c { right: 20%; top: 67%; }
.hand-overlay {
  position: absolute; right: 3%; top: 9%; width: 27%;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(94,226,198,0.2));
  animation: hand-float 4.5s ease-in-out infinite;
}
.hand-overlay svg { width: 100%; height: auto; }
.camera-view.is-model .hand-overlay { display: none; }
.camera-view.is-model .scene-fallback { opacity: 0.35; }
@keyframes hand-float { 50% { transform: translateY(-5px) rotate(1deg); } }

/* 导盲犬模式 */
.guide-hud {
  display: none;
  align-items: center;
  gap: 9px;
  margin: 0 16px 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 180, 92, 0.2);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(255, 180, 92, 0.1), rgba(94, 226, 198, 0.055));
}
body[data-mode="guide"] .guide-hud { display: flex; }
.guide-dog {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 180, 92, 0.16);
  font-size: 0.9rem;
}
.guide-hud-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.guide-hud-copy strong { color: var(--amber); font-size: 0.74rem; letter-spacing: 0.02em; }
.guide-hud-copy span { color: var(--muted); font-size: 0.57rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--mint);
  font-size: 0.52rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.guide-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); animation: live 1.6s infinite; }
.guide-overlay { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
body[data-mode="guide"] .guide-overlay { display: block; }
body[data-mode="guide"] .hand-overlay,
body[data-mode="guide"] .scene-label { display: none; }
.guide-corridor {
  position: absolute; left: 29%; right: 29%; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(94, 226, 198, 0.04), rgba(94, 226, 198, 0.16) 55%, rgba(94, 226, 198, 0.03));
  border-left: 1px dashed rgba(94, 226, 198, 0.45);
  border-right: 1px dashed rgba(94, 226, 198, 0.45);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}
.guide-arrow {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  color: rgba(94, 226, 198, 0.9);
  font-size: 2.8rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(94, 226, 198, 0.5);
  animation: guide-arrow 2s ease-in-out infinite;
}
@keyframes guide-arrow { 50% { transform: translate(-50%, -58%); opacity: 0.65; } }
.obstacle-box {
  position: absolute;
  border: 2px solid rgba(255, 180, 92, 0.9);
  border-radius: 7px;
  background: rgba(255, 180, 92, 0.08);
  box-shadow: 0 0 18px rgba(255, 180, 92, 0.12);
}
.obstacle-box span {
  position: absolute; top: -19px; left: -1px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--amber);
  color: #271406;
  font-size: 0.48rem;
  font-weight: 700;
  white-space: nowrap;
}
.obstacle-box.box-a { left: 15%; top: 58%; width: 42%; height: 20%; }
.obstacle-box.box-b { right: 6%; top: 36%; width: 18%; height: 28%; border-color: rgba(94, 226, 198, 0.9); background: rgba(94, 226, 198, 0.08); }
.obstacle-box.box-b span { background: var(--mint); color: #042019; }
.guide-safe-path {
  position: absolute; left: 42%; bottom: 8%; width: 16%; height: 20%;
  border-radius: 50% 50% 0 0;
  border: 1px dashed rgba(94, 226, 198, 0.35);
  border-bottom: 0;
}
.camera-view.has-video .guide-overlay { mix-blend-mode: screen; }
.camera-top, .camera-bottom {
  position: absolute; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(236, 245, 255, 0.75);
  font-size: 0.53rem;
  letter-spacing: 0.09em;
  font-weight: 600;
  z-index: 3;
}
.camera-top { top: 10px; }
.camera-bottom { bottom: 10px; }
.camera-top span, .camera-bottom span {
  background: rgba(4, 11, 19, 0.56);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 6px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
}
#confidence { color: var(--mint); }
.camera-actions { display: flex; gap: 8px; padding: 8px 16px 12px; }
.btn-small {
  min-height: 34px; padding: 0 13px;
  border-radius: 10px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255,255,255,0.09);
}
.btn-small:hover { background: rgba(255,255,255,0.1); }
.btn-small.btn-primary {
  color: #221406;
  background: linear-gradient(135deg, var(--amber) 0%, #ffd19a 100%);
  border-color: transparent;
  font-weight: 700;
}
.btn-small.btn-primary:hover { background: linear-gradient(135deg, #ffc277, #ffe0b5); }
.btn-mint { color: #052019; background: linear-gradient(135deg, var(--mint), #9df2df); border-color: transparent; }
.btn-mint:hover { background: linear-gradient(135deg, #7cebd3, #baf7e9); }
.btn-guide {
  color: var(--amber);
  background: rgba(255, 180, 92, 0.09);
  border-color: rgba(255, 180, 92, 0.22);
}
.btn-guide:hover { background: rgba(255, 180, 92, 0.16); }
.btn-guide.is-active { color: #241406; background: linear-gradient(135deg, var(--amber), #ffd49b); border-color: transparent; }
.btn-dot { width: 5px; height: 5px; border-radius: 50%; background: #052019; box-shadow: 0 0 0 3px rgba(5,32,25,0.12); }

/* ---------------------------------------------------------------- insight */
.insight { padding: 0 16px 13px; }
.tabs { display: flex; gap: 4px; padding: 8px 0 7px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tab {
  border: 0; background: transparent; color: var(--muted-2);
  padding: 6px 9px; border-radius: 8px;
  font-size: 0.67rem; font-weight: 600;
  position: relative;
}
.tab.is-active { color: var(--text); background: rgba(255,255,255,0.05); }
.tab.is-active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: -8px;
  height: 2px; border-radius: 2px; background: var(--mint);
}
.tab-panel { padding-top: 10px; }
.is-hidden { display: none !important; }
.tab-panel .kicker { margin-bottom: 7px; }
.scene-text {
  margin: 0;
  color: #e9eef6;
  font-size: 0.83rem;
  line-height: 1.65;
  min-height: 44px;
  text-wrap: pretty;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--muted);
  font-size: 0.59rem;
}
.chip em { color: var(--muted-2); font-style: normal; font-size: 0.53rem; }
.insight-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.insight-actions .btn-small { min-height: 32px; padding: 0 10px; font-size: 0.64rem; }

.sign-stage {
  height: 100px;
  border-radius: 14px;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(94,226,198,0.12), transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
}
.sign-rings {
  position: absolute; width: 92px; height: 92px;
  border: 1px dashed rgba(94,226,198,0.26);
  border-radius: 50%;
  animation: orbit 24s linear infinite;
}
.sign-rings::before, .sign-rings::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.07);
}
.sign-rings::before { inset: 12px; }
.sign-rings::after { inset: 26px; border-color: rgba(255,180,92,0.12); }
.sign-hands {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 10px 24px rgba(94,226,198,0.15));
  animation: sign-bob 3.8s ease-in-out infinite;
  position: relative; z-index: 2;
}
.sign-stage.is-signing .sign-hands { animation: sign-pop 0.7s var(--ease); }
@keyframes sign-bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes sign-pop { 0% { transform: scale(0.86) rotate(-4deg); } 55% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1); } }
.sign-tag {
  position: absolute; right: 10px; bottom: 8px;
  color: var(--muted-2); font-size: 0.5rem; letter-spacing: 0.2em; font-weight: 700;
}
.sign-gloss {
  margin: 10px 0 3px;
  color: var(--mint);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  font-weight: 600;
}
.sign-caption { margin: 0; color: var(--muted-2); font-size: 0.61rem; line-height: 1.55; }
.sign-phrases { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.sign-phrases button {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 7px; padding: 4px 7px;
  font-size: 0.58rem;
}
.sign-phrases button:hover { color: #06201b; background: var(--mint); border-color: transparent; }

/* --------------------------------------------------------------- voice bar */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
}
.voice-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #281506;
  background: linear-gradient(135deg, var(--amber), #ffd39b);
  box-shadow: 0 8px 22px rgba(255, 180, 92, 0.18);
}
.voice-mark svg { width: 23px; height: 23px; }
.voice-copy { min-width: 0; }
.voice-copy h2 { margin: 0; font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0.01em; }
.voice-copy p:not(.kicker) { margin: 2px 0 0; color: var(--muted-2); font-size: 0.62rem; line-height: 1.45; }
.voice-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.rate-control {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}
.rate-control button {
  border: 0; background: transparent;
  color: var(--muted-2);
  height: 24px; padding: 0 8px;
  border-radius: 6px;
  font-size: 0.56rem;
}
.rate-control button:hover { color: var(--text); }
.rate-control button.is-active { color: #052019; background: var(--mint); font-weight: 700; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.58rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.switch-ui {
  width: 30px; height: 17px; flex: 0 0 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.switch-ui::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.switch input:checked + .switch-ui { background: rgba(94, 226, 198, 0.28); border-color: rgba(94, 226, 198, 0.4); }
.switch input:checked + .switch-ui::after { transform: translateX(13px); background: var(--mint); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--mint); outline-offset: 3px; }
.voice-live {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted-2);
  font-size: 0.53rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.voice-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.voice-live.is-speaking { color: var(--mint); }
.voice-live.is-speaking i { animation: live 1s infinite; }

/* --------------------------------------------------------------- community */
.community { margin: 24px 0 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 13px;
}
.section-head-copy { min-width: 0; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-head-copy > p:not(.kicker) {
  margin: 5px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}
.section-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn-danger {
  color: var(--coral);
  border-color: rgba(255, 122, 122, 0.24);
  background: rgba(255, 122, 122, 0.08);
}
.btn-danger:hover { background: rgba(255, 122, 122, 0.14); }
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(370px, 0.76fr);
  gap: 18px;
  align-items: stretch;
}
.map-card { display: flex; flex-direction: column; overflow: hidden; }
.map-canvas {
  position: relative;
  flex: 1;
  min-height: 335px;
  margin: 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--map-bg);
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-label text {
  fill: var(--map-label);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: transparent;
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
}
.map-pin .pin-body {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  border: 3px solid var(--panel-solid);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}
.map-pin.you .pin-body { background: var(--blue); }
.map-pin.helper .pin-body { background: var(--mint); color: #042019; }
.map-pin.need .pin-body { background: var(--amber); color: #2a1608; }
.map-pin .pin-label {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.map-pin.you::before,
.map-pin.you::after {
  content: "";
  position: absolute;
  left: 50%; top: 15px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(135, 169, 255, 0.55);
  transform: translate(-50%, -50%);
  animation: map-radar 2.8s ease-out infinite;
  pointer-events: none;
}
.map-pin.you::after { animation-delay: 1.4s; }
@keyframes map-radar { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
.map-pin:hover .pin-body { transform: scale(1.1); }
.map-legend {
  position: absolute;
  left: 10px; bottom: 10px;
  display: flex; gap: 9px;
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.48rem; }
.pin-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.pin-dot.you { background: var(--blue); }
.pin-dot.helper { background: var(--mint); }
.pin-dot.need { background: var(--amber); }
.map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px 11px;
  color: var(--muted-2);
  font-size: 0.56rem;
}
.map-foot .dot { margin-right: 5px; }
.map-foot #mapStats { color: var(--mint); white-space: nowrap; }
.care-card { display: flex; flex-direction: column; padding: 0; }
.care-head { padding: 8px 16px 0; }
.care-card .tabs { padding: 3px 0 8px; }
.care-card .tab em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 0.53rem;
  margin-left: 3px;
}
.care-panel { flex: 1; min-height: 0; }
.care-list {
  max-height: 322px;
  overflow-y: auto;
  padding: 5px 12px 8px;
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.care-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
  transition: border-color 0.2s, background 0.2s;
}
.care-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.care-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 800;
  background: rgba(255, 180, 92, 0.1);
  border: 1px solid rgba(255, 180, 92, 0.2);
  color: var(--amber);
}
.care-avatar.helper { background: rgba(94, 226, 198, 0.08); border-color: rgba(94, 226, 198, 0.18); color: var(--mint); }
.care-body { min-width: 0; }
.care-body h3 { margin: 0 0 2px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.care-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted-2); font-size: 0.53rem; }
.care-meta .status { color: var(--mint); }
.care-meta .status.pending { color: var(--amber); }
.care-meta .status.done { color: var(--blue); }
.care-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.care-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.47rem;
}
.care-tag.verified { color: var(--mint); border-color: rgba(94, 226, 198, 0.3); }
.care-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.care-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  height: 24px; padding: 0 7px;
  font-size: 0.52rem;
  white-space: nowrap;
}
.care-action:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-soft); }
.care-action.primary { color: #052019; background: var(--mint); border-color: transparent; font-weight: 700; }
.care-action.primary:hover { background: #8ff0dc; color: #052019; }
.care-action.done { color: var(--muted-2); border-style: dashed; }
.care-empty { padding: 30px 12px; text-align: center; color: var(--muted-2); font-size: 0.66rem; line-height: 1.7; }
.care-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.52rem;
}
.care-foot .dot { margin-right: 5px; }
.care-refresh { border: 0; background: transparent; color: var(--muted-2); font-size: 0.52rem; text-decoration: underline; text-underline-offset: 2px; }
.care-refresh:hover { color: var(--text); }

/* ------------------------------------------------------------- care forms */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 4px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 600;
}
.auth-tabs button:hover { color: var(--text); }
.auth-tabs button.is-active { color: var(--text); background: var(--panel-soft); }
.care-form { display: grid; gap: 11px; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field-label { color: var(--muted); font-size: 0.61rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.72rem;
  outline: none;
}
.field textarea { min-height: 62px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(94, 226, 198, 0.12); }
.field .btn { width: 100%; justify-content: center; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-checks { display: flex; flex-wrap: wrap; gap: 5px; }
.form-checks label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.59rem;
  cursor: pointer;
}
.form-checks label:has(input:checked) { border-color: rgba(94, 226, 198, 0.4); background: rgba(94, 226, 198, 0.07); color: var(--text); }
.form-checks input { accent-color: var(--mint); }
.check-row { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 0.58rem; line-height: 1.5; }
.check-row input { accent-color: var(--mint); margin-top: 2px; }
.form-error { margin: 0; min-height: 0.9em; color: var(--coral); font-size: 0.58rem; line-height: 1.4; }
.form-hint { margin: 0; color: var(--muted-2); font-size: 0.55rem; line-height: 1.5; }
.contact-card { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.contact-card .care-avatar { flex: 0 0 34px; }
.contact-card strong { display: block; font-size: 0.72rem; }
.contact-card span { color: var(--muted-2); font-size: 0.58rem; }

/* ------------------------------------------------------------- feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}
.feature-strip article {
  display: flex; gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 17px;
  background: rgba(255,255,255,0.025);
}
.feature-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.09);
}
.feature-icon svg { width: 17px; height: 17px; }
.feature-icon.amber { color: var(--amber); background: rgba(255,180,92,0.07); }
.feature-icon.mint { color: var(--mint); background: rgba(94,226,198,0.06); }
.feature-icon.blue { color: var(--blue); background: rgba(135,169,255,0.07); }
.feature-icon.guide { color: var(--amber); background: rgba(94,226,198,0.07); }
.feature-strip h3 { margin: 1px 0 3px; font-size: 0.72rem; font-weight: 700; }
.feature-strip p { margin: 0; color: var(--muted-2); font-size: 0.62rem; line-height: 1.55; }

.app-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  padding: 0 2px 24px;
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}
.footer-sep { width: 1px; height: 10px; background: var(--line); }
.footer-link {
  margin-left: auto; border: 0; background: transparent;
  color: var(--muted-2); font-size: 0.58rem; text-decoration: underline; text-underline-offset: 3px;
}
.footer-link:hover { color: var(--text); }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translate(-50%, 16px);
  min-width: 220px; max-width: min(540px, calc(100vw - 36px));
  padding: 12px 16px;
  background: rgba(9, 19, 32, 0.96);
  border: 1px solid rgba(94, 226, 198, 0.24);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 60;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(255, 122, 122, 0.35); }

/* ----------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  max-height: min(78vh, 700px);
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #152238, #0d1829);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.25s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  border-radius: 9px; color: var(--muted);
  display: grid; place-items: center;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.modal-card h2 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.modal-body { color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.modal-body p { margin: 0 0 10px; }
.modal-body .ocr-sample {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.modal-body strong { color: var(--text); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 auto; }
.countdown {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--coral);
  margin: 8px 0 12px;
}
.shortcut-list { display: grid; gap: 9px; margin: 0; }
.shortcut-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 8px; }
.shortcut-list dt { color: var(--muted); font-size: 0.75rem; }
.shortcut-list dd { margin: 0; }
kbd {
  display: inline-block;
  min-width: 22px; padding: 3px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-bottom-color: rgba(255,255,255,0.25);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  text-align: center;
}

/* ------------------------------------------------------------- light theme */
body.theme-light {
  --bg: #f1f4ee;
  --bg-deep: #efe8da;
  --panel: #fff;
  --panel-solid: #fff;
  --panel-soft: #f5f7f2;
  --line: rgba(29, 42, 50, 0.10);
  --line-strong: rgba(29, 42, 50, 0.19);
  --text: #18372e;
  --muted: #59676f;
  --muted-2: #586b63;
  --amber: #a85a17;
  --amber-2: #c77428;
  --mint: #176450;
  --mint-2: #229e90;
  --blue: #4d63c8;
  --coral: #b23f3f;
  --shadow: 0 24px 70px rgba(83, 67, 44, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --map-bg: #eef1e8;
  --map-park: #d9ead3;
  --map-water: #cfe6ee;
  --map-road: #fbf8f0;
  --map-road-2: #e5e0d3;
  --map-building: #e3e7df;
  --map-building-2: #d4dcd2;
  --map-label: #6f7f76;
  --map-tree: #b7d3ac;
  background: radial-gradient(ellipse at 92% 0%, #e3eee5, transparent 44rem),
    linear-gradient(120deg, #f6f5ed, var(--bg) 48%, #edf3ef);
}
body.theme-light::before { opacity: 0.09; }
body.theme-light .brand-mark { background: #195643; color: #fff; box-shadow: none; }
body.theme-light .topbar { border-bottom-color: rgba(29, 42, 50, 0.08); }
body.theme-light .brand-text strong { color: #1d2a32; }
body.theme-light .brand-text small { color: #75828a; }
body.theme-light .header-link { color: #59676f; }
body.theme-light .header-link:hover { color: #1d2a32; background: rgba(29, 42, 50, 0.05); }
body.theme-light .modes { background: rgba(255, 255, 255, 0.58); border-color: rgba(29, 42, 50, 0.10); }
body.theme-light .mode-btn { color: #59676f; }
body.theme-light .mode-btn:hover { color: #1d2a32; }
body.theme-light .mode-btn.is-active {
  color: #2a1608;
  background: linear-gradient(135deg, #f0a04a, #ffd29a);
  box-shadow: 0 6px 18px rgba(185, 101, 31, 0.18);
}
body.theme-light .status-pill,
body.theme-light .icon-btn,
body.theme-light .text-btn {
  color: #59676f;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(29, 42, 50, 0.11);
}
body.theme-light .auth-btn {
  color: #59676f;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(29, 42, 50, 0.11);
}
body.theme-light .auth-btn:hover { color: #1d2a32; background: #fffdf8; }
body.theme-light .auth-btn.is-user { color: #0b7466; background: #e7f8f3; border-color: #c4e9e1; }
body.theme-light .icon-btn:hover,
body.theme-light .text-btn:hover { color: #1d2a32; background: #fffdf8; border-color: rgba(29, 42, 50, 0.2); }
body.theme-light .icon-btn.is-on { color: #a85a17; border-color: rgba(185, 101, 31, 0.28); background: rgba(185, 101, 31, 0.08); }
body.theme-light .status-pill i { background: #0c8574; box-shadow: 0 0 0 4px rgba(12, 133, 116, 0.1); }
body.theme-light h1 { color: #1d2a32; }
body.theme-light .grad {
  background: linear-gradient(100deg, #b9651f 2%, #d98632 42%, #0c8574 92%);
  -webkit-background-clip: text;
  background-clip: text;
}
body.theme-light .hero-sub { color: #59676f; }
body.theme-light .hero-meta { color: #75828a; }
body.theme-light .btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: rgba(29, 42, 50, 0.13); color: #1d2a32; }
body.theme-light .btn-ghost:hover { background: #fffdf8; border-color: rgba(29, 42, 50, 0.22); }
body.theme-light .btn-primary { color: #2a1608; background: linear-gradient(135deg, #f0a04a, #ffd29a); box-shadow: 0 10px 24px rgba(185, 101, 31, 0.16); }
body.theme-light .orb-core {
  background:
    radial-gradient(circle at 35% 28%, #ffffff, transparent 38%),
    linear-gradient(145deg, #fff7ea, #eaf8f3 52%, #fffdf8 100%);
  border-color: rgba(185, 101, 31, 0.24);
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.36),
    0 0 60px rgba(185, 101, 31, 0.16),
    inset 0 0 40px rgba(255, 255, 255, 0.8);
}
body.theme-light .orb-hand { color: #8c5a1e; }
body.theme-light .orb-ring { border-color: rgba(185, 101, 31, 0.2); }
body.theme-light .ring-a { border-color: rgba(12, 133, 116, 0.2); }
body.theme-light .ring-b { border-color: rgba(29, 42, 50, 0.12); }
body.theme-light .ring-c { border-color: rgba(185, 101, 31, 0.26); }
body.theme-light .orb-caption { color: #75828a; }
body.theme-light .orb-caption i { background: linear-gradient(90deg, transparent, rgba(29,42,50,0.28), transparent); }
body.theme-light .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.88));
  border-color: rgba(29, 42, 50, 0.08);
}
body.theme-light .card::before { background: radial-gradient(600px 180px at 0% 0%, rgba(217, 134, 50, 0.08), transparent 70%); }
body.theme-light .card-head { border-bottom-color: rgba(29, 42, 50, 0.075); }
body.theme-light .kicker { color: #75828a; }
body.theme-light .person { background: rgba(255, 255, 255, 0.58); border-color: rgba(29, 42, 50, 0.1); color: #59676f; }
body.theme-light .person em { color: #8a969b; }
body.theme-light .transcript { scrollbar-color: rgba(29, 42, 50, 0.18) transparent; }
body.theme-light .msg-avatar { background: #f0f2ee; border-color: #dfe4dd; color: #59676f; }
body.theme-light .message.user .msg-avatar { background: #fff0dd; border-color: #f2d3b0; color: #a85a17; }
body.theme-light .message.sign .msg-avatar { background: #e7f8f3; border-color: #c8ebe3; color: #0c7566; }
body.theme-light .message.assistant .msg-avatar { background: #eef2ff; border-color: #dbe3fa; color: #4d63c8; }
body.theme-light .msg-meta { color: #75828a; }
body.theme-light .msg-meta strong { color: #59676f; }
body.theme-light .bubble { background: #f1f4f2; border-color: #e1e6e2; color: #26363d; }
body.theme-light .message.user .bubble { background: #fff3e3; border-color: #f2d8b9; color: #563416; }
body.theme-light .message.sign .bubble { background: #e9f8f4; border-color: #c9ebe3; color: #14564c; }
body.theme-light .message.assistant .bubble { background: #eef2ff; border-color: #dbe3fa; color: #2c3a6b; }
body.theme-light .msg-action { color: #75828a; }
body.theme-light .msg-action:hover { color: #1d2a32; background: rgba(29, 42, 50, 0.055); }
body.theme-light .composer { background: rgba(255, 255, 255, 0.4); border-top-color: rgba(29, 42, 50, 0.075); }
body.theme-light .mic-btn { border-color: rgba(185, 101, 31, 0.28); background: linear-gradient(145deg, rgba(240, 160, 74, 0.24), rgba(255, 210, 154, 0.18)); color: #a85a17; }
body.theme-light .mic-btn:hover { background: rgba(240, 160, 74, 0.26); }
body.theme-light .mic-label { color: rgba(120, 69, 22, 0.75); }
body.theme-light .composer-field { background: rgba(255, 255, 255, 0.78); border-color: rgba(29, 42, 50, 0.12); }
body.theme-light .composer-field:focus-within { border-color: rgba(12, 133, 116, 0.45); background: #ffffff; }
body.theme-light #composerInput { color: #1d2a32; }
body.theme-light #composerInput::placeholder { color: #8a969b; }
body.theme-light .chip-btn { color: #75828a; }
body.theme-light .chip-btn:hover { color: #1d2a32; background: rgba(29, 42, 50, 0.05); }
body.theme-light .chip-btn[aria-pressed="true"] { color: #0c7566; background: rgba(12, 133, 116, 0.08); border-color: rgba(12, 133, 116, 0.2); }
body.theme-light .send-btn { background: #eae5da; color: #1d2a32; }
body.theme-light .send-btn:hover { background: #0c8574; color: #fff; }
body.theme-light .composer-hint { color: #75828a; }
body.theme-light .live-badge { background: #e7f8f3; border-color: #c4e9e1; color: #0c7566; }
body.theme-light .camera-view { border-color: rgba(29, 42, 50, 0.16); }
body.theme-light .camera-actions .btn-small { background: #f5f1e8; border-color: #e0dbcf; color: #1d2a32; }
body.theme-light .camera-actions .btn-small:hover { background: #fffdf8; }
body.theme-light .btn-mint { color: #fff; background: linear-gradient(135deg, #0c8574, #36b8a5); }
body.theme-light .btn-mint:hover { background: linear-gradient(135deg, #0b7466, #2aa996); }
body.theme-light .btn-guide { color: #a85a17; background: #fff2e1; border-color: #f0d4b1; }
body.theme-light .btn-guide:hover { background: #ffe8cf; }
body.theme-light .btn-guide.is-active { color: #fff; background: linear-gradient(135deg, #b9651f, #d98632); border-color: transparent; }
body.theme-light .guide-hud { background: linear-gradient(90deg, #fff2e1, #e9f8f4); border-color: #eed6b7; }
body.theme-light .guide-hud-copy strong { color: #a85a17; }
body.theme-light .guide-hud-copy span { color: #59676f; }
body.theme-light .guide-dog { background: #ffe7c9; }
body.theme-light .insight { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,252,246,.88)); }
body.theme-light .tabs { border-bottom-color: rgba(29, 42, 50, 0.075); }
body.theme-light .tab { color: #75828a; }
body.theme-light .tab.is-active { color: #1d2a32; background: rgba(29, 42, 50, 0.045); }
body.theme-light .scene-text { color: #26363d; }
body.theme-light .chip { background: #f5f1e8; border-color: #e4dfd3; color: #59676f; }
body.theme-light .chip em { color: #75828a; }
body.theme-light .sign-stage { background: radial-gradient(circle at 50% 50%, #dff6ee, transparent 58%), linear-gradient(145deg, #fbf8f0, #f1f8f4); border-color: #dfe8e1; }
body.theme-light .sign-gloss { color: #0c7566; }
body.theme-light .sign-caption { color: #75828a; }
body.theme-light .sign-phrases button { background: #f5f1e8; border-color: #e4dfd3; color: #59676f; }
body.theme-light .sign-phrases button:hover { background: #0c8574; color: #fff; }
body.theme-light .voice-bar { background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(255,249,240,.9)); }
body.theme-light .voice-mark { color: #2a1608; }
body.theme-light .voice-copy h2 { color: #1d2a32; }
body.theme-light .voice-copy p:not(.kicker) { color: #75828a; }
body.theme-light .rate-control { background: #f5f1e8; border-color: #e0dbcf; }
body.theme-light .rate-control button { color: #75828a; }
body.theme-light .rate-control button:hover { color: #1d2a32; }
body.theme-light .rate-control button.is-active { color: #fff; background: #0c8574; }
body.theme-light .switch { color: #59676f; }
body.theme-light .switch-ui { background: #e5dfd2; border-color: #d8d1c3; }
body.theme-light .switch-ui::after { background: #8a969b; }
body.theme-light .switch input:checked + .switch-ui { background: rgba(12, 133, 116, 0.24); border-color: rgba(12, 133, 116, 0.3); }
body.theme-light .switch input:checked + .switch-ui::after { background: #0c8574; }
body.theme-light .voice-live { color: #75828a; }
body.theme-light .voice-live.is-speaking { color: #0c7566; }
body.theme-light .section-head-copy > p:not(.kicker) { color: #59676f; }
body.theme-light .btn-danger { color: #b23f3f; border-color: rgba(178, 63, 63, 0.22); background: rgba(178, 63, 63, 0.06); }
body.theme-light .btn-danger:hover { background: rgba(178, 63, 63, 0.12); }
body.theme-light .map-canvas { border-color: #dfe4da; }
body.theme-light .map-label text { fill: #6f7f76; }
body.theme-light .map-pin .pin-body { border-color: #fffdf8; }
body.theme-light .map-pin .pin-label { background: #fffdf8; border-color: #e1ddd2; color: #1d2a32; }
body.theme-light .map-legend { background: rgba(255,255,255,.85); border-color: #e1ddd2; }
body.theme-light .map-legend span { color: #59676f; }
body.theme-light .map-foot { color: #75828a; }
body.theme-light .care-card { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,252,246,.88)); }
body.theme-light .care-card .tab em { color: #75828a; }
body.theme-light .care-item { background: #fbf8f1; border-color: #e8e2d6; }
body.theme-light .care-item:hover { background: #fffdf8; border-color: #d8d1c3; }
body.theme-light .care-avatar { background: #fff2e1; border-color: #f0d4b1; color: #a85a17; }
body.theme-light .care-avatar.helper { background: #e7f8f3; border-color: #c8ebe3; color: #0c7566; }
body.theme-light .care-body h3 { color: #1d2a32; }
body.theme-light .care-meta { color: #75828a; }
body.theme-light .care-meta .status { color: #0c7566; }
body.theme-light .care-meta .status.pending { color: #b9651f; }
body.theme-light .care-meta .status.done { color: #4d63c8; }
body.theme-light .care-tag { background: #f3efe5; border-color: #e6e0d4; color: #6d7a80; }
body.theme-light .care-action { color: #59676f; border-color: #e2ddd2; }
body.theme-light .care-action:hover { color: #1d2a32; background: #fffdf8; border-color: #d2cbbd; }
body.theme-light .care-action.primary { color: #fff; background: #0c8574; border-color: transparent; }
body.theme-light .care-action.primary:hover { background: #0b7466; color: #fff; }
body.theme-light .care-action.done { color: #75828a; }
body.theme-light .care-foot { border-top-color: #e8e2d6; color: #75828a; }
body.theme-light .care-refresh { color: #75828a; }
body.theme-light .care-refresh:hover { color: #1d2a32; }
body.theme-light .field input,
body.theme-light .field select,
body.theme-light .field textarea { background: #fffdf8; border-color: #e2ddd2; color: #1d2a32; }
body.theme-light .field > label,
body.theme-light .field-label { color: #59676f; }
body.theme-light .form-checks label { background: #fbf8f1; border-color: #e5dfd3; color: #59676f; }
body.theme-light .form-checks label:has(input:checked) { border-color: rgba(12, 133, 116, 0.35); background: #e9f8f4; color: #1d2a32; }
body.theme-light .check-row { color: #59676f; }
body.theme-light .contact-card { background: #fbf8f1; border-color: #e5dfd3; }
body.theme-light .contact-card span { color: #75828a; }
body.theme-light .feature-strip article { background: rgba(255, 255, 255, 0.5); border-color: rgba(29, 42, 50, 0.08); }
body.theme-light .feature-strip h3 { color: #1d2a32; }
body.theme-light .feature-strip p { color: #75828a; }
body.theme-light .feature-icon { border-color: rgba(29, 42, 50, 0.08); }
body.theme-light .feature-icon.amber { background: #fff2e1; color: #a85a17; }
body.theme-light .feature-icon.mint { background: #e7f8f3; color: #0c7566; }
body.theme-light .feature-icon.blue { background: #eef2ff; color: #4d63c8; }
body.theme-light .feature-icon.guide { background: #eaf8f3; color: #0c7566; }
body.theme-light .app-footer { color: #75828a; }
body.theme-light .footer-link { color: #75828a; }
body.theme-light .footer-link:hover { color: #1d2a32; }
body.theme-light .toast { background: #fffdf8; color: #1d2a32; border-color: rgba(12, 133, 116, 0.26); box-shadow: 0 18px 50px rgba(83, 67, 44, 0.16); }
body.theme-light .modal-card { background: linear-gradient(180deg, #fffdf8, #f7f2e8); border-color: #e3ddd0; box-shadow: 0 30px 100px rgba(83, 67, 44, 0.24); }
body.theme-light .modal-close { background: #f5f1e8; border-color: #e2ddd2; color: #59676f; }
body.theme-light .modal-close:hover { background: #fffdf8; color: #1d2a32; }
body.theme-light .modal-body { color: #59676f; }
body.theme-light .modal-body strong { color: #1d2a32; }
body.theme-light .modal-body .ocr-sample { background: #fbf8f1; border-color: #d9d2c2; color: #1d2a32; }
body.theme-light kbd { background: #f3efe5; border-color: #ded7c8; color: #1d2a32; }
body.theme-light .countdown { color: #c74f4f; }
body.theme-light .sign-tag { color: #75828a; }


/* ----------------------------------------------------------- high contrast */
body.high-contrast {
  --bg: #000;
  --bg-deep: #000;
  --panel: #000;
  --panel-solid: #000;
  --line: rgba(255,255,255,0.5);
  --line-strong: #fff;
  --text: #fff;
  --muted: #f2f2f2;
  --muted-2: #d6d6d6;
  --amber: #ffe600;
  --amber-2: #ffea00;
  --mint: #00ffff;
  --mint-2: #00ffff;
  --blue: #9ecbff;
  --coral: #ff6b6b;
  background: #000;
}
body.high-contrast::before { display: none; }
body.high-contrast .card,
body.high-contrast .mode-btn.is-active,
body.high-contrast .btn-primary,
body.high-contrast .btn-mint {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
}
body.high-contrast .btn-primary,
body.high-contrast .btn-mint,
body.high-contrast .mode-btn.is-active {
  background: #ffe600;
  color: #000;
  border-color: #ffe600;
}
body.high-contrast .btn-small.btn-primary { background: #ffe600; color: #000; border-color: #ffe600; }
body.high-contrast .orb-core { background: #000; border: 2px solid #fff; box-shadow: none; }
body.high-contrast .orb-ring { border-color: #fff; }
body.high-contrast .grad {
  background: none;
  -webkit-text-fill-color: #ffe600;
  color: #ffe600;
}
body.high-contrast .card::before { display: none; }
body.high-contrast .bubble { background: #000; border-color: #fff; color: #fff; }
body.high-contrast .chip, body.high-contrast .person { border-color: #fff; background: #000; color: #fff; }
body.high-contrast .scene-fallback { filter: grayscale(1) contrast(1.3); }
body.high-contrast .status-pill, body.high-contrast .icon-btn, body.high-contrast .text-btn { border-color: #fff; color: #fff; background: #000; }
body.high-contrast .auth-btn { border-color: #fff; color: #fff; background: #000; }
body.high-contrast .composer-field { background: #000; border-color: #fff; }
body.high-contrast #composerInput { color: #fff; }
body.high-contrast .voice-bar,
body.high-contrast .care-card,
body.high-contrast .map-card,
body.high-contrast .care-item,
body.high-contrast .contact-card,
body.high-contrast .map-legend,
body.high-contrast .rate-control,
body.high-contrast .form-checks label,
body.high-contrast .field input,
body.high-contrast .field select,
body.high-contrast .field textarea {
  background: #000;
  color: #fff;
  border-color: #fff;
}
body.high-contrast .map-canvas { border-color: #fff; }
body.high-contrast .map-svg { filter: grayscale(1) contrast(1.25); }
body.high-contrast .map-pin .pin-label { background: #000; color: #fff; border-color: #fff; }
body.high-contrast .care-action,
body.high-contrast .care-refresh,
body.high-contrast .rate-control button,
body.high-contrast .sign-phrases button {
  background: #000;
  color: #fff;
  border-color: #fff;
}
body.high-contrast .care-action.primary,
body.high-contrast .rate-control button.is-active { background: #ffe600; color: #000; border-color: #ffe600; }
body.high-contrast .switch-ui { background: #000; border-color: #fff; }
body.high-contrast .switch input:checked + .switch-ui { background: #ffe600; }
body.high-contrast .switch input:checked + .switch-ui::after { background: #000; }
body.high-contrast .guide-hud { background: #000; border-color: #fff; }
body.high-contrast .guide-hud-copy strong { color: #ffe600; }
body.high-contrast .guide-hud-copy span { color: #fff; }
body.high-contrast .section-head-copy > p:not(.kicker) { color: #fff; }
body.high-contrast .care-meta,
body.high-contrast .care-tag,
body.high-contrast .map-foot,
body.high-contrast .voice-copy p:not(.kicker) { color: #fff; }
body.high-contrast .care-tag { border-color: #fff; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr); }
  .transcript { max-height: 380px; }
  .participants .person em { display: none; }
  .community-grid { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .voice-bar { flex-wrap: wrap; }
  .voice-controls { margin-left: 0; width: 100%; }
}
@media (max-width: 980px) {
  .topbar { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .modes { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .mode-btn { flex: 1; text-align: center; }
  .header-link { display: none; }
  .tools { margin-left: auto; }
  .status-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-visual { display: none; }
  h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .workspace { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .conversation { min-height: auto; }
  .transcript { max-height: 340px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .map-canvas { min-height: 300px; }
  .section-head { align-items: flex-start; }
}
@media (max-width: 720px) {
  .app { padding: 0 14px; }
  .topbar { gap: 9px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .tools { gap: 5px; }
  .font-tools { display: none; }
  .status-pill { display: none; }
  .auth-btn span { display: none; }
  .auth-btn { width: 34px; padding: 0; justify-content: center; }
  .mode-btn { padding: 7px 4px; font-size: 0.64rem; }
  .hero { padding: 24px 2px 20px; }
  .hero-sub { font-size: 0.82rem; }
  .hero-actions .btn { flex: 1; }
  .hero-meta { gap: 12px; }
  .side { grid-template-columns: 1fr; }
  .conversation { border-radius: 22px; }
  .card-head { padding: 16px 16px 13px; }
  .participants { display: none; }
  .transcript { padding: 14px 16px 8px; max-height: 320px; }
  .composer { padding: 12px 12px 6px; gap: 8px; }
  .composer-hint { padding: 0 16px 10px; }
  .mic-btn { width: 52px; height: 52px; flex-basis: 52px; }
  .composer-field { padding-left: 10px; }
  .composer-tools { display: none; }
  .card-head.compact { padding: 15px 16px 11px; }
  .camera-view { margin: 0 12px; border-radius: 15px; }
  .camera-actions { padding: 10px 12px 14px; flex-wrap: wrap; }
  .camera-actions .btn-small { flex: 1 1 auto; padding: 0 8px; }
  .guide-hud { margin: 0 12px 8px; }
  .insight { padding: 0 14px 14px; }
  .voice-bar { padding: 13px 14px; gap: 10px; }
  .voice-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .voice-controls { gap: 5px; }
  .voice-copy p:not(.kicker) { display: none; }
  .section-head { flex-direction: column; gap: 10px; }
  .section-actions { justify-content: flex-start; width: 100%; }
  .section-actions .btn { flex: 1; }
  .section-head h2 { font-size: 1.45rem; }
  .map-canvas { min-height: 250px; margin: 0 12px; }
  .map-pin .pin-label { display: none; }
  .map-pin.you .pin-label { display: block; }
  .map-foot { padding: 8px 12px 10px; font-size: 0.5rem; }
  .map-foot #mapStats { display: none; }
  .care-list { max-height: 300px; }
  .community { margin-top: 18px; }
  .feature-strip { margin: 12px 0 18px; grid-template-columns: 1fr; }
  .footer-sep { display: none; }
  .footer-link { margin-left: 0; }
  .toast { bottom: 14px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   身份选择 / 视障・听障双交互 / 配对 / 荣誉 / 语音助手
   （追加样式，沿用现有主题变量）
   ================================================================ */

.identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.identity-pill:hover { background: rgba(255,255,255,0.08); }
body.theme-light .identity-pill:hover { background: rgba(29,42,50,0.06); }

.identity-onboarding {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 9, 16, 0.78);
  backdrop-filter: blur(20px);
}
.identity-onboarding.is-open { display: grid; }
.onboarding-inner {
  width: min(1040px, 100%);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(800px 320px at 12% -10%, rgba(255,180,92,0.18), transparent 65%),
    radial-gradient(760px 320px at 92% 4%, rgba(94,226,198,0.14), transparent 65%),
    var(--panel-solid);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
  color: var(--text);
}
.onboarding-inner .kicker { color: var(--amber); }
.onboarding-inner h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.18;
}
.onboarding-lead { margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.identity-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.identity-option:hover, .identity-option:focus-visible {
  transform: translateY(-4px);
  border-color: var(--amber);
  background: rgba(255,180,92,0.09);
}
.identity-option-mark { font-size: 2.2rem; line-height: 1; color: var(--amber); }
.deaf-option .identity-option-mark { color: var(--mint); }
.identity-option strong { font-family: var(--font-serif); font-size: 1.35rem; }
.identity-option > span:not(.identity-option-mark) { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.identity-option em { margin-top: auto; color: var(--mint); font-style: normal; font-size: 0.74rem; font-weight: 700; }
.onboarding-skip {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.onboarding-note { margin: 18px 0 0; color: var(--muted-2); font-size: 0.7rem; line-height: 1.6; }

.identity-home {
  margin: 22px 0 18px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(760px 300px at 0% 0%, rgba(255,180,92,0.14), transparent 65%),
    radial-gradient(700px 320px at 100% 10%, rgba(94,226,198,0.12), transparent 65%),
    var(--panel);
  box-shadow: var(--shadow);
}
.identity-home-copy h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.identity-home-copy > p:not(.kicker) { margin: 0; max-width: 720px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.identity-home-blind .identity-home-copy h1 { font-size: clamp(2rem, 4vw, 3rem); }
.blind-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.blind-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel-solid);
  color: var(--text);
  text-align: left;
}
.blind-action:hover, .blind-action:focus-visible { border-color: var(--amber); background: rgba(255,180,92,0.10); }
.blind-action-primary { border-color: var(--amber); background: linear-gradient(135deg, rgba(255,180,92,0.26), rgba(255,180,92,0.08)); }
.blind-action-danger { border-color: rgba(255,122,122,0.55); }
.blind-action-icon { font-size: 2rem; flex: 0 0 auto; }
.blind-action strong { display: block; font-size: 1.15rem; }
.blind-action small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.identity-honor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
}
.identity-honor strong { color: var(--amber); }
.deaf-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.deaf-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
}
.deaf-action:hover, .deaf-action:focus-visible { border-color: var(--mint); background: rgba(94,226,198,0.08); }
.deaf-action > span { font-size: 1.5rem; }
.deaf-action strong { font-size: 0.88rem; }
.deaf-action small { color: var(--muted-2); font-size: 0.68rem; }

.peer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.peer-card-copy h2 { margin: 0 0 5px; font-family: var(--font-serif); font-size: 1.15rem; }
.peer-card-copy > p:not(.kicker) { margin: 0; max-width: 640px; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.peer-card-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.peer-status { flex: 0 0 100%; margin: 0; color: var(--muted-2); font-size: 0.7rem; }
.peer-status.is-ready { color: var(--mint); }
.deaf-quickbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}
.deaf-quickbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.7rem;
}
.deaf-quickbar button:hover { border-color: var(--mint); color: var(--mint); }

/* 视障模式：单列、大按钮、大字 */
body.identity-blind .hero,
body.identity-blind .hero-visual,
body.identity-blind .feature-strip,
body.identity-blind .map-card,
body.identity-blind .participants,
body.identity-blind .voice-bar { display: none !important; }
body.identity-blind .workspace { grid-template-columns: minmax(0, 1fr); }
body.identity-blind .side { display: none !important; }
body.identity-blind .conversation { min-height: 560px; }
body.identity-blind .transcript { max-height: 520px; font-size: 1.06rem; }
body.identity-blind .bubble { font-size: 1.08rem; line-height: 1.65; }
body.identity-blind .composer { padding: 14px; gap: 12px; }
body.identity-blind .mic-btn { width: 82px; height: 82px; min-width: 82px; }
body.identity-blind .mic-label { font-size: 0.68rem; }
body.identity-blind .composer-field input { font-size: 1.1rem; min-height: 58px; }
body.identity-blind .send-btn { width: 58px; height: 58px; }
body.identity-blind .btn, body.identity-blind .blind-action { min-height: 52px; }
body.identity-blind .community-grid { grid-template-columns: 1fr; }
body.identity-blind .community { margin-top: 16px; }
body.identity-blind .peer-card { align-items: flex-start; flex-direction: column; }
body.identity-blind .peer-card-actions { width: 100%; }
body.identity-blind .peer-card-actions .btn { flex: 1 1 auto; min-height: 56px; }
body.identity-blind .identity-home { border-width: 2px; }
body.identity-blind .identity-pill { min-height: 44px; font-size: 0.82rem; }
body.identity-blind .mode-btn { min-height: 44px; }

/* 听障模式：文字优先、保留完整视觉 */
body.identity-deaf .mic-btn { display: none; }
body.identity-deaf .voice-bar { display: none !important; }
body.identity-deaf .composer-field input { font-size: 1rem; }
body.identity-deaf .transcript { max-height: 460px; }
body.identity-deaf .identity-home { background:
  radial-gradient(760px 300px at 0% 0%, rgba(94,226,198,0.16), transparent 65%),
  radial-gradient(700px 320px at 100% 10%, rgba(255,180,92,0.12), transparent 65%),
  var(--panel);
}

/* 配对聊天小窗 */
.match-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 230;
  width: min(400px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  overflow: hidden;
}
.match-chat.is-hidden { display: none; }
.match-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.match-peer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-peer-avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(94,226,198,0.16);
  color: var(--mint);
  font-weight: 800;
}
.match-peer strong { display: block; font-size: 0.88rem; }
.match-peer span:not(.match-peer-avatar) { display: block; margin-top: 2px; color: var(--muted-2); font-size: 0.68rem; }
.match-chat-tools { display: flex; align-items: center; gap: 8px; }
.match-timer { color: var(--muted-2); font-size: 0.62rem; }
.match-close { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.match-chat-notice { padding: 8px 16px; background: rgba(255,180,92,0.08); color: var(--muted); font-size: 0.66rem; line-height: 1.5; }
.match-messages {
  flex: 1;
  min-height: 160px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-msg { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 0.82rem; line-height: 1.5; }
.match-msg.peer { align-self: flex-start; border: 1px solid var(--line); background: var(--panel-soft); }
.match-msg.mine { align-self: flex-end; background: var(--amber); color: #241304; }
.match-msg time { display: block; margin-top: 3px; font-size: 0.55rem; opacity: 0.65; }
.match-typing { padding: 0 16px 8px; color: var(--muted-2); font-size: 0.68rem; }
.match-composer { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); }
.match-composer input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--text); outline: none; }
.match-composer input:focus { border-color: var(--mint); }
.match-mic, .match-send { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--text); min-height: 42px; padding: 0 11px; font-size: 0.76rem; }
.match-mic { font-size: 1.05rem; }
.match-mic.listening { border-color: var(--amber); background: rgba(255,180,92,0.25); }
.match-send { background: var(--mint); color: #041512; font-weight: 800; border-color: transparent; }
.match-chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.match-chat-foot span { color: var(--muted-2); font-size: 0.62rem; line-height: 1.4; }
.match-complete { border: 1px solid rgba(255,122,122,0.45); border-radius: 10px; background: transparent; color: var(--coral); padding: 7px 9px; font-size: 0.68rem; white-space: nowrap; }
.match-complete:hover { background: rgba(255,122,122,0.10); }
body.identity-blind .match-chat { width: min(440px, calc(100vw - 20px)); }
body.identity-blind .match-msg { font-size: 0.98rem; }
body.identity-blind .match-composer input { font-size: 1rem; min-height: 50px; }

/* 语音 AI 助手 */
.assistant-fab {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(94,226,198,0.38);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  font-size: 0.76rem;
  font-weight: 800;
}
.assistant-fab:hover { border-color: var(--mint); }
.assistant-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(94,226,198,0.12); animation: assistantPulse 2.4s ease-in-out infinite; }
@keyframes assistantPulse { 50% { box-shadow: 0 0 0 9px rgba(94,226,198,0.04); } }
.assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 235;
  width: min(380px, calc(100vw - 24px));
  max-height: min(600px, calc(100vh - 180px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  overflow: hidden;
}
.assistant-panel.is-hidden { display: none; }
.assistant-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 16px 10px; border-bottom: 1px solid var(--line); }
.assistant-head h2 { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; }
.assistant-close { border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.assistant-intro { margin: 0; padding: 10px 16px; color: var(--muted); font-size: 0.72rem; line-height: 1.6; background: rgba(94,226,198,0.06); }
.assistant-messages { flex: 1; min-height: 120px; max-height: 300px; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.assistant-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.8rem; line-height: 1.55; }
.assistant-msg.assistant { align-self: flex-start; border: 1px solid var(--line); background: var(--panel-soft); }
.assistant-msg.user { align-self: flex-end; background: var(--mint); color: #041512; }
.assistant-composer { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.assistant-composer input { flex: 1; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--text); outline: none; }
.assistant-composer input:focus { border-color: var(--mint); }
.assistant-mic, .assistant-send { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--text); padding: 0 11px; }
.assistant-mic { font-size: 1.05rem; }
.assistant-mic.listening { border-color: var(--amber); background: rgba(255,180,92,0.24); }
.assistant-send { background: var(--amber); border-color: transparent; color: #241304; font-weight: 800; font-size: 0.72rem; }
.assistant-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.assistant-quick button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 6px 9px; font-size: 0.66rem; }
.assistant-quick button:hover { color: var(--mint); border-color: var(--mint); }

@media (max-width: 980px) {
  .identity-options { grid-template-columns: 1fr; }
  .identity-option { min-height: 180px; }
  .deaf-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peer-card { flex-direction: column; align-items: flex-start; }
  .peer-card-actions { width: 100%; }
  .peer-card-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 680px) {
  .identity-onboarding { padding: 10px; }
  .onboarding-inner { padding: 22px 18px; border-radius: 24px; max-height: 96vh; overflow-y: auto; }
  .identity-option { min-height: 160px; padding: 18px; }
  .identity-home { padding: 20px 16px; }
  .blind-actions { grid-template-columns: 1fr; }
  .blind-action { min-height: 84px; }
  .trust, .deaf-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blind-actions .blind-action { width: 100%; }
  .match-chat { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .assistant-panel { right: 8px; bottom: 78px; width: calc(100vw - 16px); }
  .assistant-fab { right: 8px; bottom: 16px; }
  .match-chat-foot { flex-direction: column; align-items: stretch; }
  .match-complete { min-height: 42px; }
  .deaf-quickbar { overflow-x: auto; flex-wrap: nowrap; }
}

.identity-option.is-current { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(94,226,198,0.14) inset; }
body.identity-deaf .hero { display: none !important; }
.match-msg.is-system { align-self: stretch; max-width: 100%; background: transparent; border: 1px dashed var(--line); color: var(--muted-2); font-size: 0.68rem; text-align: center; }
.quick-phrase-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.quick-phrase-list button { text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--text); padding: 11px 12px; font-size: 0.8rem; }
.quick-phrase-list button:hover { border-color: var(--mint); color: var(--mint); }
.complete-honor { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,180,92,0.08); }
.complete-honor-badge { font-size: 2.2rem; line-height: 1; }
.complete-honor strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--amber); }
.complete-honor span:not(.complete-honor-badge) { display: block; margin-top: 4px; color: var(--muted); font-size: 0.74rem; }
.honor-badge { font-size: 1rem; }
@media (max-width: 680px) {
  .identity-pill { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .blind-actions { grid-template-columns: 1fr; }
  .deaf-quickbar { margin-top: 8px; }
  .assistant-fab { bottom: 18px; }
  .assistant-panel { bottom: 72px; }
}

.peer-card-copy { flex: 1 1 auto; min-width: 0; }
.peer-card-actions { flex: 0 0 auto; }
.peer-card { flex-wrap: wrap; }
.peer-status { flex: 1 1 100%; width: 100%; }
.identity-honor { flex-wrap: wrap; }
.permission-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(94,226,198,0.32);
  border-radius: 16px;
  background: rgba(94,226,198,0.07);
  color: var(--text);
}
.permission-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.permission-copy strong { font-size: 0.78rem; }
.permission-copy span { color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.permission-actions { display: flex; flex-wrap: wrap; gap: 7px; flex: 0 0 auto; }
.permission-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.7rem;
}
.permission-actions button:hover { border-color: var(--mint); color: var(--mint); }
.permission-actions .permission-all { background: var(--mint); border-color: transparent; color: #041512; font-weight: 800; }
.permission-strip.is-granted { border-color: rgba(94,226,198,0.25); background: rgba(94,226,198,0.05); }
.permission-strip.is-denied { border-color: rgba(255,122,122,0.35); background: rgba(255,122,122,0.06); }
body.identity-blind .permission-strip { padding: 16px 18px; }
body.identity-blind .permission-copy strong { font-size: 1rem; }
body.identity-blind .permission-copy span { font-size: 0.86rem; }
body.identity-blind .permission-actions button { min-height: 52px; font-size: 0.9rem; padding: 0 16px; }
@media (max-width: 680px) {
  .permission-strip { flex-direction: column; align-items: stretch; }
  .permission-actions { width: 100%; }
  .permission-actions button { flex: 1 1 auto; }
}
.sign-stage-avatar {
  height: auto;
  min-height: 190px;
  display: block;
  padding: 0;
  background:
    radial-gradient(420px 240px at 50% 38%, rgba(94,226,198,0.16), transparent 68%),
    linear-gradient(145deg, #0b1626, #102a2a);
  border: 1px solid rgba(94,226,198,0.18);
}
.sign-stage-avatar .sign-rings { z-index: 0; }
.sign-stage-avatar .sign-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 300;
}
.sign-avatar-badge {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8,16,27,0.66);
  color: #d8e2e6;
  font-size: 0.56rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.sign-avatar-badge .dot { width: 5px; height: 5px; }
.sign-stage-avatar .sign-tag { z-index: 3; color: rgba(216,226,230,0.6); }
.sign-avatar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 0.62rem;
}
.sign-avatar-bar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.6rem;
}
.sign-avatar-bar button:hover { border-color: var(--mint); color: var(--mint); }
body.theme-light .sign-stage-avatar {
  background:
    radial-gradient(420px 240px at 50% 38%, rgba(94,226,198,0.22), transparent 68%),
    linear-gradient(145deg, #0b1626, #12302e);
  border-color: rgba(11,116,102,0.22);
}
body.identity-blind .sign-stage-avatar { min-height: 230px; }
@media (max-width: 680px) {
  .sign-stage-avatar { min-height: 170px; }
}
/* ---------------------------------------------------------- 路人互助 */
.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.role-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.role-option:hover, .role-option:focus-visible, .role-option.is-current {
  transform: translateY(-3px);
  border-color: var(--amber);
  background: rgba(255,180,92,0.09);
}
.role-helper-option:hover, .role-helper-option:focus-visible, .role-helper-option.is-current { border-color: var(--mint); background: rgba(94,226,198,0.08); }
.role-special-option:hover, .role-special-option:focus-visible, .role-special-option.is-current { border-color: var(--blue); background: rgba(135,169,255,0.08); }
.role-option-mark { font-size: 2rem; line-height: 1; }
.role-option strong { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.25; }
.role-option > span:not(.role-option-mark) { color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.role-option em { margin-top: auto; color: var(--mint); font-style: normal; font-size: 0.7rem; font-weight: 700; }
.onboarding-back {
  margin-bottom: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0;
}
.onboarding-back:hover { color: var(--amber); }

.role-home {
  margin: 18px 0 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(760px 300px at 0% 0%, rgba(255,180,92,0.13), transparent 65%),
    radial-gradient(700px 320px at 100% 10%, rgba(94,226,198,0.11), transparent 65%),
    var(--panel);
  box-shadow: var(--shadow);
}
.role-home-copy h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.2;
}
.role-home-copy > p:not(.kicker) { margin: 0; max-width: 760px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.need-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.need-chips button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.76rem;
}
.need-chips button.is-active { background: var(--amber); border-color: transparent; color: #241304; font-weight: 800; }
.role-home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.role-note { margin: 14px 0 0; color: var(--muted-2); font-size: 0.7rem; line-height: 1.5; }
.helper-home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.helper-home-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.helper-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}
.helper-task-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.helper-task-main strong { display: block; font-size: 0.86rem; }
.helper-task-main strong em { margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(255,180,92,0.16); color: var(--amber); font-style: normal; font-size: 0.62rem; }
.helper-task-main p { margin: 4px 0 2px; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.helper-task-main span { color: var(--muted-2); font-size: 0.64rem; }
.helper-task-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.relay-card {
  margin: 18px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.relay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.relay-head h2 { margin: 0 0 5px; font-family: var(--font-serif); font-size: 1.18rem; }
.relay-head p:not(.kicker) { margin: 0; max-width: 690px; color: var(--muted); font-size: 0.76rem; line-height: 1.6; }
.relay-actions { display: flex; gap: 7px; flex-wrap: wrap; flex: 0 0 auto; }
.relay-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.relay-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); }
.relay-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.relay-route > div { min-width: 110px; }
.relay-route strong { display: block; font-size: 0.82rem; }
.relay-route span:not(.relay-dot) { display: block; color: var(--muted-2); font-size: 0.62rem; margin-top: 2px; }
.relay-route i { color: var(--amber); font-style: normal; }
.relay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94,226,198,0.12); }
.relay-note { margin: 8px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.relay-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted-2); font-size: 0.64rem; }
.relay-item-foot > div { display: flex; gap: 5px; }
.relay-chain { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.relay-chain span { padding: 2px 7px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); color: var(--muted-2); font-size: 0.58rem; }
.relay-chain span.is-done { color: var(--mint); border-color: rgba(94,226,198,0.28); }

body.role-need .hero, body.role-helper .hero { display: none !important; }
body.role-need .identity-home, body.role-helper .identity-home { display: none !important; }
body.role-need .peer-card, body.role-helper .peer-card { display: none !important; }
body.role-need .feature-strip, body.role-helper .feature-strip { display: none !important; }
body.role-need .permission-strip, body.role-helper .permission-strip { display: none !important; }
body.role-need .voice-bar, body.role-helper .voice-bar { display: none !important; }
body.role-helper .workspace { grid-template-columns: 1fr; }
body.role-helper .side { display: none !important; }
body.role-need .workspace { grid-template-columns: 1fr; }
body.role-need .side { display: none !important; }

@media (max-width: 980px) {
  .role-options { grid-template-columns: 1fr; }
  .role-option { min-height: 160px; }
  .relay-head { flex-direction: column; }
  .relay-actions { width: 100%; }
}
@media (max-width: 680px) {
  .helper-task { flex-direction: column; align-items: stretch; }
  .helper-task-actions .btn { flex: 1 1 auto; }
  .relay-route i { display: none; }
  .relay-item-foot { flex-direction: column; align-items: stretch; }
  .relay-item-foot > div .btn { flex: 1 1 auto; }
}
body.role-need .modes, body.role-helper .modes { display: none !important; }
.quick-help-summary { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.quick-help-summary strong { font-size: 0.88rem; }
.quick-help-summary span { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.social-share {
  margin: 18px 0 0;
  padding: 20px 22px;
  border: 1px dashed rgba(94,226,198,0.35);
  border-radius: var(--radius-lg);
  background: rgba(94,226,198,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.social-share h2 { margin: 0 0 5px; font-family: var(--font-serif); font-size: 1.06rem; }
.social-share p:not(.kicker):not(.role-note) { margin: 0; max-width: 680px; color: var(--muted); font-size: 0.74rem; line-height: 1.55; }
.social-share-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.social-share .role-note { flex: 0 0 100%; margin: 0; }
body.role-need .header-link, body.role-helper .header-link { display: none; }
body.role-need .workspace, body.role-helper .workspace,
body.role-need .community, body.role-helper .community,
body.role-need .feature-strip, body.role-helper .feature-strip,
body.role-need .assistant-fab, body.role-helper .assistant-fab { display: none !important; }
body.role-need .identity-onboarding .role-options { grid-template-columns: 1fr; }
body.role-need .identity-onboarding .role-option, body.role-helper .identity-onboarding .role-option { min-height: 150px; }
body.role-need .identity-home, body.role-helper .identity-home { display: none !important; }
body.role-need .role-home, body.role-helper .role-home { margin-top: 18px; }
@media (max-width: 980px) {
  .topbar { height: auto; padding-bottom: 10px; flex-wrap: wrap; }
  .topbar .tools { margin-left: auto; }
}
@media (max-width: 680px) {
  .role-home { padding: 18px 16px; }
  .role-home-copy h1 { font-size: 1.8rem; }
  .social-share { padding: 16px; }
}
.role-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboarding-special-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.onboarding-special-link:hover { color: var(--amber); }
.onboarding-special-link span { text-decoration: none; }
body.identity-blind .identity-home-copy h1 .grad { color: var(--amber); background: linear-gradient(110deg, var(--amber), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 680px) {
  .role-options { grid-template-columns: 1fr; }
  .onboarding-special-link { min-height: 42px; }
}
.role-utility {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.role-utility button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.7rem;
}
.role-utility button:hover { border-color: var(--mint); color: var(--mint); }
.role-utility button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.safety-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.safety-list > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.safety-list strong { display: block; font-size: 0.82rem; }
.safety-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.tutorial-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.tutorial-grid span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #241304; font-weight: 800; font-size: 0.7rem; }
.tutorial-grid strong { display: block; margin-top: 7px; font-size: 0.82rem; }
.tutorial-grid p { margin: 4px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
html:has(body.accessibility-large) { font-size: max(118%, calc(16px * var(--font-scale))); }
body.accessibility-large .blind-action,
body.accessibility-large .deaf-action { min-height: 58px; }
@media (max-width: 680px) {
  .role-options { grid-template-columns: 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
}
.helper-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.helper-filter button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); min-height: 32px; padding: 0 10px; font-size: 0.68rem; }
.helper-filter button.is-active { background: var(--mint); border-color: transparent; color: #041512; font-weight: 800; }
.role-disclaimer { margin: 10px 0 0; color: var(--muted-2); font-size: 0.68rem; line-height: 1.5; }
.helper-task-main .pro-badge { background: rgba(77,99,200,0.16); color: var(--blue); }
/* ---------------------------------------------------- 视障全屏语音助手 */
body.identity-blind .assistant-fab,
body.identity-blind .modes,
body.identity-blind .header-link,
body.identity-blind .peer-card,
body.identity-blind .relay-card,
body.identity-blind .social-share,
body.identity-blind .permission-strip,
body.identity-blind .workspace { display: none !important; }
body.identity-blind .topbar { height: auto; min-height: 76px; gap: 14px; }
body.identity-blind .topbar .tools { margin-left: auto; }
body.identity-blind .identity-home { margin-top: 18px; }
body.identity-blind .blind-action-assistant { grid-column: 1 / -1; border-color: var(--mint); background: linear-gradient(135deg, rgba(94,226,198,0.18), rgba(255,180,92,0.10)); }
body.identity-blind .blind-action-assistant .blind-action-icon { filter: drop-shadow(0 0 12px rgba(94,226,198,0.4)); }

.blind-assistant {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px clamp(18px, 4vw, 48px) 24px;
  background:
    radial-gradient(900px 500px at 50% 12%, rgba(94,226,198,0.16), transparent 66%),
    radial-gradient(700px 500px at 10% 90%, rgba(255,180,92,0.10), transparent 70%),
    #050a12;
  color: #f7f1e4;
  overflow-y: auto;
}
.blind-assistant.is-hidden { display: none; }
.blind-assistant-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blind-assistant-brand { color: #74d6c0; font-size: 0.78rem; letter-spacing: 0.16em; font-weight: 800; }
.blind-assistant-top button {
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: transparent;
  color: #f7f1e4;
  min-height: 50px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 700;
}
.blind-assistant-orb {
  position: relative;
  width: clamp(150px, 18vw, 210px);
  height: clamp(150px, 18vw, 210px);
  margin: clamp(20px, 4vh, 44px) 0 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.blind-orb-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(94,226,198,0.30);
  border-radius: 50%;
  animation: blindRing 3s ease-in-out infinite;
}
.blind-orb-ring.ring-2 { inset: 18%; border-color: rgba(255,180,92,0.28); animation-delay: .8s; }
@keyframes blindRing { 50% { transform: scale(1.06); opacity: .55; } }
.blind-assistant-orb.is-listening .blind-orb-ring { border-color: #74d6c0; animation-duration: 1.2s; }
.blind-orb-mic {
  width: 58%;
  height: 58%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,180,92,0.35), rgba(11,116,102,0.25));
  border: 2px solid rgba(255,255,255,0.28);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  box-shadow: 0 0 50px rgba(94,226,198,0.18);
}
.blind-assistant h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.1; }
.blind-assistant-status { margin: 12px 0 0; max-width: 800px; color: #d8e2e6; font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.5; text-align: center; }
.blind-assistant-transcript { width: min(820px, 100%); flex: 1; min-height: 90px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.blind-line { padding: 11px 16px; border-radius: 14px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.5; }
.blind-line.assistant { align-self: flex-start; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14); }
.blind-line.mine { align-self: flex-end; background: #f0a45c; color: #241304; font-weight: 700; }
.blind-assistant-mic {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(420px, 100%);
  min-height: 88px;
  padding: 0 28px;
  border: 3px solid #f0a45c;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,180,92,0.28), rgba(255,180,92,0.08));
  color: #fff7eb;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.blind-assistant-mic span { font-size: 1.8em; }
.blind-assistant-mic.listening { border-color: #74d6c0; background: rgba(94,226,198,0.18); }
.blind-assistant-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 900px; margin-top: 14px; }
.blind-assistant-quick button {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #f7f1e4;
  font-size: 1rem;
  font-weight: 700;
}
.blind-assistant-quick button:hover, .blind-assistant-quick button:focus-visible { border-color: #74d6c0; background: rgba(94,226,198,0.12); }
.blind-assistant-hint { margin: auto 0 0; padding-top: 14px; color: #8fa3ad; font-size: 0.8rem; text-align: center; }

/* 听障页面视觉优化：更清晰的图文卡片与更大文字输入 */
body.identity-deaf .feature-strip { display: none !important; }
body.identity-deaf .identity-home { border: 1px solid rgba(11,116,102,0.18); }
body.identity-deaf .deaf-action { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--panel-soft), rgba(94,226,198,0.06)); border-color: rgba(11,116,102,0.16); }
body.identity-deaf .deaf-action:nth-child(1) { background: linear-gradient(145deg, rgba(255,180,92,0.12), var(--panel-soft)); }
body.identity-deaf .deaf-action:nth-child(2) { background: linear-gradient(145deg, rgba(94,226,198,0.12), var(--panel-soft)); }
body.identity-deaf .deaf-action:nth-child(3) { background: linear-gradient(145deg, rgba(135,169,255,0.12), var(--panel-soft)); }
body.identity-deaf .deaf-action > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,0.08); }
body.identity-deaf .deaf-action strong { font-size: 0.98rem; }
body.identity-deaf .deaf-action small { font-size: 0.74rem; }
body.identity-deaf .conversation { min-height: 500px; }
body.identity-deaf .composer { padding: 14px 18px; }
body.identity-deaf .composer-field input { min-height: 52px; font-size: 1.04rem; }
body.identity-deaf .send-btn { width: 52px; height: 52px; }
body.identity-deaf .deaf-quickbar { border-style: solid; background: var(--panel); }
body.identity-deaf .deaf-quickbar button { min-height: 36px; font-size: 0.76rem; }

@media (max-width: 680px) {
  .blind-assistant { padding: 14px 14px 20px; }
  .blind-assistant h1 { font-size: 2rem; }
  .blind-assistant-mic { min-width: 100%; min-height: 76px; }
  .blind-assistant-quick { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .blind-assistant-quick button { padding: 0 8px; font-size: 0.9rem; }
  body.identity-deaf .deaf-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.blind-assistant h1 { color: #f7f1e4; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.blind-assistant-mic, .blind-assistant-mic strong, .blind-assistant-mic span { color: #fff7eb; }
.blind-assistant-mic { color: #fff7eb !important; }
.blind-assistant-top button { color: #f7f1e4 !important; }
.blind-assistant-transcript { flex: 0 1 auto; }
.blind-assistant-hint { margin-top: 18px; }
body.identity-blind .community,
body.identity-blind #community { display: none !important; }
body.theme-light .blind-assistant h1,
body.theme-light #blindAssistantTitle,
#blindAssistantTitle { color: #f7f1e4 !important; }
.blind-assistant .blind-assistant-status { color: #d8e2e6; }
.deaf-help-link {
  margin-top: 14px;
  border: 1px solid rgba(11,116,102,0.24);
  border-radius: 999px;
  background: rgba(94,226,198,0.10);
  color: var(--mint);
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
}
.deaf-help-link:hover { border-color: var(--mint); }
.appointment-section {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px solid rgba(185,101,31,0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(560px 240px at 90% 0%, rgba(255,180,92,0.14), transparent 70%),
    var(--panel);
}
.appointment-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.appointment-head h2 { margin: 3px 0 5px; font-family: var(--font-serif); font-size: clamp(1.3rem,2.4vw,1.8rem); }
.appointment-head p:not(.kicker) { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; max-width: 720px; }
.appointment-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.appointment-list { display: grid; gap: 10px; margin-top: 16px; }
.appointment-card {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}
.appointment-when { text-align: center; padding-right: 12px; border-right: 1px solid var(--line); }
.appointment-when strong { display: block; font-size: 1.12rem; color: var(--amber); }
.appointment-when span { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--muted); }
.appointment-main h3 { margin: 2px 0 3px; font-size: 0.96rem; }
.appointment-main h3 span { margin-left: 7px; color: var(--mint); font-size: 0.7rem; font-weight: 700; }
.appointment-main p { margin: 2px 0; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.appointment-top { display: flex; gap: 6px; align-items: center; }
.appointment-type { padding: 2px 7px; border-radius: 999px; background: rgba(185,101,31,0.12); color: var(--amber); font-size: 0.66rem; font-weight: 800; }
.appointment-top em { color: var(--muted); font-size: 0.62rem; font-style: normal; }
.appointment-note { color: var(--ink) !important; }
.appointment-helper { color: var(--mint) !important; }
.appointment-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.appointment-hint { color: var(--muted); font-size: 0.66rem; white-space: nowrap; }
@media (max-width: 720px) {
  .appointment-section { padding: 16px; }
  .appointment-card { grid-template-columns: 64px minmax(0,1fr); }
  .appointment-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .appointment-when { border-right: 0; text-align: left; padding-right: 0; }
}
.service-catalog { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.service-catalog button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 12px 13px;
  min-height: 94px;
}
.service-catalog button:hover, .service-catalog button:focus-visible { border-color: var(--amber); background: rgba(255,180,92,0.10); }
.service-catalog span { font-size: 1.3rem; display: block; }
.service-catalog strong { display: block; margin-top: 5px; font-size: 0.82rem; }
.service-catalog small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.64rem; line-height: 1.4; }
.appointment-detail { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.appointment-detail span { padding: 2px 7px; border-radius: 999px; background: rgba(94,226,198,0.12); color: var(--mint); font-size: 0.62rem; }
.appointment-booking { color: var(--amber) !important; font-weight: 700; }
@media (max-width: 860px) { .service-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .service-catalog { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: center; gap: 9px; margin: 6px 0 10px; color: var(--ink); font-size: 0.8rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--amber); }
body.identity-selected .role-home-copy > p,
body.identity-selected .appointment-head p:not(.kicker) { font-size: 0.86rem; }
body.identity-selected .need-chips button { min-height: 42px; font-size: 0.8rem; }
body.identity-selected .role-note { font-size: 0.74rem; }
.people-strip { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(11,116,102,0.18); border-radius: 16px; background: rgba(94,226,198,0.06); }
.people-strip-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.people-strip-head .kicker { margin: 0; }
.people-strip-head strong { font-size: 0.9rem; }
.people-strip-head span { color: var(--muted); font-size: 0.7rem; }
.people-grid { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.people-grid button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); min-height: 42px; padding: 0 13px; font-size: 0.8rem; font-weight: 700; }
.people-grid button.is-active { background: var(--mint); border-color: transparent; color: #041512; }
.appointment-top .appointment-audience { padding: 2px 7px; border-radius: 999px; background: rgba(94,226,198,0.15); color: var(--mint); font-size: 0.66rem; font-weight: 800; }
@media (max-width: 680px) {
  .people-strip { padding: 12px; }
  .people-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .people-grid button { padding: 0 8px; font-size: 0.76rem; }
}
.general-safety-btn { border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); min-height: 34px; padding: 0 10px; font-size: 0.7rem; white-space: nowrap; }
.general-safety-btn:hover { border-color: var(--amber); color: var(--amber); }
body.role-need #roleUtility, body.role-helper #roleUtility,
body.role-need #roleDisclaimer, body.role-helper #roleDisclaimer { display: none !important; }
.block-label { margin: 16px 0 7px; color: var(--amber); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.people-strip + .block-label { margin-top: 15px; }
@media (max-width: 640px) { .general-safety-btn { min-height: 40px; font-size: 0.68rem; } }
.people-services {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px solid rgba(11,116,102,0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(94,226,198,0.12), transparent 70%),
    var(--panel);
}
.people-services-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.people-services-head h2 { margin: 3px 0 6px; font-family: var(--font-serif); font-size: clamp(1.4rem,2.7vw,2rem); }
.people-services-head p:not(.kicker) { margin: 0; max-width: 760px; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.people-service-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.people-service-groups button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--ink); min-height: 46px; padding: 0 15px; font-size: 0.84rem; font-weight: 700; }
.people-service-groups button.is-active { background: var(--mint); border-color: transparent; color: #041512; }
.people-detail { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; }
.people-detail h3 { margin: 0 0 5px; font-size: 1.05rem; }
.people-detail p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.people-detail-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.people-detail-services button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); min-height: 38px; padding: 0 11px; font-size: 0.74rem; }
.people-detail-services button:hover { border-color: var(--amber); color: var(--amber); }
.people-safety { grid-column: 1 / -1; color: var(--amber) !important; font-size: 0.72rem !important; }

@media (max-width: 900px) {
  .people-services { padding: 16px; }
  .people-detail { grid-template-columns: 1fr; }
}
/* 导盲犬只属于视障：听障模式不显示 */
body.identity-deaf #modeGuide,
body.identity-deaf #modeBlind { display: none !important; }
body.identity-blind.guide-active #blindHome { display: none !important; }
body.identity-blind.guide-active .workspace { display: grid !important; margin-top: 18px; }
.exit-guide {
  position: fixed;
  right: 20px;
  bottom: 94px;
  z-index: 260;
  min-height: 54px;
  padding: 0 20px;
  border: 2px solid #f0a45c;
  border-radius: 999px;
  background: #17202a;
  color: #fff7eb;
  font-size: 0.9rem;
  font-weight: 800;
}
@media (max-width: 640px) { .exit-guide { right: 14px; bottom: 88px; min-height: 48px; } }
.service-catalog { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px) { .service-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .service-catalog { grid-template-columns: 1fr; } }
.relay-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(94,226,198,0.16); color: var(--mint); font-size: 0.64rem; font-weight: 800; vertical-align: middle; }
.relay-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.relay-flow > span { flex: 1; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.relay-flow b { display: block; color: var(--amber); font-size: 0.7rem; }
.relay-flow span { color: var(--ink); font-size: 0.88rem; font-weight: 800; }
.relay-flow small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.68rem; font-weight: 400; }
.relay-flow i { align-self: center; color: var(--amber); font-style: normal; font-size: 1.2rem; }
@media (max-width: 700px) { .relay-flow { flex-direction: column; } .relay-flow i { transform: rotate(90deg); align-self: center; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.blind-wake-hint { margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; }
.blind-wake-hint strong { color: var(--amber); letter-spacing: 0.04em; }
.wake-word-btn { margin-top: 10px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(11,116,102,0.28); border-radius: 999px; background: rgba(94,226,198,0.10); color: var(--mint); font-size: 0.82rem; font-weight: 700; }
.wake-word-btn:hover { border-color: var(--mint); }

/* Shared palette for the speech welcome and the five community services. */
body {
  --ink: var(--text);
  --care-accent: #91dfc6;
  --care-on-accent: #102820;
  --care-tint: #17382e;
  --care-paper: #13241e;
  --care-rule: #446457;
  --care-mark: #d9a55c;
}
body.theme-light {
  --care-accent: #195c48;
  --care-on-accent: #fff;
  --care-tint: #e5efe6;
  --care-paper: #fff;
  --care-rule: #c9d6ca;
  --care-mark: #b76e31;
}
body.high-contrast {
  --care-accent: #ffe600;
  --care-on-accent: #000;
  --care-tint: #000;
  --care-paper: #000;
  --care-rule: #fff;
  --care-mark: #fff;
  --panel-soft: #000;
}
.voice-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  padding: clamp(12px, 4vw, 64px);
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 8% 15%, var(--care-tint), transparent 52%),
    radial-gradient(ellipse at 98% 100%, var(--care-tint), transparent 56%), var(--bg);
  color: var(--text);
}
.voice-gate.is-hidden { display: none; }
.voice-gate-inner {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  width: min(1040px, 100%);
  margin: auto;
  border: 1px solid var(--care-rule);
  border-radius: 26px;
  background: var(--care-paper);
  box-shadow: 0 22px 75px rgba(30, 66, 47, .11);
}
.voice-gate-intro, .voice-gate-controls {
  min-width: 0;
  padding: clamp(24px, 3.6vw, 54px);
}
.voice-gate-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 25px 0 0 25px;
  background: var(--care-tint);
}
.voice-gate-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 28% -40% -25% -32%;
  background: repeating-radial-gradient(ellipse at 50% 59%, transparent 0 35px, var(--care-rule) 36px, transparent 37px 55px);
  opacity: .65;
  mask-image: linear-gradient(transparent, #000 52%);
}
.voice-gate .voice-gate-intro .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--care-accent);
  font-size: .8rem;
  letter-spacing: .12em;
}
.voice-gate-intro .kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}
.voice-gate .voice-gate-intro h1 {
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.22;
}
#voiceGateTitle span { display: inline-block; max-width: 100%; }
#voiceGateText { margin: 16px 0 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.8; }
.voice-gate-orb {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: clamp(82px, 11vw, 122px);
  aspect-ratio: 1;
  margin: clamp(30px, 4vw, 64px) 0 12px;
  border: 7px solid var(--care-paper);
  border-radius: 38% 38% 38% 10%;
  background: var(--care-accent);
  color: var(--care-on-accent);
  outline: 1px solid var(--care-rule);
  box-shadow: 0 16px 30px rgba(16, 68, 45, .14);
}
.voice-gate-orb svg { width: 60%; height: 60%; }
.voice-gate-orb::after {
  content: "";
  position: absolute;
  top: -13px;
  right: -13px;
  width: 23px;
  height: 23px;
  border: 4px solid var(--care-tint);
  border-radius: 50%;
  background: var(--care-mark);
}
.voice-gate-controls { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; }
.voice-gate-status { margin: 0 0 4px; color: var(--text); font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.voice-gate-controls button {
  min-height: 48px;
  border: 1px solid var(--care-rule);
  border-radius: 12px;
  background: var(--care-paper);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  padding: 10px 12px;
}
.voice-gate-controls .voice-gate-start {
  min-height: 82px;
  border: 2px solid var(--care-accent);
  background: var(--care-accent);
  color: var(--care-on-accent);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 750;
}
.voice-gate-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 2px 0 4px; }
.voice-gate-options button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 64px; font-size: clamp(1rem, 1.6vw, 1.05rem); font-weight: 650; text-align: left; }
.voice-gate-options svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--care-accent); }
.voice-gate-controls .voice-gate-sr, .voice-gate-controls .voice-gate-continue { background: var(--care-tint); color: var(--care-accent); }
.voice-gate-controls .voice-gate-skip { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.voice-gate-controls button:hover { border-color: var(--care-accent); }
.voice-gate-controls button:focus-visible, .care-action-shell button:focus-visible { outline: 3px solid var(--care-accent); outline-offset: 3px; }
.identity-onboarding { overflow-y: auto; place-items: safe center; }
body.theme-light:not(.high-contrast) .identity-onboarding { background: rgba(35, 67, 50, .24); }
body.theme-light:not(.high-contrast) .onboarding-inner { background: var(--care-paper); box-shadow: 0 24px 80px rgba(30, 66, 47, .17); }

/* Service navigation and page content share the same top edge. */
@media (min-width: 1021px) {
  body.theme-light:is(.role-need, .role-helper):not(.high-contrast)::before {
    inset: auto auto 0 0;
    width: min(32vw, 30rem);
    height: min(42vh, 25rem);
    background: repeating-radial-gradient(ellipse at -12% 112%, transparent 0 47px, #b5cbbb 48px 49px, transparent 50px 70px);
    mask-image: radial-gradient(ellipse at left bottom, #000, transparent 74%);
    opacity: .7;
  }
}
body:is(.role-need, .role-helper) .app { max-width: 1450px; padding-inline: clamp(14px, 3.3vw, 55px); }
body:is(.role-need, .role-helper) .topbar { height: auto; min-height: 74px; padding-block: 12px; flex-wrap: wrap; }
.app .topbar .tools { max-width: 100%; flex-wrap: wrap; align-items: center; }
.app .topbar .tools :is(button, .font-tools) { min-height: 44px; }
.app .topbar .tools :is(.icon-btn, .text-btn, .auth-btn) { min-width: 44px; }
.app .topbar .font-tools { display: flex; }
body:is(.role-need, .role-helper) main {
  display: grid;
  grid-template-columns: clamp(224px, 20vw, 282px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  align-items: start;
  margin-block: clamp(18px, 2.6vw, 38px);
}
.care-action-shell {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--care-rule);
  border-radius: 18px;
  background: var(--care-paper);
}
.care-role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 1px 2px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--care-rule);
}
.care-role-switch > span { flex-basis: 100%; margin-bottom: 2px; color: var(--muted); font-size: .83rem; font-weight: 650; }
.care-role-switch button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--care-rule);
  border-radius: 9px;
  background: var(--care-paper);
  color: var(--text);
  font-size: .85rem;
  font-weight: 650;
}
.care-role-switch .care-special-switch { background: transparent; border-color: transparent; padding-inline: 3px; color: var(--care-accent); text-decoration: underline; text-underline-offset: 3px; }
.care-role-switch button.is-active { background: var(--care-accent); border-color: var(--care-accent); color: var(--care-on-accent); }
.care-nav { display: grid; gap: 3px; }
.care-nav button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 11px;
  row-gap: 2px;
  position: relative;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.care-nav button:hover, .care-role-switch button:hover { border-color: var(--care-accent); }
.care-nav button.is-active { background: var(--care-tint); color: var(--care-accent); border-color: var(--care-rule); }
.care-nav button.is-active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 5px; background: var(--care-accent); }
.care-nav-icon { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; font-size: 1.25rem; }
.service-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.care-nav-icon svg { width: 24px; height: 24px; color: var(--care-accent); }
.care-nav strong { font-size: 1rem; line-height: 1.45; }
.care-nav small { color: var(--muted); font-size: .77rem; line-height: 1.5; }
.care-nav em { grid-column: 2; color: var(--care-accent); font-size: .75rem; font-style: normal; }

body:is(.role-need, .role-helper) :is(.appointment-section, .people-services, .role-home, .relay-card, .social-share) {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.4vw, 36px);
  border: 1px solid var(--care-rule);
  border-radius: 20px;
  background: var(--care-paper);
  box-shadow: 0 10px 30px rgba(23, 58, 40, .05);
}
:is(.appointment-head, .people-services-head, .role-home-copy, .relay-head, .social-share > div:first-child) {
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 13px;
  background: radial-gradient(ellipse 90% 95% at 108% 114%,
    transparent 37%, var(--care-rule) 38% 38.6%, transparent 39.6% 66%,
    var(--care-rule) 67% 67.6%, transparent 68.6% 96%, var(--care-rule) 97% 97.6%, transparent 98.6%)
    right bottom / min(34%, 16rem) 65% no-repeat var(--care-tint);
}
:is(.appointment-head, .people-services-head, .relay-head) { flex-wrap: wrap; }
:is(.role-need, .role-helper) :is(.appointment-head, .people-services-head, .role-home-copy, .relay-head, .social-share) :is(h1,h2) {
  margin: 3px 0 8px;
  color: var(--text);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.28;
}
body:is(.role-need, .role-helper) .role-home-copy h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
body:is(.role-need, .role-helper) .kicker { color: var(--care-accent); font-size: .73rem; letter-spacing: .115em; }
body:is(.role-need, .role-helper) :is(.appointment-head, .people-services-head, .role-home-copy, .relay-head, .social-share) p:not(.kicker):not(.role-note) { font-size: .96rem; line-height: 1.7; }
body:is(.role-need, .role-helper) .grad { color: var(--care-accent); -webkit-text-fill-color: currentColor; background: none; }
body:is(.role-need, .role-helper) .btn { min-height: 44px; padding: 8px 16px; font-size: .94rem; }
body.accessibility-large .btn { min-height: 58px; }
body:is(.role-need, .role-helper) .btn-primary { background: var(--care-accent); border-color: var(--care-accent); color: var(--care-on-accent); box-shadow: none; }
body:is(.role-need, .role-helper) .btn-ghost { background: var(--care-paper); border-color: var(--care-rule); color: var(--text); }
.block-label { margin: 24px 0 12px; color: var(--text); font-size: 1.08rem; letter-spacing: .01em; }
.service-catalog { gap: 10px; margin: 0; }
.service-catalog button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 82px;
  padding: 12px;
  border-radius: 12px;
  background: var(--care-paper);
}
.service-catalog span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--care-tint);
}
.service-catalog span svg { width: 25px; height: 25px; color: var(--care-accent); }
body.theme-light:not(.high-contrast) .service-catalog button:nth-child(3n + 2) span { background: #e8edf3; }
body.theme-light:not(.high-contrast) .service-catalog button:nth-child(3n + 2) svg { color: #365976; }
body.theme-light:not(.high-contrast) .service-catalog button:nth-child(3n) span { background: #f6eadd; }
body.theme-light:not(.high-contrast) .service-catalog button:nth-child(3n) svg { color: #895321; }
.service-catalog strong { margin: 0; font-size: 1rem; line-height: 1.4; }
.service-catalog small { margin: 0; font-size: .78rem; line-height: 1.5; }
.service-catalog button:is(:hover,:focus-visible) { border-color: var(--care-accent); background: var(--care-tint); }
body:is(.role-need, .role-helper) .social-share { display: grid; justify-content: stretch; }
.social-share-actions { margin-block: 4px; }
:is(.people-service-groups, .people-grid, .helper-filter, .need-chips) button.is-active { color: var(--care-on-accent); background: var(--care-accent); }
:is(.people-detail-services, .helper-filter) button { min-height: 44px; font-size: .86rem; }
.appointment-card, .people-detail, .relay-item, .helper-task { overflow-wrap: anywhere; }
.appointment-main p, .people-detail p, .relay-note, .helper-task-main p { font-size: .9rem; line-height: 1.65; }
.appointment-top em, .appointment-type, .appointment-detail span, .appointment-hint,
.relay-route span:not(.relay-dot), .relay-item-foot, .relay-chain span, .relay-flow small { font-size: .78rem; }
.appointment-main h3, .relay-route strong, .helper-task-main strong { font-size: 1.02rem; }
.role-note { font-size: .82rem; }
.appointment-actions, .relay-actions, .relay-item-foot > div { flex-wrap: wrap; }
body.high-contrast :is(.appointment-head, .people-services-head, .role-home-copy, .relay-head, .social-share > div:first-child) { background: #000; outline: 1px solid #fff; }
body.high-contrast .voice-gate-intro::before { display: none; }
body.high-contrast .voice-gate-intro { border: 1px solid var(--care-rule); }
body.high-contrast .care-nav button.is-active { border-color: var(--care-accent); }
body.high-contrast :is(.app-footer, .footer-link, .brand-text strong, .brand-text small, .kicker) { color: var(--text); }
body.high-contrast .brand-mark { color: var(--text); background: #000; border: 1px solid #fff; }
body.high-contrast .icon-btn.is-on { color: #000; background: #ffe600; border-color: #ffe600; }
body.high-contrast :is(.modal-card, .toast, .modal-close) { color: var(--text); background: #000; border-color: #fff; }
body.high-contrast .modal-card :is(h2, h3, p, strong, label) { color: var(--text); }
body.high-contrast .app-footer button { color: var(--text); }
@media (max-width: 1020px) {
  body:is(.role-need, .role-helper) main { grid-template-columns: minmax(0, 1fr); }
  .care-action-shell { position: static; }
  .care-role-switch { align-items: center; }
  .care-role-switch > span { flex-basis: auto; margin: 0 4px 0 0; }
  .care-role-switch .care-special-switch { margin-left: auto; }
  .care-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .care-nav button { justify-items: center; grid-template-columns: 1fr; text-align: center; }
  .care-nav-icon { grid-row: auto; }
  .care-nav em { grid-column: auto; }
}
@media (max-width: 740px) {
  .voice-gate-inner { grid-template-columns: 1fr; max-width: 520px; }
  .voice-gate-intro { padding: 22px; padding-right: 106px; border-radius: 25px 25px 0 0; }
  .voice-gate-controls { padding: 20px; gap: 8px; }
  .voice-gate-intro::before { inset: 0 -20% -60% 66%; }
  .voice-gate .voice-gate-intro .kicker { margin-bottom: 8px; }
  .voice-gate-orb { position: absolute; right: 18px; top: 28px; width: 64px; margin: 0; border-width: 4px; }
  #voiceGateText { margin: 8px 0 0; line-height: 1.6; }
  .voice-gate-status { margin: 0; }
  .voice-gate-options button { min-height: 56px; }
  .care-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
  .care-nav button { grid-template-columns: auto minmax(0, 1fr); justify-items: start; min-height: 56px; text-align: left; padding: 7px; column-gap: 6px; }
  .care-nav-icon { grid-row: span 2; width: 25px; }
  .care-nav small { font-size: .75rem; }
  .service-catalog { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .relay-item-foot > div { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .voice-gate { padding: 8px; }
  .voice-gate-intro { padding: 18px 16px; }
  .voice-gate-intro .kicker { padding-right: 52px; }
  .voice-gate-orb { top: 14px; right: 18px; width: 40px; border-width: 2px; }
  .voice-gate-orb::after { width: 12px; height: 12px; border-width: 2px; top: -6px; right: -6px; }
  .voice-gate-controls { padding: 16px; }
  .voice-gate-options { gap: 6px; }
  .voice-gate-options button { padding-inline: 8px; gap: 5px; }
  .voice-gate-options svg { flex-basis: 18px; width: 18px; height: 18px; }
  body:is(.role-need, .role-helper) .app { padding-inline: 10px; }
  body:is(.role-need, .role-helper) .topbar { gap: 6px; align-content: start; }
  body:is(.role-need, .role-helper) .topbar .tools { display: contents; }
  .care-action-shell { padding: 9px; }
  .care-role-switch { gap: 4px; }
  .care-role-switch > span { flex-basis: 100%; }
  .care-role-switch button { padding-inline: 6px; }
  body:is(.role-need, .role-helper) :is(.appointment-section, .people-services, .role-home, .relay-card, .social-share) { padding: 14px; }
  .care-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-nav strong { font-size: .94rem; }
  .appointment-head, .people-services-head, .relay-head, .social-share > div:first-child, .role-home-copy { padding: 15px; }
  .service-catalog { grid-template-columns: 1fr; }
  .appointment-hint { white-space: normal; }
}
@media (max-width: 360px) {
  .voice-gate-options { grid-template-columns: 1fr; }
  .voice-gate-options button { min-height: 48px; padding-inline: 14px; }
}
.voice-mode-choice { display: flex; flex-direction: column; gap: 10px; }
.voice-mode-choice.is-hidden { display: none; }
.voice-mode-choice .kicker { margin-bottom: 2px; }
.voice-mode-choice h2 { margin: 0; color: #f7f1e4; font-family: var(--font-serif); font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.25; }
.voice-mode-choice > p:not(.kicker) { margin: 0; color: #d8e2e6; font-size: .92rem; line-height: 1.6; }
.voice-mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 4px; }
.voice-mode-options button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 94px; padding: 15px; border: 1px solid rgba(255,255,255,.30); border-radius: 16px; background: rgba(255,255,255,.08); color: #f7f1e4; text-align: left; }
.voice-mode-options button:hover, .voice-mode-options button:focus-visible { border-color: #74d6c0; background: rgba(94,226,198,.15); outline: 3px solid #74d6c0; outline-offset: 2px; }
.voice-mode-options strong { font-size: .94rem; line-height: 1.4; }
.voice-mode-options small { color: #b9c8cf; font-size: .74rem; line-height: 1.45; }
@media (max-width: 560px) { .voice-mode-options { grid-template-columns: 1fr; } }
body.role-need #themeBtn,
body.role-need #contrastBtn,
body.role-need #helpBtn,
body.role-need .font-tools,
body.role-helper #themeBtn,
body.role-helper #contrastBtn,
body.role-helper #helpBtn,
body.role-helper .font-tools,
body.identity-blind #themeBtn,
body.identity-blind #contrastBtn,
body.identity-blind #helpBtn,
body.identity-blind .font-tools { display: none !important; }
.is-page-focus:focus { outline: none !important; }
body.role-need :is(.role-home-copy h1, .appointment-head h2, .people-services-head h2, .relay-head h2),
body.role-helper :is(.role-home-copy h1, .appointment-head h2, .people-services-head h2, .relay-head h2) { outline: none !important; box-shadow: none !important; }
.voice-mode-choice h2 { color: #18372e !important; }
.voice-mode-choice > p:not(.kicker) { color: #586b63 !important; }
.voice-mode-choice .kicker { color: #176450 !important; }
.voice-mode-options button { background: #fff !important; border-color: rgba(24,55,46,.16) !important; color: #18372e !important; }
.voice-mode-options button:hover, .voice-mode-options button:focus-visible { border-color: #176450 !important; background: #eef7f1 !important; }
.voice-mode-options strong { color: #18372e !important; }
.voice-mode-options small { color: #586b63 !important; }
.voice-mode-choice .voice-gate-skip { color: #59676f !important; }
.need-flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.need-flow > div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); }
.need-flow b { display: block; color: var(--amber); font-size: 0.7rem; }
.need-flow strong { display: block; margin-top: 3px; font-size: 0.9rem; }
.need-flow small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.need-safety-note { margin: 12px 0 0; color: var(--muted-2); font-size: 0.72rem; line-height: 1.5; }
@media (max-width: 700px) { .need-flow { grid-template-columns: 1fr; } }
.voice-gate-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.voice-gate-main-choice { min-height: 106px !important; flex-direction: column; align-items: flex-start; gap: 4px !important; padding: 14px !important; }
.voice-gate-main-choice strong { font-size: 1.05rem; }
.voice-gate-main-choice small { margin-top: 2px; color: #59676f; font-size: .76rem; }
.voice-gate-access { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.voice-gate-access button { min-height: 46px; border: 1px solid rgba(24,55,46,.16); border-radius: 12px; background: #f5f7f2; color: #18372e; font-size: .82rem; font-weight: 700; }
.voice-gate-access button:hover, .voice-gate-access button:focus-visible { border-color: #176450; background: #eef7f1; outline: 2px solid #176450; outline-offset: 2px; }
.care-quick-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; width: 100%; margin-bottom: 16px; }
.care-quick-strip button { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; min-height: 76px; padding: 12px 14px; border: 1px solid var(--care-rule, rgba(24,55,46,.16)); border-radius: 14px; background: #fff; color: var(--text); }
.care-quick-strip button > span { grid-row: 1 / 3; font-size: 1.45rem; }
.care-quick-strip strong { font-size: .95rem; line-height: 1.35; }
.care-quick-strip small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.care-quick-strip button:hover, .care-quick-strip button:focus-visible { border-color: var(--care-accent, #176450); background: var(--care-tint, #eef7f1); outline: 2px solid var(--care-accent, #176450); outline-offset: 2px; }
@media (max-width: 680px) {
  .voice-gate-options { grid-template-columns: 1fr; }
  .voice-gate-access { grid-template-columns: 1fr; }
  .care-quick-strip { grid-template-columns: 1fr; }
}
.care-voice-hint { margin: 0 0 10px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.care-voice-hint strong { color: var(--care-accent, #176450); letter-spacing: .03em; }
.need-page { background: linear-gradient(135deg, #fff7e8 0%, #f2f9f1 58%, #e7f3eb 100%) !important; border-top: 4px solid #b9681d !important; }
.people-page { background: linear-gradient(135deg, #fff3df 0%, #fffaf1 54%, #eef7f0 100%) !important; border-top: 4px solid #c58a2a !important; }
.appointment-page { background: #fffdf8 !important; border-top: 4px solid #176450 !important; }
.relay-page { background: linear-gradient(135deg, #eef8f3 0%, #fffdf7 70%) !important; border-top: 4px solid #3f7f72 !important; }
.share-page { background: linear-gradient(135deg, #edf5f8 0%, #fffdf7 72%) !important; border-top: 4px solid #4d7aa0 !important; }
.need-page .role-home-copy { background: rgba(255,255,255,.55); }
.people-page .people-services-head { background: rgba(255,255,255,.55); border-radius: 14px; }
.sr-help-panel { margin: 16px 0 0; padding: 18px; border: 2px solid var(--care-accent, #176450); border-radius: 16px; background: #fff; }
.sr-help-panel.is-hidden { display: none; }
.sr-help-panel .kicker { margin-bottom: 4px; }
.sr-help-panel h2 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.4rem; color: var(--text); }
.sr-help-panel p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.sr-help-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.sr-help-actions button { min-height: 58px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--text); font-size: .9rem; font-weight: 700; }
.sr-help-actions button:focus-visible { outline: 3px solid var(--care-accent, #176450); outline-offset: 3px; }
.sr-help-note { margin: 0 !important; font-size: .76rem !important; }
body.screen-reader-mode .blind-actions { display: grid; }
body.screen-reader-mode .blind-action-assistant { display: none !important; }
@media (max-width: 620px) { .sr-help-actions { grid-template-columns: 1fr; } }
#voiceGateTitle { font-size: clamp(1.8rem, 3.6vw, 2.75rem) !important; line-height: 1.18; }
.sr-help-panel h2:focus, .sr-help-panel h2:focus-visible { outline: none !important; box-shadow: none !important; }
