:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --fg: #1b1f23;
  --muted: #5a626b;
  --line: #d9dde1;
  --soft: #f1f3f4;
  --link: #0b57b0;
  --accent: #0b57b0;
  --brand: #c4471a;
  --warn-bg: #fff4d6;
  --warn-fg: #5b4300;
  --k: #0b57b0; --s: #1a7f37; --n: #9a4d00; --l: #8250df;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171a; --fg: #e6e8ea; --muted: #a2aab3; --line: #2c3238; --soft: #1c2025;
    --link: #7ab7ff; --accent: #7ab7ff; --brand: #f08a5d; --warn-bg: #3a2f10; --warn-fg: #f3d98b;
    --k: #7ab7ff; --s: #7ee0a0; --n: #ffb870; --l: #c9a7ff;
  }
  :root:not([data-theme="light"]) .wordmark .wa { opacity: .9; }
  :root:not([data-theme="light"]) .wordmark .wb { opacity: .72; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
:root[data-theme="dark"] {
  --bg: #14171a; --fg: #e6e8ea; --muted: #a2aab3; --line: #2c3238; --soft: #1c2025;
  --link: #7ab7ff; --accent: #7ab7ff; --brand: #f08a5d; --warn-bg: #3a2f10; --warn-fg: #f3d98b;
  --k: #7ab7ff; --s: #7ee0a0; --n: #ffb870; --l: #c9a7ff;
}
:root[data-theme="dark"] .wordmark .wa { opacity: .9; }
:root[data-theme="dark"] .wordmark .wb { opacity: .72; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.65 var(--font); }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}
.skip { position: absolute; inset-inline-start: 0.5rem; inset-block-start: -4rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { inset-block-start: 0.5rem; }

.site-header { position: sticky; inset-block-start: 0; z-index: 20; border-block-end: 1px solid var(--line); background: var(--bg); }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
}
.bar { display: flex; align-items: center; gap: 0.5rem 1rem; min-block-size: 4rem; padding: 0 1.25rem; max-inline-size: 76rem; margin-inline: auto; }
.wordmark { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.wordmark .mark { inline-size: 1.6em; block-size: 1.6em; color: var(--brand); flex: none; }
.draft-pill { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); font-size: 0.75rem; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.draft-pill:hover { text-decoration: underline; }
.nav-desktop ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { position: relative; }
.menu-group > summary, .top-link { display: flex; align-items: center; gap: 0.4rem; min-block-size: 2.75rem; padding: 0 0.7rem; color: var(--fg); text-decoration: none; cursor: pointer; list-style: none; border-block-end: 2px solid transparent; box-sizing: border-box; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary::after { content: ""; inline-size: 0.4rem; block-size: 0.4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.1rem) rotate(45deg); }
.menu-group[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }
.menu-group > summary:hover, .top-link:hover { border-block-end-color: var(--line); }
.menu-group > summary.current, .top-link.current { border-block-end-color: var(--brand); font-weight: 600; }
.menu-panel { position: absolute; inset-block-start: calc(100% + 0.25rem); inset-inline-start: 0; min-inline-size: 18rem; padding: 0.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu-panel { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); } }
:root[data-theme="dark"] .menu-panel { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); }
.menu-panel a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--fg); text-decoration: none; border-inline-start: 3px solid transparent; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--soft); }
.menu-panel a[aria-current="page"] { border-inline-start-color: var(--brand); }
.mi-label { display: block; font-weight: 600; }
.mi-desc { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 0.5rem; }
.bar-end .button.compact { padding: 0.45rem 1rem; font-size: 0.9rem; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; color: var(--fg); }
.icon-link:hover { color: var(--brand); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; font: inherit; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--brand); }
.theme-toggle svg { display: block; inline-size: 20px; block-size: 20px; }
.theme-toggle .i-sun { display: none; }
@media (prefers-reduced-motion: no-preference) { .theme-toggle svg { animation: theme-pop .25s ease-out; } }
@keyframes theme-pop { from { opacity: 0; transform: rotate(-40deg); } to { opacity: 1; transform: none; } }
.nav-toggle { display: none; }
.nav-toggle > summary { display: flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; cursor: pointer; list-style: none; }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; inline-size: 1.4rem; block-size: 2px; background: var(--fg); border-radius: 2px; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.bars::before { inset-block-start: -7px; }
.bars::after { inset-block-start: 7px; }
.nav-toggle[open] .bars { background: transparent; }
.nav-toggle[open] .bars::before { inset-block-start: 0; transform: rotate(45deg); }
.nav-toggle[open] .bars::after { inset-block-start: 0; transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .menu-group > summary::after { transition: transform 0.15s; }
  .bars, .bars::before, .bars::after { transition: transform 0.15s, inset-block-start 0.15s, background-color 0.15s; }
}
.nav-mobile { position: absolute; inset-inline: 0; inset-block-start: 100%; max-block-size: calc(100vh - 4rem); overflow: auto; padding: 0.5rem 1.25rem 1.25rem; background: var(--bg); border-block-start: 1px solid var(--line); border-block-end: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); }
.nav-mobile h2 { margin: 1rem 0 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); pointer-events: none; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a { display: flex; align-items: center; min-block-size: 2.75rem; color: var(--fg); text-decoration: none; border-inline-start: 3px solid transparent; padding-inline-start: 0.5rem; }
.nav-mobile li a[aria-current="page"] { border-inline-start-color: var(--brand); font-weight: 600; }
.nav-mobile .button { display: block; text-align: center; margin-block-start: 0.75rem; }
@media (max-width: 55.999rem) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 61.999rem) { .bar-end > .button { display: none; } }
@media (min-width: 56rem) { .nav-mobile { display: none; } }
@media (max-width: 30rem) { .draft-pill { font-size: 0.7rem; padding-inline: 0.45rem; } .wordmark { font-size: 1.1rem; } .bar { gap: 0.5rem; } .bar-end { gap: 0; }
  .site-header .wm-text { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .wordmark .mark { inline-size: 2.25rem; block-size: 2.25rem; } }

.layout { max-inline-size: 76rem; margin-inline: auto; padding: 1.5rem 1.25rem 3rem; }
.prose { max-inline-size: 70ch; min-inline-size: 0; }
.prose h1 { font-size: 2rem; line-height: 1.2; margin-block: 0.5rem 1rem; }
.prose h2 { font-size: 1.45rem; line-height: 1.3; margin-block: 2.25rem 0.75rem; padding-block-start: 0.5rem; border-block-start: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-block: 1.75rem 0.5rem; }
.prose h4 { font-size: 1rem; margin-block: 1.5rem 0.5rem; }
.prose p, .prose ul, .prose ol { margin-block: 0.85rem; }
.prose li { margin-block: 0.25rem; }
.anchor { margin-inline-start: 0.35em; text-decoration: none; opacity: 0; font-weight: 400; }
:is(h1, h2, h3, h4):hover > .anchor, .anchor:focus { opacity: 1; }
@media (hover: none) { .anchor { opacity: 0.5; } }
code { font: 0.9em var(--mono); background: var(--soft); padding: 0.1em 0.3em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.5; margin-block: 1rem; }
pre code { background: none; padding: 0; font-size: 0.85rem; overflow-wrap: normal; }
.code-wrap { position: relative; }
.copy { position: absolute; inset-block-start: 0.4rem; inset-inline-end: 0.4rem; font: 0.8rem var(--font); padding: 0.2rem 0.6rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.tok-k { color: var(--k); } .tok-s { color: var(--s); } .tok-n { color: var(--n); } .tok-l { color: var(--l); }
table { border-collapse: collapse; display: block; overflow-x: auto; max-inline-size: 100%; margin-block: 1rem; }
th, td { border: 1px solid var(--line); padding: 0.4rem 0.7rem; text-align: start; vertical-align: top; }
th { background: var(--soft); }
blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 4px solid var(--line); color: var(--muted); }
hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2rem; }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.cards li { border: 1px solid var(--line); border-radius: 8px; padding: 0.25rem 1.1rem 0.75rem; }
.cards h2 { border: 0; margin-block: 0.75rem 0.25rem; padding: 0; font-size: 1.2rem; }
.meta span { color: var(--muted); }
.example h2 { font-family: var(--mono); font-size: 1.05rem; }

