/* src/css/tokens.css */
:root {
  --st-font-sans:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --st-font-mono:
    "IBM Plex Mono",
    "JetBrains Mono",
    "SF Mono",
    ui-monospace,
    monospace;
  --st-fs-2xs: 10px;
  --st-fs-code: 11px;
  --st-fs-xs: 12px;
  --st-fs-sm: 14px;
  --st-fs-base: 16px;
  --st-fs-lg: 18px;
  --st-fs-xl: 20px;
  --st-fs-2xl: 24px;
  --st-fw-regular: 400;
  --st-fw-medium: 500;
  --st-fw-semibold: 600;
  --st-fw-bold: 700;
  --st-tracking-label: 0.06em;
  --st-tracking-eyebrow: 0.28em;
  --st-radius-xs: 4px;
  --st-radius-sm: 6px;
  --st-radius-md: 8px;
  --st-radius-lg: 12px;
  --st-radius-xl: 16px;
  --st-radius-full: 9999px;
  --st-space-0: 0;
  --st-space-1: 4px;
  --st-space-2: 8px;
  --st-space-3: 12px;
  --st-space-4: 16px;
  --st-space-5: 20px;
  --st-space-6: 24px;
  --st-space-8: 32px;
  --st-space-12: 48px;
  --st-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --st-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --st-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --st-shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --st-topbar-height: 48px;
  --st-sidebar-width: 240px;
  --st-page-max-width: 72rem;
  --st-page-padding: 24px;
  --st-touch-target: 44px;
  --st-touch-target-sm: 36px;
  --st-z-topbar: 10;
  --st-z-sidebar: 20;
  --st-z-dropdown: 30;
  --st-z-overlay: 50;
  --st-z-palette: 60;
  --st-z-toast: 70;
  --st-duration-fast: 150ms;
  --st-duration-base: 200ms;
  --st-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root,
[data-theme=light],
[data-theme=system] {
  color-scheme: light;
  --st-canvas: #fafafa;
  --st-surface: #ffffff;
  --st-surface-muted: #fafafa;
  --st-surface-hover: #fafafa;
  --st-surface-active: #f4f4f5;
  --st-topbar: rgba(250, 250, 250, 0.8);
  --st-border: #e4e4e7;
  --st-border-strong: #d4d4d8;
  --st-divider: #f4f4f5;
  --st-text: #18181b;
  --st-text-secondary: #3f3f46;
  --st-text-muted: #71717a;
  --st-text-subtle: #a1a1aa;
  --st-primary: #18181b;
  --st-primary-hover: #27272a;
  --st-primary-fg: #ffffff;
  --st-accent: #2563eb;
  --st-focus: #3b82f6;
  --st-backdrop: rgba(24, 24, 27, 0.4);
  --st-backdrop-light: rgba(24, 24, 27, 0.2);
  --st-skeleton: #e4e4e7;
  --st-control-off: #d4d4d8;
  --st-chart-track: #f4f4f5;
  --st-chart-fill: #3f3f46;
  --st-series-1: #2563eb;
  --st-series-2: #ea580c;
  --st-series-3: #0d9488;
  --st-series-4: #c026d3;
  --st-series-5: #65a30d;
  --st-series-6: #ca8a04;
  --st-series-7: #0e7490;
  --st-series-8: #e11d48;
  --st-scrollbar: #d4d4d8;
  --st-scrollbar-hover: #a1a1aa;
  --st-success-bg: #f0fdf4;
  --st-success-border: #bbf7d0;
  --st-success-fg: #15803d;
  --st-success-solid: #22c55e;
  --st-warning-bg: #fffbeb;
  --st-warning-border: #fde68a;
  --st-warning-fg: #b45309;
  --st-warning-solid: #f59e0b;
  --st-danger-bg: #fef2f2;
  --st-danger-border: #fecaca;
  --st-danger-fg: #dc2626;
  --st-danger-solid: #dc2626;
  --st-danger-solid-hover: #b91c1c;
  --st-info-bg: #f5f3ff;
  --st-info-border: #ddd6fe;
  --st-info-fg: #7c3aed;
  --st-info-solid: #8b5cf6;
  --st-neutral-bg: #f4f4f5;
  --st-neutral-border: #e4e4e7;
  --st-neutral-fg: #52525b;
  --st-neutral-solid: #a1a1aa;
}
[data-theme=dark],
[data-mantine-color-scheme=dark] {
  color-scheme: dark;
  --st-canvas: #09090b;
  --st-surface: #18181b;
  --st-surface-muted: #111113;
  --st-surface-hover: rgba(250, 250, 250, 0.04);
  --st-surface-active: rgba(250, 250, 250, 0.08);
  --st-topbar: rgba(9, 9, 11, 0.8);
  --st-border: #27272a;
  --st-border-strong: #3f3f46;
  --st-divider: #27272a;
  --st-text: #f4f4f5;
  --st-text-secondary: #d4d4d8;
  --st-text-muted: #a1a1aa;
  --st-text-subtle: #71717a;
  --st-primary: #fafafa;
  --st-primary-hover: #e4e4e7;
  --st-primary-fg: #18181b;
  --st-accent: #60a5fa;
  --st-focus: #3b82f6;
  --st-backdrop: rgba(0, 0, 0, 0.6);
  --st-backdrop-light: rgba(0, 0, 0, 0.45);
  --st-skeleton: #27272a;
  --st-control-off: #3f3f46;
  --st-chart-track: #27272a;
  --st-chart-fill: #d4d4d8;
  --st-series-1: #60a5fa;
  --st-series-2: #fb923c;
  --st-series-3: #2dd4bf;
  --st-series-4: #e879f9;
  --st-series-5: #a3e635;
  --st-series-6: #facc15;
  --st-series-7: #67e8f9;
  --st-series-8: #fb7185;
  --st-scrollbar: #3f3f46;
  --st-scrollbar-hover: #52525b;
  --st-success-bg: rgba(34, 197, 94, 0.12);
  --st-success-border: rgba(34, 197, 94, 0.32);
  --st-success-fg: #4ade80;
  --st-success-solid: #22c55e;
  --st-warning-bg: rgba(245, 158, 11, 0.12);
  --st-warning-border: rgba(245, 158, 11, 0.32);
  --st-warning-fg: #fbbf24;
  --st-warning-solid: #f59e0b;
  --st-danger-bg: rgba(239, 68, 68, 0.12);
  --st-danger-border: rgba(239, 68, 68, 0.32);
  --st-danger-fg: #f87171;
  --st-danger-solid: #dc2626;
  --st-danger-solid-hover: #ef4444;
  --st-info-bg: rgba(139, 92, 246, 0.14);
  --st-info-border: rgba(139, 92, 246, 0.36);
  --st-info-fg: #a78bfa;
  --st-info-solid: #8b5cf6;
  --st-neutral-bg: rgba(250, 250, 250, 0.06);
  --st-neutral-border: #3f3f46;
  --st-neutral-fg: #d4d4d8;
  --st-neutral-solid: #52525b;
}
@media (prefers-color-scheme: dark) {
  [data-theme=system] {
    color-scheme: dark;
    --st-canvas: #09090b;
    --st-surface: #18181b;
    --st-surface-muted: #111113;
    --st-surface-hover: rgba(250, 250, 250, 0.04);
    --st-surface-active: rgba(250, 250, 250, 0.08);
    --st-topbar: rgba(9, 9, 11, 0.8);
    --st-border: #27272a;
    --st-border-strong: #3f3f46;
    --st-divider: #27272a;
    --st-text: #f4f4f5;
    --st-text-secondary: #d4d4d8;
    --st-text-muted: #a1a1aa;
    --st-text-subtle: #71717a;
    --st-primary: #fafafa;
    --st-primary-hover: #e4e4e7;
    --st-primary-fg: #18181b;
    --st-accent: #60a5fa;
    --st-focus: #3b82f6;
    --st-backdrop: rgba(0, 0, 0, 0.6);
    --st-backdrop-light: rgba(0, 0, 0, 0.45);
    --st-skeleton: #27272a;
    --st-control-off: #3f3f46;
    --st-chart-track: #27272a;
    --st-chart-fill: #d4d4d8;
    --st-series-1: #60a5fa;
    --st-series-2: #fb923c;
    --st-series-3: #2dd4bf;
    --st-series-4: #e879f9;
    --st-series-5: #a3e635;
    --st-series-6: #facc15;
    --st-series-7: #67e8f9;
    --st-series-8: #fb7185;
    --st-scrollbar: #3f3f46;
    --st-scrollbar-hover: #52525b;
    --st-success-bg: rgba(34, 197, 94, 0.12);
    --st-success-border: rgba(34, 197, 94, 0.32);
    --st-success-fg: #4ade80;
    --st-success-solid: #22c55e;
    --st-warning-bg: rgba(245, 158, 11, 0.12);
    --st-warning-border: rgba(245, 158, 11, 0.32);
    --st-warning-fg: #fbbf24;
    --st-warning-solid: #f59e0b;
    --st-danger-bg: rgba(239, 68, 68, 0.12);
    --st-danger-border: rgba(239, 68, 68, 0.32);
    --st-danger-fg: #f87171;
    --st-danger-solid: #dc2626;
    --st-danger-solid-hover: #ef4444;
    --st-info-bg: rgba(139, 92, 246, 0.14);
    --st-info-border: rgba(139, 92, 246, 0.36);
    --st-info-fg: #a78bfa;
    --st-info-solid: #8b5cf6;
    --st-neutral-bg: rgba(250, 250, 250, 0.06);
    --st-neutral-border: #3f3f46;
    --st-neutral-fg: #d4d4d8;
    --st-neutral-solid: #52525b;
  }
}

/* src/css/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--st-font-sans);
  font-size: var(--st-fs-sm);
  line-height: 1.5;
  color: var(--st-text);
  background: var(--st-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button,
a[href],
summary,
label,
input,
select,
textarea,
[role=button] {
  touch-action: manipulation;
}
button:not(:disabled),
[role=button],
a[href],
summary,
label[for],
select:not(:disabled),
input[type=checkbox]:not(:disabled),
input[type=radio]:not(:disabled) {
  cursor: pointer;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--st-scrollbar);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--st-scrollbar-hover);
}
.st-focus-ring:focus-visible,
.st-btn:focus-visible,
.st-icon-btn:focus-visible,
.st-tab:focus-visible,
.st-nav-item:focus-visible,
.st-switch__track:focus-visible,
.st-menu__trigger:focus-visible,
.st-menu__item:focus-visible,
.st-infotip__trigger:focus-visible,
.st-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--st-canvas), 0 0 0 4px var(--st-focus);
}
.st-label {
  display: block;
  margin: 0;
  font-size: var(--st-fs-2xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-tracking-label);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-mono {
  font-family: var(--st-font-mono);
}
.st-muted {
  color: var(--st-text-muted);
}
.st-subtle {
  color: var(--st-text-subtle);
}
.st-link {
  color: var(--st-accent);
  font-weight: var(--st-fw-medium);
  text-decoration: none;
  border-radius: var(--st-radius-xs);
}
.st-link:hover {
  text-decoration: underline;
}
.st-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.st-stack {
  display: flex;
  flex-direction: column;
  gap: var(--st-gap, var(--st-space-3));
}
.st-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-gap, var(--st-space-2));
}
.st-inline--nowrap {
  flex-wrap: nowrap;
}
.st-inline--between {
  justify-content: space-between;
}
.st-inline--end {
  justify-content: flex-end;
}
.st-inline--align-start {
  align-items: flex-start;
}
.st-inline--align-end {
  align-items: flex-end;
}
.st-inline--align-baseline {
  align-items: baseline;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--st-grid-min, 200px), 100%), 1fr));
  gap: var(--st-gap, var(--st-space-4));
}
@keyframes st-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes st-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes st-slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes st-slide-in-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes st-rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes st-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes st-pulse {
  50% {
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  [class*=st-]:not(.st-spinner) {
    animation: none !important;
    transition: none !important;
  }
}

/* src/css/components/button.css */
.st-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-2);
  padding: 8px 16px;
  margin: 0;
  font-family: inherit;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-medium);
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--st-radius-md);
  transition:
    background-color var(--st-duration-fast),
    border-color var(--st-duration-fast),
    color var(--st-duration-fast);
}
.st-btn--sm {
  gap: 6px;
  padding: 5px 10px;
  font-size: var(--st-fs-xs);
  line-height: 16px;
}
.st-btn--block {
  display: flex;
  width: 100%;
}
.st-btn--primary {
  color: var(--st-primary-fg);
  background: var(--st-primary);
  box-shadow: var(--st-shadow-xs);
}
.st-btn--primary:hover {
  background: var(--st-primary-hover);
}
.st-btn--secondary {
  color: var(--st-text-secondary);
  background: var(--st-surface);
  border-color: var(--st-border);
}
.st-btn--secondary:hover {
  background: var(--st-surface-hover);
  border-color: var(--st-border-strong);
}
.st-btn--ghost {
  color: var(--st-text-muted);
  background: transparent;
}
.st-btn--ghost:hover {
  color: var(--st-text);
  background: var(--st-surface-active);
}
.st-btn--danger {
  color: var(--st-danger-fg);
  background: var(--st-danger-bg);
  border-color: var(--st-danger-border);
}
.st-btn--danger:hover {
  border-color: var(--st-danger-fg);
}
.st-btn--danger-solid {
  color: #ffffff;
  background: var(--st-danger-solid);
  box-shadow: var(--st-shadow-xs);
}
.st-btn--danger-solid:hover {
  background: var(--st-danger-solid-hover);
}
.st-btn:disabled,
.st-btn[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.st-btn[data-loading] {
  color: transparent;
  pointer-events: none;
}
.st-btn[data-loading] > :not(.st-btn__spinner) {
  visibility: hidden;
}
.st-btn__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-color: color-mix(in srgb, var(--st-btn-spinner, currentColor) 30%, transparent);
  border-top-color: var(--st-btn-spinner, currentColor);
  border-radius: var(--st-radius-full);
  animation: st-spin 0.6s linear infinite;
}
.st-btn--sm .st-btn__spinner {
  width: 12px;
  height: 12px;
}
.st-btn--primary {
  --st-btn-spinner: var(--st-primary-fg);
}
.st-btn--danger-solid {
  --st-btn-spinner: #ffffff;
}
.st-btn--secondary,
.st-btn--ghost {
  --st-btn-spinner: var(--st-text-secondary);
}
.st-btn--danger {
  --st-btn-spinner: var(--st-danger-fg);
}
.st-btn svg,
.st-icon-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.st-btn--sm svg {
  width: 14px;
  height: 14px;
}
.st-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  color: var(--st-text-subtle);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--st-radius-sm);
  transition: background-color var(--st-duration-fast), color var(--st-duration-fast);
}
.st-icon-btn:hover {
  color: var(--st-text);
  background: var(--st-surface-active);
}
.st-icon-btn--sm {
  width: 24px;
  height: 24px;
}
.st-icon-btn--sm svg {
  width: 14px;
  height: 14px;
}
.st-icon-btn--outline {
  color: var(--st-text-muted);
  background: var(--st-surface);
  border-color: var(--st-border);
}
.st-icon-btn--outline:hover {
  background: var(--st-surface-hover);
  border-color: var(--st-border-strong);
}
.st-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
@media (pointer: coarse) {
  .st-btn {
    min-height: var(--st-touch-target);
  }
  .st-btn--sm {
    min-height: var(--st-touch-target-sm);
  }
  .st-icon-btn {
    width: var(--st-touch-target);
    height: var(--st-touch-target);
  }
  .st-icon-btn--sm {
    width: var(--st-touch-target-sm);
    height: var(--st-touch-target-sm);
  }
}

