/* Pepagent — light + electric blue */
:root {
  --bg-0: #fafcff;
  --bg-1: #f3f6fc;
  --bg-2: #e8eef7;
  --line: rgba(15, 40, 100, 0.10);
  --line-strong: rgba(15, 40, 100, 0.18);
  --text: #0b1530;
  --text-dim: rgba(11, 21, 48, 0.58);
  --text-mute: rgba(11, 21, 48, 0.38);
  --accent: #1d6cff;
  --accent-soft: rgba(29, 108, 255, 0.08);
  --accent-mid: rgba(29, 108, 255, 0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
#root { min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, #e9f1ff 0%, #f6f9ff 45%, #ffffff 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
.mono, kbd { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(29,108,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,108,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.bg-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(29,108,255,0.04), transparent 60%);
}
.bg-noise { display: none; }

.crosshairs { position: absolute; inset: 18px; pointer-events: none; z-index: 5; }
.ch { position: absolute; width: 14px; height: 14px; border: 1px solid var(--line-strong); }
.ch-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ch-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ch-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ch-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

#root { position: relative; z-index: 1; }
.screen {
  position: relative; width: 100%;
  display: flex; padding: 36px 44px;
  animation: fadeUp 0.5s ease;
}
.screen:not(.landing) { height: 100vh; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Landing scroll wrapper */
.landing-page { width: 100%; }
.landing-hero { height: 100vh; padding: 36px 44px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; }
.landing-content { padding: 80px 8vw 120px; max-width: 1280px; margin: 0 auto; }

.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.32em; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: 56px; font-weight: 200; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; max-width: 900px; }
.section-title em { font-style: normal; color: var(--accent); }
.section-lead { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 640px; margin: 0; }
.section-divider { height: 1px; background: var(--line); margin: 96px 0; position: relative; }
.section-divider::before { content: ''; position: absolute; left: 0; top: -3px; width: 60px; height: 7px; background: var(--accent); }

.scroll-cue { position: absolute; bottom: 28px; right: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--text-mute); animation: bob 2.4s ease infinite; pointer-events: none; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.scroll-cue-line { width: 1px; height: 28px; background: linear-gradient(180deg, var(--accent), transparent); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { border: 1px solid var(--line); background: #fff; padding: 28px; position: relative; transition: 0.2s; }
.feature-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 40px rgba(15,40,100,0.06); transform: translateY(-2px); }
.feature-card::before, .feature-card::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--accent); opacity: 0.6; }
.feature-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.feature-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.feature-icon { width: 44px; height: 44px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 22px; }
.feature-num { position: absolute; top: 18px; right: 22px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--text-mute); }
.feature-name { font-size: 22px; font-weight: 400; margin: 0 0 10px; letter-spacing: -0.01em; }
.feature-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.step { background: #fff; padding: 32px 24px; position: relative; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 16px; }
.step-bar { width: 32px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.step-title { font-size: 20px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.005em; }
.step-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lib-card { border: 1px solid var(--line); background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: 0.2s; }
.lib-card:hover { border-color: var(--c); box-shadow: 0 12px 32px rgba(15,40,100,0.08); }
.lib-head { display: flex; align-items: center; gap: 10px; }
.lib-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.lib-name { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.lib-cat { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.22em; color: var(--text-mute); margin-left: auto; border: 1px solid var(--line); padding: 3px 7px; }
.lib-mech { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); margin: 0; flex: 1; }
.lib-meta { display: flex; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.08em; padding-top: 12px; border-top: 1px solid var(--line); }
.lib-meta b { color: var(--text); font-weight: 500; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.stat-cell { background: #fff; padding: 28px 24px; }
.stat-big { font-size: 48px; font-weight: 200; line-height: 1; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.stat-cap { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.25em; color: var(--text-mute); }
.stat-cap-detail { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.cta-section { padding: 80px 60px; text-align: center; position: relative; border: 1px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), rgba(255,255,255,0)); overflow: hidden; }
.cta-section::before, .cta-section::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--accent); }
.cta-section::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cta-section::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.cta-section h2 { font-size: 48px; font-weight: 200; margin: 0 0 16px; letter-spacing: -0.02em; }
.cta-section p { font-size: 16px; color: var(--text-dim); max-width: 540px; margin: 0 auto 32px; line-height: 1.55; }
.cta-row { display: inline-flex; gap: 14px; }

.faq { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.faq-item { background: #fff; }
.faq-q { width: 100%; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: transparent; border: 0; cursor: pointer; font-family: inherit; color: var(--text); text-align: left; font-size: 16px; font-weight: 500; }
.faq-q:hover { background: var(--accent-soft); }
.faq-q-mark { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--accent); transition: 0.2s; }
.faq-item.open .faq-q-mark { transform: rotate(45deg); }
.faq-a { padding: 0 28px 24px; font-size: 14px; line-height: 1.65; color: var(--text-dim); max-width: 800px; }

.footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 48px; border-top: 1px solid var(--line); margin-top: 100px; }
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.2em; font-size: 14px; font-weight: 600; }
.footer-tag { font-size: 12px; color: var(--text-mute); max-width: 360px; line-height: 1.55; }
.footer-cols { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-head { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.25em; color: var(--text-mute); margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: var(--text-dim); text-decoration: none; cursor: pointer; }
.footer-col a:hover { color: var(--accent); }
.footer-fineprint { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.18em; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

/* ─── LANDING ─── */
.landing { flex-direction: column; align-items: stretch; padding: 0; min-height: 100vh; }
/* Landing's old top brand strip is now redundant — the floating TopNav covers
   it. Hide the brand and pin the right-side telemetry to the corner. */
.landing-top { width: 100%; display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 0; }
.landing-top .brand { display: none; }
.landing-top .status-grid {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 80;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 38px; height: 38px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; position: relative;
  background: #fff;
}
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; border: 1px solid var(--accent); opacity: 0.35; }
.brand-mark::before { inset: -3px; }
.brand-mark::after { inset: -7px; opacity: 0.15; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.brand-name { font-family: 'JetBrains Mono', monospace; font-weight: 600; letter-spacing: 0.22em; font-size: 14px; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.2em; color: var(--text-mute); margin-top: 2px; }
.status-grid { display: flex; gap: 14px; }
.telem {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em;
  padding: 6px 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
}
.telem-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: pulseDot 1.6s ease infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.telem-label { color: var(--text-mute); }
.telem-value { color: var(--text); font-weight: 600; }

.landing-center { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: -20px; }
.landing-ident {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5em; font-size: 12px; color: var(--text-dim);
  margin-top: -210px; padding-left: 0.5em; z-index: 2; pointer-events: none;
}
.landing-time { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 130px; }
.landing-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px; font-weight: 200; letter-spacing: 0.04em; line-height: 1;
  background: linear-gradient(180deg, var(--accent) 0%, #6b9cff 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-date { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.4em; color: var(--text-mute); }

.landing-bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; font-weight: 500;
  padding: 14px 22px; cursor: pointer; position: relative; transition: 0.2s;
}
.cta:hover { background: #1858d8; box-shadow: 0 8px 30px rgba(29,108,255,0.32); }
.cta:disabled { opacity: 0.35; cursor: not-allowed; }
.cta::before, .cta::after { content: ''; position: absolute; width: 6px; height: 6px; border: 1px solid var(--accent); }
.cta::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.cta::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.hint { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; }
.hint kbd {
  border: 1px solid var(--line-strong); padding: 1px 6px; border-radius: 3px;
  font-size: 9.5px; color: var(--text-dim); background: #fff;
}

.ghost {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em;
  padding: 14px 22px; cursor: pointer;
}
.ghost:hover { color: var(--text); border-color: var(--text-dim); }

/* ─── ONBOARDING ─── */
.onboarding { gap: 60px; }
.ob-side { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 60px; }
.ob-side-prompt { padding-top: 12px; }
.prompt-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 14px; }
.prompt-title { font-size: 36px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 14px; }
.prompt-sub { font-size: 14px; color: var(--text-dim); line-height: 1.55; max-width: 320px; }

.ob-main { flex: 1; display: flex; flex-direction: column; padding-top: 60px; min-width: 0; }
.ob-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.ob-step { width: 40px; height: 2px; background: var(--line-strong); }
.ob-step.on { background: var(--accent); box-shadow: 0 0 8px currentColor; }
.ob-stage { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.ob-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--text-dim); }
.ob-list li { display: flex; align-items: center; gap: 12px; }
.ob-list svg { color: var(--accent); }

.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.goal-card {
  background: #fff; border: 1px solid var(--line);
  padding: 18px; display: flex; gap: 14px; align-items: center;
  cursor: pointer; text-align: left; color: var(--text); transition: 0.2s;
  position: relative; font-family: inherit;
}
.goal-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 18px rgba(15,40,100,0.06); }
.goal-card.active {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 8px 30px rgba(29,108,255,0.18);
}
.goal-card.active::before, .goal-card.active::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--accent); }
.goal-card.active::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.goal-card.active::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.goal-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: #fff;
}
.goal-text { flex: 1; min-width: 0; }
.goal-label { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.goal-sub { font-size: 11px; color: var(--text-mute); }
.goal-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.15em;
  color: var(--text-mute); border: 1px solid var(--line); padding: 4px 7px; background: #fff;
}

