
/* Mottion: component styles. shadcn/ui (new-york) class lists, translated to plain CSS over the tokens. */

*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--border); }
body { margin: 0; font-family: var(--font-sans); background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; }

/* ---------- Button ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  flex-shrink: 0; white-space: nowrap; border-radius: var(--radius-md); border: 0;
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500;
  height: 36px; padding: 8px var(--space-4); cursor: pointer; outline: none;
  transition: background-color .15s, color .15s, box-shadow .15s, border-color .15s;
}
.cc-btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.cc-btn:disabled { pointer-events: none; opacity: .5; }
.cc-btn:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }

.cc-btn--default { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-xs); }
.cc-btn--default:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }

.cc-btn--destructive { background: var(--destructive); color: var(--destructive-foreground); box-shadow: var(--shadow-xs); }
.cc-btn--destructive:hover { background: color-mix(in oklab, var(--destructive) 90%, transparent); }
.cc-btn--destructive:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent); }
[data-theme="dark"] .cc-btn--destructive { background: color-mix(in oklab, var(--destructive) 60%, transparent); }
[data-theme="dark"] .cc-btn--destructive:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent); }

.cc-btn--outline { border: 1px solid var(--border); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.cc-btn--outline:hover { background: var(--accent); color: var(--accent-foreground); }
[data-theme="dark"] .cc-btn--outline { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
[data-theme="dark"] .cc-btn--outline:hover { background: color-mix(in oklab, var(--input) 50%, transparent); }

.cc-btn--secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: var(--shadow-xs); }
.cc-btn--secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, transparent); }

.cc-btn--ghost { background: transparent; color: var(--foreground); }
.cc-btn--ghost:hover { background: var(--accent); color: var(--accent-foreground); }
[data-theme="dark"] .cc-btn--ghost:hover { background: color-mix(in oklab, var(--accent) 50%, transparent); }

.cc-btn--link { background: transparent; color: var(--brand-text); text-underline-offset: 4px; }
.cc-btn--link:hover { text-decoration: underline; }

.cc-btn--size-default:has(> svg) { padding-left: var(--space-3); padding-right: var(--space-3); }
.cc-btn--size-sm { height: 32px; gap: 6px; padding: 0 var(--space-3); }
.cc-btn--size-sm:has(> svg) { padding-left: 10px; padding-right: 10px; }
.cc-btn--size-lg { height: 40px; padding: 0 var(--space-6); }
.cc-btn--size-lg:has(> svg) { padding-left: var(--space-4); padding-right: var(--space-4); }
.cc-btn--size-icon { width: 36px; height: 36px; padding: 0; }

/* ---------- Badge ---------- */
.cc-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  width: fit-content; flex-shrink: 0; overflow: hidden; white-space: nowrap;
  border-radius: var(--radius-md); border: 1px solid transparent; padding: 2px var(--space-2);
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.cc-badge svg { width: 12px; height: 12px; pointer-events: none; }
.cc-badge--default { background: var(--primary); color: var(--primary-foreground); }
.cc-badge--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.cc-badge--destructive { background: var(--destructive); color: var(--destructive-foreground); }
[data-theme="dark"] .cc-badge--destructive { background: color-mix(in oklab, var(--destructive) 60%, transparent); }
.cc-badge--outline { border-color: var(--border); color: var(--foreground); }

/* ---------- Input / Textarea ---------- */
.cc-input, .cc-textarea {
  display: flex; width: 100%; min-width: 0; border-radius: var(--radius-md);
  border: 1px solid var(--input); background: transparent; color: var(--foreground);
  font-family: inherit; font-size: 14px; line-height: 20px; box-shadow: var(--shadow-xs);
  outline: none; transition: color .15s, box-shadow .15s, border-color .15s;
}
.cc-input { height: 36px; padding: var(--space-1) var(--space-3); }
.cc-textarea { min-height: 64px; padding: var(--space-2) var(--space-3); resize: vertical; field-sizing: content; }
.cc-input::placeholder, .cc-textarea::placeholder { color: var(--muted-foreground); }
[data-theme="dark"] .cc-input, [data-theme="dark"] .cc-textarea { background: color-mix(in oklab, var(--input) 30%, transparent); }
.cc-input:focus-visible, .cc-textarea:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-input[aria-invalid="true"], .cc-textarea[aria-invalid="true"] { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent); }
[data-theme="dark"] .cc-input[aria-invalid="true"], [data-theme="dark"] .cc-textarea[aria-invalid="true"] { box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent); }
.cc-input:disabled, .cc-textarea:disabled { cursor: not-allowed; opacity: .5; }

/* ---------- Label ---------- */
.cc-label { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 1; font-weight: 500; user-select: none; color: var(--foreground); }
.cc-label:has(+ :disabled), [data-disabled="true"] > .cc-label { opacity: .5; cursor: not-allowed; }

/* ---------- Checkbox ---------- */
.cc-checkbox {
  display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; padding: 0;
  border-radius: 4px; border: 1px solid var(--input); background: transparent; color: var(--primary-foreground);
  box-shadow: var(--shadow-xs); cursor: pointer; outline: none; transition: box-shadow .15s;
}
[data-theme="dark"] .cc-checkbox { background: color-mix(in oklab, var(--input) 30%, transparent); }
.cc-checkbox[data-state="checked"] { background: var(--primary); border-color: var(--primary); }
.cc-checkbox svg { width: 14px; height: 14px; }
.cc-checkbox__indicator { display: grid; place-items: center; }
.cc-checkbox:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-checkbox:disabled { cursor: not-allowed; opacity: .5; }