/* src/css/components/badge.css */
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 2px 8px;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-2xs);
  font-weight: var(--st-fw-semibold);
  line-height: 14px;
  letter-spacing: var(--st-tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--st-neutral-fg);
  background: var(--st-neutral-bg);
  border: 1px solid var(--st-neutral-border);
  border-radius: var(--st-radius-full);
}
.st-badge--success {
  color: var(--st-success-fg);
  background: var(--st-success-bg);
  border-color: var(--st-success-border);
}
.st-badge--warning {
  color: var(--st-warning-fg);
  background: var(--st-warning-bg);
  border-color: var(--st-warning-border);
}
.st-badge--danger {
  color: var(--st-danger-fg);
  background: var(--st-danger-bg);
  border-color: var(--st-danger-border);
}
.st-badge--info {
  color: var(--st-info-fg);
  background: var(--st-info-bg);
  border-color: var(--st-info-border);
}
.st-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--st-neutral-solid);
  border-radius: var(--st-radius-full);
}
.st-dot--success {
  background: var(--st-success-solid);
}
.st-dot--warning {
  background: var(--st-warning-solid);
}
.st-dot--danger {
  background: var(--st-danger-solid);
}
.st-dot--info {
  background: var(--st-info-solid);
}
.st-dot--series-1 {
  background: var(--st-series-1);
}
.st-dot--series-2 {
  background: var(--st-series-2);
}
.st-dot--series-3 {
  background: var(--st-series-3);
}
.st-dot--series-4 {
  background: var(--st-series-4);
}
.st-dot--series-5 {
  background: var(--st-series-5);
}
.st-dot--series-6 {
  background: var(--st-series-6);
}
.st-dot--series-7 {
  background: var(--st-series-7);
}
.st-dot--series-8 {
  background: var(--st-series-8);
}
.st-dot--pulse {
  animation: st-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.st-kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-2xs);
  line-height: 16px;
  color: var(--st-text-muted);
  background: var(--st-neutral-bg);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-xs);
}