.ob-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: auto; padding-top: 12px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-field { border: 1px solid var(--line); padding: 18px; background: #fff; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.25em; color: var(--text-mute); margin-bottom: 10px; }
.stat-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.stat-num { font-size: 38px; font-weight: 200; }
.stat-unit { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }
.stat-field input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line-strong); margin: 8px 0; outline: none;
}
.stat-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 12px;
  background: var(--accent); border: 0; box-shadow: 0 0 12px currentColor;
}
.stat-bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.stat-bar span { position: absolute; left: 0; top: 0; bottom: 0; box-shadow: 0 0 8px currentColor; }
.stat-segmented { grid-column: 1 / -1; }
.seg { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); background: #fff; }
.seg button {
  flex: 1; background: transparent; border: 0; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  padding: 12px; cursor: pointer; transition: 0.2s;
}
.seg button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.seg button:hover:not(.on) { color: var(--text); }

/* ─── CHAT ─── */
.chat { gap: 32px; }
.chat-rail {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line); padding-right: 32px;
}
.rail-orb { display: flex; justify-content: center; margin-top: 20px; }
.rail-state { text-align: center; }
.rail-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.3em; color: var(--text-mute); margin-bottom: 6px; }
.rail-status {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.25em;
  display: inline-flex; align-items: center; gap: 8px;
}
.rail-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; animation: pulseDot 1.4s ease infinite; }
.rail-meta { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.rail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px;
}
.rail-row span { color: var(--text-mute); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.18em; font-size: 10px; }
.rail-row b { color: var(--text); font-weight: 500; font-size: 12px; text-align: right; }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.chat-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.3em; }
.chat-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.2em; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px 4px; display: flex; flex-direction: column; gap: 14px; }
.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); }