/* ---------- Switch ---------- */
.cc-switch {
  display: inline-flex; align-items: center; flex-shrink: 0; width: 32px; height: 1.15rem; padding: 0;
  border-radius: var(--radius-full); border: 1px solid transparent; background: var(--input);
  box-shadow: var(--shadow-xs); cursor: pointer; outline: none; transition: background-color .15s, box-shadow .15s;
}
.cc-switch[data-state="checked"] { background: var(--primary); }
[data-theme="dark"] .cc-switch[data-state="unchecked"] { background: color-mix(in oklab, var(--input) 80%, transparent); }
.cc-switch__thumb { display: block; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--background); pointer-events: none; transform: translateX(0); transition: transform .15s; }
.cc-switch[data-state="checked"] .cc-switch__thumb { transform: translateX(calc(100% - 2px)); }
[data-theme="dark"] .cc-switch[data-state="unchecked"] .cc-switch__thumb { background: var(--foreground); }
[data-theme="dark"] .cc-switch[data-state="checked"] .cc-switch__thumb { background: var(--primary-foreground); }
.cc-switch:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-switch:disabled { cursor: not-allowed; opacity: .5; }

/* ---------- Card ---------- */
.cc-card { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) 0; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-sm); }
.cc-card__header { display: grid; grid-auto-rows: min-content; grid-template-rows: auto auto; align-items: start; gap: 6px; padding: 0 var(--space-6); }
.cc-card__header:has([data-slot="card-action"]) { grid-template-columns: 1fr auto; }
.cc-card__title { line-height: 1; font-weight: 600; }
.cc-card__description { color: var(--muted-foreground); font-size: 14px; line-height: 20px; }
.cc-card__action { grid-column-start: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; }
.cc-card__content { padding: 0 var(--space-6); }
.cc-card__footer { display: flex; align-items: center; padding: 0 var(--space-6); }

/* ---------- Alert ---------- */
.cc-alert { position: relative; display: grid; grid-template-columns: 0 1fr; align-items: start; gap: 2px 0; width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); color: var(--card-foreground); font-size: 14px; line-height: 20px; }
.cc-alert:has(> svg) { grid-template-columns: 16px 1fr; column-gap: var(--space-3); }
.cc-alert > svg { width: 16px; height: 16px; transform: translateY(2px); color: currentColor; }
.cc-alert--destructive { color: var(--destructive); }
.cc-alert--destructive .cc-alert__description { color: color-mix(in oklab, var(--destructive) 90%, transparent); }
.cc-alert__title { grid-column-start: 2; min-height: 16px; font-weight: 500; letter-spacing: -0.025em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.cc-alert__description { grid-column-start: 2; display: grid; justify-items: start; gap: var(--space-1); font-size: 14px; color: var(--muted-foreground); }
.cc-alert__description p { margin: 0; line-height: 1.625; }

/* ---------- Tabs ---------- */
.cc-tabs { display: flex; flex-direction: column; gap: var(--space-2); }
.cc-tabs__list { display: inline-flex; align-items: center; justify-content: center; width: fit-content; height: 36px; padding: 3px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); }
.cc-tabs__trigger {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: calc(100% - 1px);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; background: transparent;
  color: var(--foreground); font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  cursor: pointer; outline: none; transition: color .15s, box-shadow .15s;
}
.cc-tabs__trigger[data-state="active"] { background: var(--background); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .cc-tabs__trigger { color: var(--muted-foreground); }
[data-theme="dark"] .cc-tabs__trigger[data-state="active"] { color: var(--foreground); border-color: var(--input); background: color-mix(in oklab, var(--input) 30%, transparent); }
.cc-tabs__trigger:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-tabs__trigger:disabled { pointer-events: none; opacity: .5; }
.cc-tabs__trigger svg { width: 16px; height: 16px; flex-shrink: 0; }
.cc-tabs__content { flex: 1; outline: none; }

/* ---------- Separator ---------- */
.cc-separator { flex-shrink: 0; background: var(--border); }
.cc-separator[data-orientation="horizontal"] { height: 1px; width: 100%; }
.cc-separator[data-orientation="vertical"] { width: 1px; height: 100%; align-self: stretch; }

/* ---------- Avatar ---------- */
.cc-avatar { position: relative; display: flex; width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; border-radius: var(--radius-full); }
.cc-avatar__image { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.cc-avatar__fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--muted); }

/* ---------- Skeleton ---------- */
.cc-skeleton { border-radius: var(--radius-md); background: var(--accent); animation: cc-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes cc-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .cc-skeleton { animation: none; } }

/* ---------- Progress ---------- */
.cc-progress { position: relative; width: 100%; height: 8px; overflow: hidden; border-radius: var(--radius-full); background: color-mix(in oklab, var(--primary) 20%, transparent); }
.cc-progress__indicator { width: 100%; height: 100%; background: var(--primary); transition: transform .3s; }

/* ---------- Table ---------- */
.cc-table-container { position: relative; width: 100%; overflow-x: auto; }
.cc-table { width: 100%; caption-side: bottom; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.cc-table__header tr { border-bottom: 1px solid var(--border); }
.cc-table__body tr:last-child { border-bottom: 0; }
.cc-table__footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 50%, transparent); font-weight: 500; }
.cc-table__footer > tr:last-child { border-bottom: 0; }
.cc-table__row { border-bottom: 1px solid var(--border); transition: background-color .15s; }
.cc-table__row:hover { background: color-mix(in oklab, var(--muted) 50%, transparent); }
.cc-table__head { height: 40px; padding: 0 var(--space-2); text-align: left; vertical-align: middle; font-weight: 500; white-space: nowrap; color: var(--foreground); }
.cc-table__cell { padding: var(--space-2); vertical-align: middle; white-space: nowrap; }
.cc-table__caption { margin-top: var(--space-4); color: var(--muted-foreground); font-size: 14px; }

/* ---------- Layers: overlay, dialog, sheet ---------- */
@keyframes cc-fade-in { from { opacity: 0; } }
@keyframes cc-dialog-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.95); } }
@keyframes cc-slide-from-right { from { transform: translateX(100%); } }
@keyframes cc-slide-from-left { from { transform: translateX(-100%); } }
@keyframes cc-slide-from-top { from { transform: translateY(-100%); } }
@keyframes cc-slide-from-bottom { from { transform: translateY(100%); } }
@keyframes cc-toast-in { from { opacity: 0; transform: translateY(100%); } }

.cc-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.5); animation: cc-fade-in .15s; }

