/* tokens: the Timecard design system's tokens.json (D38), copied in its order. Edit the system
   first, then this block; `scripts/check-stylesheet.sh` refuses a color literal below it. */
:root, [data-theme="light"] {
  --ground: #eef1ec; --surface: #ffffff; --surface-sunken: #f6f8f5;
  --ink: #1b2430; --ink-secondary: #2e3a48; --muted: #5b6673;
  --line: #cbd2cf; --line-soft: #e1e6e2;
  --stamp: #c8322b; --on-stamp: #ffffff; --stamp-tint: #faeeec;
  --link: #1f5fa8; --link-tint: #e6eef8;
  --success: #1f6b45; --warning: #8a5a00; --warning-tint: #fff4d6;
  --danger: #a4261f; --danger-tint: #fbe9e7; --label: #4a5563; --focus: #1f5fa8;
  color-scheme: light;
}
[data-theme="dark"] {
  --ground: #141a22; --surface: #1c242e; --surface-sunken: #18202a;
  --ink: #e7ecf2; --ink-secondary: #c3ccd6; --muted: #93a0ae;
  --line: #2c3845; --line-soft: #243040;
  --stamp: #ee655c; --on-stamp: #141a22; --stamp-tint: #301719;
  --link: #7fb2f0; --link-tint: #1e2f45;
  --success: #5fbf88; --warning: #e3b341; --warning-tint: #3a2e12;
  --danger: #f08a82; --danger-tint: #3a1f22; --label: #a7b3c0; --focus: #7fb2f0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141a22; --surface: #1c242e; --surface-sunken: #18202a;
    --ink: #e7ecf2; --ink-secondary: #c3ccd6; --muted: #93a0ae;
    --line: #2c3845; --line-soft: #243040;
    --stamp: #ee655c; --on-stamp: #141a22; --stamp-tint: #301719;
    --link: #7fb2f0; --link-tint: #1e2f45;
    --success: #5fbf88; --warning: #e3b341; --warning-tint: #3a2e12;
    --danger: #f08a82; --danger-tint: #3a1f22; --label: #a7b3c0; --focus: #7fb2f0;
    color-scheme: dark;
  }
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 2px; --radius-md: 4px; --radius-pill: 999px;
  --hairline: 1px; --focus-ring: 2px; --rule: 3px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(/static/fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }
/* end tokens */

/* Type styles, as the system names them. */
.wordmark { font: 700 26px/1 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.page-title, main h1 { margin: 0 0 var(--space-4); font: 700 28px/32px var(--font-display); color: var(--ink); }
.section-title, main h2 { margin: var(--space-5) 0 var(--space-3); font: 700 22px/26px var(--font-display); color: var(--ink); }
main h3 { margin: var(--space-3) 0 var(--space-2); font: 600 17px/24px var(--font-body); }
.eyebrow { font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mono, code { font: 400 12.5px/18px var(--font-mono); overflow-wrap: anywhere; }
.count { font-variant-numeric: tabular-nums; }

/* The page. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); scrollbar-gutter: stable; }
body { margin: 0; font: 400 15px/22px var(--font-body); color: var(--ink); background: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: 2px; }
.muted, .handle, .time { color: var(--muted); }
.error { color: var(--danger); }
p { margin: var(--space-2) 0; }

header.site { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-6); background: var(--surface); border-bottom: var(--hairline) solid var(--line); }
header.site nav { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; font-weight: 600; }
header.site nav a { color: var(--ink); }
header.site nav a:hover { color: var(--link); text-decoration: none; }
/* The top bar's account menu (WPG-23, D55): avatar and handle opening Profile, Drafts, Settings
   and Sign out; a details menu, so it needs no script. */
header.site nav.top { flex-wrap: nowrap; gap: var(--space-4); }
header.site details.account { position: relative; }
header.site details.account > summary { display: inline-flex; gap: var(--space-2); align-items: center; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
header.site details.account > summary::-webkit-details-marker { display: none; }
header.site details.account .avatar { width: 28px; height: 28px; }
.avatar.initial { display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--font-body); color: var(--ink-secondary); background: var(--surface-sunken); }
header.site details.account .menu { position: absolute; z-index: 10; top: calc(100% + var(--space-2)); right: 0; min-width: 180px; display: flex; flex-direction: column; padding: var(--space-2); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
header.site details.account .menu a, header.site details.account .menu button.link { display: block; width: 100%; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); text-align: left; color: var(--ink); font-weight: 400; }
header.site details.account .menu a:hover, header.site details.account .menu button.link:hover { background: var(--surface-sunken); text-decoration: none; }
header.site details.account .menu form { margin: var(--space-1) 0 0; padding-top: var(--space-1); border-top: var(--hairline) solid var(--line-soft); }

/* The space bar (WPG-64, D55): the space's name as the switcher, pinned to the page column's
   left edge, and Feed, Events and Bookmarks as tabs at the right. */
.space-bar { background: var(--surface); border-bottom: var(--hairline) solid var(--line); }
.space-bar-inner { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto; padding: 0 var(--space-4); }
/* Every page under the space bar shares the space page's frame, so the bar and the content's
   left edge stay put between Feed, Events, Bookmarks and a record's page: the calendar takes the
   frame's width and other content the feed column's. */
body:has(.space-bar) .space-bar-inner, body:has(.space-bar) main { max-width: calc(640px + 300px + var(--space-5) + 2 * var(--space-4)); }
body:has(.space-bar) main > :not(.space-page):not(.cal-page) { max-width: 640px; }
.space-bar details.switcher { position: relative; min-width: 0; flex: 1 1 auto; }
.space-bar details.switcher > summary { display: flex; gap: var(--space-1); align-items: center; min-height: 44px; cursor: pointer; list-style: none; font: 700 20px/24px var(--font-display); color: var(--ink); }
.space-bar details.switcher > summary::-webkit-details-marker { display: none; }
.space-bar details.switcher > summary::after { content: "▾"; flex: none; font-size: 13px; color: var(--muted); }
.space-bar .space-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-bar details.switcher nav { position: absolute; z-index: 10; top: 100%; left: 0; min-width: 220px; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); font: 400 13px/18px var(--font-body); }
.space-bar details.switcher ul { margin: 0; padding: 0; display: flex; flex-direction: column; }
.space-bar details.switcher ul.plain li { padding: 0; border: 0; }
.space-bar details.switcher nav a { display: block; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); color: var(--ink); }
.space-bar details.switcher nav a:hover { background: var(--surface-sunken); text-decoration: none; }
.space-bar details.switcher nav a[aria-current] { color: var(--link); font-weight: 600; }
.space-bar details.switcher .directory { margin-top: var(--space-1); padding-top: var(--space-2); border-top: var(--hairline) solid var(--line-soft); border-radius: 0; color: var(--muted); }
.space-bar nav.space-tabs { flex: none; flex-wrap: nowrap; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
@media (max-width: 719px) {
  header.site { flex-wrap: nowrap; }
  header.site .account-handle { display: none; }
  .space-bar-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .space-bar nav.space-tabs { overflow-x: auto; }
}
main { flex: 1 0 auto; width: 100%; max-width: 640px; margin: 0 auto; padding: var(--space-7) var(--space-4) var(--space-6); }
footer.site { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-6); background: var(--surface); border-top: var(--hairline) solid var(--line); font-size: 13px; line-height: 18px; color: var(--muted); }
footer.site nav { display: flex; gap: var(--space-4); }
footer.site a { font-weight: 600; }

/* Banner. */
.banner { margin: 0; padding: 10px var(--space-6); background: var(--warning-tint); color: var(--warning); text-align: center; }
main .banner { padding: 10px 14px; border-radius: var(--radius-md); text-align: left; margin-bottom: var(--space-4); }
.banner.danger, p.error.banner { background: var(--danger-tint); color: var(--danger); }

/* Button and Input. */
button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: var(--hairline) solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/22px var(--font-body); cursor: pointer; }
button:hover { background: var(--link-tint); }
/* One primary per page: the page's main action (Post, Create, Publish, Add) takes `.primary`. */
button.primary { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
button.primary:hover { background: var(--stamp); filter: brightness(0.95); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-weight: 600; }
button.link:hover { background: none; text-decoration: underline; }
button.danger, .danger { color: var(--danger); }
button.danger:not(.link) { background: var(--surface); border-color: var(--line); }
button:disabled { color: var(--muted); background: var(--surface-sunken); border-color: var(--line); cursor: not-allowed; }
form.inline { display: inline; }
label { display: block; margin-top: var(--space-3); font-weight: 600; }
input, textarea, select { font: 400 15px/22px var(--font-body); width: 100%; min-height: 38px; padding: 7px var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); }
textarea { min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"], input[type="radio"], input[type="file"] { width: auto; min-height: 0; padding: 0; border: 0; accent-color: var(--link); }
input[type="file"] { padding: var(--space-1) 0; }
fieldset { border: var(--hairline) solid var(--line); border-radius: var(--radius-md); margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); background: var(--surface); }
fieldset label { display: inline-flex; gap: var(--space-2); align-items: center; margin: 0 var(--space-4) 0 0; font-weight: 400; }
fieldset .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 var(--space-3); border-bottom: var(--hairline) solid var(--line-soft); padding-bottom: var(--space-2); }
fieldset .row label { display: block; margin-right: 0; }
/* A fieldset that only lets a whole form be disabled: no frame, labels stacked over their fields. */
fieldset.wrap { display: grid; gap: var(--space-1); min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
fieldset.wrap > label { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; font-weight: 600; }
fieldset.wrap > label:first-of-type { margin-top: 0; }
legend { padding: 0 var(--space-1); font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* The composer. */
.compose { display: grid; gap: var(--space-1); margin-bottom: var(--space-5); padding: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.compose button { justify-self: start; margin-top: var(--space-2); }
.panel { padding: var(--space-3); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); font-size: 13px; line-height: 18px; }
.panel h3 { margin: var(--space-1) 0; font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; padding: 2px 0; }
.panel li.plain { color: var(--muted); text-decoration: line-through; }
.panel .refused { color: var(--danger); margin: 0; }
.panel code { color: var(--muted); }
.compose .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.compose .notice { margin: 0; color: var(--success); font-weight: 600; }
.compose .kept-media { margin: var(--space-1) 0; }
.compose .kept-media.refused { color: var(--danger); }
/* The Drafts page (WPG-52). */
.drafts { list-style: none; margin: 0; padding: 0; }
.drafts li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--line-soft); }
.drafts .title { flex: 1 1 12rem; font-weight: 600; }
.drafts .title.muted { font-weight: 400; }
.drafts form { margin: 0; }
.mention-host { position: relative; }
.picker { position: absolute; z-index: 2; left: 0; right: 0; list-style: none; margin: var(--space-1) 0 0; padding: var(--space-1) 0; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.picker li { display: flex; gap: var(--space-2); align-items: center; padding: 6px var(--space-3); cursor: pointer; }
.picker li[aria-selected="true"] { background: var(--link-tint); color: var(--link); }
details > summary { cursor: pointer; color: var(--muted); margin: var(--space-2) 0; font-weight: 600; }
[data-record-controls] { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-1) 0; }
canvas.live-wave { width: 100%; height: 3rem; border-radius: var(--radius-md); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); }
.progress progress { width: 100%; accent-color: var(--link); }

