/* Ensemble design system, version 1. Built on 25 November 2026 from the approved direction
   (C, round 2; approved by Raed the same day). Tokens and components for every screen.
   Rules: see ../../DESIGN.md. One token source: nothing outside this file sets a colour or a size. */

/* ---------- structure ---------- */
/* Structure shared by the three direction stills. Every colour, size and radius comes from the
   direction's own tokens; nothing here decides a look. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus, var(--text)); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.neg { color: var(--negative); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Avatars: a person is a circle, an agent is a square. Pale tint of each one's own hue. */
.av { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 12px; font-weight: 500;
  background: hsl(var(--h) 45% var(--av-l, 92%)); color: hsl(var(--h) 45% var(--av-ink, 24%)); }
.av-person { border-radius: 50%; }
.av-agent { border-radius: 7px; box-shadow: inset 0 0 0 1px hsl(var(--h) 35% var(--av-edge, 78%)); }

/* Pills */
.pill { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-chip, 999px);
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill-now { background: var(--pill-now-bg, var(--pill-neutral-bg)); color: var(--pill-now-ink, var(--pill-neutral-ink)); }
.pill-quiet { background: transparent; color: var(--muted); padding: 0; }
.pill-positive { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill-warning { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--radius-control); font-size: 14px; font-weight: 500; white-space: nowrap; background: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { border-color: var(--control); background: var(--surface); }

/* Navigation */
.nav { display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: var(--nav-row, 34px); padding: 0 10px; border-radius: var(--radius-control); color: var(--nav-ink, var(--muted)); }
.nav-item.is-active { background: var(--active); color: var(--text); }
.nav-item .ic { flex: none; }
.nav-item .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--count-bg, var(--text)); color: var(--count-ink, var(--surface)); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Rows */
.rows li { display: flex; align-items: center; gap: 12px; min-height: var(--row-height); padding: 10px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 0; }
.r-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.r-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-sub { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-meta { flex: none; display: grid; justify-items: end; gap: 2px; text-align: right; color: var(--muted); font-size: 13px; }
.r-fig { color: var(--text); font-size: 14px; }
.r-actions { flex: none; display: flex; gap: 8px; }
.r-actions .btn { height: 32px; padding: 0 12px; }

/* Budget: one row per quote line. The track's length is the line's planned cost, on one scale. */
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 104px 104px 148px; align-items: center; column-gap: 16px; row-gap: 8px;
  padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.bhead { padding: 8px 0; border-top: 0; font-size: 12px; color: var(--muted); }
.bfoot { font-weight: 500; border-top-color: var(--border); }
.brow .num { text-align: right; }
.b-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bhead .b-name, .bfoot .b-name { font-weight: inherit; }
.b-sold, .b-plan { color: var(--muted); }
.bfoot .b-sold, .bfoot .b-plan { color: var(--text); }
.b-left { color: var(--muted); }
.b-left.neg { color: var(--negative); font-weight: 500; }
.b-track { grid-column: 1 / -1; display: flex; align-items: center; height: 8px; }
.bhead .b-track { display: none; }
.bfoot .b-track { height: auto; padding-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
/* Sold against cost: three bars on one scale. */
.split { display: grid; gap: 10px; }
.split div { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; font-size: 13px; }
.split span:first-child { color: var(--muted); }
.split i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 2px; background: var(--track); }
.split .is-margin i { background: var(--data); } .split .is-cost i { background: var(--cost, var(--muted)); } .split .is-sold i { background: var(--text); }
.track { display: block; height: 8px; border-radius: 2px 0 0 2px; background: var(--track); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--data); }
.over { display: block; height: 8px; background: var(--negative); border-radius: 0 2px 2px 0; }
.brow:not(.is-over) .track { border-radius: 2px; }
.legend { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-left: 8px; }
.sw:first-child { margin-left: 0; }
.sw-spent { background: var(--data); } .sw-plan { background: var(--track); } .sw-over { background: var(--negative); }

/* The thread: structure only. */
.thread { display: grid; grid-template-columns: repeat(5, 1fr); }
.thread li { display: grid; gap: 2px; min-width: 0; }
.t-bar { display: block; height: 3px; background: var(--track); margin-bottom: 10px; }
.t-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--data); }
.t-label { font-size: 12px; line-height: 18px; color: var(--muted); }
.t-value { font-size: var(--fs-thread, 20px); line-height: 28px; font-weight: var(--fw-thread, 500); white-space: nowrap; }
.t-note { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .brow { grid-template-columns: 1fr auto; row-gap: 4px; padding: 12px 0; }
  .bhead, .b-sold, .b-plan { display: none; }
  .b-name { grid-column: 1; }
  .b-spent { grid-column: 2; grid-row: 1; }
  .b-left { grid-column: 1 / -1; grid-row: 2; text-align: left !important; font-size: 12px; }
  .b-track { grid-column: 1 / -1; grid-row: 3; }
  .r-actions .btn { height: 44px; }
  .nav-item { height: 44px; }
}

/* Invoices: the planned ones are quieter; the total closes the list. */
.is-planned .r-title { font-weight: 400; }

/* Stages */
.stages li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; column-gap: 8px; height: 30px; }

 
 .stages .is-next { color: var(--muted); } 

/* ---------- the approved look ---------- */

/* Direction C, "Morning brief", round 2 after the Creative Director's pass of 25 November 2026.
   The screen answers in a sentence, then shows what waits for the reader, then the evidence.
   One ground and hairline rules: no panels, no cards. The thread is a drawn line with stops.
   Seen by the job's Lead: people show hours, never a cost per person.
   Grid at 1440: side 248, then a centred column of 1100 = 12 x 77 + 11 x 16. */
:root {
  --font: "Geist", system-ui, sans-serif;
  --serif: var(--font);
  --ground: #fbfbf9; --surface: #fbfbf9; --raised: #f1f2ee; --active: #eceee9;
  --border: #1c1e1a; --rule: #e3e5df; --control: #898d84;
  --text: #1c1e1a; --muted: #5d615a;
  --primary: #1c1e1a; --primary-ink: #ffffff;
  --data: #23694a; --track: #dfe2db; --negative: #b42318; --positive: #23694a; --cost: #8b9087;
  --pill-neutral-bg: #eceee9; --pill-neutral-ink: #373a34;
  --pill-now-bg: #dcefe4; --pill-now-ink: #12402b;
  --pill-positive-bg: #dcefe4; --pill-positive-ink: #12402b;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;
  --radius-control: 999px; --radius-chip: 999px;
  --row-height: 60px; --control-height: 40px; --gap: 16px;
  --fs-body: 14px; --fs-thread: 26px; --fw-thread: 400;
  --av-l: 90%; --av-ink: 24%; --av-edge: 70%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e0f0d; --surface: #0e0f0d; --raised: #1a1c19; --active: #1f211e;
    --border: #f3f5f0; --rule: #272a26; --control: #6f756a;
    --text: #f3f5f0; --muted: #a9aea5;
    --primary: #f3f5f0; --primary-ink: #0e0f0d;
    --data: #5fbf8f; --track: #2a2d29; --negative: #f0766a; --positive: #5fbf8f; --cost: #7d8279;
    --pill-neutral-bg: #1f211e; --pill-neutral-ink: #cdd2c8;
    --pill-now-bg: #16301f; --pill-now-ink: #8fd9b1;
    --pill-positive-bg: #16301f; --pill-positive-ink: #8fd9b1;
    --pill-warning-bg: #2c230f; --pill-warning-ink: #f0c36a;
    --av-l: 20%; --av-ink: 86%; --av-edge: 36%;
  }
}
:root[data-theme="dark"] {
  --ground: #0e0f0d; --surface: #0e0f0d; --raised: #1a1c19; --active: #1f211e;
  --border: #f3f5f0; --rule: #272a26; --control: #6f756a;
  --text: #f3f5f0; --muted: #a9aea5;
  --primary: #f3f5f0; --primary-ink: #0e0f0d;
  --data: #5fbf8f; --track: #2a2d29; --negative: #f0766a; --positive: #5fbf8f; --cost: #7d8279;
  --pill-neutral-bg: #1f211e; --pill-neutral-ink: #cdd2c8;
  --pill-now-bg: #16301f; --pill-now-ink: #8fd9b1;
  --pill-positive-bg: #16301f; --pill-positive-ink: #8fd9b1;
  --pill-warning-bg: #2c230f; --pill-warning-ink: #f0c36a;
  --av-l: 20%; --av-ink: 86%; --av-edge: 36%;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
.r-sub, .t-note, .crumbs, .sub-note, .answer-sub { word-spacing: 0.14em; }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-family: var(--serif); font-size: 26px; line-height: 28px; }
.brand .mark { color: var(--data); }
.scope { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border: 1px solid var(--control); border-radius: 999px; background: none; font-weight: 500; }
.nav-item { padding: 0 14px; height: 36px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.me .r-sub { display: block; }

.canvas { padding: 48px 40px 72px; min-width: 0; }
.col { max-width: 1100px; margin: 0 auto; }
.crumbs { color: var(--muted); }
h1 { margin-top: 12px; max-width: 1000px; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 56px; letter-spacing: -0.012em; }
h1 .hy { margin: 0 -0.11em 0 -0.09em; }
.sub { margin-top: 14px; max-width: 700px; font-size: 16px; line-height: 24px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .s8 { grid-column: span 8; } .s4 { grid-column: span 4; } 
/* A section is a heading on an ink rule. Nothing is boxed. */
.sec { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--border); min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sec h2 { font-size: 14px; line-height: 20px; font-weight: 600; }
.sec-head a, .sec-head span { font-size: 13px; color: var(--muted); }
.gap-l { column-gap: 48px; }

/* What waits for the reader comes first, with full-size actions. */
.checks .av { width: 40px; height: 40px; font-size: 14px; }
.checks li { min-height: 76px; }
.checks .r-title { font-size: 16px; line-height: 22px; }
.checks .r-sub { font-size: 13px; }
.checks .btn { height: 40px; padding: 0 20px; border-color: var(--text); background: none; }
.checks li:first-child .btn { background: var(--primary); color: var(--primary-ink); }

/* The answer: the margin, set as the largest figure on the screen. */
.answer { font-family: var(--serif); font-size: 64px; line-height: 64px; letter-spacing: -0.02em; margin-top: 4px; }
.answer-sub { margin: 6px 0 18px; color: var(--muted); }
.answer-sub b { color: var(--text); font-weight: 500; }

/* The thread: one drawn line, five stops. */
.thread { margin-top: 52px; }
.thread li { padding-right: 20px; }
.thread li:last-child { padding-right: 0; }
.thread .t-bar { height: 2px; margin: 5px 0 16px; position: relative; overflow: visible; }
.thread .t-bar::before { content: ""; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--data); box-shadow: 0 0 0 4px var(--ground); }
.thread .is-part .t-bar::before { background: var(--ground); box-shadow: inset 0 0 0 2px var(--data), 0 0 0 4px var(--ground); }
.thread .t-value { line-height: 34px; letter-spacing: -0.01em; }
.thread .t-label { font-size: 13px; }

.brow { padding: 14px 0 16px; }

.sub-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

.topbar { display: none; }
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
  .topbar .brand { padding: 0; font-size: 24px; }
  .canvas { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .s8, .s4 { grid-column: auto; }
}
@media (max-width: 760px) {
  .canvas { padding: 20px 16px 48px; }
  h1 { font-size: 34px; line-height: 38px; }
  .sub { font-size: 15px; }
  .sec { margin-top: 32px; }
  .answer { font-size: 48px; line-height: 50px; }
  .checks li { flex-wrap: wrap; }
  .checks .r-main { flex-basis: calc(100% - 56px); }
  .checks .r-title, .checks .r-sub { white-space: normal; }
  .checks .r-actions { flex-basis: 100%; }
  .checks .btn { height: 44px; width: 100%; }
  .thread { grid-template-columns: 1fr; margin-top: 36px; }
  .thread li { display: grid; grid-template-columns: 20px 1fr auto; column-gap: 8px; align-items: baseline; padding: 0 0 16px; }
  .thread .t-bar { grid-row: 1 / 3; width: 2px; height: 100%; margin: 6px 0 0 5px; background: var(--track); }
  .thread .t-bar i { display: none; }
  .thread .t-bar::before { left: -5px; top: 0; }
  .thread .t-label { grid-column: 2; } .thread .t-value { grid-column: 3; grid-row: 1; font-size: 18px; line-height: 22px; }
  .thread .t-note { grid-column: 2 / -1; white-space: normal; }
  .rows .r-sub { white-space: normal; }
}

/* ---------- added with the screens of part 2 ---------- */
.btn-outline { border-color: var(--text); background: none; }
.btn.btn-primary, .btn.btn-outline { padding: 0 20px; }
/* Key and value lines */
.kv { margin: 0; border-top: 1px solid var(--rule); }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; border-bottom: 1px solid var(--rule); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; }
.kv .is-total { border-bottom: 0; } .kv .is-total dt { color: var(--text); font-weight: 600; } .kv .is-total dd { font-weight: 500; }
/* Fields */
.in { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--control); border-radius: 8px; background: none; color: var(--text); font: inherit; }
.in-num { text-align: right; font-variant-numeric: tabular-nums; }
.in-title { font-weight: 500; }
.in-desc { border-color: transparent; padding: 4px 10px; color: var(--muted); font-size: 13px; line-height: 18px; height: auto; resize: none; display: block; }
.in-desc:hover, .in-desc:focus { border-color: var(--control); }

/* ---------- the application ---------- */
.skip { position: absolute; left: 8px; top: -48px; padding: 10px 14px; background: var(--primary); color: var(--primary-ink); border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.side form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.me { align-items: flex-start; }
.me .linkish { font-size: 12px; }

/* Signing up and in: one column, the sentence first. */
.auth { max-width: 1100px; margin: 0 auto; padding: 24px 40px 72px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.auth-top .brand { padding: 0; }
.auth-top a.lang { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 72px; align-items: start; }
.auth h1 { margin-top: 0; }
.form { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.form label { font-weight: 500; margin-top: 10px; }
.form .in { height: 44px; font-size: 16px; border-radius: 10px; padding: 0 14px; }
.form .in[aria-invalid="true"] { border-color: var(--negative); }
.form .help { font-size: 13px; color: var(--muted); }
.form .field-error { font-size: 13px; color: var(--negative); }
.form .btn { height: 48px; font-size: 16px; margin-top: 18px; }
.form-alt { margin-top: 16px; color: var(--muted); }
.form-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 0 0 6px; padding: 12px 14px; border-radius: 10px; background: var(--raised); }
.notice-error { color: var(--negative); font-weight: 500; }
.fine { margin-top: 28px; max-width: 520px; font-size: 13px; line-height: 20px; color: var(--muted); }
.steps li { min-height: 68px; }
.steps .r-title { font-size: 16px; line-height: 22px; }
.steps .r-sub { font-size: 13px; white-space: normal; }
@media (max-width: 900px) {
  .auth { padding: 16px 16px 48px; }
  .auth-top { margin-bottom: 28px; }
  .auth-grid { grid-template-columns: 1fr; row-gap: 28px; }
}

/* Forms inside the app, and the first action of an empty section. */
.form.narrow { max-width: 480px; margin-top: 36px; }
.form select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px; background-repeat: no-repeat; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { margin-top: 0; }
.lead-action { margin-top: 28px; }
.lead-action .btn { height: 44px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.rows .r-actions .btn { height: 36px; }
@media (max-width: 760px) { .form-actions { flex-direction: column; } .form-actions .btn, .lead-action .btn { width: 100%; height: 48px; } }

/* On a phone: the destinations in a bar at the bottom. */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .tabbar { display: flex; justify-content: space-around; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--rule); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; flex: 1; max-width: 120px; min-height: 48px; padding: 4px 8px;
    border-radius: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
  .tabbar a.is-active, .tab-more > summary.is-active, .tab-more[open] > summary { background: var(--active); color: var(--text); }
  .tab-more { position: relative; flex: 1; max-width: 120px; }
  .tab-more > summary { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; padding: 4px 8px; border-radius: 12px;
    font-size: 12px; line-height: 16px; color: var(--muted); cursor: pointer; list-style: none; }
  .tab-more > summary::-webkit-details-marker { display: none; }
  .tab-sheet { position: absolute; right: 0; bottom: calc(100% + 10px); display: grid; gap: 2px; min-width: 220px; padding: 8px; border: 1px solid var(--rule); border-radius: 16px;
    background: var(--ground); box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); }
  .tabbar .tab-sheet a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; max-width: none; min-height: 48px; padding: 4px 14px; font-size: 15px; line-height: 20px; color: var(--text); }
  .canvas { padding-bottom: 104px; }
}

/* ---------- the quote editor ---------- */
.qe-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 124px 108px 72px; column-gap: 14px; align-items: start; padding: 12px 0 10px; border-top: 1px solid var(--rule); }
.qe-head { padding: 8px 0; border-top: 0; font-size: 12px; color: var(--muted); align-items: center; }
.qe-head .num, .qe-foot .num { text-align: right; }
.qe-foot { align-items: center; padding: 14px 0; border-top-color: var(--border); font-weight: 500; }
.qe-what { display: grid; gap: 2px; min-width: 0; }
.qe-lab { display: none; }
.qe-out { height: 36px; display: flex; align-items: center; justify-content: flex-end; color: var(--muted); }

.qe-side .sec:first-child .answer-sub { margin-bottom: 14px; }
.qe-actions { display: grid; gap: 8px; margin-top: 20px; }
.qe-actions .btn { height: 44px; }
@media (max-width: 760px) {
  .qe-head { display: none; }
  .qe-row { grid-template-columns: 1fr 1fr; row-gap: 10px; padding: 16px 0; }
  .qe-what { grid-column: 1 / -1; }
  .qe-lab { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .qe-num .in { height: 44px; }
  .qe-out { display: block; height: auto; text-align: left; color: var(--text); }
  .qe-foot { grid-template-columns: 1fr auto; }
  .qe-foot span:nth-child(2), .qe-foot span:nth-child(4) { display: none; }
  .qe-foot span:nth-child(5) { grid-column: 1 / -1; text-align: left; color: var(--muted); font-weight: 400; }
  
}

/* ---------- the quote as the client sees it ---------- */
.ql-top { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 24px 40px 0; }
.ql-studio { font-size: 16px; font-weight: 600; }
.ql-lang { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ql { max-width: 1100px; margin: 0 auto; padding: 44px 40px 56px; }
.ql h1 { max-width: 940px; }

.ql-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; align-items: start; }
.ql-main { grid-column: 1; grid-row: 1; min-width: 0; }
.ql-decision { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }

.ql-lines li { align-items: flex-start; padding: 14px 0; }
.ql-lines .r-title { font-size: 16px; line-height: 22px; }
.ql-lines .r-sub, .ql .rows .r-sub { white-space: normal; font-size: 13px; }
.ql-lines .r-fig { font-size: 16px; line-height: 22px; }

.ql-totals { margin: 0; border-top: 1px solid var(--border); }
.ql-totals div { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--rule); }
.ql-totals dt { color: var(--muted); } .ql-totals dd { margin: 0; }
.ql-totals .is-total { min-height: 52px; border-bottom: 0; }
.ql-totals .is-total dt { color: var(--text); font-weight: 600; } .ql-totals .is-total dd { font-size: 18px; font-weight: 500; }