.cc-dialog__content {
  position: fixed; top: 50%; left: 50%; z-index: 50; display: grid; gap: var(--space-4);
  width: 100%; max-width: calc(100% - 2rem); transform: translate(-50%, -50%); padding: var(--space-6);
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--background); color: var(--foreground);
  box-shadow: var(--shadow-lg); outline: none; animation: cc-dialog-in .2s;
}
@media (min-width: 640px) { .cc-dialog__content { max-width: 32rem; } }
.cc-dialog__close {
  position: absolute; top: var(--space-4); right: var(--space-4); display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 2px; background: transparent; color: inherit; opacity: .7; cursor: pointer; outline: none; transition: opacity .15s;
}
.cc-dialog__close:hover { opacity: 1; }
.cc-dialog__close:focus-visible { opacity: 1; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }
.cc-dialog__close svg { width: 16px; height: 16px; }
.cc-dialog__header { display: flex; flex-direction: column; gap: var(--space-2); text-align: center; }
.cc-dialog__footer { display: flex; flex-direction: column-reverse; gap: var(--space-2); }
@media (min-width: 640px) {
  .cc-dialog__header { text-align: left; }
  .cc-dialog__footer { flex-direction: row; justify-content: flex-end; }
}
.cc-dialog__title { margin: 0; font-size: 18px; line-height: 1; font-weight: 600; }
.cc-dialog__description { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 20px; }

.cc-sheet__content { position: fixed; z-index: 50; display: flex; flex-direction: column; gap: var(--space-4); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lg); outline: none; }
.cc-sheet--right { top: 0; bottom: 0; right: 0; width: 75%; border-left: 1px solid var(--border); animation: cc-slide-from-right .3s ease-in-out; }
.cc-sheet--left { top: 0; bottom: 0; left: 0; width: 75%; border-right: 1px solid var(--border); animation: cc-slide-from-left .3s ease-in-out; }
.cc-sheet--top { top: 0; left: 0; right: 0; border-bottom: 1px solid var(--border); animation: cc-slide-from-top .3s ease-in-out; }
.cc-sheet--bottom { bottom: 0; left: 0; right: 0; border-top: 1px solid var(--border); animation: cc-slide-from-bottom .3s ease-in-out; }
@media (min-width: 640px) { .cc-sheet--right, .cc-sheet--left { max-width: 24rem; } }
.cc-sheet__header { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); }
.cc-sheet__footer { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; padding: var(--space-4); }
.cc-sheet__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.cc-sheet__description { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 20px; }

/* ---------- Anchored layers: popover, tooltip, menu, select ---------- */
.cc-anchor { position: relative; display: inline-block; }
.cc-float { position: absolute; z-index: 50; --cc-offset: 4px; animation: cc-fade-in .15s; }
.cc-float[data-side="bottom"] { top: calc(100% + var(--cc-offset)); }
.cc-float[data-side="top"] { bottom: calc(100% + var(--cc-offset)); }
.cc-float[data-side="bottom"][data-align="start"], .cc-float[data-side="top"][data-align="start"] { left: 0; }
.cc-float[data-side="bottom"][data-align="end"], .cc-float[data-side="top"][data-align="end"] { right: 0; }
.cc-float[data-side="bottom"][data-align="center"], .cc-float[data-side="top"][data-align="center"] { left: 50%; transform: translateX(-50%); }
.cc-float[data-side="right"] { left: calc(100% + var(--cc-offset)); top: 50%; transform: translateY(-50%); }
.cc-float[data-side="left"] { right: calc(100% + var(--cc-offset)); top: 50%; transform: translateY(-50%); }

.cc-popover__content { width: 288px; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-md); outline: none; }

.cc-float.cc-tooltip__content { --cc-offset: 8px; }
.cc-tooltip__content { width: max-content; max-width: 20rem; padding: 6px var(--space-3); border-radius: var(--radius-md); background: var(--foreground); color: var(--background); font-size: 12px; line-height: 16px; text-wrap: balance; }
.cc-tooltip__arrow { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: var(--foreground); transform: rotate(45deg); }
[data-side="top"] > .cc-tooltip__arrow { bottom: -4px; left: calc(50% - 5px); }
[data-side="bottom"] > .cc-tooltip__arrow { top: -4px; left: calc(50% - 5px); }
[data-side="right"] > .cc-tooltip__arrow { left: -4px; top: calc(50% - 5px); }
[data-side="left"] > .cc-tooltip__arrow { right: -4px; top: calc(50% - 5px); }

.cc-menu { min-width: 8rem; overflow: hidden; padding: var(--space-1); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-md); outline: none; }
.cc-menu__item { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-2); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; cursor: default; user-select: none; outline: none; }
.cc-menu__item:focus { background: var(--accent); color: var(--accent-foreground); }
.cc-menu__item[data-variant="destructive"] { color: var(--destructive); }
.cc-menu__item[data-variant="destructive"]:focus { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }
[data-theme="dark"] .cc-menu__item[data-variant="destructive"]:focus { background: color-mix(in oklab, var(--destructive) 20%, transparent); }
.cc-menu__item[data-disabled] { pointer-events: none; opacity: .5; }
.cc-menu__item[data-inset="true"], .cc-menu__item--check { padding-left: var(--space-8); }
.cc-menu__item svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; color: var(--muted-foreground); }
.cc-menu__item[data-variant="destructive"] svg { color: var(--destructive); }
.cc-menu__indicator, .cc-select__indicator { position: absolute; display: flex; width: 14px; height: 14px; align-items: center; justify-content: center; pointer-events: none; }
.cc-menu__indicator { left: var(--space-2); }
.cc-select__indicator { right: var(--space-2); }
.cc-menu__item .cc-menu__indicator svg, .cc-menu__item .cc-select__indicator svg { color: currentColor; }
.cc-menu__label { padding: 6px var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; }
.cc-menu__label[data-inset="true"] { padding-left: var(--space-8); }
.cc-menu__separator { height: 1px; margin: var(--space-1) calc(-1 * var(--space-1)); background: var(--border); }
.cc-menu__shortcut { margin-left: auto; font-size: 12px; line-height: 16px; letter-spacing: .1em; color: var(--muted-foreground); }