.msg { display: flex; animation: fadeUp 0.4s ease; }
.msg-user { justify-content: flex-end; }
.msg-agent { justify-content: flex-start; }
.bubble { max-width: 70%; padding: 12px 16px; font-size: 14px; line-height: 1.55; border: 1px solid var(--line); }
.msg-user .bubble { background: var(--accent); border-color: var(--accent); color: #fff; }
.msg-agent .bubble { background: #fff; border-color: var(--line-strong); }
.msg-status {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-dim); display: flex; align-items: center; gap: 10px; padding-left: 4px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: pulseDot 1s ease infinite; }
.status-text::before { content: '> '; color: var(--accent); }

.typing { display: inline-flex; gap: 4px; padding: 14px 18px; border: 1px solid var(--line-strong); background: #fff; }
.typing i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: typing 1.2s ease infinite; box-shadow: 0 0 8px currentColor; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.recommend { width: 100%; max-width: 100%; border: 1px solid var(--accent); background: var(--accent-soft); padding: 20px; position: relative; }
.recommend::before, .recommend::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent); }
.recommend::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.recommend::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.recommend-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 6px; }
.recommend-title { font-size: 22px; font-weight: 300; margin-bottom: 4px; }
.recommend-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); letter-spacing: 0.15em; margin-bottom: 16px; }
.recommend-stack { display: flex; flex-direction: column; gap: 8px; }
.rec-pep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.rec-pep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.rec-pep-body { flex: 1; }
.rec-pep-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; }
.rec-pep-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.rec-pep-cat { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.2em; color: var(--text-dim); border: 1px solid var(--line); padding: 4px 7px; }