.ql-form { display: grid; gap: 8px; margin-top: 20px; }
.ql-form label { font-weight: 500; }
.ql-form input { height: 44px; padding: 0 14px; border: 1px solid var(--control); border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 16px; }
.ql-form .sub-note { margin: 0 0 8px; }
.ql-form .btn { height: 48px; font-size: 16px; }
.btn-outline { border-color: var(--text); background: none; }
.ql-decision > .sub-note { margin-top: 16px; }

.ql-foot { max-width: 1100px; margin: 0 auto; padding: 20px 40px 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.ql-made { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .ql-grid { grid-template-columns: 1fr; }
  .ql-main, .ql-decision { grid-column: 1; grid-row: auto; }
  .ql-decision { position: static; }
}
@media (max-width: 760px) {
  /* The sentence stays within two lines on a phone: the amount is the figure just below it. */
  
  .ql-top { padding: 16px 16px 0; }
  .ql { padding: 24px 16px 40px; }
  .ql-foot { padding: 16px 16px 32px; }
}

/* ---------- quotes in the application ---------- */
.qe-plain .qe-row { grid-template-columns: minmax(0, 1fr) 76px 124px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.inline-form label { font-weight: 500; }
.inline-form .in { width: auto; min-width: 240px; height: 40px; border-radius: 999px; padding: 0 16px; }
.inline-form .btn { height: 40px; }
.rows a.r-title { text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
.link-box { height: 44px; font-size: 14px; }
.narrow-inline { border-top: 0; padding-top: 6px; }
.narrow-inline .in { height: 40px; font-size: 14px; }
.qe-side .qe-actions .btn { width: 100%; }
@media (max-width: 760px) { .inline-form { flex-direction: column; align-items: stretch; } .inline-form .in, .inline-form .btn { width: 100%; height: 48px; } .qe-plain .qe-row { grid-template-columns: 1fr 1fr; } }

/* ---------- projects ---------- */
.thread-short { grid-template-columns: repeat(2, minmax(0, 320px)); }
.s12 { grid-column: 1 / -1; }
.sub-note b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .thread-short { grid-template-columns: 1fr; } }

/* ---------- the team ---------- */
.team-row { flex-wrap: wrap; }
.team-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.team-edit .in { width: auto; height: 36px; }
.team-edit select.in { min-width: 150px; padding-right: 30px; }
.team-edit .in-num { width: 128px; }
.team-edit .btn { height: 36px; }
.team-invite .in { min-width: 200px; }
.role-notes { margin: 20px 0 0; display: grid; gap: 6px; font-size: 13px; }
.role-notes div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.role-notes dt { font-weight: 500; } .role-notes dd { margin: 0; color: var(--muted); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 11px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select.in:disabled { opacity: 1; color: var(--muted); background-image: none; border-style: dashed; }
@media (max-width: 760px) {
  .team-edit { margin-left: 0; width: 100%; }
  .team-edit .in, .team-edit .btn { height: 44px; flex: 1; }
  .role-notes div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- tasks ---------- */
.tabs { display: flex; gap: 28px; margin-top: 28px; border-bottom: 1px solid var(--rule); }
.tabs a { position: relative; padding: 10px 0 12px; color: var(--muted); }
.tabs a.is-active { color: var(--text); font-weight: 600; }
.tabs a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tabs + section .thread, .tabs + section { margin-top: 0; }
.tabs + section .thread { margin-top: 36px; }
.task { align-items: flex-start; flex-wrap: wrap; }
.task .r-sub { white-space: normal; }
.task-flag { color: var(--negative); }
.task-actions { margin-left: auto; }
.task-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.task-form .in { width: 260px; height: 36px; }
.task-actions .btn { height: 36px; }
.task-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 14px; max-width: 760px; border-top: 0; padding-top: 6px; }
.task-new > div { display: grid; gap: 6px; align-content: start; }
.task-new .span-2 { grid-column: 1 / -1; }
.task-new label { margin-top: 0; }
.task-new .form-actions { margin-top: 6px; }
@media (max-width: 760px) {
  .task-actions { margin-left: 0; width: 100%; }
  .task-form { justify-content: stretch; }
  .task-form .in, .task-actions .btn { width: 100%; height: 44px; }
  .task-new { grid-template-columns: 1fr; }
}

/* ---------- hours ---------- */
.week-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.week-nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sheet-form { margin-top: 28px; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 8px 6px; text-align: left; font-weight: 400; }
.sheet thead th { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.sheet thead th:first-child { text-align: left; }
.sheet-project th { padding-top: 24px; font-weight: 600; }
.sheet tbody tr:not(.sheet-project) { border-top: 1px solid var(--rule); }
.sheet td { width: 78px; text-align: right; }
.sheet .cell { width: 64px; padding: 0 8px; }
.sheet .cell:disabled { border-style: dashed; opacity: .45; }
.sheet .cell[aria-invalid="true"] { border-color: var(--negative); border-width: 2px; }
.sheet tfoot tr { border-top: 1px solid var(--border); }
.sheet tfoot th, .sheet tfoot td, .sheet .sheet-sum { font-weight: 600; }
.cell-day { display: none; }
@media (max-width: 760px) {
  .sheet, .sheet tbody, .sheet tfoot { display: block; }
  .sheet thead { display: none; }
  .sheet tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px 0; }
  .sheet tr > th { grid-column: 1 / -1; padding: 0 0 4px; }
  .sheet-project th { padding-top: 12px; }
  .sheet td { width: auto; padding: 0; text-align: center; }
  .sheet .cell { width: 100%; height: 44px; padding: 0 2px; text-align: center; }
  .cell-day { display: block; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; }
  .sheet .sheet-sum { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; padding-top: 4px; }
  .sheet-sum .cell-day { font-size: 13px; }
  .sheet-form .form-actions .btn { width: 100%; height: 48px; }
}

/* ---------- invoices ---------- */
textarea.in, .in-area { height: auto; min-height: 96px; padding: 10px; line-height: 20px; resize: vertical; display: block; }
.paper { margin-top: 6px; }
.paper-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 8px 0 20px; }
.paper-sides h2 { font-size: 13px; font-weight: 400; color: var(--muted); margin: 0 0 4px; }
.paper-block { margin: 0; }
.paper-block span { display: block; }
.paper-facts { margin: 0; }
.paper-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.paper-facts dt { color: var(--muted); } .paper-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.inv-steps > form, .inv-steps > .notice { margin-top: 18px; }
.inv-steps .form label:first-child { margin-top: 0; }
.inv-steps .form-actions { margin-top: 12px; }
.ql-invoice .sec { margin-top: 36px; }
@media (max-width: 760px) {
  .paper-sides { grid-template-columns: 1fr; gap: 16px; }
  .inv-steps .btn { width: 100%; height: 48px; }
  .inv-steps .linkish { min-height: 44px; }
}
@media print {
  .no-print, .ql-lang, .ql-made, .side, .tabbar, .topbar, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .ql { padding: 0; max-width: none; }
  .ql h1 { font-size: 28px; line-height: 34px; }
  .paper-sides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- margins ---------- */
.fig { width: 100%; border-collapse: collapse; }
.fig th, .fig td { padding: 12px 6px; text-align: right; font-weight: 400; vertical-align: top; }
.fig th:first-child { text-align: left; padding-left: 0; }
.fig td:last-child, .fig th:last-child { padding-right: 0; }
.fig thead th { padding: 8px 6px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.fig tbody tr { border-bottom: 1px solid var(--rule); }
.fig tbody th a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.fig tbody th .r-sub { display: block; }
.fig tfoot th, .fig tfoot td { font-weight: 600; border-top: 1px solid var(--border); }
.fig .is-neg { color: var(--negative); }
@media (max-width: 760px) {
  .fig, .fig tbody, .fig tfoot { display: block; }
  .fig thead { display: none; }
  .fig tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 14px 0; }
  .fig tr > th { grid-column: 1 / -1; padding: 0; }
  .fig td { padding: 0; text-align: left; }
  .fig td:empty { display: none; }
  .fig .cell-day { font-size: 12px; }
}
@media (max-width: 760px) {
  .fig tfoot th, .fig tfoot td { border-top: 0; }
  .fig tfoot tr { border-top: 1px solid var(--border); }
}

/* ---------- plan ---------- */
.plan-note { max-width: 820px; margin-top: 20px; font-size: 16px; line-height: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; align-items: start; }
.plan { padding: 12px 20px 22px; border: 1px solid var(--rule); border-radius: 16px; }
.plan.is-current { border-color: var(--border); }
.plan .sec-head { border-top: 0; }
.plan-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-list li { padding-left: 18px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.plan-faq { margin: 0; max-width: 820px; }
.plan-faq div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plan-faq dt { font-weight: 600; } .plan-faq dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 1100px) { .plans { grid-template-columns: 1fr; } .plan .btn { width: 100%; height: 48px; } }

/* ---------- agents ---------- */
.code { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--raised); font: 13px/20px ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; overflow-x: auto; white-space: pre; }
.task-new .notice.span-2 { margin: 0; }
/* A wide block (code, a table) scrolls or wraps inside the page; it never widens the page itself. */
.app > div, .canvas, .col { min-width: 0; }
.code { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- messages ---------- */
.chat { margin: 0; padding: 0; list-style: none; }
.msg { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.msg-main { min-width: 0; flex: 1; }
.msg-head { margin: 0; } .msg-head b { font-weight: 600; }
.msg-body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; }
.msg.is-removed .msg-body { color: var(--muted); font-style: italic; }
.msg-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; }
.msg-actions .linkish { min-height: 24px; }
.msg-write { max-width: 760px; margin-top: 28px; scroll-margin-top: 24px; }
.msg-write label { margin-top: 0; }
@media (max-width: 760px) {
  .msg-actions .linkish { min-height: 44px; display: inline-flex; align-items: center; }
  .msg-write .btn { flex: none; width: 100%; height: 48px; }
}

.narrow-sec { max-width: 640px; margin-top: 48px; }
.narrow-sec form { margin: 14px 0 10px; }

/* ---------- account ---------- */
.in-code { max-width: 220px; font-size: 20px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.codes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; max-width: 420px; }
.codes code { font: 16px/24px ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }
.narrow-sec label { display: block; margin-top: 14px; font-weight: 500; }
.narrow-sec .link-box { margin-top: 6px; }
.narrow-sec > p:not(.sub-note) { margin: 16px 0 0; }

/* ---------- the public pages ---------- */
.pub { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.pub-top { display: flex; align-items: center; gap: 32px; padding: 24px 0; }
.pub-top .brand { padding: 0; }
.pub-nav { display: flex; gap: 28px; margin-left: 12px; font-size: 15px; }
.pub-nav a { color: var(--muted); } .pub-nav a:hover, .pub-nav a[aria-current] { color: var(--text); }
.pub-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pub-lang { margin-right: 10px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 999px; }
.hero { padding: 72px 0 0; }
.hero h1 { margin: 0; max-width: 980px; font-size: 84px; line-height: 86px; letter-spacing: -0.022em; }
.hero-sub { margin-top: 26px; max-width: 720px; font-size: 20px; line-height: 30px; color: var(--muted); }
.pub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .sub-note { margin-top: 14px; }
.hero-plain { padding-bottom: 8px; } .hero-plain h1 { font-size: 64px; line-height: 68px; max-width: 900px; }
.screen { margin: 72px 0 0; padding: 36px 40px 40px; border: 1px solid var(--rule); border-radius: 20px; }
.screen figcaption { display: inline-block; margin-bottom: 18px; padding: 3px 10px; border-radius: 999px; background: var(--raised); font-size: 12px; line-height: 18px; color: var(--muted); }
.screen-h1 { margin-top: 10px; font-family: var(--serif); font-size: 44px; line-height: 48px; letter-spacing: -0.012em; }
.screen .thread { margin-top: 40px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 56px; margin-top: 44px; align-items: start; }
.ex-lines tbody th { font-weight: 500; }
.ex-bar { display: flex; height: 4px; margin-top: 10px; max-width: 420px; background: var(--track); }
.ex-bar i { display: block; background: var(--data); } .ex-bar b { display: block; background: var(--negative); }
.ex-answer { padding-top: 8px; border-top: 1px solid var(--border); }
.pub-sec { margin-top: 136px; }
.pub-sec > h2, .pub-two h2 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 56px; letter-spacing: -0.012em; max-width: 860px; }
.pub-sec > h2.h2-small { font-family: var(--font); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.pub-lead { margin-top: 20px; max-width: 700px; font-size: 18px; line-height: 28px; color: var(--muted); }
.path { margin-top: 56px; list-style: none; border-top: 1px solid var(--border); }
.path li { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr) 280px; column-gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }

.path h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 38px; }
.path p { font-size: 16px; line-height: 26px; }

.pub-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
.pub-two h2 { font-size: 44px; line-height: 48px; }
.pub-two .rows { margin-top: 10px; border-top: 1px solid var(--border); }
.pub-two .r-sub { white-space: normal; }

.pub-sec-tight { margin-top: 48px; }
.pub-facts dt { font-size: 18px; line-height: 26px; } .pub-facts dd { font-size: 16px; line-height: 26px; }
.pub-honest { margin-top: 28px; max-width: 820px; }
.pub .plans { margin-top: 44px; }
.pub .plan .btn { margin-top: 6px; }

 

@media (max-width: 1000px) {
  .pub-nav { display: none; }
  .ex-grid, .pub-two { grid-template-columns: 1fr; row-gap: 36px; }
  .path li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; } .path li p { grid-column: 2; }
  .hero h1 { font-size: 64px; line-height: 66px; }
}
@media (max-width: 760px) {
  .pub { padding: 0 20px; }
  .pub-top { gap: 12px; padding: 16px 0; } .pub-signin, .pub-lang { display: none; }
  .pub-acts .btn { height: 44px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 44px; line-height: 46px; } .hero-plain h1 { font-size: 38px; line-height: 42px; }
  .hero-sub { font-size: 17px; line-height: 27px; }
  .pub-cta .btn { width: 100%; }
  .screen { margin-top: 48px; padding: 22px 18px 26px; border-radius: 16px; }
  .screen-h1 { font-size: 30px; line-height: 34px; }
  .pub-sec { margin-top: 88px; }
  .pub-sec > h2, .pub-two h2 { font-size: 34px; line-height: 38px; }
  .path h3 { font-size: 28px; line-height: 32px; }
   
  
}

/* ---------- the public pages, after the creative director's pass ---------- */
/* The serif is for the one sentence of a page, the answer figure and the wordmark. Everything else is the text face. */
.hero { padding-top: 44px; }
.hero h1 { font-size: 64px; line-height: 68px; letter-spacing: -0.018em; max-width: 900px; text-wrap: balance; }
.hero-plain h1 { font-size: 56px; line-height: 60px; }
.hero-sub { margin-top: 18px; text-wrap: pretty; }
.pub-cta { margin-top: 24px; }
.pub-sec > h2, .pub-two h2 { font-family: var(--font); font-weight: 500; font-size: 34px; line-height: 40px; letter-spacing: -0.015em; max-width: 760px; text-wrap: balance; }
.pub-two h2 { font-size: 30px; line-height: 36px; }
.pub-lead { text-wrap: pretty; }
/* The example is the application's own screen: its menu, a hairline, the job. Nothing is boxed. */
.screen { margin-top: 40px; padding: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.screen-side { display: grid; align-content: start; gap: 4px; padding: 26px 20px 26px 0; border-right: 1px solid var(--rule); }
.screen-side .brand { padding: 0 10px 18px; font-size: 22px; }
.screen-side .nav-item { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.screen-side .nav-item.is-active { background: var(--active); color: var(--text); font-weight: 500; }
.screen-main { padding: 26px 0 8px 44px; min-width: 0; }
.screen .thread { margin-top: 32px; }
.screen-h1 { font-size: 40px; line-height: 44px; text-wrap: balance; }
/* "One thread" drawn as the thread itself. */
.path { margin-top: 56px; border-top: 0; }
.path.thread li { display: block; padding: 0 24px 0 0; border-bottom: 0; }
.path h3 { margin: 0 0 8px; font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 22px; }
.path p { font-size: 15px; line-height: 24px; }

/* Rows on the public pages are the size the brand book gives a priority list. */
.pub-two .rows li { min-height: 68px; }
.pub-two .r-title { font-size: 16px; line-height: 22px; }
.pub-two .r-sub { font-size: 14px; line-height: 20px; }
.pub-two .r-fig { font-size: 16px; }
.pub-more { margin-top: 16px; font-size: 14px; } .pub-more a { text-decoration: underline; text-underline-offset: 3px; }
/* Prices: two columns under a rule, no card. */
.plans-open { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.plans-open .plan { padding: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.plans-open .plan .sec-head h2 { font-size: 20px; line-height: 28px; }
.pay-line { max-width: 760px; } .pay-line p { margin: 4px 0 16px; color: var(--muted); font-size: 16px; line-height: 26px; }
.pub-facts div { border-top: 1px solid var(--border); border-bottom: 0; padding: 18px 0 22px; }
@media (max-width: 1000px) {
  .screen { grid-template-columns: 1fr; } .screen-side { display: none; } .screen-main { padding-left: 0; }
  .path.thread { grid-template-columns: 1fr; row-gap: 0; }
  .path.thread li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; padding: 0 0 28px; position: relative; }
  .path.thread li > * { grid-column: 2; }
  .path.thread .t-bar { grid-column: 1; grid-row: 1 / span 3; width: 2px; height: 100%; margin: 6px 0 0 5px; background: var(--data); }
  .path.thread .t-bar i { display: none; }
  .path.thread li:last-child .t-bar { height: 12px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 28px; text-align: center; }
  .hero h1 { font-size: 40px; line-height: 44px; margin-inline: auto; } .hero-plain h1 { font-size: 34px; line-height: 38px; }
  .hero-sub, .hero .sub-note { margin-inline: auto; }
  .pub-cta { justify-content: center; }
  .hero .screen, .hero .plan-note { text-align: start; }
  .pub-start { display: none; } .pub-signin, .pub-lang { display: inline-flex; } .pub-lang { margin-right: 4px; min-height: 44px; align-items: center; }
  .pub-acts .pub-signin { height: 44px; }
  .screen figcaption { white-space: normal; }
  .screen-h1 { font-size: 28px; line-height: 32px; }
  .pub-sec > h2, .pub-two h2 { font-size: 26px; line-height: 32px; }
  .pub-sec:not(.pub-two) > h2 { text-align: center; margin-inline: auto; }
  .pub-sec:not(.pub-two) > .pub-lead { text-align: center; margin-inline: auto; }
  .pub-sec > h2.h2-small { text-align: start; }
  .plans-open { grid-template-columns: 1fr; row-gap: 40px; }
  .pub-more a { display: inline-flex; min-height: 44px; align-items: center; }
  .ex-lines .cell-day { font-size: 13px; } .ex-lines td { font-size: 15px; }
}
.pay-line { margin-top: 56px; } .pay-line .sec-head { max-width: none; }
.pub .plan-faq { margin-top: 8px; }

.steps li.is-done .r-title { color: var(--muted); }

/* ---------- help ---------- */

.help-sec { margin-top: 72px; scroll-margin-top: 24px; }
.help-sec > h2 { font-size: 26px; line-height: 32px; }
.help-sec .pub-facts { margin-top: 16px; max-width: 820px; } .help-sec .pub-facts div { scroll-margin-top: 24px; }
.help-more { margin-top: 56px; }
.me .linkish + .linkish { margin-left: 12px; }
.topbar-help { margin-left: auto; margin-right: 12px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {  .help-sec { margin-top: 56px; } }

/* ---------- contact ---------- */
.contact-form { max-width: 640px; margin-top: 36px; }
.contact-form .form-actions { margin-top: 22px; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { max-width: 640px; margin-top: 36px; font-size: 18px; line-height: 28px; }
@media (max-width: 760px) { .contact-form .btn { width: 100%; } }
.qr { display: block; width: 216px; height: 216px; margin: 16px 0 6px; border-radius: 8px; }

.mention { font-weight: 600; background: var(--raised); border-radius: 4px; padding: 0 3px; }

.msg-search { margin-top: 20px; } .msg-search .in { min-width: 280px; }
@media (max-width: 760px) { .msg-search .in, .msg-search .btn { width: 100%; min-width: 0; height: 44px; } }

/* ---------- the public pages, after the second creative director's pass ---------- */
main.pub { min-height: 62vh; }
.pub-menu { display: none; }
.help-find { margin-top: 32px; max-width: 520px; } .help-find label { display: block; font-weight: 500; margin-bottom: 6px; } .help-find .in { height: 48px; font-size: 16px; }
.help-none a, .help-more a, .contact-address { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.help-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 72px; margin-top: 48px; align-items: start; }
.help-index { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: grid; gap: 18px; font-size: 14px; line-height: 20px; }
.help-index .help-topic { font-weight: 600; }
.help-index ul { list-style: none; margin: 6px 0 0; display: grid; gap: 6px; } .help-index li a { color: var(--muted); } .help-index li a:hover { color: var(--text); }
.help-answers .help-sec:first-child { margin-top: 0; }
.help-answers .pub-facts dd b { font-weight: 400; color: var(--text); }
.help-back { display: none; }

.contact-address { margin-top: 14px; font-size: 16px; text-decoration: none; }
.pay-line .sec-head, .pub .plan-faq { max-width: 760px; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .help-grid { grid-template-columns: 1fr; row-gap: 40px; margin-top: 32px; }
  .help-index { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .help-index ul { display: none; } .help-index .help-topic { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
  .help-back { display: block; margin-top: 12px; } .help-back a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
}
@media (max-width: 760px) {
  .pub-top { position: relative; }
  .pub-menu { display: block; margin-left: auto; }
  .pub-menu > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--control); border-radius: 999px; font-weight: 500; cursor: pointer; }
  .pub-menu > summary::-webkit-details-marker { display: none; }
  .pub-menu > nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: grid; padding: 8px 16px 14px; background: var(--ground); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); }
  .pub-menu > nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--rule); font-size: 16px; } .pub-menu > nav a:last-child { border-bottom: 0; }
  .pub-acts { display: none; }
  .help-sec > h2, .pub .help-sec > h2 { text-align: start; margin-inline: 0; }
  .help-index { grid-template-columns: 1fr; gap: 0; }
}
.help-answers { display: grid; gap: 64px; align-content: start; } .help-answers .help-sec, .help-answers .help-more { margin-top: 0; }

/* ---------- replies ---------- */
.replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--rule); }
.replies .msg { padding: 10px 0; } .replies .msg:last-child { border-bottom: 0; padding-bottom: 0; }
.reply-to { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

/* The light / dark button: only the choice that changes something is shown. */
.theme { display: inline-flex; margin: 0; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--control); border-radius: 999px; background: none; color: var(--text); cursor: pointer; }
.theme-btn:hover { background: var(--active); }
.theme-btn.to-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn.to-dark { display: none; }
  :root:not([data-theme="light"]) .theme-btn.to-light { display: inline-flex; }
}
:root[data-theme="dark"] .theme-btn.to-dark { display: none; }
:root[data-theme="dark"] .theme-btn.to-light { display: inline-flex; }
.me .theme { margin-left: auto; }
.auth-acts { display: inline-flex; align-items: center; gap: 16px; }
.topbar .theme { margin-left: auto; margin-right: 12px; }
@media (max-width: 760px) { .theme-btn { width: 44px; height: 44px; } }
@media print { .theme { display: none !important; } }

