:root {
  color-scheme: light;
  --canvas: #fdfdfd;
  --surface: #fff;
  --surface-soft: oklch(96.7% 0.003 264.542);
  --text: oklch(21% 0.034 264.665);
  --body: #4c4c5c;
  --muted: oklch(55.1% 0.027 264.364);
  --muted-light: oklch(70.7% 0.022 261.325);
  --border: oklch(92.8% 0.006 264.531);
  --primary: oklch(68.5% 0.169 237.323);
  --primary-soft: color-mix(in srgb, var(--primary) 20%, transparent);
  --success: #02bc9c;
  --danger: #f7577e;
  --secondary: #7b70ef;
  --spacing-unit: 4px;
  --radius-control: 8px;
  --radius-card: 8px;
  --sidebar-width: 265px;
  --topbar-height: 70px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  font-family: var(--sans), ui-sans-serif, system-ui, sans-serif;
  color: var(--body);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font: 14px/1.5 var(--sans), ui-sans-serif, system-ui, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.small-icon { width: 16px; height: 16px; }
.tiny-icon { width: 14px; height: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.reference { width: min(calc(100% - 32px), 1160px); margin-inline: auto; padding: 44px 0 40px; }
.reference-intro { margin: 0 0 28px; }
.eyebrow, .type-caption { margin: 0 0 8px; color: var(--muted-light); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.eyebrow { color: var(--primary); letter-spacing: .12em; }
h1, h2, h3, h4, p { margin-top: 0; }
.reference-intro h1 { margin: 0 0 10px; color: var(--text); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.03em; }
.reference-intro > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.component-section { margin: 0 0 24px; overflow: clip; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 3px rgb(17 24 39 / 2%); }
#topbar-component { position: relative; z-index: 1; overflow: visible; }
.section-heading { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.section-heading h2 { margin: 0; color: var(--text); font-size: 15px; line-height: 20px; font-weight: 600; }
.section-index { color: var(--muted-light); font-size: 12px; font-weight: 600; }
.section-body { padding: 20px; }
.section-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.token-layout { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 28px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.swatch { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; font-weight: 500; }
.swatch small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.swatch-chip { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; }
.swatch-canvas { background: var(--canvas); }
.swatch-border { background: var(--border); }
.swatch-primary { background: var(--primary); }
.swatch-success { background: var(--success); }
.type-sample h3 { margin: 0 0 6px; color: var(--text); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.025em; }
.type-body { margin: 0; color: var(--muted); font-size: 13px; }
.space-sample .type-caption { margin-bottom: 12px; }
.space-bars { display: flex; align-items: flex-end; gap: 12px; height: 34px; margin-bottom: 8px; }
.space-bars span { display: block; width: 14px; height: var(--size); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--primary) 50%, white); }

.sidebar-stage { position: relative; min-height: 450px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.sample-sidebar { position: absolute; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 0 16px 16px; border-right: 1px solid var(--border); background: var(--surface); transition: transform 300ms var(--ease), visibility 300ms; }
.brand { display: flex; min-height: var(--topbar-height); align-items: center; gap: 9px; color: oklch(27.8% 0.033 256.848); font-size: 20px; line-height: 1; font-weight: 900; letter-spacing: .08em; }
.brand-mark { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); }
.brand-mark .icon { width: 24px; height: 24px; }
.side-nav { flex: 1; overflow: auto; padding: 8px 0; }
.nav-section-title { display: flex; align-items: center; gap: 12px; margin: 5px 0 4px; padding: 6px 12px; color: var(--muted-light); font-size: 12px; line-height: 16px; font-weight: 600; }
.nav-section-title::after { height: 1px; flex: 1; background: color-mix(in srgb, var(--muted-light) 35%, transparent); content: ""; }
.side-link { display: flex; width: 100%; min-height: 36px; align-items: center; gap: 9px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: 14px; font-weight: 500; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.side-link:hover, .nav-submenu a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.side-link.is-current { background: var(--surface-soft); color: var(--text); }
.side-link .icon { width: 20px; height: 20px; }
.nav-badge { margin-left: auto; padding: 1px 5px; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--danger) 12%, white); color: var(--danger); font-size: 9px; line-height: 14px; font-weight: 700; }
.nav-accordion { margin: 2px 0; }
.nav-accordion summary { cursor: pointer; list-style: none; }
.nav-accordion summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 14px !important; height: 14px !important; margin-left: auto; transition: transform 150ms var(--ease); }
.nav-accordion[open] .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: grid; gap: 2px; padding: 4px 0 4px 40px; }
.nav-submenu a { padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.sidebar-promo { margin-top: 12px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: center; }
.promo-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 15%, white); color: var(--primary); }
.promo-icon .icon { width: 24px; height: 24px; }
.sidebar-promo h3 { margin: 0 0 6px; color: oklch(27.8% 0.033 256.848); font-size: 15px; font-weight: 600; }
.sidebar-promo p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.promo-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; background: var(--secondary); color: white; font-size: 12px; font-weight: 600; }
.promo-action .icon { width: 15px; height: 15px; }
.sidebar-trigger, .sidebar-backdrop { display: none; }