/* src/css/components/form.css */
.st-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.st-field > .st-label {
  margin-bottom: 6px;
}
.st-field__label-row {
  display: flex;
  gap: var(--st-space-1);
  align-items: center;
  margin-bottom: 6px;
}
.st-hint,
.st-field-error {
  margin: 4px 0 0;
  font-size: var(--st-fs-2xs);
  line-height: 14px;
}
.st-hint {
  color: var(--st-text-subtle);
}
.st-field-error {
  color: var(--st-danger-fg);
}
.st-input,
.st-textarea,
.st-select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  font-family: inherit;
  font-size: var(--st-fs-sm);
  line-height: 20px;
  color: var(--st-text);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  transition: border-color var(--st-duration-fast), box-shadow var(--st-duration-fast);
}
.st-input::placeholder,
.st-textarea::placeholder {
  color: var(--st-text-subtle);
}
.st-input:hover,
.st-textarea:hover,
.st-select:hover {
  border-color: var(--st-border-strong);
}
.st-input:focus,
.st-textarea:focus,
.st-select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--st-focus);
}
.st-input[aria-invalid=true],
.st-textarea[aria-invalid=true],
.st-select[aria-invalid=true] {
  border-color: var(--st-danger-border);
}
.st-input[aria-invalid=true]:focus,
.st-textarea[aria-invalid=true]:focus,
.st-select[aria-invalid=true]:focus {
  box-shadow: 0 0 0 2px var(--st-danger-solid);
}
.st-input:disabled,
.st-textarea:disabled,
.st-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.st-input--mono,
.st-input[type=number] {
  font-family: var(--st-font-mono);
}
.st-input--sm,
.st-select--sm {
  padding: 5px 10px;
  font-size: var(--st-fs-xs);
  line-height: 16px;
}
.st-textarea {
  resize: vertical;
  min-height: 80px;
}
.st-textarea--mono {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
}
.st-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 1.25em;
}
.st-select--sm {
  padding-right: 32px;
  background-position: right 6px center;
}
.st-checkbox,
.st-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: var(--st-fs-xs);
  font-weight: var(--st-fw-medium);
  color: var(--st-text-secondary);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  cursor: pointer;
  transition: border-color var(--st-duration-fast);
}
.st-checkbox:hover,
.st-radio:hover {
  border-color: var(--st-border-strong);
}
.st-radio:not(.st-radio--compact):has(input:checked) {
  border-color: var(--st-primary);
}
.st-checkbox--compact,
.st-radio--compact {
  padding: 0;
  background: none;
  border: 0;
}
.st-checkbox input,
.st-radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--st-primary);
}
.st-checkbox input:focus-visible,
.st-radio input:focus-visible {
  outline: 2px solid var(--st-focus);
  outline-offset: 2px;
}
.st-checkbox__text,
.st-radio__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-checkbox__description,
.st-radio__description {
  font-weight: var(--st-fw-regular);
  color: var(--st-text-muted);
}
.st-checkbox:has(input:disabled),
.st-radio:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.st-checkbox:has(input:disabled) input,
.st-radio:has(input:disabled) input {
  cursor: not-allowed;
}
.st-radio-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.st-radio-group > legend {
  padding: 0;
}
.st-radio-group__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-radio-group > legend + .st-radio-group__options {
  margin-top: 6px;
}
.st-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
}
.st-switch__text {
  min-width: 0;
}
.st-switch__label {
  margin: 0;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-medium);
  color: var(--st-text-secondary);
}
.st-switch__description {
  margin: 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
}
.st-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  padding: 0;
  margin: 0;
  background: var(--st-control-off);
  border: 0;
  border-radius: var(--st-radius-full);
  transition: background-color var(--st-duration-fast);
}
.st-switch__track[aria-checked=true] {
  background: var(--st-primary);
}
.st-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: var(--st-radius-full);
  transition: transform var(--st-duration-fast);
}
.st-switch__track[aria-checked=true] .st-switch__thumb {
  transform: translateX(16px);
  background: var(--st-primary-fg);
}
.st-switch__track:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.st-search {
  position: relative;
  min-width: 0;
}
.st-search__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--st-text-subtle);
  transform: translateY(-50%);
  pointer-events: none;
}
.st-search .st-input {
  padding-left: 40px;
  padding-right: 32px;
  background: var(--st-surface);
  border-radius: var(--st-radius-lg);
}
.st-search__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}
.st-search input::-webkit-search-cancel-button,
.st-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
@media (pointer: coarse) {
  .st-input,
  .st-textarea,
  .st-select,
  .st-input--sm,
  .st-select--sm,
  .st-textarea--mono {
    font-size: var(--st-fs-base);
  }
  .st-input,
  .st-select {
    min-height: var(--st-touch-target);
  }
  .st-input--sm,
  .st-select--sm {
    min-height: var(--st-touch-target-sm);
  }
  .st-checkbox:not(.st-checkbox--compact),
  .st-radio:not(.st-radio--compact) {
    min-height: var(--st-touch-target);
  }
  .st-checkbox input,
  .st-radio input {
    width: 20px;
    height: 20px;
  }
  .st-radio-group--compact .st-radio-group__options {
    gap: 12px;
  }
  .st-switch__track::after {
    content: "";
    position: absolute;
    inset: -12px -4px;
  }
}