.cc-select__trigger {
  display: flex; width: fit-content; height: 36px; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--input); background: transparent;
  color: var(--foreground); font-family: inherit; font-size: 14px; line-height: 20px; white-space: nowrap; box-shadow: var(--shadow-xs);
  cursor: pointer; outline: none; transition: color .15s, box-shadow .15s, border-color .15s;
}
.cc-select__trigger[data-size="sm"] { height: 32px; }
.cc-select__trigger[data-placeholder] { color: var(--muted-foreground); }
[data-theme="dark"] .cc-select__trigger { background: color-mix(in oklab, var(--input) 30%, transparent); }
[data-theme="dark"] .cc-select__trigger:hover { background: color-mix(in oklab, var(--input) 50%, transparent); }
.cc-select__trigger:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-select__trigger:disabled { cursor: not-allowed; opacity: .5; }
.cc-select__chevron { width: 16px; height: 16px; flex-shrink: 0; opacity: .5; pointer-events: none; }
.cc-select__value { display: flex; align-items: center; gap: var(--space-2); overflow: hidden; text-overflow: ellipsis; }
.cc-select__content { min-width: max(8rem, 100%); max-height: 384px; overflow-y: auto; }
.cc-select__content[hidden] { display: none; }
.cc-select__item { width: 100%; padding-right: var(--space-8); }
.cc-select__label { padding: 6px var(--space-2); font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* ---------- Radio group ---------- */
.cc-radio-group { display: grid; gap: var(--space-3); }
.cc-radio {
  position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; padding: 0;
  border-radius: var(--radius-full); border: 1px solid var(--input); background: transparent; box-shadow: var(--shadow-xs);
  cursor: pointer; outline: none; transition: box-shadow .15s;
}
[data-theme="dark"] .cc-radio { background: color-mix(in oklab, var(--input) 30%, transparent); }
.cc-radio:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-radio:disabled { cursor: not-allowed; opacity: .5; }
.cc-radio__indicator { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--primary); }

/* ---------- Slider ---------- */
.cc-slider { position: relative; display: flex; width: 100%; height: 16px; align-items: center; touch-action: none; user-select: none; }
.cc-slider[data-disabled] { opacity: .5; pointer-events: none; }
.cc-slider__track { position: relative; flex-grow: 1; width: 100%; height: 6px; overflow: hidden; border-radius: var(--radius-full); background: var(--muted); }
.cc-slider__range { position: absolute; height: 100%; background: var(--primary); }
.cc-slider__thumb {
  position: absolute; top: 50%; display: block; width: 16px; height: 16px; flex-shrink: 0; transform: translate(-50%, -50%);
  border-radius: var(--radius-full); border: 1px solid var(--primary); background: var(--background); box-shadow: var(--shadow-sm);
  cursor: grab; outline: none; transition: box-shadow .15s;
}
.cc-slider__thumb:hover, .cc-slider__thumb:focus-visible { box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 50%, transparent); }

/* ---------- Accordion ---------- */
.cc-accordion__item { border-bottom: 1px solid var(--border); }
.cc-accordion__item:last-child { border-bottom: 0; }
.cc-accordion__header { display: flex; margin: 0; font: inherit; }
.cc-accordion__trigger {
  display: flex; flex: 1; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground); text-align: left;
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; outline: none; transition: box-shadow .15s;
}
.cc-accordion__trigger:hover { text-decoration: underline; }
.cc-accordion__trigger:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-accordion__chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted-foreground); pointer-events: none; transform: translateY(2px); transition: transform .2s; }
.cc-accordion__trigger[data-state="open"] .cc-accordion__chevron { transform: translateY(2px) rotate(180deg); }
.cc-accordion__content { overflow: hidden; font-size: 14px; line-height: 20px; }
.cc-accordion__content-inner { padding-bottom: var(--space-4); }

/* ---------- Command ---------- */
.cc-command { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius-md); background: var(--popover); color: var(--popover-foreground); }
.cc-command__input-wrapper { display: flex; height: 36px; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); border-bottom: 1px solid var(--border); }
.cc-command__input-wrapper svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .5; }
.cc-command__input { display: flex; width: 100%; height: 40px; padding: var(--space-3) 0; border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font-family: inherit; font-size: 14px; outline: none; }
.cc-command__input::placeholder { color: var(--muted-foreground); }
.cc-command__list { max-height: 300px; overflow-x: hidden; overflow-y: auto; scroll-padding-block: var(--space-1); }
.cc-command__empty { padding: var(--space-6) 0; text-align: center; font-size: 14px; }
.cc-command__list:has([data-slot="command-item"]) .cc-command__empty { display: none; }
.cc-command__group { overflow: hidden; padding: var(--space-1); color: var(--foreground); }
.cc-command__group:not(:has([data-slot="command-item"])) { display: none; }
.cc-command__group-heading { padding: 6px var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.cc-command__item { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-2); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; cursor: default; user-select: none; outline: none; }
.cc-command__item[data-selected="true"] { background: var(--accent); color: var(--accent-foreground); }
.cc-command__item[data-disabled="true"] { pointer-events: none; opacity: .5; }
.cc-command__item svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; color: var(--muted-foreground); }
.cc-command__separator { height: 1px; margin: 0 calc(-1 * var(--space-1)); background: var(--border); }

