:where(html) {
  background: var(--ui-page);
}

:where([data-ui="scroll"]) {
  overflow-x: auto;
}

:where([data-ui="badge"]) {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: .15rem .55rem;
  border: 1px solid var(--ui-accent);
  border-radius: 999px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  font-size: .72rem;
  font-weight: 800;
}

:where(.sr-only) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(body) {
  min-width: 20rem;
  color: var(--ui-ink);
  font-family: var(--ui-font);
}

:where(.standard-header, .standard-page) {
  width: min(100% - 2rem, var(--ui-content-width));
  margin-inline: auto;
}

:where(.standard-header) {
  padding-block: .85rem;
  border-bottom: 1px solid var(--ui-border);
  background: var(--pico-background-color);
}

:where(.standard-header nav) {
  margin-bottom: 0;
}

:where(.standard-header nav ul) {
  align-items: center;
  margin-bottom: 0;
}

:where(.standard-header a) {
  text-decoration: none;
}

:where(.standard-header a:hover) {
  text-decoration: underline;
  text-underline-offset: .2em;
}

:where(.standard-page) {
  padding-block: var(--ui-space-5);
}

:where(.standard-intro, .section-heading, .detail-heading) {
  margin-bottom: var(--ui-space-5);
}

:where(.standard-intro) {
  max-width: 52rem;
  padding-block: var(--ui-space-3) var(--ui-space-2);
}

:where(.standard-intro h1) {
  max-width: 46rem;
  margin-block: .5rem 1rem;
  color: var(--ui-ink);
  font-size: 2.7rem;
  line-height: 1.12;
  letter-spacing: 0;
}

