/* Jordan on the phone. No animations or transitions anywhere: nothing here draws when nothing changes. */
:root {
  --bg: #0E0F13;
  --card: #181A20;
  --card-2: #20232B;
  --line: rgba(255, 255, 255, 0.08);
  --text: #EDEEF1;
  --dim: rgba(237, 238, 241, 0.55);
  --accent: #FF7A29;
  --accent-ink: #1A0E05;
  --good: #4CC38A;
  --bad: #FF6B6B;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) 0 calc(64px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.dim { color: var(--dim); }
.center { text-align: center; }
.small { font-size: 13px; }

#top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
#title { font-size: 22px; font-weight: 600; }
#subtitle { font-size: 13px; }
.icon-btn { background: none; border: 0; font-size: 22px; color: var(--dim); padding: 6px; }
.banner { margin: 0 16px 8px; padding: 10px 12px; border-radius: 10px; background: #3A2A12; color: #FFD9B8; font-size: 14px; }

main { padding: 0 16px 16px; }
h2 { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.card { background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.card.tap { display: block; width: 100%; text-align: left; border: 0; }
.card .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card .big { font-size: 17px; font-weight: 600; }
.card .sub { font-size: 13px; color: var(--dim); }
.card p { margin: 6px 0 0; }
.quote { white-space: pre-wrap; background: var(--card-2); border-radius: 10px; padding: 10px; margin-top: 8px; font-size: 15px; }
.empty { color: var(--dim); text-align: center; padding: 28px 8px; }

.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 14px; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.quiet { background: none; }
.btn:disabled { opacity: .5; }

.seg { display: flex; background: var(--card); border-radius: 10px; padding: 3px; margin: 4px 0 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--dim); font-size: 15px; position: relative; }
.seg button.on { background: var(--card-2); color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.chip { flex: none; border: 1px solid var(--line); background: none; border-radius: 16px; padding: 5px 11px; font-size: 13px; color: var(--dim); }
.chip.on { border-color: var(--accent); color: var(--text); }
input[type=text], input[type=search], textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 44px; }

.phone-link { display: block; text-align: center; margin-top: 10px; padding: 12px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 18px; text-decoration: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.msgs { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.msg.them { align-self: flex-start; background: var(--card); }
.msg .when { display: block; font-size: 11px; opacity: .6; margin-top: 3px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); padding: 8px 12px; display: flex; gap: 8px; }
.composer textarea { min-height: 40px; max-height: 120px; }
.chat-space { height: 64px; }

#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #121318; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#tabs button { flex: 1; border: 0; background: none; color: var(--dim); font-size: 11px; padding: 7px 0 8px; position: relative; }
#tabs button .ico { display: block; font-size: 19px; line-height: 1.2; }
#tabs button.on { color: var(--accent); }
.badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 0 4px; line-height: 17px; }
.seg .badge { position: static; display: inline-block; margin-left: 4px; }
.ok { color: var(--good); }
.err { color: var(--bad); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--card-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; z-index: 5; }
.code-input { font-size: 28px; letter-spacing: .3em; text-align: center; }
ol.steps { padding-left: 20px; } ol.steps li { margin: 6px 0; }
.gap { height: 10px; }
.btns.top { margin: 0 0 10px; }
a.btn { text-decoration: none; color: var(--accent); }
