/* ============================================================
   VIVID ATOM — Secure File Drop
   Neon orange on void black — matches vividatom.com
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-mono-700.woff2") format("woff2");
}

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --panel: #0e0e10;
  --panel-2: #121214;
  --line: rgba(255, 111, 15, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);

  --orange: #ff5f0f;
  --orange-hot: #ff7a1a;
  --orange-soft: #ffb066;
  --orange-dim: #b34a0b;

  --ink: #f6f4ef;
  --ink-muted: #a39f96;
  --ink-faint: #6b676b;

  --ok: #7ee787;
  --err: #ff5f5f;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --glow: 0 0 18px rgba(255, 95, 15, 0.55), 0 0 60px rgba(255, 95, 15, 0.18);
  --glow-soft: 0 0 10px rgba(255, 95, 15, 0.35);
  --radius: 4px;

  --maxw: 1180px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b { font-weight: 700; }

::selection { background: var(--orange); color: #0a0a0a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #2a2018; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dim); }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 95, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 15, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(255, 95, 15, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 95, 15, 0.06), transparent 60%);
}

/* Ember particles — ported from the vividatom.com homepage */
#particle-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  #particle-bg { opacity: 0.3; }
}

/* CRT scanline overlay — subtle, top layer, never blocks clicks */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.4) 3px,
    transparent 4px
  );
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 50; }
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 4px; }
.brand-name { font-weight: 600; letter-spacing: .4px; font-size: 19px; }
.brand-name em { font-style: normal; color: var(--orange); }
.brand-sub { font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links-simple { gap: 22px; }
.nav-link { color: var(--ink-muted); font-size: 15px; transition: color .15s; }
.nav-link:hover { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #0a0a0a; box-shadow: var(--glow-soft); }
.btn-primary:hover { background: var(--orange-hot); box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: var(--glow-soft); }
.btn-danger { border-color: rgba(255, 95, 95, .4); color: var(--err); background: transparent; }
.btn-danger:hover { border-color: var(--err); background: rgba(255, 95, 95, .08); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-ok { border-color: rgba(126, 231, 135, .35); color: var(--ok); background: rgba(126, 231, 135, .06); }
.alert-err { border-color: rgba(255, 95, 95, .35); color: var(--err); background: rgba(255, 95, 95, .06); }
.hidden { display: none !important; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 34px;
  box-shadow: 0 0 40px rgba(255, 95, 15, .06);
}
.auth-mark { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 5px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.kicker::before { content: "▸"; color: var(--orange); }
.auth-title { font-size: 30px; margin: 8px 0 4px; line-height: 1.15; }
.glow-text { color: var(--orange); text-shadow: var(--glow-soft); }
.auth-sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 24px; }
.auth-foot { text-align: center; padding: 20px; color: var(--ink-faint); font-size: 12px; }
.kickerish { letter-spacing: 2px; text-transform: uppercase; color: var(--orange-soft); font-size: 12px; }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--orange);
  box-shadow: var(--glow-soft);
}
.field select {
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 11px 36px 11px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff5f0f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option {
  background: var(--bg-2);
  color: var(--ink);
}
.field-hint { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

/* ---------- Portal ---------- */
.portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.portal-title { font-size: 34px; line-height: 1.15; margin: 6px 0 0; }
.portal-head-note { color: var(--ink-faint); font-size: 13px; text-align: right; line-height: 1.7; }
.portal-head-note b { color: var(--orange-soft); }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h2 { font-size: 16px; letter-spacing: .5px; }
.panel-hint { color: var(--ink-faint); font-size: 12px; }
.panel-narrow { max-width: 560px; margin: 0 auto 20px; }
.panel-recipient { margin-bottom: 0; }
.recipient-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; }
@media (max-width: 720px) { .recipient-grid { grid-template-columns: 1fr; } }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  outline: none;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragging {
  border-color: var(--orange);
  background: rgba(255, 95, 15, .04);
  box-shadow: var(--glow-soft);
}
.dz-icon { margin: 0 auto 10px; color: var(--orange); }
.dz-main { font-size: 16px; }
.dz-link { color: var(--orange); }
.dz-sub { color: var(--ink-faint); font-size: 12px; margin-top: 8px; }
.dz-progress-text { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- File list ---------- */
.file-list { margin-top: 14px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-2);
}
.file-row.progressing { border-color: var(--orange); }
.file-info { flex: 1; min-width: 0; }
.file-name {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.file-remove {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-faint);
  width: 28px; height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
}
.file-remove:hover { color: var(--err); border-color: var(--err); }

/* progress bar */
.progress-track { height: 4px; background: #1c1c1f; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .15s; }

/* ---------- Inbox ---------- */
.inbox-meta { color: var(--ink-faint); font-size: 12px; margin-bottom: 10px; }
.file-tick input { position: absolute; opacity: 0; pointer-events: none; }
.file-tick .tick {
  display: inline-flex;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all .12s;
  cursor: pointer;
}
.file-tick input:checked + .tick {
  background: var(--orange);
  border-color: var(--orange);
  color: #0a0a0a;
  box-shadow: var(--glow-soft);
}
.file-tick input:checked + .tick::after { content: "✓"; font-weight: 700; font-size: 13px; }
.file-tick input:focus-visible + .tick { outline: 2px solid var(--orange); outline-offset: 2px; }

.empty-state { text-align: center; padding: 34px 16px; color: var(--ink-faint); font-size: 14px; }
.empty-state .mono { color: var(--orange-dim); margin-bottom: 8px; }

/* ---------- Send bar ---------- */
.send-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.send-note { color: var(--ink-faint); font-size: 13px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }
.td-sub { font-size: 12px; color: var(--ink-faint); }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}
.badge-ok { color: var(--ok); border-color: rgba(126, 231, 135, .35); background: rgba(126, 231, 135, .07); }
.badge-muted { color: var(--ink-faint); border-color: var(--line-soft); }

/* Admin — "Resend to…" expandable row */
.btn-expand { margin-left: 4px; }
.add-row td { background: var(--bg-2); }
.add-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.add-input {
  flex: 1;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.add-input:focus { border-color: var(--orange); box-shadow: var(--glow-soft); }
.add-hint { font-size: 12px; color: var(--ink-faint); }

/* Admin filters + pager */
.admin-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-filters select.add-input { appearance: none; width: auto; min-width: 130px; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff5f0f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 18px; color: var(--ink-faint); }
.ok-text { color: var(--ok); }

/* Download page — download-all row */
.dl-actions { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; flex-wrap: wrap; }

/* ---------- Download page ---------- */
.dl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.dl-brand { font-size: 21px; }
.dl-secure { margin-left: auto; color: var(--ink-faint); font-size: 12px; letter-spacing: 2px; }
.dl-card { margin-bottom: 20px; }
.dl-sub { color: var(--ink-muted); font-size: 15px; margin-top: 8px; }
.dl-card .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 60px; }
.footer-slim { margin-top: 48px; }
.footer-slim .wrap { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 22px; color: var(--ink-faint); font-size: 12px; }
.footer-slim a { color: var(--orange-soft); }

.mono { font-family: var(--font-mono); }

/* ============================================================
   TRIAGE PORTAL — components layered on the file-drop base
   ============================================================ */

/* ---- Layout helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack-sm > * + * { margin-top: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.small { font-size: 13px; }

/* ---- Section heading ---- */
.section-title { font-size: 15px; letter-spacing: .5px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-title .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

/* ---- Badges ---- */
.badge-new { color: var(--orange-soft); border-color: var(--line); background: rgba(255, 95, 15, .08); }
.badge-progress { color: #7fb3ff; border-color: rgba(127, 179, 255, .35); background: rgba(127, 179, 255, .07); }
.badge-waiting { color: #f0c674; border-color: rgba(240, 198, 116, .35); background: rgba(240, 198, 116, .07); }
.badge-resolved { color: var(--ok); border-color: rgba(126, 231, 135, .35); background: rgba(126, 231, 135, .07); }
.badge-closed { color: var(--ink-faint); border-color: var(--line-soft); background: transparent; }
.prio { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-mono); }
.prio-low { color: var(--ink-faint); }
.prio-normal { color: var(--ink-muted); }
.prio-high { color: var(--orange-soft); }
.prio-urgent { color: var(--err); }
.tick { color: var(--orange-soft); font-family: var(--font-mono); font-size: 12px; }

/* ---- Stat cards ---- */
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}
.stat .stat-num { font-size: 34px; line-height: 1.1; color: var(--orange); text-shadow: var(--glow-soft); }
.stat .stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

/* ---- Ticket / project rows ---- */
.list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-2); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.list-side { text-align: right; white-space: nowrap; }
.list-ref { font-family: var(--font-mono); font-size: 12px; color: var(--orange-soft); }

/* ---- Project cards ---- */
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card h3 { font-size: 18px; }
.project-card .project-ref { font-family: var(--font-mono); font-size: 12px; color: var(--orange-soft); }
.project-card .project-desc { color: var(--ink-muted); font-size: 14px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; }
.project-links a { font-family: var(--font-mono); font-size: 12px; color: var(--orange-soft); border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; }
.project-links a:hover { border-color: var(--orange); color: var(--orange); }
.project-card .project-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

/* ---- Definition list ---- */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }
.kv dd { color: var(--ink); }

/* ---- Conversation thread ---- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px 18px; background: var(--bg-2); }
.msg-client { border-left: 2px solid var(--orange); }
.msg-staff { border-left: 2px solid #7fb3ff; }
.msg-system { border-left: 2px solid var(--ink-faint); background: transparent; }
.msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.msg-author { font-size: 14px; font-weight: 600; }
.msg-when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.msg-body { white-space: pre-wrap; color: var(--ink); font-size: 14px; line-height: 1.7; }
.msg-attachments { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.attachment {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 8px 12px;
  font-family: var(--font-mono); font-size: 12px;
}
.attachment a { color: var(--orange-soft); }
.attachment a:hover { color: var(--orange); }
.attachment .sz { color: var(--ink-faint); margin-left: auto; }

/* ---- Compose box ---- */
.compose { margin-top: 18px; }
.compose textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; min-height: 110px; resize: vertical; }
.compose textarea:focus { border-color: var(--orange); box-shadow: var(--glow-soft); outline: none; }
.compose-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }

/* ---- Filter dropdown bar ---- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; color: var(--ink); }
.filters select:focus, .filters input:focus { border-color: var(--orange); outline: none; }
.filters select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff5f0f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ---- Simple data table additions ---- */
.table .td-actions { text-align: right; white-space: nowrap; }
.table select.sel { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px 26px 6px 8px; font-size: 12px; color: var(--ink); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff5f0f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }

/* ---- Inline note / hint box ---- */
.note {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink-muted);
  font-size: 14px;
  background: rgba(255, 95, 15, .03);
}
.note b { color: var(--orange-soft); }

/* ---- Tabs (client/admin nav) ---- */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.tabs a { padding: 8px 2px; color: var(--ink-muted); font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ---- Priority / status dot in lists ---- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-urgent { background: var(--err); box-shadow: 0 0 6px var(--err); }
.dot-high { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.dot-normal { background: var(--ink-faint); }
.dot-low { background: #3a3a3d; }

.nav-link-active { color: var(--orange); }