/* src/css/components/tabs.css */
.st-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 2px;
  overflow-x: auto;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
}
.st-tab {
  padding: 6px 16px;
  margin: 0;
  font-family: inherit;
  font-size: var(--st-fs-xs);
  font-weight: var(--st-fw-semibold);
  line-height: 16px;
  white-space: nowrap;
  color: var(--st-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--st-radius-sm);
  transition: background-color var(--st-duration-fast), color var(--st-duration-fast);
}
.st-tab:hover {
  color: var(--st-text-secondary);
}
.st-tab[aria-selected=true] {
  color: var(--st-primary-fg);
  background: var(--st-primary);
}
.st-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.st-tabs--sm .st-tab {
  padding: 4px 10px;
  font-size: var(--st-fs-2xs);
}
@media (pointer: coarse) {
  .st-tab {
    min-height: var(--st-touch-target-sm);
  }
}

/* src/css/components/layout.css */
.st-page {
  display: flex;
  flex-direction: column;
  gap: var(--st-gap, var(--st-space-6));
  width: 100%;
  max-width: var(--st-page-max-width);
  margin: 0 auto;
  padding: var(--st-page-padding);
}
.st-page--narrow {
  max-width: 42rem;
}
.st-page--wide {
  max-width: 90rem;
}
.st-page--full {
  max-width: none;
}
.st-card {
  display: flex;
  flex-direction: column;
  gap: var(--st-gap, var(--st-space-4));
  min-width: 0;
  padding: var(--st-space-5);
  color: var(--st-text);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
}
.st-card--compact {
  padding: var(--st-space-4);
}
.st-card--flush {
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.st-card--success {
  background: var(--st-success-bg);
  border-color: var(--st-success-border);
}
.st-card--warning {
  background: var(--st-warning-bg);
  border-color: var(--st-warning-border);
}
.st-card--danger {
  background: var(--st-danger-bg);
  border-color: var(--st-danger-border);
}
.st-card--info {
  background: var(--st-info-bg);
  border-color: var(--st-info-border);
}
.st-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--st-space-3);
}
.st-card__header > :first-child {
  flex: 1 1 12rem;
  min-width: 0;
}
.st-card__title {
  margin: 0;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
}
.st-card__description {
  margin: 2px 0 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
}
.st-card__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--st-space-2);
}
.st-card__section {
  padding-top: var(--st-space-4);
  border-top: 1px solid var(--st-divider);
}
.st-inset {
  padding: var(--st-space-3);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-divider);
  border-radius: var(--st-radius-md);
}
.st-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-space-2) var(--st-space-3);
}
.st-section-header__text {
  min-width: 0;
  margin-right: auto;
}
.st-section-header__title {
  margin: 0;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text-secondary);
}
.st-section-header__description {
  margin: 2px 0 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
}
.st-section-header__actions {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
}
.st-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--st-divider);
  border-radius: var(--st-radius-md);
}
.st-list > * {
  padding: var(--st-space-2) var(--st-space-3);
}
.st-list > * + * {
  border-top: 1px solid var(--st-divider);
}

