/* ==========================================================================
   SaaS 平台 · 多商户运营中台
   Base: design tokens, reset, typography, controls, overlays
   ========================================================================== */

:root {
  --brand: #ef6a2b;
  --brand-strong: #d65417;
  --brand-deep: #a83c0d;
  --brand-soft: #fff0e5;
  --brand-tint: #fff8f3;

  --ink: #11191d;
  --ink-2: #172228;
  --ink-3: #213038;
  --ink-4: #2b3d45;

  --canvas: #f4f2ed;
  --canvas-2: #eeece5;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f6f4ef;

  --line: #e9e5dd;
  --line-strong: #ddd7cc;
  --line-dark: rgba(255, 255, 255, 0.09);

  --text: #1b1d1d;
  --text-2: #555955;
  --text-3: #74736b;
  --text-inverse: #f6f4ef;

  --green: #16855f;
  --green-soft: #e8f6f0;
  --green-line: #c9eadc;
  --amber: #a96d16;
  --amber-soft: #fcf3e2;
  --amber-line: #f0ddba;
  --red: #c84035;
  --red-soft: #fdeeeb;
  --red-line: #f2cec9;
  --blue: #3365c8;
  --blue-soft: #edf2fd;
  --blue-line: #d4dff7;

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(30, 27, 21, 0.04);
  --shadow-sm: 0 1px 2px rgba(30, 27, 21, 0.03), 0 4px 14px rgba(30, 27, 21, 0.035);
  --shadow-md: 0 2px 5px rgba(30, 27, 21, 0.04), 0 16px 34px rgba(30, 27, 21, 0.07);
  --shadow-lg: 0 30px 70px rgba(20, 18, 13, 0.18);
  --shadow-brand: 0 8px 22px rgba(239, 106, 43, 0.24);

  --sidebar-width: 252px;
  --topbar-height: 68px;
  --content-max: 1440px;

  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------------------ Reset ---------------------------------- */

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

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

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img,
svg {
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  color: var(--ink);
  background: #ffd9c1;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #cfc9be transparent;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-thumb {
  background: #d3cdc2;
  border: 2px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: #bcb5a8;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* --------------------------- Typography -------------------------------- */

.display {
  font-size: clamp(37px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--brand);
}

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

.subtle {
  color: var(--text-3);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ------------------------------ Layout --------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.grow { flex: 1; min-width: 0; }

/* ------------------------------ Buttons -------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: #cec7bb;
}

.btn-ghost {
  color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgba(25, 23, 18, 0.05);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-dark:hover:not(:disabled) {
  background: var(--ink-3);
}

.btn-danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 18px -12px rgba(200, 64, 53, 0.72);
}
.btn-danger:hover:not(:disabled) {
  background: #ad372e;
  border-color: #ad372e;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 15.5px;
  border-radius: 9px;
}
.btn-sm svg {
  width: 15px;
  height: 15px;
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 17.5px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(25, 23, 18, 0.055);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.icon-btn.is-bordered {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.btn .spinner,
.icon-btn .spinner {
  width: 16px;
  height: 16px;
}

/* ------------------------------- Forms --------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
}
.field-label .optional {
  color: var(--text-3);
  font-weight: 400;
}

.field-hint {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.45;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 16.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: #b2aea6;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #cbc4b7;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(239, 106, 43, 0.12);
}
.input.is-invalid,
.select.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 64, 53, 0.09);
}
.textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360635f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}

.input-group {
  position: relative;
}
.input-group .input {
  padding-left: 38px;
}
.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-group .input-action {
  position: absolute;
  top: 50%;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-3);
  border-radius: 7px;
  transform: translateY(-50%);
}
.input-group .input-action:hover {
  color: var(--text);
  background: var(--surface-3);
}
.input-group .input-action svg {
  width: 17px;
  height: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: span 2;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.checkbox .box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: #fff;
  transition: all 0.15s ease;
}
.checkbox .box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}
.checkbox input:checked + .box {
  background: var(--brand);
  border-color: var(--brand);
}
.checkbox input:checked + .box svg {
  opacity: 1;
  transform: scale(1);
}
.checkbox input:focus-visible + .box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 99px;
  background: #d9d4cb;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease-snap);
}
.switch.is-on {
  background: var(--brand);
}
.switch.is-on::after {
  transform: translateX(16px);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: 9px;
  font-size: 15.5px;
}
.form-error svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

/* ------------------------------ Surfaces -------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.divider {
  height: 1px;
  background: var(--line);
}

/* ------------------------------ Badges ---------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.no-dot::before {
  display: none;
}
.badge-active {
  color: var(--green);
  background: var(--green-soft);
  border-color: var(--green-line);
}
.badge-trial {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-line);
}
.badge-suspended {
  color: var(--red);
  background: var(--red-soft);
  border-color: var(--red-line);
}
.badge-closed {
  color: #77746c;
  background: #f2f0eb;
  border-color: #e5e1d9;
}
.badge-neutral {
  color: var(--text-2);
  background: var(--surface-3);
  border-color: var(--line);
}
.badge-brand {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: #f8d9c5;
}
.badge-dark {
  color: #f5f2ec;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-brand {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: #f8ddcb;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0;
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ------------------------------ Avatar ---------------------------------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  color: #7c4a2d;
  background: #f6e2d3;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  user-select: none;
}
.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
}
.avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 19.5px;
}
.avatar[data-tone="sage"] { color: #315f4f; background: #dfece5; }
.avatar[data-tone="sky"] { color: #31577a; background: #deebf4; }
.avatar[data-tone="clay"] { color: #7c4a2d; background: #f6e2d3; }
.avatar[data-tone="plum"] { color: #624268; background: #eee0ef; }
.avatar[data-tone="sand"] { color: #6e5c36; background: #f1e8d4; }
.avatar[data-tone="rose"] { color: #7b3d45; background: #f4dfe1; }

.avatar-stack {
  display: flex;
}
.avatar-stack .avatar {
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* ------------------------------ Progress -------------------------------- */

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.5s var(--ease-out);
}
.progress.is-green > span { background: var(--green); }
.progress.is-amber > span { background: var(--amber); }
.progress.is-red > span { background: var(--red); }

/* ------------------------------ Spinner --------------------------------- */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-dark {
  border-color: rgba(27, 29, 29, 0.16);
  border-top-color: var(--text);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------ Skeleton -------------------------------- */

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #edeae3;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ------------------------------- Modal ---------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 20, 19, 0.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal-backdrop.is-open {
  opacity: 1;
}
.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.24s ease;
}
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal.modal-lg { width: min(760px, 100%); }
.modal.modal-sm { width: min(430px, 100%); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 0;
}
.modal-title {
  font-size: 21.5px;
  letter-spacing: -0.025em;
}
.modal-desc {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-close {
  margin: -6px -8px 0 0;
}

/* ------------------------------- Drawer --------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 20, 19, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(570px, 100%);
  background: var(--surface);
  box-shadow: -24px 0 70px rgba(20, 18, 13, 0.16);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer-head {
  flex: none;
  padding: 20px 24px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
  background: var(--surface-2);
}
.drawer-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ------------------------------- Toast ---------------------------------- */

.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 9px;
  width: min(370px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: toast-in 0.34s var(--ease-out) both;
}
.toast.is-leaving {
  animation: toast-out 0.2s ease both;
}
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
}
.toast-icon svg {
  width: 15px;
  height: 15px;
}
.toast.is-error .toast-icon {
  color: var(--red);
  background: var(--red-soft);
}
.toast.is-info .toast-icon {
  color: var(--blue);
  background: var(--blue-soft);
}
.toast-text {
  padding-top: 2px;
  font-size: 15.5px;
  line-height: 1.5;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(4px); }
}

/* ----------------------------- Empty state ------------------------------ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.empty-icon svg {
  width: 22px;
  height: 22px;
}
.empty-title {
  font-size: 17px;
  font-weight: 500;
}
.empty-text {
  max-width: 300px;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 15.5px;
}

/* ------------------------------- Utility -------------------------------- */

.hidden { display: none !important; }
.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;
}
.no-scroll { overflow: hidden; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* --------------------------- Reduced motion ----------------------------- */

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

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(30px);
  }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 18px 20px; }
  .modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .drawer { width: 100%; }
  .toast-root {
    right: 16px;
    bottom: 16px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
