/* gearsix.dev: the one stylesheet for every page.
   Sections: 1 tokens and base (all pages), 2 home, 3 sponsor tracker, 4 thesis pages, 5 thesis diagram viewers, 6 brand lab.
   Page sections are scoped with :where(.<class on <html>>), which adds no specificity, so each page keeps the
   cascade it had. Colors come only from the tokens in section 1. */

/* ---------- 1. Tokens, base and shared components ---------- */
:root {
  --bg: #F3F4F8;
  --surface: #FFFFFF;
  --ink: #161616;
  --muted: #555869;
  --line: #DCDEE8;
  --field: #B9BCCB;
  --indigo: #4E4CD0;
  --on-indigo: #F6F1E6;
  --sky: #BFE1F6;
  --amber: #FFE5A0;
  --lilac: #DAD9F6;
  --trace: #4E4CD0;
  --brand: var(--indigo); /* fills (buttons, tags) with --on-indigo text; links and text use --indigo */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0E0F1E;
  --surface: #16172C;
  --ink: #ECECF4;
  --muted: #A4A6BA;
  --line: #2A2C48;
  --field: #44476A;
  --indigo: #A5A3FF;
  --on-indigo: #0E0F1E;
  --sky: #1D3A52;
  --amber: #5C4B12;
  --lilac: #2D2B5E;
  --trace: #A5A3FF;
  color-scheme: dark;
}
}
:root[data-theme="dark"] {
  --bg: #0E0F1E;
  --surface: #16172C;
  --ink: #ECECF4;
  --muted: #A4A6BA;
  --line: #2A2C48;
  --field: #44476A;
  --indigo: #A5A3FF;
  --on-indigo: #0E0F1E;
  --sky: #1D3A52;
  --amber: #5C4B12;
  --lilac: #2D2B5E;
  --trace: #A5A3FF;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  font-variation-settings: "wdth" 100;
}
a { color: var(--indigo); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
h1, h2, h3, .wide {
  font-stretch: 125%;
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 820; margin: 0 0 12px; }
h2 { font-size: 22px; font-weight: 760; margin: 48px 0 14px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
p { max-width: 68ch; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
small, .muted { color: var(--muted); }
/* site.js fills the bar after load; reserve its height so the page does not jump. */
.bar:empty { min-height: 63px; }
.bar {
  max-width: none;
  margin: 0;
  justify-content: flex-start;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 14px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mark {
  font-weight: 860;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
}
.mark svg { width: 26px; height: 16px; vertical-align: -2px; margin-right: 8px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1; }
.bar nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--indigo); }
.who { font-size: 14px; color: var(--muted); }
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 10px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}
.subnav a { color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--indigo); }
.who a { margin-left: 10px; }
/* Theme toggle in the bar: Auto follows the system, Light and Dark override it (site.js). */
.theme-toggle { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 3px 10px; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--field); }
/* Phone: the bar is one row. The mark is the symbol only, the site links scroll sideways, and the signed-in name
   is in the tooltip of Sign out. The viewers keep their own bar. */
@media (max-width: 640px) {
  :where(html:not(.viewer)) .bar { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  :where(html:not(.viewer)) .bar .mark { font-size: 0; flex: none; }
  :where(html:not(.viewer)) .bar .mark svg { margin-right: 0; }
  :where(html:not(.viewer)) .bar nav { flex-wrap: nowrap; gap: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  :where(html:not(.viewer)) .bar nav::-webkit-scrollbar { display: none; }
  :where(html:not(.viewer)) .bar nav a { white-space: nowrap; font-size: 14px; }
  :where(html:not(.viewer)) .bar .who { font-size: 0; flex: none; }
  :where(html:not(.viewer)) .bar .who a { font-size: 13px; margin-left: 0; }
  :where(html:not(.viewer)) .bar .theme-toggle { flex: none; padding: 3px 8px; font-size: 13px; }
}
.page { max-width: var(--page); margin: 0 auto; padding: 40px var(--gutter) 72px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows > li { border-bottom: 1px solid var(--line); }
.rows a.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 20px 4px;
  color: var(--ink);
  text-decoration: none;
}
.rows a.row:hover .row-title { color: var(--indigo); }
.row-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 780;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  line-height: 1.1;
}
.row-desc { grid-column: 1; color: var(--muted); max-width: 62ch; }
.row-addr { grid-row: 1; grid-column: 2; font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .rows a.row { grid-template-columns: 1fr; }
  .row-addr { grid-row: auto; grid-column: 1; }
}
table.ref { width: 100%; border-collapse: collapse; font-size: 15px; }
table.ref th, table.ref td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
table.ref th { font-weight: 650; border-bottom: 2px solid var(--ink); }
@media (max-width: 640px) {
  table.ref .opt { display: none; }
}
.note {
  background: var(--surface);
  border-left: 4px solid var(--indigo);
  padding: 12px 16px;
  margin: 20px 0;
  max-width: 78ch;
}
.tag {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--muted);
  white-space: nowrap;
}
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--on-indigo);
  text-decoration: none;
  font-weight: 650;
  padding: 10px 18px;
  border-radius: 3px;
}
.button:hover { filter: brightness(1.08); }
.foot {
  margin: 0 max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 2. Home (html.home): eye-diagram hero ---------- */
:where(.home) .hero { position: relative; max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter) 0; }
:where(.home) .scope {
  position: relative;
  aspect-ratio: 8 / 3;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
:where(.home) .scope svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
:where(.home) .scope .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
:where(.home) .scope .traces path {
  fill: none;
  stroke: var(--trace);
  stroke-width: 1.4;
  stroke-opacity: .16;
  vector-effect: non-scaling-stroke;
}
:where(.home) .scope h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  margin: 0;
  font-size: clamp(36px, 9.5vw, 116px);
  font-weight: 880;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg);
}
:where(.home) .axis {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 2px 0;
}
:where(.home) .intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: end;
  margin: 40px 0 28px;
}
:where(.home) .intro p { margin: 0; }
:where(.home) .intro .lead { color: var(--ink); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; }
@media (max-width: 760px) {
  :where(.home) .intro { grid-template-columns: 1fr; }
  :where(.home) .scope { aspect-ratio: 8 / 4; }
}

:where(.home) .now { margin-top: 48px; padding-top: 14px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 160px 1fr; gap: 0 24px; }
:where(.home) .now h2 { margin: 0; grid-row: span 2; }
:where(.home) .now p { margin: 0 0 8px; max-width: 70ch; }
@media (max-width: 560px) { :where(.home) .now { grid-template-columns: 1fr; } }

