html,
body,
#app {
    min-height: 100%;
}

/* Sample-only component compositions live here so package consumers receive
   only reusable shadcn component selectors. Keep this block before the more
   specific dossier styles below to preserve the established cascade. */
.shadcn-attachment[data-state="uploading"] .showcase-attachment-spinner {
    transform-origin: center;
    animation: shadcn-attachment-spinner var(--shadcn-motion-duration-slow) linear infinite;
}
.showcase-attachment-file[data-state="uploading"] .shadcn-attachment-title,
.showcase-attachment-file[data-state="processing"] .shadcn-attachment-title,
.showcase-attachment-file[data-state="uploading"] .shadcn-attachment-description,
.showcase-attachment-file[data-state="processing"] .shadcn-attachment-description {
    color: var(--shadcn-foreground) !important;
}
@keyframes shadcn-attachment-spinner { to { transform: rotate(360deg); } }

html body .showcase-bubble-thread > [data-slot="bubble"][data-variant="ghost"] > .shadcn-bubble-content {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--shadcn-foreground) !important;
}
.showcase-bubble-thread .shadcn-bubble-content {
    border-radius: 1.15rem !important;
    box-shadow: none !important;
}
.showcase-bubble-thread > [data-slot="bubble"][data-align="end"] .shadcn-bubble-content {
    border-top-left-radius: 1.15rem !important;
    border-top-right-radius: 1.15rem !important;
    border-bottom-left-radius: 1.15rem !important;
    border-end-end-radius: .35rem !important;
    border-bottom-right-radius: .35rem !important;
}
.showcase-bubble-thread > [data-slot="bubble"][data-align="start"] .shadcn-bubble-content {
    border-top-left-radius: 1.15rem !important;
    border-top-right-radius: 1.15rem !important;
    border-bottom-right-radius: 1.15rem !important;
    border-end-start-radius: .35rem !important;
    border-bottom-left-radius: .35rem !important;
}
/* Keep the showcase tail deterministic across engines that resolve logical and physical corner declarations differently. */
html body .showcase-bubble-thread > [data-slot="bubble"][data-align="end"] > .shadcn-bubble-content {
    border-top-left-radius: 1.15rem !important;
    border-top-right-radius: 1.15rem !important;
    border-bottom-left-radius: 1.15rem !important;
    border-bottom-right-radius: .35rem !important;
}
html body .showcase-bubble-thread > [data-slot="bubble"][data-align="start"] > .shadcn-bubble-content {
    border-top-left-radius: 1.15rem !important;
    border-top-right-radius: 1.15rem !important;
    border-bottom-left-radius: .35rem !important;
    border-bottom-right-radius: 1.15rem !important;
}
.showcase-bubble-thread .showcase-bubble-reaction-set {
    min-height: 1.75rem !important;
    gap: calc(.25rem * var(--shadcn-spacing-multiplier)) !important;
    border-color: color-mix(in oklch, var(--shadcn-border) 76%, var(--shadcn-primary)) !important;
    background: var(--shadcn-card) !important;
    color: var(--shadcn-foreground) !important;
    box-shadow: var(--shadcn-shadow-sm) !important;
}
.showcase-bubble-thread .showcase-bubble-reaction-icon {
    width: 1.15rem !important;
    height: 1.15rem !important;
    padding: calc(.14rem * var(--shadcn-spacing-multiplier)) !important;
    border-radius: 999px;
}
.showcase-bubble-thread .showcase-bubble-reaction-icon--like { color: #f59e0b; }
.showcase-bubble-thread .showcase-bubble-reaction-icon--fire { color: #f97316; }
.showcase-bubble-thread .showcase-bubble-reaction-icon--eyes { color: #a855f7; }
.showcase-bubble-thread .showcase-reaction-glyph {
    display: block;
    inline-size: 1rem;
    block-size: 1rem;
    overflow: visible;
}
.showcase-bubble-thread .showcase-reaction-glyph--thumbs-up path {
    fill: #fbbf24;
    stroke: #92400e;
    stroke-linejoin: round;
    stroke-width: 1.5;
}
.showcase-bubble-thread .showcase-reaction-glyph--heart path {
    fill: #f43f5e;
    stroke: #9f1239;
    stroke-linejoin: round;
    stroke-width: 1.25;
}
.showcase-bubble-thread .showcase-reaction-glyph--laugh circle {
    fill: #facc15;
    stroke: #a16207;
    stroke-width: 1.25;
}
.showcase-bubble-thread .showcase-reaction-glyph--laugh path {
    fill: #7c2d12;
    stroke: #7c2d12;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}
.showcase-bubble-thread .showcase-reaction-glyph--fire path {
    fill: #fb923c;
    stroke: #c2410c;
    stroke-linejoin: round;
    stroke-width: 1.25;
}
.showcase-bubble-thread .showcase-reaction-glyph--eyes ellipse {
    fill: #fff;
    stroke: #7e22ce;
    stroke-width: 1.25;
}
.showcase-bubble-thread .showcase-reaction-glyph--eyes circle {
    fill: #171717;
}

html body .showcase-marker-thread [data-slot="marker-icon"][data-streaming="true"] { animation: none; }
html body .showcase-marker-thread .shadcn-marker-content[data-streaming="true"] {
    color: var(--shadcn-muted-foreground);
    -webkit-text-fill-color: currentColor;
}
html body .showcase-marker-thread .shadcn-marker-content[data-streaming="true"]::after { content: none; }

.showcase-scroller-frame .shadcn-message-scroller-item { border: 0 !important; padding-block: calc(.4rem * var(--shadcn-spacing-multiplier)) !important; }
.showcase-scroller-frame .shadcn-message-scroller-content { gap: calc(.2rem * var(--shadcn-spacing-multiplier)); }
.showcase-scroller-frame .shadcn-message { min-height: 3rem; }
.showcase-scroller-frame .shadcn-message-avatar { width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; }
.showcase-message-avatar-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    background: color-mix(in oklch, var(--shadcn-primary) 12%, var(--shadcn-muted));
    color: var(--shadcn-foreground);
    font-size: .8rem;
    font-weight: 700;
}
.showcase-message-reply-icon { width: 1rem; height: 1rem; display: block; }
.showcase-scroller-composer {
    display: flex;
    align-items: center;
    gap: calc(.5rem * var(--shadcn-spacing-multiplier));
    margin: 0 calc(1rem * var(--shadcn-spacing-multiplier)) calc(1rem * var(--shadcn-spacing-multiplier));
    padding: calc(.375rem * var(--shadcn-spacing-multiplier));
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-background);
}
.showcase-scroller-composer input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--shadcn-foreground); font: inherit; }
.showcase-scroller-composer input::placeholder { color: var(--shadcn-muted-foreground); }
.showcase-scroller-composer button {
    display: grid;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    cursor: pointer;
    transition: transform var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), opacity var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}
.showcase-scroller-composer button:hover { transform: translateY(-1px); }
.showcase-scroller-composer button svg { width: 1rem; height: 1rem; }
.showcase-scroller-composer button:focus-visible { outline: 2px solid var(--shadcn-ring); outline-offset: 2px; }

.showcase-questionnaire-choice-title { color: var(--shadcn-foreground); font-size: .9rem; font-weight: 650; }
.showcase-questionnaire-choice-detail { color: var(--shadcn-muted-foreground); font-size: .8125rem; }
.showcase-questionnaire-card { width: min(100%, 38rem) !important; border-radius: var(--shadcn-radius-xl) !important; padding: calc(clamp(1rem, 3vw, 1.75rem) * var(--shadcn-spacing-multiplier)) !important; }
.showcase-questionnaire-card [data-slot="questionnaire-choice"] { min-height: 4rem; }

.showcase-aspect-ratio-media { display: grid; grid-template-rows: auto 1fr; block-size: 100%; border: 1px solid var(--shadcn-border); border-radius: inherit; background: color-mix(in oklab, var(--shadcn-primary) 12%, var(--shadcn-card)); color: var(--shadcn-card-foreground); overflow: hidden; }
.showcase-aspect-ratio-media__toolbar { display: flex; justify-content: space-between; gap: calc(1rem * var(--shadcn-spacing-multiplier)); border-block-end: 1px solid color-mix(in oklab, var(--shadcn-border) 70%, transparent); padding: calc(0.75rem * var(--shadcn-spacing-multiplier)) calc(1rem * var(--shadcn-spacing-multiplier)); font-size: 0.75rem; }
.showcase-aspect-ratio-media__toolbar span:last-child { color: var(--shadcn-muted-foreground); font-family: var(--shadcn-font-mono); }
.showcase-aspect-ratio-media__body { display: grid; align-content: center; justify-items: start; gap: calc(0.5rem * var(--shadcn-spacing-multiplier)); padding: calc(1rem * var(--shadcn-spacing-multiplier)); background: color-mix(in oklab, var(--shadcn-background) 82%, var(--shadcn-card)); }
.showcase-aspect-ratio-media__body span { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; }
.showcase-direction-form { display: grid; gap: calc(1rem * var(--shadcn-spacing-multiplier)); inline-size: min(100%, 34rem); margin-inline: auto; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: var(--shadcn-card); color: var(--shadcn-card-foreground); padding: calc(1.5rem * var(--shadcn-spacing-multiplier)); text-align: start; }
.showcase-direction-form__header { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(1rem * var(--shadcn-spacing-multiplier)); border-block-end: 1px solid var(--shadcn-border); padding-block-end: calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-direction-form__header div { display: grid; min-inline-size: 0; gap: calc(0.25rem * var(--shadcn-spacing-multiplier)); }
.showcase-direction-form__header strong { font-size: 1rem; line-height: 1.5; }
.showcase-direction-form__header div span,
.showcase-direction-form__header > span { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; line-height: 1.5; }
.showcase-direction-field { display: grid; gap: calc(0.375rem * var(--shadcn-spacing-multiplier)); }
.showcase-direction-field > [data-slot="label"] { font-size: 0.8125rem; font-weight: 500; }
.showcase-direction-field > [data-slot="input"] { inline-size: 100%; }
.showcase-direction-field small { color: var(--shadcn-muted-foreground); font-size: 0.75rem; line-height: 1.5; }
.showcase-direction-form__actions { display: flex; justify-content: flex-start; border-block-start: 1px solid var(--shadcn-border); padding-block-start: calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-typography-preview { display: grid; gap: calc(1rem * var(--shadcn-spacing-multiplier)); inline-size: min(100%, 48rem); margin-inline: auto; }
.showcase-typography-preview__selected { display: grid; gap: calc(0.5rem * var(--shadcn-spacing-multiplier)); border-inline-start: 2px solid var(--shadcn-primary); padding-inline-start: calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-typography-preview__selected > span { color: var(--shadcn-muted-foreground); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.showcase-item-dossier { display: grid; gap: calc(1rem * var(--shadcn-spacing-multiplier)); inline-size: min(100%, 38rem); margin-inline: auto; }
.showcase-item-dossier__header { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-item-dossier__header > div { display: grid; gap: calc(0.25rem * var(--shadcn-spacing-multiplier)); min-inline-size: 0; }
.showcase-item-dossier__header h3,
.showcase-item-dossier__header p { margin: 0; }
.showcase-item-dossier__header h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.showcase-item-dossier__header p,
.showcase-item-dossier__header > span { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; line-height: 1.5; }
.showcase-item-dossier__header > span { flex: 0 0 auto; }
.showcase-item-list { gap: calc(0.5rem * var(--shadcn-spacing-multiplier)); }
.showcase-item-list > [role="listitem"] { min-inline-size: 0; }
.showcase-item-list .shadcn-item { inline-size: 100%; }
.showcase-item-list .shadcn-item-actions { margin-inline-start: auto; }
.showcase-separator-demo { display: grid; gap: calc(1rem * var(--shadcn-spacing-multiplier)); inline-size: min(100%, 36rem); margin-inline: auto; }
.showcase-separator-demo__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: calc(0.375rem * var(--shadcn-spacing-multiplier)) calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-separator-demo__header > span,
.showcase-separator-demo__section > span,
.showcase-separator-demo__section > small { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; }
.showcase-separator-demo__header > strong { font-size: 1rem; }
.showcase-separator-demo__content { display: grid; gap: calc(1rem * var(--shadcn-spacing-multiplier)); }
.showcase-separator-demo__section { display: grid; align-content: center; gap: calc(0.25rem * var(--shadcn-spacing-multiplier)); min-inline-size: 0; }
.showcase-separator-demo__section > strong { overflow-wrap: anywhere; }
.showcase-separator-demo--vertical .showcase-separator-demo__content { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.showcase-separator-demo--vertical .shadcn-separator { min-block-size: 6rem; }
.showcase-separator-demo--vertical .showcase-separator-demo__section:last-child { text-align: end; }

.showcase-disclosure-file-list { display: grid; gap: calc(0.625rem * var(--shadcn-spacing-multiplier)); margin: 0; padding: calc(0.5rem * var(--shadcn-spacing-multiplier)) 0 0; list-style: none; }
.showcase-disclosure-file-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: calc(0.75rem * var(--shadcn-spacing-multiplier)); border-block-end: 1px solid var(--shadcn-border); padding-block: calc(0.25rem * var(--shadcn-spacing-multiplier)) calc(0.5rem * var(--shadcn-spacing-multiplier)); }
.showcase-disclosure-file-list li:last-child { border-block-end: 0; }
.showcase-disclosure-file-list span { color: var(--shadcn-muted-foreground); font-size: 0.75rem; }
.showcase-navigation-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: calc(0.25rem * var(--shadcn-spacing-multiplier)); }
.showcase-material-list { display: grid; min-inline-size: 20rem; gap: calc(0.125rem * var(--shadcn-spacing-multiplier)); padding: calc(0.5rem * var(--shadcn-spacing-multiplier)); }
.showcase-material-list--wide { grid-template-columns: repeat(2, minmax(13rem, 1fr)); min-inline-size: 28rem; }
.showcase-material-row { display: grid; gap: calc(0.125rem * var(--shadcn-spacing-multiplier)); border-radius: var(--shadcn-radius-sm); padding: calc(0.5rem * var(--shadcn-spacing-multiplier)); }
.showcase-material-row:hover { background: var(--shadcn-muted); }
.showcase-material-row span { color: var(--shadcn-muted-foreground); font-size: 0.75rem; }
.showcase-sidebar-main { display: grid; align-content: start; gap: calc(0.5rem * var(--shadcn-spacing-multiplier)); padding: calc(1.25rem * var(--shadcn-spacing-multiplier)); }
.showcase-sidebar-main h3,
.showcase-sidebar-main p { margin: 0; }
.showcase-sidebar-main p { color: var(--shadcn-muted-foreground); }
.showcase-sidebar-brand,
.showcase-sidebar-user { display: grid; gap: calc(0.125rem * var(--shadcn-spacing-multiplier)); padding: calc(0.25rem * var(--shadcn-spacing-multiplier)); }
.showcase-sidebar-brand span,
.showcase-sidebar-user span { color: var(--shadcn-sidebar-foreground); opacity: 0.7; font-size: 0.75rem; }

@media (max-width: 40rem) {
    .documentation-page { min-width: 0; overflow-x: clip; }
    .showcase-direction-form { inline-size: 100%; padding: calc(1rem * var(--shadcn-spacing-multiplier)); }
    .showcase-item-dossier__header { align-items: flex-start; flex-direction: column; gap: calc(0.5rem * var(--shadcn-spacing-multiplier)); }
    .showcase-item-list .shadcn-item-actions { flex-basis: 100%; margin-inline-start: calc(3rem * var(--shadcn-spacing-multiplier)); }
    .showcase-direction-form__header,
    .showcase-separator-demo__header { align-items: flex-start; flex-direction: column; }
    .showcase-separator-demo--vertical .showcase-separator-demo__content { gap: calc(0.75rem * var(--shadcn-spacing-multiplier)); }
    .showcase-navigation-menu-grid { grid-template-columns: 1fr; }
    .showcase-material-list--wide { grid-template-columns: 1fr; min-inline-size: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
    .shadcn-attachment[data-state="uploading"] .showcase-attachment-spinner { animation: none !important; }
    .showcase-scroller-composer button { transition: none; }
}
@media (forced-colors: active) {
    html body .showcase-marker-thread [data-slot="marker-icon"][data-streaming="true"] { animation: none; }
    html body .showcase-marker-thread .shadcn-marker-content[data-streaming="true"] { color: CanvasText; mask: none !important; -webkit-mask: none !important; -webkit-text-fill-color: CanvasText; animation: none !important; }
    html body .showcase-marker-thread .shadcn-marker-content[data-streaming="true"]::after { background: none; animation: none; }
}

.feedback-pair-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 1200px;
    padding: 40px;
}

.feedback-pair-crop {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px;
}

.feedback-pair-crop--carousel {
    width: 260px;
    padding-inline: 48px;
}

.feedback-pair-crop--carousel [data-slot="carousel-item"] {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
}

.feedback-pair-crop--toast {
    min-height: 110px;
    position: relative;
}

[data-pair-id="alert"] { height: 100px; }
[data-pair-id="avatar"], [data-pair-id="badge"], [data-pair-id="skeleton"], [data-pair-id="spinner"] { height: 63px; }
[data-pair-id="card"] { height: 219px; }
[data-pair-id="carousel"] { height: 159px; }
[data-pair-id="progress"] { height: 89px; }
[data-pair-id="alert-destructive"] { height: 100px; }
[data-pair-id="avatar-group"], [data-pair-id="badge-outline"] { height: 63px; }
[data-pair-id="badge-outline"] { width: 90px; }
[data-pair-id="card-small"] { height: 150px; }
[data-pair-id="progress-indeterminate"] { height: 89px; }
[data-pair-id="carousel-vertical"] { width: 260px; height: 259px; padding: 48px 16px; }
[data-pair-id="avatar-loaded"], [data-pair-id="avatar-error"] { height: 63px; }
.feedback-pair-crop--vertical [data-slot="carousel-item"] { min-height: 132px; display:flex; align-items:center; justify-content:center; }

.actions-selection-fixture {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 3rem);
}

.actions-selection-fixture section,
.actions-selection-fixture header {
    display: grid;
    gap: 1rem;
}

.actions-fixture-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.actions-evidence-crop {
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    padding: 0.75rem;
    overflow: hidden;
}

.action-control-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.75rem;
}

.showcase-checkbox-dossier {
    width: min(100%, 34rem);
    margin-inline: auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    overflow: hidden;
}

.showcase-checkbox-dossier__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-checkbox-dossier__header h3,
.showcase-checkbox-dossier__header p { margin: 0; }
.showcase-checkbox-dossier__header h3 { font-size: 1rem; line-height: 1.5; }
.showcase-checkbox-dossier__header p,
.showcase-checkbox-dossier__header > span,
.showcase-checkbox-option small { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; line-height: 1.45; }
.showcase-checkbox-dossier__header > span { white-space: nowrap; }

.showcase-checkbox-dossier__list { display: grid; }
.showcase-checkbox-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
}
.showcase-checkbox-option + .showcase-checkbox-option { border-block-start: 1px solid var(--shadcn-border); }
.showcase-checkbox-option > span { display: grid; gap: 0.125rem; min-width: 0; }
.showcase-checkbox-option strong { font-size: 0.875rem; line-height: 1.4; }
.showcase-checkbox-option--invalid small { color: var(--shadcn-destructive); }
.showcase-checkbox-option:has(.shadcn-checkbox:disabled),
.showcase-checkbox-option:has(.shadcn-checkbox[aria-readonly="true"]) { cursor: default; }

@media (max-width: 40rem) {
    .showcase-checkbox-dossier__header { display: grid; gap: 0.25rem; padding: 1rem; }
    .showcase-checkbox-option { padding-inline: 1rem; }
}

.showcase-switch-dossier {
    display: grid;
    inline-size: min(100%, 32rem);
    gap: 1rem;
    color: var(--shadcn-foreground);
}

.showcase-switch-dossier__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.5rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-block-end: 1rem;
}

.showcase-switch-dossier__header h3,
.showcase-switch-dossier__header p,
.showcase-switch-dossier__status { margin: 0; }

.showcase-switch-dossier__header h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }

.showcase-switch-dossier__header p,
.showcase-switch-dossier__setting label > span,
.showcase-switch-dossier__status { color: var(--shadcn-muted-foreground); font-size: 0.8125rem; line-height: 1.5; }

.showcase-switch-dossier__header p { margin-block-start: 0.25rem; }
.showcase-switch-dossier__scope { flex: 0 0 auto; color: var(--shadcn-muted-foreground); font-size: 0.75rem; }

.showcase-switch-dossier__setting {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.showcase-switch-dossier__setting label { display: grid; min-inline-size: 0; gap: 0.2rem; cursor: pointer; }
.showcase-switch-dossier__setting label > strong { font-size: 0.875rem; font-weight: 500; }
.showcase-switch-dossier__status { display: flex; align-items: center; gap: 0.5rem; }

.showcase-switch-dossier__status > span {
    inline-size: 0.5rem;
    block-size: 0.5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--shadcn-muted-foreground);
}

.showcase-switch-dossier__status[data-state="checked"] > span { background: var(--shadcn-primary); }

@media (max-width: 32rem) {
    .showcase-switch-dossier__header { display: grid; gap: 0.5rem; }
    .showcase-switch-dossier__setting { gap: 1rem; }
}

.actions-slider-row {
    display: grid;
    gap: 0.75rem;
    width: min(30rem, 100%);
    max-width: 30rem;
    min-width: 0;
}

[data-testid="slider-vertical-evidence"] {
    display: block;
    width: 1.25rem;
    height: 10rem;
}

.actions-reference-pairs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 1rem;
    overflow: hidden;
}

.actions-reference-pairs > h2,
.actions-reference-pairs > p {
    grid-column: 1 / -1;
}

.action-reference-crop {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    background: var(--shadcn-background);
}

.action-reference-crop--button,
.action-reference-crop--toggle { width: 5.75rem; height: 3rem; }
.action-reference-crop--button-group { width: 10rem; height: 3rem; }
.action-reference-crop--button-group-vertical { width: 14.5rem; height: 14rem; }
.action-reference-crop--control { width: 2rem; height: 2rem; }
.action-reference-crop--radio { width: 20rem; height: 2.5rem; }
.action-reference-crop--radio-vertical { width: 11rem; height: 8.75rem; }
.action-reference-crop--slider { width: 31rem; height: 2rem; }
.action-reference-crop--slider > .shadcn-slider { width: 30rem; height: 1.25rem; }
.action-reference-crop--slider-vertical { width: 2rem; height: 11rem; }
.action-reference-crop--switch { width: 3rem; height: 2rem; }
.action-reference-crop--toggle-group { width: 15rem; height: 3rem; }
.action-reference-crop--toggle-group-vertical { width: 11rem; height: 9.5rem; }

[data-testid="slider-default-evidence"] {
    display: block;
    width: 30rem;
    max-width: 100%;
    height: 1.25rem;
    overflow: hidden;
}

.actions-selection-status {
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    padding: 0.75rem 1rem;
    background: var(--shadcn-muted);
}

body {
    margin: 0;
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
}

button,
a {
    font: inherit;
}

.documentation-root {
    min-block-size: 100vh;
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
}

.component-token-guidance a,
.component-reference a {
    color: var(--shadcn-foreground);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.forms-reference-pairs { display: grid; justify-items: start; gap: 1rem; }
.forms-reference-crop { display: flex; box-sizing: border-box; align-items: flex-start; overflow: hidden; background: var(--shadcn-background); font-family: var(--shadcn-font-sans); }
.forms-reference-input, .forms-reference-textarea, .forms-reference-native-select, .forms-reference-input-group, .forms-reference-select, .forms-reference-combobox { width: 22rem; }
.forms-reference-input { height: 3rem; }
.forms-reference-textarea { height: 6rem; }
.forms-reference-native-select, .forms-reference-input-group, .forms-reference-select, .forms-reference-combobox { height: 3.5rem; }
.forms-reference-otp { width: 20rem; height: 3.5rem; }
.forms-reference-calendar { width: 20rem; height: 23rem; }
.forms-reference-date-picker { display: block; width: 22rem; height: 25.5rem; }
.forms-reference-crop :where(.shadcn-input, .shadcn-textarea, .shadcn-input-group, .shadcn-native-select-wrapper) { width: 100%; }
.forms-reference-crop :where(.shadcn-select, .shadcn-combobox, .shadcn-date-picker) { width: fit-content; min-width: 0; }
.forms-reference-input-group [data-align="inline-start"] { width: 36px; padding-inline: 8px; }
.forms-reference-input-group [data-align="inline-end"] { width: 56.25px; height: 32px; padding-inline: 8px; white-space: nowrap; }
.forms-reference-native-select > [data-slot="native-select-wrapper"] { width: 101px; }
.forms-reference-select [data-slot="select-trigger"] { width: 140.047px; }
.forms-reference-combobox [data-slot="combobox-trigger"] { display: none; }
.forms-reference-date-picker [data-slot="date-picker-trigger"] { width: 145.984px; }

.documentation-root {
    display: block;
    overflow-x: clip;
}

.documentation-shell {
    position: relative;
    min-block-size: 100vh;
    overflow-x: clip;
}

.documentation-skip-link {
    position: fixed;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    translate: 0 -200%;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    padding-block: 0.625rem;
    padding-inline: 0.875rem;
}

.documentation-skip-link:focus {
    z-index: 30;
    translate: 0;
}

.documentation-header {
    position: sticky;
    z-index: 20;
    inset-block-start: 0;
    display: flex;
    min-inline-size: 0;
    min-block-size: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    background: color-mix(in oklch, var(--shadcn-background) 92%, transparent);
    padding-inline: clamp(0.75rem, 2vw, 1.5rem);
    backdrop-filter: blur(14px);
}

.documentation-header__leading,
.documentation-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documentation-brand {
    color: var(--shadcn-foreground);
    font-size: 0.9375rem;
    font-weight: 650;
    text-decoration: none;
}

.documentation-trigger,
.documentation-panel-close,
.documentation-icon-action,
.documentation-clear-search {
    min-block-size: 2.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.75rem;
    font-weight: 550;
}

.documentation-icon-action {
    display: inline-grid;
    inline-size: 2.5rem;
    place-items: center;
    padding-inline: 0;
}

.documentation-icon-action__icon {
    inline-size: 1.05rem;
    block-size: 1.05rem;
}

.documentation-trigger:focus-visible,
.documentation-panel-close:focus-visible,
.documentation-icon-action:focus-visible,
.documentation-clear-search:focus-visible,
.documentation-brand:focus-visible,
.documentation-kofi:focus-visible,
.documentation-topnav a:focus-visible,
.documentation-field :is(input, select):focus-visible,
.documentation-component-list a:focus-visible,
.documentation-on-this-page a:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 2px;
}

.documentation-trigger--catalog,
.documentation-trigger--outline,
.documentation-panel-close {
    display: none;
}

.documentation-trigger--theme-settings {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.documentation-workbench {
    display: grid;
    grid-template-areas: "catalog content outline";
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) minmax(14rem, 18rem);
    justify-content: stretch;
    align-items: start;
    min-inline-size: 0;
    inline-size: 100%;
}

.documentation-catalog,
.documentation-outline {
    position: sticky;
    inset-block-start: 3.5rem;
    min-inline-size: 0;
    block-size: calc(100vh - 3.5rem);
    overflow-y: auto;
    background: var(--shadcn-background);
}

.documentation-catalog {
    grid-area: catalog;
    border-inline-end: 1px solid var(--shadcn-border);
}

.documentation-outline {
    grid-area: outline;
    border-inline-start: 0;
}

.documentation-content {
    grid-area: content;
    min-inline-size: 0;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    padding-inline: clamp(1.25rem, 3vw, 2.75rem);
}

.documentation-landing {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    inline-size: 100%;
}

.documentation-landing__hero {
    display: grid;
    gap: 1rem;
    max-inline-size: 62rem;
    padding-block: clamp(1rem, 4vw, 3rem);
}