/* PostCard and EventCard: the feed's cards. */
section.feed, .notifications, section.feed [data-items] { display: flex; flex-direction: column; gap: var(--space-4); }
.item { padding: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.depth-1 { margin-left: var(--space-5); } .depth-2 { margin-left: calc(2 * var(--space-5)); } .depth-3 { margin-left: calc(3 * var(--space-5)); } .depth-4, .depth-5, .depth-6 { margin-left: calc(4 * var(--space-5)); }
.item.anchor { border-color: var(--ink-secondary); }
.reply-context { margin-bottom: var(--space-3); padding-left: var(--space-3); border-left: 2px solid var(--line); }
.item.context { padding: 0; border: 0; background: none; border-radius: 0; }
.item.anchor .text { font-size: 17px; line-height: 24px; }
/* The author line (WPG-13): avatar, name, handle, space and time, separated evenly by dots. */
.item header { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.item .author { display: inline-flex; gap: var(--space-1); align-items: baseline; color: var(--ink); }
.item .author strong { font-weight: 600; }
.item .handle, .item .space { font-size: 13px; line-height: 18px; }
.item header > .space::before, .item header > .time::before { content: "·"; margin-right: var(--space-2); color: var(--muted); }
.item .time { font-size: 13px; line-height: 18px; }
.item header > a.time:hover { text-decoration: none; }
.item header > a.time:hover time { text-decoration: underline; }
.item .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--space-2) 0; color: var(--ink); }
.item footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: var(--space-3); padding-top: var(--space-2); border-top: var(--hairline) solid var(--line-soft); font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.item footer a, .item footer button.link { color: var(--muted); font: inherit; }
.item footer a:hover, .item footer button.link:hover { color: var(--link); }
/* The action row (WPG-43): icon, word, count. A pressed Like fills its heart. */
.item footer .action { display: inline-flex; gap: var(--space-1); align-items: center; }
.item footer .action .icon { flex: none; }
.item footer .engage button.like[aria-pressed="true"] { color: var(--stamp); font-weight: 600; }
.item footer .engage button.like[aria-pressed="true"] .heart { fill: currentColor; }
.item footer .engage button.like[aria-pressed="false"] .heart { fill: none; }
.item footer .engage button.repost[aria-pressed="true"] { color: var(--link); font-weight: 600; }
form.theme { margin: var(--space-5) 0 var(--space-4); }
.item footer button.danger { color: var(--danger); }
.reposted { margin: 0 0 var(--space-2); font-size: 13px; line-height: 18px; }
.avatar { border-radius: var(--radius-md); border: var(--hairline) solid var(--line); object-fit: cover; background: var(--line); }
.mention { font-weight: 600; }
.tags { margin: var(--space-1) 0; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tag { color: var(--link); }
.badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--radius-sm); font: 600 12px/16px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-sunken); color: var(--muted); border: var(--hairline) solid var(--line-soft); vertical-align: middle; }
.badge.status { color: var(--danger); background: var(--danger-tint); border-color: transparent; }
.badge.unread, [data-island="unread"] .badge { margin-left: var(--space-1); min-width: 20px; justify-content: center; background: var(--stamp); color: var(--on-stamp); border-color: var(--stamp); font: 600 13px/18px var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.label { display: inline-block; padding: 1px 6px; margin-right: var(--space-1); border-radius: var(--radius-sm); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); color: var(--label); font: 600 12px/16px var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; }
details.warning > summary { color: var(--label); }
/* A limited contributor's reply and repost counts, as text (WPG-97), and their own profile's
   badge and note (WPG-98). */
.action.plain { cursor: default; }
.limited-pill { display: inline-flex; align-items: center; padding: 2px var(--space-2); border: var(--hairline) solid var(--line); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font-size: 12px; font-weight: 600; }
.limited-note { padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13px; }
/* Content labels (LBL-21, LBL-22, D91): conceal folds the card behind one line, the way a muted
   card does; hide leaves a placeholder card; the pill names a shown or revealed item's label. */
details.label-card > summary.label-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 52px; margin: 0; padding: 0 var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-secondary); font-weight: 400; list-style: none; }
details.label-card > summary.label-line::-webkit-details-marker { display: none; }
details.label-card > summary.label-line .icon { flex: none; color: var(--muted); }
details.label-card > summary .reveal { margin-left: auto; font-weight: 600; color: var(--link); text-decoration: underline; }
details.label-card[open] > summary.label-line { min-height: 32px; margin-bottom: var(--space-3); border-style: dashed; font-size: 13px; }
details.label-card[open] > summary .when-closed, details.label-card:not([open]) > summary .when-open { display: none; }
details.label-card > summary .when-open { display: flex; flex: 1; gap: var(--space-2); align-items: center; }
details.label-card > summary .conceal-again { margin-left: auto; font-weight: 600; color: var(--link); text-decoration: underline; }
.item.hidden-content { display: flex; align-items: center; min-height: 52px; }
.item.hidden-content p, p.hidden-content { margin: 0; }
.label-pill { display: inline-flex; flex: none; align-items: center; padding: 0 var(--space-2); border: var(--hairline) solid var(--line); border-radius: var(--radius-pill); font: 600 11px/18px var(--font-mono); color: var(--ink-secondary); }
/* A muted member's card, one line until revealed (WPG-89, WPG-90, D90): native <details>, so the
   reveal needs no script and no request, and a reload shows it collapsed again. */
details.muted-card > summary.muted-line { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; margin: 0; padding: 0 var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-secondary); font-weight: 400; list-style: none; }
details.muted-card > summary.muted-line::-webkit-details-marker { display: none; }
details.muted-card > summary.muted-line .icon { flex: none; color: var(--muted); }
details.muted-card > summary.muted-line b { font-weight: 600; color: var(--ink); }
details.muted-card[open] > summary.muted-line { min-height: 32px; margin-bottom: var(--space-3); border-style: dashed; font-size: 13px; }
details.muted-card[open] > summary .when-closed, details.muted-card:not([open]) > summary .when-open { display: none; }
details.muted-card > summary .when-open { display: flex; flex: 1; gap: var(--space-2); align-items: center; }
details.muted-card > summary .hide-again { margin-left: auto; font-weight: 600; color: var(--link); text-decoration: underline; }
blockquote.quote details.muted-card > summary.muted-line { margin: 0; }
/* The profile's "…" menu and the Muted pill (WPG-92). The menu is a <details>: the POST's
   redirect closes it, so it needs no script. */
.profile-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.profile-title h1 { margin: 0; }
.muted-pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border: var(--hairline) solid var(--muted); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font-size: 12px; font-weight: 600; }
details.profile-menu { position: relative; margin-left: auto; }
details.profile-menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; list-style: none; }
details.profile-menu > summary::-webkit-details-marker { display: none; }
details.profile-menu .menu { position: absolute; z-index: 10; top: calc(100% + var(--space-2)); right: 0; min-width: 200px; padding: var(--space-2); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
details.profile-menu .menu button { display: flex; width: 100%; min-height: 40px; align-items: center; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
details.profile-menu .menu button:hover { background: var(--surface-sunken); }
/* Spoiler and Rating on every compose form (WPG-96): one row before the buttons. */
.content-rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-2) 0; border-top: var(--hairline) solid var(--line-soft); border-bottom: var(--hairline) solid var(--line-soft); }
.content-rating label { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.content-rating select { min-height: 40px; }
/* Settings › Content labels (WPG-95): each label a segmented Show / Conceal / Hide choice. */
.content-labels fieldset.label-setting { border: 0; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.content-labels legend { padding: 0; font-weight: 600; }
.segmented { display: inline-flex; align-self: flex-start; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.segmented .segment { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; min-width: 96px; padding: 0 var(--space-3); border-left: var(--hairline) solid var(--line); background: var(--surface); color: var(--ink-secondary); font-weight: 600; cursor: pointer; }
.segmented .segment:first-child { border-left: 0; }
.segmented .segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented .segment:has(input:checked) { background: var(--link); color: var(--surface); }
.segmented .segment:has(input:focus-visible) { outline: var(--focus-ring) solid var(--focus); outline-offset: -2px; }
.segmented .default { font-size: 11px; font-weight: 400; opacity: .85; }
.label-help { display: flex; flex-direction: column; gap: var(--space-1); margin: var(--space-2) 0 var(--space-3); padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13px; }
/* Settings › Muted members (WPG-93). */
.muted-list { list-style: none; margin: 0; padding: 0; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.muted-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: var(--hairline) solid var(--line-soft); }
.muted-list li:first-child { border-top: 0; }
.muted-list .who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: var(--space-2); align-items: baseline; }
.muted-list .since { flex-basis: 100%; font-size: 12px; }
.muted-list .avatar.placeholder { display: inline-block; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--line); }
.event-name { margin: var(--space-2) 0 0; font: 600 17px/24px var(--font-body); }
.event-name a { color: var(--ink); }
.event-facts { font-size: 13px; line-height: 18px; margin: var(--space-1) 0; }
.going { display: flex; gap: var(--space-1); margin: var(--space-1) 0; }
form.rsvp { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-4) 0; }
form.card-rsvp { margin: var(--space-2) 0 0; }
form.card-rsvp button[aria-pressed="true"] { border-color: var(--link); color: var(--link); background: var(--link-tint); font-weight: 600; }
.rsvp-counts strong { color: var(--ink); font-weight: 600; }
/* The author's quoting switch sits at the end of the action row, beside Delete. */
/* The author's options on a record's own page (WPG-82): one quiet row under the counts, closed by
   default, opening the record's settings in place. */
section.thread { margin-bottom: var(--space-5); }
.item details.owner-options { margin: var(--space-3) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); border-top: var(--hairline) dashed var(--line); background: var(--surface-sunken); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.item details.owner-options > summary { margin: 0; padding: var(--space-2) var(--space-4); font-weight: 400; color: var(--muted); }
.item details.owner-options > summary:hover { color: var(--ink); }
.owner-panel { display: flex; flex-direction: column; padding: 0 var(--space-4) var(--space-3); }
.owner-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: var(--hairline) solid var(--line-soft); }
.owner-option:first-child { border-top: 0; }
.owner-option h3 { margin: 0; font: 600 15px/22px var(--font-body); color: var(--ink); }
.owner-option p { margin: 0; }
.owner-option .control { display: inline-flex; gap: var(--space-2); align-items: center; justify-self: end; }
.owner-option .saved { grid-column: 1 / -1; }
.owner-option .owner-form { grid-column: 1 / -1; margin: 0; }
.owner-option .saved:empty { display: none; }
.owner-option .button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: var(--hairline) solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/22px var(--font-body); cursor: pointer; }
.owner-option .button.danger { color: var(--danger); border-color: var(--danger); }
.owner-option .button.danger.solid { background: var(--danger); color: var(--surface); }
.switch { margin: 0; display: inline-flex; align-items: center; }
.switch input[type="checkbox"] { appearance: none; width: 40px; height: 22px; border-radius: var(--radius-pill); background: var(--line); position: relative; cursor: pointer; }
.switch input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; }
.switch input[type="checkbox"]:checked { background: var(--link); }
.switch input[type="checkbox"]:checked::after { transform: translateX(18px); }
.switch input[type="checkbox"]:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch input[type="checkbox"]::after { transition: none; } }
details.confirm-delete > summary { list-style: none; margin: 0; }
details.confirm-delete > summary::-webkit-details-marker { display: none; }
details.confirm-delete[open] { grid-column: 1 / -1; justify-self: stretch; display: flex; flex-direction: column-reverse; gap: var(--space-2); }
details.confirm-delete[open] > summary { align-self: flex-end; color: var(--ink); border-color: var(--line); }
details.confirm-delete .open, details.confirm-delete[open] .closed { display: none; }
details.confirm-delete[open] .open { display: inline; }
details.confirm-delete form.confirm { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; padding: var(--space-3); background: var(--danger-tint); border-radius: var(--radius-md); }
details.confirm-delete form.confirm p { margin: 0; flex: 1 1 14rem; color: var(--ink); }

