/* Skalia · Focus — one thing at a time. Calm, generous, big confident type. */
:root {
  --bg: #f4f2ec;
  --bg2: #ece9e1;
  --paper: #fffdf8;
  --paper2: #faf7f0;
  --ink: #1a2024;
  --ink2: #475156;
  --ink3: #737b7e;
  --ink4: #a3a8a8;
  --line: #e4e0d6;
  --line2: #d5d0c4;
  --yes: #22483c;
  --yes-h: #183830;
  --yes-soft: #e5ede8;
  --no: #8d3b2c;
  --no-soft: #f6e8e3;
  --gold: #a57a24;
  --gold2: #c99a3b;
  --gold-soft: #f4ead3;
  --blue: #4f6f8c;
  --blue-soft: #e6ecf1;
  --amber: #b5741c;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(26, 32, 36, .04), 0 14px 40px -14px rgba(26, 32, 36, .14);
  --shadow-lg: 0 2px 6px rgba(26, 32, 36, .05), 0 30px 80px -24px rgba(26, 32, 36, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top: 64px;
  --chat-w: 0px;
  /* folder phases */
  --ph-origination: #c9a24f;
  --ph-evaluation: #6f8fab;
  --ph-structuring: #8c80a8;
  --ph-execution: #b9776a;
  --ph-value: #6e9a80;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.55 var(--sans);
  background: radial-gradient(1400px 600px at 40% -220px, #fbf4e6 0%, rgba(251, 244, 230, 0) 70%), var(--bg);
  background-attachment: fixed;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
kbd {
  display: inline-block; font: 500 10.5px/1 var(--sans); padding: 3px 5px; min-width: 18px; text-align: center; border-radius: 5px; border: 1px solid var(--line2);
  color: var(--ink3); background: rgba(255, 255, 255, .6); letter-spacing: .02em;
}
.eyebrow { font: 600 11px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.eyebrow.gold { color: var(--gold); }
.serif { font-family: var(--serif); }
.muted { color: var(--ink3); }
.link { color: var(--ink2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); }

.btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line2); background: var(--paper); transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink3); box-shadow: var(--shadow); }
.btn kbd { background: transparent; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; gap: 7px; }
.btn.primary { background: var(--yes); color: #fff; border-color: var(--yes); }
.btn.primary kbd { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .3); }
.btn.primary:hover { background: var(--yes-h); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.pass { background: var(--no); color: #fff; border-color: var(--no); }
.btn.ghost { background: transparent; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip.ph { background: var(--blue-soft); color: var(--blue); }
.chip.ph::before { content: ''; width: 7px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.chip.gold { background: var(--gold-soft); color: #7d5c17; }
.chip.green { background: var(--yes-soft); color: var(--yes); }
.chip.red { background: var(--no-soft); color: var(--no); }
.chip.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.pdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--top); padding: 0 28px; background: rgba(244, 242, 236, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--sans); letter-spacing: .01em; justify-self: start; }
.brand em { font: italic 400 18px/1 var(--serif); color: var(--gold); letter-spacing: 0; margin-left: -2px; }
.brand .mark { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 210deg, #d4a537, #e9e3d3, #d4a537); box-shadow: inset 0 0 0 4.5px var(--bg); border: 1px solid #c9b07a; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 253, 248, .6); box-shadow: inset 0 0 0 1px var(--line); }
.nav a { display: flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink2); padding: 7px 16px; border-radius: 999px; transition: .15s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 2px 8px -4px rgba(0, 0, 0, .12); }
.nav .cnt { font: 600 11px/1 var(--sans); font-style: normal; color: var(--gold); background: var(--gold-soft); padding: 3px 6px; border-radius: 999px; }
.nav .cnt:empty { display: none; }
.top-r { justify-self: end; display: flex; align-items: center; gap: 10px; }
.ask-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-weight: 500; font-size: 13.5px; color: var(--ink2); transition: .15s; }
.ask-btn:hover, .ask-btn.on { color: var(--ink); box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.ask-ico { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1d48d, var(--gold) 70%); box-shadow: 0 0 0 3px var(--gold-soft); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-weight: 600; color: var(--ink2); }
.icon-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.phone { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); transition: .15s; }
.phone:hover { color: var(--ink); background: var(--paper); }
.ph-ico { width: 10px; height: 15px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
.ph-ico::after { content: ''; position: absolute; left: 50%; bottom: 1.5px; width: 3px; height: 1.5px; margin-left: -1.5px; background: currentColor; border-radius: 1px; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink4); }
.phone.live .ph-dot { background: #5d9a78; box-shadow: 0 0 0 3px rgba(93, 154, 120, .18); }
.phone.pulse .ph-dot { animation: ping 1.2s ease-out 3; }
@keyframes ping { 50% { box-shadow: 0 0 0 7px rgba(93, 154, 120, 0); } }
.ph-n { font: 600 11px/1 var(--sans); color: var(--blue); background: var(--blue-soft); padding: 3px 6px; border-radius: 999px; }
.ph-n:empty { display: none; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: calc(100vh - var(--top)); }
#view { flex: 1; min-width: 0; outline: none; transition: margin .35s var(--ease); }
body.chat-open #view { margin-right: 420px; }
.page { max-width: 1240px; margin: 0 auto; padding: 34px 40px 110px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-h h1 { font: 400 52px/1.02 var(--serif); letter-spacing: -.022em; }
.page-h p { margin: 10px 0 0; color: var(--ink2); font-size: 16.5px; max-width: 640px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg2); gap: 2px; }
.seg button { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.view-enter { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- today ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - var(--top)); }
.today-main { padding: 18px 56px 90px; min-width: 0; }
.today-in { max-width: 860px; margin: 0 auto; }
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 6px 0 18px; }
.greet .date { font-size: 13px; color: var(--ink3); letter-spacing: .02em; }
.greet h1 { font: 400 46px/1.04 var(--serif); letter-spacing: -.024em; margin: 4px 0 6px; }
.greet p { font-size: 16px; color: var(--ink2); margin: 0; max-width: 620px; }
.greet p b { color: var(--ink); font-weight: 600; }
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.sess { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 18px 12px; border-radius: 18px; background: rgba(255, 253, 248, .55); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.sess:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); }
.sess .s-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sess .s-n { font: 500 22px/1.1 var(--serif); letter-spacing: -.01em; }
.sess .s-at { font: 600 12px/1 var(--sans); color: var(--ink3); letter-spacing: .04em; }
.sess .s-m { font-size: 13px; color: var(--ink2); }
.sess .s-st { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink3); }
.sess .s-go { font-weight: 600; color: var(--yes); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.sess .bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 7px; }
.sess .bar i { display: block; height: 100%; background: var(--yes); border-radius: 2px; transition: width .6s var(--ease); }
.sess.next { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.sess.next .s-at { color: var(--gold); }
.sess.live { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--yes), var(--shadow); }
.sess.done { opacity: .72; }
.sess.done .s-n::after { content: ' ✓'; color: var(--yes); font-size: 17px; }
.sbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; min-height: 40px; }
.sbar .sb-l { display: flex; align-items: baseline; gap: 14px; }
.sbar h2 { font: 400 24px/1.1 var(--serif); letter-spacing: -.01em; }
.sbar .sb-m { font-size: 14px; color: var(--ink3); }
.sbar .sb-r { display: flex; gap: 8px; align-items: center; }

