/* =========================================================
   Shell MDT partagé — SASP (bleu) / SAMS (rouge)
   ========================================================= */
:root {
  --bg: #090b0f;
  --bg-2: #0e1117;
  --panel: #11151c;
  --panel-2: #161b24;
  --line: #1f2632;
  --line-2: #2a3342;
  --text: #dfe4ec;
  --muted: #7c8798;
  --dim: #556072;
  --gold: #d4af37;
  --gold-lo: rgba(217,161,46,.55);
  --ok: #46b07a;
  --warn: #d9a23a;
  --danger: #e0525b;
  --info: #5b8fe6;
  --accent: #3f74e0;
  --accent-hi: #6d97ee;
  --accent-bg: rgba(63, 116, 224, .12);
  --radius: 4px;
  --side-w: 252px;
}
body.theme-doj {
  --accent: #2f9e78;
  --accent-hi: #5cc79f;
  --accent-bg: rgba(47, 158, 120, .12);
}
body.theme-sams {
  --accent: #d0343e;
  --accent-hi: #ef6a72;
  --accent-bg: rgba(208, 52, 62, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 'IBM Plex Sans', system-ui, sans-serif;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.accent { color: var(--accent-hi); }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.8; flex-shrink: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.view { flex: 1; overflow-y: auto; padding: 26px 30px 60px; }

/* ---------- sidebar ---------- */
.side {
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.side-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); height: 64px;
}
.side-head .emb { width: 38px; height: 38px; flex: 0 0 38px; }
.side-head .service-brand-logo { object-fit: contain; object-position: center; filter: drop-shadow(0 5px 12px rgba(0,0,0,.28)); }
.side-head .t1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: 3px; line-height: 1;
}
.side-head .t2 { font-size: 10.5px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.nav-group { margin-top: 14px; }
.nav-group-title {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 11px; color: var(--dim); padding: 0 10px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius); color: #aab3c2;
  font-size: 13.5px; position: relative;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--accent-bg); color: var(--text); }
.nav a.active::before {
  content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; background: var(--accent);
}
.nav a.active svg.lucide { color: var(--accent-hi); }
.nav a .count {
  margin-left: auto; font: 500 11px 'IBM Plex Mono', monospace;
  background: var(--panel-2); border: 1px solid var(--line-2); padding: 0 6px; border-radius: 10px; color: var(--muted);
}
.nav a .count.hot { background: var(--accent); border-color: var(--accent); color: #fff; }

.side-user {
  border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.side-user .who { min-width: 0; flex: 1; }
.side-user .n { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .r { font-size: 11.5px; color: var(--muted); }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; border-radius: var(--radius); cursor: pointer; color: var(--muted);
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--panel); }
.icon-btn .badge-dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--accent); color: #fff; font: 600 10px/16px 'IBM Plex Mono', monospace; padding: 0 4px;
}

/* ---------- topbar ---------- */
.topbar {
  height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 16px;
  padding: 0 30px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; }
.top-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius);
  padding: 0 10px; height: 34px; width: 300px; color: var(--muted);
}
.top-search input { background: none; border: 0; outline: 0; flex: 1; font-size: 13px; color: var(--text); }
.top-search kbd { font: 11px 'IBM Plex Mono', monospace; border: 1px solid var(--line-2); padding: 0 5px; border-radius: 3px; }