/* Media inside a post: ImageGrid, Gallery, Waveform, LinkCard. */
.media { display: block; max-width: 100%; border-radius: var(--radius-md); border: var(--hairline) solid var(--line); margin: var(--space-2) 0; }
.media.header { max-height: 12rem; width: 100%; object-fit: cover; }
.images, .gallery { display: grid; gap: 2px; margin: var(--space-2) 0; border-radius: var(--radius-md); overflow: hidden; border: var(--hairline) solid var(--line); }
.images.n2, .images.n4 { grid-template-columns: 1fr 1fr; }
.images.n3 { grid-template-columns: 2fr 1fr; }
.images.n3 a:first-child { grid-row: span 2; }
.images .media, .gallery .media { margin: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery .media { aspect-ratio: 1; }
.originals { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: calc(-1 * var(--space-1)) 0 var(--space-2); font-size: 13px; }
video.media { width: 100%; background: var(--ink); }
figure.voice { margin: var(--space-2) 0; }
figure.voice .waveform { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); }
figure.voice audio { width: 100%; margin-top: var(--space-1); }
/* A link card's image runs the card's width at the 1.91:1 of an Open Graph image, as Bluesky shows
   them, so a page's share image reads as designed; the text sits beneath it. */
.link-card { display: flex; flex-direction: column; margin: var(--space-2) 0; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); overflow: hidden; }
.link-card:hover { text-decoration: none; border-color: var(--link); }
.link-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.91 / 1; object-fit: cover; border-bottom: var(--hairline) solid var(--line); background: var(--surface-sunken); }
.link-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--space-2) var(--space-3); overflow-wrap: anywhere; }
.link-card .host { font: 400 12.5px/18px var(--font-mono); }
/* MediaEmbed (WPG-61, D52): the poster dimmed to 85% with a surface disc and a link triangle
   over it, nothing else; the provider's player replaces the stage after a click and a consent. */
.media-embed { margin: var(--space-2) 0; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.media-embed-stage { position: relative; display: block; background: var(--surface-sunken); }
.media-embed.frame .media-embed-stage, .media-embed.frame iframe { aspect-ratio: 16 / 9; min-width: min(480px, 100%); min-height: 270px; }
.media-embed.tall .media-embed-stage, .media-embed.tall iframe { width: 325px; max-width: 100%; aspect-ratio: 325 / 578; }
.media-embed.square .media-embed-stage, .media-embed.square iframe { width: 350px; max-width: 100%; aspect-ratio: 1; }
.media-embed-poster { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.media-embed-play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: var(--radius-pill); background: var(--surface); }
.media-embed-play::after { content: ""; position: absolute; top: 18px; left: 22px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--link); }
.media-embed-stage:hover .media-embed-play, .media-embed-stage:focus-visible .media-embed-play { box-shadow: 0 0 0 var(--focus-ring) var(--focus); }
.media-embed figcaption { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); overflow-wrap: anywhere; }
.media-embed-provider { font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.media-embed-icon { color: var(--muted); }
.media-embed .caption { font-size: 13px; line-height: 18px; color: var(--muted); }
.media-embed iframe { display: block; width: 100%; border: 0; }
.media-embed.strip { display: grid; grid-template-columns: 152px 1fr; }
.media-embed.strip .media-embed-stage { width: 152px; height: 152px; }
.media-embed.strip.playing { display: block; }
.media-embed.h-120 iframe { height: 120px; } .media-embed.h-152 iframe { height: 152px; } .media-embed.h-166 iframe { height: 166px; }
.media-embed.h-275 iframe { height: 275px; } .media-embed.h-352 iframe { height: 352px; } .media-embed.h-360 iframe { height: 360px; } .media-embed.h-450 iframe { height: 450px; }
.media-consent { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); min-height: 152px; padding: var(--space-4); background: var(--surface-sunken); }
.media-consent p { margin: 0; }
.media-consent .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.media-players form { margin: var(--space-2) 0; }
.quote { margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface-sunken); }
/* Tombstone (WPG-55, D46): a quiet sunken block in a gone record's place; muted, not danger,
   since a deletion is not an error. The thread and head variants stand in for a whole card. */
.tombstone { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); color: var(--muted); }
.tombstone-icon { flex: none; margin-top: 2px; }
.tombstone p { margin: 0; }
.tombstone-line { font-size: 15px; line-height: 22px; }
.tombstone-caption { font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tombstone-quote, .tombstone-rsvp { margin: var(--space-2) 0; }
/* PublicPostCard (WPG-60): a public post a member links; the cover link opens the original, the links inside sit above it. */
.public-post { position: relative; margin: var(--space-2) 0; padding: var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.public-post-cover { position: absolute; inset: 0; border-radius: var(--radius-md); }
.public-post-cover:hover { box-shadow: inset 0 0 0 var(--hairline) var(--link); }
.public-post a:not(.public-post-cover), .public-post details, .public-post .public-post { position: relative; z-index: 1; }
.public-post header { display: flex; align-items: center; gap: var(--space-2); }
.public-post-author { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); min-width: 0; }
.public-post-author .avatar { border-radius: var(--radius-sm); }
.public-post-author .handle { color: var(--muted); }
.badge.provider { margin-left: auto; color: var(--link); background: var(--link-tint); border-color: transparent; text-transform: none; letter-spacing: 0; }
.public-post footer { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.public-post .time { color: var(--muted); font: 400 12.5px/18px var(--font-mono); }
.public-post-view { color: var(--link); }
.public-post-line { margin: var(--space-2) 0; color: var(--muted); }
.item.gone { padding: 0; border: none; background: none; }
pre { overflow-x: auto; font: 400 12.5px/18px var(--font-mono); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.card-row { display: block; }

/* Notifications. */
.notification { padding: var(--space-3) var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.notification.unread { border-left: var(--rule) solid var(--stamp); }
.notification.unread > p { font-weight: 600; }
.notification .item { border: 0; padding: 0; background: none; }

/* The signed-out landing page (WPG-1): the hero with the sign-in form, then the capability cards. */
main:has(.landing) { max-width: 1120px; padding-top: var(--space-7); }
.landing { display: flex; flex-direction: column; gap: var(--space-7); }
.landing .hero { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; }
.landing .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.landing .example { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.landing .example img { display: block; width: 100%; height: auto; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.landing .example figcaption { font-size: 13px; line-height: 18px; color: var(--muted); }
@media (max-width: 860px) { .landing .hero-row { grid-template-columns: minmax(0, 1fr); } }
.landing .hero p { margin: 0; color: var(--ink-secondary); font-size: 17px; line-height: 24px; max-width: 65ch; }
.landing .hero p.small { font-size: 13px; line-height: 18px; color: var(--muted); }
.landing .hero .lede { font-size: 20px; line-height: 28px; color: var(--ink); }
.landing .display { margin: 0; font: 700 64px/1.05 var(--font-display); letter-spacing: 0.01em; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); border: var(--hairline) solid var(--line); background: var(--surface); font: 600 13px/18px var(--font-body); color: var(--ink); }
form.login { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: flex-end; margin-top: var(--space-2); }
form.login label { flex-basis: 100%; margin: 0; }
form.login input { flex: 1 1 260px; width: auto; }
form.login button { min-height: 38px; }
.landing .setup { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.landing .setup h2 { margin: 0; }
.landing .features { padding-top: var(--space-6); border-top: var(--hairline) solid var(--line); }
.landing .features h2 { margin: 0 0 var(--space-5); font-size: 28px; line-height: 32px; }
.landing .cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.landing .cards li { display: flex; flex-direction: column; gap: var(--space-2); padding: 20px; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.landing .cards h3 { margin: 0; font: 600 17px/24px var(--font-body); }
.landing .cards p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-secondary); }
@media (max-width: 719px) { .landing .display { font-size: 44px; } }

/* Document: About, Policies and other long-form pages, one column with no card around the text. */
main:has(.doc) { max-width: 720px; }
.doc { display: flex; flex-direction: column; gap: 20px; }
.doc header { display: flex; flex-direction: column; gap: 6px; }
.doc h1 { margin: 0; font: 700 32px/36px var(--font-display); letter-spacing: 0.01em; }
.doc h2 { margin: 0; }
.doc p, .doc ul { margin: 0; color: var(--ink-secondary); max-width: 65ch; }
.doc ul { padding-left: 20px; }
.doc .stamp { font: 400 12.5px/18px var(--font-mono); color: var(--muted); }
.doc .stamp code { color: inherit; }
.doc .toc { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.doc section { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line-soft); scroll-margin-top: var(--space-4); }

/* Tabs. */
nav.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: var(--space-4); padding: 0 var(--space-3); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
nav.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); font: 600 13px/18px var(--font-body); color: var(--muted); border-bottom: var(--rule) solid transparent; }
nav.tabs a:hover { color: var(--ink); text-decoration: none; }
nav.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--link); }

/* Table and facts. */
table.admin { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 18px; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
table.admin th { text-align: left; font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: var(--space-2) 10px; border-bottom: var(--hairline) solid var(--line); background: var(--surface-sunken); }
table.admin td { padding: var(--space-2) 10px; border-bottom: var(--hairline) solid var(--line-soft); vertical-align: top; text-align: left; }
table.admin tr:last-child td { border-bottom: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-4); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: var(--space-1) 0; border-bottom: var(--hairline) solid var(--line-soft); }
ul.plain li:last-child { border-bottom: 0; }
.admin-record.hidden { color: var(--muted); }
.label-form select, .label-form input[type="text"] { width: auto; display: inline-block; }

/* The space page's third column (WPG-32): beside the feed at 1100px and wider, below it under that. */
.space-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-5); align-items: start; }
.space-column { display: flex; flex-direction: column; gap: var(--space-4); }
.space-column section { padding: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.space-column h2 { margin: 0 0 var(--space-2); font: 700 22px/26px var(--font-display); }
.space-column .feeds { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.space-column .feeds li { padding: var(--space-2) 10px; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 12px; line-height: 16px; }
.space-column .feeds li:last-child { border-bottom: var(--hairline) solid var(--line); }
.space-column .feeds li:has(a[aria-current]) { border-color: var(--link); background: var(--link-tint); }
.space-column .feeds a { color: var(--ink); font-weight: 600; font-size: 13px; line-height: 18px; }
.space-column .feeds a[aria-current] { color: var(--link); }
.space-column .avatars { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 1099px) {
  .space-page { grid-template-columns: minmax(0, 1fr); }
  body:has(.space-bar) .space-bar-inner, body:has(.space-bar) main { max-width: 640px; }
}
@media (max-width: 719px) {
  header.site, footer.site { padding-left: var(--space-4); padding-right: var(--space-4); }
  main { padding-top: var(--space-5); }
  .depth-1, .depth-2, .depth-3, .depth-4, .depth-5, .depth-6 { margin-left: var(--space-4); }
}
/* Places and maps (WPG-49, WPG-50): a pin drawn in CSS, the drawer under a card, the composer's Place tool. */
.pin { display: inline-block; width: 9px; height: 9px; margin-right: 3px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--link); vertical-align: 0; }
a.place { font-weight: 600; white-space: nowrap; }
a.place .n, .drawer .n { font: 600 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--on-stamp); background: var(--link); border-radius: var(--radius-pill); padding: 0 5px; margin-right: 2px; }
.drawer { margin: var(--space-2) 0; border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); padding: 0 var(--space-3); background: var(--surface-sunken); }
.drawer > summary { color: var(--ink-secondary); font-weight: 400; }
.drawer .map { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: var(--hairline) solid var(--line); }
.drawer ol.places { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-1); }
.drawer ol.places li { display: flex; gap: var(--space-2); align-items: baseline; overflow-wrap: anywhere; padding: 2px var(--space-1); border-radius: var(--radius-sm); }
.drawer ol.places li.marked, .drawer ol.places li:target { background: var(--link-tint); }
.drawer .n.dot { background: transparent; color: var(--muted); }
.drawer code { font: 400 12.5px/18px var(--font-mono); color: var(--muted); }
.attribution { display: block; font-size: 12.5px; margin-bottom: var(--space-2); }
.compose-places .place-search { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.compose-places .place-search label { flex-basis: 100%; }
.compose-places .place-search input { flex: 1 1 12rem; }
.place-results { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-1); }
.place-results button { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); padding: var(--space-2); font: inherit; cursor: pointer; }
.place-results button[aria-pressed="true"] { border-color: var(--link); background: var(--link-tint); }
.place-list { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-1); }
.place-list li { display: flex; gap: var(--space-2); align-items: baseline; overflow-wrap: anywhere; }
.find-on-map { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; flex-basis: 100%; }

