* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--surface-canvas);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: var(--type-body);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #57534e;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 200;
    left: 1rem;
    top: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-control);
    background: var(--surface-inverse);
    color: var(--text-inverse);
    transform: translateY(-200%);
    transition: transform var(--motion-interface);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    width: 17rem;
    flex-direction: column;
    border-right: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
    background: color-mix(in srgb, var(--surface-panel), transparent 10%);
    backdrop-filter: blur(18px);
}

.sidebar-top {
    display: flex;
    min-height: 5.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--text-strong);
    font-size: 0.875rem;
    font-weight: 650;
}

.brand-copy span {
    margin-top: 0.2rem;
    color: var(--text-subtle);
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
}

.version-badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1;
}

.version-badge {
    padding: 0.35rem 0.55rem;
    background: var(--surface-muted);
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.nav-group + .nav-group {
    margin-top: 1.6rem;
}

.nav-label {
    margin: 0 0 0.45rem;
    padding: 0 0.75rem;
    color: var(--text-subtle);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-control);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background var(--motion-interface), color var(--motion-interface);
}

.nav-link:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.nav-link.is-active {
    background: var(--surface-muted);
    color: var(--text-strong);
    font-weight: 600;
}

.nav-link svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sidebar-footer {
    padding: 0.75rem;
}

.sidebar-footer > p {
    margin: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.6875rem;
    line-height: 1.5;
}

.theme-button {
    display: flex;
    width: 100%;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.theme-button:hover {
    color: var(--text-strong);
}

.theme-button-icon,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-button-icon svg,
.icon-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

.main {
    margin-left: 17rem;
}

.section {
    width: min(100%, 78rem);
    margin: 0 auto;
    padding: 6rem 3.5rem;
    scroll-margin-top: 1rem;
}

.section + .section {
    border-top: 1px solid color-mix(in srgb, var(--border-subtle), transparent 30%);
}

.hero {
    min-height: 100vh;
    padding-top: 7.5rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.25rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-kantoku);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-kantoku), transparent 88%);
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 4rem;
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.95fr);
}

.hero h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(3.3rem, 6vw, 5.6rem);
    font-weight: 620;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.hero h1 span {
    color: var(--text-subtle);
}

.hero-lede {
    max-width: 38rem;
    margin: 2rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: var(--control-height);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    transition: background var(--motion-interface), border-color var(--motion-interface), color var(--motion-interface), opacity var(--motion-interface);
}

.button-primary {
    border-color: var(--surface-inverse);
    background: var(--surface-inverse);
    color: var(--text-inverse);
}

.button-primary:hover {
    opacity: 0.86;
}

.button-secondary {
    border-color: var(--border-subtle);
    background: var(--surface-panel);
    color: var(--text-body);
}

.button-secondary:hover {
    border-color: var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text-strong);
}

.button-quiet {
    background: transparent;
    color: var(--text-muted);
}

.button-quiet:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.button-danger {
    background: #991b1b;
    color: #fff;
}

.button-danger:hover {
    background: #7f1d1d;
}

.button-danger-outline {
    border-color: color-mix(in srgb, var(--status-danger-text), transparent 58%);
    background: var(--surface-panel);
    color: var(--status-danger-text);
}

.button-danger-outline:hover {
    border-color: color-mix(in srgb, var(--status-danger-text), transparent 35%);
    background: var(--status-danger-surface);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.button-inverse {
    background: #fff;
    color: #1c1917;
}

.button-inverse:hover {
    background: #f5f5f4;
}

.button-ghost {
    border-color: #57534e;
    color: #e7e5e4;
}

.button-ghost:hover {
    background: #44403c;
    color: #fff;
}

.hero-composition {
    position: relative;
}

.hero-composition::before {
    position: absolute;
    inset: -12% -5% auto auto;
    width: 17rem;
    height: 17rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--border-subtle), transparent 60%);
    content: "";
    filter: blur(60px);
}

.composition-window {
    position: relative;
    display: grid;
    min-height: 25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
    border-radius: 1.5rem;
    background: var(--surface-panel);
    box-shadow: 0 30px 80px rgb(28 25 23 / 0.12);
    grid-template-columns: 3.5rem 7.75rem 1fr;
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}

[data-theme="dark"] .composition-window {
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.24);
}

.composition-rail {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 0.7rem;
    border-right: 1px solid var(--border-subtle);
}

.mini-logo {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 3.5rem;
    place-items: center;
    border-radius: 0.55rem;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.6rem;
    font-weight: 700;
}

.rail-item {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    background: var(--surface-muted);
}

.rail-item.is-active {
    background: var(--border-strong);
}

.composition-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.5rem 0.75rem;
    background: var(--surface-subtle);
}

.composition-nav strong {
    margin-bottom: 1rem;
    color: var(--text-strong);
    font-size: 0.82rem;
}

.composition-kicker {
    color: var(--text-subtle);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.composition-nav-item {
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
}

.composition-nav-item.is-active {
    background: var(--surface-panel);
    color: var(--text-strong);
    font-weight: 600;
}

.composition-main {
    background: var(--surface-canvas);
}

.composition-topbar {
    height: 3.6rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-panel);
}

.composition-content {
    padding: 1.5rem;
}

.composition-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.composition-heading span:first-child {
    width: 5rem;
    height: 0.65rem;
    border-radius: 1rem;
    background: var(--text-strong);
}

.composition-heading span:last-child {
    width: 3.5rem;
    height: 1.35rem;
    border-radius: 0.45rem;
    background: var(--surface-inverse);
}

.composition-card {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.composition-card-head,
.composition-row {
    display: grid;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    grid-template-columns: 1.2fr 0.8fr auto;
}

.composition-card-head {
    border-bottom: 1px solid var(--border-subtle);
}

.composition-card-head span,
.composition-card-head i,
.composition-row > span {
    height: 0.4rem;
    border-radius: 1rem;
    background: var(--surface-muted);
}

.composition-card-head span {
    width: 4.5rem;
    background: var(--border-strong);
}

.composition-card-head i {
    grid-column: 3;
    width: 1.5rem;
}

.composition-row + .composition-row {
    border-top: 1px solid color-mix(in srgb, var(--border-subtle), transparent 30%);
}

.composition-row > span:nth-child(1) {
    width: 75%;
}

.composition-row > span:nth-child(2) {
    width: 60%;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: var(--badge-height);
    padding: 0.25rem 0.55rem;
    border-radius: var(--badge-radius);
    font-size: var(--badge-font-size);
    font-style: normal;
    font-weight: var(--badge-font-weight);
    line-height: 1;
    white-space: nowrap;
}

.badge.success { background: var(--status-success-surface); color: var(--status-success-text); }
.badge.danger { background: var(--status-danger-surface); color: var(--status-danger-text); }
.badge.warning { background: var(--status-warning-surface); color: var(--status-warning-text); }
.badge.info { background: var(--status-info-surface); color: var(--status-info-text); }
.badge.special { background: var(--status-special-surface); color: var(--status-special-text); }
.badge.neutral { background: var(--status-neutral-surface); color: var(--status-neutral-text); }
.badge.high { background: var(--severity-high-surface); color: var(--severity-high-text); }

.composition-row .badge {
    min-height: 1.2rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.45rem;
}

.principle-grid {
    display: grid;
    gap: 1rem;
    margin-top: 7rem;
    grid-template-columns: repeat(3, 1fr);
}

.principle-card {
    min-height: 14rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-strong);
}

.principle-number {
    color: var(--text-subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
}

.principle-card h2 {
    margin: 3rem 0 0.55rem;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 650;
}

.principle-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.section-heading {
    display: grid;
    align-items: end;
    gap: 3rem;
    margin-bottom: 3rem;
    grid-template-columns: 1fr minmax(18rem, 0.65fr);
}

.section-index {
    margin: 0 0 0.65rem;
    color: var(--text-subtle);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.adoption-panel h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 620;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.section-heading > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.subsection {
    padding: 1.5rem;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.subsection + .subsection {
    margin-top: 1rem;
}

.subsection-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.subsection-heading.compact {
    min-height: 4.6rem;
}

.subsection-heading h3,
.specimen-toolbar,
.pattern-copy h3,
.checklist-grid h3,
.dialog-header h2 {
    color: var(--text-strong);
}

.subsection-heading h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
}

.subsection-heading p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.status-chip {
    padding: 0.35rem 0.6rem;
}

.status-chip.canonical {
    background: var(--status-success-surface);
    color: var(--status-success-text);
}

.status-chip.reference {
    background: var(--status-info-surface);
    color: var(--status-info-text);
}

.status-chip.candidate {
    background: var(--status-warning-surface);
    color: var(--status-warning-text);
}

.color-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, 1fr);
}

