/* UNICOHS Staff Admin — redesigned 2026-10-27.
   Same class names as before, so every admin page inherits the new look. */
:root {
  --navy-950: #050F22;
  --navy-900: #081A38;
  --navy-800: #0F2E5C;
  --navy-700: #163E77;
  --navy-200: #C9D6EA;
  --navy-100: #E7EDF6;
  --navy-50: #F2F5FA;
  --gold-500: #F4A300;
  --gold-600: #D98C00;
  --gold-100: #FFF3DA;
  --gray-700: #3B4452;
  --gray-600: #5B6472;
  --gray-400: #9AA3B2;
  --gray-300: #DDE2EA;
  --gray-100: #F4F6FA;
  --ok: #1C7C54;
  --ok-soft: #E4F3EC;
  --danger: #B3261E;
  --danger-soft: #FBE7E5;
  --white: #fff;
  --sidebar-w: 256px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(8,26,56,.06), 0 1px 3px rgba(8,26,56,.04);
  --shadow-md: 0 4px 14px rgba(8,26,56,.08), 0 2px 4px rgba(8,26,56,.04);
  --shadow-lg: 0 24px 60px rgba(5,15,34,.28), 0 4px 12px rgba(5,15,34,.12);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI Variable', 'Segoe UI', -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244,163,0,.07), transparent 60%),
    var(--gray-100);
  color: var(--navy-900);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-800); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-100); }

/* ---------- Shell / sidebar layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }

.admin-menu-btn {
  display: none;
  position: fixed; top: 12px; left: 14px; z-index: 40;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--gray-300);
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); color: var(--navy-900); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow-md);
}

.admin-sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w); flex-shrink: 0;
  background:
    radial-gradient(260px 200px at 0% 0%, rgba(244,163,0,.14), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #C9D3E4;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px; text-decoration: none;
}
.admin-sidebar-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.admin-sidebar-brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: .02em; line-height: 1.2; }
.admin-sidebar-brand span { display: block; color: var(--gold-500); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.admin-sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.admin-sidebar-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  color: #AEBBD2; text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.admin-sidebar-nav a .ic { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.admin-sidebar-nav a .ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.admin-sidebar-nav a.active { background: linear-gradient(90deg, rgba(244,163,0,.2), rgba(244,163,0,.04)); color: #fff; }
.admin-sidebar-nav a.active::before {
  content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px;
  background: var(--gold-500); border-radius: 0 4px 4px 0;
}
.admin-sidebar-nav a.active .ic { color: var(--gold-500); }

.nav-badge {
  margin-left: auto;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

.admin-sidebar-user {
  display: flex; align-items: center; gap: 11px;
  margin: 10px 12px 14px; padding: 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
}
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-500), #FFC54D); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800;
}
.admin-sidebar-user .who { flex: 1; min-width: 0; }
.admin-sidebar-user .who strong { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar-user .who span { display: block; color: #8FA0BF; font-size: 11px; text-transform: capitalize; }
.admin-sidebar-user form { margin: 0; }
.admin-logout-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: #C9D3E4; font-size: 14px; cursor: pointer; flex-shrink: 0;
  transition: all .18s var(--ease);
}
.admin-logout-btn:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.admin-backdrop { display: none; }
.admin-main { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .admin-menu-btn { display: flex; align-items: center; justify-content: center; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    transform: translateX(-100%); transition: transform .28s var(--ease);
  }
  .admin-shell.nav-open .admin-sidebar { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,.35); }
  .admin-shell.nav-open .admin-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(5,15,34,.5); backdrop-filter: blur(3px); z-index: 25;
  }
  .admin-main { padding-top: 62px; }
}

/* ---------- Page content ---------- */
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 36px 80px; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 27px; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.admin-head p { color: var(--gray-600); font-size: 14px; margin: 5px 0 0; }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card + .card { margin-top: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-row .card {
  padding: 20px; display: flex; align-items: center; gap: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}
.stat-row .card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--navy-800); }
.stat-row .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-row .card.gold::after { background: var(--gold-500); }
.stat-row .card.ok::after { background: var(--ok); }
.stat-row .card.danger::after { background: var(--danger); }
.stat-row .ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.stat-row .card.gold .ic { background: var(--gold-100); color: var(--gold-600); }
.stat-row .card.ok .ic { background: var(--ok-soft); color: var(--ok); }
.stat-row .card.danger .ic { background: var(--danger-soft); color: var(--danger); }
.stat-row .n { font-size: 29px; font-weight: 800; color: var(--navy-900); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-row .l { font-size: 12.5px; color: var(--gray-600); margin-top: 3px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; align-items: center; }
.filters select, .filters input[type="text"], .filters input[type="date"],
.field {
  padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: 10px; font-size: 14px; font-family: inherit;
  background: var(--white); color: var(--navy-900);
  transition: border-color .15s, box-shadow .15s;
}
.filters input[type="text"] { min-width: 260px; flex: 1; max-width: 420px; }
.filters select:focus, .filters input:focus, .field:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(244,163,0,.18);
}
.filters button, .btn {
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--navy-800); color: #fff;
  font-size: 13.5px; font-weight: 650; font-family: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.filters button:hover, .btn:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn:active, .filters button:active { transform: scale(.97); }
