:root {
  --sidebar-width: 240px;
  --page-gutter: clamp(24px, 3.1vw, 52px);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--canvas); }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 400 15px/1.55 var(--ui-font, Golos), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, a, select, summary { touch-action: manipulation; }
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-compact);
  min-height: var(--control-size);
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: transform var(--motion) ease-out, opacity var(--motion) ease-out;
}
button:hover { background: var(--surface2); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .48; cursor: default; }
button:disabled:hover { background: inherit; }
button.primary, .primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accentInk);
  font-weight: 600;
}
button.primary:hover { background: var(--accent); opacity: .9; }
button.secondary { background: transparent; }
button.danger, .danger { color: var(--danger); }
button.danger:hover { background: var(--dangerBg); border-color: var(--dangerBg); }
button.icon-button {
  width: var(--control-size);
  min-width: var(--control-size);
  height: var(--control-size);
  padding: 10px;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-size);
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.45;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[readonly], input:disabled, select:disabled { background: var(--canvas); }
input[type="checkbox"], input[type="radio"] {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0;
  padding: 0;
  accent-color: var(--accent);
}
input[type="range"] { padding-inline: 0; border: 0; accent-color: var(--accent); }
textarea { min-height: 100px; resize: vertical; }
label { color: var(--ink); font-size: 13px; }
small, .subtext { color: var(--muted); }
small { font-size: 12px; line-height: 1.55; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
h1 { margin-bottom: 8px; font: 630 clamp(26px, 2.3vw, 34px)/1.14 var(--brand-font), sans-serif; }
h2 { margin-bottom: 15px; font-size: 25px; }
h3 { margin-bottom: 10px; font-size: 19px; }
h4 { margin-bottom: 8px; font-size: 15px; }
p { color: var(--muted); }
code, pre { font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
svg.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 12px 16px; background: var(--surface); }
.skip-link:focus { top: 12px; }

.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar {
  --sidebar-inline-padding: 18px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  height: 100svh;
  padding: 30px var(--sidebar-inline-padding) 20px;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 42px; }
.mark { display: inline-flex; width: 30px; min-width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--ink); }
.mark svg, .mark img { display: block; width: 100%; height: 100%; }
.wordmark {
  color: var(--ink);
  font-family: var(--brand-font, Commissioner), sans-serif;
  font-size: 21px;
  font-weight: 630;
  letter-spacing: -.035em;
  line-height: 1.1;
  white-space: nowrap;
}
.wordmark .dot, .viewer-brand .dot { color: var(--brand-period); }
.nav { display: grid; gap: 6px; }
.nav-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.nav-button:hover { color: var(--ink); background: var(--surface); }
.nav-button[aria-current="page"] { color: var(--accent); background: var(--softAccent); border-inline-start-color: var(--accent); }
.sidebar-bottom { display: grid; gap: var(--space-compact); margin-top: auto; padding-top: var(--space-section); }
.sidebar-bottom button { justify-content: flex-start; background: transparent; font-size: 12px; }
.sidebar-bottom .subtext { margin: 0; padding: 4px 12px; font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.main { width:100%; max-width:1440px; min-width:0; margin-inline:auto; padding:35px var(--page-gutter) 25px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.topbar .subtext { max-width: 68ch; margin: 0; font-size: 13px; line-height: 1.6; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
[data-page] { min-width: 0; }
.review-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.review-note p { margin: 0; }
.review-note a { color: var(--muted); }

.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.segmented button { min-height: 38px; padding: 8px 12px; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"], .segmented button.active {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--accent);
}


















.kind-site { background: var(--softAccent); }
.kind-html { background: var(--surface2); }
.kind-pdf, .kind-text { color: var(--ink); }
.kind-audio, .kind-video { color: var(--accent); background: var(--softAccent); }
.kind-zip { color: var(--warning); background: var(--warningBg); }






















.open-material { padding: 9px 10px; border-color: transparent; color: var(--accent); background: transparent; font-size: 12px; }
.more-material { width: 38px; min-width: 38px; padding: 8px; border-color: transparent; background: transparent; }


















.empty { padding: 66px 25px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.empty h2, .empty h3 { margin-bottom: 10px; color: var(--ink); }
.empty p { max-width: 45ch; margin: 0 auto 20px; font-size: 14px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.settings-sections { display: grid; gap: 22px; min-width: 0; }
.settings-group { min-width: 0; padding: 24px 25px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.section-heading { margin-bottom: 14px; }
.section-heading h2, .section-heading h3 { margin-bottom: 8px; font-size: 19px; }
.section-heading p { max-width: 70ch; margin: 0; font-size: 13px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(150px, .85fr); align-items: start; gap: 12px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.form-row > label:not(.checkbox-label) { display: block; padding-top: 9px; font-weight: 500; }
.form-row label small { display: block; margin-top: 7px; color: var(--muted); font-weight: 400; }
.form-row > small { grid-column: 1 / -1; margin-top: -4px; }
.form-row .field { display: grid; gap: 7px; min-width: 0; }
.inline-fields { display: flex; align-items: center; gap: 9px; min-width: 0; }
.inline-fields > * { min-width: 0; }
.inline-fields input { flex: 1; }
.inline-fields select { width: auto; min-width: 84px; }
.settings-summary { position: sticky; top: 26px; min-width: 0; padding: 24px; border:1px solid var(--line); border-radius:12px; background: var(--surface2); }
.settings-summary h2, .settings-summary h3 { margin-bottom: 11px; font-size: 18px; }
.settings-summary p { font-size: 12px; line-height: 1.65; }
.lifecycle { display: grid; margin: 22px 0 0; }
.life-step { position: relative; padding: 4px 0 4px 23px; min-height: 36px; font-size: 12px; line-height: 1.55; }
.life-step::before { position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; content: ""; background: var(--surface2); }
.life-step strong, .life-step b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; font-weight: 600; }
.life-step small { display: block; font-size: 11px; color: var(--muted); }
.life-line { height: 22px; margin: 2px 0 2px 3px; border-left: 1px solid var(--field-line); }
.setting-actions { display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.callout { margin: 20px 0; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0; background: var(--softAccent); color: var(--ink); font-size: 13px; line-height: 1.65; }
.callout p { margin: 0; color: inherit; }
.callout.warning { border-color: var(--warning); background: var(--warningBg); }
.callout.danger { border-color: var(--danger); background: var(--dangerBg); }
.limits-table { min-width: 0; max-width: 100%; overflow-x: auto; }
.limits-table table { min-width: 600px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 25px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip strong { display: block; margin: 0 0 5px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.stat-strip small { display: block; font-size: 11px; }

.identity-hero { padding: 25px 0 35px; }
.brand-large { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 15px 0 24px; }
.brand-large .mark { width: 68px; height: 68px; min-width: 68px; }
.brand-large .wordmark { font-size: clamp(31px, 4vw, 62px); letter-spacing: -.035em; }
.identity-hero > p { max-width: 65ch; font-size: 14px; }
.logo-options, .font-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 30px; }
.logo-option, .font-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.logo-option[aria-pressed="true"], .font-option[aria-pressed="true"], .logo-option.active, .font-option.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.logo-option .mark { width: 52px; height: 52px; margin: 6px 0 24px; }
.logo-option strong, .font-option strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.logo-option small, .font-option small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; }
.font-option .wordmark { display: block; max-width: 100%; margin: 4px 0 24px; font-size: 25px; }
.identity-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.identity-sample { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 200px; padding: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.identity-sample .wordmark { font-size: clamp(24px, 2.4vw, 36px); }

.prose { max-width: 100%; min-width: 0; }
.prose > p, .prose > ul, .prose > ol { max-width: 86ch; }
.prose p, .prose li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose h2 { margin: 34px 0 16px; font-size: 24px; }
.prose h3 { margin: 26px 0 12px; font-size: 19px; }
.doc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.doc-toolbar button { font-size: 12px; }
.doc-toolbar button[aria-selected="true"], .doc-toolbar button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--softAccent); }
details { margin: 25px 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
summary { min-height: 44px; padding: 11px 0; color: var(--ink); font-size: 13px; line-height: 1.55; cursor: pointer; }
details[open] > summary { margin-bottom: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
th { padding: 13px 12px; border-bottom: 1px solid var(--field-line); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; vertical-align: bottom; }
td { padding: 17px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; vertical-align: top; }
td:first-child { color: var(--ink); }
td p { margin: 0; }
.diagram-shell { min-width: 0; padding: 22px; margin: 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
svg.diagram { display: block; width: 100%; height: auto; max-height: 500px; overflow: visible; }
svg.diagram-narrow, svg.diagram.narrow { display: none; }
.diagram-node rect { fill: var(--canvas); stroke: var(--line); stroke-width: 1; }
.diagram-node text { fill: var(--ink); font-family: var(--ui-font, Golos), sans-serif; font-size: 15px; }
.diagram-node .node-title { fill: var(--ink); font-weight: 600; }
.diagram-node .node-copy { fill: var(--muted); font-size: 12px; }
.diagram-node .node-number { fill: var(--accent); font-size: 11px; }
.diagram-edge { fill: none; stroke: var(--field-line); stroke-width: 1.5; }
.arrow-head { fill: var(--field-line); }

dialog.dialog {
  width: min(650px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-dialog);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--floating-shadow);
}
dialog.dialog::backdrop { background: var(--scrim); }
dialog.dialog.wide, dialog.dialog.preview-dialog { width: min(1000px, calc(100% - 40px)); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2, .dialog-head h3 { margin: 3px 0 6px; font-size: 23px; }
.dialog-head p { max-width: 60ch; margin: 0; font-size: 12px; }
.dialog-body { padding: 23px 26px; }
.dialog-body > p { font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 18px 26px 23px; border-top: 1px solid var(--line); background: var(--surface); }
.form-field { display: grid; gap: 8px; margin: 0 0 20px; min-width: 0; }
.form-field > label { font-size: 13px; font-weight: 500; }
.form-field small { font-size: 12px; }
.manifest { max-height: 240px; overflow: auto; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.manifest > div, .manifest > span, .manifest li { display: flex; justify-content: space-between; gap: 20px; min-width: 0; padding: 3px 0; overflow-wrap: anywhere; }
.manifest .excluded { color: var(--muted); }
.error { margin: 9px 0 15px; padding: 12px 14px; border-radius: 7px; background: var(--dangerBg); color: var(--danger); font-size: 12px; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; background: var(--surface2); color: var(--muted); font-size: 11px; line-height: 1.4; white-space: nowrap; }
.pill.warning { background: var(--warningBg); color: var(--warning); }
.pill.danger { background: var(--dangerBg); color: var(--danger); }
.toast { position: fixed; z-index: 150; bottom: 24px; left: 50%; width: max-content; max-width: min(640px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: var(--floating-shadow); font-size: 12px; line-height: 1.55; transform: translateX(-50%); }
.preview-artifact { min-width: 0; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.preview-toolbar p { margin: 0; font-size: 12px; }
.preview-toolbar .segmented { margin-left: auto; }
.preview-stage { display: grid; align-items: center; justify-items: center; min-width: 0; min-height: 340px; padding: 28px; border-radius: 10px; background: var(--canvas); }
.preview-stage > * { min-width: 0; max-width: 100%; }
.file-preview { width: 100%; max-width: 760px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.file-preview h2 { font-size: 27px; }
.file-preview p { max-width: 65ch; font-size: 14px; }
.file-preview img, .file-preview audio, .file-preview video, .preview-stage img, .preview-stage audio, .preview-stage video { display: block; width: 100%; max-width: 100%; height: auto; }
.file-preview audio, .preview-stage audio { min-height: 48px; }
.site-tree { margin: 20px 0; padding: 18px; max-width: 100%; overflow: auto; border-radius: 8px; color: var(--muted); background: var(--canvas); font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 1650px) {
  .main { padding-top:42px; }




}

@media (max-width: 1180px) {
  :root { --sidebar-width: 228px; --page-gutter: 27px; }
  .sidebar { --sidebar-inline-padding: 16px; }
  .brand { gap: 8px; }
  .brand .mark { width: 26px; min-width: 26px; height: 26px; }
  .brand .wordmark { font-size: 18px; }










  .settings-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .settings-group { padding: 21px 20px 5px; }
  .settings-summary { padding: 20px; }
  .form-row { gap: 10px 18px; grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr); }
  .font-option .wordmark { font-size: 21px; }
}

@media (max-width: 1020px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-summary { position: static; grid-row:1; }
  .settings-summary .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .settings-summary .life-line { display: none; }
  .logo-options, .font-options { gap: 12px; }
  .logo-option, .font-option { padding: 18px; }
  .font-option .wordmark { font-size: 18px; }
}

@media (max-width: 880px) and (min-width: 761px) {
  :root { --sidebar-width: 208px; --page-gutter: 22px; }
  .sidebar { --sidebar-inline-padding: 12px; }
  .brand .wordmark { font-size: 17px; }
  .brand .mark { width: 24px; min-width: 24px; height: 24px; }
  .nav-button { padding-inline: 11px; font-size: 12px; }
















}

@media (max-width: 760px) {
  :root { --page-gutter: 20px; }
  .shell { display: block; min-height: 100svh; }
  .sidebar { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 15px; width: 100%; height: auto; padding: 18px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { flex: 1; gap: 9px; margin: 0; }
  .brand .mark { width: 28px; min-width: 28px; height: 28px; }
  .brand .wordmark { font-size: 21px; }
  .sidebar-bottom { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
  .sidebar-bottom button { justify-content: center; min-width: 44px; padding: 10px; }
  .sidebar-bottom .button-label, .sidebar-bottom .subtext { display: none; }
  .nav { order: 3; display: flex; flex-basis: 100%; gap: 23px; max-width: 100%; overflow-x: auto; padding-bottom: 1px; scrollbar-width: thin; }
  .nav-button { flex: 0 0 auto; width: auto; min-height: 46px; padding: 10px 0 12px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; font-size: 12px; white-space: nowrap; }
  .nav-button[aria-current="page"] { background: transparent; border-bottom-color: var(--accent); }
  .nav-button:focus-visible { outline-offset: -3px; }
  .nav-button .icon { display: none; }
  .main { padding: 26px var(--page-gutter) 22px; }
  .topbar { gap: 18px; margin-bottom: 25px; }
  .topbar h1 { font-size: 27px; }
  .topbar .subtext { font-size: 12px; }
  .top-actions { gap: 7px; }
  .top-actions button { padding-inline: 11px; font-size: 12px; }
  .segmented button { min-height: 44px; padding: 9px 10px; }






























  .settings-sections { gap: 17px; }
  .settings-group { padding: 22px 20px 5px; }
  .settings-summary { padding: 22px; }
  .section-heading h2, .section-heading h3 { font-size: 18px; }
  .section-heading p { font-size: 12px; }
  .form-row { grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr); padding: 18px 0; }
  .form-row > label { font-size: 13px; }
  .settings-summary .lifecycle { display: grid; grid-template-columns: 1fr; gap: 0; }
  .settings-summary .life-line { display: block; }
  .stat-strip { gap: 18px; margin: 20px 0; }
  .stat-strip strong { font-size: 17px; }
  .logo-options, .font-options { grid-template-columns: 1fr; gap: 12px; }
  .logo-option { display: grid; grid-template-columns: 54px 1fr; gap: 4px 20px; padding: 19px; }
  .logo-option .mark { grid-column: 1; grid-row: 1 / 3; width: 45px; height: 45px; margin: 0; }
  .logo-option strong { grid-column: 2; margin: 3px 0 4px; }
  .logo-option small { grid-column: 2; }
  .font-option { padding: 20px; }
  .font-option .wordmark { font-size: 29px; margin-bottom: 17px; }
  .identity-samples { grid-template-columns: 1fr; gap: 14px; }
  .identity-sample { min-height: 160px; padding: 24px; }
  .identity-sample .wordmark { font-size: 28px; }
  .identity-hero { padding: 8px 0 20px; }
  .brand-large { gap: 16px; margin: 12px 0 20px; }
  .brand-large .mark { width: 46px; min-width: 46px; height: 46px; }
  .brand-large .wordmark { font-size: clamp(29px, 6.9vw, 42px); }
  .identity-hero > p { font-size: 13px; }
  .prose p, .prose li { font-size: 13px; }
  .prose h2 { font-size: 23px; }
  .doc-toolbar { gap: 7px; }
  .doc-toolbar button { min-height: 44px; font-size: 11px; padding: 9px 11px; }
  .diagram-shell { padding: 15px 8px; margin-inline: -5px; }
  svg.diagram-wide, svg.diagram.wide { display: none; }
  svg.diagram-narrow, svg.diagram.narrow { display: block; max-height: none; }
  .diagram-node text, .diagram-node .node-title { font-size: 16px; }
  .diagram-node .node-copy { font-size: 14px; }
  .diagram-node .node-number { font-size: 12px; }
  .dialog-head { padding: 21px 21px 17px; gap: 15px; }
  .dialog-head h2, .dialog-head h3 { font-size: 22px; }
  .dialog-body { padding: 21px; }
  .dialog-actions { padding: 16px 21px 21px; }
  dialog.dialog { max-height: calc(100svh - 32px); }
  dialog.dialog.wide, dialog.dialog.preview-dialog { width: calc(100% - 24px); }
  .preview-stage { min-height: 290px; padding: 18px; }
  .preview-toolbar { gap: 12px; }
  .preview-toolbar .segmented { margin-left: 0; }
  .file-preview { padding: 22px 20px; }
  .file-preview h2 { font-size: 25px; }
  .file-preview p { font-size: 13px; }
  .review-note { gap: 10px; flex-wrap: wrap; font-size: 10px; }
}

@media (max-width: 480px) {
  :root { --page-gutter: 17px; }
  .sidebar { padding: 16px 17px 0; gap: 13px; }
  .brand .wordmark { font-size: 19px; }
  .brand .mark { width: 25px; min-width: 25px; height: 25px; }
  .brand { gap: 8px; }
  .nav { gap: 22px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .topbar > div:first-child { flex: 1 1 190px; min-width: 0; overflow-wrap: anywhere; }
  .topbar h1 { font-size: 25px; }
  .topbar .subtext { max-width: 28ch; }
  .top-actions button { padding-inline: 10px; font-size: 12px; }
  .top-actions .icon { width: 17px; height: 17px; flex-basis: 17px; }




























  .settings-group { padding: 22px 18px 4px; }
  .form-row { grid-template-columns: 1fr; gap: 11px; }
  .form-row > label:not(.checkbox-label) { padding-top: 0; }
  .form-row > small { margin-top: -2px; }
  .form-row input, .form-row select { font-size: 14px; }
  .setting-actions { display: grid; grid-template-columns: 1fr; }
  .setting-actions button { width: 100%; }
  .stat-strip { grid-template-columns: 1fr; gap: 17px; }
  .stat-strip > * { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
  .stat-strip strong { margin-bottom: 0; }
  .callout { font-size: 12px; padding: 15px 16px; }
  .dialog-head h2 { font-size: 21px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .dialog-actions button { width: 100%; }
  .preview-stage { padding: 13px; }
  .preview-toolbar { align-items: flex-start; }
  .preview-toolbar button { font-size: 11px; }
  .file-preview { padding: 20px 17px; }
  .brand-large .wordmark { font-size: 29px; }
  .brand-large .mark { width: 39px; min-width: 39px; height: 39px; }
  .brand-large { gap: 13px; }
}

@media (max-width: 360px) {
  .topbar { flex-direction: column; }
  .topbar > div:first-child { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  button:active:not(:disabled) { transform: none; }
}

/* Preference controls and product-only navigation. */
.sidebar-top { display:flex; align-items:center; gap:8px; margin-bottom:36px; }
.sidebar-top .brand { margin:0; flex:1; }
.sidebar-footer-row { display:none; }
.brand-standalone { display:none; }
.nav-label { min-width:0; }
:root[data-sidebar="collapsed"] { --sidebar-width:80px; }
:root[data-sidebar="collapsed"] .sidebar { padding-inline:14px; }
:root[data-sidebar="collapsed"] .sidebar-top { flex-direction:column; gap:16px; }
:root[data-sidebar="collapsed"] .brand-lockup { display:none; }
:root[data-sidebar="collapsed"] .brand-standalone { display:flex; margin:0; }
:root[data-sidebar="collapsed"] .nav-label,
:root[data-sidebar="collapsed"] .sidebar-bottom .button-label { display:none; }
:root[data-sidebar="collapsed"] .nav-button { justify-content:center; padding:11px; }
:root[data-sidebar="collapsed"] .sidebar-bottom button { justify-content:center; padding:11px; }
:root[data-sidebar="collapsed"] .sidebar-bottom .select-control { width:48px; }
:root[data-sidebar="collapsed"] .sidebar-bottom .select-trigger { width:48px; padding:10px 8px; justify-content:center; }
:root[data-sidebar="collapsed"] .sidebar-bottom .select-chevron { display:none; }
.sidebar-bottom .select-trigger { background:transparent; font-size:12px; }
.sidebar-bottom .language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.select-control { position:relative; min-width:0; width:100%; }
.enhanced-select { position:absolute!important; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; opacity:0; pointer-events:none; clip-path:inset(50%); }
.select-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:46px; padding:11px 14px; gap:18px; border:1px solid var(--field-line); border-radius:10px; background:var(--surface); text-align:left; font-size:14px; font-weight:400; }
.select-value { min-width:0; overflow-wrap:anywhere; }
.select-chevron { display:block; width:8px; min-width:8px; height:8px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); margin-right:3px; }
.select-trigger[aria-expanded="true"] .select-chevron { transform:translateY(2px) rotate(225deg); }
.select-trigger[aria-invalid="true"] { border-color:var(--danger); }
.select-help { display:block; margin-top:9px; line-height:1.6; font-size:12px; color:var(--muted); }
.select-popover { position:fixed; z-index:500; padding:6px; overflow:auto; border:1px solid var(--field-line); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:var(--floating-shadow); overscroll-behavior:contain; }
.select-option { display:flex; flex-direction:column; align-items:flex-start; width:100%; min-height:44px; gap:5px; padding:11px 12px; border:0; border-radius:8px; background:transparent; text-align:left; font-weight:400; }
.select-option[aria-selected="true"] { background:var(--softAccent); color:var(--accent); }
.select-option:hover { background:var(--surface2); }
.select-option small { display:block; font-size:11px; font-weight:400; line-height:1.55; color:var(--muted); }
.select-option:focus-visible { outline-offset:-2px; }
.inline-fields .select-control { width:110px; min-width:95px; }










.storage-readout { margin:0 0 20px; padding:15px 0; border-bottom:1px solid var(--line); font-size:12px; color:var(--muted); }
.preview-thumbnail { object-fit:cover!important; width:100%; height:100%; border-radius:inherit; }


.review-container { max-width:1180px; padding:32px clamp(20px,5vw,60px); margin:auto; }
.review-header { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:32px; flex-wrap:wrap; }
.review-brand-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.brand-example { display:flex; align-items:center; justify-content:center; min-height:180px; border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:25px; }
.brand-example .mark { width:60px; height:60px; }
.artifact-shell { max-width:1000px; padding:30px clamp(18px,5vw,60px); margin:auto; }
.artifact-header { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.artifact-preferences { display:flex; align-items:center; gap:10px; }
.artifact-preferences .select-control { width:150px; }


@media(max-width:760px) {
  .sidebar-top { margin:0;flex:1; }
  .sidebar-bottom { gap:4px; }
  .sidebar-bottom .select-control { width:56px!important; }
  .sidebar-bottom .select-trigger { width:56px!important; min-height:44px; padding:8px; font-size:11px; gap:5px; }
  .sidebar-bottom .select-chevron { display:none; }
  :root[data-sidebar="collapsed"] .sidebar { padding-inline:20px; }
  :root[data-sidebar="collapsed"] .sidebar-top { flex-direction:row; }
  :root[data-sidebar="collapsed"] .brand-lockup { display:flex; }
  :root[data-sidebar="collapsed"] .brand-standalone { display:none; }
  :root[data-sidebar="collapsed"] .nav-label { display:inline; }
  :root[data-sidebar="collapsed"] .nav-button { padding:10px 0 12px; }








  .review-brand-grid { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .sidebar { padding-inline:12px;gap:8px; }
  .sidebar-top .brand .wordmark { font-size:17px; }
  .sidebar-top .brand .mark { width:22px;min-width:22px; }
  .sidebar-bottom button { min-width:38px;padding:8px; }
  .sidebar-bottom .select-control,.sidebar-bottom .select-trigger { width:38px!important; }








}
#language-select-trigger::before, #viewer-language-trigger::before, .theme-glyph {
  content:"";
  flex:none;
  width:20px;
  height:20px;
  background:currentColor;
  mask:url("language.svg") center / contain no-repeat;
}
.theme-glyph { mask-image:url("theme-icon.svg"); }
#language-select-trigger, #viewer-language-trigger { gap:8px; border-radius:var(--radius-control); }
#language-select-trigger .select-value, #viewer-language-trigger .select-value { flex:1; }
:root[data-sidebar="collapsed"] #language-select-trigger .select-value {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
@media(max-width:760px) {
  #language-select-trigger .select-value {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
}
@media(forced-colors:active) {
  #language-select-trigger::before, #viewer-language-trigger::before, .theme-glyph { background:ButtonText; forced-color-adjust:none; }
}
@media(min-width:761px) {
  :root[data-surface="owner"] .sidebar-top { min-height:var(--control-size); margin-bottom:var(--space-section); }
  :root[data-surface="owner"] .brand-lockup { min-height:var(--control-size); }
  :root[data-surface="owner"][data-sidebar="collapsed"] .brand-standalone {
    display:grid;
    place-items:center;
    width:var(--control-size);
    height:var(--control-size);
  }
  :root[data-surface="owner"] .sidebar-footer-row {
    display:grid;
    grid-template-columns:var(--control-size) minmax(0,1fr) var(--control-size);
    align-items:center;
    min-height:var(--control-size);
  }
  :root[data-surface="owner"][data-sidebar="expanded"] .sidebar-footer-row {
    margin-inline:calc(-1 * var(--sidebar-inline-padding));
  }
  .sidebar-footer-row #instance-name {
    grid-column:2;
    padding:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  :root[data-surface="owner"] #sidebar-toggle {
    display:grid;
    place-content:center;
    grid-column:3;
    width:var(--control-size);
    height:var(--control-size);
    padding:0;
    border:0;
    background:transparent;
    color:var(--muted);
  }
  :root[data-sidebar="collapsed"] .sidebar-footer-row { grid-template-columns:minmax(0,1fr); }
  :root[data-sidebar="collapsed"] .sidebar-footer-row #instance-name { display:none; }
  :root[data-sidebar="collapsed"] .sidebar-footer-row #sidebar-toggle { grid-column:1; justify-self:center; }
  :root[data-surface="owner"] #sidebar-toggle:hover { color:var(--ink); background:var(--surface2); }
  #sidebar-toggle > svg { display:block; width:16px; height:16px; }
  #sidebar-toggle:focus-visible { outline-offset:-3px; }
  #sidebar-toggle:active { transform:none; }
}
@media(min-width:761px) and (max-height:599px) {
  :root[data-surface="owner"] .sidebar { padding-block:12px 8px; }
  :root[data-surface="owner"] .sidebar-top { margin-bottom:var(--space-element); }
  :root[data-surface="owner"] .nav { gap:4px; }
  :root[data-surface="owner"] .sidebar-bottom { gap:4px; padding-top:var(--space-compact); }
}
@media(min-width:761px) and (max-height:499px) {
  :root[data-surface="owner"] .sidebar { position:relative; height:auto; min-height:100svh; }
  :root[data-surface="owner"] .capacity-panel {
    position:fixed;
    inset-block-end:var(--space-element);
    inset-inline-start:calc(var(--sidebar-width) + var(--space-compact));
  }
}
.preview-material { min-width:44px; min-height:44px; padding:9px; border-color:transparent; background:transparent; color:var(--accent); }




#sidebar-toggle[aria-expanded="false"] .sidebar-direction { transform:scaleX(-1); transform-box:fill-box; transform-origin:center; }

/* Icon actions share one visual centre and one touch target in every layout. */
.icon-button { display:inline-grid; place-items:center; flex:none; }
.icon-button > svg { display:block; flex:none; margin:0; }








dialog.dialog:has(.account-identity) { width:min(400px,calc(100% - 32px)); }
.account-identity { margin:0; }
.account-identity:focus { outline:none; }
.account-identity dt { color:var(--muted); font-size:13px; }
.account-identity dd { margin:4px 0 0; overflow-wrap:anywhere; }
.ui-tooltip {
  position:fixed;
  z-index:1000;
  width:max-content;
  max-width:min(280px,calc(100vw - 24px));
  padding:8px 11px;
  border-radius:7px;
  background:var(--ink);
  color:var(--canvas);
  box-shadow:var(--floating-shadow);
  font-size:12px;
  font-weight:400;
  line-height:1.45;
  text-align:center;
  overflow-wrap:anywhere;
}
.ui-tooltip::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 8px;
}
.ui-tooltip[data-placement="above"]::before { top: 100%; }
.ui-tooltip[data-placement="below"]::before { bottom: 100%; }

@media(max-width:760px) {


  .sidebar-bottom button:not(.select-trigger) { display:grid; place-items:center; width:44px; min-width:44px; height:44px; padding:0; }
  .sidebar-bottom button > svg { display:block; margin:0; }
  .sidebar-bottom .select-control,.sidebar-bottom .select-trigger { width:44px!important; min-width:44px; }
}


@font-face { font-family:Golos; src:url('/static/fonts/golostext.ttf') format('truetype'); font-weight:100 900; font-display:swap; }
@font-face { font-family:Commissioner; src:url('/static/fonts/commissioner.ttf') format('truetype'); font-weight:100 900; font-display:swap; }
[data-icon] { display:inline-flex; align-items:center; justify-content:center; flex:none; }
[data-icon] > svg { display:block; }
.login-panel { max-width:430px; margin:8vh auto; }
.login-panel form { display:grid; gap:18px; margin-top:28px; }
.login-panel h2 { font-size:24px; }
.login-panel .primary { width:100%; }
.form-field { margin-bottom:20px; }
.form-field > label { display:block; margin-bottom:8px; font-weight:500; }
.form-field > small { display:block; margin-top:8px; }
.form-field input[type='checkbox'] { vertical-align:middle; margin-right:8px; }
#dialog form { margin:0; }
.upload-progress { width:100%; height:8px; accent-color:var(--accent); }
.upload-status { margin:12px 0; font-size:13px; }
.preview-frame { display:block; width:100%; height:min(68svh,720px); border:1px solid var(--line); border-radius:8px; background:white; }
.token-list { display:grid; gap:0; margin-top:24px; }
.token-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 0; border-top:1px solid var(--line); }
.token-row strong { display:block; overflow-wrap:anywhere; }
.token-row p { font-size:12px; margin:5px 0 0; }
.secret { width:100%; min-height:88px; font-family:ui-monospace,monospace; }
.pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-block:24px; font-size:12px; color:var(--muted); }
.storage-stat { font-size:12px; color:var(--muted); margin:0 0 20px; }
.manifest { max-height:220px; overflow:auto; padding:14px; background:var(--canvas); border-radius:8px; font:12px/1.8 ui-monospace,monospace; }
.checkbox-label, .form-row > .checkbox-label { display:flex; align-items:center; gap:12px; min-height:44px; padding:0; cursor:pointer; grid-column:1 / -1; }
.checkbox-label span { min-width:0; line-height:1.6; }
.checkbox-label input[type="checkbox"] { appearance:none; -webkit-appearance:none; display:grid; place-content:center; flex:0 0 20px; width:20px; height:20px; min-height:20px; margin:0; border:1.5px solid var(--field-line); border-radius:6px; background:var(--surface); cursor:pointer; }
.checkbox-label input[type="checkbox"]::before { content:""; width:9px; height:5px; border-left:2px solid var(--accentInk); border-bottom:2px solid var(--accentInk); transform:translateY(-1px) rotate(-45deg) scale(0); }
.checkbox-label input[type="checkbox"]:checked { background:var(--accent); border-color:var(--accent); }
.checkbox-label input[type="checkbox"]:checked::before { transform:translateY(-1px) rotate(-45deg) scale(1); }
@media (forced-colors: active) {
  .checkbox-label input[type="checkbox"] { appearance: auto; }
  .checkbox-label input[type="checkbox"]::before { content: none; }
  .nav-button[aria-current="page"],
  .segmented button[aria-pressed="true"],
  .segmented button[aria-selected="true"],
  .library-kinds button[aria-pressed="true"],
  .viewer-versions button[aria-pressed="true"],
  .statistics-periods button[aria-pressed="true"],
  .connection-provider-picker button[aria-pressed="true"] {
    border-color: Highlight;
  }
}
@media(max-width:480px) { .token-row { align-items:flex-start; } .login-panel { margin-top:4vh; } }
.dependency-report { margin:24px 0; padding-top:22px; border-top:1px solid var(--line); }
.dependency-report h3 { font-size:18px; }
.dependency-report h4 { margin-top:20px; }
.dependency-report p,.dependency-report li { font-size:12px; color:var(--muted); }
.dependency-report ul { max-height:180px; overflow:auto; margin:0; padding-left:22px; }
.dependency-report code { color:var(--ink); overflow-wrap:anywhere; }
.download-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 15px; border-radius:var(--radius-control); text-decoration:none; }

.connection-steps { display:grid; gap:20px; max-width:800px; padding:0; list-style:none; counter-reset:setup; }
.connection-steps > li { counter-increment:setup; position:relative; margin:0; padding:20px 20px 20px 60px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.connection-steps > li::before { content:counter(setup); position:absolute; left:20px; top:20px; width:26px; height:26px; display:grid; place-items:center; border-radius:8px; background:var(--softAccent); color:var(--accent); font-weight:600; }
.connection-steps h3 { margin:0 0 8px; font-size:17px; }
.connection-steps p { margin:8px 0; }
.connection-command { display:block; padding:12px; margin:10px 0; overflow-x:auto; border:1px solid var(--line); border-radius:8px; background:var(--canvas); color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.7 ui-monospace,monospace; }
.connection-copy { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 26px; }
@media(max-width:480px) { .connection-steps > li { padding:18px; padding-top:54px; } .connection-steps > li::before { left:18px; top:16px; } }

.settings-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 20px;
}
.settings-navigation-desktop { display: flex; flex-wrap: wrap; gap: 6px; }
.settings-navigation-mobile { display: none; }
.settings-navigation button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: start;
}
.settings-group[id] { scroll-margin-top: 20px; }
.settings-group[id]:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .settings-navigation-desktop { display: none; }
  .settings-navigation-mobile { display: block; width: 100%; }
  .settings-navigation-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; list-style: none; }
  .settings-navigation-mobile summary::-webkit-details-marker { display: none; }
  .settings-navigation-mobile summary::after { content: "+"; font-size: 18px; }
  .settings-navigation-mobile[open] summary::after { content: "−"; }
  .settings-navigation-mobile > div { display: grid; gap: 4px; padding-top: 6px; }
  .settings-navigation-mobile button { justify-content: flex-start; width: 100%; }
}
