/* Pages around Ali's hub. Colours, type and components come from the hub's own stylesheet. */
.ts-user { display: flex; align-items: center; gap: 8px; font-size: .875rem; white-space: nowrap; }
.ts-user a { color: inherit; text-decoration: none; font-weight: 600; }
.ts-user form { margin: 0; }
.ts-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--navy-ink); text-decoration: none; font-size: .9375rem; }
.ts-nav:hover, .ts-nav:focus-visible { background: var(--navy-2); color: var(--navy-ink); }
.ts-nav { transition: background-color .12s ease; }
.ts-nav svg { flex: none; opacity: .8; }

.ts-page { min-height: 100vh; }
/* padding-block only: the side padding (clamp(16px, 3vw, 36px)) comes from the hub's .content rule, so the pages
   keep the same gutter as the hub and the reviewer page instead of running into the side rail */
.ts-shell .ts-main { max-width: 1040px; margin: 0; padding-block: 4px 56px; display: grid; gap: 20px; }
.ts-shell .ts-main > * { min-width: 0; }  /* a wide table scrolls in its .ts-scroll box, not the page */
/* a word longer than its line (a table's name, a pattern, a web address) breaks at the edge of its box and does not
   run out of it. A table keeps its width, and scrolls in its .ts-scroll box as before */