.chat-input { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line-strong); background: #fff; }
.chat-input input { flex: 1; background: transparent; border: 0; color: var(--text); font-family: inherit; font-size: 14px; padding: 8px; outline: none; }
.mic, .send {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text-dim); cursor: pointer; transition: 0.2s;
}
.mic.on, .send:hover, .mic:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(29,108,255,0.25); }
.mic.on { background: var(--accent-soft); animation: micPulse 1s ease infinite; }
@keyframes micPulse { 0%,100% { box-shadow: 0 0 12px rgba(29,108,255,0.25); } 50% { box-shadow: 0 0 24px rgba(29,108,255,0.45); } }

/* Voice mode */
.voice-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse at 50% 30%, rgba(220, 232, 255, 0.95) 0%, rgba(255,255,255,0.98) 60%);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-rows: 1fr auto auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 24px;
  padding: 32px 32px 28px;
  animation: fadeUp 0.4s ease;
  overflow: hidden;
}
.voice-orb-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  min-height: 0;
}
.voice-orb-wrap > * {
  max-width: min(360px, 60vh);
  max-height: min(360px, 60vh);
}
.voice-caption {
  font-size: 17px;
  font-weight: 300;
  max-width: 680px;
  width: 100%;
  text-align: center;
  line-height: 1.55;
  max-height: 28vh;
  overflow-y: auto;
  padding: 0 4px;
}
.voice-caption::-webkit-scrollbar { width: 4px; }
.voice-caption::-webkit-scrollbar-thumb { background: rgba(15, 40, 100, 0.18); border-radius: 2px; }
.voice-caption .you { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.3em; display: block; margin-bottom: 8px; }
.voice-caption .agent { color: var(--text-mute); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.3em; display: block; margin-bottom: 8px; }
.voice-status {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--text-mute);
  display: flex; align-items: center; gap: 10px;
}
.voice-controls { display: flex; gap: 14px; }
.voice-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); cursor: pointer; transition: 0.2s;
  flex-shrink: 0;
}
.voice-btn:hover { color: var(--accent); border-color: var(--accent); }
.voice-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 72px; height: 72px; box-shadow: 0 12px 40px rgba(29,108,255,0.35); }
.voice-btn.primary.on { animation: voicePulse 1.2s ease infinite; }
@keyframes voicePulse { 0%,100% { box-shadow: 0 12px 40px rgba(29,108,255,0.35); } 50% { box-shadow: 0 12px 60px rgba(29,108,255,0.6); } }
.voice-btn.danger { color: #d3344d; }
.voice-btn.danger:hover { border-color: #d3344d; }
.voice-tip { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.2em; }

/* ─── STACK ─── */
.stack-screen { flex-direction: column; gap: 28px; }
.stack-head, .sch-head { display: flex; justify-content: space-between; align-items: flex-end; }
.hd-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 8px; }
.hd-title { font-size: 36px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.hd-sub { font-size: 13px; color: var(--text-dim); }
.stack-actions, .sch-actions { display: flex; gap: 12px; }

.stack-body { display: grid; grid-template-columns: 320px 1fr; gap: 28px; flex: 1; min-height: 0; }
.stack-list { display: flex; flex-direction: column; gap: 10px; }
.stack-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: #fff; border: 1px solid var(--line);
  text-align: left; color: var(--text); cursor: pointer; transition: 0.2s;
  font-family: inherit;
}
.stack-item:hover { border-color: var(--line-strong); }
.stack-item.on { border-color: var(--c); background: var(--accent-soft); }
.stack-mini-orb { width: 36px; height: 36px; position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.stack-mini-core { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 18px currentColor; }
.stack-mini-ring { position: absolute; inset: 0; border: 1px solid var(--c); border-radius: 50%; opacity: 0.4; animation: spin 6s linear infinite; }
.stack-mini-ring::before { content: ''; position: absolute; inset: -4px; border: 1px solid var(--c); border-radius: 50%; opacity: 0.2; }
@keyframes spin { to { transform: rotate(360deg); } }
.stack-item-text { flex: 1; min-width: 0; }
.stack-item-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.stack-item-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.stack-item-dose { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }

.stack-detail { background: #fff; border: 1px solid var(--line); padding: 28px; overflow-y: auto; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 8px; }
.detail-name { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 600; letter-spacing: 0.04em; }
.detail-full { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.detail-orb { margin-top: -30px; margin-right: -20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.detail-stat { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--bg-1); }
.ds-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--accent); border: 1px solid var(--line); background: #fff; }
.ds-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.2em; color: var(--text-mute); }
.ds-value { font-size: 13px; font-weight: 500; margin-top: 2px; }
.detail-section { margin-bottom: 20px; }
.detail-section p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 8px 0 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; background: #fff; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.warning {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1px solid rgba(220, 140, 0, 0.3); background: rgba(255, 220, 150, 0.18);
  font-size: 12px; line-height: 1.55; color: #6e4500; margin-top: 12px;
}
.warning svg { color: #b87000; flex-shrink: 0; margin-top: 2px; }

/* ─── SCHEDULE ─── */
.schedule { flex-direction: column; gap: 28px; }
.sch-grid {
  display: grid; grid-template-columns: 220px repeat(7, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line-strong); flex: 1;
}
.sch-col-head, .sch-day-head, .sch-pep, .sch-cell { background: #fff; padding: 12px; }
.sch-day-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: 'JetBrains Mono', monospace; }
.sch-day-head.on { background: var(--accent-soft); }
.sch-day-name { font-size: 10px; letter-spacing: 0.25em; color: var(--text-mute); }
.sch-day-head.on .sch-day-name { color: var(--accent); }
.sch-day-num { font-size: 22px; font-weight: 300; }
.sch-pep { display: flex; align-items: center; gap: 12px; }
.sch-pep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex-shrink: 0; }
.sch-pep-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.sch-pep-sub { font-size: 10px; color: var(--text-mute); margin-top: 2px; }
.sch-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; cursor: pointer; transition: 0.15s; border: 0; color: var(--text); position: relative; }
.sch-cell.empty { background: var(--bg-1); cursor: default; }
.sch-cell.has:hover { background: var(--accent-soft); }
.sch-cell.today { background: var(--accent-soft); }
.sch-cell.today.has { box-shadow: inset 0 0 0 1px var(--accent); }
.sch-cell-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; }
.sch-cell-dose { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--c); font-weight: 600; }
.sch-pending { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; }
.sch-check { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px var(--accent); }
.sch-cell.done { background: var(--accent-soft); }