/* src/css/components/shell.css */
.st-shell {
  container: st-shell / inline-size;
  position: relative;
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--st-canvas);
}
.st-shell--contained {
  height: 100%;
}
.st-shell__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.st-shell__content {
  flex: 1;
  min-height: 0;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.st-shell__main:has(> .st-statusbar) > .st-shell__content {
  padding-bottom: 0;
}
.st-shell__backdrop {
  display: none;
}
.st-sidebar {
  z-index: var(--st-z-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--st-sidebar-width);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--st-surface);
  border-right: 1px solid var(--st-border);
}
.st-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2);
  min-height: var(--st-topbar-height);
  padding: 0 var(--st-space-4);
  border-bottom: 1px solid var(--st-divider);
}
.st-sidebar__close {
  display: none;
}
.st-sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--st-space-6);
  min-height: 0;
  padding: var(--st-space-4) var(--st-space-2);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.st-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
  padding: var(--st-space-3) var(--st-space-2);
  border-top: 1px solid var(--st-divider);
}
.st-sidebar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 var(--st-space-3);
  font-size: var(--st-fs-2xs);
  color: var(--st-text-subtle);
}
.st-sidebar__meta a {
  color: inherit;
  text-decoration: none;
}
.st-sidebar__meta a:hover {
  color: var(--st-text-secondary);
}
.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
  text-decoration: none;
}
.st-brand__logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  font-size: var(--st-fs-xs);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary-fg);
  background: var(--st-primary);
  border-radius: var(--st-radius-md);
}
.st-brand__logo img,
.st-brand__logo svg {
  width: 100%;
  height: 100%;
}
.st-brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-nav-group__label {
  padding: 0 var(--st-space-3);
  margin-bottom: 4px;
}
.st-nav-group__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px var(--st-space-3);
  width: 100%;
  font-family: inherit;
  font-size: var(--st-fs-sm);
  text-align: left;
  color: var(--st-text-muted);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--st-radius-sm);
  transition: background-color var(--st-duration-fast), color var(--st-duration-fast);
}
.st-nav-item:hover {
  color: var(--st-text);
  background: var(--st-surface-active);
}
.st-nav-item[aria-current=page],
.st-nav-item[data-active] {
  color: var(--st-primary-fg);
  background: var(--st-primary);
}
.st-nav-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.st-nav-item__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-nav-item__badge {
  margin-left: auto;
}
.st-nav-disclosure {
  display: flex;
  flex-direction: column;
}
.st-nav-disclosure__row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.st-nav-disclosure__link {
  flex: 1;
  min-width: 0;
}
.st-nav-disclosure__toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--st-text-muted);
  background: none;
  border: 0;
  border-radius: var(--st-radius-sm);
  transition: background-color var(--st-duration-fast), color var(--st-duration-fast);
}
.st-nav-disclosure__toggle:hover {
  color: var(--st-text);
  background: var(--st-surface-active);
}
.st-nav-disclosure__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--st-duration-fast);
}
.st-nav-disclosure__toggle[aria-expanded=true] svg {
  transform: rotate(180deg);
}
.st-nav-disclosure__items {
  margin-top: 2px;
  padding-left: var(--st-space-4);
}
.st-nav-disclosure__items[hidden] {
  display: none;
}
.st-topbar {
  z-index: var(--st-z-topbar);
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2) var(--st-space-4);
  min-height: calc(var(--st-topbar-height) + env(safe-area-inset-top));
  padding: calc(var(--st-space-1) + env(safe-area-inset-top)) max(var(--st-space-6), env(safe-area-inset-right)) var(--st-space-1) max(var(--st-space-6), env(safe-area-inset-left));
  background: var(--st-topbar);
  border-bottom: 1px solid var(--st-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.st-topbar__menu {
  display: none;
}
.st-topbar__heading {
  display: flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: var(--st-space-2);
  min-width: 0;
}
.st-topbar__crumb {
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
  white-space: nowrap;
  text-decoration: none;
}
a.st-topbar__crumb:hover {
  color: var(--st-text);
}
.st-topbar__sep {
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-topbar__title {
  margin: 0;
  overflow: hidden;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-topbar__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--st-space-2);
  max-width: 100%;
  margin-left: auto;
}
.st-statusbar {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-space-4);
  padding: 6px var(--st-space-4) calc(6px + env(safe-area-inset-bottom));
  font-size: var(--st-fs-2xs);
  color: var(--st-text-muted);
  background: var(--st-surface);
  border-top: 1px solid var(--st-border);
}
.st-statusbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@container st-shell (max-width: 1023px) {
  .st-sidebar {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: min(288px, 85%);
    box-shadow: var(--st-shadow-lg);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--st-duration-base) var(--st-ease), visibility var(--st-duration-base);
  }
  .st-shell[data-nav-open] .st-sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .st-shell[data-nav-open] .st-shell__backdrop {
    position: absolute;
    inset: 0;
    z-index: calc(var(--st-z-sidebar) - 1);
    display: block;
    background: var(--st-backdrop-light);
    animation: st-fade-in var(--st-duration-fast) ease-out;
  }
  .st-sidebar__close,
  .st-topbar__menu {
    display: inline-flex;
  }
}
@container st-shell (max-width: 767px) {
  .st-topbar {
    padding-right: max(var(--st-space-3), env(safe-area-inset-right));
    padding-left: max(var(--st-space-3), env(safe-area-inset-left));
  }
  .st-topbar__crumb,
  .st-topbar__sep {
    display: none;
  }
  .st-page {
    padding: var(--st-space-4);
  }
  .st-statusbar {
    display: none;
  }
  .st-shell__main:has(> .st-statusbar) > .st-shell__content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
.st-menu {
  position: relative;
  display: inline-block;
}
.st-menu__trigger {
  display: inline-flex;
  list-style: none;
  border-radius: var(--st-radius-full);
  user-select: none;
}
.st-menu__trigger::-webkit-details-marker {
  display: none;
}
.st-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--st-z-dropdown);
  display: flex;
  flex-direction: column;
  min-width: 224px;
  padding: var(--st-space-2);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-md);
  animation: st-scale-in var(--st-duration-fast) ease-out;
  transform-origin: top;
}
.st-menu--end .st-menu__panel {
  right: 0;
  left: auto;
}
.st-menu__panel[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  overflow: visible;
  color: inherit;
}
.st-menu__panel[popover]:not(:popover-open) {
  display: none;
}
.st-menu__panel[data-side=top] {
  transform-origin: bottom;
}
.st-menu__label {
  padding: 6px var(--st-space-2);
  overflow: hidden;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
  text-overflow: ellipsis;
}
.st-menu__panel > .st-tabs {
  width: auto;
  margin: 2px var(--st-space-2) var(--st-space-1);
}
.st-menu__panel > .st-tabs .st-tab {
  flex: 1;
}
.st-menu__item {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  width: 100%;
  padding: var(--st-space-2) var(--st-space-3);
  margin: 0;
  font-family: inherit;
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--st-radius-md);
}
.st-menu__item:hover {
  background: var(--st-surface-hover);
}
.st-menu__item svg {
  width: 16px;
  height: 16px;
}
.st-menu__item--danger {
  color: var(--st-danger-fg);
}
.st-menu__item--danger:hover {
  background: var(--st-danger-bg);
}
.st-menu__separator {
  height: 1px;
  margin: 4px 0;
  background: var(--st-divider);
}
.st-user-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-2);
  max-width: 100%;
  padding: 5px var(--st-space-3);
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-full);
  box-shadow: var(--st-shadow-xs);
}
.st-user-pill__name {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container st-shell (max-width: 767px) {
  .st-user-pill__name {
    display: none;
  }
}
.st-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: max(var(--st-space-12), env(safe-area-inset-top)) max(var(--st-space-6), env(safe-area-inset-right)) max(var(--st-space-12), env(safe-area-inset-bottom)) max(var(--st-space-6), env(safe-area-inset-left));
  background:
    radial-gradient(
      circle at top,
      rgb(161 161 170 / 0.18),
      transparent 32%),
    linear-gradient(
      180deg,
      var(--st-canvas) 0%,
      var(--st-surface-active) 100%);
}
.st-auth--contained {
  min-height: 100%;
}
.st-auth__card {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
  width: 100%;
  max-width: 448px;
  padding: var(--st-space-8);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-xl);
  box-shadow: var(--st-shadow-xs);
}
.st-auth__head {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
}
.st-auth__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--st-text-subtle);
}
.st-auth__title {
  margin: 0;
  font-size: var(--st-fs-2xl);
  font-weight: var(--st-fw-semibold);
  line-height: 1.25;
  color: var(--st-text);
}
.st-auth__subtitle {
  margin: 0;
  font-size: var(--st-fs-sm);
  color: var(--st-text-muted);
}
@media (max-width: 767px) {
  .st-auth {
    padding-right: max(var(--st-space-4), env(safe-area-inset-right));
    padding-left: max(var(--st-space-4), env(safe-area-inset-left));
  }
  .st-auth__card {
    padding: var(--st-space-6);
  }
}
@media (pointer: coarse) {
  .st-nav-item,
  .st-menu__item {
    min-height: var(--st-touch-target);
  }
  .st-nav-disclosure__toggle {
    width: var(--st-touch-target);
    height: var(--st-touch-target);
  }
  .st-user-pill {
    min-height: var(--st-touch-target-sm);
  }
}