.documentation-landing__eyebrow {
    margin: 0;
    color: var(--shadcn-primary);
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.documentation-landing__hero h1,
.documentation-landing__hero p,
.documentation-landing__principles h2,
.documentation-landing__principles p,
.documentation-landing__installation h2,
.documentation-landing__installation p,
.documentation-landing__section-heading h2,
.documentation-catalog-group h3 {
    margin: 0;
}

.documentation-landing__hero h1 {
    max-inline-size: 46rem;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.documentation-landing__lead {
    max-inline-size: 42rem;
    color: var(--shadcn-muted-foreground);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.documentation-landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-block-start: 0.5rem;
}

.documentation-button {
    display: inline-flex;
    min-block-size: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    color: var(--shadcn-foreground);
    padding-inline: 1rem;
    text-decoration: none;
}

.documentation-button--primary {
    border-color: var(--shadcn-primary);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.documentation-landing__principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-border);
}

.documentation-landing__principles article {
    display: grid;
    gap: 0.65rem;
    min-block-size: 10rem;
    align-content: start;
    background: var(--shadcn-card);
    padding: 1.25rem;
}

.documentation-landing__principle-icon {
    display: inline-grid;
    inline-size: 2rem;
    block-size: 2rem;
    place-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    color: var(--shadcn-primary);
    font-size: 1.1rem;
}

.documentation-landing__principles h2 {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.documentation-landing__principles p,
.documentation-landing__installation p {
    color: var(--shadcn-muted-foreground);
    line-height: 1.55;
}

.documentation-landing__installation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    border-block: 1px solid var(--shadcn-border);
    padding-block: 1.5rem;
}

.documentation-landing__installation h2 {
    margin-block-start: 0.35rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.documentation-landing__installation pre {
    overflow-x: auto;
    margin: 0;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    padding: 1rem;
}

.documentation-landing__installation code {
    color: var(--shadcn-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: 0.8rem;
}

.documentation-landing__section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 1rem;
}

.documentation-landing__section-heading h2 {
    margin-block-start: 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.documentation-landing__status,
.documentation-catalog-card__status {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.documentation-catalog-group + .documentation-catalog-group {
    margin-block-start: 2rem;
}

.documentation-catalog-group h3 {
    margin-block-end: 0.75rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.documentation-catalog-card {
    display: grid;
    gap: 0.35rem;
    min-block-size: 5.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    color: var(--shadcn-foreground);
    padding: 0.9rem;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.documentation-catalog-card:hover {
    border-color: var(--shadcn-primary);
    background: var(--shadcn-accent);
    transform: translateY(-1px);
}

.documentation-catalog-card__name {
    font-weight: 650;
}

.documentation-catalog-card__summary {
    overflow: hidden;
    color: var(--shadcn-muted-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.documentation-content > :first-child,
.documentation-content :where(h1, h2, p) {
    margin-block-start: 0;
}

.documentation-content :where(code, dd, p) {
    overflow-wrap: anywhere;
}

.documentation-catalog-rail,
.documentation-on-this-page {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1.5rem;
    padding-inline: 1rem;
}

.documentation-rail__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.documentation-rail__heading :where(h2, p),
.documentation-result-count {
    margin: 0;
}

.documentation-rail__heading h2 {
    font-size: 1rem;
}

.documentation-eyebrow {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.documentation-field {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 0.375rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    font-weight: 550;
}

.documentation-field :is(input, select) {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 2.5rem;
    border: 1px solid var(--shadcn-input);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.625rem;
}

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

.documentation-result-count {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.documentation-component-list {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.documentation-category + .documentation-category {
    margin-block-start: 1.25rem;
}

.documentation-category h3 {
    margin-block: 0 0.375rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.documentation-component-list a {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: var(--shadcn-radius-md);
    color: var(--shadcn-foreground);
    padding-block: 0.5rem;
    padding-inline: 0.625rem;
    text-decoration: none;
}

.documentation-component-list a:hover,
.documentation-component-list a[aria-current="page"] {
    background: var(--shadcn-accent);
    color: var(--shadcn-accent-foreground);
}

.documentation-clear-search {
    align-self: flex-start;
}

.documentation-on-this-page {
    gap: 0.75rem;
}

.documentation-on-this-page h2 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 650;
}

.documentation-on-this-page ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.documentation-on-this-page a {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        font-weight var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.documentation-on-this-page a:hover {
    color: var(--shadcn-foreground);
}

.documentation-on-this-page a[aria-current],
.documentation-on-this-page a[data-active="true"] {
    color: var(--shadcn-foreground);
    font-weight: 700;
}

.documentation-backdrop {
    display: none;
}

.component-dossier {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 3.5rem;
}

.component-dossier > :where(header, section, nav),
.component-guide {
    scroll-margin-block-start: 5rem;
}

.component-dossier :where(h1, h2, h3, p) {
    margin-block: 0;
}

.component-dossier__hero,
.component-preview,
:is(section, details).component-code,
.component-api,
.component-accessibility,
.component-evidence,
.component-dossier__planned {
    min-inline-size: 0;
}

.component-dossier__hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block-end: 1.5rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.component-dossier__hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.component-dossier__hero > p:not(.documentation-eyebrow),
.component-dossier__heading p,
.component-dossier__planned p,
.component-guide > p {
    max-inline-size: min(75ch, 100%);
    color: var(--shadcn-muted-foreground);
    line-height: 1.65;
}

.component-accessibility > .documentation-prose-list,
.component-token-guidance > p,
.component-token-guidance > .documentation-prose-list,
.component-reference > p,
.component-reference > .documentation-prose-list {
    max-inline-size: min(75ch, 100%);
}

.component-dossier__preview,
.component-guide,
.component-preview,
:is(section, details).component-code,
.component-api,
.component-accessibility,
.component-evidence,
.component-dossier__planned {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.component-dossier__preview {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 1.5rem;
}

.component-dossier__preview > h2,
.component-guide > h2,
.component-token-guidance > h2,
.component-reference > h2 {
    font-size: 1.65rem;
    letter-spacing: -0.025em;
}

.component-guide__composition {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.component-guide__composition li {
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    padding-block: 0.4rem;
    padding-inline: 0.625rem;
}

.component-dossier__heading,
.component-code__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.component-dossier__heading > div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.component-state-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.component-state-tags li {
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    background: var(--shadcn-muted);
    color: var(--shadcn-foreground);
    padding-block: 0.25rem;
    padding-inline: 0.55rem;
    font-size: 0.6875rem;
}

.component-preview__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-muted);
    padding: 1rem;
}

.component-preview__control {
    display: flex;
    min-inline-size: 10rem;
    flex-direction: column;
    gap: 0.375rem;
}

.component-preview__control label {
    font-size: 0.75rem;
    font-weight: 600;
}

.component-preview__control input:not([type="checkbox"]),
.component-code textarea {
    min-block-size: 2.5rem;
    border: 1px solid var(--shadcn-input);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.75rem;
}

.component-preview__control > .shadcn-select {
    inline-size: 100%;
}

.component-preview__control > .shadcn-select .shadcn-select-trigger {
    inline-size: 100%;
}

.component-preview__control label:has(input[type="checkbox"]) {
    display: flex;
    min-block-size: 2.5rem;
    align-items: center;
    gap: 0.5rem;
}

.component-preview__canvas {
    display: grid;
    min-block-size: 14rem;
    min-inline-size: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    padding: clamp(1.5rem, 5vw, 4rem);
    box-shadow: var(--shadcn-shadow-xs);
}

.component-preview__canvas > * {
    inline-size: min(100%, 32rem);
}

.component-preview__canvas > .showcase-accordion-dossier {
    inline-size: min(100%, 42rem);
}

.showcase-accordion-dossier {
    display: grid;
    gap: 1.25rem;
    min-inline-size: 0;
}

.showcase-accordion-dossier__header {
    display: grid;
    gap: 0.25rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-accordion-dossier__header h3,
.showcase-accordion-dossier__header p,
.showcase-accordion-dossier .shadcn-accordion-content p,
.showcase-accordion-dossier .shadcn-accordion-content ul {
    margin: 0;
}

.showcase-accordion-dossier__header h3 {
    font-size: 1rem;
    line-height: 1.4;
}

.showcase-accordion-dossier__header p {
    max-inline-size: 48ch;
    color: var(--shadcn-muted-foreground);
    font-size: 0.875rem;
}

.showcase-accordion-dossier .shadcn-accordion-content ul {
    display: grid;
    gap: 0.375rem;
    padding-inline-start: 1.25rem;
}

.showcase-accordion-dossier .shadcn-accordion-content p + :is(p, ul) {
    margin-block-start: 0.75rem;
}

.showcase-accordion-dossier .shadcn-accordion[data-orientation="horizontal"] {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.showcase-accordion-dossier .shadcn-accordion[data-orientation="horizontal"] > .shadcn-accordion-item {
    min-inline-size: 10rem;
}

.showcase-accordion-dossier .shadcn-accordion[data-orientation="horizontal"] > .shadcn-accordion-item[data-state="open"] {
    min-inline-size: min(24rem, calc(100vw - 4rem));
    flex: 1 0 min(24rem, calc(100vw - 4rem));
}

.component-preview__canvas > .showcase-collapsible-dossier {
    inline-size: min(100%, 28rem);
}

.showcase-collapsible-dossier,
.showcase-collapsible-dossier .shadcn-collapsible {
    min-inline-size: 0;
}

.showcase-collapsible-dossier .shadcn-collapsible {
    display: grid;
    gap: 0.5rem;
}

.showcase-collapsible-summary {
    display: flex;
    inline-size: 100%;
    min-block-size: 2.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-radius: var(--shadcn-radius-md);
    background: transparent;
    padding: 0.5rem;
    text-align: start;
}

.showcase-collapsible-summary:hover {
    background: var(--shadcn-muted);
}

.showcase-collapsible-summary > span,
.showcase-collapsible-details > div {
    display: grid;
    min-inline-size: 0;
    gap: 0.125rem;
}

.showcase-collapsible-summary small,
.showcase-collapsible-status span,
.showcase-collapsible-details span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.875rem;
    font-weight: 400;
}

.showcase-collapsible-summary [data-slot="collapsible-trigger-icon"] {
    inline-size: 1rem;
    block-size: 1rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: rotate var(--shadcn-motion-duration) var(--shadcn-motion-easing);
}

.showcase-collapsible-summary[data-state="open"] [data-slot="collapsible-trigger-icon"] {
    rotate: 90deg;
}

.showcase-collapsible-status,
.showcase-collapsible-details > div {
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    padding: 0.75rem 1rem;
}

.showcase-collapsible-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-collapsible-details {
    display: grid;
    gap: 0.5rem;
}

@media (max-width: 30rem) {
    .showcase-collapsible-summary,
    .showcase-collapsible-status,
    .showcase-collapsible-details > div {
        padding-inline: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-collapsible-summary [data-slot="collapsible-trigger-icon"] {
        transition: none;
    }
}

@media (forced-colors: active) {
    .showcase-collapsible-summary:focus-visible,
    .showcase-collapsible-status,
    .showcase-collapsible-details > div {
        border-color: CanvasText;
    }
}

.showcase-dialog-dossier {
    display: grid;
    min-inline-size: 0;
    place-items: center;
}

/* Calendar grids are intrinsically sized; do not let the generic preview
   child rule stretch the seven-column surface across the canvas. */
.component-preview__canvas > .shadcn-calendar {
    inline-size: fit-content;
    max-inline-size: 100%;
    justify-self: center;
}

/* Conversation dossiers use the same composed surfaces as the public reference
   examples: a media gallery, file rows, and a readable multi-turn thread. */
.showcase-attachment-demo {
    display: grid;
    inline-size: min(100%, 30rem);
    min-width: 0;
    margin-inline: auto;
    gap: 1rem;
}

.showcase-attachment-gallery {
    display: grid;
    inline-size: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
    overflow: visible;
}

.showcase-attachment-gallery--vertical {
    grid-template-columns: 1fr;
}

.showcase-attachment-gallery > [data-slot="attachment"] {
    width: 100%;
    min-width: 0;
}

.showcase-attachment-card {
    align-items: stretch;
    gap: 0.5rem;
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    padding: 0.375rem;
    box-shadow: var(--shadcn-shadow-xs);
    transition: border-color var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        box-shadow var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        transform var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard);
}

.showcase-attachment-card .showcase-attachment-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1.28;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
}

.showcase-attachment-artwork {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-attachment-card .shadcn-attachment-content {
    flex: none;
    padding-inline: 0.125rem;
}

.showcase-attachment-card .shadcn-attachment-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.showcase-attachment-card .shadcn-attachment-description {
    margin-block-start: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.25;
}

.showcase-attachment-files {
    display: grid;
    min-width: 0;
    gap: 0.65rem;
}

.showcase-attachment-file {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.5rem 0.625rem;
    background: var(--shadcn-background);
    box-shadow: var(--shadcn-shadow-xs);
    transition: border-color var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        box-shadow var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        transform var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard);
}

.showcase-attachment-file--vertical {
    align-items: stretch;
    flex-direction: column;
}

.showcase-attachment-file-icon {
    border: 1px solid var(--shadcn-border);
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
}

.showcase-attachment-file-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.showcase-bubble-thread {
    display: flex;
    inline-size: min(100%, 32rem);
    min-height: 18rem;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.875rem;
    margin-inline: auto;
    padding-block: 0.75rem;
}

.showcase-bubble-thread > [data-slot="bubble"] {
    max-width: min(82%, 28rem);
}

.showcase-bubble-thread > [data-slot="bubble"][data-align="end"] {
    margin-inline-start: auto;
}

.showcase-bubble-thread > [data-slot="bubble"][data-align="start"] {
    margin-inline-end: auto;
}

.showcase-bubble-thread .shadcn-bubble-content {
    padding-block: 0.625rem;
    padding-inline: 0.875rem;
    line-height: 1.4;
}

.showcase-bubble-reaction-set {
    display: inline-flex;
    min-height: 1.5rem;
    align-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    background: var(--shadcn-background);
    padding-inline: 0.45rem;
    color: var(--shadcn-foreground);
    font-size: 0.75rem;
    line-height: 1;
    box-shadow: var(--shadcn-shadow-xs);
}

.showcase-bubble-reaction-icon {
    display: block;
    width: 0.9rem;
    height: 0.9rem;
}

.showcase-bubble-reaction-count {
    margin-inline-start: 0.1rem;
    font-size: 0.6875rem;
    font-weight: 650;
}

.showcase-marker-thread {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.875rem;
    padding-block: 1rem;
}

.showcase-marker-thread > [data-slot="marker"] {
    min-height: 2.75rem;
    padding-inline: 0.75rem;
}

.showcase-marker-thread > [data-slot="marker"][data-variant="default"] {
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    color: var(--shadcn-foreground);
}

.showcase-marker-thread > [data-slot="marker"][data-variant="separator"] {
    color: var(--shadcn-muted-foreground);
    font-size: 0.8125rem;
}

.showcase-marker-thread > [data-slot="marker"][data-variant="border"] {
    padding-block: 0.7rem;
    color: var(--shadcn-foreground);
}

.showcase-marker-thread .shadcn-marker-content[data-streaming="true"] {
    color: var(--shadcn-muted-foreground);
    -webkit-text-fill-color: currentColor;
}

.showcase-message-thread {
    --showcase-message-participant-gap: 1.15rem;
    --showcase-message-continuation-gap: calc(0.25rem * var(--shadcn-spacing-multiplier));
    display: grid;
    width: 100%;
    min-width: 0;
    gap: var(--showcase-message-continuation-gap);
    padding-block: 1rem;
}

.showcase-message-thread > [data-slot="message"] {
    align-items: flex-end;
}

.showcase-message-thread .shadcn-message-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--shadcn-border);
    background: var(--shadcn-muted);
    color: var(--shadcn-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}

.showcase-message-thread .shadcn-message-header {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    font-weight: 650;
}

.showcase-message-thread .shadcn-message-footer {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
}

.showcase-scroller-frame {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-scroller-transcript {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.showcase-scroller-transcript::after {
    position: absolute;
    z-index: 7;
    inset-inline-start: 0;
    inset-inline-end: 1rem;
    inset-block-end: 0;
    block-size: 2.5rem;
    background: linear-gradient(to bottom, transparent, var(--shadcn-card));
    content: "";
    pointer-events: none;
}

.showcase-scroller-frame .shadcn-message-scroller-viewport {
    height: 100%;
    scrollbar-color: var(--shadcn-muted-foreground) transparent;
}

.showcase-scroller-frame .shadcn-message-scroller-content {
    gap: 0.25rem;
    padding: 1rem 1.25rem 2.75rem;
}

.showcase-scroller-frame .shadcn-message-scroller-item {
    padding-block: 0.55rem;
}

.showcase-scroller-frame .shadcn-message {
    min-height: 3.2rem;
}

.showcase-scroller-frame .shadcn-message-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.6875rem;
}

.showcase-scroller-frame [data-slot="message-scroller-button"] {
    min-height: 2.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    padding-inline: 0.875rem;
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    box-shadow: var(--shadcn-shadow-md);
    font-size: 0.75rem;
    font-weight: 650;
}

.showcase-scroller-frame .showcase-scroller-composer {
    position: relative;
    z-index: 8;
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .35rem;
    margin: .75rem;
    margin-block-end: calc(.75rem + env(safe-area-inset-bottom));
    padding: .25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    background: color-mix(in oklch, var(--shadcn-card) 94%, transparent);
    box-shadow: var(--shadcn-shadow-md);
    backdrop-filter: blur(10px);
}

.showcase-scroller-frame .showcase-scroller-composer input {
    min-inline-size: 0;
    min-block-size: 2.5rem;
    flex: 1 1 auto;
    border: 0;
    border-radius: 999px;
    padding-inline: .8rem;
    background: transparent;
    color: var(--shadcn-foreground);
    outline: none;
}

.showcase-scroller-frame .showcase-scroller-composer input::placeholder {
    color: var(--shadcn-muted-foreground);
    opacity: 1;
}

.showcase-scroller-frame .showcase-scroller-composer input:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: -2px;
}

.showcase-scroller-frame .showcase-scroller-composer button {
    display: inline-grid;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    cursor: pointer;
    transition: background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        opacity var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        transform var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.showcase-scroller-frame .showcase-scroller-composer button:hover:not(:disabled) {
    background: color-mix(in oklch, var(--shadcn-primary) 90%, var(--shadcn-background));
    transform: translateY(-1px);
}

.showcase-scroller-frame .showcase-scroller-composer button:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 2px;
}

.showcase-scroller-frame .showcase-scroller-composer button:disabled {
    cursor: wait;
    opacity: .55;
}

.showcase-scroller-frame .showcase-scroller-composer svg {
    inline-size: 1.1rem;
    block-size: 1.1rem;
}

.showcase-scroller-demo {
    width: min(100%, 34rem);
    margin-inline: auto;
}

.showcase-scroller-helper {
    margin: .7rem 1rem 0;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    line-height: 1.4;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .showcase-scroller-frame .showcase-scroller-composer button { transition: none; }
}

/* Popover dossier: keep the trigger centered while the real fixed overlay
   demonstrates collision-aware placement with production form controls. */
.showcase-popover-dossier {
    display: grid;
    min-block-size: 18rem;
    inline-size: 100%;
    place-items: center;
}

.showcase-popover-form {
    display: grid;
    grid-template-columns: minmax(4rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    margin-block-start: 1rem;
}

.showcase-popover-form .shadcn-label {
    color: var(--shadcn-muted-foreground);
}

.showcase-popover-form .shadcn-input {
    min-inline-size: 0;
}

/* Sidebar dossier: a contained application shell instead of a viewport-height
   mock. The package still owns every navigation, collapse, modal and focus
   behavior; these rules only compose the fictional production workspace. */
.showcase-sidebar-shell {
    inline-size: min(100%, 60rem);
    min-block-size: 32rem;
    block-size: min(36rem, 76dvh);
    max-block-size: 38rem;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-sidebar);
    text-align: start;
}

.component-preview__canvas > .showcase-sidebar-shell {
    inline-size: min(100%, 60rem);
}

.showcase-sidebar-shell > .shadcn-sidebar,
.showcase-sidebar-shell > .shadcn-sidebar[data-variant="inset"] {
    min-block-size: calc(100% - 1rem);
}

.showcase-sidebar-brand {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .625rem;
    padding: .25rem;
}

.showcase-message-inline-actions {
    display: flex;
    align-items: flex-end;
    gap: calc(.625rem * var(--shadcn-spacing-multiplier));
}

.showcase-message-inline-actions > .shadcn-message-footer {
    width: auto;
    flex: none;
}

.showcase-message-inline-actions .shadcn-bubble {
    max-width: 100%;
}

.showcase-message-thread > [data-slot="message"]:has(.showcase-message-inline-actions) > .shadcn-message-avatar {
    align-self: end;
}

.showcase-message-thread:has(> [data-slot="message"] > [data-slot="message-avatar"]) > [data-slot="message"][data-continuation="true"] {
    grid-template-columns: 2.25rem minmax(0, 1fr);
}

.showcase-message-thread:has(> [data-slot="message"] > [data-slot="message-avatar"]) > [data-slot="message"][data-continuation="true"] :is(.shadcn-message-body, .shadcn-message-footer, .shadcn-message-streaming-status) {
    grid-column: 2;
}

.showcase-message-thread > [data-slot="message"]:not(:first-child, [data-continuation="true"]) {
    margin-block-start: calc(var(--showcase-message-participant-gap) - var(--showcase-message-continuation-gap));
}

.showcase-sidebar-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
}

.showcase-sidebar-mobile-trigger {
    display: none;
}

.showcase-sidebar-brand__mark,
.showcase-sidebar-avatar {
    display: inline-flex;
    inline-size: 2rem;
    block-size: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--shadcn-sidebar-primary);
    color: var(--shadcn-sidebar-primary-foreground);
    font-size: .6875rem;
    font-weight: 700;
}

.showcase-sidebar-brand__copy,
.showcase-sidebar-user-copy {
    display: grid;
    min-inline-size: 0;
    line-height: 1.2;
}

.showcase-sidebar-brand__copy small,
.showcase-sidebar-user-copy small {
    overflow: hidden;
    color: color-mix(in oklab, var(--shadcn-sidebar-foreground) 68%, transparent);
    font-size: .6875rem;
    text-overflow: ellipsis;
}

.showcase-sidebar-icon {
    inline-size: 1rem;
    block-size: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.showcase-sidebar-shell .shadcn-sidebar[data-state="collapsed"][data-collapsible="icon"] .showcase-sidebar-brand {
    justify-content: center;
    padding-inline: 0;
}

.showcase-sidebar-shell .shadcn-sidebar[data-state="collapsed"][data-collapsible="icon"] .showcase-sidebar-brand__copy {
    display: none;
}

.showcase-sidebar-shell .shadcn-sidebar[data-state="collapsed"][data-collapsible="icon"] .showcase-sidebar-header-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.showcase-sidebar-toolbar {
    display: flex;
    min-block-size: 3rem;
    align-items: center;
    gap: .625rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-inline: .75rem;
    font-size: .8125rem;
    font-weight: 500;
}

.showcase-sidebar-shift {
    margin-inline-start: auto;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-weight: 400;
}

.showcase-sidebar-main {
    display: grid;
    min-inline-size: 0;
    align-content: start;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

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

.showcase-sidebar-heading h3,
.showcase-sidebar-heading p {
    margin: 0;
}

.showcase-sidebar-heading p {
    max-inline-size: 48ch;
    margin-block-start: .25rem;
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
}

.showcase-sidebar-status {
    flex: 0 0 auto;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    padding: .25rem .625rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
}

.showcase-sidebar-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: 1px solid var(--shadcn-border);
}

.showcase-sidebar-metrics > div {
    display: grid;
    gap: .125rem;
    padding: .875rem;
}

.showcase-sidebar-metrics > div + div {
    border-inline-start: 1px solid var(--shadcn-border);
}

.showcase-sidebar-metrics strong {
    font-size: 1.125rem;
}

.showcase-sidebar-metrics span,
.showcase-sidebar-jobs small {
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
}

.showcase-sidebar-jobs {
    display: grid;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    overflow: hidden;
}

.showcase-sidebar-jobs > div {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem;
    font-size: .75rem;
}

.showcase-sidebar-jobs > div + div {
    border-block-start: 1px solid var(--shadcn-border);
}

.showcase-sidebar-jobs > div > span:first-child {
    display: grid;
    min-inline-size: 0;
    gap: .125rem;
}

.showcase-sidebar-jobs > div > span:last-child {
    flex: 0 0 auto;
    color: var(--shadcn-muted-foreground);
}

@media (max-width: 48rem) {
    .showcase-sidebar-shell {
        min-block-size: 30rem;
        block-size: min(32rem, 70dvh);
    }

    .showcase-sidebar-shell > .shadcn-sidebar-inset {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .showcase-sidebar-mobile-trigger {
        display: inline-flex;
    }

    .showcase-sidebar-main {
        padding: 1rem;
    }

    .showcase-sidebar-heading {
        display: grid;
    }

    .showcase-sidebar-status {
        inline-size: fit-content;
    }

    .showcase-sidebar-metrics > div {
        padding-inline: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-sidebar-shell *,
    .showcase-sidebar-shell *::before,
    .showcase-sidebar-shell *::after {
        scroll-behavior: auto;
    }
}

.showcase-hover-card-dossier {
    width: min(100%, 36rem);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
}

.showcase-hover-card-dossier__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
}

.showcase-hover-card-dossier__header h3,
.showcase-hover-card-dossier__header p { margin: 0; }
.showcase-hover-card-dossier__header h3 { font-size: 1rem; font-weight: 650; letter-spacing: -.0125em; }
.showcase-hover-card-dossier__header p,
.showcase-hover-card-dossier__header > span { margin-block-start: .25rem; color: var(--shadcn-muted-foreground); font-size: .75rem; }

.showcase-hover-card-assignment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    border-block: 1px solid var(--shadcn-border);
    padding: 1rem 1.25rem;
}

.showcase-hover-card-assignment > div { display: grid; min-inline-size: 0; gap: .125rem; }
.showcase-hover-card-assignment .shadcn-hover-card-trigger { width: fit-content; color: var(--shadcn-foreground); font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--shadcn-foreground) 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.showcase-hover-card-assignment .shadcn-hover-card-trigger:hover { text-decoration-color: currentColor; }
.showcase-hover-card-assignment > div > span,
.showcase-hover-card-assignment > span { color: var(--shadcn-muted-foreground); font-size: .75rem; }

.showcase-hover-card-profile { display: grid; gap: 1rem; }
.showcase-hover-card-profile__identity { display: flex; align-items: center; gap: .75rem; }
.showcase-hover-card-profile__identity > div { display: grid; gap: .125rem; }
.showcase-hover-card-profile__identity strong { font-size: .875rem; }
.showcase-hover-card-profile__identity span { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.showcase-hover-card-profile > p { margin: 0; color: var(--shadcn-muted-foreground); font-size: .8125rem; line-height: 1.55; }
.showcase-hover-card-profile dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; border-block-start: 1px solid var(--shadcn-border); padding-block-start: .875rem; }
.showcase-hover-card-profile dl > div { display: grid; gap: .125rem; }
.showcase-hover-card-profile dt { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.showcase-hover-card-profile dd { margin: 0; font-size: .8125rem; font-weight: 600; }

.showcase-hover-card-dossier__hint { margin: 0; padding: .75rem 1.25rem; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.45; }

@media (max-width: 34rem) {
    .showcase-hover-card-dossier__header { gap: .75rem; padding: 1rem; }
    .showcase-hover-card-assignment { grid-template-columns: auto minmax(0, 1fr); padding-inline: 1rem; }
    .showcase-hover-card-assignment > span { grid-column: 2; }
    .showcase-hover-card-dossier__hint { padding-inline: 1rem; }
}

@media (forced-colors: active) {
    .showcase-hover-card-dossier,
    .showcase-hover-card-assignment,
    .showcase-hover-card-profile dl { border-color: CanvasText; }
    .showcase-hover-card-assignment .shadcn-hover-card-trigger { text-decoration-color: LinkText; }
}

.showcase-questionnaire-card {
    width: min(100%, 34rem);
    margin-inline: auto;
    gap: 1.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    padding: 1.5rem;
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-questionnaire-card > [data-slot="questionnaire-progress"] {
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid var(--shadcn-border);
    padding-block-end: 0.75rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.showcase-questionnaire-card [data-slot="questionnaire-item"] {
    display: grid;
    gap: 0.7rem;
}

.showcase-questionnaire-card [data-slot="questionnaire-title"] {
    font-size: 1.4rem;
    letter-spacing: -0.015em;
}

.showcase-questionnaire-card [data-slot="questionnaire-choice-description"] {
    display: grid;
    gap: 0.18rem;
    color: var(--shadcn-foreground);
    font-size: 0.9rem;
    line-height: 1.45;
}

.showcase-questionnaire-card [data-slot="questionnaire-actions"] {
    border-top: 1px solid var(--shadcn-border);
    padding-block-start: 1rem;
}

.showcase-alert-card {
    width: min(100%, 42rem);
    margin-inline: auto;
    border-radius: var(--shadcn-radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-alert-card [data-slot="alert-icon"] {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
}

.showcase-alert-card [data-slot="alert-title"] {
    font-size: 0.95rem;
    font-weight: 700;
}

.showcase-alert-card [data-slot="alert-description"] {
    max-width: 48ch;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.showcase-alert-card [data-slot="alert-action"] {
    inset-inline-end: 1rem;
    inset-block-start: 50%;
    translate: 0 -50%;
}

.showcase-alert-action {
    min-height: 2rem;
    border: 1px solid currentColor;
    border-radius: var(--shadcn-radius-md);
    padding-inline: 0.7rem;
    background: transparent;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 650;
}

.component-code__header button {
    min-block-size: 2.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.75rem;
    font-weight: 550;
}

.component-code pre {
    max-block-size: none;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-muted);
    padding: 1rem;
    tab-size: 4;
}

.component-guide :is(section, details).component-code {
    gap: 0.75rem;
}

.component-guide .component-code__header h3 {
    font-size: 0.875rem;
    font-weight: 650;
}

.component-code textarea {
    inline-size: 100%;
    min-block-size: 10rem;
    padding-block: 0.75rem;
    font-family: var(--shadcn-font-mono);
    resize: vertical;
}

.component-code__announcement:empty {
    display: none;
}

.component-api__type {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.component-api__scroller {
    overflow-x: auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    padding-block-end: 0.75rem;
    box-shadow: var(--shadcn-shadow-sm);
    scrollbar-color: color-mix(in oklch, var(--shadcn-muted-foreground) 35%, transparent) transparent;
}

.component-api__scroller > .shadcn-table-container {
    overflow: visible;
}

.component-api__table {
    inline-size: 100%;
    min-inline-size: 42rem;
    table-layout: fixed;
    font-size: 0.8125rem;
}

.component-api__table .shadcn-table-head,
.component-api__table .shadcn-table-cell {
    min-inline-size: 0;
    padding: 0.75rem 0.875rem;
    text-align: start;
    vertical-align: top;
    white-space: normal;
}

.component-api__table .shadcn-table-header .shadcn-table-head {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    background: color-mix(in oklch, var(--shadcn-muted) 72%, var(--shadcn-background));
    color: color-mix(in oklch, var(--shadcn-foreground) 78%, var(--shadcn-muted-foreground));
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.component-api__table .shadcn-table-header .shadcn-table-head:nth-child(1) { inline-size: 17%; }
.component-api__table .shadcn-table-header .shadcn-table-head:nth-child(2) { inline-size: 22%; }
.component-api__table .shadcn-table-header .shadcn-table-head:nth-child(3) { inline-size: 15%; }
.component-api__table .shadcn-table-header .shadcn-table-head:nth-child(4) { inline-size: 16%; }
.component-api__table .shadcn-table-header .shadcn-table-head:nth-child(5) { inline-size: 30%; }

.component-api__table .shadcn-table-body .shadcn-table-row:hover {
    background: color-mix(in oklch, var(--shadcn-accent) 36%, var(--shadcn-background));
}

.component-api__table .shadcn-table-body .shadcn-table-head {
    color: var(--shadcn-foreground);
    font-weight: 650;
}

.component-api__table code {
    color: var(--shadcn-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: 0.78rem;
    font-weight: 550;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.component-api__identifier {
    display: inline-block;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.component-api__value {
    display: inline-block;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.component-api__required {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 0.5rem;
    border: 1px solid color-mix(in oklch, var(--shadcn-primary) 28%, var(--shadcn-border));
    border-radius: var(--shadcn-radius-sm);
    background: color-mix(in oklch, var(--shadcn-primary) 10%, transparent);
    padding-inline: 0.35rem;
    color: var(--shadcn-primary);
    font-family: var(--shadcn-font-sans);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.component-api__description {
    display: block;
    color: var(--shadcn-foreground);
}

.component-api__constraint {
    display: block;
    margin-block-start: 0.25rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    line-height: 1.45;
}

.component-api__empty {
    color: var(--shadcn-muted-foreground);
}

.documentation-prose-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-block: .5rem 0;
    margin-inline: 0;
    padding-inline-start: 1rem;
}

.documentation-prose-list li {
    margin: 0;
    padding-inline-start: 0;
}

.documentation-prose-list :where(ul, ol) {
    margin-block: .5rem 0;
    padding-inline-start: 1rem;
}

.component-evidence dl,
.component-dossier__hero dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.5rem 1rem;
    margin: 0;
}

.component-evidence dd {
    margin: 0;
}

.component-evidence__matrix {
    inline-size: 100%;
    border: 1px solid var(--shadcn-border);
    border-collapse: separate;
    border-radius: var(--shadcn-radius-lg);
    border-spacing: 0;
    overflow: hidden;
    font-size: 0.8125rem;
}

.component-evidence__matrix caption {
    padding-block-end: 0.5rem;
    color: var(--shadcn-muted-foreground);
    text-align: start;
}

.component-evidence__matrix :is(th, td) {
    border-block-end: 1px solid var(--shadcn-border);
    padding: 0.75rem;
    text-align: start;
}

.component-evidence__matrix tr:last-child :is(th, td) {
    border-block-end: 0;
}

.component-evidence__matrix td {
    color: var(--shadcn-muted-foreground);
}

.component-dossier__pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-block-start: 2rem;
    border-block-start: 1px solid var(--shadcn-border);
}

.component-dossier__pagination a {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    color: var(--shadcn-foreground);
    padding: 1rem;
    text-decoration: none;
}

.component-dossier__pagination a:last-child {
    grid-column: 2;
    text-align: end;
}

.component-dossier__pagination a:hover {
    background: var(--shadcn-accent);
}

.component-dossier__pagination span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.showcase-pagination-demo {
    inline-size: min(100%, 40rem);
    margin-inline: auto;
    padding: 1.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
}

.showcase-pagination-demo__header,
.showcase-pagination-demo__list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-pagination-demo__header {
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-pagination-demo__header h3,
.showcase-pagination-demo__header p {
    margin: 0;
}

.showcase-pagination-demo__header p,
.showcase-pagination-demo__list span,
.showcase-pagination-demo__range {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
}

.showcase-pagination-demo__range {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.showcase-pagination-demo__list {
    display: grid;
    margin-block: .5rem 1rem;
}

.showcase-pagination-demo__list article {
    min-block-size: 3.25rem;
    padding-block: .625rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-pagination-demo__list article > div {
    display: grid;
    gap: .125rem;
}

.showcase-pagination-demo__list article > span {
    text-align: end;
}

@media (max-width: 36rem) {
    .showcase-pagination-demo { padding: 1rem; }
    .showcase-pagination-demo__list article { align-items: start; }
    .showcase-pagination-demo .shadcn-pagination-content { gap: .125rem; }
}

@media (max-width: 80rem) {
    .documentation-trigger--outline,
    .documentation-outline .documentation-panel-close {
        display: inline-flex;
        align-items: center;
    }

    .documentation-workbench {
        grid-template-areas: "catalog content";
        grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    }

    .documentation-outline {
        position: fixed;
        z-index: 26;
        inset-block: 3.5rem 0;
        inset-inline-end: 0;
        inline-size: min(20rem, 88vw);
        border-inline-start: 1px solid var(--shadcn-border);
        box-shadow: var(--shadcn-shadow-lg);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 150ms ease, visibility 150ms;
    }

    [dir="rtl"] .documentation-outline {
        transform: translateX(-105%);
    }

    .documentation-outline[data-open="true"] {
        transform: translateX(0);
        visibility: visible;
    }

    .documentation-backdrop[data-open="true"] {
        position: fixed;
        z-index: 25;
        inset-block: 3.5rem 0;
        inset-inline: 0;
        display: block;
        border: 0;
        background: color-mix(in oklch, var(--shadcn-foreground) 32%, transparent);
    }
}

@media (max-width: 48rem) {
    .documentation-trigger--catalog,
    .documentation-catalog .documentation-panel-close {
        display: inline-flex;
        align-items: center;
    }

    .documentation-workbench {
        display: block;
    }

    .documentation-catalog {
        position: fixed;
        z-index: 26;
        inset-block: 3.5rem 0;
        inset-inline-start: 0;
        inline-size: min(20rem, 88vw);
        border-inline-end: 1px solid var(--shadcn-border);
        box-shadow: var(--shadcn-shadow-lg);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 150ms ease, visibility 150ms;
    }

    [dir="rtl"] .documentation-catalog {
        transform: translateX(105%);
    }

    .documentation-catalog[data-open="true"] {
        transform: translateX(0);
        visibility: visible;
    }

    .documentation-content {
        padding-inline: 1rem;
    }

    .component-dossier__heading,
    .component-code__header {
        flex-direction: column;
    }

    .component-state-tags {
        justify-content: flex-start;
    }

    .component-preview__canvas {
        min-block-size: 10rem;
        padding: 1rem;
    }
}

@media (max-width: 40rem) {
    .documentation-brand {
        display: none;
    }

    .documentation-header,
    .documentation-header__leading,
    .documentation-header__actions {
        gap: 0.375rem;
    }

    .documentation-header {
        padding-inline: 0.5rem;
    }

    .documentation-trigger,
    .documentation-icon-action {
        inline-size: 2.5rem;
        padding-inline: 0;
        font-size: 0.8125rem;
    }

    .documentation-landing__principles,
    .documentation-landing__installation {
        grid-template-columns: 1fr;
    }

    .documentation-landing__section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .documentation-catalog,
    .documentation-outline {
        transition: none;
    }
}

.showcase-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in oklch, var(--shadcn-primary) 5%, transparent) 0, transparent 28rem),
        var(--shadcn-background);
    color: var(--shadcn-foreground);
}

.showcase-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid color-mix(in oklch, var(--shadcn-border) 82%, transparent);
    background: color-mix(in oklch, var(--shadcn-background) 88%, transparent);
    backdrop-filter: blur(16px);
}

.showcase-header__inner {
    display: grid;
    grid-template-columns: minmax(15rem, auto) 1fr auto;
    align-items: center;
    gap: 1.5rem;
    width: min(100% - 2rem, 70rem);
    min-height: 4.25rem;
    margin-inline: auto;
}

.showcase-brand {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    color: var(--shadcn-foreground) !important;
}

.showcase-brand__mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadcn-shadow-xs);
}

.showcase-brand__copy {
    display: grid;
    min-width: 0;
    gap: 0.05rem;
    overflow-wrap: anywhere;
}

.showcase-brand__copy strong {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.showcase-brand__copy small {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
}

.showcase-nav {
    display: flex;
    align-items: center;
}

.showcase-nav__link {
    border-radius: var(--shadcn-radius-md);
    color: var(--shadcn-foreground) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
}

.showcase-nav__link:hover {
    background: var(--shadcn-accent);
}

.showcase-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-main {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
    padding-block: 3.5rem 4.5rem;
}

.theme-studio-main {
    inline-size: 100%;
    max-inline-size: none;
    padding-inline: clamp(1rem, 3vw, 3rem);
}

.foundation-page {
    display: grid;
    gap: 3rem;
}

.semantic-foundations {
    display: grid;
    gap: 2rem;
}

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

.semantic-fixture-card {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-xs);
}

.semantic-fixture-card > * + * {
    margin-top: 1.25rem;
}

.ratio-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.75fr);
    align-items: start;
    gap: 0.75rem;
}

.ratio-grid .shadcn-aspect-ratio {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
}

.ratio-grid .shadcn-aspect-ratio__content {
    display: grid;
    place-items: center;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
}

.semantic-fixture-card input {
    width: 100%;
    min-width: 0;
    min-height: var(--shadcn-control-height);
    border: 1px solid var(--shadcn-input);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.75rem;
}

.semantic-fixture-card input:focus-visible,
.semantic-fixture-card button:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 2px;
}

.semantic-fixture-card button {
    min-height: var(--shadcn-control-height);
    border: 0;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    padding-inline: 1rem;
    font-weight: 500;
}

.foundation-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-xs);
}

.foundation-eyebrow {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foundation-hero h1,
.foundation-section h2,
.foundation-hero p,
.foundation-section p {
    margin: 0;
}

.foundation-hero h1 {
    max-width: 42rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.foundation-hero p {
    max-width: 42rem;
    margin-top: 1rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.foundation-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.375rem;
    max-width: 18rem;
}

.foundation-meta span {
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    background: var(--shadcn-background);
    color: var(--shadcn-muted-foreground);
    padding: 0.35rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.foundation-section {
    display: grid;
    gap: 1.25rem;
}

.foundation-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.foundation-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.foundation-section p {
    margin-top: 0.35rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.8125rem;
}

.foundation-section__heading > code,
.token-card__meta code,
.primitive-card code {
    color: var(--shadcn-muted-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: 0.6875rem;
}

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

.token-card,
.primitive-card {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-xs);
}

.token-swatch {
    display: grid;
    min-height: 8rem;
    place-items: center;
    border-bottom: 1px solid var(--shadcn-border);
    font-size: 1.5rem;
    font-weight: 600;
}

.token-swatch--background {
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
}

.token-swatch--primary {
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.token-swatch--muted {
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
}

.token-swatch--destructive {
    background: var(--shadcn-destructive);
    color: var(--shadcn-destructive-foreground);
}

.token-card__meta {
    display: grid;
    gap: 0.2rem;
    padding: 0.875rem 1rem;
}

.token-card__meta strong,
.primitive-card strong {
    font-size: 0.8125rem;
    font-weight: 550;
}

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

.primitive-card {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 7rem;
    padding: 1rem;
}

.primitive-card > div:last-child {
    display: grid;
    gap: 0.25rem;
}

.radius-sample,
.shadow-sample,
.control-sample {
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid var(--shadcn-border);
    background: var(--shadcn-muted);
}

.radius-sample {
    border-radius: var(--shadcn-radius-md);
}

.shadow-sample {
    border: 0;
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    box-shadow: var(--shadcn-shadow-sm);
}

.control-sample {
    display: grid;
    height: var(--shadcn-control-height);
    place-items: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    font-size: 0.6875rem;
    font-weight: 600;
}

.showcase-footer {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
    border-top: 1px solid var(--shadcn-border);
    color: var(--shadcn-muted-foreground);
    padding-block: 1.5rem 2rem;
    font-size: 0.75rem;
}

@media (max-width: 56rem) {
    .showcase-header__inner {
        grid-template-columns: 1fr auto;
        padding-block: 0.75rem;
    }

    .showcase-nav {
        display: none;
    }

    .foundation-hero {
        align-items: start;
        flex-direction: column;
    }

    .foundation-meta {
        justify-content: flex-start;
        max-width: none;
    }

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

@media (max-width: 40rem) {
    .showcase-header__inner {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .showcase-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .showcase-main {
        padding-block: 1.5rem 3rem;
    }

    .foundation-page {
        gap: 2rem;
    }

    .foundation-hero {
        padding: 1.5rem;
    }

    .foundation-hero h1 {
        font-size: 2rem;
    }

    .token-grid,
    .primitive-grid,
    .semantic-fixture-grid {
        grid-template-columns: 1fr;
    }

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

}

/* Theme Studio */
.theme-studio {
    display: grid;
    inline-size: 100%;
    max-inline-size: none;
    min-width: 0;
    gap: 1rem;
    padding-inline: clamp(1rem, 3vw, 3rem);
}

.theme-studio-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-xs);
}

.theme-studio-hero > div {
    min-width: 0;
}

.theme-studio-hero h1,
.theme-studio-hero p,
.theme-inspector h2,
.theme-inspector h3,
.theme-inspector p,
.theme-validation-summary p {
    margin: 0;
}

.theme-studio-hero h1 {
    max-width: 48rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.theme-studio-hero p {
    max-width: 50rem;
    margin-top: 0.75rem;
    color: var(--shadcn-muted-foreground);
    line-height: 1.6;
}

.theme-studio-eyebrow,
.theme-inspector__eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-studio-docs-link {
    display: inline-grid;
    min-width: max-content;
    min-height: 2.75rem;
    place-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    color: var(--shadcn-foreground);
    padding-inline: 1rem;
    text-decoration: none;
}

.theme-preview-toolbar {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
}

.theme-toolbar-group,
.theme-history-actions,
.theme-preview-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.theme-preview-toolbar .shadcn-button,
.theme-history-actions .shadcn-button,
.theme-inspector-group__heading .shadcn-button,
.theme-token-control .shadcn-button,
.theme-studio-docs-link {
    min-height: 2.75rem;
}

.theme-studio-workbench {
    display: grid;
    grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    min-width: 0;
}

.theme-inspector,
.theme-preview-region,
.theme-preview-stage,
.theme-preview-scope,
.theme-preview-card {
    min-width: 0;
}

.theme-inspector {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
}

.theme-inspector__sticky-heading,
.theme-inspector-group__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.theme-inspector h2 {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.theme-inspector h3,
.theme-validation-summary h3 {
    font-size: 0.875rem;
    font-weight: 650;
}

.theme-inspector-group__heading p,
.theme-validation-summary p {
    margin-top: 0.25rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    line-height: 1.45;
}

.theme-dirty-indicator {
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    color: var(--shadcn-muted-foreground);
    padding: 0.25rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 650;
}

.theme-dirty-indicator[data-dirty="true"] {
    border-color: var(--shadcn-primary);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.theme-inspector-actions,
.theme-inspector-group,
.theme-control-grid,
.theme-validation-summary {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.theme-history-actions {
    justify-content: stretch;
}

.theme-history-actions .shadcn-button {
    flex: 1 1 5rem;
}

.theme-inspector-group,
.theme-validation-summary {
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--shadcn-border);
}

.theme-validation-summary[data-valid="false"] {
    border: 1px solid color-mix(in oklch, var(--shadcn-destructive) 60%, var(--shadcn-border));
    border-radius: var(--shadcn-radius-md);
    background: color-mix(in oklch, var(--shadcn-destructive) 5%, var(--shadcn-background));
    padding: 0.75rem;
}

.theme-generator-options {
    display: grid;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid color-mix(in srgb, var(--shadcn-border) 78%, transparent);
    border-radius: var(--shadcn-radius-lg);
    background: color-mix(in srgb, var(--shadcn-muted) 42%, transparent);
}

.theme-generator-options__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
}

.theme-generator-field,
.theme-palette-share {
    display: grid;
    gap: .35rem;
    min-width: 0;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-weight: 600;
}

.theme-palette-recipe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .625rem;
    padding-top: .75rem;
    border-top: 1px solid var(--shadcn-border);
}

.theme-palette-recipe__heading,
.theme-palette-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.theme-palette-recipe__heading span,
.theme-palette-recipe > p {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.theme-palette-seed { min-width: 0; }
.theme-palette-actions { justify-content: flex-start; }
.theme-palette-recipe > p,
.theme-palette-share { grid-column: 1 / -1; margin: 0; }

.theme-preview-scope[data-theme-menu-accent="subtle"] .mock-sidebar [data-slot="item"][data-variant="muted"],
.theme-preview-scope[data-theme-menu-accent="subtle"] .mock-sidebar [data-testid="operations-nav-overview"] {
    background: color-mix(in srgb, var(--shadcn-muted) 72%, transparent);
}

.theme-preview-scope[data-theme-menu-accent="bold"] .mock-sidebar [data-slot="item"][data-variant="muted"],
.theme-preview-scope[data-theme-menu-accent="bold"] .mock-sidebar [data-testid="operations-nav-overview"] {
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.theme-preview-scope[data-theme-menu-color="muted"] .mock-sidebar {
    background: var(--shadcn-muted);
}

.theme-preview-scope[data-theme-menu-color="inverted"] .mock-sidebar {
    background: var(--shadcn-foreground);
    color: var(--shadcn-background);
}

.theme-preview-scope[data-theme-menu-color="translucent"] .mock-sidebar {
    background: color-mix(in srgb, var(--shadcn-sidebar) 78%, transparent);
    backdrop-filter: blur(12px);
}

.theme-preview-scope[data-theme-base-color="stone"] .mock-brand-mark,
.theme-preview-scope[data-theme-base-color="stone"] .mock-button:not(.mock-button-outline) {
    background: oklch(0.45 0.035 56) !important;
}

.theme-preview-scope[data-theme-base-color="zinc"] .mock-brand-mark,
.theme-preview-scope[data-theme-base-color="zinc"] .mock-button:not(.mock-button-outline) {
    background: oklch(0.45 0.02 286) !important;
}

.theme-preview-scope[data-theme-base-color="slate"] .mock-brand-mark,
.theme-preview-scope[data-theme-base-color="slate"] .mock-button:not(.mock-button-outline) {
    background: oklch(0.45 0.04 265) !important;
}

.theme-validation-list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    color: var(--shadcn-muted-foreground);
    padding-inline-start: 1.25rem;
    font-size: 0.75rem;
}

.theme-token-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 2.5rem);
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.theme-native-control {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
}

.theme-native-control :is(input, select) {
    inline-size: 100%;
    min-width: 0;
    color: var(--shadcn-foreground);
}

.theme-token-control:target {
    outline: max(2px, var(--shadcn-focus-ring-width)) solid var(--shadcn-ring);
    outline-offset: var(--shadcn-focus-ring-offset);
}

.theme-color-picker {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    cursor: pointer;
    padding: 0.25rem;
}

.theme-preview-region {
    position: sticky;
    top: 1rem;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-muted);
}

.theme-preview-stage {
    width: min(100%, var(--theme-preview-width));
    max-width: 100%;
    margin-inline: auto;
}

.theme-preview-settings {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-block-end: .65rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
    line-height: 1.3;
}

.theme-preview-settings span {
    display: inline-flex;
    gap: .25rem;
    align-items: center;
    min-block-size: 1.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    background: var(--shadcn-card);
    padding-inline: .55rem;
}

.theme-preview-settings strong {
    color: var(--shadcn-foreground);
    font-weight: 650;
}

.theme-preview-scope {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
}

.theme-preview-card {
    display: grid;
    gap: 1rem;
    min-height: min(32rem, 58vh);
    align-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    border-block-start: 4px solid var(--shadcn-primary);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-md);
    transition: border-color var(--shadcn-motion-duration) var(--shadcn-motion-easing), background-color var(--shadcn-motion-duration) var(--shadcn-motion-easing);
}

.theme-preview-card > * {
    max-width: 42rem;
}

.theme-preview-kicker {
    color: var(--shadcn-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-preview-card [data-slot="item-group"] {
    width: 100%;
}

@media (max-width: 64rem) {
    .theme-studio-workbench {
        grid-template-columns: 1fr;
    }

    .theme-preview-region {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 48rem) {
    .theme-studio-hero {
        align-items: start;
        flex-direction: column;
        padding: 1rem;
    }

    .theme-studio-docs-link {
        width: 100%;
    }

    .theme-preview-toolbar,
    .theme-toolbar-group {
        width: 100%;
    }

    .theme-toolbar-group .shadcn-button {
        flex: 1 1 5rem;
    }

    .theme-preview-region,
    .theme-inspector {
        padding: 0.75rem;
    }

    .theme-preview-card {
        min-height: 24rem;
    }

    .theme-generator-options__grid,
    .theme-palette-recipe {
        grid-template-columns: 1fr;
    }

    .theme-palette-recipe > *,
    .theme-palette-share {
        grid-column: 1;
    }
}

@media (max-width: 22rem) {
    .theme-inspector__sticky-heading,
    .theme-inspector-group__heading {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-token-control {
        grid-template-columns: repeat(3, 2.5rem);
    }

    .theme-token-control .theme-native-control {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-preview-stage,
    .theme-preview-card {
        transition-duration: 0.001ms !important;
    }
}

@media (forced-colors: active) {
    .theme-preview-scope,
    .theme-preview-card,
    .theme-inspector,
    .theme-preview-toolbar,
    .theme-color-picker {
        border-color: CanvasText;
    }

    .theme-generator-options,
    .theme-palette-recipe {
        border-color: CanvasText;
    }

    .theme-dirty-indicator[data-dirty="true"] {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
}

/* Task 6: deterministic theme mock sites. */
.mock-site-host,
.mock-site,
.mock-site-content,
.mock-request-content,
.mock-customer-content,
.mock-table-card,
.mock-table-scroll,
.mock-detail-sheet {
    min-width: 0;
}

.mock-site-host {
    width: min(100%, var(--mock-site-preview-width));
    max-width: 100%;
    margin-inline: auto;
}

.mock-site {
    position: relative;
    min-height: min(45rem, 76vh);
    overflow: hidden;
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    font-size: 0.8125rem;
}

.mock-operations {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
}

.mock-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border-inline-end: 1px solid var(--shadcn-sidebar-border);
    background: var(--shadcn-sidebar);
    color: var(--shadcn-sidebar-foreground);
}

.mock-brand,
.mock-customer-name,
.mock-header-actions,
.mock-product-header,
.mock-page-heading,
.mock-table-card > header,
.mock-chart-card figcaption,
.mock-pagination,
.mock-message-list article header {
    display: flex;
    min-width: 0;
    align-items: center;
}

.mock-brand,
.mock-customer-name {
    gap: 0.65rem;
}

.mock-brand > div:last-child,
.mock-customer-name > span:last-child,
.mock-table-card > header > div,
.mock-chart-card figcaption > div {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.mock-brand span,
.mock-customer-name small,
.mock-table-card > header span,
.mock-chart-card figcaption span,
.mock-product-header .mock-brand span,
.mock-page-heading p,
.mock-quote-card small {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
}

.mock-brand-mark,
.mock-avatar,
.mock-success-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    font-weight: 750;
}

.mock-brand-mark { width: 2rem; height: 2rem; }
.mock-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; font-size: 0.6875rem; }
.mock-success-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; font-size: 1.5rem; }

.mock-sidebar [data-slot="item-group"] { gap: 0.25rem; }
.mock-sidebar [data-slot="item"] { border: 0; padding: 0.55rem 0.65rem; }
.mock-sidebar-note { margin-block-start: auto; padding: 0.75rem; border: 1px solid var(--shadcn-sidebar-border); border-radius: var(--shadcn-radius-md); }

.mock-site-mobile-header { display: none; }
.mock-site-content,
.mock-request-content,
.mock-customer-content { padding: clamp(0.75rem, 2vw, 1.5rem); }
.mock-site-content,
.mock-request-content,
.mock-customer-content,
.mock-success-state { display: grid; align-content: start; gap: 1rem; }

.mock-page-heading,
.mock-product-header,
.mock-table-card > header,
.mock-chart-card figcaption,
.mock-pagination { justify-content: space-between; gap: 0.75rem; }
.mock-page-heading > div:first-child { min-width: 0; }

.mock-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.mock-summary-card,
.mock-chart-card,
.mock-queue-card,
.mock-table-card,
.mock-form-card,
.mock-quote-card {
    min-width: 0;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-xs);
}

.mock-summary-card { display: grid; gap: 0.25rem; padding: 0.85rem; }
.mock-summary-card > span,
.mock-summary-card small { color: var(--shadcn-muted-foreground); font-size: 0.6875rem; }
.mock-summary-card strong { font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -0.04em; }

.mock-content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr); gap: 0.65rem; }
.mock-chart-card,
.mock-queue-card,
.mock-form-card,
.mock-quote-card { padding: 1rem; }
.mock-chart-card { margin: 0; }
.mock-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 10rem; align-items: end; gap: 0.45rem; padding-block-start: 1rem; }
.mock-chart-column { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 0.3rem; text-align: center; }
.mock-chart-column span { display: block; min-height: 0.25rem; border-radius: 0; background: var(--shadcn-chart-1); }
.mock-chart-column:nth-child(2n) span { background: var(--shadcn-chart-2); }
.mock-chart-column small { color: var(--shadcn-muted-foreground); font-size: 0.625rem; }
.mock-queue-card dl { display: grid; gap: 0.6rem; margin: 1rem 0; }
.mock-queue-card dl div { display: flex; justify-content: space-between; }
.mock-queue-card dt { color: var(--shadcn-muted-foreground); }
.mock-queue-card dd { margin: 0; font-weight: 700; }

.mock-progress-track { height: 0.45rem; overflow: hidden; border-radius: 999px; background: var(--shadcn-secondary); }
.mock-progress-track span { display: block; height: 100%; background: var(--shadcn-primary); transition: width var(--shadcn-motion-duration) var(--shadcn-motion-easing); }

.mock-table-card { overflow: hidden; }
.mock-table-card > header { padding: 0.85rem 1rem; border-block-end: 1px solid var(--shadcn-border); }
.mock-inline-actions,
.mock-state-controls,
.mock-context-actions,
.mock-form-actions,
.mock-dialog-actions { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.mock-search { display: block; min-width: min(100%, 11rem); flex: 1 1 11rem; }
.mock-site input,
.mock-site textarea,
.mock-search input { width: 100%; min-height: 2.5rem; border: 1px solid var(--shadcn-input); border-radius: var(--shadcn-radius-md); background: var(--shadcn-background); color: var(--shadcn-foreground); padding: 0.55rem 0.7rem; font: inherit; }
.mock-site .shadcn-select { width: 100%; }
.mock-site textarea { min-height: 6rem; resize: vertical; }
.mock-site input:focus-visible,
.mock-site textarea:focus-visible,
.mock-site button:focus-visible,
.mock-site summary:focus-visible,
.mock-site a:focus-visible { outline: var(--shadcn-focus-ring-width) solid var(--shadcn-ring); outline-offset: var(--shadcn-focus-ring-offset); }

.mock-action-menu { position: relative; }
.mock-action-menu summary,
.mock-button,
.mock-state-controls button,
.mock-table-action,
.mock-icon-button,
.mock-tabs button,
.mock-pagination button { min-height: 2.5rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); background: var(--shadcn-background); color: var(--shadcn-foreground); padding: 0.45rem 0.7rem; font: inherit; cursor: pointer; }
.mock-action-menu summary { display: grid; place-items: center; list-style: none; }
.mock-button { min-height: 2.5rem; border: 1px solid var(--shadcn-primary); border-radius: var(--shadcn-radius-md); background: var(--shadcn-primary); color: var(--shadcn-primary-foreground); padding: 0.5rem 0.85rem; font: inherit; font-weight: 650; cursor: pointer; }
.mock-button-outline { border-color: var(--shadcn-border); background: var(--shadcn-background); color: var(--shadcn-foreground); }
.mock-button-ghost { border-color: transparent; background: transparent; color: var(--shadcn-foreground); }
.mock-button:disabled { cursor: not-allowed; opacity: 0.5; }
.mock-action-menu[open] > div { position: absolute; inset-block-start: calc(100% + 0.35rem); inset-inline-end: 0; z-index: 2; display: grid; min-width: 8rem; padding: 0.35rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); background: var(--shadcn-popover); color: var(--shadcn-popover-foreground); box-shadow: var(--shadcn-shadow-md); }
.mock-action-menu > div button { min-height: 2.5rem; border: 0; background: transparent; color: inherit; text-align: start; }
.mock-checkbox { width: 1rem !important; min-height: 1rem !important; accent-color: var(--shadcn-primary); }

.mock-table-scroll { max-width: 100%; overflow-x: auto; }
.mock-site table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.mock-site th,
.mock-site td { padding: 0.7rem 0.8rem; border-block-end: 1px solid var(--shadcn-border); text-align: start; vertical-align: middle; }
.mock-site thead th { color: var(--shadcn-muted-foreground); font-size: 0.6875rem; font-weight: 650; }
.mock-site tbody th { font-weight: 650; }
.mock-site tbody td > span,
.mock-site tbody td > strong { display: block; }
.mock-site tbody td > span:not(.mock-badge) { color: var(--shadcn-muted-foreground); font-size: 0.6875rem; }

.mock-badge,
.mock-count { display: inline-grid; min-height: 1.5rem; place-items: center; border-radius: 999px; background: var(--shadcn-secondary); color: var(--shadcn-secondary-foreground); padding-inline: 0.55rem; font-size: 0.625rem; font-weight: 700; }
.mock-pagination { padding: 0.65rem 1rem; }
.mock-pagination div { display: flex; gap: 0.35rem; }
.mock-skeleton-stack { display: grid; gap: 0.6rem; padding: 1rem; }
.mock-skeleton-stack span { height: 3rem; border-radius: var(--shadcn-radius-md); background: linear-gradient(90deg, var(--shadcn-muted), var(--shadcn-secondary), var(--shadcn-muted)); background-size: 200% 100%; animation: mock-shimmer 1.2s linear infinite; }
.mock-alert { display: grid; gap: 0.4rem; margin: 1rem; padding: 0.85rem; border: 1px solid var(--shadcn-destructive); border-radius: var(--shadcn-radius-md); color: var(--shadcn-foreground); }
.mock-toast { position: absolute; inset-block-end: 0.75rem; inset-inline-end: 0.75rem; max-width: min(20rem, calc(100% - 1.5rem)); border-radius: var(--shadcn-radius-md); background: var(--shadcn-foreground); color: var(--shadcn-background); box-shadow: var(--shadcn-shadow-lg); padding: 0.65rem 0.85rem; }
.mock-toast:empty { display: none; }

.mock-product-header { padding: 0.75rem 1rem; border-block-end: 1px solid var(--shadcn-border); background: var(--shadcn-card); }
.mock-stepper { display: flex; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.mock-stepper li { display: flex; align-items: center; gap: 0.35rem; color: var(--shadcn-muted-foreground); font-size: 0.6875rem; }
.mock-stepper li span { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border: 1px solid var(--shadcn-border); border-radius: 50%; }
.mock-stepper li[data-active="true"] { color: var(--shadcn-primary); font-weight: 700; }
.mock-stepper li[data-active="true"] span { border-color: var(--shadcn-primary); background: var(--shadcn-primary); color: var(--shadcn-primary-foreground); }
.mock-request-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(13rem, 0.8fr); align-items: start; gap: 1rem; }
.mock-form-card [data-slot="field-group"] { gap: 0.85rem; margin-block-start: 1rem; }
.mock-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.mock-drop-zone { display: grid; width: 100%; min-height: 5rem; place-items: center; gap: 0.25rem; border: 1px dashed var(--shadcn-primary); border-radius: var(--shadcn-radius-md); background: var(--shadcn-muted); color: var(--shadcn-foreground); padding: 0.8rem; font: inherit; }
.mock-drop-zone span { color: var(--shadcn-muted-foreground); font-size: 0.6875rem; }
.mock-quote-card { position: sticky; top: 0.75rem; display: grid; gap: 0.8rem; }
.mock-quote-card [data-slot="item"] { padding-inline: 0; }
.mock-estimate { display: grid; gap: 0.15rem; }
.mock-estimate strong { font-size: 1.6rem; letter-spacing: -0.04em; }
.mock-success-state { max-width: 32rem; justify-items: center; margin: 3rem auto; text-align: center; }
.mock-success-state [data-slot="item"] { width: 100%; text-align: start; }

.mock-dialog-backdrop,
.mock-sheet-backdrop { position: absolute; inset: 0; z-index: 4; display: grid; background: color-mix(in srgb, var(--shadcn-foreground) 45%, transparent); }
.mock-dialog-backdrop { place-items: center; padding: 1rem; }
.mock-dialog { display: grid; width: min(28rem, 100%); gap: 1rem; padding: 1.25rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: var(--shadcn-popover); color: var(--shadcn-popover-foreground); box-shadow: var(--shadcn-shadow-lg); }

.mock-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.mock-breadcrumb li + li::before { content: "/"; margin-inline-end: 0.35rem; color: var(--shadcn-muted-foreground); }
.mock-breadcrumb a { color: var(--shadcn-muted-foreground); }
.mock-customer-toolbar { display: flex; min-width: 0; flex-wrap: wrap; gap: 0.65rem; }
.mock-customer-toolbar .mock-search { flex: 1 1 18rem; }
.mock-state-controls { margin-inline-start: auto; }
.mock-header-actions { gap: 0.5rem; }
.mock-icon-button { min-width: 2.5rem; padding: 0; }
.mock-sheet-backdrop { justify-items: end; }
.mock-detail-sheet { display: grid; width: min(30rem, 92%); height: 100%; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; background: var(--shadcn-popover); color: var(--shadcn-popover-foreground); box-shadow: var(--shadcn-shadow-lg); }
.mock-detail-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem; border-block-end: 1px solid var(--shadcn-border); }
.mock-tabs { display: flex; gap: 0.25rem; padding: 0.5rem 1rem 0; border-block-end: 1px solid var(--shadcn-border); }
.mock-tabs button { border-color: transparent; border-block-end-color: transparent; border-radius: var(--shadcn-radius-md) var(--shadcn-radius-md) 0 0; }
.mock-tabs button[aria-selected="true"] { border-block-end-color: var(--shadcn-primary); color: var(--shadcn-primary); }
.mock-detail-panel { min-height: 0; overflow-y: auto; padding: 1rem; }
.mock-timeline { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.mock-timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; }
.mock-timeline li > span { width: 0.65rem; height: 0.65rem; margin-block-start: 0.25rem; border-radius: 50%; background: var(--shadcn-primary); }
.mock-timeline li div { display: grid; gap: 0.2rem; }
.mock-timeline small { color: var(--shadcn-muted-foreground); }
.mock-message-list { display: grid; gap: 0.65rem; margin-block-end: 1rem; }
.mock-message-list article { padding: 0.75rem; border-radius: var(--shadcn-radius-md); background: var(--shadcn-muted); }
.mock-message-list article header { justify-content: space-between; gap: 0.5rem; }
.mock-message-list time { color: var(--shadcn-muted-foreground); font-size: 0.6875rem; }
.mock-message-list p { margin: 0.45rem 0 0; }

@keyframes mock-shimmer { to { background-position: -200% 0; } }

@container (max-width: 56rem) {
    .mock-operations { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
    .mock-site-mobile-header { display: flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.65rem 1rem; border-block-end: 1px solid var(--shadcn-border); }
    .mock-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mock-request-grid { grid-template-columns: 1fr; }
    .mock-quote-card { position: static; }
}

@container (max-width: 38rem) {
    .mock-site { font-size: 0.75rem; }
    .mock-product-header { align-items: flex-start; flex-direction: column; }
    .mock-stepper { width: 100%; justify-content: space-between; }
    .mock-stepper li { flex-direction: column; text-align: center; }
    .mock-page-heading { align-items: stretch; flex-direction: column; }
    .mock-page-heading .shadcn-button,
    .mock-page-heading > .mock-button { width: 100%; }
    .mock-summary-grid,
    .mock-content-grid,
    .mock-field-row { grid-template-columns: 1fr; }
    .mock-state-controls { width: 100%; margin-inline-start: 0; }
    .mock-state-controls button { flex: 1 1 5rem; }
    .mock-detail-sheet { width: 100%; }
}

.theme-preview-scope { container-type: inline-size; }

@media (hover: none), (pointer: coarse) {
    .mock-action-menu summary,
    .mock-action-menu > div button,
    .mock-button,
    .mock-state-controls button,
    .mock-table-action,
    .mock-icon-button,
    .mock-tabs button,
    .mock-pagination button,
    .mock-site input,
    .mock-site .shadcn-select-trigger,
    .mock-site textarea,
    .mock-drop-zone { min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mock-progress-track span { transition-duration: 0.001ms !important; }
    .mock-skeleton-stack span { animation: none; }
}

@media (forced-colors: active) {
    .mock-summary-card,
    .mock-chart-card,
    .mock-queue-card,
    .mock-table-card,
    .mock-form-card,
    .mock-quote-card,
    .mock-dialog,
    .mock-detail-sheet,
    .mock-drop-zone { border-color: CanvasText; }
    .mock-badge,
    .mock-count,
    .mock-brand-mark,
    .mock-avatar,
    .mock-success-icon { outline: 1px solid CanvasText; }
}
/* Theme import/export */
.theme-transfer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(.5rem * var(--shadcn-spacing-multiplier, 1));
}

.theme-transfer-actions button,
.theme-transfer-dialog button,
.theme-code-dialog button {
    min-block-size: 2.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    cursor: pointer;
}

.theme-transfer-dialog {
    inline-size: min(42rem, calc(100vw - 2rem));
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    box-shadow: var(--shadcn-shadow-md);
    padding: 1.25rem;
}

.theme-transfer-dialog::backdrop {
    background: color-mix(in oklab, var(--shadcn-foreground) 35%, transparent);
}

.theme-transfer-dialog__heading,
.theme-bundle-inventory li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.theme-transfer-dialog__heading h2 {
    margin: 0;
}

.theme-transfer-dialog__close {
    inline-size: 2.75rem;
    font-size: 1.25rem;
}

.theme-transfer-dialog input[type="file"] {
    display: block;
    inline-size: 100%;
    margin-block: .5rem;
}

.theme-transfer-dialog__hint,
.theme-transfer-dialog__status,
.theme-bundle-inventory span {
    color: var(--shadcn-muted-foreground);
}

.theme-bundle-inventory {
    list-style: none;
    padding: 0;
}

.theme-bundle-inventory li {
    border-block-end: 1px solid var(--shadcn-border);
    padding-block: .5rem;
}

.theme-transfer-dialog__acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-block: 1rem;
}

.theme-transfer-dialog__primary {
    inline-size: 100%;
    background: var(--shadcn-primary) !important;
    color: var(--shadcn-primary-foreground) !important;
}

.theme-transfer-dialog button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.theme-code-dialog {
    inline-size: min(58rem, calc(100vw - 2rem));
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    box-shadow: var(--shadcn-shadow-lg);
    padding: 1.25rem;
}

.theme-code-dialog::backdrop {
    background: color-mix(in oklab, var(--shadcn-foreground) 35%, transparent);
}

.theme-code-dialog__intro {
    max-inline-size: 48rem;
    color: var(--shadcn-muted-foreground);
}

.theme-code-dialog__tabs,
.theme-code-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-block: 1rem;
}

.theme-code-dialog__tabs button[aria-selected="true"],
.theme-code-dialog__actions button:first-child {
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.theme-code-dialog__code {
    max-block-size: min(52vh, 34rem);
    overflow: auto;
    margin: 0;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    color: var(--shadcn-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: .78rem;
    line-height: 1.6;
    padding: 1rem;
    white-space: pre;
}

.theme-code-dialog__import {
    display: grid;
    gap: .35rem;
    border-block-start: 1px solid var(--shadcn-border);
    padding-block-start: 1rem;
}

.theme-code-dialog__import input[type="file"] {
    inline-size: 100%;
}

@media (forced-colors: active) {
    .theme-transfer-dialog,
    .theme-transfer-actions button,
    .theme-transfer-dialog button,
    .theme-code-dialog,
    .theme-code-dialog button {
        border-color: CanvasText;
    }
}

@media (hover: hover) {
    .showcase-attachment-card:hover,
    .showcase-attachment-file:hover {
        border-color: color-mix(in srgb, var(--shadcn-ring) 35%, var(--shadcn-border));
        box-shadow: var(--shadcn-shadow-sm);
        transform: translateY(-1px);
    }
}

@media (max-width: 40rem) {
    .theme-generator-options__grid {
        grid-template-columns: 1fr;
    }

    .theme-code-dialog {
        inline-size: calc(100vw - 1rem);
        padding: .9rem;
    }

    .showcase-attachment-gallery {
        grid-auto-flow: column;
        grid-auto-columns: minmax(8.5rem, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
        padding-block-end: 0.25rem;
        scroll-snap-type: inline mandatory;
    }

    .showcase-bubble-thread > [data-slot="bubble"] {
        max-width: 88%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-attachment-card,
    .showcase-attachment-file {
        transition: none;
    }
}

/* Documentation surface: a quiet, readable three-column workbench inspired by
   the shadcn documentation rhythm. The center column owns the reading measure;
   the rails stay useful without competing with the page. */
.documentation-root {
    --documentation-header-height: 4rem;
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
}

.documentation-shell {
    min-block-size: 100dvh;
    background: var(--shadcn-background);
}

.documentation-header {
    --documentation-shell-gutter: clamp(0.75rem, 2vw, 1.5rem);
    --documentation-safe-inline-start: env(safe-area-inset-left, 0px);
    --documentation-safe-inline-end: env(safe-area-inset-right, 0px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-block-size: var(--documentation-header-height);
    padding-inline-start: max(var(--documentation-shell-gutter), var(--documentation-safe-inline-start));
    padding-inline-end: max(var(--documentation-shell-gutter), var(--documentation-safe-inline-end));
    background: color-mix(in oklch, var(--shadcn-background) 94%, transparent);
}

.documentation-header:dir(rtl) {
    --documentation-safe-inline-start: env(safe-area-inset-right, 0px);
    --documentation-safe-inline-end: env(safe-area-inset-left, 0px);
}

.documentation-header__leading,
.documentation-header__actions,
.documentation-topnav {
    min-inline-size: 0;
}

.documentation-header__leading {
    grid-column: 1;
    justify-self: start;
}

.documentation-header__actions {
    grid-column: 3;
    justify-self: end;
}

.documentation-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.documentation-brand__mark {
    display: inline-grid;
    inline-size: 2rem;
    block-size: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0;
}

.documentation-topnav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-inline: auto;
}

.documentation-topnav a {
    border-radius: 0.5rem;
    color: var(--shadcn-muted-foreground);
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 550;
    text-decoration: none;
    transition: color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.documentation-topnav a:hover,
.documentation-topnav a[aria-current="page"] {
    background: var(--shadcn-accent);
    color: var(--shadcn-foreground);
}

.documentation-trigger__icon {
    inline-size: 1rem;
    block-size: 1rem;
}

.documentation-icon-action {
    border-color: transparent;
    background: transparent;
}

.documentation-icon-action:hover,
.documentation-trigger:hover {
    border-color: var(--shadcn-border);
    background: var(--shadcn-accent);
}

.documentation-kofi {
    position: relative;
    display: inline-flex;
    min-block-size: 2.5rem;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 0.625rem;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.documentation-kofi__mark {
    position: relative;
    display: grid;
    inline-size: 1.125rem;
    block-size: 1.125rem;
    flex: 0 0 auto;
    place-items: center;
}

.documentation-kofi__cup {
    display: block;
    object-fit: contain;
    inline-size: 1.125rem;
    block-size: 1.125rem;
    transform-origin: 58% 72%;
    transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.documentation-kofi__heart {
    position: absolute;
    z-index: 1;
    inset-block-start: -.5rem;
    inset-inline-end: -.4rem;
    inline-size: .7rem;
    block-size: .7rem;
    overflow: visible;
    color: #ff5e5b;
    fill: currentColor;
    opacity: 0;
    pointer-events: none;
    transform: translateY(.2rem) rotate(-12deg) scale(.3);
}

.documentation-kofi:hover {
    border-color: color-mix(in oklch, var(--shadcn-border) 72%, var(--shadcn-foreground));
    background: var(--shadcn-accent);
}

.documentation-kofi:is(:hover, :focus-visible) .documentation-kofi__cup {
    transform: translateY(-.12rem) rotate(-10deg) scale(1.06);
}

.documentation-kofi:is(:hover, :focus-visible) .documentation-kofi__heart {
    animation: documentation-kofi-heart-pop 560ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes documentation-kofi-heart-pop {
    0% { opacity: 0; transform: translateY(.2rem) rotate(-12deg) scale(.3); }
    38% { opacity: 1; transform: translateY(-.12rem) rotate(8deg) scale(1.18); }
    68% { opacity: 1; transform: translateY(-.34rem) rotate(-4deg) scale(1); }
    100% { opacity: 0; transform: translateY(-.72rem) rotate(4deg) scale(.82); }
}

@media (prefers-reduced-motion: reduce) {
    .documentation-kofi__cup {
        transition: none;
    }

    .documentation-kofi:is(:hover, :focus-visible) .documentation-kofi__cup {
        transform: none;
    }

    .documentation-kofi:is(:hover, :focus-visible) .documentation-kofi__heart {
        animation: none;
    }
}

.documentation-workbench {
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) minmax(13rem, 16rem);
    max-inline-size: none;
    margin-inline: 0;
}

.documentation-catalog,
.documentation-outline {
    inset-block-start: var(--documentation-header-height);
    block-size: calc(100dvh - var(--documentation-header-height));
    background: color-mix(in oklch, var(--shadcn-background) 98%, var(--shadcn-muted));
}

.documentation-catalog-rail,
.documentation-on-this-page {
    padding-block: 2.25rem 4rem;
}

.documentation-panel-header {
    position: sticky;
    z-index: 2;
    inset-block-start: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 2.25rem .75rem;
    padding-inline: 1.25rem;
    background: inherit;
}

.documentation-panel-header h2 {
    margin: 0;
    font-size: .8rem;
    font-weight: 650;
}

.documentation-panel-close {
    min-inline-size: 2.75rem;
    min-block-size: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.documentation-panel-close svg {
    inline-size: 1.125rem;
    block-size: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.documentation-outline .documentation-on-this-page {
    padding-block: 0 max(4rem, env(safe-area-inset-bottom));
    padding-inline: 1.25rem;
}

.documentation-catalog-rail {
    gap: 1.25rem;
    padding-inline: 1.25rem;
}

.documentation-rail__heading h2,
.documentation-on-this-page h2 {
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.documentation-eyebrow,
.documentation-result-count,
.documentation-category h3 {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.documentation-field {
    gap: 0.45rem;
}

.documentation-field span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    font-weight: 600;
}

.documentation-field input {
    block-size: 2.5rem;
    border-radius: 0.5rem;
    background: var(--shadcn-background);
    font-size: 0.8125rem;
}

.documentation-category + .documentation-category {
    margin-block-start: 1.65rem;
}

.documentation-category h3 {
    margin-block-end: 0.5rem;
    font-weight: 700;
}

.documentation-component-list {
    gap: 0.125rem;
}

.documentation-component-list a {
    min-block-size: 2rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: var(--shadcn-muted-foreground);
    padding-inline: 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    transition: color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.documentation-component-list a:hover,
.documentation-component-list a[aria-current="page"] {
    background: var(--shadcn-accent);
    color: var(--shadcn-foreground);
}

.documentation-component-list a[aria-current="page"] {
    border-color: transparent;
    font-weight: 650;
}

.documentation-content {
    padding-block: 3rem;
    padding-inline: 3rem;
}

.component-dossier,
.documentation-landing {
    inline-size: min(100%, 58rem);
    margin-inline: auto;
}

.component-dossier {
    gap: clamp(3.25rem, 6vw, 5rem);
}

.component-dossier__hero {
    gap: 0.9rem;
    border-block-end: 0;
    padding-block-end: 0;
}

.component-dossier__hero h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.component-dossier__hero > p:not(.documentation-eyebrow) {
    max-inline-size: min(75ch, 100%);
    font-size: 1rem;
}

.component-dossier__hero code {
    display: inline-block;
    border: 1px solid var(--shadcn-border);
    border-radius: 0.45rem;
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.component-dossier__preview > h2,
.component-guide > h2,
.component-token-guidance > h2,
.component-reference > h2 {
    font-size: 1.5rem;
    letter-spacing: -0.035em;
}

.component-preview__controls {
    border-radius: 0.6rem;
    background: color-mix(in oklch, var(--shadcn-muted) 72%, var(--shadcn-background));
    padding: 0.875rem;
}

.component-preview__canvas {
    min-block-size: 19rem;
    border-radius: 0.7rem;
    background: var(--shadcn-background);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: none;
}

.showcase-scroll-area-dossier {
    display: grid;
    inline-size: min(100%, 34rem);
    gap: 0.875rem;
}

.showcase-scroll-area-dossier > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-scroll-area-dossier h3,
.showcase-scroll-area-dossier p {
    margin: 0;
}

.showcase-scroll-area-dossier h3 {
    font-size: 0.9375rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.showcase-scroll-area-dossier p {
    margin-block-start: 0.2rem;
    color: var(--shadcn-muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.showcase-scroll-area-mode {
    flex: none;
    border: 1px solid var(--shadcn-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
    font-size: 0.6875rem;
    font-weight: 600;
}

.showcase-scroll-area {
    block-size: 15.5rem;
    inline-size: 100%;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
}

.showcase-scroll-area--horizontal {
    block-size: 13rem;
}

.showcase-production-activity {
    display: grid;
    margin: 0;
    padding: 0.35rem 1.125rem 0.75rem;
    list-style: none;
}

.showcase-production-activity > li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-block-size: 3.75rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-production-activity > li:last-child {
    border-block-end: 0;
}

.showcase-production-activity time {
    color: var(--shadcn-muted-foreground);
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.showcase-production-activity li > div {
    display: grid;
    min-inline-size: 0;
    gap: 0.1rem;
}

.showcase-production-activity strong {
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-production-activity li > div > span,
.showcase-production-activity li > span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.72rem;
    line-height: 1.35;
}

.showcase-production-activity li > span {
    font-weight: 600;
}

.showcase-production-schedule {
    inline-size: 48rem;
    border-collapse: collapse;
    color: var(--shadcn-foreground);
    font-size: 0.75rem;
    text-align: start;
}

.showcase-production-schedule th,
.showcase-production-schedule td {
    min-inline-size: 7.5rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: 0.75rem 0.875rem;
    text-align: start;
    white-space: nowrap;
}

.showcase-production-schedule thead th {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
    font-weight: 600;
}

.showcase-production-schedule tbody th {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: var(--shadcn-card);
    font-weight: 650;
}

@media (max-width: 40rem) {
    .showcase-scroll-area-dossier > header {
        align-items: center;
    }

    .showcase-scroll-area {
        block-size: 17rem;
    }

    .showcase-scroll-area--horizontal {
        block-size: 13rem;
    }

    .showcase-production-activity {
        padding-inline: 0.875rem;
    }

    .showcase-production-activity > li {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.2rem 0.75rem;
        padding-block: 0.65rem;
    }

    .showcase-production-activity time {
        grid-column: 1 / -1;
    }
}

@media (forced-colors: active) {
    .showcase-scroll-area-mode,
    .showcase-scroll-area {
        border-color: CanvasText;
    }
}

.component-code pre,
.component-api__scroller,
.component-evidence__matrix {
    border-radius: 0.7rem;
}

.documentation-on-this-page {
    gap: 1rem;
    padding-inline: 1.25rem;
}

.documentation-on-this-page ul {
    gap: 0.2rem;
    border-inline-start: 0;
    padding-inline-start: 0;
}

.documentation-on-this-page a {
    display: block;
    border-radius: 0.35rem;
    padding-block: 0.3rem;
    padding-inline: 0.45rem;
    font-size: 0.75rem;
}

.documentation-on-this-page a:hover {
    background: var(--shadcn-accent);
}

@media (max-width: 92rem) {
    .documentation-workbench {
        grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr) minmax(12rem, 15rem);
    }
}

@media (max-width: 76rem) {
    .documentation-topnav {
        display: none;
    }

    .documentation-workbench {
        grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    }
}

@media (max-width: 48rem) {
    .documentation-header {
        --documentation-shell-gutter: 0.75rem;
    }

    .documentation-brand span:last-child {
        max-inline-size: 10rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .documentation-kofi {
        inline-size: 2.5rem;
        justify-content: center;
        padding-inline: 0;
    }

    .documentation-kofi__label {
        display: none;
    }

    .documentation-content {
        padding-block: 2.5rem 5rem;
        padding-inline: 1rem;
    }

    .component-dossier__hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 40rem) {
    .documentation-header {
        --documentation-compact-control-size: 2.75rem;
        gap: .25rem;
        padding-inline: .75rem;
    }

    .documentation-header__leading,
    .documentation-header__actions {
        gap: .25rem;
    }

    .documentation-brand {
        display: inline-flex;
        inline-size: var(--documentation-compact-control-size);
        min-inline-size: var(--documentation-compact-control-size);
        block-size: var(--documentation-compact-control-size);
        min-block-size: var(--documentation-compact-control-size);
        justify-content: center;
    }

    .documentation-brand .documentation-brand__mark {
        inline-size: var(--documentation-compact-control-size);
        block-size: var(--documentation-compact-control-size);
    }

    .documentation-brand > span:last-child,
    .documentation-trigger--catalog > span,
    .documentation-trigger--outline > span {
        display: none;
    }

    .documentation-trigger--catalog {
        justify-content: center;
        padding-inline: 0;
    }

    .documentation-version-link {
        inline-size: var(--documentation-compact-control-size);
        min-inline-size: var(--documentation-compact-control-size);
        block-size: var(--documentation-compact-control-size);
        min-block-size: var(--documentation-compact-control-size);
        justify-content: center;
        padding-inline: 0;
        font-size: .5625rem;
    }

    .documentation-trigger,
    .documentation-icon-action {
        inline-size: var(--documentation-compact-control-size);
        min-inline-size: var(--documentation-compact-control-size);
        block-size: var(--documentation-compact-control-size);
        min-block-size: var(--documentation-compact-control-size);
    }

    .documentation-panel-header {
        padding-block-start: max(1rem, env(safe-area-inset-top));
    }
}

/* Component showcase polish: keep examples compact, readable, and interactive. */
.showcase-message-thread > [data-slot="message"] {
    align-items: flex-start;
}

.showcase-message-thread .shadcn-message-content {
    min-inline-size: 0;
}

.showcase-message-thread .shadcn-message-header {
    align-self: flex-start;
    line-height: 1.25;
}

.showcase-message-thread .showcase-message-avatar-image,
.showcase-scroller-frame .showcase-message-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

/* Interactive dossiers should expose popovers and page-level feedback without
   clipping them to the decorative preview frame. */
.component-preview__canvas:has(.shadcn-combobox[data-open="true"]),
.component-preview__canvas:has(.shadcn-date-picker[data-open="true"]),
.component-preview__canvas:has(.shadcn-select[data-open="true"]) {
    overflow: visible;
}

.component-preview__controls:has(.shadcn-select[data-open="true"]) { position: relative; z-index: var(--shadcn-z-popover, 50); }

.showcase-label-dossier {
    display: grid;
    inline-size: min(100%, 38rem);
    gap: 1.5rem;
}

.showcase-label-dossier__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.5rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-block-end: 1rem;
}

.showcase-label-dossier__header h3 {
    margin: 0;
    color: var(--shadcn-foreground);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.showcase-label-dossier__header p {
    max-inline-size: 46ch;
    margin: 0.35rem 0 0;
    color: var(--shadcn-muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.showcase-label-dossier__header > span,
.showcase-label-dossier__preview > span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.showcase-label-dossier__header > span {
    flex: 0 0 auto;
    padding-block-start: 0.125rem;
}

.showcase-label-dossier__field {
    display: grid;
    gap: 0.625rem;
}

.showcase-label-dossier__field .shadcn-input {
    inline-size: 100%;
}

.showcase-label-dossier__field > p {
    margin: 0;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
    line-height: 1.45;
}

.showcase-label-dossier__required {
    color: var(--shadcn-destructive);
    font-size: 0.6875rem;
    font-weight: 500;
}

.showcase-label-dossier__preview {
    display: grid;
    gap: 0.3rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: color-mix(in oklch, var(--shadcn-muted) 55%, var(--shadcn-background));
    padding: 1rem;
    color: var(--shadcn-foreground);
}

.showcase-label-dossier__preview strong {
    overflow-wrap: anywhere;
    font-size: 0.9375rem;
    font-weight: 600;
}

.showcase-label-dossier__preview code {
    overflow-wrap: anywhere;
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

@media (max-width: 34rem) {
    .showcase-label-dossier {
        gap: 1.125rem;
    }

    .showcase-label-dossier__header {
        display: grid;
        gap: 0.25rem;
        padding-block-end: 0.875rem;
    }

    .showcase-label-dossier__header > span {
        padding-block-start: 0;
    }
}

.showcase-button-dossier {
    display: grid;
    inline-size: min(100%, 48rem);
    margin-inline: auto;
    gap: 1.25rem;
}

.showcase-button-dossier__intro {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-block-end: 1rem;
}

.showcase-button-dossier__intro h3 { margin: 0; color: var(--shadcn-foreground); font-size: .9375rem; font-weight: 600; }
.showcase-button-dossier__intro p { max-inline-size: 52ch; margin: .25rem 0 0; color: var(--shadcn-muted-foreground); font-size: .8125rem; line-height: 1.5; }
.showcase-button-dossier__context { flex: 0 0 auto; color: var(--shadcn-muted-foreground); font-size: .75rem; text-align: end; }
.showcase-button-dossier__section { display: grid; gap: .75rem; }
.showcase-button-dossier__section h3 { margin: 0; color: var(--shadcn-foreground); font-size: .8125rem; font-weight: 600; }
.showcase-button-dossier__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; }
.showcase-button-dossier__sizes { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.showcase-button-dossier__icon-sizes { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.showcase-button-dossier__focus-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.showcase-button-dossier__sample { display: grid; justify-items: start; gap: .4rem; min-inline-size: 0; }
.showcase-button-dossier__sample > span { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.showcase-button-dossier__status { display: grid; gap: .25rem; margin: 0; border-block-start: 1px solid var(--shadcn-border); padding-block-start: .875rem; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.4; }
.showcase-button-dossier__status strong { color: var(--shadcn-foreground); font-size: .8125rem; font-weight: 500; }

@media (max-width: 34rem) {
    .showcase-button-dossier { gap: .875rem; }
    .showcase-button-dossier__intro { display: grid; padding-block-end: .75rem; }
    .showcase-button-dossier__context { text-align: start; }
    .showcase-button-dossier__section { gap: .5rem; }
    .showcase-button-dossier__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-button-dossier__sizes,
    .showcase-button-dossier__icon-sizes,
    .showcase-button-dossier__focus-actions { gap: .625rem; }
    .showcase-button-dossier__status { padding-block-start: .625rem; }
}

.showcase-skeleton-layout {
    display: grid;
    inline-size: min(100%, 36rem);
    max-inline-size: 100%;
    gap: 0;
    margin-inline: auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    overflow: hidden;
}
.showcase-skeleton-layout__header {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: 1rem 1.25rem;
}
.showcase-skeleton-layout__header > div { display: grid; min-inline-size: 0; gap: .125rem; }
.showcase-skeleton-layout__header h3 { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.showcase-skeleton-layout__header p { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.45; }
.showcase-skeleton-layout__header .shadcn-button { flex: 0 0 auto; }
.showcase-skeleton-layout__list { display: grid; margin: 0; padding: .25rem 1.25rem; list-style: none; }
.showcase-skeleton-layout__row {
    display: grid;
    min-inline-size: 0;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .875rem;
    padding-block: .875rem;
}
.showcase-skeleton-layout__row + .showcase-skeleton-layout__row { border-block-start: 1px solid var(--shadcn-border); }
.showcase-skeleton-layout__media { inline-size: 3rem; block-size: 3rem; }
.showcase-skeleton-layout__copy { display: grid; min-inline-size: 0; gap: .375rem; }
.showcase-skeleton-layout__copy > :is(strong, span) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-skeleton-layout__copy strong { font-size: .8125rem; font-weight: 550; line-height: 1.35; }
.showcase-skeleton-layout__copy span { color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.35; }
.showcase-skeleton-layout__title { inline-size: min(15rem, 78%); block-size: .875rem; }
.showcase-skeleton-layout__meta { inline-size: min(20rem, 94%); block-size: .6875rem; }
.showcase-skeleton-layout__status { inline-size: 4.75rem; block-size: 1.25rem; border-radius: 9999px; }
.showcase-skeleton-layout__job-mark {
    display: inline-grid;
    inline-size: 3rem;
    block-size: 3rem;
    place-items: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: .75rem;
}

.showcase-slider-values { display: block; margin-block-start: .65rem; color: var(--shadcn-muted-foreground); font-family: var(--shadcn-font-mono); font-size: .75rem; text-align: center; }

.showcase-radio-dossier {
    display: grid;
    inline-size: min(100%, 28rem);
    gap: 1.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    padding: clamp(1rem, 4vw, 1.5rem);
}
.showcase-radio-dossier__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.showcase-radio-dossier__header h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.showcase-radio-dossier__header p { max-inline-size: 34ch; margin: .25rem 0 0; color: var(--shadcn-muted-foreground); font-size: .8125rem; line-height: 1.5; }
.showcase-radio-dossier__header > span { flex: 0 0 auto; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.showcase-radio-dossier .shadcn-radio-group { inline-size: 100%; }
.showcase-radio-dossier .shadcn-radio-control { margin-block-start: .125rem; }
.showcase-radio-dossier__option { display: grid; min-inline-size: 0; gap: .125rem; }
.showcase-radio-dossier__option strong { font-weight: 500; }
.showcase-radio-dossier__option > span { color: var(--shadcn-muted-foreground); font-size: .75rem; font-weight: 400; line-height: 1.4; }
.showcase-radio-dossier__status { margin: 0; border-block-start: 1px solid var(--shadcn-border); padding-block-start: .875rem; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.5; }

@media (max-width: 28rem) {
    .showcase-radio-dossier__header { display: grid; }
}

.showcase-combobox-dossier {
    display: grid;
    position: relative;
    inline-size: min(100%, 26rem);
    justify-items: center;
}
.showcase-combobox-dossier .shadcn-combobox { inline-size: min(100%, 23rem); }
.showcase-combobox-dossier .shadcn-combobox-content { inline-size: 100%; max-inline-size: 100%; }
.showcase-combobox-dossier .shadcn-combobox-input { min-inline-size: 0; }
.showcase-combobox-dossier .shadcn-combobox-control { min-inline-size: 0; }
.showcase-combobox-dossier .shadcn-combobox-item { min-block-size: 2.25rem; }

.showcase-input-group-dossier {
    display: grid;
    inline-size: min(100%, 23rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-toggle-dossier {
    display: grid;
    inline-size: min(100%, 30rem);
    max-inline-size: 100%;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
}

.showcase-toggle-dossier__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: 1rem;
}

.showcase-toggle-dossier__header > div {
    display: grid;
    min-inline-size: 0;
    gap: .125rem;
}

.showcase-toggle-dossier__header strong {
    color: var(--shadcn-foreground);
    font-size: .875rem;
    font-weight: 600;
}

.showcase-toggle-dossier__header span,
.showcase-toggle-dossier__state {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    line-height: 1.4;
}

.showcase-toggle-dossier__state {
    flex: 0 0 auto;
    text-align: end;
}

.showcase-toggle-dossier__toolbar {
    display: flex;
    align-items: center;
    min-block-size: 3.5rem;
    border-block-end: 1px solid var(--shadcn-border);
    background: color-mix(in oklch, var(--shadcn-muted) 54%, var(--shadcn-background));
    gap: .25rem;
    padding-inline: 1rem;
}

.showcase-toggle-dossier__copy {
    margin: 0;
    padding: 1.25rem 1rem 1.5rem;
    color: var(--shadcn-foreground);
    font-size: .875rem;
    line-height: 1.65;
}

.showcase-toggle-dossier__copy[data-bold="true"] { font-weight: 700; }
.showcase-toggle-dossier__copy[data-italic="true"] { font-style: italic; }
.showcase-toggle-dossier__copy[data-underline="true"] { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 34rem) {
    .showcase-toggle-dossier__header { display: grid; }
    .showcase-toggle-dossier__state { text-align: start; }
}
.showcase-textarea-dossier {
    inline-size: min(100%, 34rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-textarea-dossier .shadcn-card-content {
    display: grid;
}

.showcase-textarea-dossier .shadcn-textarea {
    min-block-size: 6.5rem;
    max-block-size: 20rem;
    line-height: 1.5;
}

.showcase-textarea-dossier .shadcn-card-footer {
    justify-content: space-between;
    gap: 1rem;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

@media (max-width: 30rem) {
    .showcase-textarea-dossier .shadcn-card-footer {
        align-items: start;
        flex-direction: column;
        gap: .25rem;
    }
}

.showcase-input-dossier {
    inline-size: min(100%, 30rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-input-dossier .shadcn-card { inline-size: 100%; }
.showcase-input-dossier .shadcn-card-content { display: grid; gap: 1.25rem; }
.showcase-input-dossier .shadcn-card-footer { justify-content: space-between; gap: 1rem; }
.showcase-input-dossier .shadcn-card-footer [role="status"] { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; text-align: end; }

.showcase-input-group-card {
    inline-size: 100%;
    border: 1px solid var(--shadcn-border);
}

.showcase-input-group-card .shadcn-card-content,
.showcase-input-group-field {
    display: grid;
    gap: .5rem;
}

.showcase-input-group-card .shadcn-input-group {
    inline-size: 100%;
}

.showcase-input-group-summary {
    justify-content: space-between;
    gap: 1rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--shadcn-border);
    color: var(--shadcn-muted-foreground);
}

.showcase-input-group-summary output {
    color: var(--shadcn-foreground);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.showcase-otp-card {
    inline-size: min(100%, 28rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-otp-card .shadcn-card-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.showcase-otp-card__heading {
    display: grid;
    gap: .375rem;
    min-inline-size: 0;
}

.showcase-otp-card__heading strong { color: var(--shadcn-foreground); font-weight: 500; }

.showcase-otp-card__secure {
    display: grid;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    place-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: 50%;
    color: var(--shadcn-muted-foreground);
}

.showcase-otp-card__secure svg { inline-size: 1rem; block-size: 1rem; }

.showcase-otp-card .shadcn-card-content {
    display: grid;
    gap: 1rem;
}

.showcase-otp-card__field { display: grid; gap: .625rem; }
.showcase-otp-card__label { color: var(--shadcn-foreground); font-size: .875rem; font-weight: 500; }
.showcase-otp-card__field > .shadcn-input-otp { justify-self: center; }

.showcase-otp-card__status {
    min-block-size: 1.25rem;
    margin: 0;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    line-height: 1.25rem;
}

.showcase-otp-card__status[data-state="error"] { color: var(--shadcn-destructive); }
.showcase-otp-card__status[data-state="success"] { color: var(--shadcn-foreground); font-weight: 500; }
.showcase-otp-card__verify { inline-size: 100%; }

.showcase-otp-card .shadcn-card-footer {
    justify-content: space-between;
    gap: .5rem;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.showcase-otp-card .shadcn-card-footer .shadcn-button { block-size: auto; padding: 0; }

[dir="rtl"] .showcase-otp-card__heading,
[dir="rtl"] .showcase-otp-card__label,
[dir="rtl"] .showcase-otp-card__status,
[dir="rtl"] .showcase-otp-card .shadcn-card-footer > span {
    direction: ltr;
    text-align: right;
}

@media (max-width: 30rem) {
    .showcase-otp-card .shadcn-card-header { grid-template-columns: minmax(0, 1fr); }
    .showcase-otp-card .shadcn-card-action { display: none; }
    .showcase-otp-card .shadcn-card-footer { align-items: flex-start; flex-direction: column; }
}

@media (forced-colors: active) {
    .showcase-otp-card__secure { border-color: ButtonText; }
}

.showcase-select-dossier,
.showcase-date-picker-dossier {
    display: grid;
    inline-size: min(100%, 24rem);
    max-inline-size: 100%;
    justify-items: center;
    margin-inline: auto;
}

.showcase-native-select-dossier {
    display: grid;
    inline-size: min(100%, 28rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-native-select-dossier > .shadcn-card {
    inline-size: 100%;
}

.showcase-native-select-field {
    display: grid;
    gap: .625rem;
}

.showcase-native-select-field .shadcn-native-select-wrapper {
    inline-size: 100%;
}

.showcase-native-select-summary {
    min-block-size: 1.25rem;
    margin: 0;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    line-height: 1.5;
}

.showcase-native-select-dossier .shadcn-card-footer {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    line-height: 1.5;
}

.showcase-select-dossier > .shadcn-select,
.showcase-date-picker-dossier > .shadcn-date-picker {
    inline-size: 100%;
    min-inline-size: 0;
}

@media (max-width: 40rem) {
    .showcase-skeleton-layout__header { display: grid; align-items: start; justify-content: stretch; padding: 1rem; }
    .showcase-skeleton-layout__header .shadcn-button { justify-self: start; }
    .showcase-skeleton-layout__header .shadcn-button { padding-inline: .625rem; white-space: nowrap; }
    .showcase-skeleton-layout__list { padding-inline: 1rem; }
    .showcase-skeleton-layout__row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; }
    .showcase-skeleton-layout__media,
    .showcase-skeleton-layout__job-mark { inline-size: 2.5rem; block-size: 2.5rem; }
    .showcase-skeleton-layout__status,
    .showcase-skeleton-layout__row > .shadcn-badge { grid-column: 2; justify-self: start; }
    .showcase-toast-demo .shadcn-toast-viewport { inset-inline: 1rem; inline-size: auto; max-inline-size: none; }
    .showcase-input-dossier .shadcn-card-footer { flex-direction: column; align-items: stretch; }
    .showcase-input-dossier .shadcn-card-footer [data-slot="button"] { inline-size: 100%; }
    .showcase-input-dossier .shadcn-card-footer [role="status"] { text-align: center; }
}

.showcase-scroller-frame .shadcn-message-scroller-item,
.showcase-scroller-frame .shadcn-message-scroller-item * {
    text-decoration: none;
}

.showcase-avatar-demo {
    display: grid;
    inline-size: min(100%, 42rem);
    max-inline-size: 100%;
    gap: 1rem;
    color: var(--shadcn-foreground);
}

.showcase-avatar-demo__header,
.showcase-avatar-group-preview__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.showcase-avatar-demo__header {
    padding-block-end: .75rem;
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-avatar-demo__header > div {
    display: grid;
    gap: .2rem;
}

.showcase-avatar-demo__header strong,
.showcase-avatar-group-preview__header strong {
    font-size: .875rem;
    font-weight: 650;
}

.showcase-avatar-demo__header span,
.showcase-avatar-demo__state,
.showcase-avatar-group-preview__header span,
.showcase-avatar-profile__copy > span {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.showcase-avatar-demo__state {
    white-space: nowrap;
}

.showcase-avatar-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
}

.showcase-avatar-profile {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .625rem;
    padding: .7rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: color-mix(in oklch, var(--shadcn-card) 82%, var(--shadcn-muted));
    transition: border-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        translate var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.showcase-avatar-profile:hover {
    border-color: var(--shadcn-ring);
    translate: 0 -1px;
}

.showcase-avatar-profile__copy {
    display: grid;
    min-inline-size: 0;
    gap: .15rem;
}

.showcase-avatar-profile__copy strong,
.showcase-avatar-profile__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-avatar-profile__copy strong {
    font-size: .8125rem;
    font-weight: 650;
}

.showcase-avatar-group-preview {
    display: grid;
    gap: .625rem;
    padding-block-start: .875rem;
    border-block-start: 1px solid var(--shadcn-border);
}

.showcase-avatar-group-preview .shadcn-avatar-group {
    inline-size: fit-content;
    max-inline-size: 100%;
    padding-block: .25rem;
}

.showcase-avatar-group-preview__overflow {
    transition: inline-size var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        margin-inline-start var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        opacity var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        scale var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard);
}

.showcase-avatar-group-preview[data-expanded="false"] .showcase-avatar-group-preview__overflow {
    inline-size: 0;
    margin-inline-start: 0;
    opacity: 0;
    pointer-events: none;
    scale: .72;
}

.showcase-avatar-demo .shadcn-avatar {
    flex: 0 0 auto;
}

.showcase-avatar-demo .shadcn-avatar-image[data-state="loaded"] {
    animation: showcase-avatar-image-in var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

@keyframes showcase-avatar-image-in {
    from { opacity: 0; scale: .94; }
    to { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-avatar-profile { transition: none; }
    .showcase-avatar-profile:hover { translate: none; }
    .showcase-avatar-demo .shadcn-avatar-image[data-state="loaded"] { animation: none; }
}

@media (max-width: 36rem) {
    .showcase-avatar-gallery { grid-template-columns: 1fr; }
    .showcase-avatar-demo__header { align-items: flex-start; flex-direction: column; }
}

.showcase-badge-dossier {
    display: grid;
    inline-size: min(100%, 38rem);
    max-inline-size: 100%;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
}

.showcase-badge-dossier__header,
.showcase-badge-dossier__current {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
}

.showcase-badge-dossier__header {
    border-block-end: 1px solid var(--shadcn-border);
}

.showcase-badge-dossier__header > div,
.showcase-badge-dossier__summary {
    display: grid;
    min-inline-size: 0;
    gap: .125rem;
}

.showcase-badge-dossier__header strong,
.showcase-badge-dossier__current strong {
    font-size: .875rem;
    font-weight: 600;
}

.showcase-badge-dossier__header span,
.showcase-badge-dossier__summary > span,
.showcase-badge-dossier__gallery li > span {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.showcase-badge-dossier__header > span {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.showcase-badge-dossier__current {
    background: color-mix(in oklch, var(--shadcn-muted) 45%, transparent);
}

.showcase-badge-dossier__current .shadcn-badge,
.showcase-badge-dossier__gallery .shadcn-badge {
    inline-size: fit-content;
    max-inline-size: 100%;
}

.showcase-badge-dossier__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: .5rem 1.125rem 1rem;
    list-style: none;
}

.showcase-badge-dossier__gallery li {
    display: grid;
    min-inline-size: 0;
    grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding-block: .625rem;
}

.showcase-badge-dossier__gallery li:nth-child(odd) {
    padding-inline-end: 1rem;
}

.showcase-badge-dossier__gallery li:nth-child(even) {
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--shadcn-border);
}

@media (max-width: 36rem) {
    .showcase-badge-dossier__header,
    .showcase-badge-dossier__current {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-badge-dossier__gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase-badge-dossier__gallery li:nth-child(odd),
    .showcase-badge-dossier__gallery li:nth-child(even) {
        padding-inline: 0;
        border-inline-start: 0;
    }

    .showcase-badge-dossier__gallery li + li {
        border-block-start: 1px solid var(--shadcn-border);
    }
}

.showcase-spinner-export {
    display: grid;
    inline-size: min(100%, 27rem);
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
}

.showcase-spinner-export__header,
.showcase-spinner-export__status {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .75rem;
}

.showcase-spinner-export__header > span:last-child,
.showcase-spinner-export__status > span:last-child {
    display: grid;
    min-inline-size: 0;
    gap: .15rem;
}

.showcase-spinner-export__header small,
.showcase-spinner-export__status small {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
}

.showcase-spinner-export__file,
.showcase-spinner-export__paused {
    display: inline-flex;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
}

.showcase-spinner-export__file svg,
.showcase-spinner-export__paused svg {
    inline-size: 1rem;
    block-size: 1rem;
}

.showcase-spinner-export__status {
    min-block-size: 3rem;
    padding-block: .85rem;
    border-block: 1px solid var(--shadcn-border);
}

.showcase-spinner-export__status > .shadcn-state-transition {
    inline-size: 100%;
}

.showcase-spinner-export__status .shadcn-state-transition-pane {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .75rem;
}

.showcase-spinner-export__status .shadcn-state-transition-pane > span:last-child {
    display: grid;
    min-inline-size: 0;
    gap: .15rem;
}

.showcase-spinner-export > .shadcn-button {
    justify-self: end;
}

@media (max-width: 30rem) {
    .showcase-spinner-export { padding: 1rem; }
    .showcase-spinner-export > .shadcn-button { inline-size: 100%; justify-self: stretch; }
}

.showcase-calendar-demo {
    display: grid;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    place-items: center;
    gap: .75rem;
}

.showcase-calendar-panel {
    inline-size: min(100%, 24rem);
}

.showcase-calendar-panel > :is(.shadcn-card-header, .shadcn-card-footer) {
    text-align: center;
}

.showcase-calendar-panel > .shadcn-card-content {
    display: grid;
    min-inline-size: 0;
    place-items: center;
}

.showcase-calendar-panel > .shadcn-card-footer {
    justify-content: center;
}

.showcase-calendar-demo .shadcn-calendar {
    inline-size: fit-content;
    max-inline-size: 100%;
    --shadcn-calendar-cell: 2.25rem;
}

.showcase-calendar-selection {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.showcase-avatar-demo .shadcn-avatar-fallback svg {
    width: 62%;
    height: 62%;
}

/* Keep composed previews inside the padded canvas at phone widths. Intrinsic
   min-content sizing otherwise makes tabs/direction surfaces widen the canvas
   even though their visible content can safely wrap or scroll. */
.component-preview__canvas > :is(.shadcn-tabs, .shadcn-direction) {
    min-inline-size: 0;
    max-inline-size: 100%;
}

@media (max-width: 40rem) {

    .showcase-calendar-demo .shadcn-calendar {
        --shadcn-calendar-cell: clamp(1.875rem, 9.5vw, 2.25rem);
    }
}

.showcase-button-group-dossier {
    display: grid;
    inline-size: min(100%, 42rem);
    gap: 1.5rem;
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-button-group-dossier__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}

.showcase-button-group-dossier__intro h3,
.showcase-button-group-dossier__intro p,
.showcase-button-group-dossier__intro span,
.showcase-button-group-dossier__status {
    margin: 0;
}

.showcase-button-group-dossier__intro h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.showcase-button-group-dossier__intro p,
.showcase-button-group-dossier__intro > span,
.showcase-button-group-dossier__status {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
}

.showcase-button-group-dossier__toolbar {
    display: flex;
    inline-size: 100%;
    min-inline-size: 0;
    justify-content: safe center;
    overflow-x: auto;
    padding: .25rem;
    scrollbar-width: thin;
}

.showcase-button-group-dossier__toolbar > .shadcn-button-group[data-orientation="horizontal"] {
    flex: 0 0 auto;
}

.showcase-button-group-dossier__toolbar > .shadcn-button-group[data-orientation="vertical"] {
    min-inline-size: 12rem;
}

.showcase-button-group-dossier__status {
    min-block-size: 1.25rem;
    text-align: center;
}

@media (max-width: 40rem) {
    .showcase-button-group-dossier {
        padding: .875rem;
    }

    .showcase-button-group-dossier__intro {
        align-items: start;
        flex-direction: column;
    }

    .showcase-button-group-dossier__toolbar {
        justify-content: start;
        padding-inline: 0;
    }

    .showcase-button-group-dossier__toolbar :where(.shadcn-button, .shadcn-button-group-text) {
        padding-inline: .5rem;
        font-size: .8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-button-group-dossier * {
        scroll-behavior: auto;
    }
}

.showcase-data-table {
    display: grid;
    gap: .5rem;
    inline-size: 100%;
    min-inline-size: 0;
}

.showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .75rem;
    padding-block: .25rem .75rem;
}

.showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] .shadcn-data-table-toolbar__filters {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    align-items: center;
    min-inline-size: 0;
    gap: .5rem;
}

.showcase-data-table .shadcn-data-table-filter-control,
.showcase-data-table .shadcn-data-table-column-filter {
    min-inline-size: 0;
}

.showcase-data-table .shadcn-data-table-filter {
    inline-size: 100%;
}

.showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] > .shadcn-data-table-visibility {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: .5rem;
    min-inline-size: 0;
    justify-content: center;
    margin: 0;
    border-color: var(--shadcn-border);
    background: color-mix(in oklch, var(--shadcn-muted) 58%, var(--shadcn-background));
    padding: .35rem .5rem;
    white-space: nowrap;
}

.showcase-data-table .shadcn-data-table-visibility label {
    color: var(--shadcn-foreground);
}

.showcase-data-table-toolbar-summary {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
    white-space: nowrap;
}

.showcase-data-table-export {
    min-block-size: 2.75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    padding-inline: .75rem;
    color: var(--shadcn-primary-foreground);
    font: inherit;
    cursor: pointer;
}

.showcase-data-table-export:focus-visible {
    outline: var(--shadcn-focus-ring-width) solid var(--shadcn-ring);
    outline-offset: var(--shadcn-focus-ring-offset);
}

.showcase-data-table .shadcn-data-table-frame {
    overflow-x: auto;
    border-color: var(--shadcn-border);
    background: var(--shadcn-background);
    scrollbar-gutter: auto;
}

.showcase-data-table .shadcn-data-table-frame .shadcn-table {
    inline-size: 100%;
    min-inline-size: max-content;
    table-layout: auto;
}

.showcase-data-table .shadcn-data-table-frame .shadcn-table-head {
    border-block-end-color: var(--shadcn-border);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .02em;
}

.showcase-data-table .shadcn-data-table-frame .shadcn-table-body .shadcn-table-row:hover {
    background: color-mix(in oklch, var(--shadcn-accent) 42%, var(--shadcn-background));
}

.showcase-data-table .showcase-data-table-row-action {
    display: inline-grid;
    inline-size: 2rem;
    block-size: 2rem;
    place-items: center;
    border: 0;
    border-radius: var(--shadcn-radius-md);
    background: transparent;
    color: var(--shadcn-muted-foreground);
    cursor: pointer;
    transition: background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.showcase-data-table .showcase-data-table-row-action svg {
    inline-size: 1rem;
    block-size: 1rem;
    fill: currentColor;
}

.showcase-data-table .showcase-data-table-row-action:hover,
.showcase-data-table .showcase-data-table-row-action[aria-expanded="true"] {
    background: var(--shadcn-accent);
    color: var(--shadcn-accent-foreground);
}

.showcase-data-table .showcase-data-table-row-action:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 var(--shadcn-focus-ring-width) color-mix(in oklab, var(--shadcn-ring) 50%, transparent);
}

.showcase-data-table [data-slot="data-table-loading"],
.showcase-data-table [data-slot="data-table-error"] {
    display: grid;
    min-block-size: 10rem;
    place-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-muted-foreground);
}

.showcase-data-table [data-slot="data-table-error"] {
    border-color: color-mix(in oklch, var(--shadcn-destructive) 34%, var(--shadcn-border));
    background: color-mix(in oklch, var(--shadcn-destructive) 8%, var(--shadcn-card));
    color: var(--shadcn-destructive);
}

.showcase-data-table .shadcn-data-table-footer {
    flex-wrap: wrap;
    gap: .75rem;
    padding-block: .75rem .25rem;
}

.showcase-data-table .shadcn-data-table-footer [data-slot="data-table-page-summary"] {
    margin-inline-start: auto;
}

/* Keep the semantic table usable on narrow preview canvases. The table keeps
   its readable column minimum, while the component-owned container provides
   the only horizontal scroll instead of widening the documentation page. */
.showcase-table {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    overscroll-behavior-inline: contain;
}

.shadcn-table-container:has(> .showcase-table) {
    inline-size: min(100%, 48rem);
    max-inline-size: 100%;
    margin-inline: auto;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: auto;
}

.shadcn-table.showcase-table {
    inline-size: max-content;
    min-inline-size: 36rem;
    table-layout: auto;
}

.showcase-table__expand-trigger {
    justify-content: flex-start;
    min-inline-size: 0;
    padding-inline: .5rem;
}

.showcase-table__detail-row > .shadcn-table-cell {
    background: color-mix(in srgb, var(--shadcn-muted) 55%, transparent);
}

.showcase-table__detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1.5rem;
    white-space: normal;
}

.showcase-table__detail span {
    display: grid;
    gap: .125rem;
}

@media (max-width: 36rem) {
    .showcase-table__detail { grid-template-columns: 1fr; }
}

.showcase-field-dossier {
    display: grid;
    inline-size: min(100%, 38rem);
    max-inline-size: 100%;
    gap: .875rem;
    color: var(--shadcn-foreground);
}

.showcase-field-dossier__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-block-end: .75rem;
}

.showcase-field-dossier__heading > div {
    display: grid;
    gap: .25rem;
}

.showcase-field-dossier__heading strong {
    font-size: 1rem;
    font-weight: 650;
}

.showcase-field-dossier__heading span,
.showcase-field-dossier__status {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
    line-height: 1.5;
}

.showcase-field-dossier__heading > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.showcase-field-dossier .shadcn-field-group {
    gap: .875rem;
}

.showcase-field-dossier__card-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.showcase-field-dossier .shadcn-field[data-orientation="horizontal"] > :is(.shadcn-input, .shadcn-select) {
    flex: 0 1 20rem;
}

.showcase-field-dossier__security-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.showcase-field-dossier__security-row .shadcn-select,
.showcase-field-dossier__security-row .shadcn-input {
    inline-size: 100%;
    min-inline-size: 0;
}

.showcase-field-dossier__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.showcase-field-dossier__status {
    min-block-size: 1.25rem;
    margin: -.5rem 0 0;
}

@media (max-width: 36rem) {
    .showcase-field-dossier { gap: .75rem; }
    .showcase-field-dossier__heading { display: grid; gap: .5rem; }
    .showcase-field-dossier .shadcn-field-group { gap: .625rem; }
    .showcase-field-dossier__card-row { grid-template-columns: 1fr; gap: .625rem; }
    .showcase-field-dossier .shadcn-field-description { font-size: .75rem; line-height: 1.35; }
    .showcase-field-dossier .shadcn-textarea { min-block-size: 4rem; }
    .showcase-field-dossier__security-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .showcase-field-dossier__security-row > :last-child .shadcn-field-description,
    .showcase-field-dossier .shadcn-field:has(.shadcn-textarea) > .shadcn-field-description { display: none; }
    .showcase-field-dossier__actions > .shadcn-button { flex: 1 1 8rem; }
}

@media (forced-colors: active) {
    .showcase-field-dossier__heading { border-block-end-color: CanvasText; }
}

.showcase-chart-dossier [data-slot="chart-surface"] rect[data-series] {
    rx: 0 !important;
    ry: 0 !important;
}

.showcase-aspect-ratio-demo {
    inline-size: min(100%, 42rem);
    max-inline-size: 100%;
    margin-inline: auto;
}

.showcase-aspect-ratio-demo--4-3 {
    inline-size: min(75%, 31.5rem);
}

.showcase-aspect-ratio-demo--1-1 {
    inline-size: min(56.25%, 23.625rem);
}

.showcase-aspect-ratio-demo .shadcn-aspect-ratio {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-aspect-ratio-media {
    position: relative;
    display: block;
    block-size: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: var(--shadcn-muted);
}

.showcase-aspect-ratio-media > img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.showcase-aspect-ratio-media figcaption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(.75rem, 3vw, 1.25rem);
    background: linear-gradient(to top, rgb(0 0 0 / 88%), rgb(0 0 0 / 12%));
    color: white;
}

.showcase-aspect-ratio-media__copy {
    display: grid;
    min-inline-size: 0;
    gap: .2rem;
}

.showcase-aspect-ratio-media__copy strong {
    font-size: clamp(.8125rem, 2vw, .9375rem);
    line-height: 1.2;
}

.showcase-aspect-ratio-media__copy > span {
    color: rgb(255 255 255 / 78%);
    font-size: clamp(.6875rem, 1.75vw, .75rem);
    line-height: 1.3;
}

.showcase-aspect-ratio-media__ratio {
    flex: none;
    color: rgb(255 255 255 / 84%);
    font-family: var(--shadcn-font-mono);
    font-size: .75rem;
}

@media (forced-colors: active) {
    .showcase-aspect-ratio-media figcaption {
        border-block-start: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
        forced-color-adjust: none;
    }

    .showcase-aspect-ratio-media__copy > span,
    .showcase-aspect-ratio-media__ratio {
        color: CanvasText;
    }
}

.showcase-toast-demo {
    display: grid;
    min-block-size: 14rem;
    place-items: center;
    inline-size: 100%;
}

.showcase-toast-demo .shadcn-toast-viewport {
    position: fixed;
    inset: auto 1rem 1rem auto;
    z-index: 100;
    inline-size: min(24rem, calc(100vw - 2rem));
    max-inline-size: calc(100vw - 2rem);
    max-block-size: min(70vh, 28rem);
    margin: 0;
    translate: none;
    pointer-events: auto;
    gap: .75rem;
}

.showcase-toast-demo .shadcn-toast-viewport:not([data-expanded="true"]) .shadcn-toast:not(:last-child) {
    margin-block-end: 0;
    transform: none;
}

.showcase-toast-demo .shadcn-toast-viewport .shadcn-toast[data-limited="true"] {
    position: absolute;
    visibility: hidden;
}

.showcase-carousel-demo {
    display: grid;
    inline-size: min(100%, 46rem);
    max-inline-size: 100%;
    min-inline-size: 0;
    gap: .75rem;
    margin-inline: auto;
}

.showcase-carousel-demo .shadcn-carousel,
.showcase-carousel-demo .shadcn-carousel-content,
.showcase-carousel-demo .shadcn-carousel-item,
.showcase-carousel-demo .showcase-carousel-slide {
    box-sizing: border-box;
    max-inline-size: 100%;
    min-inline-size: 0;
}

.showcase-carousel-demo .shadcn-carousel {
    padding-inline: 0;
}

.showcase-carousel-demo .shadcn-carousel-content {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: color-mix(in oklch, var(--shadcn-muted) 22%, var(--shadcn-background));
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-carousel-demo .shadcn-carousel [data-slot="carousel-track"] {
    margin: 0;
    transition-duration: 420ms;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.showcase-carousel-demo .shadcn-carousel-item,
.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] .shadcn-carousel-item {
    padding: 0;
}

.showcase-carousel-demo .shadcn-carousel-previous,
.showcase-carousel-demo .shadcn-carousel-next {
    inset-inline-start: .75rem;
    z-index: 1;
}

.showcase-carousel-demo .shadcn-carousel-next {
    inset-inline-start: auto;
    inset-inline-end: .75rem;
}

.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] {
    padding-block: 2.75rem;
    padding-inline: 0;
}

.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] .shadcn-carousel-previous,
.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] .shadcn-carousel-next {
    inset-inline-start: 50%;
    inset-inline-end: auto;
}

.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] .shadcn-carousel-previous {
    inset-block-start: .75rem;
}

.showcase-carousel-demo .shadcn-carousel[data-orientation="vertical"] .shadcn-carousel-next {
    inset-block-end: .75rem;
}

.showcase-carousel-demo .shadcn-carousel[data-reduced-motion="true"] [data-slot="carousel-track"] {
    transition-duration: 0ms;
}

.showcase-carousel-slide {
    position: relative;
    display: grid;
    min-block-size: 14rem;
    align-content: center;
    justify-items: start;
    gap: .45rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    padding: 1.75rem 4rem;
    background: linear-gradient(135deg, color-mix(in oklch, var(--shadcn-primary) 15%, var(--shadcn-card)), var(--shadcn-card) 58%);
    color: var(--shadcn-card-foreground);
    text-align: start;
    box-shadow: none;
}

.showcase-carousel-slide::after {
    position: absolute;
    inset-block-start: -4rem;
    inset-inline-end: -3rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid color-mix(in oklch, var(--shadcn-primary) 28%, transparent);
    border-radius: 50%;
    content: "";
    opacity: .8;
}

.showcase-carousel-slide--operations { --showcase-carousel-accent: var(--shadcn-primary); }
.showcase-carousel-slide--quality { --showcase-carousel-accent: var(--shadcn-chart-2, var(--shadcn-primary)); }
.showcase-carousel-slide--delivery { --showcase-carousel-accent: var(--shadcn-chart-3, var(--shadcn-primary)); }

.showcase-carousel-slide__index {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1.25rem;
    color: var(--shadcn-muted-foreground);
    font-family: var(--shadcn-font-mono);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .08em;
}

.showcase-carousel-slide__eyebrow {
    color: var(--showcase-carousel-accent, var(--shadcn-primary));
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.showcase-carousel-slide__title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
}

.showcase-carousel-slide__metric {
    color: var(--showcase-carousel-accent, var(--shadcn-primary));
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
}

.showcase-carousel-slide__detail {
    color: var(--shadcn-muted-foreground);
    font-size: .85rem;
}

.showcase-carousel-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: var(--shadcn-muted-foreground);
    font-size: .8rem;
}

.showcase-carousel-meta strong {
    color: var(--shadcn-foreground);
    font-weight: 650;
}

.showcase-carousel-dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
}

.showcase-carousel-dot {
    display: grid;
    inline-size: 1.5rem;
    block-size: 1.5rem;
    place-items: center;
    border: 0;
    border-radius: 9999px;
    padding: 0;
    background: transparent;
}

.showcase-carousel-dot::before {
    inline-size: .45rem;
    block-size: .45rem;
    border-radius: inherit;
    background: var(--shadcn-muted-foreground);
    content: "";
    opacity: .42;
    transition: transform var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), opacity var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard), background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.showcase-carousel-dot:hover::before,
.showcase-carousel-dot:focus-visible::before {
    opacity: .8;
}

.showcase-carousel-dot:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 3px;
}

.showcase-carousel-dot.is-selected::before {
    background: var(--shadcn-primary);
    opacity: 1;
    transform: scaleX(2.75);
}

.showcase-resizable-dossier {
    inline-size: min(100%, 42rem);
    block-size: clamp(18rem, 42vw, 22rem);
    margin-inline: auto;
}

.showcase-resizable-group {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-background);
}

.showcase-resizable-panel-content {
    display: grid;
    min-inline-size: 0;
    min-block-size: 100%;
    align-content: start;
    gap: calc(.375rem * var(--shadcn-spacing-multiplier));
    padding: calc(1.25rem * var(--shadcn-spacing-multiplier));
    overflow-wrap: anywhere;
}

.showcase-resizable-panel-content > span,
.showcase-resizable-panel-content > strong,
.showcase-resizable-panel-content > small {
    min-inline-size: 0;
    margin: 0;
}

.showcase-resizable-panel-content > span {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-weight: 600;
}

.showcase-resizable-panel-content > strong {
    color: var(--shadcn-foreground);
    font-size: .9375rem;
}

.showcase-resizable-panel-content > small {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
    line-height: 1.45;
}

.showcase-resizable-group > .shadcn-resizable-panel:first-child {
    background: color-mix(in oklab, var(--shadcn-muted) 35%, var(--shadcn-background));
}

@media (max-width: 40rem) {
    .showcase-resizable-dossier {
        block-size: 20rem;
    }

    .showcase-resizable-panel-content {
        padding: calc(1rem * var(--shadcn-spacing-multiplier));
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-carousel-demo [data-slot="carousel-track"],
    .showcase-carousel-dot::before { transition: none; }
}

@media (max-width: 42rem) {
    .showcase-carousel-slide {
        min-block-size: 12rem;
        padding-inline: 3.25rem;
    }

    .showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] {
        grid-template-columns: 1fr;
    }

    .showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] .shadcn-data-table-toolbar__filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase-data-table .shadcn-data-table-toolbar[data-toolbar-mode="default"] > .shadcn-data-table-visibility {
        justify-content: flex-start;
    }

    .showcase-data-table .shadcn-data-table-footer [data-slot="data-table-page-summary"] {
        margin-inline-start: 0;
    }

    .showcase-data-table .shadcn-data-table-footer__controls {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .showcase-data-table .shadcn-data-table-footer__controls > * {
        inline-size: auto;
    }
}

/* Documentation polish: keep the shell quiet and let the component surface
   carry the visual weight. These rules are intentionally shared by every
   dossier so a new component starts with the same alignment and focus model. */
.documentation-brand__mark {
    box-shadow: 0 1px 2px color-mix(in oklch, var(--shadcn-foreground) 12%, transparent);
}

.documentation-version-link {
    display: inline-flex;
    min-block-size: 1.75rem;
    align-items: center;
    border: 0;
    border-radius: 999px;
    padding-inline: .5rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.documentation-version-link:hover {
    border-color: var(--shadcn-ring);
    color: var(--shadcn-foreground);
}

.documentation-version-link:focus-visible {
    outline: var(--shadcn-focus-ring-width) solid var(--shadcn-ring);
    outline-offset: var(--shadcn-focus-ring-offset);
}

@media (max-width: 22rem) {
    .documentation-version-link {
        display: none;
    }
}

.documentation-brand__mark svg {
    inline-size: 1.15rem;
    block-size: 1.15rem;
}

.documentation-rail__toolbar {
    align-items: end;
}

.documentation-rail__toolbar .documentation-field {
    flex: 1 1 auto;
}

.documentation-catalog-rail {
    gap: 0.875rem;
}

.documentation-on-this-page a {
    color: var(--shadcn-muted-foreground);
    padding-inline: 0;
    transition: color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        background-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard),
        border-color var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard);
}

.documentation-on-this-page a[data-active="true"],
.documentation-on-this-page a[aria-current="true"] {
    font-weight: 700;
}

.component-preview__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: end;
    gap: 0.75rem;
}

.component-preview__controls:has(> .component-preview__control:only-child) {
    grid-template-columns: minmax(10rem, 18rem);
    justify-content: start;
}

.component-preview__control {
    min-inline-size: 0;
}

.component-preview__control label:has(input[type="checkbox"]) {
    min-block-size: 2.5rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    padding-inline: 0.65rem;
    background: color-mix(in oklch, var(--shadcn-background) 68%, transparent);
}

.component-preview__control label:has(input[type="checkbox"]):hover {
    border-color: var(--shadcn-border);
    background: var(--shadcn-background);
}

.component-code__header {
    align-items: center;
}

.component-code pre {
    --showcase-code-background: color-mix(in oklch, var(--shadcn-muted) 66%, var(--shadcn-background));
    --showcase-code-foreground: var(--shadcn-code-token-foreground);
    --showcase-code-comment: var(--shadcn-code-token-comment);
    background: var(--showcase-code-background);
    color: var(--showcase-code-foreground);
    box-shadow: inset 0 1px 0 color-mix(in oklch, var(--shadcn-background) 70%, transparent);
}

.component-code pre code {
    display: block;
    color: inherit;
    font-family: var(--shadcn-font-mono);
    font-size: 0.78rem;
    line-height: 1.75;
    tab-size: 2;
}

.component-code pre::selection,
.component-code pre code::selection {
    background: color-mix(in oklch, var(--shadcn-primary) 28%, transparent);
}

.showcase-attachment-file {
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    box-shadow: 0 1px 2px color-mix(in oklch, var(--shadcn-foreground) 7%, transparent);
}

/* Attachment actions own their keyboard ring in the library stylesheet.
   Keep the preview card quiet until an actionable child receives focus. */

.showcase-attachment-file-icon {
    display: inline-grid;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    place-items: center;
    border: 1px solid color-mix(in oklch, var(--shadcn-primary) 20%, var(--shadcn-border));
    border-radius: 0.7rem;
    background: color-mix(in oklch, var(--shadcn-primary) 9%, var(--shadcn-muted));
    color: var(--shadcn-muted-foreground);
}

.showcase-attachment-file[data-state="uploading"] .showcase-attachment-file-icon,
.showcase-attachment-file[data-state="processing"] .showcase-attachment-file-icon {
    border-color: color-mix(in oklch, var(--shadcn-primary) 36%, var(--shadcn-border));
    background: color-mix(in oklch, var(--shadcn-primary) 10%, var(--shadcn-muted));
    color: var(--shadcn-primary);
}

.showcase-attachment-file-icon svg {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    filter: drop-shadow(0 1px 1px color-mix(in oklch, var(--shadcn-foreground) 12%, transparent));
}

.showcase-attachment-file .shadcn-attachment-title,
.showcase-attachment-file .shadcn-attachment-description {
    color: var(--shadcn-foreground);
}

.showcase-attachment-file .shadcn-attachment-description {
    color: var(--shadcn-muted-foreground);
}

.showcase-bubble-thread > [data-slot="bubble"] {
    max-inline-size: min(78%, 28rem);
}

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

@media (prefers-reduced-motion: reduce) {
    .showcase-bubble-thread > [data-slot="bubble"],
    .shadcn-code-block-copy,
    .documentation-on-this-page a {
        transition: none;
    }

}

/* The WebAssembly boot state should feel like part of the documentation shell,
   not an unstyled string in the browser corner. Blazor replaces this node as
   soon as the app is ready. */
.showcase-boot {
    display: grid;
    min-block-size: 100dvh;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--shadcn-background, #fff);
    color: var(--shadcn-foreground, #18181b);
    font-family: var(--shadcn-font-sans, 'Geist', 'Noto Sans Thai', sans-serif);
}

.showcase-boot__logo {
    display: block;
    inline-size: clamp(12rem, 32vw, 17.6875rem);
    block-size: auto;
    border: 0;
    border-radius: 0;
}

.showcase-boot__copy {
    display: grid;
    justify-items: center;
    gap: .25rem;
    text-align: center;
}

.showcase-boot__copy span { color: var(--shadcn-muted-foreground, #71717a); font-size: .875rem; }

.showcase-boot__detail {
    max-inline-size: 34rem;
    margin: 0;
    color: var(--shadcn-muted-foreground, #71717a);
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.showcase-boot__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid color-mix(in srgb, var(--shadcn-foreground, #18181b) 18%, transparent);
    border-top-color: var(--shadcn-foreground, #18181b);
    border-radius: 50%;
    animation: showcase-boot-spin .8s linear infinite;
}

@keyframes showcase-boot-spin { to { rotate: 360deg; } }

.showcase-boot__retry {
    min-inline-size: 7rem;
    min-block-size: 2.75rem;
    border: 1px solid var(--shadcn-border, #e4e4e7);
    border-radius: var(--shadcn-radius-md, .5rem);
    padding-inline: 1rem;
    background: var(--shadcn-primary, #18181b);
    color: var(--shadcn-primary-foreground, #fafafa);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.showcase-boot__retry:hover { opacity: .9; }
.showcase-boot__retry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.showcase-boot[data-state="error"] .showcase-boot__spinner { display: none; }

@media (prefers-reduced-motion: reduce) {
    .showcase-boot__spinner { animation: none; }
}

/* Theme Studio workspace: keep controls compact and give the live composition the room. */
.theme-studio-main {
    inline-size: 100%;
    max-inline-size: none;
    overflow-x: clip;
    padding: 0;
}

.theme-studio-main + .showcase-footer {
    display: none;
}

.theme-studio {
    display: grid;
    gap: 0;
    min-block-size: 100dvh;
    max-inline-size: 100%;
    overflow-x: clip;
    padding: 0;
}

.theme-studio-appbar {
    position: sticky;
    z-index: 30;
    inset-block-start: 0;
    display: flex;
    min-block-size: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .875rem;
    border-block-end: 1px solid color-mix(in oklch, var(--shadcn-border) 84%, transparent);
    background: color-mix(in oklch, var(--shadcn-background) 92%, transparent);
    backdrop-filter: blur(16px);
}

.theme-studio-appbar__brand,
.theme-studio-appbar__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .625rem;
}

.theme-studio-appbar__brand > div {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.theme-studio-appbar__brand strong {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.theme-studio-appbar__brand span:not(.theme-studio-appbar__mark) {
    overflow: hidden;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-studio-appbar__mark {
    display: grid;
    flex: 0 0 auto;
    inline-size: 2rem;
    block-size: 2rem;
    place-items: center;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

.theme-studio-appbar__mark svg,
.theme-studio-controls-toggle svg {
    inline-size: 1rem;
    block-size: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-studio-docs-link,
.theme-studio-controls-toggle {
    display: inline-flex;
    min-block-size: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: .75rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.theme-studio-docs-link:hover,
.theme-studio-controls-toggle:hover {
    background: var(--shadcn-muted);
}

.theme-studio-controls-toggle[aria-expanded="true"] {
    border-color: var(--shadcn-primary);
    background: color-mix(in srgb, var(--shadcn-primary) 9%, var(--shadcn-background));
}

.theme-preview-toolbar {
    position: sticky;
    z-index: 25;
    inset-block-start: 3.5rem;
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: .375rem;
    overflow-x: auto;
    border-block-end: 1px solid var(--shadcn-border);
    border-inline: 0;
    border-radius: 0;
    background: color-mix(in oklch, var(--shadcn-background) 96%, transparent);
    box-shadow: 0 1px 0 color-mix(in oklch, var(--shadcn-border) 45%, transparent);
    padding: .375rem .75rem;
    scrollbar-width: thin;
}

/* Keep native Theme Studio controls from extending the document at narrow widths. */
.theme-studio-provider {
    overflow-x: clip;
}

/* Command dossier: a complete palette in a compact, task-oriented frame. */
.showcase-command-dossier {
    display: grid;
    width: min(100%, 30rem);
    gap: 0.75rem;
    margin-inline: auto;
}

.showcase-command-dossier__context,
.showcase-command-dossier__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-command-dossier__context > div,
.showcase-command-dossier__status {
    min-width: 0;
}

.showcase-command-dossier__context strong,
.showcase-command-dossier__context span,
.showcase-command-dossier__status span,
.showcase-command-dossier__status strong {
    display: block;
}

.showcase-command-dossier__context strong,
.showcase-command-dossier__status strong {
    color: var(--shadcn-foreground);
    font-size: 0.875rem;
    font-weight: 600;
}

.showcase-command-dossier__context span,
.showcase-command-dossier__status span {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.showcase-command-dossier__context kbd {
    flex: 0 0 auto;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-sm);
    background: var(--shadcn-muted);
    color: var(--shadcn-foreground);
    padding: 0.125rem 0.375rem;
    font-family: var(--shadcn-font-mono);
    font-size: 0.6875rem;
    box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--shadcn-border) 75%, transparent);
}

.showcase-command-dossier__command {
    min-block-size: 18rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-command-dossier__status {
    border-block-start: 1px solid var(--shadcn-border);
    padding-block-start: 0.75rem;
}

@media (max-width: 34rem) {
    .showcase-command-dossier {
        width: 100%;
    }

    .showcase-command-dossier__context {
        align-items: start;
    }

    .showcase-command-dossier__command {
        min-block-size: 16rem;
    }
}

@media (forced-colors: active) {
    .showcase-command-dossier__command,
    .showcase-command-dossier__context kbd,
    .showcase-command-dossier__status {
        border-color: CanvasText;
    }
}

html:has(.theme-studio-provider),
body:has(.theme-studio-provider) {
    overflow-x: hidden;
}

.theme-preview-toolbar .theme-toolbar-group {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.theme-preview-toolbar .shadcn-button,
.theme-preview-toolbar .theme-toolbar-select {
    min-block-size: 2.75rem;
}

.theme-preview-toolbar .shadcn-button {
    padding-inline: .625rem;
    font-size: .75rem;
}

.theme-preview-toolbar .theme-toolbar-select {
    flex: 1 1 12rem;
    min-inline-size: 10rem;
    margin: 0;
}

.theme-preview-toolbar .theme-toolbar-select:last-child {
    flex-basis: 15rem;
}

.theme-studio-workbench {
    display: grid;
    grid-template-columns: minmax(18rem, 21rem) minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    min-width: 0;
    min-block-size: calc(100dvh - 7rem);
    padding: .75rem;
}

.theme-studio-workbench[data-controls-open="false"] {
    grid-template-columns: minmax(0, 1fr);
}

.theme-inspector-drawer {
    min-width: 0;
}

.theme-studio-workbench[data-controls-open="false"] .theme-inspector-drawer {
    display: none;
}

.theme-inspector {
    position: sticky;
    inset-block-start: 7.25rem;
    max-block-size: calc(100dvh - 8rem);
    overflow: auto;
    padding: .75rem;
    scrollbar-width: thin;
}

.theme-preview-region {
    position: relative;
    inset-block-start: auto;
    min-block-size: calc(100dvh - 8rem);
    padding: .75rem;
}

.theme-preview-stage {
    width: min(100%, var(--theme-preview-width));
}

.theme-preview-settings {
    margin-block-end: .5rem;
}

.theme-preview-settings span {
    min-block-size: 1.5rem;
    padding-inline: .45rem;
    font-size: .625rem;
}

.theme-preview-scope {
    min-block-size: calc(100dvh - 11rem);
}

@media (max-width: 64rem) {
    .theme-studio-workbench {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-studio-workbench[data-controls-open="true"] {
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .theme-preview-region {
        grid-row: 1;
    }

    .theme-inspector-drawer {
        grid-row: 2;
    }

    .theme-inspector {
        position: static;
        max-block-size: none;
    }
}

@media (max-width: 48rem) {
    .theme-studio-appbar {
        padding-inline: .625rem;
    }

    .theme-studio-appbar__brand span:not(.theme-studio-appbar__mark) {
        display: none;
    }

    .theme-studio-docs-link {
        display: none;
    }

    .theme-preview-toolbar {
        inset-block-start: 3.25rem;
        padding-inline: .5rem;
    }

    .theme-studio-workbench {
        padding: .5rem;
    }

    .theme-preview-region,
    .theme-inspector {
        padding: .625rem;
    }
}

/* Documentation polish: keep the outline quiet, let code actions live on the
   code surface, and make the source read like a real editor rather than a
   single-color paragraph. */
.documentation-on-this-page ul {
    border-inline-start: 0;
    padding-inline-start: 0;
}

.documentation-on-this-page a {
    border-inline-start: 0;
}

.documentation-on-this-page a[data-active="true"],
.documentation-on-this-page a[aria-current="true"] {
    background: transparent;
    border-inline-start-color: transparent;
    font-weight: 700;
}

.component-code__surface {
    position: relative;
    min-inline-size: 0;
}

.component-preview__source {
    display: grid;
    min-inline-size: 0;
    gap: 0.75rem;
}

.component-preview__source > h3 {
    font-size: 0.875rem;
    font-weight: 650;
}

.component-code-disclosure {
    display: block;
    min-inline-size: 0;
}

.component-code-disclosure > summary {
    inline-size: fit-content;
    min-block-size: 2.75rem;
    align-content: center;
    color: var(--shadcn-foreground);
    font-weight: 650;
    cursor: pointer;
}

.component-code-disclosure > summary:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 0.25rem;
}

.component-code-disclosure__content {
    min-inline-size: 0;
    padding-block-start: 0.75rem;
}

.component-code__surface pre {
    min-block-size: 3.25rem;
    padding-block-start: 1.25rem;
}

.showcase-bubble-thread [data-bubble-role="incoming"] {
    transition: margin-inline var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard),
        transform var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard);
}

.showcase-bubble-thread .showcase-bubble-reaction-set {
    gap: .2rem;
    border-color: color-mix(in oklch, var(--shadcn-border) 72%, var(--shadcn-primary));
    background: color-mix(in oklch, var(--shadcn-background) 88%, var(--shadcn-primary));
    padding-inline: .35rem;
}

.showcase-bubble-thread .showcase-bubble-reaction-icon {
    inline-size: 1.1rem;
    block-size: 1.1rem;
    border-radius: 999px;
    padding: .16rem;
    background: color-mix(in oklch, currentColor 14%, transparent);
}

.showcase-bubble-thread .showcase-bubble-reaction-icon:nth-of-type(1) {
    color: #2563eb;
}

.showcase-bubble-thread .showcase-bubble-reaction-icon:nth-of-type(2) {
    color: #f97316;
}

.showcase-bubble-thread .showcase-bubble-reaction-icon:nth-of-type(3) {
    color: #7c3aed;
}

.showcase-bubble-thread .showcase-bubble-reaction-count {
    color: var(--shadcn-muted-foreground);
}

/* Final documentation shell polish. Keep the rail flush to the viewport while
   the reading column stays comfortably measured for long-form reference text. */
.documentation-workbench {
    max-inline-size: none;
    margin-inline: 0;
}

.documentation-catalog,
.documentation-outline {
    border-inline: 0;
    scrollbar-width: none;
}

.documentation-catalog::-webkit-scrollbar,
.documentation-outline::-webkit-scrollbar {
    display: none;
}

.documentation-catalog-rail,
.documentation-on-this-page {
    padding-inline: 1.25rem;
}

.documentation-content {
    border-inline: 0;
    padding: 3rem;
}

.documentation-content > :where(.component-dossier, .documentation-landing) {
    inline-size: min(100%, 58rem);
    margin-inline: auto;
}

.documentation-landing__hero h1,
.component-dossier__hero h1 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    line-height: 1.08;
}

.documentation-component-list a[aria-current="page"] {
    border-color: transparent;
}

.documentation-on-this-page {
    gap: .75rem;
    padding-inline: 1.25rem;
}

.documentation-on-this-page ul {
    margin: 0;
    padding-inline: 0;
    border-inline: 0;
    list-style: none;
}

.documentation-on-this-page a {
    padding-inline: 0;
    border-inline: 0;
}

.documentation-on-this-page a[data-active="true"],
.documentation-on-this-page a[aria-current="true"] {
    background: transparent;
    color: var(--shadcn-foreground);
    font-weight: 700;
}

.component-api__type + .component-api__type {
    margin-block-start: 2rem;
}

.component-api__scroller {
    max-inline-size: 100%;
    overscroll-behavior-inline: contain;
}

.component-api__required {
    display: inline-flex;
    align-items: center;
    min-block-size: 1.25rem;
    margin-inline-start: .5rem;
    padding-inline: .45rem;
    border: 1px solid color-mix(in oklch, var(--shadcn-primary) 35%, var(--shadcn-border));
    border-radius: 999px;
    background: color-mix(in oklch, var(--shadcn-primary) 12%, var(--shadcn-background));
    color: var(--shadcn-primary);
    font-family: var(--shadcn-font-sans);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

.showcase-scroller-frame .shadcn-message-scroller-item {
    border-block-end: 0;
}

.component-code__surface {
    overflow: hidden;
    overflow-wrap: anywhere;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: color-mix(in oklch, var(--shadcn-muted) 38%, var(--shadcn-background));
}

.component-code__surface .shadcn-code-block-toolbar {
    border-block-end: 1px solid var(--shadcn-border);
    background: color-mix(in oklch, var(--shadcn-muted) 52%, var(--shadcn-background));
}

.component-code__surface :is(.shadcn-code-block-language, .shadcn-code-block-copy, .shadcn-code-block-language-select .shadcn-select-trigger) {
    color: color-mix(in oklch, var(--shadcn-foreground) 78%, var(--shadcn-muted-foreground));
}

.component-code__surface pre {
    max-block-size: none;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.showcase-code-block-dossier {
    display: grid;
    inline-size: min(100%, 42rem);
    gap: 1rem;
    margin-inline: auto;
}

.showcase-code-block-dossier .shadcn-code-block {
    min-inline-size: 0;
}

.showcase-progress-demo {
    display: grid;
    inline-size: min(100%, 28rem);
    gap: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    padding: 1.25rem;
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-progress-demo__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.showcase-progress-demo__summary > span {
    display: grid;
    block-size: 2.5rem;
    inline-size: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
}

.showcase-progress-demo__summary svg {
    inline-size: 1.25rem;
    block-size: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.showcase-progress-demo__summary > div {
    display: grid;
    min-inline-size: 0;
    gap: 0.125rem;
}

.showcase-progress-demo__summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-progress-demo__summary small {
    color: var(--shadcn-muted-foreground);
}

.documentation-brand__mark {
    overflow: hidden;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border-radius: 999px;
    background: var(--shadcn-background);
    border: 1px solid var(--shadcn-border);
}

.documentation-brand__mark img {
    display: block;
    inline-size: 1.55rem;
    block-size: 1.55rem;
    object-fit: contain;
}

[data-shadcn-theme="dark"] .documentation-brand__mark img,
.dark .documentation-brand__mark img {
    filter: invert(1);
}

@media (max-width: 48rem) {
    .documentation-content {
        padding: 1rem;
    }

    .documentation-catalog-rail,
    .documentation-on-this-page {
        padding-inline: 1rem;
    }
}

/* Conversation showcase motion and variant proof. The reveal is deliberately
   short and low-amplitude: it communicates message order without making the
   thread feel like a notification stack. Reduced motion restores every row
   immediately for keyboard and assistive-technology users. */
html body .showcase-bubble-thread > [data-slot="bubble"] {
    animation: showcase-bubble-reveal 420ms var(--shadcn-motion-easing-enter) both;
}

html body .showcase-bubble-thread > [data-slot="bubble"]:nth-child(1) { animation-delay: 0ms; }
html body .showcase-bubble-thread > [data-slot="bubble"]:nth-child(2) { animation-delay: 70ms; }
html body .showcase-bubble-thread > [data-slot="bubble"]:nth-child(3) { animation-delay: 140ms; }
html body .showcase-bubble-thread > [data-slot="bubble"]:nth-child(4) { animation-delay: 210ms; }
html body .showcase-bubble-thread > [data-slot="bubble"]:nth-child(5) { animation-delay: 280ms; }

@keyframes showcase-bubble-reveal {
    from { opacity: 0; translate: 0 .35rem; }
    to { opacity: 1; translate: 0 0; }
}

/* Ghost is intentionally borderless and quiet; outline retains a crisp
   container so the two often-confused variants are visually distinguishable. */
html body .showcase-bubble-thread > [data-slot="bubble"][data-variant="ghost"] {
    width: fit-content !important;
    max-inline-size: min(78%, 28rem);
}

html body .showcase-bubble-thread > [data-slot="bubble"][data-variant="ghost"] > .shadcn-bubble-content {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-inline-size: 0;
    padding-block: .625rem !important;
    padding-inline: .875rem !important;
}

html body .showcase-bubble-thread > [data-slot="bubble"][data-variant="outline"] > .shadcn-bubble-content {
    border: 1px solid var(--shadcn-border) !important;
    background: var(--shadcn-background) !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html body .showcase-bubble-thread > [data-slot="bubble"] {
        animation: none;
        opacity: 1;
        translate: none;
    }
}

/* Tooltip: a compact quotation action provides a realistic hover and focus
   target while keeping the example centered at every supported viewport. */
.showcase-tooltip-dossier {
    display: grid;
    inline-size: min(100%, 34rem);
    min-block-size: 13rem;
    margin-inline: auto;
    padding: clamp(1rem, 5vw, 2rem);
    place-items: center;
}

.showcase-tooltip-dossier__card {
    display: flex;
    inline-size: 100%;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    padding: 1rem;
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-tooltip-dossier__copy {
    display: grid;
    min-inline-size: 0;
    gap: .1875rem;
}

.showcase-tooltip-dossier__copy strong,
.showcase-tooltip-dossier__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-tooltip-dossier__copy strong { font-size: .875rem; font-weight: 600; }
.showcase-tooltip-dossier__copy span { color: var(--shadcn-muted-foreground); font-size: .75rem; }

.showcase-tooltip-dossier__action {
    min-block-size: 2.5rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: .875rem;
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard), border-color var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard);
}

.showcase-tooltip-dossier__action:hover:not(:disabled) { background: var(--shadcn-accent); }
.showcase-tooltip-dossier__action:focus-visible { outline: 2px solid var(--shadcn-ring); outline-offset: 2px; }
.showcase-tooltip-dossier__action:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 32rem) {
    .showcase-tooltip-dossier { padding-inline: .5rem; }
    .showcase-tooltip-dossier__card { align-items: stretch; flex-direction: column; }
    .showcase-tooltip-dossier__action { inline-size: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-tooltip-dossier__action { transition: none; }
}

@media (forced-colors: active) {
    .showcase-tooltip-dossier__card,
    .showcase-tooltip-dossier__action { border-color: CanvasText; }
    .showcase-tooltip-dossier__action:disabled { opacity: 1; }
}

/* Context menu: a file workspace gives pointer and keyboard invocation a
   credible target without turning the preview into decorative card chrome. */
.showcase-context-menu-dossier {
    display: grid;
    inline-size: min(100%, 42rem);
    min-block-size: 22rem;
    margin-inline: auto;
    gap: 1rem;
    align-content: center;
}

.showcase-context-menu-workspace {
    display: grid;
    inline-size: 100%;
    min-inline-size: 0;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-context-menu-workspace__header {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: .875rem 1rem;
}

.showcase-context-menu-workspace__header > div {
    display: grid;
    min-inline-size: 0;
    gap: .125rem;
}

.showcase-context-menu-workspace__header strong,
.showcase-context-menu-workspace__header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-context-menu-workspace__header strong { font-size: .875rem; font-weight: 600; }
.showcase-context-menu-workspace__header span { color: var(--shadcn-muted-foreground); font-size: .75rem; }

.showcase-context-menu-workspace__files {
    display: grid;
    padding: .5rem;
}

.showcase-context-menu-workspace__files > div {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-block-size: 3rem;
    border-radius: var(--shadcn-radius-sm);
    padding-inline: .5rem;
}

.showcase-context-menu-workspace__files[data-density="compact"] > div { min-block-size: 2.25rem; }
.showcase-context-menu-workspace__files > div:hover { background: var(--shadcn-muted); }
.showcase-context-menu-workspace__files span { color: var(--shadcn-muted-foreground); font-size: .6875rem; font-weight: 600; }
.showcase-context-menu-workspace__files strong { overflow: hidden; font-size: .8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.showcase-context-menu-workspace__files small { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.showcase-context-menu-workspace > p { margin: 0; border-block-start: 1px solid var(--shadcn-border); padding: .625rem 1rem; color: var(--shadcn-muted-foreground); direction: ltr; font-size: .75rem; text-align: start; }
.showcase-context-menu-dossier__status { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; text-align: center; }

@media (max-width: 32rem) {
    .showcase-context-menu-dossier { min-block-size: 18rem; }
    .showcase-context-menu-workspace__header { align-items: flex-start; flex-direction: column; gap: .375rem; }
    .showcase-context-menu-workspace__files > div { grid-template-columns: 2.75rem minmax(0, 1fr); }
    .showcase-context-menu-workspace__files small { display: none; }
}

@media (forced-colors: active) {
    .showcase-context-menu-workspace { border-color: CanvasText; }
    .showcase-context-menu-workspace__files > div:hover { background: Highlight; color: HighlightText; }
}

/* Dropdown menu: a compact quotation record gives the trigger real product
   context while the popup remains user-triggered and collision-aware. */
.showcase-dropdown-menu-dossier {
    display: grid;
    inline-size: min(100%, 38rem);
    margin-inline: auto;
    place-items: center;
}

.showcase-dropdown-menu-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    inline-size: 100%;
    align-items: start;
    gap: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    padding: 1.25rem;
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-dropdown-menu-card__identity { display: grid; min-inline-size: 0; gap: .25rem; }
.showcase-dropdown-menu-card__identity strong { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.showcase-dropdown-menu-card__identity > span:last-child { color: var(--shadcn-muted-foreground); font-size: .8125rem; line-height: 1.45; }
.showcase-dropdown-menu-card__eyebrow { color: var(--shadcn-muted-foreground); font-size: .625rem; font-weight: 700; letter-spacing: .08em; }
.showcase-dropdown-menu-card__meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    border-block-start: 1px solid var(--shadcn-border);
    padding-block-start: 1rem;
}
.showcase-dropdown-menu-card__meta > span { display: grid; min-inline-size: 0; gap: .2rem; color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.showcase-dropdown-menu-card__meta strong { overflow: hidden; color: var(--shadcn-foreground); font-size: .75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 32rem) {
    .showcase-dropdown-menu-card { padding: 1rem; }
    .showcase-dropdown-menu-card__meta { grid-template-columns: 1fr 1fr; }
    .showcase-dropdown-menu-card__meta > span:first-child { grid-column: 1 / -1; }
}

@media (forced-colors: active) {
    .showcase-dropdown-menu-card { border-color: CanvasText; }
}

/* Menubar: a compact, real editor shell keeps the primitive in context while
   preserving enough room for collision-aware menus at narrow widths. */
.showcase-drawer-dossier {
    display: grid;
    inline-size: min(100%, 32rem);
    min-block-size: 14rem;
    place-items: center;
}

.showcase-drawer-dossier__summary {
    display: grid;
    inline-size: min(100%, 24rem);
    gap: .4rem;
    border-block: 1px solid var(--shadcn-border);
    padding-block: 1rem;
    text-align: start;
}

.showcase-drawer-dossier__eyebrow {
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.showcase-drawer-dossier__summary > strong {
    font-size: 1rem;
    font-weight: 600;
}

.showcase-drawer-dossier__summary > span:not(.showcase-drawer-dossier__eyebrow) {
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
}

.showcase-drawer-dossier__trigger,
.showcase-drawer-panel__action {
    display: inline-flex;
    min-block-size: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 1rem;
    font: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
}

.showcase-drawer-dossier__trigger {
    justify-self: start;
    margin-block-start: .75rem;
}

.showcase-drawer-dossier__trigger:hover,
.showcase-drawer-panel__action:hover {
    background: var(--shadcn-accent);
    color: var(--shadcn-accent-foreground);
}

.showcase-drawer-dossier__trigger:focus-visible,
.showcase-drawer-panel__action:focus-visible {
    outline: 2px solid var(--shadcn-ring);
    outline-offset: 2px;
}

.showcase-drawer-panel__body {
    min-block-size: 0;
    overflow: auto;
    padding-block: 1rem;
}

.showcase-drawer-panel__body dl {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.showcase-drawer-panel__body dl > div {
    display: grid;
    grid-template-columns: minmax(6rem, .55fr) minmax(0, 1fr);
    gap: 1rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-block-end: .75rem;
}

.showcase-drawer-panel__body dt {
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.showcase-drawer-panel__body dd {
    margin: 0;
    font-size: .8125rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.showcase-drawer-panel__body p {
    margin: 1rem 0 0;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
}

.showcase-drawer-panel .shadcn-drawer-footer {
    flex-direction: column;
}

.showcase-drawer-panel__action {
    inline-size: 100%;
}

.showcase-drawer-panel__action--primary {
    border-color: transparent;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground);
}

[dir="rtl"] .showcase-drawer-dossier__summary,
[dir="rtl"] .showcase-drawer-panel { text-align: start; }

@media (min-width: 40rem) {
    .showcase-drawer-panel[data-swipe-axis="y"] {
        inline-size: min(100%, 38rem);
        margin-inline: auto;
    }

    .showcase-drawer-panel .shadcn-drawer-footer {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }

    .showcase-drawer-panel__action {
        inline-size: auto;
    }
}

@media (forced-colors: active) {
    .showcase-drawer-dossier__trigger,
    .showcase-drawer-panel__action { border-color: ButtonText; }
}

.showcase-menubar-dossier {
    display: grid;
    inline-size: min(100%, 42rem);
    margin-inline: auto;
    place-items: center;
}

.showcase-menubar-workspace {
    display: grid;
    inline-size: 100%;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-menubar-workspace__header {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: .75rem 1rem;
}

.showcase-menubar-workspace__identity {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .625rem;
}

.showcase-menubar-workspace__identity > div {
    display: grid;
    min-inline-size: 0;
    gap: .0625rem;
}

.showcase-menubar-workspace__identity strong,
.showcase-menubar-workspace__identity span,
.showcase-menubar-workspace__save-state {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-menubar-workspace__identity strong { font-size: .8125rem; font-weight: 600; }
.showcase-menubar-workspace__identity span,
.showcase-menubar-workspace__save-state { color: var(--shadcn-muted-foreground); font-size: .6875rem; }

.showcase-menubar-workspace__mark {
    display: grid;
    flex: 0 0 2rem;
    inline-size: 2rem;
    block-size: 2rem;
    place-items: center;
    border-radius: 9999px;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-foreground) !important;
    font-size: .75rem !important;
    font-weight: 700;
}

.showcase-menubar-workspace > .shadcn-menubar {
    inline-size: 100%;
    border: 0;
    border-block-end: 1px solid var(--shadcn-border);
    border-radius: 0;
    padding-inline: .625rem;
}

.showcase-menubar-workspace__canvas {
    display: grid;
    min-block-size: 12rem;
    place-items: center;
    padding: 1.5rem;
    background: var(--shadcn-muted);
}

.showcase-menubar-document {
    display: grid;
    inline-size: min(100%, 24rem);
    gap: .35rem;
    border: 1px solid var(--shadcn-border);
    border-radius: calc(var(--shadcn-radius) - .125rem);
    background: var(--shadcn-background);
    padding: 1.25rem;
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-menubar-document__eyebrow { color: var(--shadcn-muted-foreground); font-size: .625rem; font-weight: 700; letter-spacing: .08em; }
.showcase-menubar-document strong { font-size: .9375rem; }
.showcase-menubar-document > span:last-child { color: var(--shadcn-muted-foreground); font-size: .75rem; }

.showcase-menubar-workspace__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-block-start: 1px solid var(--shadcn-border);
    padding: .5rem 1rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
}

@media (max-width: 32rem) {
    .showcase-menubar-workspace__header { padding-inline: .75rem; }
    .showcase-menubar-workspace__save-state { display: none; }
    .showcase-menubar-workspace > .shadcn-menubar { padding-inline: .25rem; }
    .showcase-menubar-workspace__canvas { min-block-size: 10rem; padding: 1rem; }
}

@media (forced-colors: active) {
    .showcase-menubar-workspace,
    .showcase-menubar-document { border-color: CanvasText; }
}

.showcase-navigation-menu {
    display: flex;
    inline-size: 100%;
    min-block-size: 15rem;
    align-items: flex-start;
    justify-content: center;
    padding-block-start: 3.5rem;
}

.showcase-navigation-menu :is(ul) {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tabs dossier: a compact project workspace that remains legible when the
   component switches between its horizontal and vertical keyboard models. */
.showcase-tabs-dossier {
    inline-size: min(100%, 44rem);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-sm);
}

.showcase-tabs-dossier__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.showcase-tabs-dossier__header h3,
.showcase-tabs-dossier__header p { margin: 0; }
.showcase-tabs-dossier__header h3 { font-size: 1rem; line-height: 1.4; }
.showcase-tabs-dossier__header p { margin-block-start: .25rem; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.showcase-tabs-dossier > .shadcn-separator { margin: 0; }

.showcase-tabs-dossier__tabs {
    min-inline-size: 0;
    gap: 1rem;
    padding: 1.25rem;
}

.showcase-tabs-dossier__tabs[data-orientation="vertical"] { align-items: flex-start; }
.showcase-tabs-dossier__tabs[data-orientation="vertical"] .shadcn-tabs-list { flex: 0 0 auto; }
.showcase-tabs-dossier__tabs .shadcn-tabs-content { min-inline-size: 0; }

.showcase-tabs-dossier__panel {
    display: grid;
    min-block-size: 12.5rem;
    align-content: start;
    gap: 1rem;
}

.showcase-tabs-dossier__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.showcase-tabs-dossier__summary > div {
    display: grid;
    gap: .25rem;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    padding: .75rem;
}

.showcase-tabs-dossier__summary dt,
.showcase-tabs-dossier__summary dd { margin: 0; }
.showcase-tabs-dossier__summary dt { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.showcase-tabs-dossier__summary dd { font-size: .8125rem; font-weight: 600; }

.showcase-tabs-dossier__handoff,
.showcase-tabs-dossier__files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-tabs-dossier__handoff {
    border-block-start: 1px solid var(--shadcn-border);
    padding-block-start: 1rem;
}

.showcase-tabs-dossier__handoff > div,
.showcase-tabs-dossier__files li > div,
.showcase-tabs-dossier__activity li { display: grid; gap: .2rem; }
.showcase-tabs-dossier__handoff strong,
.showcase-tabs-dossier__files strong,
.showcase-tabs-dossier__activity strong { font-size: .8125rem; }
.showcase-tabs-dossier__handoff span,
.showcase-tabs-dossier__files span,
.showcase-tabs-dossier__activity span { color: var(--shadcn-muted-foreground); font-size: .6875rem; }

.showcase-tabs-dossier__files,
.showcase-tabs-dossier__activity {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-navigation-menu__list {
    inline-size: 24rem;
}

.showcase-navigation-menu__component-grid {
    display: grid;
    inline-size: 37rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .125rem;
}

.showcase-navigation-menu__entry {
    display: flex;
    min-inline-size: 0;
    flex-direction: column;
    gap: .3rem;
}

.showcase-navigation-menu__entry strong {
    color: var(--shadcn-popover-foreground);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.2;
}

.showcase-navigation-menu__entry > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--shadcn-muted-foreground);
    font-size: .8125rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showcase-navigation-menu__status-list {
    inline-size: 13rem;
}

.showcase-navigation-menu__status-link {
    gap: .625rem;
}

.showcase-navigation-menu__status-link svg {
    inline-size: 1rem;
    block-size: 1rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

@media (max-width: 40rem) {
    .showcase-navigation-menu {
        min-block-size: 14rem;
        padding-block-start: 2.5rem;
    }

    .showcase-navigation-menu__wide-item {
        display: none;
    }

    .showcase-navigation-menu__list {
        inline-size: min(20rem, calc(100vw - 1.5rem));
    }
}

/* Toggle Group: a real drawing-review toolbar demonstrates connected geometry,
   direct selection, and orientation changes without turning the preview into a
   generic control gallery. */
.showcase-dropzone-dossier {
    display: grid;
    inline-size: min(100%, 38rem);
    gap: 1rem;
}

.showcase-dropzone-dossier__heading {
    display: grid;
    gap: .25rem;
}

.showcase-dropzone-dossier__heading strong { font-size: 1rem; }
.showcase-dropzone-dossier__heading span { color: var(--shadcn-muted-foreground); font-size: .8125rem; }
.showcase-dropzone-dossier__control { inline-size: 100%; }

.showcase-toggle-group-dossier {
    display: grid;
    inline-size: min(100%, 46rem);
    gap: 1rem;
    margin-inline: auto;
}

.showcase-toggle-group-dossier__header {
    display: flex;
    min-inline-size: 0;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-toggle-group-dossier__header > div {
    display: grid;
    min-inline-size: 0;
    gap: .25rem;
}

.showcase-toggle-group-dossier__header h3,
.showcase-toggle-group-dossier__header p,
.showcase-toggle-group-dossier__sheet h4,
.showcase-toggle-group-dossier__sheet p { margin: 0; }
.showcase-toggle-group-dossier__header h3 { font-size: 1rem; font-weight: 650; }
.showcase-toggle-group-dossier__header p { max-inline-size: 52ch; color: var(--shadcn-muted-foreground); font-size: .8125rem; line-height: 1.5; }

.showcase-toggle-group-dossier__status {
    flex: 0 0 auto;
    border-radius: 9999px;
    background: var(--shadcn-muted);
    padding: .25rem .625rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
    font-weight: 600;
}

.showcase-toggle-group-dossier__workspace {
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
}

.showcase-toggle-group-dossier__toolbar {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    gap: .75rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding: .75rem 1rem;
}

.showcase-toggle-group-dossier__workspace[data-orientation="vertical"] .showcase-toggle-group-dossier__toolbar {
    align-items: flex-start;
}

.showcase-toggle-group-dossier__toolbar-label {
    flex: 0 0 auto;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-weight: 600;
}

.showcase-toggle-group-dossier__error {
    margin: 0 0 0 auto;
    color: var(--shadcn-destructive);
    font-size: .75rem;
}

.showcase-toggle-group-dossier__sheet {
    display: grid;
    min-block-size: 13rem;
    gap: 1rem;
    padding: 1.25rem;
}

.showcase-toggle-group-dossier__sheet-heading {
    display: flex;
    min-inline-size: 0;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.showcase-toggle-group-dossier__sheet-heading > div { display: grid; min-inline-size: 0; gap: .2rem; }
.showcase-toggle-group-dossier__sheet-heading h4 { font-size: .9375rem; font-weight: 650; }
.showcase-toggle-group-dossier__sheet-heading p,
.showcase-toggle-group-dossier__sheet-heading > span,
.showcase-toggle-group-dossier__selection { color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.5; }
.showcase-toggle-group-dossier__sheet-heading > span { flex: 0 0 auto; }

.showcase-toggle-group-dossier__review {
    display: grid;
    grid-template-columns: minmax(10rem, .8fr) minmax(14rem, 1.2fr);
    align-items: center;
    gap: 1rem;
    border-block: 1px solid var(--shadcn-border);
    padding-block: 1rem;
}

.showcase-toggle-group-dossier__part {
    inline-size: 100%;
    max-block-size: 8.5rem;
    fill: color-mix(in oklch, var(--shadcn-muted) 52%, transparent);
    stroke: var(--shadcn-muted-foreground);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.showcase-toggle-group-dossier__layers { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.showcase-toggle-group-dossier__layers li { display: grid; gap: .125rem; border-inline-start: 2px solid var(--shadcn-primary); padding-inline-start: .625rem; }
.showcase-toggle-group-dossier__layers li[data-disabled="true"] { border-color: var(--shadcn-border); color: var(--shadcn-muted-foreground); }
.showcase-toggle-group-dossier__layers strong { font-size: .75rem; font-weight: 650; }
.showcase-toggle-group-dossier__layers span { color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.45; }
.showcase-toggle-group-dossier__selection strong { color: var(--shadcn-foreground); font-weight: 600; }

@media (max-width: 36rem) {
    .showcase-toggle-group-dossier__header { display: grid; }
    .showcase-toggle-group-dossier__status { justify-self: start; }
    .showcase-toggle-group-dossier__toolbar { align-items: flex-start; flex-direction: column; padding-inline: .75rem; }
    .showcase-toggle-group-dossier__toolbar .shadcn-toggle-group[data-orientation="horizontal"] { max-inline-size: 100%; flex-wrap: wrap; }
    .showcase-toggle-group-dossier__error { margin-inline-start: 0; }
    .showcase-toggle-group-dossier__sheet { min-block-size: 11rem; padding: 1rem; }
    .showcase-toggle-group-dossier__review { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
    .showcase-toggle-group-dossier__workspace,
    .showcase-toggle-group-dossier__review,
    .showcase-toggle-group-dossier__layers li { border-color: CanvasText; }
    .showcase-toggle-group-dossier__part { fill: Canvas; stroke: CanvasText; }
}

.showcase-empty-dossier {
    display: grid;
    inline-size: min(100%, 34rem);
    min-block-size: 20rem;
    margin-inline: auto;
}

.showcase-empty-dossier > .shadcn-empty {
    min-block-size: inherit;
}

.showcase-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(0.5rem * var(--shadcn-spacing-multiplier));
}

.showcase-empty-status {
    min-block-size: 1.25rem;
    margin: 0;
    color: var(--shadcn-muted-foreground);
    line-height: 1.4;
}

@media (max-width: 30rem) {
    .showcase-empty-dossier {
        min-block-size: 18rem;
    }

    .showcase-empty-actions {
        inline-size: 100%;
        flex-direction: column;
    }

    .showcase-empty-actions .shadcn-button {
        inline-size: 100%;
    }
}

/* Card dossier: a compact production-order composition that proves every card
   slot without nesting decorative cards inside the primary surface. */
.showcase-card-dossier {
    inline-size: min(100%, 34rem);
    margin-inline: auto;
}

.showcase-card-dossier__heading {
    display: grid;
    min-inline-size: 0;
    gap: 0.125rem;
}

.showcase-card-dossier .shadcn-card-content {
    display: grid;
    gap: calc(1.25rem * var(--shadcn-spacing-multiplier));
}

.showcase-card-dossier__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-block: 1px solid var(--shadcn-border);
}

.showcase-card-dossier__metrics > div {
    display: grid;
    min-inline-size: 0;
    gap: 0.125rem;
    padding-block: calc(0.75rem * var(--shadcn-spacing-multiplier));
}

.showcase-card-dossier__metrics > div + div {
    border-inline-start: 1px solid var(--shadcn-border);
    padding-inline-start: calc(0.875rem * var(--shadcn-spacing-multiplier));
}

.showcase-card-dossier__metrics dt,
.showcase-card-dossier__progress-copy span,
.showcase-card-dossier__updated {
    color: var(--shadcn-muted-foreground);
    font-size: 0.75rem;
}

.showcase-card-dossier__metrics dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.showcase-card-dossier__progress,
.showcase-card-dossier__progress-copy {
    display: grid;
    gap: calc(0.5rem * var(--shadcn-spacing-multiplier));
}

.showcase-card-dossier__progress-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
}

.showcase-card-dossier__progress-copy strong {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.showcase-card-dossier__next-step {
    display: flex;
    align-items: flex-start;
    gap: calc(0.625rem * var(--shadcn-spacing-multiplier));
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-muted);
    padding: calc(0.75rem * var(--shadcn-spacing-multiplier));
    color: var(--shadcn-muted-foreground);
}

.showcase-card-dossier__next-step > span:last-child {
    display: grid;
    min-inline-size: 0;
    gap: 0.125rem;
}

.showcase-card-dossier__next-step strong {
    color: var(--shadcn-foreground);
    font-weight: 600;
}

.showcase-card-dossier__health-dot {
    inline-size: 0.5rem;
    block-size: 0.5rem;
    flex: 0 0 auto;
    margin-block-start: 0.375rem;
    border-radius: 9999px;
    background: var(--shadcn-success, oklch(0.72 0.18 145));
}

.showcase-card-dossier .shadcn-card-footer {
    justify-content: space-between;
}

@media (max-width: 40rem) {
    .showcase-card-dossier__metrics {
        grid-template-columns: 1fr;
    }

    .showcase-card-dossier__metrics > div + div {
        border-block-start: 1px solid var(--shadcn-border);
        border-inline-start: 0;
        padding-inline-start: 0;
    }

    .showcase-card-dossier__progress-copy {
        grid-template-columns: 1fr;
    }

    .showcase-card-dossier .shadcn-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .showcase-card-dossier .shadcn-card-footer .shadcn-button {
        inline-size: 100%;
    }
}

.showcase-tabs-dossier__files li,
.showcase-tabs-dossier__activity li { border-block-end: 1px solid var(--shadcn-border); padding-block: .75rem; }
.showcase-tabs-dossier__files li:first-child,
.showcase-tabs-dossier__activity li:first-child { padding-block-start: 0; }
.showcase-tabs-dossier__files li:last-child,
.showcase-tabs-dossier__activity li:last-child { border-block-end: 0; }
.showcase-tabs-dossier__panel > .shadcn-button { justify-self: start; }
.showcase-tabs-dossier__panel > p { max-inline-size: 46ch; margin: 0; color: var(--shadcn-muted-foreground); line-height: 1.6; }

.showcase-tabs-dossier__status {
    margin: 0;
    border-block-start: 1px solid var(--shadcn-border);
    padding: .625rem 1.25rem;
    color: var(--shadcn-muted-foreground);
    font-size: .6875rem;
}

@media (max-width: 36rem) {
    .showcase-tabs-dossier__header,
    .showcase-tabs-dossier__tabs { padding: 1rem; }
    .showcase-tabs-dossier__summary { grid-template-columns: 1fr; }
    .showcase-tabs-dossier__panel { min-block-size: 15rem; }
    .showcase-tabs-dossier__handoff { align-items: flex-start; }
}

@media (forced-colors: active) {
    .showcase-tabs-dossier { border-color: CanvasText; }
    .showcase-tabs-dossier__summary > div { border: 1px solid CanvasText; }
}

/* Alert dialog dossier: realistic destructive confirmation without forcing
   the modal open before the visitor activates its trigger. */
.showcase-alert-dialog-dossier { inline-size: min(100%, 42rem); margin-inline: auto; }
.showcase-alert-dialog-record,
.showcase-alert-dialog-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-xl);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    box-shadow: var(--shadcn-shadow-sm);
}
.showcase-alert-dialog-dossier[data-layout="small"] :is(.showcase-alert-dialog-record, .showcase-alert-dialog-result) {
    inline-size: min(100%, 34rem);
    margin-inline: auto;
    padding: .75rem;
}
.showcase-alert-dialog-record__icon,
.showcase-alert-dialog-result__icon,
.showcase-alert-dialog-warning {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: var(--shadcn-radius-lg);
    background: var(--shadcn-muted);
    color: var(--shadcn-muted-foreground);
}
:is(.showcase-alert-dialog-record__icon, .showcase-alert-dialog-result__icon, .showcase-alert-dialog-warning) svg {
    inline-size: 1.25rem;
    block-size: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}
.showcase-alert-dialog-record__copy,
.showcase-alert-dialog-result > span:nth-child(2) { display: grid; min-inline-size: 0; gap: .125rem; }
:is(.showcase-alert-dialog-record__copy, .showcase-alert-dialog-result) strong { overflow-wrap: anywhere; }
:is(.showcase-alert-dialog-record__copy, .showcase-alert-dialog-result) small { color: var(--shadcn-muted-foreground); }
.showcase-alert-dialog-trigger {
    min-block-size: 2.25rem;
    padding-inline: .75rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    font: inherit;
    font-weight: 500;
    white-space: nowrap;
}
.showcase-alert-dialog-trigger:hover { background: var(--shadcn-accent); color: var(--shadcn-accent-foreground); }
.showcase-alert-dialog-warning {
    border-radius: 999px;
    background: color-mix(in oklch, var(--shadcn-destructive) 12%, transparent);
    color: var(--shadcn-destructive);
}
.showcase-alert-dialog-action--destructive { background: var(--shadcn-destructive); color: var(--shadcn-destructive-foreground); }
.showcase-alert-dialog-action--destructive:hover { background: color-mix(in oklch, var(--shadcn-destructive) 88%, var(--shadcn-foreground)); }
@media (max-width: 40rem) {
    .showcase-alert-dialog-record,
    .showcase-alert-dialog-result { grid-template-columns: auto minmax(0, 1fr); gap: .75rem; }
    .showcase-alert-dialog-trigger,
    .showcase-alert-dialog-result .shadcn-button { grid-column: 1 / -1; inline-size: 100%; }
}

/* Sheet dossier: keep the resting preview compact while the package portal
   demonstrates a realistic, full-edge delivery workflow. */
.showcase-sheet-dossier {
    display: grid;
    inline-size: min(100%, 28rem);
    justify-items: center;
    gap: .75rem;
}

.showcase-sheet-dossier__trigger {
    display: inline-flex;
    min-block-size: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-inline: 1rem;
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}

.showcase-sheet-dossier__trigger:hover { background: var(--shadcn-accent); color: var(--shadcn-accent-foreground); }
.showcase-sheet-dossier__trigger:focus-visible { outline: 2px solid var(--shadcn-ring); outline-offset: 2px; }
.showcase-sheet-dossier__status { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.5; text-align: center; }

.showcase-sheet-dossier__header { border-block-end: 1px solid var(--shadcn-border); }
.showcase-sheet-dossier__body { display: grid; align-content: start; gap: 1.25rem; padding-block: 1rem; }
.showcase-sheet-dossier__summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .375rem 1rem; border-block-end: 1px solid var(--shadcn-border); padding-block-end: 1rem; font-size: .8125rem; }
.showcase-sheet-dossier__summary span { color: var(--shadcn-muted-foreground); }
.showcase-sheet-dossier__summary strong { min-inline-size: 0; font-weight: 500; text-align: end; }
.showcase-sheet-dossier__footer { display: grid; grid-template-columns: 1fr 1fr; border-block-start: 1px solid var(--shadcn-border); }
.showcase-sheet-dossier__footer > * { inline-size: 100%; }
.showcase-sheet-dossier__cancel { background: transparent; }

@media (max-width: 30rem) {
    .showcase-sheet-dossier__summary { grid-template-columns: 1fr; gap: .25rem; }
    .showcase-sheet-dossier__summary strong { margin-block-end: .5rem; text-align: start; }
    .showcase-sheet-dossier__footer { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
    .showcase-sheet-dossier__trigger,
    .showcase-sheet-dossier__header,
    .showcase-sheet-dossier__summary,
    .showcase-sheet-dossier__footer { border-color: CanvasText; }
}

/* Theme Studio workbench shell */
.theme-studio-appbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-block-end: 1px solid var(--shadcn-border);
    background: var(--shadcn-background);
    backdrop-filter: none;
}

.theme-studio-appbar__primary {
    display: flex;
    min-inline-size: 0;
    min-block-size: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem max(.75rem, env(safe-area-inset-right)) .5rem max(.75rem, env(safe-area-inset-left));
}

.theme-studio-appbar__brand {
    display: inline-flex;
    min-inline-size: 0;
    align-items: center;
    gap: .625rem;
    color: var(--shadcn-foreground);
    text-decoration: none;
}

.theme-studio-appbar__logo {
    display: grid;
    flex: 0 0 auto;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--shadcn-border);
    border-radius: 50%;
    background: var(--shadcn-background);
}

.theme-studio-appbar__logo img { inline-size: 1.75rem; block-size: 1.75rem; object-fit: contain; }
[data-shadcn-theme="dark"] .theme-studio-appbar__logo img { filter: invert(1); }

.theme-studio-appbar__title { display: grid; min-inline-size: 0; gap: .0625rem; }
.theme-studio-appbar__title strong { font-size: .9375rem; font-weight: 700; letter-spacing: -.015em; }
.theme-studio-appbar__title > span { overflow: hidden; color: var(--shadcn-muted-foreground); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }
.theme-studio-appbar__actions { display: flex; flex: 0 0 auto; align-items: center; gap: .375rem; }

.theme-studio-appbar__actions svg,
.theme-studio-sidebar__heading svg {
    inline-size: 1rem;
    block-size: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-preview-toolbar {
    position: static;
    display: flex;
    min-inline-size: 0;
    align-items: end;
    gap: .375rem;
    overflow-x: auto;
    border-block-start: 1px solid color-mix(in oklch, var(--shadcn-border) 72%, transparent);
    border-block-end: 0;
    background: var(--shadcn-muted);
    box-shadow: none;
    padding: .375rem max(.75rem, env(safe-area-inset-right)) .5rem max(.75rem, env(safe-area-inset-left));
    scrollbar-width: thin;
}

.theme-preview-toolbar .theme-toolbar-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .125rem;
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-background);
    padding: .125rem;
}

.theme-preview-toolbar .shadcn-button,
.theme-preview-toolbar .shadcn-toggle { min-block-size: 2.75rem; white-space: nowrap; }

.theme-toolbar-select { display: grid; flex: 0 0 11rem; gap: .125rem; color: var(--shadcn-muted-foreground); font-size: .625rem; font-weight: 600; }
.theme-toolbar-select--composition { flex-basis: 14rem; }
.theme-toolbar-select .shadcn-select,
.theme-toolbar-select .shadcn-select-trigger { inline-size: 100%; }

.theme-studio-workbench {
    grid-template-columns: minmax(18rem, 21rem) minmax(0, 1fr);
    gap: 0;
    min-block-size: calc(100dvh - 7.5rem);
    padding: 0;
}

.theme-studio-workbench[data-controls-open="false"] { grid-template-columns: 3.5rem minmax(0, 1fr); }

.theme-studio-sidebar {
    position: sticky;
    z-index: 10;
    inset-block-start: 7.5rem;
    min-inline-size: 0;
    max-block-size: calc(100dvh - 7.5rem);
    overflow: hidden;
    border-inline-end: 1px solid var(--shadcn-border);
    background: var(--shadcn-background);
    scrollbar-width: none;
}

.theme-studio-sidebar::-webkit-scrollbar { display: none; }
.theme-studio-workbench[data-controls-open="false"] .theme-studio-sidebar { display: flex; }
.theme-studio-sidebar__heading { display: flex; min-block-size: 3.5rem; align-items: center; justify-content: space-between; gap: .75rem; border-block-end: 1px solid var(--shadcn-border); padding-inline: 1rem .5rem; }
.theme-studio-sidebar__collapse { min-inline-size: 2.75rem; min-block-size: 2.75rem; }

.theme-inspector { position: static; max-block-size: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; padding: 1rem; }
.theme-inspector__sticky-heading { display: grid; gap: .625rem; align-items: center; margin-block-end: 1rem; }
.theme-inspector__sticky-heading h2 { margin: 0; }
.theme-inspector-completion { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.theme-validation-status { min-inline-size: 0; padding: 0; border: 0; background: transparent; color: var(--shadcn-muted-foreground); font: inherit; font-size: .6875rem; font-weight: 600; text-align: start; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; cursor: pointer; transition: color 150ms ease, text-decoration-color 150ms ease; }
.theme-validation-status:hover { color: var(--shadcn-foreground); text-decoration-color: currentColor; }
.theme-validation-status:focus-visible { border-radius: .2rem; outline: 2px solid var(--shadcn-ring); outline-offset: 3px; }
.theme-device-options { margin-block-start: .625rem; }
.theme-history-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.theme-history-actions .shadcn-button { min-inline-size: 0; min-block-size: 2.75rem; padding-inline: .5rem; }
.theme-preset-status { min-block-size: 1.25rem; margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.4; }
.theme-inspector-disclosure,
.theme-typography-advanced { border-block-start: 1px solid var(--shadcn-border); }
.theme-inspector-disclosure[data-state="open"] { position: relative; z-index: 3; }
.theme-inspector-disclosure[data-state="open"] .shadcn-select-content { z-index: 80; }
.theme-inspector-disclosure__trigger { display: flex; min-block-size: 3.5rem; inline-size: 100%; align-items: center; justify-content: space-between; gap: .75rem; border: 0; background: transparent; color: var(--shadcn-foreground); padding: .75rem 0; font: inherit; text-align: start; cursor: pointer; }
.theme-inspector-disclosure__trigger > span:first-child { display: grid; gap: .125rem; }
.theme-inspector-disclosure__trigger strong { font-size: .8125rem; }
.theme-inspector-disclosure__trigger small { color: var(--shadcn-muted-foreground); font-size: .6875rem; font-weight: 400; }
.theme-inspector-disclosure__trigger .shadcn-icon { transition: rotate var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard); }
.theme-inspector-disclosure[data-state="open"] > .theme-inspector-disclosure__trigger .shadcn-icon,
.theme-typography-advanced[data-state="open"] > .theme-inspector-disclosure__trigger .shadcn-icon { rotate: 180deg; }
.theme-inspector-disclosure .theme-inspector-group { padding-block: .25rem 1rem; }
.theme-icon-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem; }
.theme-icon-options .shadcn-button { min-inline-size: 0; min-block-size: 2.75rem; }

.theme-settings-anchor { display: block; scroll-margin-block-start: 8.25rem; }
.theme-inspector-select { display: grid; gap: .25rem; color: var(--shadcn-muted-foreground); font-size: .6875rem; font-weight: 600; }
.theme-inspector-select .shadcn-select,
.theme-inspector-select .shadcn-select-trigger { inline-size: 100%; }

.theme-transfer-section { margin-block-start: 1rem; border-block-start: 1px solid var(--shadcn-border); padding-block-start: 1rem; }
.theme-transfer-section h3,
.theme-transfer-section p { margin: 0; }
.theme-transfer-section p { margin-block-start: .25rem; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-transfer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem; margin-block-start: .75rem; }
.theme-transfer-actions .shadcn-button { min-inline-size: 0; min-block-size: 2.5rem; padding-inline: .75rem; white-space: nowrap; }
.theme-transfer-actions .shadcn-button:last-child { grid-column: 1 / -1; }

.theme-palette-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    margin-block: .25rem 1rem;
    border-block: 1px solid var(--shadcn-border);
    padding-block: 1rem;
}

.theme-palette-summary__copy { display: grid; min-inline-size: 0; align-content: center; gap: .125rem; }
.theme-palette-summary__copy strong { font-size: .8125rem; }
.theme-palette-summary__copy span { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.theme-palette-summary__swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-block-size: 3.5rem; overflow: clip; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); }
.theme-palette-summary__swatch { min-block-size: 3.5rem; border-inline-end: 1px solid color-mix(in oklch, var(--shadcn-background) 45%, transparent); transition: background-color 150ms ease; }
.theme-palette-summary__swatch:last-child { border-inline-end: 0; }
.theme-palette-summary__trigger { display: flex; inline-size: 100%; min-block-size: 2.75rem; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); background: var(--shadcn-background); color: var(--shadcn-foreground); padding: .625rem .75rem; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.theme-palette-summary__trigger:hover { background: var(--shadcn-accent); color: var(--shadcn-accent-foreground); }
.theme-palette-summary__trigger-symbol { font-size: 1rem; transition: rotate var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard); }
.theme-palette-summary[data-state="open"] .theme-palette-summary__trigger-symbol { rotate: 180deg; }

.theme-palette-workbench {
    display: grid;
    min-inline-size: 0;
    min-block-size: 0;
    gap: .75rem;
    margin-block-start: .25rem;
    border-block-start: 1px solid var(--shadcn-border);
    background: var(--shadcn-background);
    color: var(--shadcn-foreground);
    padding-block-start: 1rem;
}

.theme-palette-workbench__header {
    min-inline-size: 0;
}

.theme-palette-workbench__header > div { display: grid; min-inline-size: 0; gap: .25rem; }
.theme-palette-workbench__header h2,
.theme-palette-workbench__header p { margin: 0; }
.theme-palette-workbench__header h2 { font-size: .875rem; line-height: 1.3; }
.theme-palette-workbench__header p { color: var(--shadcn-muted-foreground); font-size: .6875rem; line-height: 1.45; }

.theme-palette-workbench__strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-block-size: 2.75rem;
    overflow: clip;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
}

.theme-palette-workbench__strip > span,
.theme-palette-anchor__swatch { transition: background-color 150ms ease; }
.theme-palette-workbench__body { display: grid; min-inline-size: 0; min-block-size: 0; gap: .75rem; }
.theme-palette-workbench__body > .shadcn-button { inline-size: 100%; min-block-size: 2.75rem; }
.theme-palette-workbench__derived { display: grid; gap: .375rem; }
.theme-palette-workbench__derived > strong { font-size: .75rem; }
.theme-palette-workbench__anchors { display: grid; gap: .75rem; }

.theme-palette-anchor {
    min-inline-size: 0;
    margin: 0;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    padding: .625rem;
}

.theme-palette-anchor legend { padding-inline: .25rem; font-size: .75rem; font-weight: 700; }
.theme-palette-anchor__controls { display: grid; grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr); align-items: center; gap: .5rem; min-inline-size: 0; }
.theme-palette-anchor__swatch { inline-size: 1.5rem; block-size: 2.75rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-sm); }
.theme-palette-anchor__picker { inline-size: 2.75rem; block-size: 2.75rem; min-inline-size: 2.75rem; min-block-size: 2.75rem; border: 1px solid var(--shadcn-input); border-radius: var(--shadcn-radius-sm); background: var(--shadcn-background); padding: .1875rem; cursor: pointer; }
.theme-palette-anchor .shadcn-input { min-inline-size: 0; inline-size: 100%; min-block-size: 2.75rem; font-family: var(--shadcn-font-mono); font-size: .6875rem; }
.theme-palette-anchor .shadcn-button { min-inline-size: 2.75rem; min-block-size: 2.75rem; padding-inline: .625rem; }
.theme-palette-anchor .shadcn-button[data-palette-copy] { grid-column: 2; }
.theme-palette-anchor .shadcn-button[data-palette-lock] { grid-column: 3; }
.theme-palette-anchor:not(:has([data-palette-lock])) .shadcn-button[data-palette-copy] { grid-column: 2 / -1; }
.theme-palette-anchor__error { grid-column: 1 / -1; margin: .5rem 0 0; color: var(--shadcn-destructive); font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }

.theme-palette-workbench__advanced { border-block-start: 1px solid var(--shadcn-border); }
.theme-palette-workbench__advanced-trigger { display: flex; inline-size: 100%; min-block-size: 2.75rem; align-items: center; justify-content: space-between; gap: .75rem; border: 0; background: transparent; color: var(--shadcn-foreground); padding: .625rem 0; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.theme-palette-workbench__advanced-trigger > span:last-child { transition: rotate var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard); }
.theme-palette-workbench__advanced[data-state="open"] .theme-palette-workbench__advanced-trigger > span:last-child { rotate: 180deg; }
.theme-palette-workbench__advanced .theme-palette-workbench__anchors { padding-block: .25rem .75rem; }

.theme-palette-workbench__diagnostics { margin-block-start: 1rem; border-block-start: 1px solid var(--shadcn-border); padding-block-start: .875rem; }
.theme-palette-workbench__diagnostics h3,
.theme-palette-workbench__diagnostics p { margin: 0; }
.theme-palette-workbench__diagnostics h3 { font-size: .8125rem; }
.theme-palette-workbench__diagnostics p { margin-block-start: .25rem; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-palette-workbench__diagnostics ul { display: grid; gap: .375rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.theme-palette-workbench__diagnostics li { display: grid; gap: .125rem; border-inline-start: 2px solid var(--shadcn-border); padding-inline-start: .5rem; font-size: .6875rem; }
.theme-palette-workbench__diagnostics code { overflow-wrap: anywhere; color: var(--shadcn-muted-foreground); }

.theme-palette-workbench__harmony { display: grid; min-inline-size: 0; gap: .25rem; color: var(--shadcn-muted-foreground); font-size: .6875rem; font-weight: 600; }
.theme-palette-workbench__harmony .shadcn-select,
.theme-palette-workbench__harmony .shadcn-select-trigger { inline-size: 100%; }
.theme-palette-workbench__harmony .shadcn-select-trigger,
.theme-palette-workbench [role="option"] { min-inline-size: 2.75rem; min-block-size: 2.75rem; }
.theme-palette-workbench__status { min-block-size: 1.25rem; margin: 0; color: var(--shadcn-muted-foreground); font-size: .6875rem; }

.theme-palette-workbench:focus-visible,
.theme-palette-anchor__picker:focus-visible,
.theme-palette-workbench :is(.shadcn-button, .shadcn-input, .shadcn-select-trigger):focus-visible {
    outline: var(--shadcn-focus-ring-width, 2px) solid var(--shadcn-ring);
    outline-offset: var(--shadcn-focus-ring-offset, 2px);
}

.theme-preview-region { min-inline-size: 0; min-block-size: calc(100dvh - 7.5rem); overflow-x: clip; overflow-anchor: none; border: 0; border-radius: 0; background: transparent; padding-block: 0; padding-inline: clamp(.75rem, 2vw, 1.5rem); }
.theme-preview-stage { inline-size: min(100%, var(--theme-preview-width)); margin-inline: auto; }

.theme-bento__orientation { display: grid; gap: .5rem; margin-block-end: 1rem; }
.theme-bento__orientation h1 { margin: 0; font-size: 1.125rem; letter-spacing: -.01em; }
.theme-bento__category-scroll { inline-size: 100%; min-inline-size: 0; overflow-x: auto; scrollbar-width: none; }
.theme-bento__category-scroll::-webkit-scrollbar { display: none; }
.theme-bento__categories { inline-size: max-content; }
.theme-bento__categories .shadcn-toggle-group-item { min-block-size: 2.5rem; padding-inline: .75rem; white-space: nowrap; }
.theme-bento__categories .shadcn-toggle-group-item[data-state="on"] { border-color: var(--shadcn-primary); background: var(--shadcn-primary); color: var(--shadcn-primary-foreground); }

.theme-preview-scope[data-preview-reduced-motion="true"] *,
.theme-preview-scope[data-preview-reduced-motion="true"] *::before,
.theme-preview-scope[data-preview-reduced-motion="true"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
}

.theme-preview-scope[data-preview-high-contrast="true"] .theme-bento {
    --shadcn-border: var(--shadcn-foreground);
    --shadcn-input: var(--shadcn-foreground);
    --shadcn-ring: var(--shadcn-foreground);
    --shadcn-muted-foreground: var(--shadcn-foreground);
}

@media (max-width: 64rem) {
    .theme-studio-workbench,
    .theme-studio-workbench[data-controls-open="true"],
    .theme-studio-workbench[data-controls-open="false"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .theme-preview-region { grid-row: 1; }

    .theme-studio-sidebar-provider { position: fixed; z-index: 60; inset: 0; pointer-events: none; }
    .theme-studio[data-sidebar-open="true"] .theme-studio-sidebar-provider { background: color-mix(in oklch, var(--shadcn-foreground) 32%, transparent); pointer-events: auto; }
    .theme-studio-sidebar-provider :is(.theme-studio-sidebar, .shadcn-sidebar-backdrop) { pointer-events: auto; }
    .theme-studio-sidebar {
        position: fixed;
        z-index: 61;
        inset-block: 0;
        inset-inline-start: 0;
        inline-size: min(22rem, calc(100vw - 1rem));
        max-block-size: 100dvh;
        box-shadow: 0 1.25rem 3rem color-mix(in oklch, var(--shadcn-foreground) 20%, transparent);
    }

    .theme-studio-sidebar__heading {
        position: sticky;
        z-index: 2;
        inset-block-start: 0;
        min-block-size: 3.5rem;
        align-items: center;
        justify-content: space-between;
        border-block-end: 1px solid var(--shadcn-border);
        background: var(--shadcn-background);
        padding-inline: 1rem .5rem;
    }

}

@media (max-width: 48rem) {
    .theme-studio-appbar__primary { min-block-size: 3.5rem; padding-inline: max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-left)); }
    .theme-studio-appbar__title > span,
    .theme-studio-docs-link { display: none; }
    .theme-preview-toolbar { padding-inline: max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-left)); }
    .theme-preview-region { padding-block: 0; padding-inline: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-studio-sidebar { transition: none; }
    .theme-palette-summary__swatch,
    .theme-palette-workbench__strip > span,
    .theme-palette-anchor__swatch { transition: none !important; }
}

@media (forced-colors: active) {
    .theme-studio-appbar,
    .theme-preview-toolbar,
    .theme-studio-sidebar,
    .theme-transfer-section,
    .theme-palette-summary,
    .theme-palette-summary__swatches,
    .theme-palette-workbench,
    .theme-palette-workbench__header,
    .theme-palette-workbench__strip,
    .theme-palette-workbench__actions,
    .theme-palette-anchor,
    .theme-palette-anchor__swatch,
    .theme-palette-anchor__picker { border-color: CanvasText; forced-color-adjust: auto; }
    .theme-palette-anchor [data-palette-lock][aria-pressed="true"] { border: 2px solid Highlight; }
    .theme-palette-workbench :is(.shadcn-button, .shadcn-input, .shadcn-select-trigger, .theme-palette-anchor__picker):focus {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
}

/* Theme Studio typography editor and semantic preview contract. */
.theme-typography-editor { gap: 1rem; }
.theme-typography-editor__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem; }
.theme-typography-editor__intro p { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.45; }
.theme-font-current { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.theme-font-slot { display: grid; min-inline-size: 0; min-block-size: 3rem; gap: .125rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); background: var(--shadcn-background); color: var(--shadcn-foreground); padding: .5rem .625rem; font: inherit; text-align: start; cursor: pointer; }
.theme-font-slot[data-active="true"] { border-color: var(--shadcn-ring); background: var(--shadcn-accent); }
.theme-font-slot span, .theme-font-results small { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.theme-font-slot[data-active="true"] span, .theme-font-results button[data-selected="true"] small { color: var(--shadcn-foreground); }
.theme-font-slot strong { overflow: hidden; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.theme-font-search { display: grid; gap: .375rem; color: var(--shadcn-foreground); font-size: .75rem; font-weight: 600; }
.theme-font-filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.theme-font-filters label { display: inline-flex; min-block-size: 2.75rem; align-items: center; gap: .5rem; font-size: .75rem; }
.theme-font-status, .theme-font-load-status { margin: 0; color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.45; }
.theme-font-load-status[data-state="failed"], .theme-font-load-status[data-state="timedout"] { color: var(--shadcn-destructive); }
.theme-font-results { display: grid; max-block-size: 15rem; justify-items: stretch; gap: .25rem; margin: 0; padding: 0; overflow-y: auto; direction: ltr; text-align: start; list-style: none; scrollbar-width: thin; }
.theme-font-results li { inline-size: 100%; text-align: left; }
.theme-font-results button { display: grid; min-block-size: 2.75rem; inline-size: 100%; justify-content: start; justify-items: start; gap: .125rem; border: 0; border-radius: var(--shadcn-radius-sm); background: transparent; color: var(--shadcn-foreground); padding: .45rem .625rem; font: inherit; text-align: start; cursor: pointer; }
.theme-font-results button:hover, .theme-font-results button:focus-visible, .theme-font-results button[data-selected="true"] { background: var(--shadcn-accent); }
.theme-font-results button:focus-visible, .theme-font-slot:focus-visible, .theme-role-card input:focus-visible { outline: var(--shadcn-focus-ring-width) solid var(--shadcn-ring); outline-offset: var(--shadcn-focus-ring-offset); }
.theme-font-results span { font-size: .8125rem; font-weight: 600; }
.theme-role-list { display: grid; gap: .5rem; }
.theme-role-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin: 0; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); padding: .625rem; }
.theme-role-card legend { padding-inline: .25rem; font-size: .75rem; font-weight: 650; }
.theme-role-card label { display: grid; min-inline-size: 0; gap: .25rem; color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.theme-role-card :is(input, .shadcn-select, .shadcn-select-trigger) { box-sizing: border-box; min-inline-size: 0; inline-size: 100%; }
.theme-role-card input { min-block-size: 2.25rem; border: 1px solid var(--shadcn-input); border-radius: var(--shadcn-radius-sm); background: var(--shadcn-background); color: var(--shadcn-foreground); padding-inline: .4rem; font: inherit; }

@media (max-width: 40rem) {
    .theme-font-current { grid-template-columns: 1fr; }
    .theme-role-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (forced-colors: active) {
    .theme-font-slot[data-active="true"], .theme-font-results button[data-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
/* Curated Theme Studio Bento preview */
.theme-bento {
    container-type: inline-size;
    min-inline-size: 0;
    overflow: visible;
    padding-block-start: clamp(1rem, 2vw, 1.5rem);
}

/* Task-oriented documentation landing pages keep the catalog rail available
   on compact screens while giving setup and discovery the full desktop canvas. */
.documentation-guide {
    display: grid;
    inline-size: min(100%, 66rem);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    margin-inline: auto;
}

.documentation-guide__hero {
    display: grid;
    max-inline-size: 48rem;
    gap: 1rem;
}

.documentation-guide__hero h1 {
    max-inline-size: 15ch;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.documentation-guide__hero p,
.documentation-guide__section > p {
    color: var(--shadcn-muted-foreground);
    line-height: 1.7;
}

.documentation-guide__section { display: grid; gap: 1rem; }
.documentation-guide__section :where(h2, h3, p) { margin: 0; }
.documentation-guide__step { grid-template-columns: 2.5rem minmax(0, 1fr); align-items: start; }
.documentation-guide__step-number { display: grid; inline-size: 2.25rem; block-size: 2.25rem; place-items: center; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); font-weight: 700; }
.documentation-guide__step > div { display: grid; min-inline-size: 0; gap: .75rem; }
.documentation-guide__concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.documentation-guide__concepts article { display: grid; gap: .5rem; border-block-start: 1px solid var(--shadcn-border); padding-block-start: 1rem; }
.documentation-guide__concepts p { color: var(--shadcn-muted-foreground); line-height: 1.6; }

.agentic-showcase {
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.agentic-showcase__intro {
    display: grid;
    max-inline-size: 48rem;
    gap: .625rem;
}

.agentic-showcase__intro p {
    margin: 0;
    color: var(--shadcn-muted-foreground);
    line-height: 1.7;
}

.agentic-showcase__intro code {
    color: var(--shadcn-foreground);
}

.agentic-loop {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-lg);
    background: color-mix(in oklch, var(--shadcn-background) 96%, var(--shadcn-muted));
}

.agentic-loop__chrome {
    display: flex;
    min-block-size: 3rem;
    align-items: center;
    gap: .65rem;
    border-block-end: 1px solid var(--shadcn-border);
    padding-inline: 1rem;
    color: var(--shadcn-muted-foreground);
    font-size: .75rem;
    font-weight: 650;
}

.agentic-loop__window-mark {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.agentic-loop__window-mark i {
    display: block;
    inline-size: .4rem;
    block-size: .4rem;
    border-radius: 999px;
    background: var(--shadcn-muted-foreground);
    opacity: .4;
}

.agentic-loop__skill {
    margin-inline-start: auto;
    color: var(--shadcn-foreground);
}

.agentic-loop__progress {
    position: absolute;
    z-index: 2;
    inset-block-start: calc(3rem - 1px);
    inset-inline: 0;
    block-size: 2px;
    background: var(--shadcn-primary);
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: agentic-progress-cycle 18s linear infinite;
    animation-play-state: paused;
}

.agentic-loop__stage {
    position: relative;
    min-block-size: 27rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.agentic-loop__scene {
    position: absolute;
    inset: clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

[dir="rtl"] .agentic-loop__progress {
    transform-origin: 100% 50%;
}

.agentic-loop__step {
    opacity: 0;
    filter: blur(5px);
    clip-path: inset(0 0 16% 0 round var(--shadcn-radius-lg));
    transform: translateY(.75rem);
    animation: agentic-message-cycle 18s cubic-bezier(.16, 1, .3, 1) var(--agentic-delay) infinite both;
    animation-play-state: paused;
}

.agentic-showcase[data-loop-active="fallback"] .agentic-loop__progress {
    display: none;
}

.agentic-showcase[data-loop-active="fallback"] .agentic-loop__step {
    opacity: 1;
    filter: none;
    clip-path: none;
    transform: none;
    animation: none;
}

.agentic-showcase[data-loop-active="fallback"] .agentic-loop__scene {
    position: relative;
    inset: auto;
}

.agentic-showcase[data-loop-active="fallback"] .agentic-loop__scene:not([data-agentic-scene="sidebar"]) {
    display: none;
}

.agentic-showcase[data-loop-active="true"] :is(.agentic-loop__step, .agentic-loop__progress) {
    animation-play-state: running;
}

.agentic-loop__scene .shadcn-bubble {
    max-inline-size: min(82%, 36rem);
}

.agentic-loop__scene .shadcn-bubble-content {
    display: grid;
    gap: .55rem;
    line-height: 1.45;
}

.agentic-loop__scene .shadcn-bubble-content > span:not(.agentic-loop__components) {
    color: color-mix(in oklch, currentColor 76%, transparent);
    font-size: .875rem;
}

.agentic-loop__components {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding-block-start: .15rem;
}

.agentic-loop__components b {
    border: 1px solid color-mix(in oklch, currentColor 18%, transparent);
    border-radius: 999px;
    padding: .25rem .5rem;
    font-size: .6875rem;
    font-weight: 650;
}

.agentic-loop__status-icon {
    inline-size: 1rem;
    block-size: 1rem;
}

@keyframes agentic-message-cycle {
    0%, 100% { opacity: 0; filter: blur(5px); clip-path: inset(0 0 16% 0 round var(--shadcn-radius-lg)); transform: translateY(.75rem); }
    3%, 22% { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0 round var(--shadcn-radius-lg)); transform: translateY(0); }
    27% { opacity: 0; filter: blur(2px); clip-path: inset(12% 0 0 0 round var(--shadcn-radius-lg)); transform: translateY(-.4rem); }
}

@keyframes agentic-progress-cycle {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .agentic-loop__progress { display: none; animation: none; }
    .agentic-loop__step { opacity: 1; filter: none; clip-path: none; transform: none; animation: none; }
    .agentic-loop__scene { position: relative; inset: auto; }
    .agentic-loop__scene:not([data-agentic-scene="sidebar"]) { display: none; }
}

@media (max-width: 40rem) {
    .agentic-loop__chrome { padding-inline: .75rem; }
    .agentic-loop__skill { max-inline-size: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agentic-loop__stage { min-block-size: 31rem; padding: 1rem; }
    .agentic-loop__scene { inset: 1rem; }
    .agentic-loop__scene .shadcn-bubble { max-inline-size: 92%; }
    .agentic-loop__scene .shadcn-marker { font-size: .75rem; }
}

@media (forced-colors: active) {
    .agentic-loop { border-color: CanvasText; background: Canvas; }
    .agentic-loop__progress { background: Highlight; }
    .agentic-loop__components b { border-color: CanvasText; }
}

.documentation-guide__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.documentation-guide__links a { display: grid; gap: .4rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); padding: 1rem; color: inherit; text-decoration: none; }
.documentation-guide__links a:hover { border-color: var(--shadcn-ring); background: var(--shadcn-accent); }
.documentation-guide__links span { color: var(--shadcn-muted-foreground); font-size: .875rem; line-height: 1.55; }
.documentation-guide__section > details { border-block-end: 1px solid var(--shadcn-border); padding-block: .75rem; }
.documentation-guide__section > details summary { font-weight: 650; cursor: pointer; }
.documentation-guide__section > details p { padding-block-start: .75rem; color: var(--shadcn-muted-foreground); }

.documentation-directory { display: grid; gap: 1.25rem; scroll-margin-block-start: 1.5rem; }
.documentation-directory__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .35fr); gap: .75rem; }
.documentation-directory__controls :is(input, select) { box-sizing: border-box; inline-size: 100%; min-block-size: 2.75rem; border: 1px solid var(--shadcn-input); border-radius: var(--shadcn-radius-md); background: var(--shadcn-background); color: var(--shadcn-foreground); padding-inline: .75rem; font: inherit; }
.documentation-directory-group { border-block-start: 1px solid var(--shadcn-border); }
.documentation-directory-group summary { display: flex; min-block-size: 3.5rem; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 700; list-style: none; }
.documentation-directory-group summary::-webkit-details-marker { display: none; }
.documentation-directory-group summary span:last-child { color: var(--shadcn-muted-foreground); font-size: .75rem; font-variant-numeric: tabular-nums; }
.documentation-directory-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.documentation-directory-link { display: flex; min-block-size: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); padding: .75rem; color: inherit; text-decoration: none; }
.documentation-directory-link:hover { border-color: var(--shadcn-ring); background: var(--shadcn-accent); }
.documentation-directory-link > span:first-child { display: grid; min-inline-size: 0; gap: .2rem; }
.documentation-directory-link small { overflow: hidden; color: var(--shadcn-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.documentation-directory__empty { display: grid; justify-items: start; gap: .5rem; border: 1px dashed var(--shadcn-border); border-radius: var(--shadcn-radius-lg); padding: 2rem; }

@media (min-width: 64rem) {
    .documentation-shell:is([data-documentation-route="overview"], [data-documentation-route="catalog"]) .documentation-workbench { grid-template-columns: minmax(0, 1fr); }
    .documentation-shell:is([data-documentation-route="overview"], [data-documentation-route="catalog"]) :is(.documentation-catalog, .documentation-outline) { display: none; }
    .documentation-shell:is([data-documentation-route="overview"], [data-documentation-route="catalog"]) .documentation-content { grid-column: 1; }
}

@media (max-width: 48rem) {
    .documentation-guide__concepts,
    .documentation-guide__links,
    .documentation-directory__controls,
    .documentation-directory-group ul { grid-template-columns: minmax(0, 1fr); }
    .documentation-guide__hero h1 { max-inline-size: none; }
}

.theme-bento__grid {
    padding-block: 1rem;
    padding-inline: 0;
}
.theme-bento__grid .shadcn-bento-grid__layout { align-items: start; }
.theme-bento__grid .shadcn-bento-item { min-inline-size: 0; }
.theme-bento__grid .shadcn-bento-item > .theme-bento__reveal,
.theme-bento__grid .theme-bento__reveal > .theme-use-case-card { block-size: 100%; }
.theme-bento__grid[data-layout="masonry"] .shadcn-bento-item > .theme-bento__reveal,
.theme-bento__grid[data-layout="masonry"] .theme-bento__reveal > .theme-use-case-card { block-size: auto; }

.theme-use-case-card {
    --theme-use-case-boundary: color-mix(in oklch, var(--shadcn-style-border, var(--shadcn-border)) 84%, var(--shadcn-foreground) 16%);
    min-inline-size: 0;
    position: relative;
    border: var(--shadcn-style-border-width, 1px) solid transparent;
    background-clip: padding-box;
    box-shadow: var(--shadcn-style-shadow, none);
    font-size: clamp(.875rem, calc(1rem * var(--shadcn-typography-body-scale)), 1.125rem);
    font-weight: var(--shadcn-typography-body-weight);
    line-height: var(--shadcn-typography-body-line-height);
    letter-spacing: var(--shadcn-typography-body-letter-spacing);
}
.theme-use-case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: var(--shadcn-style-border-width, 1px) solid var(--theme-use-case-boundary);
    border-radius: inherit;
    pointer-events: none;
}
.theme-use-case-card[data-bento-size] { vertical-align: top; }
.theme-use-case-card :where(.shadcn-input:not([data-slot="input-group-control"]):not(.shadcn-combobox-control), .shadcn-textarea:not([data-slot="input-group-control"]), .shadcn-select-trigger):focus-visible {
    border-color: color-mix(in oklch, var(--shadcn-ring) 72%, var(--shadcn-input));
    outline: 1px solid color-mix(in oklch, var(--shadcn-ring) 42%, transparent);
    outline-offset: 1px;
    box-shadow: none;
}
.theme-preview-scope:has(:is(.shadcn-dialog-portal, .shadcn-alert-dialog-portal, .shadcn-sheet-portal, .shadcn-drawer-portal)) { container-type: normal; }
.theme-preview-scope {
    --theme-status-success: oklch(0.47 0.13 151);
    --theme-status-success-foreground: oklch(0.985 0 0);
}
.theme-preview-scope[data-shadcn-theme="dark"] {
    --theme-status-success: oklch(0.72 0.14 151);
    --theme-status-success-foreground: oklch(0.18 0.035 151);
}
.theme-preview-scope .shadcn-alert[data-variant="destructive"] {
    color: color-mix(in oklch, var(--shadcn-destructive) 72%, var(--shadcn-foreground));
}
.theme-status-success.shadcn-badge { background: var(--theme-status-success); color: var(--theme-status-success-foreground); }
.theme-status-success.shadcn-progress .shadcn-progress-indicator { background: var(--theme-status-success); }
.theme-runway-dropzone > .shadcn-dropzone-input { opacity: 0 !important; }
.theme-runway-dropzone[data-state="loading"] { opacity: 1; }
.theme-use-case-card .shadcn-card-title {
    font-size: clamp(1rem, calc(1rem * var(--shadcn-typography-heading-4-to-6-scale)), 1.5rem);
    font-weight: var(--shadcn-typography-heading-4-to-6-weight);
    line-height: var(--shadcn-typography-heading-4-to-6-line-height);
    letter-spacing: var(--shadcn-typography-heading-4-to-6-letter-spacing);
}
.theme-use-case-card :where(label, .shadcn-progress-label) {
    font-size: clamp(.75rem, calc(1rem * var(--shadcn-typography-label-scale)), 1rem);
    font-weight: var(--shadcn-typography-label-weight);
    line-height: var(--shadcn-typography-label-line-height);
    letter-spacing: var(--shadcn-typography-label-letter-spacing);
}
.theme-use-case-card .shadcn-button {
    font-size: clamp(.75rem, calc(1rem * var(--shadcn-typography-button-scale)), 1rem);
    font-weight: var(--shadcn-typography-button-weight);
    line-height: var(--shadcn-typography-button-line-height);
    letter-spacing: var(--shadcn-typography-button-letter-spacing);
}
.theme-use-case-card__content { display: grid; min-inline-size: 0; max-inline-size: 100%; gap: .875rem; overflow-wrap: break-word; word-break: normal; hyphens: none; }
.theme-use-case-card__content > * { min-inline-size: 0; max-inline-size: 100%; box-sizing: border-box; }
.theme-use-case-card[data-use-case-id="project-questionnaire"] [data-slot="questionnaire-choice"]:focus-within { outline-width: 1px; outline-offset: 1px; }
.theme-use-case-card[data-use-case-id="project-questionnaire"] [data-slot="questionnaire-actions"] { display: flex; flex-wrap: wrap; justify-content: space-between; }
.theme-use-case-card[data-use-case-id="quotation-data-table"] .shadcn-data-table-frame { border: 0; border-radius: 0; }
.theme-runway-table-summary { display: flex; min-inline-size: 0; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-runway-table-summary > span { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-runway-table-summary small { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-production-chart { inline-size: 100%; min-block-size: 17.5rem; --theme-production-milling: color-mix(in oklch, var(--shadcn-primary) 82%, white); --theme-production-turning: color-mix(in oklch, var(--shadcn-chart-2) 84%, white); }
.theme-production-chart [data-slot="chart-surface"] { inline-size: 100%; block-size: 17.5rem; max-block-size: none; }
.theme-secret-meta { display: flex; min-inline-size: 0; align-items: center; justify-content: space-between; gap: .75rem; }
.theme-secret-meta > span { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-secret-meta small,
.theme-aspect-caption { display: block; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-aspect-preview { overflow: hidden; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: color-mix(in oklch, var(--shadcn-muted) 38%, var(--shadcn-card)); }
.theme-aspect-preview__canvas { position: relative; display: grid; inline-size: 100%; block-size: 100%; min-inline-size: 0; place-items: center; overflow: hidden; color: var(--shadcn-foreground); }
.theme-aspect-preview--drawing .theme-aspect-preview__canvas { background-image: linear-gradient(color-mix(in oklch, var(--shadcn-border) 48%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, var(--shadcn-border) 48%, transparent) 1px, transparent 1px); background-size: 1.25rem 1.25rem; }
.theme-aspect-preview--drawing svg { inline-size: 88%; block-size: 88%; color: color-mix(in oklch, var(--shadcn-primary) 78%, var(--shadcn-foreground)); }
.theme-aspect-preview__annotation { position: absolute; inset-block-end: .625rem; inset-inline-start: .625rem; border: 1px solid color-mix(in oklch, var(--shadcn-border) 70%, transparent); border-radius: var(--shadcn-radius-sm); background: color-mix(in oklch, var(--shadcn-popover) 88%, transparent); padding: .25rem .5rem; color: var(--shadcn-popover-foreground); font-size: .6875rem; font-weight: 600; backdrop-filter: blur(.5rem); }
.theme-aspect-preview--camera .theme-aspect-preview__canvas::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgb(4 10 18 / .08), rgb(4 10 18 / .28)); pointer-events: none; }
.theme-camera-image { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.theme-aspect-preview--camera :where(.theme-camera-reticle, .theme-camera-reading, .theme-aspect-preview__annotation) { z-index: 1; }
.theme-camera-reading { position: absolute; inset-block-start: .625rem; inset-inline-end: .625rem; border: 1px solid rgb(255 255 255 / .42); border-radius: var(--shadcn-radius-sm); background: rgb(3 8 14 / .7); padding: .25rem .45rem; color: white; font-family: var(--shadcn-font-mono); font-size: .6875rem; backdrop-filter: blur(.35rem); }
.theme-camera-reticle { inline-size: 34%; aspect-ratio: 1; border: 1px solid var(--shadcn-primary); border-radius: 50%; box-shadow: 0 0 0 .5rem color-mix(in oklch, var(--shadcn-primary) 10%, transparent); }
.theme-camera-reticle::before,
.theme-camera-reticle::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--shadcn-primary); transform: translate(-50%, -50%); }
.theme-camera-reticle::before { inline-size: 52%; block-size: 1px; }
.theme-camera-reticle::after { inline-size: 1px; block-size: 52%; }
.theme-aspect-preview--proof .theme-aspect-preview__canvas { background: linear-gradient(145deg, color-mix(in oklch, var(--shadcn-chart-4) 18%, var(--shadcn-card)), var(--shadcn-card)); }
.theme-proof-package { display: grid; inline-size: 66%; aspect-ratio: 1.35; place-content: center; gap: .25rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: var(--shadcn-background); padding: .75rem; box-shadow: var(--shadcn-shadow-sm); text-align: center; }
.theme-proof-package span { font-size: .625rem; font-weight: 800; letter-spacing: .12em; }
.theme-proof-package small { color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.theme-use-case-card__description { margin: 0; color: var(--shadcn-muted-foreground); line-height: 1.5; }
.theme-use-case-card :where(label) { display: grid; gap: .375rem; color: var(--shadcn-foreground); font-size: .75rem; font-weight: 600; }
.theme-use-case-card__actions,
.theme-runway-machine,
.theme-runway-file,
.theme-runway-amount { display: flex; min-inline-size: 0; align-items: center; justify-content: space-between; gap: .75rem; }
.theme-use-case-card__header { min-inline-size: 0; }
.theme-use-case-card__header .shadcn-card-title { display: flex; min-inline-size: 0; align-items: center; gap: .625rem; }
.theme-workflow-inline-icon { display:inline-grid; flex:0 0 auto; place-items:center; color:currentColor; transition:transform var(--shadcn-motion-duration-fast) var(--shadcn-motion-easing-standard); }
:where(button,a):hover > .theme-workflow-inline-icon { transform:translateY(-1px) scale(1.04); }
.theme-runway-file > span { display:inline-flex; min-inline-size:0; align-items:center; gap:.5rem; }
.theme-uploaded-files { display:grid; min-inline-size:0; gap:.5rem; }
.theme-process-editor { inline-size:min(calc(100vw - 2rem),36rem); }
.theme-process-editor__steps { display:grid; gap:.75rem; }
.theme-use-case-card .shadcn-questionnaire-choice { border:1px solid var(--shadcn-border); }
.theme-questionnaire-completion { display:grid; min-width:0; gap:calc(.875rem * var(--shadcn-spacing-multiplier)); }
.theme-questionnaire-completion__intro { display:grid; gap:calc(.25rem * var(--shadcn-spacing-multiplier)); }
.theme-questionnaire-completion__intro :is(h3,p) { margin:0; }
.theme-questionnaire-completion > .shadcn-button { justify-self:start; }
.theme-runway-profile { display: flex; min-inline-size: 0; align-items: center; justify-content: flex-start; gap: .75rem; text-align: start; }
.theme-runway-profile > :last-child { display: grid; min-inline-size: 0; max-inline-size: 100%; justify-items: start; gap: .125rem; overflow-wrap: anywhere; text-align: start; }
.theme-runway-profile :where(strong, span, a) { text-align: start; }
.theme-runway-stat { display: grid; gap: .125rem; }
.theme-runway-stat strong { font-size: clamp(1.75rem, 4cqi, 2.5rem); letter-spacing: -.06em; }
.theme-runway-stat span,
.theme-runway-profile span,
.theme-runway-machine span { display: block; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-runway-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.theme-animated-input,
.theme-animated-textarea { --theme-animated-control-font-size: 1rem; position: relative; min-inline-size: 0; }
.theme-animated-input > .shadcn-input { inline-size: 100%; font-size: var(--theme-animated-control-font-size); }
.theme-animated-input[data-interacted="false"] > .shadcn-input { color: transparent; caret-color: transparent; }
.theme-animated-input__ink { position: absolute; inset-block: 0; inset-inline: .75rem; display: flex; min-inline-size: 0; align-items: center; overflow: hidden; color: var(--shadcn-foreground); font-size: var(--theme-animated-control-font-size); white-space: nowrap; pointer-events: none; }
.theme-animated-textarea > .shadcn-textarea { inline-size: 100%; font-size: var(--theme-animated-control-font-size); }
.theme-animated-textarea[data-interacted="false"] > .shadcn-textarea { color: transparent; caret-color: transparent; }
.theme-animated-textarea__ink { position: absolute; inset: .75rem; overflow: hidden; color: var(--shadcn-foreground); font-size: var(--theme-animated-control-font-size); line-height: 1.45; white-space: pre-wrap; pointer-events: none; }
@media (min-width: 48rem) {
    .theme-animated-input,
    .theme-animated-textarea { --theme-animated-control-font-size: .875rem; }
}
.theme-runway-check { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.theme-runway-check small { display: block; margin-block-start: .125rem; color: var(--shadcn-muted-foreground); font-size: .6875rem; font-weight: 400; }
.theme-runway-summary { display: grid; gap: .5rem; margin: 0; }
.theme-runway-summary > div { display: grid; grid-template-columns: minmax(max-content, .45fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.theme-runway-summary dt { min-inline-size: max-content; color: var(--shadcn-muted-foreground); white-space: nowrap; }
.theme-runway-summary dd { margin: 0; font-weight: 600; text-align: end; }
.theme-runway-reviewers { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.theme-runway-reviewers li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.theme-runway-reviewers li > span:first-child { white-space: nowrap; }
.theme-quality-checklist { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.theme-quality-checklist li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-block-end: 1px solid var(--shadcn-border); padding-block-end: .5rem; }
.theme-quality-checklist li:last-child { border-block-end: 0; padding-block-end: 0; }
.theme-quality-checklist li > span { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-quality-checklist small { color: var(--shadcn-muted-foreground); }
.theme-marker-conversation { display: grid; gap: .5rem; }
.theme-marker-conversation .shadcn-bubble { max-inline-size: min(88%, 28rem); }
.theme-marker-conversation .shadcn-bubble[data-align="end"] { justify-self: end; }
.theme-runway-reviewer-avatars .shadcn-avatar-group-count { color: var(--shadcn-foreground); font-weight: 600; }
.theme-runway-reviewer-avatars .shadcn-avatar { animation: theme-reviewer-expand 220ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes theme-reviewer-expand { from { opacity: 0; transform: translateX(-.4rem) scale(.88); } to { opacity: 1; transform: none; } }
.theme-runway-activity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .625rem; }
.theme-runway-activity > span { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-runway-activity small { color: var(--shadcn-muted-foreground); font-size: .75rem; line-height: 1.4; }
@container (max-width: 24rem) {
    .theme-runway-profile { align-items: flex-start; }
    .theme-runway-activity { grid-template-columns: auto minmax(0, 1fr); }
    .theme-runway-activity > .shadcn-badge { grid-column: 2; justify-self: start; }
    .theme-use-case-card__actions { flex-wrap: wrap; }
}
.theme-runway-action-status { margin: 0; color: var(--theme-status-success); font-size: .75rem; font-weight: 650; }
.theme-inline-detail { display: grid; gap: .25rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: color-mix(in oklch, var(--shadcn-muted) 42%, transparent); padding: .75rem; color: var(--shadcn-foreground); font-size: .75rem; }
.theme-inline-detail span { color: var(--shadcn-muted-foreground); }
.theme-runway-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-runway-breadcrumb a { color: inherit; }
.theme-runway-nav-list { display: grid; gap: .5rem; }
.theme-runway-nav-list button { display: flex; inline-size: 100%; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: var(--shadcn-muted); color: var(--shadcn-foreground); padding: .75rem; text-align: start; }
.theme-runway-nav-list button span:first-child { display: grid; gap: .125rem; }
.theme-runway-nav-list small { color: var(--shadcn-muted-foreground); }
.theme-use-case-card .shadcn-context-menu { display: block; }
.theme-bento-context-target { position: relative; z-index: 1; display: block; min-block-size: 8rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: color-mix(in oklch, var(--shadcn-muted) 48%, var(--shadcn-card)); padding: 1rem; text-align: start; }
.theme-bento-context-target span { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-drawing-review { display: grid; gap: .875rem; }
.theme-drawing-review__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.theme-drawing-viewer-dialog { width: min(calc(100vw - 2rem), 52rem); }
.theme-drawing-viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .42fr); gap: 1rem; min-width: 0; }
.theme-drawing-viewer__stage { position: relative; display: grid; min-block-size: 20rem; place-items: center; overflow: hidden; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background-color: color-mix(in oklch, var(--shadcn-muted) 52%, var(--shadcn-background)); background-image: linear-gradient(color-mix(in oklch, var(--shadcn-border) 42%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, var(--shadcn-border) 42%, transparent) 1px, transparent 1px); background-size: 1.5rem 1.5rem; color: var(--shadcn-foreground); }
.theme-drawing-viewer__stage svg { inline-size: 100%; block-size: 100%; min-block-size: 20rem; }
.theme-drawing-viewer__model { transform: rotate(var(--viewer-rotation)) scale(var(--viewer-zoom)); transform-box: fill-box; transform-origin: center; transition: transform var(--shadcn-motion-duration) var(--shadcn-motion-easing-standard); }
.theme-drawing-viewer__axes { fill: var(--shadcn-muted-foreground); stroke: var(--shadcn-muted-foreground); stroke-width: 2; font-size: .75rem; }
.theme-drawing-viewer__axes text { stroke: none; }
.theme-drawing-viewer__hud { position: absolute; inset: auto .75rem .75rem; display: flex; justify-content: space-between; gap: .5rem; color: var(--shadcn-muted-foreground); font: 600 .6875rem/1.2 var(--shadcn-font-mono); }
.theme-drawing-viewer__details { display: grid; align-content: start; gap: 1rem; }
.theme-drawing-viewer__details dl { display: grid; gap: .625rem; margin: 0; }
.theme-drawing-viewer__details dl > div { display: grid; gap: .125rem; border-block-end: 1px solid var(--shadcn-border); padding-block-end: .625rem; }
.theme-drawing-viewer__details dt { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-drawing-viewer__details dd { margin: 0; font-weight: 600; }
.theme-drawing-viewer__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.theme-bento-overlay-body { display: grid; gap: 1rem; padding: 1.25rem; }
.theme-delivery-schedule { align-content: start; }
.theme-component-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(12rem, .75fr); align-items: start; gap: 1rem; }
.theme-component-pair--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-component-stack { display: grid; align-content: start; gap: .75rem; }
.theme-component-pair :where(.showcase-calendar-dossier, .shadcn-calendar) { inline-size: 100%; }
.theme-carousel-stage { overflow: clip; border-radius: var(--shadcn-radius-lg); background: color-mix(in oklch, var(--shadcn-muted) 52%, transparent); }
.theme-carousel-stage__body { display: grid; width: 100%; min-inline-size: 0; block-size: 100%; grid-template-columns: minmax(0, 1fr); place-content: center; justify-items: center; gap: .5rem; box-sizing: border-box; padding: 1rem; text-align: center; overflow-wrap: anywhere; }
.theme-carousel-stage__body > * { min-inline-size: 0; max-inline-size: 100%; }
.theme-carousel-stage__body > :is(strong, span) { display: block; }
.theme-carousel-stage span { color: var(--shadcn-muted-foreground); }
.theme-use-case-card[data-use-case-id="production-carousel"] .shadcn-carousel { padding-inline: calc(2.75rem * var(--shadcn-spacing-multiplier)); }
.theme-use-case-card[data-use-case-id="production-carousel"] .shadcn-carousel-previous { inset-inline-start: 0; }
.theme-use-case-card[data-use-case-id="production-carousel"] .shadcn-carousel-next { inset-inline-end: 0; }
@container (max-width: 38rem) {
    .theme-component-pair { grid-template-columns: minmax(0, 1fr); }
    .theme-component-pair .shadcn-calendar { --shadcn-calendar-cell: min(2rem, calc((100cqi - 3rem) / 7)); }
}
.theme-rtl-work-order { display: grid; gap: .625rem; border-radius: var(--shadcn-radius-lg); background: var(--shadcn-style-control-material, var(--shadcn-muted)); padding: 1rem; text-align: start; }
.theme-rtl-work-order :where(h3, p) { margin: 0; }
.theme-rtl-work-order > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.theme-alert-dialog-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .875rem; }
.theme-alert-dialog-heading .shadcn-alert-dialog-media { inline-size: 2rem; block-size: 2rem; border-radius: 50%; background: color-mix(in oklch, var(--shadcn-destructive) 14%, transparent); color: var(--shadcn-destructive); }
.theme-bento-dispatch-drawer [data-slot="drawer-footer"] { flex-direction: row; justify-content: flex-end; }
.theme-runway-chat { display: grid; gap: .75rem; }
.theme-runway-chat .shadcn-marker[data-variant="separator"] { margin-block-end: .75rem; }
.theme-runway-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; border-block-start: 1px solid var(--shadcn-border); padding-block-start: .75rem; }
.theme-runway-typing-text { display: block; max-inline-size: 100%; overflow-wrap: break-word; word-break: normal; white-space: pre-wrap; }
.theme-typing-word { display: inline-block; white-space: nowrap; }
.theme-typing-flow { white-space: pre-wrap; }
.theme-typing-glyph {
    white-space: pre;
    opacity: 1;
    animation-name: theme-typing-glyph-reveal;
    animation-duration: 1ms;
    animation-delay: calc(var(--theme-typing-index) * 32ms);
    animation-timing-function: step-end;
    animation-fill-mode: backwards;
}
@keyframes theme-typing-glyph-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.theme-runway-chat .shadcn-message-scroller { block-size: min(22rem, 46vh); }
@media (max-width: 40rem) {
    .theme-drawing-viewer { grid-template-columns: 1fr; }
    .theme-component-pair,
    .theme-component-pair--compact { grid-template-columns: 1fr; }
    .theme-drawing-viewer__stage,
    .theme-drawing-viewer__stage svg { min-block-size: 14rem; }
}
.theme-scenario-bento-card__header { gap: .75rem; }
.theme-scenario-bento-card__states { display: flex; flex-wrap: wrap; gap: .375rem; }
.theme-scenario-bento-card__states .shadcn-button { min-inline-size: 0; }
.theme-scenario-bento-card__content { padding-block-start: 0; }
.theme-scenario-bento-card .theme-scenario-host { border: 0; background: transparent; }
.theme-scenario-bento-card .theme-scenario-host__surface { padding: 0; }

.theme-preview-scope[data-preview-reduced-motion="true"] .theme-typing-glyph,
.theme-preview-scope[data-preview-reduced-motion="true"] .theme-bento__grid .shadcn-bento-item,
.theme-preview-scope[data-preview-reduced-motion="true"] .theme-bento__grid .shadcn-bento-item * { animation: none !important; opacity: 1; transform: none; }
.theme-studio:has(.theme-preview-scope[data-preview-reduced-motion="true"]) :is(.theme-palette-summary__swatch, .theme-palette-workbench__strip > span, .theme-palette-anchor__swatch) { transition: none !important; }

@media (forced-colors: active) {
    .theme-use-case-card,
    .theme-runway-nav-list button { border-color: CanvasText; }
}

/* Theme Studio unified shell and scoped controls */
.theme-studio-shell { display: grid; min-block-size: 100dvh; grid-template-rows: auto minmax(0, 1fr); background: var(--shadcn-background); }
.theme-studio-shell > .documentation-header { position: sticky; inset-block-start: 0; z-index: 40; }
.theme-studio-main { min-block-size: 0; block-size: calc(100dvh - var(--documentation-header-height, 4rem)); padding: 0; }
.theme-studio { min-block-size: 0; block-size: 100%; }
.theme-studio-workbench { min-block-size: 0; block-size: 100%; }
.theme-studio-sidebar-provider { min-block-size: 0; block-size: 100%; }
.theme-studio-sidebar-provider > .shadcn-sidebar { position: relative; inset-block-start: auto; inline-size: 100%; block-size: 100%; max-block-size: none; }
.theme-studio-sidebar .shadcn-sidebar-content { min-block-size: 0; overflow-y: auto; }
.theme-studio-sidebar-provider { overflow: visible; }
.theme-studio-sidebar__compact-menu { display: none; }
.documentation-sidebar-toggle { display: none; }

@media (min-width: 64.001rem) {
    .theme-studio-sidebar-provider[data-state="collapsed"] { inline-size: 3.5rem; }
    .theme-studio-sidebar-provider > .shadcn-sidebar.theme-studio-sidebar[data-state="collapsed"][data-collapsible="offcanvas"] { inline-size: 3.5rem; overflow: visible; translate: 0; margin-inline: 0; }
    .theme-studio-sidebar[data-state="collapsed"] > :is(.shadcn-sidebar-header, .shadcn-sidebar-content, .shadcn-sidebar-footer) { display: none; }
    .theme-studio-sidebar[data-state="collapsed"] .theme-studio-sidebar__compact-menu { display: grid; align-content: start; justify-items: center; gap: .25rem; inline-size: 3.5rem; block-size: 100%; border-inline-end: 1px solid var(--shadcn-border); background: var(--shadcn-background); padding-block: .5rem; }
    .theme-studio-sidebar__compact-action { display: inline-flex; inline-size: 2.5rem; block-size: 2.5rem; align-items: center; justify-content: center; border: 0; border-radius: var(--shadcn-radius-md); background: transparent; color: var(--shadcn-muted-foreground); cursor: pointer; }
    .theme-studio-sidebar__compact-action:hover { background: var(--shadcn-accent); color: var(--shadcn-accent-foreground); }
    .theme-studio-sidebar__compact-action:focus-visible { outline: var(--shadcn-focus-ring-width) solid var(--shadcn-ring); outline-offset: var(--shadcn-focus-ring-offset); }
    .theme-studio-sidebar-provider > .theme-studio-sidebar[data-state="collapsed"][data-collapsible="offcanvas"][data-preview-expanded="true"] { position: absolute; z-index: 30; inset: 0 auto 0 0; inline-size: 20rem; box-shadow: var(--shadcn-shadow-xl); }
    .theme-studio-sidebar[data-state="collapsed"][data-preview-expanded="true"] > :is(.shadcn-sidebar-header, .shadcn-sidebar-content) { display: flex; }
    .theme-studio-sidebar[data-state="collapsed"][data-preview-expanded="true"] .theme-studio-sidebar__compact-menu { position: absolute; z-index: 32; inset: 0 auto auto 0; display: grid; block-size: 3.5rem; border-inline-end: 0; background: transparent; }
    .theme-studio-sidebar[data-state="collapsed"][data-preview-expanded="true"] .theme-studio-sidebar__compact-action:not(:first-child) { display: none; }
    .theme-studio-sidebar[data-state="collapsed"][data-preview-expanded="true"] .theme-studio-sidebar__heading { padding-inline-start: 4rem; }
}
.theme-bento .theme-runway-nav-list small { color: var(--shadcn-foreground); }
.theme-device-options { display: flex; flex-wrap: wrap; gap: .375rem; }
.theme-device-options .shadcn-button { min-block-size: 2.75rem; flex: 0 0 auto; }
.theme-locale-options { display: flex; flex-wrap: wrap; gap: .375rem; margin-block-start: .625rem; }
.theme-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 2.75rem; }
.theme-inspector-note { overflow-wrap: anywhere; color: var(--shadcn-muted-foreground); font-size: .6875rem; }
.theme-preview-stage { position: relative; }
.theme-preview-scope { display: block; overflow: visible; border: 0; border-radius: 0; background: transparent; font-family: var(--shadcn-font-sans); }
.theme-preview-region:has(.theme-preview-scope .shadcn-visual-style-scope[data-visual-style="glass"]) {
    background-color: var(--shadcn-background);
    background-image:
        linear-gradient(138deg, color-mix(in oklch, var(--shadcn-background) 26%, transparent), color-mix(in oklch, var(--shadcn-background) 16%, var(--shadcn-primary) 7%)),
        radial-gradient(circle at 12% 10%, color-mix(in oklch, var(--shadcn-primary) 24%, transparent) 0 8%, transparent 34%),
        url("../images/attachments/office-reference.png");
    background-attachment: scroll;
    background-position: center, center, 56% center;
    background-size: cover, cover, cover;
}
.theme-preview-scope .shadcn-visual-style-scope[data-visual-style="glass"] {
    min-block-size: 100%;
    background-color: transparent;
    background-image: none;
}
.theme-preview-scope .shadcn-visual-style-scope[data-visual-style="glass"] .theme-use-case-card {
    border-width: 0;
}
.theme-preview-region:has(.theme-preview-scope .shadcn-visual-style-scope[data-visual-style="liquid-glass"]) {
    --shadcn-style-environment:
        linear-gradient(132deg, color-mix(in oklch, var(--shadcn-background) 22%, var(--shadcn-primary) 7%), color-mix(in oklch, var(--shadcn-background) 10%, transparent)),
        radial-gradient(circle at 7% 4%, color-mix(in oklch, var(--shadcn-primary) 34%, transparent) 0 7%, transparent 28%),
        radial-gradient(circle at 94% 14%, color-mix(in oklch, var(--shadcn-chart-2) 28%, transparent) 0 8%, transparent 30%),
        url("../images/attachments/office-reference.png");
    background-color: var(--shadcn-background);
    background-image: var(--shadcn-style-environment);
    background-attachment: scroll;
    background-position: center, center, center, 58% center;
    background-size: cover, cover, cover, cover;
}
.theme-preview-scope .shadcn-visual-style-scope[data-visual-style="liquid-glass"] {
    --shadcn-style-environment: inherit;
    min-block-size: 100%;
    background-color: transparent;
    background-image: none;
}
.theme-preview-scope .shadcn-visual-style-scope:is([data-visual-style="glass"], [data-visual-style="liquid-glass"]) .theme-use-case-card::after {
    border: 0;
}

.theme-preview-scope .shadcn-visual-style-scope:is([data-visual-style="glass"], [data-visual-style="liquid-glass"]) .theme-use-case-card {
    color: var(--shadcn-foreground);
    overflow: clip;
    isolation: isolate;
    background-origin: border-box;
}

.theme-preview-scope .shadcn-visual-style-scope:is([data-visual-style="glass"], [data-visual-style="liquid-glass"]) .shadcn-reveal {
    clip-path: none;
    transform: none;
    transition-property: opacity;
}

.theme-preview-scope .shadcn-visual-style-scope:is([data-visual-style="glass"], [data-visual-style="liquid-glass"]) :where(.theme-bento-context-target, .theme-inline-detail, .theme-quality-console__evidence > div, .theme-handoff-console__packet) {
    border-color: transparent;
    background: var(--shadcn-style-control-material, var(--shadcn-style-control-surface));
    backdrop-filter: blur(var(--shadcn-style-control-blur, var(--shadcn-style-blur))) saturate(var(--shadcn-style-saturation));
}

.showcase-alert-dialog-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .875rem; }
.showcase-alert-dialog-heading .shadcn-alert-dialog-media { margin-block-start: .125rem; }

@media (max-width: 64rem) {
    .theme-studio-sidebar-provider { position: fixed; z-index: 60; inset: 0; min-block-size: 0; pointer-events: none; }
    .theme-studio[data-sidebar-open="false"] .theme-studio-sidebar-provider { display: none; }
    .theme-studio[data-sidebar-open="true"] .theme-studio-sidebar-provider { background: color-mix(in oklch, var(--shadcn-foreground) 32%, transparent); pointer-events: auto; }
    .theme-studio-sidebar-provider > .shadcn-sidebar { position: fixed; z-index: 61; inset-block: 0; inset-inline-start: 0; inline-size: min(22rem, calc(100vw - 1rem)); block-size: 100dvh; max-block-size: 100dvh; box-shadow: 0 1.25rem 3rem color-mix(in oklch, var(--shadcn-foreground) 20%, transparent); }
    .theme-studio-sidebar-provider :is(.theme-studio-sidebar, .shadcn-sidebar-backdrop) { pointer-events: auto; }
    .theme-device-choice--desktop { display: none; }
    .documentation-sidebar-toggle { display: inline-flex; }
    .theme-studio-sidebar__compact-menu { display: none !important; }
    .theme-studio-sidebar[data-state="collapsed"] > :is(.shadcn-sidebar-header, .shadcn-sidebar-content) { display: flex; }
}

@media (min-width: 64.001rem) {
    .theme-studio-workbench { block-size: calc(100dvh - var(--documentation-header-height, 4rem)); min-block-size: 0; }
    .theme-preview-region { block-size: 100%; min-block-size: 0; overflow-y: auto; }
    .theme-preview-stage,
    .theme-preview-scope { min-block-size: 0; }
}

@media (forced-colors: active) {
    .theme-use-case-card::after { border-color: CanvasText; }
}
.showcase-bento-example {
    inline-size: min(100%, 64rem);
    margin-inline: auto;
}

.showcase-bento-example__card {
    display: grid;
    align-content: start;
    gap: .375rem;
    min-block-size: 8rem;
    border: 1px solid var(--shadcn-border);
    border-radius: var(--shadcn-radius-md);
    background: var(--shadcn-card);
    color: var(--shadcn-card-foreground);
    padding: 1rem;
}

.showcase-bento-example__card > span {
    color: var(--shadcn-muted-foreground);
    font-size: .875rem;
}

.theme-operations-console { min-inline-size: 0; max-inline-size: 100%; overflow: visible; }
.theme-use-case-card:has(.theme-operations-console) { overflow: visible; }
.theme-operations-console__tabs { min-inline-size: 0; }
.theme-operations-console__overview,
.theme-operations-console__release,
.theme-operations-console__support { display: grid; gap: .9rem; padding-block-start: .9rem; }
.theme-operations-console__overview { grid-template-columns: minmax(0, 1fr); align-items: start; }
.theme-operations-console__overview > .shadcn-alert { grid-column: 1 / -1; }
.theme-operations-console__overview > .shadcn-chart { min-inline-size: 0; }
.theme-operations-console__overview > .shadcn-table-container { min-inline-size: 0; inline-size: 100%; overflow-x: auto; }
.theme-operations-console__form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.theme-operations-console__form-row > label,
.theme-operations-console__controls > label { display: grid; gap: .4rem; font-size: .75rem; font-weight: 600; }
.theme-operations-console__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .8fr); gap: .75rem; padding-block: .75rem; }
.theme-operations-console__controls .shadcn-toggle-group { grid-column: 1 / -1; }
.theme-operations-console__resizable { min-block-size: 9rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); overflow: hidden; }
.theme-operations-console__resizable .shadcn-resizable-panel { padding: .75rem; }
.theme-operations-console__scroll { block-size: 7.25rem; }
.theme-operations-console__loading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.theme-operations-console__loading > div { display: grid; gap: .55rem; }
.theme-operations-console .shadcn-command { border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-md); }
.theme-operations-console .shadcn-command-shortcut { color: var(--shadcn-foreground); font-weight: 500; }
.theme-operations-console .shadcn-pagination { justify-self: center; }
.theme-quality-console__evidence { display: grid; gap: .625rem; }
.theme-quality-console__evidence > div,
.theme-handoff-console__packet { display: flex; min-inline-size: 0; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--shadcn-border); border-radius: var(--shadcn-radius-lg); background: color-mix(in oklch, var(--shadcn-muted) 34%, var(--shadcn-card)); padding: .75rem; }
.theme-quality-console__evidence span,
.theme-quality-console__readiness span,
.theme-handoff-console__packet span { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-quality-console__evidence small,
.theme-quality-console__readiness small,
.theme-handoff-console__packet small { color: var(--shadcn-muted-foreground); font-size: .75rem; font-weight: 400; }
.theme-quality-console__readiness { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .625rem .75rem; }
.theme-quality-console__readiness > .shadcn-progress { grid-column: 1 / -1; }
.theme-handoff-console__timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.theme-handoff-console__timeline li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-inline-size: 0; padding-block: .625rem; }
.theme-handoff-console__timeline li + li { border-block-start: 1px solid var(--shadcn-border); }
.theme-handoff-console__timeline li > span:first-child { display: inline-grid; inline-size: 1.75rem; block-size: 1.75rem; place-items: center; border: 1px solid var(--shadcn-border); border-radius: 50%; background: var(--shadcn-background); color: var(--shadcn-muted-foreground); font-size: .75rem; font-weight: 700; }
.theme-handoff-console__timeline li[data-state="complete"] > span:first-child { border-color: var(--theme-status-success); background: var(--theme-status-success); color: var(--theme-status-success-foreground); }
.theme-handoff-console__timeline li[data-state="active"] > span:first-child { border-color: var(--shadcn-primary); color: var(--shadcn-primary); }
.theme-handoff-console__timeline li > div { display: grid; min-inline-size: 0; gap: .125rem; }
.theme-handoff-console__timeline small { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-handoff-console__timeline .shadcn-badge { min-inline-size: max-content; }
.theme-handoff-console__packet .shadcn-button { flex: 0 0 auto; }
.theme-handoff-console__route { display: grid; gap: .625rem; }
.theme-handoff-console__route > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem .75rem; border-block-end: 1px solid var(--shadcn-border); padding-block-end: .625rem; }
.theme-handoff-console__route span { color: var(--shadcn-muted-foreground); font-size: .75rem; }
.theme-handoff-console__route strong { grid-column: 1; font-size: .875rem; }
.theme-handoff-console__route .shadcn-badge { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 46rem) {
    .theme-operations-console__overview,
    .theme-operations-console__form-row,
    .theme-operations-console__controls { grid-template-columns: minmax(0, 1fr); }
    .theme-operations-console__overview > .shadcn-alert,
    .theme-operations-console__controls .shadcn-toggle-group { grid-column: auto; }
    .theme-handoff-console__packet { align-items: stretch; flex-direction: column; }
}