/* Search in a space (WPG-51) */
form.space-search { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
form.space-search input[type="search"], .search-field input[type="search"] { flex: 1; min-width: 0; }
.search-field { display: flex; gap: var(--space-2); }
nav.kinds { margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
nav.kinds .pill:hover { text-decoration: none; border-color: var(--link); }
nav.kinds .pill[aria-current] { border-color: var(--link); background: var(--link-tint); }
.searching-for { align-items: center; }
details.where { margin-bottom: var(--space-3); }
details.where .near { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.near-picker button[aria-pressed="true"] { border-color: var(--link); }
.results-map img { display: block; max-width: 100%; height: auto; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.results-map { margin: 0 0 var(--space-3); }
p.snippet { color: var(--muted); }
p.snippet mark { background: var(--link-tint); color: var(--ink); font-weight: 600; padding: 0 1px; }
.item header .hit-number { font: 600 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--on-stamp); background: var(--link); border-radius: var(--radius-pill); padding: 0 5px; }
.item header .distance { margin-left: auto; }
/* Notifications on this device, on Settings (WPG-69). */
section.push { margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-3); }
section.push h2, section.push h3 { margin: 0; }
.push-device { background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.push-device p { margin: 0; }
.push-devices li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; padding: var(--space-2) 0; border-top: var(--hairline) solid var(--line-soft); }
.push-preferences { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
fieldset.choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; border: 0; }
fieldset.choices legend { padding: 0; margin-bottom: var(--space-2); font-weight: 600; }
fieldset.choices label { display: inline-flex; gap: var(--space-1); align-items: center; margin: 0; font-weight: 400; }
/* Calendar feeds on Settings (WPG-53). */
section.calendars { margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-4); }
.calendar-card { background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.calendar-card h3 { margin: 0 0 var(--space-2); }
.calendar-feed { padding: var(--space-2) 0; border-top: var(--hairline) solid var(--line-soft); }
.calendar-feed h4 { margin: 0 0 var(--space-1); font-size: 15px; line-height: 22px; }
.calendar-url { margin: 0 0 var(--space-2); user-select: all; }
.calendar-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.calendar-actions form { display: flex; gap: var(--space-2); margin: 0; }
/* Invitations on Settings (INV-3): one row per code, the link selectable whole. */
.invite-codes { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.invite-code { padding: var(--space-3); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.invite-code p { margin: 0; overflow-wrap: anywhere; }
.invite-link { margin: 0 0 var(--space-2); user-select: all; }
.invite-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.invite-actions form { margin: 0; }
.subscribe-help { margin-top: var(--space-2); font-size: 13px; line-height: 18px; }

/* Pinned records (WPG-54): the block above the feed on a space's default view, the badge, and
   the card overflow holding Pin and Unpin. */
section.pinned { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0 var(--space-5); }
section.pinned .eyebrow { margin: 0; }
.badge.pin { color: var(--stamp); border-color: var(--stamp); background: transparent; }
.item footer details.overflow { margin-left: auto; }
.item footer details.overflow > summary { margin: 0; font-weight: 400; }
.item footer details.overflow[open] { display: flex; gap: var(--space-2); align-items: center; }

/* The BookmarkCard (WPG-56): host, title, description and tags beside a 96px image. */
.bookmark-card { display: flex; gap: var(--space-3); align-items: flex-start; margin: var(--space-2) 0; }
.bookmark-body { flex: 1; min-width: 0; }
.bookmark-host { margin: 0; overflow-wrap: anywhere; }
.bookmark-host a { color: var(--muted); }
.bookmark-title { margin: var(--space-1) 0; font: 600 17px/24px var(--font-body); overflow-wrap: anywhere; }
.bookmark-description { margin: 0; color: var(--ink-secondary); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bookmark-image { flex: none; }
.bookmark-image img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-md); border: var(--hairline) solid var(--line); }
.bookmark-card .tags .tag { display: inline-flex; padding: 1px 8px; border-radius: var(--radius-pill); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); font-size: 13px; line-height: 18px; }
.bookmark-source { margin: var(--space-1) 0; font-size: 13px; }
.bookmark-live { padding: var(--space-3); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0; }
.chip { display: inline-flex; gap: var(--space-1); align-items: center; padding: 2px 10px; border-radius: var(--radius-pill); border: var(--hairline) solid var(--line); background: var(--surface); font-size: 13px; line-height: 18px; }

/* The space picker (WAD-36, D59): chips, a field, and suggestions under it. */
.space-picker { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.space-picker legend { padding: 0; font-weight: 600; }
.space-picker .chips { list-style: none; padding: 0; }
.space-picker .chips:empty { display: none; }
.space-picker .chip button.link { min-height: 0; padding: 0 2px; color: var(--muted); font-weight: 600; }
.space-picker .chip button.link:hover { color: var(--danger); text-decoration: none; }
.space-picker .chip label { display: inline-flex; gap: var(--space-1); align-items: center; margin: 0; font-weight: 400; }
.space-picker .picker-field { display: flex; gap: var(--space-2); }
.space-picker .picker-field input { flex: 1; min-width: 0; }
.picker-suggestions { position: absolute; z-index: 10; left: 0; right: 0; margin: var(--space-1) 0 0; padding: var(--space-1); list-style: none; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); max-height: 18rem; overflow-y: auto; }
.picker-suggestions li { padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); cursor: pointer; }
.picker-suggestions li:hover, .picker-suggestions li[aria-selected="true"] { background: var(--link-tint); color: var(--link); }
.space-picker [role="status"]:empty { display: none; }

/* Polls (WPG-57): the PollCard's form, its bars in link-tint sized by share, typed answers indented. */
.poll-prompt { margin: var(--space-1) 0 var(--space-2); font-weight: 600; }
.poll-prompt a { color: var(--ink); }
.poll-pending { margin: 0 0 var(--space-2); padding-left: var(--space-4); }
.poll-results { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-1); }
.poll-row.typed { margin-left: var(--space-4); }
.poll-bar { position: relative; display: flex; justify-content: space-between; gap: var(--space-2); padding: 4px 8px; border-radius: var(--radius-md); border: var(--hairline) solid var(--line-soft); overflow: hidden; }
.poll-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; background: var(--link-tint); z-index: 0; }
.poll-bar > * { position: relative; z-index: 1; }
.poll-row.leading .poll-label, .poll-row.leading .count { color: var(--link); font-weight: 600; }
.poll-row.chosen .poll-check { color: var(--link); font-weight: 600; }
.poll-voters { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; }
.poll-voters .avatar { width: 20px; height: 20px; }
.avatars .avatar.initial { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; font: 600 14px/1 var(--font-body); color: var(--ink-secondary); background: var(--surface-sunken); vertical-align: middle; }
.poll-voters .avatar.initial { display: inline-flex; align-items: center; justify-content: center; font: 600 11px/1 var(--font-body); color: var(--ink-secondary); background: var(--surface-sunken); }
.poll-more { flex-basis: 100%; }
.poll-more > summary { cursor: pointer; color: var(--muted); }
.poll-more p { margin: var(--space-1) 0 0; }
.poll-vote fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
/* A write-in field sits on its own line under its option. */
.poll-choice-row { display: flex; flex-direction: column; gap: var(--space-1); }
.poll-input { margin-left: 24px; max-width: 32ch; }
.poll-change > summary { cursor: pointer; color: var(--link); font-weight: 600; }
.compose-poll .poll-option { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: end; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.poll-bar.share-0::before { width: 0%; }
.poll-bar.share-5::before { width: 5%; }
.poll-bar.share-10::before { width: 10%; }
.poll-bar.share-15::before { width: 15%; }
.poll-bar.share-20::before { width: 20%; }
.poll-bar.share-25::before { width: 25%; }
.poll-bar.share-30::before { width: 30%; }
.poll-bar.share-35::before { width: 35%; }
.poll-bar.share-40::before { width: 40%; }
.poll-bar.share-45::before { width: 45%; }
.poll-bar.share-50::before { width: 50%; }
.poll-bar.share-55::before { width: 55%; }
.poll-bar.share-60::before { width: 60%; }
.poll-bar.share-65::before { width: 65%; }
.poll-bar.share-70::before { width: 70%; }
.poll-bar.share-75::before { width: 75%; }
.poll-bar.share-80::before { width: 80%; }
.poll-bar.share-85::before { width: 85%; }
.poll-bar.share-90::before { width: 90%; }
.poll-bar.share-95::before { width: 95%; }
.poll-bar.share-100::before { width: 100%; }
/* Space policies (WPG-58, WAD-34): the consent screen and the Policy panel. */
.consent .summary { font-size: 17px; line-height: 26px; color: var(--ink); }
.consent .caption, .policy-panel .caption { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.policy-body { padding-top: var(--space-4); border-top: var(--hairline) solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); }
.policy-body h2, .policy-body h3, .policy-body h4 { margin: 0; font-family: var(--font-display); }
.policy-body p, .policy-body ul, .policy-body ol { margin: 0; max-width: 65ch; color: var(--ink-secondary); }
.policy-body ul, .policy-body ol { padding-left: 20px; }
.policy-body blockquote { margin: 0; padding-left: var(--space-3); border-left: 3px solid var(--line); color: var(--muted); }
form.accept { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
form.accept .check { display: flex; gap: var(--space-2); align-items: center; font-weight: 600; }
.policy-panel { display: flex; flex-direction: column; gap: var(--space-3); }
.policy-panel textarea { min-height: 14rem; font-family: var(--font-mono); }
.policy-panel .preview { padding: var(--space-3); background: var(--surface-sunken); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
.policy-panel .pending { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; padding: 0; list-style: none; }
/* The space directory and its SpaceCard (WPG-59, WAD-35): the header as a 3:1 band, cropped by
   CSS and never re-encoded, the 56px avatar over its lower edge. */
main:has(.directory) { max-width: calc(2 * 420px + var(--space-5) + 2 * var(--space-4)); }
.space-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 719px) { .space-cards { grid-template-columns: minmax(0, 1fr); } }
.space-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.space-card .band { aspect-ratio: 3 / 1; background: var(--surface-sunken); }
.space-card .band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.space-card .face { margin: -28px var(--space-4) 0; }
.space-card .face .avatar { display: block; width: 56px; height: 56px; border: var(--rule) solid var(--surface); }
.space-card .body { padding: var(--space-2) var(--space-4) var(--space-4); }
.space-card .name { margin: 0; font: 600 17px/24px var(--font-body); }
.space-card .admins { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: var(--space-2) 0 0; }
.space-card .admins a { display: inline-flex; gap: var(--space-1); align-items: center; }
.space-card .success, .space-profile .success { color: var(--success); font-weight: 600; }
.policy-badge { display: inline-block; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--warning-tint); color: var(--warning); font-size: 12px; line-height: 18px; }
/* The space profile card heads a space page (WPG-32, D56); a space without images gets it plain. */
.space-profile { margin-bottom: var(--space-4); overflow: hidden; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.space-profile .band { aspect-ratio: 3 / 1; }
.space-profile .band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.space-profile .who { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); }
.space-profile .who .avatar { flex: none; width: 56px; height: 56px; }
.space-profile .who h1 { margin: 0; }
.space-profile .who p { margin: var(--space-1) 0 0; }
.feed-name { margin: var(--space-2) 0 var(--space-3); }
.feed-name h2 { margin: 0; font: 700 22px/26px var(--font-display); }
.feed-name p { margin: var(--space-1) 0 0; }
/* Latest or Popular (WPG-106, D94): two links drawn as a segmented control beside the heading. */
.feed-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.sort-switch { display: inline-flex; gap: 2px; padding: 2px; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sort-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 84px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font: 600 14px/1 var(--font-body); color: var(--muted); text-decoration: none; }
.sort-switch a:hover { color: var(--ink); background: var(--surface-sunken); }
.sort-switch a[aria-current="page"] { color: var(--surface); background: var(--ink); }
.sort-switch a:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: 1px; }
.popular-note .window { font-style: italic; }
.space-column .feeds .feed-text { display: block; margin-top: 2px; }

