/* Latin letters & digits use self-hosted soft rounded faces; CJK (and CJK punctuation) fall through to PingFang */
@font-face {
  font-family: "Quicksand";
  src: url("/fonts/quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --bg: #070b18;
  --ink: #e9ecf8;
  --muted: #8a93b2;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --cyan: #7ee8fa;
  --violet: #a78bfa;
  --pink: #f0abfc;
  --aurora: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --danger: #ff8a9b;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-ui: "Quicksand", -apple-system, BlinkMacSystemFont, var(--font-cjk);
  --font-display: "Comfortaa", "Quicksand", var(--font-cjk);
  font-family: var(--font-ui);
  letter-spacing: 0.2px;
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body { background: transparent; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--cyan); }
h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; letter-spacing: 1.5px; }

/* Ambient aurora behind everything */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(126, 232, 250, 0.16), transparent 70%),
    radial-gradient(50% 40% at 100% 20%, rgba(240, 171, 252, 0.13), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(167, 139, 250, 0.18), transparent 70%),
    var(--bg);
}

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}

.view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.view.active { display: flex; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-title { flex: 1; font-weight: 600; font-size: 17px; letter-spacing: 0.4px; }
.avatar-wrap { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: conic-gradient(from 210deg, #A5F3FC, #C4B5FD, #F9A8D4, #FDBA74, #A5F3FC);
  filter: blur(11px);
  opacity: 0.6;
  animation: breathe 5s ease-in-out infinite;
}
.avatar { position: relative; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); }
@keyframes breathe { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.04); } }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }

.pill {
  border: 1px solid rgba(126, 232, 250, 0.35);
  background: rgba(126, 232, 250, 0.08);
  color: var(--cyan);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.pill:disabled { opacity: 0.5; }

/* ---------- chat ---------- */
.messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-divider { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0; letter-spacing: 1px; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--radius);
  line-height: 1.65;
  font-size: 16px;
  word-wrap: break-word;
}
.msg.assistant {
  align-self: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(126, 232, 250, 0.28), rgba(167, 139, 250, 0.34));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-bottom-right-radius: 6px;
}
.msg.error { align-self: center; background: rgba(255, 138, 155, 0.1); border: 1px solid rgba(255, 138, 155, 0.3); color: var(--danger); font-size: 14px; }
.msg.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.retry { margin-left: 6px; }

.composer-wrap {
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 12px 10px;
}
.modes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }
.modes::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--muted);
}
.chip.active { color: var(--ink); border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--aurora) border-box; border: 1px solid transparent; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.4;
  max-height: 140px;
  overflow-y: hidden;
  background: var(--glass);
  outline: none;
}
.composer textarea:focus { border-color: rgba(167, 139, 250, 0.6); }
.composer textarea::placeholder { color: var(--muted); }
#btn-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--aurora);
  color: #0b0f26;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
}
#btn-send:disabled { opacity: 0.4; box-shadow: none; }

/* ---------- tab bar ---------- */
.tabbar {
  display: flex;
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: var(--safe-bottom);
}
.tabbar button {
  position: relative;
  flex: 1;
  border: none;
  background: none;
  padding: 8px 0 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--cyan); }