/* src/css/components/display.css */
.st-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--st-space-4);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
}
.st-stat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2);
  margin-bottom: var(--st-space-2);
}
.st-stat__value {
  margin: 0;
  font-size: var(--st-fs-2xl);
  font-weight: var(--st-fw-semibold);
  line-height: 1.25;
  color: var(--st-text);
  font-variant-numeric: tabular-nums;
}
.st-stat__subtitle {
  margin: 4px 0 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(min(var(--st-kv-min, 9rem), 100%), calc((100% - (var(--st-kv-columns, 2) - 1) * var(--st-space-3)) / var(--st-kv-columns, 2))), 1fr));
  gap: var(--st-space-3);
  margin: 0;
}
.st-kv__item {
  min-width: 0;
  padding: var(--st-space-3);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-divider);
  border-radius: var(--st-radius-md);
}
.st-kv__label {
  margin-bottom: 4px;
}
.st-kv__value {
  margin: 0;
  font-size: var(--st-fs-sm);
  color: var(--st-text);
  overflow-wrap: anywhere;
}
.st-code {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
  min-width: 0;
}
.st-code__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2);
}
.st-code__copy {
  padding: 0;
  margin-left: auto;
  font-family: inherit;
  font-size: var(--st-fs-2xs);
  font-weight: var(--st-fw-medium);
  color: var(--st-text-subtle);
  background: none;
  border: 0;
}
.st-code__copy:hover {
  color: var(--st-text-secondary);
}
@media (pointer: coarse) {
  .st-code__copy {
    min-height: var(--st-touch-target-sm);
    padding: 0 var(--st-space-2);
    margin-right: calc(-1 * var(--st-space-2));
  }
}
.st-code__pre,
.st-pre {
  margin: 0;
  padding: var(--st-space-3);
  overflow: auto;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-code);
  line-height: 1.625;
  color: var(--st-text-secondary);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-divider);
  border-radius: var(--st-radius-md);
}
.st-code__pre--wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.st-copy-field {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-2);
  min-width: 0;
}
.st-copy-field__value {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 7px 10px;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
  line-height: 16px;
  color: var(--st-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--st-surface-muted);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
}
.st-secret {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  padding: var(--st-space-4);
  background: var(--st-warning-bg);
  border: 1px solid var(--st-warning-border);
  border-radius: var(--st-radius-lg);
}
.st-secret__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--st-space-3);
}
.st-secret .st-label {
  color: var(--st-warning-fg);
}
.st-secret__note {
  margin: 2px 0 0;
  font-size: var(--st-fs-sm);
  color: var(--st-warning-fg);
}
.st-secret__actions {
  display: flex;
  gap: var(--st-space-2);
}
.st-secret__value {
  margin: 0;
  padding: var(--st-space-2) var(--st-space-3);
  overflow-x: auto;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-sm);
  color: var(--st-text);
  background: color-mix(in srgb, var(--st-surface) 80%, transparent);
  border: 1px solid var(--st-warning-border);
  border-radius: var(--st-radius-md);
}
.st-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-step[data-status=done] {
  color: var(--st-text);
}
.st-step[data-status=current] {
  font-weight: var(--st-fw-semibold);
  color: var(--st-text-secondary);
}
.st-step[data-status=failed] {
  color: var(--st-danger-fg);
}
.st-step__marker {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-2xs);
  color: var(--st-text-subtle);
  background: var(--st-surface-muted);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-full);
}
.st-step[data-status=done] .st-step__marker {
  color: var(--st-success-fg);
  background: var(--st-success-bg);
  border-color: var(--st-success-border);
}
.st-step[data-status=current] .st-step__marker {
  color: var(--st-accent);
  background: color-mix(in srgb, var(--st-focus) 10%, var(--st-surface));
  border-color: color-mix(in srgb, var(--st-focus) 35%, var(--st-surface));
  animation: st-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.st-step[data-status=failed] .st-step__marker {
  color: var(--st-danger-fg);
  background: var(--st-danger-bg);
  border-color: var(--st-danger-border);
}
.st-bars {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-bar {
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
}
.st-bar__label {
  width: var(--st-bar-label-width, 96px);
  flex-shrink: 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
  overflow-wrap: anywhere;
  white-space: normal;
}
.st-bar__track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: var(--st-chart-track);
  border-radius: var(--st-radius-full);
}
.st-bar__fill {
  display: block;
  height: 100%;
  background: var(--st-chart-fill);
  border-radius: var(--st-radius-full);
}
.st-bar__value {
  min-width: 24px;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
  text-align: right;
}
.st-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-3);
  padding: var(--st-space-3) var(--st-space-4);
  font-size: var(--st-fs-sm);
  color: var(--st-neutral-fg);
  background: var(--st-neutral-bg);
  border: 1px solid var(--st-neutral-border);
  border-radius: var(--st-radius-lg);
}
.st-alert--success {
  color: var(--st-success-fg);
  background: var(--st-success-bg);
  border-color: var(--st-success-border);
}
.st-alert--warning {
  color: var(--st-warning-fg);
  background: var(--st-warning-bg);
  border-color: var(--st-warning-border);
}
.st-alert--danger {
  color: var(--st-danger-fg);
  background: var(--st-danger-bg);
  border-color: var(--st-danger-border);
}
.st-alert--info {
  color: var(--st-info-fg);
  background: var(--st-info-bg);
  border-color: var(--st-info-border);
}
.st-alert__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.st-alert__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.st-alert__title {
  margin: 0;
  font-weight: var(--st-fw-semibold);
}
.st-alert__body {
  margin: 0;
}
.st-alert__body a {
  font-weight: var(--st-fw-medium);
  color: inherit;
}
.st-alert__meta {
  margin: 2px 0 0;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
  opacity: 0.8;
}
.st-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-2);
  margin-top: var(--st-space-2);
}
.st-alert--lg {
  padding: var(--st-space-4) var(--st-space-5);
}
.st-alert--lg .st-alert__title {
  font-size: var(--st-fs-lg);
}
.st-alert--lg .st-alert__body {
  opacity: 0.85;
}