.color-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
}

.swatch {
    height: 6.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border-subtle), transparent 35%);
}

.swatch.canvas { background: #f6f6f4; }
.swatch.panel { background: #fff; }
.swatch.strong { background: #1c1917; }
.swatch.muted { background: #78716c; }
.swatch.border { background: #dedbd7; }
.swatch.inverse { background: #292524; }

.color-card > div:last-child {
    display: grid;
    padding: 0.8rem;
    gap: 0.15rem;
}

.color-card strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.color-card code,
.type-row code,
.radius-row code,
.status-example code {
    color: var(--text-muted);
    font-size: 0.625rem;
}

.color-card span {
    margin-top: 0.35rem;
    color: var(--text-subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.6rem;
}

.accent-subsection {
    margin-top: 1rem;
}

.accent-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, 1fr);
}

.accent-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
}

.accent-preview {
    display: flex;
    min-height: 7rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.accent-card.blue .accent-preview { background: var(--accent-blue-surface); color: var(--accent-blue-text); }
.accent-card.violet .accent-preview { background: var(--accent-violet-surface); color: var(--accent-violet-text); }
.accent-card.teal .accent-preview { background: var(--accent-teal-surface); color: var(--accent-teal-text); }

.accent-preview > span {
    font-size: 0.75rem;
    font-weight: 650;
}

.accent-preview > i {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: var(--radius-control);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    opacity: 0.65;
}

.accent-card > div:last-child {
    display: flex;
    min-height: 6.5rem;
    flex-direction: column;
    padding: 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--border-subtle), transparent 35%);
}

.accent-card strong {
    color: var(--text-strong);
    font-size: 0.78rem;
}

.accent-card code {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.625rem;
}

.accent-card > div:last-child span {
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.65rem;
}

.accent-boundary {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-navigation);
    background: var(--surface-subtle);
    grid-template-columns: repeat(3, 1fr);
}

.accent-boundary > div {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.accent-boundary p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.accent-boundary strong {
    color: var(--text-strong);
}

.boundary-dot {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.2rem;
    flex: none;
    border-radius: 50%;
}

.boundary-dot.blue { background: var(--accent-blue-text); }
.boundary-dot.semantic { background: var(--status-success-text); box-shadow: 0.7rem 0 0 var(--status-warning-text), 1.4rem 0 0 var(--status-danger-text); margin-right: 1.4rem; }
.boundary-dot.brand { background: var(--brand-kantoku); }

.foundation-split {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: 1fr 1fr;
}

.type-specimens {
    display: grid;
    gap: 0;
}

.type-row {
    display: grid;
    padding: 1.05rem 0;
    border-top: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
    gap: 0.4rem;
}

.type-row > span {
    color: var(--text-subtle);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.type-row strong {
    color: var(--text-strong);
    font-weight: 600;
}

.type-row.page-title strong { font-size: var(--type-page-title); letter-spacing: -0.02em; }
.type-row.section-title strong { font-size: var(--type-section-title); }
.type-row.body-type strong { font-size: var(--type-body); font-weight: 400; }
.type-row.label-type strong { font-size: var(--type-label); font-weight: 500; }
.type-row.metadata-type strong { color: var(--text-muted); font-size: var(--type-metadata); font-weight: 400; }

.radius-list {
    border-top: 1px solid var(--border-subtle);
}

.radius-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border-subtle), transparent 20%);
}

.radius-demo {
    display: block;
    width: 3.25rem;
    height: 2.5rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-muted);
}

.radius-demo.control { border-radius: var(--radius-control); }
.radius-demo.navigation { border-radius: var(--radius-navigation); }
.radius-demo.panel { border-radius: var(--radius-panel); }
.radius-demo.modal { border-radius: var(--radius-modal); }

.radius-row > div {
    display: flex;
    flex-direction: column;
}

.radius-row strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.metric-strip {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.metric-strip div {
    display: flex;
    min-height: 4.25rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-control);
    background: var(--surface-subtle);
}

.metric-strip strong {
    color: var(--text-strong);
    font-size: 1rem;
}

