/* RocketDemand design system — admin, provider panel and customer app */
:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --navy: #141b34;
  --navy-2: #1c2547;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e9f2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --green: #16a34a;
  --green-50: #ecfdf5;
  --orange: #f59e0b;
  --orange-50: #fffbeb;
  --red: #e11d48;
  --red-50: #fff1f2;
  --blue: #2563eb;
  --blue-50: #eff6ff;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 264px;
  --topbar-h: 64px;
}

[data-theme="dark"] {
  --ink: #e8ecf7;
  --muted: #97a3bd;
  --line: #253052;
  --bg: #0c1225;
  --card: #141c33;
  --navy: #0a0f20;
  --navy-2: #121a31;
  --brand-50: #1e2547;
  --green-50: #0d2a1c;
  --orange-50: #2e2208;
  --red-50: #33101d;
  --blue-50: #0d2140;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
img { max-width: 100%; }

/* ------------------------------------------------------------------ shell */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: #cbd5f5;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform .25s ease;
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  font-weight: 800; font-size: 17px; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar__brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: grid; place-items: center; color: #fff; font-size: 18px; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
.nav-group { margin-bottom: 6px; }
.nav-group__title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: #64749f; padding: 14px 12px 6px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: 10px; color: #c3ccea; cursor: pointer;
  font-size: 14px; font-weight: 500; user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.is-active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .9); }
