@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --brand-yellow: #FFC72C;
  --brand-ink: #14110A;
  --brand-purple: #6A4BEB;
  --brand-white: #FFFFFF;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-small: 8px;
  --radius-tile: 14px;
  --radius-card: 16px;
  --radius-highlight: 5px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;
  --size-touch: 44px;
  --size-measure: 720px;
  --member-0: #2E3466;
  --member-1: #3D4A7A;
  --member-2: #4A3F6B;
  --member-3: #2F5566;
  --member-4: #3B3F5C;
  --surface-page: #FFFFFF;
  --surface-tile: #F5F4F8;
  --surface-card: #FFFFFF;
  --surface-tagline: #14110A;
  --text-primary: #14110A;
  --text-secondary: #5E5A70;
  --text-tagline: #FFFFFF;
  --text-success: #1E6B4A;
  --text-warn: #8A4B00;
  --text-error: #B42318;
  --border-soft: #E7E5EE;
  --border-tile: #F5F4F8;
  --featured-border: #14110A;
  --btn-primary-bg: #14110A;
  --btn-primary-text: #FFFFFF;
  --highlight-bg: #ECE6FF;
  --highlight-text: #4A2BC2;
  --accent-text: #6A4BEB;
  --accent-fill: #6A4BEB;
  --accent-on-fill: #FFFFFF;
  --focus-ring: #6A4BEB;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --surface-page: #14110A;
  --surface-tile: #1F1B14;
  --surface-card: #1F1B14;
  --surface-tagline: #FFC72C;
  --text-primary: #F7F5F2;
  --text-secondary: #B8B2A6;
  --text-tagline: #14110A;
  --text-success: #5FD39A;
  --text-warn: #F2B860;
  --text-error: #EF6B6B;
  --border-soft: #3A352C;
  --border-tile: #3A352C;
  --featured-border: #FFC72C;
  --btn-primary-bg: #FFC72C;
  --btn-primary-text: #14110A;
  --highlight-bg: #6A4BEB;
  --highlight-text: #FFFFFF;
  --accent-text: #A78BFF;
  --accent-fill: #6A4BEB;
  --accent-on-fill: #FFFFFF;
  --focus-ring: #A78BFF;
}
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #14110A;
  --surface-tile: #1F1B14;
  --surface-card: #1F1B14;
  --surface-tagline: #FFC72C;
  --text-primary: #F7F5F2;
  --text-secondary: #B8B2A6;
  --text-tagline: #14110A;
  --text-success: #5FD39A;
  --text-warn: #F2B860;
  --text-error: #EF6B6B;
  --border-soft: #3A352C;
  --border-tile: #3A352C;
  --featured-border: #FFC72C;
  --btn-primary-bg: #FFC72C;
  --btn-primary-text: #14110A;
  --highlight-bg: #6A4BEB;
  --highlight-text: #FFFFFF;
  --accent-text: #A78BFF;
  --accent-fill: #6A4BEB;
  --accent-on-fill: #FFFFFF;
  --focus-ring: #A78BFF;
}
.preview-light {
  --surface-page: #FFFFFF;
  --surface-tile: #F5F4F8;
  --surface-card: #FFFFFF;
  --surface-tagline: #14110A;
  --text-primary: #14110A;
  --text-secondary: #5E5A70;
  --text-tagline: #FFFFFF;
  --text-success: #1E6B4A;
  --text-warn: #8A4B00;
  --text-error: #B42318;
  --border-soft: #E7E5EE;
  --border-tile: #F5F4F8;
  --featured-border: #14110A;
  --btn-primary-bg: #14110A;
  --btn-primary-text: #FFFFFF;
  --highlight-bg: #ECE6FF;
  --highlight-text: #4A2BC2;
  --accent-text: #6A4BEB;
  --accent-fill: #6A4BEB;
  --accent-on-fill: #FFFFFF;
  --focus-ring: #6A4BEB;
}
.preview-dark {
  --surface-page: #14110A;
  --surface-tile: #1F1B14;
  --surface-card: #1F1B14;
  --surface-tagline: #FFC72C;
  --text-primary: #F7F5F2;
  --text-secondary: #B8B2A6;
  --text-tagline: #14110A;
  --text-success: #5FD39A;
  --text-warn: #F2B860;
  --text-error: #EF6B6B;
  --border-soft: #3A352C;
  --border-tile: #3A352C;
  --featured-border: #FFC72C;
  --btn-primary-bg: #FFC72C;
  --btn-primary-text: #14110A;
  --highlight-bg: #6A4BEB;
  --highlight-text: #FFFFFF;
  --accent-text: #A78BFF;
  --accent-fill: #6A4BEB;
  --accent-on-fill: #FFFFFF;
  --focus-ring: #A78BFF;
}
/* rules */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--text-primary); font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin: var(--space-l) 0 var(--space-s); }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
strong, b, th, dt { font-weight: 500; }
p, ul, ol { margin: 0 0 var(--space-m); }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--font-mono); }
pre { white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin-bottom: var(--space-m); }
th, td { text-align: left; padding: var(--space-s); border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
small { color: var(--text-secondary); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.letter { font-family: var(--font-body); font-weight: 400; font-size: 1.125rem; line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 0 0 var(--space-l); display: grid; gap: var(--space-s); }
.steps li { background: var(--surface-tile); border: 1px solid var(--border-tile); border-radius: var(--radius-tile); padding: var(--space-m); }
.steps strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: var(--space-xs); }
.lead { font-size: 1.125rem; }
.label { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-text); margin: 0 0 var(--space-xs); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-m); top: var(--space-m); background: var(--surface-card); color: var(--text-primary); padding: var(--space-s) var(--space-m); border-radius: var(--radius-small); z-index: 10; }
.menu { display: flex; flex-wrap: wrap; gap: 0 var(--space-s); margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-flex; align-items: center; min-height: var(--size-touch); padding: 0 var(--space-s); color: var(--text-primary); text-decoration: none; border-radius: var(--radius-pill); font-weight: 500; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
main { display: block; max-width: var(--size-measure); margin: 0 auto; padding: var(--space-m) var(--space-m) var(--space-xl); }
.card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: var(--space-m); margin: 0 0 var(--space-m); }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--size-touch); min-width: var(--size-touch); padding: var(--space-s) var(--space-l); border-radius: var(--radius-pill); border: 2px solid var(--btn-primary-bg); background: var(--btn-primary-bg); color: var(--btn-primary-text); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.button.quiet, button.quiet, .button.sent, button.sent { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.button.sent, button.sent { cursor: default; }
.field { margin: 0 0 var(--space-m); }
.field label { display: block; font-weight: 500; margin-bottom: var(--space-xs); }
.field .hint { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: var(--space-xs); }
input, select, textarea { font: inherit; color: var(--text-primary); background: var(--surface-card); border: 2px solid var(--border-soft); border-radius: var(--radius-small); padding: var(--space-s); min-height: var(--size-touch); width: 100%; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--text-primary); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--text-error); }
.field .error { display: block; color: var(--text-error); font-weight: 500; margin-top: var(--space-xs); }
.list { list-style: none; padding: 0; margin: 0 0 var(--space-m); background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.row { display: flex; align-items: center; gap: var(--space-m); padding: var(--space-s) var(--space-m); min-height: calc(var(--size-touch) + var(--space-s)); border-top: 1px solid var(--border-soft); }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main .sub { display: block; color: var(--text-secondary); font-size: 0.9rem; }
.badge { display: inline-block; padding: 2px var(--space-s); border-radius: var(--radius-pill); background: var(--surface-tile); color: var(--text-primary); border: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.badge.good { color: var(--text-success); border-color: var(--text-success); }
.badge.warn { color: var(--text-warn); border-color: var(--text-warn); }
.badge.bad { color: var(--text-error); border-color: var(--text-error); }
.notice { border-radius: var(--radius-tile); padding: var(--space-m); margin: 0 0 var(--space-m); background: var(--surface-tile); color: var(--text-primary); border: 1px solid var(--border-soft); }
.notice.good { border-color: var(--text-success); }
.notice.warn { border-color: var(--text-warn); }
.notice.bad { border-color: var(--text-error); }
.empty { text-align: center; color: var(--text-secondary); padding: var(--space-xl) var(--space-m); background: var(--surface-tile); border: 2px dashed var(--border-soft); border-radius: var(--radius-card); margin: 0 0 var(--space-m); }
.empty strong { display: block; color: var(--text-primary); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; font-size: 1.15rem; margin-bottom: var(--space-xs); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--size-touch); height: var(--size-touch); border-radius: var(--radius-pill); background: var(--brand-ink); color: var(--brand-white); font-weight: 500; }
.mark { flex: none; display: inline-block; vertical-align: middle; height: auto; }
.mark-body { fill: var(--brand-ink); } .mark-eye { fill: var(--brand-yellow); }
.agent-avatar { display: inline-flex; align-items: flex-end; justify-content: center; flex: none; border-radius: var(--radius-pill); background: var(--brand-yellow); overflow: hidden; vertical-align: middle; box-shadow: 0 0 0 2px var(--surface-page), 0 0 0 4px var(--accent-fill); margin: 4px; }
.agent-avatar.s32 { width: 32px; height: 32px; } .agent-avatar.s44 { width: var(--size-touch); height: var(--size-touch); } .agent-avatar.s64 { width: 64px; height: 64px; }
.agent-avatar .mark { width: 76%; margin-bottom: 18%; }
.mark-loading { display: inline-flex; align-items: flex-end; justify-content: center; width: 96px; height: 56px; overflow: hidden; border-bottom: 2px solid var(--text-primary); }
.mark-loading .mark { width: 88px; animation: mark-rise 1.4s ease-in-out infinite alternate; }
.mark-loading .mark-body { fill: var(--text-primary); }
@keyframes mark-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mark-loading .mark { animation: none; transform: none; } }
.masthead { background: var(--brand-yellow); color: var(--brand-ink); }
.masthead-in { max-width: var(--size-measure); margin: 0 auto; padding: var(--space-s) var(--space-m) 0; }
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding-bottom: var(--space-s); border-bottom: 2px solid var(--brand-ink); }
.masthead-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; font-size: 2.125rem; color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--size-touch); }
.masthead-top .mark { width: 56px; }
.masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-m); padding: var(--space-xs) 0 var(--space-s); font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.masthead-row p { margin: 0; }
.masthead-row span + span::before { content: " · "; }
.masthead a { color: var(--brand-ink); }
.masthead a:focus-visible { outline-color: var(--brand-ink); }
.masthead .agent-name { color: var(--brand-ink); }
.nav { background: var(--surface-page); border-bottom: 1px solid var(--border-soft); }
.nav-in { max-width: var(--size-measure); margin: 0 auto; padding: 0 var(--space-m); }
.hl { background: var(--highlight-bg); color: var(--highlight-text); padding: 0 5px; border-radius: var(--radius-highlight); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-s); margin: 0 0 var(--space-m); padding: 0; list-style: none; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--surface-tile); border: 1px solid var(--border-tile); border-radius: var(--radius-tile); padding: var(--space-m) var(--space-xs); text-align: center; min-width: 0; }
.tile .label { margin: var(--space-xs) 0 0; font-size: 0.6875rem; letter-spacing: 0.04em; overflow-wrap: normal; hyphens: manual; }
.tile-number { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; font-size: 2.25rem; color: var(--text-primary); }
.tile.info { text-align: left; padding: var(--space-m); }
.tile.info .label { margin: 0 0 var(--space-xs); }
.tile.info p { margin: 0; }
.tiles > .tile:first-child:not(.info) { border-top: 4px solid var(--accent-fill); }
.tiles > .tile:first-child:not(.info) .tile-number { color: var(--accent-text); }
.featured { background: var(--accent-fill); color: var(--accent-on-fill); border: 2px solid var(--accent-fill); border-radius: var(--radius-card); padding: var(--space-m); margin: 0 0 var(--space-m); }
.featured .label, .featured .member .sub, .featured small, .featured .muted, .featured .agent-name, .featured a:not(.button) { color: var(--accent-on-fill); }
.featured .button, .featured button { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--brand-ink); }
.featured .button.quiet, .featured button.quiet, .featured .button.sent, .featured button.sent { background: transparent; border-color: var(--accent-on-fill); color: var(--accent-on-fill); }
.featured a:focus-visible, .featured button:focus-visible { outline-color: var(--accent-on-fill); }
.featured .list, .featured .card { color: var(--text-primary); }
.featured .list a:not(.button), .featured .card a:not(.button), .featured .list .label, .featured .card .label, .featured .list .agent-name, .featured .card .agent-name { color: var(--accent-text); }
.featured .list .muted, .featured .list small, .featured .card .muted, .featured .card small { color: var(--text-secondary); }
.featured .list .button.quiet, .featured .list button.quiet, .featured .card .button.quiet, .featured .card button.quiet, .featured .list button.sent, .featured .card button.sent { border-color: var(--text-primary); color: var(--text-primary); }
.featured .list a:focus-visible, .featured .list button:focus-visible, .featured .card a:focus-visible, .featured .card button:focus-visible { outline-color: var(--focus-ring); }
.featured > :first-child { margin-top: 0; } .featured > :last-child { margin-bottom: 0; }
.featured h2 { margin-top: var(--space-xs); }
.featured .member { display: flex; align-items: center; gap: var(--space-s); margin: 0 0 var(--space-m); }
.tagline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s) var(--space-m); background: var(--surface-tagline); color: var(--text-tagline); border-radius: var(--radius-card); padding: var(--space-m); margin: 0 0 var(--space-m); }
.tagline-line { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; font-size: 1.4rem; margin: 0; }
.tagline a, .tagline .agent-name { color: inherit; }
.tagline-agent { background: var(--accent-fill); color: var(--accent-on-fill); padding: 0 5px; border-radius: var(--radius-highlight); }
.tagline-next { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.preview-light, .preview-dark { background: var(--surface-page); color: var(--text-primary); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: var(--space-m); margin: 0 0 var(--space-m); }
fieldset { border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: var(--space-m); margin: 0 0 var(--space-m); }
fieldset label { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--size-touch); margin-right: var(--space-m); }
.stamps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-s); }
.stamps.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.muted { color: var(--text-secondary); }
.agent-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; color: var(--accent-text); }
.avatar.m0 { background: var(--member-0); }
.avatar.m1 { background: var(--member-1); }
.avatar.m2 { background: var(--member-2); }
.avatar.m3 { background: var(--member-3); }
.avatar.m4 { background: var(--member-4); }
