/* ═══════════════════════════════════════════════════════════════
   E-VISA TOOL — design system
   Tokens → base → layout → components → pages
═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --input-bg: #ffffff;
  --border: #dbe3f0;
  --border-strong: #b9c6dc;
  --text: #121a2b;
  --text-2: #4a5670;
  --text-3: #66728b;
  --primary: #1456c7;
  --primary-hover: #0e44a3;
  --primary-soft: #e8f0fe;
  --primary-ink: #ffffff;
  --success: #0f8a4f;
  --success-soft: #e3f6ec;
  --warn: #a15c00;
  --warn-soft: #fff1d6;
  --danger: #c62d3a;
  --danger-soft: #fdeaec;
  --shadow-sm: 0 1px 2px rgba(18, 26, 43, .06);
  --shadow-md: 0 4px 16px rgba(18, 26, 43, .08);
  --shadow-lg: 0 18px 48px rgba(18, 26, 43, .22);
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 0 0 0 3px rgba(20, 86, 199, .28);
  --glow: 0 0 0 1px rgba(20, 86, 199, .25), 0 8px 24px rgba(20, 86, 199, .14);
  color-scheme: light;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d;
    --surface: #141c31;
    --surface-2: #1c2745;
    --input-bg: #0f1730;
    --border: #2d3c61;
    --border-strong: #4a5e8c;
    --text: #f3f6fd;
    --text-2: #cad4e8;
    --text-3: #9aa8c4;
    --primary: #6ea8ff;
    --primary-hover: #94bfff;
    --primary-soft: #1d3366;
    --primary-ink: #06101f;
    --success: #53d68f;
    --success-soft: #123a27;
    --warn: #ffc25c;
    --warn-soft: #43300d;
    --danger: #ff8a94;
    --danger-soft: #451a20;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px rgba(110, 168, 255, .45);
    --glow: 0 0 0 1px rgba(110, 168, 255, .35), 0 8px 28px rgba(110, 168, 255, .18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0a0f1d;
    --surface: #141c31;
    --surface-2: #1c2745;
    --input-bg: #0f1730;
    --border: #2d3c61;
    --border-strong: #4a5e8c;
    --text: #f3f6fd;
    --text-2: #cad4e8;
    --text-3: #9aa8c4;
    --primary: #6ea8ff;
    --primary-hover: #94bfff;
    --primary-soft: #1d3366;
    --primary-ink: #06101f;
    --success: #53d68f;
    --success-soft: #123a27;
    --warn: #ffc25c;
    --warn-soft: #43300d;
    --danger: #ff8a94;
    --danger-soft: #451a20;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px rgba(110, 168, 255, .45);
    --glow: 0 0 0 1px rgba(110, 168, 255, .35), 0 8px 28px rgba(110, 168, 255, .18);
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--primary); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; }

/* ─── Header ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; flex: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1b6ae0, #0b3a8c); color: #fff;
}
.logo-accent { color: var(--primary); }
.nav { display: flex; gap: 4px; height: 100%; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%;
  color: var(--text-2); text-decoration: none; font-weight: 500; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }

/* ─── Layout ──────────────────────────────────────────────── */
.main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.main.layout { max-width: 1440px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 540px); gap: 24px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
/* the photos are tall: on a short screen the column scrolls by itself, so "Nộp hồ sơ" stays reachable */
@media (min-width: 981px) {
  .layout > .col-aside { max-height: calc(100vh - 96px); overflow-y: auto; margin: -6px; padding: 6px; scrollbar-width: thin; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .col-aside { position: static; order: -1; }
}
@media (max-width: 1100px) { .nav a span { display: none; } .nav a { padding: 0 12px; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--text-2); margin-top: 2px; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.section-title {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-title .ic { color: var(--primary); }
.subsection-title { font-size: 13px; font-weight: 650; color: var(--text-2); margin: 22px 0 12px; text-transform: uppercase; letter-spacing: .04em; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-group-wide { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=date], input[type=search], select {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--text-3); }
input:hover, select:hover { border-color: var(--text-3); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.readonly-field { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d9ab4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; transition: background .15s, border-color .15s, transform .05s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; color: var(--text-2);
}
.btn-icon:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-block { width: 100%; }

/* green, and set apart from the two helper buttons above it: this one sends the application */
.btn-submit {
  width: 100%; height: 48px; margin-top: 6px; font-size: 15px; font-weight: 700; border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #0b7a37); color: #fff;
  box-shadow: 0 6px 18px rgba(14, 122, 58, .35);
}
.btn-submit:hover { filter: brightness(1.08); }

/* ─── Upload ──────────────────────────────────────────────── */
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-box {
  position: relative; aspect-ratio: 3 / 4; border: 2px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-box.has-image { border-style: solid; border-color: var(--success); }
.upload-placeholder { text-align: center; color: var(--text-2); padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.upload-placeholder .ic { width: 26px; height: 26px; color: var(--primary); }
.upload-placeholder p { font-weight: 600; font-size: 13px; }
.upload-hint { font-size: 11px; color: var(--text-3); }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
/* Passport sits on top across the full width, so its text can be read and compared with what the AI
   filled in; the portrait and the two buttons share the row below to keep the column short */
.upload-row { grid-template-columns: 124px minmax(0, 1fr); }
#passportBox { order: -1; grid-column: 1 / -1; aspect-ratio: 3 / 2; }
#portraitBox { aspect-ratio: 3 / 4; }
#portraitBox .upload-preview { object-fit: cover; }

/* Hover over a loaded passport photo to magnify it under the cursor (origin follows the mouse via JS) */
#passportBox .upload-preview { transition: transform .18s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.upload-box.has-image { cursor: zoom-in; }
@media (hover: hover) { #passportBox.has-image:hover .upload-preview { transform: scale(2.6); } }

/* Sample values in empty inputs are hidden unless the user switches them on in Settings,
   so they cannot be mistaken for entered data */
input::placeholder, textarea::placeholder { color: transparent; }
html.show-hints input::placeholder, html.show-hints textarea::placeholder { color: var(--text-3); font-style: italic; opacity: .75; }
.upload-clear {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center;
}
.upload-edit {
  position: absolute; left: 6px; bottom: 6px; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 8px;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600;
}
.upload-edit:hover, .upload-clear:hover { background: var(--primary); }
.upload-actions { display: grid; gap: 10px; align-content: end; }
.ai-status { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; background: var(--primary-soft); }
.ai-status.success { background: var(--success-soft); color: var(--success); }
.ai-status.error { background: var(--danger-soft); color: var(--danger); }

/* ─── Photo editor ────────────────────────────────────────── */
.modal.ie-modal { width: min(1180px, 100%); height: calc(100vh - 40px); }
.ie-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.ie-stage { position: relative; min-width: 0; min-height: 0; margin: 14px; display: grid; place-items: center; touch-action: none; user-select: none; cursor: crosshair; }
.ie-frame { position: relative; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px var(--border-strong); }
.ie-frame canvas { width: 100%; height: 100%; display: block; }
.ie-crop { position: absolute; box-sizing: border-box; border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 0 0 9999px rgba(8, 14, 28, .55); cursor: move; }
.ie-crop.whole { cursor: crosshair; }
.ie-h { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--primary); border-radius: 4px; }
.ie-nw { left: -1px; top: -1px; cursor: nwse-resize; } .ie-ne { right: -1px; top: -1px; cursor: nesw-resize; }
.ie-sw { left: -1px; bottom: -1px; cursor: nesw-resize; } .ie-se { right: -1px; bottom: -1px; cursor: nwse-resize; }
.ie-n { left: calc(50% - 8px); top: -1px; cursor: ns-resize; } .ie-s { left: calc(50% - 8px); bottom: -1px; cursor: ns-resize; }
.ie-w { top: calc(50% - 8px); left: -1px; cursor: ew-resize; } .ie-e { top: calc(50% - 8px); right: -1px; cursor: ew-resize; }
.ie-side { padding: 16px; border-left: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ie-tip { font-size: 12px; color: var(--text-3); }
.ie-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ie-field > span { display: flex; justify-content: space-between; }
.ie-field b { color: var(--text); font-variant-numeric: tabular-nums; }
.ie-field input[type=range] { width: 100%; padding: 0; height: 22px; border: 0; background: transparent; accent-color: var(--primary); box-shadow: none; }
.ie-field small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.ie-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ie-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.ie-foot .small { margin-right: auto; }
.ie-overlay.busy .ie-modal { pointer-events: none; }
@media (max-width: 760px) {
  .modal-overlay.ie-overlay { padding: 0; }
  .modal.ie-modal { height: 100vh; max-height: none; border-radius: 0; }
  .ie-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 42%; }
  .ie-side { border-left: 0; border-top: 1px solid var(--border); }
}

/* ─── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 14, 28, .55); backdrop-filter: blur(3px);
}
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.modal-close { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.settings-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.settings-tab { flex: 1; height: 34px; border: 0; background: transparent; border-radius: 7px; color: var(--text-2); font-weight: 600; }
.settings-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.settings-panel { display: none; flex-direction: column; gap: 14px; }
.settings-panel.active { display: flex; }

/* providers */
.provider-list { display: flex; flex-direction: column; gap: 10px; }
.provider-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.provider-item.active-provider { border-color: var(--primary); background: var(--primary-soft); }
.provider-info { flex: 1; min-width: 0; }
.provider-name { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.provider-meta { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-actions { display: flex; gap: 6px; }
.badge-active { font-size: 10px; letter-spacing: .05em; padding: 2px 7px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); }
.btn-activate { background: var(--primary); color: var(--primary-ink); border: 0; border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: 12px; }
.btn-delete { background: transparent; color: var(--danger); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; }

/* result */
.result-body { align-items: stretch; text-align: center; gap: 16px; }
.result-label { color: var(--text-2); font-size: 13px; }
.result-code {
  margin: 8px 0 12px; padding: 18px 12px; border-radius: 12px; border: 1px solid var(--primary);
  background: var(--primary-soft); color: var(--primary); font-family: var(--mono);
  font-size: clamp(17px, 4.6vw, 26px); font-weight: 700; letter-spacing: .04em; word-break: break-all; user-select: all;
}
.result-link { display: block; margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--primary); font-weight: 600; text-decoration: none; }
.result-link:hover { background: var(--primary-soft); }
.result-actions p { color: var(--text-2); font-size: 13px; }
.result-ok { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.result-ok .ic { width: 28px; height: 28px; stroke-width: 2.6; }

/* loading */
.loading-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(8, 14, 28, .6); backdrop-filter: blur(3px); }
.loading-box { min-width: 260px; padding: 28px 32px; background: var(--surface); border-radius: 16px; text-align: center; box-shadow: var(--shadow-lg); }
.loading-box p { margin-top: 14px; font-weight: 600; }
.loading-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); font-weight: 400; }
.spinner { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } * { transition: none !important; } }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-md); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ═══════════════ Records page ═══════════════ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { font-size: 12px; color: var(--text-2); }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat.paid .stat-value { color: var(--success); }
.stat.unpaid .stat-value { color: var(--warn); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; }
.search .ic { position: absolute; left: 12px; top: 11px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 38px; }
.seg { display: inline-flex; padding: 3px; background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 10px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 600; }
.seg button.active { background: var(--primary); color: var(--primary-ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 980px; }
.table th { position: sticky; top: 0; text-align: left; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.cell-name { font-weight: 650; }
.cell-sub { font-size: 12px; color: var(--text-3); }
.nowrap { white-space: nowrap; }
.copy-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 8px; border-radius: 7px;
  border: 1px solid transparent; background: transparent; font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: left;
}
.copy-chip:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.copy-chip .ic { opacity: .35; }
.copy-chip:hover .ic { opacity: 1; }
.copy-chip.copied { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.copy-chip.copied .ic { opacity: 1; }

.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 650; border: 0; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.paid { background: var(--success-soft); color: var(--success); }
.pill.unpaid { background: var(--warn-soft); color: var(--warn); }
button.pill { cursor: pointer; }
button.pill:hover { filter: brightness(.95); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.empty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.empty .ic { width: 36px; height: 36px; margin-bottom: 10px; }
.tag-warn { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }

@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .main { padding: 16px 12px 48px; }
  .card { padding: 16px; }
}


/* ═══════════════ Theme toggle ═══════════════ */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .ic { position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -9px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.theme-toggle .i-sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-toggle .i-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .i-moon { transform: rotate(0) scale(1); opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
  :root:not([data-theme]) .theme-toggle .i-moon { transform: rotate(0) scale(1); opacity: 1; }
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

/* ═══════════════ Motion ═══════════════ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(27, 106, 224, .5); } 100% { box-shadow: 0 0 0 14px rgba(27, 106, 224, 0); } }

.col-main > .card, .col-aside > .card, .stat, .page-head, .toolbar, .table-wrap {
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.col-main > .card:nth-child(1) { animation-delay: .03s; }
.col-main > .card:nth-child(2) { animation-delay: .08s; }
.col-main > .card:nth-child(3) { animation-delay: .13s; }
.col-main > .card:nth-child(4) { animation-delay: .18s; }
.col-main > .card:nth-child(5) { animation-delay: .23s; }
.col-main > .card:nth-child(6) { animation-delay: .28s; }
.col-aside > .card:nth-child(2) { animation-delay: .1s; }
.stat:nth-child(2) { animation-delay: .06s; }
.stat:nth-child(3) { animation-delay: .12s; }
.toolbar { animation-delay: .15s; }
.table-wrap { animation-delay: .2s; }

.card { transition: box-shadow .25s, border-color .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.stat { transition: transform .25s, box-shadow .25s, border-color .25s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.logo-mark { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.nav a { transition: color .2s; }
.nav a.active::after { animation: fade .3s both; }

.btn { transition: background .2s, border-color .2s, transform .15s, box-shadow .2s, filter .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(20, 86, 199, .35); }
.btn-secondary:hover { box-shadow: var(--shadow-sm); }
.btn .ic { transition: transform .25s; }
.btn:hover .ic { transform: scale(1.12); }
.btn-icon { transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn-icon:hover { transform: translateY(-1px); }

.btn-submit { position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s, filter .2s; }
.btn-submit::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn-submit:hover::after { animation: shine .9s ease; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14, 122, 58, .5); }

input, select { transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus { box-shadow: var(--focus); }
.form-group:focus-within > label { color: var(--primary); }
label { transition: color .2s; }

.upload-box { transition: border-color .2s, background .2s, transform .25s, box-shadow .25s; }
.upload-box:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.upload-box.has-image { animation: pulse-ring .8s ease-out 1; }
.upload-placeholder .ic { transition: transform .3s; }
.upload-box:hover .upload-placeholder .ic { transform: translateY(-3px) scale(1.1); }

.modal-overlay { animation: fade .2s both; }
.modal { animation: pop .3s cubic-bezier(.2, .8, .2, 1) both; }
.result-ok { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) .15s both; }
.toast { animation: toast-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.provider-item { transition: border-color .2s, transform .2s, background .2s; }
.provider-item:hover { transform: translateX(3px); }

.table tbody tr { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms + .25s); transition: background .2s; }
.pill { transition: transform .15s, filter .2s, background .2s, color .2s; }
button.pill:hover { transform: scale(1.05); }
.copy-chip { transition: background .2s, border-color .2s, color .2s, transform .15s; }
.copy-chip:active { transform: scale(.96); }
.copy-chip.copied { animation: pop .25s both; }
.seg button { transition: background .2s, color .2s; }
.stat-value { transition: color .2s; }
.row-actions .btn-icon:hover { color: var(--primary); }

/* After the first paint the list re-renders on every filter/search: no re-run of the entrance animation */
.table tbody.settled tr { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ═══════════════ Background jobs tray ═══════════════ */
.jobs-tray { position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; flex-direction: column-reverse; gap: 10px; width: min(340px, calc(100vw - 32px)); }
.toasts { bottom: auto; top: 72px; }
.job { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-md); animation: pop .3s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s, border-color .2s, box-shadow .2s; }
.job.done, .job.error { cursor: pointer; }
.job.done:hover, .job.error:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.job.done { border-color: var(--success); }
.job.error { border-color: var(--danger); }
.job-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.job-ico.ok { background: var(--success-soft); color: var(--success); }
.job-ico.bad { background: var(--danger-soft); color: var(--danger); }
.job-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.job-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-time { font-variant-numeric: tabular-nums; }
.job-body span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-x { border: 0; background: transparent; color: var(--text-3); width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; }
.job-x:hover { background: var(--surface-2); color: var(--text); }
.mini-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: spin .8s linear infinite; }

/* ─── Accounts, plans, admin ─────────────────────────────────── */
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 13px; max-width: 200px; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 13px; flex: none; }
.user-chip .uname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .user-chip .uname { display: none; } .user-chip { padding: 3px; } }

.plan-banner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; font-weight: 600; font-size: 13px; flex-wrap: wrap; text-align: center; }
.plan-banner.warn { background: var(--warn-soft); color: var(--warn); }
.plan-banner.bad { background: var(--danger-soft); color: var(--danger); }
.plan-banner a { color: inherit; text-decoration: underline; font-weight: 700; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { justify-content: center; margin-bottom: 18px; font-size: 20px; }
.auth-card h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 18px; }
.auth-card .form-group { margin-bottom: 14px; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 12px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.grow { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* meters: remaining time / budget */
.meter { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--success); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--danger); }
.plan-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 6px; font-weight: 600; }
.plan-big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-sub { color: var(--text-2); font-size: 12px; margin-top: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.tag.ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.info { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* package picker */
.pkg { display: grid; gap: 10px; margin: 6px 0 14px; }
.pkg-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.pkg-row .grow b { display: block; }
.pkg-row select { width: 150px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--primary-soft); border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 700; }
.total-bar .amt { font-size: 22px; color: var(--primary); font-variant-numeric: tabular-nums; }
.qr-box { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
@media (max-width: 700px) { .qr-box { grid-template-columns: 1fr; justify-items: center; } }
.qr-box img { width: 240px; max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin-bottom: 12px; }
.kv dt { color: var(--text-2); }
.kv dd { font-weight: 600; word-break: break-all; }
/* plan sharing: group members, requests, find someone */
.share-sub { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.share-list { display: grid; gap: 8px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); animation: fade .25s both; }
.share-row.in { border-color: var(--primary); background: var(--primary-soft); }
.share-row .grow { min-width: 0; }
.share-row .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .acts { display: flex; gap: 6px; flex: none; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 14px; }
.avatar-sm.alt { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.share-find { display: flex; gap: 8px; }
.share-find input { flex: 1; min-width: 0; }
.share-find input::placeholder { color: var(--text-3); }   /* a real hint here, not sample data */
.share-found { margin-top: 10px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); animation: fade .25s both; }
.share-found .seg { display: flex; margin: 12px 0 8px; }
.share-found .seg button { flex: 1; }
.share-found .seg button:disabled { opacity: .45; cursor: not-allowed; }
.share-me { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.share-me code { font: 600 13px var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; }
@media (max-width: 600px) {
  .share-row { flex-wrap: wrap; }
  .share-row .acts { width: 100%; justify-content: flex-end; }
  .share-found .seg { flex-direction: column; }
}
/* red dot on "Gói của tôi" when someone is waiting for an answer */
.nav-dot { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.paid-flash { animation: pop .5s both; text-align: center; padding: 26px; }
.paid-flash .result-ok { margin: 0 auto 12px; }

/* admin */
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.admin-tabs button { background: none; border: 0; padding: 11px 16px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-tabs .count { background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; }
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--danger-soft); color: var(--danger); }
.alert.good { background: var(--success-soft); color: var(--success); }
.stat .stat-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-value.sm { font-size: 20px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
textarea.code { width: 100%; min-height: 150px; padding: 10px 12px; background: var(--input-bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: 13px/1.5 var(--mono); resize: vertical; }
textarea.code:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.table td .btn-sm + .btn-sm { margin-left: 4px; }
.table .tight td, .table.tight td { padding-top: 8px; padding-bottom: 8px; }
.kind-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: 6px 0; }
.kind-bar i { display: block; height: 100%; }
.prov-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; background: var(--surface); }
.prov-card.active { border-color: var(--primary); box-shadow: var(--glow); }
.prov-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text); }
.switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.modal.wide { max-width: 640px; width: 100%; }

/* ─── Admin shell: sidebar + content ─────────────────────────── */
.logo-img { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; box-shadow: 0 2px 8px rgba(20, 86, 199, .35); }
.admin-body .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); }
.side-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 4px 8px 14px; }
.side-logo small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 18px 10px 6px; }
.side-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--text-2); font-weight: 600; text-align: left; transition: background .15s, color .15s; }
.side-nav button:hover { background: var(--surface-2); color: var(--text); }
.side-nav button.active { background: var(--primary-soft); color: var(--primary); }
.side-nav .count { margin-left: auto; color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; min-width: 20px; text-align: center; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-user { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.side-user .user-chip { flex: 1; min-width: 0; max-width: none; }
.content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.topbar h1 { font-size: 20px; }
.topbar p { color: var(--text-2); font-size: 13px; margin-top: 1px; }
.page { padding: 24px 28px 90px; max-width: 1280px; }
.menu-btn, .side-scrim { display: none; }
@media (max-width: 900px) {
  .admin-body .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 70; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
  body.menu-open .side { transform: none; }
  .side-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 14, 28, .5); }
  body.menu-open .side-scrim { display: block; }
  .menu-btn { display: grid; }
  .topbar { padding: 12px 16px; }
  .topbar .btn span { display: none; }
  .page { padding: 16px 16px 80px; }
}
.switch.big { align-items: flex-start; gap: 12px; font-weight: 500; }
.switch.big input { margin-top: 3px; flex: none; }
.savebar { position: sticky; bottom: 0; padding: 14px 0 6px; margin-top: 18px; background: linear-gradient(to top, var(--bg) 55%, transparent); }
.prov-list { display: flex; flex-direction: column; gap: 10px; }
.prov-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.prov-row:hover { border-color: var(--border-strong); }
.prov-row.active { border-color: var(--primary); box-shadow: var(--glow); }
.prov-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); }
.prov-row.active .prov-dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.prov-main { min-width: 0; }
.prov-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prov-price { text-align: right; line-height: 1.4; }
.prov-act { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .prov-row { grid-template-columns: auto 1fr; } .prov-price, .prov-act { grid-column: 2; text-align: left; justify-content: flex-start; } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 650; color: var(--text-2); }
.auth-tabs button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.free-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-weight: 600; margin-bottom: 18px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 1240px) { .admin-body .grid-2 { grid-template-columns: 1fr; } }
.seg { flex-wrap: wrap; }