/* ---------- the public site, second design: a bar that stays, colour bands, a tour in real screens, a real footer ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root { --deep: #12402b; --deep-ink: #f3f5f0; --deep-muted: #b5cfc0; --deep-rule: rgb(243 245 240 / 0.18); --soft: #f1f2ee; --lift: 0 1px 2px rgb(18 32 24 / 0.05), 0 24px 60px -24px rgb(18 32 24 / 0.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --deep: #10301f; --soft: #151714; --lift: 0 0 0 1px #272a26, 0 24px 60px -24px rgb(0 0 0 / 0.7); } }
:root[data-theme="dark"] { --deep: #10301f; --soft: #151714; --lift: 0 0 0 1px #272a26, 0 24px 60px -24px rgb(0 0 0 / 0.7); }

.pub-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.pub-bar .pub-top { padding: 14px 40px; position: relative; }
.pub-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.pub-nav a[aria-current] { border-bottom-color: var(--text); }
.pub-wide > .hero { padding-top: 88px; }
.pub-wide .hero h1 { font-size: 96px; line-height: 96px; max-width: 1040px; }
.pub-wide .hero-sub { font-size: 21px; line-height: 32px; color: var(--text); }

.band { margin-top: 136px; padding: 112px 0; }
.band-soft { background: var(--soft); }
.band-deep { background: var(--deep); color: var(--deep-ink); }
.band-deep h2 { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 62px; letter-spacing: -0.014em; max-width: 900px; }
.band-deep .pub-lead { color: var(--deep-muted); }
.band-deep .btn-primary { background: var(--deep-ink); color: var(--deep); border-color: var(--deep-ink); }
.band-deep .btn-ghost { color: var(--deep-ink); border-color: var(--deep-rule); }
.band-deep :focus-visible { outline-color: var(--deep-ink); }

.band-note { margin-top: 28px; text-align: center; font-size: 14px; line-height: 22px; color: var(--deep-muted); }
.band-soft .pub-two h2 { font-size: 48px; line-height: 52px; }
.pub-two-next { margin-top: 112px; }
.rows.panel { margin-top: 0; padding: 8px 28px; background: var(--ground); border: 0; border-radius: 20px; box-shadow: var(--lift); }
.pub-two .rows.panel { border-top: 0; }

.tour { margin: 64px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tour-item { display: flex; flex-direction: column; padding: 40px 40px 0; background: var(--soft); border-radius: 24px; overflow: hidden; }
.tour-a { grid-column: span 7; } .tour-b { grid-column: span 5; }
.tour-item:nth-child(3) { order: 0; }
.tour-item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
.tour-item > p { margin-top: 12px; max-width: 520px; font-size: 16px; line-height: 26px; color: var(--muted); }
.frag { margin-top: auto; padding-top: 36px; }
.frag > div { padding: 22px 26px 26px; background: var(--ground); border-radius: 16px 16px 0 0; box-shadow: var(--lift); min-height: 236px; }
.frag-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.frag-top b { font-weight: 500; color: var(--text); } .frag-top .pill { margin-left: auto; }
.frag-fig th, .frag-fig td { padding: 10px 6px; font-size: 14px; }
.frag-fig tbody th { font-weight: 400; } .frag-fig tfoot th, .frag-fig tfoot td { padding-top: 12px; font-weight: 600; border-top: 1px solid var(--border); }
.frag-fig tbody tr:last-child { border-bottom: 0; }
.frag-sheet td, .frag-sheet thead th { padding-left: 4px; padding-right: 4px; }
.frag-answer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.frag-answer b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 36px; color: var(--data); }
.frag .rows li { min-height: 56px; } .frag .rows .r-sub { white-space: normal; }
.frag .chat .msg { padding: 10px 0; } .frag .chat .is-reply { margin-left: 44px; }
.frag .ex-bar { max-width: none; } .frag .ex-bar i.is-low { background: var(--negative); }
.frag .r-meta { text-align: right; } .frag .r-meta .r-sub { display: block; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin: 72px 0 0; }
.facts > div { padding-top: 20px; border-top: 1px solid var(--deep-rule); }
.facts dt { font-size: 17px; line-height: 24px; font-weight: 500; }
.fact-n { display: block; margin-bottom: 10px; font-family: var(--serif); font-weight: 400; font-size: 96px; line-height: 88px; letter-spacing: -0.02em; color: #8fd9b1; }
.facts dd { margin: 10px 0 0; font-size: 15px; line-height: 24px; color: var(--deep-muted); }

.faqs { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; font-size: 19px; line-height: 28px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--serif); font-size: 32px; line-height: 28px; color: var(--data); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 48px 24px 0; font-size: 16px; line-height: 26px; color: var(--muted); }

.band-end { margin-top: 136px; padding: 128px 0; text-align: center; }
.band-end h2 { margin: 0 auto; font-size: 84px; line-height: 86px; max-width: 900px; }
.band-end .pub-lead { margin-left: auto; margin-right: auto; }
.band-end .pub-cta { justify-content: center; }

.site-foot { margin-top: 136px; padding: 72px 0 40px; border-top: 1px solid var(--rule); background: var(--soft); }
.pub-wide + .site-foot { margin-top: 0; border-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.foot-brand .brand { padding: 0; font-size: 30px; line-height: 32px; }
.foot-brand p { margin: 16px 0 22px; max-width: 320px; font-size: 15px; line-height: 24px; color: var(--muted); }
.foot-grid h2 { margin: 6px 0 14px; font-family: var(--font); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.foot-grid nav, .foot-prefs { display: flex; flex-direction: column; align-items: flex-start; }
.foot-grid nav a, .foot-prefs > a { padding: 6px 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.foot-grid nav a:hover, .foot-prefs > a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-prefs .theme { margin-top: 10px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--muted); }

@media (max-width: 1000px) {
  .pub-wide .hero h1 { font-size: 68px; line-height: 70px; }
  .tour-a, .tour-b { grid-column: span 12; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: span 2; }
  .band-end h2 { font-size: 60px; line-height: 62px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .pub-bar .pub-top { padding: 10px 20px; }
  .pub-wide > .hero { padding-top: 44px; }
  .pub-wide .hero h1 { font-size: 46px; line-height: 48px; }
  .pub-wide .hero-sub { font-size: 18px; line-height: 28px; }
  .band { margin-top: 88px; padding: 72px 0; }
  
  .band-deep h2 { font-size: 40px; line-height: 44px; }
  .band-soft .pub-two h2 { font-size: 34px; line-height: 38px; }
  .pub-two-next { margin-top: 72px; }
  .rows.panel { padding: 4px 18px; border-radius: 16px; }
  .tour { margin-top: 40px; gap: 16px; }
  .tour-item { padding: 28px 22px 0; border-radius: 20px; }
  .tour-item h3 { font-size: 30px; line-height: 34px; }
  .frag { padding-top: 28px; } .frag > div { padding: 18px 16px 20px; min-height: 0; }
  .frag-sheet th:first-child { max-width: 84px; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .fact-n { font-size: 72px; line-height: 68px; }
  .faq summary { font-size: 17px; line-height: 26px; } .faq p { padding-right: 0; }
  .band-end { padding: 88px 0; text-align: center; } .band-end h2 { font-size: 44px; line-height: 46px; }
  .site-foot { margin-top: 88px; padding: 52px 0 32px; }
  .foot-grid { gap: 32px 24px; } .foot-grid nav a, .foot-prefs > a { padding: 11px 0; }
  .foot-base { margin-top: 36px; }
}
@media print { .pub-bar, .site-foot { display: none !important; } }
.band-deep .btn-ghost { background: transparent; } .band-deep .btn-ghost:hover { background: rgb(243 245 240 / 0.1); }
@media (max-width: 760px) {
  /* The small screens of the tour stay tables on a phone: they are pictures of the product, read at a glance. */
  .frag-fig { display: table; } .frag-fig tbody { display: table-row-group; } .frag-fig tfoot { display: table-footer-group; } .frag-fig thead { display: table-header-group; }
  .frag-fig tr { display: table-row; padding: 0; } .frag-fig tr > th, .frag-fig td { display: table-cell; padding: 10px 4px; }
  .frag-fig tr > th:first-child { padding-left: 0; }
  .frag-sheet th, .frag-sheet td { font-size: 12px; padding: 9px 2px; } .frag-sheet thead th { white-space: normal; }
  /* The theme button stays in reach beside the menu. */
  .pub-acts { display: flex; margin-left: 8px; } .pub-acts > :not(.theme) { display: none; }
}
.band-deep .btn-ghost { border-color: rgb(243 245 240 / 0.5); }

/* ---------- the public site: the product's pages, who it is for, about, roadmap ---------- */
.pub-wide > .hero-plain { padding-bottom: 0; }
.pub-wide .hero-plain h1 { font-size: 76px; line-height: 78px; max-width: 980px; }
.hero-feature .crumbs { margin-bottom: 20px; font-size: 14px; } .hero-feature .crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.tour-more { margin-top: 28px; }
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.index a { display: grid; grid-template-columns: 64px minmax(0, 340px) minmax(0, 1fr) 40px; column-gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--rule); transition: padding 160ms ease, background 160ms ease; }
.index a:hover { padding-left: 16px; padding-right: 16px; background: var(--soft); }
.index-n { font-size: 15px; color: var(--data); }
.index-name { font-family: var(--serif); font-size: 40px; line-height: 44px; letter-spacing: -0.012em; }
.index-line { font-size: 17px; line-height: 26px; color: var(--muted); }
.index-go { font-size: 24px; text-align: right; color: var(--data); }
.band-shot { margin-top: 72px; padding: 88px 0; }
.shot { margin: 0 auto; max-width: 760px; }
.shot > div { padding: 30px 36px 34px; background: var(--ground); border-radius: 20px; box-shadow: var(--lift); }
.shot .rows li { min-height: 64px; } .shot .rows .r-sub { white-space: normal; }
.shot .frag-fig th, .shot .frag-fig td { font-size: 16px; padding: 13px 6px; }
.shot .frag-top { font-size: 15px; margin-bottom: 12px; } .shot .frag-answer b { font-size: 44px; line-height: 46px; }
.shot .chat .msg { padding: 12px 0; } .shot .chat .is-reply { margin-left: 44px; }
.shot .ex-bar { max-width: none; } .shot .ex-bar i.is-low { background: var(--negative); } .shot .r-meta { text-align: right; } .shot .r-meta .r-sub { display: block; }
.shot figcaption { margin-top: 18px; text-align: center; font-size: 13px; line-height: 20px; color: var(--muted); }
.points { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; border-top: 1px solid var(--border); }
.points li { position: relative; padding: 32px 0 34px 64px; border-bottom: 1px solid var(--rule); }
.point-n { position: absolute; left: 0; top: 26px; font-family: var(--serif); font-size: 44px; line-height: 48px; color: var(--data); }
.points h3 { margin: 0; font-size: 21px; line-height: 28px; font-weight: 600; }
.points p { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--muted); }
.said-plainly { margin-top: 0; color: var(--text); font-size: 20px; line-height: 31px; }
.next-part a { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: end; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.next-part .r-sub { grid-column: 1 / -1; } .next-name { font-family: var(--serif); font-size: 56px; line-height: 60px; letter-spacing: -0.014em; }
.next-part a:hover .next-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.road-col { padding-top: 18px; border-top: 1px solid var(--border); }
.road-col h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 36px; }
.road-col ul { margin: 18px 0 0; padding: 0; list-style: none; }
.road-col li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 24px; }
.foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .pub-wide .hero-plain h1 { font-size: 56px; line-height: 58px; }
  .index a { grid-template-columns: 40px minmax(0, 1fr) 28px; row-gap: 6px; } .index-line { grid-column: 2 / 3; }
  .points { grid-template-columns: 1fr; } .road { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pub-wide .hero-plain h1 { font-size: 40px; line-height: 43px; }
  .index a { padding: 22px 0; } .index a:hover { padding-left: 0; padding-right: 0; background: none; } .index-name { font-size: 30px; line-height: 34px; } .index-line { font-size: 16px; }
  .band-shot { margin-top: 44px; padding: 44px 0; } .shot > div { padding: 18px 16px 20px; border-radius: 16px; }
  .shot .frag-fig th, .shot .frag-fig td { font-size: 14px; padding: 10px 4px; } .shot .frag-sheet th, .shot .frag-sheet td { font-size: 12px; padding: 9px 2px; }
  .points { margin-top: 36px; } .points li { padding: 24px 0 26px 48px; } .point-n { font-size: 36px; line-height: 40px; top: 20px; }
  .said-plainly { font-size: 18px; line-height: 28px; }
  .next-name { font-size: 38px; line-height: 42px; }
  .road { grid-template-columns: 1fr; gap: 36px; }
}
.pub-wide > .hero { padding-left: 40px; padding-right: 40px; }
@media (max-width: 760px) { .pub-wide > .hero { padding-left: 20px; padding-right: 20px; } }
.pub-wide > .pub-sec:last-child { margin-bottom: 136px; }
.road-col h2 .pill { font-family: var(--font); font-size: 12px; letter-spacing: 0; }
@media (max-width: 760px) { .pub-wide > .pub-sec:last-child { margin-bottom: 88px; } }

/* ---------- the public site, third design: one motif ----------
   The mark is a circle joined to a square: a person and an agent, one team. That one shape runs the
   site: very large behind the product in the first screen, as the team in a row, as the corner of a
   tile, as the bullet of an agent. Type is larger, colour comes in whole fields, and the page moves. */