/* ---------- Calendar ---------- */
.cc-calendar { --cell-size: 32px; position: relative; display: inline-block; padding: var(--space-3); background: var(--background); color: var(--foreground); font-size: 14px; }
.cc-calendar__caption { position: relative; display: flex; height: var(--cell-size); align-items: center; justify-content: center; padding: 0 var(--cell-size); }
.cc-calendar__label { font-size: 14px; font-weight: 500; user-select: none; }
.cc-btn.cc-calendar__nav { position: absolute; top: 0; width: var(--cell-size); height: var(--cell-size); padding: 0; }
.cc-calendar__nav--prev { left: 0; }
.cc-calendar__nav--next { right: 0; }
.cc-calendar__grid { margin-top: var(--space-4); border-collapse: collapse; }
.cc-calendar__weekday { width: var(--cell-size); padding: 0; font-size: 0.8rem; font-weight: 400; color: var(--muted-foreground); text-align: center; user-select: none; }
.cc-calendar__cell { padding: var(--space-2) 0 0; text-align: center; }
.cc-calendar__day {
  position: relative; display: flex; width: var(--cell-size); height: var(--cell-size); align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground);
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1; cursor: pointer; outline: none;
}
.cc-calendar__day:hover, .cc-calendar__day[data-today] { background: var(--accent); color: var(--accent-foreground); }
.cc-calendar__day[data-outside] { color: var(--muted-foreground); }
.cc-calendar__day[data-selected] { background: var(--primary); color: var(--primary-foreground); }
.cc-calendar__day:focus-visible { z-index: 10; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-calendar__day:disabled { pointer-events: none; opacity: .5; color: var(--muted-foreground); }

/* ---------- Sonner (toasts) ---------- */
.cc-toaster { position: fixed; z-index: 100; display: flex; flex-direction: column; gap: 14px; width: 356px; max-width: calc(100% - 32px); margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); }
.cc-toaster[data-y="bottom"] { bottom: var(--space-6); }
.cc-toaster[data-y="top"] { top: var(--space-6); }
.cc-toaster[data-x="right"] { right: var(--space-6); }
.cc-toaster[data-x="left"] { left: var(--space-6); }
.cc-toaster[data-x="center"] { left: 50%; transform: translateX(-50%); }
.cc-toast {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: var(--space-4);
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground);
  box-shadow: var(--shadow-md); font-size: 13px; animation: cc-toast-in .4s ease;
}
.cc-toast__icon { display: flex; width: 16px; height: 16px; flex-shrink: 0; margin-right: 4px; }
.cc-toast__icon svg { width: 16px; height: 16px; }
.cc-toast__content { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.cc-toast__title { font-weight: 500; line-height: 1.5; }
.cc-toast__description { line-height: 1.4; color: var(--muted-foreground); }
.cc-toast__action {
  flex-shrink: 0; margin-left: auto; height: 24px; padding: 0 var(--space-2); border: 0; border-radius: 4px;
  background: var(--primary); color: var(--primary-foreground); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; outline: none;
}
.cc-toast__action:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }

/* ---------- Sidebar ---------- */
.cc-sidebar-wrapper { display: flex; width: 100%; min-height: 100svh; }
.cc-sidebar {
  display: flex; flex-direction: column; flex-shrink: 0; width: var(--sidebar-width); overflow: hidden;
  background: var(--sidebar); color: var(--sidebar-foreground); border-right: 1px solid var(--sidebar-border); transition: width .2s linear;
}
.cc-sidebar[data-side="right"] { order: 2; border-right: 0; border-left: 1px solid var(--sidebar-border); }
.cc-sidebar[data-collapsible="offcanvas"] { width: 0; border-width: 0; }
.cc-sidebar[data-collapsible="icon"] { width: var(--sidebar-width-icon); }
.cc-sidebar__header, .cc-sidebar__footer { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); }
.cc-sidebar__content { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); min-height: 0; overflow: auto; }
.cc-sidebar[data-collapsible="icon"] .cc-sidebar__content { overflow: hidden; }
.cc-sidebar__separator { height: 1px; width: auto; margin: 0 var(--space-2); background: var(--sidebar-border); }
.cc-sidebar__group { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: var(--space-2); }
.cc-sidebar__group-label {
  display: flex; height: 32px; flex-shrink: 0; align-items: center; padding: 0 var(--space-2); border-radius: var(--radius-md);
  font-size: 12px; line-height: 16px; font-weight: 500; color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
  transition: margin .2s linear, opacity .2s linear; outline: none;
}
.cc-sidebar[data-collapsible="icon"] .cc-sidebar__group-label { margin-top: -32px; opacity: 0; }
.cc-sidebar__group-content { width: 100%; font-size: 14px; }
.cc-sidebar__menu { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; min-width: 0; margin: 0; padding: 0; list-style: none; }
.cc-sidebar__menu-item { position: relative; }
.cc-sidebar__menu-button {
  display: flex; width: 100%; height: 32px; align-items: center; gap: var(--space-2); overflow: hidden; padding: var(--space-2);
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--sidebar-foreground); text-align: left; text-decoration: none;
  font-family: inherit; font-size: 14px; line-height: 20px; cursor: pointer; outline: none; transition: width .2s, height .2s, padding .2s;
}
.cc-sidebar__menu-button:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.cc-sidebar__menu-button:focus-visible { box-shadow: 0 0 0 2px var(--sidebar-ring); }
.cc-sidebar__menu-button[data-active="true"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 500; }
.cc-sidebar__menu-button[data-size="sm"] { height: 28px; font-size: 12px; }
.cc-sidebar__menu-button[data-size="lg"] { height: 48px; }
.cc-sidebar__menu-button > svg { width: 16px; height: 16px; flex-shrink: 0; }
.cc-sidebar__menu-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-sidebar__menu-item:has(.cc-sidebar__menu-badge) > .cc-sidebar__menu-button { padding-right: var(--space-8); }
.cc-sidebar[data-collapsible="icon"] .cc-sidebar__menu-button { width: 32px; height: 32px; padding: var(--space-2); }
.cc-sidebar[data-collapsible="icon"] .cc-sidebar__menu-button[data-size="lg"] { padding: 0; }
.cc-sidebar__menu-badge {
  position: absolute; top: 6px; right: var(--space-1); display: flex; height: 20px; min-width: 20px; align-items: center; justify-content: center;
  padding: 0 var(--space-1); border-radius: var(--radius-md); color: var(--sidebar-foreground); font-size: 12px; font-weight: 500;
  font-variant-numeric: tabular-nums; pointer-events: none; user-select: none;
}
.cc-sidebar[data-collapsible="icon"] .cc-sidebar__menu-badge { display: none; }
.cc-btn.cc-sidebar__trigger { width: 28px; height: 28px; padding: 0; margin-left: calc(-1 * var(--space-1)); }
.cc-sidebar__inset { position: relative; display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; background: var(--background); }