.toc { margin-block-end: 1rem; }
.toc summary { cursor: pointer; font-weight: 600; padding-block: 0.4rem; }
.toc ul { list-style: none; padding: 0; margin: 0.25rem 0 0; font-size: 0.9rem; line-height: 1.4; }
.toc li { margin-block: 0.35rem; }
.toc .l3 { padding-inline-start: 1rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 62rem) {
  .has-toc { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .toc { position: sticky; inset-block-start: 5rem; max-block-size: calc(100vh - 6rem); overflow-y: auto; order: 2; grid-column: 1; grid-row: 1; }
  .has-toc .prose { grid-column: 2; grid-row: 1; }
  .toc summary { pointer-events: none; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc::details-content, .toc details::details-content { content-visibility: visible; display: block; }
}
.site-footer { border-block-start: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 0.9rem; }
.site-footer > * { max-inline-size: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.foot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; padding-block: 3rem 1.5rem; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: 0.6rem 0; max-inline-size: 32ch; }
.foot-icons { display: flex; gap: 0.25rem; }
.foot-icons a { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; color: var(--fg); }
.foot-icons a:hover, .foot-col a:hover { color: var(--brand); }
.foot-col h2 { margin: 0 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-block; padding-block: 0.3rem; color: var(--fg); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem 1.5rem; border-block-start: 1px solid var(--line); font-size: 0.85rem; }
.foot-bottom p { margin: 0; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .foot-brand { grid-column: auto; } }
@media (max-width: 30rem) {
  .prose h1 { font-size: 1.65rem; }
  .bar { padding-inline: 1rem; }
  .layout { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Brand kit page */
.prose.wide { max-inline-size: 64rem; margin-inline: auto; }
.defs { position: absolute; }
.brand-hero { text-align: center; padding-block: 2.5rem 1rem; }
.brand-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.02em; margin-block: 0 1rem; }
.brand-hero .lead { text-wrap: balance; max-inline-size: 38rem; margin-inline: auto; font-size: 1.15rem; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-block: 2rem; }
.hero-badges img { display: block; max-inline-size: 100%; block-size: auto; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.5rem; }
.button { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 999px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button { color: #131211; } }
:root[data-theme="dark"] .button { color: #131211; }
.button:hover { filter: brightness(1.08); }
.toolbar { padding-inline-start: 1.2rem; color: var(--muted); }
.badge-grid, .tiles, .donts { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.badge-card, .tile, .donts li, .guides section { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; min-inline-size: 0; }
.badge-card h4, .tile h4 { margin-block: 0 0.75rem; font-size: 1rem; }
.previews { display: grid; gap: 0.5rem; }
.pv { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; border-radius: 8px; border: 1px solid var(--line); }
.pv img { max-inline-size: 100%; block-size: auto; }
.pv-light { background: #fbfaf7; }
.pv-dark { background: #131211; border-color: #131211; }
.pv-plain { background: var(--soft); }
.dls { font-size: 0.9rem; margin-block: 0.75rem 0; line-height: 1.9; }
.dls a { margin-inline-end: 0.35rem; }
.badge-card details { margin-block-start: 0.75rem; }
.badge-card summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding-block: 0.25rem; }
.badge-card pre { font-size: 0.8rem; }
.badge-card pre code { font-size: 0.78rem; }
.cap { font-size: 0.85rem; color: var(--muted); margin-block: 0.75rem 0; }
.tiles-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.thumb { margin-block-end: 0.85rem; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); padding: 1rem; block-size: 11rem; }
.thumb img { max-inline-size: 100%; max-block-size: 100%; inline-size: auto; block-size: auto; }
.swatches { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.swatches li { display: flex; flex-direction: column; gap: 0.25rem; }
.sw { display: block; block-size: 4rem; border-radius: 10px; border: 1px solid var(--line); margin-block-end: 0.35rem; }
.sw-orange { background: #c4471a; } .sw-orange-dk { background: #f08a5d; } .sw-paper { background: #fbfaf7; }
.sw-ink { background: #1d1c1a; } .sw-muted { background: #5d5a54; } .sw-night { background: #131211; }
.swatches code { align-self: start; }
.use { color: var(--muted); font-size: 0.875rem; }
.guides { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.guides h3, .donts + * { margin-block-start: 0; }
.gfig { display: block; inline-size: 100%; max-inline-size: 11rem; block-size: auto; margin-inline: auto; color: var(--fg); }
.brandcol { color: var(--brand); }
.mins { display: flex; align-items: center; justify-content: center; gap: 1.25rem; min-block-size: 6rem; }
.bgchip { border-radius: 10px; padding: 0.5rem; box-sizing: content-box; }
.bgchip-light { background: #fbfaf7; border: 1px solid var(--line); }
.bgchip-dark { background: #131211; }
.bgchip-orange { background: #c4471a; }
.donts p { margin-block: 0.75rem 0; font-size: 0.95rem; }
.donts li { position: relative; }
.donts li::after { content: "✕"; position: absolute; inset-block-start: 0.6rem; inset-inline-end: 0.8rem; color: #b3261e; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .donts li::after { color: #ff8a80; } }
:root[data-theme="dark"] .donts li::after { color: #ff8a80; }
.note { color: var(--muted); font-size: 0.9rem; }

/* ---------- manifest creator (/create/) ---------- */
[hidden] { display: none !important; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.layout.wide { max-inline-size: 84rem; }
.create { min-inline-size: 0; }
.create h1 { font-size: 2rem; line-height: 1.2; margin-block: 0.5rem 0.75rem; }
.create .lead { max-inline-size: 62ch; color: var(--muted); font-size: 1.05rem; margin-block: 0 1.25rem; }
.callout { border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); background: var(--soft); border-radius: 8px; padding: 0.1rem 1rem; max-inline-size: 62ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-block-end: 1rem; }
.toolbar .note { flex: 1 1 14rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 62rem) { .cols { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr); gap: 1.75rem; } .sticky { position: sticky; inset-block-start: 5rem; } }
.form { display: grid; gap: 1rem; min-inline-size: 0; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 1rem 1.25rem; min-inline-size: 0; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: ""; flex: none; inline-size: 0.55rem; block-size: 0.55rem; border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 0.15s; }
details.card[open] > summary::before { transform: rotate(45deg); }
.card h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; border: 0; padding: 0; }
.opt { font-size: 0.75rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0.05rem 0.5rem; margin-inline-start: 0.4rem; vertical-align: middle; }
.req { font-size: 0.75rem; font-weight: 500; color: var(--brand); margin-inline-start: 0.3rem; }
.create fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.section-lead { margin-block: 0.6rem 1rem; color: var(--muted); }
.field { display: grid; gap: 0.3rem; margin-block: 0.9rem 0.25rem; min-inline-size: 0; }
.field.narrow { max-inline-size: 11rem; }
.field label, .create label.inline { font-weight: 600; font-size: 0.95rem; }
.create :is(input[type=text], input[type=url], input[type=email], input[type=tel], input[type=number], select, textarea) {
  font: inherit; color: var(--fg); background: var(--bg); inline-size: 100%; min-block-size: 2.6rem; padding: 0.45rem 0.7rem; border: 1px solid var(--muted); border-radius: 8px;
}
.create textarea { resize: vertical; }
.create :is(input, select, textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.create [aria-invalid=true] { border-color: #b3261e; box-shadow: inset 3px 0 0 #b3261e; }
.create ::placeholder { color: var(--muted); opacity: 0.8; }
.help { margin-block: 0.25rem 0.5rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.err { margin-block: 0.15rem 0; font-size: 0.875rem; color: #b3261e; font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err, :root:not([data-theme="light"]) .status-chip.bad { color: #ff9e95; } }
:root[data-theme="dark"] .err, :root[data-theme="dark"] .status-chip.bad { color: #ff9e95; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .create [aria-invalid=true] { border-color: #ff9e95; box-shadow: inset 3px 0 0 #ff9e95; } }
:root[data-theme="dark"] .create [aria-invalid=true] { border-color: #ff9e95; box-shadow: inset 3px 0 0 #ff9e95; }
.grid2, .grid3 { display: grid; gap: 0 1rem; }
@media (min-width: 34rem) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin-block: 0.9rem 0.25rem; }
.check input { inline-size: 1.15rem; block-size: 1.15rem; margin-block-start: 0.25rem; accent-color: var(--brand); flex: none; }
.indent { margin-inline-start: 1.75rem; }
.sub { font-size: 1rem; margin-block: 1.25rem 0.25rem; }
.chips-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; border: 1px solid var(--muted); border-radius: 8px; padding: 0.3rem 0.4rem; background: var(--bg); }
.chips-box:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.chips-box input { flex: 1 1 10rem; border: 0 !important; min-block-size: 2rem !important; outline: 0 !important; box-shadow: none !important; padding-inline: 0.3rem !important; }
.chips { display: contents; list-style: none; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 0.1rem 0.2rem 0.1rem 0.7rem; font-size: 0.9rem; }
.chips button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; inline-size: 1.6rem; block-size: 1.6rem; border-radius: 50%; cursor: pointer; }
.chips button:hover { background: var(--line); color: var(--fg); }
.rows { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.75rem; }
.row { border: 1px solid var(--line); border-radius: 10px; padding: 0.25rem 1rem 0.9rem; background: var(--soft); }
.row legend { font-weight: 700; padding-inline: 0.25rem; }
.row .field { margin-block: 0.75rem 0.15rem; }
.row-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 0.75rem; }
.empty { border: 1px dashed var(--muted); border-radius: 10px; padding: 1rem; text-align: center; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 0.9rem 0.25rem; }
.btn { font: inherit; font-weight: 600; font-size: 0.95rem; min-block-size: 2.6rem; padding: 0.4rem 1.1rem; border-radius: 8px; border: 1px solid var(--muted); background: var(--bg); color: var(--fg); cursor: pointer; }
.btn:hover { border-color: var(--fg); }
.btn.small { min-block-size: 2.25rem; padding: 0.25rem 0.8rem; font-size: 0.875rem; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1b1f23; } }
:root[data-theme="dark"] .btn.primary { color: #1b1f23; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.quiet { border-color: var(--line); font-weight: 500; }
.btn.danger { color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger { color: #ff9e95; } }
:root[data-theme="dark"] .btn.danger { color: #ff9e95; }
.btn[aria-disabled=true] { opacity: 0.55; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; text-align: start; }
.side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-block-end: 0.75rem; }
.status-chip { margin: 0; font-size: 0.875rem; font-weight: 600; padding: 0.2rem 0.75rem; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.status-chip.ok { background: #e3f4e8; border-color: #8fcba3; color: #145c2a; }
.status-chip.bad { background: #fdecea; border-color: #e9a9a3; color: #8c1d18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-chip.ok { background: #16301f; border-color: #2c6a42; color: #8fe0aa; } }
:root[data-theme="dark"] .status-chip.ok { background: #16301f; border-color: #2c6a42; color: #8fe0aa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-chip.bad { background: #3a1b19; border-color: #7a3a35; } }
:root[data-theme="dark"] .status-chip.bad { background: #3a1b19; border-color: #7a3a35; }
.problems { list-style: none; margin: 0 0 0.75rem; padding: 0.5rem 0.9rem; border-inline-start: 4px solid #b3261e; background: var(--soft); border-radius: 6px; font-size: 0.9rem; }
.problems li { margin-block: 0.35rem; }
.problems li.warning { color: var(--muted); }
.preview { max-block-size: 28rem; margin-block: 0; }
.preview code { white-space: pre; }
.snippet { position: relative; }
.snippet pre { padding-inline-end: 4.5rem; }
.snippet code { overflow-wrap: normal; white-space: pre; }
.publish { margin-block-start: 1.5rem; border-color: var(--brand); }
.publish h2 { font-size: 1.4rem; }
.steps { padding-inline-start: 1.4rem; }
.steps > li { margin-block: 1.5rem; padding-inline-start: 0.4rem; }
.steps h3 { display: inline; font-size: 1.1rem; }
.hosts { margin-block: 0.5rem; }
.hosts summary { cursor: pointer; font-weight: 600; }
.tendcast { color: var(--muted); border-block-start: 1px solid var(--line); padding-block-start: 0.9rem; margin-block-end: 0; }
@media (max-width: 30rem) { .card { padding-inline: 0.9rem; } .row { padding-inline: 0.7rem; } .indent { margin-inline-start: 0.5rem; } }
.creator { min-inline-size: 0; max-inline-size: 100%; }
.preview { max-inline-size: 100%; }
.carries { border: 1px dashed var(--line) !important; border-radius: 8px; padding: 0.4rem 0.8rem 0.6rem !important; margin-block: 0.75rem 0; }
.carries legend { font-weight: 600; font-size: 0.95rem; padding-inline: 0.25rem; }
.carries .check { margin-block: 0.4rem 0; }
.label-line { margin-block: 0.4rem 0; }
.label-preview { color: var(--fg); font-size: 1rem; }

/* ---------- tabs and Station ID maker ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-block-end: 1px solid var(--line); margin-block: 0 1.25rem; }
.tab { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; padding: 0.7rem 1rem; min-block-size: 2.75rem; cursor: pointer; border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--fg); }
.tab[aria-selected=true] { color: var(--fg); border-block-end-color: var(--brand); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.panel-title { font-size: 1.35rem; margin-block: 0.25rem 0.75rem; }
.idmaker { max-inline-size: 46rem; }
.id-card { margin-block: 0 1.25rem; }
.id-label { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.id-value { margin-block: 0.4rem 0.2rem; font: 600 clamp(1rem, 4.6vw, 1.75rem)/1.35 var(--mono); overflow-wrap: anywhere; user-select: all; padding: 0.5rem 0.75rem; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.id-value:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.id-notes { padding-inline-start: 1.2rem; margin-block: 0.75rem; }
.id-notes li { margin-block: 0.45rem; }
.id-result { padding: 0.5rem 0.9rem; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); margin-block: 0.25rem; }
.id-result.ok { border-color: #8fcba3; background: #e3f4e8; color: #145c2a; }
.id-result.warn { border-color: #e0b44c; background: var(--warn-bg); color: var(--warn-fg); }
.id-result.bad { border-color: #e9a9a3; background: #fdecea; color: #8c1d18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .id-result.ok { background: #16301f; border-color: #2c6a42; color: #8fe0aa; } }
:root[data-theme="dark"] .id-result.ok { background: #16301f; border-color: #2c6a42; color: #8fe0aa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .id-result.bad { background: #3a1b19; border-color: #7a3a35; color: #ffb4ab; } }
:root[data-theme="dark"] .id-result.bad { background: #3a1b19; border-color: #7a3a35; color: #ffb4ab; }

/* ---------- blog ---------- */
.byline { color: var(--muted); font-size: 0.95rem; margin-block: 0.25rem 1rem; }
.post-list { list-style: none; padding: 0; margin-block: 1rem; }
.post-list li { padding-block: 1rem; border-block-end: 1px solid var(--line); }
.post-list li > a { font-size: 1.2rem; font-weight: 600; }
.post-list .byline { margin-block: 0.2rem 0.4rem; }
.post-list p { margin-block: 0.2rem; }
.blog-back { margin-block-start: 2rem; }
main img { max-inline-size: 100%; block-size: auto; }