.duty {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); cursor: pointer;
  font-size: 12.5px;
}
.duty .st { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.duty.on { border-color: rgba(70,176,122,.4); }
.duty.on .st { background: var(--ok); box-shadow: 0 0 0 3px rgba(70,176,122,.18); animation: pulse 2s infinite; }
.duty .tm { font-family: 'IBM Plex Mono', monospace; color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(70,176,122,0); } }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 30px; letter-spacing: 1px;
  text-transform: uppercase; line-height: 1;
}
.page-head .kicker {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 3px;
  font-size: 12px; color: var(--accent-hi); margin-bottom: 6px; display: flex; gap: 8px; align-items: center;
}
.page-head .kicker::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.page-head p.desc { color: var(--muted); margin-top: 6px; font-size: 13.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel);
  cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.btn:hover { border-color: #3a4558; background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.gold { border-color: var(--gold-lo); color: var(--gold); background: transparent; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.card-h h3 {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 1.8px;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.card-h h3 svg.lucide { color: var(--accent-hi); }
.card-b { padding: 16px; }
.card-b.flush { padding: 0; }

.stat { padding: 16px 18px; position: relative; overflow: hidden; }
.stat .lbl { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--muted); }
.stat .val { font: 500 30px/1.1 'IBM Plex Mono', monospace; margin-top: 8px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat .ico { position: absolute; right: 14px; top: 14px; color: var(--dim); }
.stat .ico svg.lucide { width: 20px; height: 20px; }
.stat.hl { border-top: 2px solid var(--accent); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg-2); position: sticky; top: 0; white-space: nowrap;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.015); }
.tbl tr.click { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 3px;
  font-size: 11.5px; font-weight: 500; border: 1px solid; white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.ok { color: var(--ok); border-color: rgba(70,176,122,.35); background: rgba(70,176,122,.08); }
.pill.warn { color: var(--warn); border-color: rgba(217,162,58,.35); background: rgba(217,162,58,.08); }
.pill.danger { color: var(--danger); border-color: rgba(224,82,91,.35); background: rgba(224,82,91,.08); }
.pill.info { color: var(--info); border-color: rgba(91,143,230,.35); background: rgba(91,143,230,.08); }
.pill.muted { color: var(--muted); border-color: var(--line-2); background: transparent; }
.pill.gold { color: var(--gold); border-color: var(--gold-lo); background: rgba(217,161,46,.06); }
.tag {
  display: inline-block; font: 500 11px 'IBM Plex Mono', monospace; padding: 1px 6px; border-radius: 3px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted);
}

/* ---------- avatar ---------- */
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-2); flex-shrink: 0; }
.av.sm { width: 26px; height: 26px; }
.av.lg { width: 56px; height: 56px; }
.av.sq { border-radius: var(--radius); }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .n { font-weight: 500; }
.who-cell .s { font-size: 11.5px; color: var(--muted); }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; min-width: 260px;
  border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); color: var(--muted);
}
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--text); font-size: 13px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 11px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius);
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-bg); border-color: var(--accent); color: var(--text); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 10px 16px; border: 0; background: none; cursor: pointer; color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

.empty { padding: 40px; text-align: center; color: var(--muted); display: none; }
.empty.show { display: block; }

/* ---------- key/value ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); }

.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .s { font-size: 12px; color: var(--muted); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; color: var(--muted); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- bars ---------- */
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.bar.gold > i { background: var(--gold); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--muted);
}
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 8px 10px; outline: 0; font-size: 13px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

/* ---------- modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; background: rgba(4,6,9,.72); z-index: 100;
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease;
}
.modal {
  width: min(640px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-top: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal.wide { width: min(900px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 17px; font-weight: 600; }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
@keyframes fade { from { opacity: 0; } }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  padding: 10px 14px; font-size: 13px; min-width: 260px; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: slide .2s ease;
}
.toast small { display: block; color: var(--muted); font-size: 11.5px; }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }

/* ---------- misc ---------- */
.banner {
  display: flex; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px;
  border: 1px solid var(--gold-lo); background: rgba(217,161,46,.05); border-radius: var(--radius); font-size: 13px;
}
.banner svg.lucide { color: var(--gold); }
.photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); display: block; }
.mug { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--radius); filter: grayscale(.35); }
.flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 3px; background: rgba(224,82,91,.12); color: var(--danger); border: 1px solid rgba(224,82,91,.3); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item .d { font: 11.5px 'IBM Plex Mono', monospace; color: var(--muted); }

.wip {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 50px 30px; text-align: center; color: var(--muted);
}
.wip h2 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 3px; color: var(--text); margin: 10px 0 6px; }

@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-3 { grid-template-columns: 1fr; }
  .top-search { display: none; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .g-2, .g-4, .form-grid { grid-template-columns: 1fr; }
}
.wip svg.lucide { width: 30px; height: 30px; color: var(--accent-hi); }

/* =========================================================
   GODAS WEB — PREMIUM SYSTEM REWORK 2026
   ========================================================= */