/* ---------- 3. Sponsor tracker (html.tracker) ---------- */
:where(.tracker) * { box-sizing: border-box; }
:where(.tracker) body { font-size: 15px; line-height: 1.45; }
:where(.tracker) h1, :where(.tracker) h2 { margin: 0; }
:where(.tracker) button, :where(.tracker) input, :where(.tracker) select, :where(.tracker) textarea {
  font: inherit;
  color: inherit;
}
:where(.tracker) :focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
:where(.tracker) a { color: var(--indigo); overflow-wrap: anywhere; }
:where(.tracker) .top { padding: 32px var(--gutter) 0; }
:where(.tracker) .title {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}
:where(.tracker) h1 { font-size: clamp(28px, 4vw, 40px); }
:where(.tracker) #message { color: var(--muted); font-size: 14px; }
:where(.tracker) #message.alert { background: var(--amber); color: var(--ink); padding: 4px 10px; }
:where(.tracker) .pipeline { display: flex; flex-wrap: wrap; gap: 3px; margin: 18px 0 14px; }
:where(.tracker) .stage {
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  min-width: 104px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
:where(.tracker) .stage b { font-family: var(--font); }
:where(.tracker) .stage[aria-pressed="true"] { box-shadow: inset 0 -5px 0 var(--ink); }
:where(.tracker) .s-not { background: var(--line); }
:where(.tracker) .s-contacted { background: var(--sky); }
:where(.tracker) .s-replied { background: var(--lilac); }
:where(.tracker) .s-talks { background: var(--brand); color: var(--on-indigo); }
:where(.tracker) .s-sponsoring { background: var(--ink); color: var(--bg); }
:where(.tracker) .s-noreply { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
:where(.tracker) .s-declined {
  background: var(--surface);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
:where(.tracker) .tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
:where(.tracker) .tools input { flex: 1 1 240px; }
:where(.tracker) input, :where(.tracker) select, :where(.tracker) textarea {
  border: 1px solid var(--field);
  background: var(--bg);
  padding: 7px 9px;
  border-radius: 2px;
  width: 100%;
}
:where(.tracker) .tools select { width: auto; }
:where(.tracker) .primary {
  background: var(--brand);
  color: var(--on-indigo);
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 2px;
}
:where(.tracker) .quiet {
  background: none;
  border: 1px solid var(--field);
  padding: 6px 11px;
  cursor: pointer;
  border-radius: 2px;
}
:where(.tracker) .wrap { padding: 0 var(--gutter) 48px; overflow-x: auto; }
:where(.tracker) table { width: 100%; min-width: 980px; border-collapse: collapse; background: var(--surface); }
:where(.tracker) thead th {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  position: sticky;
  top: 0;
}
:where(.tracker) .group td {
  background: var(--brand);
  color: var(--on-indigo);
  font-family: var(--font);
  font-weight: 700;
  padding: 8px 10px;
}
:where(.tracker) tbody td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
:where(.tracker) tbody tr.row:hover { background: var(--bg); }
:where(.tracker) tr.selected td { background: var(--lilac); }
:where(.tracker) .name {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-underline-offset: 3px;
}
:where(.tracker) .sub { color: var(--muted); font-size: 13px; }
:where(.tracker) .chip { display: inline-block; padding: 1px 8px; white-space: nowrap; }
:where(.tracker) .overdue { background: var(--amber); padding: 1px 6px; white-space: nowrap; }
:where(.tracker) .empty { padding: 40px 10px; text-align: center; color: var(--muted); }
:where(.tracker) aside {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  background: var(--bg);
  border-left: 3px solid var(--indigo);
  overflow-y: auto;
  padding: 22px 24px 40px;
  box-shadow: -14px 0 30px rgba(22, 22, 22, .12);
}
:where(.tracker) aside[hidden] { display: none; }
:where(.tracker) .panelhead { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
:where(.tracker) h2 { font-size: 20px; }
:where(.tracker) h2:focus { outline: none; }
:where(.tracker) .sect {
  font-family: var(--font);
  font-weight: 600;
  color: var(--muted);
  margin: 22px 0 8px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
:where(.tracker) .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
:where(.tracker) .full { grid-column: 1 / -1; }
:where(.tracker) label { display: block; font-size: 13px; color: var(--muted); }
:where(.tracker) label > * { margin-top: 3px; color: var(--ink); }
:where(.tracker) textarea { resize: vertical; min-height: 66px; }
:where(.tracker) .contact { border-left: 3px solid var(--sky); padding: 4px 0 10px 12px; margin-bottom: 12px; }
:where(.tracker) .note { background: var(--bg); padding: 8px 10px; font-size: 13px; }
:where(.tracker) .entry { border-bottom: 1px solid var(--line); padding: 7px 0; }
:where(.tracker) .danger { margin-top: 26px; }
@media (max-width: 720px) {
  :where(.tracker) .top { padding: 22px var(--gutter) 0; }
  :where(.tracker) .wrap { padding: 0 var(--gutter) 32px; }
  :where(.tracker) .stage { flex: 1 1 45% !important; }
  :where(.tracker) .fields { grid-template-columns: 1fr; }
}

/* ---------- 4. Thesis pages (html.thesis) ---------- */
:where(.thesis) * { box-sizing: border-box; }
html:where(.thesis) { scroll-behavior: smooth; scroll-padding-top: 30px; }
:where(.thesis) body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  font-variation-settings: "wdth" 100;
}
:where(.thesis) a { color: inherit; }
:where(.thesis) a, :where(.thesis) button, :where(.thesis) summary { -webkit-tap-highlight-color: transparent; }
:where(.thesis) a:focus-visible, :where(.thesis) summary:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 5px;
}
:where(.thesis) h1, :where(.thesis) h2, :where(.thesis) h3, :where(.thesis) p { margin: 0; }
:where(.thesis) h1, :where(.thesis) h2, :where(.thesis) h3 { line-height: 1.12; }
:where(.thesis) p+p { margin-top: 16px; }
:where(.thesis) nav { display: flex; gap: 30px; }
:where(.thesis) nav a { text-decoration: none; font-size: 13px; }
:where(.thesis) .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
:where(.thesis) main { margin: auto; max-width: var(--page); padding: 0 var(--gutter); }
:where(.thesis) .hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 7%;
  padding: 70px 0 64px;
  align-items: center;
}
:where(.thesis) .hero-intro { max-width: 490px; margin-top: 26px; }
:where(.thesis) .actions { display: flex; gap: 22px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
:where(.thesis) .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: background .15s;
}
:where(.thesis) .text-link { font-size: 15px; color: var(--indigo); text-underline-offset: 4px; }
:where(.thesis) .hero-visual {
  position: relative;
  overflow: hidden;
  padding: 25px 25px 0;
  background: var(--surface);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--line);
}
:where(.thesis) .visual-label { display: flex; justify-content: space-between; }
:where(.thesis) .hero-visual h2 { font: italic 42px/1.05 var(--font),serif; margin-top: 28px; }
:where(.thesis) .hero-visual svg { display: block; width: calc(100% + 50px); margin: -10px -25px -25px; }
:where(.thesis) .signal { stroke-width: 2; fill: none; stroke: var(--trace); }
:where(.thesis) .signal-shadow { stroke-width: 12; fill: none; stroke: var(--trace); opacity: .08; }
:where(.thesis) .visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 25px;
  position: relative;
}
:where(.thesis) .visual-bottom {
  padding: 19px 0;
  border-top: 1px solid #ffffff28;
  display: flex;
  align-items: center;
  font-size: 11px;
  border-top-color: var(--line);
}
:where(.thesis) .visual-bottom .live-dot { margin-right: 13px; }
:where(.thesis) .fact-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}
:where(.thesis) .fact-strip>div { padding-left: 26px; border-left: 1px solid var(--line); }
:where(.thesis) .fact-strip>div:first-child { padding-left: 0; border: 0; }
:where(.thesis) .fact-strip span { display: block; color: var(--muted); margin-bottom: 8px; }
:where(.thesis) .section { padding: 75px 0; border-bottom: 1px solid var(--line); }
:where(.thesis) .research { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
:where(.thesis) .research-body>.large-copy, :where(.thesis) .large-copy { color: var(--ink); margin-bottom: 25px; }
:where(.thesis) .research-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
:where(.thesis) .research-notes p { line-height: 1.9; margin-top: 12px; }
:where(.thesis) .split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 33px;
}
:where(.thesis) .architecture-section { padding: 72px 0; }
:where(.thesis) .diagram-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 17px 20px;
  gap: 12px;
  background: var(--surface);
  border-top: 2px solid var(--ink);
}
:where(.thesis) .diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 20px 10px;
  overflow: auto;
}
:where(.thesis) .diagram>svg { display: block; width: 100%; min-width: 700px; height: auto; }
:where(.thesis) .diagram text { fill: var(--ink); font-family: var(--font); }
:where(.thesis) .diagram .t { font-size: 12px; font-weight: 600; }
:where(.thesis) .diagram .s, :where(.thesis) .diagram .lbl, :where(.thesis) .diagram .out { font-size: 10px; }
:where(.thesis) .diagram .num { font-size: 11px; fill: var(--muted); }
:where(.thesis) .diagram a rect { fill: var(--surface); stroke: var(--field); stroke-dasharray: 5 3; }
:where(.thesis) .diagram a.live rect {
  fill: var(--bg);
  stroke-width: 2;
  stroke-dasharray: none;
  stroke: var(--indigo);
}
:where(.thesis) .diagram a:hover rect { fill: var(--lilac); }
:where(.thesis) .diagram-note {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 13px 0 28px;
}
:where(.thesis) .legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
:where(.thesis) .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 0;
}
:where(.thesis) .part-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 231px;
  transition: background .15s;
}
:where(.thesis) .card-top { display: flex; justify-content: space-between; margin-bottom: 25px; }
:where(.thesis) .card-top .mono { color: var(--muted); }
:where(.thesis) .part-card h3 { margin-bottom: 10px; letter-spacing: -.4px; }
:where(.thesis) .part-card p { color: var(--muted); margin-bottom: 22px; }
:where(.thesis) .tag { display: inline-block; align-self: start; max-width: 100%; }
:where(.thesis) .part-card .tag { margin-top: auto; }
:where(.thesis) .spotlight { padding: 46px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 9%; }
:where(.thesis) .spotlight p { margin-top: 20px; }
:where(.thesis) .spotlight .eyebrow { margin-top: 0; }
:where(.thesis) .spotlight .button { margin-top: 25px; border: 0; }
:where(.thesis) .stage-list a {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #ffffff26;
  padding: 17px 0;
  text-decoration: none;
  border-top-color: var(--line);
}
:where(.thesis) .stage-list a>span:last-child { margin-left: auto; }
:where(.thesis) .stage-list small { display: block; margin-top: 3px; }
:where(.thesis) .spotlight .spotlight-foot {
  grid-column: 1/-1;
  border-top: 1px solid #ffffff26;
  padding-top: 18px;
  margin-top: 0;
}
:where(.thesis) .journal { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
:where(.thesis) .journal article { padding-top: 21px; border-top: 2px solid var(--line); }
:where(.thesis) .journal article.current-entry { border-color: var(--indigo); border-top-color: var(--indigo); }
:where(.thesis) time { display: block; color: var(--muted); margin-bottom: 14px; }
:where(.thesis) .journal h3 { margin: 20px 0 13px; }
:where(.thesis) .journal p { color: var(--muted); }
:where(.thesis) .next-up { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 35px; }
:where(.thesis) .next-up p { font-size: 15px; margin: 14px 0 8px; }
:where(.thesis) .next-up p span { padding: 0 13px; }
:where(.thesis) .next-up small { color: var(--muted); }
:where(.thesis) .questions { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
:where(.thesis) .questions>div>p:last-child { max-width: 350px; margin-top: 20px; }
:where(.thesis) .question-list details { border-top: 1px solid var(--line); padding: 20px 0; }
:where(.thesis) .question-list summary {
  cursor: pointer;
  list-style: none;
  padding-right: 26px;
  position: relative;
}
:where(.thesis) .question-list summary::-webkit-details-marker { display: none; }
:where(.thesis) .question-list summary:after { content: '+'; position: absolute; right: 3px; }
:where(.thesis) .question-list details[open] summary:after { content: '−'; }
:where(.thesis) .question-list details p { color: var(--muted); padding-top: 16px; }
:where(.thesis) .team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px 40px; margin: 40px 0; }
:where(.thesis) .person { padding-top: 18px; border-top: 2px solid var(--ink); }
:where(.thesis) .person-initials { display: block; margin-bottom: 19px; }
:where(.thesis) .person p { color: var(--muted); margin-top: 9px; }
:where(.thesis) .advisors {
  display: flex;
  gap: 80px;
  padding: 24px;
  background: var(--surface);
  border-left: 4px solid var(--indigo);
}
:where(.thesis) .advisors span { display: block; margin-bottom: 8px; }
:where(.thesis) .advisors p+p { margin: 0; }
:where(.thesis) .resources { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
:where(.thesis) .resources p:not(.eyebrow) { color: var(--muted); margin-top: 20px; }
:where(.thesis) .resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
:where(.thesis) .resource-list small { display: block; color: var(--muted); margin-top: 4px; }
:where(.thesis) .editorial-note {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 35px;
  padding: 30px 0;
  color: var(--muted);
}
:where(.thesis) .editorial-note b { font-weight: 500; color: var(--ink); }
:where(.thesis) footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: var(--muted);
}
:where(.thesis) footer a { text-decoration: none; }
:where(.thesis) .footer-brand {
  color: var(--ink);
  font: 780 16px var(--font);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
}
:where(.thesis) .skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--surface);
  padding: 12px;
  z-index: 10;
}
:where(.thesis) .skip:focus { top: 10px; }
:where(.thesis) .breadcrumb { display: flex; gap: 12px; color: var(--muted); margin-top: 32px; }
:where(.thesis) .part-hero { padding: 60px 0 20px; max-width: 800px; }
:where(.thesis) .part-hero .large-copy { margin: 25px 0; }
:where(.thesis) .part-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
:where(.thesis) .part-content h2 { margin-bottom: 25px; }
:where(.thesis) .part-content h3 { margin-bottom: 12px; }
:where(.thesis) .part-content h3:not(:first-child) { margin-top: 28px; }
:where(.thesis) .part-content ul { padding-left: 18px; }
:where(.thesis) .scope-note { padding-left: 16px; margin-top: 25px; padding: 12px 16px; }
:where(.thesis) .related { padding: 40px 0 60px; }
:where(.thesis) .related .text-link { margin-left: 25px; }
@media (min-width:1500px) {
  :where(.thesis) .hero { padding-top: 90px; padding-bottom: 85px; }
}
@media (max-width:1000px) {
  :where(.thesis) nav { gap: 22px; }
  :where(.thesis) .hero { gap: 5%; padding: 50px 0; }
  :where(.thesis) .actions { gap: 17px; }
  :where(.thesis) .fact-strip>div { padding-left: 15px; }
  :where(.thesis) .spotlight { padding: 32px; gap: 20px 6%; }
}
@media (max-width:700px) {
  :where(.thesis) nav { width: 100%; justify-content: space-between; gap: 12px; }
  :where(.thesis) .hero { grid-template-columns: 1fr; gap: 35px; padding: 40px 0; }
  :where(.thesis) .hero-copy h1 { font-size: 48px; }
  :where(.thesis) .hero-visual { max-width: 100%; }
  :where(.thesis) .hero-visual svg { max-height: 240px; }
  :where(.thesis) .fact-strip { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 0; }
  :where(.thesis) .fact-strip>div:nth-child(3) { border: 0; padding-left: 0; }
  :where(.thesis) .research, :where(.thesis) .questions, :where(.thesis) .resources, :where(.thesis) .part-content {
  grid-template-columns: 1fr;
  gap: 30px;
}
  :where(.thesis) .section, :where(.thesis) .architecture-section { padding: 48px 0; }
  :where(.thesis) .split { display: block; }
  :where(.thesis) .split>p { margin-top: 18px; }
  :where(.thesis) .cards { grid-template-columns: 1fr 1fr; }
  :where(.thesis) .part-card { min-height: 235px; }
  :where(.thesis) .diagram-heading { padding: 12px; align-items: start; }
  :where(.thesis) .diagram-heading .mono { font-size: 9px; }
  :where(.thesis) .diagram-heading .tag { font-size: 8px; }
  :where(.thesis) .diagram-note { gap: 8px 20px; }
  :where(.thesis) .spotlight { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  :where(.thesis) .spotlight h2 br { display: none; }
  :where(.thesis) .spotlight .spotlight-foot { grid-column: auto; }
  :where(.thesis) .journal { grid-template-columns: 1fr; gap: 30px; }
  :where(.thesis) .journal h3 { margin-top: 15px; }
  :where(.thesis) .journal article { position: relative; }
  :where(.thesis) .journal article .tag { position: absolute; right: 0; top: 15px; }
  :where(.thesis) .next-up p span { display: block; padding: 5px 0; }
  :where(.thesis) .team-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  :where(.thesis) .advisors { gap: 25px; padding: 20px; flex-wrap: wrap; }
  :where(.thesis) .editorial-note { grid-template-columns: 1fr; gap: 10px; }
  :where(.thesis) footer { flex-wrap: wrap; gap: 20px; }
  :where(.thesis) footer p { order: 3; width: 100%; }
  :where(.thesis) .related .text-link { display: block; margin: 22px 0 0; }
  :where(.thesis) .part-hero h1 { font-size: 43px; }
}
@media (max-width:380px) {
  :where(.thesis) .hero-copy h1 { font-size: 41px; }
  :where(.thesis) .cards { grid-template-columns: 1fr; }
  :where(.thesis) .part-card { min-height: 210px; }
  :where(.thesis) .research-notes { grid-template-columns: 1fr; }
  :where(.thesis) .team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  html:where(.thesis) { scroll-behavior: auto; }
  :where(.thesis) * { transition: none!important; }
}
@media print {
  :where(.thesis) header nav, :where(.thesis) .actions, :where(.thesis) .button, :where(.thesis) .skip {
  display: none;
}
  :where(.thesis) body { background: var(--surface); font-size: 11px; }
  :where(.thesis) .hero, :where(.thesis) .section, :where(.thesis) .architecture-section { padding: 25px 0; }
  :where(.thesis) .hero-visual, :where(.thesis) .spotlight { print-color-adjust: exact; }
  :where(.thesis) .diagram { overflow: visible; }
  :where(.thesis) .diagram>svg { min-width: 0; }
  :where(.thesis) .cards { break-inside: avoid; }
  :where(.thesis) details p { display: block; }
}
:where(.thesis) .study-hero { padding: 48px 0 44px; max-width: 850px; }
:where(.thesis) .study-hero h1 { font-size: clamp(38px,4vw,58px); }
:where(.thesis) .study-hero .large-copy { margin: 24px 0; max-width: 720px; font-size: 19px; }
:where(.thesis) .study-source { color: var(--muted); margin-top: 24px; max-width: 670px; }
:where(.thesis) .study-layout {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 7%;
  border-top: 2px solid var(--ink);
}
:where(.thesis) .study-nav { position: sticky; top: 24px; align-self: start; padding: 34px 0; }
:where(.thesis) .study-nav a { display: block; text-decoration: none; padding: 9px 0; }
:where(.thesis) .study-body { min-width: 0; max-width: 880px; }
:where(.thesis) .study-section { padding: 38px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
:where(.thesis) .study-section h2 { margin-bottom: 22px; }
:where(.thesis) .study-section>p { margin-bottom: 20px; }
:where(.thesis) .outline-list { list-style: none; padding: 0; margin: 26px 0; }
:where(.thesis) .outline-list li { border-top: 1px solid var(--line); }
:where(.thesis) .outline-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
}
:where(.thesis) .outline-list small { display: block; color: var(--muted); margin-top: 4px; }
:where(.thesis) .outline-list a>span:last-child { margin-left: 0; }
:where(.thesis) .study-check { padding: 20px 24px; line-height: 1.7; }
:where(.thesis) .study-check>b { display: block; }
:where(.thesis) .study-check p { margin: 8px 0 18px; }
:where(.thesis) .study-check p:last-child { margin-bottom: 0; }
:where(.thesis) .study-stage {
  padding-top: 34px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 25px;
}
:where(.thesis) .study-stage h3 { letter-spacing: -.6px; }
:where(.thesis) .signal-path {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-wrap: anywhere;
}
:where(.thesis) .block-note { margin: 25px 0; }
:where(.thesis) .block-note>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
:where(.thesis) .block-note a { text-underline-offset: 4px; }
:where(.thesis) .block-note h4 { font-size: 16px; font-weight: 500; margin: 0 0 10px; }
:where(.thesis) .block-note p { line-height: 1.8; }
:where(.thesis) .study-table-wrap { overflow-x: auto; margin: 24px 0; }
:where(.thesis) .study-table { border-collapse: collapse; width: 100%; text-align: left; }
:where(.thesis) .study-table th, :where(.thesis) .study-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
:where(.thesis) .study-table thead { background: var(--surface); }
:where(.thesis) .study-table tbody th { width: 23%; }
:where(.thesis) .study-table code { overflow-wrap: anywhere; }
:where(.thesis) .operation-list { padding-left: 20px; line-height: 1.8; }
:where(.thesis) .operation-list li { padding: 0 0 15px 6px; }
:where(.thesis) .operation-list b { font-weight: 600; }
@media (max-width:850px) {
  :where(.thesis) .study-layout { grid-template-columns: 1fr; gap: 0; }
  :where(.thesis) .study-nav {
  position: static;
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
  :where(.thesis) .study-nav .eyebrow { width: 100%; margin-bottom: 0; }
  :where(.thesis) .study-nav a { padding: 3px 0; }
  :where(.thesis) .study-hero { padding-top: 36px; }
  :where(.thesis) .study-table { min-width: 550px; }
  :where(.thesis) .study-check { padding: 17px; }
  :where(.thesis) .study-hero .large-copy { font-size: 17px; }
}
:where(.thesis) footer {
  max-width: none;
  margin: 0 max(var(--gutter),calc((100% - var(--page))/2 + var(--gutter)));
  padding: 24px 0 40px;
  font-size: 14px;
}
:where(.thesis) a:hover { color: var(--indigo); }
:where(.thesis) h1, :where(.thesis) h2, :where(.thesis) h3, :where(.thesis) h4 {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.015em;
  font-weight: 780;
}
:where(.thesis) h1 { font-size: clamp(38px,5.4vw,64px); font-weight: 840; line-height: 1.04; }
:where(.thesis) h1 em, :where(.thesis) .hero-visual h2 { font-style: normal; font-family: var(--font); }
:where(.thesis) h1 em { color: var(--indigo); font-weight: 840; }
:where(.thesis) h2 { font-size: clamp(26px,3vw,38px); }
:where(.thesis) .eyebrow, :where(.thesis) .mini-label, :where(.thesis) .mono, :where(.thesis) time, :where(.thesis) .fact-strip span, :where(.thesis) .advisors span, :where(.thesis) .visual-label, :where(.thesis) .visual-caption, :where(.thesis) .person-initials, :where(.thesis) .card-top .mono, :where(.thesis) .study-check>b, :where(.thesis) .block-note .mono, :where(.thesis) .tag {
  font: 600 13px/1.4 var(--font);
  letter-spacing: .02em;
  font-variation-settings: "wdth" 100;
}
:where(.thesis) .eyebrow { color: var(--muted); margin-bottom: 14px; }
:where(.thesis) .mini-label, :where(.thesis) .person-initials, :where(.thesis) .block-note .mono, :where(.thesis) .study-check>b {
  color: var(--indigo);
}
:where(.thesis) .large-copy, :where(.thesis) .research-body>.large-copy {
  font-size: clamp(19px,2vw,22px);
  line-height: 1.45;
  letter-spacing: 0;
}
:where(.thesis) .hero-intro, :where(.thesis) .research-body>p, :where(.thesis) .split>p, :where(.thesis) .part-content p, :where(.thesis) .part-content li, :where(.thesis) .study-section>p, :where(.thesis) .block-note p, :where(.thesis) .operation-list, :where(.thesis) .questions>div>p:last-child {
  font-size: 16px;
  color: var(--muted);
}
:where(.thesis) .research-notes p, :where(.thesis) .journal p, :where(.thesis) .part-card p, :where(.thesis) .question-list details p, :where(.thesis) .resources p:not(.eyebrow), :where(.thesis) .study-source, :where(.thesis) .study-check, :where(.thesis) .signal-path, :where(.thesis) .study-table {
  font-size: 15px;
}
:where(.thesis) .person p, :where(.thesis) .resource-list small, :where(.thesis) .outline-list small, :where(.thesis) .stage-list small, :where(.thesis) .next-up small, :where(.thesis) .editorial-note, :where(.thesis) .diagram-note, :where(.thesis) .breadcrumb, :where(.thesis) .study-nav a, :where(.thesis) .block-note a {
  font-size: 14px;
}
:where(.thesis) .button {
  font: 650 15px var(--font);
  border: 0;
  border-radius: 3px;
  padding: 12px 18px;
  gap: 14px;
}
:where(.thesis) .primary, :where(.thesis) .spotlight .button {
  background: var(--brand);
  color: var(--on-indigo);
}
:where(.thesis) .primary:hover, :where(.thesis) .spotlight .button:hover {
  background: var(--brand);
  color: var(--on-indigo);
  filter: brightness(1.08);
}
:where(.thesis) .visual-label, :where(.thesis) .visual-caption, :where(.thesis) .visual-bottom {
  color: var(--muted);
}
:where(.thesis) .hero-visual h2 { font-size: clamp(30px,3.4vw,40px); font-weight: 800; color: var(--ink); }
:where(.thesis) .hero-visual svg text { fill: var(--indigo); }
:where(.thesis) .visual-bottom b { color: var(--ink); font-weight: 650; }
:where(.thesis) .visual-bottom .live-dot, :where(.thesis) .live-dot, :where(.thesis) .legend-dot {
  background: var(--brand);
}
:where(.thesis) .fact-strip b { font-size: 16px; font-weight: 650; }
:where(.thesis) .part-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 4px 22px 0; }
:where(.thesis) .cards .part-card:nth-child(3n+2), :where(.thesis) .cards .part-card:nth-child(3n+3) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
:where(.thesis) .part-card:hover, :where(.thesis) .part-card.featured { background: none; }
:where(.thesis) .part-card:hover h3 { color: var(--indigo); }
:where(.thesis) .part-card h3 { font-size: 22px; }
:where(.thesis) .part-card.featured h3 { color: var(--indigo); }
:where(.thesis) .tag {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
:where(.thesis) .part-card.featured .tag { color: var(--indigo); border-color: var(--indigo); }
:where(.thesis) .outline-list { border-top: 2px solid var(--ink); }
:where(.thesis) .outline-list li:first-child { border-top: 0; }
:where(.thesis) .outline-list b, :where(.thesis) .resource-list b, :where(.thesis) .stage-list b, :where(.thesis) .advisors b, :where(.thesis) .question-list summary {
  font-weight: 650;
  font-size: 16px;
}
:where(.thesis) .resource-list { border-bottom: 1px solid var(--line); }
:where(.thesis) .question-list { border-top: 2px solid var(--ink); }
:where(.thesis) .question-list details:first-child { border-top: 0; }
:where(.thesis) .question-list summary:after { font: 500 20px var(--font); color: var(--indigo); }
:where(.thesis) .spotlight {
  background: var(--surface);
  color: var(--ink);
  border-left: 4px solid var(--indigo);
  border-radius: 0;
}
:where(.thesis) .spotlight .eyebrow { color: var(--muted); }
:where(.thesis) .spotlight p { color: var(--muted); font-size: 15px; }
:where(.thesis) .stage-list a:hover { color: var(--indigo); }
:where(.thesis) .stage-list a>span { font: 650 14px var(--font); color: var(--indigo); }
:where(.thesis) .stage-list small { color: var(--muted); }
:where(.thesis) .spotlight .spotlight-foot { border-top-color: var(--line); font-size: 14px; color: var(--muted); }
:where(.thesis) .journal h3 { font-size: 21px; }
:where(.thesis) .next-up p span { color: var(--indigo); }
:where(.thesis) .person h3 { font-size: 19px; }
:where(.thesis) .study-check, :where(.thesis) .scope-note {
  background: var(--surface);
  border-left: 4px solid var(--indigo);
}
:where(.thesis) .study-section h2 { font-size: clamp(24px,2.6vw,30px); }
:where(.thesis) .study-stage h3 { font-size: clamp(20px,2.2vw,24px); }
:where(.thesis) .study-table { font-size: 15px; }
:where(.thesis) .study-table thead th { border-bottom: 2px solid var(--ink); font-weight: 650; }
:where(.thesis) .study-table tbody th { font-weight: 650; }
:where(.thesis) .study-body code, :where(.thesis) .signal-path code {
  font-family: ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-size: .88em;
}
:where(.thesis) .next-up .eyebrow { font-size: 13px; }
@media (max-width:1000px) {
  :where(.thesis) .cards .part-card:nth-child(3n+2), :where(.thesis) .cards .part-card:nth-child(3n+3) {
  padding-left: 0;
  border-left: 0;
}
}

:where(.thesis) .person p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

:where(.thesis) footer .rights { order: 9; flex: 0 0 100%; max-width: none; margin: 0; font-size: 12px; }
:where(.thesis) footer { flex-wrap: wrap; }

/* ---------- 5. Thesis diagram viewers (html.viewer); always light, diagram colors stay in the drawings ---------- */
:root:where(.viewer) {
  --panel: var(--surface);
  --mute: var(--muted);
  --blk: var(--field);
  --paper: var(--bg);
  --green: var(--indigo);
  --mint: var(--lilac);
  --desc-bg: var(--bg);
  --desc-bd: var(--line);
  --note-bg: var(--amber);
  --note-bd: var(--field);
  --mono: var(--font);
}
:where(.viewer) body {
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  grid-template-columns: 306px minmax(0,1fr);
  background: var(--paper);
  font: 13px/1.55 var(--font);
}
:where(.viewer) button, :where(.viewer) a, :where(.viewer) summary, :where(.viewer) select, :where(.viewer) input {
  touch-action: manipulation;
}
:where(.viewer) button {
  font-size: 12px;
  min-height: 32px;
  border-radius: 3px;
  padding: 6px 10px;
  transition: background .12s,border-color .12s;
}
:where(.viewer) button:hover { border-color: var(--green); background: var(--bg); }
:where(.viewer) button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:where(.viewer) button:focus-visible, :where(.viewer) a:focus-visible, :where(.viewer) summary:focus-visible, :where(.viewer) select:focus-visible, :where(.viewer) input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
:where(.viewer) a { color: inherit; }
:where(.viewer) header {
  grid-row: 1;
  grid-column: 1/-1;
  padding: 0;
  background: var(--paper);
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
:where(.viewer) .site-bar { display: flex; align-items: center; }
:where(.viewer) header a.home {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  font: 650 15px/1.2 var(--font);
  text-decoration: none;
}
:where(.viewer) .brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  border-radius: 50%;
  font: 21px var(--font),serif;
  letter-spacing: -3px;
}
:where(.viewer) header a.home small { font: 8px var(--mono); letter-spacing: 1px; margin-top: 5px; }
:where(.viewer) .back-link { text-decoration: none; color: var(--mute); }
:where(.viewer) .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
:where(.viewer) .study-status { margin-left: auto; font: 10px var(--mono); color: var(--green); }
:where(.viewer) .title-bar { display: flex; justify-content: space-between; align-items: center; }
:where(.viewer) .eyebrow {
  display: block;
  font: 9px/1.5 var(--mono);
  letter-spacing: 1.4px;
  color: var(--green);
  margin: 0 0 7px;
}
:where(.viewer) header h1 { font: 500 25px/1.2 var(--font); white-space: normal; }
:where(.viewer) .title-bar>button { background: transparent; }
:where(.viewer) #tabs { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
:where(.viewer) #tabs button {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--mute);
}
:where(.viewer) #tabs button[aria-pressed=true] {
  color: var(--green);
  border-color: var(--green);
  background: var(--bg);
}
:where(.viewer) #tabs button:hover { color: var(--ink); background: var(--bg); }
:where(.viewer) aside {
  grid-column: 1;
  background: var(--paper);
  padding: 22px 20px 30px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--field) transparent;
}
:where(.viewer) .panel-heading { margin-bottom: 22px; }
:where(.viewer) .panel-subtitle { font-size: 11px; color: var(--mute); }
:where(.viewer) .control-section { border-top: 1px solid var(--line); padding: 14px 0; }
:where(.viewer) .control-section>summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 20px;
}
:where(.viewer) .control-section>summary::-webkit-details-marker { display: none; }
:where(.viewer) .control-section>summary:after {
  content: '+';
  position: absolute;
  right: 0;
  font: 16px var(--mono);
  color: var(--green);
}
:where(.viewer) .control-section[open]>summary:after { content: '−'; }
:where(.viewer) .control-section[open]>summary { margin-bottom: 15px; }
:where(.viewer) .section-help { font-size: 10px; color: var(--mute); margin: -6px 0 14px; }
:where(.viewer) .row { gap: 4px; margin-bottom: 9px; }
:where(.viewer) .row>span.k { width: 100%; font-size: 10px; margin-bottom: 3px; color: var(--mute); }
:where(.viewer) .seg button { font: 10px var(--mono); padding: 5px 8px; min-height: 29px; }
:where(.viewer) #mode button { font: 11px var(--font); flex: 1; padding: 8px 5px; }
:where(.viewer) select {
  font: 12px var(--mono);
  padding: 5px 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}
:where(.viewer) #steps { gap: 3px; }
:where(.viewer) #steps button { padding: 6px 9px; font: 10px var(--mono); min-height: 31px; align-items: center; }
:where(.viewer) #steps button small { font-size: 9px; opacity: .85; }
:where(.viewer) #steps button.offpath { opacity: .55; }
:where(.viewer) #steps button[aria-pressed=true] {
  background: var(--bg);
  color: var(--green);
  border-color: var(--field);
}
:where(.viewer) #play { flex: 1; font-size: 11px; }
:where(.viewer) .box { font-size: 11px; line-height: 1.65; padding: 12px; border-radius: 3px; }
:where(.viewer) .desc { border: 0; border-left: 2px solid var(--green); background: var(--bg); }
:where(.viewer) #caption>b:first-child {
  display: block;
  font: 600 10px var(--mono);
  letter-spacing: .3px;
  margin-bottom: 3px;
}
:where(.viewer) #caption>b+br { display: none; }
:where(.viewer) label.chk { font-size: 11px; line-height: 1.6; margin: 10px 0; gap: 9px; }
:where(.viewer) input[type=checkbox] { accent-color: var(--green); margin-top: 3px; flex-shrink: 0; }
:where(.viewer) .ro td { line-height: 1.6; }
:where(.viewer) table.ro td { font-size: 10px; padding: 7px 0; }
:where(.viewer) table.ro td:first-child { width: 43%; padding-right: 8px; }
:where(.viewer) .chip {
  font: 9px/1.5 var(--mono);
  border-color: var(--field);
  padding: 2px 5px;
  background: var(--surface);
  border-radius: 2px;
}
:where(.viewer) .key { font-size: 10px; gap: 13px 9px; }
:where(.viewer) .note { font-size: 10px; border: 0; background: var(--amber); margin-top: 0; }
:where(.viewer) .note li+li { margin-top: 9px; }
:where(.viewer) .workspace-bar {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
:where(.viewer) .workspace-bar .eyebrow { font-size: 8px; margin-bottom: 3px; }
:where(.viewer) .workspace-bar h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.2px;
}
:where(.viewer) .diagram-status {
  font: 9px var(--mono);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--green);
  padding: 5px 9px;
  white-space: nowrap;
}
:where(.viewer) main {
  grid-column: 2;
  background-color: var(--surface);
  background-image: radial-gradient(var(--field) 0.6px,transparent .6px);
  background-size: 20px 20px;
  min-height: 0;
  min-width: 0;
}
:where(.viewer) #zoom {
  top: 16px;
  right: 20px;
  gap: 0;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px #1626300a;
  border-radius: 4px;
  align-items: center;
}
:where(.viewer) #zoom button {
  border: 0;
  border-right: 1px solid var(--bg);
  border-radius: 0;
  min-width: 34px;
  font-size: 12px;
}
:where(.viewer) #zoom #zinfo { font-size: 11px; padding: 6px 12px; }
:where(.viewer) #zoom-level {
  font: 10px var(--mono);
  min-width: 48px;
  text-align: center;
  color: var(--mute);
  padding: 0 6px;
}
:where(.viewer) #hint {
  left: 18px;
  right: 18px;
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--mute);
  padding: 8px 12px;
  background: #fafbf7ed;
  border: 1px solid #d8ded6b0;
  border-radius: 3px;
  pointer-events: none;
}
:where(.viewer) #toast {
  top: 65px;
  right: 20px;
  width: 340px;
  max-height: calc(100% - 124px);
  padding: 22px 20px 18px;
  box-shadow: 0 8px 30px #16263018;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  background: var(--surface);
  line-height: 1.65;
}
:where(.viewer) #toast .tag {
  font-size: 9px;
  line-height: 1.6;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