.order-sum { margin-bottom: 14px; }
.order-sum .sum-row { display: flex; justify-content: space-between; padding: 6px 4px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.order-sum .total-bar { margin-bottom: 0; margin-top: 6px; }

/* yellow "possible duplicate" warning */
.dup-modal { max-width: 520px; width: 100%; border-top: 5px solid #f2b01e; }
.dup-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; background: var(--warn-soft); color: var(--warn); }
.dup-head h2 { font-size: 17px; }
.dup-ico { width: 30px; height: 30px; border-radius: 50%; background: #f2b01e; color: #3b2a00; display: grid; place-items: center; font-weight: 800; flex: none; }
.dup-list { list-style: none; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.dup-list li { padding: 10px 12px; border: 1px solid #f2b01e; background: var(--warn-soft); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); }
.dup-note { color: var(--text-2); font-size: 13px; }
.btn-warn { background: #f2b01e; color: #3b2a00; }
.btn-warn:hover { filter: brightness(1.06); }

/* ═══════════════ Lấy kết quả (results.html) ═══════════════ */
.rs-layout { margin-bottom: 22px; }
.rs-step { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.rs-input {
  width: 100%; min-height: 236px; padding: 12px 14px; resize: vertical;
  background: var(--input-bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: 13px/1.7 var(--mono); transition: border-color .2s, box-shadow .2s;
}
.rs-input:hover { border-color: var(--text-3); }
.rs-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.rs-input[readonly] { background: var(--surface-2); color: var(--text-2); }
textarea.rs-input::placeholder { color: var(--text-3); font-style: normal; opacity: .8; }
.rs-parse { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rs-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 0; }
.rs-chip.ok { background: var(--success-soft); color: var(--success); }
.rs-chip.warn { background: var(--warn-soft); color: var(--warn); }
.rs-chip.bad { background: var(--danger-soft); color: var(--danger); cursor: pointer; }
.rs-chip { animation: pop .25s both; }
.rs-bad { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--text); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; word-break: break-all; }

.rs-folder {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2);
  transition: border-color .2s, background .2s, transform .25s, box-shadow .25s;
}
.rs-folder:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--glow); }
.rs-folder:disabled { cursor: not-allowed; opacity: .7; }
.rs-folder.chosen { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.rs-folder.unsupported { cursor: default; border-style: solid; }
.rs-folder.unsupported:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.rs-folder-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rs-folder.chosen .rs-folder-ico { background: var(--success); color: #fff; }
.rs-folder-ico .ic { width: 22px; height: 22px; }
.rs-folder-text { display: flex; flex-direction: column; min-width: 0; }
.rs-folder-text b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-folder-text small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.rs-opts { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.rs-opts .switch { font-weight: 500; }

.rs-run .btn-block { height: 50px; font-size: 15.5px; border-radius: 10px; }
.rs-go { position: relative; overflow: hidden; background: linear-gradient(135deg, #1b6ae0, #0e44a3); color: #fff; box-shadow: 0 6px 18px rgba(20, 86, 199, .35); }
.rs-go::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); }
.rs-go:hover::after { animation: shine .9s ease; }
.rs-go:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 86, 199, .5); filter: brightness(1.08); }
.rs-progress { margin-top: 14px; }
.rs-meter > i { background: linear-gradient(90deg, var(--primary), var(--success)); }
.rs-progress-text { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rs-progress-text span:first-child { font-weight: 650; color: var(--text); }

.rs-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rs-stats button.stat { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rs-stats .stat.active { border-color: var(--primary); box-shadow: var(--glow); }
.rs-stats .stat.ok .stat-value, .rs-stats .stat.saved .stat-value { color: var(--success); }
.rs-stats .stat.wait .stat-value { color: var(--primary); }
.rs-stats .stat.bad .stat-value { color: var(--danger); }
.rs-stats .stat:nth-child(4) { animation-delay: .18s; }
.rs-stats .stat:nth-child(5) { animation-delay: .24s; }

.rs-table .rs-email { font-family: var(--mono); padding-left: 8px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-table td:first-child { width: 36px; font-variant-numeric: tabular-nums; }
.rs-table .cell-name { white-space: nowrap; }
.rs-note { max-width: 240px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.st-ok { background: var(--success-soft); color: var(--success); }
.pill.st-wait { background: var(--primary-soft); color: var(--primary); }
.pill.st-warn { background: var(--warn-soft); color: var(--warn); }
.pill.st-bad { background: var(--danger-soft); color: var(--danger); }
.pill.st-idle { background: var(--surface-2); color: var(--text-3); }
.pill.st-run { background: var(--primary-soft); color: var(--primary); }
.pill.st-run::before { width: 9px; height: 9px; background: transparent; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.rs-file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.rs-file.ok { color: var(--success); }
.rs-file .mini-spin { width: 13px; height: 13px; }
@keyframes rs-flash { from { background: var(--primary-soft); } to { background: transparent; } }
.rs-table tbody tr.rs-flash td { animation: rs-flash 1.1s ease-out; }
.rs-table tbody tr.rs-flash .pill { animation: pop .3s both; }
.btn-icon:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 760px) { .rs-input { min-height: 180px; } }
/* phones: logo and buttons on top, the whole menu (icons + names) on a second row that scrolls sideways */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 8px 12px 0; row-gap: 4px; }
  .header-actions { flex: none; margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; min-width: 0; height: 42px; margin: 0 -12px; padding: 0 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-top: 1px solid var(--border); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0 11px; gap: 6px; font-size: 13px; }
  .nav a span { display: inline; }
  .nav a.active::after { bottom: 0; }
  .user-chip .uname { display: none; }
}

/* Lấy kết quả: waiting banner, folder layout, customer groups, record picker */
.rs-pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.rs-pending-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 260px; }
.rs-pending-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--primary-ink); }
.rs-pending-ico .ic { width: 16px; height: 16px; }
.rs-pending #pendingTags:not(:empty) { margin-top: 6px; }
.rs-chip.tag { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); cursor: pointer; transition: border-color .2s, color .2s; }
.rs-chip.tag:hover { border-color: var(--primary); color: var(--primary); }
.rs-two { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rs-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 9px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 12px; color: var(--text-2); }
.rs-preview span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.rs-preview i { font-style: normal; color: var(--text-3); margin: 0 2px; }
.rs-preview .ic { width: 13px; height: 13px; color: var(--primary); }
.rs-preview > span:last-of-type, .rs-preview-alt > span:last-of-type { font-family: var(--mono); color: var(--text); word-break: break-all; }
.rs-preview-alt { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--border-strong); }
/* imported Excel files: one chip each, with a small x to take the file out again */
.rs-chip.info { background: var(--primary-soft); color: var(--primary); }
.rs-chip-x { display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 -4px 0 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.rs-chip-x:hover { background: var(--primary); color: var(--primary-ink); }
.rs-chip-x .ic { width: 11px; height: 11px; }
.rs-tag .ic { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.rs-input.drop { border-color: var(--primary); border-style: dashed; background: var(--primary-soft); }
.rs-tag { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.rs-path { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.rs-tag-filter { width: auto; min-width: 180px; }
.rs-stats .stat.warn .stat-value { color: var(--warn); }
.rs-stats .stat:nth-child(6) { animation-delay: .3s; }
.rs-fix { height: 30px; padding: 0 10px; font-size: 12.5px; color: var(--warn); border-color: var(--warn); text-decoration: none; white-space: nowrap; }
.rs-fix:hover { background: var(--warn-soft); }

.modal.rs-pick { width: min(880px, 100%); height: min(760px, calc(100vh - 40px)); }
.rs-pick-filters { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rs-pick-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rs-pick-row > select { width: auto; flex: 0 1 220px; }
.rs-pick-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.rs-range button { height: 30px; padding: 0 11px; font-size: 13px; }
.rs-dates { display: inline-flex; align-items: center; gap: 6px; }
.rs-dates input { width: 150px; height: 34px; }
.rs-pick-q { flex: 1 1 200px; }
.rs-pick-list { flex: 1; gap: 12px; padding: 14px 20px; }
.rs-group { flex: none; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.rs-group-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); cursor: pointer; position: sticky; top: -14px; z-index: 1; }
.rs-pick-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text); font-weight: 400; cursor: pointer; transition: background .15s; }
.rs-pick-item:first-of-type { border-top: 0; }
.rs-pick-item:hover { background: var(--surface-2); }
.rs-pick-main { display: flex; flex-direction: column; min-width: 0; }
.rs-pick-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-pick-res { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.rs-pick input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.rs-pick-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.rs-pick-foot .check b { color: var(--text); }
@media (max-width: 640px) {
  .rs-pick-item { grid-template-columns: auto minmax(0, 1fr); }
  .rs-pick-item > .rs-tag, .rs-pick-item > span:empty { grid-column: 2; justify-self: start; }
  .rs-pick-res { grid-column: 2; justify-content: flex-start; }
  .rs-pick-foot .btn { flex: 1 1 auto; }
}
button.rs-tag { border: 0; cursor: pointer; font-family: inherit; }
button.rs-tag:hover { filter: brightness(.95); }
.rs-tag.empty { background: transparent; color: var(--text-3); border: 1px dashed var(--border-strong); opacity: 0; transition: opacity .2s; }
.table tr:hover .rs-tag.empty, .rs-tag.empty:focus-visible { opacity: 1; }
@media (max-width: 980px) { .rs-layout .col-aside { order: 0; } }

/* Danh sách hồ sơ: email under the code, paging */
.rec-email { margin-top: 2px; }
.rec-email .copy-chip { font-size: 11.5px; color: var(--text-3); padding: 2px 8px; }
.rec-email .copy-chip:hover { color: var(--primary); }
.table .cell-name { min-width: 170px; }
.pay-btn { color: var(--success); }
.row-actions .pay-btn:hover { color: var(--success); background: var(--success-soft); }
.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pager-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pager-size { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-2); font-size: 12.5px; }
.pager-size select { width: auto; height: 32px; padding: 0 30px 0 10px; }
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager:empty { display: none; }
.pager button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, color .2s; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager-gap { padding: 0 4px; color: var(--text-3); }
@media (max-width: 760px) { .pager-bar { justify-content: center; } .pager-actions { width: 100%; justify-content: center; } }
.rec-table th, .rec-table td { padding-left: 10px; padding-right: 10px; }
.rec-table .row-actions { gap: 2px; }
.rec-table .row-actions .btn-icon { width: 32px; height: 32px; }
.rec-table .rec-email .copy-chip { max-width: 210px; white-space: nowrap; word-break: normal; }
.rec-table .rec-email .copy-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rec-table .rs-note { max-width: 160px; }
/* picker on a phone: full screen, filters on few lines, the list gets the room */
@media (max-width: 640px) {
  .modal-overlay:has(.rs-pick) { padding: 0; }
  .modal.rs-pick { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .rs-pick .modal-header { padding: 12px 14px; }
  .rs-pick-filters { padding: 10px 14px; gap: 8px; }
  .rs-pick-label { display: none; }
  .rs-range { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .rs-range::-webkit-scrollbar { display: none; }
  .rs-range button { flex: none; }
  .rs-pick-row > select { flex: 1 1 0; min-width: 0; height: 36px; font-size: 13px; padding-left: 10px; }
  .rs-pick-row > .check { flex-basis: 100%; }
  .rs-pick-q { flex-basis: 100%; }
  .rs-pick-q input { height: 36px; }
  .rs-pick-list { padding: 10px 14px; }
  .rs-pick-foot { padding: 10px 14px; gap: 8px; }
  .rs-pick-foot .grow { display: none; }
  .rs-pick-foot .btn { flex: 1 1 40%; height: 40px; padding: 0 10px; font-size: 13.5px; white-space: nowrap; }
  .rs-pick-foot .check { font-size: 12.5px; }
}

/* ─── sortable columns (TableTools.sorter) ─────────────────────── */
.table th[data-sort] { cursor: pointer; user-select: none; transition: color .15s; }
.table th[data-sort]:hover, .table th[data-sort]:focus-visible { color: var(--text); outline: none; }
.table th[data-sort]::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; opacity: 0; transition: opacity .15s, transform .2s; }
.table th[data-sort]:hover::after { opacity: .35; }
.table th.sorted { color: var(--primary); }
.table th.sorted::after { opacity: 1; }
.table th.sorted[data-dir="asc"]::after { transform: translateY(-4px) rotate(180deg); }
.sort-ctl { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text-3); }
.sort-ctl select { width: auto; height: 38px; border: 0; background: transparent; padding: 0 28px 0 4px; box-shadow: none !important; }
.sort-ctl .sort-dir { width: 32px; height: 32px; margin-right: 3px; }
.sort-ctl .sort-dir[data-dir="desc"] .ic { transform: scaleY(-1); }

/* ─── choosing many records: export to Excel / put into a group ── */
.pick-bar { position: sticky; top: 72px; z-index: 20; display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); animation: pop .25s both; }
.pick-bar[hidden] { display: none; }
.pick-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pick-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.pick-count b { color: var(--primary); }
.pick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pick-row > .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); }
.pick-row input[type=text] { width: 240px; height: 34px; }
.pick-bar .rs-chip.tag.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pick-close { margin-left: auto; }
.rec-table .pick-col { width: 38px; padding-right: 0; }
.rec-table input.pick { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.rec-table.picking tbody tr { cursor: pointer; }
.rec-table tbody tr.picked td { background: var(--primary-soft); }
@media (max-width: 760px) { .pick-bar { top: 112px; } .pick-row input[type=text] { width: 100%; } }

/* ─── light / dark: a circle grows out of the toggle (View Transitions) ── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ─── searchable drop-down (TableTools.combo) ──────────────────── */
.combo { position: relative; display: inline-block; }
.combo > input[type=text] { width: 280px; height: 34px; }
.combo-list { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(380px, 90vw); max-height: 264px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-md); animation: fade .12s both; }
.combo-list[hidden] { display: none; }
.combo-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.combo-opt:hover, .combo-opt.active { background: var(--surface-2); }
.combo-opt.active { box-shadow: inset 2px 0 0 var(--primary); }
.combo-opt.on .combo-label { color: var(--primary); font-weight: 650; }
.combo-opt.new { color: var(--primary); font-weight: 600; }
.combo-check { width: 14px; flex: none; text-align: center; color: var(--primary); font-weight: 700; }
.combo-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-sub { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.combo-none { padding: 9px 10px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 760px) { .combo, .combo > input[type=text] { width: 100%; } }
.pick-row input::placeholder { color: var(--text-3); }   /* real hints here, not sample data */