:root { --mint: #a6e3c3; --mint-ink: #0f3323; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.display, .pub-sec > h2.display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 84px); line-height: 1.0; letter-spacing: -0.022em; max-width: 1000px; }
.m-p, .m-a { display: inline-block; flex: none; width: 1em; height: 1em; }
.m-p { border-radius: 50%; } .m-a { border-radius: 24%; }
.m-1 { background: var(--deep); } .m-2 { background: var(--mint); } .m-3 { background: var(--text); } .m-4 { background: var(--data); }
.team { display: flex; gap: 6px; font-size: 26px; margin-bottom: 28px; }

.hero2 { position: relative; overflow: hidden; }
.hero2-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); column-gap: 40px; align-items: center; min-height: min(88vh, 860px); padding-top: 48px; padding-bottom: 72px; }
.hero2 h1 { margin: 0; font-size: clamp(46px, 5.6vw, 92px); line-height: 0.98; letter-spacing: -0.026em; }
.hero2 .hero-sub { margin-top: 26px; max-width: 560px; font-size: 20px; line-height: 30px; color: var(--text); }
.stage { position: relative; height: 620px; margin-right: -200px; }
.motif { position: absolute; display: block; }
.motif-c { left: -20px; top: 10px; width: 500px; height: 500px; border-radius: 50%; background: var(--deep); animation: settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motif-s { left: 300px; top: 150px; width: 460px; height: 460px; border-radius: 96px; background: var(--mint); animation: settle 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes settle { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
.stage-cards { position: absolute; left: 70px; top: 150px; width: 470px; display: grid; }
.stage-card { grid-area: 1 / 1; align-self: start; padding: 24px 28px 28px; background: var(--ground); color: var(--text); border-radius: 22px; box-shadow: var(--lift); opacity: 0; animation: turn 24s infinite; }
.stage-hours { animation-delay: 6s; } .stage-invoice { animation-delay: 12s; } .stage-margins { animation-delay: 18s; }
@keyframes turn { 0% { opacity: 0; transform: translateY(14px); } 3% { opacity: 1; transform: none; } 25% { opacity: 1; transform: none; } 28% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; } }
.stage-card .ex-bar { max-width: none; } .stage-card .ex-bar i.is-low { background: var(--negative); } .stage-card .r-meta { text-align: right; } .stage-card .r-meta .r-sub { display: block; }
.stage-card .rows li { min-height: 60px; }

.statement { margin-top: 112px; }
.statement-p { max-width: 1040px; font-family: var(--serif); font-size: clamp(27px, 2.6vw, 38px); line-height: 1.34; letter-spacing: -0.008em; }
.slot { display: inline-flex; align-items: center; gap: 0.4em; height: 1.75em; padding: 0 0.7em; margin: 0 0.1em; border-radius: 999px; background: var(--soft); font-family: var(--font); font-size: 0.5em; font-weight: 500; letter-spacing: 0; vertical-align: 0.2em; }
.slot .pill { height: auto; padding: 0; background: none; font-size: 1em; color: var(--data); }
.slot-a { border-radius: 0.5em; } .slot-fig { background: var(--deep); color: var(--deep-ink); }

.band-job { margin-top: 112px; padding: 104px 0 112px; }
.band-job .pub-lead { margin-bottom: 48px; }
.band-job .screen { margin: 0; background: var(--ground); color: var(--text); border-color: transparent; box-shadow: var(--lift); }

.tour-item { transition: transform 220ms ease, box-shadow 220ms ease; }
.tour-item:hover { transform: translateY(-4px); }
.tour-item:nth-child(1), .tour-item:nth-child(4) { background: var(--deep); color: var(--deep-ink); } .tour-item:nth-child(1) > p, .tour-item:nth-child(4) > p { color: var(--deep-muted); }
.tour-item:nth-child(5) { background: var(--mint); color: var(--mint-ink); } .tour-item:nth-child(5) > p { color: var(--mint-ink); }
.tour-item:nth-child(5) .frag > div, .tour-item:nth-child(1) .frag > div, .tour-item:nth-child(4) .frag > div { color: var(--text); }
.tour-item:nth-child(odd) { border-radius: 24px 24px 24px 96px; } .tour-item:nth-child(even) { border-radius: 24px 96px 24px 24px; }

.live { margin-top: 136px; padding: 104px 0; background: var(--deep); color: var(--deep-ink); transition: background 500ms ease; overflow: hidden; }
.live[data-state="thin"] { background: #4d3a09; } .live[data-state="loss"] { background: #5c1a14; }
.live-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 56px; align-items: center; }
.live h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -0.016em; }
.live .pub-lead { color: rgb(243 245 240 / 0.78); }
.live-control { margin-top: 36px; display: grid; gap: 6px; }
.live-control label { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; font-size: 15px; font-weight: 500; }
.live-control output { font-size: 22px; font-variant-numeric: tabular-nums; }
.live-control input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.live-note { text-align: left; margin-top: 22px; color: rgb(243 245 240 / 0.7); }
.live-answer { margin: 0; display: grid; justify-items: end; text-align: right; }
.live-label { font-size: 16px; font-weight: 500; }
.live-answer b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(120px, 19vw, 300px); line-height: 0.9; letter-spacing: -0.04em; color: var(--mint); white-space: nowrap; }
.live[data-state="thin"] .live-answer b { color: #f0c36a; } .live[data-state="loss"] .live-answer b { color: #ff9d92; }
.live-kept { margin-top: 10px; font-size: 22px; }

.bar { display: flex; gap: 6px; height: 190px; margin: 56px 0 0; padding: 0; list-style: none; }
.seg { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 20px 18px; border-radius: 22px; overflow: hidden; }
.seg b { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 30px); line-height: 1.08; } .seg span { font-size: 14px; font-weight: 500; }
.seg-quote { background: var(--mint); color: var(--mint-ink); border-radius: 95px 22px 22px 95px; padding-left: 30px; }
.seg-project { background: var(--text); color: var(--ground); }
.seg-work { background: var(--deep); color: var(--deep-ink); }
.seg-invoice { background: var(--soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.seg-margin { background: var(--data); color: #fff; border-radius: 22px 95px 95px 22px; }
.bar-notes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.bar-notes h3 { margin: 6px 0 0; font-size: 18px; line-height: 26px; font-weight: 600; } .bar-notes p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--muted); }
.note-n { font-family: var(--serif); font-size: 30px; line-height: 32px; color: var(--data); }

.rows-panel { padding: 8px 28px; background: var(--ground); border-radius: 22px; box-shadow: var(--lift); }
.rows-panel .rows { margin: 0; border: 0; } .pub-two .rows-panel .rows { border-top: 0; margin-top: 0; }

.stepped { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; align-items: start; }
.stepped > h2 { grid-column: 7 / 13; grid-row: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.012em; max-width: 440px; }
.tile { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 32px; }
.tile-n { margin: 0; } .tile .fact-n { margin: 0; font-size: clamp(88px, 10vw, 160px); line-height: 0.86; color: inherit; }
.tile-t { margin: 0; font-size: 17px; line-height: 26px; max-width: 380px; } .tile-t b { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.tile-a { grid-column: 1 / 7; height: 540px; background: var(--deep); color: var(--deep-ink); border-radius: 28px 28px 270px 28px; } .tile-a .fact-n { color: var(--mint); }
.tile-b { grid-column: 7 / 10; margin-top: 150px; height: 360px; background: var(--text); color: var(--ground); border-radius: 28px; }
.tile-c { grid-column: 10 / 13; margin-top: 150px; aspect-ratio: 1; align-items: center; justify-content: center; text-align: center; gap: 6px; background: var(--mint); color: var(--mint-ink); border-radius: 50%; }
.tile-c .tile-t b { font-size: 18px; }

.faq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 104px; } .faq-head .display { font-size: clamp(36px, 4vw, 60px); }
.faq-sec .faqs { border: 0; display: grid; gap: 8px; }
.faq-sec .faq { border: 0; border-radius: 22px; background: var(--soft); transition: background 200ms ease, color 200ms ease; }
.faq-sec .faq summary { min-height: 76px; padding: 16px 26px; font-size: 20px; }
.faq-sec .faq p { padding: 0 72px 26px 26px; font-size: 17px; line-height: 27px; max-width: 62ch; }
.faq-sec .faq[open] { background: var(--deep); color: var(--deep-ink); } .faq-sec .faq[open] p { color: var(--deep-muted); } .faq-sec .faq[open] summary::after { color: var(--mint); }

.blank .pub-lead { margin-top: 28px; }

.site-foot { padding-top: 64px; }

.band-shot { position: relative; overflow: hidden; background: var(--deep); }
.band-shot::before, .band-shot::after { content: ""; position: absolute; top: 50%; width: 420px; height: 420px; }
.band-shot::before { left: calc(50% - 560px); margin-top: -260px; border-radius: 50%; background: var(--data); }
.band-shot::after { left: calc(50% + 150px); margin-top: -150px; border-radius: 88px; background: var(--mint); }
.band-shot .pub { position: relative; z-index: 1; } .band-shot figcaption { color: var(--deep-muted); }
.btn-primary, .btn-ghost { transition: transform 140ms ease, background 140ms ease; } .btn-big:hover { transform: translateY(-1px); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv, .tour-item, .bar-notes li, .faq-sec .faq, .points li, .index li, .road-col { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    @keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .motif-c, .motif-s { animation: none; }
  .stage-card { animation: none; } .stage-quote { opacity: 1; } .stage-card:not(.stage-quote) { display: none; }
  .tour-item:hover, .btn-big:hover { transform: none; }
}
@media (max-width: 1000px) {
  .hero2-in { grid-template-columns: 1fr; row-gap: 40px; min-height: 0; padding-top: 40px; padding-bottom: 0; }
  .stage { height: 520px; margin: 0 -40px; } .motif-c { left: 4%; width: 380px; height: 380px; } .motif-s { left: 42%; top: 130px; width: 360px; height: 360px; border-radius: 76px; }
  .stage-cards { left: 50%; margin-left: -235px; top: 90px; }
  .live-in { grid-template-columns: 1fr; row-gap: 40px; } .live-answer { justify-items: start; text-align: left; }
  .bar { flex-direction: column; height: auto; } .seg { flex: none; min-height: calc(var(--w) * 4px + 60px); border-radius: 22px !important; padding-left: 20px; }
  .bar-notes { grid-template-columns: 1fr; gap: 22px; }
  .stepped > h2 { grid-column: 1 / -1; grid-row: auto; margin-bottom: 32px; max-width: none; } .tile { grid-row: auto; }
  .tile-a { grid-column: 1 / -1; height: 380px; border-radius: 28px 28px 190px 28px; } .tile-b { grid-column: 1 / 7; margin-top: 8px; height: auto; aspect-ratio: 1; } .tile-c { grid-column: 7 / 13; margin-top: 40px; }
  .faq-sec { grid-template-columns: 1fr; row-gap: 32px; } .faq-head { position: static; }
  .band-shot::before { left: -120px; } .band-shot::after { left: auto; right: -140px; }
}
@media (max-width: 760px) {
  .team { font-size: 20px; margin-bottom: 20px; }
  .hero2 h1 { font-size: clamp(40px, 11.4vw, 52px); line-height: 1.0; } .hero2 .hero-sub { font-size: 18px; line-height: 28px; }
  .stage { height: 470px; margin: 0 -20px; } .motif-c { left: -90px; top: 0; width: 320px; height: 320px; } .motif-s { left: auto; right: -80px; top: 150px; width: 300px; height: 300px; border-radius: 64px; }
  .stage-cards { left: 20px; right: 20px; width: auto; margin-left: 0; top: 70px; } .stage-card { padding: 18px 16px 20px; border-radius: 18px; }
  .statement { margin-top: 72px; } .statement-p { font-size: 25px; line-height: 1.36; } .slot { font-size: 0.56em; }
  .band-job { margin-top: 72px; padding: 64px 0 72px; } .band-job .pub-lead { margin-bottom: 32px; } .band-job .screen { padding: 22px 18px 26px; border-radius: 16px; }
  .tour-item:nth-child(odd) { border-radius: 20px 20px 20px 64px; } .tour-item:nth-child(even) { border-radius: 20px 64px 20px 20px; }
  .live { margin-top: 88px; padding: 72px 0; } .live-answer b { font-size: clamp(96px, 31vw, 150px); } .live-kept { font-size: 19px; }
  .tile { padding: 24px; } .tile-a { height: 300px; border-radius: 24px 24px 150px 24px; } .tile-b { border-radius: 24px; } .tile-t { font-size: 15px; line-height: 23px; } .tile-t b { font-size: 17px; }
  .tile-b .tile-t { font-size: 14px; } .tile .fact-n { font-size: 84px; }
  .faq-sec .faq summary { min-height: 68px; padding: 14px 20px; font-size: 18px; } .faq-sec .faq p { padding: 0 20px 22px; font-size: 16px; line-height: 26px; }
    
  
  .band-shot::before { width: 260px; height: 260px; margin-top: -200px; } .band-shot::after { width: 240px; height: 240px; border-radius: 52px; margin-top: -40px; right: -90px; }
}

/* ---------- the app, second design ----------
   The same motif as the public site, turned down for a place people work in all day: a soft ground,
   the page as a white sheet lifted off it, sections as panels that hold row cards, and colour kept
   for what matters on each screen (where the job stands, what it keeps, what waits). */
.app { grid-template-columns: 268px minmax(0, 1fr); background: var(--soft); }
.app > div { min-width: 0; padding: 12px 12px 12px 0; }
.app .canvas { min-height: calc(100vh - 24px); padding: 48px 48px 80px; background: var(--ground); border-radius: 28px; box-shadow: 0 0 0 1px var(--rule), 0 18px 48px -30px rgb(18 32 24 / 0.3); }
.app .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 14px 16px; gap: 14px; border-right: 0; }
.app .side .brand { padding: 0 12px; margin-bottom: 4px; }
.scope { height: auto; min-height: 52px; padding: 8px 12px; gap: 10px; justify-content: flex-start; border: 0; border-radius: 16px; background: var(--ground); box-shadow: 0 0 0 1px var(--rule); }
.scope-mark { display: inline-flex; font-size: 18px; } .scope-mark .m-a { margin-left: -5px; }
.nav-group { margin: 12px 0 4px 14px; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--muted); }
.app .nav { gap: 2px; }
.app .nav-item { height: 38px; border-radius: 12px; color: var(--text); font-weight: 500; transition: background 120ms ease; }
.app .nav-item .ic { color: var(--muted); }
.app .nav-item:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.app .nav-item.is-active { background: var(--deep); color: var(--deep-ink); } .app .nav-item.is-active .ic { color: var(--mint); }
.app .me { padding: 12px; border-radius: 16px; background: var(--ground); box-shadow: 0 0 0 1px var(--rule); }

.app h1 { margin-top: 8px; font-size: clamp(38px, 4.1vw, 62px); line-height: 1.03; letter-spacing: -0.02em; }
.app .crumbs + h1 { margin-top: 10px; }
.app .sub { font-size: 17px; line-height: 26px; }

/* What waits, counted. A square is an agent's, a circle is a person's. */
.kts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.kt-in { display: flex; flex-direction: column; justify-content: space-between; height: 148px; padding: 18px 20px 16px; border-radius: 22px; transition: transform 160ms ease; }
a.kt-in:hover { transform: translateY(-3px); }
.kt-n { font-family: var(--serif); font-size: 72px; line-height: 0.9; letter-spacing: -0.03em; }
.kt-l { font-size: 14px; line-height: 20px; font-weight: 500; }
.kt-a .kt-in { background: var(--deep); color: var(--deep-ink); border-radius: 22px 22px 22px 74px; padding-left: 26px; } .kt-a .kt-n { color: var(--mint); }
.kt-b .kt-in { background: var(--text); color: var(--ground); }
.kt-c .kt-in { background: var(--mint); color: var(--mint-ink); }
.kt-d .kt-in { background: var(--soft); color: var(--text); border-radius: 22px 74px 22px 22px; }
.kt.is-zero .kt-in { background: none; box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted); } .kt.is-zero .kt-n { color: var(--control); }

/* A section is a panel; what it lists are cards one step lighter. */
.app .sec { margin-top: 20px; padding: 22px 24px 14px; border: 0; border-radius: 24px; background: var(--soft); }
.app h1 + .sec, .app .sub + .sec, .app .kts + .sec { margin-top: 34px; }
.app .sec-head { align-items: center; margin-bottom: 12px; }
.app .sec h2 { font-size: 16px; line-height: 24px; }
.app .sec-head > .num { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--text); color: var(--ground); font-size: 13px; font-weight: 600; }
.app .sec .rows { display: grid; gap: 8px; padding-bottom: 10px; }
.app .sec .rows li { padding: 12px 16px; border: 0; border-radius: 16px; background: var(--ground); box-shadow: 0 0 0 1px var(--rule); transition: box-shadow 140ms ease; }
.app .sec .rows li:hover { box-shadow: 0 0 0 1px var(--control); }
.app .sec .rows.replies li, .app .sec .chat li { box-shadow: none; }
.app .sec .sub-note { padding-bottom: 8px; }
.app .sec > .fig, .app .sec .sheet { background: var(--ground); border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
.app .sec > .fig th:first-child, .app .sec > .fig td:first-child { padding-left: 18px; } .app .sec > .fig th:last-child, .app .sec > .fig td:last-child { padding-right: 18px; }
.app .sec > .fig tbody tr:last-child { border-bottom: 0; }
.app .grid > .sec { margin-top: 20px; }
.app .narrow-sec { max-width: 700px; }

/* Where the job stands: the thread, on the deep field, with the mark's corner. */
.app .thread { margin-top: 30px; padding: 30px 30px 24px; background: var(--deep); color: var(--deep-ink); border-radius: 24px 24px 24px 96px; }
.app .thread li:first-child { padding-left: 22px; }
.app .thread .t-bar { background: var(--deep-rule); } .app .thread .t-bar i { background: var(--mint); }
.app .thread .t-bar::before { background: var(--mint); box-shadow: 0 0 0 4px var(--deep); }
.app .thread .is-part .t-bar::before { background: var(--deep); box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 4px var(--deep); }
.app .thread .t-label, .app .thread .t-note { color: var(--deep-muted); }
/* What the job keeps: the one figure in colour. */
.app .sec:has(> .answer) { background: var(--mint); color: var(--mint-ink); border-radius: 24px 96px 24px 24px; }
.app .sec:has(> .answer) .answer-sub, .app .sec:has(> .answer) .sec-head span, .app .sec:has(> .answer) .sub-note, .app .sec:has(> .answer) p { color: var(--mint-ink); }
.app .sec:has(> .answer) .answer-sub b { color: inherit; }
.app .answer { font-size: clamp(52px, 5vw, 76px); line-height: 1; }

/* Signing in: the form is a card, and the mark stands large beside it. */
.auth { position: relative; min-height: 100vh; overflow: hidden; }
.auth::before, .auth::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.auth::before { left: max(40px, calc(50% - 560px)); bottom: -150px; width: 440px; height: 440px; border-radius: 50%; background: var(--deep); }
.auth::after { left: calc(max(40px, calc(50% - 560px)) + 270px); bottom: -230px; width: 400px; height: 400px; border-radius: 84px; background: var(--mint); }
.auth > * { position: relative; z-index: 1; }
.auth-grid .form { padding: 30px 32px 32px; border-radius: 26px; background: var(--ground); box-shadow: var(--lift); border-top: 0; }
.auth-grid h1 { font-size: clamp(48px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.022em; }

@media (max-width: 1000px) {
  .app { background: var(--ground); grid-template-columns: 1fr; } .app > div { padding: 0; }
  .app .side { display: none; }
  .app .canvas { min-height: 0; padding: 28px 20px 96px; border-radius: 0; box-shadow: none; }
  .kts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; } .kt-in { height: 124px; padding: 16px; } .kt-n { font-size: 56px; }
  .kt-a .kt-in { border-radius: 20px 20px 20px 56px; padding-left: 20px; } .kt-d .kt-in { border-radius: 20px 56px 20px 20px; }
  .app .sec { padding: 18px 14px 10px; border-radius: 20px; } .app .sec .rows li { padding: 12px 14px; }
  .app .thread { padding: 22px 18px 18px; border-radius: 20px 20px 20px 56px; } .app .thread li:first-child { padding-left: 0; }
  .app .sec:has(> .answer) { border-radius: 20px 56px 20px 20px; }
  .auth::before { left: -140px; bottom: -200px; width: 340px; height: 340px; } .auth::after { left: 90px; bottom: -250px; width: 320px; height: 320px; border-radius: 68px; }
  .auth-grid .form { padding: 22px 20px 24px; border-radius: 22px; }
}
.app .sec:has(> .answer) { align-self: start; padding-bottom: 26px; } .app .sec:has(> .answer) .sec-head { padding-right: 44px; }
.app .sheet-form { margin-top: 28px; padding: 20px 24px 22px; border-radius: 24px; background: var(--soft); }
.app .sheet-form .cell:not([disabled]) { background-color: var(--ground); }
@media (max-width: 1000px) { .app .sheet-form { padding: 14px 12px 16px; border-radius: 20px; } .app .sec:has(> .answer) .sec-head { padding-right: 28px; } }
/* Fields inside a panel stand out from it. */
.app .sec .in, .app .form.narrow .in, .app .sec .link-box { background-color: var(--ground); }
.app .canvas > .col > .form.narrow, .app .canvas > .col > form.form { margin-top: 30px; padding: 26px 26px 28px; border: 0; border-radius: 24px; background: var(--soft); }
.app .canvas > .col > form.form .in { background-color: var(--ground); }
@media (max-width: 1000px) { .app .canvas > .col > .form.narrow, .app .canvas > .col > form.form { padding: 18px 14px 20px; border-radius: 20px; } }

/* ---------- audit of 26 November: a large corner never meets content ----------
   The mark's big corner is kept only where nothing sits in it. */
.tour-item:nth-child(odd), .tour-item:nth-child(even) { border-radius: 24px 96px 24px 24px; }
.kt-a .kt-in { border-radius: 22px 74px 22px 22px; padding-left: 20px; } .kt-d .kt-in { border-radius: 22px; }
.app .sec:has(> .answer) { border-radius: 24px; align-self: start; } .app .sec:has(> .answer) .sec-head { padding-right: 0; }
.app .thread { border-radius: 24px; } .app .thread li:first-child { padding-left: 0; }
@media (max-width: 1000px) {
  .kt-a .kt-in { border-radius: 20px 56px 20px 20px; padding-left: 16px; } .kt-d .kt-in { border-radius: 20px; }
  .app .thread, .app .sec:has(> .answer) { border-radius: 20px; }
}
@media (max-width: 760px) { .tour-item:nth-child(odd), .tour-item:nth-child(even) { border-radius: 20px 64px 20px 20px; } }
@media (max-width: 760px) {  .stepped > h2 { text-align: start; } }
/* One shape for every field, one for every button. */
.app .in, .auth .in { border-radius: 12px; }
.app .sec-head { flex-wrap: wrap; row-gap: 4px; }
.app .plan { border-radius: 22px; }
@media (max-width: 760px) { .app .sec-head > span:not(.num), .app .sec-head > a { flex-basis: 100%; } }

/* ---------- the interaction layer (26 November 2026) ----------
   Patterns the trade knows well (a dot ground, a beam running round a card, a marquee, lines that
   join people to a hub, a light under the pointer, numbers that count, words that come up as they
   are read, a button that catches the light), each written here in plain CSS for Ensemble's own
   shapes and colours. No library is loaded. Everything stops for reduced motion. */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* A dot ground behind the first screen and the sign-in page, fading towards the edges. */
.hero2::before, .auth-top::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 26% 34%, #000 12%, transparent 72%); mask-image: radial-gradient(ellipse 62% 78% at 26% 34%, #000 12%, transparent 72%); }
.hero2-in { position: relative; z-index: 1; }
.auth-top::before { position: fixed; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 70%); }
.app { background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.5px); background-size: 20px 20px; }