@media (prefers-reduced-motion: reduce) {
  .cc-overlay, .cc-dialog__content, .cc-sheet__content, .cc-float, .cc-toast { animation: none; }
  .cc-sidebar, .cc-sidebar__menu-button, .cc-accordion__chevron, .cc-switch__thumb, .cc-progress__indicator { transition: none; }
}

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

/* Breadcrumb */
.cc-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; overflow-wrap: break-word; color: var(--muted-foreground); }
@media (min-width: 640px) { .cc-breadcrumb__list { gap: 10px; } }
.cc-breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; }
.cc-breadcrumb__link { color: inherit; text-decoration: none; transition: color .15s; }
.cc-breadcrumb__link:hover { color: var(--foreground); }
.cc-breadcrumb__page { font-weight: 400; color: var(--foreground); }
.cc-breadcrumb__separator svg { display: block; width: 14px; height: 14px; }
.cc-breadcrumb__ellipsis { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.cc-breadcrumb__ellipsis svg { width: 16px; height: 16px; }

/* Pagination */
.cc-pagination { display: flex; width: 100%; justify-content: center; margin: 0 auto; }
.cc-pagination__content { display: flex; flex-direction: row; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.cc-pagination__link { text-decoration: none; }
.cc-btn.cc-pagination__step { gap: var(--space-1); padding: 0 10px; }
@media (max-width: 639px) { .cc-pagination__label { display: none; } }
.cc-pagination__ellipsis { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.cc-pagination__ellipsis svg { width: 16px; height: 16px; }

/* Hover card */
.cc-hover-card__content { width: 256px; }

/* Context menu */
.cc-context-menu { display: contents; }
.cc-context-menu__content { position: fixed; z-index: 50; animation: cc-fade-in .15s; }

/* Menubar */
.cc-menubar { display: flex; height: 36px; align-items: center; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--background); box-shadow: var(--shadow-xs); }
.cc-menubar__trigger {
  display: flex; align-items: center; padding: var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--foreground); font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; user-select: none; cursor: default; outline: none;
}
.cc-menubar__trigger:focus, .cc-menubar__trigger[data-state="open"] { background: var(--accent); color: var(--accent-foreground); }
.cc-float.cc-menubar__content { --cc-offset: 8px; min-width: 12rem; }

/* Navigation menu */
.cc-navmenu { position: relative; display: flex; flex: 1; max-width: max-content; align-items: center; justify-content: center; }
.cc-navmenu__list { display: flex; flex: 1; align-items: center; justify-content: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.cc-navmenu__item { position: relative; }
.cc-navmenu__trigger {
  display: inline-flex; width: max-content; height: 36px; align-items: center; justify-content: center; padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-md); background: var(--background); color: var(--foreground); text-decoration: none;
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; outline: none; transition: color .15s, box-shadow .15s, background-color .15s;
}
.cc-navmenu__trigger:hover, .cc-navmenu__trigger:focus { background: var(--accent); color: var(--accent-foreground); }
.cc-navmenu__trigger[data-state="open"] { background: color-mix(in oklab, var(--accent) 50%, transparent); color: var(--accent-foreground); }
.cc-navmenu__trigger[data-state="open"]:hover, .cc-navmenu__trigger[data-state="open"]:focus { background: var(--accent); }
.cc-navmenu__trigger:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-navmenu__trigger:disabled { pointer-events: none; opacity: .5; }
.cc-navmenu__chevron { position: relative; top: 1px; width: 12px; height: 12px; margin-left: var(--space-1); transition: transform .3s; }
.cc-navmenu__trigger[data-state="open"] .cc-navmenu__chevron { transform: rotate(180deg); }
.cc-navmenu__content {
  position: absolute; top: 100%; left: 0; z-index: 50; margin-top: 6px; padding: var(--space-2) 10px var(--space-2) var(--space-2);
  overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground);
  box-shadow: var(--shadow-md); animation: cc-fade-in .15s;
}
.cc-navmenu__link {
  display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2); border-radius: var(--radius-sm); color: inherit; text-decoration: none;
  font-size: 14px; line-height: 20px; outline: none; transition: color .15s, box-shadow .15s, background-color .15s;
}
.cc-navmenu__link:hover, .cc-navmenu__link:focus { background: var(--accent); color: var(--accent-foreground); }
.cc-navmenu__link[data-active] { background: color-mix(in oklab, var(--accent) 50%, transparent); color: var(--accent-foreground); }
.cc-navmenu__link:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-navmenu__link svg { width: 16px; height: 16px; color: var(--muted-foreground); }

