.variants-panel > h2, .resources-panel > h2 { font-size: 24px; font-weight: 600; letter-spacing: -.7px; color: var(--ck-text); }
.variant-list { display: grid; gap: 18px; margin-top: 22px; }
.variant-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 20px; border: 1px solid var(--ck-border); border-radius: 16px; scroll-margin-top: 24px; }
.variant-copy { min-width: 0; }
.variant-card h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; }
.variant-card p { font-size: 12px; color: var(--ck-muted); line-height: 1.7; margin-top: 9px !important; }
.variant-card .variant-tip { color: var(--ck-text); border-left: 2px solid var(--ck-accent); padding-left: 10px; }
.variant-card .variant-example { font-size: 11px; }
.native-example {
  --demo-accent: #684d95; --demo-accent-hover: #57417c; --demo-ink: #1f1f2c;
  --demo-muted: #667085; --demo-surface: #fff; --demo-canvas: #f5f2f0;
  --demo-border: #d0d5dd; --demo-soft: #ece6f5; --demo-error: #c73e3e;
  margin: 0; padding: 24px; border-radius: 12px; border: 1px solid var(--ck-border);
  background: var(--demo-canvas); min-width: 0; align-self: start;
}
[data-theme="dark"] .native-example {
  --demo-accent: #baa1e2; --demo-accent-hover: #ceb4f5; --demo-ink: #eeedf4;
  --demo-muted: #b2b8c7; --demo-surface: #242630; --demo-canvas: #1b1d25;
  --demo-border: #505663; --demo-soft: #393044; --demo-error: #ff9393;
}
.component-example { display: grid; align-content: center; gap: 16px; min-height: 170px; min-width: 0; color: var(--demo-ink); font-size: 12px; line-height: 1.5; }
.component-example *, .component-example *::before, .component-example *::after { box-sizing: border-box; }
.component-example [hidden] { display: none !important; }
.component-example :is(button,input,textarea,select) { font: inherit; }
.component-example :is(button,input,textarea,summary) { -webkit-tap-highlight-color: transparent; }
.component-example :is(button,input,textarea,summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--demo-accent) 55%, transparent); outline-offset: 3px; }
.component-example small { color: var(--demo-muted); font-size: 11px; line-height: 1.5; }
.component-example p { margin: 5px 0 0 !important; font-size: 12px; line-height: 1.55; color: inherit; }
.component-example h4 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.3px; }
.component-example h5 { font-size: 12px; margin: 12px 0; }
body[data-app="checklist"] .component-example .demo-glyph { display: block; flex: 0 0 auto; width: var(--glyph-size, 20px); height: var(--glyph-size, 20px); stroke: currentColor; stroke-width: 1.7; pointer-events: none; }
.demo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.demo-stack { display: grid; gap: 12px; min-width: 0; }
.demo-center { justify-items: center; }
.demo-two-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid var(--demo-accent); border-radius: 8px; background: var(--demo-accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; overflow-wrap: anywhere; }
[data-theme="dark"] .demo-button { color: #191b23; }
.demo-button:hover { background: var(--demo-accent-hover); border-color: var(--demo-accent-hover); }
.demo-button:active { transform: scale(.97); }
.demo-button.small { min-height: 36px; padding: 8px 18px; font-size: 11px; }
.demo-button.large { min-height: 60px; padding: 15px 32px; font-size: 15px; }
.demo-button.outline { background: var(--demo-surface); color: var(--demo-accent); border-color: var(--demo-accent); }
.demo-button.outline:hover { background: var(--demo-soft); }
.demo-button.soft { background: var(--demo-soft); color: var(--demo-accent); border-color: transparent; }
.demo-button.pressed { background: var(--demo-accent-hover); box-shadow: inset 0 0 0 24px #0002; }
.demo-button.show-focus, .show-focus input { outline: 3px solid color-mix(in srgb, var(--demo-accent) 32%, transparent); outline-offset: 3px; }
.demo-button:disabled { cursor: default; background: var(--demo-accent); border-color: var(--demo-accent); opacity: .4; transform: none; }
.demo-button.full { width: 100%; }
.demo-button.icon-button { min-width: 40px; min-height: 40px; padding: 9px; }
.demo-button.text-button { min-height: 32px; padding: 5px 7px; background: transparent; border-color: transparent; color: var(--demo-accent); }
.demo-feedback { background: var(--demo-surface); border: 1px solid var(--demo-border); border-radius: 8px; padding: 9px 12px; color: var(--demo-ink); font-size: 11px; }
.demo-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
.demo-state { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.demo-state-label { font-size: 10px; color: var(--demo-muted); }
.demo-lines { display: grid; gap: 8px; width: 100%; min-width: 0; }
.demo-lines i { display: block; height: 6px; background: color-mix(in srgb,var(--demo-ink) 15%,transparent); border-radius: 4px; width: 100%; }
.demo-lines .short { width: 65%; }
.demo-accordion-item { background: var(--demo-surface); border: 1px solid color-mix(in srgb,var(--demo-ink) 13%,transparent); border-radius: 8px; overflow: hidden; }
.demo-accordion-item + .demo-accordion-item { margin-top: 5px; }
.demo-accordion-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 600; min-height: 42px; }
.demo-accordion-item summary::-webkit-details-marker { display: none; }
.demo-accordion-item[open] summary .demo-glyph { transform: rotate(180deg); }
.demo-accordion-item[open] summary .demo-glyph:has(path[d^="M12 5"]) { transform: rotate(45deg); }
.demo-accordion-item .demo-glyph { width: 16px !important; height: 16px !important; transition: transform 170ms ease; }
.demo-accordion-content, .demo-accordion-item > p { padding: 0 12px 13px; color: var(--demo-muted); font-size: 11px; }
.demo-accordion-item[data-demo-disabled] { opacity: .5; }
.demo-accordion-item[data-demo-disabled] summary { cursor: default; }
.demo-accordion-group.divided { background: var(--demo-surface); border: 1px solid var(--demo-border); border-radius: 8px; overflow: hidden; }
.demo-accordion-group.divided .demo-accordion-item { border: 0; border-radius: 0; margin: 0; }
.demo-accordion-group.divided .demo-accordion-item + .demo-accordion-item { border-top: 1px solid var(--demo-border); }
.demo-field { display: grid; gap: 7px; min-width: 0; }
.demo-field > span { font-size: 11px; font-weight: 500; }
.demo-field input, .demo-field textarea { width: 100%; min-width: 0; border: 1px solid var(--demo-border); border-radius: 8px; padding: 10px 12px; min-height: 44px; color: var(--demo-ink); background: var(--demo-surface); box-shadow: 0 1px 2px #00000004; }
.demo-field textarea { resize: vertical; min-height: 108px; }
.demo-field input::placeholder, .demo-field textarea::placeholder { color: var(--demo-muted); opacity: 1; }
.demo-field.filled input { border-color: transparent; background: color-mix(in srgb,var(--demo-ink) 9%,var(--demo-surface)); }
.demo-field.underlined input { border-width: 0 0 1px; border-radius: 0; background: transparent; box-shadow: none; }
.demo-field.small input { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.demo-field.large input { min-height: 52px; padding: 14px 12px; }
.demo-field.invalid input { border-color: var(--demo-error); }
.demo-field.floating { position: relative; }
.demo-field.floating > span { position: absolute; inset-inline-start: 9px; top: -8px; background: var(--demo-surface); padding: 0 4px; }
.demo-field input:disabled { color: var(--demo-muted); background: color-mix(in srgb,var(--demo-ink) 6%,var(--demo-surface)); opacity: .55; }
.demo-input-icon { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 44px; background: var(--demo-surface); border: 1px solid var(--demo-border); border-radius: 8px; color: var(--demo-muted); min-width: 0; }
.demo-input-icon input { width: 100%; min-width: 0; border: 0; padding: 12px 0; background: transparent; color: var(--demo-ink); }
.demo-input-icon input:focus { outline: 0; }
.demo-input-icon:focus-within { outline: 3px solid color-mix(in srgb,var(--demo-accent) 30%,transparent); border-color: var(--demo-accent); }
.demo-input-icon .icon-button { border: 0; background: transparent; color: var(--demo-muted); padding: 5px; min-width: 28px; min-height: 28px; }
.demo-error { color: var(--demo-error) !important; }
.demo-choice { display: inline-flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.demo-choice input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 17px; height: 17px; padding: 0; margin: 0; border: 1.5px solid var(--demo-accent); border-radius: 4px; background: var(--demo-surface); display: grid; place-items: center; cursor: pointer; }
.demo-choice input[type="radio"] { border-radius: 50%; }
.demo-choice input[type="checkbox"]:checked, .demo-choice input:indeterminate { background: var(--demo-accent); }
.demo-choice input[type="checkbox"]:checked::after { content: ''; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }
.demo-choice input:indeterminate::after { content: ''; height: 2px; width: 8px; border: 0; background: #fff; transform: none; }
.demo-choice input[type="radio"]:checked::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--demo-accent); }
.demo-choice input:disabled { opacity: .4; cursor: default; }
.demo-choice:has(input:disabled) { color: var(--demo-muted); cursor: default; }
.demo-choice.choice-card { flex: 1; padding: 12px; border: 1px solid var(--demo-border); border-radius: 5px; background: var(--demo-surface); }
.demo-choice.choice-card:has(input:checked) { border-color: var(--demo-accent); background: var(--demo-soft); }
.demo-choice.invalid input { border-color: var(--demo-error); }
.demo-choice.invalid input:checked { background: var(--demo-error); }
.demo-control-matrix { display: grid; grid-template-columns: minmax(60px,.9fr) 1fr 1fr; gap: 20px 14px; align-items: center; }
.demo-control-matrix > :is(span,b) { color: var(--demo-muted); font-size: 10px; font-weight: 500; }
.demo-control-matrix .demo-choice span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-switch { display: flex; align-items: center; justify-content: center; justify-self: center; width: fit-content; max-width: 100%; gap: 18px; min-height: 76px; cursor: pointer; position: relative; }
.demo-switch span { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.demo-switch input { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); opacity: 0; width: 85px; height: 40px; margin: 0; padding: 0; border: 0; z-index: 1; cursor: pointer; }
.demo-switch i { display: block; position: relative; width: 85px; height: 40px; border-radius: 22px; background: #9c9997; flex: 0 0 auto; transition: background-color 180ms ease; pointer-events: none; }
.demo-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #0003; transition: transform 180ms ease; pointer-events: none; }
.demo-switch input:checked + i { background: var(--demo-accent); }
.demo-switch input:checked + i::after { transform: translateX(45px); }
.demo-switch input:focus-visible + i { outline: 3px solid color-mix(in srgb,var(--demo-accent) 40%,transparent); outline-offset: 4px; }
.demo-range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-width: 0; }
.demo-range-label { font-size: 11px; }
.demo-range input { grid-column: 1 / -1; grid-row: 2; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border-radius: 6px; margin: 9px 0; background: linear-gradient(to right,var(--demo-accent) var(--value),var(--demo-border) var(--value)); cursor: pointer; }
.demo-range input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 15px; width: 15px; border: 2px solid var(--demo-accent); border-radius: 50%; background: var(--demo-accent); transition: box-shadow 150ms ease; }
.demo-range input::-moz-range-thumb { height: 15px; width: 15px; border: 2px solid var(--demo-accent); border-radius: 50%; background: var(--demo-accent); }
.demo-range input:active::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb,var(--demo-accent) 20%,transparent); }
.demo-range output { font-size: 11px; font-variant-numeric: tabular-nums; }
.range-thick input { height: 19px; }
.range-square input::-webkit-slider-thumb { height: 24px; width: 7px; border-radius: 4px; border: 2px solid var(--demo-canvas); }
.range-outline input::-webkit-slider-thumb { background: var(--demo-surface); border-width: 3px; }
.range-tooltip { padding-top: 20px; }
.range-tooltip output { border: 1px solid var(--demo-border); border-radius: 8px; padding: 4px 8px; background: var(--demo-surface); }
.dark-output output { background: var(--demo-accent); color: #fff; border-color: var(--demo-accent); }
.demo-range-ticks { justify-content: space-between; font-size: 10px; color: var(--demo-muted); }
.range-number { width: 106px; justify-self: center; }
.range-number input { text-align: center; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: var(--demo-surface); border: 1px solid var(--demo-border); color: var(--demo-ink); min-width: 0; }
.demo-banner > div { min-width: 0; flex: 1; }
.demo-banner strong { font-size: 11px; font-weight: 600; }
.demo-banner p { font-size: 10px; }
.demo-banner.success { background: #267842; color: #fff; border-color: #267842; }
.demo-banner.warning { background: #ffc130; color: #1f1f2c; border-color: #ffc130; }
.demo-banner.danger { background: #943939; color: #fff; border-color: #943939; }
.demo-banner :is(.icon-button,.outline) { color: inherit; background: transparent; border-color: currentColor; min-height: 32px; padding: 6px; font-size: 10px; }
.demo-banner .icon-button { border: 0; flex: 0 0 auto; min-width: 25px; }
.demo-banner-subtle .demo-banner { background: #f8eaa5; }
.demo-placement-board, .demo-toast-board { position: relative; min-height: 200px; border-radius: 8px; border: 1px solid var(--demo-border); background: var(--demo-surface); padding: 12px; overflow: hidden; }
.demo-placement-content { padding: 30px 15px; }
.position-bottom { margin-top: auto; }
.demo-placement-board .demo-banner { padding: 9px; }
.demo-toast { display: flex; align-items: center; gap: 9px; min-height: 48px; border-radius: 8px; padding: 10px 12px; background: #1f1f2c; color: #fff; box-shadow: 0 3px 8px #0002; position: relative; overflow: hidden; }
.demo-toast > span { flex: 1; min-width: 0; font-size: 11px; }
.demo-toast .text-button { color: #b990ff; font-size: 11px; }
.demo-toast .icon-button { background: transparent; color: #fff; border: 0; min-width: 26px; min-height: 26px; padding: 3px; }
.demo-toast.success > .demo-glyph { color: #5af185; }
.demo-toast.danger > .demo-glyph { color: #ff8282; }
.demo-toast-timer { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: #b8b3f8; transform-origin: left; animation: demo-countdown 8s linear; }
.demo-toast-board { display: flex; flex-direction: column; background: color-mix(in srgb,var(--demo-ink) 5%,var(--demo-canvas)); }
.demo-position-labels { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.demo-position-labels i { height: 22px; border: 1px dashed var(--demo-muted); border-radius: 5px; }
.demo-position-labels i:last-child { grid-column: 2; margin-top: 26px; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--demo-border); gap: 4px; min-width: 0; }
.demo-tabs button { flex: 1; min-height: 42px; padding: 10px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--demo-muted); cursor: pointer; font-size: 11px; overflow-wrap: anywhere; }
.demo-tabs button[aria-selected="true"] { color: var(--demo-ink); border-bottom-color: var(--demo-ink); font-weight: 600; }
.demo-tabs button:disabled { opacity: .4; cursor: default; }
.demo-tab-panel { padding: 15px 0; display: grid; gap: 14px; }
.segmented .demo-tabs { border: 1px solid var(--demo-border); border-radius: 8px; padding: 4px; background: var(--demo-surface); }
.segmented .demo-tabs button { border: 0; border-radius: 5px; min-height: 34px; }
.segmented .demo-tabs button[aria-selected="true"] { background: var(--demo-soft); }
.demo-overlay-scene { position: relative; border-radius: 9px; border: 1px solid var(--demo-border); background: var(--demo-surface); overflow: hidden; min-height: 200px; }
.demo-scene-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--demo-border); font-size: 9px; }
.demo-scene-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 12px; }
.demo-scene-grid > div { min-height: 45px; background: var(--demo-canvas); padding: 8px; border-radius: 6px; }
.demo-overlay-preview { position: absolute; inset: 0; background: #0004; display: grid; place-items: center; padding: 12px; }
.demo-overlay-preview > div { background: var(--demo-surface); padding: 18px; border-radius: 9px; width: min(100%,260px); box-shadow: 0 4px 18px #0002; }
.demo-overlay-preview p { font-size: 11px; margin-top: 8px !important; }
.demo-overlay-preview .demo-row { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; margin-top: 15px; }
.demo-overlay-preview .demo-button { min-height: 31px; font-size: 10px; padding: 6px 10px; }
.drawer-preview { padding: 0; justify-items: end; }
.drawer-preview > div { border-radius: 0; min-height: 200px; width: 70%; }
.demo-dialog { padding: 22px; width: min(440px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--demo-border); border-radius: 14px; background: var(--demo-surface); color: var(--demo-ink); overflow: auto; box-shadow: 0 18px 80px #0004; }
.demo-dialog::backdrop { background: #14131c8c; }
.demo-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.demo-dialog h4 { margin: 0; font-size: 18px; }
.demo-dialog header .icon-button { border: 0; background: transparent; color: var(--demo-muted); }
.demo-dialog p { margin: 16px 0 !important; }
.demo-dialog .demo-lines, .demo-dialog .demo-field { margin-top: 16px; }
.demo-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.demo-dialog-drawer { inset: 0 0 0 auto; margin: 0; width: min(400px,calc(100vw - 28px)); height: 100dvh; max-height: 100dvh; border-radius: 0; display: none; }
.demo-dialog-drawer[open] { display: flex; flex-direction: column; }
.demo-dialog-drawer[data-side="left"] { inset: 0 auto 0 0; }
.demo-dialog-drawer footer { margin-top: auto; padding-top: 24px; }
.demo-spinner { display: inline-block; height: 34px; width: 34px; border: 3px solid color-mix(in srgb,var(--demo-accent) 18%,transparent); border-top-color: var(--demo-accent); border-radius: 50%; animation: demo-spin 1s linear infinite; }
.demo-loading { display: flex; align-items: center; justify-content: center; gap: 12px; }
.loading-styles { justify-content: space-around; }
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { display: block; width: 9px; height: 9px; background: var(--demo-accent); border-radius: 50%; animation: demo-dot 1s ease-in-out infinite; }
.demo-dots i:nth-child(2) { animation-delay: 100ms; }.demo-dots i:nth-child(3) { animation-delay: 200ms; }
.demo-spokes { position: relative; width: 40px; height: 40px; display: block; animation: demo-spin 1.1s steps(8) infinite; }
.demo-spokes i { position: absolute; width: 3px; height: 10px; left: 19px; top: 0; border-radius: 2px; background: var(--demo-accent); transform-origin: 1px 20px; transform: rotate(calc(var(--spoke) * 45deg)); opacity: calc(.15 + var(--spoke) * .12); }
.component-example progress { width: 100%; height: 7px; border: 0; border-radius: 5px; accent-color: var(--demo-accent); }
.component-example progress::-webkit-progress-bar { border-radius: 5px; background: var(--demo-border); }.component-example progress::-webkit-progress-value { border-radius: 5px; background: var(--demo-accent); }
.demo-avatar { --avatar-size: 48px; display: inline-flex; position: relative; width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; background: #d4afbd; color: #460920; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.demo-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.demo-avatar.large { --avatar-size: 56px; }.demo-avatar.square { border-radius: 8px; }
.demo-presence { position: absolute; width: 15px; height: 15px; border: 2px solid var(--demo-surface); bottom: -1px; right: -1px; border-radius: 50%; background: #12b76a; }
.demo-presence.away { background: #b6aaaa; }.demo-presence.offline { background: #ff7d66; }
.demo-presence.away::after { content: ''; width: 5px; height: 1px; background: #fff; position: absolute; left: 3px; top: 5px; }
.demo-profile-card { display: grid; gap: 10px; justify-items: center; padding: 15px; background: var(--demo-surface); border-radius: 8px; border: 1px solid var(--demo-border); min-height: 175px; }
.demo-skeleton { position: relative; overflow: hidden; }
.demo-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--demo-surface) 65%,transparent),transparent); animation: demo-shimmer 1.8s ease-in-out infinite; pointer-events: none; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb,var(--demo-ink) 14%,transparent); display: block; flex-shrink: 0; }
.demo-skeleton .demo-row { flex-wrap: nowrap; }
.skeleton-picture { display: block; height: 68px; background: color-mix(in srgb,var(--demo-ink) 13%,transparent); border-radius: 6px; margin: 15px 0; }
.demo-skeleton-layout { display: grid; gap: 20px; }
.skeleton-buttons { display: flex; gap: 10px; margin-top: 15px; }.skeleton-buttons i { width: 35%; height: 27px; border-radius: 5px; background: color-mix(in srgb,var(--demo-ink) 14%,transparent); }
.demo-tooltip-trigger { position: relative; justify-self: center; display: inline-flex; align-items: center; padding: 10px 0; }
.demo-tooltip-trigger > .icon-button { background: transparent; color: var(--demo-ink); border: 0; }
.demo-tooltip { display: grid; gap: 7px; position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%) translateY(3px); width: max-content; max-width: min(220px,60vw); padding: 10px 12px; border-radius: 8px; background: #1f1f2c; color: #fff; font-size: 11px; box-shadow: 0 3px 10px #0002; z-index: 2; visibility: hidden; opacity: 0; transition: opacity 130ms ease, transform 130ms ease; pointer-events: none; }
.demo-tooltip::after { content: ''; position: absolute; top: 100%; left: calc(50% - 4px); border: 4px solid transparent; border-top-color: #1f1f2c; }
.demo-tooltip-trigger:is(:hover,:focus-within,[data-open="true"]) .demo-tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.demo-tooltip-trigger[data-dismissed="true"] .demo-tooltip { visibility: hidden; opacity: 0; }
.demo-tooltip-trigger.bottom .demo-tooltip { top: calc(100% - 4px); bottom: auto; }.demo-tooltip-trigger.bottom .demo-tooltip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1f1f2c; }
.demo-tooltip-trigger.left .demo-tooltip { bottom: 50%; left: auto; right: 100%; transform: translateY(50%); max-width: 108px; }.demo-tooltip-trigger.left .demo-tooltip::after { top: calc(50% - 4px); left: 100%; border-top-color: transparent; border-left-color: #1f1f2c; }
.demo-tooltip-trigger.right .demo-tooltip { bottom: 50%; left: 100%; transform: translateY(50%); max-width: 108px; }.demo-tooltip-trigger.right .demo-tooltip::after { top: calc(50% - 4px); left: auto; right: 100%; border-top-color: transparent; border-right-color: #1f1f2c; }
.demo-tooltip-positions { display: grid; grid-template-columns: repeat(2,1fr); min-height: 180px; align-items: center; gap: 20px 10px; padding: 22px 35px; }
.demo-tooltip-positions > :first-child, .demo-tooltip-positions > :last-child { grid-column: 1 / -1; }
.demo-icon-style-grid { display: grid; gap: 10px; }
.demo-icon-style-grid .icon-button { color: var(--demo-accent); background: transparent; border: 0; }
.icon-fill .demo-glyph { fill: currentColor; }.icon-duotone .demo-glyph { fill: color-mix(in srgb,var(--demo-accent) 22%,transparent); }
.demo-icon-size { display: grid; justify-items: center; gap: 5px; }
.demo-icon-size .icon-button { color: var(--demo-accent); background: transparent; border: 0; padding: 7px; }
.demo-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.demo-example-card { display: grid; align-content: center; justify-items: center; gap: 8px; min-width: 0; min-height: 105px; border: 1px solid transparent; border-radius: 8px; background: var(--demo-surface); padding: 12px 7px; color: var(--demo-ink); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.demo-example-card:hover { transform: translateY(-2px); }.demo-example-card[aria-pressed="true"] { outline: 2px solid var(--demo-accent); outline-offset: 2px; }
.demo-example-card b { font-size: 10px; font-weight: 600; }.demo-example-card > span { font-size: 9px; color: var(--demo-muted); }
.demo-example-card.bordered { border-color: color-mix(in srgb,var(--demo-ink) 20%,transparent); }.demo-example-card.elevated { box-shadow: 0 4px 12px #0002; }
.demo-spacing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px dashed var(--demo-error); border-radius: 8px; }.demo-spacing-grid.airy { gap: 12px; padding: 12px; border-color: var(--demo-accent); }
.demo-spacing-grid .demo-example-card { min-height: 57px; }.demo-spacing-grid .demo-example-card .demo-glyph, .demo-spacing-grid .demo-example-card > span { display: none; }
.demo-notification { width: 80px; height: 80px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--demo-surface); color: var(--demo-accent); box-shadow: 0 4px 12px #0002; position: relative; justify-self: center; cursor: pointer; }
.demo-notification .demo-glyph { width: 34px !important; height: 34px !important; }
.demo-notification-badge { position: absolute; right: -3px; top: -3px; min-width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #e31b54; font-size: 11px; border: 2px solid var(--demo-canvas); }
.demo-notification-badge.badge-dot { min-width: 14px; width: 14px; height: 14px; right: 1px; top: 2px; }
.demo-notification[aria-pressed="true"] .demo-notification-badge { display: none; }
.demo-carousel { max-width: 100%; display: grid; gap: 12px; touch-action: pan-y; }
.demo-carousel-track { min-height: 120px; background: var(--demo-surface); border: 1px solid var(--demo-border); border-radius: 12px; padding: 4px; }
.demo-carousel-slide { display: grid; gap: 12px; text-align: center; padding-bottom: 12px; }
.demo-carousel-art { min-height: 110px; display: grid; place-items: center; border-radius: 8px; background: #e6e2df; color: #8d8d94; }.demo-carousel-art.art-1 { background: #ece6f5; color: #684d95; }.demo-carousel-art.art-2 { background: #dfeae2; color: #267842; }
.demo-carousel-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-carousel-controls .icon-button { min-width: 32px; min-height: 32px; padding: 5px; border-color: var(--demo-border); color: var(--demo-ink); }
.demo-carousel-dots { display: flex; gap: 7px; }
.demo-carousel-dots button { width: 20px; height: 20px; padding: 5px; border: 0; background: transparent; position: relative; cursor: pointer; }
.demo-carousel-dots button::after { content: ''; display: block; width: 7px; height: 7px; background: var(--demo-border); border-radius: 50%; }
.demo-carousel-dots button[aria-pressed="true"]::after { background: var(--demo-ink); }
.demo-carousel-position { justify-self: center; color: var(--demo-muted); font-size: 10px; }
.demo-carousel-slide.is-entering { animation: demo-slide 220ms ease; }
.demo-phone { position: relative; width: min(245px,100%); min-height: 350px; border: 5px solid #1f1f2c; border-radius: 27px; background: var(--demo-surface); overflow: hidden; justify-self: center; padding: 12px 15px 26px; box-shadow: 0 5px 15px #0001; }
.demo-phone-status { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 600; margin-bottom: 26px; }
.demo-phone h4 { font-size: 18px; }.demo-phone .demo-button { font-size: 11px; min-height: 37px; padding: 9px; }.demo-phone .demo-field input { min-height: 37px; padding: 8px; font-size: 11px; }
.demo-home-indicator { position: absolute; width: 74px; height: 4px; background: var(--demo-ink); border-radius: 5px; bottom: 9px; left: calc(50% - 37px); }
.demo-form { display: grid; gap: 14px; min-width: 0; }.demo-form h4 { margin: 0 0 8px; }
.demo-face-id { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 15px; background: var(--demo-soft); color: var(--demo-accent); }.demo-face-id .demo-glyph { height: 40px !important; width: 40px !important; }
.demo-cart { display: grid; gap: 18px; }.demo-cart h4 { margin-bottom: 0; }
.demo-cart-item { display: flex; align-items: start; gap: 12px; border-block: 1px solid var(--demo-border); padding: 16px 0; }
.demo-cart-item > div:last-child { display: grid; gap: 7px; flex: 1; min-width: 0; }
.demo-product-thumb { width: 62px; height: 72px; border-radius: 8px; display: grid; place-items: center; background: var(--demo-soft); color: var(--demo-accent); flex-shrink: 0; }
.demo-quantity { display: flex; align-items: center; gap: 8px; }.demo-quantity .icon-button { min-width: 27px; min-height: 27px; padding: 3px; }.demo-quantity output { min-width: 18px; text-align: center; }
.demo-cart-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-empty-cart { display: grid; gap: 20px; text-align: center; justify-items: center; padding: 20px 0; }.demo-empty-cart > .demo-glyph { width: 44px !important; height: 44px !important; }
.demo-website { border: 1px solid var(--demo-border); border-radius: 10px; background: var(--demo-surface); overflow: hidden; min-width: 0; }
.demo-site-header { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--demo-border); font-size: 10px; }.demo-site-header b { margin-inline-end: auto; }
.demo-site-content { padding: 18px; min-width: 0; display: grid; gap: 14px; }
.demo-site-content h4 { margin: 0; }.demo-site-content .demo-button { font-size: 10px; padding: 7px 9px; min-height: 34px; }
.demo-pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.demo-pricing-card { display: grid; gap: 12px; padding: 10px 8px; border: 1px solid var(--demo-border); border-radius: 9px; font-size: 10px; }.demo-pricing-card.recommended { border-color: var(--demo-accent); background: var(--demo-soft); }.demo-pricing-card > strong { font-size: 21px; }.demo-pricing-card ul { padding: 0 0 0 12px; margin: 0; font-size: 9px; line-height: 1.9; }
.demo-pricing-card.selected { box-shadow: 0 0 0 2px var(--demo-accent); }
.demo-contact-options { display: grid; gap: 8px; }
.demo-not-found { text-align: center; padding: 12px 0; display: grid; gap: 13px; justify-items: center; }.demo-not-found > strong { font-size: 54px; color: var(--demo-accent); letter-spacing: -4px; }
.demo-table { border-collapse: collapse; width: 100%; font-size: 11px; }.demo-table th { text-align: start; color: var(--demo-muted); font-weight: 500; }.demo-table th,.demo-table td { padding: 8px 5px; border-bottom: 1px solid var(--demo-border); }
.demo-billing-card { border: 1px solid var(--demo-border); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }.demo-billing-card > strong { font-size: 28px; }
.demo-provider-buttons { display: flex; gap: 8px; }.demo-provider-buttons > button { flex: 1; }
.demo-search-list article { padding: 12px 0; border-bottom: 1px solid var(--demo-border); display: grid; gap: 12px; }
.demo-team-grid,.demo-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.demo-team-grid > div { display: grid; gap: 8px; justify-items: center; text-align: center; }.demo-team-grid strong { font-size: 10px; }.demo-team-grid small { font-size: 9px; }
.demo-jobs article { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--demo-border); }.demo-jobs small { grid-column: 1; }.demo-jobs button { grid-column: 2; grid-row: 1 / 3; }
.demo-author { display: flex; align-items: center; gap: 9px; margin-top: 12px; }.demo-author .demo-avatar { --avatar-size: 28px; }.demo-article .demo-lines { margin: 15px 0; }
.demo-article-grid > article { display: grid; gap: 10px; }.demo-article-grid b { font-size: 11px; }.demo-editorial-art { height: 65px; border-radius: 7px; background: var(--demo-soft); display: grid; place-items: center; color: var(--demo-accent); }
/* Shared checklist controls predate these examples and have global font/color
   rules. Scope the native control cascade without changing those outer controls. */
body[data-app="checklist"] .native-example .demo-button { color: var(--demo-button-color,var(--demo-filled-ink,#fff)) !important; font-family: inherit; font-size: var(--demo-button-font,12px) !important; font-weight: 600; }
[data-theme="dark"] .native-example { --demo-filled-ink: #191b23; }
.native-example :is(.demo-button.outline,.demo-button.soft,.demo-button.text-button) { --demo-button-color: var(--demo-accent); }
.native-example .demo-button.small { --demo-button-font: 11px; }
.native-example .demo-button.large { --demo-button-font: 15px; }
.native-example .demo-input-icon .icon-button { --demo-button-color: var(--demo-muted); }
.native-example .demo-banner :is(.icon-button,.outline) { --demo-button-font: 10px; }
body[data-app="checklist"] .native-example .demo-banner .demo-button { color: inherit !important; }
.native-example .demo-toast .text-button { --demo-button-color: #b990ff; --demo-button-font: 11px; }
.native-example .demo-toast .icon-button { --demo-button-color: #fff; }
.native-example .demo-overlay-preview .demo-button { --demo-button-font: 10px; }
.native-example .demo-dialog header .icon-button { --demo-button-color: var(--demo-muted); }
.native-example :is(.demo-icon-style-grid,.demo-icon-size) .icon-button { --demo-button-color: var(--demo-accent); }
.native-example :is(.demo-carousel-controls,.demo-tooltip-trigger) .icon-button { --demo-button-color: var(--demo-ink); }
.native-example .demo-phone .demo-button { --demo-button-font: 11px; }
.native-example .demo-site-content .demo-button { --demo-button-font: 10px; }
body[data-app="checklist"] .native-example :is(input,textarea,select) { font-family: inherit; font-size: 12px; font-weight: 400; }
body[data-app="checklist"] .native-example .demo-tabs button { color: var(--demo-muted); font-size: 11px; }
body[data-app="checklist"] .native-example .demo-tabs button[aria-selected="true"] { color: var(--demo-ink); }
body[data-app="checklist"] .native-example .demo-notification { color: var(--demo-accent); }
body[data-app="checklist"] .native-example .demo-dialog { margin: auto; padding: 22px; background: var(--demo-surface); color: var(--demo-ink); border: 1px solid var(--demo-border); box-shadow: 0 18px 80px #0004; }
body[data-app="checklist"] .native-example .demo-dialog::backdrop { background: #14131c8c; }
body[data-app="checklist"] .native-example .demo-dialog-drawer { inset: 0 0 0 auto; margin: 0; padding: 22px; width: min(400px,calc(100vw - 28px)); height: 100dvh; max-height: 100dvh; border-radius: 0; display: none; }
body[data-app="checklist"] .native-example .demo-dialog-drawer[open] { display: flex; flex-direction: column; }
body[data-app="checklist"] .native-example .demo-dialog-drawer[data-side="left"] { inset: 0 auto 0 0; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-dot { 50% { transform: translateY(-5px); } }
@keyframes demo-shimmer { to { transform: translateX(100%); } }
@keyframes demo-countdown { to { transform: scaleX(0); } }
@keyframes demo-slide { from { transform: translateX(12px); } to { transform: translateX(0); } }
@media (max-width: 1050px) { .variant-card { grid-template-columns: 1fr; }.native-example { width: 100%; }.component-example { min-height: 160px; } }
@media (max-width: 600px) {
  .variants-panel, .resources-panel { padding: 24px; }.variant-card { padding: 16px; gap: 16px; }.native-example { padding: 18px; }
  .demo-two-cols { gap: 9px; }.demo-two-cols .demo-accordion-item summary { font-size: 10px; padding: 9px; gap: 6px; }.demo-two-cols .demo-accordion-content { font-size: 10px; padding: 0 9px 10px; }
  .demo-control-matrix { gap: 16px 9px; }.demo-card-grid { gap: 8px; }.demo-example-card { min-height: 85px; padding: 9px 4px; }
  .demo-site-content { padding: 12px; }.demo-pricing-grid { grid-template-columns: 1fr; }.demo-pricing-card { grid-template-columns: 1fr auto; align-items: center; }.demo-pricing-card ul { grid-column: 1; }.demo-pricing-card button { grid-column: 2; grid-row: 2; }
  .demo-dialog footer { flex-wrap: wrap; }.demo-dialog footer > button { flex: 1; }.demo-banner { padding: 10px; gap: 7px; }.demo-banner > .demo-glyph { width: 16px !important; height: 16px !important; }
  .demo-article-grid { grid-template-columns: 1fr; }.demo-article-grid article { grid-template-columns: 70px 1fr; }.demo-editorial-art { grid-row: 1 / 4; }.demo-article-grid .demo-lines { grid-column: 2; }.demo-article-grid button { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .component-example *, .component-example *::before, .component-example *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .demo-dialog { display: none !important; }.component-example * { animation: none !important; }.native-example { break-inside: avoid; } }
