/* Brain's look: design/Brain Design, direction 4a "Momentum, green". */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('fonts/barlow-condensed-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400 700; font-display: swap; src: url('fonts/manrope.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --header-h: 64px; --tab-h: 58px; --fs-tab: 11px; --fs-body: 16px; --fs-small: 13px; --fs-label: 11px;
  --pad: 20px; --gap: 22px;
  --bg: #161616;
  --bg-depth: radial-gradient(ellipse 70% 45% at 15% 0%, rgba(227,190,106,.13), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(79,201,126,.12), transparent 70%), linear-gradient(180deg, #1A1A1A, #121212);
  --surface: rgba(255,255,255,.045); --surface-accent: rgba(227,190,106,.07); --tab-bg: #141414;
  --line: rgba(255,255,255,.1); --gold: #E3BE6A; --gold-text: #E3BE6A; --green: #4FC97E;
  --text: #F5F2EA; --text-2: #C2BDB2; --text-3: #8B877E;
  --font-display: 'Barlow Condensed', system-ui, sans-serif; --font-body: 'Manrope', system-ui, sans-serif;
  --fw-display: 600; --fs-title: 28px; --fs-wordmark: 44px; --ls-wordmark: .3em;
  --radius: 8px; --radius-sm: 6px; --card-border: 1px solid rgba(255,255,255,.07); --card-shadow: 0 10px 30px rgba(0,0,0,.35);
  --btn-bg: linear-gradient(100deg, #DDB65E 0%, #DDB65E 40%, #F1D690 50%, #DDB65E 60%, #DDB65E 100%); --btn-text: #141414;
  --btn2-bg: rgba(255,255,255,.04); --btn2-border: 1px solid rgba(255,255,255,.2);
  --input-bg: rgba(255,255,255,.05); --input-border: 1px solid rgba(255,255,255,.12);
  --bubble-user-bg: #E3BE6A; --bubble-user-text: #141414; --btn-h: 44px; --card-pad: 14px 16px;
  --login-glow: radial-gradient(ellipse at 50% 100%, rgba(79,201,126,.2), transparent 65%);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg-depth), var(--bg); background-attachment: fixed; color: var(--text); font-family: var(--font-body);
  font-size: var(--fs-body); -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
.screen { max-width: 430px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; position: relative; }
.header { height: var(--header-h); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--pad) 8px;
  border-bottom: 1px solid var(--line); }
.header .title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: var(--fs-title);
  font-weight: var(--fw-display); text-transform: uppercase; line-height: 1; }
.header img { width: 30px; height: 30px; }
.link { min-height: 44px; padding: 0 6px; background: none; border: none; color: var(--gold-text); font-size: var(--fs-small);
  font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.body { flex: 1; padding: var(--pad); display: flex; flex-direction: column; gap: var(--gap); }
.label { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: var(--fs-label);
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: 6px; }
.card { background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .main { flex: 1; }
.row .name { font-weight: 600; }
.sub, .note { color: var(--text-3); font-size: var(--fs-small); }
.banner { background: var(--surface-accent); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.tabs { background: var(--tab-bg); border-top: 1px solid var(--line); padding: 0 var(--pad) 24px; display: grid;
  grid-template-columns: repeat(4, 1fr); position: sticky; bottom: 0; }
.tab { min-height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-3); text-decoration: none; position: relative; }
.tab span { font-family: var(--font-display); font-size: var(--fs-tab); letter-spacing: .1em; text-transform: uppercase; }
.tab img { width: 24px; height: 24px; filter: grayscale(1); opacity: .6; }
.tab.on { color: var(--gold-text); }
.tab.on img { filter: none; opacity: 1; }
.tab.on::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: var(--gold);
  box-shadow: 0 0 10px 1px var(--gold), 0 8px 22px 6px rgba(227,190,106,.35); }
.dock { position: sticky; bottom: 0; background: var(--bg); }
.dock .tabs { position: static; }
.conversation { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.conversation.empty { justify-content: center; }
.day { text-align: center; color: var(--text-3); font-family: var(--font-display); font-size: var(--fs-label); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 6px; }
.said { align-self: flex-end; max-width: 80%; padding: 12px 16px; background: var(--bubble-user-bg); color: var(--bubble-user-text);
  border-radius: var(--radius) var(--radius) 4px var(--radius); font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { align-self: flex-start; max-width: 88%; padding-left: 14px; border-left: 2px solid var(--gold); }
.reply .who { font-family: var(--font-display); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 600; margin-bottom: 4px; }
.reply .words { white-space: pre-wrap; overflow-wrap: anywhere; }
.passage { display: none; margin: 0 0 4px; padding-left: 10px; border-left: 2px solid var(--line); color: var(--text-2);
  font-size: var(--fs-small); white-space: pre-wrap; overflow-wrap: anywhere; }
.passage:target { display: block; }
.ask { background: var(--surface-accent); border: 1px solid var(--gold); border-radius: var(--radius); padding: var(--card-pad);
  box-shadow: var(--card-shadow); }
.ask-label { font-family: var(--font-display); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 600; }
.ask-text { margin-top: 10px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ask-actions .field { height: var(--btn-h); }
.ask-buttons { display: flex; gap: 10px; }
.ask-buttons .button { flex: 1.4; height: var(--btn-h); }
.ask-buttons .button.quiet { flex: 1; }
.composer { padding: 8px var(--pad) 12px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); }
.composer-add, .composer-send { width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; cursor: pointer; }
.composer-add { background: var(--btn2-bg); border: var(--btn2-border); color: var(--gold-text); }
.composer-send { background: var(--btn-bg); background-size: 300% 100%; animation: sheen 12s ease-in-out infinite; border: none;
  color: var(--btn-text); }
.composer-field { flex: 1; height: 44px; border-radius: var(--radius-sm); background: var(--input-bg); border: var(--input-border);
  color: var(--text); padding: 11px 14px; resize: none; font: inherit; line-height: 1.3; }
.composer-field::placeholder { color: var(--text-3); }
.composer-note:empty { display: none; }
.composer-note { padding: 0 var(--pad) 8px; }
.login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--pad); gap: 8px;
  position: relative; }
.login::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: var(--login-glow); pointer-events: none; }
.login .logo { width: 220px; height: 220px; animation: breathe 4s ease-in-out infinite; }
.wordmark { font-family: var(--font-display); font-size: var(--fs-wordmark); font-weight: var(--fw-display); text-transform: uppercase;
  letter-spacing: var(--ls-wordmark); line-height: 1; margin-top: -6px; }