/* src/css/components/chart.css */
.st-price-chart {
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-code);
  -webkit-user-select: none;
  user-select: none;
}
.st-price-chart__plot {
  position: relative;
  min-width: 0;
}
.st-price-chart .st-menu__panel {
  font-family: var(--st-font-sans);
  font-size: var(--st-fs-sm);
}
.st-price-chart__controls {
  padding: var(--st-space-3);
  border-top: 1px solid var(--st-border);
  user-select: text;
}
.st-price-chart__controls summary {
  cursor: pointer;
  min-height: var(--st-touch-target);
  display: flex;
  align-items: center;
}
.st-price-chart__scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-space-3);
  min-width: 0;
  margin-block: var(--st-space-3);
  padding: var(--st-space-3);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
}
.st-price-chart__scale .st-field {
  flex: 1 1 0;
  min-width: 0;
}
.st-price-chart__scale input[type=number] {
  width: 100%;
}
.st-price-chart__auto {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-2);
  min-height: var(--st-touch-target);
}
.st-price-chart__scale [role=alert],
.st-price-chart__scale [role=status] {
  flex-basis: 100%;
  color: var(--st-warning-fg);
}
.st-price-chart--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-price-chart__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--st-radius-sm);
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-touch-callout: none;
}
.st-price-chart__canvas[data-dragging] {
  cursor: grabbing;
}
.st-price-chart__canvas[data-interaction-mode=range],
.st-price-chart__canvas[data-interaction-mode=range][data-dragging] {
  cursor: crosshair;
}
.st-price-chart__caption {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  min-height: var(--st-space-6);
  padding: var(--st-space-1) var(--st-space-2);
  box-sizing: border-box;
  color: var(--st-text-muted);
  pointer-events: none;
}
.st-price-chart__caption-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-price-chart__reset {
  flex: none;
  margin-left: auto;
  pointer-events: auto;
}
.st-price-chart__reset[data-idle] {
  visibility: hidden;
}
.st-price-chart__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.st-price-chart__inspection {
  position: absolute;
  left: 0;
  display: flex;
  align-items: flex-start;
  padding: var(--st-space-2);
  min-width: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.st-price-chart__inspection-content {
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: var(--st-space-1) var(--st-space-2);
  border-radius: var(--st-radius-sm);
  color: var(--st-text);
  background: color-mix(in srgb, var(--st-surface) 82%, transparent);
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}
.st-price-chart__range-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--st-space-2);
  padding: var(--st-space-2);
  color: var(--st-info-fg);
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.st-price-chart__tooltip {
  position: absolute;
  top: var(--st-space-2);
  z-index: 1;
  max-width: min(20rem, calc(50% - var(--st-space-3)));
  max-height: calc(100% - 2 * var(--st-space-2));
  overflow: hidden;
  padding: var(--st-space-2) var(--st-space-3);
  color: var(--st-text-secondary);
  white-space: nowrap;
  pointer-events: none;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow-md);
  transform: translateX(var(--st-space-3));
}
.st-price-chart__tooltip[data-side=left] {
  transform: translateX(calc(-100% - var(--st-space-3)));
}
.st-price-chart__tooltip[data-side=full] {
  left: var(--st-space-2);
  right: var(--st-space-2);
  max-width: none;
  transform: none;
}
.st-price-chart__time {
  margin: 0 0 var(--st-space-1);
  color: var(--st-text-muted);
}
.st-price-chart__ohlc {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--st-space-4);
  margin: 0;
}
.st-price-chart__ohlc dt {
  color: var(--st-text-muted);
}
.st-price-chart__ohlc dd {
  margin: 0;
  text-align: right;
  color: var(--st-text);
}
.st-price-chart__ohlc dd[data-direction=up] {
  color: var(--st-success-fg);
}
.st-price-chart__ohlc dd[data-direction=down] {
  color: var(--st-danger-fg);
}
.st-price-chart__section {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-1);
  margin-top: var(--st-space-1);
  padding-top: var(--st-space-1);
  border-top: 1px solid var(--st-divider);
}
.st-price-chart__row {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  min-width: 0;
  margin: 0;
}
.st-price-chart__row-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-price-chart__row-value,
.st-price-chart__row-time {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: var(--st-space-3);
  color: var(--st-text);
}
.st-price-chart__row-time,
.st-price-chart__more {
  color: var(--st-text-muted);
}
.st-price-chart__row-detail {
  margin: 2px 0 0;
  padding-left: calc(2 * var(--st-space-2));
  color: var(--st-text-muted);
  font-size: var(--st-fs-xs);
  white-space: normal;
}
.st-price-chart__swatch {
  flex-shrink: 0;
  width: var(--st-space-2);
  height: var(--st-space-2);
  background: var(--st-neutral-solid);
  border-radius: var(--st-radius-full);
}
.st-price-chart__swatch[data-tone=success] {
  background: var(--st-success-solid);
}
.st-price-chart__swatch[data-tone=warning] {
  background: var(--st-warning-solid);
}
.st-price-chart__swatch[data-tone=danger] {
  background: var(--st-danger-solid);
}
.st-price-chart__swatch[data-tone=info] {
  background: var(--st-info-solid);
}
.st-price-chart__swatch[data-series="1"] {
  background: var(--st-series-1);
}
.st-price-chart__swatch[data-series="2"] {
  background: var(--st-series-2);
}
.st-price-chart__swatch[data-series="3"] {
  background: var(--st-series-3);
}
.st-price-chart__swatch[data-series="4"] {
  background: var(--st-series-4);
}
.st-price-chart__swatch[data-series="5"] {
  background: var(--st-series-5);
}
.st-price-chart__swatch[data-series="6"] {
  background: var(--st-series-6);
}
.st-price-chart__swatch[data-series="7"] {
  background: var(--st-series-7);
}
.st-price-chart__swatch[data-series="8"] {
  background: var(--st-series-8);
}
.st-price-chart__swatch[data-shape] {
  border-radius: 0;
}
.st-price-chart__swatch[data-shape=up] {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.st-price-chart__swatch[data-shape=down] {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.st-flow-graph {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--st-space-2) var(--st-space-3);
  width: 100%;
  min-width: 0;
  -webkit-user-select: none;
  user-select: none;
}
.st-flow-graph--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-flow-graph__viewport {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: var(--st-radius-sm);
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
}
.st-flow-graph__viewport[data-dragging],
.st-flow-graph__viewport[data-dragging] .st-flow-graph__node {
  cursor: grabbing;
}
.st-flow-graph__stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.st-flow-graph__stage[data-pending] {
  visibility: hidden;
}
.st-flow-graph__edges {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}
.st-flow-graph__edge {
  fill: none;
  stroke: var(--st-border-strong);
  stroke-width: 1.5px;
}
.st-flow-graph__edge[data-dashed] {
  stroke-dasharray: 5 4;
}
.st-flow-graph__arrow {
  fill: var(--st-border-strong);
}
.st-flow-graph__edge[data-tone=success] {
  stroke: var(--st-success-solid);
}
.st-flow-graph__edge[data-tone=warning] {
  stroke: var(--st-warning-solid);
}
.st-flow-graph__edge[data-tone=danger] {
  stroke: var(--st-danger-solid);
}
.st-flow-graph__edge[data-tone=info] {
  stroke: var(--st-info-solid);
}
.st-flow-graph__arrow[data-tone=success] {
  fill: var(--st-success-solid);
}
.st-flow-graph__arrow[data-tone=warning] {
  fill: var(--st-warning-solid);
}
.st-flow-graph__arrow[data-tone=danger] {
  fill: var(--st-danger-solid);
}
.st-flow-graph__arrow[data-tone=info] {
  fill: var(--st-info-solid);
}
.st-flow-graph__edge-label {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-2xs);
  fill: var(--st-text-muted);
  stroke: var(--st-surface);
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
  text-anchor: middle;
  dominant-baseline: central;
}
.st-flow-graph__edge-label[data-tone=success] {
  fill: var(--st-success-fg);
}
.st-flow-graph__edge-label[data-tone=warning] {
  fill: var(--st-warning-fg);
}
.st-flow-graph__edge-label[data-tone=danger] {
  fill: var(--st-danger-fg);
}
.st-flow-graph__edge-label[data-tone=info] {
  fill: var(--st-info-fg);
}
.st-flow-graph__nodes {
  position: absolute;
  top: 0;
  left: 0;
}
.st-flow-graph__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  padding: 0 var(--st-space-3);
  color: var(--st-text);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow-xs);
  outline: none;
}
.st-flow-graph__node[role=option] {
  cursor: pointer;
}
.st-flow-graph__node[data-selected] {
  outline: 2px solid var(--st-focus);
  outline-offset: -1px;
}
.st-flow-graph__node[data-disabled] {
  background: var(--st-surface-muted);
  border-style: dashed;
}
.st-flow-graph__node-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.st-flow-graph__node-label,
.st-flow-graph__node-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-flow-graph__node-label {
  font-size: var(--st-fs-xs);
  font-weight: var(--st-fw-medium);
}
.st-flow-graph__node[data-disabled] .st-flow-graph__node-label {
  color: var(--st-text-muted);
}
.st-flow-graph__node-meta {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-2xs);
  color: var(--st-text-muted);
}
.st-flow-graph__legend {
  min-width: 0;
  margin: 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
}
.st-flow-graph__controls {
  display: flex;
  gap: var(--st-space-1);
}
.st-flow-graph__controls .st-icon-btn {
  font-family: inherit;
  font-size: var(--st-fs-xs);
  font-weight: var(--st-fw-medium);
}

/* src/css/components/table.css */
.st-table-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
}
.st-table-card--fill {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
}
.st-table-toolbar,
.st-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-space-2);
  padding: var(--st-space-3);
}
.st-table-toolbar {
  border-bottom: 1px solid var(--st-divider);
}
.st-table-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--st-space-2);
  margin-inline-start: auto;
}
.st-table-footer {
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
  border-top: 1px solid var(--st-divider);
}
.st-table-scroll {
  overflow: auto;
}
.st-table-card--fill .st-table-scroll {
  flex: 1;
  min-height: 0;
}
.st-table-scroll[data-pinned] {
  scroll-snap-type: y proximity;
}
.st-table-scroll[data-pinned] tbody tr {
  scroll-snap-align: start;
}
.st-table-scroll[data-pinned]::-webkit-scrollbar-track:vertical {
  margin-top: var(--st-table-header, 0px);
}
.st-table-scroll[data-pinned] thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--st-surface);
  box-shadow: inset 0 -1px 0 var(--st-divider);
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
}
.st-table th {
  padding: 12px 16px;
  font-size: var(--st-fs-2xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-tracking-label);
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--st-text-muted);
  border-bottom: 1px solid var(--st-divider);
}
.st-table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--st-divider);
}
.st-table tbody tr:last-child td {
  border-bottom: 0;
}
.st-table tbody tr {
  transition: background-color var(--st-duration-fast);
}
.st-table tbody tr:hover {
  background: var(--st-surface-hover);
}
.st-table tr[data-clickable] {
  cursor: pointer;
}
.st-table tr[data-clickable]:focus-visible {
  outline: 2px solid var(--st-focus);
  outline-offset: -2px;
}
.st-table tr[data-selected] {
  background: var(--st-surface-active);
}
.st-table .st-table__num {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.st-table--compact th,
.st-table--compact td {
  padding: 8px 12px;
}
.st-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
}
.st-table__sort:hover,
.st-table__sort[data-active] {
  color: var(--st-text);
}
.st-table__sort svg {
  width: 10px;
  height: 10px;
}
.st-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2);
}
.st-pagination__summary {
  margin: 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-pagination__controls {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  margin-left: auto;
}
.st-pagination__page {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
  color: var(--st-text-muted);
}
.st-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--st-space-3);
  padding: var(--st-space-12) var(--st-space-4);
  text-align: center;
}
.st-empty--framed {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
}
.st-empty__icon {
  width: 24px;
  height: 24px;
  color: var(--st-text-subtle);
}
.st-empty__message {
  margin: 0;
  font-size: var(--st-fs-sm);
  color: var(--st-text-subtle);
}
.st-empty__description {
  margin: -8px 0 0;
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-table-toolbar > .st-search {
  flex: 1 1 12rem;
  max-width: 360px;
}
.st-table-footer > .st-pagination {
  flex: 1;
}
@media (max-width: 767px) {
  .st-table td:not([data-wrap]) {
    white-space: nowrap;
  }
  .st-table td[data-wrap] {
    min-width: 12rem;
  }
}
@media (pointer: coarse) {
  .st-table__sort {
    min-height: var(--st-touch-target-sm);
  }
}

/* src/css/components/feedback.css */
.st-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--st-control-off);
  border-top-color: var(--st-primary);
  border-radius: var(--st-radius-full);
  animation: st-spin 0.6s linear infinite;
}
.st-spinner--sm {
  width: 16px;
  height: 16px;
}
.st-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--st-space-8);
}
.st-skeleton {
  display: block;
  min-height: 12px;
  background: var(--st-skeleton);
  border-radius: var(--st-radius-md);
  animation: st-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.st-skeleton--text {
  height: 12px;
  border-radius: var(--st-radius-xs);
}
.st-skeleton--circle {
  border-radius: var(--st-radius-full);
}
.st-toasts {
  position: fixed;
  right: calc(var(--st-space-4) + env(safe-area-inset-right));
  bottom: calc(var(--st-space-4) + env(safe-area-inset-bottom));
  z-index: var(--st-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
  width: min(320px, calc(100% - 2 * var(--st-space-4)));
  pointer-events: none;
}
.st-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-2);
  padding: 10px var(--st-space-3);
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-left: 4px solid var(--st-neutral-solid);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow-md);
  pointer-events: auto;
  animation: st-rise-in var(--st-duration-base) ease-out;
}
.st-toast--success {
  border-left-color: var(--st-success-solid);
}
.st-toast--warning {
  border-left-color: var(--st-warning-solid);
}
.st-toast--danger {
  border-left-color: var(--st-danger-solid);
}
.st-toast--info {
  border-left-color: var(--st-info-solid);
}
.st-toast__body {
  flex: 1;
  min-width: 0;
}
.st-toast__title {
  margin: 0;
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
}
.st-toast__message {
  margin: 0;
}
.st-toast .st-icon-btn {
  margin: -4px -6px -4px 0;
}