/* The first screen arrives: headline, sentence, actions, one after the other. */
@keyframes arrive { from { opacity: 0; filter: blur(10px); transform: translateY(18px); } to { opacity: 1; filter: none; transform: none; } }
.hero2 .team, .hero2 h1, .hero2 .hero-sub, .hero2 .pub-cta, .hero2 .sub-note { animation: arrive 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero2 h1 { animation-delay: 80ms; } .hero2 .hero-sub { animation-delay: 200ms; } .hero2 .pub-cta { animation-delay: 320ms; } .hero2 .sub-note { animation-delay: 420ms; }
.team i { animation: pop 520ms cubic-bezier(0.3, 1.4, 0.5, 1) both; } .team i:nth-child(2) { animation-delay: 60ms; } .team i:nth-child(3) { animation-delay: 120ms; } .team i:nth-child(4) { animation-delay: 180ms; }
.team i:nth-child(5) { animation-delay: 240ms; } .team i:nth-child(6) { animation-delay: 300ms; } .team i:nth-child(7) { animation-delay: 360ms; }
@keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }

/* A beam runs round the card that matters. */
.stage-card, .auth-grid .form, .shot > div { position: relative; }
.stage-card::after, .auth-grid .form::after, .shot > div::after { content: ""; position: absolute; inset: -1.5px; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--turn), transparent 0 62%, var(--mint) 78%, var(--data) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: turn-round 7s linear infinite; }
@keyframes turn-round { to { --turn: 360deg; } }

/* The main button catches the light, and its arrow leans forward under the pointer. */
.btn-big.btn-primary { position: relative; overflow: hidden; gap: 10px; }
.btn-big.btn-primary::before { content: "→"; order: 2; font-size: 1.05em; line-height: 1; transition: transform 180ms ease; }
.btn-big.btn-primary:hover::before { transform: translateX(5px); }
.btn-big.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.32) 50%, transparent 62%); transform: translateX(-130%); animation: glint 5s ease-in-out infinite; pointer-events: none; }
@keyframes glint { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.btn { transition: transform 120ms ease, background-color 140ms ease, box-shadow 140ms ease, border-color 140ms ease; }
.btn:active { transform: scale(0.97); }
.app .btn-primary:hover, .auth .btn-primary:hover { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--text) 70%, transparent); }
.in { transition: border-color 140ms ease, box-shadow 140ms ease; }
.in:focus-visible { outline: none; border-color: var(--data); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 60%, transparent); }

/* What Ensemble holds, passing slowly. */
.marquee { margin-top: 8px; padding: 22px 0; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: pass 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; font-family: var(--serif); font-size: 30px; line-height: 36px; white-space: nowrap; }
.marquee-item i { font-size: 16px; }
@keyframes pass { to { transform: translateX(-50%); } }

/* A light under the pointer. */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 240ms ease; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--mint) 46%, transparent), transparent 62%); }
.spot:hover::before { opacity: 1; }
.tour-item.spot::before { z-index: 0; } .tour-item > * { position: relative; z-index: 1; }

/* The sentence comes up word by word as it is read. Without script every word is plain. */
.rw { opacity: clamp(0.16, calc(var(--p, 1) * (var(--n, 1) + 6) - var(--i, 0)), 1); transition: opacity 180ms linear; }

/* People and agents, joined to Ensemble. */
.beams { position: relative; aspect-ratio: 520 / 200; margin-bottom: 20px; }
.beams svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.beam-rail { fill: none; stroke: var(--rule); stroke-width: 2; vector-effect: non-scaling-stroke; }
.beam-run { fill: none; stroke: var(--data); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 16 84; stroke-dashoffset: 100; animation: run 3.2s linear infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes run { to { stroke-dashoffset: 0; } }
.beam-node { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 5px var(--soft); }
.beam-hub { left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--deep); color: var(--mint); box-shadow: 0 0 0 6px var(--soft), var(--lift); }
.beam-hub .mark { width: 36px; height: 36px; color: var(--mint); }

/* Inside the app: rows arrive in turn, bars fill, tiles lift. Never the chat, which refreshes by itself. */
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.app .sec .rows:not(.chat):not(.replies) > li { animation: row-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.app .sec .rows:not(.chat) > li:nth-child(2) { animation-delay: 45ms; } .app .sec .rows:not(.chat) > li:nth-child(3) { animation-delay: 90ms; } .app .sec .rows:not(.chat) > li:nth-child(4) { animation-delay: 135ms; }
.app .sec .rows:not(.chat) > li:nth-child(5) { animation-delay: 180ms; } .app .sec .rows:not(.chat) > li:nth-child(n + 6) { animation-delay: 225ms; }
.app .kt { animation: row-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; } .app .kt:nth-child(2) { animation-delay: 60ms; } .app .kt:nth-child(3) { animation-delay: 120ms; } .app .kt:nth-child(4) { animation-delay: 180ms; }
.app h1 { animation: arrive 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }
.track i, .t-bar i, .ex-bar i, .over { transform-origin: left center; animation: fill 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.app .nav-item { position: relative; }
.app .nav-item:not(.is-active)::after { content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--data); transition: height 160ms ease, margin-top 160ms ease; }
.app .nav-item:not(.is-active):hover::after { height: 16px; margin-top: -8px; }

@media (prefers-reduced-motion: reduce) {
  .hero2 .team, .hero2 h1, .hero2 .hero-sub, .hero2 .pub-cta, .hero2 .sub-note, .team i, .app h1, .app .kt, .app .sec .rows > li, .track i, .t-bar i, .ex-bar i, .over { animation: none !important; }
  .stage-card::after, .auth-grid .form::after, .shot > div::after, .btn-big.btn-primary::after { animation: none; }
  .stage-card::after, .auth-grid .form::after, .shot > div::after { display: none; }
  .marquee-track { animation: none; } .beam-run { animation: none; stroke-dasharray: none; opacity: 0.5; }
  .btn:active { transform: none; }
}
@media (max-width: 760px) {
  .marquee { padding: 16px 0; } .marquee-item { font-size: 22px; line-height: 28px; padding: 0 18px; gap: 10px; } .marquee-item i { font-size: 12px; }
  .beam-node { width: 38px; height: 38px; font-size: 12px; } .beam-hub { width: 60px; height: 60px; border-radius: 18px; } .beam-hub .mark { width: 28px; height: 28px; }
}
@media print { .marquee, .beams { display: none !important; } }
.beam-hub .mark { position: static; display: block; margin: 0; flex: none; }
.beam-hub { display: flex; align-items: center; justify-content: center; }

/* ====================================================================================================
   THE SYSTEM, locked on 26 November 2026 after the Creative Director's review.
   Spacing 4 8 12 16 24 32 48 64 96 128. Radii: 8 controls and chips, 16 surfaces, 999 people.
   Elevation: 0 = a 1px line, 1 = a surface, 2 = what floats. One button family in three heights
   (32, 40, 48), one field height per place (40 in the app, 48 on the site and when signing in).
   Everything below overrides the earlier passes; where it and they disagree, this is right.
   ==================================================================================================== */
:root {
  --card: #ffffff; --line: rgb(28 30 26 / 0.10); --line-strong: rgb(28 30 26 / 0.18); --ink-65: rgb(28 30 26 / 0.66); --ink-55: rgb(28 30 26 / 0.58);
  --e1: 0 1px 2px rgb(28 30 26 / 0.06), 0 0 0 1px rgb(28 30 26 / 0.08); --e2: 0 12px 32px -8px rgb(18 64 43 / 0.18), 0 0 0 1px rgb(28 30 26 / 0.06);
  --primary: #12402b; --primary-ink: #ffffff; --radius-control: 8px; --radius-chip: 8px; --lift: var(--e2); --control-height: 40px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --card: #171916; --line: rgb(243 245 240 / 0.11); --line-strong: rgb(243 245 240 / 0.22); --ink-65: rgb(243 245 240 / 0.7); --ink-55: rgb(243 245 240 / 0.6);
  --e1: 0 0 0 1px rgb(243 245 240 / 0.09); --e2: 0 16px 40px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(243 245 240 / 0.1); --primary: #a6e3c3; --primary-ink: #0f3323; } }
:root[data-theme="dark"] {
  --card: #171916; --line: rgb(243 245 240 / 0.11); --line-strong: rgb(243 245 240 / 0.22); --ink-65: rgb(243 245 240 / 0.7); --ink-55: rgb(243 245 240 / 0.6);
  --e1: 0 0 0 1px rgb(243 245 240 / 0.09); --e2: 0 16px 40px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(243 245 240 / 0.1); --primary: #a6e3c3; --primary-ink: #0f3323; }

/* Figures line up, everywhere. */
.num, .r-fig, .r-meta, .fig td, .fig th, .answer, .t-value, .brow span, .cell, output { font-variant-numeric: tabular-nums; }

/* One button family. */
.btn, .btn.btn-primary, .btn.btn-outline { height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.btn-ghost, .btn-outline, .checks .btn { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--control); background: var(--card); }
.checks li:first-child .btn { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.r-actions .btn, .rows .btn, .team-edit .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-big, .btn-big.btn-primary { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
.band-deep .btn-primary { background: var(--deep-ink); color: var(--deep); }
.app .form .btn, .app .form-actions .btn, .app .sec .btn { width: auto; }
/* An underlined word that acts is a small quiet button. */
.app .linkish { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-65); text-decoration: none; transition: background 120ms ease, color 120ms ease; }
.app .linkish:hover { background: rgb(28 30 26 / 0.06); color: var(--text); }
.app .me .linkish { height: 24px; padding: 0 6px; margin-left: -6px; }

/* One field. */
.in, .form .in, .inline-form .in { height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background-color: var(--card); font-size: 15px; }
.app .in, .app .form .in, .app .inline-form .in, .app .team-edit .in { height: 40px; }
.in:hover { border-color: var(--control); }
textarea.in, .in.in-area, .app textarea.in, .app .form textarea.in { height: auto; min-height: 136px; padding: 10px 12px; line-height: 22px; }
.app .in, .auth .in { border-radius: 8px; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }
.in:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; box-shadow: none; border-color: var(--line-strong); }

/* One chip, four tones. */
.pill { height: 22px; padding: 0 8px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 500; }
.pill-quiet, .pill-neutral { background: rgb(28 30 26 / 0.06); color: var(--text); padding: 0 8px; }
.pill-now { background: var(--mint); color: var(--mint-ink); }
.pill-positive { background: transparent; color: var(--data); box-shadow: inset 0 0 0 1px var(--data); }
.pill-warning { background: transparent; color: var(--negative); box-shadow: inset 0 0 0 1px var(--negative); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-quiet { background: rgb(243 245 240 / 0.1); } }
:root[data-theme="dark"] .pill-quiet { background: rgb(243 245 240 / 0.1); }

/* People are mint circles, agents are deep squares: the mark, at 28 px. */
.av { width: 28px; height: 28px; font-size: 11px; line-height: 16px; font-weight: 600; }
.av-person { background: var(--mint); color: var(--mint-ink); border-radius: 999px; }
.av-agent { background: var(--deep); color: var(--mint); border-radius: 8px; box-shadow: none; }
.checks .av, .beam-node.av { width: 32px; height: 32px; font-size: 12px; }

/* ---------- the app ---------- */
.app { background-image: none; }
.app .canvas { padding: 0 48px 80px; border-radius: 16px; box-shadow: var(--e1); }
.app .side .scope, .app .me { border-radius: 12px; box-shadow: var(--e1); }
.app .nav-item { height: 36px; border-radius: 8px; font-size: 14px; }
.appbar { position: sticky; top: 12px; z-index: 6; display: flex; align-items: center; gap: 16px; height: 56px; margin: 0 -48px 32px; padding: 0 48px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px 16px 0 0; }
.appbar-where { min-width: 120px; font-size: 14px; font-weight: 600; }
.appbar-search { flex: 1; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; background: rgb(28 30 26 / 0.05); color: var(--ink-55); }
.appbar-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.appbar-search:focus-within { outline: 2px solid var(--data); outline-offset: 2px; background: var(--card); }
.appbar-new { position: relative; margin-left: auto; }
.appbar-new summary { list-style: none; height: 36px; padding: 0 12px 0 10px; gap: 6px; cursor: pointer; } .appbar-new summary::-webkit-details-marker { display: none; }
.appbar-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: var(--e2); display: grid; }
.appbar-menu a { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; } .appbar-menu a:hover { background: rgb(28 30 26 / 0.06); }

.app h1 { margin-top: 0; max-width: 880px; font-size: 40px; line-height: 44px; letter-spacing: -0.014em; }
.app .crumbs { font-size: 13px; line-height: 20px; margin-bottom: 8px; }
.app .sub { margin-top: 8px; max-width: 720px; font-size: 15px; line-height: 24px; color: var(--ink-65); }

/* A section is a heading and one surface. Rows are lines of it, never cards inside a panel. */
.app .sec, .app h1 + .sec, .app .sub + .sec, .app .kts + .sec { margin-top: 32px; padding: 0; border: 0; border-radius: 0; background: none; }
.app .sec-head { justify-content: flex-start; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.app .sec h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.app .sec-head > .num { display: inline; min-width: 0; height: auto; padding: 0; background: none; color: var(--ink-55); font-size: 13px; line-height: 20px; font-weight: 400; }
.app .sec-head > span:not(.num):not(.setup-bar), .app .sec-head > a { margin-left: auto; font-size: 13px; color: var(--ink-55); }
.app .sec .rows { display: block; gap: 0; padding: 0; border-radius: 16px; background: var(--card); box-shadow: var(--e1); overflow: hidden; }
.app .sec .rows li, .app .sec .rows li:hover { min-height: 56px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app .sec .rows li:first-child { border-top: 0; }
.app .sec .rows li:hover { background: rgb(28 30 26 / 0.025); }
.app .sec .sub-note { padding: 12px 0 0; }
.app .sec > .fig, .app .sec .sheet, .app .sheet-form, .app .sec > form.form, .app .canvas > .col > .form.narrow, .app .canvas > .col > form.form { border-radius: 16px; background: var(--card); box-shadow: var(--e1); }
.app .sec > form.form, .app .sheet-form, .app .canvas > .col > .form.narrow, .app .canvas > .col > form.form { padding: 24px; border: 0; margin-top: 0; }
.app .canvas > .col > .form.narrow, .app .canvas > .col > form.form, .app .sheet-form { margin-top: 32px; }
.app .inline-form { padding: 0; background: none; box-shadow: none; }
.app .narrow-sec { max-width: 720px; }
.app .tabs { margin-top: 24px; }

/* Where the job stands and what it keeps: the two places with colour, both on the 16 px surface. */
.app .thread { margin-top: 24px; padding: 24px; border-radius: 16px; }
.app .sec:has(> .answer) { padding: 24px; border-radius: 16px; background: var(--mint); color: var(--mint-ink); }
.app .answer { margin-top: 8px; font-size: 48px; line-height: 52px; }
.app .sec:has(> .brow), .app .sec:has(> .bhead) { padding: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--e1); }

/* Today: what waits, in one strip. */
.kts { display: flex; gap: 0; margin-top: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--e1); overflow: hidden; }
.kt { flex: 1; min-width: 0; border-left: 1px solid var(--line); } .kt:first-child { border-left: 0; }
.kt-in, .kt-a .kt-in, .kt-b .kt-in, .kt-c .kt-in, .kt-d .kt-in, .kt.is-zero .kt-in { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; height: 64px; padding: 0 20px; border-radius: 0; background: none; color: var(--text); box-shadow: none; align-items: center; }
.kt-n, .kt-a .kt-n { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; color: var(--data); }
.kt.is-zero .kt-n { color: var(--ink-55); } .kt.is-zero .kt-l { color: var(--ink-55); }
.kt-l { font-size: 13px; line-height: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.kt-in:hover { transform: none; background: rgb(28 30 26 / 0.03); }
.setup-bar { flex: none; width: 120px; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; align-self: center; } .setup-bar i { display: block; height: 100%; background: var(--data); }
.setup summary { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.setup summary::-webkit-details-marker { display: none; } .setup[open] summary { display: none; }

/* Signing in: the card sits at level 1. */
.auth-grid .form { box-shadow: var(--e1); border-radius: 16px; padding: 32px; }
.auth-grid h1 { font-size: 72px; line-height: 72px; letter-spacing: -0.01em; }

/* ---------- the public site ---------- */
.pub-bar .btn { height: 40px; }
.pub-wide .hero-sub, .hero2 .hero-sub { font-size: 20px; line-height: 30px; }
.hero2 h1 { font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.pub-sec > h2, .pub-two h2, .band-soft .pub-two h2, .display, .pub-sec > h2.display { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 48px; letter-spacing: -0.012em; }
.tour-item, .tour-item:nth-child(odd), .tour-item:nth-child(even) { padding: 32px; border-radius: 16px; }
.tour-item h3 { font-size: 28px; line-height: 36px; } .tour-item > p { font-size: 15px; line-height: 24px; }
.frag { padding-top: 32px; } .frag > div { border-radius: 12px; box-shadow: var(--e1); min-height: 0; }
.rows-panel, .rows.panel, .stage-card, .shot > div, .band-job .screen { border-radius: 16px; box-shadow: var(--e2); }
.seg, .seg-quote, .seg-margin { border-radius: 16px; padding-left: 20px; }
.stepped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; }
.stepped > h2 { grid-column: 1 / -1; grid-row: auto; max-width: 720px; margin-bottom: 48px; font-size: 44px; line-height: 48px; }
.stepped .tile, .tile-a, .tile-b, .tile-c { grid-column: auto; grid-row: auto; height: auto; aspect-ratio: auto; margin-top: 0; padding: 24px 0 0; border-radius: 0; background: none; color: var(--text); border-top: 1px solid var(--border); display: block; text-align: start; }
.stepped .tile .fact-n, .tile-a .fact-n { font-size: 64px; line-height: 64px; color: var(--data); }
.stepped .tile-t { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--ink-65); max-width: none; } .stepped .tile-t b { font-size: 16px; line-height: 24px; color: var(--text); }
.faq-sec .faq { border-radius: 16px; } .faq-sec .faq summary { min-height: 64px; font-size: 18px; }
.band-end h2 { font-size: 72px; line-height: 72px; }
.index-name { font-size: 28px; line-height: 36px; } .next-name { font-size: 44px; line-height: 48px; }
.site-foot { padding-top: 64px; }
.foot-brand .btn { height: 40px; }

@media (max-width: 1000px) {
  .app .canvas { padding: 24px 16px 96px; border-radius: 0; box-shadow: none; } .appbar { display: none; }
  .app h1 { font-size: 32px; line-height: 36px; }
  .kts { flex-wrap: wrap; } .kt { flex: 1 1 50%; border-top: 1px solid var(--line); } .kt:nth-child(-n + 2) { border-top: 0; } .kt:nth-child(odd) { border-left: 0; } .kt-in { height: 56px; padding: 0 14px; }
  .app .sec > form.form, .app .sheet-form, .app .canvas > .col > .form.narrow, .app .canvas > .col > form.form, .app .sec:has(> .answer), .app .sec:has(> .brow), .app .thread { padding: 16px; }
  .stepped { grid-template-columns: 1fr; row-gap: 32px; }
  .auth-grid h1 { font-size: 44px; line-height: 48px; }
}
@media (max-width: 760px) {
  .btn, .btn.btn-primary, .btn.btn-outline, .r-actions .btn, .rows .btn { min-height: 44px; }
  .app .in, .app .form .in, .app .inline-form .in { height: 44px; }
  .hero2 h1 { font-size: 40px; line-height: 44px; }
  /* On a phone, headings, short blocks and calls to action are centred; reading text stays at the start. */
  .hero2-text, .pub-wide > .hero, .pub-sec > h2, .pub-sec > .pub-lead, .band-deep h2, .band-deep .pub-lead, .stepped > h2, .faq-head, .tour-more { text-align: center; }
  .hero2 .hero-sub, .pub-wide .hero-sub, .pub-sec > .pub-lead { margin-left: auto; margin-right: auto; }
  .hero2 .pub-cta, .pub-wide > .hero .pub-cta { justify-content: center; }
  .pub-sec > h2, .pub-two h2, .band-soft .pub-two h2, .display, .pub-sec > h2.display, .stepped > h2 { font-size: 32px; line-height: 36px; }
  .band-end h2 { font-size: 40px; line-height: 44px; }
  .tour-item, .tour-item:nth-child(odd), .tour-item:nth-child(even) { padding: 24px 20px; border-radius: 16px; }
}
.app .sec > form:not(.form), .app .sec > p { margin-top: 12px; }
/* Settings and account: one 720 px column; each block is one surface. The block that deletes is lined in red. */
.app .form.narrow { max-width: 720px; }
.app .narrow-sec, .app .sub + .narrow-sec, .app h1 + .narrow-sec { max-width: 720px; margin-top: 24px; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--e1); }
.app .narrow-sec > form.form, .app .narrow-sec > form { padding: 0; box-shadow: none; background: none; border-radius: 0; margin-top: 16px; }
.app .narrow-sec > p { margin-top: 8px; }
.app #close-h { color: var(--negative); }
.app .narrow-sec[aria-labelledby="close-h"] { box-shadow: 0 0 0 1px var(--negative); }
.app .narrow-sec[aria-labelledby="close-h"] .btn { border-color: var(--negative); color: var(--negative); }
/* A channel: what you can do to a message shows when you are on it; the composer spans the thread. */
.app .msg-actions { display: inline-flex; gap: 4px; margin: 4px 8px 0 -8px; vertical-align: top; }
.app .msg-write, .app .canvas > .col > form.form.msg-write { max-width: none; }
.app .msg-write textarea.in { min-height: 88px; }
@media (hover: hover) { .app .msg .msg-actions { opacity: 0; transition: opacity 120ms ease; } .app .msg:hover > .msg-main > .msg-actions, .app .msg .msg-actions:focus-within { opacity: 1; } }
/* The sheet holds the bar and the page. */
.app .sheet { min-height: calc(100vh - 24px); background: var(--ground); border-radius: 16px; box-shadow: var(--e1); }
.app .canvas { min-height: 0; padding: 32px 48px 80px; background: none; border-radius: 0; box-shadow: none; }
.appbar { top: 0; margin: 0; }
@media (max-width: 1000px) { .app .sheet { min-height: 0; border-radius: 0; box-shadow: none; } .app .canvas { padding: 24px 16px 96px; } }
@media (max-width: 760px) {
  /* On a phone an action takes the width of its row, under the thumb. */
  .app .form .btn, .app .form-actions .btn, .app .sec .rows .btn, .app .sec .checks .btn, .app .sheet-form .btn { width: 100%; }
  .kt-l { white-space: normal; overflow: visible; } .kt-in { height: auto; min-height: 60px; padding: 8px 14px; }
}

/* ---------- Today as a command centre; pictures of money (26 November 2026) ---------- */

.card { padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--e1); }

 
.card-fig { margin-top: 8px; font-family: var(--serif); font-size: 40px; line-height: 44px; letter-spacing: -0.014em; }
/* A week of hours: seven bars on one scale, the tallest day being the full height. */
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.wk li { display: grid; justify-items: center; gap: 4px; }
.wk-bar { display: flex; align-items: flex-end; width: 100%; height: 72px; border-radius: 6px; background: rgb(28 30 26 / 0.04); overflow: hidden; }
.wk-bar i { display: block; width: 100%; background: var(--data); border-radius: 6px 6px 0 0; } .wk-bar i.is-none { background: var(--track); }
.wk-day { font-size: 12px; line-height: 16px; color: var(--ink-55); } .wk-h { min-height: 16px; font-size: 12px; line-height: 16px; font-weight: 500; }
.kv { margin: 12px 0 0; } .kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-size: 13px; color: var(--ink-65); } .kv dd { margin: 0; font-size: 15px; font-weight: 500; } .kv-sub { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--ink-55); } .kv .is-neg { color: var(--negative); }
.jobs-mini { margin-top: 8px; } .jobs-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); } .jobs-mini li:first-child { border-top: 0; }
.jobs-mini a { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jobs-mini .meter { grid-column: 1 / -1; }
/* How much of a budget is used: a bar that turns red once it is past the end. */
.meter { display: block; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 6px; background: var(--data); } .meter i.is-over { background: var(--negative); }
.meter-wide { display: inline-block; width: 120px; vertical-align: middle; } .meter-n { margin-left: 10px; font-size: 13px; color: var(--ink-65); }
.sendback { display: inline-block; } .sendback summary { list-style: none; cursor: pointer; } .sendback summary::-webkit-details-marker { display: none; }
.sendback[open] { flex-basis: 100%; } .sendback[open] summary { display: none; } .sendback-in { display: flex; gap: 8px; align-items: center; }
.app .task-form { flex-wrap: wrap; row-gap: 8px; } .sendback-in .in { min-width: 240px; }
/* Three figures above a list of money. */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; border-radius: 16px; background: var(--card); box-shadow: var(--e1); overflow: hidden; }
.figs > div { padding: 20px 24px; border-left: 1px solid var(--line); } .figs > div:first-child { border-left: 0; }
.figs dt { font-size: 13px; line-height: 20px; color: var(--ink-65); } .figs dd { margin: 4px 0 0; font-family: var(--serif); font-size: 32px; line-height: 36px; letter-spacing: -0.012em; }
.figs .is-answer { background: var(--mint); color: var(--mint-ink); } .figs .is-answer dt { color: var(--mint-ink); } .figs-sub { font-family: var(--font); font-size: 14px; font-weight: 500; }
.bullet { position: relative; display: block; height: 8px; max-width: 360px; margin-top: 10px; border-radius: 8px; background: var(--mint); }
.bullet i { display: block; height: 100%; border-radius: 8px 0 0 8px; background: var(--data); } .bullet.is-loss i { background: var(--negative); border-radius: 8px; }
.bullet b { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--text); }
.app .sec-head .legend { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--ink-65); }
.sw-keep { background: var(--mint); } .sw-tick { width: 2px; height: 12px; border-radius: 0; background: var(--text); }
.jobs-table td, .jobs-table th { vertical-align: middle; text-align: left; } .jobs-table td.num, .jobs-table th.num { text-align: right; }

