:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6eb;
  --border-strong: #cfd4dc;
  --text: #1a1f29;
  --text-2: #5b6474;
  --text-3: #8a93a3;
  --accent: #0b2b4c;          /* SMSWise navy */
  --accent-hover: #15406b;
  --accent-soft: #e6f6ee;     /* tint of the logo green */
  --accent-ink: #ffffff;      /* text on accent */
  --brand-green: #16a865;
  --link: #0f6b46;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar: 232px;

  --b-green-bg: #e7f6ec; --b-green: #17723a;
  --b-blue-bg: #e8f0fe; --b-blue: #1d4ed8;
  --b-amber-bg: #fef3e2; --b-amber: #9a5b06;
  --b-violet-bg: #f1ebfe; --b-violet: #6d28d9;
  --b-gray-bg: #eef0f3; --b-gray: #4b5563;
  --b-red-bg: #fdecec; --b-red: #b42318;
  --b-teal-bg: #e3f6f5; --b-teal: #0f766e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3ddc97;
    --accent-hover: #6ae6b0;
    --accent-soft: #143528;
    --accent-ink: #052016;
    --brand-green: #3ddc97;
    --link: #5fe0a6;
    --bg: #0f1218;
    --surface: #171b23;
    --surface-2: #1e232d;
    --border: #2a303b;
    --border-strong: #3a4250;
    --text: #e6e9ef;
    --text-2: #a3abb9;
    --text-3: #747d8c;
    --danger: #f87171;
    --danger-soft: #3a1d1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    --b-green-bg: #12301f; --b-green: #6ee7a0;
    --b-blue-bg: #172544; --b-blue: #93b4fd;
    --b-amber-bg: #3a2a10; --b-amber: #fbbf5a;
    --b-violet-bg: #2a1d4a; --b-violet: #c4b5fd;
    --b-gray-bg: #262b34; --b-gray: #b2bac7;
    --b-red-bg: #3a1a1a; --b-red: #fca5a5;
    --b-teal-bg: #12302e; --b-teal: #5eead4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }
.boot { padding: 40px; color: var(--text-2); }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.brand-name { font-weight: 650; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: var(--text-3); }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--brand-green); }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 10px 4px; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 12px 14px; font-size: 13px; }
.sidebar-foot .who { font-weight: 600; }
.sidebar-foot .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sidebar-foot button.link { font-size: 12.5px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 24px 28px 48px; max-width: 1600px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons & inputs ---------- */
button { font: inherit; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  border: 0; background: transparent; color: var(--text-2); width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
button.link { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; }
button.link:hover { text-decoration: underline; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 10px; height: 34px; width: 100%;
}
textarea { padding: 8px 10px; height: auto; min-height: 72px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-body { padding: 16px; }
.card + .card { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .card + .card { margin-top: 0; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 360px; }
.toolbar .search input { padding-left: 32px; }
.toolbar .search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--text-3); }
.toolbar select, .toolbar .f-input { width: auto; min-width: 130px; max-width: 200px; }
.toolbar .f-num { width: 100px; min-width: 0; }
.toolbar .spacer { flex: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0;
}
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--text); }
table.data th .arrow { opacity: .35; margin-left: 3px; }
table.data th.sorted .arrow { opacity: 1; color: var(--accent); }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.inline { cursor: pointer; position: relative; }
table.data td.inline:hover { box-shadow: inset 0 0 0 1px var(--border-strong); border-radius: 4px; }
table.data td.inline input, table.data td.inline select { height: 28px; padding: 0 6px; min-width: 90px; }
table.data td.actions { width: 1%; white-space: nowrap; text-align: right; }
table.data .strong { font-weight: 600; }
table.data tr.dim td { opacity: .6; }
.empty { padding: 40px 16px; text-align: center; color: var(--text-2); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.pager .pages { display: flex; gap: 6px; align-items: center; }
.pager select { width: auto; height: 28px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 550;
  white-space: nowrap; background: var(--b-gray-bg); color: var(--b-gray); line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.green { background: var(--b-green-bg); color: var(--b-green); }
.badge.blue { background: var(--b-blue-bg); color: var(--b-blue); }
.badge.amber { background: var(--b-amber-bg); color: var(--b-amber); }
.badge.violet { background: var(--b-violet-bg); color: var(--b-violet); }
.badge.red { background: var(--b-red-bg); color: var(--b-red); }
.badge.teal { background: var(--b-teal-bg); color: var(--b-teal); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.warn-dot { color: var(--b-amber); font-weight: 700; }
.below-min { color: var(--b-red); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: none; padding: 10px 12px; color: var(--text-2); font-weight: 550; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 14px; cursor: pointer; color: var(--text-2); font-weight: 550; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Definition lists ---------- */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 20px; }
.dl dt { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.dl dd { margin: 0; word-break: break-word; }
.dl .wide { grid-column: 1 / -1; }
.pre { white-space: pre-wrap; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 18, 24, .45); display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; z-index: 50; overflow-y: auto;
}
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; border: 1px solid var(--border); }
.modal.wide { max-width: 860px; }
.modal.xwide { max-width: 1100px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; display: block; }
.field .lbl .req { color: var(--danger); }
.field .help { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.field.full { grid-column: 1 / -1; }
.field.check { display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.field .err { font-size: 12px; color: var(--danger); margin-top: 3px; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.form-section { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 13px; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--text-2); }
.note.info { background: var(--b-blue-bg); color: var(--b-blue); border-color: transparent; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .card-body { padding: 28px; }
.auth-card h1 { margin: 14px 0 4px; }
.auth-card form { display: grid; gap: 12px; margin-top: 18px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; max-width: 380px; animation: slide-in .18s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes slide-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Vendor profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.profile-head .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; min-width: 120px; }
.stat .v { font-size: 20px; font-weight: 650; }
.stat .k { font-size: 12px; color: var(--text-3); }
.contact-list { display: grid; gap: 10px; }
.contact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.contact .lines { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.history-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.history-item:last-child { border-bottom: 0; }
.history-item .when { color: var(--text-3); min-width: 140px; }
.history-item .diff { color: var(--text-2); margin-top: 2px; font-size: 12.5px; }
.secret-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Compare ---------- */
.compare-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.compare-filters .field .lbl { margin-bottom: 3px; }
.compare-filters .checks { padding: 2px 0; }
.compare-filters .status-field { grid-column: span 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .compare-filters .status-field { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
  }
  .layout.nav-open .sidebar { transform: none; }
  .layout.nav-open .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 30; }
  .topbar {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
  }
  .content { padding: 16px 16px 40px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .field.check { padding-top: 0; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select, .toolbar .f-input { flex: 1 1 140px; max-width: none; }
  .modal-backdrop { padding: 0; }
  .modal, .modal.wide, .modal.xwide { max-width: none; min-height: 100vh; border-radius: 0; }
  .modal-foot { border-radius: 0; }
  .history-item { flex-direction: column; gap: 2px; }
}
.mt { margin-top: 14px; }
.w-auto { width: auto; }
table.data a.strong { white-space: nowrap; }
.attach-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 150px 30px; gap: 8px; align-items: center; margin-bottom: 8px; }
.attach-row input[type=file] { padding: 5px 8px; }
@media (max-width: 820px) { .attach-row { grid-template-columns: 1fr 30px; } .attach-row [data-a="file"], .attach-row [data-a="date"] { grid-column: 1; } }
.checks-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.mt-xs { margin-top: 4px; }
.mb { margin-bottom: 16px; }
.pad { padding: 8px 14px; margin: 0; }

/* ---------- Brand logos ---------- */
.logo { display: inline-block; position: relative; overflow: hidden; vertical-align: middle; background: #fff; border-radius: 5px; flex: 0 0 auto; }
.logo img { display: block; }
.logo-talk { height: 22px; aspect-ratio: 384 / 116; }
.logo-talk img { width: 100%; height: 100%; }
/* SMSWise artwork is 2000x667 with the wordmark at x 55-1935, y 118-525. */
.logo-sms { height: 22px; aspect-ratio: 1880 / 407; }
.logo-sms img { position: absolute; width: 106.4%; left: -2.93%; top: -29%; }
.logo.sm { height: 16px; }
.logo.md { height: 22px; }
.logo.lg { height: 30px; }
.logo-talk, .logo-sms { padding: 0; }
@media (prefers-color-scheme: dark) { .logo { box-shadow: 0 0 0 3px #fff; } }
.brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-logos { display: flex; align-items: center; gap: 10px; }
.brand-logos .logo { height: 22px; }
.brand-name { font-size: 12.5px; color: var(--text-2); font-weight: 600; letter-spacing: .01em; }
.auth-logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-sep { width: 1px; height: 26px; background: var(--border-strong); }
.topbar-logos { display: inline-flex; gap: 10px; align-items: center; }
.title-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Payments ---------- */
.refund { color: var(--b-red); font-weight: 600; }
.bar { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.bar-fill { display: block; height: 100%; background: var(--brand-green); }
.bar-cell { width: 45%; }
.bar-cell .bar { width: 100%; }
.bar-w-0 { width: 0%; }
.bar-w-5 { width: 5%; }
.bar-w-10 { width: 10%; }
.bar-w-15 { width: 15%; }
.bar-w-20 { width: 20%; }
.bar-w-25 { width: 25%; }
.bar-w-30 { width: 30%; }
.bar-w-35 { width: 35%; }
.bar-w-40 { width: 40%; }
.bar-w-45 { width: 45%; }
.bar-w-50 { width: 50%; }
.bar-w-55 { width: 55%; }
.bar-w-60 { width: 60%; }
.bar-w-65 { width: 65%; }
.bar-w-70 { width: 70%; }
.bar-w-75 { width: 75%; }
.bar-w-80 { width: 80%; }
.bar-w-85 { width: 85%; }
.bar-w-90 { width: 90%; }
.bar-w-95 { width: 95%; }
.bar-w-100 { width: 100%; }
.toolbar input[type=date] { width: auto; min-width: 140px; }

/* Ninety Nine Technologies (parent company) logo: 1281x276 */
.logo-99 { aspect-ratio: 1281 / 276; }
.logo-99 img { width: 100%; height: 100%; }
.logo-99.side { width: 100%; height: auto; max-width: 196px; padding: 0; }
.logo-99.auth { width: 100%; max-width: 300px; height: auto; margin-bottom: 18px; }
.logo-99.sm { height: 26px; }
.brand .brand-logos { padding-top: 10px; border-top: 1px solid var(--border); width: 100%; }
.brand-logos .logo { height: 18px; }
.auth-logos .logo { height: 22px; }
@media (prefers-color-scheme: dark) { .logo-99 { box-shadow: 0 0 0 5px #fff; border-radius: 4px; } }

/* ---------- Suggestion dropdown (replaces native datalist popups) ---------- */
input.has-suggest {
  padding-right: 28px;
  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='%238a93a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.suggest-menu {
  position: fixed; z-index: 200; max-height: 240px; overflow-y: auto; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 4px;
}
.suggest-item { padding: 7px 10px; border-radius: 4px; cursor: pointer; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item:hover, .suggest-item.active { background: var(--accent-soft); }
.suggest-item.current { font-weight: 600; }
.suggest-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.tags-menu { max-height: 300px; }
.tag-opt { display: flex; align-items: center; gap: 6px; }
.tag-opt .tick { width: 14px; color: var(--brand-green); font-weight: 700; }
.tag-opt.selected { font-weight: 600; }
.tag-opt.custom { color: var(--link); }
.tags-input {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; padding: 4px 28px 4px 6px; cursor: text;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background-color: var(--surface);
  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='%238a93a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.tags-input:focus-within { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.tags-input .tags-search { border: 0; outline: 0; height: 24px; padding: 0 4px; flex: 1 1 120px; min-width: 100px; background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--text); font-size: 13px; font-weight: 550; }
.chip-x { border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; border-radius: 3px; }
.chip-x:hover { background: var(--surface-2); color: var(--danger); }
.field.invalid .tags-input { border-color: var(--danger); }