/* src/css/components/overlay.css */
.st-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--st-z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--st-space-4), env(safe-area-inset-top)) max(var(--st-space-4), env(safe-area-inset-right)) max(var(--st-space-4), env(safe-area-inset-bottom)) max(var(--st-space-4), env(safe-area-inset-left));
  animation: st-fade-in var(--st-duration-fast) ease-out;
}
.st-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--st-backdrop);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.st-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--st-space-4);
  width: 100%;
  max-width: 512px;
  padding: var(--st-space-6);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--st-text);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-xl);
  box-shadow: var(--st-shadow-xl);
  animation: st-scale-in var(--st-duration-fast) ease-out;
}
.st-modal--sm {
  max-width: 400px;
}
.st-modal--lg {
  max-width: 672px;
}
.st-modal--xl {
  max-width: 896px;
}
.st-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--st-space-3);
}
.st-modal__title {
  margin: 0;
  font-size: var(--st-fs-base);
  font-weight: var(--st-fw-semibold);
  line-height: 1.4;
  color: var(--st-text);
}
.st-modal__description {
  margin: 4px 0 0;
  font-size: var(--st-fs-sm);
  color: var(--st-text-muted);
}
.st-modal__header .st-icon-btn {
  margin: -6px -8px 0 0;
}
.st-modal__body {
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
}
.st-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--st-space-2);
}
.st-modal__form {
  display: contents;
}
.st-overlay--drawer {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.st-overlay--drawer .st-overlay__backdrop {
  background: var(--st-backdrop-light);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
}
.st-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--st-drawer-width, 420px), 100%);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) 0;
  color: var(--st-text);
  background: var(--st-surface);
  border-left: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-lg);
  animation: st-slide-in-right var(--st-duration-base) ease-out;
}
.st-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-3);
  padding: var(--st-space-4) var(--st-space-6);
  border-bottom: 1px solid var(--st-border);
}
.st-drawer__title {
  margin: 0;
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-semibold);
}
.st-drawer__body {
  flex: 1;
  min-height: 0;
  padding: var(--st-space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.st-drawer__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--st-space-2);
  padding: var(--st-space-4) var(--st-space-6);
  border-top: 1px solid var(--st-border);
}
.st-overlay--palette {
  z-index: var(--st-z-palette);
  align-items: flex-start;
  padding-top: max(20vh, env(safe-area-inset-top));
}
.st-palette {
  position: relative;
  width: 100%;
  max-width: 512px;
  overflow: hidden;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-xl);
  box-shadow: var(--st-shadow-xl);
  animation: st-scale-in var(--st-duration-fast) ease-out;
}
.st-palette__form {
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
  padding: var(--st-space-4);
}
.st-palette__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--st-text-subtle);
}
.st-palette__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--st-fs-sm);
  color: var(--st-text);
  background: transparent;
  border: 0;
  outline: none;
}
.st-palette__input::placeholder {
  color: var(--st-text-subtle);
}
.st-palette__items {
  max-height: 320px;
  padding: var(--st-space-2);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border-top: 1px solid var(--st-divider);
}
.st-palette__item {
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
  width: 100%;
  padding: var(--st-space-2) var(--st-space-3);
  font-family: inherit;
  font-size: var(--st-fs-sm);
  color: var(--st-text-secondary);
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--st-radius-md);
}
.st-palette__item[aria-selected=true] {
  color: var(--st-text);
  background: var(--st-surface-active);
}
.st-palette__item svg {
  width: 16px;
  height: 16px;
  color: var(--st-text-subtle);
}
.st-palette__hint {
  margin-left: auto;
  font-size: var(--st-fs-xs);
  color: var(--st-text-subtle);
}
.st-palette__empty {
  padding: var(--st-space-4);
  font-size: var(--st-fs-sm);
  color: var(--st-text-subtle);
  text-align: center;
}
@media (pointer: coarse) {
  .st-palette__input {
    font-size: var(--st-fs-base);
  }
  .st-palette__item {
    min-height: var(--st-touch-target);
  }
}
.st-infotip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.st-infotip__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  color: var(--st-text-subtle);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--st-radius-full);
}
.st-infotip__trigger svg {
  width: 16px;
  height: 16px;
}
.st-infotip__trigger:hover,
.st-infotip__trigger[aria-expanded=true] {
  color: var(--st-text);
}
.st-infotip__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--st-z-dropdown);
  display: block;
  width: max-content;
  max-width: min(20rem, calc(100vw - 16px));
  padding: var(--st-space-3);
  font-family: var(--st-font-sans);
  font-size: var(--st-fs-sm);
  font-weight: var(--st-fw-regular);
  line-height: 1.5;
  color: var(--st-text-secondary);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-md);
  animation: st-scale-in var(--st-duration-fast) ease-out;
  transform-origin: top left;
}
.st-infotip__panel[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  overflow: visible;
}
.st-infotip__panel[popover]:not(:popover-open) {
  display: none;
}
.st-infotip__panel[data-side=top] {
  transform-origin: bottom left;
}
.st-infotip__title {
  display: block;
  margin-bottom: var(--st-space-1);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
}
.st-infotip__panel code {
  font-family: var(--st-font-mono);
  font-size: var(--st-fs-xs);
}
@media (pointer: coarse) {
  .st-infotip__trigger::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--st-touch-target);
    height: var(--st-touch-target);
    content: "";
    transform: translate(-50%, -50%);
  }
}

/* src/css/index.css */