.tabbar button.active svg { filter: drop-shadow(0 0 6px rgba(126, 232, 250, 0.7)); }
.dot { position: absolute; top: 6px; left: calc(50% + 10px); width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
body.typing .tabbar { display: none; }

/* ---------- pages & cards ---------- */
.page { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glow-card { background: linear-gradient(160deg, rgba(126, 232, 250, 0.08), rgba(240, 171, 252, 0.06)), var(--glass); }
.card.danger { border-color: rgba(255, 138, 155, 0.3); }
.card.brand { text-align: center; }
.brand-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: 1px; margin-bottom: 2px; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.section-title { display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 0; }
.section-title h3 { margin: 0; }

details.card > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h3::after { content: " ›"; color: var(--muted); }
details.card[open] > summary h3::after { content: " ⌄"; }
details.card[open] > summary { margin-bottom: 12px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .row input, .sheet textarea, .sheet input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.25);
  outline: none;
}
.field select option { background: #0b0f26; }
.field textarea { resize: vertical; line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--muted); }
.sub-title { font-size: 14px; font-weight: 600; margin: 14px 0 4px; color: var(--cyan); }
.sub-title:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.lenses { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lenses label { display: inline-flex; }
.lenses input { display: none; }
.lenses span { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.lenses input:checked + span { color: var(--ink); border-color: var(--violet); background: rgba(167, 139, 250, 0.15); }
.slider { display: grid; grid-template-columns: 6.5em 1fr 1.5em; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.slider input { width: 100%; accent-color: var(--violet); }

button.primary, button.ghost, .file-btn, button.danger-btn {
  border-radius: 12px;
  padding: 9px 14px;
  white-space: nowrap;
  cursor: pointer;
}
button.primary { background: var(--aurora); color: #0b0f26; border: none; font-weight: 600; }
button.ghost, .file-btn { background: transparent; color: var(--cyan); border: 1px solid rgba(126, 232, 250, 0.4); }
button.danger-btn { background: transparent; color: var(--danger); border: 1px solid rgba(255, 138, 155, 0.5); }
button.small, .file-btn.small { padding: 6px 12px; font-size: 13px; }
button:disabled { opacity: 0.5; }
.save-bar { padding-top: 6px; }
.save-bar button { width: 100%; padding: 12px; font-size: 16px; }

/* ---------- evolution ---------- */
.evo-ring { display: block; width: 100%; max-width: 320px; margin: 0 auto; overflow: visible; }
.evo-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; stroke-linecap: round; }
.evo-progress { fill: none; stroke: url(#evoGrad); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.7)); transition: stroke-dasharray 1.2s ease; }
.evo-percent { text-align: center; font-size: 40px; font-weight: 200; letter-spacing: 1px; margin-top: -6px; }
.evo-percent small { font-size: 16px; color: var(--muted); }
.evo-stage { text-align: center; font-size: 17px; font-weight: 600; margin-top: 2px; }
.evo-stage-desc { text-align: center; color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.stages { display: flex; justify-content: space-between; gap: 4px; margin: 6px 0 14px; }
.stage { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.stage .pip { display: block; margin: 0 auto 4px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border); }
.stage.reached { color: var(--ink); }
.stage.reached .pip { background: var(--aurora); border-color: transparent; box-shadow: 0 0 8px rgba(167, 139, 250, 0.8); }
.bars { display: grid; gap: 8px; margin-bottom: 4px; }
.bar { display: grid; grid-template-columns: 5em 1fr 3.4em; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bar .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar .fill { height: 100%; background: var(--aurora); border-radius: 3px; }
.bar .num { text-align: right; }
.evo-tip { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.evo-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.self-rate { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.self-rate-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.self-rate-head b { font-size: 18px; font-weight: 500; }
.self-rate input { width: 100%; margin: 8px 0 4px; accent-color: var(--violet); }
.self-rate-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
button.evo-tip { display: block; width: 100%; text-align: left; background: rgba(126, 232, 250, 0.08); border: 1px solid rgba(126, 232, 250, 0.3); border-radius: 12px; padding: 8px 10px; color: var(--ink); }
.evo-log { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.evo-log h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.evo-log li { font-size: 13px; color: var(--muted); margin: 3px 0; }
.evo-log ul { margin: 0; padding-left: 18px; }

/* ---------- soul profile ---------- */
#soul { display: grid; gap: 10px; }
.dim { padding: 12px 14px; }
.dim-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dim-head .title { flex: 1; font-weight: 600; font-size: 15px; }
.dim-head .count { font-size: 12px; color: var(--muted); }
.dim-head .meter { display: flex; gap: 3px; }
.dim-head .meter i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.dim-head .meter i.on { background: var(--aurora); box-shadow: 0 0 6px rgba(167, 139, 250, 0.7); }
.dim-body { margin-top: 10px; }
.dim-hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.entry-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.entry-item .text { flex: 1; }
.entry-item .meta { display: block; font-size: 11px; color: var(--muted); }
.icon-btn { border: none; background: none; color: var(--muted); padding: 2px 4px; font-size: 14px; }
.add-row { display: flex; gap: 6px; margin-top: 8px; }
.add-row input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.25); font-size: 15px; outline: none; }

/* ---------- tide / beach ---------- */
.pending { text-align: left; width: 100%; color: var(--ink); border-color: rgba(240, 171, 252, 0.4); background: linear-gradient(120deg, rgba(126, 232, 250, 0.12), rgba(240, 171, 252, 0.12)); }
.beach { position: relative; border-radius: var(--radius); padding: 30px 12px 16px; min-height: 60vh; background: linear-gradient(180deg, rgba(126, 232, 250, 0.10) 0%, rgba(167, 139, 250, 0.05) 18%, rgba(240, 210, 180, 0.06) 40%, rgba(240, 210, 180, 0.03) 100%); border: 1px solid var(--border); overflow: hidden; }
.waves { position: absolute; left: -10%; right: -10%; top: 0; height: 26px; background: radial-gradient(14px 10px at 14px 0, rgba(126, 232, 250, 0.35) 98%, transparent) 0 0 / 28px 14px repeat-x; opacity: 0.6; animation: drift 9s linear infinite; }
@keyframes drift { to { transform: translateX(28px); } }
.shells { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.shell { border: none; background: none; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.shell svg { width: 54px; height: 54px; filter: drop-shadow(0 0 8px rgba(240, 171, 252, 0.35)); }
.shell .kw { font-size: 12px; line-height: 1.35; text-align: center; }
.shell .date { font-size: 11px; color: var(--muted); }
.beach-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; padding: 40px 10px; line-height: 1.7; }

/* ---------- bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 12, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, #12173a, #0a0e22);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(var(--safe-bottom) + 18px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: rise 0.28s ease;
}
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.sheet .kws { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.sheet .kws span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(167, 139, 250, 0.15); border: 1px solid rgba(167, 139, 250, 0.35); }
.sheet .summary { line-height: 1.7; font-size: 15px; margin: 8px 0 14px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.choice button { border: 1px solid var(--border); background: var(--glass); border-radius: 14px; padding: 10px 8px; font-size: 14px; color: var(--muted); }
.choice button.active { color: var(--ink); background: linear-gradient(#12173a, #12173a) padding-box, var(--aurora) border-box; border: 1px solid transparent; }
.proposal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.proposal input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex-shrink: 0; }
.proposal .body { flex: 1; min-width: 0; }
.proposal .tag { font-size: 11px; color: var(--cyan); }
.proposal .old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.proposal textarea { margin-top: 4px; font-size: 15px; padding: 6px 10px; resize: none; line-height: 1.45; overflow: hidden; }
.proposal.off .body { opacity: 0.4; }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions button { flex: 1; padding: 12px; font-size: 15px; }
.recall { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.recall .msg { max-width: 92%; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top) + 16px);
  transform: translate(-50%, -160%);
  background: rgba(18, 23, 58, 0.95);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  transition: transform 0.25s ease;
  z-index: 30;
  max-width: 90%;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- 1.0: version badge, ratings, visit preview, fingerprint, crystal ---------- */
.ver {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: "Quicksand", var(--font-cjk);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: 3px;
  color: #0b0f26;
  background: var(--aurora);
}
.msg-tag { font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.5px; }
.msg.visit.assistant { border-style: dashed; border-color: rgba(240, 171, 252, 0.4); }
.msg.visit.user { background: linear-gradient(135deg, rgba(240, 171, 252, 0.18), rgba(167, 139, 250, 0.2)); }
.rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.rate-btn { border: 1px solid var(--border); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.rate-btn.active { color: var(--ink); border-color: transparent; background: linear-gradient(#12173a, #12173a) padding-box, var(--aurora) border-box; border: 1px solid transparent; }

.fp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.fp-stat { text-align: center; padding: 8px 2px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.fp-stat b { display: block; font-size: 20px; font-weight: 500; }
.fp-stat span { font-size: 11px; color: var(--muted); }
.fp-label { font-size: 12px; color: var(--muted); margin: 8px 0 4px; letter-spacing: 0.5px; }
.fp-endings { display: flex; gap: 2px; border-radius: 8px; overflow: hidden; min-height: 26px; }
.fp-endings .seg { min-width: 0; background: rgba(167, 139, 250, 0.22); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fp-endings .seg:nth-child(1) { background: rgba(126, 232, 250, 0.32); }
.fp-endings .seg:nth-child(2) { background: rgba(167, 139, 250, 0.32); }
.fp-endings .seg:nth-child(3) { background: rgba(240, 171, 252, 0.28); }
.fp-endings .seg i { font-style: normal; font-size: 11px; white-space: nowrap; padding: 0 4px; }
.fp-legend { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.fp-sim { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.fp-sim b { font-size: 22px; font-weight: 500; }

.crystal-card { background: linear-gradient(140deg, rgba(126, 232, 250, 0.07), rgba(240, 171, 252, 0.07)), var(--glass); }
.crystal-card button { width: 100%; margin-top: 8px; }
.crystal-summary { line-height: 1.7; }
.crystal-pw { display: grid; gap: 8px; }

/* ---------- nebula behind every page (subtle: wisps of fractal noise, soft glows, sparse stars) ---------- */
.nebula { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.nebula-cloud {
  position: absolute;
  inset: -25%;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  will-change: transform;
}
.nebula-cloud.c1 {
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.52 0 0 0 0 0.98 0 0 0 2.1 -1.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: nebula-drift-a 140s ease-in-out infinite alternate;
}
.nebula-cloud.c2 {
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='5' seed='23'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.88 0 0 0 0 0.98 0 0 0 2.2 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: nebula-drift-b 180s ease-in-out infinite alternate;
}
.nebula-cloud.c3 {
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='4' seed='41'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.6 0 0 0 0 0.95 0 0 0 2.3 -1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: nebula-drift-a 220s ease-in-out infinite alternate-reverse;
}
.nebula-glow { position: absolute; border-radius: 50%; filter: blur(50px); mix-blend-mode: screen; will-change: transform; }
.nebula-glow.g1 { width: 70vmax; height: 40vmax; left: -20%; top: 12%; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.22), transparent); transform: rotate(-24deg); animation: nebula-drift-b 160s ease-in-out infinite alternate; }
.nebula-glow.g2 { width: 60vmax; height: 34vmax; right: -25%; bottom: 8%; background: radial-gradient(closest-side, rgba(126, 232, 250, 0.16), transparent); transform: rotate(18deg); animation: nebula-drift-a 200s ease-in-out infinite alternate; }
.nebula-stars { position: absolute; inset: 0; background-repeat: repeat; }
.nebula-stars.s1 {
  background-size: 260px 260px;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 70%),
    radial-gradient(1px 1px at 68% 9%, #e0f2ff, transparent 70%),
    radial-gradient(1.2px 1.2px at 38% 52%, #fff, transparent 70%),
    radial-gradient(1px 1px at 84% 44%, #f5e8ff, transparent 70%),
    radial-gradient(1px 1px at 22% 78%, #fff, transparent 70%),
    radial-gradient(1px 1px at 57% 86%, #e0f2ff, transparent 70%),
    radial-gradient(1.4px 1.4px at 92% 72%, #fff, transparent 70%);
}
.nebula-stars.s2 {
  background-size: 410px 410px;
  background-position: 120px 60px;
  opacity: 0.35;
  background-image:
    radial-gradient(1.6px 1.6px at 30% 25%, #fff, transparent 70%),
    radial-gradient(1px 1px at 75% 35%, #f0abfc, transparent 70%),
    radial-gradient(1.3px 1.3px at 50% 70%, #7ee8fa, transparent 70%),
    radial-gradient(1px 1px at 10% 60%, #fff, transparent 70%);
  animation: nebula-twinkle 7s ease-in-out infinite alternate;
}
@keyframes nebula-drift-a { from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.06); } }
@keyframes nebula-drift-b { from { transform: translate3d(2%, 3%, 0) rotate(0deg); } to { transform: translate3d(-3%, -2%, 0) rotate(-5deg); } }
@keyframes nebula-twinkle { from { opacity: 0.15; } to { opacity: 0.45; } }
/* ---------- backup safety ---------- */
.backup-banner {
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(253, 186, 116, 0.14), rgba(240, 171, 252, 0.12));
  border: 1px solid rgba(253, 186, 116, 0.35);
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.backup-status { margin: 2px 0 6px; font-weight: 500; }
.backup-status.warn { color: #fdba74; }

/* Let the nebula show through the chrome on every page */
.topbar { background: rgba(7, 11, 24, 0.45); }
.composer-wrap { background: rgba(7, 11, 24, 0.55); }
.tabbar { background: rgba(7, 11, 24, 0.7); }
.msg.assistant { background: rgba(14, 18, 40, 0.55); }
.card { background-color: rgba(14, 18, 40, 0.35); }
.beach { background-color: rgba(14, 18, 40, 0.3); }

/* ---------- typography (soft: rounded Latin, relaxed tracking) ---------- */
.topbar-title > div:first-child { font-size: 18px; font-weight: 500; letter-spacing: 1.5px; }
#twin-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.topbar-title .muted { margin-top: 2px; font-size: 12px; letter-spacing: 0.6px; font-weight: 400; }
.day-divider { font-size: 12px; letter-spacing: 2px; font-weight: 400; }
.msg { font-size: 15.5px; line-height: 1.75; letter-spacing: 0.3px; font-weight: 400; }
.msg strong { font-weight: 600; }
.composer textarea { letter-spacing: 0.3px; }
.chip, .pill { letter-spacing: 0.6px; font-weight: 500; }
.tabbar button { font-size: 11px; letter-spacing: 1px; font-weight: 500; }
.section-title h3, .card h3 { letter-spacing: 1px; font-weight: 500; }
.sub-title { letter-spacing: 1px; font-weight: 500; }
.field label, .dim-hint, .hint { letter-spacing: 0.4px; }
.dim-head .title { letter-spacing: 0.8px; font-weight: 500; }
.dim-head .count, .bar .num, .shell .date, .entry-item .meta { font-weight: 500; letter-spacing: 0.5px; }
.evo-percent { font-family: "Quicksand", var(--font-cjk); font-size: 52px; font-weight: 300; letter-spacing: 0; }
.evo-percent small { font-size: 18px; font-weight: 400; margin-left: 2px; }
.evo-stage { font-size: 19px; font-weight: 400; letter-spacing: 4px; padding-left: 4px; }
.evo-stage-desc { letter-spacing: 0.8px; font-weight: 400; }
.stage { letter-spacing: 0.5px; }
.evo-log h4 { letter-spacing: 1px; font-weight: 500; }
.shell .kw { letter-spacing: 0.5px; }
.sheet h2 { font-size: 21px; font-weight: 500; letter-spacing: 1.5px; }
.sheet .summary { line-height: 1.85; letter-spacing: 0.4px; }
.brand-name { font-family: var(--font-display); font-size: 17px; letter-spacing: 1px; font-weight: 500; }
.brand-name + .muted { letter-spacing: 1.5px; }
button.primary { letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 1.1 fast lane ---------- */
.pre-line { white-space: pre-line; }
.row.between { justify-content: space-between; margin-top: 8px; }
.lane-card { background: linear-gradient(140deg, rgba(167, 139, 250, 0.08), rgba(126, 232, 250, 0.06)), var(--glass); }
.lane-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lane-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.lane-btn b { font-weight: 500; font-size: 14px; letter-spacing: 0.5px; }
.lane-btn span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.lane-btn:active { background: rgba(255, 255, 255, 0.09); }
.corpus-link { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; padding: 10px 4px 2px; border: none; border-top: 1px solid var(--border); background: none; color: var(--ink); font-size: 14px; }
.msg .rewrite { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(126, 232, 250, 0.08); border-left: 2px solid var(--cyan); font-size: 13px; line-height: 1.55; }
.quote-row .quote-text { font-size: 14px; line-height: 1.6; }
.quote-row.off, .proposal.off { opacity: 0.45; }
.import-area { min-height: 160px; margin-top: 4px; }
.loading-sheet { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 0 18px; }
.loading-text { color: var(--muted); margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.cal-progress i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.cal-progress i.done { background: var(--violet); }
.cal-progress i.now { background: var(--aurora); }
.cal-type { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.cal-scenario { font-size: 17px; line-height: 1.6; margin: 6px 0 12px; }
.cal-guess { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.3); line-height: 1.6; white-space: pre-line; }
.cal-rate { display: flex; gap: 8px; margin-top: 14px; }
.rate-btn.big { flex: 1; padding: 9px 4px; font-size: 14px; }
.card-fix textarea { margin-top: 2px; }
.cal-tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.cal-tally div { padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.cal-tally b { display: block; font-size: 26px; font-weight: 300; }
.cal-tally span { font-size: 12px; color: var(--muted); }
.quick-dims { margin: 4px 0 6px; }
.quick-q { margin-top: 12px; }
.quick-q label { line-height: 1.55; }
.dim-hint { color: var(--muted); }
.scale-item { padding: 10px 0; border-top: 1px solid var(--border); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.likert button { padding: 7px 0; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 14px; }
.likert button.active { color: var(--ink); border-color: transparent; background: linear-gradient(#12173a, #12173a) padding-box, var(--aurora) border-box; border: 1px solid transparent; }
.scale-type { font-size: 24px; letter-spacing: 3px; margin: 8px 0 4px; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.corpus-list { margin-top: 8px; }
/* ---------- 1.1 portrait: revealed from stardust ---------- */
.twin-figure-slot { display: flex; justify-content: center; }
.figure-host { width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto -10px; }
.figure-host.preview { margin: 6px auto 10px; }
.twin-fig { position: relative; }
.twin-fig > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.twin-fig .halo { border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, 0.35), rgba(126, 232, 250, 0.08) 45%, transparent 70%); }
.twin-fig .img { object-fit: contain; }
.twin-fig .rim { filter: drop-shadow(0 0 4px #a78bfa) drop-shadow(0 0 10px rgba(126, 232, 250, 0.7)); }
.twin-fig .ink { filter: drop-shadow(0 0 2px rgba(165, 243, 252, 0.9)) drop-shadow(0 0 6px rgba(167, 139, 250, 0.6)); }
.twin-fig.final .img { animation: fig-breathe 5s ease-in-out infinite; }
.twin-fig.final .halo { animation: fig-halo 5s ease-in-out infinite; }
@keyframes fig-breathe { 50% { filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.55)); } }
@keyframes fig-halo { 50% { transform: scale(1.08); opacity: 1; filter: brightness(1.4); } }
.twin-fig.small .rim, .twin-fig.small .ink { filter: drop-shadow(0 0 1px #a78bfa); }
.header-figure { position: absolute; inset: -4px; border-radius: 50%; overflow: hidden; }
.avatar.hidden { display: none; }
.figure-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 26px 12px 14px; border: 1px dashed rgba(167, 139, 250, 0.4); border-radius: 18px; background: rgba(167, 139, 250, 0.05); color: var(--ink); margin-bottom: 8px; }
.figure-empty .drop { font-size: 30px; color: #c4b5fd; text-shadow: 0 0 12px rgba(167, 139, 250, 0.9); animation: fig-breathe 4s ease-in-out infinite; }
.figure-empty b { font-weight: 500; letter-spacing: 1px; }
button.evo-percent { display: block; margin: -6px auto 0; background: none; border: none; color: var(--ink); padding: 0; }
.evo-whisper { text-align: center; font-size: 13px; color: #c4b5fd; letter-spacing: 1px; margin: -4px 0 10px; opacity: 0; transition: opacity 0.9s; }
.evo-whisper.show { opacity: 1; }
.evo-dust circle { fill: #e0f7ff; filter: drop-shadow(0 0 2px #a5f3fc); }
/* ---------- 1.1 voice: spoken stories ---------- */
.voice-mini { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(126, 232, 250, 0.35); background: var(--glass); color: var(--cyan); }
.lane-wide { width: 100%; margin-top: 10px; background: linear-gradient(120deg, rgba(126, 232, 250, 0.1), rgba(240, 171, 252, 0.1)); }
.voice-chapters { margin: 4px 0 2px; }
.voice-q { font-size: 16px; line-height: 1.65; margin: 10px 2px 6px; }
.voice-clock { text-align: center; font-family: "Quicksand"; font-size: 34px; font-weight: 300; letter-spacing: 2px; margin-top: 8px; }
.voice-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 4px; }
.voice-rec { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: radial-gradient(circle, #ff8a9b 0 42%, transparent 44%), rgba(255, 255, 255, 0.04); }
.voice-rec.on { background: radial-gradient(circle, transparent 0 0), rgba(255, 138, 155, 0.12); border-color: #ff8a9b; position: relative; animation: voice-pulse 1.6s ease-in-out infinite; }
.voice-rec.on::after { content: ""; position: absolute; inset: 25px; border-radius: 6px; background: #ff8a9b; }
.voice-rec.on.paused { animation: none; opacity: 0.7; }
@keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 155, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(255, 138, 155, 0); } }
.voice-status { min-height: 1.4em; }
.voice-text { min-height: 130px; margin-top: 6px; }
.center { text-align: center; }
/* ---------- 她的一天 ---------- */
.life-status { display: flex; align-items: center; gap: 8px; margin: 0 auto 6px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(126, 232, 250, 0.25); background: rgba(126, 232, 250, 0.06); color: var(--ink); font-size: 13px; max-width: 100%; }
.life-icon { font-size: 18px; display: inline-block; animation: life-bob 3.2s ease-in-out infinite; }
.life-status.sleep .life-icon, .life-status.dream .life-icon { animation: life-breathe 4.5s ease-in-out infinite; }
.life-status.dream { border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.08); }
.life-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-time { color: var(--muted); font-family: "Quicksand"; font-size: 12px; margin-left: 2px; }
@keyframes life-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes life-breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.life-timeline { max-height: 52vh; overflow-y: auto; margin: 8px 0 4px; padding-right: 4px; }
.life-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; font-size: 14px; }
.life-row.past { opacity: 0.4; }
.life-row.now { background: linear-gradient(120deg, rgba(126, 232, 250, 0.14), rgba(240, 171, 252, 0.12)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35); }
.life-row-time { font-family: "Quicksand"; color: var(--muted); font-size: 12px; width: 3em; flex-shrink: 0; }
.life-row-icon { width: 1.4em; text-align: center; }
.routine-grid { margin-top: 6px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; }
.day-pick input { accent-color: var(--violet); margin: 0; }
.day-pick.wide { margin: 4px 0; }
#evolution .life-status { display: flex; width: fit-content; }
#twin-status { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 🔮 爱情水晶球 ---------- */
.orb-card { background: linear-gradient(150deg, rgba(240, 171, 252, 0.09), rgba(167, 139, 250, 0.06)), var(--glass); }
.orb-card > button { width: 100%; margin-top: 10px; }
.orb-head { display: flex; gap: 14px; align-items: center; }
.orb-head h3 { margin: 0 0 2px; }
.orb-head p { margin: 0; }
.orb-ball { position: relative; width: 120px; height: 120px; margin: 4px auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 22%), radial-gradient(circle at 50% 60%, rgba(240, 171, 252, 0.35), rgba(76, 29, 149, 0.55) 62%, rgba(15, 10, 40, 0.9));
  box-shadow: 0 0 28px rgba(240, 171, 252, 0.35), inset 0 0 22px rgba(255, 255, 255, 0.18), inset 0 -10px 24px rgba(126, 232, 250, 0.18); }
.orb-ball.small { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
.orb-ball i, .orb-ball b { position: absolute; inset: 0; border-radius: 50%; }
.orb-ball i { background: radial-gradient(circle at 30% 65%, rgba(240, 171, 252, 0.55), transparent 42%), radial-gradient(circle at 72% 38%, rgba(126, 232, 250, 0.35), transparent 38%); animation: orb-swirl 14s linear infinite; }
.orb-ball b { background: radial-gradient(circle at 60% 40%, rgba(255, 214, 240, 0.5), transparent 35%), radial-gradient(circle at 30% 70%, rgba(167, 139, 250, 0.5), transparent 40%); animation: orb-swirl 22s linear infinite reverse; }
@keyframes orb-swirl { to { transform: rotate(360deg); } }
.orb-sheet h2 { margin: 2px 0; }
.orb-actions { justify-content: center; margin: 10px 0 6px; gap: 8px; }
.orb-batches { margin-top: 8px; }
.orb-batch { position: relative; border-top: 1px solid var(--border); }
.orb-batch-row { display: flex; align-items: center; gap: 6px; padding-right: 34px; }
.orb-date-chip { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; margin: 6px 0; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--border); font-size: 14px; cursor: pointer; }
.orb-date-pen { font-size: 11px; opacity: 0.7; }
/* Invisible native date picker covering the chip, so tapping the date opens it */
.orb-date-chip .orb-date-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.orb-batch-head { display: flex; justify-content: flex-end; flex: 1; padding: 11px 2px; background: none; border: none; color: var(--ink); font-size: 14px; }
.orb-del { position: absolute; right: 0; top: 7px; }
.orb-chat { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 12px; max-height: 46vh; overflow-y: auto; }
.orb-msg { max-width: 82%; padding: 7px 11px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; text-align: left; border: none; color: var(--ink); }
.orb-msg .who { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 1px; }
.orb-msg.ta { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; }
.orb-msg.me { align-self: flex-end; background: linear-gradient(120deg, rgba(240, 171, 252, 0.28), rgba(167, 139, 250, 0.28)); border-bottom-right-radius: 4px; }
.orb-chat.editable .orb-msg { cursor: pointer; }.orb-msg-row { display: flex; align-items: center; gap: 2px; }
.orb-msg-row.me { flex-direction: row-reverse; align-self: flex-end; max-width: 90%; }
.orb-msg-row.ta { align-self: flex-start; max-width: 90%; }
.orb-msg-row .orb-msg { max-width: none; }
.orb-msg-row .icon-btn { opacity: 0.5; font-size: 12px; }
.orb-more { width: 100%; margin-top: 4px; }.orb-time { align-self: center; font-size: 11.5px; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); margin: 4px 0; }
.orb-msg-row.time { align-self: center; }
.orb-media { display: inline-block; margin: 2px 0; padding: 4px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); border: 1px dashed rgba(255, 255, 255, 0.22); font-size: 13px; }.orb-search { width: 100%; margin: 8px 0 2px; }
.orb-results { margin-top: 6px; max-height: 46vh; overflow-y: auto; }
.orb-hit { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.orb-hit mark { background: rgba(240, 171, 252, 0.35); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.beacon-section { border-top: 1px solid var(--border); padding: 10px 0 4px; }
.beacon-section h3 { margin: 4px 0; font-size: 15px; }
.beacon-round { margin: 10px 0; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.beacon-round .field { margin-top: 6px; }
.beacon-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 2px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.beacon-row.star .beacon-star-text { font-size: 16px; color: #fde68a; }
.beacon-link { word-break: break-all; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); font-size: 14px; user-select: all; }
.orb-tools { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }