:root {
  color-scheme: light;
  --ink: #213b30; --muted: #526257; --green: #285d47;
  --line: #d3ddd2; --paper: #fffdf7; --soft: #eef2e8;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); line-height: 1.65; }
body > main { flex: 1; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }   /* focus is green (style guide §3) */
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.content { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -6rem; left: 1rem; padding: .75rem 1rem; border-radius: 8px; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 18px; }
.home-brand, .account-brand { color: var(--ink); font-size: clamp(1.25rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.home-brand span, .account-brand span { color: var(--green); }
.header-signup { margin-left: auto; padding: 11px 18px; border-radius: 4px; background: var(--green); color: white; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-signup:hover { background: #1c4835; }
.header-account { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .9rem; }
.header-account .header-signup { margin-left: 0; }
.header-signup + .head-icon { margin-left: 0; }   /* the button takes the free space; the icon sits right of it */
.site-menu { position: relative; flex: none; }
.site-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary, .site-menu summary:hover { background: var(--soft); }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-panel { position: absolute; top: calc(100% + 12px); left: 0; width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 20px 60px #213b3024; }
.menu-links { display: grid; gap: 3px; }
.menu-links a { padding: 12px 16px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-links a:hover, .menu-links a[aria-current=page] { background: var(--soft); }
.eyebrow, .feature-kicker, .about-kicker, .about-label { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.page-title { margin: 18px 0 24px; font-size: clamp(2.7rem, 5.5vw, 4.8rem); }
.page-hero { padding-block: clamp(48px, 7vw, 88px) 36px; }
.lead, .workshop-lead { max-width: 720px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); }
.section { padding-block: clamp(40px, 6vw, 72px) 88px; }
.content h2 { margin: 2.4rem 0 .8rem; font-size: 1.65rem; }
.content h3 { margin-top: 1.8rem; }
.content p, .content li { color: var(--muted); }
.content li { margin-block: .65rem; }
.small { font-size: .88rem; color: var(--muted); }
code { padding: .12em .3em; border-radius: 4px; background: var(--soft); color: var(--ink); overflow-wrap: anywhere; }
.legal-content { overflow-wrap: anywhere; }
/* Legal text at reading width (760 px, operator 2026-11-13 ~19:05) in the guide's type sizes: heading 28/24, sections 20. */
.legal-content article > h1 { font-size: 1.75rem; line-height: 1.25; margin-block: 32px 24px; }
.legal-content article > h2 { padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.legal-content nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }   /* frozen /legal/ copies only */
.legal-content strong { color: var(--ink); }
.legal-content table { width: 100%; border-collapse: collapse; margin-block: 1rem; }
.legal-content th, .legal-content td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
/* Contact form on /legal-notice/ (legal set 0.9.1); plain HTML form, no script */
.contact-form { margin-block: 32px; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.contact-form form { display: grid; gap: 8px; max-width: 560px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.contact-form label { font-weight: 600; margin-top: 8px; }
.contact-form button { justify-self: start; margin-top: 12px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; }
.site-footer { margin-top: auto; background: #000; color: #73f293; font-family: "Courier New", Courier, monospace; }
.footer-inner { min-height: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 14px; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: inherit; }

/* Landscape and original manifesto */
.page-home { isolation: isolate; }
.page-home::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, #fffdf7fa 0%, #fffdf7ee 40%, #fffdf755 68%, #fffdf71a), url("/assets/meadow-workshop.jpg") 75% bottom / cover; pointer-events: none; }
.page-home .site-header { background: #fffdf7ed; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding-block: clamp(40px, 8vw, 96px) 24px; }
.home-hero h1 { align-self: start; margin: 0; font-weight: 700; }
/* Two lines, each one line (operator 2026-11-02 21:38). The size follows the column: 9.2 % of its width, at most
   4.75rem; the first line starts half a line higher, the manifesto keeps its place. The column's width is written
   out (wrap minus the 330 px box and the 48 px gap; on a narrow screen the whole wrap) instead of a container query,
   which the W3C CSS validator does not know (S-1841). */
.home-hero h1 span { display: block; font-size: min(4.75rem, calc((min(1160px, 100vw - 64px) - 378px) * .092)); letter-spacing: -.04em; }
@media (max-width: 950px) { .home-hero h1 span { font-size: min(4.75rem, calc((100vw - 64px) * .092)); } }
@media (max-width: 520px) { .home-hero h1 span { font-size: calc((100vw - 36px) * .092); } }
.home-hero h1 span:first-child { margin-top: -.56em; }
.home-hero h1 span:last-child { margin-bottom: 1.9em; }
.home-sub { margin: -1.4em 0 1.6em; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 650; color: var(--green); }   /* website 2.0 subline (S-1818) */
.home-quickstart { display: grid; gap: 12px; width: 330px; padding: 26px; border: 1px solid #ffffffa6; border-radius: 4px; background: #fffdf7de; text-align: center; box-shadow: 0 18px 60px #213b3015; }
.home-quickstart > p { margin: 0; }
.manifesto { padding-block: 48px 96px; }
.manifesto-text { width: min(100%, 680px); }
.manifesto h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
.manifesto p { font-size: 1.13rem; line-height: 1.8; margin-block: 0 1.5em; }
.manifesto-byline { color: var(--muted); }
/* The 1982 terminal, as it was before the boot prompt (website-ai d069dee^; operator 2026-11-02 21:38): black,
   green, fixed-width letters, a blinking cursor; scrolled into view it covers the whole screen, header and footer too. */
.boot-screen { position: relative; z-index: 25; min-height: calc(100lvh + 96px); padding: clamp(26px, 5vw, 55px) clamp(18px, 4vw, 56px); background: #050905; color: #73f293; }
.boot-text { position: sticky; top: 12px; margin: 0; font-family: "Courier New", Courier, monospace; font-size: clamp(.72rem, 1.4vw, 1.12rem); line-height: 1.55; white-space: pre-wrap; }
.boot-cursor { animation: boot-blink 1s steps(1, end) infinite; }
@keyframes boot-blink { 50% { visibility: hidden; } }
/* "GET EARLY ACCESS" in the terminal, right of WORKSHOP: AI CONNECTING..., away from the edge; a lamp that is
   steady most of the time and sometimes flickers between two greens (operator 2026-11-06 14:44). Reduced motion
   stops it with every other animation. */
.boot-signup { float: right; margin-right: 12%; color: #73f293; text-decoration: underline; text-underline-offset: .2em;
  animation: boot-flicker 11s steps(1, end) infinite; }
.boot-signup:focus-visible { outline: 2px solid #73f293; outline-offset: 4px; }
@keyframes boot-flicker {
  0%, 62%, 74%, 100% { color: #73f293; }
  63% { color: #2f8a4a; } 63.6% { color: #73f293; } 64.5% { color: #2f8a4a; } 65% { color: #73f293; }
  68% { color: #3fa85f; } 68.8% { color: #73f293; } 71% { color: #2f8a4a; } 71.4% { color: #73f293; }
}

/* Workshop */
.workshop-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; padding-block: clamp(56px, 8vw, 108px); }
.workshop-title { margin: 14px 0 26px; font-size: clamp(3.1rem, 5.7vw, 6rem); }
.workshop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.workshop-figure { margin: 0; }
.workshop-figure img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); }
.workshop-figure figcaption { margin: 14px 4px 0; font-size: .86rem; color: var(--muted); }
.workshop-features { padding-block: 80px; border-top: 1px solid var(--line); }
.workshop-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.workshop-feature-grid h2 { font-size: 2rem; margin-block: 14px 20px; }
.workshop-feature-grid p:last-child { color: var(--muted); }
.workshop-managed { padding-block: 80px; background: var(--soft); }
.workshop-managed-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.workshop-managed h2 { margin: 12px 0 0; font-size: clamp(2.4rem, 4vw, 4rem); }
.workshop-managed-inner > p { margin: 10px 0; color: var(--muted); font-size: 1.16rem; }
.workshop-next { padding-block: 52px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; font-size: 1.2rem; }

/* Setup guide */
.setup-intro { max-width: 1000px; }
.setup-before { max-width: 720px; padding-top: 20px; margin-top: 32px; border-top: 1px solid var(--line); }
.setup-before h2 { font-size: 1.2rem; }
.setup-before p { color: var(--muted); }
/* Three equal guides, each closed until its name is selected; › turns down when open (operator 2026-11-16 10:09). */
.setup-guide { border-top: 1px solid var(--line); }
.setup-guide[open] { padding-bottom: 56px; }
.setup-guide > summary { display: block; padding-block: 32px; list-style: none; }
.setup-guide > summary::-webkit-details-marker { display: none; }
.setup-guide > summary h2 { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 2.4rem; }
.setup-guide > summary:hover h2 { text-decoration: underline; text-underline-offset: .15em; }
.setup-guide > summary img { width: 40px; height: 40px; object-fit: contain; }
.setup-open { margin-left: auto; color: var(--green); transition: transform 150ms ease; }
.setup-guide[open] .setup-open { transform: rotate(90deg); }
.setup-guide-intro { max-width: 730px; }
.setup-guide-intro h2 { font-size: 2.4rem; }
.setup-steps { list-style: none; padding: 0; margin-top: 36px; counter-reset: setup; }
.setup-step { counter-increment: setup; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 60px; padding-block: 48px; border-top: 1px solid var(--line); }
.setup-step-copy::before { content: counter(setup, decimal-leading-zero); color: var(--green); font: 1rem ui-monospace, monospace; }
.setup-step-copy h3 { margin-block: 16px; font-size: 1.75rem; }
.setup-step-copy p, .setup-guide-intro p { color: var(--muted); }
.setup-figure { margin: 0; min-width: 0; }
.setup-figure a { display: block; max-width: 100%; width: fit-content; }
.setup-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.setup-figure figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.setup-other { padding-block: 48px 72px; }
.setup-other-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.setup-other-grid article { min-width: 0; }
.status-box, .example { padding: 20px; margin-block: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }

/* About: ordinary document flow, one shared palette, no hidden content or scroll trap. */
.page-about .about-deck { height: auto; overflow: visible; }
.about-slide { padding: clamp(48px, 7vw, 80px) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.about-slide:nth-child(even) { background: var(--soft); }
.about-slide-inner { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.about-slide h1 { max-width: 900px; margin-block: 18px 30px; font-size: clamp(2.8rem, 5.8vw, 5.4rem); }
.about-slide h2 { max-width: 860px; margin-block: 14px 28px; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.about-lead { max-width: 750px; font-size: 1.2rem; color: var(--muted); }
.about-copy-stack { max-width: 740px; }
.about-copy-stack p { color: var(--muted); }
.about-quote, .about-emphasis { font-size: 1.5rem; }
.about-number-grid { margin-top: 36px; }
.about-number-grid article { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.about-number-grid span { font-size: 1.7rem; color: var(--green); }
.about-number-grid p { margin: 0; color: var(--muted); max-width: 740px; }
.about-contrast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; margin-top: 36px; }
.about-contrast article, .about-benefit-grid article, .about-manager-grid article { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.about-contrast h3 { font-size: 1.8rem; }
.about-arrow { font-size: 2rem; color: var(--green); }
.about-benefit-grid, .about-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.about-benefit-grid h3, .about-manager-grid h3 { margin: 0 0 16px; font-size: 1.35rem; }
.about-benefit-grid p, .about-manager-grid p, .about-contrast p { margin-bottom: 0; color: var(--muted); }
.about-layer-stack { display: grid; gap: 14px; margin-top: 36px; }
.about-layer-stack div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.about-layer-stack span { color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.about-scroll-cue { color: var(--muted); }

/* Waiting list and protected account forms */
.waiting-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 72px; padding-block: clamp(48px, 8vw, 96px); }
.waiting-intro h1 { font-size: clamp(2.8rem, 4.8vw, 4.5rem); margin-block: 18px 28px; }
.waiting-benefits { list-style: none; padding: 0; margin-block: 28px; }
.waiting-benefits li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.waiting-intro .small { max-width: 520px; }
.page-waiting, .page-account { background: var(--soft); }
.account-main { padding: 48px 20px 80px; display: grid; place-items: start center; }
/* The content window (style guide §2): at most 560 px of content, 32 px inside, 20 px corners, 1 px line border;
   on a phone 16 px inside and 16 px corners. Every page, website or Keycloak, has exactly this one. */
.account-card { width: 100%; max-width: 626px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow-wrap: anywhere; line-height: 1.5; }
.account-card h1 { margin: 0 0 24px; font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
.account-card h2 { margin: 32px 0 16px; font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.waiting-card h2 { margin-top: 8px; font-size: 1.9rem; }
/* The card's plain controls (mail-link pages); :where keeps them below the form pieces further down. */
:where(.account-card) label { display: block; margin-block: 16px 8px; font-size: 1rem; font-weight: 600; }
:where(.account-card) input:not([type=checkbox], [type=radio], [type=hidden], [type=submit]) { font: inherit; display: block; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #91a18e; border-radius: 4px; background: white; color: var(--ink); }
:where(.account-card) input[aria-invalid=true] { border-color: #9f2720; }
:where(.account-card) input[type=checkbox] { width: 22px; height: 22px; flex: none; margin-top: 2px; }
/* The four buttons (style guide §4), each defined once: Main, Companion, Danger, and Main disabled. The older class
   names still in the mail-link pages and the plain entry page (.account-primary, .account-secondary, .button,
   .invite-open, a card's plain button) are the same buttons, not other styles. */
.action-main, .action-companion, .action-danger, .account-primary, .button, .invite-open, :where(.account-card) button, :where(.account-card) input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 12px 24px;
  border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #fff; font: inherit; font-weight: 650; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer; }
.action-main:hover, .account-primary:hover, .button:hover, .invite-open:hover, :where(.account-card) button:hover { background: #1c4835; }
.action-companion, .account-card .account-secondary, .button.secondary { background: var(--paper); color: var(--green); }
.action-companion:hover, .account-card .account-secondary:hover, .button.secondary:hover { background: var(--soft); }
.action-danger, .action-danger:hover, .account-danger, .account-danger:hover { border-color: #9f2720; background: #9f2720; color: #fff; }
:is(.action-main, .account-primary, .invite-open, :where(.account-card) button):disabled { border-color: #bbc8b7; background: #e4e9de; color: var(--muted); cursor: default; }
:where(.account-card) form > button, :where(.account-card) input[type=submit], .account-primary { width: 100%; }
/* Messages (style guide §4): an error is red text with a red left border; anything else is a plain line. */
.notice, .account-notice { margin: 0 0 16px; text-align: left; }
.notice-error, .account-error { padding: 0 0 0 12px; border-left: 4px solid #9f2720; color: #9f2720; }
.field-error { color: #9f2720; }
.account-card details { margin-top: 24px; }
.account-card summary { min-height: 44px; }
/* The old script-built account page's list of actions: Companion buttons, Delete as the Danger button. */
.account-card .account-actions { display: grid; gap: 12px; margin-top: 32px; }
.account-card .account-actions > a, .account-card .account-actions > button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 24px; border: 1px solid var(--green); border-radius: 4px; background: var(--paper); color: var(--green); font-weight: 650; text-align: center; text-decoration: none; }
.account-card .account-actions > .account-delete { border-color: #9f2720; background: #9f2720; color: #fff; }
.account-spinner { display: inline-block; animation: account-spin 1.6s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
#waiting-status { padding-block: 8px; }
.waiting-card[aria-busy=true] { cursor: progress; }
@media (max-width: 950px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; }
  .home-hero h1 span:first-child { margin-top: -.3em; }
  .home-hero h1 span:last-child { margin-bottom: 0; }
  .home-quickstart { width: min(500px, 100%); }
  .page-home::before { background: linear-gradient(#fffdf7c4, #fffdf7ed), url("/assets/meadow-workshop.jpg") 80% bottom / cover; }
  .manifesto-text { width: min(100%, 700px); margin-inline: auto; }
  .manifesto { padding-top: 44px; }
  .workshop-hero, .workshop-managed-inner, .waiting-main { grid-template-columns: 1fr; gap: 36px; }
  .workshop-figure { max-width: 720px; }
  .workshop-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .workshop-feature-grid article { max-width: 700px; }
  .waiting-card { max-width: 600px; }
}
@media (max-width: 700px) {
  .setup-step, .setup-other-grid, .about-benefit-grid, .about-manager-grid, .about-contrast { grid-template-columns: 1fr; gap: 24px; }
  .about-arrow { transform: rotate(90deg); justify-self: center; }
  .about-layer-stack div { grid-template-columns: 1fr; gap: 12px; }
  .setup-step { padding-block: 32px; }
  .site-footer nav { gap: 16px; }
}
@media (max-width: 520px) {
  .wrap, .about-slide-inner { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; gap: 10px; flex-wrap: wrap; padding-block: 12px; }
  .home-brand { font-size: 1.2rem; }
  .header-signup { padding: 10px 12px; font-size: .8rem; }
  .site-menu summary { width: 40px; height: 40px; }
  .header-account { width: 100%; justify-content: flex-end; }
  .workshop-title { font-size: 3.2rem; }
  .about-number-grid article { grid-template-columns: 42px 1fr; gap: 16px; }
  .setup-guide > summary h2 { font-size: 1.9rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .section, .workshop-hero, .waiting-main, .about-slide { padding-block: 36px; }
  .home-quickstart { position: relative; top: auto; right: auto; margin: 28px auto; }
  .manifesto { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Waiting list with confirmation (MAISIG S-1661) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.early-access { margin: 32px auto; }
.result-main { display: grid; place-items: center; padding-block: clamp(48px, 8vw, 96px); }  /* as big as its content, centred */
.account-card .link-button { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--green); font-weight: 650; text-decoration: underline; }
.account-card .share-button { display: inline-grid; place-items: center; width: 48px; min-height: 48px; padding: 0; border-radius: 999px; background: transparent; color: var(--green); }
/* Rework after the review tour (operator 2026-10-29): small box, account icon, window pages, puzzle */
.head-icon { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--green); }
.head-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.home-quickstart form, .home-quickstart [data-waiting-done] { display: grid; gap: 10px; margin-top: 4px; }
.home-quickstart .box-note, .home-quickstart .box-title { margin: 0; font-size: .9rem; font-style: normal; line-height: 1.4; }
.home-quickstart .box-title { font-size: 1.25rem; font-weight: 700; }
.home-quickstart input[type=email], .home-quickstart input[name=code] { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid #91a18e; border-radius: 4px; background: white; color: var(--ink); font: inherit; }
.home-quickstart input[aria-invalid=true] { border-color: #9f2720; }
.home-quickstart button.invite-open { width: 100%; cursor: pointer; font: inherit; font-weight: 650; }
.field-error { color: #9f2720; }
.field-error:empty, .box-note:empty { display: none; }
.home-quickstart .link-button { justify-self: center; padding: 6px; border: 0; background: none; color: var(--green); font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.signup-box { position: static; margin: 0 auto; }
/* Every window centred, website and Keycloak alike (operator 2026-11-13 ~19:05, C-2026-11-13-1841): heading, lines,
   question, links and quiet line centred; fields keep their labels left (.field). */
.account-card { text-align: center; }
.result-address { font-weight: 650; overflow-wrap: anywhere; }
.result-list, .account-card ul:not(.cards), .account-card ol { display: inline-block; margin: 0 auto 16px; padding-left: 1.2em; text-align: left; }   /* a centred box, the lines left-aligned (operator 2026-11-08 17:15) */
.result-picture { display: block; width: 100%; max-width: 320px; height: auto; margin: 16px auto; }
.number-buttons { display: grid; grid-template-columns: repeat(3, 64px); gap: 14px; justify-content: center; margin-top: 20px; }
.account-card .number-buttons button { width: 64px; height: 64px; padding: 0; font-size: 1.4rem; }
/* Two universes (SPEC-019 §How the dynamic part is built, §Entry page and invite code; MAISIG S-1740) */
.head-icon { border-radius: 50%; }
.head-icon:hover { background: var(--soft); }
/* Invite code: the field opens between Email and Get early access, without JavaScript (operator 2026-11-02 21:38). */
.invite-field { display: none; }
.invite-toggle-box:checked ~ .invite-field { display: block; }
/* Opening the field must not move anything around the box (operator 2026-11-05 20:25). The field and the form gap
   are exactly 56px. Wide: the open box takes the 56px back from its bottom margin, so the row keeps its height,
   the box keeps its top and the manifesto stays. Narrow: the closed box keeps 56px free below it instead. */
.invite-field, .invite-field input { height: 46px; }
.invite-field input { display: block; }
@media (min-width: 951px) {
  .home-quickstart:has(.invite-toggle-box:checked) { margin-bottom: -56px; }
}
@media (max-width: 950px) {
  .home-quickstart { margin-bottom: 56px; }
  .home-quickstart:has(.invite-toggle-box:checked) { margin-bottom: 0; }
}
.invite-toggle { justify-self: center; padding: 6px; color: var(--green); font-size: .9rem; text-decoration: underline; cursor: pointer; }
.home-quickstart form:has(.invite-toggle-box:focus-visible) .invite-toggle { outline: 3px solid var(--green); outline-offset: 2px; }
.home-quickstart .box-privacy { justify-self: end; font-size: .78rem; }
.home-quickstart .box-privacy a { color: var(--muted); }
/* "Tell a friend", with the icon for what the click does (operator 2026-11-05 22:14), as a plain link like "Have an invite code?", no box, icon after the words (operator 2026-11-06 23:43). */
.tell-friend, .account-card .tell-friend { display: inline-flex; width: auto; min-height: 0; margin: 0; align-items: center; gap: 6px; padding: 6px; border: 0; border-radius: 0; background: none; color: var(--green); font: inherit; font-size: .9rem; font-weight: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.tell-friend[hidden], .account-card .tell-friend[hidden] { display: none; }
.tell-friend:hover, .account-card .tell-friend:hover { background: none; text-decoration-thickness: 2px; }
.tell-friend-label { text-decoration: underline; text-underline-offset: .2em; transition: opacity 120ms ease; }
/* "Have an invite code?" left, "Tell a friend" right, one line; alone (no JavaScript) the invite link stays centred. */
.box-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.box-links:has(> .tell-friend[hidden]) { justify-content: center; }
.box-links .invite-toggle { justify-self: auto; }
@media (min-width: 48em) {
  .site-header { position: sticky; top: 0; }
  .site-footer { position: sticky; bottom: 0; z-index: 20; }
}
@media print {
  .site-header, .site-footer { position: static; }
}
/* Review round 2026-11-08 12:31 (operator; MAISIG S-1818) */
/* Tables in legal texts: a word breaks only when it alone is wider than its column, so no column shrinks to a few letters (the DPA's annexes did). */
.legal-content table { overflow-wrap: break-word; }
/* After a password or deletion step: a mark and a colour that say done / not done / unclear before the words do. */
.result-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 4px auto 0; border-radius: 50%; font-size: 1.7rem; font-weight: 700; line-height: 1; color: #fff; }
.result-ok .result-mark { background: var(--green); }
.result-no .result-mark { background: #9f2720; }
.result-no h1 { color: #9f2720; }
.result-unsure .result-mark { background: #a65f16; }
.result-unsure h1 { color: #8a4c12; }
/* The workshop's short address under Open my workshop, shared like Tell a friend. */
.workshop-address { margin-top: 0; }
.account-card .workshop-address .tell-friend { font-size: 1rem; }
/* The meadow frame (scene.html): the entry page's picture behind the page, Menu and Sign in on the sky, the
   signature and the legal links on the grass, in the walk-in's letters; no header bar, no footer bar. */
/* As the walk-in (operator 2026-11-08 17:15): the whole painting, standing on the bottom edge; on a taller window
   its sky goes on upward (its top rows stretched), on a wider one it is full height with white borders. Menu, Sign in,
   the signature and the links sit on the painting, 24px in from its edges; the bottom ones grow with it.
   1733 x 908 is the painting; 190.86vh is its width at full height. */
/* The rules (operator 2026-11-08 23:00; SPEC-019 §The meadow frame). No size may depend on how much white border there is,
   so everything is measured from the window's height or from --stage, the width of the painting on screen:
   - Labels (Menu, its entries, Sign in, the legal links): 16px; on a very low window down to 12px, with their spacing.
   - Content text: 16px; on a low window down to 14px, never smaller.
   - The content box: its own natural width while there is room, else as wide as the painting less 16px each side;
     it never goes over the white borders. Less room: the box covers more of the picture.
   The painting's top rows are one blue (#0178a0), so a taller window simply continues it in that colour. */
html:has(> body.page-scene) { font-size: clamp(87.5%, 2.1vh, 100%); }
.page-scene, .page-home { isolation: isolate; background: #fff; --stage: min(100vw, 190.86vh); --label: clamp(12px, 3.33vh, 16px);
  --scene-in: calc((100% - min(100%, 190.86vh)) / 2 + 24px); }
.page-scene::before, .page-home::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/meadow-workshop.jpg") center bottom / contain no-repeat; }
@media (max-aspect-ratio: 1733/908) {
  .page-scene::before, .page-home::before { background: #0178a0 url("/assets/meadow-workshop.jpg") center bottom / 100% auto no-repeat; }
}
/* One frame for every page (operator 2026-11-08 22:23): Menu, Sign in, the legal links and the signature stay where they
   are; only the content scrolls, between them and under nothing: it fades to nothing before it reaches them. The content
   is centred when it is short and scrolls when it is long. --scene-head and --scene-foot are measured by /scene.js. */
/* The fades reach halfway under Menu and the legal links. --t and --b (0 to 1, /scene.js) say how strong each is: none at
   that end of the content, so the box is seen whole (operator 2026-11-09 00:14). Without the script there are none. */
.page-scene > main { --head: var(--scene-head, 48px); --foot: var(--scene-foot, 48px); --top: calc(var(--head) / 2); --bot: calc(var(--foot) / 2); --fade: clamp(24px, 12vh, 108px); --t: 0; --b: 0;
  --mask: linear-gradient(to bottom,
    rgb(0 0 0 / calc(1 - var(--t))) var(--top), rgb(0 0 0 / calc(1 - var(--t) * .84)) calc(var(--top) + var(--fade) * .25), rgb(0 0 0 / calc(1 - var(--t) * .5)) calc(var(--top) + var(--fade) * .5), rgb(0 0 0 / calc(1 - var(--t) * .16)) calc(var(--top) + var(--fade) * .75), #000 calc(var(--top) + var(--fade)),
    #000 calc(100% - var(--bot) - var(--fade)), rgb(0 0 0 / calc(1 - var(--b) * .16)) calc(100% - var(--bot) - var(--fade) * .75), rgb(0 0 0 / calc(1 - var(--b) * .5)) calc(100% - var(--bot) - var(--fade) * .5), rgb(0 0 0 / calc(1 - var(--b) * .84)) calc(100% - var(--bot) - var(--fade) * .25), rgb(0 0 0 / calc(1 - var(--b))) calc(100% - var(--bot)));
  position: fixed; inset: 0; width: auto; margin: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 calc((100vw - var(--stage)) / 2 + 16px); -webkit-mask-image: var(--mask); mask-image: var(--mask); }
/* The room above and below the content: real boxes, not padding; WebKit has left a scrolling flex box's bottom padding
   out of what it scrolls, and the end of a long page then sits under the legal links (SPEC-019 rule 2). */
.page-scene > main::before, .page-scene > main::after { content: ""; flex: none; height: calc(var(--head) + 12px); }
.page-scene > main::after { height: calc(var(--foot) + 12px); }
.page-scene > main:focus { outline: none; }
.page-scene > main > * { flex: none; margin: auto; }
.scene-header, .scene-footer { position: fixed; left: 0; right: 0; z-index: 20; pointer-events: none; }
.scene-header > *, .scene-footer > * { pointer-events: auto; }
.scene-header { top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: calc(15px + env(safe-area-inset-top, 0px)) max(var(--scene-in), env(safe-area-inset-right, 0px)) 0 max(var(--scene-in), env(safe-area-inset-left, 0px));
}
.scene-header, .wk-corner { font: 500 var(--label)/1.5 "Courier New", Courier, monospace; color: #fff; text-shadow: 0 1px 6px rgba(0, 30, 50, .55); }
.scene-header > a, .scene-menu summary, #wk-c2 { color: #fff; text-decoration: none; }
.scene-header > a:hover, .scene-menu summary:hover, #wk-c2:hover { text-decoration: underline; }
.scene-header :focus-visible, .wk-corner:focus-visible, .wk-corner :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.scene-menu { position: relative; }
.scene-menu.scene-account nav { left: auto; right: 0; }
.scene-menu nav { max-width: calc(100vw - 48px); }
.scene-menu summary { list-style: none; }
.scene-menu summary::-webkit-details-marker { display: none; }
/* A normal menu in the terminal letters: paper, round corners, the site's ink (operator 2026-11-08 18:29). */
.scene-menu nav { position: absolute; left: 0; top: calc(100% + .6em); display: grid; gap: 4px; min-width: 14em; padding: .5em; max-height: calc(100dvh - 4em); overflow-y: auto;   /* the account menu is long; on a low window it scrolls */
  background: var(--paper); border: 1px solid var(--line); border-radius: .75em; box-shadow: 0 14px 40px #213b302e; text-shadow: none; }
/* Each entry a finger's height, apart from the next (SPEC-019 rule 8; S-1841: "Change password" sits under "Connect your AI"). */
.scene-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .75em; border-radius: .5em; color: var(--ink); text-decoration: none; }
.scene-menu nav a:hover { background: var(--soft); text-decoration: underline; }
.scene-menu nav :focus-visible { outline-color: var(--green); }
/* Where you are, in both menus (operator 2026-11-08 22:23, 23:00): an arrow and bold; the other entries are not indented. */
.scene-menu nav a[aria-current]::before { content: "-> "; white-space: pre; }
.scene-menu nav a[aria-current] { font-weight: 700; }
/* Sign out, the menu's last entry, one click; below it "Disconnect my AI" (operator 2026-11-09 09:10, 2026-11-10 00:14). */
.menu-sign-out { display: grid; gap: .2em; margin-top: .3em; padding-top: .3em; border-top: 1px solid var(--line); }
.menu-sign-out button { min-height: 44px; padding: 0 .75em; border: 0; border-radius: .5em; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.menu-sign-out button:hover { background: var(--soft); text-decoration: underline; }
.menu-sign-out label { display: flex; gap: .5em; align-items: center; padding: .2em .75em .45em; color: var(--muted); font-size: .85em; cursor: pointer; }
.scene-footer { bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px;
  padding: 0 max(var(--scene-in), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--scene-in), env(safe-area-inset-left, 0px));
}
.scene-footer, .wk-sig { font-size: max(12px, min(1.0964vw, 2.0925vh));   /* 19px on the painting at 1733px wide */
  color: rgba(255, 255, 255, .94); text-shadow: 0 1px 4px rgba(10, 40, 10, .6); }
/* The links left, the signature right (operator 2026-11-08 20:18). The signature: one size up, a hand's letters where
   the system has them, slightly slanted; the links: terminal letters 16px, 500, underlined only under the mouse. */
.scene-sig { display: inline-block; font-size: 1.16em; font-style: italic; font-weight: 500; transform: rotate(-4deg); transform-origin: 100% 100%;
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Lucida Handwriting", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.scene-footer nav, #wk-c4 { display: flex; flex-wrap: wrap; gap: 1.1em; font: 500 var(--label)/1.5 "Courier New", Courier, monospace; }
.scene-footer a, #wk-c4 a { color: inherit; text-decoration: none; white-space: nowrap; }
.scene-sig { white-space: nowrap; margin-left: auto; }
/* One quiet row on a phone (SPEC-019 rule 4): links and signature in 12px type, each link still a finger's tap high.
   Larger text chosen by the visitor may wrap; scene.js then measures the taller footer and the content keeps clear. */
@media (max-width: 40em) {
  .scene-footer { --label: 12px; font-size: 12px; gap: 0 12px; align-items: baseline; }
  .scene-footer nav { gap: 1em; }
  .scene-footer a { padding: 16px 0 6px; }
  .scene-footer .scene-sig { font-size: 1.08em; }
}
.scene-footer a:hover, .scene-footer a:focus-visible, #wk-c4 a:hover, #wk-c4 a:focus-visible { text-decoration: underline; }
.scene-footer a:focus-visible, #wk-c4 a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* The entry animation's terminal footer is a frame variant; its rules live here too. */
.wk .scene-footer { position: relative; z-index: 2; inset: auto; margin: 0;
  padding: 14px var(--wk-pad-xr) 14px var(--wk-pad-x); pointer-events: auto;
  background: var(--wk-term-bg); color: var(--wk-term); font: 400 clamp(.72rem, 1.4vw, 1.12rem)/1.55 var(--wk-mono); }
.wk .scene-footer nav { font: inherit; }
.wk .scene-footer .scene-sig { font: inherit; transform: none; }
/* The window over the painting lets it shine through a little, 20% (operator 2026-11-08 18:29). A long text gets a
   box that fills most of the page; the text column inside stays as on the plain page. */
.page-scene .account-card { background: #fffdf7d9; }
@media (max-width: 40em) {
  .account-card { padding: 16px; border-radius: 16px; }
  .account-card h1 { font-size: 1.5rem; }
}
.scene-panel .legal-content article > h1 { font-size: 1.75rem; margin-block: 0 24px; }
/* Long texts in the scene panel (Connect guide): the guide's sizes, no label above the heading. */
.scene-panel .page-title { font-size: 1.75rem; line-height: 1.25; }
.scene-panel .lead { font-size: 1rem; }
.scene-panel h2 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.scene-panel { --pad: clamp(16px, calc(var(--stage) * .04), 56px); width: min(calc(760px + 2 * var(--pad)), 100%);   /* no wider than the text (operator 20:18) */
  padding-inline: var(--pad);
  border: 1px solid var(--line); border-radius: 20px; background: #fffdf7d9; }   /* the same window as every page (§2), wider for reading */
.scene-panel > .section { padding-block: clamp(16px, calc(var(--stage) * .04), 56px); }
.page-scene .tb-console-card { max-width: 1100px; }
@media print {
  .page-scene::before, .scene-header, .scene-footer { display: none; }
  .page-scene > main { position: static; display: block; overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
/* Built once (SPEC-019 §Built once, 2026-11-13): the browser's own controls, one accent colour, the system font. */
:root { accent-color: var(--green); }
/* The form pieces (templates/form.html; SPEC-019 rules 7 and 8), the same on the website and every Keycloak page:
   label above, help or error below, the eye inside the field, one tappable checkbox label, the main action first and
   its outlined companion of the same size, then the links. */
.field { margin-block: 16px; text-align: left; }
.field > label:not(.check) { display: block; margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.field input:not([type=checkbox], [type=radio]) { display: block; width: 100%; min-height: 48px; margin: 0; padding: 8px 12px; border: 1px solid #91a18e; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: max(16px, 1rem); }
.field input[aria-invalid=true] { border-color: #9f2720; }
.field-help, .field-error { margin: 8px 0 0; font-size: .875rem; line-height: 1.5; }
.field-help { color: var(--muted); }
.password { position: relative; }
.password input:not([type=checkbox]) { padding-right: 52px; }
/* The eye sits inside the field, no box around it (§4): no button background, size or hover fill of its own. */
.reveal { position: absolute; top: 2px; right: 2px; bottom: 2px; width: 44px; min-height: 0; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.reveal svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.reveal[aria-pressed=true], .reveal:hover { background: transparent; color: var(--green); }
.check-field { margin-block: 16px; }
.account-card .check-field { text-align: center; }   /* the agreement line, centred (operator 2026-11-11 18:03) */
.check { display: inline-flex; gap: 12px; align-items: flex-start; margin: 0; text-align: left; font-size: 1rem; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; }
.check a { font: inherit; }
/* The action pair (style guide §4): side by side on a desktop, main first; stacked on a phone, main on top, full width. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions > * { flex: 1 1 12em; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0 0; }
.links a { display: inline-block; padding-block: 12px; }
/* The quiet line (§4): 14 px, muted, centred under the action pair, one per page at most. */
.quiet { margin: 16px 0 0; color: var(--muted); font-size: .875rem; text-align: center; }
/* The card list (§5, list pages: Security, Device activity, Connected AI apps): one card per item, its name, one line
   of facts, its action under it; 8 px corners (§3). Markup: <ul class="cards"><li><h2>Name</h2><p>Facts</p>
   <div class="actions">…</div></li></ul>. The action for all items follows the list as its own .actions. */
.cards { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cards > li { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.cards h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.cards p { margin: 0; }
.cards .actions { margin-top: 16px; }
/* The Terms over the renewal page (enhance.js; operator 2026-11-13): a solid window, X in the upper right. */
.sheet { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px #213b3040; }
.sheet::backdrop { background: #213b3099; }
.sheet-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; min-height: 0; margin: 4px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.25rem; cursor: pointer; }
.sheet-close:hover { background: var(--soft); }
.sheet-body { padding: 8px clamp(16px, 4vw, 40px) 32px; }
.sheet-body article > h1 { margin-top: 16px; font-size: 1.75rem; }
@media (max-width: 40em) {   /* phone: the long texts' headings 24 px, the window's corners 16 px (style guide §3) */
  .sheet, .scene-panel { border-radius: 16px; }
  .legal-content article > h1, .sheet-body article > h1, .scene-panel .legal-content article > h1, .scene-panel .page-title { font-size: 1.5rem; }
}
@media print { .sheet { display: none; } }
/* What only the Keycloak pages have (templates/keycloak/): the account being signed in, B5's address and name check,
   the authenticator app's steps, the passkey link centred with room above it (operator 2026-11-10 20:11). */
.tb-attempted { margin: 0 0 16px; color: var(--muted); overflow-wrap: anywhere; }
.tb-attempted a { margin-left: .5em; }
#tb-signup-form #username { min-height: 0; padding: 0; border: 0; background: none; text-overflow: ellipsis; }   /* the address: a field for password managers, read as a line */
.tb-name-status { min-height: 1.5em; margin: 8px 0 0; font-size: .875rem; line-height: 1.5; }
.tb-name-status[data-state=available] { color: var(--green); }
.tb-name-status[data-state=invalid], .tb-name-status[data-state=taken] { color: #9f2720; }
.tb-steps { padding-left: 1.2em; }
.tb-secret { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.tb-qr { display: block; width: 200px; height: auto; }
.tb-keys { margin: 0 0 8px; padding: 0; list-style: none; }
.tb-keys li { padding-block: 8px; border-bottom: 1px solid var(--line); }
fieldset.field { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
fieldset.field legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
fieldset.field .check { display: flex; margin-block: 8px; }
a#authenticateWebAuthnButton:not([hidden], [style*="none"]) { display: block; margin-top: 20px; text-align: center; }
