/* ============================================================
   客保云 · Design tokens & primitives
   Three complete themes: 珍珠白 / 深海蓝 / 曜石黑
   ============================================================ */

:root {
  --font-sans: "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --header-h: 76px;
  --sidebar-w: 252px;
  --page-max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="white"] {
  color-scheme: light;
  --bg: #f3f5fa;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef3fa;
  --elevated: #ffffff;
  --border: #e4e9f2;
  --border-strong: #d3dbe9;
  --text: #0d1526;
  --text-2: #536078;
  --text-3: #8b96aa;
  --text-inverse: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eaf0ff;
  --accent-2: #b48a4f;
  --accent-2-soft: #fbf3e4;
  --accent-contrast: #ffffff;
  --success: #0e7a5f;
  --success-soft: #e7f6f1;
  --warning: #b45309;
  --warning-soft: #fdf2e3;
  --danger: #c2413a;
  --danger-soft: #fdeceb;
  --info: #2563eb;
  --info-soft: #eaf0ff;
  --gold: #b48a4f;
  --gold-soft: #fbf3e4;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .04);
  --shadow: 0 14px 36px -18px rgba(13, 21, 38, .18);
  --shadow-lg: 0 36px 90px -30px rgba(13, 21, 38, .32);
  --shadow-float: 0 24px 60px -20px rgba(13, 21, 38, .22);
  --sidebar-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, .82);
  --hero-grad: linear-gradient(125deg, #0a1c33 0%, #123a67 52%, #1f5fbf 100%);
  --hero-text: #f4f8ff;
  --ring: 0 0 0 4px rgba(37, 99, 235, .13);
  --chart-grid: #e9eef7;
  --scrollbar: #c7d1e2;
  --input-bg: #ffffff;
  --overlay: rgba(10, 18, 35, .48);
  --nav-active: #edf3ff;
  --nav-active-text: #1d4ed8;
  --glow-a: rgba(37, 99, 235, .10);
  --glow-b: rgba(180, 138, 79, .10);
  --code-bg: #f2f5fa;
}

