@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#071321;--bg2:#0a1a2b;--panel:#0d2033;--panel2:#10283e;--line:#1c3b55;--text:#e8f4ff;--muted:#8ba4ba;--blue:#168bff;--cyan:#42dfff;--green:#35d6a0;--shadow:0 18px 50px #0005}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% -20%,#123451 0,transparent 42%),var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{width:258px;flex:0 0 258px;background:linear-gradient(180deg,#091a2b,#06111e);border-right:1px solid var(--line);padding:20px 14px 14px;display:flex;flex-direction:column;transition:.25s;z-index:5}.brand{text-align:center;padding:0 8px 22px;border-bottom:1px solid var(--line);margin-bottom:18px}.brand-logo{width:100%;height:96px;object-fit:contain;filter:drop-shadow(0 0 15px #008cff55)}.brand-name{font-size:25px;letter-spacing:5px;font-weight:800;margin-top:1px}.brand-sub{font-size:8px;letter-spacing:2px;color:#8fc9ed;margin-top:5px}.brand-credit{font-size:9px;letter-spacing:1.5px;color:#587995;margin-top:12px}.nav-caption{font-size:9px;font-weight:800;letter-spacing:1.7px;color:#58758f;padding:12px 12px 7px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:1px solid transparent;background:transparent;color:#9bb2c7;text-align:left;padding:11px 12px;border-radius:9px;margin:2px 0;font:500 12px Inter;cursor:pointer;transition:.18s}.nav-item:hover{background:#102b43;color:#eaf8ff;border-color:#1d4b6b;transform:translateX(2px)}.nav-item.active{background:linear-gradient(90deg,#0d4268,#102c46);border-color:#176b9b;color:#eaf8ff;box-shadow:inset 3px 0 var(--cyan),0 5px 18px #001a2c}.nav-icon{width:19px;text-align:center;font-size:18px;color:var(--cyan)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:16px 8px 4px;display:flex;align-items:center;gap:8px;color:#83a0b8;font-size:10px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 10px #35d6a0}.owner-tag{margin-left:auto;color:var(--cyan);font-size:9px;letter-spacing:1px}.main-area{min-width:0;flex:1}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:#081827cc;backdrop-filter:blur(14px);position:sticky;top:0;z-index:4}.crumb{display:flex;gap:12px;align-items:center;color:#66839c;font-size:11px;letter-spacing:.5px}.crumb b{color:#31536e}.crumb strong{color:#d9edfc;font-weight:600}.top-actions{display:flex;align-items:center;gap:17px}.system-label{font-size:9px;color:#91a9bd;letter-spacing:1px;display:flex;align-items:center;gap:8px}.system-label .status-dot{background:#e6b75c;box-shadow:0 0 8px #e6b75c}.language-toggle,.icon-button,.avatar{border:1px solid var(--line);background:#0d2235;color:#cce5f7;border-radius:8px;padding:8px 11px;cursor:pointer}.language-toggle{font-size:10px;letter-spacing:1px}.avatar{border-radius:50%;width:32px;height:32px;padding:0;font-weight:700;color:var(--cyan)}.menu-toggle{display:none}.content{max-width:1600px;margin:auto;padding:28px 32px 18px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}.eyebrow{font-size:9px;letter-spacing:2px;color:#52bde9;font-weight:700}.page-heading h1{font-size:28px;letter-spacing:-.8px;margin:7px 0 5px}.page-heading p,.panel-heading p,.hero-panel p{color:var(--muted);margin:0;font-size:12px}.heading-actions{display:flex;gap:10px;align-items:center}.date-chip{font-size:10px;color:#8da9bf;border:1px solid var(--line);border-radius:7px;padding:9px 11px}.btn{border:1px solid var(--line);border-radius:8px;padding:10px 14px;font:600 11px Inter;cursor:pointer}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-quiet{background:#10253a;color:#b9d5e8}.btn-primary{background:linear-gradient(110deg,#087bd7,#12a9d7);border-color:#26b9ed;color:white;box-shadow:0 7px 20px #008de533}.notice{display:flex;align-items:center;gap:10px;background:#0b263b;border:1px solid #174461;border-radius:9px;padding:11px 14px;color:#9dc4df;font-size:10px;margin-bottom:20px}.notice-mark{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#164d70;color:#66d8ff;font-weight:700}.page-view{display:none;animation:fade .22s ease}.page-view.active{display:block}@keyframes fade{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}.hero-panel{min-height:190px;border:1px solid #1b4b6b;border-radius:15px;padding:28px 32px;background:linear-gradient(105deg,#0e2a43 0%,#0a1e32 62%,#09243a 100%);display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;box-shadow:var(--shadow)}.hero-panel:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:8%;top:-230px;border:1px solid #1b85b855;box-shadow:0 0 90px #008dff18}.hero-panel h2{font-size:26px;margin:10px 0 8px}.hero-panel p{max-width:490px;line-height:1.7}.hero-emblem img{width:200px;height:130px;object-fit:contain;filter:drop-shadow(0 0 20px #008fff55);opacity:.9}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:18px 0}.metric-card,.panel{background:linear-gradient(145deg,#0e2236,#0b1c2d);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 25px #0002}.metric-card{padding:18px 20px;min-height:118px}.metric-top{display:flex;justify-content:space-between;color:#86a3ba;font-size:9px;letter-spacing:1.2px;font-weight:700}.metric-symbol{font-size:18px;color:var(--cyan)}.metric-card strong{display:block;font-size:29px;margin:11px 0 3px;letter-spacing:1px}.metric-card small{color:#6e8ca5;font-size:10px}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{padding:20px 22px;margin-bottom:16px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.panel-heading h3{font-size:15px;margin:0 0 6px}.panel-heading p{font-size:10px}.pill{border-radius:20px;padding:6px 9px;font-size:8px;letter-spacing:1px;font-weight:700}.pill-muted{background:#263849;color:#a1b4c3}.pill-blue{background:#103b5b;color:#64d6ff;border:1px solid #1a6388}.health-row{display:flex;justify-content:space-between;border-top:1px solid #19344a;padding:13px 2px;color:#aac0d1;font-size:11px}.health-row b{color:#e6b75c;font-size:9px;letter-spacing:1px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid button{background:#102a40;border:1px solid #1d405a;border-radius:8px;color:#bfeaff;padding:15px;text-align:left;font:600 11px Inter;cursor:pointer}.quick-grid button:hover{border-color:#1b9ed7;background:#123752}.phone-panel{padding:24px}.phone-form label{display:block;font-size:11px;color:#c2d8e8;margin-bottom:9px;font-weight:600}.input-row{display:flex;gap:10px}.input-row input,.input-row select,.setting-row select{background:#071827;border:1px solid #28506b;border-radius:8px;color:#e8f4ff;padding:12px;font:12px Inter;min-width:0}.input-row input{flex:1}.input-row select{width:175px}.input-row input:focus,.input-row select:focus{outline:1px solid var(--cyan);border-color:var(--cyan)}.field-hint{display:block;color:#6f8da5;margin-top:9px;font-size:10px}.result-panel{margin-top:22px;border:1px dashed #28506b;border-radius:10px;padding:24px;text-align:center;color:#8da8bc}.result-panel b{display:block;color:#cce4f4;font-size:12px}.result-panel p{font-size:10px}.empty-icon{font-size:30px;color:var(--cyan);margin-bottom:9px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px;text-align:left}.result-cell{background:#0b1c2d;border:1px solid #1d3c55;border-radius:8px;padding:12px}.result-cell span{display:block;color:#7593aa;font-size:9px;margin-bottom:7px}.result-cell b{font-size:12px}.empty-state{border:1px dashed #24445d;border-radius:9px;padding:30px;text-align:center;color:#7895ac;font-size:11px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px solid #19344a}.setting-row p{color:#7895ac;font-size:10px;margin:5px 0 0}.setting-row code{color:#6ed9ff;font-size:10px}footer{display:flex;justify-content:space-between;border-top:1px solid #183247;margin-top:22px;padding:16px 2px;color:#55738c;font-size:8px;letter-spacing:1.2px}
@media(max-width:1050px){.sidebar{width:225px;flex-basis:225px}.content{padding:22px}.metric-grid{grid-template-columns:repeat(2,1fr)}.hero-emblem img{width:150px}}
@media(max-width:720px){.sidebar{position:fixed;left:-270px;top:0;bottom:0;width:258px;box-shadow:var(--shadow)}.sidebar.open{left:0}.menu-toggle{display:block}.topbar{padding:0 14px;gap:10px}.crumb{margin-right:auto;font-size:9px}.system-label{display:none}.content{padding:18px 14px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:23px}.date-chip{display:none}.hero-panel{padding:22px;min-height:155px}.hero-panel h2{font-size:20px}.hero-emblem img{width:95px;height:95px}.metric-grid{gap:9px}.metric-card{padding:14px;min-height:105px}.metric-card strong{font-size:24px}.two-column{grid-template-columns:1fr}.input-row{flex-wrap:wrap}.input-row input{flex-basis:100%}.input-row select{flex:1}.result-grid{grid-template-columns:1fr 1fr}.panel{padding:17px}.brand-logo{height:88px}footer{gap:10px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ARGUS STAGE 01 — OWNER AUTHENTICATION */
.app-shell{display:none}
body.argus-authenticated .app-shell{display:flex}
#argusLogin{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 20%,#123451 0,transparent 48%),#050e19}
.auth-card{width:min(100%,390px);padding:30px 28px;background:linear-gradient(145deg,#10283e,#091827);border:1px solid #24516e;border-radius:16px;box-shadow:0 25px 80px #0009;text-align:center}
.auth-logo{width:112px;height:85px;object-fit:contain;filter:drop-shadow(0 0 14px #008cff55)}
.auth-brand{font-size:25px;font-weight:800;letter-spacing:6px;margin-top:4px}
.auth-subtitle{font-size:8px;letter-spacing:2px;color:#8fc9ed;margin-top:6px}
.auth-divider{height:1px;background:#1c3b55;margin:22px 0}
.auth-card h2{font-size:14px;letter-spacing:1.5px;margin:0 0 8px}
.auth-description{font-size:11px;color:#8ba4ba;margin:0 0 22px}
.auth-card form{text-align:left}
.auth-card label{display:block;color:#b9d5e8;font-size:11px;margin:13px 0 7px}
.auth-card input{width:100%;padding:12px;background:#071827;border:1px solid #28506b;border-radius:8px;color:#e8f4ff;font:13px Inter,system-ui,sans-serif;outline:none}
.auth-card input:focus{border-color:#42dfff;box-shadow:0 0 0 2px #42dfff20}
#argusLoginButton{width:100%;padding:12px;margin-top:20px;border:1px solid #26b9ed;border-radius:8px;background:linear-gradient(110deg,#087bd7,#12a9d7);color:white;font-weight:800;letter-spacing:1px;cursor:pointer}
#argusLoginButton:disabled{opacity:.6;cursor:wait}
#argusLoginMessage{min-height:20px;margin-top:12px;font-size:10px;text-align:center}
.auth-error{color:#ff8c8c}
.auth-success{color:#42dfff}
.auth-footer{font-size:8px;letter-spacing:1.5px;color:#587995;margin-top:20px}
@media(max-width:480px){.auth-card{padding:25px 20px}}

.case-actions{display:flex;gap:8px;flex-wrap:wrap}
.case-message{min-height:18px;margin:10px 0;color:#72d6ff;font-size:11px}
.case-message.is-error{color:#ff9a9a}
.case-table-wrap{width:100%;overflow-x:auto}
.cases-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}
.cases-table th,.cases-table td{padding:12px 10px;border-bottom:1px solid #19384f;white-space:nowrap}
.cases-table th{color:#78a5c2;font-size:9px}
.cases-table td{color:#c8ddeb}
.cases-table td small{display:block;color:#68869d;margin-top:4px}
.case-modal{position:fixed;inset:0;z-index:40;background:#020b13cc;display:grid;place-items:center;padding:16px}
.case-dialog{width:min(620px,100%);max-height:90vh;overflow:auto;background:#0b1e30;border:1px solid #236083;border-radius:14px;padding:20px}
.case-dialog label{display:block;color:#a9c5d9;font-size:11px;margin:12px 0}
.case-dialog input,.case-dialog textarea,.case-dialog select{display:block;width:100%;margin-top:6px;background:#071827;border:1px solid #28506b;border-radius:7px;color:#e8f4ff;padding:11px}
.case-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:600px){.case-fields{grid-template-columns:1fr}.cases-table{min-width:600px}}


/* ARGUS STAGE 02 CASE DETAIL MODAL */
.argus-case-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 9, 20, .82);
  backdrop-filter: blur(7px);
}
.argus-case-detail {
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  color: #dceaf7;
  background: linear-gradient(145deg, #101f32, #081321);
  border: 1px solid rgba(43, 190, 255, .38);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
}
.argus-case-detail-header,
.argus-case-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
}
.argus-case-detail-header {
  border-bottom: 1px solid rgba(111, 180, 220, .16);
}
.argus-case-detail-header h2 {
  margin: 6px 0 0;
  font-size: 20px;
  color: #f0f7ff;
}
.argus-detail-kicker {
  color: #42c9f5;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.argus-detail-close {
  cursor: pointer;
  color: #9ddff5;
  background: rgba(42, 166, 220, .12);
  border: 1px solid rgba(69, 190, 239, .28);
  border-radius: 9px;
  min-width: 38px;
  min-height: 36px;
  font-size: 21px;
}
.argus-case-detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px;
}
.argus-detail-field {
  min-width: 0;
  padding: 13px;
  background: rgba(111, 174, 218, .07);
  border: 1px solid rgba(111, 174, 218, .13);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.argus-detail-field:first-child,
.argus-detail-field:nth-child(2),
.argus-detail-field:nth-child(3) {
  grid-column: 1 / -1;
}
.argus-detail-field span {
  display: block;
  margin-bottom: 7px;
  color: #77b9d9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.argus-detail-field div {
  color: #e7f3ff;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.argus-case-detail-footer {
  border-top: 1px solid rgba(111, 180, 220, .16);
}
.argus-case-detail-footer span {
  color: #6e9db9;
  font-size: 10px;
  letter-spacing: .8px;
}
@media (max-width: 520px) {
  .argus-case-detail-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .argus-detail-field,
  .argus-detail-field:first-child,
  .argus-detail-field:nth-child(2),
  .argus-detail-field:nth-child(3) {
    grid-column: 1;
  }
  .argus-case-detail-header,
  .argus-case-detail-footer {
    padding: 14px;
  }
}



/* ARGUS PACKAGE 09 — VISUAL REDESIGN REVISION 1 */

:root {
  color-scheme: dark;
  --bg: #050b16;
  --bg2: #091426;
  --panel: #0c192b;
  --panel2: #10223a;
  --line: #1b3552;
  --text: #eaf4ff;
  --muted: #8ca4bd;
  --blue: #168bff;
  --cyan: #35d9ff;
  --green: #36d6a0;
  --shadow: 0 18px 55px rgba(0,0,0,.30);
  --radius: 15px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(14,93,151,.17), transparent 35%),
    linear-gradient(145deg,#050b16,#081426 55%,#050d19);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.app-shell {
  min-height: 100vh;
  background: transparent;
}

/* SIDEBAR */

.sidebar {
  width: 270px;
  flex-basis: 270px;
  padding: 23px 15px 17px;
  background: linear-gradient(180deg,#0a1729 0%,#07111f 100%);
  border-right: 1px solid #1b3855;
  box-shadow: 12px 0 40px rgba(0,0,0,.16);
}

.brand {
  padding: 8px 8px 25px;
  margin-bottom: 17px;
  border-bottom: 1px solid rgba(85,151,199,.16);
}

.brand-logo {
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 0 17px rgba(0,155,255,.24));
}

.brand-name {
  font-size: 27px;
  letter-spacing: 6px;
  font-weight: 800;
}

.brand-sub {
  color: #91c9eb;
  font-size: 8px;
  letter-spacing: 2.1px;
}

.brand-credit {
  color: #6887a5;
  font-size: 9px;
}

.nav-caption {
  color: #547895;
  font-size: 9px;
  letter-spacing: 2px;
  padding: 15px 12px 8px;
}

.nav-item {
  position: relative;
  min-height: 43px;
  padding: 10px 13px;
  margin: 3px 0;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #a6bbcf;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s,border-color .2s,transform .2s;
}

.nav-item:hover {
  background: #102a43;
  border-color: #204a6a;
  color: white;
  transform: translateX(2px);
}

.nav-item.active {
  color: #f2fbff;
  background: linear-gradient(105deg,#10446d,#102a43 85%);
  border-color: #176b9c;
  box-shadow: inset 3px 0 var(--cyan),0 7px 20px rgba(0,0,0,.19);
}

.nav-icon {
  width: 22px;
  color: var(--cyan);
  font-size: 17px;
}

.sidebar-bottom {
  padding: 17px 9px 5px;
  border-top: 1px solid rgba(85,151,199,.18);
}

/* TOPBAR */

.topbar {
  height: 70px;
  padding: 0 32px;
  background: rgba(7,19,34,.91);
  border-bottom: 1px solid #1a3550;
  backdrop-filter: blur(18px);
}

.crumb {
  font-size: 11px;
  letter-spacing: .8px;
}

.crumb strong {
  color: #eaf7ff;
}

.top-actions { gap: 15px; }

.system-label {
  padding: 8px 12px;
  border: 1px solid #27435c;
  border-radius: 20px;
  background: #0d2032;
  font-size: 9px;
}

.language-toggle,
.icon-button {
  border: 1px solid #294967;
  border-radius: 9px;
  background: #10243a;
  color: #d9efff;
  padding: 9px 13px;
}

.language-toggle:hover,
.icon-button:hover {
  border-color: var(--cyan);
  background: #12304b;
}

.avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #2588c4;
  background: linear-gradient(145deg,#1267a8,#0d2b49);
  color: white;
}

/* MAIN CONTENT */

.content {
  max-width: 1750px;
  padding: 32px 36px 30px;
}

.page-heading {
  margin-bottom: 25px;
  align-items: center;
}

.eyebrow {
  color: #45c8f4;
  letter-spacing: 2.2px;
  font-size: 9px;
}

.page-heading h1 {
  margin: 9px 0 6px;
  font-size: clamp(25px,3vw,34px);
  letter-spacing: -1.1px;
  font-weight: 800;
}

.page-heading p {
  color: #91a9c0;
  line-height: 1.7;
}

.date-chip {
  padding: 9px 13px;
  border: 1px solid #203e59;
  border-radius: 9px;
  background: #0c1d30;
  color: #a9c5dc;
}

.notice {
  padding: 13px 16px;
  margin-bottom: 22px;
  border: 1px solid #1d4b6a;
  border-radius: 11px;
  background: linear-gradient(100deg,rgba(13,75,111,.28),rgba(11,30,49,.72));
  color: #a9d9f3;
  line-height: 1.6;
}

/* DASHBOARD HERO */

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 205px;
  padding: 31px 34px;
  margin-bottom: 21px;
  border: 1px solid #22577b;
  border-radius: 17px;
  background:
    radial-gradient(circle at 85% 50%,rgba(0,161,255,.19),transparent 29%),
    linear-gradient(115deg,#102d49,#0b1c31 72%);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  max-width: 650px;
  margin: 12px 0 9px;
  font-size: clamp(23px,3vw,31px);
  letter-spacing: -.7px;
}

.hero-panel p {
  max-width: 600px;
  line-height: 1.8;
}

.hero-emblem img {
  width: 150px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(0,170,255,.27));
}

/* METRIC CARDS */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin: 20px 0;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 125px;
  padding: 19px;
  border: 1px solid #203d59;
  border-radius: 14px;
  background: linear-gradient(145deg,#10243a,#0a192a);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  transition: transform .2s,border-color .2s;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: #278ac0;
}

.metric-card::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -38px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(22,139,255,.09);
  filter: blur(2px);
}

.metric-top {
  color: #94b0c8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.metric-symbol {
  color: var(--cyan);
  font-size: 17px;
}

.metric-card strong {
  display: block;
  margin: 13px 0 5px;
  color: #f0f9ff;
  font-size: 29px;
  font-weight: 800;
}

.metric-card small {
  color: #7795ae;
  font-size: 10px;
}

/* PANELS */

.two-column {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px;
  margin-top: 18px;
}

.panel {
  padding: 21px;
  border: 1px solid #203d58;
  border-radius: 15px;
  background: linear-gradient(145deg,#0e2034,#0a192a);
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.panel-heading h3 {
  margin: 0 0 6px;
  color: #e6f4ff;
  font-size: 14px;
  font-weight: 750;
}

.panel-heading p {
  color: #819bb3;
  font-size: 10px;
  line-height: 1.6;
}

.health-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(75,117,151,.16);
  color: #b8cfe0;
  font-size: 11px;
}

.health-row:last-child { border-bottom: 0; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.quick-grid button {
  min-height: 49px;
  padding: 12px;
  border: 1px solid #244968;
  border-radius: 10px;
  background: #102840;
  color: #cde9fa;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}

.quick-grid button:hover {
  background: #123b5b;
  border-color: var(--cyan);
}

/* BUTTON SYSTEM */

.btn {
  min-height: 37px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  transition: .2s;
}

.btn-primary {
  border: 1px solid #279fe2;
  background: linear-gradient(110deg,#0876ce,#079fc6);
  color: white;
  box-shadow: 0 6px 18px rgba(0,126,210,.17);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-quiet {
  border: 1px solid #2a4b67;
  background: #10243a;
  color: #c8dfef;
}

.btn-quiet:hover {
  border-color: #36c8f4;
  color: white;
  background: #14324c;
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

/* STATUS AND EMPTY STATES */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #294b65;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
}

.pill-muted {
  background: #17283a;
  color: #a4b7c8;
}

.pill-blue {
  background: #0d3452;
  border-color: #1c6a96;
  color: #75d9ff;
}

.empty-state {
  min-height: 115px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 1px dashed #294862;
  border-radius: 11px;
  background: rgba(7,20,34,.5);
  color: #819bb3;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
}

/* TABLES */

.case-table-wrap {
  border: 1px solid #1c3b55;
  border-radius: 11px;
  background: #091828;
}

.cases-table {
  font-size: 11px;
}

.cases-table th {
  padding: 14px 12px;
  background: #10243a;
  color: #75c8ec;
  letter-spacing: .7px;
}

.cases-table td {
  padding: 14px 12px;
}

.cases-table tr:hover td {
  background: rgba(22,139,255,.055);
}

/* FORMS */

input,select,textarea {
  accent-color: var(--blue);
}

input:not([type="checkbox"]):not([type="radio"]),
select,textarea {
  border-radius: 9px;
}

.phone-form input,
.phone-form select {
  min-height: 42px;
  background: #071728;
  border: 1px solid #294967;
  color: #e6f4ff;
  padding: 10px 12px;
}

.phone-form input:focus,
.phone-form select:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #35cfff;
  box-shadow: 0 0 0 3px rgba(53,207,255,.10);
}

.field-hint {
  display: block;
  margin-top: 9px;
  color: #7895ad;
  line-height: 1.6;
}

/* CASE MODAL */

.case-modal {
  background: rgba(1,7,15,.82);
  backdrop-filter: blur(9px);
}

.case-dialog {
  border: 1px solid #28658a;
  border-radius: 16px;
  background: linear-gradient(145deg,#10243a,#081726);
  box-shadow: 0 25px 90px rgba(0,0,0,.55);
}

/* LOGIN — EXISTING LOGO PRESERVED */

#argusLogin {
  background:
    radial-gradient(ellipse at 50% 15%,rgba(15,106,166,.23),transparent 45%),
    linear-gradient(145deg,#040a14,#09182a);
}

.auth-card {
  border: 1px solid #275879;
  border-radius: 18px;
  background: linear-gradient(145deg,#10263e,#081726);
  box-shadow: 0 28px 90px rgba(0,0,0,.5);
}

.auth-logo {
  filter: drop-shadow(0 0 18px rgba(0,160,255,.28));
}

#argusLoginButton {
  border-radius: 9px;
  background: linear-gradient(110deg,#087bd7,#08a9d5);
  box-shadow: 0 8px 22px rgba(0,126,210,.19);
}

/* MODULE VIEW TRANSITION */

.page-view {
  animation: argusPageIn .22s ease both;
}

@keyframes argusPageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LANDSCAPE AND TABLET */

@media (max-width:1100px) {
  .sidebar {
    width: 235px;
    flex-basis: 235px;
  }

  .content { padding: 25px 22px; }
  .topbar { padding: 0 22px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    transform: translateX(-105%);
    transition: transform .25s ease;
    overflow-y: auto;
  }

  .sidebar.open { transform: translateX(0); }

  .menu-toggle { display: inline-flex; }

  .topbar {
    height: 59px;
    padding: 0 13px;
    gap: 10px;
  }

  .crumb { gap: 7px; font-size: 9px; }
  .top-actions { gap: 7px; }
  .system-label { display: none; }
  .content { padding: 20px 14px; }

  .page-heading {
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
  }

  .hero-panel {
    min-height: 170px;
    padding: 22px;
  }

  .hero-emblem img {
    width: 90px;
    height: 90px;
  }

  .metric-grid { gap: 10px; }
  .metric-card { padding: 14px; }
  .two-column { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .case-fields { grid-template-columns: 1fr; }
}

@media (max-width:420px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card strong { font-size: 23px; }
  .hero-emblem { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .heading-actions { width: 100%; }
}

@media (orientation:landscape) and (max-height:600px) {
  .sidebar { padding-top: 12px; }
  .brand { padding-bottom: 12px; margin-bottom: 8px; }
  .brand-logo { height: 65px; }
  .brand-name { font-size: 21px; }
  .nav-item { min-height: 35px; padding: 7px 10px; }
  .nav-caption { padding-top: 9px; }
  .topbar { height: 55px; }
  .content { padding-top: 18px; }
  .hero-panel { min-height: 145px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}



/* =========================================================
   ARGUS PACKAGE 09 — VISUAL QA REVISION 02
   Preserve existing HTML, JavaScript and official logos.
   ========================================================= */

:root {
  --bg: #07111f;
  --bg2: #0b1929;
  --panel: #101f31;
  --panel2: #14283d;
  --line: #233c54;
  --text: #eaf4ff;
  --muted: #91a7bc;
  --blue: #258cff;
  --cyan: #42dfff;
}

html { scroll-behavior: smooth; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.sidebar {
  background: linear-gradient(180deg,#0b1929 0%,#07111e 100%);
  border-right: 1px solid #203c55;
  box-shadow: 12px 0 40px #0002;
}

.brand {
  padding-bottom: 24px;
}

.nav-caption {
  color: #62839e;
  font-size: 9px;
  letter-spacing: 2px;
}

.nav-item {
  min-height: 42px;
  border-radius: 10px;
  font-size: 12px;
  transition: background .2s ease,border-color .2s ease,transform .2s ease;
}

.nav-item.active {
  background: linear-gradient(100deg,#123e61,#102b43);
  border-color: #24618a;
  box-shadow: inset 3px 0 #42dfff,0 6px 20px #00132166;
}

.topbar {
  background: #081725ed;
  border-bottom-color: #203b53;
  backdrop-filter: blur(16px);
}

.content {
  width: 100%;
}

.page-heading h1 {
  font-weight: 800;
  letter-spacing: -.9px;
}

.eyebrow {
  color: #54c8f2;
  letter-spacing: 2px;
}

.hero-panel,
.panel,
.metric-card {
  border: 1px solid #24415b;
  background: linear-gradient(145deg,#12263a,#0c1b2c);
  box-shadow: 0 14px 36px #0002;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -130px;
  border-radius: 50%;
  border: 1px solid #42dfff18;
  box-shadow: 0 0 0 28px #42dfff08,0 0 0 58px #42dfff05;
  pointer-events: none;
}

.metric-grid {
  gap: 16px;
}

.metric-card {
  border-radius: 13px;
  transition: transform .2s ease,border-color .2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: #3286b5;
}

.metric-card strong {
  font-size: clamp(23px,3vw,31px);
  letter-spacing: -.8px;
}

.panel {
  border-radius: 14px;
}

.panel-heading {
  border-bottom: 1px solid #203a52;
  padding-bottom: 14px;
}

.panel-heading h3 {
  font-size: 14px;
  font-weight: 750;
}

.health-row {
  min-height: 42px;
  border-bottom: 1px solid #1b344a;
}

.quick-grid button {
  min-height: 58px;
  border: 1px solid #294963;
  border-radius: 10px;
  background: #10283d;
  color: #dcefff;
  transition: .2s ease;
}

.quick-grid button:hover {
  border-color: var(--cyan);
  background: #153650;
  transform: translateY(-2px);
}

.btn {
  min-height: 38px;
  border-radius: 9px;
  font-weight: 700;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(110deg,#087bd7,#0dadd0);
  border: 1px solid #39c8ef;
  box-shadow: 0 5px 18px #087bd733;
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-quiet {
  border: 1px solid #31516c;
  background: #10263a;
  color: #c9e4f7;
}

input, select, textarea {
  min-height: 40px;
  border: 1px solid #31516b;
  border-radius: 9px;
  background: #091a2a;
  color: #eaf4ff;
  padding: 10px 12px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #42dfff;
  box-shadow: 0 0 0 3px #42dfff19;
}

.empty-state, .result-panel {
  border: 1px dashed #31516b;
  border-radius: 12px;
  background: #0b1b2b;
  color: #9bb4c9;
  padding: 24px;
}

.cases-table th {
  background: #11283d;
  color: #8ec8e9;
  position: sticky;
  top: 0;
}

.cases-table tr:hover td {
  background: #132b40;
}

.pill {
  border-radius: 999px;
  letter-spacing: .6px;
}

.notice {
  border: 1px solid #31516b;
  border-radius: 10px;
  background: #10263a;
}

footer {
  border-top: 1px solid #203b53;
  color: #718da5;
  letter-spacing: 1px;
}

#argusLogin {
  background:
    radial-gradient(ellipse at 50% 15%,#163c5a 0%,transparent 48%),
    linear-gradient(145deg,#050c16,#091827 65%,#06111d);
}

.auth-card {
  border: 1px solid #315a78;
  border-radius: 18px;
  box-shadow: 0 28px 90px #000b,0 0 45px #168bff12;
}

.auth-card input {
  min-height: 44px;
}

#argusLoginButton {
  min-height: 44px;
  transition: .2s ease;
}

#argusLoginButton:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media (min-width: 1000px) {
  .content { padding: 30px 36px 24px; }
  .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .content { padding: 22px 20px; }
  .topbar { padding: 0 18px; }
}

@media (max-width: 600px) {
  .content { padding: 17px 13px; }
  .page-heading { gap: 12px; align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .two-column { grid-template-columns: 1fr; }
  .top-actions { gap: 8px; }
  .system-label { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .topbar { height: 54px; }
  .content { padding-top: 16px; }
  .brand-logo { height: 68px; }
  .brand { padding-bottom: 12px; }
  .page-heading { margin-bottom: 14px; }
  .hero-panel { min-height: 125px; }
  .metric-card { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* PACKAGE09_VISUAL_QA_REVISION_02 */

/* PACKAGE09_STAGE05_UI_FINALIZATION */

/* Consistent module surfaces */
.page-view > .panel {
  min-width: 0;
  overflow: hidden;
}

.page-view .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.page-view .panel-heading h3 {
  margin-bottom: 5px;
}

.page-view .panel-heading p {
  line-height: 1.6;
}

/* Module empty states */
.page-view .empty-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px dashed rgba(103, 190, 226, .25);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(18, 48, 70, .28),
    rgba(7, 19, 33, .35)
  );
  color: rgba(207, 225, 239, .78);
  text-align: center;
  line-height: 1.7;
}

/* Forms and controls */
.page-view input,
.page-view select,
.page-view textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.page-view button,
.page-view input,
.page-view select,
.page-view textarea {
  font: inherit;
}

.page-view button:focus-visible,
.page-view input:focus-visible,
.page-view select:focus-visible,
.page-view textarea:focus-visible {
  outline: 2px solid rgba(72, 190, 245, .9);
  outline-offset: 3px;
}

.page-view button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Data table containment */
.page-view .table-responsive,
.page-view .case-table-wrap,
.page-view #evidenceTable,
.page-view #reportsTable {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* Landscape and narrow-screen resilience */
@media (max-width: 900px) {
  .page-view .panel {
    min-width: 0;
  }

  .page-view .panel-heading {
    align-items: flex-start;
  }

  #reportCreateForm .setting-row {
    grid-template-columns: 1fr;
  }

  .page-view .input-row {
    flex-wrap: wrap;
  }

  .page-view .input-row input,
  .page-view .input-row select {
    min-width: 0;
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .page-view .panel {
    padding: 14px;
  }

  .page-view .case-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-view .case-actions button {
    flex: 1 1 auto;
  }

  .page-view .empty-state {
    padding: 20px 14px;
  }
}



/* ARGUS STAGE 05 FORM GRID */
#s05-device-form,
#s05-bts-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
  width: 100%;
}

#s05-device-form label,
#s05-bts-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

#s05-device-form input,
#s05-bts-form input,
#s05-device-form select,
#s05-bts-form select,
#s05-device-form textarea,
#s05-bts-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#s05-device-result,
#s05-bts-result {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  #s05-device-form,
  #s05-bts-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #s05-device-result,
  #s05-bts-result {
    grid-column: 1;
  }
}
/* END ARGUS STAGE 05 FORM GRID */


/* ARGUS NAVIGATION VISIBILITY FIX
   Only the selected page-view may be visible.
   Navigation state remains controlled by app.js.
*/
.page-view:not(.active) {
    display: none !important;
}


/* ARGUS NAVIGATION SINGLE-PAGE VISIBILITY FIX */
.page-view:not(.active) {
  display: none !important;
}
.page-view.active {
  display: block !important;
}
.page-view.active.argus-overview-v3 {
  display: flex !important;
}

/* ARGUS Universal Link Manager */
#argus-link-manager{padding:18px;margin:16px 0;background:#101b2d;color:#e7eef9;border:1px solid #29476c;border-radius:14px}
#argus-link-manager input:not([type=checkbox]),#argus-link-manager textarea{display:block;width:100%;box-sizing:border-box;margin:7px 0 13px;padding:11px;background:#0a1423;color:#fff;border:1px solid #365477;border-radius:8px}
#argus-link-manager label{display:block;margin-top:8px}
#argus-link-manager button{padding:10px 14px;margin:8px 5px 8px 0;border:0;border-radius:8px;background:#1677d2;color:white}
.ulm-preview,.ulm-row{padding:13px;margin:12px 0;border:1px solid #365477;border-radius:10px}
#ulm-preview-image{max-width:100%;max-height:170px;object-fit:contain}

.cl-item{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;margin:8px 0;border:1px solid #365477;border-radius:9px}
.cl-copy-coordinates{padding:8px 12px;border:0;border-radius:7px;background:#1677d2;color:#fff}


/* ARGUS MAIN DASHBOARD - CONSENT LINK GENERATOR */
#page-consent .consent-dashboard-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
#consentGeneratorFrame {
  display: block;
  width: 100%;
  min-height: 850px;
  border: 0;
  border-radius: 10px;
  background: #09111f;
}
@media (max-width: 720px) {
  #consentGeneratorFrame {
    min-height: 1050px;
  }
}

/* ARGUS NATIVE CONSENT LINK GENERATOR */
#page-consent .consent-native-panel {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.consent-section {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(100,160,205,.2);
  border-radius: 10px;
  background: rgba(8,20,35,.48);
}
.consent-section h3 { margin: 0 0 14px; }
#consentCreateForm, #consentMetadataForm {
  display: grid;
  gap: 12px;
}
#consentCreateForm label, #consentMetadataForm label {
  display: grid;
  gap: 7px;
  color: #b9cde0;
  font-size: 12px;
}
#consentCreateForm input, #consentCreateForm textarea,
#consentMetadataForm input, #consentMetadataForm textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(110,160,205,.3);
  border-radius: 7px;
  background: #091522;
  color: #e8f2fc;
  font: inherit;
}
.consent-btn {
  padding: 9px 13px;
  border: 1px solid rgba(70,160,220,.4);
  border-radius: 7px;
  background: rgba(25,90,140,.2);
  color: #d9efff;
  cursor: pointer;
}
.consent-btn.primary {
  background: #1269a8;
  color: white;
}
.consent-btn.danger {
  border-color: rgba(230,90,90,.5);
  color: #ffaaaa;
}
.consent-notice {
  margin: 14px 0;
  padding: 12px;
  border-radius: 7px;
  background: rgba(30,115,160,.14);
  color: #8dd8ff;
  overflow-wrap: anywhere;
}
.consent-notice.error { color: #ffaaaa; }
.consent-link-card {
  margin: 10px 0;
  padding: 14px;
  border: 1px solid rgba(100,160,205,.2);
  border-radius: 9px;
  background: rgba(10,25,42,.75);
  display: grid;
  gap: 9px;
  overflow-wrap: anywhere;
}
.consent-card-top, .consent-section-heading, .consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.consent-link-card p, .consent-link-card small { margin: 0; }
.consent-muted { color: #8fa6bb; }
.consent-status { font-size: 10px; font-weight: bold; }
.consent-status.active { color: #70dfa7; }
.consent-status.inactive { color: #ff9b9b; }
.consent-diagnostics {
  max-height: 360px;
  overflow: auto;
  padding: 13px;
  background: #07111e;
  color: #a9d9f7;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media(max-width:650px) {
  .consent-section { padding: 12px; }
  .consent-actions { justify-content: flex-start; }
}
