/* Scoped components. Load after tokens.css inside a .lampstand surface. */
.lampstand { margin: 0; background: var(--ls-canvas); color: var(--ls-ink); font: 16px/1.5 var(--ls-body); -webkit-font-smoothing: antialiased; }
.lampstand *, .lampstand *::before, .lampstand *::after { box-sizing: border-box; }
.lampstand [hidden] { display: none !important; }
.lampstand :is(h1,h2,h3,p) { margin: 0; }
.lampstand :is(h1,h2,h3) { font-family: var(--ls-heading); letter-spacing: -.035em; line-height: 1.2; }
.lampstand h1 { font-size: 40px; font-weight: 800; }
.lampstand h2 { font-size: 28px; font-weight: 750; }
.lampstand h3 { font-size: 20px; font-weight: 750; }
.lampstand :where(button,input,select,textarea) { font: inherit; }
.lampstand button, .lampstand summary { cursor: pointer; }
.lampstand a { color: var(--ls-ink); text-underline-offset: 4px; }
.lampstand :focus-visible { outline: 3px solid var(--ls-focus); outline-offset: 3px; }
.lampstand :is(input,select,textarea):focus-visible { outline-offset: 2px; }
.ls-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; }
.ls-skip { position: fixed; top: -100px; left: 16px; z-index: 20; background: var(--ls-action); padding: 12px 20px; border-radius: 10px; }
.ls-skip:focus { top: 12px; }
.ls-muted { color: var(--ls-muted); }
.ls-small { font-size: 13px; line-height: 1.5; }
.ls-overline { font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ls-muted); }
.ls-stack { display: grid; gap: var(--ls-space-6); }
.ls-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ls-space-3); }
.ls-between { justify-content: space-between; }
.ls-panel { background: var(--ls-canvas); border: 1px solid var(--ls-border); border-radius: var(--ls-radius-panel); padding: var(--ls-space-8); }
.ls-panel--soft { background: var(--ls-surface); border-color: transparent; }
.ls-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--ls-radius-pill); background: var(--ls-action); color: var(--ls-ink); font-size: 14px; font-weight: 650; line-height: 22px; text-decoration: none; transition: background 120ms ease; white-space: nowrap; }
.ls-button:hover { background: var(--ls-action-hover); }
.ls-button:active { box-shadow: inset 0 0 0 2px var(--ls-ink); }
.ls-button--secondary { background: var(--ls-canvas); border-color: var(--ls-control-border); }
.ls-button--secondary:hover, .ls-button--quiet:hover { background: var(--ls-surface); }
.ls-button--quiet { background: transparent; }
.ls-button--danger { color: var(--ls-canvas); background: var(--ls-danger); }
.ls-button--danger:hover { background: #872923; }
.ls-button:disabled { cursor: not-allowed; color: var(--ls-muted); background: var(--ls-neutral-surface); box-shadow: none; border-color: transparent; }
.ls-button[aria-busy="true"] { color: var(--ls-ink); background: var(--ls-action); }
.ls-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ls-field { display: grid; gap: 8px; }
.ls-label { font-size: 14px; font-weight: 600; }
.ls-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ls-control-border); border-radius: var(--ls-radius-control); color: var(--ls-ink); background: var(--ls-canvas); }
.ls-input::placeholder { color: var(--ls-muted); opacity: 1; }
.ls-input:disabled { color: var(--ls-muted); background: var(--ls-neutral-surface); cursor: not-allowed; }
.ls-input[aria-invalid="true"] { border: 2px solid var(--ls-danger); padding: 10px 13px; }
.ls-field-error { color: var(--ls-danger); font-size: 13px; }
.ls-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; min-height: 44px; padding-block: 10px; }
.ls-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ls-ink); flex-shrink: 0; }
.ls-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--ls-radius-pill); font-size: 12px; line-height: 20px; font-weight: 550; white-space: nowrap; background: var(--ls-neutral-surface); color: var(--ls-muted); }
.ls-badge--success { background: var(--ls-success-surface); color: var(--ls-success); }
.ls-badge--warning { background: var(--ls-warning-surface); color: var(--ls-warning); }
.ls-badge--danger { background: var(--ls-danger-surface); color: var(--ls-danger); }
.ls-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 12px; background: var(--ls-surface); font-size: 14px; }
.ls-notice--success { background: var(--ls-success-surface); color: var(--ls-success); }
.ls-notice--warning { background: var(--ls-warning-surface); color: var(--ls-warning); }
.ls-notice--danger { background: var(--ls-danger-surface); color: var(--ls-danger); }
.ls-table-wrap { overflow-x: auto; }
.ls-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.ls-table th { color: var(--ls-muted); font-size: 12px; font-weight: 550; padding: 14px 16px; background: var(--ls-surface); border-bottom: 1px solid var(--ls-border); white-space: nowrap; }
.ls-table td { padding: 16px; border-bottom: 1px solid var(--ls-border); vertical-align: middle; }
.ls-table tbody tr:hover { background: var(--ls-surface); }
.ls-table tbody tr:last-child td { border-bottom: 0; }
.ls-table caption { text-align: left; font-size: 13px; color: var(--ls-muted); padding-bottom: 16px; }
.ls-text-button { display: inline; border: 0; padding: 0; text-align: left; background: none; color: var(--ls-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.ls-text-button:hover { text-decoration-thickness: 2px; }
.ls-chip { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; min-height: 44px; color: var(--ls-muted); background: transparent; border: 1px solid transparent; border-radius: var(--ls-radius-pill); font-size: 14px; }
.ls-chip:hover { background: var(--ls-surface); }
.ls-chip[aria-pressed="true"] { color: var(--ls-ink); background: var(--ls-selected); border-color: var(--ls-control-border); font-weight: 600; }
.ls-empty { text-align: center; padding: 64px 24px; }
.ls-empty p { margin-block: 12px 24px; }
.ls-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 1px solid var(--ls-border); border-radius: 20px; color: var(--ls-ink); background: var(--ls-canvas); }
.ls-dialog::backdrop { background: rgb(24 60 43 / .35); }
.ls-dialog h2 { font-size: 28px; }
.ls-dialog .ls-stack { margin-top: 24px; }
.ls-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 32px; }
.ls-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ls-spin 900ms linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lampstand *, .lampstand *::before, .lampstand *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { .lampstand h1 { font-size: 32px; } .lampstand h2 { font-size: 24px; } .ls-panel { padding: 24px; } .ls-dialog { padding: 24px; } }
