:root {
    color-scheme: light;
    --page-bg: var(--gray-1, #fcfcfd);
    --surface-bg: var(--color-panel-solid, #ffffff);
    --surface-bg-strong: var(--gray-1, #ffffff);
    --surface-muted: var(--gray-2, #f8fafc);
    --surface-accent: var(--color-panel-translucent, rgba(255, 255, 255, 0.92));
    --text-strong: var(--gray-12, #111827);
    --text-default: var(--gray-11, #334155);
    --text-muted: var(--gray-10, #64748b);
    --border-color: var(--gray-a6, rgba(15, 23, 42, 0.12));
    --border-strong: var(--gray-a7, rgba(15, 23, 42, 0.16));
    --brand: var(--blue-9, #2563eb);
    --brand-strong: var(--blue-10, #1d4ed8);
    --brand-soft: var(--blue-a3, rgba(37, 99, 235, 0.12));
    --shadow-soft:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-medium:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --demo-light-mauve-3: #eae7ec;
    --demo-light-mauve-8: #8e8c99;
    --demo-light-mauve-11: #6f6e77;
    --demo-light-mauve-12: #1c2024;
    --demo-light-violet-3: #f1eefe;
    --demo-light-violet-4: #e9ddfe;
    --demo-light-violet-6: #d3c4f9;
    --demo-light-violet-7: #c4b5fd;
    --demo-light-violet-9: #6e56cf;
    --demo-light-violet-10: #644fc1;
    --demo-light-violet-11: #6e56cf;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
}

body.radix-themes.dark {
    --gray-1: #111111;
    --gray-2: #191919;
    --gray-3: #222222;
    --gray-4: #2a2a2a;
    --gray-5: #313131;
    --gray-6: #3a3a3a;
    --gray-7: #484848;
    --gray-8: #606060;
    --gray-9: #6e6e6e;
    --gray-10: #7b7b7b;
    --gray-11: #b4b4b4;
    --gray-12: #eeeeee;
    --mauve-1: #121113;
    --mauve-2: #1a191b;
    --mauve-3: #232225;
    --mauve-4: #2b292d;
    --mauve-5: #323035;
    --mauve-6: #3c393f;
    --mauve-7: #49474e;
    --mauve-8: #625f69;
    --mauve-9: #6f6d78;
    --mauve-10: #7c7a85;
    --mauve-11: #b5b2bc;
    --mauve-12: #eeeef0;
    --violet-1: #14121f;
    --violet-2: #1b1525;
    --violet-3: #291f43;
    --violet-4: #33255b;
    --violet-5: #3c2e69;
    --violet-6: #473876;
    --violet-7: #56468b;
    --violet-8: #6958ad;
    --violet-9: #6e56cf;
    --violet-10: #7d66d9;
    --violet-11: #baa7ff;
    --violet-12: #e2ddfe;
    --green-4: #113123;
    --green-5: #174933;
    --green-11: #4cc38a;
    --red-4: #3e1011;
    --red-5: #561719;
    --red-11: #ff9592;
    --black-a1: rgba(0, 0, 0, 0.05);
    --black-a2: rgba(0, 0, 0, 0.1);
    --black-a3: rgba(0, 0, 0, 0.15);
    --black-a4: rgba(0, 0, 0, 0.2);
    --black-a5: rgba(0, 0, 0, 0.3);
    --black-a6: rgba(0, 0, 0, 0.4);
    --black-a7: rgba(0, 0, 0, 0.5);
    --black-a8: rgba(0, 0, 0, 0.6);
    --black-a9: rgba(0, 0, 0, 0.7);
    --black-a10: rgba(0, 0, 0, 0.8);
    --black-a11: rgba(0, 0, 0, 0.9);
    --black-a12: rgba(0, 0, 0, 0.95);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--default-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    background: var(--page-bg);
    color: var(--text-default);
}

body {
    min-height: 100vh;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover {
    color: var(--brand-strong);
}

p,
ul,
ol {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text-strong);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1rem;
}

strong {
    color: var(--text-strong);
}

code,
kbd {
    font-family: var(--code-font-family, ui-monospace, "SFMono-Regular", Consolas, monospace);
}

code {
    padding: 0.14rem 0.4rem;
    border-radius: 0.4rem;
    background: var(--gray-a3, rgba(15, 23, 42, 0.06));
    font-size: 0.94em;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid var(--gray-a6, rgba(148, 163, 184, 0.5));
    border-bottom-width: 2px;
    border-radius: 0.45rem;
    background: var(--surface-bg-strong);
    box-shadow: 0 1px 0 var(--gray-a4, rgba(15, 23, 42, 0.06));
    color: var(--text-strong);
    font-size: 0.85rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.35rem;
}

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

button {
    border: 0;
}

button,
.primitive__trigger,
.demo-link {
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

button:hover,
.primitive__trigger:hover,
.demo-link:hover {
    transform: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.primitive__trigger:focus-visible,
.demo-link:focus-visible,
.docs-nav__link:focus-visible,
.docs-nav__overview:focus-visible,
.feature-list__item:focus-visible {
    outline: 2px solid var(--blue-8, rgba(37, 99, 235, 0.5));
    outline-offset: 2px;
}

button,
button[type="button"],
button[type="submit"],
.primitive__trigger,
.demo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    color: var(--text-strong);
    box-shadow: 0 1px 2px var(--gray-a4, rgba(15, 23, 42, 0.06));
    cursor: pointer;
}

button:hover,
button[type="button"]:hover,
button[type="submit"]:hover,
.primitive__trigger:hover {
    border-color: var(--border-strong);
    box-shadow:
        0 1px 2px var(--gray-a4, rgba(15, 23, 42, 0.06)),
        0 0 0 1px var(--gray-a3, rgba(15, 23, 42, 0.04));
}

button[disabled],
.primitive__trigger[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

button.primitive__trigger,
a.primitive__trigger,
span > .primitive__trigger {
    width: auto;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input:not([type]),
select,
textarea,
.text-input,
input.primitive__trigger,
textarea.primitive__trigger,
select.primitive__trigger {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-bg-strong);
    color: var(--text-strong);
    box-shadow: inset 0 1px 0 var(--gray-a2, rgba(255, 255, 255, 0.6));
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    color: var(--text-strong);
    font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--brand);
}

.range-input {
    accent-color: var(--brand);
}

#app {
    min-height: 100vh;
}

.docs-shell {
    width: min(1360px, calc(100% - 3rem));
    margin: 0 auto;
    padding: var(--space-6) 0 var(--space-12);
}

.docs-shell--component {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 16px 0 64px;
    background: #111113;
    color: #eeeeee;
}

.docs-shell--component .docs-shell__header,
.docs-shell--component .docs-shell__frame {
    width: min(1280px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.docs-shell--component .docs-shell__header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.docs-shell--component .docs-shell__brand-title {
    color: #ffffff;
}

.docs-shell--component .docs-shell__frame {
    grid-template-columns: 240px minmax(0, 1012px);
    justify-content: start;
    gap: 40px;
}

.docs-shell--component .docs-shell__sidebar {
    top: 24px;
    max-height: calc(100vh - 48px);
    padding-right: 12px;
    scrollbar-color: #a1a1aa transparent;
    scrollbar-width: thin;
}

.docs-shell--component .docs-nav {
    gap: 28px;
}

.docs-shell--component .docs-nav__overview,
.docs-shell--component .docs-nav__link {
    color: #a1a1aa;
    font-size: 15px;
    line-height: 1.45;
}

.docs-shell--component .docs-nav__overview {
    color: #ffffff;
}

.docs-shell--component .docs-nav__overview.active,
.docs-shell--component .docs-nav__link.active {
    color: #8ec8ff;
}

.docs-shell--component .docs-nav__group-header h3 {
    color: #a1a1aa;
}

.docs-shell--component .docs-shell__content {
    max-width: none;
}

.component-docs-header {
    max-width: 900px;
}

.component-docs-header h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.component-docs-header p {
    max-width: 900px;
    margin-top: 12px;
    color: #d4d4d8;
    font-size: 24px;
    line-height: 1.38;
}

.component-example {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #111113;
}

.component-example__preview {
    min-height: 515px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 32px;
    background: linear-gradient(135deg, #3f63dd 0%, #8e4ec6 100%);
}

.docs-shell__header {
    margin-bottom: var(--space-6);
    padding: 0 0 var(--space-4);
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.docs-shell__brand {
    max-width: 48rem;
}

.docs-shell__brand-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    color: inherit;
}

.docs-shell__brand-title {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-7, -0.015em);
    color: var(--text-strong);
}

.docs-shell__frame {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
}

.docs-shell__sidebar {
    position: sticky;
    top: var(--space-6);
    max-height: calc(100vh - var(--space-6));
    overflow: auto;
}

.docs-nav {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.docs-nav__overview,
.docs-nav__link {
    display: block;
    padding: 0.2rem 0;
    border: 0;
    border-radius: 0;
    color: var(--text-default);
}

.docs-nav__overview {
    font-weight: 700;
    color: var(--text-strong);
}

.docs-nav__overview.active,
.docs-nav__link.active {
    color: var(--brand-strong);
}

.docs-nav__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-nav__group-header {
    padding: 0;
}

.docs-nav__group-header h3 {
    color: var(--text-default);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-nav__group-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.docs-shell__main {
    min-width: 0;
}

.docs-shell__content {
    max-width: 980px;
}

.docs-shell__content--component {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.docs-shell__content--component > .stack {
    gap: var(--space-8);
}

.overview-hero,
.demo-section,
.card,
.tabs-content,
.popper-content,
.presence-surface,
.popover-surface,
.dialog-surface,
.remove-scroll-surface,
.tooltip-surface,
.portal-target,
.portal-surface {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-accent);
    box-shadow: var(--shadow-soft);
}

.overview-hero,
.demo-section,
.card {
    padding: var(--space-6);
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.4rem 0.72rem;
    border: 1px solid var(--blue-a5, rgba(37, 99, 235, 0.14));
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.eyebrow {
    margin: 0;
    color: var(--brand-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lede {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 62ch;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.stack--compact {
    gap: var(--space-3);
}

.grid,
.family-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.demo-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.demo-section__header,
.card__header,
.catalog-group__header {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.demo-section__header > p:last-child,
.card__header > p:last-child,
.catalog-group__header > p:last-child {
    color: var(--text-muted);
}

.demo-section__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.demo-source {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #111113;
    color: #eeeeee;
}

.demo-source__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 16px;
    padding: 0 10px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: #17181a;
}

.demo-source__tabs {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 20px;
}

.demo-source__tab {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-bottom: 2px solid #0091ff;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: default;
}

.demo-source__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-height: 0;
    padding: 0 12px;
    border-radius: 4px;
    background: #27292d;
    box-shadow: none;
    color: #eeeeee;
    font-size: 13px;
    line-height: 1;
}

.demo-source__pre {
    margin: 0;
    max-height: 146px;
    overflow: auto;
    padding: 18px 20px 40px;
    background: #111113;
    color: #eeeeee;
    font-family: var(--code-font-family, ui-monospace, "SFMono-Regular", Consolas, monospace);
    font-size: 15px;
    line-height: 1.55;
    tab-size: 4;
}

.demo-source__pre code {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    white-space: pre;
}

.demo-source__expand {
    display: flex;
    justify-content: center;
    margin-top: -46px;
    padding-bottom: 14px;
    pointer-events: none;
    position: relative;
}

.demo-source__expand span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 4px;
    background: #2b2d31;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.overview-page {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.overview-hero {
    display: block;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.overview-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.overview-hero h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.overview-hero__lede {
    max-width: 720px;
    margin: 0;
    color: #d4d4d8;
    font-size: 24px;
    line-height: 1.38;
}

.overview-hero__content > p:not(.eyebrow):not(.overview-hero__lede) {
    margin: 0;
    color: #a1a1aa;
    font-size: 17px;
    line-height: 1.65;
}

.overview-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.overview-section__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 780px;
}

.overview-section__header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

.overview-section__header p {
    margin: 0;
    color: #a1a1aa;
    font-size: 18px;
    line-height: 1.55;
}

.overview-feature-list,
.overview-component-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overview-feature-list article,
.overview-component-list section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.overview-feature-list article:first-child,
.overview-component-list section:first-child {
    border-top: 0;
}

.overview-feature-list h3,
.overview-component-list h3 {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0;
}

.overview-feature-list p {
    margin: 0;
    color: #a1a1aa;
    font-size: 16px;
    line-height: 1.55;
}

.overview-code {
    margin: 0;
    overflow-x: auto;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #18181b;
    color: #eeeeee;
    font-family: var(--code-font-family, ui-monospace, "SFMono-Regular", Consolas, monospace);
    font-size: 15px;
    line-height: 1.55;
}

.overview-code + .overview-code {
    margin-top: 10px;
}

.overview-code code {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    white-space: pre;
}

.overview-component-list section > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.overview-component-list a {
    color: #a1a1aa;
    font-size: 16px;
    line-height: 1.45;
}

.overview-component-list a:hover,
.overview-component-list a.active {
    color: #8ec8ff;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: var(--space-5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    box-shadow: 0 1px 2px var(--gray-a4, rgba(15, 23, 42, 0.05));
}

.metric-card__value {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.04em;
}

.metric-card__label {
    color: var(--text-muted);
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.card p {
    color: var(--text-muted);
}

.card--feature,
.card--showcase,
.card--catalog {
    height: 100%;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.feature-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-bg);
}

.feature-list__item span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.catalog-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.simple-link-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.simple-link-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-strong);
}

.simple-link-list__item:first-child {
    border-top: 0;
}

.simple-link-list__item span:last-child {
    color: var(--text-muted);
}

.menu-surface,
.select-surface,
.toast-surface,
.nav-surface {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    padding: 5px;
    border: 0;
    border-radius: 6px;
    background-color: white;
    box-shadow:
        0 10px 38px -10px rgba(22, 23, 24, 0.35),
        0 10px 20px -15px rgba(22, 23, 24, 0.2);
}

.menu-surface {
    position: relative;
    z-index: 1002;
    min-width: 220px;
    color: var(--demo-light-violet-11);
    font-size: 13px;
    line-height: 1;
}

[data-side]:has(> .menu-surface) {
    z-index: 1002;
}

.select-surface {
    position: relative;
    z-index: 1100 !important;
    min-width: var(--radix-select-trigger-width, 180px);
    color: var(--demo-light-violet-11);
    font-size: 13px;
    line-height: 1;
}

[data-radix-select-position] {
    z-index: 1100 !important;
    pointer-events: auto;
}

.menu-surface [role="menuitem"],
.menu-surface [role="menuitemcheckbox"],
.menu-surface [role="menuitemradio"],
.select-surface [role="option"],
.nav-surface a {
    border-radius: 3px;
}

.select-surface [role="option"] {
    all: unset;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 0 35px 0 25px;
    color: var(--demo-light-violet-11);
    cursor: default;
    user-select: none;
}

.select-surface [role="option"][aria-disabled="true"],
.select-surface [role="option"][data-disabled] {
    color: var(--demo-light-mauve-8);
    pointer-events: none;
}

.select-surface [role="option"]:not([aria-disabled="true"]):hover,
.select-surface [role="option"]:not([aria-disabled="true"])[data-highlighted] {
    background-color: var(--demo-light-violet-9);
    color: white;
}

.select-surface [role="separator"] {
    height: 1px;
    margin: 5px;
    background-color: var(--demo-light-violet-6);
}

.select-surface [aria-label],
.select-surface label {
    color: var(--demo-light-mauve-11);
}

.menu-surface [role="menuitem"],
.menu-surface [role="menuitemcheckbox"],
.menu-surface [role="menuitemradio"] {
    all: unset;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 25px;
    padding: 0 10px;
    color: var(--demo-light-violet-11);
    cursor: default;
    user-select: none;
}

.menu-surface [role="menuitem"][data-disabled],
.menu-surface [role="menuitemcheckbox"][data-disabled],
.menu-surface [role="menuitemradio"][data-disabled],
.menu-surface [aria-disabled="true"] {
    color: var(--demo-light-mauve-8);
    pointer-events: none;
}

.menu-surface [role="menuitem"]:not([data-disabled]):hover,
.menu-surface [role="menuitemcheckbox"]:not([data-disabled]):hover,
.menu-surface [role="menuitemradio"]:not([data-disabled]):hover,
.menu-surface [role="menuitem"][data-highlighted],
.menu-surface [role="menuitemcheckbox"][data-highlighted],
.menu-surface [role="menuitemradio"][data-highlighted] {
    background-color: var(--demo-light-violet-9);
    color: white;
}

.menu-surface [role="separator"] {
    height: 1px;
    margin: 5px;
    background-color: var(--demo-light-violet-6);
}

.menu-surface [role="group"] {
    display: contents;
}

.menu-surface [aria-label],
.menu-surface [role="group"] > span,
.menu-surface label {
    color: var(--demo-light-mauve-11);
}

.menu-demo__shortcut {
    margin-left: auto;
    color: var(--demo-light-mauve-11);
}

.context-target {
    display: block;
    width: 300px;
    max-width: 100%;
    padding: 45px 0;
    border: 2px dashed white;
    border-radius: 4px;
    color: white;
    font-size: 15px;
    text-align: center;
    user-select: none;
}

.avatar-root {
    display: inline-flex;
    width: 4.5rem;
    height: 4.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-bg-strong);
    box-shadow: var(--shadow-soft);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-a3, rgba(37, 99, 235, 0.12)), var(--gray-a5, rgba(148, 163, 184, 0.22)));
    color: var(--brand-strong);
    font-weight: 800;
}

.otp-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.otp-slot {
    position: relative;
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
}

.otp-slot.text-input {
    width: 2rem;
    min-height: 2rem;
    padding: 0;
    border-width: 1px 1px 1px 0;
    border-color: var(--border-strong);
    border-radius: 0;
    box-shadow: none;
}

.otp-slot:first-child {
    border-left-width: 1px;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.otp-slot:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.otp-slot:focus,
.otp-slot[data-active="true"] {
    z-index: 10;
    border-color: var(--brand-strong);
    box-shadow: 0 0 0 3px var(--blue-a4, rgba(59, 130, 246, 0.22));
}

.surface-note {
    padding: 0.85rem 0.95rem;
    border-left: 3px solid var(--blue-a7, rgba(37, 99, 235, 0.28));
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    color: var(--text-muted);
}

.tooltip-arrow-shape {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    background: white;
    transform: rotate(45deg);
}

.nav-menu-list {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 4px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.nav-menu-list .primitive__trigger,
.nav-menu-list a.primitive__trigger,
.nav-menu-content a {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    user-select: none;
}

.nav-menu-list .primitive__trigger:hover,
.nav-menu-list a.primitive__trigger:hover,
.nav-menu-content a:hover {
    background-color: var(--demo-light-violet-3);
    color: var(--demo-light-violet-11);
}

.nav-menu-list .primitive__trigger:focus-visible,
.nav-menu-list a.primitive__trigger:focus-visible,
.nav-menu-content a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--demo-light-violet-7);
}

.nav-menu-content {
    margin-top: 0;
    width: auto;
}

.nav-menu-content--learn {
    width: 520px;
    max-width: min(520px, calc(100vw - 3rem));
}

.nav-menu-content--overview {
    width: 600px;
    max-width: min(600px, calc(100vw - 3rem));
}

.nav-menu-inline {
    min-height: 14rem;
}

.nav-menu-inline .nav-menu-content {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    z-index: 20;
}

.nav-menu-viewport {
    position: relative;
    width: var(--radix-navigation-menu-viewport-width);
    min-width: 12rem;
    height: var(--radix-navigation-menu-viewport-height);
    margin-top: 10px;
    overflow: hidden;
    border-radius: 6px;
    background-color: white;
    box-shadow:
        hsl(206 22% 7% / 35%) 0 10px 38px -10px,
        hsl(206 22% 7% / 20%) 0 10px 20px -15px;
    transition: width 250ms ease, height 250ms ease;
}

.nav-menu-indicator {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 10px;
    top: 100%;
    overflow: hidden;
    z-index: 1;
}

.nav-menu-indicator::after {
    content: "";
    position: relative;
    top: 70%;
    width: 10px;
    height: 10px;
    background-color: white;
    transform: rotate(45deg);
    border-top-left-radius: 2px;
}

.toast-surface {
    min-width: 18rem;
}

.toast-viewport {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 1000;
}

.demo-hero {
    margin: 0;
}

.demo-hero__surface {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 22rem;
    padding: 4rem 2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(330deg, #8b5cf6 0%, #4f6af0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.demo-hero__caption {
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.demo-hero__caption strong {
    color: white;
}

.demo-list {
    padding-left: 1.1rem;
}

.radio-group--hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    color: white;
}

.radio-group--hero .radio-row,
.checkbox-row--hero {
    font-size: 1.125rem;
}

.radio-group--hero .radio-item,
.checkbox-row--hero .checkbox-root {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.radio-group--hero .radio-indicator {
    width: 0.7rem;
    height: 0.7rem;
}

.tabs-root--hero {
    width: min(40rem, 100%);
}

.tabs-root--hero .tabs-list {
    justify-content: center;
}

.tabs-root--hero .tabs-content {
    background: rgba(255, 255, 255, 0.98);
}

.docs-shell__header {
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.sidebar-panel,
.docs-nav {
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.docs-shell--component .docs-nav {
    background: transparent;
}

.docs-shell__content--component > .stack {
    gap: 2rem;
}

.docs-shell__content--component .demo-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.docs-shell__content--component .card:not(.website-demo-card) {
    padding: 1.25rem 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dialog-surface--modal.dialog-surface--animated[data-state="open"] {
    animation: dialog-enter 180ms ease-out;
}

.dialog-surface--modal.dialog-surface--animated[data-state="closed"] {
    animation: dialog-exit 140ms ease-in forwards;
}

.dialog-surface--non-modal.dialog-surface--animated[data-state="open"] {
    animation: dialog-sheet-enter 180ms ease-out;
}

.dialog-surface--non-modal.dialog-surface--animated[data-state="closed"] {
    animation: dialog-sheet-exit 140ms ease-in forwards;
}

@keyframes dialog-enter {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes dialog-exit {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(0.97);
    }
}

@keyframes dialog-sheet-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dialog-sheet-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}

.demo-link {
    width: fit-content;
    background: var(--brand);
    color: white;
    border-color: transparent;
    box-shadow:
        0 1px 2px var(--blue-a5, rgba(37, 99, 235, 0.2)),
        0 8px 20px var(--blue-a4, rgba(37, 99, 235, 0.14));
}

.demo-link:hover {
    color: white;
    background: var(--brand-strong);
    box-shadow:
        0 1px 2px var(--blue-a6, rgba(37, 99, 235, 0.24)),
        0 10px 24px var(--blue-a5, rgba(37, 99, 235, 0.18));
}

.demo-link--subtle {
    background: var(--surface-bg);
    color: var(--text-strong);
    border-color: var(--border-color);
    box-shadow: 0 1px 2px var(--gray-a4, rgba(15, 23, 42, 0.06));
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.state-line {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    color: var(--text-muted);
}

.primitive {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.primitive--horizontal {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
}

.primitive__trigger {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.primitive__trigger--fit,
.tabs-trigger,
.toolbar-toggle-item,
.icon-button {
    width: auto;
}

.primitive__content {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
}

.toggle-group,
.tabs-list,
.toolbar-toggle-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.toolbar-root {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: max-content;
    gap: 5px;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.toolbar-toggle-group,
.toggle-group {
    gap: 0;
}

.component-example__preview .toolbar-root {
    width: 520px;
    max-width: min(100%, 520px);
}

.menubar-demo__root {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: max-content;
    padding: 3px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

button.menubar-demo__trigger,
.menubar-demo__trigger {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 4px;
    color: var(--demo-light-violet-11);
    font-size: 13px;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.nav-menu-caret {
    width: 6px;
    height: 6px;
    margin-left: 4px;
    border-right: 1.5px solid var(--demo-light-violet-10);
    border-bottom: 1.5px solid var(--demo-light-violet-10);
    transform: translateY(-1px) rotate(45deg);
}

button.menubar-demo__trigger:hover,
.menubar-demo__trigger:hover,
button.menubar-demo__trigger[data-highlighted],
.menubar-demo__trigger[data-highlighted],
button.menubar-demo__trigger[data-state="open"],
.menubar-demo__trigger[data-state="open"] {
    background-color: var(--demo-light-violet-3);
    color: var(--demo-light-violet-11);
}

.toggle-group--vertical,
.tabs-list--vertical,
.toolbar-root--vertical,
.toolbar-toggle-group--vertical {
    flex-direction: column;
    align-items: flex-start;
}

.field,
.radio-row,
.checkbox-row,
.switch-row,
.separator-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.website-demo-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.component-example__preview .website-demo-page {
    width: 100%;
    align-items: center;
    justify-content: center;
}

.docs-shell--component:not(.docs-shell--test-scenarios) .component-example__preview > .website-demo-page:not(:first-child) {
    display: none;
}

.component-example__preview .website-demo-page > .website-demo-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.docs-shell--component:not(.docs-shell--test-scenarios) .component-example__preview .website-demo-page > .website-demo-card:not(:first-child) {
    display: none;
}

.docs-shell--component:not(.docs-shell--test-scenarios) .component-example__preview .avatar-demo__case--test-only,
.docs-shell--component:not(.docs-shell--test-scenarios) .component-example__preview .demo-test-only {
    display: none;
}

.docs-shell__content--component .website-demo-card,
.website-demo-card {
    width: fit-content;
    max-width: 100%;
    padding: 32px;
    border: 1px solid var(--gray-a6, rgba(15, 23, 42, 0.12));
    border-radius: var(--radius-4, 8px);
    background: var(--color-panel-solid, #fff);
    box-shadow: none;
    color: var(--gray-12, #111827);
}

.component-example__preview .website-demo-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.component-example__preview .website-demo-card > h1,
.component-example__preview .website-demo-card > h2,
.component-example__preview .website-demo-card > h3,
.component-example__preview .website-demo-card > .card__header {
    display: none;
}

.website-demo-card.card p {
    color: inherit;
}

.website-demo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.website-demo-row--padded {
    padding: 0 20px;
}

.separator {
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.4);
}

.separator--vertical {
    width: 1px;
    height: 48px;
}

.aspect-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.aspect-demo__container {
    width: 300px;
    max-width: min(100%, 300px);
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 10px var(--black-a7);
}

.aspect-demo__image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.aspect-frame {
    width: 100%;
}

.aspect-sample {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(241, 245, 249, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.aspect-fill {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e293b);
    color: white;
    font-weight: 700;
}

.progress-root {
    width: 100%;
    height: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.progress-indicator {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.progress-demo__root {
    position: relative;
    overflow: hidden;
    width: 300px;
    max-width: min(100%, 300px);
    height: 25px;
    border-radius: 99999px;
    background: var(--black-a10, #111);
    transform: translateZ(0);
}

.progress-demo__indicator {
    width: 100%;
    height: 100%;
    background: white;
    transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
}

.accordion-demo__root {
    width: 300px;
    max-width: min(100%, 300px);
    border-radius: 6px;
    background-color: var(--mauve-6);
    box-shadow: 0 2px 10px var(--black-a4);
}

.accordion-demo__item {
    overflow: hidden;
    margin-top: 1px;
}

.accordion-demo__item:first-child {
    margin-top: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.accordion-demo__item:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.accordion-demo__item:focus-within {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--mauve-12);
}

.accordion-demo__header {
    all: unset;
    display: flex;
}

.accordion-demo__trigger,
button.accordion-demo__trigger {
    all: unset;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    padding: 0 20px;
    background-color: var(--mauve-1);
    color: var(--violet-11);
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 1px 0 var(--mauve-6);
}

.accordion-demo__trigger:hover {
    background-color: var(--mauve-2);
}

.accordion-demo__content {
    overflow: hidden;
    background-color: var(--mauve-2);
    color: var(--mauve-11);
    font-size: 15px;
}

.accordion-demo__content[data-state="open"] {
    animation: accordion-slide-down 300ms cubic-bezier(0.87, 0, 0.13, 1);
}

.accordion-demo__content[data-state="closed"] {
    animation: accordion-slide-up 300ms cubic-bezier(0.87, 0, 0.13, 1);
}

.accordion-demo__content-text {
    padding: 15px 20px;
}

.accordion-demo__chevron {
    color: var(--violet-10);
    transition: transform 300ms cubic-bezier(0.87, 0, 0.13, 1);
}

.accordion-demo__trigger[data-state="open"] .accordion-demo__chevron {
    transform: rotate(180deg);
}

.collapsible-demo__root {
    width: 300px;
    max-width: min(100%, 300px);
}

.collapsible-demo__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible-demo__icon-button,
button.collapsible-demo__icon-button {
    all: unset;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--demo-light-violet-11);
    box-shadow: 0 2px 10px var(--black-a7);
}

.collapsible-demo__icon-button[data-state="closed"] {
    background-color: white;
}

.collapsible-demo__icon-button[data-state="open"],
.collapsible-demo__icon-button:hover {
    background-color: var(--demo-light-violet-3);
}

.collapsible-demo__icon-button:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.collapsible-demo__text {
    color: var(--demo-light-violet-11);
    font-size: 15px;
    line-height: 25px;
}

.collapsible-demo__repository {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.dialog-demo__button,
button.dialog-demo__button {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 0 15px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.dialog-demo__button:focus-visible {
    outline: 2px solid var(--violet-6);
    outline-offset: 1px;
}

.dialog-demo__button--violet,
button.dialog-demo__button--violet {
    background-color: var(--violet-4);
    color: var(--violet-12);
}

.dialog-demo__button--green,
button.dialog-demo__button--green {
    background-color: var(--green-4);
    color: var(--green-11);
}

.dialog-demo__button--mauve,
button.dialog-demo__button--mauve {
    background-color: var(--mauve-4);
    color: var(--mauve-11);
}

.dialog-demo__button--red,
button.dialog-demo__button--red {
    background-color: var(--red-4);
    color: var(--red-11);
}

.dialog-demo__button--violet:hover {
    background-color: var(--mauve-3);
}

.dialog-demo__button--green:hover {
    background-color: var(--green-5);
}

.dialog-demo__button--mauve:hover {
    background-color: var(--mauve-5);
}

.dialog-demo__button--red:hover {
    background-color: var(--red-5);
}

.dialog-demo__overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: var(--black-a9);
}

.dialog-demo__content {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: min(90vw, 450px);
    max-height: 85vh;
    padding: 25px;
    border-radius: 6px;
    background-color: var(--gray-1);
    box-shadow:
        0 10px 38px -10px rgba(22, 23, 24, 0.35),
        0 10px 20px -15px rgba(22, 23, 24, 0.2);
    transform: translate(-50%, -50%);
}

.dialog-demo__title {
    margin: 0;
    color: var(--mauve-12);
    font-size: 17px;
    font-weight: 500;
}

.dialog-demo__description {
    margin: 10px 0 20px;
    color: var(--mauve-11);
    font-size: 15px;
    line-height: 1.5;
}

.dialog-demo__fieldset,
.popover-demo__fieldset {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.dialog-demo__label,
.popover-demo__label {
    width: 90px;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    text-align: right;
}

.dialog-demo__input,
.popover-demo__input,
input.dialog-demo__input,
input.popover-demo__input {
    all: unset;
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    color: var(--demo-light-violet-11);
    background: transparent;
    box-shadow: 0 0 0 1px var(--demo-light-violet-7);
}

.dialog-demo__save-row {
    display: flex;
    margin-top: 25px;
    justify-content: flex-end;
}

.dialog-demo__icon-button,
.popover-demo__icon-button,
.tooltip-demo__button,
.popover-demo__close,
button.dialog-demo__icon-button,
button.popover-demo__icon-button,
button.tooltip-demo__button,
button.popover-demo__close {
    all: unset;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--demo-light-violet-11);
    cursor: pointer;
}

.dialog-demo__icon-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--gray-3);
}

.popover-demo__icon-button,
.tooltip-demo__button {
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.website-demo-card button.tooltip-demo__button,
.website-demo-card .tooltip-demo__button {
    min-width: 35px;
    width: 35px;
    height: 35px;
    border-radius: 9999px;
    background-color: white;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    box-shadow: 0 2px 10px var(--black-a7);
}

.demo-trigger-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-trigger-icon circle {
    fill: white;
}

.dialog-demo__icon-button:hover,
.popover-demo__icon-button:hover,
.tooltip-demo__button:hover,
.popover-demo__close:hover {
    background-color: var(--demo-light-violet-3);
}

.dialog-demo__icon-button:focus-visible,
.popover-demo__icon-button:focus-visible,
.tooltip-demo__button:focus-visible,
.popover-demo__close:focus-visible {
    box-shadow: 0 0 0 2px var(--demo-light-violet-7);
}

.dialog-demo__actions {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.hover-card-demo__image-trigger {
    display: inline-block;
    border-radius: 100%;
}

.hover-card-demo__image {
    display: block;
    object-fit: cover;
    border-radius: 100%;
}

.hover-card-demo__image--normal {
    width: 45px;
    height: 45px;
}

.hover-card-demo__image--large {
    width: 60px;
    height: 60px;
}

.hover-card-demo__content {
    width: 300px;
    padding: 20px;
    border-radius: 6px;
    background-color: white;
    color: #1c2024;
    box-shadow:
        hsl(206 22% 7% / 35%) 0 10px 38px -10px,
        hsl(206 22% 7% / 20%) 0 10px 20px -15px;
}

.hover-card-demo__content-inner,
.hover-card-demo__details {
    display: flex;
    flex-direction: column;
}

.hover-card-demo__content-inner {
    gap: 7px;
}

.hover-card-demo__details {
    gap: 15px;
}

.hover-card-demo__text {
    margin: 0;
    color: #1c2024;
    font-size: 15px;
    line-height: 1.4;
}

.hover-card-demo__text--bold {
    font-weight: 500;
}

.hover-card-demo__text--faded {
    color: #6f6e77;
}

.hover-card-demo__stats,
.hover-card-demo__stat {
    display: flex;
}

.hover-card-demo__stats {
    gap: 15px;
}

.hover-card-demo__stat {
    gap: 5px;
}

.popover-demo__content {
    width: 260px;
    max-height: min(var(--radix-popover-content-available-height, 320px), calc(100vh - 20px));
    overflow: auto;
    padding: 20px;
    border-radius: 4px;
    background-color: white;
    color: #1c2024;
    box-shadow:
        hsl(206 22% 7% / 35%) 0 10px 38px -10px,
        hsl(206 22% 7% / 20%) 0 10px 20px -15px;
}

.popover-demo__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popover-demo__label {
    width: 75px;
    font-size: 13px;
}

.popover-demo__input,
input.popover-demo__input {
    height: 25px;
}

.popover-demo__text {
    color: #1c2024;
    font-size: 15px;
    line-height: 1;
}

.popover-demo__text--heading {
    margin: 0 0 10px;
    color: #1c2024;
    font-weight: 500;
}

.popover-demo__close {
    position: absolute;
    top: 5px;
    right: 5px;
}

.tooltip-demo__content {
    padding: 10px 15px;
    border-radius: 4px;
    background: black;
    color: white;
    font-size: 15px;
    line-height: 1;
    user-select: none;
    box-shadow: 0 2px 10px var(--black-a7);
}

.select-demo__trigger,
button.select-demo__trigger {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 35px;
    padding: 0 15px;
    border-radius: 4px;
    background-color: white;
    color: var(--demo-light-violet-11);
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 10px var(--black-a7);
}

.select-demo__trigger:hover {
    background-color: var(--demo-light-mauve-3);
}

.select-demo__trigger:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.select-demo__trigger[data-placeholder] {
    color: var(--demo-light-violet-9);
}

.scroll-area-demo__content {
    padding: 15px 20px;
}

.scroll-area-demo__heading {
    margin-bottom: 10px;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}

.scroll-area-demo__tag {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mauve-6);
    color: var(--mauve-12);
    font-size: 13px;
    line-height: 18px;
}

.toast-demo__root {
    display: grid;
    grid-template-areas:
        "title action"
        "description action";
    grid-template-columns: auto max-content;
    column-gap: 15px;
    align-items: center;
    padding: 15px;
    border-radius: 6px;
    background: var(--surface-bg-strong);
    box-shadow: 0 10px 38px rgba(22, 23, 24, 0.35), 0 10px 20px rgba(22, 23, 24, 0.2);
}

.toast-demo__trigger,
button.toast-demo__trigger {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 15px;
    border-radius: 4px;
    background-color: white;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 2px 10px var(--black-a7);
    cursor: pointer;
    user-select: none;
}

.toast-demo__trigger:hover,
button.toast-demo__trigger:hover {
    background-color: var(--demo-light-mauve-3);
}

.toast-demo__title {
    grid-area: title;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 500;
}

.toast-demo__description {
    grid-area: description;
    color: var(--text-muted);
    font-size: 13px;
}

.toast-demo__action {
    grid-area: action;
}

.toast-demo__viewport {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 390px;
    max-width: calc(100vw - 2rem);
    list-style: none;
    outline: none;
}

.toggle-group-demo__item,
button.toggle-group-demo__item,
.toolbar-toggle-item,
button.toolbar-toggle-item {
    all: unset;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--demo-light-mauve-11);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.toggle-group-demo__item:first-child,
.toolbar-toggle-item:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toggle-group-demo__item:last-child,
.toolbar-toggle-item:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.toggle-group-demo__item:hover,
.toggle-group-demo__item[data-state="on"],
.toolbar-toggle-item:hover,
.toolbar-toggle-item[data-state="on"] {
    background-color: var(--demo-light-violet-6);
    color: var(--demo-light-violet-11);
}

.toolbar-demo__link {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 10px;
    color: var(--demo-light-mauve-11);
    font-size: 13px;
    line-height: 1;
}

.toolbar-demo__strike {
    text-decoration: line-through;
}

.toolbar-demo__share {
    margin-left: auto;
}

.label-demo__label,
.switch-demo__label,
.separator-demo__text,
.checkbox-demo__label,
.radio-demo__label {
    color: white;
    font-size: 15px;
    line-height: 1;
}

.label-demo__label {
    font-weight: 500;
    line-height: 35px;
}

.label-demo__input,
input.label-demo__input {
    all: unset;
    width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    color: white;
    background-color: var(--black-a2);
    box-shadow: 0 0 0 1px var(--black-a6);
}

.label-demo__input:focus {
    box-shadow: 0 0 0 2px black;
}

.label-demo__input::selection {
    background-color: var(--black-a6);
    color: white;
}

.avatar-demo__root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--black-a3);
    user-select: none;
}

.avatar-demo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-demo__fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
}

.checkbox-demo__root,
button.checkbox-demo__root {
    all: unset;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.checkbox-demo__root:hover {
    background-color: var(--demo-light-violet-3);
}

.checkbox-demo__root:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.checkbox-demo__indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--demo-light-violet-11);
}

.checkbox-demo__label,
.radio-demo__label {
    padding-left: 15px;
}

.radio-demo__root {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-demo__item,
button.radio-demo__item {
    all: unset;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a7);
}

.radio-demo__item:hover {
    background-color: var(--demo-light-violet-3);
}

.radio-demo__item:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.radio-demo__indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.radio-demo__indicator::after {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--demo-light-violet-11);
}

.separator-demo__container {
    width: 100%;
    max-width: 300px;
    margin: 0 15px;
}

.separator-demo__text {
    line-height: 20px;
}

.separator-demo__text--strong {
    font-weight: 500;
}

.separator-demo__row {
    display: flex;
    height: 20px;
    align-items: center;
}

.separator-demo__root {
    background-color: var(--violet-6);
}

.separator-demo__root[data-orientation="horizontal"] {
    width: 100%;
    height: 1px;
}

.separator-demo__root[data-orientation="vertical"] {
    width: 1px;
    height: 100%;
}

.toggle-demo__button,
button.toggle-demo__button {
    all: unset;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: white;
    color: var(--mauve-11);
    box-shadow: 0 2px 10px var(--black-a7);
    user-select: none;
}

.toggle-demo__button:hover {
    background-color: var(--demo-light-violet-3);
}

.toggle-demo__button[data-state="on"] {
    background-color: var(--demo-light-violet-6);
    color: var(--demo-light-violet-11);
}

.toggle-demo__button:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.toggle-demo__icon {
    font-size: 18px;
    font-style: italic;
    line-height: 1;
    font-weight: 600;
}

.form-demo__root {
    width: 260px;
}

.form-demo__field {
    display: grid;
    margin-bottom: 10px;
}

.form-demo__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.form-demo__label {
    font-size: 15px;
    font-weight: 500;
    line-height: 35px;
    color: white;
}

.form-demo__message {
    font-size: 13px;
    color: white;
    opacity: 0.8;
}

.form-demo__input,
input.form-demo__input,
textarea.form-demo__input {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    color: white;
    background-color: var(--black-a2);
    box-shadow: 0 0 0 1px var(--black-a6);
}

.form-demo__input:hover {
    box-shadow: 0 0 0 1px black;
}

.form-demo__input:focus {
    box-shadow: 0 0 0 2px black;
}

.form-demo__input::selection {
    background-color: var(--black-a6);
    color: white;
}

.form-demo__input--question,
input.form-demo__input--question {
    height: 68px;
    align-items: flex-start;
}

.form-demo__submit,
button.form-demo__submit {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 35px;
    margin-top: 10px;
    padding: 0 15px;
    border-radius: 4px;
    background-color: white;
    color: var(--demo-light-violet-11);
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    box-shadow: 0 2px 10px var(--black-a4);
}

.form-demo__submit:hover {
    background-color: var(--demo-light-mauve-3);
}

.form-demo__submit:focus-visible {
    box-shadow: 0 0 0 2px black;
}

@keyframes accordion-slide-down {
    from {
        height: 0;
    }
    to {
        height: var(--radix-accordion-content-height);
    }
}

@keyframes accordion-slide-up {
    from {
        height: var(--radix-accordion-content-height);
    }
    to {
        height: 0;
    }
}

.tabs-root {
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 0;
    box-shadow: 0 2px 10px var(--black-a4);
}

.tabs-list {
    flex-shrink: 0;
    display: flex;
    border-bottom: 1px solid var(--mauve-6);
}

.tabs-trigger,
button.tabs-trigger {
    all: unset;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 20px;
    background-color: white;
    color: var(--mauve-11);
    font-size: 15px;
    line-height: 1;
    user-select: none;
}

.tabs-trigger:first-child {
    border-top-left-radius: 6px;
}

.tabs-trigger:last-child {
    border-top-right-radius: 6px;
}

.tabs-trigger:hover,
.tabs-trigger[data-state="active"] {
    color: var(--demo-light-violet-11);
}

.tabs-trigger[data-state="active"] {
    box-shadow:
        inset 0 -1px 0 0 currentColor,
        0 1px 0 0 currentColor;
}

.tabs-trigger:focus-visible {
    position: relative;
    box-shadow: 0 0 0 2px black;
}

.tabs-content,
.popper-content,
.presence-surface,
.popover-surface,
.dialog-surface,
.remove-scroll-surface,
.tooltip-surface,
.portal-target,
.portal-surface {
    padding: var(--space-5);
}

.tabs-content {
    flex-grow: 1;
    padding: 20px;
    background-color: white;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    outline: none;
}

.tabs-content:focus-visible {
    box-shadow: 0 0 0 2px black;
}

.popper-content,
.popover-surface,
.dialog-surface,
.tooltip-surface,
.menu-surface,
.select-surface,
.toast-surface,
.nav-surface {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.popper-content {
    border-radius: var(--radius-md);
    z-index: 50;
}

.popper-boundary {
    position: relative;
    width: 260px;
    min-height: 160px;
    padding: var(--space-4);
    border: 1px dashed rgba(71, 85, 105, 0.45);
    border-radius: var(--radius-md);
}

.popper-arrow {
    width: 0;
    height: 0;
}

.popper-arrow-shape {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    transform: rotate(45deg);
}

.presence-surface,
.popover-surface,
.dialog-surface,
.tooltip-surface,
.remove-scroll-surface {
    transform-origin: top center;
}

.presence-surface--open,
.popover-surface--animated[data-state="open"],
.dialog-surface--animated[data-state="open"],
.tooltip-surface--animated[data-state="delayed-open"],
.tooltip-surface--animated[data-state="instant-open"] {
    animation: presence-enter 180ms ease-out;
}

.presence-surface--closed,
.popover-surface--animated[data-state="closed"],
.dialog-surface--animated[data-state="closed"],
.tooltip-surface--animated[data-state="closed"] {
    animation: presence-exit 140ms ease-in forwards;
}

@keyframes presence-enter {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes presence-exit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }
}

.popover-surface {
    width: min(22rem, calc(100vw - 2rem));
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.dialog-surface {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: min(32rem, calc(100vw - 2rem));
    transform: translate(-50%, -50%);
}

.dialog-surface--modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.dialog-surface--non-modal {
    top: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    width: min(26rem, calc(100vw - 2rem));
    transform: none;
}

.tooltip-surface {
    font-size: 0.92rem;
}

.radio-item,
.checkbox-root,
.switch-root,
button.radio-item,
button.checkbox-root,
button.switch-root {
    all: unset;
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.radio-item {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--gray-a7, rgba(15, 23, 42, 0.24));
    background: var(--surface-bg-strong);
    box-shadow: inset 0 0 0 1px var(--gray-a3, rgba(15, 23, 42, 0.04));
}

.radio-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
}

.checkbox-root {
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    padding: 0;
    border: 1px solid var(--gray-a7, rgba(15, 23, 42, 0.24));
    border-radius: 0.45rem;
    background: var(--surface-bg-strong);
    box-shadow: inset 0 0 0 1px var(--gray-a3, rgba(15, 23, 42, 0.04));
}

.checkbox-indicator {
    line-height: 1;
    font-size: 0.9rem;
}

.switch-root,
button.switch-root {
    all: unset;
    width: 42px;
    height: 25px;
    min-width: 42px;
    background-color: rgba(0, 0, 0, 0.56);
    border-radius: 9999px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.switch-root:hover {
    transform: none;
}

.switch-root:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--gray-12, black);
}

.switch-root[data-state="checked"] {
    background-color: black;
}

.switch-thumb {
    all: unset;
    display: block;
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 9999px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
    transition: transform 100ms;
    transform: translateX(2px);
    will-change: transform;
}

.switch-thumb[data-state="checked"] {
    transform: translateX(19px);
}

.toolbar-separator {
    align-self: stretch;
}

.slider-root {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 20px;
    user-select: none;
    touch-action: none;
}

.slider-root--vertical {
    width: 2rem;
    height: 14rem;
}

.slider-track {
    position: relative;
    flex-grow: 1;
    height: 3px;
    background-color: var(--black-a10);
    border-radius: 9999px;
}

.slider-track--vertical {
    width: 0.35rem;
    height: 100%;
}

.slider-range {
    position: absolute;
    height: 100%;
    background-color: white;
    border-radius: 9999px;
}

.slider-thumb {
    display: block;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--black-a7);
}

.slider-thumb:hover {
    background-color: var(--demo-light-violet-3);
}

.slider-thumb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 5px var(--black-a8);
}

.slider-vertical-wrap {
    height: 14rem;
}

.scroll-area-root {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px var(--black-a4);
    --scrollbar-size: 10px;
}

.scroll-area-viewport {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.scroll-area-content {
    width: 28rem;
    line-height: 1.6;
}

.scroll-area-scrollbar {
    display: flex;
    padding: 2px;
    background: var(--black-a3);
    transition: background 160ms ease-out;
    user-select: none;
    touch-action: none;
}

.scroll-area-scrollbar:hover {
    background: var(--black-a5);
}

.scroll-area-scrollbar[data-orientation="vertical"] {
    width: var(--scrollbar-size);
}

.scroll-area-scrollbar--horizontal {
    flex-direction: column;
    width: auto;
    height: var(--scrollbar-size);
}

.scroll-area-thumb {
    position: relative;
    flex: 1;
    border-radius: var(--scrollbar-size);
    background: var(--mauve-10);
}

.scroll-area-corner {
    background: var(--black-a5);
}

.accordion-item {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.accordion-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.accordion-item--horizontal {
    min-width: 220px;
}

.accordion-header {
    margin: 0;
}

.docs-pagination {
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    max-width: 980px;
    margin-top: var(--space-6);
}

.docs-pagination__link {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.18rem;
    padding: var(--space-5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    color: var(--text-strong);
}

.docs-pagination__link--next {
    text-align: right;
    align-items: flex-end;
}

.docs-pagination__label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#blazor-error-ui {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-medium);
    color: var(--text-strong);
    padding: var(--space-5) var(--space-6);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    cursor: pointer;
}

#blazor-error-ui .reload {
    color: var(--brand-strong);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .docs-shell {
        width: min(100%, calc(100% - 1rem));
        padding-top: var(--space-4);
    }

    .docs-shell--component {
        width: 100%;
        padding-top: 12px;
    }

    .docs-shell--component .docs-shell__header,
    .docs-shell--component .docs-shell__frame {
        width: min(100% - 32px, 1012px);
    }

    .docs-shell--component .docs-shell__frame {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 20px;
    }

    .docs-shell--component .docs-shell__main {
        order: 0;
    }

    .docs-shell--component .docs-shell__sidebar {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }

    .docs-shell__frame {
        grid-template-columns: 1fr;
    }

    .docs-shell__main {
        order: -1;
    }

    .docs-shell__sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 820px) {
    .docs-shell__header,
    .overview-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .docs-shell__meta {
        justify-content: flex-start;
    }

    .docs-pagination {
        flex-direction: column;
    }

    .overview-feature-list article,
    .overview-component-list section {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .docs-shell {
        width: min(100%, calc(100% - 0.5rem));
    }

    .docs-shell--component {
        width: 100%;
    }

    .docs-shell--component .docs-shell__header,
    .docs-shell--component .docs-shell__frame {
        width: min(100% - 24px, 1012px);
    }

    .docs-shell--component .docs-shell__frame {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

    .docs-shell--component .docs-shell__sidebar {
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow: auto;
    }

    .docs-shell--component .docs-nav {
        padding: 0;
    }

    .component-docs-header h1 {
        font-size: 34px;
    }

    .component-docs-header p {
        font-size: 19px;
    }

    .component-example__preview {
        min-height: 420px;
        padding: 48px 18px;
    }

    .docs-shell__header,
    .sidebar-panel,
    .docs-nav,
    .demo-section,
    .card {
        padding: var(--space-5);
    }

    .overview-page {
        gap: 40px;
    }

    .overview-hero {
        gap: 28px;
        padding: 4px 0 28px;
    }

    .overview-hero h1 {
        font-size: 44px;
        line-height: 1;
    }

    .overview-hero__lede {
        font-size: 19px;
    }

    .overview-feature-list article,
    .overview-component-list section {
        padding: 18px 0;
    }

    .overview-section__header h2 {
        font-size: 25px;
    }

    .demo-link,
    .demo-link--subtle,
    .primitive__trigger,
    button,
    button[type="button"],
    button[type="submit"] {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .website-demo-card {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .docs-shell--component .docs-shell__frame {
        grid-template-columns: 1fr;
    }

    .docs-shell--component .docs-shell__sidebar {
        position: static;
        max-height: 220px;
    }
}