/* Compose (WPG-10, D56): a link to the compose page; with script, a dialog asking which form. */
a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: var(--hairline) solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/22px var(--font-body); }
a.button:hover { text-decoration: none; background: var(--link-tint); }
a.button.primary { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
a.button.primary:hover { background: var(--stamp); filter: brightness(0.95); }
.compose-card p { margin: 0 0 var(--space-3); }
.compose-card .button { width: 100%; }
.compose-dialog { width: min(640px, calc(100vw - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-6)); padding: var(--space-4); background: var(--surface); color: var(--ink); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.compose-dialog::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.compose-dialog[open]:not(:modal) { position: static; width: auto; max-height: none; margin: 0 0 var(--space-4); }
.compose-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.compose-dialog-head h2 { margin: 0; font: 700 22px/26px var(--font-display); }
.compose-dialog-head form { margin: 0; }
.compose-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.compose-choices button { justify-content: center; min-height: 56px; }
.compose-forms { display: flex; flex-direction: column; gap: var(--space-3); }
.compose-page h1 { margin: 0 0 var(--space-4); }
.profile-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); align-items: start; }
main:has(.profile-editor) { max-width: calc(640px + 320px + var(--space-5) + 2 * var(--space-4)); }
@media (max-width: 1099px) { .profile-editor { grid-template-columns: minmax(0, 1fr); } }
.profile-editor .current { display: flex; gap: var(--space-3); align-items: center; }
.profile-editor .current img { max-height: 56px; }

/* The image cropper (WPG-67, D61): the frame is the crop, the image moves under it. */
dialog.cropper { padding: var(--space-4); background: var(--surface); color: var(--ink); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
dialog.cropper::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
dialog.cropper h2 { margin: 0 0 var(--space-3); font: 700 22px/26px var(--font-display); }
dialog.cropper .crop-frame { display: block; max-width: 100%; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); cursor: grab; touch-action: none; }
dialog.cropper .crop-frame:active { cursor: grabbing; }
dialog.cropper .crop-zoom { display: flex; gap: var(--space-2); align-items: center; margin: var(--space-3) 0; }
dialog.cropper .crop-zoom input { flex: 1; }
dialog.cropper .buttons { display: flex; gap: var(--space-2); justify-content: flex-end; }

/* The welcome screen (WPG-66, D60): one column, the invitation and Join. */
.welcome { max-width: 560px; }
.welcome h1 { margin: 0 0 var(--space-2); }
.welcome .lede { font-size: 20px; line-height: 28px; color: var(--ink); }
.welcome .buttons { display: flex; gap: var(--space-2); margin: var(--space-4) 0; }
.badge.invited { color: var(--warning); background: var(--warning-tint); border-color: transparent; }
/* A pair's admin pages (WAD-37, D65): a way back to the spaces, the pair's name and its own tabs, set apart from the community tabs above them; the overview's cards each summarise one area and link to it. */
.space-admin-head { margin-bottom: var(--space-4); }
.space-admin-head .crumbs { margin: 0 0 var(--space-1); font-size: 13px; line-height: 18px; color: var(--muted); }
.space-admin-head h1 { margin: 0 0 var(--space-3); }
.space-admin-head h1 .badge { margin-left: var(--space-2); }
nav.space-admin-tabs { margin-bottom: 0; background: var(--surface-sunken); }
.space-description { margin: 0 0 var(--space-3); font-size: 17px; line-height: 24px; color: var(--ink-secondary); }
details.rename { margin-bottom: var(--space-4); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.summary { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.summary h2 { margin: 0 0 var(--space-1); font-size: 20px; line-height: 24px; }
.summary h2 a { color: var(--ink); }
.summary p { margin: 0; }
.summary .stat { font: 600 17px/24px var(--font-body); color: var(--ink); }
.summary .counts { margin: var(--space-1) 0 0; font-size: 13px; line-height: 20px; }
.summary .go { margin-top: auto; padding-top: var(--space-2); font-weight: 600; }
details.technical { margin-top: var(--space-4); }
details.technical dl { margin-top: var(--space-3); }
.compose label.check { display: flex; gap: var(--space-2); align-items: center; margin: var(--space-2) 0; font-weight: 400; }
nav.record-filter { margin: 0 0 var(--space-4); }
nav.record-filter .chip[aria-current] { border-color: var(--link); background: var(--link-tint); color: var(--ink); }
table.admin td p { margin: 0; }
table.admin td form.inline { display: inline; margin-left: var(--space-1); }
table.admin td button.link { font: inherit; }
/* The Events tab's calendar (WPG-83 to WPG-86): Month and Week grids, Monday first, then the shown period's cards by day. */
.cal-page { display: flex; flex-direction: column; gap: var(--space-3); }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.cal-period { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.cal-period h2 { margin: 0 var(--space-2) 0 0; font: 700 24px/1 var(--font-display); }
a.button.cal-step { padding: 0 var(--space-3); font-size: 18px; }
.cal-views { display: inline-flex; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.cal-views a { padding: var(--space-2) var(--space-4); font-weight: 600; font-size: 15px; color: var(--muted); }
.cal-views a + a { border-left: var(--hairline) solid var(--line); }
.cal-views a:hover { text-decoration: none; color: var(--ink); }
.cal-views a[aria-current] { background: var(--ink); color: var(--surface); }
.cal-zone { margin: 0; font-size: 14px; }
.cal-grid { background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.cal-dow, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow div { padding: var(--space-2); font: 600 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-sunken); border-bottom: var(--hairline) solid var(--line); }
.cal-day { min-width: 0; min-height: 104px; display: flex; flex-direction: column; gap: 3px; padding: var(--space-1) var(--space-1) var(--space-2); border-right: var(--hairline) solid var(--line-soft); border-bottom: var(--hairline) solid var(--line-soft); }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-week:last-child .cal-day { border-bottom: 0; }
.cal-day.out { background: var(--surface-sunken); }
.cal-day.out .cal-num { color: var(--muted); }
.cal-daylink { display: flex; align-items: baseline; gap: var(--space-2); color: var(--ink); }
.cal-daylink:hover { text-decoration: none; }
.cal-num { padding: 4px 6px; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.cal-day.today .cal-num { background: var(--stamp); color: var(--on-stamp); }
.cal-wd { font: 600 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cal-chip { display: block; padding: 3px 5px; border-left: var(--rule) solid var(--link); border-radius: var(--radius-sm); background: var(--link-tint); color: var(--ink); font: 400 13px/1.25 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { text-decoration: none; color: var(--link); }
.cal-chip b { margin-right: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-chip.going { border-left-color: var(--stamp); background: var(--stamp-tint); }
.cal-chip.past, .cal-entry.past { opacity: 0.55; }
.cal-more { padding: 0 5px; font-size: 13px; }
.cal-free { padding: 2px 6px; font-size: 13px; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dots i, .cal-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.cal-dots i.going, .cal-legend i.going { background: var(--stamp); }
.cal-grid.cal-view-week .cal-day { min-height: 168px; }
.cal-grid.cal-view-week .cal-chip { white-space: normal; padding: 5px 6px; }
.cal-grid.cal-view-week .cal-chip b { display: block; margin: 0 0 1px; }
.cal-legend { display: flex; gap: var(--space-4); flex-wrap: wrap; margin: 0; font-size: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.cal-listhead h2 { margin: 0; }
.cal-dayhead { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-2) 0 0; font: 600 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); scroll-margin-top: var(--space-5); }
.cal-dayhead::after { content: ""; flex: 1; border-top: var(--hairline) solid var(--line); }
.cal-entries { display: flex; flex-direction: column; gap: var(--space-3); }
.cal-entry { scroll-margin-top: var(--space-5); }
.cal-entry:target .item { box-shadow: 0 0 0 var(--focus-ring) var(--focus); }
.cal-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-5); text-align: center; background: var(--surface); border: var(--hairline) dashed var(--line); border-radius: var(--radius-md); }
.cal-empty strong { font-size: 18px; }
@media (max-width: 600px) {
  .cal-chip, .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-day { min-height: 56px; }
  .cal-daylink { flex-direction: column; gap: var(--space-1); align-items: flex-start; }
  .cal-dow div { padding: var(--space-2) 2px; text-align: center; font-size: 11px; letter-spacing: 0.04em; }
  .cal-grid.cal-view-week .cal-dow { display: none; }
  .cal-grid.cal-view-week .cal-week { grid-template-columns: minmax(0, 1fr); }
  .cal-grid.cal-view-week .cal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); padding: var(--space-2); border-right: 0; border-bottom: var(--hairline) solid var(--line-soft); }
  .cal-grid.cal-view-week .cal-daylink { width: 64px; flex: none; }
  .cal-grid.cal-view-week .cal-chip { display: block; flex: 1 1 200px; }
  .cal-grid.cal-view-week .cal-dots { display: none; }
  .cal-grid.cal-view-week .cal-free { flex: 1; }
}

/* Admin pages run twice the reading column, and everything in them takes the full width; last so it outranks the profile editor's width on the space profile page. */
main:has(.admin-nav) { max-width: 1280px; }
main:has(.admin-nav) .policy-body :is(p, ul, ol) { max-width: none; }

/* Documents (DOC-9, DOC-12, D89): the card in feeds, the page, its body and the code in it. */
.document-cover img, img.document-cover { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-md); border: var(--hairline) solid var(--line); margin: var(--space-2) 0; }
.document-title { margin: var(--space-2) 0 var(--space-1); font: 700 22px/28px var(--font-display); color: var(--ink); }
.document-page .document-title { font-size: 32px; line-height: 38px; }
.document-title a { color: var(--ink); }
.document-description { margin: 0 0 var(--space-2); color: var(--ink-secondary); }
.document-meta { margin: var(--space-1) 0; font-size: 13px; line-height: 18px; }
.document-body { margin-top: var(--space-4); font-size: 17px; line-height: 27px; color: var(--ink); overflow-wrap: anywhere; }
.document-body h2, .document-body h3, .document-body h4, .document-body h5, .document-body h6 { font-family: var(--font-display); margin: var(--space-5) 0 var(--space-2); }
.document-body p, .document-body ul, .document-body ol, .document-body blockquote { margin: 0 0 var(--space-3); }
.document-body blockquote { padding-left: var(--space-3); border-left: 3px solid var(--line); color: var(--ink-secondary); }
.document-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.document-body code { font-family: var(--font-mono); font-size: 0.9em; }
.document-body pre { overflow-x: auto; padding: var(--space-3); border-radius: var(--radius-md); border: var(--hairline) solid var(--line); background: var(--surface-sunken); font-size: 14px; line-height: 21px; }
.document-body pre code { font-size: inherit; }
.document-preview { padding: var(--space-3); border: var(--hairline) dashed var(--line); border-radius: var(--radius-md); background: var(--surface); }
.doc-tabs { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.doc-tabs button[aria-selected="true"] { font-weight: 700; border-color: var(--ink); }

/* The media wall (WPG-101 to WPG-104, D93): day dividers over a grid of tiles, each tile one
   post's media; a viewer dialog over it with script. */
.wall-day { margin: 0 0 var(--space-4); }
.wall-divider { margin: var(--space-4) 0 var(--space-2); font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.tile { position: relative; aspect-ratio: 1; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); }
.tile .cells { display: grid; gap: 2px; width: 100%; height: 100%; }
.tile .cells:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: -2px; }
.tile .cells.n2 { grid-template-columns: 1fr 1fr; }
.tile .cells.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile .cells.n3 .cell:first-child { grid-row: span 2; }
.tile .cells.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile .cell { position: relative; display: block; min-width: 0; min-height: 0; background: var(--surface-sunken); }
.tile .cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile .play { position: absolute; inset: 50% auto auto 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 65%, transparent); }
.tile .play::after { content: ""; position: absolute; inset: 11px auto auto 14px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--surface); }
.tile .more { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--font-display); color: var(--surface); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.tile .count { position: absolute; top: var(--space-1); right: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill); font: 600 11px/18px var(--font-mono); color: var(--surface); background: color-mix(in srgb, var(--ink) 70%, transparent); pointer-events: none; }
.tile.veiled .cell img { filter: blur(18px); transform: scale(1.1); }
.tile.veiled .label-pill { white-space: nowrap; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); pointer-events: none; }
.tile.hidden-content { display: grid; place-items: center; padding: var(--space-2); text-align: center; }
.tile.hidden-content p { margin: 0; }
dialog.wall-viewer { width: min(1100px, calc(100vw - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-4)); padding: 0; background: var(--surface); color: var(--ink); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
dialog.wall-viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
dialog.wall-viewer::backdrop { background: color-mix(in srgb, var(--ink) 75%, transparent); }
.wall-viewer .stage { position: relative; display: grid; place-items: center; min-height: 320px; background: var(--ink); }
.wall-viewer .stage .media img, .wall-viewer .stage .media video { display: block; max-width: 100%; max-height: calc(100vh - 2 * var(--space-4) - 2px); object-fit: contain; }
.wall-viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: var(--radius-pill); font: 700 24px/1 var(--font-body); color: var(--ink); background: color-mix(in srgb, var(--surface) 85%, transparent); cursor: pointer; }
.wall-viewer .nav:disabled { opacity: 0.3; cursor: default; }
.wall-viewer .prev { left: var(--space-3); }
.wall-viewer .next { right: var(--space-3); }
.wall-viewer .side { padding: var(--space-4); overflow-y: auto; }
.wall-viewer .side p { margin: 0 0 var(--space-3); }
.wall-viewer .author a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.wall-viewer .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wall-viewer .strip { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.wall-viewer .strip button { width: 48px; height: 48px; padding: 0; border: var(--rule) solid transparent; border-radius: var(--radius-sm); background: var(--surface-sunken); cursor: pointer; overflow: hidden; }
.wall-viewer .strip button[aria-current="true"] { border-color: var(--stamp); }
.wall-viewer .strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-viewer .close { position: absolute; top: var(--space-2); right: var(--space-2); width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); font: 700 20px/1 var(--font-body); color: var(--ink); background: var(--surface); cursor: pointer; }
@media (max-width: 720px) {
  dialog.wall-viewer[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Automod (WAD-72 to WAD-75, D95). */
.automod-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.automod-head h2 { margin: 0; }
.automod-rules tr.disabled td { color: var(--muted); }
.automod-tested { margin: var(--space-3) 0; padding: var(--space-3); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.automod-log > li { margin-bottom: var(--space-3); }
.automod-log ul { margin: var(--space-1) 0; }

/* Listings (LST-6 to LST-15, D97). The price in the display face; Free on a green badge, its tint
   mixed from --success so it holds contrast in both themes (about 5:1 on each). */
.listing-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0 0 var(--space-1); }
.price { font: 700 22px/26px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.price.free { padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: 18px; line-height: 24px; color: var(--success); background: color-mix(in srgb, var(--success) 14%, var(--surface)); border: var(--hairline) solid color-mix(in srgb, var(--success) 40%, var(--surface)); }
.listing-status { display: inline-flex; align-items: center; padding: 0 var(--space-2); border: var(--hairline) solid var(--success); border-radius: var(--radius-pill); font: 600 12px/18px var(--font-body); color: var(--success); background: var(--surface); }
.listing-status.claimed { border-color: var(--line); color: var(--muted); background: var(--surface-sunken); }
.item header .listed { margin-left: auto; font-size: 13px; line-height: 18px; }
.lister-tag { display: inline-flex; align-items: center; padding: 0 6px; border: var(--hairline) solid var(--line); border-radius: var(--radius-pill); font: 600 11px/16px var(--font-body); color: var(--ink-secondary); background: var(--surface-sunken); }
.listing-title { margin: 0; font: 600 17px/24px var(--font-body); color: var(--ink); }
.listing-title a { color: var(--ink); }
/* The card's photos by their count (LST-8): one beside the text at the right, none and the
   text spans the card, several as a row of up to three above it. */
.listing-card { display: grid; gap: var(--space-3); margin: var(--space-2) 0 0; padding: var(--space-3); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
.listing-card.photos-one { grid-template-columns: minmax(0, 1fr) 120px; align-items: start; }
.listing-card .text { margin: var(--space-1) 0 0; }
.listing-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); }
.listing-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); }
.listing-row .cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.listing-row .cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-row .more { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--font-display); color: var(--surface); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.listing-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-3) 0 0; }
.listing-actions form { margin: 0; }
.listing-actions button { margin: 0; }
@media (max-width: 480px) {
  .listing-card.photos-one { grid-template-columns: minmax(0, 1fr) 88px; }
}
/* The listing's page (LST-9): the shown photo large, numbered thumbnails choosing it by
   `?photo=`, then the price, status, title and details. */