.sch-legend { display: flex; gap: 22px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--text-mute); }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-box { width: 12px; height: 12px; border: 1px solid var(--line-strong); background: #fff; }
.legend-box.done { border-color: var(--accent); background: var(--accent); }
.legend-box.today { background: var(--accent-soft); border-color: var(--accent); }
.sch-summary { margin-left: auto; color: var(--text); }

/* ─────────────────────────────────────────────────────────────────────────
   Gemini API key button + modal
   ───────────────────────────────────────────────────────────────────────── */
.gem-key-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 40, 100, 0.15);
  color: rgba(11, 21, 48, 0.6);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.gem-key-btn:hover { color: var(--accent); border-color: var(--accent); }
.gem-key-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(15, 40, 100, 0.25);
}
.gem-key-dot.on { box-shadow: 0 0 6px currentColor; }

.gem-key-modal {
  position: fixed; inset: 0;
  background: rgba(11, 21, 48, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.gem-key-card {
  width: 100%; max-width: 460px;
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px rgba(11, 21, 48, 0.25);
}
.gem-key-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--text-mute);
}
.gem-key-title {
  font-size: 24px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--text);
}
.gem-key-sub {
  font-size: 13px; line-height: 1.5;
  color: var(--text-mute);
}
.gem-key-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}
.gem-key-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fafafa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.gem-key-input:focus { border-color: var(--accent); background: #fff; }
.gem-key-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Photo capture overlay
   ───────────────────────────────────────────────────────────────────────── */
.photo-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 21, 48, 0.55);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
  padding: 24px;
}
.photo-shell {
  width: 100%; max-width: 720px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(11, 21, 48, 0.3);
  overflow: hidden;
}
.photo-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.photo-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--text-mute);
}
.photo-title {
  font-size: 22px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 4px;
}
.photo-sub {
  font-size: 12px; color: var(--text-mute);
  margin-top: 4px; line-height: 1.5;
}
.photo-x {
  appearance: none; background: transparent;
  border: 1px solid var(--line-strong);
  width: 32px; height: 32px;
  font-size: 18px; line-height: 1;
  color: var(--text-mute);
  cursor: pointer;
  flex-shrink: 0;
}
.photo-x:hover { color: var(--text); border-color: var(--text); }