.btn.gold { background: var(--gold-500); color: var(--navy-900); }
.btn.gold:hover { background: var(--gold-600); }
.btn.ghost { background: var(--white); color: var(--navy-800); border-color: var(--gray-300); box-shadow: none; }
.btn.ghost:hover { background: var(--navy-50); border-color: var(--navy-200); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #921f19; }
.btn.ghost.danger { background: var(--white); color: var(--danger); border-color: #F0C4C0; }
.btn.ghost.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--gray-300); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); background: var(--navy-50); border-top: none; font-weight: 700; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #FAFBFE; }
tbody tr.selected td { background: var(--gold-100); }
td.muted, .muted { color: var(--gray-600); font-size: 13px; }
td .muted { display: block; }
td .name { font-weight: 650; }
td.mono, .mono { font-family: 'Cascadia Mono', Consolas, monospace; font-size: 13px; }
td.row-actions { text-align: right; white-space: nowrap; }
td.row-actions .btn + .btn, td.row-actions form + .btn, td.row-actions .btn + form { margin-left: 6px; }
td.row-actions form { display: inline; }
.empty { padding: 64px 20px; text-align: center; color: var(--gray-600); }

th.check, td.check { width: 44px; padding-right: 0; }
input[type="checkbox"].cb {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; cursor: pointer;
  border: 1.5px solid var(--gray-400); border-radius: 5px; background: var(--white); display: inline-block; vertical-align: middle;
  transition: all .15s var(--ease); position: relative;
}
input[type="checkbox"].cb:hover { border-color: var(--navy-800); }
input[type="checkbox"].cb:checked, input[type="checkbox"].cb:indeterminate { background: var(--navy-800); border-color: var(--navy-800); }
input[type="checkbox"].cb:checked::after {
  content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"].cb:indeterminate::after { content: ''; position: absolute; left: 3px; right: 3px; top: 7px; height: 2px; background: #fff; border-radius: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.submitted, .pill.new { background: var(--gold-100); color: var(--gold-600); }
.pill.under_review, .pill.read { background: var(--navy-100); color: var(--navy-800); }
.pill.accepted, .pill.replied { background: var(--ok-soft); color: var(--ok); }
.pill.rejected { background: var(--danger-soft); color: var(--danger); }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; padding: 24px 22px; }
.detail-grid .full { grid-column: 1 / -1; }
.detail-grid label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); margin-bottom: 4px; font-weight: 700; }
.detail-grid .val { font-size: 15px; }
.detail-grid .val.mono { font-family: 'Cascadia Mono', Consolas, monospace; font-size: 14px; }

.card-title { padding: 16px 18px; font-weight: 750; font-size: 15px; border-bottom: 1px solid var(--gray-300); background: var(--navy-50); }