.metric-strip span {
    color: var(--text-subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.56rem;
}

.specimen-card {
    overflow: visible;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.specimen-toolbar {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 600;
}

.specimen-canvas {
    padding: 3rem;
    background-image: radial-gradient(color-mix(in srgb, var(--border-subtle), transparent 35%) 0.7px, transparent 0.7px);
    background-size: 16px 16px;
}

.buttons-canvas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.page-header-specimen {
    margin-top: 1.5rem;
}

.page-header-canvas {
    display: grid;
    gap: 1px;
    background: var(--border-subtle);
}

.header-example {
    padding: 1.5rem;
    background: var(--surface-canvas);
}

.header-example-label {
    margin: 0 0 1.25rem;
    color: var(--text-subtle);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-header-demo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.page-header-copy {
    min-width: 0;
}

.demo-breadcrumb {
    display: block;
    margin-bottom: 1.25rem;
    overflow: hidden;
    color: var(--text-subtle);
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header-copy h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.125rem;
    line-height: var(--leading-tight);
}

.page-header-copy p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.page-header-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
}

.page-header-actions svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.75;
}

.header-rules-grid {
    display: grid;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: repeat(4, 1fr);
}

.header-rules-grid > div {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem;
}

.header-rules-grid > div + div {
    border-left: 1px solid var(--border-subtle);
}

.header-rules-grid strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.header-rules-grid span {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.pattern-reference-link {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.pattern-reference-link a {
    color: var(--text-body);
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
}

.pattern-reference-link a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.spinner {
    width: 0.8rem;
    height: 0.8rem;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.anatomy-grid {
    display: grid;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: repeat(3, 1fr);
}

.anatomy-grid div {
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem;
}

.anatomy-grid div + div {
    border-left: 1px solid var(--border-subtle);
}

.anatomy-grid strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.anatomy-grid span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.code-sample {
    border-top: 1px solid var(--border-subtle);
    background: #1c1917;
    color: #d6d3d1;
}

.code-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #44403c;
    color: #a8a29e;
    font-size: 0.65rem;
}

.code-heading button {
    padding: 0.3rem 0.5rem;
    border: 0;
    border-radius: 0.35rem;
    background: #292524;
    color: #d6d3d1;
    cursor: pointer;
    font-size: 0.65rem;
}

.code-sample pre {
    margin: 0;
    overflow-x: auto;
    padding: 1.25rem;
    font-size: 0.72rem;
    line-height: 1.65;
}

.form-canvas {
    display: grid;
    gap: 1.5rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 0.375rem;
    color: var(--text-body);
    font-size: var(--type-label);
    font-weight: 550;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    outline: 0;
    background: var(--surface-panel);
    color: var(--text-strong);
    font-size: 0.8125rem;
    transition: border-color var(--motion-interface), box-shadow var(--motion-interface);
}

.field input,
.field select {
    height: var(--control-height);
}

.field textarea {
    min-height: 6.5rem;
    padding-block: 0.65rem;
    line-height: 1.5;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-subtle), transparent 45%);
}

.field input:disabled {
    background: var(--surface-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

.field-help,
.field-message {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.field-error input {
    border-color: #b91c1c;
}

.field-message {
    color: #b91c1c;
}

.select-specimen {
    margin-bottom: 1rem;
}

.select-variant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.select-variant-card {
    min-width: 0;
    padding: 1.25rem;
}

.select-variant-card + .select-variant-card {
    border-left: 1px solid var(--border-subtle);
}

.select-variant-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.select-variant-heading > div > span,
.action-section-meta > span,
.navigation-state-heading > span {
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.select-variant-heading h3 {
    margin: 0.2rem 0 0;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.select-variant-card > p {
    min-height: 2.6rem;
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.55;
}

.select-demo-canvas {
    min-height: 21rem;
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-canvas);
}

.select-demo {
    max-width: 26rem;
    margin: 0 auto;
}

.select-trigger {
    display: flex;
    width: 100%;
    height: var(--control-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
    color: var(--text-strong);
    cursor: pointer;
    font-size: 0.8125rem;
    text-align: left;
}

.select-trigger svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform var(--motion-interface);
}

.select-demo.is-open .select-trigger svg {
    transform: rotate(180deg);
}

.select-menu {
    margin-top: 0.45rem;
    overflow: hidden;
    padding: 0.4rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
}

.select-search {
    position: relative;
    margin-bottom: 0.35rem;
}

.select-search svg {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--text-subtle);
    stroke-linecap: round;
    stroke-width: 1.7;
    transform: translateY(-50%);
}

.select-search input {
    height: var(--control-height);
    padding-left: 2.25rem;
    border-radius: calc(var(--radius-control) - 0.125rem);
}

.select-menu ul {
    max-height: 14rem;
    margin: 0;
    overflow-y: auto;
    padding: 0;
    list-style: none;
}

.select-menu [role="option"] {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.7rem;
    border-radius: calc(var(--radius-control) - 0.125rem);
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.75rem;
}

.select-menu [role="option"]:hover,
.select-menu [role="option"]:focus,
.select-menu [role="option"].is-focused {
    outline: 0;
    background: var(--surface-muted);
    color: var(--text-strong);
}

.select-menu [role="option"][aria-selected="true"] {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.select-menu [role="option"] > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.select-menu [role="option"] strong {
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-menu [role="option"] small {
    margin-top: 0.1rem;
    color: var(--text-muted);
    font-size: 0.64rem;
}

.select-check {
    color: var(--text-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.select-empty {
    margin: 0;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
}

.select-variant-card > ul {
    margin: 1rem 0 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.select-variant-card > ul li + li {
    margin-top: 0.3rem;
}

.form-section-specimen {
    margin-top: 1rem;
}

.form-section-canvas {
    padding: 2rem;
    background: var(--surface-canvas);
}

.form-section-card {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.form-section-header {
    padding: 1.25rem;
}

.form-section-header > div,
.form-section-body,
.form-section-actions {
    max-width: var(--form-content-max-width);
}

.form-section-header > div {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.form-section-header h3,
.form-subsection-heading h4 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.85rem;
}

.form-section-header p,
.form-subsection-heading p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.form-section-body {
    padding: 0 1.25rem 1.25rem;
}

.form-section-grid {
    display: grid;
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section-span {
    grid-column: 1 / -1;
}

.form-subsection {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.form-option-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-option {
    display: flex;
    min-height: 4.75rem;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    cursor: pointer;
}

.form-option:hover {
    border-color: var(--border-strong);
    background: var(--surface-subtle);
}

.form-option > input {
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--surface-inverse);
}

.form-option > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.form-option strong {
    color: var(--text-strong);
    font-size: 0.75rem;
    font-weight: 600;
}

.form-option small {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.form-section-actions {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin: 0 1.25rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.form-section-actions > div {
    display: flex;
    gap: 0.65rem;
    margin-left: auto;
}

.form-section-actions [data-form-save] {
    min-width: 7rem;
}

.form-save-status {
    color: var(--status-success-text);
    font-size: 0.72rem;
    font-weight: 600;
}

.form-section-rules code {
    font-size: 0.62rem;
}

.notification-canvas {
    padding: 2rem;
}

.notification-stack {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-banner {
    display: grid;
    min-height: 6.25rem;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, currentColor, transparent 72%);
    border-radius: var(--radius-control);
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-banner.success {
    background: var(--status-success-surface);
    color: var(--status-success-text);
}

.notification-banner.info {
    background: var(--status-info-surface);
    color: var(--status-info-text);
}

.notification-banner.warning {
    background: var(--status-warning-surface);
    color: var(--status-warning-text);
}

.notification-banner.danger {
    background: var(--status-danger-surface);
    color: var(--status-danger-text);
}

.notification-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.notification-copy h3 {
    margin: 0;
    color: currentColor;
    font-size: 0.8125rem;
    font-weight: 700;
}

.notification-copy p {
    margin: 0.3rem 0 0;
    color: currentColor;
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.9;
}

.notification-copy a {
    color: currentColor;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.notification-banner > button {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.notification-banner > button:hover {
    background: color-mix(in srgb, currentColor, transparent 88%);
}

.notification-banner > button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.transient-guidance-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transient-card {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.transient-card-heading {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.transient-card-heading > div > span {
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.transient-card-heading h3 {
    margin: 0.2rem 0 0;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.transient-summary {
    min-height: 5.75rem;
    margin: 0;
    padding: 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.toast-preview,
.tooltip-preview {
    display: flex;
    min-height: 9rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-block: 1px solid var(--border-subtle);
    background: var(--surface-canvas);
}

.toast-reference {
    display: grid;
    width: min(100%, 21rem);
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--status-success-text);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
    color: var(--text-body);
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.toast-reference > svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--status-success-text);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.toast-reference > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.toast-reference strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.toast-reference span {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.toast-reference > span {
    color: var(--text-subtle);
    font-size: 1rem;
}

.tooltip-demo {
    position: relative;
    display: flex;
    justify-content: center;
}

.tooltip-demo > button {
    display: inline-flex;
    width: var(--control-height);
    height: var(--control-height);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
    color: var(--text-body);
    cursor: help;
    font-size: 0.8125rem;
    font-weight: 700;
}

.tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 0.65rem);
    width: max-content;
    max-width: 15rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.375rem;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.6875rem;
    line-height: 1.35;
    text-align: center;
}

.tooltip-bubble::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border: 0.3rem solid transparent;
    border-top-color: var(--surface-inverse);
    content: "";
    transform: translateX(-50%);
}

.transient-rules {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 1.25rem 1.25rem 1.25rem 2.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.transient-doc-link {
    display: block;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-body);
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
}

.transient-doc-link:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.status-canvas {
    display: grid;
    gap: 0;
    padding-block: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.status-example {
    display: grid;
    min-height: 7.5rem;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    grid-template-columns: 6.5rem 1fr;
}

.status-example:nth-child(odd) {
    border-right: 1px solid var(--border-subtle);
}

.status-example:nth-child(n+3) {
    border-top: 1px solid var(--border-subtle);
}

.status-example > div {
    display: flex;
    flex-direction: column;
}

.status-example strong {
    color: var(--text-strong);
    font-size: 0.75rem;
}

.status-example > div span {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.usage-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.usage-callout svg {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-width: 1.7;
}

.usage-callout p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.usage-callout strong {
    color: var(--text-strong);
}

.usage-callout code {
    color: var(--text-strong);
    font-size: 0.68rem;
}

.status-guidance-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: 1.15fr 0.85fr;
}

.mapping-card {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.mapping-heading {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mapping-heading > div > span {
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mapping-heading h3 {
    margin: 0.2rem 0 0;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.mapping-heading > strong,
.mapping-heading > a {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
}

.mapping-heading > a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.mapping-list {
    padding: 0 1.25rem;
}

.mapping-list > div {
    display: grid;
    min-height: 4.2rem;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border-subtle), transparent 25%);
    grid-template-columns: 6.25rem 1fr;
}

.mapping-list > div:last-child {
    border-bottom: 0;
}

.mapping-list p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.risk-scale {
    display: grid;
    gap: 0.6rem;
    padding: 1.25rem;
}

.risk-scale > div {
    display: grid;
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: 5.25rem 1fr;
}

.risk-scale i {
    display: block;
    height: 0.35rem;
    border-radius: 999px;
}

.risk-scale > div:nth-child(1) i { width: 20%; background: var(--status-neutral-text); }
.risk-scale > div:nth-child(2) i { width: 40%; background: var(--status-success-text); }
.risk-scale > div:nth-child(3) i { width: 60%; background: var(--status-warning-text); }
.risk-scale > div:nth-child(4) i { width: 80%; background: var(--severity-high-text); }
.risk-scale > div:nth-child(5) i { width: 100%; background: var(--status-danger-text); }

.severity-note {
    margin: 0 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-navigation);
    background: var(--severity-high-surface);
    color: var(--severity-high-text);
}

.severity-note code {
    font-size: 0.62rem;
}

.severity-note p {
    margin: 0.45rem 0 0;
    font-size: 0.7rem;
}

.legacy-note {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.legacy-note span {
    color: var(--text-strong);
    font-size: 0.65rem;
    font-weight: 650;
}

.legacy-note p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.panel-demo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.panel-demo {
    padding: 1.25rem;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.demo-label span {
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
    background: var(--status-success-surface);
    color: var(--status-success-text);
    font-weight: 650;
}

.incorrect .demo-label span {
    background: var(--status-danger-surface);
    color: var(--status-danger-text);
}

.mini-canvas {
    min-height: 14rem;
    padding: 1.5rem;
    border-radius: var(--radius-navigation);
    background: #f6f6f4;
}

.mini-panel {
    height: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
}

.mini-panel-title {
    width: 6rem;
    height: 0.55rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: #292524;
}

.mini-nested {
    height: 3rem;
    border: 1px solid #dedbd7;
    border-radius: 0.6rem;
    background: #fff;
}

.mini-nested + .mini-nested {
    margin-top: 0.6rem;
}

.mini-nested.short {
    width: 72%;
}

.incorrect .mini-canvas {
    border: 1px solid #c7c3be;
    background: #fafaf9;
    box-shadow: inset 0 1px 3px rgb(28 25 23 / 0.12);
}

.incorrect .mini-panel {
    border: 2px solid #d6d3d1;
    border-radius: 1.5rem;
    box-shadow: 0 12px 24px rgb(28 25 23 / 0.16);
}

.incorrect .mini-nested {
    border-width: 2px;
    border-radius: 1rem;
    box-shadow: 0 5px 12px rgb(28 25 23 / 0.12);
}

.panel-demo > p {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.action-sections-specimen {
    margin-top: 1rem;
}

.action-sections-grid {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-canvas);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-section-example {
    min-width: 0;
}

.action-section-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
    padding-inline: 0.25rem;
}

.action-section-meta strong {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.action-panel {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.action-panel-heading {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.action-panel-heading h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.78rem;
}

.action-row {
    display: flex;
    min-height: 7rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem;
}

.action-row > div {
    min-width: 0;
}

.action-row strong {
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 600;
}

.action-row p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.action-row .button {
    min-width: max-content;
    flex: none;
}

.dialog-notice.danger {
    background: var(--status-danger-surface);
    color: var(--status-danger-text);
}

.modal-specimen {
    margin-top: 1rem;
}

.modal-canvas {
    min-height: 10rem;
}

.modal-canvas > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.modal-canvas p {
    max-width: 35rem;
    margin: 0;
    color: var(--text-muted);
}

.filter-canvas {
    position: relative;
    min-height: 15rem;
}

.filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-control {
    position: relative;
    width: min(24rem, 100%);
}

.search-control svg {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--text-subtle);
    stroke-linecap: round;
    stroke-width: 1.7;
    transform: translateY(-50%);
}

.search-control input {
    width: 100%;
    height: var(--control-height-compact);
    padding: 0 0.75rem 0 2.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    outline: 0;
    background: var(--surface-panel);
}

.filter-button,
.clear-button {
    display: inline-flex;
    min-height: var(--control-height-compact);
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.75rem;
    font-weight: 550;
}

.filter-button svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.filter-button > span {
    display: inline-flex;
    min-width: 1.15rem;
    height: 1.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.6rem;
}

.clear-button {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
}

.filter-popover {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.6rem);
    right: 0;
    width: min(24rem, calc(100vw - 5rem));
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
}

.filter-popover h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.85rem;
}

.filter-popover > p {
    margin: 0.2rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.popover-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.active-filters > span {
    color: var(--text-subtle);
    font-size: 0.65rem;
    font-weight: 600;
}

.active-filters button {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.68rem;
}

.active-filters b {
    margin-left: 0.3rem;
    color: var(--text-subtle);
    font-size: 0.85rem;
}

.pattern-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.navigation-shell-specimen {
    margin-bottom: 1rem;
}

.navigation-state-grid {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-canvas);
    grid-template-columns: 1.25fr 0.875fr 0.875fr;
}

.navigation-state-card {
    min-width: 0;
}

.navigation-state-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.navigation-state-heading strong {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.shell-preview {
    position: relative;
    display: grid;
    height: 17rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-canvas);
}

.shell-preview-expanded {
    grid-template-columns: 3rem 6.75rem 1fr;
}

.shell-preview-collapsed {
    grid-template-columns: 3rem 1fr;
}

.shell-preview-rail {
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    border-right: 1px solid var(--border-subtle);
    background: var(--surface-panel);
}

.shell-preview-logo {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.55rem;
    place-items: center;
    border-radius: 0.5rem;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.55rem;
    font-weight: 700;
}

.shell-rail-item {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: var(--text-muted);
}

.shell-rail-item svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.shell-rail-item.is-hovered,
.shell-sidebar-row.is-hovered {
    background: var(--navigation-item-hover-surface);
    color: var(--text-strong);
}

.shell-rail-item.is-active {
    background: var(--navigation-item-active-surface);
    color: var(--text-strong);
}

.shell-rail-item.is-disabled,
.shell-sidebar-row.is-disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.shell-preview-sidebar {
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.65rem;
    border-right: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.shell-preview-kicker {
    color: var(--text-subtle);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shell-preview-sidebar > strong {
    margin: 0.15rem 0 0.85rem;
    color: var(--text-strong);
    font-size: 0.7rem;
}

.shell-sidebar-row {
    display: flex;
    min-height: 1.85rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0.45rem;
    color: var(--text-muted);
    font-size: 0.58rem;
}

.shell-sidebar-row.is-active {
    background: var(--navigation-item-active-surface);
    color: var(--text-strong);
    font-weight: 500;
}

.shell-preview-main {
    position: relative;
    min-width: 0;
    background: var(--surface-canvas);
}

.shell-preview-topbar {
    display: flex;
    height: 2.75rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-panel);
    color: var(--text-strong);
    font-size: 0.6rem;
    font-weight: 650;
}

.shell-preview-topbar b {
    font-size: 0.7rem;
    font-weight: 500;
}

.shell-preview-content {
    padding: 1rem;
}

.shell-preview-content i {
    display: block;
    width: 44%;
    height: 0.45rem;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    background: var(--text-strong);
}

.shell-preview-content span {
    display: block;
    height: 3.5rem;
    border-radius: 0.6rem;
    background: var(--surface-panel);
}

.shell-preview-content span + span {
    height: 5.5rem;
    margin-top: 0.65rem;
}

.shell-preview-mobile {
    display: block;
}

.shell-preview-mobile .shell-preview-main {
    height: 100%;
}

.shell-preview-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgb(28 25 23 / 0.4);
}

.shell-preview-drawer {
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 0;
    width: 72%;
    padding: 0.75rem;
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
}

.shell-preview-drawer > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shell-preview-drawer .shell-preview-logo {
    margin: 0;
}

.shell-preview-drawer > div strong {
    color: var(--text-strong);
    font-size: 0.68rem;
}

.navigation-switcher-reference {
    display: grid;
    min-height: 24rem;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
}

.navigation-switcher-copy {
    padding: 2rem;
}

.navigation-switcher-copy > span,
.authentication-variant-heading > div > span {
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.navigation-switcher-copy h3 {
    margin: 0.55rem 0 0;
    color: var(--text-strong);
    font-size: 1rem;
}

.navigation-switcher-copy p {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.navigation-switcher-copy ul {
    margin: 1.25rem 0 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.navigation-switcher-copy li + li {
    margin-top: 0.4rem;
}

.navigation-switcher-copy a {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--text-body);
    font-size: 0.72rem;
    font-weight: 650;
}

.navigation-switcher-copy a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.navigation-switcher-stage {
    display: grid;
    min-width: 0;
    place-items: start center;
    padding: 2.5rem;
    border-left: 1px solid var(--border-subtle);
    background: var(--surface-canvas);
}

.navigation-switcher {
    position: relative;
    width: min(100%, var(--navigation-sidebar-width));
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: var(--surface-subtle);
}

.navigation-switcher-label {
    display: block;
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.navigation-switcher > button {
    display: flex;
    width: 100%;
    min-height: var(--control-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
}

.navigation-switcher > button svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    fill: none;
    stroke: var(--text-subtle);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform var(--motion-interface);
}

.navigation-switcher.is-open > button svg {
    transform: rotate(180deg);
}

.navigation-switcher-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% - 0.5rem);
    left: 0;
    width: var(--navigation-sidebar-width);
    padding: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 35%);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
}

.navigation-switcher-menu a {
    display: flex;
    min-height: var(--control-height);
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: calc(var(--radius-navigation) - 0.2rem);
    color: var(--text-body);
    font-size: 0.75rem;
}

.navigation-switcher-menu a:hover,
.navigation-switcher-menu a:focus-visible {
    outline: 0;
    background: var(--surface-muted);
    color: var(--text-strong);
}

.navigation-switcher-menu a.is-active {
    background: var(--surface-muted);
    color: var(--text-strong);
    font-weight: 600;
}

.navigation-switcher-menu a svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    fill: none;
    stroke: var(--text-subtle);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.navigation-switcher-divider {
    display: block;
    margin: 0.35rem 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.navigation-state-samples {
    display: grid;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: 0.9fr 1.4fr;
}

.navigation-state-samples > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.25rem;
}

.navigation-state-samples > div + div {
    border-left: 1px solid var(--border-subtle);
}

.navigation-state-samples strong {
    margin-right: 0.35rem;
    color: var(--text-strong);
    font-size: 0.68rem;
}

.navigation-state-samples .shell-rail-item {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border: 1px solid var(--border-subtle);
}

.navigation-state-samples .shell-rail-item i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.navigation-state-samples .shell-sidebar-row {
    min-height: 1.75rem;
    flex: 1;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.navigation-state-samples small {
    display: none;
}

.navigation-rules-grid code {
    font-size: 0.62rem;
}

.sidebar-detail-reference {
    display: grid;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1.15fr);
}

.sidebar-detail-copy {
    padding: 2rem;
}

.sidebar-detail-copy > span {
    color: var(--text-subtle);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-detail-copy h3 {
    margin: 0.45rem 0 0;
    color: var(--text-strong);
    font-size: 1rem;
}

.sidebar-detail-copy > p {
    max-width: 30rem;
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.sidebar-token-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.sidebar-token-list > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.sidebar-token-list > div > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sidebar-token-list code {
    color: var(--text-muted);
    font-size: 0.625rem;
}

.sidebar-token-list b {
    margin-top: 0.1rem;
    color: var(--text-strong);
    font-size: 0.6875rem;
    font-weight: 550;
}

.sidebar-token-swatch,
.sidebar-caret-sample {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
}

.sidebar-token-swatch.hover {
    background: var(--navigation-item-hover-surface);
}

.sidebar-token-swatch.active {
    background: var(--navigation-item-active-surface);
}

.sidebar-caret-sample {
    position: relative;
    align-items: center;
    justify-content: center;
}

.sidebar-caret-sample::before {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid var(--navigation-caret-color);
    border-bottom: 1.5px solid var(--navigation-caret-color);
    content: "";
    transform: rotate(45deg) translate(-1px, -1px);
}

.sidebar-detail-stage {
    display: grid;
    min-height: 24rem;
    padding: 2rem;
    border-left: 1px solid var(--border-subtle);
    background: var(--surface-canvas);
    place-items: center;
}

.sidebar-detail-demo {
    width: min(100%, var(--navigation-sidebar-width));
    min-height: 18rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: var(--surface-subtle);
}

.sidebar-detail-kicker {
    display: block;
    padding-inline: 0.25rem;
    color: var(--text-subtle);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.sidebar-section-trigger {
    display: flex;
    width: 100%;
    min-height: var(--control-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.2rem;
    padding: 0.45rem 0.25rem;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
}

.sidebar-section-trigger:hover {
    background: var(--navigation-item-hover-surface);
}

.sidebar-section-trigger svg,
.sidebar-destination svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--navigation-caret-color);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.sidebar-section-trigger svg {
    transition: transform var(--motion-interface);
}

.sidebar-section-trigger.is-expanded svg {
    transform: rotate(90deg);
}

.sidebar-subsection-title {
    display: block;
    margin-top: 1.5rem;
    padding: 0 0.75rem 0.5rem;
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-destination-list {
    display: grid;
    gap: 0.25rem;
}

.sidebar-destination {
    display: flex;
    min-height: var(--control-height-compact);
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-control);
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: background var(--motion-interface), color var(--motion-interface);
}

.sidebar-destination:hover,
.sidebar-destination.is-hovered {
    background: var(--navigation-item-hover-surface);
    color: var(--text-strong);
}

.sidebar-destination.is-active,
.sidebar-destination.is-active:hover {
    background: var(--navigation-item-active-surface);
    color: var(--text-strong);
    font-weight: 500;
}

.sidebar-destination:focus-visible,
.sidebar-section-trigger:focus-visible {
    outline: 2px solid #57534e;
    outline-offset: 3px;
}

.authentication-pattern-grid {
    grid-template-columns: minmax(0, 1fr);
}

.authentication-pattern-grid .pattern-card {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
}

.authentication-pattern-grid .pattern-preview {
    height: auto;
    min-height: 16rem;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 0;
}

.pattern-card {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.pattern-preview {
    position: relative;
    height: 16rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-canvas);
}

.app-shell-preview {
    display: grid;
    padding: 2rem 2rem 0;
    grid-template-columns: 2.5rem 5rem 1fr;
}

.preview-rail {
    border-radius: 0.75rem 0 0 0;
    background: var(--surface-panel);
}

.preview-sidebar {
    border-left: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.preview-app {
    position: relative;
    padding: 3rem 1rem 1rem;
    background: var(--surface-canvas);
}

.preview-app::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2.2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-panel);
    content: "";
}

.preview-app div {
    height: 1rem;
    width: 45%;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    background: var(--text-strong);
}

.preview-app span {
    display: block;
    height: 7rem;
    border-radius: 0.75rem;
    background: var(--surface-panel);
}

.auth-preview {
    display: grid;
    place-items: center;
}

.preview-auth-card {
    display: flex;
    width: 11rem;
    min-height: 11rem;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 50%);
    border-radius: 0.9rem;
    background: var(--surface-panel);
    box-shadow: 0 6px 18px rgb(28 25 23 / 0.05);
}

.preview-auth-logo {
    display: grid;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 0.6rem;
    color: var(--text-strong);
    font-size: 0.6rem;
    font-weight: 700;
}

.preview-auth-card i {
    width: 45%;
    height: 0.35rem;
    border-radius: 1rem;
    background: var(--text-strong);
}

.preview-auth-card i + i {
    width: 65%;
    height: 0.25rem;
    margin: 0.35rem 0 1rem;
    background: var(--border-strong);
}

.preview-auth-card b {
    width: 100%;
    height: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.35rem;
}

.preview-auth-card b + b {
    margin-top: 0.45rem;
    border-color: var(--surface-inverse);
    background: var(--surface-inverse);
}

.authentication-shell-specimen {
    margin-top: 1rem;
}

.authentication-variant-grid {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-canvas);
}

.authentication-variant {
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.authentication-variant-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.authentication-variant-heading h3 {
    margin: 0.2rem 0 0;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.authentication-variant-heading > p {
    max-width: 28rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.auth-split-preview {
    display: grid;
    min-height: 32rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-brand-pane {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background:
        radial-gradient(circle at 15% 8%, rgb(33 128 122 / 0.32), transparent 34%),
        radial-gradient(circle at 84% 80%, rgb(72 98 137 / 0.34), transparent 32%),
        #111827;
    color: #e7e5e4;
}

.auth-brand-pane::after {
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 50%;
    content: "";
}

.auth-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-brand-mark > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: #a9d4ce;
    color: #111827;
    font-size: 0.7rem;
    font-weight: 800;
}

.auth-brand-mark strong {
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.auth-brand-message {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.auth-brand-message > span {
    color: #a9d4ce;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-brand-message h4 {
    margin: 0.8rem 0 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-brand-message p {
    max-width: 23rem;
    margin: 1.2rem 0 0;
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.65;
}

.auth-brand-pane > small {
    position: relative;
    z-index: 1;
    color: #7f8ca3;
    font-size: 0.62rem;
}

.auth-form-pane {
    display: grid;
    place-items: center;
    padding: 2rem;
    background: var(--surface-panel);
}

.auth-form-demo {
    width: min(100%, var(--auth-form-max-width));
}

.auth-welcome {
    color: var(--accent-teal-text);
    font-size: 0.7rem;
    font-weight: 700;
}

.auth-form-demo > h4,
.auth-compact-card > h4 {
    margin: 0.45rem 0 0;
    color: var(--text-strong);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.auth-form-demo > p:not(.auth-form-footer),
.auth-compact-card > p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.auth-provider-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-provider-grid button {
    display: flex;
    min-height: var(--control-height);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.72rem;
}

.auth-provider-grid button:hover {
    border-color: var(--border-strong);
    background: var(--surface-subtle);
}

.auth-provider-grid b {
    color: var(--text-strong);
    font-size: 0.7rem;
}

.auth-divider {
    position: relative;
    margin: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.auth-divider span {
    position: relative;
    top: -0.7rem;
    padding: 0 0.6rem;
    background: var(--surface-panel);
    color: var(--text-subtle);
    font-size: 0.62rem;
}

.auth-form-demo .field + .field {
    margin-top: 1rem;
}

.auth-password-control {
    position: relative;
}

.auth-password-control input {
    padding-right: 3.5rem;
}

.auth-password-control button {
    position: absolute;
    inset: 0 0.65rem 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.65rem;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.auth-form-options label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-form-options input {
    width: 0.9rem;
    height: 0.9rem;
    accent-color: var(--surface-inverse);
}

.auth-form-options a,
.auth-form-footer a,
.auth-compact-card > a {
    color: var(--text-body);
    font-weight: 650;
}

.auth-form-options a:hover,
.auth-form-footer a:hover,
.auth-compact-card > a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.auth-form-footer {
    margin: 1.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    text-align: center;
}

.utility-access {
    display: grid;
    grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
}

.utility-access .authentication-variant-heading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 0;
}

.auth-compact-preview {
    display: grid;
    min-height: 25rem;
    padding: 2rem;
    place-items: center;
    background: var(--surface-canvas);
}

.auth-compact-card {
    display: flex;
    width: min(100%, 22rem);
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 40%);
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
    box-shadow: 0 8px 24px rgb(28 25 23 / 0.06);
}

.auth-compact-card .preview-auth-logo {
    margin-bottom: 1rem;
}

.auth-compact-card .field {
    margin-top: 1.25rem;
}

.auth-compact-card .button {
    width: 100%;
    margin-top: 1rem;
}

.auth-compact-card > a {
    margin-top: 1rem;
    font-size: 0.68rem;
    text-align: center;
}

.authentication-rules-grid code {
    font-size: 0.62rem;
}

.pattern-copy {
    padding: 1.5rem;
}

.pattern-copy h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
}

.pattern-copy > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pattern-copy ul {
    margin: 1rem 0 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.pattern-copy li + li {
    margin-top: 0.35rem;
}

.checklist-grid {
    display: grid;
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
    grid-template-columns: repeat(3, 1fr);
}

.checklist-grid article {
    min-height: 12rem;
    padding: 1.5rem;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.checklist-grid article:nth-child(3n) {
    border-right: 0;
}

.checklist-grid article:nth-child(n+4) {
    border-bottom: 0;
}

.check-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.6rem;
}

.checklist-grid h3 {
    margin: 2rem 0 0.4rem;
    font-size: 0.85rem;
}

.checklist-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.adoption-section {
    width: min(100%, 83rem);
    padding-inline: 2.5rem;
}

.adoption-panel {
    display: grid;
    gap: 5rem;
    padding: 4rem;
    border-radius: 1.5rem;
    background: #292524;
    color: #d6d3d1;
    grid-template-columns: 1.2fr 0.8fr;
}

.adoption-panel .section-index {
    color: #a8a29e;
}

.adoption-panel h2 {
    color: #fff;
}

.adoption-panel > div > p:not(.section-index) {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    color: #a8a29e;
}

.adoption-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.adoption-steps li {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid #44403c;
    grid-template-columns: 2rem 1fr;
}

.adoption-steps > li > span {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #44403c;
    color: #d6d3d1;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
}

.adoption-steps strong {
    color: #fff;
    font-size: 0.8rem;
}

.adoption-steps p {
    margin: 0.25rem 0 0;
    color: #a8a29e;
    font-size: 0.7rem;
}

.site-footer {
    display: flex;
    width: min(100%, 78rem);
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 2rem 3.5rem 4rem;
    color: var(--text-subtle);
    font-size: 0.65rem;
}

.example-dialog {
    width: min(32rem, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: var(--radius-modal);
    background: transparent;
    color: var(--text-body);
    box-shadow: var(--shadow-modal);
}

.example-dialog::backdrop {
    background: rgb(28 25 23 / 0.48);
    backdrop-filter: blur(2px);
}

.dialog-card {
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-modal);
    background: var(--surface-panel);
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dialog-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.dialog-header p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.icon-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
    cursor: pointer;
}

.dialog-close {
    width: 2rem;
    height: 2rem;
    flex: none;
    border: 0;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dialog-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-navigation);
    background: var(--status-warning-surface);
    color: var(--status-warning-text);
}

.dialog-notice > span {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    flex: none;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

.dialog-notice p {
    margin: 0;
    font-size: 0.72rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.toast {
    position: fixed;
    z-index: 250;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
    color: var(--text-strong);
    box-shadow: var(--shadow-menu);
    font-size: 0.72rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity var(--motion-interface), transform var(--motion-interface);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-header,
.navigation-scrim {
    display: none;
}

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

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1100px) {
    .hero-grid {
        gap: 3rem;
        grid-template-columns: 1fr;
    }

    .hero-composition {
        max-width: 38rem;
    }

    .hero h1 {
        max-width: 48rem;
    }

    .foundation-split,
    .pattern-grid,
    .status-guidance-grid {
        grid-template-columns: 1fr;
    }

    .adoption-panel {
        gap: 3rem;
        grid-template-columns: 1fr;
    }

    .header-rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-rules-grid > div:nth-child(3) {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .header-rules-grid > div:nth-child(4) {
        border-top: 1px solid var(--border-subtle);
    }

    .navigation-state-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navigation-state-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 5rem;
    }

    body.navigation-open {
        overflow: hidden;
    }

    .mobile-header {
        position: fixed;
        inset: 0 0 auto;
        z-index: 40;
        display: flex;
        min-height: 4.5rem;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-subtle);
        background: color-mix(in srgb, var(--surface-panel), transparent 8%);
        backdrop-filter: blur(16px);
    }

    .mobile-brand {
        color: var(--text-strong);
        font-size: 0.8rem;
        font-weight: 650;
    }

    .mobile-brand .brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .mobile-actions {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-actions .icon-button {
        width: 2.25rem;
        height: 2.25rem;
    }

    .sidebar {
        width: min(18rem, calc(100vw - 3rem));
        transform: translateX(-105%);
        transition: transform var(--motion-dialog);
    }

    body.navigation-open .sidebar {
        transform: translateX(0);
    }

    .navigation-scrim {
        position: fixed;
        inset: 0;
        z-index: 45;
        border: 0;
        background: rgb(28 25 23 / 0.42);
    }

    body.navigation-open .navigation-scrim {
        display: block;
    }

    .main {
        margin-left: 0;
        padding-top: 4.5rem;
    }

    .section {
        padding: 4.5rem 1.25rem;
    }

    .hero {
        min-height: 0;
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .principle-grid {
        margin-top: 4rem;
        grid-template-columns: 1fr;
    }

    .principle-card {
        min-height: auto;
    }

    .principle-card h2 {
        margin-top: 1.5rem;
    }

    .section-heading {
        align-items: start;
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accent-boundary {
        grid-template-columns: 1fr;
    }

    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checklist-grid article:nth-child(3n) {
        border-right: 1px solid var(--border-subtle);
    }

    .checklist-grid article:nth-child(even) {
        border-right: 0;
    }

    .checklist-grid article:nth-child(n+4) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .checklist-grid article:nth-child(n+5) {
        border-bottom: 0;
    }

    .adoption-section {
        padding-inline: 1rem;
    }

    .adoption-panel {
        padding: 2.5rem;
    }

    .select-variant-grid,
    .action-sections-grid,
    .navigation-state-grid,
    .navigation-state-samples,
    .authentication-pattern-grid .pattern-card {
        grid-template-columns: 1fr;
    }

    .select-variant-card + .select-variant-card,
    .navigation-state-samples > div + div {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .navigation-state-card:first-child {
        grid-column: auto;
    }

    .authentication-pattern-grid .pattern-preview {
        min-height: 14rem;
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .navigation-switcher-reference,
    .auth-split-preview,
    .utility-access {
        grid-template-columns: 1fr;
    }

    .navigation-switcher-stage {
        min-height: 21rem;
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .auth-brand-pane {
        display: none;
    }

    .utility-access .authentication-variant-heading {
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .site-footer {
        padding-inline: 1.25rem;
    }
}

@media (max-width: 600px) {
    .hero-grid {
        gap: 2.5rem;
    }

    .hero-composition {
        margin-inline: -0.5rem;
    }

    .composition-window {
        min-height: 20rem;
        grid-template-columns: 2.75rem 5.5rem 1fr;
        transform: none;
    }

    .composition-content {
        padding: 0.85rem;
    }

    .composition-card-head,
    .composition-row {
        padding: 0.75rem;
        grid-template-columns: 1fr auto;
    }

    .composition-row > span:nth-child(2) {
        display: none;
    }

    .color-grid,
    .accent-grid,
    .form-canvas,
    .notification-stack,
    .transient-guidance-grid,
    .status-canvas,
    .panel-demo-grid,
    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .color-card .swatch {
        height: 5rem;
    }

    .specimen-canvas {
        padding: 1.5rem;
    }

    .header-example {
        padding: 1.25rem;
    }

    .page-header-demo {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
    }

    .page-header-actions {
        flex-wrap: wrap;
    }

    .header-rules-grid {
        grid-template-columns: 1fr;
    }

    .header-rules-grid > div {
        min-height: auto;
    }

    .header-rules-grid > div + div,
    .header-rules-grid > div:nth-child(3) {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .anatomy-grid {
        grid-template-columns: 1fr;
    }

    .anatomy-grid div {
        min-height: auto;
    }

    .anatomy-grid div + div {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .code-sample pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .status-example,
    .status-example:nth-child(odd) {
        border-right: 0;
    }

    .status-example:nth-child(n+2) {
        border-top: 1px solid var(--border-subtle);
    }

    .modal-canvas > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .select-demo-canvas {
        min-height: 0;
        padding: 1rem;
    }

    .authentication-variant-grid {
        padding: 0.75rem;
    }

    .authentication-variant-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .auth-form-pane,
    .auth-compact-preview,
    .navigation-switcher-stage,
    .navigation-switcher-copy {
        padding: 1.25rem;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .form-section-canvas {
        padding: 0.75rem;
    }

    .form-section-grid,
    .form-option-grid {
        grid-template-columns: 1fr;
    }

    .form-section-span {
        grid-column: auto;
    }

    .form-section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-section-actions > div {
        width: 100%;
        flex-direction: column-reverse;
    }

    .form-section-actions .button {
        width: 100%;
    }

    .action-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-row .button {
        width: 100%;
    }

    .navigation-state-samples > div {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .navigation-state-samples strong {
        width: 100%;
    }

    .filter-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .search-control {
        width: 100%;
    }

    .filter-popover {
        right: auto;
        left: 0;
        width: 100%;
    }

    .checklist-grid article,
    .checklist-grid article:nth-child(3n),
    .checklist-grid article:nth-child(even),
    .checklist-grid article:nth-child(n+4),
    .checklist-grid article:nth-child(n+5) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .checklist-grid article:last-child {
        border-bottom: 0;
    }

    .adoption-panel {
        padding: 2rem 1.5rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .dialog-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

/* v0.9 shared application layer */
.button-compact {
    min-height: var(--control-height-compact);
    padding: 0.45rem 0.75rem;
}

.choice-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-group {
    min-width: 0;
    margin: 0;
    padding: 1.5rem;
    border: 0;
}

.choice-group + .choice-group {
    border-left: 1px solid var(--border-subtle);
}

.choice-group legend,
.choice-legend {
    padding: 0;
    color: var(--text-strong);
    font-size: 0.875rem;
    font-weight: 650;
}

.choice-group > p,
.switch-group > div > p {
    min-height: 2.5rem;
    margin: 0.35rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.choice-row,
.switch-row {
    display: flex;
    min-height: 4.25rem;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    cursor: pointer;
}

.choice-row + .choice-row,
.switch-row + .switch-row {
    margin-top: 0.65rem;
}

.choice-row:hover,
.switch-row:hover {
    background: var(--surface-subtle);
}

.choice-row input {
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--surface-inverse);
}

.choice-row span,
.switch-row > span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.choice-row strong,
.switch-row strong {
    color: var(--text-strong);
    font-size: 0.8125rem;
    font-weight: 600;
}

.choice-row small,
.switch-row small {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.switch-row {
    align-items: center;
}

.switch-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.switch-row i {
    position: relative;
    width: 2.6rem;
    height: 1.5rem;
    flex: 0 0 auto;
    border-radius: var(--radius-pill);
    background: var(--border-strong);
    transition: background var(--motion-interface);
}

.switch-row i::after {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(28 25 23 / 0.22);
    content: "";
    transition: transform var(--motion-interface);
}

.switch-row input:checked + i {
    background: var(--surface-inverse);
}

.switch-row input:checked + i::after {
    transform: translateX(1.1rem);
}

.switch-row:has(input:focus-visible) {
    outline: 2px solid #57534e;
    outline-offset: 3px;
}

.specialized-field-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2rem;
}

.date-field-demo {
    position: relative;
    min-height: 28rem;
}

.date-input-shell {
    position: relative;
}

.date-input-shell input {
    padding-right: 2.75rem;
}

.date-input-shell > button {
    position: absolute;
    inset: 0 0 0 auto;
    display: inline-flex;
    width: var(--control-height);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.date-input-shell > button:hover {
    color: var(--text-strong);
}

.date-input-shell svg {
    right: 0.85rem;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.date-picker-popup {
    position: absolute;
    z-index: 45;
    top: 4.15rem;
    left: 0;
    width: min(var(--calendar-width), 100%);
    padding: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--border-subtle), transparent 25%);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
}

.date-picker-header {
    display: grid;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.1rem 0.6rem;
    grid-template-columns: var(--calendar-cell-size) minmax(0, 1fr) var(--calendar-cell-size);
}

.date-picker-header strong {
    color: var(--text-strong);
    font-size: 0.8125rem;
    font-weight: 650;
    text-align: center;
}

.date-picker-header button {
    display: inline-flex;
    width: var(--calendar-cell-size);
    height: var(--calendar-cell-size);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.date-picker-header button:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.date-picker-header svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.date-picker-weekdays,
.date-picker-grid {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays span {
    display: inline-flex;
    width: var(--calendar-cell-size);
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 0.625rem;
    font-weight: 600;
}

.date-picker-grid {
    gap: 0.1rem 0;
}

.date-picker-day {
    position: relative;
    display: inline-flex;
    width: var(--calendar-cell-size);
    height: var(--calendar-cell-size);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.75rem;
}

.date-picker-day:hover,
.date-picker-day:focus-visible {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.date-picker-day.is-outside {
    color: var(--text-subtle);
    opacity: 0.55;
}

.date-picker-day.is-today:not(.is-selected)::after {
    position: absolute;
    bottom: 0.2rem;
    width: 0.2rem;
    height: 0.2rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.date-picker-day.is-selected,
.date-picker-day.is-selected:hover,
.date-picker-day.is-selected:focus-visible {
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-weight: 650;
}

.date-picker-token-note {
    margin-top: 0.5rem;
    color: var(--text-subtle);
    font-size: 0.625rem;
}

.date-picker-token-note code {
    color: var(--text-muted);
}

.field-label {
    color: var(--text-strong);
    font-size: var(--type-label);
    font-weight: 550;
}

.file-dropzone {
    display: flex;
    min-height: 5rem;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.45rem;
    padding: 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-navigation);
    background: var(--surface-subtle);
    cursor: pointer;
}

.file-dropzone:hover {
    border-color: var(--text-muted);
    background: var(--surface-muted);
}

.file-dropzone:has(input:focus-visible) {
    outline: 2px solid #57534e;
    outline-offset: 3px;
}

.file-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.file-dropzone-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-weight: 700;
}

.file-dropzone > span:last-of-type {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.file-dropzone strong {
    color: var(--text-strong);
    font-size: 0.8125rem;
    font-weight: 600;
}

.file-dropzone small {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.identity-tag-strip,
.record-token-strip,
.overlay-token-strip {
    display: grid;
    border-top: 1px solid var(--border-subtle);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-tag-strip > div,
.record-token-strip > span,
.overlay-token-strip > span {
    display: flex;
    min-width: 0;
    min-height: 5rem;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.25rem;
}

.identity-tag-strip > div + div,
.record-token-strip > span + span,
.overlay-token-strip > span + span {
    border-left: 1px solid var(--border-subtle);
}

.identity-tag-strip > div > strong {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.identity-tag-strip > div > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.identity-tag-strip b {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-tag-strip small {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.avatar-demo {
    display: inline-flex;
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-teal-surface);
    color: var(--accent-teal-text);
    font-size: 0.6875rem;
    font-weight: 700;
}

.muted-avatar {
    background: var(--surface-muted);
    color: var(--text-muted);
}

.violet-avatar {
    background: var(--accent-violet-surface);
    color: var(--accent-violet-text);
}

.tag-demo,
.removable-chip {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem;
    border: 0;
    border-radius: 0.45rem;
    background: var(--surface-muted);
    color: var(--text-body);
    font-size: 0.75rem;
    font-weight: 550;
    white-space: nowrap;
}

.removable-chip {
    cursor: pointer;
}

.removable-chip:hover {
    background: color-mix(in srgb, var(--surface-muted), var(--text-strong) 6%);
}

.removable-chip b {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1;
}

.registry-state-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.registry-state-toolbar > span {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.registry-state-toolbar button {
    min-height: 1.9rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.registry-state-toolbar button:hover,
.registry-state-toolbar button.is-active {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.registry-demo {
    padding: 1rem;
    background: var(--surface-canvas);
}

.registry-demo-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    background: var(--surface-panel);
}

.registry-search {
    position: relative;
    width: min(24rem, 100%);
    margin-right: auto;
}

.registry-search svg {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.7;
    transform: translateY(-50%);
}

.registry-search input {
    width: 100%;
    min-height: var(--control-height-compact);
    padding: 0.45rem 0.75rem 0.45rem 2.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-panel);
}

.filter-count {
    display: inline-flex;
    min-width: 1.25rem;
    min-height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-inverse);
    color: var(--text-inverse);
    font-size: 0.625rem;
}

.registry-active-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--surface-panel);
}

.registry-active-filter > span {
    color: var(--text-subtle);
    font-size: 0.75rem;
}

.registry-state-panel {
    min-height: 15.75rem;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
    background: var(--surface-panel);
}

.registry-table-scroll {
    overflow-x: auto;
}

.registry-table {
    width: 100%;
    min-width: 54rem;
    border-collapse: collapse;
    text-align: left;
}

.registry-table th {
    height: var(--table-header-height);
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
}

.registry-table th button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: inherit;
}

.registry-table td {
    min-height: var(--table-row-height);
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-body);
    font-size: 0.75rem;
}

.registry-table tbody tr:hover {
    background: var(--surface-subtle);
}

.registry-primary-link,
.identity-inline {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.registry-primary-link > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.registry-primary-link strong {
    max-width: 16rem;
    overflow: hidden;
    color: var(--text-strong);
    font-size: 0.75rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registry-primary-link:hover strong {
    text-decoration: underline;
}

.registry-primary-link small {
    color: var(--text-subtle);
    font-size: 0.6875rem;
}

.registry-muted {
    color: var(--text-muted) !important;
}

.registry-action-cell {
    width: 3rem;
    text-align: right;
}

.action-menu {
    position: relative;
    display: inline-block;
}

.action-menu-trigger {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0.06em;
}

.action-menu-trigger:hover,
.action-menu.is-open .action-menu-trigger {
    border-color: var(--border-subtle);
    background: var(--surface-muted);
    color: var(--text-strong);
}

.action-menu-panel {
    position: absolute;
    z-index: 35;
    top: calc(100% + 0.4rem);
    right: 0;
    width: max-content;
    min-width: var(--menu-min-width);
    padding: 0.4rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-navigation);
    background: var(--surface-panel);
    box-shadow: var(--shadow-menu);
    text-align: left;
}

.action-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 2.25rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.75rem;
    text-align: left;
}

.action-menu-panel button:hover,
.action-menu-panel button:focus-visible {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.action-menu-panel > span {
    display: block;
    height: 1px;
    margin: 0.35rem 0;
    background: var(--border-subtle);
}

.action-menu-panel .danger {
    color: var(--status-danger-text);
}

.registry-pagination {
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
}

.registry-pagination > span {
    color: var(--text-subtle);
    font-size: 0.6875rem;
}

.registry-pagination nav {
    display: flex;
    gap: 0.25rem;
}

.registry-pagination button {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.registry-pagination button:hover,
.registry-pagination button.is-current {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.registry-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.collection-state {
    display: flex;
    min-height: 15.75rem;
    max-width: var(--empty-state-max-width);
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    text-align: center;
}

.collection-state-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 650;
}

.collection-state h3 {
    margin: 0.9rem 0 0;
    color: var(--text-strong);
    font-size: 0.875rem;
}

.collection-state p {
    margin: 0.35rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.error-state .collection-state-icon {
    background: var(--status-danger-surface);
    color: var(--status-danger-text);
}

.skeleton-table {
    display: grid;
    gap: 1px;
    padding-top: 0.25rem;
    background: var(--border-subtle);
}

.skeleton-table span {
    position: relative;
    display: block;
    height: 3.65rem;
    overflow: hidden;
    background: var(--surface-panel);
}

.skeleton-table span::before,
.skeleton-table span::after {
    position: absolute;
    top: 50%;
    height: 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
    content: "";
    transform: translateY(-50%);
}

.skeleton-table span::before {
    left: 1rem;
    width: 28%;
}

.skeleton-table span::after {
    right: 1rem;
    width: 42%;
}

@media (prefers-reduced-motion: no-preference) {
    .skeleton-table span::before,
    .skeleton-table span::after {
        animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
    }
}

@keyframes skeleton-pulse {
    to { opacity: 0.45; }
}

.record-layout-demo {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-canvas);
    grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.75fr);
}

.record-secondary-stack {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.record-detail-panel {
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--surface-panel);
}

.record-detail-panel header {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.record-detail-panel h3 {
    margin: 0;
    color: var(--text-body);
    font-size: 0.75rem;
    font-weight: 600;
}

.record-detail-panel header a {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 550;
}

.record-detail-panel header a:hover,
.record-detail-panel dd a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.record-detail-panel dl {
    margin: 0;
    padding: 0 1rem;
}

.record-detail-panel dl > div {
    display: grid;
    min-height: var(--table-row-height);
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    grid-template-columns: var(--detail-label-width) minmax(0, 1fr);
}

.record-detail-panel dl > div + div {
    border-top: 1px solid var(--border-subtle);
}

.record-detail-panel dt,
.record-detail-panel dd {
    margin: 0;
    font-size: 0.75rem;
}

.record-detail-panel dt {
    color: var(--text-muted);
}

.record-detail-panel dd {
    min-width: 0;
    color: var(--text-strong);
}

.break-value {
    overflow-wrap: anywhere;
}

.identity-inline .avatar-demo {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.6rem;
}

.empty-subsection {
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.record-token-strip code,
.overlay-token-strip code {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.record-token-strip b,
.overlay-token-strip b {
    color: var(--text-strong);
    font-size: 0.75rem;
    font-weight: 550;
}

.page-navigation-canvas {
    padding: 1.5rem;
    background: var(--surface-canvas);
}

.breadcrumb-demo {
    overflow: hidden;
}

.breadcrumb-demo ol {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: var(--type-body);
    white-space: nowrap;
}

.breadcrumb-demo li {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.breadcrumb-demo a,
.breadcrumb-demo [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-demo a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-subtle);
}

.breadcrumb-demo svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.page-navigation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.page-navigation-heading h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.page-navigation-heading p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.local-tabs {
    display: flex;
    gap: 0.25rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-subtle);
}

.local-tabs button {
    position: relative;
    min-height: 2.65rem;
    padding: 0.6rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 550;
    white-space: nowrap;
}

.local-tabs button:hover,
.local-tabs button.is-active {
    color: var(--text-strong);
}

.local-tabs button.is-active::after {
    position: absolute;
    right: 0.65rem;
    bottom: -1px;
    left: 0.65rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--surface-inverse);
    content: "";
}

.local-tab-preview {
    display: flex;
    min-height: 5.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
    background: var(--surface-panel);
    flex-direction: column;
}

.local-tab-preview strong {
    color: var(--text-strong);
    font-size: 0.8125rem;
}

.local-tab-preview span {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.overlay-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overlay-demo-card {
    display: grid;
    min-width: 0;
    min-height: 19rem;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(13rem, 1fr);
}

.overlay-demo-card + .overlay-demo-card {
    border-left: 1px solid var(--border-subtle);
}

.overlay-demo-card > div:first-child > span {
    color: var(--text-subtle);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.overlay-demo-card h3 {
    margin: 0.4rem 0 0;
    color: var(--text-strong);
    font-size: 1rem;
}

.overlay-demo-card p {
    margin: 0.55rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.overlay-stage {
    display: flex;
    min-height: 12rem;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    border-radius: var(--radius-panel);
    background: var(--surface-canvas);
}

.dialog-variant-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex-direction: column;
}

.dialog-variant-actions .button {
    width: 100%;
    justify-content: flex-start;
}

.overlay-token-strip > span {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
}

.overlay-token-strip > span > strong {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    text-transform: uppercase;
}

.dialog-body-copy {
    padding: 1.25rem;
}

.dialog-body-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.example-dialog .dialog-card {
    width: min(var(--dialog-max-width), calc(100vw - 2rem));
}

.pattern-reference-link {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 1180px) {
    .choice-control-grid,
    .overlay-demo-grid {
        grid-template-columns: 1fr;
    }

    .choice-group + .choice-group,
    .overlay-demo-card + .overlay-demo-card {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .choice-group > p,
    .switch-group > div > p {
        min-height: 0;
    }

    .record-layout-demo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .specialized-field-grid,
    .identity-tag-strip,
    .record-token-strip,
    .overlay-token-strip {
        grid-template-columns: 1fr;
    }

    .identity-tag-strip > div + div,
    .record-token-strip > span + span,
    .overlay-token-strip > span + span {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }

    .overlay-demo-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .registry-state-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .registry-state-toolbar > span {
        width: 100%;
    }

    .registry-demo {
        margin-inline: -0.25rem;
        padding: 0.5rem;
    }

    .registry-demo-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .registry-search {
        width: 100%;
        flex-basis: 100%;
    }

    .registry-pagination,
    .page-navigation-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-layout-demo,
    .page-navigation-canvas,
    .overlay-demo-card,
    .specialized-field-grid {
        padding: 1rem;
    }

    .record-detail-panel dl > div {
        align-items: start;
        gap: 0.25rem;
        grid-template-columns: 1fr;
    }

    .breadcrumb-demo li:nth-child(2) {
        display: none;
    }

    .page-navigation-heading .button {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .sidebar-detail-reference {
        grid-template-columns: 1fr;
    }

    .sidebar-detail-stage {
        border-top: 1px solid var(--border-subtle);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .sidebar-detail-copy,
    .sidebar-detail-stage {
        padding: 1.25rem;
    }
}
