/* Oqirra — "ledger of promises". System voice: Manrope. Assistant voice: Newsreader (serif). */
:root {
  --mist: #ECEFF1; --paper: #FBFCFC; --ink: #17202A; --ink-2: #4A5562; --ink-3: #7C8692; --line: #D9DEE3;
  --pine: #0E5E52; --pine-soft: #DDEDE9; --amber: #B9770E; --amber-soft: #F6EAD4; --brick: #A8323A; --brick-soft: #F4DEDF;
  --slate: #3D5A80; --slate-soft: #E1E8F1;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --rail: 232px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--sans); color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--slate); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); background: var(--mist); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 9px; height: 9px; background: var(--pine); border-radius: 50%; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav a:hover { background: #E2E6E9; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .badge { margin-left: auto; background: var(--brick); color: #fff; font-size: 11px; padding: 0 7px; border-radius: 99px; line-height: 18px; }
.nav a[aria-current="page"] .badge { background: var(--paper); color: var(--ink); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.rail-foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }
.main { min-width: 0; padding: 28px 40px 140px; max-width: 1240px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 750; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
.sub { color: var(--ink-2); margin: 6px 0 0; max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 99px; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2A3542; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--paper); }
.btn.pine { background: var(--pine); border-color: var(--pine); }
.btn.danger { background: var(--paper); color: var(--brick); border-color: var(--brick); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; background: var(--brick); border-radius: 50%; border: 2px solid var(--paper); }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=time], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); padding: 9px 11px; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px var(--slate-soft); }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 1px 9px; border-radius: 99px; background: #E3E7EA; color: var(--ink-2); line-height: 20px; white-space: nowrap; }
.chip.pine { background: var(--pine-soft); color: var(--pine); }
.chip.amber { background: var(--amber-soft); color: #8A5806; }
.chip.brick { background: var(--brick-soft); color: var(--brick); }
.chip.slate { background: var(--slate-soft); color: var(--slate); }
.seg { display: inline-flex; background: #DFE3E6; border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(23,32,42,.12); }

/* ---------- surfaces ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.section { margin-top: 30px; }
.empty { color: var(--ink-3); padding: 18px 0; }
.empty b { color: var(--ink-2); font-weight: 650; }

/* ledger rows: status stripe on the left instead of card chrome */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 4px 12px 16px; border-bottom: 1px solid var(--line); cursor: default; }
.ledger li:last-child { border-bottom: 0; }
.ledger li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--line); }
.ledger li.s-open::before { background: var(--ink-3); }
.ledger li.s-waiting::before { background: var(--amber); }
.ledger li.s-overdue::before { background: var(--brick); }
.ledger li.s-unconfirmed::before { background: var(--slate); }
.ledger li.s-done::before { background: var(--pine); }
.ledger li.clickable { cursor: pointer; }
.ledger li.clickable:hover { background: #F3F5F6; }
.ledger .title { font-weight: 650; }
.ledger .meta { color: var(--ink-3); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ledger .right { text-align: right; font-size: 13px; color: var(--ink-2); grid-row: span 2; align-self: center; }

/* ---------- home ---------- */
.greet { font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.greet-sum { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; white-space: pre-line; }
.ribbon { margin: 28px 0 8px; position: relative; height: 96px; }
.ribbon-track { position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: var(--ink); }
.ribbon-hour { position: absolute; top: 66px; font-size: 11px; color: var(--ink-3); transform: translateX(-50%); }
.ribbon-tick { position: absolute; top: 43px; width: 1px; height: 18px; background: var(--ink-3); }
.ribbon-item { position: absolute; top: 30px; height: 26px; border-radius: 13px; font-size: 12px; font-weight: 650; padding: 0 8px; min-width: 26px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1.5px solid var(--ink); background: var(--paper); cursor: default; }
.ribbon-item.event { background: var(--ink); color: var(--paper); }
.ribbon-item.task { border-color: var(--pine); color: var(--pine); }
.ribbon-item.followups { border-color: var(--amber); color: #8A5806; border-style: dashed; }
.ribbon-due { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--brick); white-space: nowrap; }
.ribbon-due::after { content: ""; display: block; width: 9px; height: 9px; background: var(--brick); transform: rotate(45deg); margin: 4px auto 0; }
.ribbon-now { position: absolute; top: 18px; bottom: 34px; width: 2px; background: var(--brick); }
.ribbon-now::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brick); }
@media (prefers-reduced-motion: no-preference) {
  .ribbon-track { transform-origin: left; animation: draw .9s cubic-bezier(.2,.7,.2,1) both; }
  .ribbon-item, .ribbon-due { animation: pop .35s ease-out both; animation-delay: var(--d, .6s); }
  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes pop { from { opacity: 0; transform: translateY(4px); } }
}
.home-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 26px; }
.needs { border-left: 3px solid var(--slate); padding-left: 16px; }
.need { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.need:last-child { border-bottom: 0; }
.need p { margin: 0 0 8px; }
.need .q { font-family: var(--serif); font-size: 17px; }

/* ---------- assistant ---------- */
.dock { position: fixed; left: var(--rail); right: 0; bottom: 0; padding: 14px 40px 18px; background: linear-gradient(to top, var(--mist) 70%, transparent); z-index: 20; }
.dock-inner { max-width: 1160px; display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 28px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px -12px rgba(23,32,42,.35); }
.dock-inner input { border: 0; background: transparent; padding: 8px 0; box-shadow: none; }
.dock-inner input:focus { box-shadow: none; }
.dock-reply { max-width: 1160px; margin: 0 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; font-family: var(--serif); font-size: 17px; white-space: pre-line; position: relative; }
.dock-reply .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 18px; }
.mic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); display: grid; place-items: center; cursor: pointer; flex: none; }
.mic svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.9; }
.mic.live { background: var(--brick); }
.mic.live svg { stroke: #fff; }
@media (prefers-reduced-motion: no-preference) { .mic.live { animation: breathe 1.4s ease-in-out infinite; } @keyframes breathe { 50% { box-shadow: 0 0 0 8px rgba(168,50,58,.18); } } }
.chat { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.bubble { max-width: 86%; }
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 18px 18px 4px 18px; }
.bubble.assistant { font-family: var(--serif); font-size: 18px; line-height: 1.5; white-space: pre-line; padding-left: 16px; border-left: 2px solid var(--pine); }
.bubble.assistant details { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.voice-stage { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 26px; }
.voice-orb { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.voice-orb svg { width: 26px; height: 26px; stroke: var(--paper); fill: none; stroke-width: 1.8; }
.voice-orb.live { background: var(--brick); }
.voice-orb.speaking { background: var(--pine); }

/* ---------- tasks ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 150px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(23,32,42,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); z-index: 41; overflow-y: auto; padding: 26px 28px 40px; border-left: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .drawer { animation: slide .22s ease-out; } @keyframes slide { from { transform: translateX(30px); opacity: .4; } } }
.drawer h2 { font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 16px 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.quote { font-family: var(--serif); font-size: 17px; border-left: 2px solid var(--ink-3); padding: 2px 0 2px 12px; margin: 6px 0; }
/* promise thread */
.thread { list-style: none; margin: 10px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.thread li { position: relative; padding: 0 0 16px 8px; }
.thread li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.thread li.t-promise::before, .thread li.t-estimate::before { border-color: var(--amber); background: var(--amber); }
.thread li.t-accepted::before { border-color: var(--amber); }
.thread li.t-overdue::before { border-color: var(--brick); background: var(--brick); }
.thread li.t-completion_reported::before { border-color: var(--slate); background: var(--slate); }
.thread li.t-confirmed_done::before { border-color: var(--pine); background: var(--pine); }
.thread li.t-followup_sent::before, .thread li.t-followup_drafted::before { border-color: var(--amber); border-style: dashed; }
.thread .when { font-size: 12px; color: var(--ink-3); }
.thread .what { font-weight: 650; font-size: 14px; }

/* ---------- accountability board ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { min-width: 0; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.col-head .n { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.col.overdue .col-head { border-color: var(--brick); } .col.overdue .n { color: var(--brick); }
.col.waiting .col-head { border-color: var(--amber); }
.col.unconfirmed .col-head { border-color: var(--slate); }
.col.completed .col-head { border-color: var(--pine); }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.tile:hover { border-color: var(--ink-3); }
.tile b { display: block; font-size: 14px; margin-bottom: 4px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; font-weight: 650; color: var(--ink-3); font-size: 13px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.plain td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.meter { height: 6px; border-radius: 3px; background: var(--brick-soft); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--pine); }

/* ---------- inbox ---------- */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 560px; overflow: hidden; }
.convs { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.conv { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv[aria-current="true"] { background: var(--mist); box-shadow: inset 3px 0 0 var(--ink); }
.conv .t { font-weight: 650; display: flex; justify-content: space-between; gap: 6px; }
.msgs { padding: 18px 22px; overflow-y: auto; max-height: 72vh; }
.msg { margin-bottom: 14px; max-width: 640px; }
.msg .who { font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg .body { background: var(--mist); padding: 9px 13px; border-radius: 4px 14px 14px 14px; margin-top: 4px; white-space: pre-wrap; }
.msg.self { margin-left: auto; }
.msg.self .body { background: var(--slate-soft); border-radius: 14px 4px 14px 14px; }
.msg.bot .body { background: var(--amber-soft); border: 1px dashed var(--amber); }

/* ---------- captures ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.shot figcaption { padding: 10px 12px; font-size: 14px; }

/* ---------- misc ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(23,32,42,.4); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--paper); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px 24px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; z-index: 60; font-weight: 600; font-size: 14px; }
.notes { position: fixed; top: 70px; right: 24px; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); z-index: 45; box-shadow: 0 20px 40px -20px rgba(23,32,42,.4); padding: 6px 16px; }
.note { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.note.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brick); margin-right: 7px; vertical-align: middle; }
.cap { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cap:last-child { border-bottom: 0; }
.cap ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; margin-bottom: 8px; }
.mode:has(input:checked) { border-color: var(--ink); background: #F3F5F6; }
.mode input { margin-top: 4px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--ink); color: var(--paper); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art blockquote { font-family: var(--serif); font-size: 30px; line-height: 1.3; margin: 0; max-width: 20ch; }
.auth-art .stamp { display: inline-block; margin-top: 18px; font-family: var(--sans); font-size: 13px; border: 1px solid #FFFFFF55; border-radius: 99px; padding: 4px 12px; color: #E9EEF2; }
.auth-form { padding: 56px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; gap: 14px; }
.err { color: var(--brick); font-size: 14px; }
.mobile-bar { display: none; }

@media (max-width: 980px) {
  .home-cols, .grid2 { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(5, 240px); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 20px 16px 170px; }
  h1 { font-size: 25px; } .greet { font-size: 30px; }
  .dock { left: 0; padding: 10px 12px 74px; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--paper); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 650; color: var(--ink-3); text-decoration: none; padding: 4px 8px; }
  .mobile-bar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .mobile-bar a[aria-current="page"] { color: var(--ink); }
  .split { grid-template-columns: 1fr; }
  .convs { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 32px 24px; } .auth-art blockquote { font-size: 23px; } .auth-form { padding: 28px 24px; }
  .ribbon-hour { font-size: 9px; }
  .topbar { flex-wrap: wrap; }
}

/* "More" page (mobile) */
.more-list{display:grid;gap:4px}
.more-item{display:flex;align-items:center;gap:14px;padding:14px 8px;border-radius:12px;color:inherit;text-decoration:none;font-size:17px}
.more-item:hover,.more-item:focus-visible{background:rgba(0,0,0,.05)}
.more-list .btn{margin-top:12px;justify-self:start}
/* keep integration cards inside the screen on phones */
@media (max-width:720px){
  .panel{max-width:100%;overflow-wrap:anywhere}
  .panel .row,.panel [class*="actions"]{flex-wrap:wrap}
  .panel span[style*="max-width"]{max-width:100%!important}
}
@media (max-width:720px){ .cap{grid-template-columns:1fr!important;display:grid;gap:12px} }

/* camera button in the ask bar: text, voice and photos from one place */
.cam { cursor: pointer; }
.cam input { display: none; }
.bubble img.snap { max-width: 220px; border-radius: 14px; display: block; }
@media (max-width:720px){ .dock-inner { padding-left: 14px; gap: 4px; } }

.cat-totals { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-totals li { display: grid; grid-template-columns: 1fr auto 3em; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cat-totals li:last-child { border-bottom: 0; }

/* Life */
.life-add { display: flex; gap: 10px; align-items: center; }
.life-add input { flex: 1; min-width: 0; }
.life-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.shop-list { list-style: none; margin: 12px 0 0; padding: 0; }
.shop-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shop-list li:last-child { border-bottom: 0; }
.shop-list li.done label { text-decoration: line-through; opacity: .55; }
.shop-list label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.shop .row input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .life-grid { grid-template-columns: 1fr; } .life-add { flex-direction: column; align-items: stretch; } }
.more-item svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Documents */
.doc-actions { align-items: stretch; }
.drop { display: grid; gap: 6px; place-content: center; text-align: center; cursor: pointer; border-style: dashed; min-height: 140px; }
.drop:hover, .drop:focus-within { border-color: var(--ink); }
.ask-doc { display: flex; gap: 10px; }
.ask-doc input { flex: 1; min-width: 0; }
q.quote { display: block; font-family: var(--serif); font-style: italic; color: var(--ink-2, #3a4450); quotes: "„" "”"; margin: 4px 0; }
q.quote::before { content: open-quote; } q.quote::after { content: close-quote; }

.big-total { font-size: 26px; font-weight: 700; margin: 4px 0 8px; }
.late { color: var(--red, #b42318); font-weight: 600; }

/* Research */
.report { font-family: var(--serif); font-size: 17px; line-height: 1.6; max-width: 72ch; }
.sources { padding-left: 1.2em; display: grid; gap: 10px; }
.sources a { overflow-wrap: anywhere; }
.chip-radio { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip-radio:has(input:checked) { border-color: var(--ink); font-weight: 600; }

/* Meetings */
.rec-time { font-variant-numeric: tabular-nums; color: var(--red, #b42318); font-weight: 600; min-width: 4em; }
.transcript { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.55; max-height: 60vh; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; margin-top: 4px; width: 18px; height: 18px; }

/* Learning */
.quiz fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 8px; }
.quiz legend { font-weight: 600; padding: 0 4px; }
.quiz fieldset.ok { border-color: var(--pine, #1f6f5c); }
.quiz fieldset.bad { border-color: var(--red, #b42318); }
.quiz label.right span { font-weight: 700; text-decoration: underline; }
.flash { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 32px 20px; }
.flash .front { font-size: 26px; font-weight: 700; margin: 0; }
.flash .back { font-size: 20px; font-family: var(--serif); margin: 0; }
[hidden] { display: none !important; }

/* the file the assistant is talking about (sent in the chat) */
.focus-chip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 6px;padding:6px 8px 6px 12px;border:1px solid var(--line,#e3e6ec);
  border-radius:14px;background:var(--paper,#fff);font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.focus-chip>span:first-child{font-weight:600;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-chip .x{margin-left:auto;border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:inherit;padding:2px 6px}
.chat { padding-bottom: 190px; }
.ledger .title, .ledger q.quote, .ledger .meta { overflow-wrap: anywhere; min-width: 0; }
.main { min-width: 0; overflow-x: hidden; }
.ask-doc { display: flex; gap: 8px; } .ask-doc input { flex: 1; min-width: 0; }

/* assistant shortcuts: questions on the spot + most-used sections */
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.qchip:hover, .qchip:focus-visible { border-color: var(--pine); }
.qchip.mod { background: var(--pine-soft); border-color: transparent; color: var(--pine); }
.qchip.mod svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.qchip.ghost { background: transparent; color: var(--ink-3); padding: 8px 12px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.check-grid svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 2; flex: none; margin-top: 3px; }
.center { text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
.tile-mod { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 6px;
  border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 600 13px/1.2 var(--sans); text-align: center; cursor: pointer; }
.tile-mod svg { width: 24px; height: 24px; stroke: var(--pine); fill: none; stroke-width: 1.8; }
.tile-mod:hover, .tile-mod:focus-visible { border-color: var(--pine); }
.tile-mod.ghost { background: transparent; border-style: dashed; color: var(--ink-3); }
.tile-mod .plus { font-size: 20px; line-height: 24px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.bubble.pending { color: var(--ink-3); }
.bubble .links { margin: 10px 0 0; padding: 0; list-style: none; font: 14px/1.5 var(--sans); }
.bubble .links a { color: var(--pine); word-break: break-word; }