/* Toggle / toggle group */
.cc-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--foreground); font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  cursor: pointer; outline: none; transition: color .15s, box-shadow .15s, background-color .15s;
}
.cc-toggle:hover { background: var(--muted); color: var(--muted-foreground); }
.cc-toggle[data-state="on"] { background: var(--accent); color: var(--accent-foreground); }
.cc-toggle:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-toggle:disabled { pointer-events: none; opacity: .5; }
.cc-toggle svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.cc-toggle--outline { border: 1px solid var(--input); box-shadow: var(--shadow-xs); }
.cc-toggle--outline:hover { background: var(--accent); color: var(--accent-foreground); }
.cc-toggle--size-default { height: 36px; min-width: 36px; padding: 0 var(--space-2); }
.cc-toggle--size-sm { height: 32px; min-width: 32px; padding: 0 6px; }
.cc-toggle--size-lg { height: 40px; min-width: 40px; padding: 0 10px; }
.cc-toggle-group { display: flex; width: fit-content; align-items: center; border-radius: var(--radius-md); }
.cc-toggle-group[data-variant="outline"] { box-shadow: var(--shadow-xs); }
.cc-toggle.cc-toggle-group__item { position: relative; min-width: 0; flex: 1 0 auto; border-radius: 0; box-shadow: none; }
.cc-toggle-group__item:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.cc-toggle-group__item:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.cc-toggle-group__item:focus-visible { z-index: 10; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-toggle-group__item.cc-toggle--outline { border-left-width: 0; }
.cc-toggle-group__item.cc-toggle--outline:first-child { border-left-width: 1px; }

/* Input OTP */
.cc-otp { position: relative; display: flex; width: fit-content; align-items: center; gap: var(--space-2); }
.cc-otp[data-disabled] { opacity: .5; pointer-events: none; }
.cc-otp__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.cc-otp__group { display: flex; align-items: center; }
.cc-otp__slot {
  position: relative; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-top: 1px solid var(--input); border-bottom: 1px solid var(--input); border-right: 1px solid var(--input);
  font-size: 14px; line-height: 20px; box-shadow: var(--shadow-xs); transition: box-shadow .15s, border-color .15s;
}
.cc-otp__slot:first-child { border-left: 1px solid var(--input); border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.cc-otp__slot:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
[data-theme="dark"] .cc-otp__slot { background: color-mix(in oklab, var(--input) 30%, transparent); }
.cc-otp__slot[data-active="true"] { z-index: 10; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-otp__caret { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cc-otp__caret span { width: 1px; height: 16px; background: var(--foreground); animation: cc-caret-blink 1s ease-out infinite; }
@keyframes cc-caret-blink { 0%, 70%, 100% { opacity: 1; } 20%, 50% { opacity: 0; } }
[data-slot="input-otp-separator"] svg { display: block; width: 16px; height: 16px; }

/* Drawer */
.cc-drawer__content {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; max-height: 80vh; margin-top: 96px;
  border-top: 1px solid var(--border); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
  background: var(--background); color: var(--foreground); outline: none; transition: transform .2s; animation: cc-slide-from-bottom .5s cubic-bezier(.32, .72, 0, 1);
}
.cc-drawer__handle {
  flex-shrink: 0; width: 100px; height: 8px; margin: 8px auto 0; padding: 8px 0; box-sizing: content-box; background: var(--muted); background-clip: content-box;
  border-radius: var(--radius-full); cursor: grab; touch-action: none;
}
.cc-drawer__header { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); text-align: center; }
@media (min-width: 768px) { .cc-drawer__header { gap: 6px; text-align: left; } }
.cc-drawer__footer { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; padding: var(--space-4); }
.cc-drawer__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.cc-drawer__description { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }

/* Carousel */
.cc-carousel { position: relative; }
.cc-carousel__viewport { overflow: auto; scrollbar-width: none; overscroll-behavior: contain; }
.cc-carousel__viewport::-webkit-scrollbar { display: none; }
.cc-carousel__content { display: flex; margin-left: calc(-1 * var(--space-4)); }
.cc-carousel[data-orientation="vertical"] .cc-carousel__content { flex-direction: column; margin-left: 0; margin-top: calc(-1 * var(--space-4)); }
.cc-carousel__item { min-width: 0; flex: 0 0 100%; padding-left: var(--space-4); }
.cc-carousel[data-orientation="vertical"] .cc-carousel__item { padding-left: 0; padding-top: var(--space-4); }
.cc-btn.cc-carousel__nav { position: absolute; width: 32px; height: 32px; border-radius: var(--radius-full); }
.cc-carousel[data-orientation="horizontal"] .cc-carousel__nav { top: 50%; transform: translateY(-50%); }
.cc-carousel[data-orientation="horizontal"] .cc-carousel__nav--prev { left: -48px; }
.cc-carousel[data-orientation="horizontal"] .cc-carousel__nav--next { right: -48px; }
.cc-carousel[data-orientation="vertical"] .cc-carousel__nav { left: 50%; transform: translateX(-50%) rotate(90deg); }
.cc-carousel[data-orientation="vertical"] .cc-carousel__nav--prev { top: -48px; }
.cc-carousel[data-orientation="vertical"] .cc-carousel__nav--next { bottom: -48px; }

/* Resizable */
.cc-resizable { display: flex; width: 100%; height: 100%; }
.cc-resizable[data-direction="vertical"] { flex-direction: column; }
.cc-resizable__panel { min-width: 0; min-height: 0; overflow: hidden; }
.cc-resizable__handle { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1px; background: var(--border); cursor: col-resize; touch-action: none; outline: none; }
.cc-resizable__handle::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%); }
.cc-resizable__handle[data-panel-group-direction="vertical"] { width: 100%; height: 1px; cursor: row-resize; }
.cc-resizable__handle[data-panel-group-direction="vertical"]::after { top: 50%; bottom: auto; left: 0; width: 100%; height: 4px; transform: translateY(-50%); }
.cc-resizable__handle:focus-visible { box-shadow: 0 0 0 1px var(--background), 0 0 0 2px var(--ring); }
.cc-resizable__grip { z-index: 10; display: flex; width: 12px; height: 16px; align-items: center; justify-content: center; border-radius: 2px; border: 1px solid var(--border); background: var(--border); }
.cc-resizable__grip svg { width: 10px; height: 10px; }
.cc-resizable__handle[data-panel-group-direction="vertical"] .cc-resizable__grip { transform: rotate(90deg); }

/* Scroll area */
.cc-scroll-area { position: relative; overflow: hidden; }
.cc-scroll-area__viewport { width: 100%; height: 100%; overflow: scroll; scrollbar-width: none; border-radius: inherit; outline: none; transition: box-shadow .15s; }
.cc-scroll-area__viewport::-webkit-scrollbar { display: none; }
.cc-scroll-area__viewport:focus-visible { box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-scroll-area__content { min-width: 100%; display: table; }
.cc-scrollbar { position: absolute; display: flex; padding: 1px; touch-action: none; user-select: none; opacity: 0; transition: opacity .15s; }
.cc-scroll-area:hover .cc-scrollbar, .cc-scroll-area:focus-within .cc-scrollbar { opacity: 1; }
.cc-scrollbar[data-orientation="vertical"] { top: 0; right: 0; bottom: 0; width: 10px; border-left: 1px solid transparent; }
.cc-scrollbar[data-orientation="horizontal"] { left: 0; right: 0; bottom: 0; height: 10px; border-top: 1px solid transparent; }
.cc-scrollbar__thumb { position: absolute; border-radius: var(--radius-full); background: var(--border); }
.cc-scrollbar[data-orientation="vertical"] .cc-scrollbar__thumb { left: 1px; right: 1px; }
.cc-scrollbar[data-orientation="horizontal"] .cc-scrollbar__thumb { top: 1px; bottom: 1px; }

/* Chart */
.cc-chart { position: relative; font-size: 12px; line-height: 16px; color: var(--foreground); }
.cc-chart__plot { position: relative; border-radius: var(--radius-md); outline: none; }
.cc-chart__plot:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.cc-chart__plot svg { display: block; overflow: visible; }
.cc-chart__grid { stroke: var(--border); stroke-width: 1; }
.cc-chart__axis-label { fill: var(--muted-foreground); font-family: inherit; font-size: 12px; }
.cc-chart__cursor { fill: var(--muted); }
.cc-chart__crosshair { stroke: var(--border); stroke-width: 1; }
.cc-chart__dot { stroke: var(--background); }
.cc-chart__legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); padding-top: var(--space-3); }
.cc-chart__legend-item { display: flex; align-items: center; gap: 6px; color: var(--foreground); }
.cc-chart__swatch { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; }
.cc-chart__swatch--md { width: 10px; height: 10px; }
.cc-chart__tooltip {
  position: absolute; z-index: 10; display: grid; min-width: 8rem; align-items: start; gap: 6px; padding: 6px 10px; pointer-events: none; white-space: nowrap;
  border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 50%, transparent); background: var(--background); box-shadow: var(--shadow-lg);
  font-size: 12px; line-height: 16px;
}
.cc-chart__tooltip-label { font-weight: 500; }
.cc-chart__tooltip-rows { display: grid; gap: 6px; }
.cc-chart__tooltip-row { display: flex; align-items: center; gap: var(--space-2); }
.cc-chart__tooltip-name { color: var(--muted-foreground); }
.cc-chart__tooltip-value { margin-left: auto; padding-left: var(--space-4); font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--foreground); }