.stack { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 36px; position: relative; z-index: 1; }
.field { height: 52px; border-radius: var(--radius-sm); background: var(--input-bg); border: var(--input-border); color: var(--text);
  padding: 0 18px; width: 100%; }
.field::placeholder { color: var(--text-3); }
.button { height: 52px; border-radius: var(--radius-sm); background: var(--btn-bg); background-size: 300% 100%;
  animation: sheen 12s ease-in-out infinite; color: var(--btn-text); border: none; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.button.quiet { background: var(--btn2-bg); border: var(--btn2-border); color: var(--text); animation: none; }
.small { height: 40px; padding: 0 14px; }
.message { min-height: 1.4em; color: var(--text-2); font-size: var(--fs-small); text-align: center; margin: 0; }
.secret { font-family: ui-monospace, Menlo, monospace; word-break: break-all; color: var(--gold-text); text-align: center; }
.count { color: var(--text-3); }
.next-title { font-family: var(--font-display); font-size: 40px; font-weight: var(--fw-display); text-transform: uppercase; line-height: .98;
  margin-top: 10px; text-wrap: balance; overflow-wrap: anywhere; }
.next-due { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-2); font-size: var(--fs-small); font-weight: 500; }
.next-due .left { color: var(--green); font-weight: 600; }
.next .note { margin-top: 10px; }
.next-actions { display: flex; gap: 10px; margin-top: 16px; }
.next-actions .button { flex: 1.4; height: var(--btn-h); }
.tasks { display: flex; flex-direction: column; }
.task { display: flex; align-items: center; gap: 14px; min-height: 56px; border-top: 1px solid var(--line); }
.task:last-child { border-bottom: 1px solid var(--line); }
.task .n { font-family: var(--font-display); font-size: 15px; color: var(--text-3); letter-spacing: .08em; min-width: 18px; }
.task form { display: flex; }
.task .t { flex: 1; font-weight: 500; }
.task .w { color: var(--text-3); font-size: var(--fs-small); }
.task.done .t { color: var(--text-3); }
.task.done .w { color: var(--green); font-weight: 600; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); background: none; flex: none; padding: 0; cursor: pointer; }
.tick.on { background: var(--green); border-color: var(--green); }
.panel { padding: var(--card-pad); }
.panel .label { align-items: center; margin-bottom: 0; }
.panel .row { min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
.link.quiet { color: var(--text-3); }
.label .link { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0; text-transform: none; }
.ask-label { display: flex; }
.ask-count { margin-left: auto; color: var(--text-3); }
.timeline { display: flex; flex-direction: column; position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.slot { display: flex; gap: 14px; align-items: baseline; min-height: 52px; padding: 12px 0; position: relative; }
.slot .dot { position: absolute; left: -16px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.slot .time { width: 72px; flex: none; color: var(--text-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; font-weight: 600; }
.slot .what { color: var(--text-2); }
.slot.next .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.slot.next .time { color: var(--gold-text); font-weight: 700; }
.slot.next .what { color: var(--text); font-weight: 600; }
.slot.next ~ .slot .dot { background: var(--text-3); }
.clocks { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 52px; }
.clock { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px var(--pad); min-height: 44px; }
.clock.pick { position: relative; cursor: pointer; }
.clock-rule { width: 1px; background: var(--line); }
.clock-label { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text); }
.pick .clock-label { color: var(--text-3); }
.clock-label .live { color: var(--green); font-size: 9px; }
.clock-label .chev { margin-left: auto; }
.clock-time { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-time .sep { color: var(--text-3); margin: 0 6px; }
.clock-pick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
select.field { appearance: none; }
[hidden] { display: none !important; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 6px rgba(227,190,106,.25)); } 50% { filter: drop-shadow(0 0 24px rgba(227,190,106,.75)); } }
@keyframes sheen { 0%, 70%, 100% { background-position: 100% 0; } 85% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .login .logo, .button, .composer-send { animation: none; } }