.listing-gallery { margin: var(--space-3) 0; }
.listing-main { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: var(--radius-md); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); }
.listing-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.listing-thumbs a { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; border: var(--rule) solid transparent; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.listing-thumbs a[aria-current="true"] { border-color: var(--link); }
.listing-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-thumbs .n { position: absolute; left: 2px; bottom: 2px; padding: 0 4px; border-radius: var(--radius-sm); font: 600 11px/16px var(--font-mono); color: var(--ink); background: var(--surface); }
.listing-page .price { font-size: 30px; line-height: 34px; }
.listing-page .listing-title { margin: var(--space-2) 0; font: 700 28px/32px var(--font-display); }
.listing-page .listing-actions { padding-top: var(--space-3); border-top: var(--hairline) solid var(--line-soft); }
.listing-reply { scroll-margin-top: var(--space-4); }
/* The Listings tab (LST-13, LST-14): a grid of tiles. A tile with no photo shows its title large
   in the photo's place; a claimed one dims; a concealed or muted one blurs behind its pill, as a
   wall tile does (WPG-104). */
.listing-filter { margin-bottom: var(--space-4); }
.listing-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); }
.listing-tile { position: relative; overflow: hidden; background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.listing-tile > a { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.listing-tile > a:hover { text-decoration: none; }
.listing-tile > a:hover .tile-title { text-decoration: underline; }
.listing-tile .tile-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-sunken); }
.listing-tile .tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-tile .no-photo { display: grid; place-items: center; padding: var(--space-3); border-bottom: var(--hairline) solid var(--line-soft); font: 700 22px/1.1 var(--font-display); color: var(--ink-secondary); text-align: center; overflow-wrap: anywhere; }
.listing-tile .count { position: absolute; top: var(--space-2); right: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-pill); font: 600 11px/18px var(--font-mono); color: var(--surface); background: color-mix(in srgb, var(--ink) 70%, transparent); }
.listing-tile .tile-body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3) var(--space-3); }
.listing-tile .tile-body .price { font-size: 18px; line-height: 22px; align-self: flex-start; }
.listing-tile .tile-body .price.free { font-size: 15px; line-height: 20px; }
.listing-tile .tile-title { font-weight: 600; overflow-wrap: anywhere; }
.listing-tile .tile-body .muted { font-size: 13px; line-height: 18px; }
.listing-tile > .listing-status { position: absolute; top: var(--space-2); left: var(--space-2); }
.listing-tile.claimed > a { opacity: 0.55; }
.listing-tile.veiled > a > * { filter: blur(12px); }
.listing-tile.veiled > .label-pill { white-space: nowrap; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: var(--surface); pointer-events: none; }
.listing-tile.hidden-content { display: grid; place-items: center; min-height: 160px; padding: var(--space-2); text-align: center; }
.listing-tile.hidden-content p { margin: 0; }
.offer fieldset.offer-kind { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-3) 0 0; padding: 0; border: 0; }
.offer fieldset.offer-kind legend { padding: 0; margin-bottom: var(--space-1); }
.price-input { display: flex; align-items: center; gap: var(--space-2); }
.price-input .prefix { font: 600 18px/1 var(--font-body); color: var(--muted); }
.price-input input { max-width: 10rem; }
.price-field .muted { margin: var(--space-1) 0 0; font-size: 13px; line-height: 18px; }
fieldset.listing-photos { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; padding: 0; border: 0; }
fieldset.listing-photos legend { padding: 0; }