:where(.eyebrow) {
  margin-bottom: var(--ui-space-1);
  color: var(--pico-primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:where(.lead) {
  max-width: 48rem;
  color: var(--ui-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

:where(.section-heading) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ui-space-3);
  border-bottom: 1px solid var(--ui-border);
}

:where(.section-heading h2) {
  margin-bottom: .8rem;
  color: var(--ui-ink);
  font-size: 1.55rem;
  letter-spacing: 0;
}

:where(.section-heading p) {
  margin-bottom: .8rem;
  color: var(--ui-muted);
  font-size: .9rem;
}

:where(.catalog-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

:where([data-ui="catalog-item"], [data-ui="surface"], [data-ui="notice"], [data-ui="example"], [data-ui="reference"]) {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: 0 1px 2px rgb(24 50 71 / 5%);
}

:where([data-ui="catalog-item"] h2) {
  margin-bottom: .55rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

:where([data-ui="catalog-item"] h2 a) {
  color: var(--ui-ink);
  text-decoration: none;
}

:where([data-ui="catalog-item"] h2 a:hover) {
  color: var(--ui-accent);
  text-decoration: underline;
  text-underline-offset: .18em;
}

:where([data-ui="catalog-item"] p) {
  min-height: 3.2rem;
  margin-bottom: .85rem;
  color: var(--ui-muted);
  font-size: .92rem;
  line-height: 1.55;
}

:where([data-ui="catalog-item"] small) {
  display: inline-block;
  padding: .2rem .45rem;
  border-radius: .25rem;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

:where([data-ui="status"]) {
  display: block;
  margin-top: .7rem;
  color: var(--ui-muted);
  font-size: .85rem;
}

:where([data-ui="copy-example"]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-space-3);
  padding: .85rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-page);
}

:where([data-ui="copy-example"] code) {
  overflow-wrap: anywhere;
}

:where([data-ui="menu"]) {
  max-width: 18rem;
  padding: .7rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}

:where([data-ui="menu"] summary) {
  cursor: pointer;
  font-weight: 700;
}

:where([data-ui="menu"] ul) {
  margin: .75rem 0 0;
  padding-left: 1.1rem;
}

:where([data-ui="tabs"]) {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: var(--ui-space-3);
  border-bottom: 1px solid var(--ui-border);
}

:where([data-ui="tabs"] a) {
  padding: .55rem .8rem;
  color: var(--ui-muted);
  text-decoration: none;
}

:where([data-ui="tabs"] a[aria-current="page"]) {
  border-bottom: 2px solid var(--ui-accent);
  color: var(--ui-accent);
  font-weight: 700;
}

:where([data-ui="pagination"]) {
  display: flex;
  align-items: center;
  gap: .75rem;
}

:where([data-ui="pagination"] span) {
  display: grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-accent);
  color: white;
}

:where([data-ui="tree"]), :where([data-ui="timeline"]) {
  margin: 0;
  padding-left: 1.2rem;
}

:where([data-ui="tree"] ul) {
  margin-top: .45rem;
}

:where([data-ui="notice"]) {
  border-left: .25rem solid var(--ui-accent);
}

:where([data-ui="notice"][data-tone="warning"]) {
  border-left-color: #b56b00;
}

:where([data-ui="progress"]) {
  max-width: 28rem;
}

:where([data-ui="empty-state"]) {
  text-align: center;
}

:where([data-ui="timeline"] li) {
  display: grid;
  gap: .2rem;
  padding: .7rem 0 .7rem 1rem;
  border-left: 2px solid var(--ui-border);
}

:where([data-ui="timeline"] small) {
  color: var(--ui-muted);
}

:where([data-ui="chat"]) {
  display: grid;
  gap: var(--ui-space-3);
  max-width: 34rem;
}

:where([data-ui="chat"] article) {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: .75rem .75rem .75rem .2rem;
  background: var(--ui-page);
}

:where([data-ui="chart"]) {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-page);
}

:where([data-ui="chart"] figcaption) {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

:where([data-ui="chart"] figcaption small) {
  color: var(--ui-muted);
}

:where(.chart-bars) {
  display: flex;
  align-items: end;
  gap: .5rem;
  height: 7rem;
  padding: .5rem;
  border-bottom: 1px solid var(--ui-border);
}

:where(.chart-bars i) {
  flex: 1;
  min-width: 1rem;
  border-radius: .25rem .25rem 0 0;
  background: var(--ui-accent);
}

:where(.chart-bars i:nth-child(1)) { height: 42%; }
:where(.chart-bars i:nth-child(2)) { height: 68%; }
:where(.chart-bars i:nth-child(3)) { height: 55%; }
:where(.chart-bars i:nth-child(4)) { height: 82%; }
:where(.chart-bars i:nth-child(5)) { height: 74%; }

:where([data-ui="example"], [data-ui="reference"]) {
  margin-block: var(--ui-space-4);
}

:where([data-ui="example"] form, [data-ui="example"] nav, [data-ui="example"] table, [data-ui="example"] figure) {
  margin-bottom: 0;
}

:where([data-ui="media"] div[role="img"]) {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border: 1px dashed var(--ui-border);
  color: var(--ui-muted);
}

/* 정적 편집기 예제의 공통 표면과 키보드 입력 영역을 정의합니다. */
:where(.static-editor) {
  display: grid;
  gap: .7rem;
  max-width: 56rem;
  padding: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-page);
}

:where(.editor-toolbar) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

:where(.editor-toolbar button) {
  min-height: 2.1rem;
  padding: .35rem .6rem;
  border: 1px solid var(--ui-border);
  border-radius: .35rem;
  background: var(--ui-page);
  color: var(--ui-text);
  cursor: pointer;
}

:where(.editor-toolbar button:hover, .editor-toolbar button:focus-visible) {
  border-color: var(--ui-accent);
}

:where(.editor-toolbar label) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .85rem;
  color: var(--ui-muted);
}

:where(.rich-editor, .code-editor-body) {
  min-height: 12rem;
  border: 1px solid var(--ui-border);
  border-radius: .35rem;
  background: var(--ui-surface);
}

:where(.rich-editor) {
  min-height: 12rem;
  padding: .85rem;
  outline: 0;
}

:where(.rich-editor:focus) {
  outline: 3px solid color-mix(in srgb, var(--ui-accent) 35%, transparent);
  outline-offset: 2px;
}

:where(.code-editor-body) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
}

