/* Helpful Tech Board Hub. Calm, spacious, Hark-like: quiet type, soft paper
   gradient, white rounded action rows with a small neutral verb chip.
   Brand palette only. Large type and targets, AA contrast, visible focus. */
:root {
  --paper: #FBF7EE; --cream: #F2EBDD; --ink: #1C1A17; --ink-2: #4A4540; --ink-3: #6B645C;
  --terracotta: #C04A2E; --terracotta-ink: #9E3A22; --moss: #5C6F49; --moss-ink: #4A5A3B;
  --hair: rgba(28, 26, 23, .10); --hair-2: rgba(28, 26, 23, .18);
  --white: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 6px 24px rgba(28, 26, 23, .06);
  --focus: #1B4FD6; --r: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); min-height: 100vh;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 35%, var(--cream) 100%) fixed;
  font: 400 1.125rem/1.55 "IBM Plex Sans", system-ui, -apple-system, sans-serif; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, .brand, .oneliner { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: 2.25rem; line-height: 1.1; margin: 8px 0 10px; }
h2 { font-size: 1.55rem; line-height: 1.2; margin: 32px 0 12px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 9; }

/* Header: small wordmark, quiet account menu, a calm practice-mode line. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; max-width: 640px; margin: 0 auto; position: relative; }
.brand { font-size: 1.45rem; white-space: nowrap; text-decoration: none; }
.who { font-size: .95rem; color: var(--ink-2); }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 12px; border-radius: 999px; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: .95rem; }
.menu-body { position: absolute; right: 16px; top: 60px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; z-index: 5; min-width: 230px; border: 1px solid var(--hair); }
.menu-body p { margin: 0 0 8px; }
.testbar { max-width: 640px; margin: 2px auto 0; padding: 0 20px; font-size: 1rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.testbar[hidden] { display: none; }
.testbar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); flex: none; }
.testbar strong { color: var(--ink); font-weight: 600; }

main { padding: 8px 20px 120px; max-width: 640px; margin: 0 auto; }
main:focus { outline: none; }
.lede { font-size: 1.125rem; color: var(--ink-2); margin: 0 0 18px; }
.muted { color: var(--ink-2); font-size: 1.02rem; }
.small { font-size: 1rem; }
.eyebrow { font-size: 1rem; color: var(--ink-3); letter-spacing: .02em; margin: 18px 0 0; }

/* Action rows: white, rounded, hairline, a neutral chip with the verb. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow);
  text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.row:hover { background: #fff; }
.row .text { flex: 1; min-width: 0; line-height: 1.4; }
.row .due { display: block; font-size: .95rem; color: var(--ink-3); margin-top: 2px; }
.verb { flex: none; display: inline-block; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--hair-2);
  background: var(--paper); color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.5; white-space: nowrap; }
.verb.calm { color: var(--moss-ink); }
.verb.quiet { color: var(--ink-2); }
.row.agenda-row .n { color: var(--ink-3); min-width: 1.4em; font-variant-numeric: tabular-nums; }

/* Quiet panels instead of heavy outlined cards. */
.card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.agent { background: transparent; border: 0; box-shadow: none; padding: 4px 0; margin-top: 28px; }
.agent-says { display: flex; gap: 12px; align-items: flex-start; }
.agent-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--moss); margin-top: 11px; }
.agent-says h2 { font-size: 1.35rem; margin: 0 0 4px; }
.banner { border-radius: 16px; padding: 14px 16px; margin: 14px 0; background: var(--white); border: 1px solid var(--hair); }
.banner strong { display: block; margin-bottom: 2px; }
.banner.warn { border-left: 4px solid var(--terracotta); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-size: .9rem; font-weight: 500; border: 1px solid var(--hair); }