:root {
  --bg: #080b11; --bg-2:#0b1018; --panel:#0f1621; --panel-2:#131d2a;
  --line:rgba(151,174,207,.11); --line-2:rgba(151,174,207,.19);
  --text:#edf3fb; --muted:#8290a4; --dim:#536174;
  --accent:#477fda; --accent-hi:#75a7f2; --accent-bg:rgba(71,127,218,.13);
  --gold:#d7b56d; --gold-lo:rgba(215,181,109,.35); --radius:10px; --side-w:270px;
  --shadow:0 18px 50px rgba(0,0,0,.22); --ease:cubic-bezier(.2,.75,.25,1);
}
body.theme-doj { --accent:#3e9b7a; --accent-hi:#71c6a6; --accent-bg:rgba(62,155,122,.13); }
body.theme-sams { --accent:#c94e5b; --accent-hi:#ee7a85; --accent-bg:rgba(201,78,91,.13); }
body { background:radial-gradient(900px 600px at 76% -20%,var(--accent-bg),transparent 65%),linear-gradient(145deg,#080b11 0%,#0a0e15 50%,#080b11 100%); letter-spacing:.01em; }
body::before { content:"";position:fixed;inset:0;pointer-events:none;opacity:.16;background-image:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 75%); }
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:rgba(137,158,190,.25);border:0;border-radius:20px}
.shell{position:relative}.main{position:relative}.view{padding:30px 34px 70px;animation:viewIn .42s var(--ease)}
@keyframes viewIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.side{background:linear-gradient(180deg,rgba(13,19,29,.98),rgba(9,14,22,.98));border-right:1px solid var(--line);box-shadow:12px 0 45px rgba(0,0,0,.14);position:relative;z-index:4}
.side::after{content:"";position:absolute;right:-1px;top:64px;width:1px;height:140px;background:linear-gradient(var(--accent),transparent);opacity:.7}
.side-head{height:72px;padding:17px 20px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,var(--accent-bg),transparent 65%)}
.side-head svg.emb{width:38px;height:38px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.35))}.side-head .t1{font-size:21px;letter-spacing:3.5px}.side-head .t2{font-size:9.5px;letter-spacing:2px}
.nav{padding:14px 12px 22px}.nav-group{margin-top:18px}.nav-group-title{padding:0 11px 8px;font-size:10px;letter-spacing:2.4px;color:#607087}
.nav a{gap:11px;padding:9px 11px;border-radius:8px;color:#8d9aad;font-size:13px;transition:all .22s var(--ease);border:1px solid transparent}
.nav a:hover{background:rgba(255,255,255,.025);color:#dfe8f5;transform:translateX(2px)}.nav a.active{background:linear-gradient(90deg,var(--accent-bg),rgba(255,255,255,.018));border-color:rgba(117,167,242,.12);color:#f3f7fc;box-shadow:inset 0 1px rgba(255,255,255,.025)}
.nav a.active::before{left:-12px;top:8px;bottom:8px;width:2px;border-radius:0 4px 4px 0;box-shadow:0 0 12px var(--accent)}.nav a svg.lucide{width:15px;height:15px}.nav a .count{background:rgba(255,255,255,.035);border-color:var(--line);padding:1px 7px}
.side-user{padding:14px 16px;border-top:1px solid var(--line);background:rgba(0,0,0,.12)}.side-user .n{font-size:13px}.side-user .r{font-size:10.5px;text-transform:uppercase;letter-spacing:.7px}
.topbar{height:72px;padding:0 34px;border-bottom:1px solid var(--line);background:rgba(8,12,18,.78);backdrop-filter:blur(18px);position:relative;z-index:3}.crumbs{font-size:12px}.crumbs b{font-weight:500;color:#dfe8f4}.top-search{height:38px;width:330px;border-color:var(--line);background:rgba(255,255,255,.025);border-radius:9px;transition:.2s}.top-search:focus-within{border-color:rgba(117,167,242,.4);box-shadow:0 0 0 3px var(--accent-bg)}
.icon-btn,.duty{border-radius:8px;background:rgba(255,255,255,.02);border-color:var(--line);transition:.2s}.icon-btn:hover,.duty:hover{background:rgba(255,255,255,.045);border-color:var(--line-2);transform:translateY(-1px)}.duty{height:38px}.duty.on{background:rgba(70,176,122,.055)}
.page-head{margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--line);align-items:flex-end}.page-head h1{font-size:34px;letter-spacing:1.3px;font-weight:600}.page-head .kicker{font-size:10px;letter-spacing:3.2px;margin-bottom:8px}.page-head .kicker::before{width:24px;background:linear-gradient(90deg,var(--accent),transparent)}.page-head p.desc{font-size:13px;color:#748399;margin-top:8px;max-width:760px}
.btn{height:37px;padding:0 14px;border-radius:8px;background:rgba(255,255,255,.028);border-color:var(--line-2);font-size:12px;transition:all .2s var(--ease);box-shadow:inset 0 1px rgba(255,255,255,.02)}.btn:hover{background:rgba(255,255,255,.055);border-color:rgba(151,174,207,.3);transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 72%,#111));border-color:rgba(255,255,255,.08);box-shadow:0 8px 24px var(--accent-bg)}.btn.primary:hover{background:linear-gradient(135deg,var(--accent-hi),var(--accent));box-shadow:0 10px 28px var(--accent-bg)}.btn.sm{height:30px;border-radius:7px}.btn.gold{background:rgba(215,181,109,.045)}
.grid{gap:18px}.card{background:linear-gradient(145deg,rgba(18,27,40,.91),rgba(12,18,28,.94));border-color:var(--line);border-radius:11px;box-shadow:0 12px 38px rgba(0,0,0,.12);overflow:hidden;transition:border-color .22s,transform .22s}.card:hover{border-color:rgba(151,174,207,.17)}.card-h{padding:14px 17px;background:linear-gradient(90deg,rgba(255,255,255,.018),transparent);border-bottom-color:var(--line)}.card-h h3{font-size:13px;letter-spacing:1.7px}.card-h h3 svg.lucide{width:15px}.card-b{padding:18px}
.stat{padding:19px 20px;min-height:116px}.stat::after{content:"";position:absolute;width:110px;height:110px;right:-48px;top:-55px;border:1px solid var(--line);border-radius:50%;box-shadow:0 0 0 22px rgba(255,255,255,.008)}.stat .lbl{font-size:10.5px;letter-spacing:2px}.stat .val{font-size:32px;margin-top:11px;letter-spacing:-1px}.stat .sub{font-size:11px}.stat .ico{right:17px;top:17px;color:var(--accent-hi);opacity:.55}.stat.hl{border-top:1px solid rgba(117,167,242,.35)}
.tbl{font-size:12.5px}.tbl th{padding:11px 15px;background:rgba(5,9,14,.35);font-size:10.5px;letter-spacing:1.6px;color:#6f7f94;border-color:var(--line)}.tbl td{padding:12px 15px;border-color:var(--line)}.tbl tbody tr{transition:.16s}.tbl tbody tr:hover td{background:var(--accent-bg)}
.pill{height:23px;padding:0 8px;border-radius:6px;font-size:10.5px}.tag{border-radius:5px;background:rgba(255,255,255,.035)}.av{border-color:var(--line-2);box-shadow:0 3px 10px rgba(0,0,0,.22)}
.toolbar{margin-bottom:16px}.search{height:37px;border-radius:8px;background:rgba(255,255,255,.022);border-color:var(--line)}.search:focus-within{border-color:rgba(117,167,242,.35);box-shadow:0 0 0 3px var(--accent-bg)}.chip{height:32px;border-radius:7px;background:rgba(255,255,255,.012);transition:.18s}.chip:hover{background:rgba(255,255,255,.04)}.chip.on{background:var(--accent-bg);border-color:rgba(117,167,242,.35)}
.tabs{gap:5px;border-bottom-color:var(--line);padding:0 2px}.tab{padding:11px 14px;font-size:12px;letter-spacing:1.3px;transition:.2s}.tab:hover{color:#d9e2ef}.tab.on{color:#fff;border-bottom-color:var(--accent)}
.list-row{padding:12px 17px;border-color:var(--line);transition:.16s}.list-row:hover{background:rgba(255,255,255,.018)}.section-title{font-size:11px;letter-spacing:2.2px;margin:25px 0 12px}.bar{height:5px;background:rgba(255,255,255,.05)}
.field{gap:7px}.field label{font-size:10.5px;letter-spacing:1.5px}.field input,.field select,.field textarea{background:rgba(6,10,16,.48);border-color:var(--line-2);border-radius:8px;padding:10px 11px;transition:.2s}.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(117,167,242,.5);box-shadow:0 0 0 3px var(--accent-bg)}
.modal-wrap{background:rgba(3,6,10,.72);backdrop-filter:blur(8px);animation:fade .2s ease}.modal{background:linear-gradient(145deg,#121b28,#0c121c);border-color:var(--line-2);border-top:1px solid rgba(117,167,242,.45);border-radius:13px;box-shadow:0 32px 100px rgba(0,0,0,.55);animation:modalIn .3s var(--ease)}@keyframes modalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}.modal-h{padding:16px 19px}.modal-h h3{font-size:16px}.modal-b{padding:20px}.modal-f{padding:13px 19px;background:rgba(0,0,0,.12)}
.toast{background:rgba(17,25,37,.94);backdrop-filter:blur(12px);border-radius:9px;border-color:var(--line-2);box-shadow:0 16px 45px rgba(0,0,0,.35)}.banner{border-radius:9px;background:linear-gradient(90deg,rgba(215,181,109,.075),rgba(215,181,109,.018));}.photo,.mug{border-radius:9px}.wip{border-radius:11px;background:rgba(255,255,255,.012);padding:58px 30px}.timeline::before{background:linear-gradient(var(--accent),var(--line-2),transparent)}
@media(max-width:860px){.view{padding:20px 16px 45px}.topbar{height:64px}.page-head h1{font-size:29px}}

/* =========================================================
   NEW DAWN — UNIFIED BLACK & GOLD INTRANET
   Portal keeps service colors; all internal apps use this DA.
   ========================================================= */
:root,
body.theme-sasp,
body.theme-sams,
body.theme-doj {
  --bg:#070706;
  --bg-2:#0b0b0a;
  --panel:#10100e;
  --panel-2:#151410;
  --line:rgba(224,190,112,.105);
  --line-2:rgba(224,190,112,.20);
  --text:#f2eee5;
  --muted:#938c7d;
  --dim:#625d53;
  --gold:#d9b86c;
  --gold-hi:#f0d89c;
  --gold-lo:rgba(217,184,108,.38);
  --accent:#c9a65b;
  --accent-hi:#e7c97f;
  --accent-bg:rgba(201,166,91,.105);
  --shadow:0 22px 58px rgba(0,0,0,.30);
}
body {
  background:
    radial-gradient(900px 520px at 82% -12%,rgba(217,184,108,.09),transparent 65%),
    radial-gradient(700px 500px at -10% 100%,rgba(217,184,108,.035),transparent 70%),
    linear-gradient(145deg,#070706 0%,#0a0a08 50%,#070706 100%);
}
body::before {
  opacity:.22;
  background-image:linear-gradient(rgba(217,184,108,.016) 1px,transparent 1px),linear-gradient(90deg,rgba(217,184,108,.012) 1px,transparent 1px);
  background-size:46px 46px;
}
.side {
  background:linear-gradient(180deg,rgba(14,14,11,.99),rgba(8,8,7,.99));
  border-right-color:var(--line);
  box-shadow:16px 0 52px rgba(0,0,0,.25);
}
.side::before { content:"";position:absolute;inset:0 0 auto 0;height:170px;pointer-events:none;background:radial-gradient(280px 150px at 25% 0%,rgba(217,184,108,.09),transparent 72%); }
.side::after { background:linear-gradient(var(--gold),transparent);opacity:.65; }
.side-head { position:relative;height:76px;background:linear-gradient(90deg,rgba(217,184,108,.075),transparent 72%);border-bottom-color:var(--line); }
.side-head .service-brand-logo { width:42px;height:42px;flex-basis:42px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.42)); }
.side-head .t1 { color:#f3ead6;letter-spacing:3.8px; }
.side-head .t2 { color:#8e846e; }
.nav { padding:15px 12px 24px; }
.nav-group { position:relative;margin-top:20px; }
.nav-group-title { color:#766d5c;font-size:9.5px;letter-spacing:2.8px;padding:0 12px 9px; }
.nav a { color:#9b9486;border-radius:9px;padding:9px 11px;transition:transform .28s var(--ease),background .28s,border-color .28s,color .28s; }
.nav a:hover { color:#eee6d6;background:linear-gradient(90deg,rgba(217,184,108,.065),rgba(255,255,255,.012));border-color:rgba(217,184,108,.08);transform:translateX(3px); }
.nav a.active { color:#f7f0e1;background:linear-gradient(90deg,rgba(217,184,108,.14),rgba(217,184,108,.025));border-color:rgba(217,184,108,.15);box-shadow:inset 0 1px rgba(255,255,255,.025),0 8px 26px rgba(0,0,0,.10); }
.nav a.active::before { background:linear-gradient(180deg,#f0d89c,#b68e3f);box-shadow:0 0 15px rgba(217,184,108,.28); }
.nav a.active svg.lucide,.nav a:hover svg.lucide { color:var(--gold-hi); }
.nav a .count { color:#9e947f;border-color:rgba(217,184,108,.12);background:rgba(217,184,108,.035); }
.nav a .count.hot { color:#15120c;background:linear-gradient(135deg,#e8cc88,#b98d3d);border-color:transparent; }
.side-user { background:linear-gradient(180deg,rgba(217,184,108,.025),rgba(0,0,0,.13));border-top-color:var(--line); }
.topbar { height:76px;background:rgba(8,8,7,.82);border-bottom-color:var(--line);box-shadow:0 10px 34px rgba(0,0,0,.10); }
.topbar::after { content:"";position:absolute;left:34px;right:34px;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(217,184,108,.22),transparent); }
.top-search { background:rgba(217,184,108,.022);border-color:rgba(217,184,108,.12); }
.top-search:focus-within { border-color:rgba(217,184,108,.38);box-shadow:0 0 0 3px rgba(217,184,108,.075); }
.top-search kbd { border-color:rgba(217,184,108,.16);color:#9e9279; }
.icon-btn,.duty { background:rgba(217,184,108,.018);border-color:rgba(217,184,108,.12); }
.icon-btn:hover,.duty:hover { border-color:rgba(217,184,108,.25);background:rgba(217,184,108,.055); }
.page-head { border-bottom-color:var(--line); }
.page-head h1 { color:#f4efe4;text-shadow:0 10px 34px rgba(0,0,0,.24); }
.page-head .kicker { color:var(--gold-hi); }
.page-head .kicker::before { background:linear-gradient(90deg,var(--gold),transparent); }
.btn { background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(217,184,108,.015));border-color:rgba(217,184,108,.16); }
.btn:hover { background:rgba(217,184,108,.065);border-color:rgba(217,184,108,.31); }
.btn.primary { color:#17130b;background:linear-gradient(135deg,#ecd28f,#b88d40);border-color:rgba(242,218,160,.42);box-shadow:0 10px 28px rgba(184,141,64,.15),inset 0 1px rgba(255,255,255,.30); }
.btn.primary:hover { color:#110e08;background:linear-gradient(135deg,#f4dda5,#c69b4a);box-shadow:0 13px 34px rgba(184,141,64,.22); }
.btn.gold { color:var(--gold-hi);background:rgba(217,184,108,.035); }
.card { background:linear-gradient(145deg,rgba(18,18,15,.95),rgba(11,11,9,.97));border-color:rgba(217,184,108,.105);box-shadow:0 18px 48px rgba(0,0,0,.16); }
.card:hover { border-color:rgba(217,184,108,.19); }
.card-h { background:linear-gradient(90deg,rgba(217,184,108,.045),transparent 62%);border-bottom-color:var(--line); }
.card-h h3 svg.lucide,.stat .ico { color:var(--gold-hi); }
.stat::after { border-color:rgba(217,184,108,.09);box-shadow:0 0 0 22px rgba(217,184,108,.006); }
.stat.hl { border-top-color:rgba(217,184,108,.42); }
.tbl th { background:rgba(6,6,5,.48);color:#857b68;border-color:var(--line); }
.tbl td { border-color:var(--line); }
.tbl tbody tr:hover td { background:rgba(217,184,108,.035); }
input,select,textarea,.input,.select { border-color:rgba(217,184,108,.14)!important;background-color:rgba(217,184,108,.018)!important; }
input:focus,select:focus,textarea:focus,.input:focus,.select:focus { border-color:rgba(217,184,108,.38)!important;box-shadow:0 0 0 3px rgba(217,184,108,.07)!important; }
.tabs { border-bottom-color:var(--line); }
.tab.active { color:var(--gold-hi);border-bottom-color:var(--gold); }
.modal { background:linear-gradient(145deg,#12110e,#0b0b09);border-color:rgba(217,184,108,.20);border-top-color:var(--gold);box-shadow:0 36px 100px rgba(0,0,0,.62); }
.modal-h,.modal-f { border-color:var(--line); }
.modal-f { background:#0b0b09; }
.toast { border-color:rgba(217,184,108,.18);border-left-color:var(--gold);background:#15130f; }
.banner { border-color:rgba(217,184,108,.28);background:linear-gradient(90deg,rgba(217,184,108,.07),rgba(217,184,108,.018)); }
.tl-item::before { border-color:var(--gold); }
.wip { border-color:rgba(217,184,108,.18);background:rgba(217,184,108,.012); }
.wip svg.lucide { color:var(--gold-hi); }
::-webkit-scrollbar-thumb { background:rgba(217,184,108,.20); }
