/* Support center - visual language of eilon.co (2X): Rubik, black and navy hero, red #E70D3C accent,
   white big-radius cards on a light page, pill buttons. Tokens from the live site CSS (2026-09-23).
   Spacing uses one 4px-based scale (--s-*) so every gap on the page comes from the same rhythm. */
:root {
  --red: #E70D3C;
  --red-hover: #C70A33;
  --red-deep: #67192B;
  --pink: #F13C8A;
  --gradient-cta: linear-gradient(211deg, #E70D3C 30%, #F13C8A 100%);
  --black: #000000;
  --navy: #020029;
  --navy-glass: rgb(0 0 43 / .8);
  --ink: #3d4459;
  --heading: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --field: #FAFAFA;
  --border: #eaeaea;
  --border-2: #e2e8f0;
  --ok: #0a9f58;
  --ok-bg: #e8f8f0;
  --warn: #b45309;
  --warn-bg: #fff7e6;
  --fail: #c70a33;
  --fail-bg: #fdecef;
  --info-bg: #eef2ff;
  --r-field: 12px;
  --r-btn: 30px;
  --r-card: 26px;
  --r-item: 16px;
  --shadow-card: 0 0 30px 0 rgb(0 0 0 / .06);
  --shadow-lift: 0 10px 30px -10px rgb(2 0 41 / .25);
  --container: 1120px;
  --narrow: 760px;
  --header-h: 68px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --pad-card: clamp(20px, 5vw, 32px);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
body.customer { display: flex; flex-direction: column; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgb(231 13 60 / .45); outline-offset: 2px; border-radius: 6px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Inline margins only: main keeps its own top margin (the card overlaps the hero) and bottom padding. */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--s-4)); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#app:focus, #hero-title:focus { outline: none; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy-glass);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: rgb(17 17 26 / .1) 0 4px 16px;
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-size: 17px; font-weight: 500; }
.brand-name small { display: block; font-size: 12px; font-weight: 300; color: rgb(255 255 255 / .66); line-height: 1.2; }
.header-nav { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-2); }
.header-link {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 300; font-size: 15px; background: transparent; border: 0; cursor: pointer;
}
.header-link:hover { color: #fff; background: rgb(255 255 255 / .1); }
.header-link .icon { width: 18px; height: 18px; }
.header-link.pill { border: 1px solid rgb(255 255 255 / .28); }
body.customer .site-header { transition: background .2s, box-shadow .2s; }
body.customer .site-header:not(.scrolled) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------------------------------------------------------------- hero (holds the current question) */
.hero {
  color: #fdfdfd;
  background:
    radial-gradient(60% 80% at 50% -10%, rgb(99 70 255 / .45), transparent 60%),
    radial-gradient(40% 60% at 95% 30%, rgb(231 13 60 / .35), transparent 70%),
    radial-gradient(35% 55% at 0% 70%, rgb(241 60 138 / .22), transparent 70%),
    linear-gradient(180deg, #000 0%, var(--navy) 100%);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--s-7)) 0 calc(var(--s-8) + var(--s-7));
}
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); min-height: 36px; margin-bottom: var(--s-2); }
.eyebrow { color: #ff5a7a; font-size: 16px; font-weight: 400; margin: 0; }
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.2; font-weight: 600; text-shadow: 0 0 10px rgb(0 0 0 / .3); text-wrap: balance; }
.back {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-3) 0 var(--s-4);
  border-radius: 999px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .06);
  color: #fff; font-size: 14px; cursor: pointer;
}
.back:hover { background: rgb(255 255 255 / .14); }
.back .icon { width: 18px; height: 18px; transform: scaleX(-1); }
.not-this {
  min-height: 36px; padding: 0 var(--s-2); border: 0; background: none; cursor: pointer; font-size: 14px;
  color: rgb(255 255 255 / .75); text-decoration: underline; text-underline-offset: 3px;
}
.not-this:hover { color: #fff; }

/* ---------------------------------------------------------------- main */
main { position: relative; z-index: 2; margin-top: calc(-1 * var(--s-8)); padding-bottom: var(--s-8); flex: 1; }
main.admin-main { margin-top: var(--s-5); }
.card {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: var(--pad-card);
}
.card + .card, .stack > * + * { margin-top: var(--s-4); }
/* A section is a step inside the card: separated by a hairline and one fixed gap. */
.section { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.card > .section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section-title { margin: 0 0 var(--s-4); font-size: 19px; font-weight: 600; color: var(--heading); }
.lead-p { margin: 0 0 var(--s-4); }

/* ---------------------------------------------------------------- questionnaire */
.opts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.opt {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 60px; text-align: start;
  padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-item);
  color: var(--heading); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s ease-out;
}
a.opt { text-decoration: none; }
.opt:hover { border-color: rgb(231 13 60 / .55); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.opt:active { transform: none; }
.opt-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #fff0f3, #ffe1e8); color: var(--red); }
.opt-text { display: flex; flex-direction: column; min-width: 0; }
.opt-label { font-size: 17px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.opt-hint { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.opt .chev { width: 18px; height: 18px; margin-inline-start: auto; color: var(--muted-2); }
/* An odd last answer spans the row, so a two-column list never ends with a hole. */
.opts > .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
bdi.ltr { white-space: nowrap; }
.opt:hover .chev { color: var(--red); }

.write { margin-top: var(--s-5); text-align: center; }
.write-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 15px;
}
.write-toggle:hover { color: var(--red); background: var(--surface-soft); }
.write-toggle .icon { width: 18px; height: 18px; }
.ask { text-align: start; }
.ask label { display: block; font-size: 15px; font-weight: 500; color: var(--heading); margin-bottom: var(--s-2); }
.ask textarea {
  display: block; width: 100%; background: var(--field); border: 1px solid var(--border-2); border-radius: var(--r-field);
  padding: var(--s-3) var(--s-4); font-size: 16px; line-height: 1.5; color: var(--heading); resize: vertical; min-height: 96px;
}
.ask textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(231 13 60 / .14); background: #fff; }

/* ---------------------------------------------------------------- answer */
.blocks { font-size: 17px; line-height: 1.7; color: var(--ink); }
.blocks > * { margin: 0 0 var(--s-4); }
.blocks > :last-child { margin-bottom: 0; }
.blocks p, .lead-p, .done p { text-wrap: pretty; }
.blocks h3 { font-size: 18px; color: var(--heading); font-weight: 600; }
.blocks ol, .blocks ul { padding: 0; list-style: none; }
.blocks ol { counter-reset: step; }
.blocks li { position: relative; }
.blocks li + li { margin-top: var(--s-3); }
.blocks ol li { counter-increment: step; padding-inline-start: 44px; min-height: 30px; }
.blocks ol li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center;
}
.blocks ul li { padding-inline-start: 22px; }
.blocks ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.blocks a { font-weight: 500; }
.blocks .cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.blocks .cta-row .btn-primary { color: #fff; }
.blocks .cta-row .btn-ghost { color: var(--heading); }
.blocks .cta-row .btn-ghost:hover { color: var(--red); }

.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.action-row .alert { flex-basis: 100%; margin: 0; }
.secure-note { display: inline-flex; gap: var(--s-2); align-items: center; font-size: 14px; color: var(--muted); }
.secure-note .icon { width: 16px; height: 16px; color: var(--ok); }

.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.feedback-q { font-weight: 600; color: var(--heading); font-size: 17px; }
.feedback-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.thanks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); color: #075e36; font-weight: 500; }

.result-title { margin: 0 0 var(--s-4); font-size: 19px; font-weight: 600; color: var(--heading); }
.result > * + * { margin-top: var(--s-4); }
.result > .result-title + * { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.steps li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-field); font-size: 15px; }
.steps li .icon { width: 20px; height: 20px; margin-top: 2px; }
.steps .ok { background: var(--ok-bg); color: #075e36; }
.steps .warn { background: var(--warn-bg); color: #7c3d06; }
.steps .fail { background: var(--fail-bg); color: #8a0724; }
.steps .info { background: var(--surface-soft); color: var(--heading); }
.orders, .links { display: grid; gap: var(--s-3); }
.order { border: 1px solid var(--border); border-radius: var(--r-item); padding: var(--s-3) var(--s-4); background: #fff; }
.order-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-weight: 500; color: var(--heading); }
.badges { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: #075e36; border-color: #bfe9d3; }
.badge.warn { background: var(--warn-bg); color: #7c3d06; border-color: #fcd9a0; }
.badge.red { background: var(--fail-bg); color: #8a0724; border-color: #f6c2cd; }
.badge.navy { background: #e8e7ff; color: #25207a; border-color: #cfccff; }
.order-meta { font-size: 14px; color: var(--muted); margin-top: var(--s-1); }
.dl { display: flex; gap: var(--s-3); align-items: center; min-height: 52px; padding: var(--s-3) var(--s-4); border-radius: var(--r-item); background: var(--surface-soft); border: 1px solid var(--border); text-decoration: none; color: var(--heading); font-weight: 500; }
.dl:hover { border-color: var(--red); color: var(--red); }
.dl .icon { color: var(--red); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; border: 0; border-radius: var(--r-btn); padding: 0 var(--s-5); font-size: 16px; font-weight: 500; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: transform .2s ease-out, background .2s, box-shadow .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; }
/* One primary style on the whole page: the eilon.co gradient, with a glow that stays inside the card. */
.btn-primary, .btn-cta { background-image: var(--gradient-cta); color: #fff; box-shadow: 0 8px 20px -10px rgb(231 13 60 / .55); }
.btn-primary:hover, .btn-cta:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--heading); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .action-row .btn, .form-actions .btn-cta, .blocks .cta-row .btn, .modal .form-actions .btn-primary { width: 100%; }
  .action-row { justify-content: center; }
}

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: var(--s-4); }
.field label { display: block; font-size: 15px; font-weight: 500; color: var(--heading); margin-bottom: var(--s-2); }
.field label .optional { white-space: nowrap; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--field); border: 1px solid var(--border-2); border-radius: var(--r-field);
  padding: var(--s-3) var(--s-4); font-size: 16px; color: var(--heading); min-height: 48px;
}
.field textarea { display: block; min-height: 96px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(231 13 60 / .14); background: #fff; }
.field input[dir="ltr"] { text-align: right; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: var(--s-1); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--fail); }
.field .err { color: var(--fail); font-size: 13px; margin-top: var(--s-1); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
.form-actions.center { justify-content: center; }
.verified-as { display: inline-flex; gap: var(--s-2); align-items: center; margin: 0 0 var(--s-4); font-size: 14px; background: var(--ok-bg); color: #075e36; border-radius: 999px; padding: 6px var(--s-3); max-width: 100%; overflow-wrap: anywhere; }
.verified-as .icon { width: 16px; height: 16px; }

.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-field); font-size: 15px; margin: var(--s-3) 0 0; }
.card > .alert:first-child { margin: 0 0 var(--s-5); }
.alert.error { background: var(--fail-bg); color: #8a0724; }
.alert.warn { background: var(--warn-bg); color: #7c3d06; }
.alert.ok { background: var(--ok-bg); color: #075e36; }
.alert.info { background: var(--info-bg); color: #25207a; }
form > .alert.info { margin: 0 0 var(--s-4); }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.notice .icon { width: 18px; height: 18px; }
.field-note:not(:empty) { margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-field); background: var(--surface-soft); }
.field-note .blocks { font-size: 16px; }
.ticket-row.static { cursor: default; }
.ticket-row.static:hover { border-color: var(--border-2); }
.followup > * + * { margin-top: var(--s-4); }
.followup > .section-title + * { margin-top: 0; }

.done { text-align: center; }
.done .big-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto var(--s-3); }
.done .big-icon .icon { width: 32px; height: 32px; }
.done h3 { margin: 0 0 var(--s-2); font-size: 22px; color: var(--heading); }
.done p { margin: 0 0 var(--s-2); }
.ref { display: inline-block; font-weight: 700; letter-spacing: 1px; background: var(--navy); color: #fff; padding: 4px var(--s-3); border-radius: 10px; direction: ltr; }

/* ---------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(2 0 41 / .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: var(--s-4); }
.modal {
  width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-card); box-shadow: 0 0 100px 5px rgb(0 0 0 / .33);
  padding: var(--pad-card); position: relative; max-height: calc(100vh - 32px); overflow: auto;
}
.modal h2 { margin: 0 0 var(--s-2); margin-inline-end: var(--s-7); color: var(--heading); font-size: 22px; line-height: 1.3; }
.modal p { margin: 0 0 var(--s-4); }
.modal .form-actions { margin-top: var(--s-4); }
.modal .modal-foot { margin: var(--s-4) 0 0; font-size: 14px; color: var(--muted); }
.modal .close { position: absolute; inset-inline-end: var(--s-3); top: var(--s-3); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--muted); border-radius: 10px; }
.modal .close:hover { color: var(--red); background: var(--surface-soft); }
.code-input { letter-spacing: 10px; font-size: 26px !important; text-align: center !important; font-weight: 600; direction: ltr; }

/* ---------------------------------------------------------------- tickets */
.ticket-list { display: grid; gap: var(--s-3); }
.ticket-row { width: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between; min-height: 60px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-item); padding: var(--s-3) var(--s-4); cursor: pointer; text-align: start; }
.ticket-row:hover { border-color: var(--red); }
.ticket-row .t-title { display: block; font-weight: 500; color: var(--heading); }
.ticket-row .t-meta { display: block; font-size: 13px; color: var(--muted); }
.foot-link { margin: var(--s-5) 0 0; font-size: 15px; }
.foot-link .link-btn { color: var(--muted); }
.thread { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.msg { border-radius: var(--r-item); padding: var(--s-3) var(--s-4); max-width: 88%; white-space: pre-wrap; word-break: break-word; }
.msg .who { font-size: 13px; font-weight: 500; margin-bottom: var(--s-1); opacity: .75; }
.msg.customer { background: var(--surface-soft); border: 1px solid var(--border); margin-inline-start: auto; }
.msg.agent { background: #fff5f7; border: 1px solid #ffd3dd; }
.msg.system { background: none; max-width: 100%; text-align: center; font-size: 13px; color: var(--muted); padding: 2px; }
.timeline-status { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tl { font-size: 13px; padding: var(--s-1) var(--s-3); border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); }
.tl.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--black); color: rgb(255 255 255 / .66); padding: var(--s-5) 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: center; }
.site-footer a { color: rgb(255 255 255 / .8); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.demo-banner { background: #fff3c4; color: #5c4400; text-align: center; font-size: 13px; padding: 6px var(--s-3); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgb(2 0 41 / .15); border-top-color: var(--red); margin: var(--s-4) auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade .22s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- admin */
.admin-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.queue { display: grid; gap: 8px; max-height: calc(100vh - 220px); overflow: auto; padding: 2px; }
.q-item { text-align: start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.q-item:hover, .q-item.active { border-color: var(--red); }
.q-item .q-top { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.q-item .q-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.form-actions select, .toolbar input, .toolbar select { background: #fff; border: 1px solid var(--border-2); border-radius: 12px; padding: 9px 12px; min-height: 42px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--heading); overflow-wrap: anywhere; }
.msg.internal { background: #fff7e6; border: 1px dashed #f5b35b; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 1px solid var(--border-2); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow-card); }
.stat .v { font-size: 30px; font-weight: 700; color: var(--heading); line-height: 1.1; }
.stat .l { font-size: 13px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.bar { height: 8px; background: var(--border); border-radius: 8px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: var(--red); }
pre.json { background: var(--surface-soft); border-radius: 12px; padding: 12px; font-size: 12px; overflow: auto; direction: ltr; text-align: left; max-height: 260px; }
.admin-main .steps { margin: 12px 0; }
.admin-main .orders, .admin-main .links { margin: 12px 0; }