[data-theme="blue"] {
  color-scheme: dark;
  --bg: #051224;
  --bg-soft: #071a30;
  --surface: #0a1d36;
  --surface-2: #0e2543;
  --surface-3: #133052;
  --elevated: #0e2543;
  --border: rgba(140, 176, 230, .16);
  --border-strong: rgba(140, 176, 230, .3);
  --text: #edf4ff;
  --text-2: #a7bbd9;
  --text-3: #6f86a8;
  --text-inverse: #051224;
  --accent: #5d9dff;
  --accent-hover: #83b5ff;
  --accent-soft: rgba(93, 157, 255, .14);
  --accent-2: #e7c98b;
  --accent-2-soft: rgba(231, 201, 139, .12);
  --accent-contrast: #04152b;
  --success: #4fd1a5;
  --success-soft: rgba(79, 209, 165, .12);
  --warning: #f3b45f;
  --warning-soft: rgba(243, 180, 95, .12);
  --danger: #ff8b86;
  --danger-soft: rgba(255, 139, 134, .12);
  --info: #5d9dff;
  --info-soft: rgba(93, 157, 255, .12);
  --gold: #e7c98b;
  --gold-soft: rgba(231, 201, 139, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 100px -36px rgba(0, 0, 0, .85);
  --shadow-float: 0 28px 70px -24px rgba(0, 0, 0, .8);
  --sidebar-bg: #071a30;
  --topbar-bg: rgba(5, 18, 36, .78);
  --hero-grad: linear-gradient(125deg, #071b36 0%, #0b3666 55%, #1c6ecf 100%);
  --hero-text: #f2f8ff;
  --ring: 0 0 0 4px rgba(93, 157, 255, .2);
  --chart-grid: rgba(255, 255, 255, .07);
  --scrollbar: #27476f;
  --input-bg: rgba(255, 255, 255, .04);
  --overlay: rgba(1, 8, 18, .62);
  --nav-active: rgba(93, 157, 255, .14);
  --nav-active-text: #9cc5ff;
  --glow-a: rgba(41, 121, 255, .18);
  --glow-b: rgba(231, 201, 139, .08);
  --code-bg: rgba(255, 255, 255, .05);
}

[data-theme="black"] {
  color-scheme: dark;
  --bg: #07080b;
  --bg-soft: #0a0b0f;
  --surface: #101115;
  --surface-2: #15171c;
  --surface-3: #1b1e25;
  --elevated: #15171c;
  --border: #23262e;
  --border-strong: #30343f;
  --text: #f4f2ec;
  --text-2: #aaa69b;
  --text-3: #726e66;
  --text-inverse: #0b0c0f;
  --accent: #d8b56f;
  --accent-hover: #e8c98a;
  --accent-soft: rgba(216, 181, 111, .12);
  --accent-2: #9fb4d0;
  --accent-2-soft: rgba(159, 180, 208, .1);
  --accent-contrast: #191204;
  --success: #6fd3a8;
  --success-soft: rgba(111, 211, 168, .1);
  --warning: #e8b567;
  --warning-soft: rgba(232, 181, 103, .1);
  --danger: #ef8580;
  --danger-soft: rgba(239, 133, 128, .1);
  --info: #9fb4d0;
  --info-soft: rgba(159, 180, 208, .1);
  --gold: #d8b56f;
  --gold-soft: rgba(216, 181, 111, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 100px -36px rgba(0, 0, 0, .95);
  --shadow-float: 0 28px 70px -24px rgba(0, 0, 0, .9);
  --sidebar-bg: #0b0c0f;
  --topbar-bg: rgba(11, 12, 15, .8);
  --hero-grad: linear-gradient(125deg, #0b0c0f 0%, #1b1710 55%, #4a3618 100%);
  --hero-text: #f6f2e8;
  --ring: 0 0 0 4px rgba(216, 181, 111, .18);
  --chart-grid: rgba(255, 255, 255, .055);
  --scrollbar: #3a3e48;
  --input-bg: rgba(255, 255, 255, .035);
  --overlay: rgba(0, 0, 0, .68);
  --nav-active: rgba(216, 181, 111, .12);
  --nav-active-text: #e8c98a;
  --glow-a: rgba(216, 181, 111, .08);
  --glow-b: rgba(159, 180, 208, .05);
  --code-bg: rgba(255, 255, 255, .05);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, var(--glow-a), transparent 62%),
    radial-gradient(900px 520px at -8% 106%, var(--glow-b), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-contrast); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- brand / logo ---------- */
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 750; letter-spacing: .01em; }
.brand-text small { font-size: 14px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-color: var(--text);
  --btn-border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  --btn-bg: var(--accent);
  --btn-color: var(--accent-contrast);
  --btn-border: transparent;
  box-shadow: 0 10px 24px -14px var(--accent);
}
.btn-primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 14px 28px -14px var(--accent); }
.btn-secondary { --btn-bg: var(--surface); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text-2);
  --btn-border: transparent;
}
.btn-ghost:hover { --btn-bg: var(--surface-3); --btn-color: var(--text); }
.btn-soft {
  --btn-bg: var(--accent-soft);
  --btn-color: var(--accent);
  --btn-border: transparent;
}
.btn-soft:hover { --btn-bg: var(--accent-soft); border-color: transparent; filter: brightness(.98); }
.btn-danger {
  --btn-bg: var(--danger-soft);
  --btn-color: var(--danger);
  --btn-border: transparent;
}
.btn-danger:hover { --btn-bg: var(--danger); --btn-color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 14px; border-radius: 8px; gap: 5px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; transform: none; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-icon {
  width: 40px;
  padding: 0;
  height: 40px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-2);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .icon { width: 19px; height: 19px; }
.link-btn, .link-sm {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 0;
  font-size: 14px;
}
.link-btn:hover, .link-sm:hover { text-decoration: underline; }
.link-sm { font-size: 14px; }

/* ---------- form primitives ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .01em;
}
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.field-error { font-size: 14px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  font-size: 14px;
}
.input, .select { height: 42px; padding: 0 12px; }
.textarea { padding: 11px 12px; min-height: 104px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
select.select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell .input { padding-left: 40px; }
.input-shell .input-icon {
  position: absolute;
  left: 13px;
  color: var(--text-3);
  display: flex;
  pointer-events: none;
}
.input-shell .input-icon .icon { width: 17px; height: 17px; }
.input-shell .input-action {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-3);
  border-radius: 8px;
}
.input-shell .input-action:hover { color: var(--text); background: var(--surface-3); }
.input-shell .input-action .icon { width: 17px; height: 17px; }
.input-shell.has-action .input { padding-right: 42px; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section-head { display: flex; align-items: center; gap: 12px; padding-bottom: 2px; }
.form-section-head .fs-index {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none;
}
.form-section-head h3 { font-size: 15px; }
.form-section-head p { font-size: 14px; color: var(--text-3); }
.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.55;
}
.form-alert .icon { margin-top: 2px; }
.form-alert.is-success { background: var(--success-soft); color: var(--success); }
.form-alert.is-warning { background: var(--warning-soft); color: var(--warning); }
.form-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  background: var(--surface-2);
}
.form-note .icon { color: var(--accent); margin-top: 2px; }

/* ---------- badges / chips ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
  line-height: 1.6;
}
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-protected { background: var(--success-soft); color: var(--success); }
.status-expiring { background: var(--warning-soft); color: var(--warning); }
.status-expired { background: var(--danger-soft); color: var(--danger); }
.status-released { background: var(--surface-3); color: var(--text-3); }
.status-admin { background: var(--accent-soft); color: var(--accent); }
.status-manager { background: var(--gold-soft); color: var(--gold); }
.status-staff { background: var(--surface-3); color: var(--text-2); }
.status-disabled { background: var(--danger-soft); color: var(--danger); }
.status-active { background: var(--success-soft); color: var(--success); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-gold { background: var(--gold-soft); color: var(--gold); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mini-tag { font-size: 14px; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-3); }

/* ---------- avatars ---------- */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-size: 14px;
  font-weight: 700;
  flex: none;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.avatar-lg { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.avatar-soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

/* ---------- misc ---------- */
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.tiny { font-size: 14px; }
.small { font-size: 14px; }
.strong { font-weight: 650; }
.mono { font-variant-numeric: tabular-nums; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-spacer { flex: 1; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.spin { animation: spin .8s linear infinite; }

/* ---------- theme switch ---------- */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.theme-switch { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.theme-toggle .icon { width: 21px; height: 21px; }

.theme-opt {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .08);
  padding: 0;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
[data-theme="blue"] .theme-opt, [data-theme="black"] .theme-opt { border-color: rgba(255, 255, 255, .14); }
.theme-opt:hover { transform: scale(1.1); }
.theme-opt[data-theme-value="white"] { background: linear-gradient(135deg, #ffffff, #dce6f7); }
.theme-opt[data-theme-value="blue"] { background: linear-gradient(135deg, #2b6fca, #071a30); }
.theme-opt[data-theme-value="black"] { background: linear-gradient(135deg, #2a2b31, #07080b 60%, #c9a55f 160%); }
.theme-opt.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.theme-opt.active::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
}
.theme-opt[data-theme-value="white"].active::after { border-color: #1d4ed8; }

/* ---------- skeleton / loading ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 8px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: shimmer 1.4s infinite;
}
[data-theme="blue"] .skeleton::after,
[data-theme="black"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
.mini-loading { color: var(--text-3); font-size: 14px; padding: 16px; text-align: center; }

/* ---------- animation ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes pulse-ring {
  0% { transform: scale(.7); opacity: .7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.animate-in { animation: fade-up .45s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