/* Reviews (REV-6 to REV-10, REV-13, D99). The rating's bar is ten segments, the first N filled. */
.rating { display: inline-flex; align-items: center; gap: var(--space-2); }
.rating .score { font: 700 18px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.rating-bar { display: inline-flex; gap: 2px; }
.rating-bar .seg { display: block; width: 10px; height: 8px; border-radius: var(--radius-sm); background: var(--line-soft); }
.rating-bar .seg.on { background: var(--stamp); }
.reviewed { font-size: 13px; }
.review { margin: var(--space-2) 0 0; }
.review-card { padding: var(--space-3); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
.review-subject { margin: 0; font: 700 15px/20px var(--font-body); color: var(--ink-secondary); overflow-wrap: anywhere; }
.review-rating { margin: var(--space-1) 0 var(--space-2); }
.review-title { margin: var(--space-2) 0 0; font: 600 17px/24px var(--font-body); }
.review-title a { color: var(--ink); }
.review .text { margin: var(--space-1) 0 0; }
.review-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); margin: var(--space-3) 0 0; }
.review-photos .cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.review-photos .cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-photos .more { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--font-display); color: var(--surface); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.review-gallery { display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; }
.review-gallery img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: var(--radius-md); border: var(--hairline) solid var(--line-soft); background: var(--surface-sunken); }
.review-places, .review-links { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.review-places li, .review-links li { overflow-wrap: anywhere; }
.review-links .host { color: var(--ink-secondary); }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.review-head .rating .score { font-size: 44px; line-height: 44px; color: var(--stamp); }
.review-head .review-subject { font: 700 28px/32px var(--font-display); color: var(--ink); }
.review-page .review-title { font: 700 22px/26px var(--font-display); }
/* A spoiler alone (REV-9): the photos after the Spoiler line stay blurred, and unclickable, until
   it opens; the reveal is the line's own <details>, so it needs no script. */
.review details.review-spoiler { margin-top: var(--space-2); }
.review details.review-spoiler:not([open]) ~ .under-spoiler { pointer-events: none; }
.review details.review-spoiler:not([open]) ~ .under-spoiler img { filter: blur(16px); }
.review .under-spoiler { overflow: hidden; }
/* The Review form: ten choices in one row (REV-14), and its collapsible sections (REV-13). */
fieldset.review-score { margin: var(--space-3) 0 0; padding: 0; border: 0; }
fieldset.review-score legend { padding: 0; font-weight: 600; }
.score-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--space-1); }
.compose .score-row label.check { justify-content: center; gap: 2px; margin: var(--space-1) 0 0; padding: var(--space-1) 0; border: var(--hairline) solid var(--line); border-radius: var(--radius-md); font-variant-numeric: tabular-nums; }
.compose .score-row label.check:has(input:checked) { border-color: var(--stamp); background: var(--stamp-tint); font-weight: 600; }
.compose .score-row label.check:has(input:focus-visible) { outline: var(--focus-ring) solid var(--focus); outline-offset: 2px; }
details.review-section { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--line-soft); border-radius: var(--radius-md); }
details.review-section > summary { cursor: pointer; font-weight: 600; }
details.review-section fieldset { margin: var(--space-2) 0 0; padding: 0; border: 0; }
details.review-section legend { padding: 0; color: var(--muted); font-weight: 400; }
/* Generated by otc_web::lib::document::highlight_css from syntect's InspiredGitHub and base16-ocean.dark; do not edit (OTC_REGENERATE_HIGHLIGHT_CSS=1 rewrites it). */
/*
 * theme "GitHub" generated by syntect
 */

.hl-code {
 color: #323232;
 background-color: #ffffff;
}