@media (max-width: 760px) {
   
  .figs { grid-template-columns: 1fr; } .figs > div { border-left: 0; border-top: 1px solid var(--line); padding: 16px; } .figs > div:first-child { border-top: 0; }
  .sendback-in { flex-direction: column; align-items: stretch; } .sendback-in .in { min-width: 0; }
  .bullet { max-width: none; } .app .sec-head .legend { flex-wrap: wrap; margin-left: 0; }
}

/* ---------- documents: a quote and an invoice are sheets of paper, in the app and for the client ---------- */
.app .sec:has(.qe-row), .app .sec:has(> .ql-lines), .app .sec:has(.paper-block), .paper, .ql-main { padding: 32px; border-radius: 16px; background: var(--card); box-shadow: var(--e1); }
.app .sec:has(> .ql-lines) .rows, .app .sec:has(.paper-block) .rows, .ql-main .rows { border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.app .sec:has(> .ql-lines) .rows li, .app .sec:has(.paper-block) .rows li, .ql-main .rows li { padding-left: 0; padding-right: 0; }
.app .sec:has(> .ql-lines) .rows li:hover, .app .sec:has(.paper-block) .rows li:hover { background: none; }
/* The editor: a line's description is one quiet row under its name, not a block. */
.app .qe-row textarea.in, .app .qe-what textarea.in { min-height: 40px; height: 40px; padding: 9px 12px; line-height: 20px; resize: vertical; }
.app .qe-row { padding: 14px 0; border-top-color: var(--line); } .app .qe-row .in { background-color: var(--ground); }
.app .qe-what { display: grid; gap: 6px; }
/* For the client: the page is a desk, the quote or the invoice a sheet on it, the decision a card beside it. */
body:has(> main.ql), body:has(> .ql) { background: var(--soft); }
.ql-decision { padding: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--e2); border-top: 0; position: sticky; top: 24px; }
.ql .sec { border-top: 0; } .ql-main > .sec:first-child { margin-top: 0; padding-top: 0; }
.ql-main .sec + .sec { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .app .sec:has(.qe-row), .app .sec:has(> .ql-lines), .app .sec:has(.paper-block), .paper, .ql-main { padding: 20px 16px; } .ql-decision { position: static; padding: 20px 16px; } }
@media print { body:has(> main.ql), body:has(> .ql) { background: none; } .paper, .ql-main, .ql-decision { padding: 0; box-shadow: none; background: none; border-radius: 0; } }

/* ---------- an empty screen says what to do next, and the mark keeps it company ---------- */
.app .col:has(> .lead-action) { position: relative; min-height: 560px; }
.app .col:has(> .lead-action)::before, .app .col:has(> .lead-action)::after { content: ""; position: absolute; bottom: 0; pointer-events: none; }
.app .col:has(> .lead-action)::before { left: 0; width: 220px; height: 220px; border-radius: 50%; background: var(--deep); }
.app .col:has(> .lead-action)::after { left: 140px; bottom: -30px; width: 200px; height: 200px; border-radius: 44px; background: var(--mint); }
.app .lead-action { margin-top: 24px; }
.nil { color: var(--ink-55); font-weight: 400; }
/* One sheet, not a sheet inside a sheet; and a table's short cells stay on one line. */
.app .sec:has(.paper-block) .paper, .app .sec .paper { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.jobs-table td { white-space: nowrap; } .jobs-table th[scope="row"] { white-space: normal; width: 46%; }

/* ====================================================================================================
   THE GLASS LAYER, merged on 26 November 2026 (it was glass.css). It comes last and wins over everything above.
   ==================================================================================================== */
/* ====================================================================================================
   GLASS, the platform's look since 26 November 2026 (see DESIGN.md, first section).
   Frosted panels float over a deep, softly lit ground; inside them, darker tiles hold the work.
   Loaded after ensemble.css and wins over it. Colour stays Ensemble's: mint is the action, deep
   green and mint are people and agents, red is only the failing fact.
   Blur is spent on the few large panels only (sidebar, sheet, menus, phone bar); tiles are plain
   translucent fills, so a long list costs nothing to draw.
   ==================================================================================================== */

/* ---------- type: Geist for words, Geist Mono for figures (SIL Open Font Licence, hosted here) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens: light first, then dark (the reference is dark; light is its daylight version) ---------- */
:root {
  --font: "Geist", -apple-system, "SF Pro Text", "Segoe UI Variable Text", system-ui, sans-serif;
  --serif: var(--font); /* the serif of the first design is gone everywhere */
  --g-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --g-base: #dcdbd7;
  --g-light-1: rgb(255 255 255 / 0.85);   /* daylight through a window, top left */
  --g-light-2: rgb(206 214 226 / 0.6);    /* cool, right */
  --g-light-3: rgb(236 214 182 / 0.55);   /* a warm lamp, bottom */
  --g-panel: rgb(255 255 255 / 0.5);
  --g-panel-edge: rgb(255 255 255 / 0.85);
  --g-panel-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 30px 80px -30px rgb(30 30 30 / 0.3), 0 0 0 1px rgb(0 0 0 / 0.05);
  --g-tile: rgb(255 255 255 / 0.6);
  --g-tile-edge: rgb(0 0 0 / 0.06);
  --g-tile-hover: rgb(255 255 255 / 0.85);
  --g-well: rgb(0 0 0 / 0.05);
  --g-chip: rgb(0 0 0 / 0.06);
  --g-active: rgb(255 255 255 / 0.92);
  --g-active-ink: #111214;
  --g-float: rgb(255 255 255 / 0.82);
  --g-blur: blur(30px) saturate(140%);
  --g-blue: #0a66e4; --g-green: #1f9d48; --g-red: #e5372c;
  --primary: var(--g-blue); --primary-ink: #ffffff;
  --text: #111214; --muted: #5c5f66; --ink-65: rgb(17 18 20 / 0.68); --ink-55: rgb(17 18 20 / 0.6);
  --line: rgb(0 0 0 / 0.08); --line-strong: rgb(0 0 0 / 0.16); --border: var(--line-strong); --rule: var(--line);
  --data: var(--g-blue); --track: rgb(0 0 0 / 0.08); --negative: var(--g-red); --positive: var(--g-green);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --g-base: #111110;
  --g-light-1: rgb(170 180 195 / 0.34);
  --g-light-2: rgb(70 72 80 / 0.40);
  --g-light-3: rgb(170 110 50 / 0.38);
  --g-panel: rgb(120 120 122 / 0.26);
  --g-panel-edge: rgb(255 255 255 / 0.16);
  --g-panel-shadow: 0 1px 0 rgb(255 255 255 / 0.10) inset, 0 40px 100px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.05);
  --g-tile: rgb(48 48 52 / 0.55);
  --g-tile-edge: rgb(255 255 255 / 0.06);
  --g-tile-hover: rgb(60 60 64 / 0.7);
  --g-well: rgb(20 20 22 / 0.55);
  --g-chip: rgb(255 255 255 / 0.1);
  --g-active: rgb(255 255 255 / 0.16);
  --g-active-ink: #ffffff;
  --g-float: rgb(58 58 62 / 0.75);
  --g-blue: #1a72f0; --g-green: #34c759; --g-red: #ff453a;
  --primary: var(--g-blue); --primary-ink: #ffffff; --data: var(--g-blue); --positive: var(--g-green); --negative: var(--g-red);
  --text: #ffffff; --muted: rgb(255 255 255 / 0.62); --ink-65: rgb(255 255 255 / 0.68); --ink-55: rgb(255 255 255 / 0.6);
  --line: rgb(255 255 255 / 0.08); --line-strong: rgb(255 255 255 / 0.18); --border: var(--line-strong); --rule: var(--line);
  --track: rgb(255 255 255 / 0.1);
} }
:root[data-theme="dark"] {
  --g-base: #111110;
  --g-light-1: rgb(170 180 195 / 0.34);
  --g-light-2: rgb(70 72 80 / 0.40);
  --g-light-3: rgb(170 110 50 / 0.38);
  --g-panel: rgb(120 120 122 / 0.26);
  --g-panel-edge: rgb(255 255 255 / 0.16);
  --g-panel-shadow: 0 1px 0 rgb(255 255 255 / 0.10) inset, 0 40px 100px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.05);
  --g-tile: rgb(48 48 52 / 0.55);
  --g-tile-edge: rgb(255 255 255 / 0.06);
  --g-tile-hover: rgb(60 60 64 / 0.7);
  --g-well: rgb(20 20 22 / 0.55);
  --g-chip: rgb(255 255 255 / 0.1);
  --g-active: rgb(255 255 255 / 0.16);
  --g-active-ink: #ffffff;
  --g-float: rgb(58 58 62 / 0.75);
  --g-blue: #1a72f0; --g-green: #34c759; --g-red: #ff453a;
  --primary: var(--g-blue); --primary-ink: #ffffff; --data: var(--g-blue); --positive: var(--g-green); --negative: var(--g-red);
  --text: #ffffff; --muted: rgb(255 255 255 / 0.62); --ink-65: rgb(255 255 255 / 0.68); --ink-55: rgb(255 255 255 / 0.6);
  --line: rgb(255 255 255 / 0.08); --line-strong: rgb(255 255 255 / 0.18); --border: var(--line-strong); --rule: var(--line);
  --track: rgb(255 255 255 / 0.1);
}
body:has(> .app), body:has(> .auth) { font-family: var(--font); color: var(--text); }

/* ---------- the ground: soft light in a dark room, drawn once and fixed ---------- */
body:has(> .app), body:has(> .auth) { background: var(--g-base); }
body:has(> .app)::before, body:has(> .auth)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 8% 0%, var(--g-light-1), transparent 70%),
    radial-gradient(50% 60% at 100% 30%, var(--g-light-2), transparent 70%),
    radial-gradient(55% 45% at 45% 110%, var(--g-light-3), transparent 70%),
    var(--g-base);
}