/* decision card */
.card { position: relative; background: var(--paper); border-radius: 30px; box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 28px 48px 24px; }
.card.rise { animation: rise .5s var(--ease); }
.card.leave { animation: leave .24s ease-in forwards; }
.card.back-in { animation: backIn .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateX(46px); } }
@keyframes leave { to { opacity: 0; transform: translateX(-40px); } }
@keyframes backIn { from { opacity: 0; transform: translateX(-46px); } }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; min-height: 26px; }
.ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctx .deal-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; text-decoration: none; transition: .15s; }
.ctx .deal-chip:hover { box-shadow: inset 0 0 0 1px var(--ink3); }
.mini-folder { width: 18px; height: 14px; position: relative; flex: none; }
.mini-folder::before { content: ''; position: absolute; left: 0; top: 0; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: var(--fc, var(--gold2)); }
.mini-folder::after { content: ''; position: absolute; left: 0; top: 3px; right: 0; bottom: 0; border-radius: 1px 3px 3px 3px; background: var(--fc, var(--gold2)); }
.ctx .st { font-size: 13px; color: var(--ink3); }
.dots { display: flex; gap: 7px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); transition: .3s; cursor: pointer; }
.dot:hover { transform: scale(1.3); }
.dot.done { background: var(--yes); }
.dot.passed { background: var(--no); opacity: .8; }
.dot.edit { background: var(--gold2); }
.dot.cur { background: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.q { font: 400 42px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.rec { font-size: 17px; line-height: 1.5; color: var(--ink2); margin: 0 0 22px; max-width: 680px; }
.rec span { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.rec span em { font-style: normal; color: var(--ink3); letter-spacing: .08em; margin-left: 8px; }
.flag { display: flex; gap: 12px; align-items: flex-start; font: 400 19px/1.45 var(--serif); color: var(--ink); background: var(--no-soft); border-left: 3px solid var(--no); padding: 12px 16px; border-radius: 4px 12px 12px 4px; margin: -8px 0 22px; }
.from-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; margin: -6px 0 18px; }
.actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.big { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; height: 92px; padding: 0 24px; border-radius: 20px; text-align: left; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; border: 1px solid var(--line2); background: var(--paper); }
.big b { font: 500 31px/1 var(--serif); letter-spacing: -.01em; }
.big span { font-size: 13.5px; color: var(--ink2); line-height: 1.35; max-width: 92%; }
.big kbd { position: absolute; top: 14px; right: 14px; }
.big:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink3); }
.big:active { transform: translateY(0); }
.big.yes { background: var(--yes); border-color: var(--yes); color: #fff; }
.big.yes span { color: rgba(255, 255, 255, .84); }
.big.yes kbd { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .3); background: transparent; }
.big.yes:hover { background: var(--yes-h); }
.big.no b { color: var(--no); }
.big.no:hover { border-color: var(--no); background: #fffaf7; }
.big.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.quiet { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.quiet button, .quiet a { font-weight: 500; font-size: 14px; color: var(--ink2); padding: 5px 2px; border-bottom: 1px solid transparent; transition: .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.quiet button:hover, .quiet a:hover { color: var(--ink); border-bottom-color: var(--ink3); }
.quiet kbd { font-size: 9.5px; padding: 2px 4px; }
.conseq { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line2); font-size: 13.5px; color: var(--ink3); display: flex; gap: 10px; }
.conseq b { color: var(--ink2); font-weight: 600; white-space: nowrap; }
.why { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.why p { margin: 8px 0 0; color: var(--ink2); font-size: 15px; }
.why ul { margin: 8px 0 0; padding: 0; list-style: none; }
.why li { position: relative; padding-left: 16px; margin: 0 0 9px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.why li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--line2); }
.conf { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--ink3); }
.conf .meter { width: 120px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.conf .meter i { display: block; height: 100%; background: var(--yes); }
.tacit { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); font: italic 400 17px/1.45 var(--serif); color: #5b4513; }
.tacit .eyebrow { display: block; font-style: normal; color: #8a6a26; margin-bottom: 4px; }
.tacit-in { margin-top: 10px; display: flex; gap: 8px; }
.tacit-in input { flex: 1; height: 36px; border-radius: 999px; border: 1px solid rgba(165, 122, 36, .35); background: rgba(255, 255, 255, .6); padding: 0 14px; font: 14px var(--sans); outline: none; }
.tacit-in input:focus { border-color: var(--gold); background: #fff; }
/* change / pass panels */
.panel { margin-top: 20px; padding: 20px 22px; border-radius: 18px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); animation: fade .3s var(--ease); }
.panel h4 { font: 500 19px/1.2 var(--serif); margin-bottom: 12px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: .15s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--ink3); }
.opt.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt kbd { margin-top: 2px; }
.opt b { display: block; font-weight: 600; font-size: 14px; }
.opt span { font-size: 13px; color: var(--ink3); }
.field { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--paper); padding: 11px 14px; font: 15px/1.45 var(--sans); outline: none; resize: vertical; transition: .15s; }
.field:focus { border-color: var(--ink3); box-shadow: 0 0 0 4px rgba(26, 32, 36, .05); }
.panel .row { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.reasons button { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.reasons button:hover { box-shadow: inset 0 0 0 1px var(--no); color: var(--no); }
/* done moment */
.done-card { text-align: left; }
.done-card .tick { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--yes-soft); color: var(--yes); margin-bottom: 18px; }
.done-card.pass .tick { background: var(--no-soft); color: var(--no); }
.done-card.edit .tick { background: var(--gold-soft); color: var(--gold); }
.tick svg { width: 26px; height: 26px; }
.tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-card h3 { font: 400 36px/1.12 var(--serif); letter-spacing: -.015em; margin-bottom: 10px; text-wrap: balance; }
.done-card .ho { font-size: 15.5px; color: var(--ink2); margin: 0 0 6px; max-width: 680px; }
.done-card .ho b { color: var(--ink); font-weight: 600; }
.done-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; gap: 16px; }
.autobar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; flex: 1; max-width: 220px; }
.autobar i { display: block; height: 100%; width: 0; background: var(--ink3); }
/* gate lift (clearing moment) */
.lift { margin: 22px 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.lift .g { position: relative; padding-top: 16px; }
.lift .g i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.lift .g span { display: block; padding-right: 4px; font-size: 10.5px; color: var(--ink4); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.lift .g.c i { background: var(--yes); opacity: .85; }
.lift .g.c span { color: var(--ink3); }
.lift .g.now span { color: var(--ink); font-weight: 600; }
.lift .g.now i { background: var(--yes); }
.lift .g.nx span { color: var(--gold); font-weight: 600; }
.lift .g.nx i { background: repeating-linear-gradient(90deg, var(--gold2) 0 6px, var(--gold-soft) 6px 12px); background-size: 24px 6px; animation: march 1s linear infinite; }
@keyframes march { to { background-position: 24px 0; } }
.lift .g.now::before { content: ''; position: absolute; left: -2px; right: -2px; top: 6px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(-45deg, #1a2024 0 5px, var(--gold2) 5px 10px); transform-origin: 0 50%; animation: barLift 1.1s .25s var(--ease) forwards; }
@keyframes barLift { 0% { transform: rotate(0); } 100% { transform: rotate(-38deg); opacity: .0; } }
.prep { margin-top: 14px; display: grid; gap: 6px; }
.prep .ps { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink3); opacity: 0; animation: psIn .4s var(--ease) forwards; }
@keyframes psIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.prep .ps i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; position: relative; }
.prep .ps.run i { border-color: var(--gold2); border-top-color: transparent; animation: spin .9s linear infinite; }
.prep .ps.ok i { border-color: var(--yes); background: var(--yes); }
.prep .ps.ok i::after { content: ''; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.prep .ps.ok { color: var(--ink2); }
@keyframes spin { to { transform: rotate(360deg); } }
/* session complete */
.complete { text-align: center; padding: 54px 40px 46px; }
.complete h3 { font: 400 44px/1.1 var(--serif); letter-spacing: -.02em; margin: 10px 0 12px; }
.complete p { color: var(--ink2); font-size: 16.5px; margin: 0 auto 24px; max-width: 520px; }
.complete .tally { display: flex; justify-content: center; gap: 36px; margin: 22px 0 28px; }
.complete .tally div { text-align: center; }
.complete .tally b { display: block; font: 400 38px/1 var(--serif); }
.complete .tally span { font-size: 12.5px; color: var(--ink3); }
.complete .row { display: flex; justify-content: center; gap: 10px; }
.start-hint { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink3); }

/* backlog column */
.bcol { position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: rgba(250, 247, 240, .7); }
.bcol-h { padding: 24px 22px 12px; }
.bcol-h .t { display: flex; align-items: baseline; justify-content: space-between; }
.bcol-h h3 { font: 400 24px/1.1 var(--serif); letter-spacing: -.01em; }
.bcol-h .tabs { display: flex; gap: 16px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.bcol-h .tabs button { padding: 0 0 9px; font-size: 13px; font-weight: 500; color: var(--ink3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bcol-h .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.bcol-h .tabs em { font-style: normal; color: var(--ink4); margin-left: 3px; }
.bcol-b { flex: 1; overflow-y: auto; padding: 4px 14px 70px; scrollbar-width: thin; }
.bgrp { margin: 14px 8px 6px; display: flex; justify-content: space-between; }
.bi { position: relative; display: block; width: 100%; text-align: left; padding: 11px 12px 11px 14px; border-radius: 14px; transition: .15s; margin-bottom: 2px; }
.bi:hover { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.bi.cur { background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.bi .bi-h { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink3); }
.bi .bi-h b { color: var(--ink2); font-weight: 600; }
.bi .bi-q { font-size: 14px; line-height: 1.38; margin-top: 4px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bi .bi-t { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.bi .bi-t .chip { height: 20px; font-size: 11px; padding: 0 8px; }
.bi .bi-act { position: absolute; right: 8px; top: 8px; display: none; gap: 4px; }
.bi:hover .bi-act { display: flex; }
.bi-act button { font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.bi-act button:hover { background: var(--ink); color: #fff; }
.bi.done .bi-q { color: var(--ink3); }
.bi .res { font-size: 12px; font-weight: 600; }
.bi .res.approve { color: var(--yes); }
.bi .res.pass { color: var(--no); }
.bi .res.edit { color: var(--gold); }
.bcol-f { padding: 12px 22px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink3); }
.prio { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.prio.p1 { background: var(--no); }
.prio.p2 { background: var(--amber); }
.prio.p3 { background: var(--gold2); }
.prio.p4, .prio.p5 { background: var(--line2); }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(26, 32, 36, .22); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(760px, 62vw); background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .42s var(--ease); display: flex; flex-direction: column; border-radius: 22px 0 0 22px; }
.sheet.on { transform: none; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.sheet-bar .r { display: flex; gap: 8px; align-items: center; }
.sheet-body { flex: 1; overflow-y: auto; padding: 30px 44px 60px; }

/* ---------- chat panel ---------- */
.chat { position: fixed; top: var(--top); right: 0; bottom: 0; width: 420px; z-index: 25; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .2); transform: translateX(102%); transition: transform .38s var(--ease); display: flex; flex-direction: column; }
body.chat-open .chat { transform: none; }
.chat-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.chat-h h3 { font: 400 22px/1 var(--serif); display: flex; align-items: center; gap: 10px; }
.chat-h .ctxt { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.chat-b { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.msg { max-width: 100%; font-size: 14.5px; line-height: 1.55; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.msg.sk { color: var(--ink); }
.msg.sk .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 4px; }
.msg.sk .txt { white-space: pre-wrap; }
.cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cite { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); transition: .15s; }
.cite:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.cite i { font-style: normal; font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.proposal { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.proposal b { font-weight: 600; }
.sugg { display: flex; flex-direction: column; gap: 6px; }
.sugg button { text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink2); transition: .15s; }
.sugg button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink3); }
.chat-f { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-f form { display: flex; gap: 8px; align-items: flex-end; background: var(--paper2); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line2); padding: 6px 6px 6px 14px; }
.chat-f form:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink3); }
.chat-f textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; font: 14.5px/1.45 var(--sans); padding: 7px 0; max-height: 120px; }
.chat-f .send { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink4); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- popover / overlay / toasts ---------- */
.pop { position: fixed; top: calc(var(--top) - 4px); right: 120px; z-index: 50; width: 380px; background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); padding: 18px 18px 14px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .2s; }
.pop.on { opacity: 1; transform: none; pointer-events: auto; }
.pop h4 { font: 400 20px/1.2 var(--serif); display: flex; align-items: center; justify-content: space-between; }
.pop .sub { font-size: 12.5px; color: var(--ink3); margin: 4px 0 12px; }
.pop .pi { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pop .pi .k { flex: none; width: 80px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); padding-top: 2px; }
.pop .pi .tm { margin-left: auto; font-size: 11.5px; color: var(--ink4); white-space: nowrap; }
.pop .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(26, 32, 36, .3); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.ov-in { width: min(640px, 92vw); max-height: 86vh; overflow: auto; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 30px 34px; transform: translateY(8px); transition: transform .3s var(--ease); }
.overlay.on .ov-in { transform: none; }
.ov-in h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 18px; }
.keys dl { display: grid; grid-template-columns: 64px 1fr 64px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; align-items: center; }
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--ink2); }
.ov-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); gap: 12px; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; font: 500 13.5px/1.35 var(--sans); background: rgba(26, 32, 36, .94); color: #f3efe6; padding: 11px 14px 11px 16px; border-radius: 14px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .4); max-width: 460px; animation: toastIn .3s var(--ease); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
.toast button { color: #f1d48d; font-weight: 600; font-size: 13px; }
.toast .ti { width: 8px; height: 8px; border-radius: 50%; background: #8fc6a5; flex: none; }
.toast.phone .ti { background: #9bb8d4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .today { grid-template-columns: minmax(0, 1fr) 320px; }
  .today-main { padding: 22px 40px 100px; }
  .q { font-size: 39px; }
  .greet h1 { font-size: 44px; }
  .card { padding: 28px 40px 26px; }
}
@media (max-width: 1180px) {
  .nav a { padding: 7px 11px; }
  .ask-btn kbd, .phone .ph-t { display: none; }
}
@media print {
  .top, .chat, .toasts, .bcol, .sheet, .scrim, .no-print { display: none !important; }
  body { background: #fff; }
  #view { margin: 0 !important; }
}

.done-card .eyebrow { display: block; margin-bottom: 10px; }
.done-card .sim { font-size: 12px; color: var(--ink4); }
.upnext { margin: 18px 6px 0; }
.upnext .eyebrow { display: block; margin: 0 0 8px 4px; }
.un { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 11px 16px; border-radius: 14px; transition: .15s; color: var(--ink2); }
.un:hover { background: rgba(255, 253, 248, .8); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.un .n { font: 500 12px/1 var(--sans); color: var(--ink4); width: 18px; }
.un b { font-weight: 600; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.un span.q2 { font: 400 17px/1.3 var(--serif); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un .chip { height: 20px; font-size: 11px; }

body.chat-open .today { grid-template-columns: minmax(0, 1fr); }
body.chat-open .bcol { display: none; }
body.chat-open .today-main { padding-left: 40px; padding-right: 40px; }

.bi.prep-i { text-decoration: none; opacity: .85; }
.bi.prep-i .bi-q { color: var(--ink2); font-size: 13.5px; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold2); border-top-color: transparent; animation: spin .9s linear infinite; flex: none; }
.pbar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 8px; }
.pbar i { display: block; height: 100%; background: var(--gold2); transition: width .3s; }