.hl-comment {
 color: #969896;
font-style: italic;
}
.hl-string {
 color: #183691;
}
.hl-regexp-operator {
 color: #a71d5d;
}
.hl-string.hl-regexp.hl-characterclass .hl-punctuation.hl-definition.hl-string.hl-begin, .hl-string.hl-regexp.hl-characterclass .hl-punctuation.hl-definition.hl-string.hl-end {
 color: #a71d5d;
}
.hl-constant.hl-numeric {
 color: #0086b3;
}
.hl-constant.hl-language {
 color: #0086b3;
}
.hl-constant.hl-character, .hl-constant.hl-other, .hl-variable.hl-other.hl-constant {
 color: #0086b3;
}
.hl-variable {
 color: #323232;
}
.hl-keyword {
 color: #a71d5d;
font-weight: bold;
}
.hl-bitwise-operator {
 color: #a71d5d;
font-weight: bold;
}
.hl-storage {
 color: #a71d5d;
font-weight: bold;
}
.hl-storage.hl-type {
 color: #a71d5d;
font-weight: bold;
}
.hl-entity.hl-name.hl-class {
 color: #0086b3;
}
.hl-entity.hl-other.hl-inherited-class {
 color: #0086b3;
}
.hl-entity.hl-name.hl-function {
 color: #795da3;
font-weight: bold;
}
.hl-variable.hl-parameter {
 color: #323232;
}
.hl-entity.hl-name.hl-tag {
 color: #63a35c;
}
.hl-entity.hl-other.hl-attribute-name {
 color: #795da3;
}
.hl-support.hl-function {
 color: #62a35c;
}
.hl-support.hl-constant {
 color: #0086b3;
}
.hl-support.hl-type, .hl-support.hl-class {
 color: #0086b3;
}
.hl-support.hl-other.hl-variable {
 color: #323232;
}
.hl-invalid, .hl-invalid.hl-illegal, .hl-invalid.hl-deprecated {
 color: #b52a1d;
 background-color: #f5f5f5;
font-weight: bold;
}
.hl-entity.hl-name.hl-filename.hl-find-in-files {
 color: #323232;
font-weight: bold;
}
.hl-constant.hl-numeric.hl-line-number.hl-find-in-files, .hl-constant.hl-numeric.hl-line-number.hl-match.hl-find-in-files {
 color: #b3b3b3;
}
.hl-meta.hl-diff.hl-header {
 color: #969896;
 background-color: #ffffff;
font-style: italic;
}
.hl-meta.hl-diff.hl-header .hl-punctuation.hl-definition.hl-from-file.hl-diff {
 color: #bd2c00;
 background-color: #ffecec;
font-weight: bold;
font-style: italic;
}
.hl-meta.hl-diff.hl-header .hl-punctuation.hl-definition.hl-to-file.hl-diff {
 color: #55a532;
 background-color: #eaffea;
font-weight: bold;
font-style: italic;
}
.hl-meta.hl-diff.hl-range {
 color: #969896;
font-weight: bold;
font-style: italic;
}
.hl-markup.hl-deleted {
 background-color: #ffecec;
}
.hl-markup.hl-deleted .hl-punctuation.hl-definition.hl-inserted {
 color: #bd2c00;
font-weight: bold;
}
.hl-markup.hl-inserted {
 background-color: #eaffea;
}
.hl-markup.hl-inserted .hl-punctuation.hl-definition.hl-inserted {
 color: #55a532;
font-weight: bold;
}
.hl-markup.hl-deleted.hl-git_gutter {
 color: #bd2c00;
}
.hl-markup.hl-inserted.hl-git_gutter {
 color: #55a532;
}
.hl-markup.hl-changed.hl-git_gutter {
 color: #0086b3;
}
.hl-markup.hl-ignored.hl-git_gutter {
 color: #b3b3b3;
}
.hl-markup.hl-untracked.hl-git_gutter {
 color: #b3b3b3;
}
.hl-source.hl-css .hl-punctuation.hl-definition.hl-entity {
 color: #323232;
}
.hl-source.hl-css .hl-entity.hl-other.hl-attribute-name.hl-pseudo-class, .hl-source.hl-css .hl-entity.hl-other.hl-attribute-name.hl-pseudo-element {
 color: #a71d5d;
}
.hl-source.hl-css .hl-meta.hl-value, .hl-source.hl-css .hl-support.hl-constant, .hl-source.hl-css .hl-support.hl-function {
 color: #323232;
}
.hl-source.hl-css .hl-constant.hl-other.hl-color {
 color: #ed6a43;
}
.hl-source.hl-scss .hl-punctuation.hl-definition.hl-entity {
 color: #323232;
}
.hl-source.hl-scss .hl-entity.hl-other.hl-attribute-name.hl-pseudo-class, .hl-source.hl-scss .hl-entity.hl-other.hl-attribute-name.hl-pseudo-element {
 color: #a71d5d;
}
.hl-source.hl-scss .hl-support.hl-constant.hl-property-value, .hl-source.hl-scss .hl-support.hl-function {
 color: #323232;
}
.hl-source.hl-scss .hl-variable {
 color: #a71d5d;
}
.hl-variable.hl-language.hl-this.hl-js {
 color: #ed6a43;
}
.hl-source.hl-js .hl-entity.hl-name.hl-function {
 color: #323232;
}
.hl-source.hl-js .hl-meta.hl-function .hl-entity.hl-name.hl-function, .hl-source.hl-js .hl-entity.hl-name.hl-function .hl-meta.hl-function {
 color: #795da3;
font-weight: bold;
}
.hl-entity.hl-name.hl-type.hl-new.hl-js {
 color: #795da3;
}
.hl-variable.hl-language.hl-prototype.hl-js {
 color: #0086b3;
}
.hl-source.hl-js .hl-support.hl-function {
 color: #0086b3;
}
.hl-support.hl-type.hl-object.hl-console.hl-js {
 color: #795da3;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta .hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-meta.hl-structure.hl-dictionary.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #183691;
font-weight: bold;
}
.hl-meta.hl-structure.hl-dictionary.hl-json .hl-meta.hl-structure.hl-dictionary.hl-value.hl-json .hl-string.hl-quoted.hl-double.hl-json {
 color: #323232;
}
.hl-source.hl-python .hl-keyword {
font-weight: bold;
}
.hl-source.hl-python .hl-storage {
font-weight: bold;
}
.hl-source.hl-python .hl-storage.hl-type {
font-weight: bold;
}
.hl-source.hl-python .hl-entity.hl-name.hl-function {
 color: #323232;
font-weight: bold;
}
.hl-source.hl-php .hl-entity.hl-name.hl-type.hl-class {
 color: #323232;
font-weight: bold;
}
.hl-variable.hl-language.hl-ruby {
 color: #ed6a43;
}
.hl-entity.hl-name.hl-type.hl-module.hl-ruby {
 color: #795da3;
font-weight: bold;
}
.hl-entity.hl-name.hl-type.hl-class.hl-ruby {
 color: #795da3;
font-weight: bold;
}
.hl-entity.hl-other.hl-inherited-class.hl-ruby {
 color: #795da3;
font-weight: bold;
}
.hl-text.hl-html.hl-markdown .hl-punctuation.hl-definition {
 color: #a71d5d;
}
.hl-text.hl-html.hl-markdown .hl-meta.hl-separator {
 color: #b3b3b3;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-heading {
font-weight: bold;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-raw.hl-block {
 color: #323232;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-raw.hl-inline {
 color: #323232;
}
.hl-text.hl-html.hl-markdown .hl-meta.hl-link, .hl-text.hl-html.hl-markdown .hl-meta.hl-image {
 color: #4183c4;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-underline.hl-link, .hl-text.hl-html.hl-markdown .hl-constant.hl-other.hl-reference {
font-style: italic;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-list {
 color: #ed6a43;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-bold {
font-weight: bold;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-italic {
font-style: italic;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-bold .hl-markup.hl-italic {
font-weight: bold;
font-style: italic;
}
.hl-text.hl-html.hl-markdown .hl-markup.hl-italic .hl-markup.hl-bold {
font-weight: bold;
font-style: italic;
}
/*
 * theme "Base16 Ocean Dark" generated by syntect
 */

[data-theme="dark"] .hl-code {
 color: #c0c5ce;
 background-color: #2b303b;
}

[data-theme="dark"] .hl-variable.hl-parameter.hl-function {
 color: #c0c5ce;
}
[data-theme="dark"] .hl-comment, [data-theme="dark"] .hl-punctuation.hl-definition.hl-comment {
 color: #65737e;
}
[data-theme="dark"] .hl-punctuation.hl-definition.hl-string, [data-theme="dark"] .hl-punctuation.hl-definition.hl-variable, [data-theme="dark"] .hl-punctuation.hl-definition.hl-string, [data-theme="dark"] .hl-punctuation.hl-definition.hl-parameters, [data-theme="dark"] .hl-punctuation.hl-definition.hl-string, [data-theme="dark"] .hl-punctuation.hl-definition.hl-array {
 color: #c0c5ce;
}
[data-theme="dark"] .hl-none {
 color: #c0c5ce;
}
[data-theme="dark"] .hl-keyword.hl-operator {
 color: #c0c5ce;
}
[data-theme="dark"] .hl-keyword {
 color: #b48ead;
}
[data-theme="dark"] .hl-variable, [data-theme="dark"] .hl-variable.hl-other.hl-dollar.hl-only.hl-js {
 color: #bf616a;
}
[data-theme="dark"] .hl-entity.hl-name.hl-function, [data-theme="dark"] .hl-meta.hl-require, [data-theme="dark"] .hl-support.hl-function.hl-any-method, [data-theme="dark"] .hl-variable.hl-function {
 color: #8fa1b3;
}
[data-theme="dark"] .hl-support.hl-class, [data-theme="dark"] .hl-entity.hl-name.hl-class, [data-theme="dark"] .hl-entity.hl-name.hl-type.hl-class {
 color: #ebcb8b;
}
[data-theme="dark"] .hl-meta.hl-class {
 color: #eff1f5;
}
[data-theme="dark"] .hl-keyword.hl-other.hl-special-method {
 color: #8fa1b3;
}
[data-theme="dark"] .hl-storage {
 color: #b48ead;
}
[data-theme="dark"] .hl-support.hl-function {
 color: #96b5b4;
}
[data-theme="dark"] .hl-string, [data-theme="dark"] .hl-constant.hl-other.hl-symbol, [data-theme="dark"] .hl-entity.hl-other.hl-inherited-class {
 color: #a3be8c;
}
[data-theme="dark"] .hl-constant.hl-numeric {
 color: #d08770;
}
[data-theme="dark"] .hl-none {
 color: #d08770;
}
[data-theme="dark"] .hl-none {
 color: #d08770;
}
[data-theme="dark"] .hl-constant {
 color: #d08770;
}
[data-theme="dark"] .hl-entity.hl-name.hl-tag {
 color: #bf616a;
}
[data-theme="dark"] .hl-entity.hl-other.hl-attribute-name {
 color: #d08770;
}
[data-theme="dark"] .hl-entity.hl-other.hl-attribute-name.hl-id, [data-theme="dark"] .hl-punctuation.hl-definition.hl-entity {
 color: #8fa1b3;
}
[data-theme="dark"] .hl-meta.hl-selector {
 color: #b48ead;
}
[data-theme="dark"] .hl-none {
 color: #d08770;
}
[data-theme="dark"] .hl-markup.hl-heading .hl-punctuation.hl-definition.hl-heading, [data-theme="dark"] .hl-entity.hl-name.hl-section {
 color: #8fa1b3;
}
[data-theme="dark"] .hl-keyword.hl-other.hl-unit {
 color: #d08770;
}
[data-theme="dark"] .hl-markup.hl-bold, [data-theme="dark"] .hl-punctuation.hl-definition.hl-bold {
 color: #ebcb8b;
font-weight: bold;
}
[data-theme="dark"] .hl-markup.hl-italic, [data-theme="dark"] .hl-punctuation.hl-definition.hl-italic {
 color: #b48ead;
font-style: italic;
}
[data-theme="dark"] .hl-markup.hl-raw.hl-inline {
 color: #a3be8c;
}
[data-theme="dark"] .hl-string.hl-other.hl-link {
 color: #bf616a;
}
[data-theme="dark"] .hl-meta.hl-link {
 color: #d08770;
}
[data-theme="dark"] .hl-meta.hl-image {
 color: #d08770;
}
[data-theme="dark"] .hl-markup.hl-list {
 color: #bf616a;
}
[data-theme="dark"] .hl-markup.hl-quote {
 color: #d08770;
}
[data-theme="dark"] .hl-meta.hl-separator {
 color: #c0c5ce;
 background-color: #4f5b66;
}
[data-theme="dark"] .hl-markup.hl-inserted, [data-theme="dark"] .hl-markup.hl-inserted.hl-git_gutter {
 color: #a3be8c;
}
[data-theme="dark"] .hl-markup.hl-deleted, [data-theme="dark"] .hl-markup.hl-deleted.hl-git_gutter {
 color: #bf616a;
}
[data-theme="dark"] .hl-markup.hl-changed, [data-theme="dark"] .hl-markup.hl-changed.hl-git_gutter {
 color: #b48ead;
}
[data-theme="dark"] .hl-markup.hl-ignored, [data-theme="dark"] .hl-markup.hl-ignored.hl-git_gutter {
 color: #4f5b66;
}
[data-theme="dark"] .hl-markup.hl-untracked, [data-theme="dark"] .hl-markup.hl-untracked.hl-git_gutter {
 color: #4f5b66;
}
[data-theme="dark"] .hl-constant.hl-other.hl-color {
 color: #96b5b4;
}
[data-theme="dark"] .hl-string.hl-regexp {
 color: #96b5b4;
}
[data-theme="dark"] .hl-constant.hl-character.hl-escape {
 color: #96b5b4;
}
[data-theme="dark"] .hl-punctuation.hl-section.hl-embedded, [data-theme="dark"] .hl-variable.hl-interpolation {
 color: #ab7967;
}
[data-theme="dark"] .hl-invalid.hl-illegal {
 color: #2b303b;
 background-color: #bf616a;
}
[data-theme="dark"] .hl-markup.hl-deleted.hl-git_gutter {
 color: #f92672;
}
[data-theme="dark"] .hl-markup.hl-inserted.hl-git_gutter {
 color: #a6e22e;
}
[data-theme="dark"] .hl-markup.hl-changed.hl-git_gutter {
 color: #967efb;
}
[data-theme="dark"] .hl-markup.hl-ignored.hl-git_gutter {
 color: #565656;
}
[data-theme="dark"] .hl-markup.hl-untracked.hl-git_gutter {
 color: #565656;
}
@media (prefers-color-scheme: dark) {
/*
 * theme "Base16 Ocean Dark" generated by syntect
 */

:root:not([data-theme="light"]) .hl-code {
 color: #c0c5ce;
 background-color: #2b303b;
}

:root:not([data-theme="light"]) .hl-variable.hl-parameter.hl-function {
 color: #c0c5ce;
}
:root:not([data-theme="light"]) .hl-comment, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-comment {
 color: #65737e;
}
:root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-string, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-variable, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-string, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-parameters, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-string, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-array {
 color: #c0c5ce;
}
:root:not([data-theme="light"]) .hl-none {
 color: #c0c5ce;
}
:root:not([data-theme="light"]) .hl-keyword.hl-operator {
 color: #c0c5ce;
}
:root:not([data-theme="light"]) .hl-keyword {
 color: #b48ead;
}
:root:not([data-theme="light"]) .hl-variable, :root:not([data-theme="light"]) .hl-variable.hl-other.hl-dollar.hl-only.hl-js {
 color: #bf616a;
}
:root:not([data-theme="light"]) .hl-entity.hl-name.hl-function, :root:not([data-theme="light"]) .hl-meta.hl-require, :root:not([data-theme="light"]) .hl-support.hl-function.hl-any-method, :root:not([data-theme="light"]) .hl-variable.hl-function {
 color: #8fa1b3;
}
:root:not([data-theme="light"]) .hl-support.hl-class, :root:not([data-theme="light"]) .hl-entity.hl-name.hl-class, :root:not([data-theme="light"]) .hl-entity.hl-name.hl-type.hl-class {
 color: #ebcb8b;
}
:root:not([data-theme="light"]) .hl-meta.hl-class {
 color: #eff1f5;
}
:root:not([data-theme="light"]) .hl-keyword.hl-other.hl-special-method {
 color: #8fa1b3;
}
:root:not([data-theme="light"]) .hl-storage {
 color: #b48ead;
}
:root:not([data-theme="light"]) .hl-support.hl-function {
 color: #96b5b4;
}
:root:not([data-theme="light"]) .hl-string, :root:not([data-theme="light"]) .hl-constant.hl-other.hl-symbol, :root:not([data-theme="light"]) .hl-entity.hl-other.hl-inherited-class {
 color: #a3be8c;
}
:root:not([data-theme="light"]) .hl-constant.hl-numeric {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-none {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-none {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-constant {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-entity.hl-name.hl-tag {
 color: #bf616a;
}
:root:not([data-theme="light"]) .hl-entity.hl-other.hl-attribute-name {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-entity.hl-other.hl-attribute-name.hl-id, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-entity {
 color: #8fa1b3;
}
:root:not([data-theme="light"]) .hl-meta.hl-selector {
 color: #b48ead;
}
:root:not([data-theme="light"]) .hl-none {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-markup.hl-heading .hl-punctuation.hl-definition.hl-heading, :root:not([data-theme="light"]) .hl-entity.hl-name.hl-section {
 color: #8fa1b3;
}
:root:not([data-theme="light"]) .hl-keyword.hl-other.hl-unit {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-markup.hl-bold, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-bold {
 color: #ebcb8b;
font-weight: bold;
}
:root:not([data-theme="light"]) .hl-markup.hl-italic, :root:not([data-theme="light"]) .hl-punctuation.hl-definition.hl-italic {
 color: #b48ead;
font-style: italic;
}
:root:not([data-theme="light"]) .hl-markup.hl-raw.hl-inline {
 color: #a3be8c;
}
:root:not([data-theme="light"]) .hl-string.hl-other.hl-link {
 color: #bf616a;
}
:root:not([data-theme="light"]) .hl-meta.hl-link {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-meta.hl-image {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-markup.hl-list {
 color: #bf616a;
}
:root:not([data-theme="light"]) .hl-markup.hl-quote {
 color: #d08770;
}
:root:not([data-theme="light"]) .hl-meta.hl-separator {
 color: #c0c5ce;
 background-color: #4f5b66;
}
:root:not([data-theme="light"]) .hl-markup.hl-inserted, :root:not([data-theme="light"]) .hl-markup.hl-inserted.hl-git_gutter {
 color: #a3be8c;
}
:root:not([data-theme="light"]) .hl-markup.hl-deleted, :root:not([data-theme="light"]) .hl-markup.hl-deleted.hl-git_gutter {
 color: #bf616a;
}
:root:not([data-theme="light"]) .hl-markup.hl-changed, :root:not([data-theme="light"]) .hl-markup.hl-changed.hl-git_gutter {
 color: #b48ead;
}
:root:not([data-theme="light"]) .hl-markup.hl-ignored, :root:not([data-theme="light"]) .hl-markup.hl-ignored.hl-git_gutter {
 color: #4f5b66;
}
:root:not([data-theme="light"]) .hl-markup.hl-untracked, :root:not([data-theme="light"]) .hl-markup.hl-untracked.hl-git_gutter {
 color: #4f5b66;
}
:root:not([data-theme="light"]) .hl-constant.hl-other.hl-color {
 color: #96b5b4;
}
:root:not([data-theme="light"]) .hl-string.hl-regexp {
 color: #96b5b4;
}
:root:not([data-theme="light"]) .hl-constant.hl-character.hl-escape {
 color: #96b5b4;
}
:root:not([data-theme="light"]) .hl-punctuation.hl-section.hl-embedded, :root:not([data-theme="light"]) .hl-variable.hl-interpolation {
 color: #ab7967;
}
:root:not([data-theme="light"]) .hl-invalid.hl-illegal {
 color: #2b303b;
 background-color: #bf616a;
}
:root:not([data-theme="light"]) .hl-markup.hl-deleted.hl-git_gutter {
 color: #f92672;
}
:root:not([data-theme="light"]) .hl-markup.hl-inserted.hl-git_gutter {
 color: #a6e22e;
}
:root:not([data-theme="light"]) .hl-markup.hl-changed.hl-git_gutter {
 color: #967efb;
}
:root:not([data-theme="light"]) .hl-markup.hl-ignored.hl-git_gutter {
 color: #565656;
}
:root:not([data-theme="light"]) .hl-markup.hl-untracked.hl-git_gutter {
 color: #565656;
}
}