/* ---------- the frame, as in the reference: an icon rail beside one large glass panel, a tab bar under it ---------- */
/* People and agents lose the brand's mint: every tint is neutral glass, as in the reference. */
.app, .auth { --mint: rgb(255 255 255 / 0.16); --mint-ink: #ffffff; --deep: rgb(255 255 255 / 0.1); }
:root:not([data-theme="dark"]) .app, :root:not([data-theme="dark"]) .auth { --mint: rgb(0 0 0 / 0.08); --mint-ink: #111214; --deep: rgb(0 0 0 / 0.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app, :root:not([data-theme="light"]) .auth { --mint: rgb(255 255 255 / 0.16); --mint-ink: #ffffff; --deep: rgb(255 255 255 / 0.1); } }
.app .av, .appbar-me .av { background: var(--g-chip); color: var(--text); box-shadow: 0 0 0 1px var(--g-panel-edge) inset; }
.app .col:has(> .lead-action)::before, .app .col:has(> .lead-action)::after { display: none; }
.app .col:has(> .lead-action) { min-height: 0; }

.app { display: grid; grid-template-columns: 60px minmax(0, 1240px); justify-content: center; align-items: start; gap: 20px; padding: 40px 32px 120px; background: none; }
/* The rail: icons only, the name of each place on hover and for a screen reader. */
.app .side {
  position: sticky; top: 50vh; transform: translateY(-50%); align-self: start; margin-top: 50vh;
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-height: calc(100vh - 48px); overflow-y: auto;
  width: 60px; height: auto; min-height: 0; padding: 8px 0; border: 0; border-radius: 999px;
  background: var(--g-panel); box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); scrollbar-width: none;
}
.app .side::-webkit-scrollbar { display: none; }
.app .side .brand { justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: var(--g-well); font-size: 0; }
.app .side .brand .mark { width: 22px; height: 22px; color: var(--text); }
.app .side .scope, .app .side .me, .app .side .nav-group { display: none; }
.app .side nav, .app .side .nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app .side .nav + .nav-group + .nav, .app .side .nav ~ .nav { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); }
.app .side .nav-item { justify-content: center; width: 40px; height: 40px; padding: 0; gap: 0; border-radius: 999px; color: var(--ink-65); }
.app .side .nav-item .ic { width: 20px; height: 20px; }
.app .side .nav-item.is-active, .app .side .nav-item.is-active .ic { color: var(--g-active-ink); background: var(--g-active); }
.app .side .nav-item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* The panel. */
.app div.sheet {
  position: relative; min-height: calc(100vh - 160px); border-radius: 40px;
  background: var(--g-panel); box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
/* Top right, as in the reference: the controls in one row of pills, then the person. */
.appbar { position: absolute; top: 32px; right: 32px; z-index: 6; display: flex; align-items: center; gap: 8px; height: auto; padding: 0; margin: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.appbar-where { display: none; }
.appbar-search { width: 240px; max-width: none; flex: none; height: 44px; margin: 0; padding: 0 14px; border-radius: 999px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.appbar-search:focus-within { background: var(--g-tile-hover); }
.appbar-new { margin-left: 0; }
.appbar-new summary { height: 44px; padding: 0 18px 0 14px; border-radius: 999px; }
.appbar-me { position: relative; }
.appbar-me summary { list-style: none; cursor: pointer; display: block; border-radius: 999px; } .appbar-me summary::-webkit-details-marker { display: none; }
.appbar-me .av { width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 2px var(--g-panel-edge), 0 0 0 4px rgb(0 0 0 / 0.15); }
.appbar-me .appbar-menu { min-width: 240px; }
.me-card { display: grid; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.appbar-menu, .tab-sheet {
  border-radius: 22px; padding: 6px; background: var(--g-float); box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.appbar-menu a { border-radius: 14px; } .appbar-menu a:hover { background: var(--g-chip); }
.app .canvas { padding: 32px 32px 104px; }
/* The page's words sit where the reference greets: small grey line, then the large bold one, beside the controls. */
.app .canvas > .col { max-width: none; }
.app .col > .kicker, .app .col > .crumbs { margin: 4px 0 2px; font-size: 14px; line-height: 20px; color: var(--ink-55); max-width: calc(100% - 560px); }
.app .col > h1 { max-width: calc(100% - 560px); min-height: 52px; }
.app .col > .sub { max-width: 720px; }

/* The tab bar: floating under the panel, the places used every day, the current one in a darker pill. */
.tabbar {
  display: flex; position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(calc(-50% + 40px)); width: auto; gap: 4px; padding: 6px; border: 0; border-radius: 999px;
  background: var(--g-float); box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.tabbar > a, .tabbar summary { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.tabbar > a .ic, .tabbar summary .ic { width: 18px; height: 18px; }
.tabbar > a.is-active, .tabbar summary.is-active { background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.tabbar > a:hover, .tabbar summary:hover { background: var(--g-chip); }
.tab-more { position: relative; } .tab-more summary { list-style: none; cursor: pointer; } .tab-more summary::-webkit-details-marker { display: none; }
.tab-sheet { position: absolute; bottom: calc(100% + 10px); right: 0; display: grid; min-width: 200px; }
.tab-sheet a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 14px; font-size: 14px; } .tab-sheet a:hover { background: var(--g-chip); }

/* ---------- the Today grid, as the reference's widgets ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; margin-top: 28px; align-items: start; }
.app .bento > .tile { margin: 0; grid-column: span 6; grid-row: auto; }
.app .bento > .t-3 { grid-column: span 3; } .app .bento > .t-4 { grid-column: span 4; } .app .bento > .t-5 { grid-column: span 5; }
.app .bento > .t-7 { grid-column: span 7; } .app .bento > .t-6 { grid-column: span 6; }  .app .bento > .t-12 { grid-column: 1 / -1; }
.app .kicker { font-size: 14px; line-height: 20px; color: var(--ink-55); }
/* Every tile's corner: its way in, a round dark button with an arrow. */
.app .sec-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.tile-open { margin-left: auto; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--g-well); color: var(--text); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; transition: background 140ms ease; }
.tile-open:hover { background: var(--g-active); }
.tile-open .ic { width: 16px; height: 16px; }
.tile-label { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-55); }
.tile-money .card-fig { margin-top: 2px; }
.kv-sub.is-up { color: var(--g-green); }
/* What waits, counted: four figures in a two-by-two, mono, each one leads to its list. */
.app .tile-counts .kts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.tile-counts .kt { border: 0; }
.tile-counts .kt-in, .tile-counts .kt.is-zero .kt-in { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; height: auto; min-height: 92px; padding: 14px 16px; border-radius: 18px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); }
.tile-counts a.kt-in:hover { background: var(--g-tile-hover); }
.tile-counts .kt-n, .tile-counts .kt-a .kt-n { font-size: 32px; line-height: 36px; color: var(--text); }
.tile-counts .kt.is-zero .kt-n, .tile-counts .kt.is-zero .kt-l { color: var(--ink-55); }
.tile-counts .kt-l { white-space: normal; font-size: 12px; line-height: 16px; color: var(--ink-65); }
/* Bars, as the reference's leave bars: a thick pill, the rest of the track striped. */
.meter, .setup-bar, .bullet { background: repeating-linear-gradient(135deg, var(--track) 0 3px, transparent 3px 8px), var(--g-well); }
.meter { height: 12px; border-radius: 999px; } .meter i { border-radius: 999px; background: var(--g-blue); }
.setup-bar { width: 140px; max-width: 30%; flex: 0 1 140px; height: 10px; border-radius: 999px; } .setup-bar i { border-radius: 999px; background: var(--g-blue); }
.wk { gap: 8px; } .wk-bar { height: 96px; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--track) 0 3px, transparent 3px 8px), var(--g-well); }
.wk-bar i { border-radius: 999px; background: var(--g-blue); } .wk-bar i.is-none { background: transparent; }
.wk-bar { width: 100%; max-width: 32px; margin: 0 auto; }
.app .sec-head { flex-wrap: wrap; row-gap: 6px; } .app .sec-head h2 { min-width: 0; overflow-wrap: anywhere; } .app .sec-head > .tile-open { width: 36px; min-width: 36px; flex: none; margin-left: auto; padding: 0; }
.jobs-mini li { padding: 12px 0; } .jobs-mini .meter { margin-top: 2px; }
/* Rows inside a tile are the reference's approval rows: small pill actions at the right. */
.app .tile .rows .btn, .app .tile .r-actions .btn { height: 32px; padding: 0 14px; font-size: 13px; }
.app .tile .rows li { min-height: 56px; }
.tile-setup details.setup summary { border-radius: 999px; }
/* ---------- type: a bold sans headline, figures set in mono ---------- */
.app h1 { margin-top: 0; font-family: var(--font); font-weight: 600; font-size: 34px; line-height: 40px; letter-spacing: -0.03em; }
.app .crumbs { color: var(--ink-55); }
.app .answer, .card-fig, .figs dd, .kt-n { font-family: var(--g-mono); font-weight: 500; letter-spacing: -0.04em; }
.app .answer { font-size: 44px; line-height: 48px; }
.card-fig { font-size: 32px; line-height: 38px; }
.figs dd { font-size: 28px; line-height: 34px; }
.kt-n, .kt-a .kt-n { font-size: 26px; line-height: 30px; }

/* ---------- tiles: every section is one tile, its heading inside ---------- */
/* Inside a tile, the older surfaces lose their own fill and shadow, so nothing is boxed twice. */
.app .canvas .sec, .app .card, .app .kts, .app .figs, .app .thread, .app .narrow-sec, .app .sec:has(> .answer), .app .sec:has(> .brow), .app .sec:has(> .bhead), .app .canvas > .col > form.form, .app .canvas > .col > .form.narrow, .app .sheet-form {
  --card: transparent; --e1: none;
  margin-top: 16px; padding: 20px; border: 0; border-radius: 24px;
  background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text);
}
.app h1 + .sec, .app .sub + .sec, .app .kts + .sec, .app .sub + .narrow-sec, .app h1 + .narrow-sec { margin-top: 24px; }
.app .sec-head { margin-bottom: 8px; }
.app .sec h2 { font-size: 15px; line-height: 22px; font-weight: 600; }
.app .sec .rows { margin: 0 -20px -8px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.app .sec .rows li, .app .sec .rows li:hover { padding: 12px 20px; border-top: 1px solid var(--line); }
.app .sec .rows li:hover { background: var(--g-chip); }
.app .sec .rows li:last-child { border-radius: 0 0 24px 24px; }
/* A section that only lists keeps its tile; a section of the answer keeps the mint. */
/* The answer is a plain tile like the others: the figure is what stands out, in mono. */
.app .sec:has(> .answer) { background: var(--g-tile); color: var(--text); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.app .sec:has(> .answer) .btn-primary { width: 100%; }
.app .sec:has(> .answer) .answer { color: var(--text); }
.app .sec:has(> .answer) :is(.answer-sub, .sec-head span, .sub-note, p:not(.answer)) { color: var(--ink-65); }
.app .sec:has(> .answer) .answer-sub b { color: var(--g-green); font-weight: 600; }
.app .kv dt { color: var(--ink-65); }
.app .kv .is-total dt, .app .kv .is-total dd { color: var(--text); font-weight: 600; }

.app .kts { padding: 0; overflow: hidden; }
a.kt-in:hover { background: var(--g-chip); }
.app .figs { padding: 0; } .figs .is-answer, .figs .is-answer dt { background: none; color: inherit; } .figs .is-answer dd { color: var(--g-green); }
/* The reference's colour roles: blue acts and measures, green rises, red falls. */
.pill-positive { color: var(--g-green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g-green) 60%, transparent); background: color-mix(in srgb, var(--g-green) 14%, transparent); }
.pill-warning { color: var(--g-red); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g-red) 60%, transparent); background: color-mix(in srgb, var(--g-red) 12%, transparent); }
.pill-now { background: color-mix(in srgb, var(--g-blue) 22%, transparent); color: var(--text); }
.app .brand { font-family: var(--font); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.app .brand .mark, .auth .brand .mark { color: var(--text); }
.auth .brand { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; }
.app .sec h2 { font-weight: 600; letter-spacing: -0.01em; }
.app .r-sub, .app .sub-note, .app .crumbs { color: var(--ink-55); }
.app .thread { padding: 24px; }
.app .narrow-sec[aria-labelledby="close-h"] { box-shadow: 0 0 0 1px var(--negative) inset; }
/* Paper documents stay paper: a light sheet on the glass, as a printed page would be. */
.app .sec:has(.qe-row), .app .sec:has(> .ql-lines), .app .sec:has(.paper-block) { padding: 32px; }

/* ---------- controls: pills ---------- */
.btn, .btn.btn-primary, .btn.btn-outline, .btn-big, .btn-big.btn-primary { border-radius: 999px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, white); }
.btn-ghost, .btn-outline, .checks .btn { background: var(--g-well); border: 0; box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); }
.btn-ghost:hover, .btn-outline:hover { background: var(--g-active); border: 0; }
.app .linkish:hover { background: var(--g-chip); }
.in, .form .in, .inline-form .in, .app .in, .app .form .in, .app .inline-form .in, .app .team-edit .in, .auth .in {
  border: 0; border-radius: 999px; padding: 0 16px; background-color: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text);
}
textarea.in, .in.in-area, .app textarea.in, .app .form textarea.in { border-radius: 18px; padding: 12px 16px; }
select.in { padding-right: 36px; }
.in:hover { box-shadow: 0 0 0 1px var(--line-strong) inset; }
.in:focus-visible { box-shadow: 0 0 0 1px var(--line-strong) inset; }
.app .qe-row .in { background-color: var(--g-well); }
.pill { border-radius: 999px; }
.pill-quiet, .pill-neutral { background: var(--g-chip); }
.meter, .setup-bar, .wk-bar { background: var(--g-well); }

/* ---------- signing in, signing up, and the pages around them ---------- */
/* No site bar. One card in the middle of the screen: the form on the glass at the left, what Ensemble is on a darker tile at the right. */
.auth { display: flex; flex-direction: column; justify-content: center; max-width: none; min-height: 100vh; margin: 0; padding: 32px; background: none; overflow: visible; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-top .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; }
.auth-acts { display: inline-flex; align-items: center; gap: 6px; }
.auth .theme-btn { width: 36px; height: 36px; }
.auth-top a.lang { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--text); text-decoration: none; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; font-size: 13px; font-weight: 500; }
.auth-top a.lang:hover { background: var(--g-active); }

.auth-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 1120px; min-height: min(720px, calc(100vh - 64px)); margin: 0 auto; padding: 12px;
  border-radius: 40px; background: var(--g-panel); box-shadow: var(--g-panel-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.auth-main { display: grid; grid-template-rows: auto 1fr auto; gap: 32px; padding: 28px 44px 28px; }
.auth-body { align-self: center; width: 100%; max-width: 400px; margin: 0 auto; }
.auth h1 { margin: 0; font-family: var(--font); font-weight: 600; font-size: 34px; line-height: 40px; letter-spacing: -0.03em; }
.auth .sub { margin: 10px 0 0; max-width: none; font-size: 15px; line-height: 22px; color: var(--ink-65); }
.auth-body .form { display: grid; gap: 6px; margin: 28px 0 0; padding: 0; border: 0; border-radius: 0; max-width: none; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-body .form label { margin-top: 12px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-65); }
.auth-body .form label:first-of-type { margin-top: 0; }
.auth .in { height: 48px; padding: 0 18px; font-size: 15px; }
.auth .in:focus-visible { box-shadow: 0 0 0 1px var(--g-blue) inset; outline: 3px solid color-mix(in srgb, var(--g-blue) 30%, transparent); outline-offset: 0; }
.auth-body .form .btn-primary { width: 100%; height: 48px; margin-top: 20px; font-size: 15px; font-weight: 600; }
.auth .help { margin: 4px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-55); }
.auth .field-error { margin: 4px 0 0; font-size: 13px; color: var(--g-red); }
.auth .form-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink-65); }
.auth .form-alt a, .auth .form a:not(.btn) { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.auth .form-alt a:hover { text-decoration-color: currentColor; }
.auth .notice { margin: 0 0 8px; padding: 12px 16px; border-radius: 16px; font-size: 14px; }
.auth .fine { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; background: none; box-shadow: none; font-size: 12px; line-height: 18px; color: var(--ink-55); max-width: 400px; justify-self: center; }
.auth .fine::before { content: ""; width: 8px; height: 8px; margin-top: 5px; border-radius: 999px; background: var(--g-green); flex: none; }

/* The side: what Ensemble is, in its own words, and the eight parts it holds. */
.auth-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 44px; border-radius: 30px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; overflow: hidden; position: relative; }
.auth-side::before { content: ""; position: absolute; inset: -20% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g-blue) 35%, transparent), transparent 65%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side-h { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.035em; max-width: 420px; }
.auth-side-p { font-size: 15px; line-height: 23px; color: var(--ink-65); max-width: 420px; }
.auth-holds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.auth-holds li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; font-size: 13px; font-weight: 500; }
.auth-holds .ic { color: var(--ink-65); }

/* Pages without a form (nothing here, no studio, a closed studio, an old link): the same card, one column, centred. */
.auth:not(.auth-split) { align-items: center; }
.auth:not(.auth-split) > .auth-top { width: 100%; max-width: 760px; margin-bottom: 20px; padding: 0 8px; }
.auth:not(.auth-split) > main {
  width: 100%; max-width: 760px; margin: 0; padding: 56px; text-align: center; border-radius: 40px;
  background: var(--g-panel); box-shadow: var(--g-panel-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.auth:not(.auth-split) > main .sub { margin: 14px auto 0; max-width: 520px; }
.auth:not(.auth-split) > main form, .auth:not(.auth-split) > main p:has(> .btn) { display: flex; justify-content: center; margin-top: 24px; }
/* The join page keeps its form, in the same card. */
.auth:not(.auth-split) > main .form { text-align: start; max-width: 400px; margin: 24px auto 0; padding: 0; background: none; box-shadow: none; display: grid; gap: 6px; }

@media (max-width: 900px) {
  .auth { padding: 12px; justify-content: flex-start; }
  .auth-card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 8px; border-radius: 30px; }
  .auth-main { padding: 20px 16px 24px; gap: 28px; }
  .auth h1 { font-size: 30px; line-height: 36px; }
  .auth-side { padding: 28px 20px; border-radius: 24px; }
  .auth-side-h { font-size: 26px; line-height: 30px; }
  .auth:not(.auth-split) > main { padding: 32px 20px; border-radius: 28px; }
}

/* ---------- files in messages: a picture as a small preview, any other file as a pill to download ---------- */
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.msg-files a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 16px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); text-decoration: none; }
.msg-files a:hover { background: var(--g-tile-hover); }
.msg-files a:not(:has(img))::before { content: ""; width: 28px; height: 28px; border-radius: 10px; flex: none; background: var(--g-chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 2.5h6l2.5 2.5v8.5H4zM6 8h4.5M6 10.5h4.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.msg-files img { display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 12px; }
.msg-file-name { font-size: 13px; font-weight: 500; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-files .r-sub { font-family: var(--g-mono); font-size: 12px; }
.msg-write .msg-attach { margin-top: 14px; }
.in.in-file { height: auto; padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.in.in-file::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--g-active); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }

/* ---------- states: errors, warnings, what went well, required fields ---------- */
/* A banner says what happened in one line, with a sign before it; a field in error says so under itself and is ringed in red. */
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--text); background: color-mix(in srgb, var(--g-blue) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g-blue) 30%, transparent) inset; }
.notice::before { content: "i"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0; border-radius: 999px; font: 700 12px/1 var(--font); background: var(--g-blue); color: #fff; }
.notice-error { color: var(--text); background: color-mix(in srgb, var(--g-red) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g-red) 40%, transparent) inset; }
.notice-error::before { content: "!"; background: var(--g-red); }