/* Buttons: pill shapes. Primary is ink; secondary is white with a hairline. */
button, .button { font: inherit; font-weight: 500; min-height: 54px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.secondary, .button.secondary { background: #fff; color: var(--ink); border-color: var(--hair-2); }
button.go { background: var(--ink); border-color: var(--ink); }
button.big, .button.big { width: 100%; font-size: 1.15rem; min-height: 58px; }
button[disabled] { opacity: .45; cursor: not-allowed; }
button[aria-busy=true] { cursor: progress; }
.actions { display: grid; gap: 10px; margin: 16px 0; }
.actions.three { grid-template-columns: .72fr 1fr 1.25fr; }
.actions.three > button { min-width: 0; padding-inline: 8px; font-size: .95rem; }
.actions.two { grid-template-columns: repeat(2, 1fr); }
button.pressed { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.pressed::before { content: "✓"; }

details { background: var(--white); border: 1px solid var(--hair); border-radius: 16px; margin: 10px 0; }
details > summary { list-style: none; cursor: pointer; padding: 15px 16px; min-height: 54px; display: flex; gap: 10px; align-items: baseline; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; margin-left: auto; padding-left: 8px; color: var(--ink-3); font-size: 1.2rem; line-height: 1; }
details[open] > summary::after { content: "−"; }
details > .body { padding: 0 16px 16px; }
.agenda .n { color: var(--ink-3); min-width: 1.4em; }

.exact { font: 1rem/1.65 "IBM Plex Sans", sans-serif; color: var(--ink); padding: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.exact .br { background: #F6E7B8; border-radius: 3px; padding: 0 2px; }
.oneliner { font-size: 1.9rem; line-height: 1.22; margin: 6px 0 18px; }
progress.bar { width: 100%; height: 6px; margin: 10px 0 4px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: rgba(28,26,23,.08); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: rgba(28,26,23,.08); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--moss); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--moss); }

label { display: block; font-weight: 500; margin: 14px 0 6px; }
textarea, input[type=text] { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--hair-2); border-radius: 16px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 16px; background: var(--white); margin: 10px 0; font-weight: 400; }
.check input { width: 26px; height: 26px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }

.tally { font-size: 1.15rem; font-weight: 500; }
.ok { color: var(--moss-ink); } .no { color: var(--terracotta-ink); }
.status { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 600px; margin: 0 auto; background: var(--ink); color: var(--paper);
  padding: 14px 18px; border-radius: 16px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow); }
.status.show { opacity: 1; }
.status.err { background: var(--terracotta-ink); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: 0; color: var(--ink-2); text-decoration: none; }
.sources { font-size: .95rem; color: var(--ink-3); }
.footlink { margin-top: 32px; font-size: 1rem; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 24px 0; }

/* utility classes (inline style attributes are blocked by the page's CSP) */
.m0 { margin: 0; } .m0b4 { margin: 0 0 4px; } .m0b6 { margin: 0 0 6px; } .mt4 { margin: 4px 0 0; } .mt6 { margin: 6px 0 0; }
.mt8 { margin: 8px 0 0; } .mt10 { margin: 10px 0 0; } .mt12b4 { margin: 12px 0 4px; } .pl14 { padding-left: 0; } .h-sm { font-size: 1.5rem; }
.menu { background: transparent; border: 0; margin: 0; }
.menu > summary { padding: 4px; min-height: 44px; }
.menu > summary::after { content: none; }
.section-head { font: 500 1.05rem/1.4 "IBM Plex Sans", sans-serif; color: var(--ink-2); margin: 2px 0 6px; }
.pager { display: flex; justify-content: space-between; margin: 22px 0 0; }
.pager a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--ink-2); }
.actions.two button, .actions.three button { padding-left: 12px; padding-right: 12px; }
.agenda details { margin: 0; }

/* Consultation controls reuse the existing spacing and type. */
.consultation-item fieldset { border: 0; margin: 0; padding: 0; }
.consultation-item .actions.three > label { min-width: 0; padding-inline: 6px; font-size: .9rem; margin: 0; text-align: center; }
.consultation-item input[type=radio] { margin: 0 2px 0 0; }

.consultation-item .actions.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.consultation-item .actions.three > label { flex-direction: column; gap: 4px; font-size: .85rem; }
.consultation-item textarea { min-height: 64px; }