.topbar-stage { overflow: visible; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.topbar-sample { display: flex; min-height: var(--topbar-height); align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.topbar-start, .topbar-end { display: flex; min-width: 0; align-items: center; gap: 12px; }
.compact-brand { display: none; }
.control, .icon-button, .button-outline, .button-primary { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease); }
.control:hover, .icon-button:hover, .button-outline:hover { background: var(--surface-soft); color: var(--text); }
.control[open], .dropdown[open] > summary { background: var(--surface-soft); }
.icon-button { width: 38px; padding: 8px; }
.icon-control { position: relative; width: 38px; padding: 8px; }
.control .chevron, .profile-toggle .chevron { color: var(--muted-light); }
.dropdown { position: relative; }
.dropdown > summary, .profile-toggle { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker, .profile-toggle::-webkit-details-marker { display: none; }
.dropdown > summary { user-select: none; }
.menu-panel { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; min-width: 192px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgb(17 24 39 / 8%); animation: menu-in 150ms var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.menu-list { display: grid; gap: 2px; }
.menu-list button { display: flex; min-height: 36px; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: oklch(27.8% 0.033 256.848); text-align: left; cursor: pointer; }
.menu-list button:hover { background: var(--surface-soft); }
.menu-list .icon { color: var(--muted); }
.locale-current, .locale-option { display: inline-flex; min-width: 24px; height: 17px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 2px; background: var(--surface-soft); color: var(--text); font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.locale-menu .menu-panel { min-width: 160px; }
.locale-menu .menu-list button { gap: 10px; }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--danger); }
.notification-panel { width: min(384px, calc(100vw - 24px)); padding: 0; }
.notification-heading { padding: 10px 14px; border-radius: 7px 7px 0 0; background: var(--surface-soft); color: var(--muted); text-align: center; font-weight: 500; }
.notification-list { display: grid; }
.notification-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); transition: background-color 150ms var(--ease); }
.notification-row:hover { background: var(--surface-soft); }
.avatar { position: relative; display: inline-flex; width: 44px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; color: white; font-size: 12px; font-weight: 700; }
.avatar-teal { background: #299b88; }
.avatar-blue { background: #3985c9; }
.avatar-violet { background: #8173dc; }
.avatar-profile { width: 36px; height: 36px; background: #607d99; }
.activity-mark { position: absolute; right: -3px; bottom: -3px; display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--success); color: white; font-size: 10px; line-height: 1; }
.notification-row:nth-child(2) .activity-mark { background: var(--primary); }
.notification-row:nth-child(3) .activity-mark { background: var(--secondary); }
.notification-copy { display: grid; gap: 4px; color: var(--muted); font-size: 13px; line-height: 18px; }
.notification-copy strong { color: var(--text); font-weight: 600; }
.notification-copy small { color: var(--primary); font-size: 11px; }
.notification-footer { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; background: var(--surface-soft); color: var(--text); font-size: 12px; font-weight: 600; }
.notification-footer:hover { background: var(--border); }
.fullscreen-sample { display: inline-flex; }
.profile-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--text); font-size: 14px; font-weight: 600; }
.profile-name { white-space: nowrap; }
.profile-panel { min-width: 176px; }
.profile-panel hr { width: calc(100% + 16px); margin: 4px -8px; border: 0; border-top: 1px solid var(--border); }
.menu-list button.danger-link { color: var(--danger); }
.menu-list button.danger-link .icon { color: var(--danger); }
.search-control { position: relative; display: flex; min-height: 38px; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.search-control:focus-within { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent); }
.search-icon { margin-left: 12px; }
.search-control input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-control input::placeholder { color: var(--muted); opacity: 1; }
.search-control button { display: inline-flex; width: 36px; height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.search-control button:hover { color: var(--text); }
.topbar-search { display: none; width: 320px; }

.split-samples { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.breadcrumb-sample { display: flex; align-items: center; gap: 8px; color: oklch(37.3% 0.034 259.733); font-size: 14px; font-weight: 500; }
.breadcrumb-sample a { display: inline-flex; align-items: center; }
.breadcrumb-sample a:hover { color: var(--text); }
.breadcrumb-sample .icon { width: 18px; height: 18px; color: var(--muted-light); }
.breadcrumb-chevron { color: var(--muted-light); }
.standalone-search { width: min(100%, 360px); }

.plan-sample-layout { display: grid; grid-template-columns: minmax(200px, .75fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.billing-control-wrap { padding-top: 2px; }
.billing-control-wrap .type-caption { margin-bottom: 10px; }
.billing-segment { display: inline-flex; margin: 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; }
.billing-segment label { position: relative; display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border-radius: 8px; cursor: pointer; }
.billing-segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.billing-segment label span { position: relative; z-index: 1; color: oklch(27.8% 0.033 256.848); font-size: 14px; font-weight: 500; pointer-events: none; }
.billing-segment input:checked + span { z-index: 0; }
.billing-segment label:has(input:checked) { background: white; box-shadow: 0 1px 3px rgb(17 24 39 / 12%); }
.billing-segment label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.cadence-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.plan-card { width: min(100%, 370px); overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px rgb(17 24 39 / 2%); }
.plan-main { padding: 20px; }
.plan-main h3 { margin: 0; color: var(--text); font-size: 20px; line-height: 24px; font-weight: 600; }
.plan-description { min-height: 40px; margin: 14px 0 24px; color: var(--muted); font-size: 14px; line-height: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 24px; color: var(--text); font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.03em; }
.currency { font-size: .9em; }
.button-primary { border-color: transparent; background: var(--primary-soft); color: color-mix(in srgb, var(--primary) 88%, #087ca8); }
.button-primary:hover { background: color-mix(in srgb, var(--primary) 28%, white); }
.plan-cta { width: 100%; }
.plan-features { padding: 24px 24px 32px; background: var(--surface-soft); }
.plan-features h4 { margin: 0; color: var(--text); font-size: 14px; font-weight: 500; }
.plan-features ul { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; line-height: 20px; }
.check-icon { width: 18px; height: 18px; color: var(--success); }

.states-sample { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 24px; align-items: center; }
.button-row, .icon-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.button-primary, .button-outline { font-size: 13px; font-weight: 500; }
.status-marker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-marker span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.icon-row { color: var(--muted); }
.footer-stage { padding: 0 20px; }
.footer-sample { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; color: oklch(37.3% 0.034 259.733); font-size: 13px; font-weight: 500; }
.footer-meta { color: var(--primary); }
.reference-note { margin: 0; color: var(--muted); font-size: 12px; }

@media (min-width: 40rem) {
  .reference { padding-top: 52px; }
  .reference-intro h1 { text-align: left; }
  .profile-name { display: inline; }
}
@media (min-width: 48rem) {
  .topbar-search { display: none; }
  .create-menu { display: inline-block; }
}
@media (min-width: 64rem) {
  .sidebar-trigger, .sidebar-backdrop { display: none !important; }
  .sample-sidebar { transform: none !important; visibility: visible !important; }
  .compact-brand { display: none !important; }
}
@media (min-width: 80rem) {
  .topbar-search { display: flex; }
}
@media (max-width: 63.999rem) {
  .sidebar-stage { min-height: 450px; }
  .sidebar-trigger { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; width: auto; padding-inline: 12px; background: white; }
  .sidebar-trigger span { font-size: 13px; }
  .sample-sidebar { transform: translateX(-100%); visibility: hidden; }
  .sidebar-stage.is-open .sample-sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop { position: absolute; inset: 0; z-index: 1; display: none; width: 100%; height: 100%; border: 0; background: rgb(17 24 39 / 28%); }
  .sidebar-stage.is-open .sidebar-backdrop { display: block; }
  .compact-brand { display: inline-flex; font-size: 18px; }
  .topbar-sample { flex-wrap: wrap; }
  .topbar-start, .topbar-end { gap: 8px; }
  .fullscreen-sample { display: none; }
}
@media (max-width: 47.999rem) {
  .reference { width: min(calc(100% - 24px), 1160px); padding-top: 28px; }
  .reference-intro h1 { font-size: 26px; line-height: 32px; }
  .section-body { padding: 16px; }
  .section-heading { padding-inline: 16px; }
  .token-layout, .states-sample, .plan-sample-layout { grid-template-columns: 1fr; }
  .topbar-sample { align-items: flex-start; padding-inline: 12px; }
  .topbar-start { flex: 1 1 100%; justify-content: space-between; }
  .topbar-end { width: 100%; justify-content: flex-end; }
  .create-menu { display: none; }
  .profile-name { display: none; }
  .split-samples { align-items: stretch; flex-direction: column; }
  .standalone-search { width: 100%; }
  .footer-sample { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