.notice[role="status"]:not(.notice-error) { background: color-mix(in srgb, var(--g-green) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g-green) 40%, transparent) inset; }
.notice[role="status"]:not(.notice-error)::before { content: "✓"; background: var(--g-green); }
.in[aria-invalid="true"], .form .in[aria-invalid="true"], .app .in[aria-invalid="true"], .sheet .cell[aria-invalid="true"] {
  border: 0; background-color: color-mix(in srgb, var(--g-red) 8%, var(--g-well)); box-shadow: 0 0 0 1.5px var(--g-red) inset; }
.in[aria-invalid="true"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--g-red) 30%, transparent); outline-offset: 0; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--g-red); }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; font: 700 10px/1 var(--font); background: var(--g-red); color: #fff; }
/* Every field is required unless its label says optional; the optional word is quiet, never a red star. */

/* ---------- the public site and the client's pages, in the same glass ---------- */
body:has(> .pub-bar), body:has(> main.ql), body:has(> .ql) {
  --serif: var(--font); --soft: transparent; --deep: var(--g-tile); --deep-ink: var(--text); --deep-muted: var(--ink-65); --deep-rule: var(--line);
  --mint: var(--g-chip); --mint-ink: var(--text); --surface: transparent; --ground: transparent; --raised: var(--g-tile);
  font-family: var(--font); color: var(--text); background: var(--g-base);
}
body:has(> .pub-bar)::before, body:has(> main.ql)::before, body:has(> .ql)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 8% 0%, var(--g-light-1), transparent 70%), radial-gradient(50% 60% at 100% 30%, var(--g-light-2), transparent 70%), radial-gradient(55% 45% at 45% 110%, var(--g-light-3), transparent 70%), var(--g-base);
}
/* Every headline in the bold sans, every big figure in mono, as in the reference. */
body:has(> .pub-bar) :is(h1, h2, h3, .display, .brand, .index-name, .next-name, .screen-h1), body:has(> .ql) :is(h1, h2, h3, .brand) { font-family: var(--font); font-weight: 600; letter-spacing: -0.03em; }
body:has(> .pub-bar) :is(.fact-n, .live-answer b, .frag-answer b, .frag-fig, .tile-n, .index-n) { font-family: var(--g-mono); font-weight: 500; letter-spacing: -0.04em; color: var(--text); }
body:has(> .pub-bar) .brand .mark { color: var(--text); }
body:has(> .pub-bar) .frag-fig :is(th, td:not(.num)), body:has(> .pub-bar) .frag-fig th { font-family: var(--font); letter-spacing: 0; }
body:has(> .pub-bar) .band-note, body:has(> .pub-bar) .live-note { color: var(--ink-65); }
/* Numbered points (a part of the product, who it is for, what we hold to): one card each, the number small and in mono. */
body:has(> .pub-bar) .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin-top: 8px; list-style: none; border: 0; }
body:has(> .pub-bar) .points-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body:has(> .pub-bar) .points > li { display: grid; grid-template-columns: 1fr; align-content: start; gap: 10px; padding: 28px; margin: 0; border: 0; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
body:has(> .pub-bar) .points .point-n { position: static; display: block; width: auto; height: auto; margin: 0; transform: none; font-family: var(--g-mono); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-55); }
body:has(> .pub-bar) .points h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
body:has(> .pub-bar) .points p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-65); }
/* The roadmap: four columns, each a card with its pill. */
body:has(> .pub-bar) .road { gap: 16px; }
body:has(> .pub-bar) .road-col { padding: 24px; border: 0; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
body:has(> .pub-bar) .road-col h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 14px; margin: 0; border: 0; font-size: 22px; }
body:has(> .pub-bar) .road-col ul { margin: 0; padding: 0; list-style: none; }
body:has(> .pub-bar) .road-col li { padding: 12px 0; border: 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; }
/* Prices: the payment line and the questions sit in cards too. */
body:has(> .pub-bar) .pay-line { padding: 28px; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; max-width: none; }
body:has(> .pub-bar) .pay-line .sec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: none; }
body:has(> .pub-bar) .pay-line p { margin: 6px 0 16px; color: var(--ink-65); }
body:has(> .pub-bar) .plan-faq:not(.pub-facts) { padding: 4px 28px; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; max-width: none; }
body:has(> .pub-bar) .plan-faq:not(.pub-facts) > div { padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
body:has(> .pub-bar) .plan-faq:not(.pub-facts) > div:first-child { border-top: 0; }
body:has(> .pub-bar) .plan-faq dd { color: var(--ink-65); }
body:has(> .pub-bar) .h2-small { margin-bottom: 14px; font-size: 22px; }
@media (max-width: 760px) { body:has(> .pub-bar) .points, body:has(> .pub-bar) .points-5 { grid-template-columns: minmax(0, 1fr); } body:has(> .pub-bar) .points > li { padding: 22px; } }
/* Contact: the form is one card. */
body:has(> .pub-bar) .contact-form { max-width: 720px; margin-top: 28px; padding: 32px; border: 0; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
body:has(> .pub-bar) .contact-form .in { height: 48px; } body:has(> .pub-bar) .contact-form textarea.in { height: auto; min-height: 160px; }
body:has(> .pub-bar) .contact-form label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-65); }
body:has(> .pub-bar) .contact-form label:first-of-type { margin-top: 0; }
/* Demo: the recording in a glass frame, then each step as a card, the still beside its words. */
.demo-film { margin-top: 8px; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 28px; background: #111110; box-shadow: var(--g-panel-shadow), 0 0 0 8px var(--g-panel); }
.demo-film .sub-note { margin-top: 18px; text-align: center; color: var(--ink-65); }
.demo-steps { display: grid; gap: 16px; margin: 24px 0 32px; padding: 0; list-style: none; }
.demo-step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 16px; border-radius: 32px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.demo-step:nth-child(even) figure { order: 2; }
.demo-step figure { margin: 0; }
.demo-step img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--g-tile-edge); }
.demo-step > div { display: grid; gap: 10px; padding: 8px 16px; }
.demo-step .point-n { position: static; display: block; width: auto; height: auto; margin: 0; transform: none; font-family: var(--g-mono); font-size: 13px; color: var(--ink-55); }
.demo-step h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; }
.demo-step p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-65); }
@media (max-width: 860px) { .demo-step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 24px; } .demo-step:nth-child(even) figure { order: 0; } .demo-step h3 { font-size: 21px; line-height: 27px; } .demo-video { border-radius: 18px; box-shadow: var(--g-panel-shadow); } }
/* Security: eight cards in a grid, the note under them a warning banner. */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.sec-card { display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.sec-n { font-family: var(--g-mono); font-size: 13px; color: var(--ink-55); }
.sec-card dt { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sec-card dd { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-65); }
.pub-honest.notice { margin-top: 20px; max-width: none; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } .sec-card { padding: 22px; } }
/* The product's parts: each row one card — number, name, what it does, the arrow — as the reference's widgets. */
body:has(> .pub-bar) .index { display: grid; gap: 12px; padding: 0; list-style: none; }
body:has(> .pub-bar) .index li { border: 0; }
body:has(> .pub-bar) .index a { display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.4fr) 44px; align-items: center; gap: 20px; padding: 22px 24px; border: 0; border-radius: 24px;
  background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); text-decoration: none; transition: background 140ms ease; }
body:has(> .pub-bar) .index a:hover { background: var(--g-tile-hover); }
body:has(> .pub-bar) .index-n { font-family: var(--g-mono); font-size: 14px; color: var(--ink-55); }
body:has(> .pub-bar) .index-name { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.025em; }
body:has(> .pub-bar) .index-line { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; line-height: 23px; color: var(--ink-65); }
body:has(> .pub-bar) .index-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); font-size: 16px; }
body:has(> .pub-bar) .index a:hover .index-go { background: var(--g-blue); color: #fff; }
@media (max-width: 760px) {
  body:has(> .pub-bar) .index a { grid-template-columns: 40px minmax(0, 1fr) 40px; grid-template-areas: "n name go" "line line line"; gap: 8px 12px; padding: 18px; }
  body:has(> .pub-bar) .index-n { grid-area: n; } body:has(> .pub-bar) .index-name { grid-area: name; font-size: 20px; } body:has(> .pub-bar) .index-line { grid-area: line; } body:has(> .pub-bar) .index-go { grid-area: go; }
}
body:has(> .pub-bar) .live-answer b { font-size: clamp(72px, 11vw, 168px); }
/* The bar: a floating glass pill. */
.pub-bar { position: sticky; top: 16px; z-index: 30; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pub-bar .pub-top { margin-top: 16px; padding: 0 12px 0 24px; min-height: 64px; border-radius: 999px; background: var(--g-panel); box-shadow: var(--g-panel-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
.pub-nav { gap: 2px; align-items: center; }
.pub-nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; line-height: 1; }
.pub-nav a:hover, .pub-nav a[aria-current="page"] { background: var(--g-well); color: var(--text); border: 0; }
.pub-acts { align-items: center; }
.pub-nav a, .pub-acts > *, .pub-acts .btn { white-space: nowrap; }
.pub-bar .pub-top { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1180px) { .pub-nav a { padding: 0 10px; } }

/* ---------- audit of 26 November: every control is glass, never a hard ring ---------- */
.theme-btn { border: 0; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); }
.theme-btn:hover { background: var(--g-active); }
.btn, .btn.btn-primary, a.btn.btn-primary { border: 0; }
summary.btn:not(.btn-primary), .pub-menu > summary, .setup summary, .tab-more summary { border: 0; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
.tab-more summary { background: none; box-shadow: none; }
.appbar-menu a { padding: 0 12px; }
.app .brand { color: var(--text); text-decoration: none; }
.auth-top .brand, .pub-bar .brand { text-decoration: none; color: var(--text); }
/* Tiles on the public pages hold their content inside, padded like the reference's cards. */
body:has(> .pub-bar) :is(.plan, .faq, .facts > *, .screen, .tour-item) { padding: 24px 28px; overflow: hidden; }
body:has(> .pub-bar) .faq summary { padding: 6px 0; }
body:has(> .pub-bar) .screen { padding: 0; }
body:has(> .pub-bar) .screen-side { padding: 20px 16px; }
body:has(> .pub-bar) .screen-main { padding: 24px 28px; }
/* The hours table shares the name "sheet" with the app's panel: it is a plain table, never a panel. */
.app table.sheet { min-height: 0; height: auto; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app table.sheet td, .app table.sheet th { padding-top: 6px; padding-bottom: 6px; }
.app table.sheet .cell { height: 40px; border: 0; border-radius: 12px; background: var(--g-well); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text); font-family: var(--g-mono); }
.app table.sheet .cell:focus-visible { box-shadow: 0 0 0 1.5px var(--g-blue) inset; outline: none; }
.app table.sheet .sheet-project th { padding-top: 16px; font-weight: 600; }
.app table.sheet th:first-child, .app table.sheet td:first-child { padding-left: 20px; }
.app table.sheet th:last-child, .app table.sheet td:last-child { padding-right: 20px; }
/* The sentence with chips: each chip a small glass pill, the state in green, never a link look. */
body:has(> .pub-bar) .statement-p { font-family: var(--font); font-weight: 500; letter-spacing: -0.02em; }
body:has(> .pub-bar) .slot { background: var(--g-chip); color: var(--text); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; text-decoration: none; }
body:has(> .pub-bar) .slot .pill { background: none; box-shadow: none; color: var(--g-green); text-decoration: none; }
body:has(> .pub-bar) .slot-fig { background: var(--g-well); color: var(--text); font-family: var(--g-mono); }
body:has(> .pub-bar) .slot-a i { background: var(--g-active); border-radius: 4px; }
/* One thread: five equal cards, each title in the bold sans; the five notes under them in the same columns. */
body:has(> .pub-bar) .seg, body:has(> .pub-bar) :is(.seg-quote, .seg-project, .seg-work, .seg-invoice, .seg-margin) {
  flex: 1 1 0; min-height: 168px; padding: 20px; border-radius: 24px; background: var(--g-tile); color: var(--text); box-shadow: 0 0 0 1px var(--g-tile-edge) inset;
}
body:has(> .pub-bar) .seg b { font-family: var(--font); font-weight: 600; font-size: 22px; line-height: 26px; letter-spacing: -0.02em; }
body:has(> .pub-bar) .seg span { color: var(--ink-65); font-size: 13px; }
body:has(> .pub-bar) .seg-margin { background: var(--g-blue); color: #fff; box-shadow: none; } body:has(> .pub-bar) .seg-margin span { color: rgb(255 255 255 / 0.8); }
body:has(> .pub-bar) .note-n { font-family: var(--g-mono); color: var(--ink-55); font-size: 15px; }
/* Section heads on the public pages carry no rule: the tile is the edge. */
body:has(> .pub-bar) :is(.help-sec, .pub-sec, .pub-two) :is(h2, .faq-head) { border-top: 0; border-bottom: 0; }
body:has(> .pub-bar) .help-sec, body:has(> .pub-bar) .pub-sec { border-top: 0; }
/* Effects the reference does not have: the light under the pointer, the glint on buttons, the beam round a card. */
.spot::before, .btn-big.btn-primary::after, .stage-card::after, .auth-grid .form::after, .shot > div::after { display: none; }
/* Bands are no longer colour fields: each becomes a large glass panel, as the reference's window. */

body:has(> .pub-bar) :is(.band-deep, .band-soft, .band-end, .band-shot) {
  width: auto; max-width: none; margin: 32px max(16px, calc(50% - 660px)); border-radius: 40px;
  background: var(--g-panel); box-shadow: var(--g-panel-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
body:has(> .pub-bar) .band-deep .btn-primary { background: var(--primary); color: var(--primary-ink); }
/* What sat on a card sits on a tile. */
body:has(> .pub-bar) :is(.tour-item, .faq, .rows-panel, .stage-card, .shot > div, .screen, .frag > div, .seg, .seg-quote, .seg-margin, .plan, .live, .facts > *, .stepped .tile, .pub-facts) {
  border: 0; border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; color: var(--text);
}
body:has(> .pub-bar) .stepped .tile { padding: 24px; }
/* Answers and facts in a tile: padded, lines between them only, never at the tile's edge. */
body:has(> .pub-bar) .pub-facts { padding: 4px 28px; overflow: hidden; }
body:has(> .pub-bar) .pub-facts > div { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 0; }
body:has(> .pub-bar) .pub-facts > div:first-child { border-top: 0; }
body:has(> .pub-bar) .pub-facts dd { color: var(--ink-65); }
body:has(> .pub-bar) .pub-facts dd b { color: var(--text); font-weight: 500; }
body:has(> .pub-bar) :is(.help-sec, .pub-sec) > h2 { border: 0; padding-bottom: 0; }
/* The brand's big circle and square, and the dot grid, are not in the reference: gone. */
.motif-c, .motif-s, .band-shot::before, .band-shot::after, .hero2::before, .auth-top::before, .auth::before, .auth::after { display: none; }
.app { background-image: none; }
.site-foot { background: none; border-top: 1px solid var(--line); }
/* The client's quote or invoice: a glass panel, the decision a tile beside it. Printed, it is plain paper. */
body:has(> .ql) .ql-main, body:has(> main.ql) .ql-main, body:has(> .ql) .paper {
  border-radius: 32px; background: var(--g-panel); box-shadow: var(--g-panel-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
body:has(> .ql) .ql-decision, body:has(> main.ql) .ql-decision { border-radius: 28px; background: var(--g-tile); box-shadow: 0 0 0 1px var(--g-tile-edge) inset; }
@media print {
  /* A printed quote or invoice has the margins of a letter, whatever the paper. */
  @page { margin: 16mm 14mm; }
  body:has(> .ql) :is(.sec, .ql-decision, .ql-main, .rows, .rows li, .kv > div, .pill) { box-shadow: none !important; background: none !important; }
  body:has(> .ql) .answer { font-size: 30px; line-height: 36px; margin: 4px 0 8px; }
  body:has(> .ql) :is(.rows li, .ql-lines li) { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  body:has(> .ql) .ql-totals > div, body:has(> .ql) .kv > div { padding-top: 4px; padding-bottom: 4px; }
  body:has(> .ql) .ql-decision .sub-note, body:has(> .ql) .ql-foot .ql-made { display: none; }
  body:has(> .ql) .ql-grid { gap: 16px; }
  body:has(> .ql) h1 { font-size: 26px; line-height: 32px; margin-top: 4px; }
  body:has(> .ql) .sub, body:has(> .ql) .crumbs { margin-top: 4px; font-size: 12px; }
  body:has(> .ql) .sec h2, body:has(> .ql) .sec-head { margin: 0 0 4px; }
  body:has(> .ql) .sec + .sec { margin-top: 12px; }
  body:has(> .ql)::before, body:has(> main.ql)::before { display: none; }
  body:has(> .ql), body:has(> main.ql) { --text: #000; --ink-65: #333; --line: #ccc; background: #fff; color: #000; }
  body:has(> .ql) :is(.ql-main, .paper, .ql-decision) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- small screens: one sheet, a floating bar under the thumb ---------- */
@media (max-width: 1000px) {
  .app { display: block; padding: 0; }
  .app .side { display: none; }
  .app div.sheet { min-height: 100vh; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .appbar { display: none; }
  .app .canvas { padding: 20px 16px 112px; }
  .app .col > .kicker, .app .col > .crumbs, .app .col > h1 { max-width: none; min-height: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .app .bento > .tile { grid-column: 1 / -1; }
  .app .topbar { background: var(--g-panel); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: 0 1px 0 var(--g-panel-edge); }
  .tabbar {
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; justify-content: space-around; width: auto; border: 0; border-radius: 999px; padding: 6px;
    background: var(--g-float); box-shadow: var(--g-panel-shadow);
    -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  }
  .tabbar > a, .tabbar summary { flex-direction: column; gap: 2px; height: 52px; padding: 0 10px; font-size: 11px; border-radius: 999px; }
  .tabbar > a.is-active, .tabbar summary.is-active { background: var(--g-well); color: var(--text); }
  .app .canvas .sec, .app .card, .app .narrow-sec, .app .canvas > .col > form.form { border-radius: 20px; padding: 16px; }
  .app .sec .rows { margin: 0 -16px -8px; } .app .sec .rows li, .app .sec .rows li:hover { padding: 12px 16px; }
  .app h1 { font-size: 30px; line-height: 34px; }
  .auth-grid .form { padding: 24px 20px; border-radius: 24px; }
}

/* ---------- when a person asks for less transparency, or blur is not available: solid panels ---------- */
@media (prefers-reduced-transparency: reduce) {
  :root { --g-panel: #f4f6f3; --g-float: #ffffff; --g-tile: #ffffff; }
  :root[data-theme="dark"] { --g-panel: #1b1f1c; --g-float: #222723; --g-tile: #121513; }
}
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-panel: #1b1f1c; --g-float: #222723; --g-tile: #121513; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --g-panel: rgb(244 246 243 / 0.96); --g-float: #ffffff; }
  :root[data-theme="dark"] { --g-panel: rgb(27 31 28 / 0.96); --g-float: #222723; }
}
