
/* AXAL One — component styles. Every value comes from tokens.css. */
html, body { background: var(--page); color: var(--ink); }
body { margin: 0; font-family: var(--font-ui); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
.ax-root, .ax-root * { box-sizing: border-box; }
.ax-num { font-variant-numeric: tabular-nums; }
.ax-mono { font-family: var(--font-mono); }

/* Preview helper: the same component in both themes side by side */
.ax-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100%; }
.ax-duo.is-stacked { grid-template-columns: minmax(0, 1fr); }
.ax-pane { overflow: hidden; background: var(--page); color: var(--ink); padding: var(--space-20); display: grid; gap: var(--space-12); align-content: start; min-width: 0; font-family: var(--font-ui); font-size: 14px; line-height: 20px; }
.ax-pane-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ax-hstack { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; }

:where(.ax-btn, .ax-act, .ax-ask, .ax-nav-item, .ax-cmd-item, .ax-input, .ax-tab, .ax-select, .ax-switch, .ax-check input):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Logo — wordmark: Archivo Black scaled (1.06, 0.82) from the left; violet square .258em on the baseline, drawn under the letters */
.ax-logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; color: var(--ink); }
.ax-logo-words { display: inline-flex; align-items: baseline; gap: 5px; line-height: 1; }
.ax-wordmark { display: inline-flex; align-items: baseline; line-height: 1; font-size: 13.64px; color: var(--ink); }
.ax-wordmark-text { position: relative; z-index: 1; display: inline-block; font-family: var(--font-wordmark); font-weight: 400; transform: scale(1.06, 0.82); transform-origin: left center; }
.ax-wordmark-sq { position: relative; z-index: 0; display: inline-block; width: .258em; height: .258em; margin-left: 1px; background: #8B5CF6; }
.ax-logo-product { font-family: var(--font-ui); font-weight: 500; font-size: 11px; color: var(--ink-2); }

/* Button */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); height: var(--control-md); padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-0); background: transparent; color: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform var(--dur-press) var(--ease-out); }
.ax-btn:active { transform: scale(0.97); }
.ax-btn-sm { height: var(--control-sm); padding: 0 12px; }
.ax-btn-lg { height: var(--control-lg); padding: 0 20px; font-weight: 600; }
.ax-btn-primary { background: var(--accent-strong); color: var(--on-accent); border-color: var(--accent-strong); }
.ax-btn-secondary { border-color: var(--line-strong); }
.ax-btn-ghost { color: var(--ink-2); }
.ax-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.ax-btn .ax-kbd { margin-left: 2px; }
.ax-btn-primary .ax-kbd { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .ax-btn-primary:not([disabled]):hover { background: var(--accent); border-color: var(--accent); }
  .ax-btn-secondary:not([disabled]):hover { border-color: var(--accent); }
  .ax-btn-ghost:not([disabled]):hover { background: var(--badge-bg); color: var(--ink); }
}

/* Row action: outline at rest, fills when its row is hovered or focused */
.ax-act { display: inline-flex; align-items: center; gap: var(--space-8); height: var(--control-xs); padding: 0 12px; border: 1px solid var(--accent-line); border-radius: var(--radius-0); background: transparent; color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform var(--dur-press) var(--ease-out); }
.ax-act:active { transform: scale(0.97); }
.ax-row:focus-within .ax-act, .ax-act.is-hot { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

/* Kbd */
.ax-kbd { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12px; line-height: 16px; padding: 1px 5px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; letter-spacing: 0; }

/* AskBar */
.ax-ask { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-0); font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink-3); text-align: left; cursor: text; transition: border-color .15s ease; }
.ax-ask:focus-visible { outline: none; }
.ax-ask:focus-within, .ax-ask:focus { border-color: var(--accent); }
.ax-ask-prompt { color: var(--accent-text); }
.ax-ask-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-caret { display: none; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: ax-blink 1s steps(1) infinite; }
.ax-ask:focus .ax-caret, .ax-ask:focus-within .ax-caret, .ax-caret.is-on { display: inline-block; }
@keyframes ax-blink { 50% { opacity: 0; } }

/* NavItem */
.ax-nav { display: flex; flex-direction: column; gap: var(--space-20); width: var(--nav-w); padding: var(--space-20) 12px; }
.ax-nav-group { display: flex; flex-direction: column; gap: 2px; }
.ax-nav-title { padding: 0 10px 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ax-nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; color: var(--ink-2); text-decoration: none; border: 0; background: transparent; font: inherit; text-align: left; width: 100%; cursor: pointer; transition: background-color .15s var(--ease-out), color .15s ease; }
.ax-nav-item[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
.ax-nav-label { flex: 1; }
.ax-badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--badge-bg); color: var(--ink); font-variant-numeric: tabular-nums; }

