/* 车管家洗车 · 基础组件层
 * 仅使用 ui/tokens.css 的变量；PC / H5 / 预览共用。
 * 组件状态：default / hover / active / focus-visible / disabled / loading / error。
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-snug);
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.i--sm {
  width: 16px;
  height: 16px;
}

.i--xs {
  width: 14px;
  height: 14px;
}

.i--lg {
  width: 24px;
  height: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-toast);
  transform: translateY(calc(-100% - 16px));
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 文案层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
}

.eyebrow--brand {
  color: var(--brand);
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.ink-2 {
  color: var(--ink-2);
}

.small {
  font-size: var(--text-xs);
}

.tiny {
  font-size: var(--text-2xs);
}

.nowrap {
  white-space: nowrap;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-mobile);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.btn--primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink-2);
  background: var(--surface-2);
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
  padding-inline: var(--space-2);
}

.btn--quiet:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.btn--danger {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--bad);
}

.btn--danger:hover {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.btn--link {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn--sm {
  min-height: 34px;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

.btn--lg {
  min-height: 52px;
  padding-inline: var(--space-6);
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: var(--control-mobile);
  min-width: var(--control-mobile);
  padding: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn:hover {
  text-decoration: none;
}

.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted-2);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--primary[disabled],
.btn--primary[aria-disabled="true"] {
  background: var(--muted-2);
  border-color: var(--muted-2);
  color: var(--surface);
}

.btn.is-loading {
  color: transparent;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--brand-ink);
  animation: spin 700ms linear infinite;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--control-mobile);
  height: var(--control-mobile);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.icon-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.field > label,
.field > .label {
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.5;
}

.field .req {
  color: var(--bad);
  margin-left: 2px;
}

.hint {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--control-mobile);
  padding: 10px var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--muted-2);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.input[readonly],
.input:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.err {
  display: none;
  color: var(--bad);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.err:not(:empty) {
  display: block;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px var(--space-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.alert:empty {
  display: none;
}

.alert--warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
}

.alert--ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}

.alert--info {
  border-left-color: var(--info);
  background: var(--info-soft);
  color: var(--info);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--confirmed {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge--completed {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--cancelled {
  background: var(--surface-2);
  color: var(--muted);
}

.badge--on {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--off {
  background: var(--surface-2);
  color: var(--muted);
}

.badge--plain::before {
  display: none;
}

/* ---------- 面板与分区 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.panel--flush {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.section-head h2,
.section-head h3 {
  margin: 0;
}

.section-head p {
  color: var(--muted);
  font-size: var(--text-xs);
}

.kv {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
  word-break: break-word;
}

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolbar .field {
  flex: 0 1 180px;
}

.toolbar .field--wide {
  flex-basis: 240px;
}

.toolbar .form-actions {
  margin-left: auto;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.summary-line strong,
.summary-line b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ---------- 表格 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table.data caption {
  text-align: left;
  padding: var(--space-2) 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

table.data th {
  position: sticky;
  top: 0;
  z-index: var(--z-base);
  height: 40px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

table.data td {
  height: 52px;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr {
  transition: background-color var(--dur-fast) var(--ease-standard);
}

@media (hover: hover) {
  table.data tbody tr:hover {
    background: var(--surface-2);
  }
}

.cell-strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.cell-truncate {
  display: block;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 var(--space-1);
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.row-link:hover {
  text-decoration: underline;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
}

.pager__btns {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------- 空 / 加载 / 错误 ---------- */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.state__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--brand);
}

.state h3 {
  font-size: var(--text-md);
  font-family: var(--font-sans);
  font-weight: 700;
}

.state p {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.state .btn {
  margin-top: var(--space-2);
}

.state--error .state__mark {
  border-color: var(--bad);
  background: var(--bad-soft);
  color: var(--bad);
}

.skeleton {
  position: relative;
  overflow: clip;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  color: transparent;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s var(--ease-standard) infinite;
}

.skeleton-line {
  height: 12px;
  margin: var(--space-2) 0;
}

.skeleton-line--lg {
  height: 20px;
  width: 40%;
}

.skeleton-card {
  height: 88px;
  margin-bottom: var(--space-2);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ---------- 标签页 / 分段 ---------- */
.tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs [role="tab"] {
  position: relative;
  min-height: var(--touch);
  padding: 0 var(--space-3);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.tabs [role="tab"]:hover {
  color: var(--ink);
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.segmented button {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ---------- 开关 ---------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out);
}

.switch input:checked + .switch__track {
  background: var(--brand);
  border-color: var(--brand);
}

.switch input:checked + .switch__track::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch__track {
  box-shadow: var(--focus-ring);
}

.switch__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- 头像 ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--text-md);
  font-weight: 700;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
}

/* ---------- 浮层：抽屉 / 弹窗 ---------- */
.layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-in), visibility 0s linear var(--dur-fast);
}

.layer.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s;
}

.layer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.layer__panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.layer--modal {
  place-items: center;
  padding: var(--space-4);
}

.layer--modal .layer__panel {
  width: min(520px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: var(--radius-lg);
  transform: translateY(8px) scale(0.99);
  transition: transform var(--dur-base) var(--ease-out);
}

.layer--modal.is-open .layer__panel {
  transform: translateY(0) scale(1);
}

.layer--drawer {
  justify-items: end;
  grid-template-columns: minmax(0, 1fr);
}

.layer--drawer .layer__panel {
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  transform: translateX(16px);
  transition: transform var(--dur-slow) var(--ease-out);
  border-left: 1px solid var(--line);
}

.layer--drawer.is-open .layer__panel {
  transform: translateX(0);
}

.layer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.layer__head h2 {
  font-size: var(--text-lg);
}

.layer__head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.layer__body {
  padding: var(--space-5);
}

.layer__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.layer.is-instant,
.layer.is-instant .layer__panel {
  transition: none;
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: max-content;
  max-width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-size: var(--text-sm);
  line-height: 1.55;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in);
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.toast--ok {
  background: var(--ok);
}

.toast--warn {
  background: var(--warn);
}

.toast--bad {
  background: var(--bad);
}

/* ---------- 权限门 ---------- */
.gate {
  max-width: 560px;
  margin: var(--space-12) auto;
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
}

.gate h1,
.gate h2 {
  margin-top: var(--space-2);
}

.gate p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

.gate .form-actions {
  margin-top: var(--space-5);
}

/* ---------- 其他 ---------- */
.sr-status {
  min-height: 1px;
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