:where(.viewer) #toast h3 { font: 500 21px/1.25 var(--font); letter-spacing: -.4px; margin-bottom: 13px; }
:where(.viewer) #toast p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
:where(.viewer) #toast .x {
  right: 9px;
  top: 8px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 1px solid var(--line);
  font-size: 19px;
  padding: 0;
}
:where(.viewer) #toast td { padding: 9px 0; }
:where(.viewer) #toast td:first-child { font-size: 10px; width: 74px; }
:where(.viewer) #toast summary { font-size: 11px; color: var(--green); padding: 9px 0; }
:where(.viewer) #toast details p, :where(.viewer) #toast details li { font-size: 11px; }
:where(.viewer) #toast .st {
  font: 10px/1.6 var(--mono);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
:where(.viewer) body [data-sel][data-sel] rect { stroke: var(--green)!important; }
:where(.viewer) #toast[hidden] { display: none; }
:where(.viewer) .controls-hidden { grid-template-columns: 0 minmax(0,1fr); }
:where(.viewer) .controls-hidden aside { display: none; }
:where(.viewer) .pan>svg:not(.ov) { filter: drop-shadow(0 2px 3px #16263008); }
:where(.viewer) .pan>svg rect[stroke='var(--line)'], :where(.viewer) .pan>svg rect[stroke='var(--line)'] {
  stroke: var(--line);
}
:where(.viewer) .pan>svg rect[fill='var(--surface)'], :where(.viewer) .pan>svg rect[fill='var(--surface)'] {
  fill: var(--surface);
}
:where(.viewer) [data-st=off] { opacity: .23; }
:where(.viewer) [data-on='0'] { opacity: .4; }
@media (max-width:1100px) {
  :where(.viewer) body { grid-template-columns: 280px minmax(0,1fr); }
  :where(.viewer) .study-status { font-size: 9px; }
  :where(.viewer) aside { padding: 20px 16px; }
  :where(.viewer) #toast { width: 300px; }
}
@media (max-width:760px) {
  :where(.viewer) body { height: 100dvh; min-height: 560px; grid-template-columns: minmax(0,1fr); }
  :where(.viewer) .back-link { margin-left: auto; }
  :where(.viewer) .title-bar .eyebrow { font-size: 8px; }
  :where(.viewer) aside {
  grid-column: 1;
  max-height: 36dvh;
  padding: 17px 20px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
  :where(.viewer) .panel-heading { margin-bottom: 14px; }
  :where(.viewer) .workspace-bar { grid-row: 3; grid-column: 1; gap: 12px; }
  :where(.viewer) .workspace-bar h2 { font-size: 12px; }
  :where(.viewer) .diagram-status { font-size: 8px; padding: 4px 6px; }
  :where(.viewer) main { grid-column: 1; min-height: 180px; }
  :where(.viewer) .controls-hidden { grid-template-columns: minmax(0,1fr); }
  :where(.viewer) #zoom { top: 10px; right: 10px; }
  :where(.viewer) #zoom button { min-height: 36px; min-width: 36px; }
  :where(.viewer) #hint { bottom: 10px; left: 10px; right: 10px; padding: 7px 9px; }
  :where(.viewer) #toast {
  top: 61px;
  right: 10px;
  width: min(340px,calc(100% - 20px));
  max-height: calc(100% - 104px);
  padding: 20px 17px;
}
  :where(.viewer) #toast .x { min-height: 32px; width: 32px; }
  :where(.viewer) #toast h3 { font-size: 19px; }
}
@media (prefers-reduced-motion:reduce) {
  :where(.viewer) button { transition: none; }
  :where(.viewer) #toast { animation: none; }
}
:where(.viewer) header { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); }
:where(.viewer) .site-bar { height: 48px; padding: 0 16px; gap: 18px; border-bottom: 0; }
:where(.viewer) header a.home { font-size: 12px; letter-spacing: 1px; gap: 8px; }
:where(.viewer) .brand-mark { width: 27px; height: 27px; font-size: 18px; }
:where(.viewer) header a.home small, :where(.viewer) .study-status, :where(.viewer) .title-bar .eyebrow {
  display: none;
}
:where(.viewer) .back-link { font-size: 10px; }
:where(.viewer) .title-bar { padding: 7px 16px 7px 20px; gap: 16px; }
:where(.viewer) header h1 { font-size: 16px; letter-spacing: -.3px; }
:where(.viewer) .title-bar>button { min-width: 99px; min-height: 30px; padding: 5px 9px; font-size: 11px; }
:where(.viewer) #tabs { grid-column: 1/-1; padding: 0 8px; border-top: 1px solid var(--line); }
:where(.viewer) #tabs button { min-height: 36px; padding: 9px 11px; font-size: 10px; }
:where(.viewer) .workspace-bar {
  position: absolute;
  right: 20px;
  bottom: 22px;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
}
:where(.viewer) .workspace-bar>div { display: none; }
:where(.viewer) body { position: relative; grid-template-rows: auto minmax(0,1fr); }
:where(.viewer) aside { grid-row: 2; }
:where(.viewer) main { grid-row: 2; }
:where(.viewer) #hint { padding-right: 145px; }
:where(.viewer) #hint span:last-child { display: none; }
@media (max-width:760px) {
  :where(.viewer) header { grid-template-columns: auto minmax(0,1fr); }
  :where(.viewer) .site-bar { height: 45px; padding: 0 10px; gap: 0; }
  :where(.viewer) header a.home>span:last-child, :where(.viewer) .back-link { display: none; }
  :where(.viewer) .title-bar { padding: 6px 10px 6px 0; gap: 8px; }
  :where(.viewer) header h1 { font-size: 13px; max-width: none; letter-spacing: -.2px; }
  :where(.viewer) .title-bar>button { min-width: 85px; min-height: 32px; font-size: 9px; padding: 5px 6px; }
  :where(.viewer) #tabs { padding: 0 4px; }
  :where(.viewer) #tabs button { min-height: 36px; padding: 9px 9px; font-size: 10px; }
  :where(.viewer) body { grid-template-rows: auto auto minmax(0,1fr); }
  :where(.viewer) aside { grid-row: 2; }
  :where(.viewer) main { grid-row: 3; }
  :where(.viewer) .workspace-bar { right: 16px; bottom: 17px; padding: 0; }
  :where(.viewer) #hint { padding-right: 120px; font-size: 8px; }
}
:where(.viewer) header { gap: 0; }
:where(.viewer) .workspace-bar { z-index: 4; }

/* Rights notice on the viewers: a fixed strip, because the viewer body is a full-height grid with no page flow. */
:where(.viewer) body { padding-bottom: 22px; }
:where(.viewer) .rights-only { position: fixed; inset: auto 0 0 0; z-index: 5; margin: 0; padding: 3px 12px; border-top: 1px solid var(--line);
  background: var(--panel); font-size: 11px; line-height: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 6. Brand lab (html.brand) ----------
   Page chrome uses the site tokens. Mockups use the palette under test and nothing else: brand.js vars() sets
   --p primary, --a accent, --s support, --n neutral, --d ink, --l paper; --p-on and friends (readable text on each);
   --pt --st --at (ramp steps for text and thin lines on white); --pd (primary on ink); --c-bg --c-fg --c-bg2 --c-line
   --c-mut --c-pt (base, text, lines and link color for the scheme of the role set); --x1..3 (chart extras). */
:where(.brand) button, :where(.brand) input, :where(.brand) select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 3px; padding: 8px 12px;
}
:where(.brand) button { cursor: pointer; font-weight: 600; }
:where(.brand) button:hover { border-color: var(--ink); }
:where(.brand) button[type=submit], :where(.brand) #save, :where(.brand) button[aria-pressed=true], :where(.brand) button.on {
  background: var(--brand); color: var(--on-indigo); border-color: var(--indigo);
}
:where(.brand) .pick label { display: block; font-weight: 650; margin: 24px 0 6px; }
:where(.brand) .pick-row, :where(.brand) .save, :where(.brand) .ctl { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.brand) .save { margin-bottom: 12px; }
:where(.brand) .pick-row input { flex: 1 1 320px; min-width: 0; }
:where(.brand) .save input { flex: 1 1 240px; min-width: 0; }
:where(.brand) .ctl.under { align-items: center; margin-top: 12px; }
:where(.brand) .ctl.under .muted { flex: 1 1 320px; font-size: 14px; }
:where(.brand) .two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px 40px; }
:where(.brand) h3.gap { margin-top: 28px; }
/* Specimen: the palette under test as the brand, on its own base (--c-bg, --c-fg follow the scheme). */
:where(.brand) .specimen { position: relative; overflow: hidden; isolation: isolate; margin-top: 22px; min-height: clamp(300px, 44vw, 460px);
  display: grid; align-content: end; gap: 6px; padding: clamp(22px, 5vw, 56px); background: var(--c-bg); color: var(--c-fg); border-radius: 14px 14px 0 0; }
:where(.brand) .spec-eye { position: absolute; z-index: -1; inset: 0 0 auto auto; width: 72%; height: 60%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 45%); mask-image: linear-gradient(to right, transparent, black 45%); }
:where(.brand) .spec-eye g.eye path { stroke: var(--p); stroke-opacity: .5; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
:where(.brand) .spec-eye g.eye path:nth-child(9n) { stroke: var(--a); stroke-opacity: 1; stroke-width: 2; }
:where(.brand) .spec-logo { display: flex; align-items: center; gap: .16em; font-size: clamp(44px, 11.5vw, 138px); line-height: 1.12; }
:where(.brand) .spec-logo .mk { width: .95em; height: .6em; flex: none; color: var(--p); --m2: var(--a); }
:where(.brand) .spec-line { margin: 0; font-size: clamp(15px, 1.7vw, 19px); color: var(--c-mut); }
:where(.brand) .spec-ui { position: absolute; top: clamp(16px, 3vw, 32px); left: clamp(22px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 8px; }
:where(.brand) .sb { padding: 8px 14px; border-radius: 3px; font-size: 14px; font-weight: 650; }
:where(.brand) .sb-brand { background: var(--p); color: var(--p-on); }
:where(.brand) .sb-line { box-shadow: inset 0 0 0 1.5px var(--c-fg); }
:where(.brand) .sb-spark { background: var(--a); color: var(--a-on); border-radius: 99px; }
/* Role strip: one segment per role, width by how much of a design the role covers. Also the control that swaps roles. */
:where(.brand) .strip { display: flex; flex-wrap: wrap; border-radius: 0 0 14px 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) button.seg { flex: var(--w) 1 96px; min-height: 124px; display: grid; align-content: end; gap: 1px; padding: 10px 12px; border: 0; border-radius: 0;
  text-align: left; font-size: 13px; font-weight: 500; line-height: 1.25; cursor: grab; }
:where(.brand) button.seg b { font-size: 15px; font-weight: 760; }
:where(.brand) button.seg small { color: inherit; opacity: .85; }
:where(.brand) button.seg.made { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, currentColor 14%, transparent) 7px 8px); }
:where(.brand) button.seg[aria-pressed=true] { box-shadow: inset 0 0 0 4px currentColor; }
:where(.brand) button.seg:focus-visible { outline-offset: -5px; outline-color: currentColor; }
/* Readings */
:where(.brand) .takes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
:where(.brand) button.take { display: grid; gap: 14px; padding: 18px 16px 12px; text-align: left; background: var(--c-bg); color: var(--c-fg);
  border: 1px solid var(--line); border-radius: 10px; }