/* PageHeader */
.ax-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-16); }
.ax-page-head-main { display: flex; flex-direction: column; gap: 10px; }
.ax-page-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 26px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.ax-page-title .ax-dot { color: var(--accent); }
.ax-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ax-big { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ax-delta { font-size: 14px; font-weight: 500; color: var(--success); font-variant-numeric: tabular-nums; }
.ax-sub { font-size: 15px; color: var(--ink-2); }
.ax-sub b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.ax-page-actions { display: flex; gap: var(--space-8); }

/* GroupHeader */
.ax-group-head { display: flex; align-items: baseline; gap: var(--space-8); padding-bottom: 10px; }
.ax-group-head h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ax-group-head.is-muted h2 { color: var(--ink-2); }
.ax-group-meta { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ListRow */
.ax-row { position: relative; display: grid; grid-template-columns: minmax(200px, 2.2fr) 128px minmax(200px, 2fr) 104px 150px; align-items: center; gap: var(--space-20); min-height: var(--row-min-h); padding: 0 12px; border-top: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color var(--dur-hover) ease; }
.ax-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ax-row.is-selected { background: var(--sel); box-shadow: inset 2px 0 0 var(--accent); }
.ax-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-row-name { font-size: 15px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-row-meta { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-row-next { min-width: 0; display: flex; align-items: center; gap: var(--space-8); font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.ax-row-next > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ax-row-next.is-yours { color: var(--ink); font-weight: 500; }
.ax-row-next svg { flex: none; color: var(--accent-text); }
.ax-row-sum { text-align: right; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ax-row-end { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-4); color: var(--ink-3); }
.ax-row-quick { display: flex; gap: 2px; opacity: 0; transition: opacity var(--dur-hover) ease; }
.ax-row:focus-within .ax-row-quick { opacity: 1; }
.ax-chev { flex: none; transition: transform var(--dur-press) var(--ease-out); }
.ax-icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, transform var(--dur-press) var(--ease-out); }
.ax-icon-btn:active { transform: scale(0.97); }
.ax-flash { position: absolute; inset: 0; pointer-events: none; background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); animation: ax-flash var(--dur-flash) ease .3s both; }
@keyframes ax-flash { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .ax-row:hover { background: var(--row-hover); }
  .ax-row:hover .ax-act { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
  .ax-row:hover .ax-row-quick { opacity: 1; }
  .ax-row:hover .ax-chev { transform: translateX(2px); }
  .ax-nav-item:hover { background: var(--row-hover); }
  .ax-icon-btn:hover { background: var(--accent-soft); }
}

/* StatusChip — neutral by default; only overdue/error is red */
.ax-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-0); font-size: 12px; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.ax-chip-overdue { color: var(--danger); border-color: var(--danger-line); }

/* AgentProposal */
.ax-proposal { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ax-agent-label { display: flex; align-items: center; gap: var(--space-8); font-size: 12px; line-height: 16px; color: var(--accent-text); }
.ax-proposal-text { font-size: 15px; line-height: 22px; }
.ax-proposal-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }

/* ConfidenceBadge */
.ax-conf { display: inline-flex; align-items: center; gap: var(--space-8); font-size: 12px; line-height: 16px; color: var(--ink-2); }
.ax-conf-bars { display: inline-flex; gap: 2px; }
.ax-conf-bars i { width: 4px; height: 10px; background: var(--line-strong); }
.ax-conf-high .ax-conf-bars i { background: var(--success); }
.ax-conf-medium .ax-conf-bars i:nth-child(-n+2) { background: var(--warn); }
.ax-conf-low .ax-conf-bars i:first-child { background: var(--danger); }

/* Banners: uncertainty (warn) and send error (danger) */
.ax-banner { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--warn-line); background: var(--warn-soft); }
.ax-banner-head { display: flex; align-items: center; gap: var(--space-8); font-size: 14px; font-weight: 600; color: var(--warn-text); }
.ax-banner-text { font-size: 14px; line-height: 20px; color: var(--ink); }
.ax-banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.ax-banner-error { border-color: var(--danger-line); background: var(--danger-soft); }
.ax-banner-error .ax-banner-head { color: var(--danger); }
.ax-choice { height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s ease, transform var(--dur-press) var(--ease-out); }
.ax-choice:active { transform: scale(0.97); }
.ax-choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (hover: hover) and (pointer: fine) { .ax-choice:hover { border-color: var(--accent); } }

/* Segmented control (e.g. agent autonomy) */
.ax-seg-ctl { display: inline-flex; border: 1px solid var(--line-strong); }
.ax-seg-opt { height: 32px; padding: 0 12px; border: 0; border-left: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.ax-seg-opt:first-child { border-left: 0; }
.ax-seg-opt[aria-checked="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 500; }
.ax-seg-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .ax-seg-opt:hover { color: var(--ink); } }

/* Toast */
.ax-toast { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 8px 0 14px; background: var(--toast-bg); color: var(--toast-fg); box-shadow: var(--shadow-toast); font-size: 14px; }
.ax-toast.is-float { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 20; animation: ax-toast var(--dur-toast) var(--ease-out) both; }
.ax-toast-icon { flex: none; color: var(--toast-success); }
.ax-toast-error .ax-toast-icon { color: var(--danger); }
.ax-toast-action { height: 30px; padding: 0 10px; border: 0; background: transparent; color: var(--toast-action); font: inherit; font-weight: 600; cursor: pointer; }
.ax-toast-action .ax-kbd { border: 0; padding: 0; color: inherit; opacity: .7; }
.ax-countdown { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--toast-action); transform-origin: left; animation: ax-count var(--dur-countdown) linear .35s both; }
@keyframes ax-toast { from { opacity: 0; transform: translate(-50%, -12px) scale(0.98); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ax-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* SidePanel */
.ax-panel { width: min(var(--panel-w), 100%); display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-28); background: var(--panel); box-shadow: var(--shadow-panel); overflow: auto; }
.ax-panel.is-entering { animation: ax-panel var(--dur-panel) var(--ease-drawer) both; }
.ax-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ax-panel-head-main { display: flex; flex-direction: column; gap: var(--space-8); }
.ax-panel-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.ax-panel-sub { font-size: 14px; color: var(--ink-2); }
.ax-props { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.ax-props dt { color: var(--ink-3); }
.ax-props dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.ax-history { display: flex; flex-direction: column; gap: 14px; padding-top: var(--space-20); border-top: 1px solid var(--line); }
.ax-history h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ax-history time { display: block; font-size: 12px; color: var(--ink-3); }
@keyframes ax-panel { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Tabs */
.ax-tabs { display: flex; gap: var(--space-20); border-bottom: 1px solid var(--line); }
.ax-tab { height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.ax-tab[aria-selected="true"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); }
.ax-tab .ax-tab-count { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

/* ReviewFooter + ProgressSegments */
.ax-review-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: var(--footer-h); padding: 14px var(--space-28); border-top: 1px solid var(--line); background: var(--page); }
.ax-review-next { font-size: 14px; color: var(--ink-2); margin-right: auto; }
.ax-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ax-segs { display: flex; gap: 3px; }
.ax-seg { width: 28px; height: 4px; background: var(--line); }
.ax-seg > i { display: block; height: 100%; transform-origin: left; }
.ax-seg.is-done > i { background: var(--ink-2); }
.ax-seg.is-current > i { background: var(--accent); animation: ax-fill .5s var(--ease-out) .15s both; }
@keyframes ax-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* CommandPalette — no open/close animation: used dozens of times a day */
.ax-cmd { width: 100%; max-width: var(--palette-w); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow-palette); }
.ax-cmd-input { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 15px; color: var(--ink-3); }
.ax-cmd-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.ax-cmd-input input::placeholder { color: var(--ink-3); }
.ax-cmd-list { max-height: 420px; overflow: auto; padding: 8px 0; }
.ax-cmd-group { padding: 10px 18px 6px; font-size: 12px; color: var(--ink-3); }
.ax-cmd-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ax-cmd-item[aria-selected="true"] { background: var(--cmd-sel); box-shadow: inset 2px 0 0 var(--accent); }
.ax-cmd-glyph { width: 18px; display: grid; place-items: center; font-family: var(--font-mono); color: var(--ink-3); }
.ax-cmd-item.is-agent .ax-cmd-glyph { color: var(--accent-text); }
.ax-cmd-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-cmd-hint { font-size: 12px; color: var(--ink-3); }
.ax-cmd-foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.ax-cmd-foot span:last-child { margin-left: auto; }

/* EmptyState */
.ax-empty { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 16px; border: 1px dashed var(--line-strong); }
.ax-empty-title { font-size: 15px; font-weight: 500; }
.ax-empty-text { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ax-empty svg { flex: none; color: var(--success); }
.ax-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ax-draw .5s var(--ease-out) .2s forwards; }
@keyframes ax-draw { to { stroke-dashoffset: 0; } }

/* Skeleton */
.ax-skel { display: block; height: 12px; background: var(--skel); animation: ax-pulse 1.4s ease-in-out infinite; }
@keyframes ax-pulse { 50% { opacity: .45; } }

/* AgentJournal */
.ax-journal { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.ax-jline { display: grid; grid-template-columns: 52px 128px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; border-top: 1px solid var(--line); }
.ax-jtime { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ax-jagent { color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-jtext { color: var(--ink); min-width: 0; }
.ax-jline.is-error .ax-jtext { color: var(--danger); }
.ax-jline.is-reverted .ax-jtext { color: var(--ink-3); text-decoration: line-through; }
.ax-jstate { font-size: 12px; color: var(--ink-3); }
.ax-jundo { height: 28px; padding: 0 8px; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 12px; cursor: pointer; }

/* AutopilotMeter */
.ax-autopilot { display: flex; flex-direction: column; gap: 12px; padding: var(--space-20); background: var(--surface); border: 1px solid var(--line); }
.ax-autopilot-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ax-autopilot-title { font-size: 15px; font-weight: 600; }
.ax-autopilot-figure { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ax-autopilot-bar { display: flex; height: 8px; gap: 2px; }
.ax-autopilot-bar .is-agents { background: var(--accent); transform-origin: left; animation: ax-fill .6s var(--ease-out) .1s both; }
.ax-autopilot-bar .is-you { background: var(--line-strong); }
.ax-autopilot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.ax-autopilot-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }

/* LiveDot */
.ax-live { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-dot); background: var(--live); color: var(--live); flex: none; }
.ax-live::after { content: ""; position: absolute; inset: -4px; border-radius: var(--radius-dot); border: 1px solid currentColor; animation: ax-ping var(--dur-ping) var(--ease-out) infinite; }
.ax-live.is-waiting { background: var(--accent-text); color: var(--accent-text); }
.ax-live.is-waiting::after, .ax-live.is-idle::after { display: none; }
.ax-live.is-idle { background: var(--ink-3); }
.ax-status { display: inline-flex; align-items: center; gap: var(--space-8); font-size: 14px; color: var(--ink-2); }
@keyframes ax-ping { 0% { opacity: .8; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* Enter */
.ax-enter { animation: ax-enter var(--dur-enter) var(--ease-out) both; }
@keyframes ax-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ax-fade { from { opacity: 0; } to { opacity: 1; } }

/* Form primitives */
.ax-input-wrap { display: flex; align-items: center; gap: var(--space-8); height: var(--control-sm); padding: 0 12px; border: 1px solid var(--line); color: var(--ink-3); transition: border-color .15s ease; }
.ax-input-wrap:focus-within { border-color: var(--accent); }
.ax-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.ax-input::placeholder { color: var(--ink-3); }
.ax-field { display: grid; gap: 6px; min-width: 0; }
.ax-field-label { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.ax-field-hint { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ax-field-error { font-size: 12px; line-height: 16px; color: var(--danger); }
.ax-field .ax-input-wrap[aria-invalid="true"] { border-color: var(--danger-line); }
.ax-select { height: var(--control-sm); padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-0); background: var(--page); color: var(--ink); font: inherit; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ax-switch-wrap { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.ax-switch { appearance: none; width: 32px; height: 18px; margin: 0; border: 1px solid var(--line-strong); background: var(--page); position: relative; cursor: pointer; flex: none; transition: background-color .15s ease, border-color .15s ease; }
.ax-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: var(--ink-3); transition: transform var(--dur-press) var(--ease-out), background-color .15s ease; }
.ax-switch:checked { background: var(--accent-strong); border-color: var(--accent-strong); }
.ax-switch:checked::after { transform: translateX(14px); background: var(--on-accent); }
.ax-check { display: inline-flex; align-items: center; gap: var(--space-8); cursor: pointer; }
.ax-check input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line-strong); background: var(--page); display: grid; place-items: center; cursor: pointer; flex: none; }
.ax-check input:checked { background: var(--accent-strong); border-color: var(--accent-strong); }
.ax-check input:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .ax-caret, .ax-skel, .ax-live::after { animation: none; }
  .ax-enter, .ax-panel.is-entering { animation-name: ax-fade; }
  .ax-toast.is-float { animation: none; }
  .ax-draw { animation: none; stroke-dashoffset: 0; }
  .ax-btn:active, .ax-act:active, .ax-icon-btn:active, .ax-choice:active { transform: none; }
}
