body[data-public] {
  --bg: #fff; --fg: #182332; --muted: #506173; --line: #cedbe5; --soft: #f1f6fa;
  --field: #fff; --bar: #bfceda; --accent: #126cb0; --link: #075c99; --common: #2c704d;
  --on-accent: #fff; --workspace-ground: #edf6fd;
  background: var(--workspace-ground);
  font-family: Inter, "Segoe UI", Arial, var(--jp);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-public] {
    --bg: #182433; --fg: #eaf2f8; --muted: #afbecd; --line: #3e5163; --soft: #223244;
    --field: #172332; --bar: #536a7d; --accent: #8acaff; --link: #92d0ff; --common: #8ed8a2;
    --on-accent: #102235; --workspace-ground: #0f1a26;
  }
}
:root[data-theme="dark"] body[data-public] {
  --bg: #182433; --fg: #eaf2f8; --muted: #afbecd; --line: #3e5163; --soft: #223244;
  --field: #172332; --bar: #536a7d; --accent: #8acaff; --link: #92d0ff; --common: #8ed8a2;
  --on-accent: #102235; --workspace-ground: #0f1a26;
}
[data-public] .wrap, .ws-header-inner { max-width: 1200px; padding-inline: clamp(14px, 3.6vw, 48px); }
.ws-header.top { display: block; padding: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.ws-header-inner { margin-inline: auto; display: flex; align-items: center; gap: clamp(1rem,3vw,2.6rem); min-height: 77px; }
.ws-brand { flex: none; font-size: clamp(1.55rem,3vw,2rem); font-weight: 750; letter-spacing: -.055em; text-decoration: none; color: var(--fg); }
.ws-brand span { font-size: .76em; margin-left: .12em; }
.ws-header .ws-tabs { align-self: stretch; padding: 0; align-items: stretch; justify-content: start; gap: clamp(.2rem,1vw,1rem); }
.ws-tabs a { display: inline-flex; gap: .45em; align-items: center; padding: .35rem .25rem .15rem; text-decoration: none; font-size: clamp(.88rem,1.3vw,1.05rem); font-weight: 600; white-space: nowrap; color: var(--fg); border-bottom: 3px solid transparent; }
.ws-tabs a[aria-current], .ws-tabs a:hover { color: var(--link); border-bottom-color: var(--accent); }
.ws-tabs svg { width: 1.12em; height: 1.12em; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ws-tools { margin-left: auto; display: flex; align-items: center; gap: clamp(.45rem,1vw,1rem); font-size: .83rem; }
.ws-tools > a, .ws-tools button, .ws-more summary { color: var(--muted); font: inherit; white-space: nowrap; }
.ws-tools > a { text-underline-offset: .22em; }
.ws-tools button, .ws-more summary { cursor: pointer; border: none; background: transparent; padding: .45rem 0; }
.ws-tools button:hover, .ws-more summary:hover { color: var(--link); }
.ws-more { position: relative; }
.ws-header .ws-more nav { position: absolute; z-index: 4; right: 0; display: grid; gap: .15rem; width: 12.5rem; max-width: 85vw; padding: .45rem; background: var(--bg); border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 8px 24px #142e4717; }
.ws-more nav a { padding: .4rem .65rem; color: var(--link); text-decoration: none; }
.ws-more nav a:hover { background: var(--soft); }
[data-public] #search { margin: clamp(1rem,2vw,1.65rem) 0; gap: .5rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--bg); box-shadow: 0 3px 12px #17385412; }
[data-public] .bar { order: -1; border: 1px solid transparent; border-radius: .5rem; background: var(--bg); }
[data-public] .bar:focus-within { border-color: var(--accent); }
[data-public] .bar input { min-height: 42px; font-size: 1.05rem; }
[data-public] #go { border-radius: .4rem; background: var(--bg); color: var(--link); }
[data-public] .inputs { align-items: center; }
[data-public] :is(.input-btn, .ws-theme) { display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; min-height: 40px; padding: .2rem .7rem; font: inherit; font-size: .9rem; background: var(--soft); color: var(--fg); border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; }
[data-public] .input-btn svg { width: 1.2rem; }
[data-public] .input-btn .bu { font-size: 1rem; }
[data-public] .input-btn.on { border-color: var(--accent); color: var(--link); }
[data-public] :where(a, button, summary, select):focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[data-public] main { margin-top: 1.4rem; }
[data-public] main.narrow { max-width: 760px; }
[data-public] .prose { background: var(--bg); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1.05rem,3vw,2rem); }
[data-public] .col-side, [data-public] .col-main { min-width: 0; }
@media (min-width: 801px) {
  [data-public] .cols:not(.single) { grid-template-columns: minmax(0,1fr) minmax(230px,27%); gap: 1.4rem; }
}
@media (max-width: 980px) {
  .ws-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding-top: .5rem; }
  .ws-header .ws-tabs { grid-column: 1 / -1; grid-row: 2; gap: 1.1rem; }
  .ws-tabs a { min-height: 42px; }
  .ws-tools { gap: .8rem; }
}
@media (max-width: 610px) {
  .ws-header-inner { grid-template-columns: auto 1fr; gap: .1rem .4rem; }
  .ws-tools { flex-wrap: wrap; justify-content: end; gap: .15rem .65rem; font-size: .76rem; }
  .ws-tools button, .ws-tools > a, .ws-more summary { padding: .3rem 0; }
  .ws-header .ws-tabs { justify-content: space-between; gap: .3rem; }
  [data-public] #search { flex-direction: column; align-items: stretch; padding: .4rem; }
  [data-public] .inputs { justify-content: flex-start; padding-top: .35rem; border-top: 1px solid var(--line); }
  [data-public] :is(.input-btn,.ws-theme) { min-height: 33px; padding: .2rem .55rem; font-size: .78rem; }
  [data-public] .bar input { padding-inline: .45rem; }
  [data-public] .bar select { max-width: 5.4rem; }
}