.ts-main { overflow-wrap: break-word; }
.panel[id] { scroll-margin-top: 64px; }  /* /admin#intercom and the like: not under the sticky top bar */
.ts-masked { -webkit-text-security: disc; text-security: disc; }  /* a key field that password managers leave alone */
.ts-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* read by screen readers, not shown */
.ts-nav[aria-current="page"] { background: var(--navy-2); font-weight: 600; }
/* the menu's areas (app/sitemap.py): a small heading over each group of pages */
.ts-navacct { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.ts-area-tabs { margin-top: 0; }
.ts-navh { margin: 14px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.ts-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; }
.ts-crumbs a { color: var(--accent-text, var(--accent)); text-decoration: none; }
.ts-crumbs a:hover { text-decoration: underline; }
.ts-files .ts-kind { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 999px; background: var(--navy-2); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ts-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 24px; background: var(--navy); color: var(--navy-ink); }
.ts-bar form { margin: 0; }
.ts-brand { display: block; line-height: 0; }
.ts-brand img { height: 40px; width: auto; }
.ts-links { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.ts-links a { color: var(--navy-ink); text-decoration: none; font-size: .9375rem; opacity: .85; }
.ts-links a:hover { opacity: 1; text-decoration: underline; }
.ts-who { font-size: .875rem; color: var(--navy-muted); }
.ts-h1 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.2; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.ts-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ts-field { display: grid; gap: 6px; margin-top: 12px; font-size: .875rem; font-weight: 600; min-width: 0; }
.ts-field .input, .ts-field textarea { font-weight: 400; width: 100%; max-width: 100%; min-width: 0; }
.ts-field textarea { font-family: inherit; line-height: 1.5; resize: vertical; }
.ts-check { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ts-form { display: grid; gap: 18px; }
.ts-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.ts-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ts-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.ts-grid > *, .ts-inline > * { min-width: 0; }
.ts-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ts-table th, .ts-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ts-table .ts-off td { opacity: .5; }
.ts-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }  /* on a div, span, p or form: never on a td, which must stay a table cell */
.ts-row-actions form { margin: 0; }
/* wide tables scroll inside their box on phones instead of crushing every column to one word a line; the headings of
   a scrolling table stay on one line */
.ts-scroll .ts-table th, .tablewrap .ts-table th { white-space: nowrap; }
.ts-accounts { min-width: 760px; }
.ts-cv-list { min-width: 540px; }
.ts-fields { min-width: 640px; }
.ts-scroll .hz-table { min-width: 640px; }
.ts-map { width: 100%; border-collapse: collapse; }
.ts-map th, .ts-map td { padding: 6px 8px; text-align: left; }
.ts-map td:last-child { width: 100%; }
.ts-log { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .875rem; }
.ts-log li { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.ts-log form { margin: 0; }
.ts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ts-list li { display: flex; justify-content: space-between; gap: 12px; }
.ts-error { color: var(--bad, #a33); font-weight: 600; margin-top: 8px; }
.ts-ok { border-color: var(--ok, #2a7); }
.ts-code { font-size: 1rem; padding: 2px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; user-select: all; }
.ts-card { max-width: 420px; }
/* sign-in page: the site's mark and a touchstone on the left, the form on the right; one column on phones */
.ts-login { background: var(--bg); }
.ts-login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ts-login-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px clamp(24px, 4vw, 56px);
  background:
    radial-gradient(90% 70% at 12% 88%, rgba(212, 169, 78, .16), transparent 58%),
    var(--navy);
  color: var(--navy-ink); border-right: 1px solid var(--side-edge); }
.ts-login-side::before { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; bottom: -140px; pointer-events: none;
  background: radial-gradient(circle, rgba(242, 210, 122, .18), transparent 68%); animation: ts-glow 8s ease-in-out infinite; }
.ts-login-side > * { position: relative; z-index: 1; }
.ts-mark { display: grid; gap: 4px; }
.ts-mark b { letter-spacing: .16em; font-size: 1.125rem; font-weight: 600; }
.ts-mark span { font-size: .875rem; color: var(--navy-muted); }
.ts-login-pitch { display: grid; gap: 18px; max-width: 420px; }
.ts-login-pitch .ts-hand { margin-bottom: 12px; }
/* partner logos: white versions on the dark panel; on the light page (phones) they are shown dark */
.ts-partners { display: grid; gap: 14px; }
.ts-partners-label { margin: 0; font-size: .8125rem; color: var(--navy-muted); letter-spacing: .01em; }
.ts-partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.ts-partner-list a { display: block; line-height: 0; border-radius: 4px; opacity: .82; transition: opacity .15s ease; }
.ts-partner-list a:hover, .ts-partner-list a:focus-visible { opacity: 1; }
.ts-partner { display: block; height: 27px; width: auto; }
.ts-partner.is-mark { height: 38px; }
.ts-partner.is-tall { height: 62px; }
.ts-partners.on-light { display: none; }
.ts-login-claim { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; font-weight: 500; color: var(--navy-ink); text-wrap: balance; }
/* the TOUCHSTONE mark: it draws itself from the wrist up, waves, catches the light, and turns towards the pointer */
.ts-hand { position: relative; width: clamp(170px, 17vw, 248px); aspect-ratio: 1; cursor: default; -webkit-tap-highlight-color: transparent;
  transform: perspective(800px) rotateX(calc(var(--ty, 0) * -9deg)) rotateY(calc(var(--tx, 0) * 11deg)); will-change: transform; }
.ts-hand::before { content: ""; position: absolute; inset: 6%; border-radius: 42%; pointer-events: none; filter: blur(26px);
  background: radial-gradient(circle at 46% 58%, rgba(242, 210, 122, .30), transparent 70%); animation: tsh-aura 1.4s ease-out .9s both; }
.tsh { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 26px rgba(3, 10, 16, .38));
  animation: tsh-float 7s ease-in-out 3.3s 4; }
.tsh-stone { transform-box: view-box; transform-origin: 100px 104px; animation: tsh-stone .75s cubic-bezier(.2, .8, .2, 1) both; }
.tsh-c { opacity: 1; stroke-dasharray: var(--l) 400; stroke-dashoffset: 0; animation: tsh-rub .5s cubic-bezier(.25, .8, .3, 1) var(--d) both; }
.tsh-dot { transform-box: view-box; transform-origin: 168.9px 76.1px; opacity: 1; animation: tsh-pop .45s cubic-bezier(.3, 1.5, .5, 1) var(--d) both; }
.tsh-par { transform: translate(calc(var(--tx, 0) * 3px), calc(var(--ty, 0) * 3px)); }
.tsh-wave { transform-box: view-box; transform-origin: 114px 204px; animation: tsh-wave 1.1s ease-in-out 2.15s; }
.tsh-glow { animation: tsh-aura 1s ease-out 1.35s both; }
.tsh-halo { opacity: .3; animation: tsh-halo 6s ease-in-out 2.35s 5; }
.tsh-ready { opacity: 0; transition: opacity .7s ease; }
.ts-hand.is-ready .tsh-ready { opacity: .75; }
.tsh-sheen { animation: tsh-sheen 8s ease-in-out 1.25s 4; }
.ts-hand.is-in .tsh-wave { animation: none; }
.ts-hand.is-in.is-waving .tsh-wave { animation: tsh-wave-again 1s ease-in-out; }
.ts-hand.is-error .tsh-stone, .ts-hand.is-error .tsh-c, .ts-hand.is-error .tsh-dot, .ts-hand.is-error .tsh-wave, .ts-hand.is-error::before, .ts-hand.is-error .tsh-glow { animation: none; }
.ts-hand.is-error .tsh { animation: tsh-shake .6s cubic-bezier(.36, .07, .19, .97) .2s, tsh-float 7s ease-in-out 1.4s 4; }
.ts-hand.is-error .tsh-halo { animation-delay: .9s; }
.ts-hand.is-error .tsh-sheen { animation-delay: 1s; }
.ts-hand.is-busy .tsh-c, .ts-hand.is-busy .tsh-dot { animation: tsh-busy 1s ease-in-out calc(var(--k) * 60ms) infinite; }
@keyframes tsh-stone { from { opacity: 0; transform: translateY(8px) scale(.86); } }
@keyframes tsh-rub { 0% { opacity: 0; stroke-dasharray: var(--l) 400; stroke-dashoffset: var(--l); } 1% { opacity: 1; } 100% { opacity: 1; stroke-dasharray: var(--l) 400; stroke-dashoffset: 0; } }
@keyframes tsh-pop { from { opacity: 0; transform: scale(0); } }
@keyframes tsh-aura { from { opacity: 0; } }
@keyframes tsh-halo { 0%, 100% { opacity: .3; } 50% { opacity: .65; } }
@keyframes tsh-sheen { 0% { transform: translateX(-92px); } 16%, 100% { transform: none; } }
@keyframes tsh-wave { 0%, 100% { transform: none; } 18% { transform: rotate(-5deg); } 42% { transform: rotate(4deg); } 66% { transform: rotate(-2.5deg); } 86% { transform: rotate(1deg); } }
@keyframes tsh-wave-again { 0%, 100% { transform: none; } 18% { transform: rotate(-5deg); } 42% { transform: rotate(4deg); } 66% { transform: rotate(-2.5deg); } 86% { transform: rotate(1deg); } }
@keyframes tsh-float { 0%, 100% { transform: none; } 50% { transform: translateY(-2.5%); } }
@keyframes tsh-busy { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes tsh-shake { 0%, 100% { transform: none; } 15% { transform: translateX(-4%); } 32% { transform: translateX(3.5%); } 50% { transform: translateX(-2.5%); } 68% { transform: translateX(1.5%); } 84% { transform: translateX(-.5%); } }
@keyframes ts-glow { 0%, 100% { transform: translate3d(0, 0, 0); opacity: .7; } 50% { transform: translate3d(-18px, -12px, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ts-login-side::before, .ts-hand::before, .tsh, .tsh-stone, .tsh-c, .tsh-dot, .tsh-wave, .tsh-glow, .tsh-halo, .tsh-sheen, .ts-login-form { animation: none !important; }
  .ts-hand { transform: none; }
}
/* .ts-login-note, not .ts-note: that name is a check level on /plan (.ts-checks .ts-note), and this rule's muted colour
   and the phone rule below (display: none) used to hide those warnings */
.ts-login-note { font-size: .875rem; color: var(--navy-muted); }
.ts-login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px;
  background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--bg); }
.ts-login-form { width: 100%; max-width: 420px; display: grid; gap: 18px; padding: 36px 36px 28px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(18, 39, 58, .05), 0 22px 48px -24px rgba(18, 39, 58, .28);
  animation: ts-sign .8s cubic-bezier(.2, .8, .2, 1) both; }
.ts-login-form:has(.ts-msg) { animation: none; }
@keyframes ts-sign { from { opacity: 0; transform: translateY(14px); } }
.ts-login-head { display: grid; gap: 6px; }
.ts-login-head h1 { font-size: 1.875rem; letter-spacing: -.015em; }
.ts-login-kicker { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.ts-f { display: grid; gap: 6px; }
.ts-f label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.ts-login-form .input { min-height: 44px; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.ts-login-form .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #1f7a6b) 28%, transparent); }
.ts-pw { position: relative; }
.ts-pw .input { padding-right: 76px; }
.ts-pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 32px; padding: 4px 10px; border: 0;
  border-radius: var(--radius-sm); background: transparent; color: var(--accent-text); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ts-pw-toggle:hover { background: var(--accent-soft); }
.ts-caps { font-size: .8125rem; font-weight: 600; color: var(--wait); }
.ts-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .875rem; line-height: 1.45; color: var(--ink); }
.ts-msg svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ts-msg.bad { background: var(--bad-soft); border-color: var(--bad); }
.ts-msg.bad svg { color: var(--bad); }
.ts-msg.good { background: var(--good-soft); }
.ts-msg.good svg { color: var(--good); }
.ts-msg.info { background: var(--surface-2); }
.ts-keep-wrap { display: grid; gap: 4px; }
.ts-keep { display: flex; gap: 10px; align-items: center; font-size: .875rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.ts-keep input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.ts-keep-note { padding-left: 28px; font-size: .8125rem; color: var(--muted); }
.ts-submit { width: 100%; min-height: 48px; font-size: 1rem; font-weight: 600; border-radius: 10px; }
.ts-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (max-width: 860px) {
  .ts-login-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ts-login-side { flex-direction: row; align-items: center; gap: 16px; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--side-edge); }
  .ts-login-claim, .ts-login-note, .ts-partners.on-dark { display: none; }
  .ts-partners.on-light { display: grid; justify-items: center; text-align: center; gap: 12px; margin-top: 8px; }
  .ts-partners.on-light .ts-partners-label { color: var(--muted); font-size: .75rem; }
  .ts-partners.on-light .ts-partner-list { justify-content: center; gap: 12px 16px; }
  .ts-partners.on-light .ts-partner { filter: brightness(0); opacity: .6; height: 19px; }
  .ts-partners.on-light .ts-partner.is-mark { height: 26px; }
  .ts-partners.on-light .ts-partner.is-tall { height: 40px; }
  .ts-login-pitch .ts-hand { margin-bottom: 0; }
  .ts-login-pitch { max-width: none; }
  .ts-hand { width: 64px; }
  .tsh { filter: drop-shadow(0 6px 10px rgba(3, 10, 16, .35)); }
  .ts-login-main { justify-content: flex-start; padding: 24px 16px 40px; }
  .ts-login-form { padding: 24px 20px 20px; border-radius: 14px; }
}

/* reviewer page (/review): a guided read of the application, one step at a time.
   Colours come from the hub's tokens, so light and dark follow the hub; the gold is the TOUCHSTONE mark's. */
:root { --rv-gold: #9a6a12; --rv-gold-soft: #fbf4e4; --rv-gold-line: #ecdcb8; --rv-gold-mark: #e2b955; --rv-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --rv-gold: #e8bd64; --rv-gold-soft: #261f10; --rv-gold-line: #4a3c1c; }
}
:root[data-theme="dark"] { --rv-gold: #e8bd64; --rv-gold-soft: #261f10; --rv-gold-line: #4a3c1c; }

.rv-logo { display: block; padding: 0 6px 6px; }
.rv-logo img { width: 100%; max-width: 210px; height: auto; display: block; }
.rv-where { font-size: .875rem; color: var(--muted); }
.rv .rv-i { flex: none; display: block; }

/* shell: side rail with progress, top bar with the position in the path */
.rv .content { max-width: 1160px; padding-block: 32px 72px; gap: 0; }
.rv-side { gap: 18px; }
.rv-side .nav-btn { gap: 12px; padding: 9px 10px; line-height: 1.3; transition: background-color .12s ease; }
.rv-side .nav-btn[aria-current] { background: var(--navy-3); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rv-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; font-size: .75rem; font-weight: 600;
  background: var(--navy-2); color: var(--navy-ink); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .2s ease; }
.rv-side .nav-btn[aria-current] .rv-num { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.rv-nav-t { min-width: 0; }
.rv-side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.rv-side-foot .rv-print { color: var(--navy-muted); font-size: .875rem; }
.rv-side-foot .rv-print:hover { color: var(--navy-ink); }
.rv-side-foot p { margin: 0; padding: 0 10px; font-size: .75rem; line-height: 1.5; color: var(--navy-muted); opacity: .85; }
/* the foot of the reviewer rail (print, note, partner logos) stays in view at the bottom left on any screen height */
.rv-side-foot { position: sticky; bottom: -18px; z-index: 1; margin-bottom: -18px; padding-bottom: 14px; background: var(--navy); }
.rv-partners { padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.rv-side-foot .rv-partners-label { margin: 0 0 10px; padding: 0; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-muted); opacity: 1; }
.rv-partners ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px 26px; align-items: center; }
.rv-partners li { display: flex; align-items: center; height: 38px; }
.rv-partners a { display: block; line-height: 0; border-radius: 4px; opacity: .78; transition: opacity .15s ease; }
.rv-partners a:hover, .rv-partners a:focus-visible { opacity: 1; }
.rv-partner { display: block; width: auto; max-width: 100%; height: 17px; }
.rv-partner.is-tall { height: 36px; }
.rv-partner.is-mark { height: 20px; }
@media print { .rv-partners { display: none; } }
.rv-top { position: sticky; }
.rv-pos { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.rv-pos i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.rv .view { gap: 24px; }
.rv-enter { animation: rv-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rv-in { from { opacity: 0; transform: translateY(6px); } }

/* building blocks */
.rv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rv-radius); padding: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 1px 2px rgba(18, 39, 58, .04); min-width: 0; }
.rv-card h2 { margin: 0; }
.rv-team-note { border-style: dashed; }
.rv-pill { display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 999px; background: var(--wait-soft, #fbeccd); font-size: .8125rem; }
.rv-notes { padding: 20px 24px; border: 1px dashed var(--line-strong); border-radius: var(--rv-radius); background: var(--surface); }
.rv-notes h2 { margin: 0; font-size: 1rem; }
.rv-foot { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

/* step heading */
.rv-head { display: grid; gap: 10px; }
.rv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .8125rem; color: var(--muted); }
.rv-stepno { color: var(--accent-text); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.rv-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.rv-time { display: inline-flex; align-items: center; gap: 5px; }
.rv-head h1 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
.rv-lede { margin: 0; max-width: 68ch; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.rv-source { display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin: 4px 0 0; padding: 4px 12px 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.rv-source .rv-i { color: var(--accent-text); }

/* start: the cover */
.rv-cover { gap: 28px; }
.rv-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; padding: clamp(26px, 4.4vw, 56px); color: var(--navy-ink);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(226, 185, 85, .20), transparent 60%),
    radial-gradient(60% 85% at 0% 100%, rgba(14, 113, 116, .38), transparent 65%),
    var(--navy);
  box-shadow: 0 1px 2px rgba(18, 39, 58, .1), 0 18px 40px -18px rgba(18, 39, 58, .45); }
.rv-hero-text { display: grid; gap: 14px; max-width: 760px; }
.rv-hero-kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rv-gold-mark); }
.rv-hero h1 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.22; letter-spacing: -.015em; }
.rv-sv { margin: 0; font-style: italic; color: var(--navy-muted); line-height: 1.5; }
.rv-hero-lede { margin: 6px 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--navy-ink); max-width: 64ch; }
.rv-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
.rv .rv-begin { min-height: 46px; padding: 10px 20px; border-radius: 10px; font-size: .9375rem; font-weight: 600; background: var(--rv-gold-mark); border-color: var(--rv-gold-mark); color: #1d1608; }
.rv .rv-begin:hover { color: #1d1608; filter: brightness(1.06); }
.rv-hero-meta { font-size: .875rem; color: var(--navy-muted); }
.rv-cover-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.rv-cover-path h2, .rv-cover-dates h2 { font-size: 1.0625rem; margin: 0 0 12px; }
.rv-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-path button { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rv-radius); color: inherit; font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rv-path button:hover, .rv-path button:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.rv-path-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.rv-path-t { display: grid; gap: 2px; min-width: 0; }
.rv-path-t b { font-size: .96875rem; }
.rv-path-t span { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.rv-path-m { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.rv-path button:hover .rv-path-m { color: var(--accent-text); }
.rv-provenance { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2);
  color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.rv-provenance .rv-i { margin-top: 2px; color: var(--accent-text); }

/* dates as a timeline; the deadlines are marked in gold */
.rv-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.rv-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.rv-timeline li { position: relative; display: grid; gap: 1px; padding: 0 0 14px 24px; }
.rv-timeline li:last-child { padding-bottom: 0; }
.rv-timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.rv-timeline li.is-key::before { background: var(--rv-gold-mark); border-color: var(--rv-gold-mark); box-shadow: 0 0 0 3px var(--rv-gold-soft); }
.rv-timeline time { font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.rv-timeline span { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.rv-timeline-wide { columns: 2 320px; column-gap: 40px; }
.rv-timeline-wide::before { display: none; }
.rv-timeline-wide li { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: baseline; break-inside: avoid; padding-bottom: 12px;
  border-left: 2px solid var(--line); margin-left: 5px; padding-left: 19px; }
.rv-timeline-wide li::before { left: -7px; }
.rv-dates-card h2 { font-size: 1.0625rem; margin-bottom: 16px; }

/* rows: the heading on the left, the application text on the right */
.rv-rows { padding: 0; }
.rv-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 12px 36px; padding: 24px 28px; }
.rv-row + .rv-row { border-top: 1px solid var(--line); }
.rv-row h2 { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.rv-row p { margin: 0; max-width: 72ch; font-size: 1rem; line-height: 1.75; color: var(--ink); }

/* step 1 */
.rv-figure { margin: 0; padding: 14px; }
.rv-figure-img { overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.rv-figure-img img { display: block; width: 100%; height: auto; }
.rv-figure figcaption { padding: 12px 6px 2px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.rv-callout { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 24px; border-radius: var(--rv-radius);
  background: var(--rv-gold-soft); border: 1px solid var(--rv-gold-line); }
.rv-callout-mark { width: 52px; height: 52px; display: block; }
.rv-callout h2 { margin: 2px 0 4px; font-size: 1rem; color: var(--rv-gold); }
.rv-callout p { margin: 0; line-height: 1.65; color: var(--ink); }

/* step 2: the main project as a document */
.rv-doc { max-width: 840px; padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 56px); }
.rv-doc section + section { margin-top: 26px; }
.rv-doc h2 { margin: 0 0 8px; font-size: 1.125rem; }
.rv-doc p { margin: 0 0 1.05em; max-width: 68ch; font-size: 1.0625rem; line-height: 1.78; color: var(--ink); }
.rv-doc p:last-child { margin-bottom: 0; }
.rv-doc > section:first-child > p:first-of-type { font-size: 1.1875rem; line-height: 1.66; }

/* step 3: the call */
.rv-call { max-width: 920px; padding: 0; overflow: hidden; }
.rv-call-head { display: grid; gap: 12px; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(20px, 2.6vw, 26px); color: var(--navy-ink);
  background: radial-gradient(80% 120% at 100% 0%, rgba(226, 185, 85, .16), transparent 60%), var(--navy); }
.rv-code { justify-self: start; max-width: 100%; overflow-wrap: anywhere; padding: 4px 10px; border-radius: 6px; font: 500 .8125rem/1.45 var(--mono); letter-spacing: .02em;
  color: var(--rv-gold-mark); background: rgba(255, 255, 255, .06); border: 1px solid rgba(226, 185, 85, .32); }
.rv .rv-call-head h2 { color: #fff; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.38; }
.rv-call-body { padding: clamp(20px, 3vw, 30px); }
.rv-call-body p { margin: 0 0 18px; max-width: 72ch; line-height: 1.78; font-size: 1rem; }
.rv-call-body p:last-child { margin-bottom: 0; }
.rv-ext { gap: 8px; }

/* step 4: work packages */
.rv-wpnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rv-wpnav button { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--rv-radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem; line-height: 1.4; text-align: left; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rv-wpnav button:hover, .rv-wpnav button:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.rv-wpnav b { padding: 2px 9px; border-radius: 6px; background: var(--navy); color: var(--navy-ink); font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.rv-wpnav span { font-weight: 500; }
.rv-wp { padding: 0; overflow: hidden; scroll-margin-top: 72px; }
.rv-wp-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rv-wp-n { flex: none; display: grid; place-items: center; min-width: 52px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--navy);
  color: var(--navy-ink); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; }
.rv-wp-head h2 { font-size: 1.125rem; }
.rv-wp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.rv-wp-body > section { padding: 20px 24px 22px; min-width: 0; }
.rv-wp-body > section + section { border-left: 1px solid var(--line); }
.rv-wp h3 { margin: 0 0 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-wp-act p { margin: 0; font-size: .9375rem; line-height: 1.72; color: var(--ink-2); }
.rv-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-dl li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: .9375rem; line-height: 1.62; color: var(--ink-2); }
.rv-dl li > span:only-child { grid-column: 1 / -1; }
.rv-dcode { padding: 1px 0; border-radius: 5px; text-align: center; font: 600 .75rem/1.55 var(--mono); color: var(--accent-text); background: var(--accent-soft); }
.rv-accept { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--good-soft); font-size: .875rem; line-height: 1.6; color: var(--ink); }
.rv-accept b { display: block; margin-bottom: 2px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--good); }
.rv-wp-who { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px 24px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.rv-wp-who-i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.rv-wp-who h3 { margin: 0 0 4px; }
.rv-wp-who p { margin: 0; max-width: 110ch; font-size: .875rem; line-height: 1.65; color: var(--ink-2); }

/* step 5: the team */
.rv-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.rv-person { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--rv-radius);
  background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rv-person:hover, .rv-person:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.rv-person-img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.rv-initials { display: grid; place-items: center; background: var(--navy-2); color: var(--navy-ink); font-weight: 600; letter-spacing: .04em; }
.rv-person-t { display: grid; gap: 1px; min-width: 0; }
.rv-person-t b { font-size: .9375rem; line-height: 1.3; }
.rv-person-t small { font-size: .78rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-tag-adv { justify-self: start; margin-top: 3px; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: .6875rem; font-weight: 600;
  background: var(--wait-soft); color: var(--wait); }
.rv-matrix-card { padding: 0; overflow: hidden; }
.rv-card-head { padding: 18px 24px 14px; }
.rv-card-head h2 { font-size: 1.0625rem; }
.rv-matrix-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.rv-matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .875rem; }
.rv-matrix th, .rv-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.rv-matrix thead th { background: var(--surface-2); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.rv-matrix th[scope="row"], .rv-matrix thead th:first-child { width: 32%; padding-left: 24px; text-align: left; font-weight: 400; }
.rv-matrix th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.rv-matrix thead th:first-child { position: sticky; left: 0; z-index: 2; }
.rv-matrix tbody tr:hover th, .rv-matrix tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.rv-matrix .tm-who { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rv-matrix .tm-who b { display: block; font-weight: 600; }
.rv-matrix .tm-who small { display: block; font-size: .75rem; line-height: 1.35; color: var(--muted); }
.rv-matrix .tm-who:hover b { color: var(--accent-text); text-decoration: underline; }
.rv-matrix .avatar.sm { object-position: center 25%; }
.rv-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 14px 24px 18px; font-size: .8125rem; color: var(--ink-2); }
.rv-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rv-legend .rl { cursor: default; }
.rv-profiles { display: grid; gap: 18px; }
.rv-profile { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; scroll-margin-top: 72px; }
.rv-pf-photo { display: block; width: 168px; height: 168px; border-radius: var(--rv-radius); object-fit: cover; object-position: center 25%; font-size: 2.5rem; }
.rv-pf-main { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rv-pf-main h2 { font-size: 1.5rem; letter-spacing: -.01em; }
.rv-pf-main p { margin: 0; }
.rv-pf-post { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.rv-pf-post span { display: block; color: var(--muted); font-size: .875rem; }
.rv-pf-note { font-size: .875rem; color: var(--muted); }
.rv-pf-main h3 { margin: 0 0 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-app { display: grid; gap: 14px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-app p { font-size: .9375rem; line-height: 1.68; color: var(--ink-2); }
.rv-app p + p { margin-top: 8px; }
.rv-app-why { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); }
.rv-app-why h3 { color: var(--accent-text); }
.rv .rv-app-why p { color: var(--ink); }
.rv-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.rv-more summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.rv-more > * + * { margin-top: 12px; }
.rv-flash { animation: rv-flash 1.6s ease-out; }
@keyframes rv-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* the way on, and the end */
.rv-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 24px;
  border-top: 1px solid var(--line); }
.rv-pg { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--ink-2); font: inherit; font-weight: 600; font-size: .9375rem; text-align: left; cursor: pointer; transition: background-color .15s ease, filter .15s ease; }
.rv-pg span { display: grid; gap: 1px; }
.rv-pg small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.rv-pg-prev:hover, .rv-pg-prev:focus-visible { background: var(--surface-2); color: var(--ink); }
.rv-pg-next { margin-left: auto; padding: 12px 18px 12px 22px; background: var(--accent); color: var(--accent-ink); text-align: right; }
.rv-pg-next small { color: inherit; opacity: .8; }
.rv-pg-next:hover, .rv-pg-next:focus-visible { filter: brightness(1.07); }
.rv-end { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--rv-radius);
  background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 25%, transparent); }
.rv-end h2 { margin: 0 0 2px; font-size: 1.125rem; }
.rv-end p { margin: 0; color: var(--ink-2); }
.rv-end-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-end-actions .btn { margin: 0; padding-inline: 14px; }

@media (max-width: 1100px) {
  .rv-cover-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-wp-body { grid-template-columns: minmax(0, 1fr); }
  .rv-wp-body > section + section { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .rv .content { padding-block: 20px 56px; }
}
@media (max-width: 720px) {
  .rv-profile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rv-pf-photo { width: 96px; height: 96px; font-size: 1.75rem; }
  .rv-end { grid-template-columns: minmax(0, 1fr); }
  .rv-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 18px; }
  .rv-timeline-wide li { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .rv-path button { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 14px; }
  .rv-path-n { width: 32px; height: 32px; }
  .rv-path-m { display: none; }
  .rv-hero { border-radius: 14px; }
  .rv-lede { font-size: 1.0625rem; }
  .rv-doc p { font-size: 1rem; line-height: 1.72; }
  .rv-doc > section:first-child > p:first-of-type { font-size: 1.0625rem; }
  .rv-wp-head, .rv-wp-body > section, .rv-wp-who { padding-inline: 18px; }
  .rv-callout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .rv-callout-mark { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .rv-top .ts-name { display: none; }
  .rv-pg-next { width: 100%; justify-content: space-between; }
  .rv-people { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-enter, .rv-flash { animation: none; }
  .rv-path button, .rv-person, .rv-pg, .rv-wpnav button, .rv-pos i { transition: none; }
  .rv-path button:hover, .rv-person:hover, .rv-wpnav button:hover { transform: none; }
}
@media print {
  .rv .view[hidden] { display: grid !important; }
  .rv .view { gap: 14px; break-before: page; animation: none; }
  .rv .view.rv-cover { break-before: auto; }
  .rv .content { max-width: none; padding: 0; }
  .rv-pager, .rv-wpnav, .rv-end, .rv-notes, .rv-pos, .rv-hero-cta, .rv-path-m, .rv-team-note { display: none !important; }
  .rv-hero, .rv-call-head, .rv-wp-n, .rv-dcode, .rv-accept, .rv-app-why, .rv-callout, .rv-timeline li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rv-card, .rv-hero { box-shadow: none; }
  .rv-row, .rv-profile, .rv-person, .rv-figure, .rv-dl li, .rv-callout { break-inside: avoid; }
  .rv-wp-body { grid-template-columns: minmax(0, 1fr); }
  .rv-wp-body > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .rv-matrix-wrap { overflow: visible; }
  .rv-matrix { min-width: 0; }
  .rv-matrix th[scope="row"] { position: static; }
  .rv-foot { display: block; }
}
.ts-conflict { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ts-conflict h4 { margin: 8px 0 6px; font-size: .875rem; }
.ts-text { white-space: pre-wrap; font: inherit; font-size: .875rem; line-height: 1.55; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 320px; overflow: auto; margin: 0 0 8px; }

/* Inbox (/inbox; docs/decisions/2026-11-21_inbox-design.md): the list of conversations beside the open one, in one
   frame as tall as the window (app/static/inbox.js measures the top bar into --ib-top); on a phone one of the two at a
   time. A person is two letters in one of eight colours, the same everywhere (app/inbox.py, colour); my messages are
   on the right in the hub's teal, the others' on the left in grey; one person's messages close together are one run. */
.ts-inbox-page .ts-main { max-width: 1240px; padding-bottom: 16px; }
.ib { --ib-top: 76px; position: relative; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  height: calc(100vh - var(--ib-top)); height: calc(100dvh - var(--ib-top)); min-height: 480px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }

/* the list */
.ib-side { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.ib-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px; }
.ib-h1 { margin: 0; font-size: 1.375rem; line-height: 1.2; }
.ib-new-btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--accent-soft); }
.ib-find { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 12px 8px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--muted); }
.ib-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ib-find svg { flex: none; }
.ib-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .875rem; }
.ib-threads { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 2px 8px 8px; list-style: none; }
.ib-thread { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ib-thread:hover { background: var(--surface-2); color: var(--ink); }
.ib-thread[aria-current="page"] { background: var(--accent-soft); }
.ib-thread:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ib-thread-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ib-thread-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ib-thread-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 600; }
.ib-thread-when { flex: none; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ib-thread-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.ib-thread.is-unread .ib-thread-name { font-weight: 700; }
.ib-thread.is-unread .ib-thread-preview { color: var(--ink); font-weight: 500; }
.ib-thread.is-unread .ib-thread-when { color: var(--accent-text); font-weight: 600; }
.ib-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-size: .6875rem; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.ib-side-note { margin: 4px 18px 10px; font-size: .8125rem; color: var(--muted); }
.ib-private { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line);
  font-size: .75rem; color: var(--muted); }
.ib-private svg { flex: none; }

/* a person: two letters in a colour of their own; a group: two of its people */
.ib-av { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; box-sizing: border-box; border-radius: 50%;
  background: var(--ib-av-bg, var(--surface-2)); color: var(--ib-av-fg, var(--ink)); font-size: .8125rem; font-weight: 700;
  letter-spacing: .02em; line-height: 1; user-select: none; }
.ib-av-lg { width: 44px; height: 44px; font-size: .875rem; }
.ib-av-xl { width: 64px; height: 64px; font-size: 1.25rem; }
.ib-av-group { border-radius: 12px; }
.ib-av-lg.ib-av-group { border-radius: 13px; }
.ib-av-xl.ib-av-group { border-radius: 19px; }
.ib-av-0 { --ib-av-bg: #d9eeee; --ib-av-fg: #0a5d60; }
.ib-av-1 { --ib-av-bg: #fdf0d5; --ib-av-fg: #8a4b06; }
.ib-av-2 { --ib-av-bg: #dcfce7; --ib-av-fg: #15803d; }
.ib-av-3 { --ib-av-bg: #ffe4e6; --ib-av-fg: #be123c; }
.ib-av-4 { --ib-av-bg: #dbeafe; --ib-av-fg: #1d4ed8; }
.ib-av-5 { --ib-av-bg: #f3e8ff; --ib-av-fg: #7e22ce; }
.ib-av-6 { --ib-av-bg: #e2e8f0; --ib-av-fg: #334155; }
.ib-av-7 { --ib-av-bg: #ffedd5; --ib-av-fg: #c2410c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ib-av-0 { --ib-av-bg: #143638; --ib-av-fg: #7fd5d6; }
  :root:not([data-theme="light"]) .ib-av-1 { --ib-av-bg: #3b2a0e; --ib-av-fg: #f2b85c; }
  :root:not([data-theme="light"]) .ib-av-2 { --ib-av-bg: #12331f; --ib-av-fg: #6fdc98; }
  :root:not([data-theme="light"]) .ib-av-3 { --ib-av-bg: #3d1520; --ib-av-fg: #fb92a8; }
  :root:not([data-theme="light"]) .ib-av-4 { --ib-av-bg: #172554; --ib-av-fg: #93b8fb; }
  :root:not([data-theme="light"]) .ib-av-5 { --ib-av-bg: #2e1a47; --ib-av-fg: #d0a6f7; }
  :root:not([data-theme="light"]) .ib-av-6 { --ib-av-bg: #1f2a37; --ib-av-fg: #b4c2d3; }
  :root:not([data-theme="light"]) .ib-av-7 { --ib-av-bg: #3d1f0d; --ib-av-fg: #f9a46b; }
}
:root[data-theme="dark"] .ib-av-0 { --ib-av-bg: #143638; --ib-av-fg: #7fd5d6; }
:root[data-theme="dark"] .ib-av-1 { --ib-av-bg: #3b2a0e; --ib-av-fg: #f2b85c; }
:root[data-theme="dark"] .ib-av-2 { --ib-av-bg: #12331f; --ib-av-fg: #6fdc98; }
:root[data-theme="dark"] .ib-av-3 { --ib-av-bg: #3d1520; --ib-av-fg: #fb92a8; }
:root[data-theme="dark"] .ib-av-4 { --ib-av-bg: #172554; --ib-av-fg: #93b8fb; }
:root[data-theme="dark"] .ib-av-5 { --ib-av-bg: #2e1a47; --ib-av-fg: #d0a6f7; }
:root[data-theme="dark"] .ib-av-6 { --ib-av-bg: #1f2a37; --ib-av-fg: #b4c2d3; }
:root[data-theme="dark"] .ib-av-7 { --ib-av-bg: #3d1f0d; --ib-av-fg: #f9a46b; }

/* the pane: its heading */
.ib-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.ib-head { flex: none; display: flex; align-items: center; gap: 12px; min-height: 72px; box-sizing: border-box; padding: 12px 20px;
  border-bottom: 1px solid var(--line); }
.ib-head-text { flex: 1; min-width: 0; }
.ib-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.0625rem; line-height: 1.3; }
.ib-sub { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.ib-head-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-text); }
.ib-back { display: none; flex: none; width: 36px; height: 36px; margin-left: -8px; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ink); }
.ib-back:hover { background: var(--surface-2); color: var(--ink); }
.ib-icon-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; box-sizing: border-box; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600;
  text-decoration: none; }
.ib-icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.ib-icon-btn[aria-expanded="true"] { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }

/* the messages */
.ib-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px 20px 16px; }
.ib-log:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ib-day { align-self: center; margin: 16px 0 6px; }
.ib-day span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: .75rem; font-weight: 600; }
.ib-unread-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--wait); font-size: .6875rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ib-unread-line::before, .ib-unread-line::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.ib-msg { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; }
.ib-msg.is-first { margin-top: 10px; }
.ib-msg.is-mine { justify-content: flex-end; }
.ib-msg-av { flex: none; width: 32px; }
.ib-msg-av .ib-av { width: 32px; height: 32px; font-size: .6875rem; }
.ib-msg-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(78%, 620px); }
.ib-msg.is-mine .ib-msg-body { align-items: flex-end; }
.ib-msg-name { margin: 0 0 3px 12px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.ib-bubble { margin: 0; padding: 8px 14px; border-radius: 18px; background: var(--surface-2); color: var(--ink); font-size: .9375rem;
  line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ib-msg:not(.is-mine):not(.is-first) .ib-bubble { border-top-left-radius: 6px; }
.ib-msg:not(.is-mine):not(.is-last) .ib-bubble { border-bottom-left-radius: 6px; }
.ib-msg.is-mine .ib-bubble { background: var(--accent); color: var(--accent-ink); }
.ib-msg.is-mine:not(.is-first) .ib-bubble { border-top-right-radius: 6px; }
.ib-msg.is-mine:not(.is-last) .ib-bubble { border-bottom-right-radius: 6px; }
.ib-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.ib-msg.is-mine .ib-link { color: inherit; }
.ib-msg-time { margin: 3px 12px 0; font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ib-hello { margin: auto; display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: var(--muted); }
.ib-hello p { margin: 0; }
.ib-hello b { color: var(--ink); }
.ib-jump { position: absolute; left: 50%; bottom: 100px; z-index: 2; transform: translateX(-50%); padding: 7px 16px; border: 0;
  border-radius: 999px; background: var(--ink); color: var(--surface); font: inherit; font-size: .8125rem; font-weight: 600;
  box-shadow: var(--shadow); cursor: pointer; }

/* writing: the box grows with the words; Enter sends */
.ib-compose-wrap { flex: none; padding: 10px 16px 8px; border-top: 1px solid var(--line); background: var(--surface); }
.ib-compose { display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-strong);
  border-radius: 22px; background: var(--surface); }
.ib-compose:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ib-compose textarea { flex: 1; min-width: 0; min-height: 24px; max-height: 168px; margin: 0; padding: 7px 0; border: 0; outline: 0;
  resize: none; background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; line-height: 1.45; }
.ib-send { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: opacity .12s ease, transform .12s ease; }
.ib-send:hover:not(:disabled) { filter: brightness(1.08); }
.ib-send:active:not(:disabled) { transform: scale(.94); }
.ib-send:disabled { opacity: .4; cursor: default; }
.ib-send:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ib-send svg { margin-left: -2px; }
.ib-hint { display: flex; justify-content: space-between; gap: 12px; min-height: 1em; margin: 6px 8px 0; font-size: .6875rem; color: var(--muted); }
.ib.is-touch .ib-hint-keys { visibility: hidden; }
.ib-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.ib-count.is-over { color: var(--bad); font-weight: 600; }
.ib-error { margin: 0 4px 8px; padding: 8px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: .8125rem;
  font-weight: 600; }

/* nothing open yet */
.ib-empty { margin: auto; max-width: 440px; display: grid; justify-items: center; gap: 10px; padding: 32px 24px; text-align: center; }
.ib-empty h2 { margin: 6px 0 0; font-size: 1.25rem; }
.ib-empty p { margin: 0 0 8px; color: var(--muted); line-height: 1.55; }
.ib-empty-art { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: var(--accent-soft);
  color: var(--accent-text); }

/* a new conversation: one choice of people */
.ib-new { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ib-new > .ib-error { margin: 12px 20px 0; }
.ib-to { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; box-sizing: border-box; padding: 10px 20px;
  border-bottom: 1px solid var(--line); }
.ib-to-label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.ib-chips { display: contents; }
.ib-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 12px; border: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ib-chip-x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; line-height: 1; }
.ib-chip:hover .ib-chip-x, .ib-chip:focus-visible .ib-chip-x { background: var(--surface); }
.ib-find-person { flex: 1 1 160px; height: 34px; margin: 0; padding: 0 4px; border-color: transparent; background: transparent; }
.ib-find-person:focus-within { border-color: transparent; box-shadow: none; }
.ib-people-set { flex: 1; min-height: 0; overflow-y: auto; min-width: 0; margin: 0; padding: 8px 12px; border: 0; }
.ib-people { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.ib-person { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.ib-person:hover { background: var(--surface-2); }
.ib-person input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ib-person:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; }
.ib-person:has(input:checked) { background: var(--accent-soft); }
.ib-person-text { flex: 1; min-width: 0; display: grid; }
.ib-person-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 600; }
.ib-person-text small { font-size: .75rem; color: var(--muted); }
.ib-tick { flex: none; width: 22px; height: 22px; display: grid; place-items: center; box-sizing: border-box; border: 1.5px solid var(--line-strong);
  border-radius: 50%; color: transparent; }
.ib-person input:checked ~ .ib-tick { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.ib-new-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 20px 16px;
  border-top: 1px solid var(--line); background: var(--surface); }
.ib-group-name { flex: 1 1 100%; display: grid; gap: 4px; font-size: .8125rem; font-weight: 600; }
.ib-group-name .input { width: 100%; }
.ib-new-sum { flex: 1 1 200px; margin: 0; font-size: .8125rem; color: var(--muted); }
.ib-new-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* a group's details, beside the conversation */
.ib-details { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(340px, 100%); display: none; flex-direction: column;
  overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(18, 39, 58, .12); }
.ib.is-details .ib-details, .ib-details:target { display: flex; }
.ib-details-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 72px; box-sizing: border-box;
  padding: 12px 16px 12px 20px; }
.ib-details-head h3 { margin: 0; font-size: 1.0625rem; }
.ib-details-head h3:focus { outline: none; }
.ib-details-head .ib-icon-btn { width: 36px; padding: 0; justify-content: center; }
.ib-details-part { display: grid; gap: 10px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); }
.ib-label { margin: 0; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ib-rename-row { display: flex; gap: 8px; }
.ib-rename-row .input { flex: 1; min-width: 0; }
.ib-members { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ib-members li { display: flex; align-items: center; gap: 10px; }
.ib-members .ib-av, .ib-people-sm .ib-av { width: 32px; height: 32px; font-size: .6875rem; }
.ib-you { font-weight: 400; color: var(--muted); }
.ib-people-sm .ib-person { padding: 6px 8px; }
.ib-details-part .btn { justify-self: start; }
.ib-leave p { margin: 0; font-size: .8125rem; color: var(--muted); }
.ib-danger { border-color: var(--bad-soft); color: var(--bad); }
.ib-danger:hover { background: var(--bad-soft); color: var(--bad); }

/* the count of conversations with something new, beside Team and Inbox in the menu */
.ts-nav-n { margin-left: auto; min-width: 20px; box-sizing: border-box; padding: 1px 7px; border-radius: 999px; background: var(--wait);
  color: var(--wait-soft); font-size: .6875rem; font-weight: 700; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.ts-sub a .ts-nav-n { margin-left: 8px; }

@media (max-width: 900px) {
  .ib { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .ib:not(.is-open) .ib-pane { display: none; }
  .ib.is-open .ib-side { display: none; }
  .ib-side { border-right: 0; }
  .ib-back { display: inline-flex; }
  .ib-head { min-height: 60px; padding: 8px 12px; }
  .ib-log { padding: 4px 12px 12px; }
  .ib-msg-body { max-width: 86%; }
  .ib-compose-wrap { padding: 8px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .ib-hint-keys { display: none; }
  .ib-icon-btn span { display: none; }
  .ib-head .ib-icon-btn { width: 36px; padding: 0; justify-content: center; }
  .ib-details { width: 100%; border-left: 0; box-shadow: none; }
  .ib-to, .ib-new-foot { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 560px) {
  .ts-inbox-page .ts-main { padding-inline: 8px; }
}
/* a small label (data scope, chat log): light words on navy, readable in both themes */
.ts-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--navy-2, #e8eef0); color: var(--navy-ink, #fff); font-size: .75rem; font-weight: 600; }
.ts-table .ts-over td { background: color-mix(in srgb, #c0392b 12%, transparent); }

/* draft / confirm / merge, and notes on application fields */
.ts-pub { display: grid; gap: 8px; }
.ts-pub p { margin: 0; }
.ts-confirm .ts-list { margin: 12px 0; }
.ts-confirm .ts-list li { padding: 6px 0; }
.ts-fieldwork { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ts-fieldwork:first-of-type { border-top: 0; padding-top: 0; }
.ts-fieldwork h3 { font-size: 1rem; }
.ts-notes, .ts-notes-block { display: grid; gap: 10px; margin-top: 14px; }
.ts-notes-block { padding-top: 8px; }
.ts-note-item { border-top: 1px solid var(--line); padding-top: 10px; }
.ts-note-item header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin-bottom: 4px; font-size: .875rem; }
.ts-note-item p { margin: 0; white-space: pre-wrap; font-size: .9375rem; line-height: 1.5; }
.ts-note-item form { margin-top: 8px; }
.ts-note-form { margin-top: 8px; }
.ts-scroll { overflow-x: auto; }
/* the chat log (/admin/chat): a message keeps its lines, and Persian reads right to left (dir="auto") */
.ts-chat-text { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; min-width: 16ch; max-width: 48ch; }
.ts-num { width: 6.5em; }
.ts-plan-sum th { width: 16em; }
.ts-warn { border-left: 4px solid #c0392b; }
.input.ts-name { min-width: 18em; }
.ts-fund { min-width: 13em; }
.ts-hrs { width: 4.5em; }
.ts-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, #2e8b57 18%, transparent); font-size: .8rem; }
.ts-hist .ts-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ts-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ts-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.ts-kpis b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ts-checks { list-style: none; padding: 0; margin: 8px 0; }
.ts-checks li { padding: 6px 10px; margin: 4px 0; border-left: 4px solid var(--line); background: color-mix(in srgb, currentColor 4%, transparent); }
.ts-checks .ts-stop { border-left-color: #c0392b; }
.ts-checks .ts-note { border-left-color: #d4a017; }
.ts-checks .ts-info { border-left-color: #2e8b57; }
.ts-org { min-width: 12em; }
.ts-lead { min-width: 10em; }  /* the work package's leader: the whole name, not its first letters */
.ts-amt { width: 7.5em; }
.ts-new td { background: color-mix(in srgb, #2e8b57 5%, transparent); }
.ts-table td[data-k] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-photo-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ts-photo-preview { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--navy-2, #e8eef0); flex: none; }
.ts-initials { display: grid; place-items: center; font-size: 2rem; font-weight: 650; }
.ts-count { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-count.is-over { color: #c0392b; font-weight: 650; }
label.btn input[type="file"] { display: none; }
/* standard CVs */
.ts-cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.ts-cv-head .ts-h1 { margin: 0; }
.ts-cv-head p { margin: 6px 0 0; max-width: 70ch; }
.ts-cv-who { display: flex; align-items: center; gap: 10px; }
.ts-cv-who span { display: grid; }
.ts-cv-who small { font-size: .75rem; }
.ts-cv-list td { vertical-align: middle; }
/* /documents: the project's documents in the house style, and a PDF of your own text */
.hd-intro { max-width: 78ch; }
.hd-list td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-list td:last-child .ts-row-actions { flex-wrap: nowrap; justify-content: flex-end; }
.hd-hint { font-weight: 400; }
.hd-lang { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; }
.hd-lang legend { font-weight: 600; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.hd-lang label { display: inline-flex; gap: 6px; align-items: center; }
.hd-blind { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .875rem; }
.hd-blind input { margin-top: 3px; }
#hd-form .btn.primary { margin-top: 4px; }
.hd-more { margin-top: 14px; }
@media (max-width: 640px) {  /* a phone: the document and its files; its language and pages are in the PDF */
  .hd-list th:nth-child(3), .hd-list td:nth-child(3), .hd-list th:nth-child(4), .hd-list td:nth-child(4) { display: none; }
  .hd-list td:last-child .ts-row-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .ts-photo-edit { flex-direction: column; }
  .ts-actions { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ts-partners.on-light .ts-partner { filter: none; opacity: .8; }
}

/* copyright notice and coordinator contact */
.ts-copyright { display: flex; gap: 8px; align-items: flex-start; max-width: 72ch; margin: 24px auto 16px; padding: 0 16px;
  font-size: .75rem; line-height: 1.45; color: var(--muted, #5d6b76); }  /* --muted, not --navy-muted: the notice sits on the light page, where the navy grey was barely legible (1.9:1) */
.ts-copyright-mark { flex: none; margin-top: 2px; }
.ts-copyright a, .ts-login-contact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ts-login-contact { margin: 4px 0 0; font-size: .8125rem; color: var(--muted, #5d6b76); text-align: center; }
.ts-login-main .ts-copyright { margin-top: 12px; text-align: left; }
@media print { .ts-copyright { margin: 12px 0 0; padding: 0; } }

/* Reviewer page: the main project at a glance (step 3) and the budget (step 5) */
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-facts h2 { font-size: 1.0625rem; }
.rv-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 24px; margin: 16px 0 0; }
.rv-facts-grid > div { margin: 0; }
.rv-facts-grid dt { font-size: .8125rem; color: var(--muted); }
.rv-facts-grid dd { margin: 4px 0 0; font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-facts-grid dd small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.rv-facts-grid .rv-facts-wide { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-facts-wide dd { font-size: .9375rem; font-weight: 400; }
.rv-facts-wide dd p { margin: 0 0 6px; }
.rv-facts-wide dd p b { display: inline-block; min-width: 11em; font-weight: 600; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.rv-chips li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .875rem; }

.rv-money { --grant: var(--accent); --own: var(--rv-gold-mark); }
.rv-money-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.rv-money-top p { margin: 0; display: grid; gap: 2px; }
.rv-money-top span { font-size: .8125rem; color: var(--muted); }
.rv-money-top b { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rv-money-top small { font-size: .8125rem; color: var(--muted); }
.rv-money-part { padding-left: 14px; border-left: 4px solid var(--grant); }
.rv-money-part.is-own { border-left-color: var(--own); }
.rv-split { display: flex; height: 12px; margin: 18px 0 10px; border-radius: 999px; overflow: hidden; background: var(--own); }
.rv-split .is-grant { background: var(--grant); }
.rv-split .is-own { flex: 1; }
.rv-money-note { margin: 0; font-size: .875rem; color: var(--muted); }

.rv-tcard { padding: 0; overflow: hidden; }
.rv-tcard .rv-card-head p { margin: 4px 0 0; }
.rv-tbl { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rv-tbl th, .rv-tbl td { padding: 9px 12px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; white-space: nowrap; }
.rv-tbl thead th { background: var(--surface-2); font-size: .75rem; font-weight: 600; color: var(--muted); }
.rv-tbl th:first-child { padding-left: 24px; text-align: left; font-weight: 400; white-space: normal; }
.rv-tbl td:last-child, .rv-tbl th:last-child { padding-right: 24px; }
.rv-tbl th[scope="row"] small { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.rv-tbl tr.is-sum th, .rv-tbl tr.is-sum td { font-weight: 650; border-top: 1px solid var(--line-strong); }
.rv-tbl-fund th[scope="row"], .rv-tbl-fund td { background: var(--surface-2); }
.rv-wpcost th[scope="row"] { min-width: 15em; }
.rv-barcol { width: 120px; }
.rv-barcol small { display: inline-block; min-width: 3ch; margin-left: 8px; color: var(--muted); }
.rv-minibar { display: inline-block; width: 70px; height: 8px; vertical-align: middle; border-radius: 999px; background: var(--rv-gold-soft); box-shadow: inset 0 0 0 1px var(--rv-gold-line); overflow: hidden; }
.rv-minibar i { display: block; height: 100%; background: var(--accent); }
.rv-hours td.is-zero { color: var(--line-strong); }
.rv-hours th[scope="row"] { min-width: 13em; }
.rv-payer { text-align: left !important; }
.rv-pay { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; border: 1px solid var(--line); background: var(--surface-2); }
.rv-pay.grant { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.rv-pay.own { border-color: var(--rv-gold-line); background: var(--rv-gold-soft); }
.rv-buy th[scope="row"] { min-width: 18em; }
.rv-tnote { margin: 0; padding: 12px 24px 18px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); }
.rv-phases { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.rv-phases li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) auto; gap: 16px; align-items: center; }
.rv-phase-t small { display: block; font-size: .8125rem; color: var(--muted); }
.rv-phase-bar { width: 100%; height: 10px; }
.rv-phase-n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rv-phase-n small { margin-left: 8px; color: var(--muted); }
@media (max-width: 720px) {
  .rv-money-top { grid-template-columns: 1fr; gap: 12px; }
  .rv-phases li { grid-template-columns: 1fr auto; }
  .rv-phase-bar { grid-column: 1 / -1; grid-row: 2; }
  .rv-facts-wide dd p b { display: block; min-width: 0; }
}
@media print {
  .rv-tcard, .rv-money, .rv-facts { break-inside: avoid; }
  .rv-split, .rv-minibar i, .rv-split span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rv .rv-tbl tbody th { text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--ink, inherit); background: transparent; }
.rv .rv-tbl tbody th b { font-weight: 650; }
.rv .rv-tbl .rv-tbl-fund th, .rv .rv-tbl .rv-tbl-fund td, .rv .rv-tbl-fund th { background: var(--surface-2); }
.rv .rv-tbl thead th { text-transform: none; letter-spacing: 0; }
.rv-pf-honour { margin: 10px 0 0; font-size: 1rem; line-height: 1.6; color: inherit; max-width: 68ch; }

/* Horizon area */
.hz-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.hz-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; font-size: .875rem; background: var(--surface); }
.hz-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.hz-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hz-date { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.hz-date b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hz-date.is-near { border-color: var(--rv-gold-mark, #e2b955); background: var(--rv-gold-soft, #fbf4e4); }
.hz-date.is-past { opacity: .6; }
.hz-list { margin: 6px 0; padding-left: 18px; }
.hz-list li { margin: 4px 0; }
.hz-ol li { margin: 6px 0; max-width: 80ch; }
.hz-warn { color: #a23b2a; }
.hz-pill { display: inline-block; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; background: var(--surface-2); white-space: nowrap; }
.hz-pill.hz-lu { border-color: #c99a3a; background: var(--rv-gold-soft, #fbf4e4); }
.hz-pill.hz-consortium { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.hz-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.hz-card:hover { border-color: var(--accent); }
.hz-dl { display: grid; grid-template-columns: minmax(9em, 14em) minmax(0, 1fr); gap: 6px 14px; margin: 8px 0; }  /* minmax(0, ..): a long address wraps, and does not widen the column past its box */
.hz-dl dt { color: var(--muted); font-size: .875rem; }
.hz-dl dd { margin: 0; }
.hz-pre { white-space: pre-wrap; }
.hz-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.hz-form .hz-wide { grid-column: 1 / -1; }
.hz-form textarea { width: 100%; }
.hz-delete { margin-top: 12px; }
.hz-table td { vertical-align: top; }
.hz-table details summary { cursor: pointer; font-weight: 600; }
.hz-late td { background: color-mix(in srgb, #a23b2a 7%, transparent); }
.hz-done td { color: var(--muted); }
@media (max-width: 640px) { .hz-dl { grid-template-columns: minmax(0, 1fr); } }
.hz-nowrap { white-space: nowrap; }
.hz-total { margin: 0 0 12px; font-size: 1.05rem; }
.hz-ok { color: #2f6b3a; }
.hz-write { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.hz-text { width: 100%; min-height: 28em; font: inherit; line-height: 1.55; }
.hz-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hz-findings li { padding: 6px 8px; border-radius: 6px; border-left: 3px solid; }
.hz-findings li.hz-name { border-color: #a23b2a; background: color-mix(in srgb, #a23b2a 8%, transparent); }
.hz-findings li.hz-hint { border-color: #c99a3a; background: color-mix(in srgb, #c99a3a 10%, transparent); }
.hz-marked { white-space: pre-wrap; line-height: 1.6; }
mark.hz-name { background: color-mix(in srgb, #a23b2a 22%, transparent); color: inherit; }
mark.hz-hint { background: color-mix(in srgb, #c99a3a 28%, transparent); color: inherit; }
@media (max-width: 900px) { .hz-write { grid-template-columns: 1fr; } }
.hz-check { display: block; font-size: .875rem; }
.hz-cover td:first-child { min-width: 20em; max-width: 34em; }
.hz-cov-covered td:first-child { border-left: 3px solid #2f6b3a; }
.hz-cov-partly td:first-child { border-left: 3px solid #c99a3a; }
.hz-cov-not-yet td:first-child { border-left: 3px solid #a23b2a; }
.hz-score { font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.hz-card.hz-below { border-color: #a23b2a; }
.hz-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- Horizon briefing deck
   A touchstone is dark stone; a streak of real gold shows on it. The deck is the stone, and the
   gold streak is used only where it means something: the progress through the deck and the share
   of routine codes that are real. */
.bf { --stone: #1b1f22; --stone-2: #262b2f; --stone-line: #353b40; --streak: #d6a636; --streak-soft: #8a6c2a;
  --chalk: #ebe8e1; --chalk-2: #b9b5ac; --rust: #d0806a;
  margin: 18px 0 28px; }
.bf-stone { background: var(--stone); color: var(--chalk); border-radius: 10px 10px 0 0; padding: clamp(24px, 5vw, 56px);
  min-height: 460px; outline: none; }
.bf-slide { max-width: 64rem; }
.bf:not(.bf-js) .bf-slide + .bf-slide { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--stone-line); }
.bf-js .bf-slide { animation: bf-in .28s ease-out; }
@keyframes bf-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bf-js .bf-slide { animation: none; } }
.bf-slide h2:focus { outline: none; }  /* moved to on each slide change for screen readers, not a control */
.bf figure { margin: 0 0 26px; background: none; border: 0; border-radius: 0; padding: 0; display: block; }
.bf figcaption { font-size: .9375rem; }

.bf-display { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: .02em; line-height: 1; margin: 18px 0 22px; color: var(--chalk); }
.bf-h { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 600; line-height: 1.15; margin: 0 0 12px; color: var(--chalk); text-wrap: balance; max-width: 30ch; }
.bf-lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--chalk); max-width: 60ch; margin: 0 0 22px; }
.bf-body { font-size: 1rem; line-height: 1.6; color: var(--chalk-2); max-width: 64ch; margin: 0 0 14px; }
.bf-src { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--stone-line); font-size: .8125rem; color: var(--chalk-2); max-width: 64ch; }
.bf-src a, .bf-slide a { color: var(--streak); text-underline-offset: 3px; }

.bf-mark { width: min(320px, 70%); height: auto; display: block; }
.bf-mark-stone { fill: var(--stone-2); }
.bf-mark-streak { fill: none; stroke: var(--streak); stroke-width: 5; stroke-linecap: round; }

/* the assay: all codes as stone, the confirmed share as the streak */
.bf .bf-assay { margin: 8px 0 26px; max-width: 52rem; }
.bf-assay-bar { height: 34px; background: var(--stone-2); border: 1px solid var(--stone-line); border-radius: 3px; overflow: hidden; }
.bf-assay-bar { position: relative; }
.bf-assay-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--streak-soft), var(--streak)); }
.bf-assay-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(27, 31, 34, .55) calc(5% - 1px) 5%); pointer-events: none; }
.bf-assay figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .9375rem; color: var(--chalk-2); }
.bf-assay b { color: var(--chalk); font-size: 1.375rem; font-weight: 600; margin-right: 4px; }
.bf-assay-real b { color: var(--streak); }
.bf-assay-total { text-align: right; }

.bf-quote { margin: 0 0 26px; padding: 4px 0 4px 18px; border-left: 3px solid var(--streak); font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); line-height: 1.45; color: var(--chalk); max-width: 56ch; }

.bf-points { margin: 0; display: grid; gap: 14px 32px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 64rem; }
.bf-points > div { padding-top: 10px; border-top: 1px solid var(--stone-line); }
.bf-points dt { font-weight: 600; color: var(--chalk); margin-bottom: 4px; }
.bf-points dd { margin: 0; color: var(--chalk-2); line-height: 1.55; }
.bf-numbered { grid-template-columns: 1fr; gap: 0; }
.bf-numbered > div { display: grid; grid-template-columns: 2.25rem 1fr; padding: 10px 0; }
.bf-numbered dt { color: var(--streak); font-variant-numeric: tabular-nums; }
.bf-numbered dd { color: var(--chalk); }

.bf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; counter-reset: bf; }
.bf-steps li { counter-increment: bf; padding: 16px 20px 6px 0; border-top: 3px solid var(--stone-line); position: relative; }
.bf-steps li::before { content: ""; position: absolute; top: -3px; left: 0; height: 3px; background: var(--streak); }
.bf-steps li:nth-child(1)::before { width: 25%; } .bf-steps li:nth-child(2)::before { width: 50%; }
.bf-steps li:nth-child(3)::before { width: 75%; } .bf-steps li:nth-child(4)::before { width: 100%; }
.bf-steps b { display: block; font-size: 1.125rem; color: var(--chalk); margin-bottom: 6px; }
.bf-steps b::before { content: counter(bf) "  "; color: var(--streak); }
.bf-steps span { color: var(--chalk-2); line-height: 1.55; font-size: .9375rem; }

.bf-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 28px; max-width: 64rem; }
.bf-rules h3 { margin: 0 0 8px; font-size: 1rem; color: var(--streak); }
.bf-dont h3 { color: var(--rust); }
.bf-rules ul { margin: 0; padding-left: 1.1em; }
.bf-rules li { color: var(--chalk); line-height: 1.5; margin-bottom: 8px; }
.bf-rules li::marker { color: var(--streak); }
.bf-dont li::marker { color: var(--rust); }

.bf-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 28px; margin-bottom: 20px; max-width: 64rem; }
.bf-criteria h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--chalk); }
.bf-criteria p { color: var(--chalk-2); line-height: 1.55; margin: 0; }
.bf-thr { position: relative; height: 8px; background: var(--stone-2); border-radius: 2px; margin: 0 0 30px !important; }
.bf-thr span { position: absolute; inset: 0 auto 0 0; width: 80%; background: var(--streak); border-radius: 2px; }
.bf-thr i { position: absolute; left: 80%; top: 12px; transform: translateX(-50%); font-style: normal; font-size: .8125rem; color: var(--chalk-2); white-space: nowrap; }

.bf-time { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-left: 2px solid var(--stone-line); }
.bf-time li { display: grid; grid-template-columns: minmax(11rem, 15rem) 1fr; gap: 16px; padding: 9px 0 9px 20px; position: relative; }
.bf-time li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--stone); border: 2px solid var(--chalk-2); }
.bf-time b { color: var(--chalk); font-weight: 600; }
.bf-time span { color: var(--chalk-2); }
.bf-time .bf-key::before { background: var(--streak); border-color: var(--streak); }
.bf-time .bf-key b, .bf-time .bf-key span { color: var(--streak); }

.bf-roles { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 28px; max-width: 64rem; }
.bf-roles > div { padding: 12px 0; border-top: 1px solid var(--stone-line); }
.bf-roles dt { color: var(--chalk); font-weight: 600; margin-bottom: 3px; }
.bf-roles dd { margin: 0; color: var(--chalk-2); line-height: 1.5; font-size: .9375rem; }

.bf-tasks { list-style: none; margin: 0 0 22px; padding: 0; max-width: 46rem; }
.bf-tasks li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--stone-line); }
.bf-tasks span { color: var(--chalk-2); white-space: nowrap; }
.bf-done { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.bf-controls { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 3vw, 24px);
  background: var(--stone-2); color: var(--chalk-2); }
.bf-js .bf-controls { display: flex; }
.bf-done .btn:not(.primary), .bf-controls .btn:not(.primary) { background: transparent; color: var(--chalk); border-color: var(--stone-line); }
.bf-done .btn:not(.primary):hover, .bf-controls .btn:not(.primary):hover { border-color: var(--chalk-2); }
.bf-controls .btn[disabled] { opacity: .35; cursor: default; }
.bf-done .btn.primary, .bf-controls .btn.primary { background: var(--streak); border-color: var(--streak); color: var(--stone); }
.bf-done .btn:focus-visible, .bf-controls .btn:focus-visible { outline: 2px solid var(--streak); outline-offset: 2px; }
.bf-count { font-variant-numeric: tabular-nums; font-size: .9375rem; }
.bf-streak { height: 5px; background: var(--stone); border-radius: 0 0 10px 10px; overflow: hidden; }
.bf-streak span { display: block; height: 100%; width: 0; background: var(--streak); transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .bf-streak span { transition: none; } }
@media (max-width: 560px) {
  .bf-time li { grid-template-columns: 1fr; gap: 2px; }
  .bf-assay-total { text-align: left; }
}
.hz-brief { border-left: 4px solid #d6a636; }
.hz-brief p { margin: 4px 0 12px; }

/* ---------------------------------------------------------------- Horizon start page */
.st-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0;
  padding: 14px 20px; background: #1b1f22; color: #ebe8e1; border-radius: 10px; border-bottom: 4px solid #d6a636; }
.st-band p { margin: 0; font-size: 1.0625rem; }
.st-band b { color: #d6a636; font-size: 1.25rem; }
.st-band a { color: #d6a636; text-underline-offset: 3px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 16px; align-items: start; }
.st-grid .panel { margin: 0; }
.st-step { border-top: 4px solid #d6a636; }
.st-step.is-done { border-top-color: var(--line); }
.st-step p { margin: 6px 0 12px; }
.st-h3 { font-size: .9375rem; margin: 16px 0 4px; }
.st-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.st-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.st-list li > span { flex: 0 1 auto; text-align: right; }  /* the date or status keeps to the right and never breaks inside a date */
.st-list li:last-child { border-bottom: 0; }
.st-list .is-late span { color: var(--bad, #a33); font-weight: 600; }

/* ---------------------------------------------------------------- comments, suggestions, views and decisions */
.cn { margin-top: 18px; }
.cn-head { margin-bottom: 8px; }
.cn-head p { margin: 4px 0 0; }
.cn-note { padding: 14px 0 14px 16px; border-left: 3px solid var(--line); margin: 12px 0; }
.cn-suggestion { border-left-color: #d6a636; }
.cn-note.is-closed { opacity: .78; }
.cn-note header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cn-disc { font-size: .8125rem; padding: 0 8px; border-radius: 999px; background: rgba(214, 166, 54, .18); color: inherit; }
.cn-status { font-size: .8125rem; font-weight: 600; }
.cn-accepted { color: var(--ok, #2a7); }
.cn-rejected { color: var(--bad, #a33); }
.cn-diff { margin: 8px 0; line-height: 1.6; max-width: 72ch; }
.cn-diff del { color: var(--bad, #a33); background: rgba(170, 51, 51, .08); }
.cn-diff ins { text-decoration: none; background: rgba(214, 166, 54, .25); box-shadow: inset 0 -2px 0 #d6a636; }
.cn-quote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--line); color: var(--muted); max-width: 72ch; }
.cn-body { margin: 6px 0; max-width: 72ch; white-space: pre-line; }
.cn-pos { list-style: none; margin: 8px 0; padding: 0; font-size: .9375rem; }
.cn-pos li { padding: 3px 0 3px 18px; position: relative; }
.cn-pos li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.cn-pos .cn-agree::before { background: var(--ok, #2a7); }
.cn-pos .cn-disagree::before { background: var(--bad, #a33); }
.cn-reply { margin: 8px 0 0 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.cn-reply p { margin: 2px 0; white-space: pre-line; }
.cn-decision { margin: 8px 0 0; }
.cn-act { margin-top: 8px; }
.cn-act summary { cursor: pointer; color: var(--accent-text, var(--accent)); }
.cn-form { display: grid; gap: 8px; max-width: 46rem; margin-top: 10px; }
.cn-decide { padding: 12px; border: 1px dashed #d6a636; border-radius: 8px; }
.cn-choice { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.cn-choice legend { font-size: .875rem; margin-bottom: 4px; padding: 0; }
.cn-inline { display: inline; }
.cn-new { display: grid; gap: 10px; max-width: 46rem; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cn-new h3 { margin: 0; font-size: 1rem; }
.cn-form > .btn, .cn-new > .btn { justify-self: start; }
/* above the strip the chat button and "Ask about this page" stand in (app/intercom.py), which covered it */
.cn-pick { position: fixed; right: 24px; bottom: 88px; z-index: 30; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.cn-ask { bottom: 136px; }  /* above it: the same selection, asked of the assistant */
.cn-diff del + ins { margin-left: 3px; }

/* starting material from the Vinnova stage */
.sm-panel { margin-top: 18px; }
.sm-piece { border-top: 1px solid var(--line); padding: 10px 0; }
.sm-piece summary { cursor: pointer; }
.sm-field summary b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #d6a636; }
.sm-old summary b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.sm-text { white-space: pre-line; max-width: 72ch; line-height: 1.55; margin: 8px 0 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.sm-names { color: var(--bad, #a33); font-weight: 600; }

/* briefing v2: one object per slide, played when the slide is reached (.is-on); the end state shows without motion */
.bf-agenda { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: center; max-width: 64rem; }
.bf-ring { width: 200px; height: 200px; transform: rotate(-90deg); order: 2; }
.bf-ring-bg { fill: none; stroke: var(--stone-2); stroke-width: 12; }
.bf-ring-seg { fill: none; stroke: var(--streak); stroke-width: 12; stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off); }
.bf-ring text { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; fill: var(--chalk); }
.bf-ring-n { font-size: 30px; font-weight: 600; }
.bf-ring-l { font-size: 10px; fill: var(--chalk-2) !important; }
.bf-parts { list-style: none; margin: 0; padding: 0; }
.bf-parts a { display: grid; grid-template-columns: 4.5rem 1fr; gap: 2px 14px; padding: 12px 0 12px 14px; border-left: 3px solid var(--stone-line); color: var(--chalk); text-decoration: none; }
.bf-parts a:hover, .bf-parts a:focus-visible { border-left-color: var(--streak); background: var(--stone-2); }
.bf-parts li + li a { margin-top: 6px; }
.bf-min { grid-row: span 2; color: var(--streak); font-variant-numeric: tabular-nums; padding-top: 2px; }
.bf-what { color: var(--chalk-2); font-size: .9375rem; }

.bf-fig { margin: 4px 0 18px; max-width: 60rem; }
.bf-join, .bf-abroad { width: 100%; height: auto; display: block; overflow: visible; }
.bf-flow path { fill: none; stroke: var(--stone-line); stroke-width: 2; }
.bf-flow .bf-flow-out { stroke: var(--streak); stroke-width: 3; }
.bf-box { height: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--stone-line); border-radius: 8px; background: var(--stone-2);
  display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; line-height: 1.3; color: var(--chalk-2); }
.bf-box b { color: var(--chalk); font-size: 14px; }
.bf-box-hub { border-style: dashed; align-items: center; text-align: center; }
.bf-box-gold { border: 2px solid var(--streak); background: #23211b; align-items: center; text-align: center; }
.bf-box-gold b { color: var(--streak); font-size: 16px; }
.bf-dot { fill: var(--streak); }
.bf-dot-back { fill: var(--chalk); }
.bf-packet { fill: var(--streak); }
.bf-lab { fill: var(--chalk-2); font-size: 13px; text-anchor: middle; }
.bf-lab-gold { fill: var(--streak); }
.bf-never rect { fill: var(--stone); stroke: var(--rust); stroke-width: 1.5; }
.bf-never text { fill: var(--rust); font-size: 12.5px; text-anchor: middle; }

.bf-chain { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 64rem; }
.bf-chain li { position: relative; padding: 14px 12px 12px; border-top: 3px solid var(--stone-line); background: var(--stone-2); border-radius: 0 0 8px 8px; color: var(--chalk-2); transition: border-color .3s, color .3s; }
.bf-chain li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 22px; border: 6px solid transparent; border-left-color: var(--stone-line); }
.bf-chain b { display: block; color: var(--chalk); margin-bottom: 4px; }
.bf-chain span { font-size: .875rem; line-height: 1.45; }
.bf-chain li.is-lit { border-top-color: var(--streak); }
.bf-chain li.is-lit b { color: var(--streak); }
.bf-play { background: transparent; color: var(--chalk); border-color: var(--stone-line); }
.bf-play:hover { border-color: var(--streak); }

.bf-count-down { margin: 0 0 14px; color: var(--chalk-2); }
.bf-count-down b { color: var(--streak); font-size: 2.25rem; font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }

.bf-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; max-width: 64rem; }
.bf-path { padding: 14px 16px; border: 1px solid var(--stone-line); border-radius: 8px; background: var(--stone-2); }
.bf-path h3 { margin: 0 0 4px; font-size: 1.0625rem; color: var(--chalk); }
.bf-path p { margin: 0 0 10px; color: var(--chalk-2); font-size: .9375rem; line-height: 1.45; }
.bf-path .bf-path-l { margin: 10px 0 2px; font-size: .8125rem; color: var(--streak); }
.bf-path ul { list-style: none; margin: 0; padding: 0; }
.bf-path li { padding: 2px 0; }

/* motion, only when the slide is reached and the reader allows motion */
@media (prefers-reduced-motion: no-preference) {
  .bf-js .is-on .bf-mark-streak { stroke-dasharray: 1; animation: bf-draw 1.1s ease-out both; }
  .bf-js .is-on .bf-assay-bar span { animation: bf-fill 1.6s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .bf-js .is-on .bf-ring-seg { animation: bf-seg .9s ease-out both; animation-delay: var(--d); }
  .bf-js .is-on .bf-flow path { stroke-dasharray: 1; animation: bf-draw .7s ease-out both; animation-delay: var(--d); }
  .bf-js .is-on .bf-node { animation: bf-pop .45s ease-out both; animation-delay: var(--d, 0s); }
  .bf-js .is-on .bf-steps li::before { animation: bf-grow .6s ease-out both; }
  .bf-js .is-on .bf-steps li:nth-child(2)::before { animation-delay: .35s; }
  .bf-js .is-on .bf-steps li:nth-child(3)::before { animation-delay: .7s; }
  .bf-js .is-on .bf-steps li:nth-child(4)::before { animation-delay: 1.05s; }
  .bf-js .is-on .bf-thr span { animation: bf-fill 1.2s ease-out .3s both; }
  .bf-js .is-on .bf-time li { animation: bf-pop .35s ease-out both; }
  .bf-js .is-on .bf-time li:nth-child(n) { animation-delay: calc(var(--n, 0) * 1s); }
}
@media (prefers-reduced-motion: reduce) { .bf-dot, .bf-packet { display: none; } }
@keyframes bf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bf-fill { from { width: 0; } }
@keyframes bf-grow { from { transform: scaleX(0); } }
@keyframes bf-seg { from { stroke-dasharray: 0 100; } }
@keyframes bf-pop { from { opacity: 0; transform: translateY(6px); } }
.bf-steps li::before { transform-origin: left; }
.bf-js .bf-dot, .bf-js .bf-packet { visibility: hidden; }
.bf-js .is-on .bf-dot, .bf-js .is-on .bf-packet { visibility: visible; }
@media (max-width: 760px) {
  .bf-agenda { grid-template-columns: 1fr; }
  .bf-ring { width: 150px; height: 150px; order: 0; }
  .bf-chain { grid-template-columns: 1fr; }
  .bf-chain li:not(:last-child)::after { display: none; }
}

/* ---------------------------------------------------------------- reading room */
.rr-dates { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  background: #1b1f22; color: #ebe8e1; border-radius: 10px; overflow: hidden; }
.rr-dates li { padding: 12px 16px; display: grid; gap: 2px; border-right: 1px solid #353b40; position: relative; }
.rr-dates li:last-child { border-right: 0; }
.rr-dates b { font-variant-numeric: tabular-nums; font-weight: 600; }
.rr-dates span { color: #b9b5ac; font-size: .9375rem; }
.rr-dates i { font-style: normal; color: #d6a636; font-size: .875rem; }
.rr-dates .is-past b, .rr-dates .is-past span { text-decoration: line-through; opacity: .55; }
.rr-dates .is-next { box-shadow: inset 0 -4px 0 #d6a636; }
.rr-dates .is-next b { color: #d6a636; }
.rr-prop { margin: 4px 0 0; }
.rr-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 12px; }
.rr-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.rr-filter a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; font-size: .9375rem; }
.rr-filter a[aria-current] { border-color: #1b1f22; background: #1b1f22; color: #ebe8e1; }
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 16px; align-items: start; }
.rr-pack { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--surface, #fff); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; }
.rr-pack.is-open { border-top-color: var(--bad, #a33); }
.rr-pack.is-mine { border-top-color: #d6a636; box-shadow: 0 0 0 1px #d6a636 inset; }
.rr-pack header { display: flex; gap: 10px; align-items: center; }
.rr-id { font-weight: 600; font-size: .8125rem; padding: 1px 8px; border: 1px solid #d6a636; border-radius: 4px; color: #8a6c2a; }
.rr-pack h2 { margin: 0; font-size: 1.125rem; }
.rr-pack > p { margin: 0; line-height: 1.5; }
.rr-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .875rem; }
.rr-meta dt { font-weight: 600; }
.rr-meta dd { margin: 0; }
.rr-pack details { border-top: 1px dashed var(--line); padding-top: 6px; }
.rr-pack summary { cursor: pointer; color: var(--accent-text, var(--accent)); font-size: .9375rem; }
.rr-q, .rr-src { margin: 6px 0 4px; padding-left: 1.2em; font-size: .9375rem; line-height: 1.45; }
.rr-src { list-style: none; padding: 0; }
.rr-src li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 4px 0; }
.rr-pack footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.rr-readers { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rr-who { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: #1b1f22; color: #d6a636; font-size: .75rem; font-weight: 600; }
.rr-none { color: var(--bad, #a33); font-weight: 600; font-size: .875rem; }
.rr-pack h2 a { color: inherit; text-decoration: none; }
.rr-pack h2 a:hover { text-decoration: underline; }
.rr-briefs { margin-left: auto; font-size: .8125rem; font-weight: 600; color: #8a6c2a; }
.pk-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 16px; align-items: start; }
.pk-grid .panel h2 + * { margin-top: 6px; }
.pk-grid .panel h2:not(:first-child) { margin-top: 18px; }
.pk-form textarea { width: 100%; }
@media (max-width: 760px) { .pk-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Horizon navigation: four groups, then their pages */
.hn { margin: 14px 0 18px; }
.hn-groups { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #1b1f22; border-radius: 10px 10px 0 0; overflow: hidden; }
.hn-groups:last-child { border-radius: 10px; }  /* a group of one page has no second row */
.hn-groups a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #b9b5ac; text-decoration: none; font-weight: 600; border-bottom: 4px solid transparent; }
.hn-groups a:hover, .hn-groups a:focus-visible { color: #ebe8e1; background: #262b2f; }
.hn-groups .is-cur a { color: #ebe8e1; border-bottom-color: #d6a636; background: #262b2f; }
.hn-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .75rem; }
.hn-groups .is-cur .hn-n { border-color: #d6a636; background: #d6a636; color: #1b1f22; }
.hn-pages { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: var(--surface, #fff); }
.hn-pages a { display: block; padding: 6px 12px; border-radius: 999px; color: inherit; text-decoration: none; font-size: .9375rem; }
.hn-pages a:hover { background: var(--navy-2, #eef2f6); }
.hn-pages a[aria-current] { background: #1b1f22; color: #ebe8e1; }
@media (max-width: 1150px) {  /* tablets and the side rail together: the five group names stay on one line each */
  .hn-groups a { gap: 8px; padding: 11px 10px; font-size: .9375rem; white-space: nowrap; }
}
@media (max-width: 760px) {
  .hn-groups { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hn-groups a { padding: 10px 12px; font-size: .9375rem; white-space: normal; }
}

/* ---------------------------------------------------------------- storyboard and cards */
.sb-role { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.sb-role select { max-width: 18rem; }
.sb-map { padding: 16px 18px; background: #1b1f22; color: #ebe8e1; border-radius: 10px; margin-bottom: 18px; }
.sb-row { display: grid; grid-template-columns: 13rem 1fr; gap: 14px; align-items: center; padding: 6px 0; }
.sb-label { color: #ebe8e1; text-decoration: none; display: grid; }
.sb-label span { font-size: .8125rem; color: #b9b5ac; }
.sb-blocks { display: flex; gap: 3px; min-height: 34px; }
.sb-block { flex-basis: 0; min-width: 18px; display: grid; place-items: center; border-radius: 3px; color: #1b1f22;
  font-size: .75rem; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.sb-block:hover, .sb-block:focus-visible { border-color: #ebe8e1; }
.sb-empty { color: #b9b5ac; font-size: .875rem; align-self: center; }
.st-storyboard { background: #4a5157; color: #ebe8e1; }
.st-answering { background: #7d8a96; }
.st-drafting { background: #b9b5ac; }
.st-decision { background: #e0b860; }
.st-final { background: #d6a636; }
.sb-blocks.is-filtered .sb-block:not(.is-lit) { opacity: .25; }
.sb-block.is-lit { border-color: #d6a636; box-shadow: 0 0 0 1px #d6a636; }
.sb-key { color: #b9b5ac; margin: 10px 0 0; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.sb-sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.is-lit-sw { border: 2px solid #d6a636; }
.sb-cards { margin: 8px 0 14px; padding-left: 1.6em; }
.sb-card { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line); background: none !important; color: inherit !important; }
.sb-card.st-storyboard { border-left-color: #4a5157; } .sb-card.st-answering { border-left-color: #7d8a96; }
.sb-card.st-drafting { border-left-color: #b9b5ac; } .sb-card.st-decision { border-left-color: #e0b860; }
.sb-card.st-final { border-left-color: #d6a636; }
.sb-card.is-lit { box-shadow: inset 4px 0 0 #d6a636; }
.sb-card-main { display: grid; gap: 3px; }
.sb-card-main a { color: inherit; text-decoration: none; }
.sb-card-main a:hover b { text-decoration: underline; }
.sb-roles { display: flex; gap: 4px; flex-wrap: wrap; }
.sb-chip { font-size: .75rem; padding: 0 8px; border-radius: 999px; background: rgba(214, 166, 54, .18); }
.sb-tools { display: flex; gap: 4px; align-items: start; }
.sb-add { display: grid; grid-template-columns: 1fr 14rem auto; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px dashed var(--line); }
.cd-claim { max-width: 46rem; }
.cd-spine { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.cd-spine li { padding: 6px 12px; font-size: .875rem; color: var(--muted); border-top: 3px solid var(--line); }
.cd-spine li.is-here { color: inherit; font-weight: 600; border-top-color: #d6a636; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 16px; align-items: start; }
.cd-primer { border-left: 4px solid #d6a636; }
.cd-terms { font-size: .9375rem; color: var(--muted); white-space: pre-line; }
.cd-question { background: color-mix(in srgb, #d6a636 8%, var(--surface, #fff)); }  /* a tint of the surface, so the muted lines keep their contrast */
.cd-facts h2 + * { margin-top: 6px; }
.cd-facts h2:not(:first-child) { margin-top: 16px; }
.cd-evidence { white-space: pre-line; }
.cd-edit summary { cursor: pointer; }
.cd-answers, .cd-contrib { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.cd-crow { display: grid; grid-template-columns: 13rem 1fr 11rem; gap: 6px; }
@media (max-width: 760px) {
  .sb-row, .cd-grid, .sb-add, .cd-crow { grid-template-columns: 1fr; }
}
.cd-text { width: 100%; line-height: 1.55; font-family: inherit; }
.cd-blind { margin-top: 10px; }
.cd-blind > p { margin: 0; }
.cd-q { font-size: 1.0625rem; }
.cd-decided { padding: 10px 12px; border-left: 4px solid #d6a636; background: var(--surface, #fff); }
.qa-group { margin-top: 12px; }
.qa-group h3 { font-size: .9375rem; margin: 0 0 4px; color: var(--muted); }
.qa { padding: 8px 0 8px 12px; border-left: 2px solid var(--line); margin-bottom: 6px; }
.qa p { margin: 4px 0 0; white-space: pre-line; }
.qa-silent { color: var(--bad, #a33); }
.qa-summary { margin-top: 12px; padding: 10px 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 8px; }
.qa-summary p { margin: 4px 0 0; white-space: pre-line; }
.qa-lead { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #d6a636; }
.qa-lead summary { cursor: pointer; }
.qa-lead .btn { max-width: 100%; white-space: normal; }  /* a long label wraps on a narrow screen */
.qa-earlier { margin-top: 8px; }
.cd-grid > div > .panel + .panel { margin-top: 16px; }
.sb-lead { border-left: 4px solid #d6a636; }
.sb-lead p { margin: 4px 0 10px; }
.sb-ai { font-size: .75rem; font-weight: 600; color: #8a6c2a; }
.cd-origin { margin: 0 0 12px; font-size: .875rem; color: var(--muted); }
.cd-origin.is-open { color: #8a6c2a; font-weight: 600; padding: 8px 12px; border: 1px dashed #d6a636; border-radius: 8px; }

/* Card history (hub plan, stage 2) */
.hs-tabs{display:flex;gap:4px;margin:12px 0 16px;border-bottom:1px solid var(--line)}
.hs-tabs a{padding:8px 14px;text-decoration:none;color:var(--ink);border-bottom:2px solid transparent;margin-bottom:-1px}
.hs-tabs a[aria-current=page]{border-bottom-color:var(--streak);font-weight:600}
.hs-filter{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.hs-chip{padding:4px 12px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);font-size:.9rem}
.hs-chip.is-on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.hs-list{list-style:none;padding:0;margin:0;border-left:2px solid var(--line)}
.hs-ev{position:relative;margin:0 0 14px 16px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:6px}
.hs-ev::before{content:"";position:absolute;z-index:1;left:-23px;top:16px;width:10px;height:10px;border-radius:50%;background:var(--muted)}
.hs-ev.hs-o-person::before{background:var(--streak,#d6a636)}.hs-ev.hs-o-ai::before{background:#8a6cc0}.hs-ev.hs-o-edition::before{background:#3f88aa}
.hs-head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between}
.hs-badge{font-size:.8rem;padding:2px 8px;border-radius:4px;background:var(--surface-2);color:var(--ink-2)}
.hs-badge.hs-o-ai{box-shadow:inset 3px 0 0 #8a6cc0}.hs-badge.hs-o-edition{box-shadow:inset 3px 0 0 #3f88aa}.hs-badge.hs-o-person{box-shadow:inset 3px 0 0 var(--streak,#d6a636)}
.hs-line{margin:6px 0}.hs-line span{font-weight:600;margin-right:4px}
.hs-diff{white-space:pre-wrap;line-height:1.6;margin:8px 0 0;padding:8px 10px;background:var(--surface-2);border-radius:4px}
.hs-diff del,.hs-diff ins{padding:0 2px;border-radius:2px}.hs-diff del{background:rgba(200,60,60,.18);text-decoration:line-through}.hs-diff ins{background:rgba(60,150,60,.2);text-decoration:none}.hs-diff del+ins{margin-left:4px}
.hs-fields{width:100%;border-collapse:collapse;margin-top:8px;font-size:.9rem}
.hs-fields th,.hs-fields td{text-align:left;vertical-align:top;padding:4px 6px;border-top:1px solid var(--line)}

/* Role briefings (hub plan, stage 4) */
.rb-roles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));gap:12px}
.rb-role{display:flex;justify-content:space-between;gap:12px;align-items:start;margin:0;border-top:4px solid var(--line)}
.rb-role h2{margin:0 0 4px;font-size:1.0625rem}
.rb-role p{margin:0 0 6px}
.rb-role.is-mine{border-top-color:#d6a636;box-shadow:0 0 0 1px #d6a636}
.rb-role.is-draft h2{color:var(--muted)}
.rb-role-act{flex:none}
.rb-choose{margin:4px 0 16px}
.rb-n{display:inline-grid;place-items:center;width:1.6em;height:1.6em;margin-right:8px;border-radius:50%;background:#d6a636;color:#1b1f22;font-size:.8125rem;font-weight:700;vertical-align:middle}
.rb-text{white-space:pre-line;line-height:1.6}
.rb-paras{list-style:none;margin:8px 0 12px;padding:0}
.rb-example{margin-top:12px;padding:10px 12px;border-left:3px solid #d6a636;background:rgba(214,166,54,.08);border-radius:4px}
.rb-edit summary{cursor:pointer}
.bf-role{margin:8px 0 14px;padding:12px 14px;border:1px dashed #d6a636;border-radius:10px}
.bf-role-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;padding:0}
.bf-role-list form{margin:0}
.rb-part .st-list li span{flex:none;white-space:nowrap}

/* Application map (hub plan, stage 5): the Stage 1 text as pages, the chosen paragraph beside it */
.sb-tomap{margin:8px 0 0;color:#b9b5ac}
.sb-tomap a{color:#d6a636}
.am-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,25rem);gap:16px;align-items:start}
.am-map{padding:16px 18px;background:#1b1f22;color:#ebe8e1;border-radius:10px}
.am-run{margin:0 0 14px;line-height:1.5}
.am-run b{color:#d6a636}
.am-run b.am-over,.am-plabel.am-over,.am-page.is-over .am-pno b{color:#ff9d8a}
.am-note-n{color:#b9b5ac;font-size:.8125rem}
.am-abstract{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;margin:0 0 16px}
.am-plabel{font-size:.8125rem;color:#b9b5ac}
.am-abar{display:flex;gap:2px;height:24px;padding:3px;background:#f7f5f0;border-radius:2px}
.am-pages{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:14px 12px}
.am-page{display:grid;gap:4px;justify-items:center;margin:0}
.am-sheet{width:100%;aspect-ratio:1/1.414;display:flex;flex-direction:column;gap:2px;padding:7px 6px;background:#f7f5f0;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.5)}
.am-page.is-over .am-sheet{background:#f6e1db;outline:2px solid #e0654f;outline-offset:2px}
.am-pno{font-size:.75rem;color:#b9b5ac}
.am-head{flex:none;height:10px;font:700 8px/9px system-ui,sans-serif;color:#1b1f22;border-bottom:1px solid #1b1f22;overflow:hidden}
.am-b{flex-basis:0;min-height:5px;position:relative;display:block;border:1px solid rgba(0,0,0,.3);border-radius:1px;text-decoration:none}
.am-abar .am-b{min-height:0;min-width:6px}
.am-b.is-sec{background:#d9d4c8}
.am-b.is-plan{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.6) 0 3px,transparent 3px 6px)}
.am-b:hover,.am-b:focus-visible{outline:2px solid #1b1f22;outline-offset:0;z-index:2}
.am-pages.is-filtered .am-b:not(.is-lit),.am-abar.is-filtered .am-b:not(.is-lit){opacity:.28}
.am-b.is-lit{box-shadow:0 0 0 2px #d6a636;z-index:1}
.am-b.is-open{outline:2px solid #1b1f22;box-shadow:0 0 0 4px #d6a636;opacity:1 !important;z-index:3}
.am-room{flex-basis:0;min-height:0;min-width:0}
.am-i{position:absolute;top:-6px;right:-6px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;font:700 9px/14px system-ui,sans-serif;text-align:center;background:#d6a636;color:#1b1f22;box-shadow:0 0 0 1px #1b1f22}
.am-i.is-done{background:#2f6f5e;color:#fff}
.am-i.am-c{right:auto;left:-6px;background:#ebe8e1;color:#1b1f22}
.am-i.am-key{position:static;display:inline-block;margin-right:2px;vertical-align:middle}
.am-sw-plan{background:#b9b5ac repeating-linear-gradient(135deg,rgba(255,255,255,.6) 0 3px,transparent 3px 6px)}
.am-key-row > span{white-space:nowrap}
.am-panel{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;margin:0}
.am-panel h2{font-size:1.125rem;margin:2px 0 6px}
.am-panel h2:focus{outline:none}
.am-panel h3{font-size:.9375rem;margin:18px 0 6px}
.am-panel[aria-busy=true]{opacity:.6}
.am-where{margin:0;color:var(--muted)}
.am-supply{margin:8px 0;padding:8px 10px;background:rgba(214,166,54,.12);border-radius:6px}
.am-text{max-height:16rem;overflow:auto;padding:8px 10px;border:1px solid var(--line);border-radius:6px}
.am-q{font-size:1rem;margin:0 0 8px}
.am-note{padding:6px 0 6px 10px;margin:0 0 6px;border-left:2px solid var(--line)}
.am-note p{margin:2px 0 0}
.am-quote{color:var(--muted);font-style:italic}
.am-comment{display:grid;gap:6px;margin-top:10px}
.am-comment .ts-actions{margin:0}
.am-open{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.am-lit{margin:6px 0 0;padding-left:1.4em;display:grid;gap:8px}
.am-lit a{display:grid;gap:2px;text-decoration:none;color:inherit}
.am-lit a:hover b,.am-lit a:focus-visible b{text-decoration:underline}
@media (max-width:900px){.am-wrap{grid-template-columns:1fr}.am-panel{position:static;max-height:none}}
@media (max-width:520px){.am-pages{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:12px 8px}.am-abstract{grid-template-columns:1fr}}

/* Argument map of a card's open question (hub plan, stage 5) */
.dt-lede{max-width:64rem}
.dt-issue{border-left:4px solid #d6a636}
.dt-issue .small:first-child{margin:0}
.dt-q{font-size:1.125rem;margin:4px 0 8px}
.cd-grid > div > .dt-pos{margin-top:14px}
.dt-who{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.dt-answer{font-size:1.0625rem;margin:6px 0;white-space:pre-line}
.dt-rests,.dt-r{margin:6px 0;padding:6px 10px;background:var(--surface-2,#f4f2ec);border-radius:6px}
.dt-rests span,.dt-r span{font-weight:600;margin-right:4px}
.dt-r{padding:4px 8px}
.dt-args{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.dt-col h3{font-size:.875rem;margin:0 0 6px}
.dt-pro{border-top:3px solid #2f6f5e;padding-top:6px}
.dt-con{border-top:3px solid #b0493a;padding-top:6px}
.dt-arg{padding:6px 0;border-bottom:1px solid var(--line)}
.dt-arg:last-child{border-bottom:0}
.dt-arg > p{margin:2px 0 0;white-space:pre-line}
.dt-add{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line)}
.dt-add summary{cursor:pointer;font-weight:600}
.dt-form{display:grid;gap:8px;margin-top:8px}
.dt-form .ts-actions{margin:0}
.dt-earlier{margin-top:14px}
.dt-earlier summary{cursor:pointer}
.dt-old{padding:10px 0;border-top:1px solid var(--line)}
.dt-alist{margin:8px 0 0;padding-left:1.3em;display:grid;gap:10px}
.dt-alist ul{margin:4px 0 0;padding-left:1.1em}
@media (max-width:700px){.dt-args{grid-template-columns:1fr}}

/* What I do now and the Stage 1 text (hub plan, stage 6) */
.nw-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(17rem,1fr);gap:16px;align-items:start}
.nw-h{font-size:1.0625rem;margin:0 0 10px}
.nw-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.nw-step{margin:0;border-top:4px solid var(--line)}
.nw-step.is-first{border-top-color:#d6a636}
.nw-step h3{display:flex;align-items:center;gap:10px;margin:0 0 4px;font-size:1.0625rem}
.nw-step > p{margin:0 0 8px}
.nw-n{flex:none;display:inline-grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--surface-2,#eee);font-size:.8125rem;font-weight:700}
.nw-step.is-first .nw-n{background:#d6a636;color:#1b1f22}
.nw-items{margin:4px 0 10px}
.nw-items li span{flex:none;white-space:nowrap}
.nw-side .panel{margin:0 0 16px}
.nw-side h3{font-size:.9375rem;margin:14px 0 4px}
.nw-changes{list-style:none;margin:6px 0 0;padding:0}
.nw-changes li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}
.nw-changes li:last-child{border-bottom:0}
.nw-changes li > span:last-child{flex:none;white-space:nowrap}
.nw-claim{display:block}
@media (max-width:900px){.nw-grid{grid-template-columns:1fr}}
.tx-sum p{margin:0 0 6px}
.tx-toc{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;font-size:.9375rem}
.tx-sec{margin-top:16px}
.tx-head h2{margin:0}
.tx-head p{margin:2px 0 12px}
.tx-body{max-width:46rem}
.tx-p{display:grid;grid-template-columns:2.6em minmax(0,1fr);gap:6px;margin:0 0 14px}
.tx-n{font-size:.8125rem;color:var(--muted);text-decoration:none;padding-top:3px}
a.tx-n:hover,a.tx-n:focus-visible{color:inherit;text-decoration:underline}
.tx-p .hz-marked{line-height:1.65}
.tx-plan{margin:0;color:var(--muted);font-style:italic}
.tx-plan span{font-style:normal;font-weight:600}
.tx-more{margin:4px 0 0}
/* the Stage 1 text before it goes in: the blind check's marks as a list, a card over its budget, its references */
.tx-found{margin:2px 0 8px;font-size:.9375rem}
.tx-found summary{cursor:pointer;color:var(--muted)}
.tx-found ul{margin:6px 0 4px;padding-left:1.2em}
.tx-found li{margin:3px 0}
.tx-meta{grid-column:2;margin:2px 0 0;color:var(--muted)}
/* Contributors (hub plan, stage 3): who did what, read from the history */
.ct-kind{display:inline-block;margin:0 6px 4px 0;padding:2px 10px;border:1px solid var(--line);border-radius:999px;font-size:.8125rem;white-space:nowrap}
.ct-kind b{font-variant-numeric:tabular-nums}
.ct-table .ct-n{text-align:right;font-variant-numeric:tabular-nums}
.hs-people{margin:8px 0 4px;font-size:.9rem}
.ct-table tbody th{position:static;background:none;font-size:.875rem;text-transform:none;letter-spacing:normal;color:var(--ink);white-space:nowrap}
@media (max-width:600px){.ct-kind{white-space:normal}}
/* the history check (/horizon/history-check) */
.hc-list{list-style:none;margin:16px 0 0;padding:0}
.hc-item{padding:14px 0;border-top:1px solid var(--line)}
.hc-item p{margin:6px 0}
.hc-item ul{margin:6px 0 0;padding-left:20px}
.hc-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:1rem}
.hc-state{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:600;white-space:nowrap}
.hc-ok{background:var(--good-soft);color:var(--ink)}
.hc-ok svg{color:var(--good)}
.hc-note{background:var(--surface-2);color:var(--ink)}
.hc-fail{background:var(--bad-soft);color:var(--ink)}
.hc-fail svg{color:var(--bad)}

/* ------------------------------------------------------------------ the ethics application (app/etik.py) */
/* Swedish by default; the English button (etik.js) shows the translation instead. Both are in the page. */
.ek-en { display: none; }
html.ek-lang-en .ek-en { display: revert; }
html.ek-lang-en .ek-sv { display: none; }
.ek-top { display: flex; gap: 10px; align-items: flex-start; }
/* max-width and stretch: on a narrow screen .ek-top is a column, where the row would otherwise take the width of
   all its sections and the whole page would scroll sideways instead of the row */
.ek-top .ek-nav { flex: 1; min-width: 0; max-width: 100%; align-self: stretch; margin: 14px 0 6px; }
.ek-lang { margin-top: 14px; flex: none; }
/* the data scope's pages (_datascope_nav.html): one dark row that scrolls sideways */
.ek-nav .hn-groups { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; border-radius: 10px; }
.ek-nav .hn-groups li { flex: 0 0 auto; }
.ek-nav .hn-groups a { padding: 9px 13px; justify-content: center; font-size: .875rem; white-space: nowrap; }

/* The ethics application's bar (_etik_nav.html): one card of two rows. Above, the application's pages; below, the
   whole application and then Ethix's sections, each a ring of how far it is. It is drawn by the bar's own width
   (container ekbar), not the window's: wide, everything is in view and a section's card shows at the pointer;
   narrower, Attachments and Signatures keep their icon and the whole application its ring; narrower still each row
   scrolls sideways, the page one is on brought into view (its script, in _etik_nav.html), with the edge that hides
   more fading out. The colours are the hub's: ink, teal for how far, gold for where one is and for news, the hub's
   waiting colour for what is left before Ethix, and red for what is in the written answers to put right (as the
   badges on a section's questions). */
.ek-appbar { --ek-gold: #b98322; --ek-row: #f5f8f9; --ek-track: #dde6e9; --ek-light: #8cc7c8; --ek-teal: var(--accent, #0e7174);
  --ek-on-teal: #fff; --ek-cur: #15304a; --ek-cur-ink: #fff; --ek-cur-track: rgba(255, 255, 255, .22);
  --ek-cur-light: rgba(255, 255, 255, .55); --ek-cur-teal: #7fd5d6; --ek-hover: #e8eff2; --ek-mark: #cf4a3e;
  --ek-mark-text: var(--bad, #a2261d); --ek-wait: var(--wait, #8c5a10); --ek-wait-soft: var(--wait-soft, #fbf0dd);
  --ek-wait-line: #ecd3a6; --ek-card: var(--surface, #fff);
  --ek-shadow: 0 10px 30px rgba(18, 39, 58, .14), 0 2px 6px rgba(18, 39, 58, .08);
  container: ekbar / inline-size; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface, #fff); box-shadow: 0 1px 2px rgba(18, 39, 58, .05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ek-appbar { --ek-gold: #e8bd64; --ek-row: var(--surface-2, #192832); --ek-track: #2b3c47;
    --ek-light: #2f7a7c; --ek-on-teal: #0c141a; --ek-cur: #dde8ee; --ek-cur-ink: #0c141a; --ek-cur-track: rgba(12, 20, 26, .2);
    --ek-cur-light: rgba(12, 20, 26, .45); --ek-cur-teal: #0e7174; --ek-hover: var(--navy-2, #15293a); --ek-mark: #ff8f84;
    --ek-wait-line: #5a4419; --ek-card: var(--surface-2, #192832); --ek-shadow: 0 10px 30px rgba(0, 0, 0, .45); box-shadow: none; }
}
:root[data-theme="dark"] .ek-appbar { --ek-gold: #e8bd64; --ek-row: var(--surface-2, #192832); --ek-track: #2b3c47;
  --ek-light: #2f7a7c; --ek-on-teal: #0c141a; --ek-cur: #dde8ee; --ek-cur-ink: #0c141a; --ek-cur-track: rgba(12, 20, 26, .2);
  --ek-cur-light: rgba(12, 20, 26, .45); --ek-cur-teal: #0e7174; --ek-hover: var(--navy-2, #15293a); --ek-mark: #ff8f84;
  --ek-wait-line: #5a4419; --ek-card: var(--surface-2, #192832); --ek-shadow: 0 10px 30px rgba(0, 0, 0, .45); box-shadow: none; }
.ek-top .ek-appbar { margin: 2px 0 6px; }  /* closer under the page's title than the old row */
.ek-appbar ul, .ek-appbar ol { list-style: none; margin: 0; padding: 0; }
[data-ek-scroll] { position: relative; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
[data-ek-scroll]::-webkit-scrollbar { display: none; }
[data-ek-scroll] > li { flex: 0 0 auto; }
[data-ek-scroll].ek-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
[data-ek-scroll].ek-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
[data-ek-scroll].ek-more-left.ek-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
/* the application's pages: tabs, the one this is with a gold line along its foot */
.ek-pages { gap: 2px; padding: 0 8px; }
.ek-pages a { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 12px; color: var(--muted); font-size: .875rem;
  font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 0; transition: color .12s ease, box-shadow .12s ease; }
.ek-pages a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--line-strong, #b9c7cf); }
.ek-pages a:focus-visible { outline: 2px solid var(--ek-teal); outline-offset: -4px; border-radius: 8px; }
.ek-pages .ek-ico { flex: none; opacity: .8; }
.ek-pages .is-cur a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ek-gold); }
.ek-pages .is-cur .ek-ico { color: var(--ek-teal); opacity: 1; }
.ek-pages li:first-child { margin-right: 6px; padding-right: 6px; border-right: 1px solid var(--line); }  /* the overview, then the rest */
.ek-pages .ek-aside { margin-left: auto; }  /* Word and the registers, at the right while there is room */
.ek-pages .ek-aside ~ .ek-aside { margin-left: 0; }
.ek-pill { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--ek-wait-soft); color: var(--ek-wait); box-shadow: inset 0 0 0 1px var(--ek-wait-line); font-size: .75rem;
  font-weight: 700; font-variant-numeric: tabular-nums; }  /* how much is left, on Before Ethix */
/* below: the whole application, then the sections */
.ek-secs-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-top: 1px solid var(--line);
  background: var(--ek-row); border-radius: 0 0 13px 13px; }
/* a ring of how far: the answered questions in a light teal, the agreed in the full teal (--p and --a, fractions,
   from the link it is in) and the rest a track */
.ek-ring { position: relative; display: grid; place-items: center; flex: none; border-radius: 50%; }
.ek-ring::before, .ek-node::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ek-teal) 0 calc(var(--a, 0) * 1turn), var(--ek-light) 0 calc(var(--p, 0) * 1turn), var(--ek-track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ek-w, 3px)), #000 calc(100% - var(--ek-w, 3px) + .5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ek-w, 3px)), #000 calc(100% - var(--ek-w, 3px) + .5px)); }
.ek-whole { display: flex; align-items: center; gap: 9px; flex: none; padding: 2px 12px 2px 0; border-right: 1px solid var(--line);
  color: var(--muted); text-decoration: none; }
.ek-whole-ring { --ek-w: 4px; width: 40px; height: 40px; color: var(--ink); }
.ek-whole-ring b { position: relative; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ek-whole-ring small { font-size: .625rem; font-weight: 600; }
.ek-whole-t { display: grid; font-size: .8125rem; line-height: 1.3; white-space: nowrap; }
.ek-whole-t b { color: var(--ink); font-weight: 600; }
.ek-whole-left { color: var(--ek-wait); font-weight: 600; }
.ek-whole-ok { color: var(--accent-text, var(--ek-teal)); font-weight: 600; }
.ek-whole:hover .ek-whole-left, .ek-whole:hover .ek-whole-ok { text-decoration: underline; }
.ek-whole:focus-visible { outline: 2px solid var(--ek-teal); outline-offset: 3px; border-radius: 8px; }
.ek-appbar .ek-secs { flex: 1; min-width: 0; align-items: center; gap: 3px; padding: 3px 2px; }
/* a numbered section: its ring, the number inside; agreed, filled in teal; the one one is in, dark */
.ek-node { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink);
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; transition: background-color .12s ease; }
.ek-node-n { position: relative; z-index: 1; }
.ek-node:hover { background-color: var(--ek-hover); }
.ek-node.is-empty, .ek-node.is-none { color: var(--muted); font-weight: 500; }
.ek-node.is-none::before { opacity: .55; }  /* no question is asked now */
.ek-node.is-done { color: var(--accent-text, var(--ek-teal)); }  /* every question answered */
.ek-node.is-agreed { color: var(--ek-on-teal); }
.ek-node.is-agreed::after, .ek-secs .is-cur .ek-node::after { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; background: var(--ek-teal); }
.ek-secs .is-cur .ek-node { color: var(--ek-cur-ink); font-weight: 600; }
.ek-secs .is-cur .ek-node::after { background: var(--ek-cur); }
.ek-node:focus-visible, .ek-chip:focus-visible { outline: 2px solid var(--ek-teal); outline-offset: 2px; }
/* the hub's links turn teal at the pointer (a:hover): in the bar each keeps its colour, and the hover is its disc */
.ek-appbar .ek-node:hover, .ek-appbar .ek-chip:hover { color: var(--ink); }
.ek-appbar .ek-node.is-done:hover { color: var(--accent-text, var(--ek-teal)); }
.ek-appbar .ek-node.is-agreed:hover { color: var(--ek-on-teal); }
.ek-appbar .ek-secs .is-cur a:hover { color: var(--ek-cur-ink); }
.ek-appbar .ek-whole:hover { color: var(--muted); }
/* Attachments and Signatures: a small ring with an icon, and the name while there is room */
.ek-secs .ek-gap-before { margin-left: 5px; padding-left: 8px; border-left: 1px solid var(--line); }
.ek-chip { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px 0 3px; border-radius: 999px;
  color: var(--ink); font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .12s ease; }
.ek-chip:hover { background-color: var(--ek-hover); }
.ek-mini { --ek-w: 2.5px; width: 28px; height: 28px; color: var(--muted); }
.ek-mini svg { position: relative; }
.ek-chip.is-done .ek-mini, .ek-chip.is-agreed .ek-mini { color: var(--ek-teal); }
.ek-secs .is-cur .ek-chip { background: var(--ek-cur); color: var(--ek-cur-ink); }
.ek-secs .is-cur .ek-mini { --ek-track: var(--ek-cur-track); --ek-light: var(--ek-cur-light); --ek-teal: var(--ek-cur-teal); color: var(--ek-cur-ink); }
/* news at the top of a section (gold), something in its answers to put right at its foot (red) */
.ek-secs .ek-dot { position: absolute; top: 0; right: 0; z-index: 2; margin: 0; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--ek-row); }
.ek-flag { position: absolute; right: 0; bottom: 0; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--ek-mark);
  box-shadow: 0 0 0 2px var(--ek-row); }
.ek-chip .ek-dot { top: 1px; right: auto; left: 24px; }
.ek-chip .ek-flag { right: auto; bottom: 1px; left: 24px; }
.ek-secs .is-cur .ek-chip .ek-dot, .ek-secs .is-cur .ek-chip .ek-flag { box-shadow: 0 0 0 2px var(--ek-cur); }
/* a section's card: its name, how far it is and what is left in it. Read by a screen reader always (it is in the
   link), shown at the pointer or the keyboard when the row does not scroll (a row that scrolls would cut it off) */
.ek-sec-tip { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 30; display: grid; gap: 6px; width: max-content;
  min-width: 210px; max-width: 290px; padding: 11px 13px 12px; transform: translateX(-50%); border: 1px solid var(--line);
  border-radius: 12px; background: var(--ek-card); color: var(--ink); box-shadow: var(--ek-shadow); font-size: .8125rem;
  font-weight: 400; line-height: 1.35; text-align: left; white-space: normal; pointer-events: none; clip-path: inset(50%);
  opacity: 0; transition: opacity .12s ease; }
.ek-sec-tip b { font-size: .875rem; font-weight: 600; }
.ek-tip-bar { display: block; height: 6px; border-radius: 3px; background-color: var(--ek-track);
  background-image: linear-gradient(var(--ek-teal), var(--ek-teal)), linear-gradient(var(--ek-light), var(--ek-light));
  background-repeat: no-repeat; background-size: calc(100% * var(--a, 0)) 100%, calc(100% * var(--p, 0)) 100%; }
.ek-secs .is-cur .ek-tip-bar { --ek-track: #dde6e9; --ek-light: #8cc7c8; --ek-teal: var(--accent, #0e7174); }
.ek-tip-n { color: var(--muted); }
.ek-tip-left { display: flex; align-items: center; gap: 7px; color: var(--ek-wait); font-weight: 600; }
.ek-tip-left::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.ek-tip-left.is-mark { color: var(--ek-mark-text); }
.ek-tip-left.is-mark::before { background: var(--ek-mark); box-shadow: none; }
.ek-tip-ok { color: var(--accent-text, var(--ek-teal)); font-weight: 600; }
.ek-secs li:last-child .ek-sec-tip { left: auto; right: 0; transform: none; }
@container ekbar (min-width: 690px) {  /* the row of sections fits: nothing scrolls, and a section's card shows */
  .ek-secs { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .ek-secs a:hover .ek-sec-tip, .ek-secs a:focus-visible .ek-sec-tip { clip-path: none; opacity: 1; }
}
@container ekbar (max-width: 929px) {  /* Attachments and Signatures by their icon: the name is in the card */
  .ek-chip { padding: 0 3px; }
  .ek-chip-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@container ekbar (max-width: 1079px) {  /* tabs without their icons, to keep the pages in one row longer: with
                                           Signatories (24 Nov 2026) the eight tabs need 1,066 px in English */
  .ek-pages .ek-ico { display: none; }
  .ek-pages a { padding: 0 10px; }
}
@container ekbar (max-width: 809px) {  /* the whole application by its ring: its words are in the link, for a screen reader */
  .ek-whole-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@container ekbar (max-width: 560px) {  /* a phone: sections a finger can hit */
  .ek-secs-row { gap: 10px; padding-left: 10px; }
  .ek-node { width: 38px; height: 38px; }
  .ek-chip { height: 38px; padding: 0 5px; }
  .ek-pages .ek-aside { margin-left: 0; }
}
.ek-en-note { margin: 0 0 8px; }
.ek-lede { display: grid; gap: 8px; }
/* how many questions Ethix does not ask now, with the way to see them: only where there are any */
.ek-closed-line { margin: 4px 0 12px; }
.ek-closed-line .ek-toggle { font-weight: 400; }
.ek-toggle { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ek-list { display: grid; gap: 14px; }
.ek-q { display: grid; gap: 10px; }
.ek-q.ek-closed { opacity: .55; border-style: dashed; }
.ek-head { display: grid; gap: 4px; }
.ek-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
/* Ethix's own wording of a question, under its English translation: the answer is written to the Swedish one */
html.ek-lang-en .ek-orig { display: block; font-size: .82rem; letter-spacing: 0; font-weight: 400; line-height: 1.35; margin-top: 3px; opacity: .72; }
.ek-sub { font-size: 1.1rem; margin: 10px 0 0; }
.ek-req { color: #c0392b; font-weight: 700; }
.ek-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ek-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .75rem;
  font-weight: 600; text-decoration: none; color: inherit; background: var(--surface, #fff); }
.ek-s-draft { background: #f4efe1; border-color: #e2d5b0; }
.ek-s-for-review { background: #e6eef8; border-color: #b9cde6; }
.ek-s-agreed { background: #e3f2ea; border-color: #a9d3bb; }
.ek-ai { background: #efe9f7; border-color: #cdbfe4; }
.ek-info { background: #fdecd9; border-color: #f0c08a; }
.ek-gap { background: #fbe7e5; border-color: #ebb4ae; }
@media (prefers-color-scheme: dark) {  /* the same badges in the dark theme: dark grounds, the words light */
  :root:not([data-theme="light"]) .ek-s-draft { background: #2c2716; border-color: #4d4224; color: #eadfbd; }
  :root:not([data-theme="light"]) .ek-s-for-review { background: #172536; border-color: #2b4563; color: #c9dbf1; }
  :root:not([data-theme="light"]) .ek-s-agreed { background: #14291f; border-color: #2a5a40; color: #b9e2cb; }
  :root:not([data-theme="light"]) .ek-ai { background: #241d33; border-color: #43375c; color: #d9cdf0; }
  :root:not([data-theme="light"]) .ek-info { background: #33230f; border-color: #5e4220; color: #f3cb98; }
  :root:not([data-theme="light"]) .ek-gap { background: #3c1916; border-color: #6b2a24; color: #ffb7ae; }
}
:root[data-theme="dark"] .ek-s-draft { background: #2c2716; border-color: #4d4224; color: #eadfbd; }
:root[data-theme="dark"] .ek-s-for-review { background: #172536; border-color: #2b4563; color: #c9dbf1; }
:root[data-theme="dark"] .ek-s-agreed { background: #14291f; border-color: #2a5a40; color: #b9e2cb; }
:root[data-theme="dark"] .ek-ai { background: #241d33; border-color: #43375c; color: #d9cdf0; }
:root[data-theme="dark"] .ek-info { background: #33230f; border-color: #5e4220; color: #f3cb98; }
:root[data-theme="dark"] .ek-gap { background: #3c1916; border-color: #6b2a24; color: #ffb7ae; }
.ek-why { margin: 0; }
.ek-tip { margin: 0; padding: 10px 12px; border-left: 3px solid #d6a636; background: color-mix(in srgb, #d6a636 8%, transparent);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0; font-size: .9rem; }
.ek-help summary { cursor: pointer; }
.ek-help > div { white-space: pre-line; margin-top: 6px; color: var(--muted, #555); }
.ek-form { display: grid; gap: 8px; }
.ek-form textarea { width: 100%; font-family: inherit; line-height: 1.5; resize: vertical; }
.ek-short { max-width: 220px; }
.ek-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ek-choice label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.ek-boxes { display: grid; gap: 4px; }
.ek-many { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-height: 320px; overflow: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); }
.ek-count { margin: 0; text-align: right; }
.ek-count.ek-over, .ek-over { color: #c0392b; font-weight: 700; }
.ek-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.ek-meta > label { flex: 0 1 230px; }
.ek-meta > label:first-child { flex: 1 1 240px; }
.ek-meta > .ek-save { flex: 1 1 100%; }
.ek-meta .ts-field { margin-top: 0; }
.ek-save { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ek-said.ek-bad { color: #c0392b; }
/* comparing versions, on the question's own page: the list says what each save changed, and one version at a time
   is compared under the answer, the changes marked in the text (etik.js, _etik_compared) */
.ek-versions li { padding: 2px 6px; margin-left: -6px; border-radius: var(--radius-sm, 6px); }
.ek-versions li.ek-compared { background: color-mix(in srgb, #d6a636 14%, transparent); }
.ek-delta { color: var(--muted); }
.ek-compare { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ek-compare[hidden] { display: none; }
.ek-compare h2 { margin: 0 0 6px; font-size: 1rem; }
.ek-compare p { margin: 6px 0 0; }
.ek-compare-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-compare-modes [aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.ek-compare .ek-when-before, .ek-compare.ek-cmp-before .ek-when-now { display: none; }
.ek-compare.ek-cmp-before .ek-when-before { display: inline; }
.ek-compare-del { margin: 8px 4px 0 0; vertical-align: middle; }
.ek-compare .ek-compare-text { max-width: none; max-height: 60vh; overflow: auto; margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); background: var(--surface);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.ek-compare .ek-key-quiet, .ek-compare-del:not(:checked) ~ .ek-compare-key .ek-key-all { display: none; }
.ek-compare-del:not(:checked) ~ .ek-compare-key .ek-key-quiet { display: inline; }
/* a line break that was removed or added is all space, which shows neither struck through nor marked: a sign for it */
.cn-diff .ek-break::before { content: "\00B6"; }
/* the removed words out of the way, for reading the text as it is: a small mark stays, with the words on hover, and
   a removed line break no longer breaks the line */
.ek-compare-del:not(:checked) ~ .ek-compare-text del { font-size: 0; white-space: normal; background: none; text-decoration: none; }
.ek-compare-del:not(:checked) ~ .ek-compare-text del::before { content: "\2212"; font-size: .75rem; padding: 0 4px; margin: 0 1px;
  border-radius: 999px; color: var(--bad, #a33); background: rgba(170, 51, 51, .12); vertical-align: 1px; }
.ek-compare-del:not(:checked) ~ .ek-compare-text del.ek-break::before { content: "\00B6"; }
/* a sealed answer (ready for review, agreed): its words are read, not changed, and the form says why */
.ek-sealed textarea.input, .ek-sealed input.input[readonly] { background: var(--surface-2); }
.ek-sealed-note { flex: 1 1 100%; margin: 0; padding: 6px 10px; border-left: 3px solid var(--line-strong, #9fb0ba);
  background: var(--surface-2); border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0; }
.ek-save [data-when-draft] { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ek-save [data-when-draft][hidden] { display: none; }
.ek-more { margin: 0; }
/* someone else saved this answer. Told: while the person was in it here, so the page shows an older version (a
   warning). Refused: their save was made from the older copy. Fresh: the page shows the saved one already. Since:
   it was saved after this account last had it on screen (never: it never had). The last two are said calmly. */
.ek-news .note { display: grid; gap: 6px; margin: 0; }
.ek-news p { margin: 0; }
.ek-news .ek-when-refused, .ek-news .ek-when-fresh, .ek-news .ek-when-since,
.ek-news.ek-refused .ek-when-told, .ek-news.ek-fresh .ek-when-told, .ek-news.ek-since .ek-when-told,
.ek-news.ek-refused .ek-not-refused { display: none; }
.ek-news.ek-refused .ek-when-refused, .ek-news.ek-fresh .ek-when-fresh, .ek-news.ek-since .ek-when-since { display: block; }
.ek-news .ek-if-never, .ek-news.ek-never .ek-if-seen { display: none; }
.ek-news.ek-never .ek-if-never { display: inline; }
.ek-q .ek-news.ek-never .ek-news-do, .ek-r .ek-news.ek-never .ek-news-do { display: none; }  /* the answer is right there */
.ek-news.ek-fresh .note, .ek-news.ek-since .note { border-left: 4px solid var(--accent, #1f7a6b); }
.ek-r .ek-news { margin: 6px 0; }
/* a section that holds something new to this account, in the pages' menu */
.ek-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #e2b955; vertical-align: middle; }
/* new for you, on the overview: one answer a line, each with what changed since this account saw it */
.ek-newitems { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ek-newitems:empty { display: none; }
.ek-newitems > li { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.ek-newitems > li:first-child { padding-top: 0; border-top: 0; }
.ek-newitems > li.ek-shown > p:first-child a { color: inherit; }
.ek-others-new { margin: 0; }
/* who has what: an owner's row opens into their answers */
.ek-has summary { cursor: pointer; }
.ek-has tbody th { min-width: 18em; }
/* the answers under a name wrap, so an opened row does not push the counts out of the box */
.ek-has .hz-list { margin: 6px 0 2px; font-weight: 400; text-transform: none; letter-spacing: normal; font-size: .875rem; white-space: normal; }
.ek-has-free summary { font-style: italic; }
.ek-who legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.ek-news-do { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-news-diff { display: grid; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.ek-news .cn-diff { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ek-here { margin: 0; }
/* the others' work: who has which answer open now, and the last answers other people saved */
.ek-others { display: grid; gap: 8px; }
.hz-side .panel + .ek-others { margin-top: 16px; }
.ek-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }  /* under the top bar */
@media (max-width: 1100px) {  /* no room beside the answers: above them, and on a phone under them */
  .ek-write { grid-template-columns: 1fr; }
  .ek-side { position: static; max-height: none; order: -1; }
}
@media (max-width: 720px) { .ek-side { order: 0; } }
.ek-others h3 { margin: 0 0 2px; font-size: .9rem; }
.ek-others-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 24px; }
.ek-others .hz-list { margin: 0; }
.ek-others-note { margin: 0; }
.ek-new { animation: ek-new 3s ease-out; }  /* a line the check has just added */
@keyframes ek-new { from { background: rgba(214, 166, 54, .35); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ek-new { animation: none; } }
.ek-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ek-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ek-figures p { margin: 0; display: grid; align-content: start; }
.ek-figures b { font-size: 1.5rem; }
.ek-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 6px;
  background: linear-gradient(90deg, #2e8b57 var(--p), var(--line, #ddd) var(--p)); }
.ek-needs { color: #b5651d; }
.ek-steps { display: grid; gap: 10px; }
/* the overview: the count in a line, three steps, what needs the person, the map of the form, and details folded */
.ek-sum { margin: 10px 0 14px; color: var(--muted, #5b6770); }
.ek-sum b { color: var(--ink, #14293d); }
.ek-how { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ek-how li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2, #eef2f4); }
.ek-how b { color: var(--ink, #14293d); }
.ek-how span { font-size: .9rem; color: var(--muted, #5b6770); }
.ek-needs-you { display: grid; gap: 8px; }
.ek-changed-h { margin: 6px 0 0; font-size: 1rem; }
.ek-map { list-style: none; margin: 0 0 8px; padding: 0; }
.ek-map li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 70px; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid #e4e9ec; }
.ek-map li:first-child { border-top: 0; }
.ek-map-name { font-weight: 600; }
.ek-map-bar { height: 6px; border-radius: 3px; background: linear-gradient(to right, #7b8a94 var(--p), #e3e8eb var(--p)); }
.ek-map-bar.ek-map-done { background: linear-gradient(to right, #2f7d5b var(--p), #e3e8eb var(--p)); }
.ek-map-n { text-align: right; font-size: .9rem; color: var(--muted, #5b6770); white-space: nowrap; }
.ek-map-what { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.ek-map-marks { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ek-map-marks:empty { display: none; }
.ek-details { margin: 16px 0; }
.ek-details > summary { cursor: pointer; color: var(--muted, #5b6770); margin-bottom: 12px; }
.ek-details > .panel, .ek-details > section { margin-bottom: 16px; }
@media (max-width: 560px) { .ek-map li { grid-template-columns: minmax(0, 1fr) 60px; } .ek-map-bar { display: none; } }
.ek-step h3 { margin: 0; font-size: 1rem; }
/* the Stage 1 front page (horizon_stage1.html), in the ethics overview's parts: a question in one line, a part that
   opens into its paragraphs under its row */
.s1-need-lines li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.s1-need-q { flex: 1 1 18rem; min-width: 0; }
.s1-parts > li > .s1-part-open { grid-column: 1 / -1; }
.s1-part-open > summary { cursor: pointer; color: var(--accent-text, var(--accent)); }
.s1-part-open .s1-cards { margin: 6px 0 0 12px; }
.s1-over { color: var(--ek-wait, #8a4b00); font-weight: 600; }
.s1-top .s1-lens { margin: 0 0 10px; }
.s1-for-lead { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--line); }
.s1-for-lead h3 { margin: 0; font-size: 1rem; }
.ek-step p { margin: 2px 0; }
.ek-old, .ek-r-text { white-space: pre-wrap; line-height: 1.55; }
.ek-read h2 { margin-top: 24px; }
/* What is left before the form (etik_preflight.html): the findings as boxes to tick, on screen and on paper */
.pf-verdict p { margin: 2px 0; }
.pf-do { margin: 10px 0 16px; }
.pf-none { opacity: .55; }
.pf-q { padding: 10px 0; border-top: 1px solid #e4e9ec; }
.pf-q:first-of-type { border-top: 0; }
.pf-q h3 { margin: 0 0 2px; font-size: 1rem; }
.pf-q > p { margin: 0 0 4px; }
.pf-list { list-style: none; margin: 6px 0; padding: 0; }
.pf-list li { position: relative; margin: 5px 0; padding-left: 26px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 13px; height: 13px; border: 1.5px solid var(--muted, #5b6770); border-radius: 3px; }
.pf-line { margin-top: 18px; }
.pf-blank { display: inline-block; min-width: 13em; border-bottom: 1px solid var(--muted, #5b6770); margin: 0 14px 0 6px; }
@media print { .pf-do, .pf-back { display: none; } .pf-q { break-inside: avoid; } }
/* The same list printed, or saved as a PDF (body.pf-print): the look of the attachments' PDFs (app/attachments.py) and
   the application's Word file. The masthead with the sign and the research principals, the spaced gold line over the
   title, a gold rule and a teal number over each part, the questions' numbers in teal, the findings as boxes to tick.
   The page's head and foot are in the template's own style (etik_preflight.html). */
.pr-mast, .pr-over { display: none; }
@media print {
  body.pf-print { background: #fff; color: #1B2A2B; font-size: 9.4pt; line-height: 1.5; }
  .pf-print .content { display: block; padding: 0; }
  .pf-print a { color: inherit; text-decoration: none; }
  .pf-print .pr-mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 10mm;
    margin: 0 0 9mm; padding: 7mm 0 4.6mm;
    background: linear-gradient(#BF8A24, #BF8A24) left bottom / 14mm 1.2pt no-repeat,
                linear-gradient(#D4DEE3, #D4DEE3) left bottom / 100% .6pt no-repeat; }
  .pf-print .pr-sign svg { display: block; width: auto; height: 14mm; }
  .pf-print .pr-sign b { font-size: 13pt; letter-spacing: .14em; }
  .pf-print .pr-who { margin: 0 0 1.4mm; text-align: right; font-size: 9pt; line-height: 1.35; color: #1B2A2B; }
  .pf-print .pr-who-k { display: block; margin-bottom: .8mm; font-size: 6.2pt; font-weight: 600; letter-spacing: .24em;
    text-transform: uppercase; color: #6B7F7C; }
  .pf-print .pr-over { display: block; margin: 0 0 2.6mm; font-size: 7.4pt; font-weight: 600; letter-spacing: .2em;
    text-transform: uppercase; color: #8C6418; }
  .pf-print .ts-h1 { margin: 0 0 4mm; font-size: 21pt; line-height: 1.2; letter-spacing: -.01em; color: #1B2A2B; }
  .pf-print .pf-lead { margin: 0 0 5mm; font-size: 9pt; color: #4F6664; }
  .pf-print .pf-verdict { margin: 0 0 2mm; padding: 3.4mm 5mm; border: 0; border-left: 2.4pt solid #BF8A24;
    border-radius: 0; background: #F4F8F8; color: #1B2A2B; break-inside: avoid; }
  .pf-print .pf-verdict.ts-ok { border-left-color: #0E7174; }
  .pf-print .pf-verdict p { margin: .6mm 0; }
  .pf-print { counter-reset: pr-part; }
  .pf-print .panel { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    break-inside: auto; }
  .pf-print .panel > h2 { margin: 9mm 0 2.6mm; padding-top: 4.4mm; font-size: 13.5pt; line-height: 1.3; color: #1B2A2B;
    background: linear-gradient(#BF8A24, #BF8A24) left top / 10mm 1.2pt no-repeat; break-after: avoid; }
  .pf-print .panel > h2::before { counter-increment: pr-part; content: counter(pr-part) ". "; color: #0E7174; }
  .pf-print .panel > p.small.muted { margin: 0 0 2mm; }
  .pf-print .small { font-size: 8.2pt; }
  .pf-print .muted { color: #6B7F7C; }
  .pf-print .ek-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4mm 4mm; margin: 0;
    break-inside: avoid; }
  .pf-print .ek-figures p { margin: 0; padding: 2.2mm 3mm; background: #F4F8F8; line-height: 1.25; break-inside: avoid; }
  .pf-print .ek-figures b { display: block; font-size: 15pt; font-weight: 600; color: #0E7174; }
  .pf-print .ek-figures .pf-none { opacity: 1; }
  .pf-print .ek-figures .pf-none b { color: #9DB0AD; }
  .pf-print .pf-q { padding: 0; margin: 4.2mm 0 0; border: 0; }
  .pf-print .pf-q:first-of-type { margin-top: 1mm; }
  .pf-print .pf-q h3 { margin: 0 0 .4mm; font-size: 10.2pt; line-height: 1.35; break-after: avoid; }
  .pf-print .pf-num { color: #0E7174; }
  .pf-print .pr-not { display: none; }
  .pf-print .pf-q > p { margin: 0 0 1mm; }
  .pf-print .pf-list { margin: 1.2mm 0; }
  .pf-print .pf-list li { margin: 1.1mm 0; padding-left: 6.4mm; line-height: 1.45; break-inside: avoid; }
  .pf-print .pf-list li::before { left: 0; top: .28em; width: 2.9mm; height: 2.9mm; border: .9pt solid #0E7174;
    border-radius: .6mm; }
  .pf-print .ek-over { color: #8C6418; }
  .pf-print #signoff { break-inside: avoid; }
  .pf-print .pf-line { margin-top: 9mm; }
  .pf-print .pf-blank { min-width: 55mm; border-bottom: .7pt solid #1B2A2B; }
  .pf-print .ts-copyright-foot { margin-top: 10mm; color: #6B7F7C; }
}
/* Into Ethix (etik_fill.html): the steps of the script, and the answers one by one */
.fi-steps { padding-left: 22px; }
.fi-steps li { margin: 8px 0; }
.fi-copy { display: inline-flex; margin: 6px 0; }
.fi-sec { margin: 22px 0 4px; }
.fi-q { padding: 10px 0; border-top: 1px solid #e4e9ec; }
.fi-q h4 { margin: 0 0 2px; font-size: 1rem; }
.fi-q > p { margin: 2px 0 6px; }
.fi-text { padding: 8px 10px; border: 1px solid #e4e9ec; border-radius: 6px; background: var(--surface, #fff); overflow-wrap: anywhere; }
.fi-held .fi-text { opacity: .7; }
.fi-done::after { content: " \2713"; }
/* Ethix's attachments (etik_attachments.html): the two made here as cards, the marks left in each, the others */
.at-lead { max-width: 48rem; margin: 4px 0 16px; font-size: 1rem; color: var(--ink-2); }
.at-verdict p { margin: 2px 0; }
.at-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px;
  align-items: start; margin: 18px 0 20px; }
.at-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 64px; }
.at-card:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.at-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.at-badge { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--wait-soft); color: var(--wait); }
.at-ready .at-badge { background: var(--good-soft); color: var(--good); }
.at-title { flex: 1 1 200px; min-width: 0; }
.at-over { margin: 0 0 2px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); }
.at-title h2 { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.at-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .75rem; font-weight: 600;
  white-space: nowrap; vertical-align: middle; }
.at-chip-good { background: var(--good-soft); color: var(--good); }
.at-chip-wait { background: var(--wait-soft); color: var(--wait); }
.at-chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.at-facts { display: grid; gap: 4px; margin: 0; font-size: .875rem; }
.at-facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; }
.at-facts dt { color: var(--muted); }
.at-facts dd { margin: 0; overflow-wrap: anywhere; }
.at-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.at-counts li { padding: 2px 10px; border-radius: 999px; background: var(--wait-soft); color: var(--wait); }
.at-counts .at-confirm { background: var(--accent-soft); color: var(--accent-text); }
.at-counts .at-other { background: var(--surface-2); color: var(--ink-2); }
.at-do { margin: 0; }
.at-do .btn { display: inline-flex; align-items: center; gap: 6px; }
.at-made { margin: -4px 0 0; }
.at-marks { padding-top: 12px; border-top: 1px solid var(--line); }
.at-marks summary { cursor: pointer; font-size: .875rem; font-weight: 600; }
.at-where { margin: 12px 0 2px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.at-mark-list { margin: 0; padding: 0; list-style: none; }
.at-mark-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: baseline;
  padding: 3px 0; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.at-kind { padding: 0 7px; border-radius: 999px; background: var(--wait-soft); color: var(--wait); font-size: .6875rem;
  font-weight: 600; white-space: nowrap; }
.at-confirm .at-kind { background: var(--accent-soft); color: var(--accent-text); }
.at-other .at-kind { background: var(--surface-2); color: var(--ink-2); }
.at-foot { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.at-steps { margin: 8px 0; padding-left: 22px; }
.at-steps li { margin: 6px 0; line-height: 1.5; }
.at-others { margin: 8px 0 0; padding: 0; list-style: none; }
.at-others li { padding: 10px 0; border-top: 1px solid var(--line); }
.at-others li:first-child { border-top: 0; }
.at-others p { margin: 2px 0; }
.at-other-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.at-other-h .btn { display: inline-flex; align-items: center; gap: 6px; }
.at-made-here { margin: 6px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
@media print { .at-do, .at-made, .at-foot, #how { display: none; } .at-card { box-shadow: none; border: 1px solid #ccc; }
  .at-marks { display: block; } }
.ek-r { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ek-r h3 { font-size: 1rem; margin: 0; }
.ek-r h3 a { color: inherit; text-decoration: none; }
.ek-r p { margin: 2px 0 6px; }
.ek-r-empty .ek-r-text { color: #c0392b; }
.ek-ask summary { cursor: pointer; }
@media (max-width: 720px) { .ek-top { flex-direction: column-reverse; } .ek-lang { margin-top: 8px; } }
@media print {
  .ek-top, .ek-lang, .ts-actions, .ek-en-note, .ek-news { display: none !important; }
  .ek-r { break-inside: avoid; }
}

/* the sidebar's submenu (app/sitemap.py): the area you are in opens into its parts, the part into its pages */
.ts-sub { list-style: none; margin: 2px 0 8px 22px; padding: 0 0 0 10px; border-left: 1px solid rgba(255,255,255,.18); }
.ts-sub ul { list-style: none; margin: 2px 0 6px 10px; padding: 0 0 0 10px; border-left: 1px solid rgba(255,255,255,.12); }
.ts-sub a { display: block; padding: 5px 8px; border-radius: 6px; color: inherit; text-decoration: none; font-size: .875rem; opacity: .85; }
.ts-sub a:hover { background: var(--navy-2); opacity: 1; }
.ts-sub a.is-open { font-weight: 600; opacity: 1; }
.ts-sub a[aria-current="page"] { background: var(--navy-2); font-weight: 600; opacity: 1; }

/* ---- data scope (/data-scope) */
.hz-pill.ds-include { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hz-pill.ds-limited { border-color: #c99a3a; background: var(--rv-gold-soft, #fbf4e4); }
.hz-pill.ds-exclude { color: var(--muted); border-style: dashed; }
.hz-pill.ds-mapping { border-color: #6f7fa8; background: color-mix(in srgb, #6f7fa8 10%, transparent); border-style: dotted; }
.ts-table .ds-out td { color: var(--muted); }
/* how a table's decision came about (datascope_table.html): the rule's three patterns on lines of their own. A
   pattern has no spaces, so it breaks wherever its line ends */
.ds-how p { margin: 0; }
.ds-rule { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 4px 0; }
.ds-rule dt { font-weight: 600; }
.ds-rule dd { margin: 0; }
.ds-rule code { overflow-wrap: anywhere; white-space: normal; }
.ds-cats td:nth-child(5) { min-width: 320px; }
.ds-registers td:nth-child(4) { min-width: 200px; }
.ds-registers td:nth-child(5) { min-width: 200px; overflow-wrap: anywhere; }
.ds-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.ds-form select.input { width: 100%; }
.ts-table code { font-size: .8125rem; overflow-wrap: anywhere; }
.ds-group { margin: 10px 0; }
.ds-group summary { cursor: pointer; }
/* the quality registers (/data-scope/quality-registers): what the package holds of a register, as a pill */
.hz-pill.ds-variables { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hz-pill.ds-labels { border-color: #c99a3a; background: var(--rv-gold-soft, #fbf4e4); }
.hz-pill.ds-format { border-color: #6f7fa8; background: color-mix(in srgb, #6f7fa8 10%, transparent); border-style: dotted; }
.hz-pill.ds-none { color: var(--muted); border-style: dashed; }
.ts-table .ds-area th { padding-top: 14px; text-align: left; font-weight: 600; background: var(--surface-2); }
.ts-table .ds-area th .muted { font-weight: 400; }
.ds-quality td:nth-child(1) { min-width: 220px; }
.ds-quality td:nth-child(3) { min-width: 150px; }
.ds-quality td:nth-child(4) { min-width: 220px; overflow-wrap: anywhere; }
.ds-found td:nth-child(4), .ds-documents td:nth-child(1) { overflow-wrap: anywhere; }
.ds-rows { table-layout: fixed; width: 100%; min-width: 760px; }
.ds-rows td { vertical-align: top; overflow-wrap: break-word; }
.ds-rows th:nth-child(1) { width: 24%; }
.ds-rows th:nth-child(2) { width: 22%; }
.ds-rows th:nth-child(4) { width: 11%; }
.ds-rows th:nth-child(5) { width: 18%; }
.ds-rows .ds-area th { text-transform: none; letter-spacing: 0; font-size: .875rem; white-space: normal; }
.ds-rows-labels th:nth-child(1) { width: 45%; }
.ds-rows-labels th:nth-child(2) { width: 25%; }
.ds-forms { columns: 280px; padding-left: 18px; }
.ds-forms a[aria-current] { font-weight: 600; }

/* ---- links between records (a record's own page, /horizon/<list>/<id>) */
.lk-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; max-width: 46rem; margin: 6px 0; }
.lk-add .ts-field { flex: 1 1 16rem; margin: 0; }

/* ---- writing an answer together, live (livesrc/main.js builds the card; etik_live.html, etik_section.html) */
.lw-auto { margin: 0 0 14px; }
.lw-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lw-head .ek-badges { margin: 0; }
.lw-card { margin: 8px 0 4px; }
.lw-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.lw-share { flex: 1 1 260px; min-width: 0; }
.lw-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-modes .btn[aria-pressed="true"] { background: #14324a; color: #fff; border-color: #14324a; }
/* comments on or off, with how many there are: off, only the count and the marked passages show */
.lw-comments { margin-left: auto; }
.lw-bubble { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: #f2c94c; color: #3a2e00; font-size: .78rem; font-weight: 700; text-align: center; }
.lw-bubble:empty { display: none; }
.lw-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e3e8ec; }
.lw-bar span { min-width: 3px; }
.lw-people { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 6px 0 0; padding: 0; font-size: .85rem; }
.lw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.lw-body { display: flex; gap: 14px; align-items: flex-start; }
.lw-main { position: relative; flex: 1 1 0; min-width: 0; }
.lw-editor { border: 1px solid #b9c4cc; border-radius: 8px; background: #fff; }
.lw-editor .cm-editor { font: inherit; }
.lw-editor .cm-editor.cm-focused { outline: 2px solid #1c7c7c; outline-offset: 1px; border-radius: 8px; }
.lw-editor .cm-scroller { font-family: inherit; line-height: 1.6; }
.lw-editor .cm-content { padding: 10px 12px; min-height: 7em; }
.lw-editor .cm-line { padding: 0; }
.lw-wait { margin: 10px 12px; }
.lw-by { background: color-mix(in srgb, var(--c) 14%, transparent); border-bottom: 2px solid var(--c); }
.lw-ins { background: color-mix(in srgb, var(--c) 20%, transparent); border-bottom: 2px solid var(--c); text-decoration: none; }
.lw-del { color: var(--c); text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .85; background: none; }
.lw-noted { background-image: linear-gradient(#f2c94c, #f2c94c); background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 100%; background-color: #fff6cf; cursor: pointer; }
.lw-pick { position: absolute; z-index: 5; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #c9d2d8;
  border-radius: 8px; background: #fff; color: #14324a; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.lw-pick[hidden] { display: none; }
.lw-pick:hover, .lw-pick:focus-visible { background: #14324a; color: #fff; border-color: #14324a; }
.lw-ask { color: #8a5a00; }
.lw-notes { flex: 0 0 250px; max-width: 250px; font-size: .88rem; }
.lw-notes .lw-h { font-size: .9rem; margin: 0 0 6px; }
.lw-notelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lw-notelist li, .lw-new { border: 1px solid #dfe5e9; border-left: 3px solid var(--c, #f2c94c); border-radius: 6px; padding: 8px 10px; background: #fff; }
.lw-new { margin-bottom: 8px; }
.lw-notelist li.lw-lit { box-shadow: 0 0 0 2px #f2c94c; }
.lw-notelist p, .lw-new p { margin: 0 0 4px; }
.lw-quote { color: #5b6770; font-style: italic; cursor: pointer; }
.lw-quote.lw-lost { cursor: default; text-decoration: line-through; }
.lw-reply { margin-left: 8px !important; padding-left: 8px; border-left: 2px solid #e3e8ec; }
.lw-answer { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lw-answer .input { flex: 1 1 110px; min-width: 0; padding: 3px 6px; font-size: .85rem; }
.lw-new textarea { width: 100%; font-size: .88rem; }
.lw-under { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; margin: 6px 0 0; }
.lw-line { color: #2e6b3f; }
.lw-line.lw-pending { color: #8a5a00; }
.lw-line.lw-off { color: #a3262a; }
.lw-count.lw-over { color: #a3262a; font-weight: 600; }
.lw-key { margin: 4px 0 0; }
.lw-key > span { display: none; }
.lw-card[data-mode="who"] .lw-key-who, .lw-card[data-mode="changes"] .lw-key-changes { display: inline; }
.lw-time { margin-top: 8px; }
.lw-time summary { cursor: pointer; font-size: .9rem; }
.lw-time input[type="range"] { width: min(420px, 100%); vertical-align: middle; }
.lw-then { border: 1px dashed #b9c4cc; border-radius: 8px; padding: 10px 14px; background: #fafbfc; white-space: pre-wrap; }
.lw-then .cn-diff { margin: 0; }
.lw-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lw-card .cm-ySelectionInfo { font-size: .72rem; padding: 1px 4px; border-radius: 3px; opacity: 1; font-family: inherit; }
/* on a section page the card stands in the answer's form: the text box, and its count give way */
.ek-form.lw-live textarea.ek-text, .ek-form.lw-live .ek-count { display: none; }
/* the comments stand beside the text wherever the card is wide enough for both, on every page; under it otherwise */
.lw-card { container-type: inline-size; }
@container (max-width: 619px) { .lw-body { flex-direction: column; } .lw-notes { flex: 1 1 auto; max-width: none; width: 100%; } }
article:has(.ek-form.lw-live) .ek-news, section.ek-q:has(.ek-form.lw-live) .ek-news { display: none; }  /* the card shows every change itself */
/* on the answer's own page the live card takes the page's whole width, so that the comments have their place beside
   the text; the earlier versions and the sources stand under it, side by side */
.hz-write:has(.ek-form.lw-live) { grid-template-columns: 1fr; }
.hz-write:has(.ek-form.lw-live) .hz-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.hz-write:has(.ek-form.lw-live) .hz-side > * { margin-top: 0; }
/* the live text saves itself as it is typed, so the card's form needs no save button of its own */
.ek-form.lw-live .ek-save .ek-save-btn { display: none; }
.ek-form.lw-live .ek-meta { margin-top: 12px; padding-top: 10px; border-top: 1px solid #dfe5e9; }
.ek-auto .ek-save .ek-save-btn { display: none; }  /* a choice saves as it is made */
/* who stands behind an answer (_etik_signs.html) */
.ek-signs { margin: 10px 0 4px; }
.ek-signs:empty { display: none; }
.ek-signed { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ek-sign { color: #1f5f3a; font-weight: 600; }
.ek-sign .muted { font-weight: 400; }
.ek-sign-old { color: #6b7280; font-weight: 400; }
.ek-sign-do { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
/* a button with a long text (the variable list, on the page of registers) breaks its line on a narrow screen and
   does not push the page wider than the screen */
.ek-sign-do .btn { max-width: 100%; white-space: normal; text-align: left; }
/* the SRQ application (srq.html): the form's parts on one page */
.srq-intro p { margin: 0 0 10px; }
.srq-intro p:last-child { margin-bottom: 0; }
.srq-toc ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 4px; }
.srq-part { margin: 28px 0 10px; font-size: 1.15rem; scroll-margin-top: 16px; }
.ek-src { margin: 10px 0 0; padding: 8px 14px; border: 1px solid #dfe5e9; border-radius: 8px; background: #fafbfc; }
.ek-src summary { cursor: pointer; font-size: .92rem; }
.ek-src li { margin-bottom: 6px; overflow-wrap: anywhere; }
/* a register's name is a sentence: it wraps, or the row header takes the table's width and squeezes the rest */
.map-t th[scope="row"] { min-width: 150px; max-width: 240px; white-space: normal; vertical-align: top; }
.map-t td { vertical-align: top; min-width: 120px; overflow-wrap: break-word; }
.map-other { opacity: .75; }
.map-q li { margin-bottom: 4px; }

/* The assistant's chat (app/static/assistant.js): a panel at the side of an ethics page, and a page of its own
   (/assistant) with the person's conversations. Its look is the chat box of the public site
   (docs/decisions/2026-11-21_assistant-look.md): the TOUCHSTONE mark on its own dark ground, the person's words in a
   teal bubble at the right, the answers in bubbles beside the mark, and in the panel a start with a greeting, a card
   to ask in and four things to try. The colours are the hub's, so the chat follows the light and the dark theme; the
   type is the hub's own (no font is fetched from elsewhere). Everything the model writes is put in as text. */
.as-panel, .as-app, .as-review {
  --as-band: #1b2a2b; --as-band-ink: #eef3f2; --as-band-muted: #a9bcb9; --as-band-soft: #b8c9c6;
  --as-band-ring: rgba(238, 243, 242, .18); --as-band-hover: rgba(238, 243, 242, .10); --as-band-edge: #1b2a2b;
  --as-live: #72cf98; --as-ground: #eef2f3; --as-card: var(--surface); --as-bar: var(--surface); --as-hair: #e3eaee;
  --as-edge: var(--line); --as-avatar-ring: transparent;
  --as-shadow: 0 1px 2px rgba(18, 39, 58, .06);
  --as-lift: 0 1px 2px rgba(18, 39, 58, .06), 0 10px 28px rgba(18, 39, 58, .10);
  --as-card-shadow: 0 1px 2px rgba(18, 39, 58, .06), 0 8px 24px rgba(18, 39, 58, .08);
  color: var(--ink); background: var(--as-ground); font-family: var(--font); font-size: .9375rem; line-height: 1.55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .as-panel, :root:not([data-theme="light"]) .as-app, :root:not([data-theme="light"]) .as-review {
    --as-ground: var(--bg); --as-card: var(--surface-2); --as-hair: var(--line); --as-edge: #22323d; --as-band-edge: #263a3c;
    --as-avatar-ring: rgba(221, 232, 238, .12); --as-shadow: 0 0 0 transparent; --as-lift: 0 8px 24px rgba(0, 0, 0, .3);
    --as-card-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
}
:root[data-theme="dark"] .as-panel, :root[data-theme="dark"] .as-app, :root[data-theme="dark"] .as-review {
  --as-ground: var(--bg); --as-card: var(--surface-2); --as-hair: var(--line); --as-edge: #22323d; --as-band-edge: #263a3c;
  --as-avatar-ring: rgba(221, 232, 238, .12); --as-shadow: 0 0 0 transparent; --as-lift: 0 8px 24px rgba(0, 0, 0, .3);
  --as-card-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.as-panel button, .as-app button, .as-panel textarea, .as-app textarea, .as-panel input, .as-app input,
.as-review button, .as-review input { font-family: inherit; }
.as-panel :focus-visible, .as-app :focus-visible, .as-review :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.as-mark { display: block; }
.as-open { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.as-open-mark { width: 18px; height: 18px; flex: none; }
.as-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100vw); box-sizing: border-box;
  display: flex; flex-direction: column; border-left: 1px solid var(--as-edge); box-shadow: -8px 0 24px rgba(18, 39, 58, .08); }
.as-panel[hidden] { display: none; }
@media (min-width: 1180px) { body.as-is-open .app { margin-right: 440px; } }
.as-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.as-main > * { flex: none; }
.as-main > .as-log { flex: 1; min-height: 0; }

/* the dark band at the top: the mark, who answers, and the panel's buttons */
.as-head { background: var(--as-band); color: var(--as-band-ink); border-bottom: 1px solid var(--as-band-edge); }
.as-head-row { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 0 10px 0 8px; box-sizing: border-box; }
.as-face { position: relative; flex: none; display: flex; }
.as-face .as-mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px var(--as-band-ring); }
.as-live { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--as-live);
  box-shadow: 0 0 0 2px var(--as-band); }
.as-live.as-off { background: var(--as-band-muted); }
.as-headwho { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.as-title { max-width: 100%; font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.as-tool { width: 36px; height: 36px; flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--as-band-ink); text-decoration: none; cursor: pointer; }
.as-tool:hover { background: var(--as-band-hover); color: var(--as-band-ink); }
.as-tool:disabled { opacity: .45; cursor: default; background: transparent; }
.as-model-wrap { position: relative; min-width: 0; max-width: 100%; }
.as-model { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 0; border: 0; background: transparent;
  color: var(--as-band-muted); font-size: .75rem; text-align: left; cursor: pointer; }
.as-model:disabled { cursor: default; opacity: 1; }
.as-model:not(:disabled):hover .as-model-name { text-decoration: underline; }
.as-model-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-model svg { flex: none; }
.as-dot { width: 7px; height: 7px; flex: none; display: inline-block; border-radius: 50%; background: var(--good); }
.as-head .as-dot { background: var(--as-live); }
.as-panel .as-head .as-model > .as-dot { display: none; }  /* the panel's mark carries the dot */
.as-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: 300px; max-width: calc(100vw - 40px); box-sizing: border-box;
  padding: 6px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(18, 39, 58, .16); display: flex; flex-direction: column; gap: 2px; }
.as-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: .875rem; text-align: left; cursor: pointer; }
.as-option:hover, .as-option.as-picked { background: var(--accent-soft); }
.as-option-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-option-name { font-weight: 600; }
.as-option-tag { font-size: .75rem; color: var(--muted); }

/* the panel's three views: its start (a new chat begins there), a chat, and the person's chats */
.as-hi, .as-start, .as-listview, .as-tabs { display: none; }
.as-panel[data-view="start"] .as-hi, .as-panel[data-view="start"] .as-start, .as-panel[data-view="list"] .as-listview { display: flex; }
.as-panel[data-view="start"] .as-tabs, .as-panel[data-view="list"] .as-tabs { display: grid; }
.as-panel:not([data-view="chat"]) .as-day, .as-panel:not([data-view="chat"]) .as-log,
.as-panel:not([data-view="chat"]) .as-back, .as-panel:not([data-view="chat"]) .as-live { display: none; }
.as-panel[data-view="start"] .as-headwho, .as-panel[data-view="list"] .as-head .as-model-wrap { display: none; }
.as-panel[data-view="start"] .as-main { overflow-y: auto; }
.as-panel[data-view="start"] .as-head { padding-bottom: 70px; }
.as-panel[data-view="start"] .as-head-row { min-height: 0; padding: 16px 12px 0 20px; }
.as-panel[data-view="start"] .as-face .as-mark { width: 40px; height: 40px; border-radius: 12px; }
.as-hi { flex-direction: column; gap: 6px; padding: 22px 28px 0 20px; }
.as-hi-title { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: #fff; }
.as-hi-text { margin: 0; font-size: 1.0625rem; line-height: 1.4; color: var(--as-band-soft); }
.as-start { position: relative; flex-direction: column; gap: 12px; margin-top: -54px; padding: 0 14px 14px; }
.as-ask { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: 16px; background: var(--as-card);
  box-shadow: var(--as-lift); }
.as-ask-title, .as-try-title { margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.as-ask-about { margin: -6px 0 0; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.as-ask-errs { display: flex; flex-direction: column; gap: 6px; }
.as-ask-errs:empty { display: none; }
.as-ask-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .75rem; color: var(--muted); }
.as-ask .as-model { color: var(--ink-2); font-size: .75rem; }
.as-ask-status .as-model-wrap { display: inline-flex; align-items: center; gap: 6px; }
.as-ask-status .as-model-wrap::after { content: "·"; }  /* stays with who answers when the line wraps */
.as-try { display: flex; flex-direction: column; border-radius: 16px; background: var(--as-card); box-shadow: var(--as-shadow); overflow: hidden; }
.as-try-title { padding: 14px 14px 6px; }
.as-idea { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-top: 1px solid var(--as-hair);
  background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.as-try-title + .as-idea { border-top: 0; }
.as-idea:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.as-idea:last-child { padding-bottom: 10px; }
.as-idea svg { flex: none; color: var(--accent); }
.as-idea-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.as-idea-title { font-size: .875rem; }
.as-idea-text { font-size: .78125rem; color: var(--muted); }
.as-start-foot .as-foot { margin: 2px 4px 0; padding: 0; }
.as-listview { flex: 1; min-height: 0; flex-direction: column; gap: 2px; padding: 12px 10px; overflow-y: auto; background: var(--as-bar); }
.as-tabs { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 60px; background: var(--as-bar); border-top: 1px solid var(--as-hair); }
.as-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent;
  color: var(--muted); font-size: .75rem; cursor: pointer; }
.as-tab:hover { color: var(--ink); }
.as-tab[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* the page of its own: the person's chats at the left, under the band; the chat at the right */
.as-app { display: flex; flex-wrap: wrap; min-height: calc(100vh - 150px); margin-top: 16px; border-radius: 18px; overflow: hidden; box-shadow: var(--as-lift); }
.as-app .as-main { flex: 999 1 460px; height: calc(100vh - 150px); min-height: 480px; }
.as-app .as-head-row { min-height: 64px; padding: 0 20px; }
/* the Welcome's last step (/horizon/learn/ask): the chat in place, shorter, without the list of chats */
.as-app.as-welcome { min-height: 0; }
.as-app.as-welcome .as-main { height: min(620px, calc(100vh - 220px)); min-height: 420px; }
.as-side { flex: 1 1 260px; max-width: 100%; box-sizing: border-box; display: flex; flex-direction: column; background: var(--as-bar);
  border-right: 1px solid var(--as-hair); }
@media (min-width: 900px) { .as-side { max-width: 300px; } }
.as-side-band { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; background: var(--as-band); color: var(--as-band-ink); }
.as-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.as-brand .as-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px var(--as-band-ring); }
.as-brand-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.as-brand-name { font-size: .9375rem; font-weight: 600; }
.as-brand-sub { font-size: .75rem; color: var(--as-band-muted); }
.as-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: .875rem; font-weight: 600; cursor: pointer; }
.as-new:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.as-side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow-y: auto; }

/* the person's chats: a search, and each chat with when it was last written in */
.as-search { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 2px 8px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--as-bar); color: var(--muted); }
.as-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.as-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: .84375rem; color: var(--ink); }
.as-search input:focus-visible { outline: none; }
.as-chats { display: flex; flex-direction: column; gap: 2px; }
.as-chats-none { margin: 6px 12px; font-size: .84375rem; color: var(--muted); }
.as-chat { display: flex; align-items: center; border-radius: 10px; }
.as-chat:hover { background: color-mix(in srgb, var(--as-ground) 55%, transparent); }
.as-chat.as-current { background: var(--as-ground); }
.as-chat-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0;
  border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.as-chat-title { max-width: 100%; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-current .as-chat-title { font-weight: 600; }
.as-chat-when { font-size: .78125rem; color: var(--muted); }
.as-chat-del { flex: none; min-width: 32px; height: 32px; margin-right: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: .75rem; cursor: pointer; opacity: 0; }
.as-chat:hover .as-chat-del, .as-chat-del:focus-visible, .as-chat-del.as-sure { opacity: 1; }
@media (hover: none) { .as-chat-del { opacity: 1; } }
.as-chat-del:hover { color: var(--bad); }
.as-chat-del.as-sure { padding: 0 8px; color: var(--bad); font-weight: 600; }

/* the chat: when it began and what the page shows, then the bubbles */
.as-day { margin: 0; padding: 14px 16px 0; text-align: center; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.as-log { overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow-wrap: break-word; }
.as-app .as-log { padding: 16px max(24px, calc((100% - 760px) / 2)) 22px; }
.as-log > * { flex: none; }  /* a card or an answer keeps its height: the chat scrolls */
.as-me { align-self: flex-end; max-width: 78%; box-sizing: border-box; padding: 11px 15px; border-radius: 18px 18px 4px 18px;
  background: var(--accent); color: var(--accent-ink); line-height: 1.5; white-space: pre-wrap; }
.as-app .as-me { max-width: 70%; }
.as-me-quote { margin: 0 0 8px; padding: 0 0 0 10px; border-left: 3px solid color-mix(in srgb, var(--accent-ink) 45%, transparent);
  font-size: .8125rem; opacity: .88; white-space: pre-wrap; }
.as-me-file { display: block; margin-top: 6px; font-size: .75rem; opacity: .88; }
.as-me-file::before { content: "+ "; }
.as-it, .as-wait { display: flex; align-items: flex-end; gap: 8px; }
.as-avatar { width: 28px; height: 28px; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px var(--as-avatar-ring); }
.as-app .as-avatar { width: 30px; height: 30px; border-radius: 9px; }
.as-it-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.as-bubble, .as-wait-bubble { max-width: 100%; box-sizing: border-box; padding: 11px 15px; border-radius: 18px 18px 18px 4px;
  background: var(--as-card); box-shadow: var(--as-shadow); }
.as-who { padding: 0 6px; font-size: .71875rem; color: var(--muted); }
.as-words { line-height: 1.55; overflow-wrap: anywhere; }
.as-words .as-p { margin: 0 0 .6em; }
.as-words .as-list { margin: 0 0 .6em; padding-left: 1.3em; }
.as-words .as-list li { margin: .15em 0; }
.as-words > :last-child { margin-bottom: 0; }
.as-words code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 0 .25em; border-radius: 4px; }
.as-log > .as-card, .as-log > .as-error { margin-left: 36px; }
.as-app .as-log > .as-card, .as-app .as-log > .as-error { margin-left: 38px; }
.as-wait[hidden] { display: none; }
.as-wait-bubble { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); }
.as-dots { display: inline-flex; gap: 5px; }
.as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: as-blink 1.2s infinite ease-in-out; }
.as-dots i:nth-child(2) { animation-delay: .2s; }
.as-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes as-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .as-dots i { animation: none; } }
.as-error { padding: 10px 14px; border-radius: 14px; background: var(--bad-soft); color: var(--ink); font-size: .875rem; white-space: pre-wrap; }
.as-muted { color: var(--muted); font-size: .8125rem; }
.as-good { color: var(--good); font-weight: 600; font-size: .8125rem; }
.as-bad { color: var(--bad); font-size: .8125rem; }
.as-takeout { display: block; margin-top: 8px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 8px; background: none;
  color: inherit; font: inherit; cursor: pointer; }
.as-takeout:disabled { opacity: .7; cursor: default; }

/* the page's start, in the chat until the first question */
.as-hello { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: auto 0; padding: 8px 0; text-align: center; }
.as-hello .as-hello-mark { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 1px var(--as-avatar-ring); }
.as-hello .as-hello-title { margin: 6px 0 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.015em; }
.as-hello .as-hello-text { margin: 0; font-size: 1.0625rem; color: var(--ink-2); }
.as-hello .as-hello-more { margin: 0; max-width: 520px; font-size: .875rem; color: var(--muted); }
.as-hello .as-try { align-self: stretch; width: 100%; max-width: 560px; margin: 14px auto 0; text-align: left; }

/* a proposed change: what would change, and the two buttons; only Save this saves */
.as-card { border-radius: 16px; overflow: hidden; background: var(--as-card); box-shadow: var(--as-card-shadow); }
.as-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 14px 0; }
.as-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-text); font-size: .71875rem; font-weight: 600; }
.as-saved .as-chip { background: var(--good-soft); color: var(--good); }
.as-dismissed .as-chip { background: var(--surface-2); color: var(--muted); }
.as-card-about { min-width: 0; font-size: .78125rem; color: var(--muted); }
.as-card-body { padding: 10px 14px; font-size: .875rem; line-height: 1.7; white-space: pre-wrap; max-height: 40vh; overflow-y: auto; }
.as-card-body ins { text-decoration: none; background: var(--good-soft); color: var(--good); }
.as-card-body del { background: var(--bad-soft); color: var(--bad); }
.as-card-body del + ins { margin-left: 3px; }
.as-dismissed .as-card-body { opacity: .65; }
.as-card-row { margin: 0 0 6px; }
.as-card-row:last-child { margin-bottom: 0; }
.as-card-label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.as-card-diff { margin: 0 0 6px; }
.as-card-extra { font-family: var(--mono); font-size: .8125rem; overflow-wrap: anywhere; }
.as-card-facts { padding: 0 14px 12px; font-size: .75rem; color: var(--muted); }
.as-card-look { color: var(--accent-text); font-weight: 500; white-space: nowrap; }
.as-card-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--as-hair); }
.as-card-foot .as-primary, .as-card-foot .as-plain { height: 46px; border: 0; background: transparent; font-size: .875rem; cursor: pointer; }
.as-card-foot .as-primary { border-right: 1px solid var(--as-hair); color: var(--accent-text); font-weight: 600; }
.as-card-foot .as-plain { color: var(--ink-2); }
.as-card-foot button:not(:disabled):hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
/* a way the assistant shows: the place's name, and two links that look and sit like a card's two buttons */
.as-way-name { font-weight: 600; white-space: normal; }
/* the papers a person named, checked against the evidence library (app/assistant/papers.py) */
.as-paper-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
a.as-paper-name { color: var(--accent-text); }
.as-paper-confirm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.as-paper-confirm button { padding: 4px 10px; border: 1px solid var(--as-hair); border-radius: 8px; background: transparent; font-size: .8125rem; cursor: pointer; }
.as-paper-confirm .as-primary { color: var(--accent-text); font-weight: 600; border-color: currentColor; }
.as-paper-confirm .as-plain { color: var(--ink-2); }
.as-card-foot a.as-primary, .as-card-foot a.as-plain { display: grid; place-items: center; text-decoration: none; }
.as-card-foot a:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.as-card-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.as-card-foot.as-card-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
.as-card-done .as-plain { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.as-primary:disabled, .as-plain:disabled { opacity: .5; cursor: default; }
/* before the person saves, what is around the change in the answer (docs/decisions/2026-11-21_assistant-decide.md):
   a save after it was proposed, someone writing in it now, the comments on the passage, the marks, the saves since
   the person last looked; each a line with a sign of what kind it is, and Review and decide to see it all, wide */
.as-checks-box { padding: 0 10px 8px; }
.as-checks-h { margin: 0 6px 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.as-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.as-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.as-check.as-tone-bad { background: color-mix(in srgb, var(--bad-soft) 70%, transparent); }
.as-check-dot { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--as-ground); color: var(--ink-2); }
.as-tone-bad .as-check-dot { background: var(--bad-soft); color: var(--bad); }
.as-check.as-tone-bad .as-check-dot { background: var(--as-card); }
.as-tone-warn .as-check-dot { background: var(--wait-soft); color: var(--wait); }
.as-tone-info .as-check-dot { background: var(--accent-soft); color: var(--accent-text); }
.as-tone-ok .as-check-dot { background: var(--good-soft); color: var(--good); }
.as-check-words { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding-top: 3px; }
.as-check-title { font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.as-tone-bad .as-check-title { color: var(--bad); }
.as-check-sub { font-size: .75rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.as-card .as-check-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }  /* in full in the review */
.as-check-link, .as-check-more { margin-top: 3px; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: .75rem;
  font-weight: 600; text-decoration: none; cursor: pointer; }
.as-check-link:hover, .as-check-more:hover { text-decoration: underline; }
.as-card-review { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; border: 0;
  border-top: 1px solid var(--as-hair); background: transparent; color: var(--accent-text); font-size: .875rem; font-weight: 600; cursor: pointer; }
.as-card-review:not(:disabled):hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.as-card-review:disabled { opacity: .5; cursor: default; }
.as-thread { list-style: none; margin: 8px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--as-hair); display: grid; gap: 6px; }
.as-thread-one { display: flex; flex-direction: column; gap: 1px; }
.as-thread-by { font-size: .71875rem; color: var(--muted); }
.as-thread-body { font-size: .8125rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

/* the review (Review and decide): the text as it would read, with the comments where they are, and beside it what to
   know before saving, the comments, the saves and the marks; the whole screen on a phone */
html.as-reviewing { overflow: hidden; }
.as-review { width: min(1180px, calc(100vw - 48px)); height: min(820px, calc(100vh - 48px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px rgba(12, 20, 26, .32); }
.as-review::backdrop { background: rgba(12, 20, 26, .5); }
.as-review-sheet { display: flex; flex-direction: column; height: 100%; }
.as-review-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: var(--as-band);
  color: var(--as-band-ink); }
.as-review-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px var(--as-band-ring); }
.as-review-named { flex: 1; min-width: 0; }
.as-review-title { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; color: inherit; }
.as-review-title:focus { outline: none; }
.as-review-about { margin: 2px 0 0; font-size: .8125rem; color: var(--as-band-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-review-status { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--as-band-hover); color: var(--as-band-ink); font-size: .75rem; font-weight: 600; }
.as-review-status.as-st-for-review { background: var(--wait-soft); color: var(--wait); }
.as-review-status.as-st-agreed { background: var(--good-soft); color: var(--good); }
.as-review-x { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0;
  border-radius: 10px; background: transparent; color: var(--as-band-ink); cursor: pointer; }
.as-review-x:hover { background: var(--as-band-hover); }
.as-review-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.as-review-left { min-height: 0; overflow-y: auto; padding: 20px 28px 28px; }
.as-review-side { min-height: 0; overflow-y: auto; padding: 20px 18px 24px; border-left: 1px solid var(--as-hair); }
.as-review-wait { margin: 0; color: var(--muted); }
.as-review-modes { display: inline-flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 12px; background: var(--as-card);
  box-shadow: var(--as-shadow); }
.as-review-mode { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: .8125rem;
  font-weight: 500; cursor: pointer; }
.as-review-mode[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.as-review-paper { padding: 18px 22px 14px; border-radius: 16px; background: var(--as-card); box-shadow: var(--as-card-shadow); }
.as-review-count { margin: 0 0 10px; font-size: .78125rem; color: var(--muted); }
.as-review-count.as-over { color: var(--bad); }
.as-review-words { font-size: 1rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-review-words ins, .as-review-key ins, .as-margin-diff ins { text-decoration: none; background: var(--good-soft); color: var(--good); }
.as-review-words del, .as-review-key del, .as-margin-diff del { background: var(--bad-soft); color: var(--bad); }
.as-review-words mark { background: var(--accent-soft); color: var(--accent-text); }
.as-quoted { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--wait); text-decoration-thickness: 2px;
  text-underline-offset: 4px; }
.as-pin, .as-margin-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  box-sizing: border-box; border-radius: 999px; background: var(--wait); color: var(--as-card); font-size: .6875rem; font-weight: 700; line-height: 1; }
.as-pin { margin: 0 2px 0 1px; vertical-align: super; }
.as-review-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--as-hair);
  font-size: .75rem; color: var(--muted); }
.as-review-block { margin-top: 20px; }
.as-review-h { margin: 0 0 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.as-review-said { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--as-card); box-shadow: var(--as-shadow); font-size: .875rem;
  line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-review-guide { margin-top: 12px; border-radius: 14px; background: var(--as-card); box-shadow: var(--as-shadow); }
.as-review-guide summary { padding: 12px 14px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.as-review-guide p { margin: 0; padding: 0 14px 14px; font-size: .84375rem; line-height: 1.6; white-space: pre-wrap; color: var(--ink-2); }
.as-review-part { margin: 0 0 20px; }
.as-review-side .as-checks { padding: 4px; border-radius: 14px; background: var(--as-card); box-shadow: var(--as-shadow); }
.as-margin { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 8px; padding: 12px 14px; border-radius: 14px;
  background: var(--as-card); box-shadow: var(--as-shadow); font-size: .8125rem; }
.as-margin-mine { box-shadow: inset 3px 0 0 var(--accent), var(--as-shadow); }
.as-margin-top { display: flex; align-items: center; gap: 8px; align-self: stretch; }
.as-margin-who { flex: 1; min-width: 0; font-weight: 600; }
.as-margin-when { flex: none; font-size: .75rem; color: var(--muted); }
.as-margin-diff, .as-margin-quote, .as-margin-body, .as-margin-views { margin: 6px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.as-margin-quote, .as-margin-views { color: var(--muted); }
.as-history { list-style: none; margin: 0; padding: 2px 14px; border-radius: 14px; background: var(--as-card); box-shadow: var(--as-shadow); }
.as-history-one { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--as-hair);
  font-size: .8125rem; }
.as-history-one:last-child { border-bottom: 0; }
.as-history-line { display: flex; justify-content: space-between; gap: 8px; align-self: stretch; }
.as-history-who { font-weight: 600; }
.as-history-when, .as-history-what { font-size: .75rem; color: var(--muted); }
.as-history-seen { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--wait); font-size: .71875rem; font-weight: 600; }
.as-history-seen::before, .as-history-seen::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.as-marks { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; border-radius: 14px; background: var(--as-card);
  box-shadow: var(--as-shadow); font-size: .8125rem; }
.as-marks-old { color: var(--muted); }
.as-review-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--as-bar);
  border-top: 1px solid var(--as-hair); }
.as-review-ask { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 2px 2px 2px 12px; border: 1px solid var(--line);
  border-radius: 12px; }
.as-review-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.as-review-ask-label { flex: 1; min-width: 0; display: flex; }
.as-review-ask-box { flex: 1; min-width: 0; height: 38px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink);
  font-size: .9375rem; }
.as-review-ask-box:focus-visible { outline: none; }
.as-review-ask-box::placeholder { color: var(--muted); opacity: 1; }
.as-review-not { height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink-2);
  font-size: .875rem; cursor: pointer; }
.as-review-save { height: 42px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  font-size: .875rem; font-weight: 600; cursor: pointer; }
.as-review-save:hover { filter: brightness(1.07); }
@media (max-width: 760px) {
  .as-review { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .as-review-main { display: flex; flex-direction: column; overflow-y: auto; }
  .as-review-left { display: contents; }
  .as-review-text { order: 1; padding: 16px 16px 4px; }
  .as-review-side { order: 2; flex: none; overflow: visible; padding: 16px; border-left: 0; }
  .as-review-more { order: 3; padding: 0 16px 20px; }
  .as-review-more > :first-child { margin-top: 0; }
  .as-review-foot { flex-wrap: wrap; }
  .as-review-ask { flex-basis: 100%; }
  .as-review-not, .as-review-save { flex: 1; }
}

/* the box: a flat bar under the chat, or the card at the panel's start; the files for the next message, the buttons
   to attach one and to speak, and the passage selected on the page that the question is about */
.as-composer { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; background: var(--as-bar);
  border-top: 1px solid var(--as-hair); }
.as-composer:focus-within { box-shadow: inset 0 2px 0 var(--accent); }
.as-app .as-composer { padding: 10px max(16px, calc((100% - 760px) / 2)) 12px; }
.as-compose-card { display: flex; flex-direction: column; gap: 6px; }
.as-compose-row { display: flex; align-items: flex-end; gap: 2px; }
.as-box { flex: 1; min-width: 0; padding: 6px; border: 0; outline: none; resize: none; background: transparent; color: var(--ink);
  font-size: .9375rem; line-height: 1.5; }
.as-box:focus-visible { outline: none; }
.as-box::placeholder { color: var(--muted); opacity: 1; }
.as-icon, .as-send { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0;
  border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.as-send { color: var(--accent); }
.as-icon:hover, .as-send:hover { background: var(--accent-soft); color: var(--accent-text); }
.as-icon.as-rec { background: var(--bad-soft); color: var(--bad); }
.as-icon:disabled, .as-send:disabled { opacity: .45; cursor: default; background: transparent; }
.as-foot { margin: 0; padding: 0 6px; font-size: .71875rem; line-height: 1.45; color: var(--muted); }
/* where a chosen file goes and what the browser does with speech: on the page while it matters, not in a tooltip */
.as-note { margin: 0; padding: 0 6px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.as-composer.as-off .as-compose-card { opacity: .55; }
.as-ask .as-composer { padding: 0; background: transparent; border-top: 0; box-shadow: none; }
.as-ask .as-compose-card { padding: 4px 4px 4px 8px; border: 1px solid var(--line); border-radius: 12px; }
.as-ask .as-compose-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.as-ask .as-compose-row { align-items: center; }
.as-ask .as-box { padding: 6px 4px; }
.as-ask .as-icon, .as-ask .as-send { width: 36px; height: 36px; }
.as-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.as-file { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: .8125rem; overflow-wrap: anywhere; }
.as-file-wait { opacity: .6; }
.as-file-x { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.as-quote { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: var(--as-ground); font-size: .8125rem; }
.as-quote-label { flex: none; color: var(--muted); }
.as-quote-text { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 6.5em; overflow: auto; }
.as-quote-x { flex: none; padding: 0 2px; border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
/* "Ask the assistant" by the words selected on a page (app/static/assistant.js) */
.as-sel { position: fixed; z-index: 40; display: inline-flex; align-items: center; gap: 6px; background: #14324a; color: #fff; border-color: #14324a; box-shadow: 0 4px 16px rgba(0, 0, 0, .22); }
.as-sel[hidden] { display: none; }
.as-sel:hover, .as-sel:focus-visible { background: #1c7c7c; border-color: #1c7c7c; color: #fff; }
/* The small window ("Ask here", app/static/assistant.js floatAsk): the panel, shown beside what the person asks
   about, without its start and its tabs; moved by its top. */
.as-panel.as-float { right: auto; bottom: auto; width: min(400px, calc(100vw - 16px)); z-index: 70;
  border: 1px solid var(--as-edge); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(18, 39, 58, .10), 0 18px 48px rgba(18, 39, 58, .22); }
.as-panel.as-float .as-tabs, .as-panel.as-float .as-hi, .as-panel.as-float .as-back,
.as-panel.as-float .as-tools a.as-tool { display: none !important; }
.as-panel.as-float .as-head-row { min-height: 48px; cursor: move; touch-action: none; }
.as-panel.as-float .as-day { display: none; }
.as-dock { display: none; }
.as-panel.as-float .as-dock { display: inline-flex; }
/* the small menu a right-click gives: "Ask the assistant about this" */
.as-ctx { position: fixed; z-index: 80; min-width: 230px; padding: 6px; border-radius: 12px; background: var(--surface);
  color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(18, 39, 58, .10), 0 12px 32px rgba(18, 39, 58, .18);
  font-family: var(--font); font-size: .9375rem; }
.as-ctx[hidden] { display: none; }
.as-ctx-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.as-ctx-item:hover, .as-ctx-item:focus-visible { background: var(--surface-2); outline: none; }
.as-ctx-hint { margin: 2px 10px 4px; font-size: .75rem; color: var(--muted); }
@media print { .as-panel, .as-open, .as-sel, .as-ctx { display: none !important; } }
/* the site's chat buttons sit at the bottom right, over the box: put away while the panel is open */
body.as-is-open .intercom-lightweight-app, body.as-is-open .intercom-launcher, body.as-is-open #intercom-container .intercom-launcher-frame,
body.as-is-open #ts-ask-page { display: none !important; }

/* People (/people) and the page a sign-in link opens (/link/...) */
.ts-people { min-width: 720px; }
.tablewrap { overflow-x: auto; max-width: 100%; position: relative; }  /* relative: hidden labels (.ts-sr) in a cell stay inside it */
.ts-ev-row { display: flex; flex-wrap: wrap; gap: 4px; }
.ts-ev-row select { max-width: 11rem; }
.ts-state { white-space: nowrap; }
.ts-state-off, .ts-state-never { color: var(--bad, #a33); }
.ts-state-invited { color: #8a6200; }
.ts-link-box { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.ts-link-main { max-width: 480px; margin: 8vh auto; padding: 0 16px; }
.ts-link-main .ts-mark { margin-bottom: 16px; }

/* the project leader's record of the assistant's chats (/admin/assistant-log) */
.al-talk { display: grid; gap: 14px; }
.al-msg { padding: 10px 14px; border-radius: 10px; background: var(--surface-2, #eef2f4); }
.al-msg.al-user { background: #fff; border: 1px solid #dfe5e9; }
.al-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.al-quote { margin: 4px 0; padding-left: 10px; border-left: 3px solid #c9d2d8; white-space: pre-wrap; color: var(--muted, #5b6770); }

/* The knowledge base's page (/knowledge) */
.kn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kn-row .input { flex: 1 1 280px; }
.kn-hit { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.kn-hit-head { font-weight: 600; }
.kn-closed { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid currentColor; border-radius: 9px; font-size: 12px; font-weight: 600; color: #8a4b00; }
.kn-closed-box { display: block; margin: 8px 0; }
.kn-old { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid currentColor; border-radius: 9px; font-size: 12px; font-weight: 600; color: #5b6472; }
.kn-hit-text { margin: 6px 0 0; white-space: pre-wrap; }
.kn-ev-claim { margin: 6px 0 8px; }
.kn-ev-quote { margin: 4px 0 4px 0; padding: 4px 10px; border-left: 3px solid var(--line); color: var(--muted, #555); font-style: italic; }
.kn-ev-paper { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
/* what links to a document, and a small graph of it and its neighbours (knowledge.js: knowledge_links) */
.kn-ln { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kn-ln-lists { display: grid; gap: 10px; }
.kn-ln-h { font-size: 0.9375rem; margin: 0 0 4px; }
.kn-ln-go { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.kn-ln-ctx { color: var(--muted, #555); margin: 2px 0 6px; }
.kn-ln-svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.kn-ln-line { stroke: var(--muted); stroke-width: 1.2; opacity: .6; }
.kn-ln-dot { cursor: pointer; --nm: #64748b; }
.kn-ln-dot circle { fill: var(--nm); stroke: var(--surface); stroke-width: 1.5; }
.kn-ln-dot text { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; pointer-events: none; }
.kn-ln-dot.is-on { cursor: default; }
.kn-ln-dot.is-on circle { stroke: var(--ink); stroke-width: 3; }
.kn-ln-dot.is-on text { font-weight: 700; }
.kn-ln-dot:focus-visible { outline: none; }
.kn-ln-dot:focus-visible circle { stroke: var(--accent); stroke-width: 4; }
.kn-ln-memory { --nm: #0e7174; } .kn-ln-project { --nm: #c2410c; } .kn-ln-article { --nm: #1d4ed8; }
.kn-ln-call { --nm: #7e22ce; } .kn-ln-guide { --nm: #15803d; } .kn-ln-added { --nm: #b98322; }
@media (max-width: 720px) { .kn-ln { grid-template-columns: 1fr; } }
/* where a suggested paper stands (knowledge.js): the steps it goes through, the one it is at, or where it stopped */
.kn-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; padding: 0; list-style: none; }
.kn-steps li { padding: 0 7px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--muted, #5b6472); }
.kn-steps li.done { color: inherit; }
.kn-steps li.now { border-color: currentColor; font-weight: 600; color: var(--accent-text, var(--accent)); }
.kn-steps li.stop { border-color: currentColor; font-weight: 600; color: #8a4b00; }
.kn-drop-list { margin: 8px 0 0; padding-left: 18px; }
.kn-drop-list li { margin: 4px 0; }
/* what an item is (2 Dec 2026): our document, a reference, a published paper; the AI's until a person confirms it */
.kn-kind { display: inline-block; padding: 0 7px; border: 1px solid currentColor; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kn-kind-ours { color: #3f5b2a; } .kn-kind-reference { color: #6b3fa0; } .kn-kind-paper { color: #1d4ed8; }
.kn-kind.is-ai { border-style: dashed; font-weight: 500; }
.kn-kind-ai { font-size: 12px; color: var(--muted, #5b6472); }
.kn-kind-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.kn-group { margin-top: 14px; }
.kn-group > h3 { font-size: 1rem; margin: 0; }
.kn-group-count { font-weight: 500; color: var(--muted, #5b6472); }
.kn-hit-head .kn-kind { margin-left: 6px; }
.kn-paper-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.kn-paper-line .input { flex: 1 1 240px; }
.kn-choices { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 8px; }
.kn-more { margin-top: 10px; }
.kn-more > summary { cursor: pointer; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kn-kind-ours { color: #9ccc7a; } :root:not([data-theme="light"]) .kn-kind-reference { color: #c4a3f0; } :root:not([data-theme="light"]) .kn-kind-paper { color: #93b4ff; } }
:root[data-theme="dark"] .kn-kind-ours { color: #9ccc7a; } :root[data-theme="dark"] .kn-kind-reference { color: #c4a3f0; } :root[data-theme="dark"] .kn-kind-paper { color: #93b4ff; }
/* Working in Word (/etik/word; docs/decisions/2026-11-21_word-page.md): the Word file and the Word panel side by side
   as two cards, what a file brought back would change below them, question by question, and which questions the file
   holds, where the project leader edits the list. In the hub's colours, so it follows the dark theme. */
.ew-lead { max-width: 48rem; margin: 4px 0 18px; font-size: 1rem; color: var(--ink-2); }
.ew-back { margin: 0 0 2px; font-size: .875rem; }
.ew-back a::before { content: "\2190\00a0"; }  /* a form's Word page leads back to the form */
/* SRQ's form filled in (/srq/form, app/issuer_word.py) */
.sf-list { margin: 0; padding-left: 1.2rem; }
.sf-list li { margin: 6px 0; }
.sf-list ul { padding-left: 1.1rem; }
.ew-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start;
  margin: 0 0 20px; }
.ew-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); }
.ew-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.ew-card-head .ew-card-title { flex: 1 1 200px; }
.ew-badge { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text); }
.ew-badge-navy { background: var(--surface-2); color: var(--ink); }
.ew-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ew-card-title h2 { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.ew-card-title p { margin: 0; font-size: .875rem; color: var(--muted); }
.ew-chip { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--ink-2); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ew-chip-good { background: var(--good-soft); color: var(--good); }
.ew-chip-wait { background: var(--wait-soft); color: var(--wait); }
.ew-chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.ew-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 0; list-style: none; font-size: .8125rem;
  color: var(--ink-2); }
.ew-steps li { display: inline-flex; align-items: center; gap: 6px; }
.ew-step-n { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2);
  font-size: .6875rem; font-weight: 600; }
.ew-step-now { background: var(--accent); color: var(--accent-ink); }
.ew-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.ew-doc-icon { flex: none; color: var(--muted); }
.ew-doc-text { flex: 1; min-width: min(100%, 200px); display: flex; flex-direction: column; gap: 2px; }
.ew-doc-text b { font-size: .875rem; overflow-wrap: anywhere; }
.ew-doc-text span { font-size: .8125rem; color: var(--muted); }
.ew-download { min-height: 42px; padding-inline: 18px; border-radius: 10px; font-weight: 600; }
.ew-drop { position: relative; margin: 0; }
.ew-file-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ew-drop-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; border: 2px dashed var(--line-strong);
  border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.ew-drop-zone:hover, .ew-drop-zone.ew-drop-on { border-color: var(--accent); background: var(--accent-soft); }
.ew-file-input:focus-visible + .ew-drop-zone { outline: 2px solid var(--focus); outline-offset: 2px; }
.ew-drop-zone.ew-drop-busy { opacity: .6; cursor: progress; }
.ew-drop-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface);
  color: var(--accent-text); box-shadow: 0 1px 2px rgba(18, 39, 58, .08); }
.ew-drop-big { font-size: 1rem; font-weight: 600; color: var(--ink); }
.ew-drop-small { font-size: .8125rem; color: var(--muted); }
.ew-drop-choose { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.ew-status { margin: 0; font-size: .875rem; color: var(--ink-2); }
.ew-status:empty { display: none; }
.ew-tips { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--ink-2); }
.ew-tips li { display: flex; gap: 8px; align-items: flex-start; }
.ew-tips svg { flex: none; margin-top: 2px; }
.ew-tip-good { color: var(--good); }
.ew-tip-wait { color: var(--wait); }
.ew-text { margin: 0; font-size: .875rem; color: var(--ink-2); }
.ew-check { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; }
.ew-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.ew-check-row + .ew-check-row { border-top: 1px solid var(--line); }
.ew-check-wide { align-items: flex-start; }
.ew-check-n { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.ew-check-text { flex: 1; min-width: min(100%, 200px); display: flex; flex-direction: column; gap: 4px; }
.ew-check-text > b { font-size: .875rem; }
.ew-check-text > span, .ew-way { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.ew-way-h { font-weight: 600; color: var(--ink); }
.ew-code { font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; }
.ew-ways-to { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 4px; margin: 4px 0; padding: 3px; border-radius: 10px;
  background: var(--surface-2); }
.ew-ways-to button, .ew-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: .8125rem; cursor: pointer; }
.ew-ways-to button[aria-pressed="true"], .ew-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(18, 39, 58, .12); }
.ew-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .8125rem; color: var(--muted); }
.ew-note svg { flex: none; margin-top: 2px; }
/* the panel's four steps (#147): the token made on the page and shown once, each way as short steps, then every day */
.ew-card[id] { scroll-margin-top: 84px; }
.ew-check-n.ew-check-done { border-color: transparent; background: var(--good-soft); color: var(--good); }
.ew-token { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ew-token code { flex: 1 1 220px; min-width: 0; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink);
  font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; user-select: all; }
.ew-check-text > .ew-token-error { color: var(--bad); }
.ew-token-make { margin: 4px 0 0; }
.ew-sub { margin: 4px 0 0; padding-left: 1.25em; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.ew-sub li + li { margin-top: 2px; }
.ew-way-tag { margin-left: 4px; font-size: .75rem; font-weight: 600; color: var(--good); white-space: nowrap; }
.ew-way-more { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.ew-daily { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; }
.ew-daily ul { margin: 0; padding-left: 1.25em; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.ew-more summary { cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--accent-text); }
.ew-more p { margin: 6px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }

/* what a file brought back would change: a summary, then each question with something to send, the hub's words beside
   the file's with what differs marked, and what can be done with them; the bar at the foot says what Send sends */
.ew-result { gap: 0; margin: 0 0 20px; padding: 0; }
.ew-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 22px 24px 16px; }
.ew-result-head .ew-card-title { flex: 1 1 240px; }
.ew-result-head h2 { font-size: 1.3125rem; }
.ew-result-head h2:focus { outline: none; }
.ew-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin: 0; padding: 0 24px 14px;
  list-style: none; }
.ew-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.ew-tile-good { background: var(--good-soft); }
.ew-tile-wait { background: var(--wait-soft); }
.ew-tile-accent { background: var(--accent-soft); }
.ew-tile-n { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.ew-tile-good .ew-tile-n { color: var(--good); }
.ew-tile-wait .ew-tile-n { color: var(--wait); }
.ew-tile-accent .ew-tile-n { color: var(--accent-text); }
.ew-tile-what { font-size: .875rem; font-weight: 600; }
.ew-tile-why { font-size: .78125rem; color: var(--ink-2); }
.ew-rest { margin: 0; padding: 0 24px 18px; font-size: .8125rem; color: var(--muted); }
.ew-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ew-item { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.ew-item-conflict { background: color-mix(in srgb, var(--wait-soft) 40%, var(--surface)); }
.ew-item-sent { background: color-mix(in srgb, var(--good-soft) 35%, var(--surface)); }
.ew-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ew-item-head h3 { flex: 1; min-width: min(100%, 260px); margin: 0; font-size: 1rem; }
.ew-item-says { margin: 0; font-size: .84375rem; color: var(--ink-2); }
.ew-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.ew-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); }
.ew-side-newer { border-color: color-mix(in srgb, var(--wait) 35%, var(--line)); }
.ew-side-h { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ew-side-newer .ew-side-h { color: var(--wait); }
.ew-over .ew-side-h { color: var(--bad); }
.ew-side-text { margin: 0; max-height: 22em; overflow: auto; font-size: .875rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ew-side-text del { background: var(--bad-soft); color: var(--bad); }
.ew-side-text ins { text-decoration: none; background: var(--good-soft); color: var(--good); }
.ew-empty { color: var(--muted); font-style: italic; }
.ew-choices { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ew-choices legend { margin-bottom: 6px; padding: 0; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.ew-choice, .ew-comment { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; }
.ew-choice-skip { flex: 0 1 160px; }
.ew-choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.ew-choice input, .ew-comment input { flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.ew-choice-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ew-choice-what { font-size: .875rem; font-weight: 600; }
.ew-choice-why { font-size: .78125rem; color: var(--muted); }
.ew-comments { display: flex; flex-direction: column; gap: 8px; }
.ew-comment { flex: none; }
.ew-reply { margin-left: 28px; }
.ew-comment-text { font-weight: 400; overflow-wrap: anywhere; }
.ew-said { margin: 0; font-size: .8125rem; }
.ew-said:empty { display: none; }
.ew-said-good { color: var(--good); font-weight: 600; }
.ew-said-bad { color: var(--bad); }
.ew-send-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 24px;
  border-radius: 0 0 16px 16px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.ew-send-sum { flex: 1; min-width: min(100%, 260px); margin: 0; font-size: .875rem; color: var(--ink-2); }
.ew-send-bar .btn { min-height: 42px; padding-inline: 16px; border-radius: 10px; }
.ew-send-bar .btn.primary { padding-inline: 20px; font-weight: 600; }

/* which questions the file holds; the project leader edits the list, a section at a time */
.ew-holds-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
.ew-holds-head .ew-card-title { flex: 1 1 280px; }
.ew-count { flex: none; font-size: .9375rem; color: var(--muted); }
.ew-count b { font-size: 1.5rem; color: var(--ink); }
.ew-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.ew-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2);
  color: var(--ink-2); }
.ew-chips b { color: var(--ink); }
.ew-all > summary { font-size: .875rem; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.ew-all-list { margin-top: 10px; columns: 2 22rem; column-gap: 32px; font-size: .84375rem; }
.ew-all-list h3 { margin: 10px 0 4px; font-size: .8125rem; break-after: avoid; }
.ew-all-list ul { margin: 0 0 6px; padding-left: 18px; }
.ew-edit > summary { list-style: none; cursor: pointer; }
.ew-edit > summary::-webkit-details-marker { display: none; }
.ew-edit[open] > summary { margin-bottom: 14px; }
.ew-pick { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ew-pick-main { flex: 999 1 480px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ew-pick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ew-find { flex: 1; min-width: min(100%, 200px); display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.ew-find input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: .875rem; color: var(--ink); }
.ew-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ew-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.ew-sec + .ew-sec { border-top: 1px solid var(--line); }
.ew-sec > summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; list-style: none; cursor: pointer; }
.ew-sec > summary::-webkit-details-marker { display: none; }
.ew-sec > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.ew-sec[open] > summary::after { transform: rotate(45deg); }
.ew-sec[open] { background: color-mix(in srgb, var(--surface-2) 25%, var(--surface)); }
.ew-sec-all { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.ew-sec-title { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 600; }
.ew-sec-n { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.ew-sec-qs { display: flex; flex-direction: column; gap: 2px; padding: 0 16px 12px 46px; }
.ew-q { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ew-q:hover { background: var(--surface-2); }
.ew-q input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.ew-q-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .875rem; }
.ew-q-closed { font-size: .75rem; color: var(--wait); }
.ew-q-limit { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.ew-pick-side { position: sticky; top: 16px; flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line);
  border-radius: 14px; }
.ew-side-label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ew-side-big { font-size: 1rem; color: var(--muted); }
.ew-side-big b { font-size: 2rem; line-height: 1.1; color: var(--ink); }
.ew-side-small { margin-top: -8px; font-size: .8125rem; color: var(--muted); }
.ew-presets { display: flex; flex-direction: column; gap: 8px; }
.ew-presets button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ew-presets button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.ew-presets b { font-size: .875rem; }
.ew-presets span { font-size: .78125rem; color: var(--muted); }
.ew-pick-side .btn { min-height: 42px; border-radius: 10px; }
@media print { .ew-drop, .ew-edit, .ew-send-bar { display: none !important; } }

/* ---- the project leader's decisions in one place (/etik/decide; app/templates/etik_decide.html) */
.dc-lead { max-width: 72ch; }
.dc-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 22px; }
.dc-fig { margin: 0; display: grid; gap: 2px; padding: 14px 16px 13px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-strong);
  color: var(--ink); text-decoration: none; }
.dc-fig b { font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dc-fig span { font-size: .8125rem; color: var(--muted); }
.dc-fig.is-open { border-top-color: var(--accent); }
.dc-fig.is-open b { color: var(--accent-text); }
.dc-fig.is-left { border-top-color: var(--wait); }
.dc-fig.is-left b { color: var(--wait); }
.dc-fig.is-clear { border-top-color: var(--good); }
.dc-fig.is-clear b { color: var(--good); }
a.dc-fig:hover { border-color: var(--line-strong); text-decoration: none; }
a.dc-fig:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dc-waiting { margin-bottom: 22px; border-left: 3px solid var(--accent); }
.dc-waiting h2 { margin-top: 0; }
.dc-team { margin-bottom: 18px; }
.dc-group { margin: 0 0 26px; }
.dc-group-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dc-card { position: relative; display: grid; gap: 10px; padding: 16px 18px 14px;
  transition: opacity .2s ease, background-color .2s ease; }
.dc-card[aria-busy="true"] { opacity: .7; }
.dc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dc-item { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 1px 8px;
  border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); }
.dc-q { flex: 1 1 260px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.dc-q:hover .dc-title { text-decoration: underline; }
.dc-num { color: var(--accent-text); font-variant-numeric: tabular-nums; margin-right: 4px; }
.dc-len { flex: none; margin-left: auto; font-size: .78125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.dc-len.is-over { background: var(--bad-soft); color: var(--bad); }
.dc-why { margin: 0; font-size: .875rem; color: var(--ink-2); max-width: 80ch; }
.dc-by { font-weight: 600; color: var(--ink); }
.dc-by.is-ai::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0;
  border-radius: 2px; background: var(--accent); vertical-align: middle; }
.dc-text { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
  border-left: 3px solid var(--line-strong); font-size: .9375rem; line-height: 1.6; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.dc-ctx { color: var(--muted); }
.dc-text del { color: var(--bad); background: var(--bad-soft); text-decoration-thickness: 1.5px; border-radius: 3px; }
.dc-text ins { color: var(--good); background: var(--good-soft); text-decoration: none; border-radius: 3px;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--good) 45%, transparent); }
.dc-state { margin: 0; font-size: .8125rem; color: var(--muted); }
.dc-state.is-sealed, .dc-state.is-moved { color: var(--wait); }
.dc-do { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-do .btn.primary { min-width: 120px; }
.dc-no { color: var(--muted); }
.dc-drawer { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong); }
.dc-label { font-size: .8125rem; font-weight: 600; }
.dc-drawer textarea { width: 100%; font: inherit; font-size: .9375rem; line-height: 1.5; padding: 8px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  resize: vertical; }
.dc-drawer textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.dc-drawer-foot { margin: 0; display: flex; gap: 10px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; }
[data-dc-count].is-over { color: var(--bad); font-weight: 600; }
.dc-said { margin: 0; font-size: .875rem; }
.dc-said:empty { display: none; }
.dc-said.is-bad { color: var(--bad); }
.dc-said-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: .75rem; font-weight: 700; margin-right: 2px; vertical-align: -3px; }
.dc-card.is-done { background: var(--surface-2); }
.dc-card.is-done .dc-text, .dc-card.is-done .dc-why, .dc-card.is-done .dc-state { display: none; }
.dc-card.is-accepted { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.dc-card.is-accepted .dc-said-mark { background: var(--good); color: var(--surface); }
.dc-card.is-rejected .dc-said-mark { background: var(--muted); color: var(--surface); }
.dc-card.is-sealed { border-style: dashed; }
.dc-empty { text-align: center; padding: 26px 20px; margin-bottom: 22px; }
.dc-empty p { margin: 4px 0; }
.dc-empty-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--good-soft); color: var(--good); font-size: 1.25rem; font-weight: 700; }
.dc-todo h2 { margin-top: 0; }
.dc-todo-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 18px 0 8px; }
.dc-todo-list { list-style: none; margin: 0; padding: 0; }
.dc-todo-list > li { padding: 9px 0; border-top: 1px solid var(--line); }
.dc-todo-list > li:first-child { border-top: 0; }
.dc-finds { margin: 4px 0 0 2px; padding-left: 18px; font-size: .8125rem; color: var(--ink-2); }
.dc-finds li { margin: 2px 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .dc-card { padding: 14px 14px 12px; }
  .dc-len { margin-left: 0; }
  .dc-do .btn { flex: 1 1 auto; }
  .dc-text { font-size: .875rem; }
}
@media print { .dc-do, .dc-drawer, .dc-waiting form { display: none !important; } }

/* ---- command palette (Cmd/Ctrl + K; app/static/palette.js) */
html.ts-cmd-open { overflow: hidden; }
.ts-cmd-btn { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.ts-cmd-btn kbd { font-family: var(--mono); font-size: .72rem; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.ts-cmd { width: min(640px, calc(100vw - 28px)); max-height: min(560px, calc(100vh - 48px));
  margin: 8vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 22px 56px rgba(12, 20, 26, .28); overflow: hidden; }
.ts-cmd::backdrop { background: rgba(12, 20, 26, .42); }
.ts-cmd-sheet { display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 48px)); }
.ts-cmd-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ts-cmd-input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: transparent;
  color: var(--ink); font: inherit; font-size: .95rem; }
.ts-cmd-input:focus-visible { outline: none; }
.ts-cmd-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; }
.ts-cmd-item { padding: 8px 10px; border-radius: 9px; cursor: pointer; display: grid; gap: 2px; }
.ts-cmd-item.is-active, .ts-cmd-item:hover { background: var(--accent-soft); }
.ts-cmd-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ts-cmd-kind { flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.ts-cmd-item.is-active .ts-cmd-kind { background: var(--surface); color: var(--accent-text); }
.ts-cmd-title { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-cmd-about { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-cmd-empty { margin: 0; padding: 18px 14px; text-align: center; font-size: .875rem; }
.ts-cmd-foot { padding: 7px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 600px) { .ts-cmd-btn kbd { display: none; } }
@media print { .ts-cmd-btn, .ts-cmd { display: none !important; } }

/* ---- modernised Data Scope & Horizon bars (.hn-modern) */
.hn-modern .hn-meter { --ek-track: #dde6e9; --ek-light: #8cc7c8; --ek-teal: var(--accent, #0e7174);
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 10px 10px; background: var(--surface, #fff); font-size: .8125rem; color: var(--muted); }
.hn-modern .hn-meter b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hn-modern:has(.hn-meter) .hn-groups { border-radius: 10px 10px 0 0; }
.hn-ring { --ek-w: 2.5px; width: 18px; height: 18px; }
.hn-badge { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .12); color: #ebe8e1; }
.hn-groups .is-cur .hn-badge { background: rgba(214, 166, 54, .22); color: #f6d57a; }

/* ---- Home command overview (/home; app/templates/home.html) */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.st-grid h2 a { color: inherit; text-decoration: none; }
.st-grid h2 a:hover { text-decoration: underline; }
.hm-card { display: flex; flex-direction: column; gap: 6px; }
.hm-card p { margin: 0; }
.hm-stat { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px !important; }
.hm-stat a.pill { text-decoration: none; }
.hm-stat a.pill:hover { filter: brightness(0.96); }

/* ---- Filter toolbars (/etik/decide, /etik/export), focused decision card & editor mark jumper */
.dc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.dc-filters .btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.dc-keys { margin-left: auto; }
.dc-keys kbd { font-family: var(--mono); font-size: .72rem; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.dc-card.is-focused { outline: 2px solid var(--accent); outline-offset: 2px; }
.ek-jump-mark { margin-left: 8px; vertical-align: baseline; padding: 2px 8px; font-size: .75rem; }
@media print { .dc-filters, .ek-jump-mark { display: none !important; } }

/* ---- Dark-mode surface harmonisation for live editor, note cards, sources & nav meters */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lw-editor,
  :root:not([data-theme="light"]) .lw-notelist li,
  :root:not([data-theme="light"]) .lw-new { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
  :root:not([data-theme="light"]) .lw-then,
  :root:not([data-theme="light"]) .ek-src { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
  :root:not([data-theme="light"]) .lw-noted { background-color: rgba(242, 201, 76, .16); color: var(--ink); }
  :root:not([data-theme="light"]) .hn-modern .hn-meter { --ek-track: #2b3c47; --ek-light: #2f7a7c; background: var(--surface-2); }
}
:root[data-theme="dark"] .lw-editor,
:root[data-theme="dark"] .lw-notelist li,
:root[data-theme="dark"] .lw-new { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
:root[data-theme="dark"] .lw-then,
:root[data-theme="dark"] .ek-src { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
:root[data-theme="dark"] .lw-noted { background-color: rgba(242, 201, 76, .16); color: var(--ink); }
:root[data-theme="dark"] .hn-modern .hn-meter { --ek-track: #2b3c47; --ek-light: #2f7a7c; background: var(--surface-2); }

/* ---- AI token usage, cost & per-user limit controls (/admin#assistant-usage, /people/<username>) */
.au-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.au-head h2, .au-head h1 { margin-bottom: 2px; }
.au-drawer { margin-top: 10px; }
.au-drawer > summary { list-style: none; cursor: pointer; }
.au-drawer > summary::-webkit-details-marker { display: none; }
.au-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px;
  margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.au-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.au-table td { vertical-align: top; }
.au-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-bar { height: 5px; width: 100%; max-width: 150px; background: var(--surface-2); border-radius: 999px;
  overflow: hidden; margin-top: 4px; border: 1px solid var(--line); }
.au-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.au-bar > span.is-warn { background: #d97706; }
.au-bar > span.is-err { background: #dc2626; }
.au-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.au-badge.au-ok { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.au-badge.au-custom { background: rgba(37, 99, 235, .12); color: #1d4ed8; border-color: transparent; }
.au-badge.au-capped { background: rgba(217, 119, 6, .15); color: #b45309; border-color: transparent; }
.au-badge.au-blocked { background: rgba(220, 38, 38, .14); color: #b91c1c; border-color: transparent; }
:root[data-theme="dark"] .au-badge.au-custom { color: #93c5fd; }
:root[data-theme="dark"] .au-badge.au-capped { color: #fcd34d; }
:root[data-theme="dark"] .au-badge.au-blocked { color: #fca5a5; }
.au-lim-summary { margin-bottom: 5px; }
.au-inline-edit > summary { list-style: none; cursor: pointer; display: inline-flex; }
.au-inline-edit > summary::-webkit-details-marker { display: none; }
.au-user-form { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface-2); min-width: 260px; }
.au-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.au-check { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; margin: 4px 0; }
.er-trace { margin: 8px 0 0; padding: 10px 12px; max-width: 540px; max-height: 260px; overflow: auto;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font-family: var(--mono); font-size: .75rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

/* The archive (/archive; app/modules/archive) */
.ar-drop { padding: 18px; margin-bottom: 12px; border: 2px dashed var(--line); border-radius: 10px; text-align: center; }
.ar-drop.on { border-color: currentColor; background: color-mix(in srgb, currentColor 6%, transparent); }
.ar-pick { text-decoration: underline; cursor: pointer; }
.ar-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
.ar-tags { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ar-tag { cursor: pointer; }
.ar-item { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ar-title { font-weight: 600; }
.ar-notes { margin: 6px 0 0; white-space: pre-wrap; }
.ar-tools { margin-top: 6px; }
.ar-edit { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }

/* The pack for the finance office (/archive/finance/pack; app/static/finance_pack.js): the steps at the left, and at
   the right a preview of the pack's first two pages as paper, white in both themes as the PDF is, set in the same
   proportions as the A4 page (its sizes in cqi: a hundredth of the sheet's width) */
.fp-page .ts-main { max-width: 1320px; }  /* the steps and the preview side by side */
.fp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 6px; }
.fp-crumbs a { color: var(--muted); text-decoration: none; }
.fp-crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.fp-title { margin-bottom: 4px; }
.fp-lead { max-width: 72ch; margin-top: 0; }
.fp-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; align-items: start; margin-top: 16px; }
.fp-steps { display: grid; gap: 14px; min-width: 0; }
.fp-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 14px; }
.fp-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-size: .8125rem; font-weight: 700; }
.fp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fp-card { position: relative; display: block; cursor: pointer; }
.fp-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fp-card-in { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 11px; row-gap: 2px; align-items: center;
  height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.fp-card-ico { grid-row: span 2; color: var(--muted); }
.fp-card-in b { font-size: .9375rem; }
.fp-card-in small { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.fp-card:hover .fp-card-in { border-color: var(--line-strong); }
.fp-card input:checked + .fp-card-in { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
.fp-card input:checked + .fp-card-in .fp-card-ico { color: var(--accent-text); }
.fp-card input:focus-visible + .fp-card-in, .fp-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fp-seg { display: flex; align-items: center; flex-wrap: wrap; gap: 0; border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.fp-seg legend { float: left; margin: 0 12px 0 0; padding: 0; font-size: .875rem; font-weight: 600; }
.fp-seg label { position: relative; }
.fp-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fp-seg span { display: inline-block; padding: 5px 16px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer; }
.fp-seg label:first-of-type span { border-radius: 999px 0 0 999px; }
.fp-seg label:last-of-type span { border-radius: 0 999px 999px 0; margin-left: -1px; }
.fp-seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fp-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fp-filters .ts-field { margin-top: 0; }
.fp-filters .input { width: 100%; }
.fp-listbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; color: var(--muted); }
.fp-costs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fp-cost { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background-color .15s; }
.fp-cost.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface)); }
.fp-c { display: grid; grid-template-columns: auto 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px 5px; cursor: pointer; }
.fp-c input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.fp-c-n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fp-c-n:empty { background: transparent; border: 1px dashed var(--line-strong); }
.fp-c-what { display: grid; min-width: 0; }
.fp-c-what b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-c-what small, .fp-c-sum small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-c-date { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-c-sum { display: grid; min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.fp-c-sum b { font-weight: 600; white-space: nowrap; }
.fp-c-files { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 9px 77px; }
.fp-file, .fp-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 600; }
.fp-chip.is-ok { color: var(--good); background: var(--good-soft); border-color: transparent; }
.fp-chip.is-wait { color: var(--wait); background: var(--wait-soft); border-color: transparent; }
.fp-chip.is-bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.fp-empty { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: .875rem; }
.fp-more { margin-top: 12px; }
.fp-more summary { cursor: pointer; color: var(--muted); font-size: .875rem; font-weight: 600; }
.fp-more[open] summary { margin-bottom: 8px; }
.fp-held { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--muted); font-size: .8125rem; }
.fp-held b { color: var(--ink); font-weight: 600; }
.fp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.fp-opt { color: var(--muted); font-size: .78rem; font-weight: 400; }
.fp-body { min-height: 200px; }
.fp-redo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); }
.fp-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .875rem; cursor: pointer; }
.fp-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.fp-hint { margin: 8px 0 0; }
.fp-make { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.fp-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.fp-total-label { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fp-total-sum { font-size: 1.9rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fp-total-more { margin: 2px 0 0; color: var(--muted); font-size: .875rem; }
.fp-warn { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; padding: 0; }
.fp-warn:empty { display: none; }
.fp-warn li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--wait-soft); color: var(--wait); font-size: .8125rem; }
.fp-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fp-buttons .btn { min-height: 40px; padding-inline: 18px; }
.fp-buttons .btn.is-off { opacity: .5; pointer-events: none; }
.fp-said { min-height: 1.2em; margin: 10px 0 0; color: var(--muted); }
.fp-said.is-ok { color: var(--good); }
.fp-said.is-bad { color: var(--bad); }
.fp-after { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: .875rem; }
.fp-after p { margin: 0 0 8px; }
.fp-preview { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--line) 50%, var(--bg)); }
.fp-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 10px; color: var(--muted);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fp-preview-bar .btn { letter-spacing: 0; text-transform: none; }
.fp-pages { margin-left: 6px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.fp-dialog { width: min(880px, 94vw); max-height: 94vh; overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--line) 50%, var(--bg)); color: var(--ink); box-shadow: var(--shadow); }
.fp-dialog::backdrop { background: rgba(8, 18, 26, .6); }
.fp-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.fp-dialog-bar h2 { margin: 0; font-size: 1rem; }
.fp-dialog-sheets { display: grid; gap: 18px; padding: 18px; }
.fp-sheets { display: grid; gap: 14px; }
.fp-sheet { --p-ink: #1b2a2b; --p-soft: #4f6664; --p-muted: #6b7f7c; --p-teal: #0e7174; --p-gold: #bf8a24;
  --p-gold-text: #8c6418; --p-line: #d4dee3; --p-box: #f4f8f8;
  container-type: inline-size; position: relative; aspect-ratio: 210 / 297; overflow: hidden; display: flex; flex-direction: column;
  padding: 6.7% 11.9% 5%; border-radius: 3px; background: #fff; color: var(--p-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 26px rgba(18, 39, 58, .16); line-height: 1.45; }
.fp-sheet > * { font-size: 1.68cqi; }
.fp-mast { position: relative; display: flex; justify-content: space-between; align-items: center; padding-bottom: 3.4cqi;
  margin-bottom: 4.3cqi; border-bottom: .14cqi solid var(--p-line); }
.fp-mast::after { content: ""; position: absolute; left: 0; bottom: -.2cqi; width: 11.2cqi; height: .5cqi; background: var(--p-gold); }
.fp-logo { display: block; height: 6.7cqi; width: auto; }
.fp-principals { display: grid; text-align: right; }
.fp-principals small { color: var(--p-muted); font-size: 1.05cqi; font-weight: 600; letter-spacing: .2em; }
.fp-principals b { font-size: 1.55cqi; font-weight: 500; }
.fp-pv-to { display: flex; justify-content: space-between; gap: 3cqi; margin-bottom: 3.6cqi; }
.fp-pv-to > span { display: grid; align-content: start; }
.fp-pv-to small { color: var(--p-soft); font-size: 1.3cqi; }
.fp-pv-to b { font-size: 1.85cqi; font-weight: 500; white-space: pre-line; }
.fp-r { text-align: right; }
.fp-over { margin: 0 0 1.2cqi; color: var(--p-gold-text); font-size: 1.32cqi; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.fp-subject { margin: 0 0 2.3cqi; color: var(--p-ink); font-size: 3.2cqi; font-weight: 600; line-height: 1.25; }
.fp-facts { display: grid; grid-template-columns: 27% minmax(0, 1fr); gap: 1.15cqi 2cqi; margin: 0 0 3.2cqi; padding: 2.7cqi 3cqi;
  border-left: .45cqi solid var(--p-gold); background: var(--p-box); }
.fp-facts dt { color: var(--p-soft); font-size: 1.4cqi; font-weight: 500; }
.fp-facts dd { margin: 0; font-size: 1.62cqi; }
.fp-facts dd.is-total { font-weight: 600; }
.fp-letter p { margin: 0 0 1.15cqi; }
.fp-sender { display: grid; margin-top: 2.6cqi; }
.fp-sender b { font-weight: 600; }
.fp-sender span { color: var(--p-soft); }
.fp-slim { display: flex; align-items: center; gap: 1.4cqi; padding-bottom: 2cqi; margin-bottom: 4cqi; border-bottom: .14cqi solid var(--p-line);
  color: var(--p-muted); font-size: 1.2cqi; }
.fp-slim img { height: 2.6cqi; width: auto; }
.fp-slim b { color: var(--p-ink); font-size: 1.15cqi; letter-spacing: .18em; }
.fp-rule { width: 6.7cqi; height: .42cqi; background: var(--p-gold); }
.fp-sumtitle { margin: 1.3cqi 0 2.2cqi; font-size: 2.45cqi; font-weight: 600; }
.fp-table { width: 100%; border-collapse: collapse; font-size: 1.42cqi; font-variant-numeric: tabular-nums; }
.fp-table th { position: static; padding: .85cqi .9cqi; border-top: 0; border-bottom: .2cqi solid var(--p-teal); background: var(--p-box);
  color: var(--p-ink); font-size: inherit; font-weight: 600; letter-spacing: 0; text-align: left; text-transform: none; }
.fp-table td { padding: .85cqi .9cqi; border-top: 0; border-bottom: .1cqi solid var(--p-line); vertical-align: top; }
.fp-table td b { font-weight: 500; }
.fp-table td small { display: block; color: var(--p-soft); }
.fp-table .is-num { text-align: right; white-space: nowrap; }
.fp-table tfoot td { border-top: .2cqi solid var(--p-ink); border-bottom: 0; font-weight: 600; }
.fp-then { margin: 0 2px; color: var(--muted); line-height: 1.5; }
.fp-then b { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) {
  .fp-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-preview { position: static; max-height: none; }
  .fp-sheets { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .fp-cards, .fp-two, .fp-three { grid-template-columns: minmax(0, 1fr); }
  .fp-seg legend { float: none; margin-bottom: 6px; width: 100%; }
  .fp-c { grid-template-columns: auto 26px minmax(0, 1fr) auto; }
  .fp-c-date { grid-column: 3; grid-row: 2; margin-top: -4px; }
  .fp-c-sum { grid-column: 4; grid-row: 1 / span 2; min-width: 0; }
  .fp-c-files { padding-left: 12px; }
}

/* the map of the network of people (/network/map; app/static/network_map.js) */
.nm-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.nm-zoom{margin-left:auto}
.nm-key{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.nm-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:.8125rem;cursor:pointer}
.nm-chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.nm-sw{width:.75rem;height:.75rem;border-radius:50%;background:var(--nm)}
.nm-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,17rem);gap:16px;align-items:start}
.nm-side{max-height:min(75vh,700px);overflow:auto}
.nm-pic{border:1px solid var(--line);border-radius:10px;background:var(--surface-2);overflow:hidden}
.nm-svg{display:block;width:100%;height:min(75vh,700px);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.nm-line{stroke:var(--muted);stroke-width:1.2;opacity:.55;vector-effect:non-scaling-stroke}
.nm-line.is-on{stroke:var(--ink);stroke-width:2;opacity:1}
.nm-line.is-dim{opacity:.08}
.nm-how{display:none;fill:var(--ink);paint-order:stroke;stroke:var(--surface-2);pointer-events:none}
.nm-how.is-on{display:block}
.nm-dot{cursor:pointer}
.nm-dot circle{fill:var(--nm);stroke:var(--surface);stroke-width:1.5}
.nm-dot text{font-size:11px;fill:var(--ink);paint-order:stroke;stroke:var(--surface-2);stroke-width:3px;pointer-events:none}
.nm-dot.is-on circle{stroke:var(--ink);stroke-width:3}
.nm-dot.is-on text{font-weight:700}
.nm-dot.is-dim{opacity:.15}
.nm-dot:focus-visible{outline:none}
.nm-dot:focus-visible circle{stroke:var(--accent);stroke-width:4}
.nm-c0{--nm:#0e7174}.nm-c1{--nm:#c2410c}.nm-c2{--nm:#1d4ed8}.nm-c3{--nm:#be123c}
.nm-c4{--nm:#15803d}.nm-c5{--nm:#7e22ce}.nm-c6{--nm:#b98322}.nm-c7{--nm:#64748b}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .nm-c0{--nm:#4fc3c5}:root:not([data-theme="light"]) .nm-c1{--nm:#f9a46b}
  :root:not([data-theme="light"]) .nm-c2{--nm:#93b8fb}:root:not([data-theme="light"]) .nm-c3{--nm:#fb92a8}
  :root:not([data-theme="light"]) .nm-c4{--nm:#6fdc98}:root:not([data-theme="light"]) .nm-c5{--nm:#d0a6f7}
  :root:not([data-theme="light"]) .nm-c6{--nm:#e8bd64}:root:not([data-theme="light"]) .nm-c7{--nm:#b4c2d3}
}
:root[data-theme="dark"] .nm-c0{--nm:#4fc3c5}:root[data-theme="dark"] .nm-c1{--nm:#f9a46b}
:root[data-theme="dark"] .nm-c2{--nm:#93b8fb}:root[data-theme="dark"] .nm-c3{--nm:#fb92a8}
:root[data-theme="dark"] .nm-c4{--nm:#6fdc98}:root[data-theme="dark"] .nm-c5{--nm:#d0a6f7}
:root[data-theme="dark"] .nm-c6{--nm:#e8bd64}:root[data-theme="dark"] .nm-c7{--nm:#b4c2d3}
.nm-name{font-size:1.125rem;margin:0 0 4px}
.nm-side h3{font-size:.9375rem;margin:14px 0 4px}
.nm-ties{list-style:none;margin:0 0 12px;padding:0}
.nm-ties li{padding:5px 0;border-bottom:1px solid var(--line)}
.nm-go{border:0;background:none;padding:0;color:var(--accent-text,var(--accent));font:inherit;font-weight:600;cursor:pointer;text-align:left}
.nm-go:hover{text-decoration:underline}
@media (max-width:900px){.nm-body{grid-template-columns:1fr}.nm-svg{height:60vh}.nm-side{max-height:none}}
@media print{.nm-bar,.nm-zoom{display:none}}

/* the network: what a person has written (/network/<name>, /network/papers) */
.nw-sub{font-size:.9375rem;margin:16px 0 6px}
.nw-works li,.nw-cands li{padding:8px 0;border-bottom:1px solid var(--line)}
.nw-works li:last-child,.nw-cands li:last-child{border-bottom:0}
.nw-cands li.is-off{opacity:.55}
.nw-warn{border-left:4px solid #d6a636;padding:6px 10px;margin:10px 0;background:var(--surface-2,#f4f4f4)}
a.ek-badge.is-on{outline:2px solid currentColor}

/* the network: its own navigation, the week, the consortium and the call (/network...) */
.nw-nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 16px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.nw-nav a{text-decoration:none;padding:4px 0;border-bottom:3px solid transparent}
.nw-nav a[aria-current="page"]{font-weight:700;border-bottom-color:#d6a636}
.nw-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:10px;margin:0 0 6px}
.nw-tile{display:block;padding:12px 14px;border:1px solid var(--line);border-left:4px solid #5a8f6b;border-radius:8px;text-decoration:none;color:inherit}
.nw-tile.is-warn{border-left-color:#d6a636}
.nw-tile b{display:block;font-size:1.5rem;line-height:1.2}
.nw-tile span{font-size:.8125rem}
.nw-prom li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}
.nw-prom li:last-child{border-bottom:0}
.nw-prom li > span:last-child{flex:none;white-space:nowrap}
.nw-late{color:#b3402a}
.nw-checks li{display:flex;justify-content:space-between;gap:12px;padding:7px 0 7px 10px;border-left:4px solid #5a8f6b;margin:0 0 4px}
.nw-checks li.is-not{border-left-color:#b3402a}
.nw-partner{padding:12px 0;border-bottom:1px solid var(--line)}
.nw-partner:last-child{border-bottom:0}
.nw-partner h3{margin:0 0 6px;font-size:1.0625rem}
.nw-steps{display:flex;gap:4px;margin:0 0 8px;max-width:22rem}
.nw-steps span{flex:1;height:6px;border-radius:3px;background:var(--line)}
.nw-steps span.is-on{background:#5a8f6b}
.nw-state{display:inline-block;padding:1px 9px;border-radius:999px;font-size:.8125rem;font-weight:600;border:1px solid var(--line);border-left-width:5px}
.nw-state.is-gap{border-left-color:#b3402a}
.nw-state.is-not-committed,.nw-state.is-one-person{border-left-color:#d6a636}
.nw-state.is-covered{border-left-color:#5a8f6b}
.nw-req h2{font-size:1.0625rem}
@media (max-width:600px){.nw-prom li{flex-direction:column;align-items:flex-start}}
.nw-record{margin:6px 0}
.nw-record-form{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:6px 0}
.nw-record-form .input{min-width:16rem}

/* My memory (/network, 28 Nov 2026): the coming days, on you and waiting side by side, workstreams, people */
.ms-recall { margin: 0 0 16px; }
.ms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .ms-two { grid-template-columns: 1fr; } }
.ms-two > .panel { margin: 0; }
.ms-coming li b { display: inline-block; min-width: 92px; }
.ms-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.ms-stream { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.ms-stream.is-on_you { border-left-color: #c2410c; }
.ms-stream.is-waiting { border-left-color: #b7791f; }
.ms-stream.is-running { border-left-color: #2f7d7a; }
.ms-stream.is-done { opacity: .7; }
.ms-stream header { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ms-stream p { margin: 6px 0 0; }
.ms-table-wrap { overflow-x: auto; }
.ms-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ms-table th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ms-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ms-table tr.is-due td { background: var(--surface-2); }
.ms-table .input { width: 100%; min-width: 120px; box-sizing: border-box; }
.ms-inline { display: inline; font-size: inherit; margin: 0; }

/* Stage 1 (29 Nov 2026): the application page and the paragraph page take the ethics application's shapes
   (ek-*, hz-write); these are the few things of their own: a paragraph's code, a figure or table after it, the
   panels in the main column spaced as the side's are. */
.hz-write > div > .panel + .panel, .hz-write > div > .panel + .cn, .hz-write > div > .cn + .panel { margin-top: 16px; }
.s1-code { display: inline-block; font-size: .78em; font-weight: 700; letter-spacing: .03em; padding: 0 .4em;
  border-radius: 4px; background: color-mix(in srgb, currentColor 10%, transparent); vertical-align: .08em; }
.s1-cards .ek-map-name { font-weight: 400; }
.hz-part { margin: 14px 0 6px; }
.hz-part-drawing svg { display: block; width: 100%; height: auto; max-width: 100%; }
.hz-part-table { overflow-x: auto; }
.hz-part-table table { min-width: 32rem; font-size: .88em; }
.hz-part figcaption { margin-top: 6px; }
.cd-evidence-list details summary { cursor: pointer; }
.dc-item + .dc-item { border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding-top: 12px;
  margin-top: 12px; }
/* the four stages of writing a part (app/stages.py, _stages.html) */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-step { border-left: 3px solid color-mix(in srgb, currentColor 18%, transparent); padding: 4px 0 4px 10px; }
.st-step.is-written { border-left-color: color-mix(in srgb, currentColor 45%, transparent); }
.st-step.is-text { border-left-color: currentColor; }
.st-head { cursor: pointer; font-weight: 600; text-decoration: none; color: inherit; }
.st-n { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; font-size: .85em;
  background: color-mix(in srgb, currentColor 12%, transparent); margin-right: .2em; }
.st-body { max-height: 32rem; overflow: auto; padding: 4px 8px; border-radius: 6px;
  background: color-mix(in srgb, currentColor 4%, transparent); }
.st-body h3, .st-body h4 { font-size: 1em; margin: .8em 0 .3em; }
.st-body ul { padding-left: 1.2em; }
@media (min-width: 900px) { .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .st-step details[open] { grid-column: 1 / -1; } }
@media (max-width: 560px) { .s1-cards li { grid-template-columns: minmax(0, 1fr); } .s1-cards .ek-map-n { text-align: left; } }
.tx-p > .hz-part { grid-column: 2 / -1; min-width: 0; }
@media (max-width: 560px) { .tx-p > .hz-part { grid-column: 1 / -1; } }

/* Stage 1, round 4: one colour and one shape for each kind of material, on every Stage 1 page */
:root { --s1-text: #3d4a55; --s1-plan: #6b4fa3; --s1-evidence: #2f7d5b; --s1-gaps: #a86b00; --s1-notes: #2f5d8c;
  --s1-ai: #7b8a94; --s1-history: #5b6770; }
:root[data-theme="dark"] { --s1-text: #c9d3db; --s1-plan: #b9a3e6; --s1-evidence: #7fcfa6; --s1-gaps: #f0b84f;
  --s1-notes: #8fb5e6; --s1-ai: #9aa7b0; --s1-history: #a5b0b8; }
.s1-k-text { --s1-c: var(--s1-text); } .s1-k-plan { --s1-c: var(--s1-plan); } .s1-k-evidence { --s1-c: var(--s1-evidence); }
.s1-k-gaps { --s1-c: var(--s1-gaps); } .s1-k-notes { --s1-c: var(--s1-notes); } .s1-k-ai { --s1-c: var(--s1-ai); }
.s1-k-history, .s1-k-reviews { --s1-c: var(--s1-history); }
.s1-ic { display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.02em; background: var(--s1-c); }
.s1-k-text .s1-ic { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 40%, 100% 40%, 100% 60%, 0 60%, 0 80%, 70% 80%, 70% 100%, 0 100%); }
.s1-k-plan .s1-ic { transform: rotate(45deg) scale(.85); }
.s1-k-evidence .s1-ic { border-radius: 1px; }
.s1-k-gaps .s1-ic { border-radius: 50%; }
.s1-k-notes .s1-ic { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s1-k-ai .s1-ic { background: transparent; border: 2px dashed var(--s1-c); border-radius: 50%; }
.s1-k-history .s1-ic, .s1-k-reviews .s1-ic { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
details.s1-k, section.s1-k { border-left: 4px solid var(--s1-c); }
details.s1-k > summary { cursor: pointer; list-style: none; }
details.s1-k > summary::-webkit-details-marker { display: none; }
details.s1-k > summary h2 { display: inline-flex; align-items: center; gap: .2em; margin: 0; }
details.s1-k > summary h2::after { content: "▾"; font-size: .8em; color: var(--muted, #5b6770); margin-left: .4em; }
details.s1-k:not([open]) > summary h2::after { content: "▸"; }
.s1-count { font-size: .75em; font-weight: 600; padding: 0 .45em; border-radius: 999px; margin-left: .35em;
  background: color-mix(in srgb, var(--s1-c) 15%, transparent); color: var(--s1-c); }
.s1-notes-wrap { border-left: 0; }
.s1-notes-wrap > summary.s1-sum { border-left: 4px solid var(--s1-c); }
.s1-notes-wrap .cn-head h2 { display: none; }
.s1-notes-wrap > .cn { border-left: 4px solid var(--s1-c); margin-top: 0; }
.s1-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.s1-actions .btn { font-size: 1rem; padding: .55em 1em; }
.s1-actions .btn.s1-k-gaps, .s1-actions .btn.s1-k-notes { border-color: var(--s1-c); color: var(--s1-c); }
.s1-toc { position: sticky; top: 12px; }
.s1-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s1-toc li { border-left: 4px solid var(--s1-c); padding-left: 8px; }
@media (max-width: 900px) { .s1-toc { position: static; display: none; } }
.s1-read { margin-bottom: 8px; }
.s1-edit > summary { margin: 6px 0; }
/* the stepper of the four stages */
.st-stepper ol { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-stepper li { position: relative; }
.st-stepper li + li::before { content: "→"; position: absolute; left: -10px; top: 18px; transform: translateX(-50%); color: var(--muted, #5b6770); }
.st-stepper a, .st-stepper .st-link { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit;
  border: 2px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 3%, transparent); }
.st-stepper li.is-on a, .st-stepper li.is-on .st-link { border-color: var(--accent, #1f6f6b); background: color-mix(in srgb, var(--accent, #1f6f6b) 10%, transparent); }
.st-stepper li.is-empty a { opacity: .7; }
.st-stepper .st-n { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; font-weight: 700;
  background: color-mix(in srgb, currentColor 12%, transparent); }
.st-stepper .st-what { font-size: .85rem; color: var(--muted, #5b6770); }
.st-stepper .st-state { font-size: .8rem; color: var(--muted, #5b6770); }
@media (max-width: 700px) { .st-stepper ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-stepper li + li::before { display: none; } }
.st-view .st-body { max-height: none; }
.st-view h2 .small { font-weight: 400; margin-left: .4em; }
/* the front page as a map */
.s1-me { margin: 8px 0 12px; }
.s1-summary > summary { cursor: pointer; }
.s1-map { display: grid; gap: 16px; margin: 16px 0; }
.s1-part-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.s1-part-head h2 { margin: 0; }
.s1-bar { flex: 1 1 120px; min-width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(to right, #2f7d5b var(--p), #e3e8eb var(--p)); }
.s1-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.s1-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.s1-row.is-new { background: color-mix(in srgb, var(--s1-notes) 5%, transparent); }
.s1-row-name { flex: 1 1 18rem; min-width: 0; display: flex; gap: .5em; align-items: baseline; text-decoration: none; color: inherit; }
.s1-claim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.s1-row-name:hover .s1-claim { text-decoration: underline; }
.s1-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s1-badge { display: inline-flex; align-items: center; font-size: .8rem; padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--s1-c, #7b8a94) 13%, transparent); color: var(--s1-c, inherit); }
.s1-badge .s1-ic { width: .65em; height: .65em; }
.s1-st-ai { --s1-c: var(--s1-ai); border: 1px dashed var(--s1-ai); }
.s1-st-person { --s1-c: var(--s1-notes); } .s1-st-agreed { --s1-c: var(--s1-evidence); font-weight: 600; }
.s1-new { --s1-c: var(--s1-notes); font-weight: 600; }
.s1-words { position: relative; display: inline-flex; align-items: center; font-size: .78rem; min-width: 5.5em; padding: 1px 6px;
  border-radius: 4px; background: #e3e8eb; color: #26323b; overflow: hidden; }
.s1-words > span { position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, #2f7d5b 35%, transparent); }
.s1-words.is-over > span { background: color-mix(in srgb, #a86b00 45%, transparent); }
.s1-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* role choice and demo */
.s1-ways { display: grid; gap: 10px; max-width: 46rem; }
.s1-way { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid color-mix(in srgb, currentColor 14%, transparent); }
.s1-way input { grid-row: span 2; align-self: center; width: 1.2em; height: 1.2em; }
.s1-way:has(input:checked) { border-color: var(--accent, #1f6f6b); background: color-mix(in srgb, var(--accent, #1f6f6b) 8%, transparent); }
.s1-way span { color: var(--muted, #5b6770); }
/* the practice paragraph: room under the page for the box of steps, which stands over its foot */
main:has(#s1-demo-box:not([hidden])) { padding-bottom: 13rem; }
.s1-practice .ts-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
[data-demo-step] { margin-bottom: 16px; transition: box-shadow .2s; }
.s1-demo-hl { box-shadow: 0 0 0 3px var(--accent, #1f6f6b), 0 0 0 9px color-mix(in srgb, var(--accent, #1f6f6b) 18%, transparent); border-radius: 10px; }
.s1-demo-box { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(36rem, calc(100vw - 24px));
  padding: 14px 16px; border-radius: 12px; background: var(--panel, #fff); color: inherit; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.s1-demo-box .ts-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tx-how { grid-column: 2 / -1; margin: 0; }
.tx-reflist { padding-left: 2.6em; font-size: .85rem; line-height: 1.35; }
.tx-reflist li { margin: 0; overflow-wrap: anywhere; }
.s1-invite { width: 100%; font-family: inherit; }
/* Learn, the switch of expertise, and the role-led front page */
.s1-lens { font-size: .9rem; margin: 0 8px; }
.s1-lens select { font: inherit; padding: 2px 6px; border-radius: 6px; }
.s1-purpose { font-size: 1.05rem; margin: 6px 0 14px; max-width: 52rem; }
.s1-new-here { margin-bottom: 14px; }
.s1-need-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s1-need-list li { padding: 8px 0; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.s1-need-list li p { margin: 0 0 6px; }
.s1-needs { font-weight: 600; }
.s1-row.is-needed { background: color-mix(in srgb, var(--s1-gaps) 7%, transparent); }
.s1-for-you { border-left: 3px solid var(--s1-gaps); padding-left: 10px; }
.s1-map-h { margin: 22px 0 2px; }
.s1-part-head h3 { margin: 0; font-size: 1.1rem; }
.s1-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.s1-wait { color: var(--s1-gaps); font-weight: 600; }
.s1-learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 46rem; }
.s1-learn a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 2px solid color-mix(in srgb, currentColor 14%, transparent); }
.s1-learn a > :not(.s1-learn-n) { grid-column: 2; }
.s1-learn-n { grid-row: span 3; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; font-weight: 700;
  background: color-mix(in srgb, currentColor 10%, transparent); }
.s1-learn li.is-next a { border-color: var(--accent, #1f6f6b); background: color-mix(in srgb, var(--accent, #1f6f6b) 8%, transparent); }
.s1-learn li.is-done a { opacity: .75; }
.s1-learn-next { margin: 18px 0; }
/* the Welcome's steps in a row (_welcome_nav.html): done, the one shown, still to come; wraps on a phone */
.wl-steps ol { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; counter-reset: none; }
.wl-steps a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; text-decoration: none; color: inherit; font-size: .875rem; }
.wl-steps a:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.wl-n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; font-weight: 700; font-size: .8125rem;
  border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); }
.wl-steps li.is-done .wl-n { background: var(--accent, #1f6f6b); border-color: var(--accent, #1f6f6b); color: #fff; }
.wl-steps li.is-here a { background: color-mix(in srgb, var(--accent, #1f6f6b) 10%, transparent); font-weight: 600; }
.wl-steps li.is-here .wl-n { border-color: var(--accent, #1f6f6b); color: var(--accent-text, var(--accent, #1f6f6b)); background: transparent; }
@media (max-width: 640px) { .wl-steps .wl-t { display: none; } .wl-steps li.is-here .wl-t { display: inline; } }
/* the Welcome's last step: what is said before anything is typed, the three starts, the first thoughts */
.wl-said { border-left: 3px solid var(--accent, #1f6f6b); }
.wl-thoughts textarea { width: 100%; box-sizing: border-box; }
/* Home: the first card for someone who has not finished the Welcome */
.hm-welcome { border: 2px solid var(--accent, #1f6f6b); background: color-mix(in srgb, var(--accent, #1f6f6b) 6%, var(--panel, transparent)); }
.hm-welcome h2 { margin-top: 0; }
.hm-again { margin: -4px 0 12px; }
/* Home: the two films, a card each (large while one is not watched, quiet once both are) */
.hm-films { border: 2px solid var(--accent, #1f6f6b); }
.hm-films h2 { margin-top: 0; }
.hm-film-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.hm-film { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line-strong, #b9c7cf); border-radius: 12px; background: var(--surface, #fff); color: var(--ink);
  text-decoration: none; min-height: 5.5rem; }
.hm-film:hover, .hm-film:focus-visible { border-color: var(--accent, #1f6f6b); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.hm-film-play { grid-row: 1 / span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent, #1f6f6b); color: var(--accent-ink, #fff); font-size: 1.1rem; padding-left: 3px; box-sizing: border-box; }
.hm-film-t { display: grid; gap: 1px; }
.hm-film-t b { font-size: 1.1rem; }
.hm-film-t .small, .hm-film-s { color: var(--muted); }
.hm-film-s { grid-column: 2; }
.hm-film.is-none, .hm-film.is-started { border-width: 2px; border-color: var(--accent, #1f6f6b);
  background: color-mix(in srgb, var(--accent, #1f6f6b) 6%, var(--surface, #fff)); }
.hm-film.is-none .hm-film-s, .hm-film.is-started .hm-film-s { color: var(--ink); font-weight: 600; }
.hm-film.is-watched .hm-film-play { background: color-mix(in srgb, var(--accent, #1f6f6b) 22%, transparent); color: var(--ink); }
.hm-film-ask { margin: 0 0 8px; }
.hm-film-foot { margin: 0; }
.hm-films.is-quiet { border: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.hm-films.is-quiet h2 { font-size: 1rem; }
.hm-films.is-quiet .hm-film { padding: 8px 12px; min-height: 0; }
.hm-films.is-quiet .hm-film-play { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
.hm-films.is-quiet .hm-film-t b { font-size: .95rem; }
@media (max-width: 640px) { .hm-film-cards { grid-template-columns: minmax(0, 1fr); } }
.fw-table td { vertical-align: top; }
.fw-table tr.fw-done td { color: var(--muted); }
.s1-four { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.s1-four li { padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.s1-four h2 { font-size: 1.05rem; margin: 0 0 4px; display: flex; gap: .5em; align-items: center; }
.s1-four-body { max-height: 16rem; }
.s1-kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.s1-conf { margin-top: -6px; }
/* the slide deck: 16:9, large type, one idea a slide; the four phase colours of the figures */
.dk { --ph1: #2F5D8C; --ph2: #2F7A4D; --ph3: #B06F00; --ph4: #5E4A8A; position: relative; container-type: inline-size; width: 100%;
  max-width: 1100px; border-radius: 14px; background: var(--panel, #fff); color: inherit; overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent); outline: none; }
.dk:fullscreen { max-width: none; border-radius: 0; display: grid; place-items: center; }
/* a slide is at least 16:9 and grows when what it holds needs more room, so nothing on it overlaps */
.dk-slide { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 56.25cqw; box-sizing: border-box; padding: 4cqw 6cqw; }
.dk-slide[hidden] { display: none; }
.dk:fullscreen .dk-slide { width: 100%; }
.dk-in { display: grid; gap: 14px; max-width: 60rem; }
.dk-kicker { margin: 0; font-size: clamp(.8rem, 1.4vw, 1rem); letter-spacing: .08em; text-transform: uppercase; color: var(--ph1); font-weight: 700; }
.dk-title { margin: 0; font-size: clamp(1.4rem, 3.6vw, 2.8rem); line-height: 1.15; }
.dk-lead { margin: 0; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.4; color: var(--muted, #45525c); }
.dk-bullets { margin: 0; padding-left: 1.2em; font-size: clamp(1rem, 1.9vw, 1.35rem); line-height: 1.45; display: grid; gap: .4em; }
.dk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 18px; }
.dk-stats p { margin: 0; display: grid; gap: 4px; }
.dk-stats b { font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1; color: var(--ph1); }
.dk-stats span { font-size: clamp(.9rem, 1.5vw, 1.1rem); color: var(--muted, #45525c); }
.dk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; }
.dk-steps li { display: grid; gap: 4px; padding: 14px; border-radius: 10px; border-top: 6px solid var(--phc, var(--ph1));
  background: color-mix(in srgb, var(--phc, var(--ph1)) 8%, transparent); font-size: clamp(.85rem, 1.4vw, 1.05rem); }
.dk-steps .dk-ph1 { --phc: var(--ph1); } .dk-steps .dk-ph2 { --phc: var(--ph2); } .dk-steps .dk-ph3 { --phc: var(--ph3); } .dk-steps .dk-ph4 { --phc: var(--ph4); }
.dk-steps b { color: var(--phc); font-size: 1.1em; }
.dk-when { color: var(--muted, #5b6770); font-size: .9em; }
.dk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 22px; font-size: clamp(.9rem, 1.5vw, 1.1rem); }
.dk-cols h3 { margin: 0 0 6px; color: var(--ph1); }
.dk-table { overflow: auto; font-size: clamp(.75rem, 1.2vw, .95rem); }
.dk-table table { border-collapse: collapse; width: 100%; }
.dk-table th, .dk-table td { padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); text-align: left; vertical-align: top; }
.dk-figure svg { display: block; width: 100%; height: auto; max-height: 60vh; }
.dk-figure .dk-in, .dk-figure { min-height: 0; }
.dk-slide.dk-title .dk-title, .dk-slide.dk-closing .dk-title, .dk-slide.dk-statement .dk-title { font-size: clamp(1.8rem, 4.6vw, 3.6rem); }
.dk-slide.dk-title { background: linear-gradient(135deg, color-mix(in srgb, var(--ph1) 10%, transparent), transparent 60%); }
.dk-note { margin: 0; color: var(--muted, #5b6770); }
.dk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; max-width: 1100px; }
.dk-dots { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dk-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, currentColor 22%, transparent); cursor: pointer; }
.dk-dot.is-on { background: var(--accent, #1f6f6b); }
@media (max-width: 700px) {
  .dk-slide { min-height: 0; padding: 22px 18px; }
}
@media print {
  .ts-shell .side, header, .dk-bar, .s1-learn-next, .ts-crumbs, .s1-nav { display: none !important; }
  .dk { border: 0; max-width: none; }
  .dk-slide, .dk-slide[hidden] { display: flex !important; page-break-after: always; break-after: page; min-height: 17cm; }
}
.dk-rolecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; }
.dk-role { margin: 0; }
.dk-role button, .dk-role-text { display: grid; gap: 3px; width: 100%; height: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: clamp(.8rem, 1.2vw, .95rem); color: inherit; background: color-mix(in srgb, var(--ph1) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ph1) 25%, transparent); cursor: pointer; }
.dk-role button:hover { border-color: var(--ph1); }
.dk-role-text { cursor: default; background: transparent; border-style: dashed; }
.dk-role-info { border-style: solid; background: color-mix(in srgb, currentColor 4%, transparent); }
.dk-role-n { color: var(--s1-gaps); font-weight: 600; }
.dk-role-ex { color: var(--muted, #5b6770); }

/* the deck as its designed pictures: one slide at a time, 16:9, never cropped or stretched */
.dk.dk-pics { container-type: normal; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.dk-slide.dk-pic { display: block; min-height: 0; padding: 0; }
.dk-slide.dk-pic[hidden] { display: none; }
.dk-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #F1F3F6; border: 1px solid #D9DFE6;
  border-radius: 10px; overflow: hidden; container-type: inline-size; }
.dk-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dk:fullscreen.dk-pics { display: grid; place-items: center; background: #111; }
.dk:fullscreen .dk-slide.dk-pic { width: min(100vw, calc(100vh * 16 / 9)); }
.dk:fullscreen .dk-notes { display: none; }
.dk-missing { position: absolute; inset: 0; display: grid; align-content: center; padding: 6cqw; font-size: 3cqw; }
.dk-notes { margin: 8px 0 0; max-width: 70ch; }
.dk-notes summary { cursor: pointer; color: var(--muted, #5b6770); }
.dk-notes p { margin: 6px 0 0; line-height: 1.5; }
.dk-film { margin: 14px 0; max-width: 1100px; }
.dk-film video { display: block; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; margin-top: 8px; background: #000; border-radius: 12px; }
.dk-film-frame { position: relative; max-width: 1100px; }
.dk-film-offer { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dk-film-say { margin: 8px 0 2px; }
/* the film's subtitles: quiet over the slide. Words at 85 % white on a band of 38 % black, a little smaller; the thin
   dark edge keeps them readable where the slide under them is light */
.dk-film video::cue { color: rgba(255, 255, 255, .85); background-color: rgba(0, 0, 0, .38); font-size: .85em;
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .75); }
.dk-h { margin: 26px 0 2px; font-size: 1.15rem; }
/* the live slide, in the designed slides' own style: a 1920 by 1080 slide, its sizes in units of the frame's width */
.dk-live { position: absolute; inset: 0; --u: calc(100cqw / 1920); background: #F1F3F6; color: #1B2733;
  padding: calc(128 * var(--u)) calc(128 * var(--u)) 0; font-family: 'IBM Plex Sans', var(--sans, system-ui), Arial, sans-serif; box-sizing: border-box; }
.dkl-kicker { margin: 0 0 calc(20 * var(--u)); font-size: calc(26 * var(--u)); font-weight: 600; letter-spacing: calc(2 * var(--u)); text-transform: uppercase; color: #2F5D8C; }
.dkl-title { margin: 0 0 calc(40 * var(--u)); font-family: 'Source Serif 4', Georgia, serif; font-size: calc(64 * var(--u)); font-weight: 600; line-height: 1.12; }
.dkl-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(24 * var(--u)); }
.dkl-role { background: #fff; border: calc(2 * var(--u)) solid #D9DFE6; border-radius: calc(18 * var(--u)); padding: calc(26 * var(--u)) calc(28 * var(--u)) calc(28 * var(--u)); min-height: calc(240 * var(--u)); box-sizing: border-box; }
.dkl-role h3 { margin: 0 0 calc(10 * var(--u)); font-size: calc(30 * var(--u)); font-weight: 600; line-height: 1.2; }
.dkl-cnt { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: calc(56 * var(--u)); font-weight: 700; line-height: 1.05; color: #2F5D8C; }
.dkl-cnt span { font-family: 'IBM Plex Sans', var(--sans, system-ui), Arial, sans-serif; font-size: calc(24 * var(--u)); font-weight: 600; }
.dkl-ex { margin: calc(8 * var(--u)) 0 0; font-size: calc(24 * var(--u)); line-height: 1.3; color: #4A5868; }
.dkl-dark { background: #1B2733; border-color: #1B2733; color: #FBFAF7; }
.dkl-dark .dkl-ex { color: #C9D4DF; }
.dkl-foot { position: absolute; left: calc(128 * var(--u)); right: calc(128 * var(--u)); bottom: calc(64 * var(--u)); margin: 0; display: flex; justify-content: space-between; font-size: calc(24 * var(--u)); color: #7B8794; }
@media print { .dk-notes[open], .dk-notes { display: block; } .dk-film { display: none; } }

/* The Welcome's two films and their slides (app/templates/_learn_films.html): watched here, never downloaded. The
   viewer's name lies over film and slide, quiet but in every capture; the slides cannot be dragged or selected; and
   nothing of them is printed. */
.lm-films { margin: 18px 0; max-width: 1100px; }
.lm-intro { margin: 0 0 6px; }
.lm-film { margin: 18px 0 22px; }
.lm-h { margin: 0 0 8px; font-size: 1.1rem; }
.lm-switch { display: flex; gap: 6px; margin: 0 0 8px; }
.lm-switch .btn.is-on { background: var(--accent, #1f6f6b); border-color: var(--accent, #1f6f6b); color: #fff; }
.lm-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.lm-frame video { display: block; width: 100%; height: 100%; background: #000; }
.lm-frame video::cue { color: rgba(255, 255, 255, .85); background-color: rgba(0, 0, 0, .38); font-size: .85em;
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .75); }
.lm-deck { background: #F1F3F6; border: 1px solid #D9DFE6; cursor: pointer; }
.lm-deck img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lm-deck img[hidden] { display: none; }
.lm-frame:fullscreen, .dk-film-frame:fullscreen { border-radius: 0; display: grid; place-items: center; background: #000; }
.lm-frame:fullscreen video, .dk-film-frame:fullscreen video { max-height: 100vh; }
.lm-protect, .lm-protect img, .lm-protect video, .dk-pics img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
  -webkit-touch-callout: none; }
.lm-mark { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-around;
  align-items: center; pointer-events: none; overflow: hidden; }
.lm-mark span { transform: rotate(-18deg); white-space: nowrap; font: 600 clamp(.7rem, 1.6vw, 1.05rem) / 1 var(--sans, system-ui), sans-serif;
  letter-spacing: .04em; color: rgba(255, 255, 255, .22); text-shadow: 0 0 2px rgba(0, 0, 0, .28); }
.lm-mark span:nth-child(2) { transform: translateX(18%) rotate(-18deg); }
.lm-mark span:nth-child(3) { transform: translateX(-18%) rotate(-18deg); }
.lm-deck .lm-mark span, .dk-frame .lm-mark span { color: rgba(27, 39, 51, .13); text-shadow: 0 0 2px rgba(255, 255, 255, .35); }
.lm-deck .lm-mark { pointer-events: auto; } /* the slide's picture is under the name, never what a click lands on */
.dk-frame .lm-mark { pointer-events: auto; }
.lm-under { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.lm-bar { margin-top: 6px; }
.lm-say { margin: 6px 0 0; color: var(--muted, #5b6770); }
.lm-next { margin: 8px 0 18px; }
@media print { .lm-films, .lm-film, .lm-frame, .dk-pics, .dk-film { display: none !important; } }

/* How the hub works: the one picture of the mechanism, full on its page, small on the front page and by a paragraph */
.s1-hub-pic { margin: 0 0 14px; padding: 10px; }
.s1-hub-drawing svg, .s1-how-pic svg, .s1-how-thumb svg { display: block; width: 100%; height: auto; }
.s1-hub-placeholder { aspect-ratio: 16 / 9; display: grid; align-content: center; justify-items: center; text-align: center;
  background: #F1F3F6; border: 1px dashed #D9DFE6; border-radius: 8px; padding: 16px; }
.s1-hub-lines { max-width: 70ch; line-height: 1.55; display: grid; gap: 6px; }
.s1-how summary { cursor: pointer; }
.s1-how-pic { display: block; max-width: 760px; margin-top: 10px; }
.s1-how-thumb { display: grid; gap: 4px; text-decoration: none; padding: 8px; }
.s1-how-thumb span { color: var(--accent, #1f6f6b); }
.s1-welcome .s1-welcome-steps { line-height: 1.6; }
#who > summary h2 { display: inline; font-size: 1rem; }

/* Budget and partners (app/budget.py) */
.bd-assumed { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: .78rem; background: #fff3d6; color: #8a5a00; border: 1px dashed #c58a00; }
.bd-scroll { overflow-x: auto; max-width: 100%; }
.bd-sum td, .bd-sum th { white-space: nowrap; text-align: right; }
.bd-sum td:first-child, .bd-sum th:first-child { text-align: left; white-space: normal; }
.bd-partner { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding: 6px 0; }
.bd-partner summary { cursor: pointer; }
.bd-phases { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 0; margin: 0 0 10px; }
.bd-phases li { display: block; }
.bd-econ { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); padding-top: 6px; }
/* Check this answer (app/etik_check.py; static/etik_check.js) */
.ek-check { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line, #d9dee5); border-radius: 8px; }
.ek-check-do { margin: 0 0 4px; }
.ek-check-what { margin: 0 0 6px; }
.ek-check-list { margin: 8px 0 0; padding-left: 1.4em; }
.ek-check-item { margin: 0 0 10px; }
.ek-check-top, .ek-check-finding, .ek-check-act { margin: 2px 0; }
.ek-check-sev { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 0.85em; background: #eef1f5; }
.ek-sev-high .ek-check-sev { background: #fde2e1; color: #8a1c17; }
.ek-sev-medium .ek-check-sev { background: #fff1d6; color: #7a4b00; }
.ek-check-quote, .ek-check-wording { margin: 4px 0; padding: 4px 10px; border-left: 3px solid #c5ccd6; }
.ek-check-wording { border-left-color: #2e8b57; }

/* ================================================================== Stage 1: the map, the role, the paragraph's page
   (the project leader, 30 Nov 2026). The bar's middle row is the proposal paragraph by paragraph: a ring for each,
   grouped under the template's four headings (_horizon_nav.html). It wraps by group when it does not fit. */
.s1-top { display: block; }
.s1-top .ek-nav { margin: 2px 0 12px; }
.s1-map-row { align-items: flex-end; flex-wrap: wrap; gap: 8px 14px; border-radius: 0; }
.s1-map-row .ek-whole { align-self: center; }
.ek-appbar .s1-map { flex: 1 1 300px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 0; }
.s1-grp { display: grid; gap: 4px; min-width: 0; padding: 0 10px; border-left: 1px solid var(--line); }
.s1-grp:first-child { padding-left: 0; border-left: 0; }
.s1-grp-h { font-size: .6875rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; color: var(--muted); text-decoration: none;
  white-space: nowrap; }
.s1-grp-h:hover { color: var(--ink); text-decoration: underline; }
.s1-grp.is-cur .s1-grp-h { color: var(--ink); }
.ek-appbar .s1-rings { display: flex; flex-wrap: wrap; gap: 2px; }
.s1-ring.ek-node { --ek-w: 2.5px; width: 22px; height: 22px; font-size: .6563rem; }
.s1-ring.is-ready { color: var(--accent-text, var(--ek-teal)); font-weight: 700; }
.s1-ring.is-agreed::after, .s1-rings .is-cur .ek-node::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--ek-teal); }
.s1-rings .is-cur .ek-node { color: var(--ek-cur-ink); font-weight: 700; }
.s1-rings .is-cur .ek-node::after { inset: 0; background: var(--ek-cur); }
.s1-rings .is-cur .ek-node::before { opacity: 0; }
.s1-ring .ek-flag { right: -2px; bottom: -2px; width: 8px; height: 8px; box-shadow: 0 0 0 1.5px var(--ek-row); }
.s1-ring .ek-flag.s1-faint { background: var(--ek-row); box-shadow: inset 0 0 0 1.5px #b9a27a, 0 0 0 1.5px var(--ek-row); width: 7px; height: 7px; }
.s1-rings a:hover .ek-sec-tip, .s1-rings a:focus-visible .ek-sec-tip { clip-path: none; opacity: 1; }
.s1-rings a:hover, .s1-rings a:focus-visible { z-index: 31; }
.s1-rings .ek-sec-tip.s1-tip-right { left: auto; right: -6px; transform: none; }
.s1-rings .ek-sec-tip.s1-tip-left { left: -6px; transform: none; }
.s1-rings .is-cur .ek-sec-tip { color: var(--ink); font-weight: 400; }
@container ekbar (max-width: 1010px) {  /* the whole application by its ring, so that the 26 keep one row */
  .s1-map-row .ek-whole-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .s1-map-row .ek-whole { padding-right: 10px; }
  .s1-map-row { gap: 8px 10px; }
}
@container ekbar (max-width: 700px) {  /* a phone: each heading on its own line with its rings, a finger's size */
  .s1-grp { padding: 0; border-left: 0; flex: 1 1 100%; }
  .s1-grp.is-one { flex: 0 1 auto; padding-right: 14px; }
  .s1-grp.is-one + .s1-grp { flex: 1 1 60%; }
  .s1-ring.ek-node { width: 26px; height: 26px; font-size: .6875rem; }
  .ek-appbar .s1-rings { gap: 4px 3px; }
  .s1-rings .ek-sec-tip { display: none; }
}
/* the role, always here: what is theirs, the round, and the switch */
.s1-role { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 7px 12px;
  border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; font-size: .875rem; }
.s1-role-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.s1-role-line b { color: var(--ink); }
.s1-role-go { font-weight: 600; }
.s1-role-at { color: var(--muted); }
.s1-role .s1-lens { margin: 0; font-size: .875rem; }
.s1-role .s1-lens label { color: var(--muted); }
.s1-role .s1-lens select { font: inherit; font-weight: 600; color: var(--ink); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line-strong, #b9c7cf);
  background: var(--surface, #fff); max-width: 100%; }
.s1-choose { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.s1-way-chip { font: inherit; font-size: .8125rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong, #b9c7cf);
  background: var(--surface, #fff); color: var(--ink); cursor: pointer; }
.s1-way-chip:hover, .s1-way-chip:focus-visible { border-color: var(--accent, #0e7174); color: var(--accent-text, var(--accent, #0e7174)); }
.s1-linkish { font: inherit; padding: 0; border: 0; background: none; color: var(--accent-text, var(--accent, #0e7174)); text-decoration: underline;
  cursor: pointer; }

/* the front page: the round, and the application as its four headings with their paragraphs by name */
.s1-round { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2, #eef2f4); }
.s1-round p, .s1-round-says { margin: 0; flex: 1 1 18rem; }
.s1-round-btn { font-size: 1.0625rem; padding: .6em 1.2em; }
.s1-need-lines li { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.s1-need-where { font-weight: 600; }
.s1-need-go { white-space: nowrap; }
@media (max-width: 720px) { .s1-need-lines li { grid-template-columns: minmax(0, 1fr); padding: 6px 0; } }
.s1-changed > summary { cursor: pointer; }
.s1-app-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 0 0 4px; }
.s1-app-key > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.s1-app-key .s1-key-dot { margin-left: 0; }
.s1-key-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9a27a; margin-left: 10px; }
.s1-app-key .s1-key-dot:first-child { margin-left: 0; }
.s1-key-dot.is-mine { background: #cf4a3e; box-shadow: none; }
.s1-sec { margin-top: 14px; }
.s1-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-bottom: 5px; border-bottom: 2px solid var(--line); }
.s1-sec-head h3 { margin: 0; font-size: 1.0625rem; }
.s1-paras { list-style: none; margin: 0; padding: 0; }
.s1-paras li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto 7.5em 3.2em; gap: 2px 10px; align-items: center; padding: 5px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 9%, transparent); }
.s1-para-n { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; text-align: right; }
.s1-para-name { font-weight: 600; text-decoration: none; }
.s1-para-name:hover { text-decoration: underline; }
.s1-para-marks { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; }
.s1-para-marks .s1-key-dot { margin-left: 0; }
.s1-mine-t { color: var(--bad, #a2261d); font-weight: 600; margin-right: 6px; }
.s1-para-marks .muted { margin-right: 6px; }
.s1-para-words { color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s1-para-code { justify-self: end; opacity: .75; }
@media (max-width: 720px) {
  .s1-paras li { grid-template-columns: 1.6em minmax(0, 1fr) auto; }
  .s1-para-words, .s1-para-code { display: none; }
}

/* one paragraph's page: where it stands and its name; the stages as one line; the text and, beside it, one panel
   with tabs; one bar at the foot that stays in view */
.s1-place { margin-bottom: 2px; }
.s1-para-h { margin-bottom: 2px; }
.s1-claim-line { margin: 0 0 10px; max-width: 62rem; font-size: .9375rem; }
.s1-stages { margin: 0 0 10px; font-size: .875rem; }
.s1-stages > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; list-style: none; }
.s1-stages > summary::-webkit-details-marker { display: none; }
.s1-stages-more { color: var(--accent-text, var(--accent, #0e7174)); text-decoration: underline; }
.s1-stages[open] .s1-stages-more { display: none; }
.s1-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.s1-left { min-width: 0; display: grid; gap: 12px; }
.s1-left > .panel { margin: 0; }
.s1-text-meta { margin: 0 0 4px; }
.s1-text-meta .cd-origin { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.s1-text-meta .cd-origin.is-open { color: var(--ek-wait, var(--wait, #8c5a10)); font-weight: 600; }
.s1-howto { margin: 0 0 6px; font-size: .875rem; color: var(--muted); }
.s1-under { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 4px 0 6px; }
.s1-under p { margin: 0; }
.s1-under .cd-blind { margin: 0; flex: 1 1 14rem; }
.s1-wordline { font-size: .875rem; }
.s1-live .lw-count { display: none; }  /* the words are counted once, under the text */
.s1-live .lw-foot .lw-ready { display: none; }  /* the mark is given from the bar at the foot */
.s1-plain { margin: 8px 0; padding: 10px 12px; border: 1px dashed var(--line-strong, #b9c7cf); border-radius: 10px; }
.s1-plain[hidden] { display: none; }
.s1-panel { min-width: 0; margin: 0; padding: 0; }
.s1-tabs { display: none; }
.s1-pane { padding: 14px 16px; border-left: 4px solid var(--s1-c); }
.s1-pane + .s1-pane { border-top: 1px solid var(--line); }
.s1-pane > h2 { margin: 0 0 4px; font-size: 1.0625rem; }
.s1-pane h3 { font-size: .9375rem; margin: 14px 0 4px; }
.s1-pane > .cn { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.s1-notes-wrap > .cn { border-left: 0; }
.s1-who, .s1-reviews, .s1-links { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.s1-who > summary, .s1-reviews > summary { cursor: pointer; }
.s1-tabs-on .s1-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); padding: 0 6px; }
.s1-tabs-on .s1-tabs::-webkit-scrollbar { display: none; }
.s1-tabs a { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 10px 7px 8px; font-size: .8125rem; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.s1-tabs a:hover { color: var(--ink); }
.s1-tabs a.is-on { color: var(--ink); border-bottom-color: var(--s1-c); }
.s1-tabs a.is-mine { color: var(--s1-c); }
.s1-tabs a:focus-visible { outline: 2px solid var(--accent, #0e7174); outline-offset: -3px; border-radius: 6px; }
.s1-tabs-on .s1-pane { display: none; border-left: 0; border-top: 0; }
.s1-tabs-on .s1-pane.is-on { display: block; }
.s1-tabs-on .s1-pane > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1180px) {
  .s1-work { grid-template-columns: minmax(0, 1fr) minmax(330px, 1fr); }
  .s1-tabs-on .s1-panel { position: sticky; top: 8px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; }
}
/* the bar at the foot */
.s1-bar-foot { position: sticky; bottom: 0; z-index: 40; margin: 16px -12px 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg, #f1f5f6) 94%, transparent); backdrop-filter: blur(6px); }
.s1-bar-round { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.s1-bar-row { display: flex; align-items: stretch; gap: 8px; }
.s1-bar-mid { flex: 1 1 auto; display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.s1-bar-mid .btn { font-size: .9375rem; padding: .5em .8em; white-space: nowrap; }
.s1-bar-mid .btn.s1-k-notes { border-color: var(--s1-c); color: var(--s1-c); }
.s1-bar-state { font-weight: 600; color: var(--accent-text, var(--accent, #0e7174)); }
.s1-go-form { display: flex; margin: 0; }
.s1-go { flex: 0 1 12.5rem; min-width: 7rem; max-width: 13rem; display: grid; gap: 0; align-content: center; padding: .25em .8em; text-align: left; text-decoration: none; }
.s1-go-next { text-align: right; border-color: var(--accent, #0e7174); }
.s1-go-w { font-weight: 700; font-size: .9375rem; }
.s1-go-next .s1-go-w { color: var(--accent-text, var(--accent, #0e7174)); }
.s1-go-t { font-size: .75rem; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.s1-done[hidden] { display: none; }
main:has(.s1-bar-foot) .s1-demo-box { bottom: 92px; }
@media (max-width: 1179px) {  /* one column: the bar keeps one row by dropping the names under Previous and Next */
  .s1-go { flex: 0 1 7.5rem; min-width: 5.5rem; }
  .s1-go-t { display: none; }
  .s1-bar-mid .btn { font-size: .875rem; padding: .5em .65em; }
}
@media (max-width: 720px) {
  .s1-bar-row { flex-wrap: wrap; gap: 6px; }
  .s1-bar-mid { order: 3; flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
  .s1-bar-mid .btn { flex: 1 1 auto; font-size: .8125rem; padding: .5em .5em; text-align: center; }
  .s1-go { flex: 1 1 0; max-width: none; min-width: 0; }
  .s1-go-prev .s1-go-t { display: none; }
  main:has(.s1-bar-foot) .s1-demo-box { bottom: 150px; }
}
@media print { .s1-bar-foot, .s1-tabs { display: none !important; } }

/* Read it through: the template's headings, and each paragraph's name in the margin */
.tx-named .tx-body { max-width: 60rem; }
.tx-named .tx-p { grid-template-columns: 11.5rem minmax(0, 1fr); gap: 4px 18px; }
.tx-name { display: grid; gap: 1px; align-content: start; padding-top: 3px; font-size: .8125rem; line-height: 1.3; text-decoration: none; color: var(--muted); }
.tx-name b { color: var(--ink); font-weight: 600; }
.tx-name:hover b { text-decoration: underline; }
.tx-name .s1-key-dot { margin-left: 0; }
.tx-name .tx-need { display: inline-flex; align-items: center; gap: 5px; color: var(--bad, #a2261d); font-weight: 600; }
.tx-name .tx-need.is-other { color: var(--muted); font-weight: 400; }
.tx-named .tx-how, .tx-named .tx-meta, .tx-named .tx-p > .hz-part { grid-column: 2; }
@media (max-width: 820px) {
  .tx-named .tx-p { grid-template-columns: minmax(0, 1fr); }
  .tx-name { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 6px 0 0; border-top: 1px solid var(--line); }
  .tx-named .tx-how, .tx-named .tx-meta, .tx-named .tx-p > .hz-part { grid-column: 1; }
}
.ts-shell .ts-main:has(> .s1-work) { max-width: 1240px; gap: 12px; }
.s1-left > #ts-open:empty, .s1-left > #ts-open:has(> [data-open="peers"][hidden]) { display: none; }

/* ================================================================== Cross-page layout, launcher & rhythm polish */
.ts-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body .ts-shell .ts-main { padding-bottom: 88px; }
.ts-shell .ts-main:has(> .s1-top) { max-width: 1240px; }
@container ekbar (max-width: 1120px) {
  .s1-nav .ek-pages a { padding-inline: 8px; gap: 5px; font-size: .8125rem; }
}
.ts-shell .side { padding: 12px; gap: 8px; }
.ts-shell .side .ts-nav { padding: 4px 10px; font-size: .875rem; line-height: 1.28; }
.ts-shell .side .ts-navacct { margin-top: 12px; padding-top: 10px; }
.ts-brand span { display: block; line-height: 1.3; margin-top: 3px; }
.input.sm, .kn-row select.input, .kn-row input[type="date"].input { flex: 0 1 auto; width: auto; }
.kn-hit-text .kn-md-h, .kn-hit-text .kn-md-p, .kn-hit-text .kn-md-row { margin: 0 0 .45em; }
.kn-hit-text > :last-child { margin-bottom: 0; }
body.as-is-open #ts-ask-page,
body.as-has-page #ts-ask-page,
body.as-is-floating #ts-ask-page,
body.as-is-reviewing #ts-ask-page,
html.as-reviewing #ts-ask-page,
body:has(.s1-bar-foot) #ts-ask-page,
body.as-is-open .intercom-lightweight-app,
body.as-is-open .intercom-namespace,
body.as-has-page .intercom-lightweight-app,
body.as-has-page .intercom-namespace,
body.as-is-floating .intercom-lightweight-app,
body.as-is-floating .intercom-namespace,
body.as-is-reviewing .intercom-lightweight-app,
body.as-is-reviewing .intercom-namespace,
html.as-reviewing .intercom-lightweight-app,
html.as-reviewing .intercom-namespace { display: none !important; }
body:has(.s1-bar-foot) .intercom-lightweight-app-launcher,
body:has(.s1-bar-foot) .intercom-launcher { bottom: 78px !important; }

/* Stage 1 overview: who carries what, at a glance (a row per expertise, a column per paragraph) */
.s1-carry-wrap { overflow-x: auto; margin: .5rem 0; }
.s1-carry { border-collapse: separate; border-spacing: 2px; font-size: .75rem; }
.s1-carry th, .s1-carry td { padding: 0; text-align: center; font-weight: 500; }
.s1-carry thead th a { display: block; min-width: 1.75rem; padding: .15rem 0; color: var(--muted, #667); text-decoration: none; }
.s1-carry .is-first { border-left: 6px solid transparent; }
.s1-carry .s1-carry-who { text-align: left; padding-right: .75rem; white-space: nowrap; font-weight: 500; }
.s1-carry tr.is-mine .s1-carry-who { font-weight: 700; color: var(--accent-text, var(--accent)); }
.s1-carry tr.is-mine td { background: color-mix(in srgb, var(--accent, #1f7a6b) 7%, transparent); }
.s1-carry td { width: 1.75rem; height: 1.75rem; }
.s1-carry td.l0 { background: color-mix(in srgb, currentColor 4%, transparent); border-radius: 4px; }
.s1-carry td a { display: block; text-decoration: none; }
.s1-cq { display: inline-block; width: 1.75rem; height: 1.75rem; line-height: 1.75rem; border-radius: 4px; font-size: .6875rem; font-weight: 600; vertical-align: middle; }
.s1-cq.l1 { background: var(--accent, #1f7a6b); color: var(--accent-ink, #fff); }
.s1-cq.l2 { background: color-mix(in srgb, var(--accent, #1f7a6b) 50%, transparent); color: inherit; }
.s1-cq.l3 { background: color-mix(in srgb, var(--accent, #1f7a6b) 18%, transparent); color: inherit; }
.s1-carry-key .s1-cq { width: .8rem; height: .8rem; line-height: .8rem; margin: 0 .2rem 0 .5rem; }
.s1-carry-all > summary { cursor: pointer; }
/* the map in the Stage 1 bar, coloured by how much the person's expertise carries each paragraph */
.s1-map.has-carry .s1-ring.c0 { opacity: .42; }
.s1-ring.c1 { background: var(--accent, #1f7a6b); color: var(--accent-ink, #fff); font-weight: 700; }
.s1-ring.c2 { background: color-mix(in srgb, var(--accent, #1f7a6b) 45%, transparent); color: var(--ink); font-weight: 600; }
.s1-ring.c3 { background: color-mix(in srgb, var(--accent, #1f7a6b) 16%, transparent); }
.s1-ring.c1.is-done, .ek-appbar .s1-ring.c1:hover { color: var(--accent-ink, #fff); }
.s1-carry-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .3rem; margin-left: .75rem; font-size: .8125rem; }
.s1-carry-line .s1-cq, .s1-part-w .s1-cq { width: .8rem; height: .8rem; line-height: .8rem; margin-left: .35rem; }
.s1-tip-carry { font-weight: 600; }
.s1-part-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .4rem 0; }
.s1-part-w { min-width: 11rem; font-weight: 600; font-size: .875rem; }
.s1-part-w .s1-cq { margin: 0 .4rem 0 0; }
.s1-part-chip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8125rem; text-decoration: none; color: var(--ink); }
.s1-part-chip.l1 { background: var(--accent, #1f7a6b); color: var(--accent-ink, #fff); }
.s1-part-chip.l2 { background: color-mix(in srgb, var(--accent, #1f7a6b) 40%, transparent); }
.s1-part-chip.l3 { background: color-mix(in srgb, var(--accent, #1f7a6b) 14%, transparent); }
.s1-part-chip.is-you { outline: 2px solid var(--ink); outline-offset: 1px; font-weight: 700; }
.s1-carriers .s1-part-chip { margin-right: .3rem; }
.s1-next-here { margin: .75rem 0; }
.s1-how-fold { margin: .5rem 0 1rem; }
.s1-how-fold > summary { cursor: pointer; color: var(--muted); }
.s1-welcome-way { margin: .75rem 0 1rem; padding: .75rem 1rem; border-radius: var(--radius-sm, 8px); background: color-mix(in srgb, var(--accent, #1f7a6b) 8%, transparent); }
.s1-mini { display: flex; flex-wrap: wrap; gap: 2px; margin: .35rem 0 .2rem; }
.s1-mini i { width: 14px; height: 14px; border-radius: 3px; background: color-mix(in srgb, currentColor 7%, transparent); }
.s1-mini i.is-first { margin-left: 6px; }
.s1-mini i.is-first:first-child { margin-left: 0; }
.s1-mini i.l1 { background: var(--accent, #1f7a6b); }
.s1-mini i.l2 { background: color-mix(in srgb, var(--accent, #1f7a6b) 50%, transparent); }
.s1-mini i.l3 { background: color-mix(in srgb, var(--accent, #1f7a6b) 20%, transparent); }

/* The map of the proposal (_stage1_partmap.html): paragraphs as tiles, a band of who works on each, a kind lit up */
.pm-roles { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1rem; }
.pm-role { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; border: 1.5px solid var(--line, #dfe5ea);
  background: var(--panel, #fff); color: var(--ink); font: 600 .8125rem/1.3 inherit; font-family: inherit; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pm-role i { width: .75rem; height: .75rem; border-radius: 50%; background: var(--c); }
.pm-role em { font-style: normal; font-weight: 700; color: var(--c); }
.pm-role:hover { border-color: var(--c); }
.pm-role:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.pm-role.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.pm-role.is-on i { background: #fff; }
.pm-role.is-on em { color: #fff; }
.pm-sec { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; margin-bottom: .5rem; }
.pm-sec h3 { margin: 0; padding-top: .4rem; font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.pm-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-t { position: relative; flex: var(--w) 1 8.6rem; max-width: calc(50% - 3px); height: 4.5rem; padding: .5rem .7rem 0; border-radius: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--lc) 12%, var(--panel, #fff)); color: var(--ink); text-decoration: none;
  transition: background .35s, color .35s, transform .15s, box-shadow .15s; }
.pm-t:hover, .pm-t:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(22, 38, 58, .16); }
.pm-code { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; opacity: .6; }
.pm-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; padding-right: 2.7rem;
  font-size: .84rem; font-weight: 600; line-height: 1.2; }
.pm-p { position: absolute; right: .55rem; top: .45rem; font-size: 1.05rem; font-weight: 700; opacity: 0; transition: opacity .3s; }
.pm-mix { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 7px; }
.pm-mix i { display: block; height: 100%; background: var(--c); transition: opacity .35s; }
.pm.is-spot .pm-t { background: color-mix(in srgb, currentColor 4%, var(--panel, #fff)); color: var(--muted); }
.pm.is-spot .pm-t .pm-mix i { opacity: .18; }
.pm.is-spot .pm-t.is-mine { background: color-mix(in srgb, var(--rc) calc(var(--a) * 1%), var(--panel, #fff)); color: var(--ink); }
.pm.is-spot .pm-t.is-mine.is-strong { color: #fff; }
.pm.is-spot .pm-t.is-mine .pm-p { opacity: 1; }
.pm.is-spot .pm-t.is-mine .pm-mix i.is-me { opacity: 1; }
.pm-note { margin: .6rem 0 0; }
.pm-keep { margin-top: .75rem; }
@media (max-width: 700px) { .pm-sec { grid-template-columns: 1fr; gap: .2rem; } .pm-t { max-width: 100%; flex-basis: 100%; height: 3.6rem; } }
/* the same colour of the person's expertise on the rings in the bar and on the labels of their part */
.s1-ring.c1 { background: var(--rc, var(--accent, #1f7a6b)); }
.s1-ring.c2 { background: color-mix(in srgb, var(--rc, var(--accent, #1f7a6b)) 45%, transparent); }
.s1-ring.c3 { background: color-mix(in srgb, var(--rc, var(--accent, #1f7a6b)) 16%, transparent); }
.s1-role .s1-cq.l1, .ek-step .s1-cq.l1, .s1-part-chip.l1 { background: var(--rc, var(--accent, #1f7a6b)); }
.s1-role .s1-cq.l2, .ek-step .s1-cq.l2, .s1-part-chip.l2 { background: color-mix(in srgb, var(--rc, var(--accent, #1f7a6b)) 42%, transparent); }
.s1-role .s1-cq.l3, .ek-step .s1-cq.l3, .s1-part-chip.l3 { background: color-mix(in srgb, var(--rc, var(--accent, #1f7a6b)) 15%, transparent); }
/* Living working rooms & collaborative working documents */
.pm-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.pm-new-details { position: relative; }
.pm-new-details > summary { list-style: none; cursor: pointer; }
.pm-new-details > summary::-webkit-details-marker { display: none; }
.pm-form { margin-top: .75rem; display: grid; gap: .65rem; max-width: 52rem; }
.pm-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .65rem; }
.pm-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.pm-chips .btn.is-on { background: var(--ink, #172026); color: #fff; border-color: var(--ink, #172026); }
.pm-list { display: grid; gap: .65rem; }
.pm-card { border: 1px solid var(--line, #dde2e5); border-radius: 8px; padding: .75rem .9rem; background: var(--paper, #fff); }
.pm-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.pm-card-title { margin: .15rem 0 .25rem; font-size: 1.03rem; }
.pm-excerpt { margin: 0 0 .35rem; }
.pm-open-badge { font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: #fff4db; color: #7a4d00; border: 1px solid #eed294; }
.pm-room-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 880px) { .pm-room-grid { grid-template-columns: 1fr; } }
.pm-prose { white-space: pre-wrap; line-height: 1.58; font-size: .96rem; }
.pm-box { border-left: 3px solid var(--teal, #1e6b68); padding: .55rem .85rem; background: #f6faf9; border-radius: 0 6px 6px 0; margin-bottom: .75rem; }
.pm-box.is-open { border-left-color: #b7791f; background: #fffcf4; }
.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pm-link-list, .pm-part-list, .pm-ver-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .35rem; }
.pm-link-item, .pm-part-item, .pm-ver-item { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--line, #e3e7ea); border-radius: 6px; font-size: .88rem; }
.pm-share-box { padding: .6rem .75rem; border: 1px dashed var(--teal, #1e6b68); border-radius: 6px; background: #f4fbfa; margin-top: .5rem; word-break: break-all; }
.pm-shared-shell { max-width: 50rem; margin: 2rem auto; padding: 0 1rem 3rem; }
.pm-purpose { margin: .35rem 0 0; font-size: .95rem; color: var(--ink, #172026); }
.pm-import-bar { padding: .6rem .75rem; border: 1px dashed var(--line, #cbd3d8); border-radius: 6px; background: #f9fbfb; }
.pm-proof-list { list-style: none; padding: 0; margin: .65rem 0 0; display: grid; gap: .3rem; }
.pm-proof-item { padding: .35rem .6rem; border-radius: 6px; font-size: .86rem; border: 1px solid var(--line, #e3e7ea); }
.pm-proof-item.is-ok { background: #f3faf7; border-color: #bfe0d3; color: #164e3c; }
.pm-proof-item.is-wait { background: #fffbf0; border-color: #eed294; color: #7a4d00; }

/* Traced Stage 1 suggestion chains (#301) */
.cn-chain { margin: .55rem 0 .7rem; padding: .65rem .8rem; border: 1px solid var(--line, #d8dfe3); border-left: 3px solid var(--accent, #0f6b6d); border-radius: 6px; background: var(--panel-soft, rgba(15, 107, 109, .035)); }
.cn-chain-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.cn-chain-badge { font-size: .78rem; font-weight: 600; color: var(--accent, #0f6b6d); background: rgba(15, 107, 109, .1); padding: .12rem .48rem; border-radius: 999px; }
.cn-chain-pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .08rem .42rem; border-radius: 999px; background: rgba(15, 107, 109, .1); color: var(--accent, #0f6b6d); margin-left: .25rem; }
.cn-chain-why { margin: .25rem 0 .45rem; }
.cn-chain-step, .as-chain-step { margin: .45rem 0; padding: .42rem .55rem; border: 1px solid var(--line, #d8dfe3); border-radius: 5px; background: var(--surface, #fff); }
.cn-chain-step.is-stale { border-color: #d89b28; background: #fffbf0; }
.cn-chain-lines, .as-chain-lines { list-style: none; margin: .3rem 0; padding: 0; font-size: .84rem; }
.cn-chain-lines li, .as-chain-lines li { padding: .12rem .35rem; border-radius: 3px; margin: .12rem 0; overflow-wrap: anywhere; }
.cn-ln-add, .as-ln-add { background: rgba(21, 128, 61, .09); color: #14532d; }
.cn-ln-del, .as-ln-del { background: rgba(185, 28, 28, .08); color: #7f1d1d; text-decoration: line-through; }
.cn-chain-full, .as-chain-full { margin-top: .25rem; }
.cn-chain-md, .as-chain-md { margin-top: .3rem; padding: .45rem .55rem; border-radius: 4px; background: rgba(0, 0, 0, .03); white-space: pre-wrap; font-size: .82rem; max-height: 16rem; overflow: auto; }
.cn-chain-ev, .as-chain-ev { margin-top: .45rem; padding-top: .35rem; border-top: 1px dashed var(--line, #d8dfe3); font-size: .83rem; }
.cn-chain-ev ul { margin: .25rem 0 0 1.1rem; padding: 0; }
.as-chain-ev-item { margin-top: .22rem; font-size: .82rem; }
.cn-chain-wait, .cn-chain-warn, .as-chain-wait { margin-top: .45rem; padding: .42rem .55rem; border-radius: 5px; background: #fffbf0; border: 1px solid #eed294; color: #7a4d00; font-size: .83rem; }
.cn-chain-checks { display: flex; flex-wrap: wrap; gap: .75rem; margin: .35rem 0 .45rem; }
.as-chain-rephrase { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem .75rem; border-top: 1px solid var(--line, #d8dfe3); }
.as-chain-rephrase .input { flex: 1 1 12rem; min-width: 0; }
.cd-sug-papers { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--line, #d8dfe3); }

/* Stage 1 bar: keep "I am looking as" in one fixed place and row height (#303) */
.s1-role { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 16px; min-height: 54px; box-sizing: border-box; }
.s1-role .s1-lens { margin: 0; white-space: nowrap; }
.s1-role .s1-lens label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.s1-role .s1-lens select { width: 16rem; max-width: 100%; box-sizing: border-box; }
.s1-role .s1-role-line { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; line-height: 1.35; }
.s1-role .s1-role-summary, .s1-role .s1-carry-line { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .s1-role { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; min-height: 108px; }
  .s1-role .s1-lens, .s1-role .s1-lens label { display: flex; width: 100%; min-width: 0; }
  .s1-role .s1-lens select { flex: 1 1 auto; width: auto; min-width: 0; }
  .s1-role .s1-role-line { font-size: .8125rem; line-height: 1.35; }
  .s1-role .s1-role-summary, .s1-role .s1-carry-line { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* Living working rooms & collaborative working documents (#294, #290) */
.pm-prose.pm-md-rendered { white-space: normal; }
.pm-md-p { margin: .45rem 0; }
.pm-md-h { margin: .85rem 0 .35rem; color: var(--ink, #172026); }
.pm-md-h1 { font-size: 1.12rem; }
.pm-md-h2 { font-size: 1.02rem; }
.pm-md-h3 { font-size: .95rem; color: var(--teal, #1e6b68); }
.pm-md-list { margin: .35rem 0 .55rem 1.2rem; padding: 0; }
.pm-md-list li { margin: .18rem 0; }
.pm-table-wrap { margin: .55rem 0; overflow-x: auto; max-width: 100%; }
.pm-md-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pm-md-table th, .pm-md-table td { padding: .38rem .55rem; border: 1px solid var(--line, #d8dfe3); text-align: left; vertical-align: top; }
.pm-md-table th { background: var(--surface-2, #eef2f4); font-weight: 600; }
.pm-outline { padding: .42rem .65rem; margin-bottom: .65rem; border-radius: 6px; background: var(--surface-2, #f3f6f8); border: 1px solid var(--line, #e3e7ea); }
.pm-wiki-link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pm-wiki-ref { padding: .05rem .32rem; border-radius: 4px; background: rgba(15, 107, 109, .08); font-size: .88em; }
.pm-reply-list { list-style: none; margin: .45rem 0 0 .75rem; padding: .35rem 0 0 .65rem; border-left: 2px solid var(--line, #d8dfe3); display: grid; gap: .25rem; font-size: .88rem; }
.pm-contrib-card.is-resolved, .pm-contrib-card.is-dismissed { opacity: .74; }
.pm-diff-wrap { display: grid; gap: .6rem; margin-top: .5rem; }
.pm-diff-box { padding: .5rem .65rem; border-radius: 6px; border: 1px solid var(--line, #d8dfe3); background: var(--surface, #fff); white-space: pre-wrap; line-height: 1.5; }
.pm-graph-svg { width: 100%; height: auto; max-height: 195px; margin-bottom: .4rem; }
.pm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.pm-form, .pm-form > *, .pm-grid-2 > *, .pm-shared-shell .panel { min-width: 0; max-width: 100%; box-sizing: border-box; }
.kn-more > summary.btn { white-space: normal; text-align: left; height: auto; max-width: 100%; }
.pm-shared-shell input[type="file"] { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* Margin comments, inline suggestions, orphan separation, and resolved archive (#239, #240, #241) */
.cn-resolved { margin-top: 12px; border: 1px solid #dfe5e9; border-radius: 8px; padding: 8px 12px; background: #fafbfc; }
.cn-resolved > summary { cursor: pointer; font-weight: 600; }
.cn-resolved[open] > summary { margin-bottom: 8px; }
.lw-noted { background-image: linear-gradient(var(--nc, #f2c94c), var(--nc, #f2c94c)); background-color: color-mix(in srgb, var(--nc, #f2c94c) 18%, #fffbe6); }
@container (min-width: 780px) { .lw-notes { flex: 0 0 280px; max-width: 280px; } }
.lw-notelist li, .lw-orphanlist li, .lw-resolved-list li, .lw-new { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.lw-orphanlist, .lw-resolved-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.lw-orphanlist li, .lw-resolved-list li { border: 1px solid #dfe5e9; border-left: 3px solid var(--c, #f2c94c); border-radius: 6px; padding: 8px 10px; background: #fff; }
.lw-resolved-list li { background: #fafbfc; opacity: .92; }
.lw-orphanlist p, .lw-resolved-list p { margin: 0 0 4px; }
.lw-orphans { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cfd8de; }
.lw-orphan-h { margin: 0 0 4px; font-weight: 600; }
.lw-resolved { margin-top: 10px; padding: 6px 8px; border: 1px solid #dfe5e9; border-radius: 6px; background: #fafbfc; }
.lw-resolved > summary { cursor: pointer; font-weight: 600; }
.lw-tag { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #eef3f6; color: #243b4a; font-size: .75rem; font-weight: 600; }
.lw-diff { margin: 4px 0 !important; padding: 5px 7px; border-radius: 5px; background: #f7fafb; border: 1px solid #e3e8ec; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; }
.lw-positions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 !important; }
.lw-pos-agree { color: #1f5f3a; }
.lw-pos-disagree { color: #a3262a; }
.lw-pos-bar, .lw-decide-bar, .lw-compose-tabs, .lw-reason-box { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 !important; }
.lw-reason-box[hidden], .lw-prop-wrap[hidden], .lw-orphans[hidden], .lw-resolved[hidden] { display: none; }
.lw-reason-box .input { flex: 1 1 110px; min-width: 0; padding: 3px 6px; font-size: .84rem; }
.lw-prop-wrap { margin-bottom: 6px; }
.lw-compose-err { color: #a3262a; }
.lw-link-btn { border: 0; background: none; padding: 0 3px; cursor: pointer; font: inherit; line-height: 1; }
.lw-link-btn:hover { color: #a3262a; }
.lw-notes .btn { white-space: normal; max-width: 100%; }