:where(.editor-gutter, .editor-highlight, .code-editor-body textarea) {
  box-sizing: border-box;
  min-height: 12rem;
  margin: 0;
  padding: .75rem;
  border: 0;
  border-radius: 0;
  font: .9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

:where(.editor-gutter) {
  min-width: 3rem;
  padding-inline: .6rem;
  border-right: 1px solid var(--ui-border);
  color: var(--ui-muted);
  text-align: right;
  user-select: none;
}

:where(.code-editor-surface) {
  display: grid;
  position: relative;
  min-width: 0;
}

:where(.editor-highlight, .code-editor-body textarea) {
  grid-area: 1 / 1;
  width: 100%;
  overflow: auto;
}

:where(.editor-highlight) {
  pointer-events: none;
  color: var(--ui-text);
}

:where(.code-editor-body textarea) {
  resize: vertical;
  background: transparent;
  color: transparent;
  caret-color: var(--ui-text);
}

:where(.code-editor-body textarea:focus) {
  outline: 3px solid color-mix(in srgb, var(--ui-accent) 35%, transparent);
  outline-offset: -3px;
}

:where(.editor-token-keyword) { color: var(--ui-accent); font-weight: 700; }
:where(.editor-token-comment) { color: var(--ui-muted); font-style: italic; }
:where(.editor-token-string) { color: #287a4b; }
:where(.editor-status) { color: var(--ui-muted); font-size: .85rem; }
:where(.token-input) { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .35rem; border: 1px solid var(--ui-border); border-radius: .35rem; }
:where(.token-input input) { flex: 1; min-width: 10rem; margin: 0; border: 0; box-shadow: none; }
:where(.token-list) { display: flex; flex-wrap: wrap; gap: .35rem; }
:where(.input-chip) { padding: .25rem .5rem; border: 1px solid var(--ui-border); border-radius: 999px; background: color-mix(in srgb, var(--ui-accent) 12%, transparent); color: var(--ui-text); cursor: pointer; }
:where(.upload-list, .chat-messages) { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
:where(.upload-list li, .chat-messages article) { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--ui-border); border-radius: .35rem; background: var(--ui-surface); }
:where(.upload-list progress) { width: min(12rem, 35%); }
:where(.chat-messages article) { display: block; }
:where(.chat-messages p) { margin: .25rem 0 0; }
:where(.chat-composer-actions) { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

:where([data-choice-input]) { position: relative; display: grid; gap: .35rem; }
:where([data-choice-input] select) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:where([data-choice-list]) { position: absolute; z-index: 10; inset-block-start: calc(100% + .25rem); inset-inline: 0; display: grid; gap: .15rem; max-height: 14rem; margin: 0; padding: .35rem; overflow: auto; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); box-shadow: 0 .8rem 1.8rem rgb(24 50 71 / 12%); list-style: none; }
:where([data-choice-list][hidden]) { display: none; }
:where([data-choice-list] [role="option"]) { padding: .45rem .6rem; border-radius: .3rem; cursor: pointer; }
:where([data-choice-list] [role="option"]:hover, [data-choice-list] [data-active]) { background: var(--ui-accent-soft); color: var(--ui-accent); }

:where(.standard-context-menu, .standard-popover) { position: relative; display: inline-block; }
:where([data-context-menu], [data-popover-panel]) { position: absolute; z-index: 20; inset-block-start: calc(100% + .35rem); inset-inline-start: 0; min-width: 12rem; padding: .5rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); box-shadow: 0 .9rem 2rem rgb(24 50 71 / 14%); }
:where([data-context-menu]) { display: grid; gap: .25rem; }
:where([data-context-menu][hidden], [data-popover-panel][hidden]) { display: none; }
:where(.standard-toast-stack) { position: relative; display: grid; gap: .5rem; max-width: 24rem; margin-top: .75rem; }
:where(.standard-toast-stack article) { margin: 0; padding: .65rem .8rem; border: 1px solid var(--ui-border); border-left: .25rem solid var(--ui-accent); border-radius: var(--ui-radius); background: var(--ui-page); }

:where([data-standard-component="data-grid"], [data-query-builder], [data-standard-component="infinite-list"]) { display: grid; gap: .75rem; }
:where([data-standard-component="data-grid"] th button) { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: left; }
:where([data-query-row]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .5rem; align-items: end; margin: 0 0 .5rem; }
:where([data-standard-component="inline-edit"]) { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

:where(.standard-comparison) { position: relative; display: grid; min-height: 14rem; overflow: hidden; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); }
:where(.comparison-before, .comparison-after) { grid-area: 1 / 1; display: grid; place-items: center; min-height: 14rem; color: #fff; }
:where(.comparison-before) { background: linear-gradient(135deg, #17493f, #2e8a72); }
:where(.comparison-after) { clip-path: inset(0 0 0 var(--comparison-value)); background: linear-gradient(135deg, #8a4a12, #da8b35); }
:where(.standard-comparison input) { position: absolute; z-index: 2; inset-inline: 1rem; inset-block-end: 1rem; width: calc(100% - 2rem); }
:where(.standard-qr) { display: grid; grid-template-columns: repeat(7, .9rem); gap: .12rem; width: max-content; padding: .75rem; border: .35rem solid #fff; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-border); }
:where(.standard-qr span) { aspect-ratio: 1; background: #fff; }
:where(.standard-qr span[data-dark="true"]) { background: #111827; }
:where(.standard-zoom) { display: grid; gap: .5rem; }
:where(.zoom-toolbar) { display: flex; gap: .35rem; }
:where(.zoom-viewport) { height: 18rem; overflow: auto; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); }
:where(.zoom-viewport [data-zoom-content]) { width: max-content; min-width: 100%; transition: transform .16s ease; }

:where(.standard-progress-ring) { display: inline-grid; width: 5rem; aspect-ratio: 1; place-items: center; }
:where(.standard-progress-ring svg, .standard-progress-ring span) { grid-area: 1 / 1; }
:where(.standard-progress-ring svg) { width: 100%; transform: rotate(-90deg); }
:where(.standard-progress-ring circle) { fill: none; stroke-width: 8; }
:where(.standard-progress-ring .ring-track) { stroke: var(--ui-border); }
:where(.standard-progress-ring .ring-value) { stroke: var(--ui-accent); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: calc(264 - (264 * var(--ring-value) / 100)); }
:where(.standard-stepper) { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; padding: 0; list-style: none; }
:where(.standard-stepper li) { padding: .7rem; border-top: 3px solid var(--ui-border); color: var(--ui-muted); }
:where(.standard-stepper li[aria-current="step"]) { border-color: var(--ui-accent); color: var(--ui-accent); font-weight: 800; }
:where(.standard-chat-status) { display: inline-flex; gap: .4rem; align-items: center; color: var(--ui-muted); }
:where(.standard-chat-status span) { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ui-accent); }
:where(dialog[data-standard-component="drawer"]) { width: min(28rem, calc(100vw - 2rem)); height: 100vh; max-height: 100vh; margin: 0 0 0 auto; border-radius: var(--ui-radius) 0 0 var(--ui-radius); }
:where(dialog[data-standard-component="drawer"][data-placement="start"]) { margin: 0 auto 0 0; border-radius: 0 var(--ui-radius) var(--ui-radius) 0; }
:where([data-dialog-shell]) { margin: 0; padding: 0; border: 0; box-shadow: none; }
:where([data-dialog-shell] > header, [data-dialog-shell] > footer) { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .8rem 1rem; border-block-end: 1px solid var(--ui-border); }
:where([data-dialog-shell] > section) { padding: 1rem; }
:where([data-dialog-shell] > footer) { justify-content: flex-end; border-block-start: 1px solid var(--ui-border); border-block-end: 0; }
:where([data-dialog-shell] form) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin: 0; }

:where(.standard-diff) { display: grid; gap: .15rem; min-width: 0; margin: 0; padding: .85rem; overflow: auto; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); font: .9rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
:where(.standard-diff ins, .standard-diff del, .standard-diff span) { display: block; padding-inline: .35rem; text-decoration: none; }
:where(.standard-diff ins) { background: color-mix(in srgb, #167d5b 16%, transparent); }
:where(.standard-diff del) { background: color-mix(in srgb, #b42318 14%, transparent); }

:where([data-standard-component="pagination"]) { display: inline-flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
:where([data-standard-component="pagination"] a) { display: grid; min-width: 2.2rem; min-height: 2.2rem; place-items: center; border: 1px solid var(--ui-border); border-radius: 999px; text-decoration: none; }
:where([data-standard-component="pagination"] a[aria-current="page"]) { border-color: var(--ui-accent); background: var(--ui-accent); color: #fff; font-weight: 800; }
:where([data-standard-component="app-navigation"]) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); }
:where([data-nav-panel]) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
:where([data-nav-panel] a[aria-current="page"]) { color: var(--ui-accent); font-weight: 800; }
:where([data-standard-menu]) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); }
:where([data-standard-menu] ul) { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; padding: 0; list-style: none; }
:where([data-standard-menu] li) { position: relative; }
:where([data-standard-menu] button, [data-standard-menu] a) { width: auto; margin: 0; padding: .35rem .55rem; border: 0; border-radius: .3rem; background: transparent; color: var(--ui-text); text-decoration: none; }
:where([data-standard-menu] button[aria-expanded="true"], [data-standard-menu] a:hover, [data-standard-menu] button:hover) { background: var(--ui-accent-soft); color: var(--ui-accent); }
:where([data-standard-menu] li > ul) { position: absolute; z-index: 20; inset-block-start: calc(100% + .3rem); inset-inline-start: 0; display: grid; min-width: 12rem; padding: .35rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); box-shadow: 0 .9rem 2rem rgb(24 50 71 / 14%); }
:where([data-standard-menu] li > ul[hidden]) { display: none; }
:where([data-standard-menu][data-mode="mega"]) { position: relative; }
:where([data-standard-menu][data-mode="mega"] > ul > li) { position: static; }
:where([data-standard-menu][data-mode="mega"] > ul > li > ul) { inset-inline: 0; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); width: 100%; min-width: 0; padding: 1rem; }
:where([data-mega-menu]) { position: relative; display: inline-block; width: 100%; }
:where([data-mega-trigger]) { width: auto; margin: 0; }
:where([data-mega-panel]) { position: absolute; z-index: 20; inset-block-start: calc(100% + .5rem); inset-inline: 0; padding: 1rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); box-shadow: 0 1rem 2.4rem rgb(24 50 71 / 16%); }
:where([data-mega-panel][hidden]) { display: none; }
:where([data-mega-panel] section) { min-width: 0; }
:where([data-mega-panel] a) { text-decoration: none; }

:where(.standard-split-view) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; width: 100%; }
:where(.standard-resizable-pane) { display: grid; grid-template-columns: var(--pane-size, 45%) .55rem minmax(0, 1fr); gap: 0; width: 100%; min-height: 12rem; overflow: hidden; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
:where(.standard-resizable-pane > section) { min-width: 0; margin: 0; border: 0; border-radius: 0; overflow: auto; }
:where([data-pane-handle]) { cursor: col-resize; background: var(--ui-border); }
:where([data-pane-handle]:focus-visible) { outline: 3px solid color-mix(in srgb, var(--ui-accent) 35%, transparent); outline-offset: 0; background: var(--ui-accent); }
:where(.standard-page-shell) { display: grid; grid-template: "header header header" auto "nav main aside" minmax(12rem, 1fr) "footer footer footer" auto / minmax(10rem, .8fr) minmax(0, 1.6fr) minmax(10rem, .8fr); overflow: hidden; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); }
:where(.standard-page-shell > header) { grid-area: header; }
:where(.standard-page-shell > nav) { grid-area: nav; }
:where(.standard-page-shell > main) { grid-area: main; }
:where(.standard-page-shell > aside) { grid-area: aside; }
:where(.standard-page-shell > footer) { grid-area: footer; }
:where(.standard-page-shell > *) { min-width: 0; padding: .85rem; border: 1px solid var(--ui-border); border-width: 0 1px 1px 0; }
:where(.standard-virtual-list) { max-height: 16rem; overflow: auto; padding: .5rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-page); }
:where(.standard-virtual-list ul) { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
:where(.standard-virtual-list li) { padding: .55rem .65rem; border: 1px solid var(--ui-border); border-radius: .3rem; background: var(--ui-surface); }

@media (max-width: 48rem) {
  :where(.standard-header nav ul:last-child) {
    gap: .65rem;
  }

  :where(.standard-intro h1) {
    font-size: 2rem;
  }

  :where(.section-heading) {
    display: block;
  }

  :where(.standard-page) {
    padding-block: var(--ui-space-4);
  }

  :where(.standard-split-view, .standard-resizable-pane, .standard-page-shell) {
    display: grid;
    grid-template-columns: 1fr;
  }

  :where([data-pane-handle]) {
    min-height: .55rem;
    cursor: row-resize;
  }
}