.photo-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.photo-cam, .photo-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0b1530;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-video, .photo-preview {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-no-cam {
  text-align: center; color: rgba(255, 255, 255, 0.7);
  padding: 40px;
}
.photo-no-cam-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}
.photo-no-cam-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.photo-scan {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.photo-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  box-shadow: 0 0 24px currentColor, 0 0 48px currentColor;
  animation: scanY 1.6s linear infinite;
}
@keyframes scanY {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.2; }
}

.photo-analysis {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.photo-analysis-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--text-mute);
}
.photo-analysis-text {
  font-size: 14px; line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

.photo-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
}

/* ─────────────────────────────────────────────────────────────────────────
   Top navigation — iOS 26 "Liquid Glass" floating pill, on every screen
   ───────────────────────────────────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  /* Liquid glass fill: very translucent, heavy saturate so the accent below shines through */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.32));
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  /* Inner highlight ring + soft drop shadow */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.2),
    0 1px 0 rgba(15,40,100,0.04),
    0 14px 36px rgba(15,40,100,0.10),
    0 4px 14px rgba(15,40,100,0.06);
  font-family: inherit;
  /* Specular sheen pseudo-element handled below */
}
.topnav::before {
  /* Top specular highlight that fakes the iOS 26 glass curvature */
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 50%;
  border-radius: 999px 999px 100% 100% / 999px 999px 60% 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.7;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}
.topnav-brand:hover { color: var(--accent); }
.topnav-mark {
  position: relative;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.topnav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.topnav-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 12px;
}

.topnav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.topnav-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 10px;
  color: var(--text-mute);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.topnav-link:hover:not(.disabled) {
  color: var(--text);
  background: rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.topnav-link.on {
  color: var(--accent);
  background: rgba(255,255,255,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 0 0 1px rgba(29,108,255,0.18),
    0 2px 8px rgba(29,108,255,0.12);
}
.topnav-link.disabled {
  color: rgba(15, 40, 100, 0.22);
  cursor: not-allowed;
}

.topnav-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(180deg, #2f7bff, #1858d8);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 4px 14px rgba(29,108,255,0.32),
    0 1px 2px rgba(15,40,100,0.15);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.topnav-talk:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 8px 22px rgba(29,108,255,0.42),
    0 2px 4px rgba(15,40,100,0.18);
}

/* Push screen content down so it isn't hidden under the floating nav.
   Nav sits at top:18px and is ~44px tall, so 80px clears it comfortably. */
.screen:not(.landing) {
  padding-top: 80px;
}

/* ─────────────────────────────────────────────────────────────────────────
   AI-generated schedule card in chat
   ───────────────────────────────────────────────────────────────────────── */
.sched-card {
  width: 100%;
  max-width: 540px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(29,108,255,0.04), rgba(255,255,255,0));
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.sched-card::before, .sched-card::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
}
.sched-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.sched-card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.sched-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--accent);
}
.sched-card-title {
  font-size: 18px; font-weight: 400;
  color: var(--text);
  margin-top: 4px;
}
.sched-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 4px;
}

.sched-card-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.sched-card-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
}
.sched-card-dot {
  width: 8px; height: 8px;
  background: var(--c, var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c, var(--accent));
}
.sched-card-info {
  display: flex; flex-direction: column;
  gap: 2px;
}
.sched-card-name {
  font-size: 13px; font-weight: 500;
  color: var(--text);
}
.sched-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--text-mute);
}
.sched-card-days {
  display: flex;
  gap: 3px;
}
.sched-card-day {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500;
  color: rgba(15, 40, 100, 0.25);
  border: 1px solid rgba(15, 40, 100, 0.1);
}
.sched-card-day.on {
  color: #fff;
  background: var(--c, var(--accent));
  border-color: var(--c, var(--accent));
  box-shadow: 0 0 6px var(--c, var(--accent));
}

.sched-card-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.sched-card-cta:hover {
  background: #1858d8;
  box-shadow: 0 4px 16px rgba(29,108,255,0.3);
}

/* Photo message in chat */
.bubble-photo {
  padding: 4px !important;
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  max-width: 280px;
}
.bubble-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

/* Make crosshairs work inside photo overlay */
.photo-cam .crosshairs, .photo-preview-wrap .crosshairs {
  position: absolute; inset: 0;
  pointer-events: none;
}
.photo-cam .ch, .photo-preview-wrap .ch {
  border-color: rgba(255, 255, 255, 0.6);
}