@media (prefers-reduced-motion: reduce) {
  .cc-context-menu__content, .cc-navmenu__content, .cc-drawer__content { animation: none; }
  .cc-otp__caret span { animation: none; }
  .cc-navmenu__chevron { transition: none; }
}

/* ---------- High-contrast themes (data-theme="hc-light" / "hc-dark") ----------
   Focus is a solid outline, and states are set apart by edges, not by shade alone. */
[data-theme|="hc"] :focus-visible { outline: 2px solid var(--ring) !important; outline-offset: 2px !important; box-shadow: none !important; }
[data-theme|="hc"] .cc-menu__item:focus, [data-theme|="hc"] .cc-command__item[data-selected="true"] { outline: 2px solid var(--foreground) !important; outline-offset: -2px !important; }
[data-theme|="hc"] .cc-menu__item[data-variant="destructive"]:focus { background: var(--accent); }
[data-theme|="hc"] .cc-otp__slot[data-active="true"] { box-shadow: 0 0 0 2px var(--ring); }
[data-theme|="hc"] .cc-btn--secondary, [data-theme|="hc"] .cc-badge--secondary { border: 1px solid var(--border); }
[data-theme|="hc"] .cc-tabs__list { border: 1px solid var(--border); }
[data-theme|="hc"] .cc-tabs__trigger[data-state="active"] { border-color: var(--foreground); }
[data-theme|="hc"] .cc-toggle[data-state="on"], [data-theme|="hc"] .cc-sidebar__menu-button[data-active="true"],
[data-theme|="hc"] .cc-navmenu__link[data-active], [data-theme|="hc"] .cc-navmenu__trigger[data-state="open"],
[data-theme|="hc"] .cc-menubar__trigger[data-state="open"] { box-shadow: inset 0 0 0 2px var(--foreground); }
[data-theme|="hc"] .cc-calendar__day[data-today]:not([data-selected]) { box-shadow: inset 0 0 0 1px var(--foreground); }
[data-theme|="hc"] .cc-slider__track, [data-theme|="hc"] .cc-progress { outline: 1px solid var(--border); }
[data-theme|="hc"] .cc-avatar__fallback { border: 1px solid var(--border); }
[data-theme|="hc"] .cc-chart__tooltip { border-color: var(--border); }

/* ---------- Mottion brand ---------- */
/* Titles are set in the display face (Sora), as in the brand's pieces. */
.cc-card__title, .cc-dialog__title, .cc-sheet__title, .cc-drawer__title { font-family: var(--font-display); letter-spacing: -0.01em; }

/* Logo: the official lockup. Values are the brand post sources' at --logo-s: 1
   (mark 62px, name 36px Sora 800 at -0.02em, "SISTEMAS" 11.2px Sora 600 at 0.44em in #71717a). */
.cc-logo { --logo-s: 0.75; display: inline-flex; align-items: center; gap: calc(15px * var(--logo-s)); line-height: 1; vertical-align: middle; }
.cc-logo__mark { display: block; flex: none; width: calc(62px * var(--logo-s)); height: calc(62px * var(--logo-s)); }
.cc-logo__txt { display: flex; flex-direction: column; line-height: 1; }
.cc-logo__name { font-family: var(--font-display); font-weight: 800; font-size: calc(36px * var(--logo-s)); letter-spacing: -0.02em; color: var(--foreground); white-space: nowrap; }
.cc-logo__o { color: var(--brand); }
.cc-logo__sub { margin-top: calc(8px * var(--logo-s)); padding-left: calc(2px * var(--logo-s)); font-family: var(--font-display); font-weight: 600; font-size: calc(11.2px * var(--logo-s)); letter-spacing: 0.44em; color: #71717a; white-space: nowrap; }