/* ---------- Flash banners ---------- */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; animation: rise .35s var(--ease) both; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: #F0C4C0; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #BFE2D0; }

/* ---------- Bulk-select bar (slides up from the bottom) ---------- */
.bulk-bar {
  position: fixed; left: 50%; bottom: 26px; z-index: 50;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px;
  background: var(--navy-900); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), opacity .25s;
}
.bulk-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bulk-bar .count { font-weight: 700; font-variant-numeric: tabular-nums; }
.bulk-bar .count span { color: var(--gold-500); }
.bulk-bar .btn.ghost { background: transparent; color: #C9D3E4; border-color: rgba(255,255,255,.2); }
.bulk-bar .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Confirmation dialog (native <dialog>) ---------- */
dialog.confirm {
  border: none; padding: 0; border-radius: 20px; width: min(440px, calc(100vw - 32px));
  background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .22s var(--ease), transform .28s var(--ease), overlay .28s allow-discrete, display .28s allow-discrete;
}
dialog.confirm[open] { opacity: 1; transform: none; }
@starting-style { dialog.confirm[open] { opacity: 0; transform: translateY(14px) scale(.96); } }
dialog.confirm::backdrop { background: rgba(5,15,34,.55); backdrop-filter: blur(4px); transition: opacity .25s, overlay .25s allow-discrete, display .25s allow-discrete; opacity: 0; }
dialog.confirm[open]::backdrop { opacity: 1; }
@starting-style { dialog.confirm[open]::backdrop { opacity: 0; } }
dialog.confirm .body { padding: 28px 28px 8px; text-align: center; }
dialog.confirm .badge { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; }
dialog.confirm .badge svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
dialog.confirm h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
dialog.confirm p { margin: 0 0 8px; color: var(--gray-600); font-size: 14px; }
dialog.confirm .who { display: inline-block; margin: 4px 0 8px; padding: 6px 12px; border-radius: 8px; background: var(--gray-100); font-weight: 650; font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.confirm .who[hidden] { display: none; }
dialog.confirm .foot { display: flex; gap: 10px; padding: 18px 28px 26px; }
dialog.confirm .foot .btn { flex: 1; padding: 11px 16px; }

/* ---------- Login ---------- */
body:has(.login-wrap) {
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(244,163,0,.18), transparent 65%),
    radial-gradient(800px 500px at 90% 90%, rgba(22,62,119,.7), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  min-height: 100vh;
}
.login-wrap { max-width: 410px; margin: 0 auto; padding: 11vh 20px 40px; animation: rise .6s var(--ease) both; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-brand img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.login-brand strong { color: #fff; font-size: 16px; letter-spacing: .03em; }
.login-brand span { color: var(--gold-500); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-card { background: var(--white); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.01em; }
.login-card p.sub { color: var(--gray-600); font-size: 14px; margin: 0 0 22px; }
.login-card label { display: block; font-size: 13px; font-weight: 650; margin: 14px 0 6px; }
.login-card input { width: 100%; padding: 11px 13px; border: 1px solid var(--gray-300); border-radius: 10px; font-size: 14.5px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(244,163,0,.18); }
.login-card button { width: 100%; margin-top: 22px; padding: 12px; font-size: 15px; }

.log-list { font-size: 13.5px; }
.log-list .row { display: flex; gap: 14px; padding: 11px 18px; border-top: 1px solid var(--gray-300); }
.log-list .row:first-child { border-top: none; }
.log-list .t { color: var(--gray-600); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Live chat ---------- */
.chat-thread {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; max-height: 540px; overflow-y: auto;
  background: var(--gray-100);
}
.chat-thread-row { display: flex; flex-direction: column; }
.chat-thread-row.staff { align-items: flex-end; }
.chat-thread-row.visitor { align-items: flex-start; }
.chat-thread-row.system { align-items: center; }
.chat-thread-row .bubble {
  max-width: 72%; padding: 10px 15px; border-radius: 18px;
  font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.chat-thread-row.visitor .bubble { background: var(--white); border: 1px solid var(--gray-300); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.chat-thread-row.staff .bubble { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: var(--white); border-bottom-right-radius: 5px; }
.chat-thread-row.system .bubble { background: none; color: var(--gray-600); font-size: 12px; padding: 4px; }
.chat-thread-meta { font-size: 10.5px; color: var(--gray-600); margin-top: 3px; }
.chat-reply-form { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--gray-300); align-items: flex-end; }
.chat-reply-form textarea {
  flex: 1; resize: vertical; min-height: 46px; max-height: 140px;
  padding: 11px 13px; border: 1px solid var(--gray-300); border-radius: 12px; font-family: inherit; font-size: 14px;
}

@media (max-width: 700px) {
  .admin-wrap { padding: 22px 16px 100px; }
  .admin-head h1 { font-size: 23px; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters input[type="text"] { min-width: 0; max-width: none; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border-top: 1px solid var(--gray-300); padding: 12px 0; position: relative; }
  td { border-top: none; padding: 4px 18px; }
  td:before { content: attr(data-label); display: block; font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; }
  td.check { position: absolute; right: 8px; top: 12px; width: auto; }
  td.row-actions { text-align: left; padding-top: 10px; }
  .bulk-bar { width: calc(100vw - 24px); justify-content: space-between; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Form controls used across pages ---------- */
.field.w100, .w100 { width: 100%; }
textarea.field { resize: vertical; line-height: 1.5; }
input[type="file"].field, input[type="file"] { padding: 9px 10px; border: 1px dashed var(--navy-200); border-radius: 10px; background: var(--navy-50); font-family: inherit; font-size: 13.5px; }
.lbl, .detail-grid label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); margin: 0 0 5px; font-weight: 700; }
form > .lbl:not(:first-child) { margin-top: 14px; }
.card > form[style*="padding"] .field + .lbl { margin-top: 14px; }
.card .filters strong { font-size: 15px; font-weight: 750; letter-spacing: -.005em; }
.card > .filters:first-child:has(> strong:only-child) { background: var(--navy-50); border-bottom: 1px solid var(--gray-300); }
.card form .field { margin-bottom: 12px; }
.card form.detail-grid .field { margin-bottom: 0; }
.log-list .row .t { font-size: 12.5px; }
.log-list .row:hover { background: #FAFBFE; }

/* ---------- Timeline (dashboard activity) ---------- */
.timeline { list-style: none; margin: 0; padding: 8px 18px 14px; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 11px 0 11px 22px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 30px; bottom: -10px; width: 1px; background: var(--gray-300); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--gray-600); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 84px; padding-top: 1px; }
.timeline .what { flex: 1; }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.quick a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--navy-900);
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.quick .qi { width: 42px; height: 42px; border-radius: 12px; background: var(--navy-900); color: var(--gold-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick .qi svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick strong { display: block; font-size: 14.5px; }
.quick span.s { display: block; color: var(--gray-600); font-size: 12.5px; }
.stat-row .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Application status stepper ---------- */
.stepper { display: flex; align-items: center; gap: 0; padding: 20px 22px; border-bottom: 1px solid var(--gray-300); flex-wrap: wrap; row-gap: 14px; }
.stepper .st { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.stepper .st i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gray-300); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; background: var(--white); }
.stepper .bar { flex: 1 1 24px; min-width: 24px; max-width: 70px; height: 2px; background: var(--gray-300); margin: 0 12px; }
.stepper .st.done { color: var(--navy-800); }
.stepper .st.done i { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.stepper .st.now { color: var(--navy-900); }
.stepper .st.now i { border-color: var(--gold-500); background: var(--gold-100); color: var(--gold-600); box-shadow: 0 0 0 4px rgba(244,163,0,.18); }
.stepper .st.bad { color: var(--danger); }
.stepper .st.bad i { background: var(--danger); border-color: var(--danger); color: #fff; }
.stepper .st.good { color: var(--ok); }
.stepper .st.good i { background: var(--ok); border-color: var(--ok); color: #fff; }
.status-form { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.status-form .field { margin: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-300); }
