/* Radolabs Unified Suite. Dark only. Tokens from docs/design/RADOLABS_DESIGN_SYSTEM.md */
:root {
  --bg: #0D0F14; --side: #14161C; --card: #1C1F27; --raised: #262A33;
  --line: #353944; --line-strong: #454A57;
  --ink: #F5F6F8; --ink-2: #A6ADBA; --ink-3: #7B8392;
  --brand: #FF7916; --brand-hover: #FF943F; --brand-ink: #0D0F14;
  --brand-soft: rgba(255,121,22,.14);
  --ok: #22C55E; --ok-soft: rgba(34,197,94,.14);
  --warn: #F5B50A; --warn-soft: rgba(245,181,10,.14);
  --bad: #EF4444; --bad-soft: rgba(239,68,68,.14);
  --info: #60A5FA; --info-soft: rgba(96,165,250,.14);
  --google: #8AB4F8; --whatsapp: #25D366; --instagram: #E1306C; --facebook: #4C8BF5; --website: #A78BFA;
  --r-sm: 6px; --r-md: 8px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);
  --banner-h: 28px; --top-h: 52px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: var(--fs-md)/1.45 var(--font); }
h1 { font-size: var(--fs-xl); font-weight: 600; margin: 0 0 var(--s-3); }
h2 { font-size: var(--fs-lg); font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
h3 { font-size: var(--fs-md); font-weight: 600; margin: 0 0 var(--s-2); }
.label-sec { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; margin: var(--s-3) 0 var(--s-1); }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
p { margin: 0 0 var(--s-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.cap { font-size: var(--fs-xs); color: var(--ink-3); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.mono { font-family: var(--mono); }

:focus-visible { outline: none; box-shadow: var(--focus); }

/* buttons and inputs */
button, .btn { font: inherit; font-weight: 600; height: 34px; padding: 0 var(--s-3); border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; display: inline-flex; align-items: center; gap: var(--s-2); }
button:hover:not(:disabled) { background: var(--raised); border-color: var(--line-strong); }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
button.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
button.sm, .btn.sm { height: 28px; padding: 0 10px; font-size: var(--fs-sm); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); height: 34px; padding: 0 10px; max-width: 100%; transition: border-color .12s; }
textarea { height: auto; min-height: 84px; padding: 8px 10px; width: 100%; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type=checkbox] { height: auto; width: 16px; accent-color: var(--brand); }
label { font-size: var(--fs-sm); color: var(--ink-2); display: block; margin: var(--s-3) 0 var(--s-1); }
label.check { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; }

/* card, chips, tags */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.card.raised { background: var(--raised); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--raised); color: var(--ink-2); white-space: nowrap; }
.st-open, .st-pending_approval, .st-sent_simulated, .chip.warn { background: var(--warn-soft); color: var(--warn); }
.st-replied, .st-sent, .st-live, .chip.ok { background: var(--ok-soft); color: var(--ok); }
.st-resolved { background: var(--raised); color: var(--ink-3); }
.st-failed, .st-disconnected, .chip.bad { background: var(--bad-soft); color: var(--bad); }
.st-queued, .st-demo, .chip.info { background: var(--info-soft); color: var(--info); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.tag-planned { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: var(--r-pill); background: var(--raised); color: var(--ink-3); border: 1px solid var(--line); margin-left: var(--s-2); }
.ch-google { color: var(--google); } .ch-whatsapp { color: var(--whatsapp); } .ch-instagram { color: var(--instagram); } .ch-facebook { color: var(--facebook); } .ch-website { color: var(--website); }
.glyph { display: inline-flex; flex: none; }
.stars { color: var(--brand); letter-spacing: 1px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--raised); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar img { width: 20px; height: 20px; }

/* messages */
.error { background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; overflow-wrap: anywhere; }
.success { background: var(--ok-soft); color: var(--ok); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; overflow-wrap: anywhere; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; overflow-wrap: anywhere; }
.notice .actions { margin-top: var(--s-2); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.empty { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; padding: var(--s-6); }
.demo-banner { min-height: var(--banner-h); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 2px var(--s-3); text-align: center; }
#toast { position: fixed; right: var(--s-4); bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); z-index: 50; max-width: calc(100vw - 32px); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); max-width: 360px; overflow-wrap: anywhere; }
.toast.warn { border-left-color: var(--warn); } .toast.bad { border-left-color: var(--bad); }

/* tables */
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th { background: var(--raised); color: var(--ink-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 var(--s-3); height: 34px; white-space: nowrap; }
td { padding: 0 var(--s-3); height: 40px; border-top: 1px solid var(--line); vertical-align: middle; }
td.long { white-space: normal; min-width: 180px; overflow-wrap: anywhere; padding-top: 6px; padding-bottom: 6px; }
.detail-json { margin: 0; font: var(--fs-xs)/1.4 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - var(--banner-h)); }
.side { background: var(--side); border-right: 1px solid var(--line); padding: var(--s-4) var(--s-3); display: flex; flex-direction: column; gap: var(--s-3); position: sticky; top: 0; height: calc(100vh - var(--banner-h)); overflow-y: auto; }
.logo-tile { background: #fff; border-radius: var(--r-md); padding: var(--s-2); display: flex; align-items: center; justify-content: center; }
.logo-tile img { display: block; max-width: 160px; width: 100%; height: auto; }
.brand-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: var(--s-2); text-align: center; }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { position: relative; display: flex; align-items: center; gap: var(--s-3); height: 36px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background-color .12s, color .12s; }
#nav a:hover { background: var(--raised); color: var(--ink); }
#nav a.active { background: var(--brand-soft); color: var(--brand); }
#nav a.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--brand); border-radius: 2px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-2); }
.assist-status { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-2); }
.assist-status .dot { color: var(--info); margin-top: 1px; }
.powered { font-size: var(--fs-xs); color: var(--ink-3); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--top-h); display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar select { max-width: 260px; }
.user { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.user .name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; }
.user .role { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.2; }
.content { padding: var(--s-4); min-width: 0; }
.content.inbox-mode { padding: 0; }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.stat .lbl { font-size: var(--fs-xs); color: var(--ink-3); }
.stat .val { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; }
.stat .sub { font-size: var(--fs-xs); color: var(--ink-2); }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-4); }
.bars { display: flex; flex-direction: column; gap: var(--s-3); }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.bar-row .nm { display: flex; align-items: center; gap: var(--s-2); }
.bar-track { height: 8px; background: var(--raised); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink-2); border-radius: var(--r-pill); }
.bar-fill.ch-google { background: var(--google); } .bar-fill.ch-whatsapp { background: var(--whatsapp); } .bar-fill.ch-instagram { background: var(--instagram); } .bar-fill.ch-facebook { background: var(--facebook); } .bar-fill.ch-website { background: var(--website); }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-3); }
.strip .card { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s-3); }
.int-grid .card { display: flex; flex-direction: column; gap: var(--s-2); }
.row-flex { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-3); overflow-x: auto; }
.tabs button { border: 0; border-radius: 0; border-bottom: 2px solid transparent; height: 36px; color: var(--ink-2); flex: none; }
.tabs button[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button:hover:not(:disabled) { background: transparent; color: var(--ink); }
.tab-nav { display: flex; gap: var(--s-1); margin-bottom: var(--s-3); flex-wrap: wrap; }
.tab-nav button[aria-selected=true] { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* inbox */
.inbox { display: grid; grid-template-columns: 240px 360px minmax(0, 1fr); height: calc(100vh - var(--banner-h) - var(--top-h)); }
.inbox > * { min-height: 0; overflow-y: auto; min-width: 0; }
.rail { border-right: 1px solid var(--line); padding: var(--s-3); background: var(--side); }
.rail button { width: 100%; height: 32px; border: 0; justify-content: space-between; color: var(--ink-2); font-weight: 500; }
.rail button.on { background: var(--brand-soft); color: var(--brand); }
.rail .cnt { font-size: var(--fs-xs); color: var(--ink-3); }
.listcol { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.listcol .search { padding: var(--s-3); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.listcol input { width: 100%; }
.row-item { display: flex; width: 100%; height: auto; min-height: 72px; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--s-2) var(--s-3); font-weight: 400; position: relative; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; flex: none; }
.row-item.sel { background: var(--raised); }
.row-item.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.row-item .l1 { display: flex; align-items: center; gap: var(--s-2); }
.row-item .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.row-item .tm { font-size: var(--fs-xs); color: var(--ink-3); flex: none; }
.row-item .l2 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-3); min-width: 0; }
.row-item .l2 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row-item .prev { font-size: var(--fs-sm); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: anywhere; }
.detailcol { padding: var(--s-4); }
.d-head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.d-head h2 { margin: 0; overflow-wrap: anywhere; }
.d-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.claim { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); }
.claim.mine { background: var(--brand-soft); color: var(--brand); }
.claim.other { background: var(--warn-soft); color: var(--warn); }
.msgs { display: flex; flex-direction: column; gap: var(--s-2); }
.msg { max-width: 85%; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--raised); align-self: flex-start; }
.msg.out { align-self: flex-end; background: var(--brand-soft); }
.msg .by { font-size: var(--fs-xs); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: 2px; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.composer { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.composer .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.back-btn { display: none; margin-bottom: var(--s-2); }
.faq-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); margin-bottom: var(--s-2); }
.faq-card .q { font-weight: 600; overflow-wrap: anywhere; }
.faq-card .a { font-size: var(--fs-sm); overflow-wrap: anywhere; white-space: pre-wrap; margin: var(--s-1) 0; }
.faq-card .ft { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--s-2); overflow-wrap: anywhere; }
.faq-card .row-flex { margin-top: var(--s-1); }
.ra-head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-1); }
.esc { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--r-md); padding: var(--s-3); margin-bottom: var(--s-3); overflow-wrap: anywhere; }
.esc .t { color: var(--warn); font-weight: 600; margin-bottom: var(--s-2); }
.simple-list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.simple-list li { padding: var(--s-2) 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.simple-list li:first-child { border-top: 0; }

/* auth pages */
.auth { max-width: 420px; margin: var(--s-6) auto; padding: 0 var(--s-4); }
.auth .logo-tile { margin-bottom: var(--s-4); }
.auth h1 { margin-bottom: 2px; }
.auth input { width: 100%; }
.auth .sub { color: var(--ink-2); margin-bottom: var(--s-3); }

@media (min-width: 1024px) { .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .settings-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1279px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr); }
  .side { padding: var(--s-3) var(--s-2); align-items: center; }
  .side .logo-tile { padding: 3px; width: 48px; height: 48px; overflow: hidden; }
  .side .logo-tile img { max-width: none; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.45); transform-origin: 0 0; }
  .brand-cap, #nav .lbl, .side-foot .txt { display: none; }
  #nav a { justify-content: center; padding: 0; width: 44px; }
  .inbox { grid-template-columns: 220px minmax(0, 1fr); height: auto; }
  .inbox .detailcol { grid-column: 1 / -1; border-top: 1px solid var(--line); overflow: visible; }
  .inbox > .rail, .inbox > .listcol { max-height: 60vh; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: var(--s-2) var(--s-3); border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .side .logo-tile { flex: none; width: 40px; height: 40px; padding: 2px; }
  .side .logo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.45); transform-origin: 0 0; }
  .side-foot { display: none; }
  #nav { flex-direction: row; }
  #nav a { flex: none; width: 40px; }
  .topbar { height: auto; flex-wrap: wrap; padding: var(--s-2) var(--s-3); position: static; }
  .topbar select { max-width: 100%; flex: 1 1 140px; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .inbox > .rail { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .inbox > .listcol { max-height: none; border-right: 0; }
  .inbox.show-detail > .rail, .inbox.show-detail > .listcol { display: none; }
  .inbox:not(.show-detail) > .detailcol { display: none; }
  .back-btn { display: inline-flex; }
  .msg { max-width: 100%; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 90px minmax(0, 1fr) 30px; }
}
@media (max-width: 375px) {
  .content { padding: var(--s-3); }
  .detailcol { padding: var(--s-3); }
  .d-actions button, .composer .actions button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Two-factor page */
.mfa-page .card > * + * { margin-top: var(--s-2); }
.qr-box { background: #fff; padding: 8px; border-radius: var(--r-sm); width: 216px; max-width: 100%; margin: var(--s-2) 0; }
.qr-box svg { display: block; width: 100%; height: auto; }
.mfa-page .key { font-size: var(--fs-sm); letter-spacing: .04em; overflow-wrap: anywhere; background: var(--raised); padding: var(--s-2); border-radius: var(--r-sm); }
.codes { columns: 2; column-gap: var(--s-4); padding-left: 1.6em; font-size: var(--fs-sm); }
.mfa-page form label, #mfa label { display: block; margin-top: var(--s-2); }
.stack-form label { display: block; margin-top: var(--s-2); }
.stack-form input { width: 100%; }
.stack-form .row-flex { margin-top: var(--s-2); }
.notice input { width: 100%; margin: var(--s-2) 0; }

/* Source of an inbox item: real provider data vs simulated demo data (18 Nov 2026). */
.chip.src-real { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.chip.src-sim { background: transparent; color: var(--ink-3); border: 1px dashed var(--line); }
.row-item.real { box-shadow: inset 3px 0 0 var(--ok); }
.row-item.sim { box-shadow: inset 3px 0 0 transparent; }
.stack { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.row-flex.wrap { flex-wrap: wrap; }

/* admin screens: dialogs and branch check lists */
dialog.dlg { margin: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); width: min(480px, 92vw); max-height: 90vh; overflow-y: auto; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, 0.6); }
.check-list { display: flex; flex-direction: column; gap: var(--s-1); max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-2); margin-top: var(--s-1); }
.stack-form .check-row { display: flex; align-items: center; gap: var(--s-2); margin-top: 0; }
.stack-form .check-row input { width: 16px; flex: none; }
.stack-form select { width: 100%; }

.draft-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--s-2) 0; }
.draft-card { display: flex; flex-direction: column; gap: var(--s-1); }
.drafts { padding: 0 var(--s-3); }
.draft-card textarea { width: 100%; min-height: 80px; }

.workload { margin: var(--s-2); display: flex; flex-direction: column; gap: var(--s-1); }
.notes { padding: 0 var(--s-3); }
.notes textarea { width: 100%; min-height: 70px; }
button[aria-pressed=true].sm { background: var(--brand-soft); color: var(--brand); }

/* Public pages: homepage intro, privacy policy, terms */
.card.intro { max-width: 560px; }
.card.intro ul { padding-left: 1.2em; margin: var(--s-2) 0; }
.card.intro li { margin-bottom: var(--s-1); }
main.doc { max-width: 780px; margin: 0 auto; padding: var(--s-5) var(--s-4); }
main.doc h1 { margin-bottom: var(--s-1); }
main.doc h2 { font-size: var(--fs-lg, 1.1rem); margin: var(--s-5) 0 var(--s-2); }
main.doc p, main.doc li { line-height: 1.6; color: var(--ink-2); }
main.doc ul { padding-left: 1.2em; }
main.doc .confirm { border-left: 3px solid #E0A100; padding: var(--s-1) var(--s-3); background: rgba(224,161,0,.08); color: var(--ink); }