.nav-item__icon { width: 20px; text-align: center; opacity: .95; }
.nav-item__badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10px;
  padding: 1px 7px; border-radius: 20px; font-weight: 700;
}
.nav-item__caret { margin-left: auto; opacity: .6; font-size: 11px; }
.nav-sub { display: none; padding-left: 14px; }
.nav-group.is-open .nav-sub { display: block; }
.nav-sub .nav-item { font-size: 13px; padding: 7px 12px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.topbar__search { position: relative; flex: 1; max-width: 420px; }
.topbar__search input {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.topbar__search span { position: absolute; left: 12px; top: 9px; color: var(--muted); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; position: relative; font-size: 15px;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn__dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; font-weight: 700; color: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 30px; background: var(--bg); }
.user-chip__name { font-weight: 600; font-size: 13px; }
.user-chip__role { font-size: 11px; color: var(--muted); }

.content { padding: 22px; flex: 1; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.page-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ widgets */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card__head .card__actions { margin-left: auto; display: flex; gap: 8px; }
.card__body { padding: 18px; }

.stat { padding: 18px; border-radius: var(--radius); color: #fff; position: relative; overflow: hidden; min-height: 108px; }
.stat__label { font-size: 12px; opacity: .9; font-weight: 600; text-transform: capitalize; }
.stat__value { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat__foot { margin-top: 8px; font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.stat__icon { position: absolute; right: 14px; top: 14px; font-size: 26px; opacity: .35; }
.stat--brand { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.stat--green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.stat--orange { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.stat--red { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.stat--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.stat--violet { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.stat--cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.stat--slate { background: linear-gradient(135deg, #475569, #64748b); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--danger { background: var(--red); }
.btn--success { background: var(--green); }
.btn--warning { background: var(--orange); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap;
}
.badge--success { background: var(--green-50); color: var(--green); }
.badge--warning { background: var(--orange-50); color: var(--orange); }
.badge--danger { background: var(--red-50); color: var(--red); }
.badge--info { background: var(--blue-50); color: var(--blue); }
.badge--brand { background: var(--brand-50); color: var(--brand); }
.badge--violet { background: #f3e8ff; color: var(--violet); }
[data-theme="dark"] .badge--violet { background: #2a1d4d; color: #c4b5fd; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 11px 14px; color: var(--muted); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .06em; background: var(--bg); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:hover { background: var(--bg); }
table.data td.actions { text-align: right; white-space: nowrap; }
.td-media { display: flex; align-items: center; gap: 10px; }
.td-media img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--bg); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); min-width: 150px;
}
.toolbar input:focus, .toolbar select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.toolbar__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); width: 100%;
}
.field textarea { min-height: 92px; resize: vertical; }
.field__hint { font-size: 11.5px; color: var(--muted); }
.field__error { font-size: 11.5px; color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }

.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pagination button {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
}
.pagination button.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination button:disabled { opacity: .4; }
.pagination__info { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 12, 26, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
.modal--lg { max-width: 860px; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal__head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.modal__close { margin-left: auto; background: transparent; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ------------------------------------------------------------------ toast */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); min-width: 240px; max-width: 380px;
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--red); }
.toast--warning { border-left-color: var(--orange); }
.toast strong { display: block; font-size: 13px; margin-bottom: 2px; }
.toast span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 10% -10%, #4338ca 0%, transparent 55%),
              radial-gradient(900px 500px at 110% 10%, #0ea5e9 0%, transparent 50%), #0b1020; }
.auth__card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.auth__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.auth__brand .logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: grid; place-items: center; color: #fff; font-size: 21px; }
.auth h1 { font-size: 20px; margin: 0 0 2px; font-weight: 800; }
.auth p.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.auth__demo { margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 12px; color: var(--muted); }
.auth__demo code { color: var(--ink); font-weight: 700; }
.auth__tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.auth__tabs button { flex: 1; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.auth__tabs button.is-active { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ misc */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty__icon { font-size: 34px; opacity: .35; }
.empty h4 { margin: 10px 0 4px; color: var(--ink); font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, var(--line) 50%, var(--bg) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.chart { width: 100%; height: 220px; }
.chart text { font-size: 10px; fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline li:last-child { border-left-color: transparent; }
.timeline__time { font-size: 11.5px; color: var(--muted); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.form-builder__field { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.mobile-only { display: none; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .mobile-only { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ customer app */
.app-shell { min-height: 100vh; background: var(--bg); display: flex; justify-content: center; }
.app {
  width: 100%; max-width: 480px; background: var(--bg); min-height: 100vh;
  position: relative; box-shadow: 0 0 50px rgba(15, 23, 42, .12);
}
.app__header {
  position: sticky; top: 0; z-index: 20; background: var(--card);
  border-bottom: 1px solid var(--line); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.app__header h2 { margin: 0; font-size: 16px; font-weight: 800; }
.app__header .avatar { width: 34px; height: 34px; }
.app__body { padding: 16px 16px 96px; }
.app__nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 25;
}
.app__nav button {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.app__nav button span:first-child { font-size: 19px; }
.app__nav button.is-active { color: var(--brand); }
.app-hero { border-radius: 18px; padding: 18px; background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #22d3ee); color: #fff; }
.app-hero h1 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.app-hero p { margin: 0 0 14px; opacity: .9; font-size: 12.5px; }
.app-search { display: flex; gap: 8px; background: #fff; border-radius: 12px; padding: 8px; }
.app-search input { flex: 1; border: 0; outline: none; background: transparent; color: #0f172a; padding: 4px; }
.app-search button { border: 0; border-radius: 9px; background: var(--brand); color: #fff; width: 38px; }
.app-section { margin-top: 20px; }
.app-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-section__head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.app-section__head a { font-size: 12px; font-weight: 700; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-item { text-align: center; }
.cat-item__icon {
  width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 18px; background: var(--card);
  display: grid; place-items: center; font-size: 24px; box-shadow: var(--shadow); color: var(--brand);
}
.cat-item span { font-size: 11px; font-weight: 700; color: var(--ink); display: block; line-height: 1.25; }
.svc-card { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 11px; margin-bottom: 12px; box-shadow: var(--shadow); }
.svc-card__img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.svc-card__body { flex: 1; min-width: 0; }
.svc-card__title { font-weight: 700; font-size: 13.5px; margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card__meta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.svc-card__price { font-weight: 800; color: var(--brand); font-size: 14px; }
.svc-card__fav { border: 0; background: var(--bg); width: 28px; height: 28px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.star { color: #f59e0b; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 12px; }
.app-list-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow); }
.app-list-item__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 19px; }
.app-list-item__body { flex: 1; min-width: 0; }
.app-list-item__body h4 { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; }
.app-list-item__body p { margin: 0; font-size: 11.5px; color: var(--muted); }
.app-list-item__arrow { color: var(--muted); }
.app-sheet { position: fixed; inset: 0; background: rgba(8, 12, 26, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.app-sheet__panel { width: 100%; max-width: 480px; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px; max-height: 88vh; overflow-y: auto; animation: up .22s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.app-sheet__grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.chat-bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 13px; margin-bottom: 8px; line-height: 1.45; }
.chat-bubble--me { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble--them { background: var(--bg); border-bottom-left-radius: 4px; }
.rating-input { display: flex; gap: 4px; }
.rating-input button { border: 0; background: none; font-size: 26px; color: #cbd5e1; cursor: pointer; }
.rating-input button.is-on { color: #f59e0b; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.price-box { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.price-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--muted); }
.price-row--total { font-size: 15px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }

/* ------------------------------------------------------------ form widgets */
.input--code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
.input--multi {
  min-height: 110px;
  padding: 8px;
}
/* The file input stays in the DOM (a hidden input is not announced by a
   screen reader and cannot be driven by a test), it is only invisible. */
.input-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.field__preview {
  display: block;
  margin-top: 8px;
  max-width: 160px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.field--json .field__hint,
.field--datetime .field__hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

/* the sort button of a column header */
.th-sort {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: inherit; text-align: inherit;
  display: inline-flex; align-items: center; gap: 3px;
}
.th-sort:hover { color: var(--brand); }