:where(.brand) button.take[aria-pressed=true] { outline: 3px solid var(--ink); outline-offset: 2px; }
:where(.brand) .take .lg { height: auto; justify-content: flex-start; font-size: 26px; gap: 8px; }
:where(.brand) .take .mk { width: 34px; height: 21px; color: var(--p); --m2: var(--a); }
:where(.brand) .take-ui { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 650; }
:where(.brand) .take-ui span { padding: 4px 9px; border-radius: 3px; background: var(--p); color: var(--p-on); }
:where(.brand) .take-ui span + span { background: var(--a); color: var(--a-on); border-radius: 99px; }
:where(.brand) .take-ui span + span + span { background: none; color: var(--c-pt); padding: 0 2px; text-decoration: underline; }
:where(.brand) .take-name { font-size: 14px; font-weight: 650; padding-top: 10px; border-top: 1px solid var(--c-line); }
/* Checks */
:where(.brand) .warn { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; max-width: 80ch; }
:where(.brand) .warn li { padding: 9px 12px; background: var(--amber); border-left: 4px solid var(--ink); border-radius: 2px; }
:where(.brand) .warn li.fine { background: none; border-left-color: var(--line); color: var(--muted); }
:where(.brand) .pairs { display: grid; gap: 0; border-top: 2px solid var(--ink); }
:where(.brand) .pair { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
:where(.brand) .pair .aa { display: grid; place-items: center; height: 34px; border-radius: 4px; font-weight: 800; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .pair .ratio { font-variant-numeric: tabular-nums; color: var(--muted); }
:where(.brand) .pair .grade { min-width: 70px; text-align: center; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
:where(.brand) .pair .grade.bad { background: var(--ink); color: var(--bg); }
:where(.brand) .cvd { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 14px; }
:where(.brand) .cvd .row { display: flex; height: 30px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .cvd .row span { flex: 1; }
:where(.brand) .ramps { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 14px; }
:where(.brand) .ramp { display: grid; grid-template-columns: repeat(10, 1fr); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .ramp span { height: 38px; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.brand) .shortlist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
:where(.brand) .shortlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
:where(.brand) .dots { display: flex; }
:where(.brand) .dots span { width: 22px; height: 30px; }
:where(.brand) .dots span:first-child { border-radius: 4px 0 0 4px; }
:where(.brand) .dots span:last-child { border-radius: 0 4px 4px 0; }
:where(.brand) .sl-name { flex: 1 1 200px; }
:where(.brand) .sl-name small, :where(.brand) .sl-votes { color: var(--muted); }
:where(.brand) .sl-votes { font-weight: 650; cursor: help; }
:where(.brand) .sl-act { display: flex; gap: 6px; flex-wrap: wrap; }
:where(.brand) .sl-act button { padding: 5px 10px; font-size: 14px; }
:where(.brand) .compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
:where(.brand) .cmp { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
:where(.brand) .cmp > * { width: 100%; height: auto; }
:where(.brand) .cmp .lg { height: 80px; font-size: 20px; }
:where(.brand) .cmp .lg .mk { width: 30px; height: 19px; }
:where(.brand) .cmp figcaption { grid-column: 1 / -1; font-weight: 650; }
:where(.brand) .jump { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 40px 0 0;
  padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
:where(.brand) .jump a { text-decoration: none; }
:where(.brand) #demos section, :where(.brand) .chapter { scroll-margin-top: 56px; }
:where(.brand) .chapter { font-size: clamp(26px, 4vw, 40px); font-weight: 820; margin: 72px 0 4px; padding-top: 14px; border-top: 2px solid var(--ink); }
:where(.brand) #demos section > h3 { margin: 28px 0 10px; }
:where(.brand) .sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
:where(.brand) .sitemap figure { margin: 0; font-size: 13px; color: var(--muted); }
:where(.brand) .thumb { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; }
:where(.brand) .thumb iframe { width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
/* A logo pairing that fails: shown as it is, struck through. */
:where(.brand) .lg-dont { position: relative; }
:where(.brand) .lg-dont::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
:where(.brand) .scales { display: grid; gap: 14px; max-width: 760px; }
:where(.brand) .scale { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; align-items: center; font-size: 14px; }
:where(.brand) .scale .row { display: flex; height: 40px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .scale .row span { flex: 1; }
:where(.brand) .scale small { grid-column: 2; color: var(--muted); }
:where(.brand) .scale small.bad { color: var(--ink); font-weight: 650; }
:where(.brand) .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:where(.brand) #frame { display: block; width: 100%; height: 600px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
:where(.brand) .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
:where(.brand) .grid.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
:where(.brand) .span { grid-column: 1 / -1; }
:where(.brand) .span2 { grid-column: span 2; }
@media (max-width: 560px) { :where(.brand) .span2 { grid-column: auto; } }
:where(.brand) .tile { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
:where(.brand) .tile > svg { display: block; width: 100%; height: auto; }
:where(.brand) .tile figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
:where(.brand) .tokens { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; overflow: auto; font-size: 13px; }
:where(.brand) svg text { font-family: var(--font); }
:where(.brand) .wm { font-family: var(--font); font-weight: 860; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; }
/* Logo cards */
:where(.brand) .lg { display: flex; align-items: center; justify-content: center; gap: 10px; height: 120px; border-radius: 8px; font-size: 30px; }
:where(.brand) .lg .mk { width: 44px; height: 28px; }
:where(.brand) .lg-light { background: white; color: var(--d); box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .lg-light .mk { color: var(--pt); --m2: var(--st); }
:where(.brand) .lg-dark { background: var(--d); color: var(--d-on); }
:where(.brand) .lg-dark .mk { color: var(--pd); --m2: var(--s); }
:where(.brand) .lg-primary { background: var(--p); color: var(--p-on); }
:where(.brand) .lg-soft { background: var(--l); color: var(--l-on); }
:where(.brand) .lg-soft .mk { color: var(--l-on); --m2: var(--pt); }
:where(.brand) .lg-mono { background: white; color: var(--d); box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .lg-icons { gap: 14px; background: color-mix(in srgb, var(--l) 30%, white); }
:where(.brand) .app { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; }
:where(.brand) .app svg { width: 30px; height: 19px; }
:where(.brand) .a1 { background: var(--p); color: var(--p-on); }
:where(.brand) .a2 { background: var(--d); color: var(--pd); --m2: var(--s); }
:where(.brand) .a3 { background: white; color: var(--pt); --m2: var(--st); box-shadow: inset 0 0 0 1px var(--line); width: 36px; height: 36px; border-radius: 8px; }
:where(.brand) .a3 svg { width: 22px; height: 14px; }
:where(.brand) .a4 { background: var(--s); color: var(--s-on); width: 28px; height: 28px; border-radius: 50%; }
:where(.brand) .a4 svg { width: 16px; height: 10px; }
/* Icons */
:where(.brand) .icons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
:where(.brand) .icons svg { width: 44px; height: 44px; padding: 9px; border-radius: 10px; }
:where(.brand) .icons.outline svg { color: var(--pt); }
:where(.brand) .icons.tile-ic svg { background: var(--p); color: var(--p-on); }
:where(.brand) .icons.duo svg { background: color-mix(in srgb, var(--s) 35%, white); color: var(--d); border-radius: 50%; }
:where(.brand) .icons.dark svg { background: var(--d); color: var(--pd); }
/* Fills and strokes for the mockups */
:where(.brand) .fp { fill: var(--p); } :where(.brand) .fs { fill: var(--s); } :where(.brand) .fa { fill: var(--a); }
:where(.brand) .fd { fill: var(--d); } :where(.brand) .fl { fill: var(--l); } :where(.brand) .fw { fill: white; }
:where(.brand) .fpo { fill: var(--p-on); } :where(.brand) .fso { fill: var(--s-on); } :where(.brand) .fao { fill: var(--a-on); }
:where(.brand) .fdo { fill: var(--d-on); } :where(.brand) .fpt { fill: var(--pt); } :where(.brand) .fpd { fill: var(--pd); }
:where(.brand) .fp2 { fill: color-mix(in srgb, var(--p) 72%, black); }
:where(.brand) .fp9 { fill: color-mix(in srgb, var(--p) 20%, white); }
:where(.brand) .fs9 { fill: color-mix(in srgb, var(--s) 32%, white); }
:where(.brand) .fa9 { fill: color-mix(in srgb, var(--a) 35%, white); }
:where(.brand) .fl9 { fill: color-mix(in srgb, var(--l) 35%, white); }
:where(.brand) .fd2 { fill: color-mix(in srgb, var(--d) 70%, black); }
:where(.brand) .fd8 { fill: color-mix(in srgb, var(--d) 55%, white); }
:where(.brand) .ln { fill: color-mix(in srgb, var(--d) 18%, white); }
:where(.brand) .sv { fill: color-mix(in srgb, var(--l) 25%, silver); }
:where(.brand) .skin { fill: color-mix(in srgb, var(--d) 10%, silver); }
:where(.brand) .die { fill: color-mix(in srgb, var(--d) 75%, gray); }
:where(.brand) .pcb { fill: color-mix(in srgb, var(--p) 50%, black); }
:where(.brand) .pcb-l { fill: color-mix(in srgb, var(--p) 35%, black); }
:where(.brand) .pcb-r { fill: color-mix(in srgb, var(--p) 25%, black); }
:where(.brand) .trace { stroke: color-mix(in srgb, var(--a) 60%, gold); }
:where(.brand) .k { fill-rule: nonzero; stroke: var(--d); stroke-width: 1.5; }
:where(.brand) .k path, :where(.brand) path.k { fill: none; }
:where(.brand) .kl { fill: none; stroke: color-mix(in srgb, var(--d) 20%, white); }
:where(.brand) .kp { stroke: var(--pt); } :where(.brand) .ks { stroke: var(--s); } :where(.brand) .ka { stroke: var(--a); }
:where(.brand) .kd { stroke: var(--d); } :where(.brand) .kd2 { stroke: color-mix(in srgb, var(--d) 60%, black); }
:where(.brand) .kd8 { stroke: color-mix(in srgb, var(--d) 55%, white); }
:where(.brand) g.eye path { fill: none; stroke: var(--pd); stroke-opacity: .35; stroke-width: 1; }
/* Logo mark on <use>: color is the first curve, --m2 the second. */
:where(.brand) .m-on { color: var(--p-on); --m2: var(--p-on); }
:where(.brand) .m-pt { color: var(--pt); --m2: var(--st); }
:where(.brand) .m-dk { color: var(--pd); --m2: var(--s); }
:where(.brand) .m-d { color: var(--d); --m2: var(--d); }
:where(.brand) .m-g3 { color: var(--g3); --m2: var(--g3); }
:where(.brand) .ic-on { color: var(--pt); } :where(.brand) .ic-off { color: color-mix(in srgb, var(--d) 45%, white); }
/* Garments: --g1 body, --g2 tie or belt, --g3 trim. Options A, B, C per item. */
:where(.brand) .g1 { fill: var(--g1); } :where(.brand) .g1s { fill: color-mix(in srgb, var(--g1) 72%, black); }
:where(.brand) .g2 { fill: var(--g2); } :where(.brand) .g2s { fill: color-mix(in srgb, var(--g2) 72%, black); }
:where(.brand) .g3 { fill: var(--g3); }
:where(.brand) .kg1s { stroke: color-mix(in srgb, var(--g1) 72%, black); } :where(.brand) .kg2 { stroke: var(--g2); } :where(.brand) .kg3 { stroke: var(--g3); }
:where(.brand) .va { --g1: var(--d); --g2: var(--p); --g3: var(--a); }
:where(.brand) .vb { --g1: color-mix(in srgb, var(--p) 45%, black); --g2: var(--a); --g3: var(--s); }
:where(.brand) .vc { --g1: var(--l); --g2: var(--p); --g3: var(--d); }
:where(.brand) .da { --g1: var(--p); --g2: var(--d); --g3: var(--a); }
:where(.brand) .db { --g1: var(--d); --g2: var(--p); --g3: var(--s); }
:where(.brand) .dc { --g1: var(--s); --g2: var(--d); --g3: var(--a); }
:where(.brand) .ha { --g1: var(--p); --g2: var(--l); }
:where(.brand) .hb { --g1: var(--d); --g2: var(--p); }
:where(.brand) .ma { --g1: var(--p); --g2: var(--d); }
:where(.brand) .mb { --g1: var(--l); --g2: var(--p); }
/* Photo mockups: each span is a palette color cut to its region mask and multiplied over the gray shading.
   brand.js sets mask-image inline: a url() inside a custom property would resolve against this file, not the page. */
:where(.brand) .photo { position: relative; isolation: isolate; border-radius: 6px; overflow: hidden; }
:where(.brand) .photo img { display: block; width: 100%; height: auto; }
:where(.brand) .photo span { position: absolute; inset: 0; mix-blend-mode: multiply;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
:where(.brand) .photo .r1 { background: var(--g1); }
:where(.brand) .photo .r2 { background: var(--g2); }
:where(.brand) .photo .r3 { background: var(--g3); }
:where(.brand) .photo.mood span { mix-blend-mode: color; }
:where(.brand) .mood .mp { background: var(--p); } :where(.brand) .mood .ma2 { background: var(--a); } :where(.brand) .mood .ms { background: var(--s); }
/* Viewing conditions (filters on the whole book): a washed-out projector in a lit room, and matte paper. */
:where(.brand) #demos[data-sim=projector] { filter: contrast(.58) brightness(1.22) saturate(.7); }
:where(.brand) #demos[data-sim=matte] { filter: saturate(.76) contrast(.9) brightness(.96); }
:where(.brand) .sim { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); }
:where(.brand) .sim button { padding: 3px 9px; font-size: 13px; }
:where(.brand) .result { padding: 10px 12px; background: var(--sky); border-left: 4px solid var(--ink); border-radius: 2px; max-width: none; }
:where(.brand) .result button { margin-left: 6px; padding: 4px 10px; font-size: 14px; }
:where(.brand) .shortlist li.won { background: var(--sky); }
:where(.brand) .pack { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.brand) .pack .file { padding: 8px 12px; border: 1px solid var(--field); border-radius: 3px; background: var(--surface); font-weight: 600; font-size: 15px; text-decoration: none; }
:where(.brand) .pack .file:hover { border-color: var(--ink); }
/* Layout: controls in a sidebar that stays in view, the brand book in the main column. One column on narrow screens. */
:where(.brand) .lab { max-width: 1640px; }
:where(.brand) .side h1 { font-size: 30px; margin-bottom: 14px; }
:where(.brand) .side h2 { font-size: 15px; margin: 22px 0 8px; }
:where(.brand) .side .pick label { margin-top: 0; font-size: 14px; }
:where(.brand) .side .pick-row input, :where(.brand) .side .save input { flex: 1 1 120px; }
:where(.brand) .side .hint, :where(.brand) .side #msg { font-size: 13px; line-height: 1.4; margin: 6px 0; }
:where(.brand) .side .ctl button, :where(.brand) .side .save button, :where(.brand) .side .pick button { padding: 6px 10px; font-size: 14px; }
:where(.brand) .side .save { margin-bottom: 0; }
@media (min-width: 1000px) {
  :where(.brand) .lab { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 24px; }
  :where(.brand) .side { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: thin;
    padding: 6px 12px 24px 6px; margin: -6px 0 0 -6px; } /* room for the outline of the selected reading; the scroll box clips at its edge */
}
:where(.brand) .main > .specimen { margin-top: 0; border-radius: 14px; }
:where(.brand) .side .strip { display: grid; border-radius: 8px; }
:where(.brand) .role { display: flex; cursor: grab; }
:where(.brand) .role.made { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, currentColor 14%, transparent) 7px 8px); }
:where(.brand) .side button.seg { flex: 1; min-height: 0; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 8px; padding: 7px 10px; background: none; color: inherit; }
:where(.brand) .side button.seg b { font-size: 14px; }
:where(.brand) .side button.seg small { grid-column: 1 / -1; font-size: 12px; }
:where(.brand) .side button.seg[aria-pressed=true] { box-shadow: inset 4px 0 0 currentColor; }
:where(.brand) .role .edit { position: relative; display: grid; place-items: center; padding: 0 12px; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
:where(.brand) .role .edit input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; border: 0; cursor: pointer; }
:where(.brand) .role .edit:focus-within { outline: 3px solid currentColor; outline-offset: -4px; }
:where(.brand) .side .takes { grid-template-columns: 1fr 1fr; gap: 6px; }
:where(.brand) .side button.take { gap: 6px; padding: 10px 10px 8px; border-radius: 6px; }
:where(.brand) .side .take .lg { font-size: 15px; gap: 5px; }
:where(.brand) .side .take .mk { width: 20px; height: 13px; }
:where(.brand) .side .take-ui { display: none; }
:where(.brand) .side .take-name { font-size: 12px; line-height: 1.25; padding-top: 6px; }
:where(.brand) .side .sim { margin: 0; }
:where(.brand) .side .warn { margin: 0 0 8px; font-size: 13px; line-height: 1.35; }
:where(.brand) .side .warn li { padding: 6px 9px; }
:where(.brand) .chips { display: flex; flex-wrap: wrap; gap: 4px; }
:where(.brand) .chips span { padding: 3px 7px; border-radius: 3px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); }
:where(.brand) .chips span.bad { box-shadow: inset 0 0 0 2px var(--ink); text-decoration: line-through; }
:where(.brand) .side .ramps { font-size: 12px; gap: 4px 8px; }
:where(.brand) .side .ramp span { height: 24px; font-size: 10px; }
/* Feedback for an action: a press state, and colors that move to the new palette instead of jumping. */
:where(.brand) button:active { transform: scale(.97); }
:where(.brand) .specimen, :where(.brand) .role, :where(.brand) button.take, :where(.brand) .sb, :where(.brand) .lg, :where(.brand) .photo span {
  transition: background-color .25s ease, color .25s ease; }
:where(.brand) .photo img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); } /* space is kept while a photo loads */
@media (prefers-reduced-motion: reduce) { :where(.brand) * { transition: none !important; } :where(.brand) button:active { transform: none; } }
/* Phone and tablet: the palette input and the roles come first, then the specimen, then the other controls, so a
   change to a role shows without a long scroll past the whole sidebar. */
@media (max-width: 999px) {
  :where(.brand) .lab { display: flex; flex-direction: column; }
  :where(.brand) .side, :where(.brand) .main { display: contents; }
  :where(.brand) .side > :nth-child(n+8) { order: 2; }
  :where(.brand) .main > .specimen { order: 1; margin: 16px 0 8px; }
  :where(.brand) .main > :not(.specimen) { order: 3; }
  :where(.brand) .jump { position: static; }
  /* The viewer notice wraps here, so no part of it is cut. */
  :where(.viewer) body { padding-bottom: 46px; }
  :where(.viewer) .rights-only { white-space: normal; font-size: 10px; line-height: 13px; }
}

/* ---------- 7. Task board (html.board) ---------- */
:where(.board) .wall { padding: 28px var(--gutter) 48px; }
:where(.board) .head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
:where(.board) .head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
:where(.board) .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:where(.board) button, :where(.board) input, :where(.board) select, :where(.board) textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 3px; padding: 6px 10px;
}
:where(.board) button { cursor: pointer; font-weight: 600; }
:where(.board) button:hover { border-color: var(--ink); }
:where(.board) button.primary, :where(.board) button[aria-pressed=true] { background: var(--brand); color: var(--on-indigo); border-color: var(--brand); }
:where(.board) #unread:not(:empty) { background: var(--amber); color: var(--ink); border-radius: 99px; padding: 0 7px; font-size: 13px; }
:where(.board) .pdk { margin: 10px 0 4px; font-size: 14px; }
:where(.board) #msg { margin: 0 0 10px; font-size: 14px; }
:where(.board) #msg:not(:empty) { background: var(--amber); color: var(--ink); padding: 4px 10px; }
/* Four columns; on a narrow screen they keep their width and scroll sideways. */
:where(.board) .cols { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
:where(.board) .col { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-height: 240px; }
:where(.board) .col.drop { outline: 2px dashed var(--indigo); outline-offset: -2px; }
:where(.board) .col h2 { font-size: 16px; margin: 0 0 12px; }
:where(.board) .cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
:where(.board) .card { display: grid; gap: 3px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
:where(.board) .card:hover { border-color: var(--field); }
:where(.board) .card[draggable=true] { cursor: grab; }
:where(.board) .card.dragging { opacity: .5; }
:where(.board) .card.is-archived { border-style: dashed; }
:where(.board) .card-top { display: flex; gap: 8px; align-items: baseline; }
:where(.board) .card .t { font-weight: 650; font-size: 15px; }
:where(.board) .card-foot { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 2px; }
:where(.board) .count { font-size: 12px; color: var(--muted); }
:where(.board) .prio { flex: none; font-size: 11px; font-weight: 760; line-height: 18px; width: 18px; text-align: center; border-radius: 99px; }
:where(.board) .p-high { background: var(--brand); color: var(--on-indigo); }
:where(.board) .p-medium { background: var(--lilac); color: var(--ink); }
:where(.board) .p-low { background: var(--line); color: var(--ink); }
:where(.board) .overdue { background: var(--amber); color: var(--ink); padding: 0 6px; justify-self: start; }
:where(.board) .waits { border-left: 3px solid var(--amber); padding-left: 6px; }
/* Task panel: a modal side sheet on the right; full width on a phone. Inbox: a centered dialog. */
:where(.board) dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 20px; }
:where(.board) dialog::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
:where(.board) #panel { width: min(780px, calc(100% - 24px)); max-height: calc(100% - 48px); margin: 24px auto; border-radius: 12px; padding: 20px 24px 24px; }
:where(.board) #inbox { width: min(520px, calc(100% - 24px)); border-radius: 6px; }
:where(.board) .dlg-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 14px; }
:where(.board) .dlg-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
:where(.board) .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; }
:where(.board) .field { display: grid; gap: 4px; align-content: start; }
:where(.board) .field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
:where(.board) .field[hidden] { display: none; }
:where(.board) .wide { grid-column: 1 / -1; }
:where(.board) .check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
:where(.board) .actions { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.board) .desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
:where(.board) .meta { font-size: 13px; margin: 14px 0 0; }
:where(.board) .talk { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
:where(.board) .comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
:where(.board) .comments > li { border-left: 3px solid var(--line); padding-left: 10px; }
:where(.board) .c-head { display: flex; gap: 10px; font-size: 14px; }
:where(.board) .c-new { display: grid; gap: 8px; justify-items: start; }
:where(.board) .c-new textarea, :where(.board) .c-new .suggest { justify-self: stretch; }
:where(.board) .suggest { list-style: none; margin: 0; padding: 4px 0; background: var(--bg); border: 1px solid var(--field); border-radius: 3px; }
:where(.board) .suggest li { padding: 4px 10px; cursor: pointer; font-size: 14px; }
:where(.board) .suggest li[aria-selected=true] { background: var(--lilac); }
:where(.board) .suggest[hidden] { display: none; }
:where(.board) .notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
:where(.board) .notes li.unseen { font-weight: 650; }
/* Kanban pieces: avatars, tag tones, add-a-card, popovers and the card window. */
:where(.board) .av { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px;
  background: var(--lilac); color: var(--ink); font-size: 11px; font-weight: 760; letter-spacing: .02em; }
:where(.board) .card-foot .av { margin-left: auto; }
:where(.board) .tag { font-size: 12px; font-weight: 650; line-height: 20px; padding: 0 8px; border-radius: 4px; background: var(--line); color: var(--ink); }
:where(.board) .tone-0 { background: var(--lilac); } :where(.board) .tone-1 { background: var(--sky); }
:where(.board) .tone-2 { background: var(--amber); } :where(.board) .tone-3 { background: var(--line); }
:where(.board) .swatch { width: 32px; height: 16px; padding: 0; flex: none; }
:where(.board) .card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
:where(.board) .card .sub { font-size: 12px; }
:where(.board) #fcount:not(:empty) { background: var(--brand); color: var(--on-indigo); border-radius: 99px; padding: 0 7px; font-size: 13px; }
:where(.board) .adder { margin-top: 8px; }
:where(.board) .adder[hidden] { display: none; }
:where(.board) button.add-card { width: 100%; text-align: left; background: transparent; border-color: transparent; color: var(--muted); font-weight: 600; }
:where(.board) button.add-card:hover { background: var(--bg); color: var(--ink); border-color: transparent; }
:where(.board) .composer { display: grid; gap: 8px; }
:where(.board) .composer textarea { resize: vertical; background: var(--bg); border-radius: 4px; }
:where(.board) .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
:where(.board) button.x { background: transparent; border-color: transparent; font-size: 22px; line-height: 1; padding: 2px 8px; color: var(--muted); }
:where(.board) button.x:hover { background: var(--bg); color: var(--ink); border-color: transparent; }
:where(.board) button.link { background: transparent; border: 0; padding: 0; color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:where(.board) button.chip, :where(.board) span.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--bg); border: 1px solid transparent;
  border-radius: 4px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
:where(.board) button.chip:hover { border-color: var(--field); }
:where(.board) .pop { position: absolute; z-index: 50; width: 304px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 22%, transparent); font-size: 14px; }
:where(.board) .pop-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 8px; }
:where(.board) .pop-head span { grid-column: 2; text-align: center; font-weight: 650; color: var(--muted); }
:where(.board) .pop-head .x { grid-column: 3; padding: 0; font-size: 20px; }
:where(.board) .pop-body { display: grid; gap: 8px; }
:where(.board) .pop-body h4 { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
:where(.board) .pop-body input[type=search], :where(.board) .pop-body input:not([type]), :where(.board) .pop-body input[type=date] { width: 100%; box-sizing: border-box; }
:where(.board) .pop-text { margin: 0; }
:where(.board) .pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
:where(.board) .pick button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: transparent;
  border-color: transparent; font-weight: 500; padding: 6px 8px; }
:where(.board) .pick button:hover, :where(.board) .pick button:focus-visible { background: var(--bg); border-color: transparent; }
:where(.board) .pick button[aria-pressed=true] { font-weight: 650; }
:where(.board) .pick .lbl { flex: 1; min-width: 0; overflow-wrap: anywhere; }
:where(.board) .pick .tick { color: var(--indigo); font-weight: 800; }
:where(.board) .hint { font-size: 13px; padding: 4px 8px; display: block; }
:where(.board) button.wide-btn { width: 100%; }
:where(.board) button.danger { background: var(--ink); color: var(--surface); border-color: var(--ink); }
:where(.board) .cw-head { display: flex; gap: 8px; align-items: start; }
:where(.board) .cw-title { flex: 1; margin: 0; font-size: 22px; font-weight: 720; line-height: 1.3; overflow-wrap: anywhere; }
:where(.board) textarea.cw-title { resize: none; border-color: transparent; background: transparent; padding: 4px 8px; margin-left: -8px; field-sizing: content; }
:where(.board) textarea.cw-title:focus { border-color: var(--indigo); background: var(--bg); }
:where(.board) .cw-where { margin: 2px 0 16px; font-size: 14px; }
:where(.board) .cw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 24px; }
:where(.board) .cw-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
:where(.board) .cw-chips { display: flex; flex-wrap: wrap; gap: 14px 22px; }
:where(.board) .cw-chips:empty { display: none; }
:where(.board) .chipset h4, :where(.board) .cw-side h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
:where(.board) .tags-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
:where(.board) .tags-row .tag { line-height: 30px; padding: 0 10px; }
:where(.board) .cw-sec h3 { margin: 0 0 6px; font-size: 16px; display: inline-block; margin-right: 12px; }
:where(.board) .cw-sec > .link { font-size: 14px; }
:where(.board) .editable { cursor: text; border-radius: 4px; }
:where(.board) p.editable:hover { background: var(--bg); }
:where(.board) .cw-side { display: grid; gap: 6px; align-content: start; }
:where(.board) .cw-side h4 + button { margin-top: 0; }
:where(.board) .cw-side h4:not(:first-child) { margin-top: 12px; }
:where(.board) .cw-side button { text-align: left; background: var(--bg); border-color: transparent; font-weight: 600; }
:where(.board) .cw-side button:hover { border-color: var(--field); }
:where(.board) .cw-side button.danger { background: var(--ink); color: var(--surface); }
:where(.board) .c-head { align-items: center; }
:where(.board) .comments > li { border-left: 0; padding-left: 0; }
:where(.board) .comments .desc { background: var(--bg); padding: 8px 10px; border-radius: 6px; margin: 4px 0 2px 36px; }
:where(.board) .actions.small { margin-left: 36px; gap: 14px; font-size: 13px; }
:where(.board) .suggest li { display: flex; gap: 8px; align-items: center; }
:where(.board) .notes li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  :where(.board) .cw-grid { grid-template-columns: 1fr; }
  :where(.board) #panel { width: 100%; max-height: 100%; margin: 0; border-radius: 0; height: 100%; }
  :where(.board) .cols { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  :where(.board) .col { scroll-snap-align: start; }
}

/* ---------- 8. Invitation desktop: an intentionally independent XP theme ---------- */
:root.invitation {
  --xp-blue: #0054e3; --xp-blue-light: #4091ff; --xp-blue-mid: #2272ed; --xp-blue-dark: #003caa;
  --xp-white: #fff; --xp-ink: #24334b; --xp-muted: #667387; --xp-paper: #fffef9;
  --xp-chrome: #ece9d8; --xp-border: #aca899; --xp-shadow: #001b5870;
  --xp-green: #369238; --xp-green-light: #79bd68; --xp-green-dark: #1f6329;
  --xp-red: #dc573b; --xp-red-light: #fca487; --xp-red-dark: #b42916;
  --xp-focus: #f4b428; --xp-rule: #dce0e4; --xp-toast: #fffed7;
  --xp-sky: #2984d3; --xp-terminal: #101b2d; --xp-glow: #a5e8a4;
  --xp-card-shadow: #064aaa24; --xp-transparent-white: #ffffff55;
  color-scheme: light; background: var(--xp-sky);
}
:where(.invitation) body { margin: 0; color: var(--xp-ink); font: 14px/1.5 Tahoma, Verdana, sans-serif; background: var(--xp-sky); }
:where(.invitation) button, :where(.invitation) input, :where(.invitation) textarea { font: inherit; }
:where(.invitation) button { cursor: pointer; }
:where(.invitation) button:disabled { cursor: not-allowed; opacity: .55; }
:where(.invitation) button:focus-visible, :where(.invitation) a:focus-visible, :where(.invitation) input:focus-visible, :where(.invitation) textarea:focus-visible { outline: 3px solid var(--xp-focus); outline-offset: 3px; }
:where(.invitation) [hidden] { display: none !important; }
:where(.invitation) h1, :where(.invitation) h2, :where(.invitation) h3 { font-variation-settings: normal; font-stretch: normal; }
:where(.invitation) p { max-width: none; }
:where(.invitation) .xp-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:where(.invitation) .xp-skip { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--xp-white); color: var(--xp-blue); }
:where(.invitation) .xp-skip:focus { top: 12px; }
:where(.invitation) .xp-desktop { min-height: 100svh; padding: 110px 95px 116px 170px; display: grid; place-items: center; background: url('/invitation/bliss.svg') center / cover fixed; position: relative; isolation: isolate; overflow: clip; }
:where(.invitation) .xp-icons { position: absolute; top: 23px; left: 19px; display: grid; gap: 15px; width: 104px; }
:where(.invitation) .xp-desktop-icon { display: grid; justify-items: center; gap: 5px; padding: 7px 2px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--xp-white); font-size: 13px; line-height: 1.4; text-shadow: 1px 2px 2px var(--xp-terminal); }
:where(.invitation) .xp-desktop-icon svg { width: 48px; height: 48px; filter: drop-shadow(2px 3px 1px var(--xp-shadow)); }
:where(.invitation) .xp-desktop-icon:hover, :where(.invitation) .xp-desktop-icon:focus-visible { background: var(--xp-transparent-white); border-color: var(--xp-transparent-white); }
:where(.invitation) .xp-selected span { background: var(--xp-blue-dark); outline: 1px dotted var(--xp-white); padding: 0 4px; }
:where(.invitation) .xp-desktop-brand { position: absolute; right: 47px; top: 24px; color: var(--xp-white); display: grid; text-align: right; text-shadow: 0 2px 15px var(--xp-shadow); }
:where(.invitation) .xp-desktop-brand > span { font: 600 37px/1.2 Georgia, serif; letter-spacing: -2px; }
:where(.invitation) .xp-brand-plus { margin-left: 7px; color: var(--xp-toast); }
:where(.invitation) .xp-window { width: min(920px, 100%); border: 3px solid var(--xp-blue); border-top: 0; border-radius: 9px 9px 2px 2px; background: var(--xp-chrome); box-shadow: 0 18px 50px var(--xp-shadow), 1px 1px 0 var(--xp-blue-dark); position: relative; z-index: 2; transform-origin: 40% 100%; }
:where(.invitation) .xp-window.xp-opening { animation: xp-window-open .65s cubic-bezier(.16,1,.3,1) both; }
:where(.invitation) .xp-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; margin: 0 -1px; padding: 4px 5px 4px 9px; border-radius: 8px 8px 0 0; background: linear-gradient(var(--xp-blue-light), var(--xp-blue-mid) 10%, var(--xp-blue) 50%, var(--xp-blue) 75%, var(--xp-blue-mid)); box-shadow: inset 0 1px 1px var(--xp-transparent-white); color: var(--xp-white); font-size: 14px; font-weight: bold; text-shadow: 1px 1px var(--xp-blue-dark); user-select: none; touch-action: none; cursor: grab; }
:where(.invitation) .xp-titlebar > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
:where(.invitation) .xp-titlebar > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.invitation) .xp-titlebar svg { width: 22px; height: 22px; flex-shrink: 0; }
:where(.invitation) .xp-titlebar .xp-window-controls { gap: 3px; flex-shrink: 0; }
:where(.invitation) .xp-window-controls button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--xp-white); border-radius: 4px; color: var(--xp-white); background: linear-gradient(135deg, var(--xp-blue-light), var(--xp-blue)); box-shadow: inset 1px 1px 2px var(--xp-transparent-white); font: bold 21px/22px Arial, sans-serif; text-shadow: 1px 1px var(--xp-blue-dark); }
:where(.invitation) .xp-window-controls .xp-close { background: linear-gradient(135deg, var(--xp-red-light), var(--xp-red) 50%, var(--xp-red-dark)); }
:where(.invitation) .xp-window-controls button:hover { filter: brightness(1.2); }
:where(.invitation) .xp-paper { padding: 29px 36px 22px; background: var(--xp-paper); min-height: 462px; }
:where(.invitation) h1 { font: normal clamp(42px, 4.8vw, 68px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -3px; margin: 0 0 18px; color: var(--xp-ink); }
:where(.invitation) .xp-event-subtitle { margin: 0 0 3px; font-size: 13px; color: var(--xp-muted); }
:where(.invitation) .xp-thesis-title { font: bold 18px/1.4 Tahoma, sans-serif; margin: 0; color: var(--xp-ink); letter-spacing: -.3px; }
:where(.invitation) .xp-event-facts { display: grid; grid-template-columns: 1.14fr 1fr; gap: 16px; border-block: 1px solid var(--xp-rule); padding: 18px 0; }
:where(.invitation) .xp-event-facts > div { display: flex; gap: 10px; align-items: flex-start; }
:where(.invitation) .xp-event-facts > div > div { display: grid; gap: 3px; }
:where(.invitation) .xp-event-facts small { font-size: 9px; letter-spacing: .09em; color: var(--xp-muted); }
:where(.invitation) .xp-event-facts strong { font-size: 14px; font-weight: bold; line-height: 1.45; }
:where(.invitation) .xp-invite-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
:where(.invitation) .xp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 33px; padding: 6px 17px; border: 1px solid var(--xp-blue-dark); border-radius: 3px; box-shadow: inset 1px 1px var(--xp-white), inset -1px -2px 2px var(--xp-border); background: linear-gradient(var(--xp-white),var(--xp-chrome)); color: var(--xp-ink); font-size: 12px; text-decoration: none; }
:where(.invitation) .xp-button svg { width: 21px; height: 21px; }
:where(.invitation) .xp-primary { background: linear-gradient(var(--xp-blue-light),var(--xp-blue-mid) 45%,var(--xp-blue)); box-shadow: inset 0 1px var(--xp-transparent-white), 0 2px 3px var(--xp-card-shadow); color: var(--xp-white); }
:where(.invitation) .xp-button:hover { outline: 2px solid var(--xp-focus); outline-offset: -3px; }
:where(.invitation) .xp-button:active { transform: translateY(1px); }
:where(.invitation) .xp-paper section[role="tabpanel"] > p:not([class]) { color: var(--xp-muted); font-size: 14px; line-height: 1.8; }
:where(.invitation) .xp-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
:where(.invitation) .xp-person { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--xp-rule); }
:where(.invitation) .xp-person strong { font-size: 12px; }
:where(.invitation) .xp-taskbar { position: fixed; z-index: 50; bottom: 0; inset-inline: 0; height: 40px; display: flex; align-items: center; background: linear-gradient(var(--xp-blue-light), var(--xp-blue-mid) 12%, var(--xp-blue) 80%, var(--xp-blue-dark)); box-shadow: 0 -1px 3px var(--xp-shadow); }
:where(.invitation) .xp-start-button { border: 0; border-radius: 0 14px 14px 0; align-self: stretch; padding: 0 25px 0 13px; color: var(--xp-white); background: linear-gradient(var(--xp-green-light),var(--xp-green) 18%,var(--xp-green-dark)); display: flex; align-items: center; gap: 8px; box-shadow: inset 0 2px 3px var(--xp-transparent-white), 2px 0 4px var(--xp-shadow); font: bold 23px Tahoma, sans-serif; text-shadow: 1px 2px var(--xp-green-dark); }
:where(.invitation) .xp-start-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; transform: rotate(-10deg); }
:where(.invitation) .xp-start-logo i { background: var(--xp-white); opacity: .9; }
:where(.invitation) .xp-task-button { margin-left: 12px; display: flex; align-items: center; gap: 8px; width: 205px; height: 30px; border: 1px solid var(--xp-blue-dark); border-radius: 3px; background: var(--xp-blue-dark); box-shadow: inset 1px 1px 2px var(--xp-shadow); color: var(--xp-white); text-align: left; font-size: 12px; padding: 3px 10px; }
:where(.invitation) .xp-task-button svg { width: 21px; height: 21px; }
:where(.invitation) .xp-task-tray { margin-left: auto; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: linear-gradient(var(--xp-blue-light), var(--xp-sky)); border-left: 1px solid var(--xp-blue-dark); color: var(--xp-white); font-size: 12px; }
:where(.invitation) .xp-task-tray button { width: 24px; height: 28px; padding: 0; border: 0; background: none; color: inherit; }
:where(.invitation) .xp-task-tray svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
:where(.invitation) .xp-task-tray button[aria-pressed="false"] { opacity: .6; }
:where(.invitation) .xp-toast { position: fixed; bottom: 59px; right: 26px; z-index: 45; width: 300px; background: var(--xp-toast); color: var(--xp-ink); border: 1px solid var(--xp-border); border-radius: 7px; padding: 14px 29px 14px 18px; box-shadow: 3px 4px 10px var(--xp-shadow); animation: xp-toast-in .35s ease both; }
:where(.invitation) .xp-toast::after { content: ''; position: absolute; bottom: -10px; right: 28px; width: 17px; height: 17px; transform: skewY(-40deg); background: var(--xp-toast); border-right: 1px solid var(--xp-border); }
:where(.invitation) .xp-toast strong { font-size: 13px; }
:where(.invitation) .xp-toast p { font-size: 12px; margin: 5px 0 0; }
:where(.invitation) .xp-toast > button { position: absolute; right: 7px; top: 4px; padding: 0 3px; background: none; border: 0; color: var(--xp-muted); font-size: 20px; }
:where(.invitation) .xp-start-menu { position: fixed; z-index: 49; bottom: 40px; left: 0; width: 290px; border: 2px solid var(--xp-blue); border-radius: 7px 7px 0 0; background: var(--xp-white); box-shadow: 5px -5px 20px var(--xp-shadow); overflow: hidden; }
:where(.invitation) .xp-start-user { display: flex; align-items: center; gap: 12px; background: linear-gradient(var(--xp-blue),var(--xp-blue-light)); padding: 14px; color: var(--xp-white); font-size: 17px; font-weight: bold; }
:where(.invitation) .xp-start-user svg { width: 40px; height: 40px; border: 1px solid var(--xp-white); border-radius: 3px; }
:where(.invitation) .xp-start-menu > button, :where(.invitation) .xp-start-menu > a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 17px; background: none; border: 0; color: var(--xp-ink); text-decoration: none; font-size: 14px; }
:where(.invitation) .xp-start-menu > button:hover, :where(.invitation) .xp-start-menu > a:hover { background: var(--xp-side-body); }
:where(.invitation) .xp-start-menu > button svg { width: 30px; height: 30px; }
:where(.invitation) .xp-start-menu > a { border-top: 1px solid var(--xp-rule); font-size: 12px; }
:where(.invitation) .xp-start-bottom { background: var(--xp-blue-light); padding: 10px; text-align: right; }
:where(.invitation) .xp-start-bottom button { color: var(--xp-white); border: 0; background: none; font-size: 12px; }
:where(.invitation) .xp-utility-window { position: fixed; top: 24%; left: 50%; transform: translateX(-50%); width: min(460px,calc(100vw - 28px)); z-index: 20; }
:where(.invitation) .xp-utility-content { padding: 24px; font-size: 14px; line-height: 1.8; }
:where(.invitation) .xp-utility-content h2 { font: normal 28px Georgia, serif; margin: 0 0 14px; }
:where(.invitation) .xp-utility-content a { color: var(--xp-blue); }
:where(.invitation) .xp-utility-content .xp-button { color: var(--xp-white); }
:where(.invitation) .xp-utility-footer { display: flex; justify-content: flex-end; padding: 10px 20px 18px; }
:where(.invitation) .xp-utility-footer button { min-width: 80px; }
:where(.invitation) .xp-window.xp-maximized { position: fixed; inset: 6px 6px 46px; width: auto; transform: none !important; display: flex; flex-direction: column; z-index: 30; }
:where(.invitation) .xp-maximized .xp-paper { min-height: calc(100% - 45px); }
:where(.invitation) .xp-boot { position: fixed; inset: 0; z-index: 100; background: var(--xp-terminal); color: var(--xp-white); display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity .45s ease, visibility .45s; }
:where(.invitation) .xp-boot.xp-boot-leave { opacity: 0; visibility: hidden; }
:where(.invitation) .xp-boot-brand { display: flex; align-items: center; gap: 20px; }
:where(.invitation) .xp-boot-brand svg { width: 80px; height: 80px; }
:where(.invitation) .xp-boot-brand > span { font: bold 49px Georgia, serif; letter-spacing: -2px; }
:where(.invitation) .xp-boot-exe { font: italic 25px Georgia, serif; color: var(--xp-focus); }
:where(.invitation) .xp-boot-track { display: flex; gap: 3px; border: 1px solid var(--xp-muted); border-radius: 4px; width: 185px; height: 17px; padding: 3px; margin: 48px 0 8px; overflow: hidden; }
:where(.invitation) .xp-boot-track i { width: 12px; background: linear-gradient(var(--xp-blue-light), var(--xp-blue)); animation: xp-load 1.3s infinite linear; flex-shrink: 0; }
:where(.invitation) .xp-boot > button { margin-top: 30px; }
:where(.invitation) .xp-noscript { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--xp-toast); padding: 10px; }
@keyframes xp-window-open { from { opacity: 0; scale: .86; translate: 0 34px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes xp-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes xp-load { from { transform: translateX(-45px); } to { transform: translateX(185px); } }
@media (min-width: 1450px) { :where(.invitation) .xp-window { width: 1010px; } :where(.invitation) .xp-paper { padding: 34px 44px 28px; } :where(.invitation) .xp-invitation-message { font-size: 16px; } :where(.invitation) .xp-explorer { grid-template-columns: 210px minmax(0,1fr); } }
@media (max-width: 1000px) { :where(.invitation) .xp-desktop { padding: 100px 30px 105px 135px; } :where(.invitation) .xp-explorer { grid-template-columns: 155px minmax(0,1fr); } :where(.invitation) .xp-sidebar { padding: 14px 8px; } :where(.invitation) .xp-paper { padding: 26px 25px 20px; } :where(.invitation) .xp-side-group > div { padding: 8px; } :where(.invitation) .xp-side-group button { font-size: 11px; } :where(.invitation) .xp-event-facts { grid-template-columns: 1fr; gap: 14px; } :where(.invitation) .xp-postmark { display: none; } }
@media (max-width: 760px) { :where(.invitation) .xp-desktop { padding: 110px 14px 90px; place-items: start center; } :where(.invitation) .xp-icons { position: relative; inset: auto; display: flex; gap: 10px; width: 100%; margin-bottom: 25px; justify-content: center; } :where(.invitation) .xp-desktop-icon { width: 82px; font-size: 11px; } :where(.invitation) .xp-desktop-icon svg { width: 39px; height: 39px; } :where(.invitation) .xp-desktop-icon:last-child { display: none; } :where(.invitation) .xp-desktop-brand { top: 22px; left: 25px; right: auto; text-align: left; } :where(.invitation) .xp-desktop-brand > span { font-size: 32px; } :where(.invitation) .xp-explorer { grid-template-columns: 1fr; } :where(.invitation) .xp-sidebar { display: none; } :where(.invitation) .xp-paper { padding: 28px 25px 24px; min-height: 0; } :where(.invitation) h1 { font-size: clamp(42px,9vw,62px); } :where(.invitation) .xp-kicker { font-size: 9px; } :where(.invitation) .xp-invitation-message { font-size: 15px; } :where(.invitation) .xp-event-facts { grid-template-columns: 1fr 1fr; } :where(.invitation) .xp-statusbar { font-size: 9px; } :where(.invitation) .xp-toast { right: 14px; width: min(300px,calc(100vw - 28px)); } :where(.invitation) .xp-session { display: none; } :where(.invitation) .xp-titlebar { height: 39px; } :where(.invitation) .xp-window-controls button { width: 29px; height: 29px; } }
@media (max-width: 440px) { :where(.invitation) .xp-desktop { padding-inline: 8px; } :where(.invitation) .xp-paper { padding: 24px 18px; } :where(.invitation) .xp-event-facts { grid-template-columns: 1fr; } :where(.invitation) .xp-paper-footer { flex-direction: column; align-items: flex-start; gap: 10px; } :where(.invitation) .xp-tabs { padding-inline: 8px; } :where(.invitation) .xp-tabs button { padding: 7px 10px; } :where(.invitation) .xp-team-grid { grid-template-columns: 1fr; } :where(.invitation) .xp-start-button { padding-right: 17px; } :where(.invitation) .xp-task-button { width: 150px; margin-left: 6px; } :where(.invitation) .xp-task-tray { gap: 7px; padding: 0 9px; } :where(.invitation) .xp-titlebar { font-size: 12px; } :where(.invitation) .xp-statusbar { flex-direction: column; gap: 0; } :where(.invitation) .xp-menubar { gap: 15px; } }
@media (prefers-reduced-motion: reduce) { :where(.invitation) *, :where(.invitation) *::before, :where(.invitation) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { :where(.invitation) .xp-desktop { display: block; padding: 0; background: var(--xp-white); } :where(.invitation) .xp-icons, :where(.invitation) .xp-taskbar, :where(.invitation) .xp-desktop-brand, :where(.invitation) .xp-sidebar, :where(.invitation) .xp-titlebar, :where(.invitation) .xp-menubar, :where(.invitation) .xp-address, :where(.invitation) .xp-tabs, :where(.invitation) .xp-toast, :where(.invitation) .xp-utility-window, :where(.invitation) .xp-start-menu, :where(.invitation) .xp-boot, :where(.invitation) .xp-invite-actions, :where(.invitation) .xp-session { display: none !important; } :where(.invitation) .xp-invite-window { display: block !important; transform: none !important; width: 100%; border: 0; box-shadow: none; position: static; } :where(.invitation) .xp-explorer { display: block; } }
/* Keep focus on controls; programmatic panel focus must not frame the whole document. */
:where(.invitation) .xp-paper:focus { outline: none; }
:where(.invitation) .xp-invite-window.xp-closing { pointer-events: none; animation: xp-window-close .19s ease-in both; }
:where(.invitation) .xp-utility-window.xp-closing { pointer-events: none; animation: xp-window-close .19s ease-in both; }
:where(.invitation) .xp-opening h1 { animation: xp-reveal .65s .2s both; }
:where(.invitation) .xp-opening .xp-event-facts { animation: xp-reveal .6s .32s both; }
:where(.invitation) .xp-opening .xp-invite-actions { animation: xp-reveal .6s .44s both; }
@keyframes xp-window-close { to { opacity: 0; scale: .82; translate: 0 45px; } }
@keyframes xp-reveal { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
:where(.invitation) .xp-desktop { padding: 90px 65px 95px 135px; }
:where(.invitation) .xp-invite-window { width: min(650px,100%); }
:where(.invitation) .xp-paper { min-height: 0; padding: 35px 40px 28px; text-align: center; }
:where(.invitation) .xp-letter-icon { margin-bottom: 12px; }
:where(.invitation) .xp-letter-icon svg { width: 58px; height: 58px; filter: drop-shadow(1px 3px 2px var(--xp-card-shadow)); }
:where(.invitation) h1 { font-size: 61px; margin: 0 0 22px; }
:where(.invitation) .xp-event-subtitle { font-size: 15px; margin: 0 0 4px; }
:where(.invitation) .xp-thesis-title { font-size: 20px; font-weight: normal; }
:where(.invitation) .xp-event-facts { display: grid; grid-template-columns: 1fr; gap: 18px; border-block: 1px solid var(--xp-rule); margin: 24px 0; padding: 22px 0; }
:where(.invitation) .xp-event-facts > div { display: grid; gap: 4px; }
:where(.invitation) .xp-event-facts strong { font-size: 16px; }
:where(.invitation) .xp-event-facts span { font-size: 14px; color: var(--xp-muted); }
:where(.invitation) .xp-invite-actions { justify-content: center; margin: 0 0 23px; }
:where(.invitation) .xp-button { font-size: 14px; min-height: 36px; }
:where(.invitation) .xp-signature { font: italic 20px Georgia, serif; color: var(--xp-blue-dark); }
:where(.invitation) .xp-signature span { font-style: normal; margin-left: 3px; }
:where(.invitation) .xp-utility-content .xp-team-grid { grid-template-columns: 1fr; margin: 0; gap: 5px; }
:where(.invitation) .xp-person strong { font-size: 14px; }
:where(.invitation) .xp-person { padding: 8px 5px; }
:where(.invitation) .xp-utility-window { max-height: calc(100svh - 75px); overflow: auto; top: 15%; }
:where(.invitation) .xp-maximized .xp-paper { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: auto; }
:where(.invitation) .xp-maximized .xp-event-facts { width: min(450px,100%); align-self: center; }
@media (max-width: 760px) {
  :where(.invitation) .xp-desktop { padding: 88px 14px 75px; }
  :where(.invitation) .xp-icons { gap: 16px; margin-bottom: 18px; }
  :where(.invitation) .xp-desktop-icon:last-child { display: grid; }
  :where(.invitation) .xp-desktop-brand { top: 20px; }
  :where(.invitation) .xp-paper { padding: 28px 20px 25px; }
  :where(.invitation) h1 { font-size: clamp(41px,9vw,60px); letter-spacing: -2px; }
  :where(.invitation) .xp-event-facts { margin: 21px 0; padding: 18px 0; gap: 16px; }
  :where(.invitation) .xp-letter-icon svg { width: 46px; height: 46px; }
  :where(.invitation) .xp-invite-actions { gap: 9px; }
  :where(.invitation) .xp-button { padding-inline: 13px; }
  :where(.invitation) .xp-invite-window { width: 100%; }
  :where(.invitation) .xp-maximized .xp-paper { display: block; }
}

:where(.invitation) h1 em { color: var(--xp-blue); font-weight: normal; }
:root.invitation { --xp-login-blue: #597bdc; --xp-login-light: #91aaf1; --xp-login-dark: #063aa5; --xp-logo-red: #f64e28; --xp-logo-green: #7dc442; --xp-logo-blue: #37a8ec; --xp-logo-yellow: #ffce30; }
:where(.invitation) .xp-loading { display: flex; flex-direction: column; align-items: center; }
:where(.invitation) .xp-boot-brand { gap: 15px; }
:where(.invitation) .xp-boot-brand > span:not(.xp-flag) { font: 600 58px Tahoma, sans-serif; letter-spacing: -3px; }
:where(.invitation) .xp-boot-exe { vertical-align: top; font: normal 27px Tahoma, sans-serif; color: var(--xp-logo-red); letter-spacing: -1px; margin-left: 4px; }
:where(.invitation) .xp-flag { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 74px; height: 67px; transform: skewY(-9deg) rotate(8deg); }
:where(.invitation) .xp-flag i { box-shadow: inset 3px 3px 10px var(--xp-transparent-white); }
:where(.invitation) .xp-flag i:nth-child(1) { background: var(--xp-logo-red); }
:where(.invitation) .xp-flag i:nth-child(2) { background: var(--xp-logo-green); }
:where(.invitation) .xp-flag i:nth-child(3) { background: var(--xp-logo-blue); }
:where(.invitation) .xp-flag i:nth-child(4) { background: var(--xp-logo-yellow); }
:where(.invitation) .xp-boot-actions { position: absolute; bottom: 8%; display: flex; align-items: center; gap: 25px; }
:where(.invitation) .xp-boot-skip { background: none; border: none; color: var(--xp-white); font-size: 14px; padding: 9px; }
:where(.invitation) .xp-boot.xp-welcome { background: radial-gradient(ellipse at 22% 22%,var(--xp-login-light),var(--xp-login-blue) 65%); border-block: 10vh solid var(--xp-login-dark); }
:where(.invitation) .xp-welcome::before, :where(.invitation) .xp-welcome::after { content: ''; position: absolute; inset-inline: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--xp-white),transparent); }
:where(.invitation) .xp-welcome::before { top: 0; }
:where(.invitation) .xp-welcome::after { bottom: 0; }
:where(.invitation) .xp-login { display: flex; align-items: center; gap: 48px; width: min(700px,90%); animation: xp-reveal .4s both; }
:where(.invitation) .xp-login-welcome { flex: 1; padding: 70px 45px 70px 0; border-right: 1px solid var(--xp-transparent-white); font: italic 54px Tahoma, sans-serif; text-align: right; letter-spacing: -2px; text-shadow: 1px 2px var(--xp-shadow); }
:where(.invitation) .xp-login-user { display: flex; gap: 15px; align-items: center; flex: 1; }
:where(.invitation) .xp-login-avatar { width: 72px; height: 72px; padding: 9px; background: linear-gradient(var(--xp-white),var(--xp-side-top)); border: 2px solid var(--xp-white); border-radius: 7px; box-shadow: 2px 3px 10px var(--xp-shadow); }
:where(.invitation) .xp-login-avatar svg { width: 100%; height: 100%; }
:where(.invitation) .xp-login-user strong { display: block; font-size: 22px; font-weight: normal; }
:where(.invitation) .xp-login-user span { display: block; font-size: 14px; margin-top: 4px; }
:where(.invitation) .xp-login-user .xp-login-dots { display: inline; animation: xp-login-pulse 1s infinite alternate; }
:where(.invitation) .xp-welcome .xp-boot-actions { bottom: 6%; }
@keyframes xp-login-pulse { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 600px) {
  :where(.invitation) .xp-boot-brand > span:not(.xp-flag) { font-size: 44px; }
  :where(.invitation) .xp-flag { width: 56px; height: 52px; gap: 4px; }
  :where(.invitation) .xp-login { flex-direction: column; gap: 25px; }
  :where(.invitation) .xp-login-welcome { border-right: 0; border-bottom: 1px solid var(--xp-transparent-white); padding: 0 30px 26px; font-size: 47px; }
  :where(.invitation) .xp-login-user { gap: 17px; }
}
