/* Dharatic v2.4.1 — design system. Light, professional, enterprise. */
:root {
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-soft: #EDF1F7;
  --text: #122033;
  --text-2: #5B6B82;
  --muted: #8A97AB;
  --primary: #0B2A5B;
  --primary-deep: #071C3F;
  --primary-soft: #E8EEF7;
  --primary-border: #BFCFE8;
  --accent: #E21F26;
  --accent-soft: #FDECEC;
  --success: #1A7F4B;
  --success-soft: #E5F4EC;
  --warning: #B7791F;
  --warning-soft: #FBF3E2;
  --critical: #C0392B;
  --critical-soft: #FBEAE8;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .10);
  --r-sm: 8px;
  --r: 12px;
  --sidebar-w: 248px;
  --topbar-h: 60px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.num, td.n, .tile-v, .kpi-v { font-variant-numeric: tabular-nums; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* ---------- App frame ---------- */
#app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
#sidebar {
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  z-index: 40;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  flex: none;
}
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.brand-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
#nav { flex: 1; overflow-y: auto; padding: 12px 12px 16px; }
.nav-group { margin-bottom: 16px; }
.nav-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
  padding: 8px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 1px 0;
  border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: #F1F5FA; color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { flex: none; opacity: .85; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--critical); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.sidebar-foot {
  border-top: 1px solid var(--border-soft);
  padding: 12px 20px; font-size: 11.5px; color: var(--muted);
}

/* ---------- Main column ---------- */
#main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
#topbar {
  height: var(--topbar-h);
  background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; position: sticky; top: 0; z-index: 30;
}
.crumbs { font-size: 13px; color: var(--muted); white-space: nowrap; }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs .sep { margin: 0 8px; color: #C3CDDB; }
.topbar-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 10px; color: var(--muted); font-size: 13px;
  background: #FAFBFD; cursor: pointer; min-width: 240px;
}
.topbar-search kbd {
  margin-left: auto; font-family: inherit; font-size: 11px;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 6px; background: #fff; color: var(--muted);
}
.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: #F1F5FA; color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--critical); border: 2px solid #fff;
}
.conn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--success);
  background: var(--success-soft); border: 1px solid #CBE7D6;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.conn-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 4px; border-radius: 10px;
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #DCE7F5; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.user-chip .who { font-size: 12.5px; line-height: 1.3; }
.user-chip .who b { display: block; font-size: 13px; }
.user-chip .who span { color: var(--muted); font-size: 11.5px; }

/* ---------- Content ---------- */
#view { padding: 24px 32px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 20px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; max-width: 900px; }
.page-head .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-h { padding: 16px 20px 0; }
.card-h h2, .card-h h3 { font-size: 15px; }
.card-h p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card-b { padding: 16px 20px 20px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- KPI tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 16px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 12px 14px; min-width: 0;
}
.tile-l { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile-v { font-size: 21px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.tile-v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.tile-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tile-s .up { color: var(--critical); font-weight: 600; }
.tile-s .down { color: var(--success); font-weight: 600; }
.tile-s .flat { color: var(--text-2); }

/* ---------- Pills, badges, buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill.critical { background: var(--critical-soft); color: var(--critical); border-color: #F2CFCB; }
.pill.high { background: var(--warning-soft); color: var(--warning); border-color: #EDDDB8; }
.pill.medium { background: #FFF7E6; color: #8A5A12; border-color: #F0E2BE; }
.pill.low { background: #F1F5FA; color: var(--text-2); border-color: var(--border); }
.pill.success, .pill.completed { background: var(--success-soft); color: var(--success); border-color: #CBE7D6; }
.pill.info, .pill.drilling { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-border); }
.pill.abandoned { background: #F1F5FA; color: var(--muted); border-color: var(--border); }
.pill.suspended { background: var(--warning-soft); color: var(--warning); border-color: #EDDDB8; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.btn:hover { background: #F1F5FA; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #0A5298; }
.btn.danger { color: var(--critical); border-color: #EAC4C0; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 10px 16px;
  border-bottom: 1px solid var(--border); background: #FAFBFD;
  position: sticky; top: 0; white-space: nowrap;
}
.tbl tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #F8FAFD; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .wellid { font-weight: 700; color: var(--primary); }
.simbar { display: inline-flex; align-items: center; gap: 8px; }
.simbar .track { width: 72px; height: 6px; border-radius: 3px; background: #E9EEF5; overflow: hidden; }
.simbar .fill { height: 100%; background: var(--primary); border-radius: 3px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, input.input {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 12px; background: #fff;
}
.input:focus { outline: 2px solid var(--primary-border); border-color: var(--primary); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar select.input { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.seg button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: none; border: 0; padding: 7px 14px; cursor: pointer; border-right: 1px solid var(--border-soft);
}
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--primary-soft); color: var(--primary); }

/* ---------- Alerts ---------- */
.alert-row {
  display: flex; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft); align-items: flex-start;
}
.alert-row:last-child { border-bottom: 0; }
.alert-row.ack { opacity: .62; }
.sev-bar { width: 4px; border-radius: 2px; align-self: stretch; flex: none; }
.sev-bar.critical { background: var(--critical); }
.sev-bar.high { background: var(--warning); }
.sev-bar.medium { background: #D9A62E; }
.alert-main { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.alert-detail { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.alert-rec {
  margin-top: 8px; font-size: 12.5px; background: #F6F9FD;
  border: 1px solid var(--border-soft); border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 8px 12px; color: var(--text-2);
}
.alert-rec b { color: var(--text); }
.alert-actions { display: flex; gap: 8px; flex: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline:before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 1px; }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-item:before {
  content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--muted);
}
.tl-item.critical:before { border-color: var(--critical); }
.tl-item.high:before { border-color: var(--warning); }
.tl-item.medium:before { border-color: #D9A62E; }
.tl-item.low:before { border-color: var(--success); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head b { font-size: 13.5px; }
.tl-head .meta { font-size: 12px; color: var(--muted); }
.tl-body { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 860px; }

/* ---------- Lesson / doc cards ---------- */
.result-card { border: 1px solid var(--border); border-radius: var(--r); background: #fff; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.result-card .rc-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.result-card .rc-head b { font-size: 14px; }
.result-card .rc-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.result-card .rc-body { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.rc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 10px; }
.rc-kv .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rc-kv .v { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.src-link { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ---------- Pipeline ---------- */
.pipeline { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 0; }
.pipe-stage {
  flex: 1; min-width: 150px; background: #F8FAFD; border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 14px; position: relative; margin-right: 28px;
}
.pipe-stage:after {
  content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 2px; background: var(--border);
}
.pipe-stage:last-child { margin-right: 0; }
.pipe-stage:last-child:after { display: none; }
.pipe-stage .ps-n { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.pipe-stage .ps-c { font-size: 24px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pipe-stage .ps-d { font-size: 12px; color: var(--muted); }

/* ---------- Drawer & palette ---------- */
#drawer-scrim, #palette-scrim {
  position: fixed; inset: 0; background: rgba(15, 30, 51, .38);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 60;
}
#drawer-scrim.open, #palette-scrim.open { opacity: 1; pointer-events: auto; }
#drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: #fff; z-index: 61; transform: translateX(100%); transition: transform .2s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
#drawer.open { transform: none; }
.drawer-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.drawer-h h3 { font-size: 15px; flex: 1; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 0; }
#palette {
  position: fixed; top: 12vh; left: 50%; transform: translate(-50%, -8px);
  width: 560px; max-width: 92vw; background: #fff; z-index: 62;
  border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: all .15s;
}
#palette.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#palette input {
  width: 100%; border: 0; border-bottom: 1px solid var(--border-soft);
  padding: 16px 20px; font-size: 14px; font-family: inherit; border-radius: 14px 14px 0 0;
}
#palette input:focus { outline: none; }
.palette-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.palette-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  font-family: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left;
}
.palette-item:hover, .palette-item.sel { background: var(--primary-soft); }
.palette-item .sub { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ---------- Map page ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
#fieldmap, .minimap { border-radius: var(--r); border: 1px solid var(--border); }
#fieldmap { height: 560px; }
.minimap { height: 220px; }
.leaflet-container { font-family: inherit; }
.well-pop { font-size: 12.5px; }
.well-pop b { font-size: 13.5px; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.map-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.well-side-item { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.well-side-item:hover { background: #F8FAFD; }
.well-side-item.sel { background: var(--primary-soft); }
.well-side-item .r1 { display: flex; justify-content: space-between; align-items: center; }
.well-side-item .r1 b { font-size: 13px; }
.well-side-item .r2 { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Correlation ---------- */
.corr-wrap { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.corr-scale { flex: none; width: 52px; position: relative; }
.corr-col { flex: none; width: 150px; margin-right: 14px; }
.corr-col .cc-head { text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px 4px; }
.corr-col .cc-head .sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.corr-track { position: relative; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.corr-band { position: absolute; left: 0; right: 0; border-bottom: 1px solid rgba(15,30,51,.08); }
.corr-band span { position: absolute; left: 6px; top: 3px; font-size: 10px; font-weight: 600; color: rgba(15,30,51,.62); }
.corr-evt {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.3); cursor: pointer;
}
.corr-evt.critical { background: var(--critical); }
.corr-evt.high { background: var(--warning); }
.corr-evt.medium { background: #D9A62E; }
.corr-evt.low { background: var(--success); }
.corr-bit { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--primary); }
.corr-bit span { position: absolute; right: 4px; top: -18px; font-size: 10px; font-weight: 700; color: var(--primary); background: #fff; padding: 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--primary-border); background: var(--primary-soft); color: var(--primary);
  font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 8px 5px 12px;
}
.chip button { border: 0; background: none; color: inherit; cursor: pointer; display: flex; padding: 2px; border-radius: 50%; }
.chip button:hover { background: rgba(11,92,173,.12); }

/* ---------- Wellbore schematic ---------- */
.schematic { display: flex; gap: 24px; }
.schematic svg { flex: none; }

/* ---------- Feature bars (risk) ---------- */
.fbar { display: grid; grid-template-columns: 240px 1fr 52px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
.fbar .track { height: 8px; background: #E9EEF5; border-radius: 4px; overflow: hidden; }
.fbar .fill { height: 100%; background: var(--primary); border-radius: 4px; }
.fbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.kv .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv .v { font-size: 14px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kv .v small { font-weight: 400; color: var(--muted); font-size: 12px; }
.callout {
  border: 1px solid var(--border-soft); border-left: 3px solid var(--primary);
  background: #F6F9FD; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px; font-size: 13px; color: var(--text-2); margin-bottom: 12px;
}
.callout.warn { border-left-color: var(--warning); background: #FDF9F0; }
.callout.crit { border-left-color: var(--critical); background: #FDF4F3; }
.callout b { color: var(--text); }
.divider { border: 0; border-top: 1px solid var(--border-soft); margin: 16px 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #F1F5FA; color: var(--muted); align-items: center; justify-content: center; margin-bottom: 12px; }
.empty h3 { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.empty p { font-size: 13px; margin: 0; }
.skel { border-radius: 6px; background: #E9EEF5; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.chart-box { width: 100%; }
.footer-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.confbar { display: inline-flex; align-items: center; gap: 8px; }
.confbar .track { width: 80px; height: 6px; border-radius: 3px; background: #E9EEF5; overflow: hidden; }
.confbar .fill { height: 100%; border-radius: 3px; background: var(--success); }
.entity-tag { display: inline-block; font-size: 11px; font-weight: 600; background: #F1F5FA; border: 1px solid var(--border-soft); color: var(--text-2); border-radius: 6px; padding: 2px 8px; margin: 0 6px 6px 0; font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
#menu-btn { display: none; }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  #sidebar { transform: translateX(-100%); transition: transform .2s; }
  #sidebar.open { transform: none; }
  #main { margin-left: 0; }
  #menu-btn { display: inline-flex; }
  #view { padding: 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .topbar-search { display: none; }
  .user-chip .who { display: none; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Print (report export) ---------- */
@media print {
  #sidebar, #topbar, .page-head .actions, #drawer, #palette, #drawer-scrim, #palette-scrim { display: none !important; }
  #main { margin-left: 0; }
  #view { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- NWIS Copilot ---------- */
#copilot-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  background: #0B5CAD; color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(11, 92, 173, .35);
}
#copilot-fab:hover { background: #0A5298; }
#copilot-fab .cp-tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: #0F1E33; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
#copilot-fab:hover .cp-tip { opacity: 1; }
#copilot-scrim {
  position: fixed; inset: 0; background: rgba(15, 30, 51, .28);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 56;
}
#copilot-scrim.open { opacity: 1; pointer-events: auto; }
#copilot {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 94vw;
  background: #fff; z-index: 57; transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border);
}
#copilot.open { transform: none; }
.cp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.cp-title { display: flex; align-items: center; gap: 12px; }
.cp-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.cp-title b { display: block; font-size: 14.5px; }
.cp-title span { font-size: 12px; color: var(--muted); }
.cp-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #FAFBFD; }
.cp-msg { display: flex; gap: 10px; }
.cp-msg.user { justify-content: flex-end; }
.cp-bubble {
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px; max-width: 85%;
}
.cp-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px;
}
.cp-body { flex: 1; min-width: 0; }
.cp-output { font-size: 13px; color: var(--text-2); }
.cp-h { font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.cp-h:first-child { margin-top: 0; }
.cp-p { margin: 0 0 8px; line-height: 1.55; }
.cp-callout { border-radius: 10px; padding: 12px 14px; margin: 4px 0 12px; border: 1px solid var(--border-soft); }
.cp-callout b { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.cp-callout span { font-size: 12.5px; color: var(--text-2); }
.cp-callout.verdict { background: #F6F9FD; border-left: 3px solid var(--primary); }
.cp-callout.warn { background: #FDF9F0; border-left: 3px solid var(--warning); }
.cp-callout.info { background: #F2F7FD; border-left: 3px solid var(--primary); }
.cp-table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--border-soft); border-radius: 10px; }
table.cp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.cp-table th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); background: #FAFBFD; white-space: nowrap;
}
.cp-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.cp-table tr:last-child td { border-bottom: 0; }
.cp-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.cp-check { list-style: none; margin: 0 0 12px; padding: 0; }
ul.cp-check li { margin-bottom: 8px; }
ul.cp-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 12.5px; }
ul.cp-check input { margin-top: 3px; accent-color: var(--primary); width: 15px; height: 15px; flex: none; }
ul.cp-check.static li { display: flex; gap: 10px; }
ul.cp-check.static li:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 6px; }
.cp-donot { background: #FDF4F3; border: 1px solid #F2CFCB; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.cp-donot b { display: block; font-size: 12.5px; color: var(--critical); margin-bottom: 6px; }
.cp-donot ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); }
.cp-donot li { margin-bottom: 4px; }
.cp-cites { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.cp-cites div { margin-bottom: 3px; }
.cp-copy { margin-top: 6px; }
.cp-stages { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.cp-stage { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.cp-spin {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--primary-border); border-top-color: var(--primary);
  animation: cp-rot .7s linear infinite;
}
@keyframes cp-rot { to { transform: rotate(360deg); } }
.cp-tick { color: var(--success); display: inline-flex; flex: none; }
.cp-stage.done { color: var(--muted); }
.cp-foot { border-top: 1px solid var(--border); padding: 12px 16px 16px; background: #fff; }
.cp-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cp-chip {
  text-align: left; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: 10px;
  padding: 9px 12px; cursor: pointer;
}
.cp-chip:hover { background: #DCEAFB; }
.cp-input-row { display: flex; gap: 8px; }
.cp-input-row input {
  flex: 1; font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px;
}
.cp-input-row input:focus { outline: 2px solid var(--primary-border); border-color: var(--primary); }
@media print { #copilot, #copilot-fab, #copilot-scrim { display: none !important; } }

/* ---------- Copilot hero components ---------- */
.cp-hero { margin: 0 0 14px; }
.cp-gauges { display: flex; gap: 8px; justify-content: space-between; }
.cp-gauge { flex: 1; text-align: center; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 6px 8px; }
.cp-gauge-v { font-size: 22px; font-weight: 700; margin-top: -22px; }
.cp-gauge-l { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.cp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-kpi { background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px; }
.cp-kpi-v { font-size: 20px; font-weight: 700; }
.cp-kpi-v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.cp-kpi-l { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.cp-kpi-d { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 2px; }
.cp-pbar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.cp-pbar-head b { font-size: 12.5px; }
.cp-pbar { height: 10px; background: #E9EEF5; border-radius: 5px; overflow: hidden; }
.cp-pbar-fill { height: 100%; width: 0; background: var(--primary); border-radius: 5px; }
.cp-spark-t { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cp-spark { width: 100%; height: 96px; display: block; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; }
.cp-spark-m { font-size: 11.5px; color: var(--critical); font-weight: 600; margin-top: 6px; }
.cp-donut-wrap { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 16px; }
.cp-donut-n { font-size: 22px; font-weight: 700; fill: var(--text); }
.cp-donut-l { font-size: 10.5px; fill: var(--muted); }
.cp-donut-leg { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cp-donut-leg .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cp-donut-leg b { margin-left: auto; }
.cp-depth { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.cp-depth-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #E9EEF5; }
.cp-depth-grid span { position: absolute; left: 8px; top: -9px; font-size: 10px; color: var(--muted); background: #fff; padding: 0 4px; }
.cp-depth-bit { position: absolute; left: 0; right: 0; border-top: 2px solid var(--primary); z-index: 2; }
.cp-depth-bit span { position: absolute; left: 8px; top: -20px; font-size: 11px; font-weight: 700; color: var(--primary); background: #E8F1FD; border-radius: 6px; padding: 1px 8px; }
.cp-depth-m { position: absolute; left: 0; right: 0; display: flex; align-items: center; opacity: 0; transform: translateX(-6px); animation: cp-slidein .4s ease forwards; z-index: 1; }
@keyframes cp-slidein { to { opacity: 1; transform: none; } }
.cp-depth-tick { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(16,24,40,.35); margin-left: 60px; flex: none; }
.cp-depth-m.crit .cp-depth-tick { background: var(--critical); }
.cp-depth-m.warn .cp-depth-tick { background: var(--warning); }
.cp-depth-lbl { font-size: 11px; color: var(--text-2); margin-left: 8px; background: #fff; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-soft); }
.cp-depth-lbl b { color: var(--text); }
.cp-stepper { display: flex; align-items: flex-start; }
.cp-step { flex: 1; text-align: center; opacity: 0; transform: translateY(6px); animation: cp-slidein .4s ease forwards; }
.cp-step-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.cp-step-v { font-size: 14px; font-weight: 700; margin-top: 6px; }
.cp-step-at { font-size: 11px; color: var(--primary); font-weight: 600; }
.cp-step-note { font-size: 11px; color: var(--muted); }
.cp-step-link { flex: none; width: 100%; max-width: 28px; height: 2px; background: var(--primary-border); margin-top: 15px; }
.cp-thresh { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-thresh-chip {
  font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft);
  border: 1px solid var(--primary-border); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums;
}
.cp-ev-row { border: 1px solid var(--border-soft); border-radius: 10px; background: #fff; margin-bottom: 8px; overflow: hidden; }
.cp-ev-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.cp-ev-t { font-size: 12.5px; font-weight: 600; color: var(--text); flex: 1; }
.cp-ev-bar { width: 90px; height: 7px; background: #E9EEF5; border-radius: 4px; overflow: hidden; flex: none; }
.cp-ev-fill { display: block; height: 100%; width: 0; border-radius: 4px; }
.cp-ev-chev { color: var(--muted); display: inline-flex; transition: transform .18s; flex: none; }
.cp-ev-row.open .cp-ev-chev { transform: rotate(180deg); }
.cp-ev-detail { display: none; margin: 0 12px 12px; padding-top: 10px; font-size: 12.5px; color: var(--text-2); border-top: 1px dashed var(--border-soft); }
.cp-ev-row.open .cp-ev-detail { display: block; }
.cp-checkwrap { background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; padding: 4px 12px 8px; margin: 0 0 12px; }
.cp-checkhead { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; }
.cp-checkhead span:first-child { font-size: 12px; font-weight: 700; color: var(--text); }
.cp-ringwrap { display: inline-flex; }
.cp-ring-t { font-size: 9px; font-weight: 700; fill: var(--text-2); }
.cp-checkwrap ul.cp-check { margin-bottom: 4px; }

/* ---- Forward risk heatmap ---- */
.hm-grid { display: grid; grid-template-columns: 150px repeat(31, 1fr); gap: 2px; align-items: center; }
.hm-head { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; }
.hm-rowlab { font-size: 12px; font-weight: 600; color: var(--text-2); padding-right: 8px; white-space: nowrap; }
.hm-cell { height: 26px; border-radius: 4px; cursor: pointer; border: 1px solid rgba(15,30,51,.08); }
.hm-cell:hover { outline: 2px solid var(--primary); outline-offset: 1px; }
.hm-cell.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-scale { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.hm-bar { width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #DFF2E3, #FFF3D6 40%, #FAD9CF 70%, #F3B7AE); }
.risk-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.risk-block { height: 44px; border-radius: 6px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font-size: 10px; font-weight: 700; color: rgba(15,30,51,.65); border: 1px solid rgba(15,30,51,.08); }
.risk-block:hover { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ---- Depth track ---- */
.dt-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.dt-readout { position: absolute; top: 10px; right: 10px; background: #0F1E33; color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 12px; line-height: 1.7; min-width: 190px; pointer-events: none; z-index: 5; box-shadow: var(--shadow-lg); }
.dt-readout b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dt-readout .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.dt-readout .r span:first-child { color: #9FB3CC; }

/* ---- Replay timeline ---- */
.rp-item { position: relative; padding: 0 0 26px 8px; }
.rp-scale { position: relative; height: 190px; width: 64px; flex: none; border-left: 2px solid var(--border); margin-left: 30px; }
.rp-mark { position: absolute; left: -7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rp-mark.alert { background: var(--warning); }
.rp-mark.event { background: var(--critical); }
.rp-mark span { position: absolute; left: 18px; top: -4px; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rp-card { flex: 1; }

/* ---- Alert verdicts ---- */
.btn.true { border-color: var(--success); color: var(--success); }
.btn.true:hover { background: #EAF7EF; }
.btn.false { border-color: var(--critical); color: var(--critical); }
.btn.false:hover { background: #FDF0EF; }
.verdict-pill.true { background: #EAF7EF; color: var(--success); border: 1px solid #BFE6CD; }
.verdict-pill.false { background: #FDF0EF; color: var(--critical); border: 1px solid #F2C4C0; }
.note-input { width: 100%; margin-top: 8px; }
.chan-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.chan-row b { color: var(--text-2); font-weight: 600; }
.chan-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; }

/* ---- Physics panel ---- */
.ecdbar { position: relative; height: 34px; border-radius: 6px; overflow: hidden; background: linear-gradient(90deg, #DFF2E3 0%, #DFF2E3 55%, #FFF3D6 55%, #FFF3D6 82%, #FAD9CF 82%, #FAD9CF 100%); border: 1px solid var(--border); }
.ecdbar .mk { position: absolute; top: 0; bottom: 0; width: 3px; }
.ecdbar .mk.ecd { background: var(--primary); }
.ecdbar .mk.fg { background: var(--critical); }
.ecdbar .lbl { position: absolute; top: -2px; font-size: 10px; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }
.ecd-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---- Field Mode ---- */
#fieldmode { display: none; }
body.field-mode { overflow: hidden; }
body.field-mode #app { display: none; }
body.field-mode #fieldmode { display: flex; flex-direction: column; position: fixed; inset: 0; background: #0B1526; color: #fff; z-index: 2000; padding: 28px 40px; gap: 24px; }
.fm-top { display: flex; align-items: center; justify-content: space-between; }
.fm-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: #9FB3CC; }
.fm-top .btn { background: #fff; border-color: #fff; color: #0B1526; font-size: 15px; padding: 12px 22px; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; min-height: 0; }
.fm-well, .fm-alert { background: #12233D; border: 1px solid #243B5E; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.fm-k { font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9FB3CC; }
.fm-md { font-size: 110px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.fm-md small { font-size: 30px; color: #9FB3CC; font-weight: 500; }
.fm-form { font-size: 30px; font-weight: 600; }
.fm-next { font-size: 20px; color: #9FB3CC; }
.fm-next b { color: #fff; }
.fm-atitle { font-size: 40px; font-weight: 700; line-height: 1.2; }
.fm-alert.critical { border-left: 10px solid #E5484D; }
.fm-alert.high { border-left: 10px solid #F5A524; }
.fm-alert.medium { border-left: 10px solid #D9A62E; }
.fm-adetail { font-size: 22px; color: #C7D4E8; }
.fm-arec { font-size: 24px; margin-top: 8px; }
.fm-arec b { color: #F5A524; }

/* ============ Dharatic portal ============ */
.brand-tic { color: var(--accent); }
.brand-mark { background: var(--primary); }

/* Public pages: hide app chrome */
body.public #sidebar, body.public #topbar { display: none; }
body.public #copilot-fab, body.public #copilot-panel { display: none !important; }
body.public #main { margin-left: 0; }
body.public #view { padding: 0; max-width: none; }

/* Tricolor strip */
.tricolor { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tricolor div:nth-child(1) { background: #FF9933; }
.tricolor div:nth-child(2) { background: #fff; }
.tricolor div:nth-child(3) { background: #138808; }

/* Ministry strip */
.gov-strip {
  background: var(--primary-deep); color: #C9D3E3;
  font-size: 12px; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 64px;
}
.gov-strip .dev { font-family: "IBM Plex Sans Devanagari", "IBM Plex Sans", sans-serif; }
.gov-strip .sep { opacity: .4; margin: 0 8px; }
.gov-right { display: flex; gap: 18px; align-items: center; }
.gov-right .acc { display: flex; gap: 4px; }
.gov-right .acc button { background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; color: #C9D3E3; font-size: 11px; padding: 1px 6px; cursor: pointer; font-family: inherit; }
.gov-right .acc button:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.gov-right .lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.gov-right .lang b, .gov-right .lang .dev { padding: 2px 10px; font-size: 12px; font-weight: 400; }
.gov-right .lang b { background: #fff; color: #071C3F; font-weight: 600; }

/* Portal masthead */
.portal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 64px; border-bottom: 1px solid var(--border); background: #fff;
}
.portal-brand { display: flex; align-items: center; gap: 20px; }
.oil-lockup { display: flex; align-items: center; gap: 12px; }
.oil-lockup img { width: 44px; height: 64px; object-fit: contain; }
.oil-lockup .t1 { font-family: "IBM Plex Sans Devanagari", sans-serif; font-size: 13px; color: var(--primary); font-weight: 500; }
.oil-lockup .t2 { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.oil-lockup .t3 { font-size: 11px; color: var(--muted); }
.portal-divider { width: 1px; height: 44px; background: #D6DBE3; }
.portal-dharatic .d1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.portal-dharatic .d1 .tic { color: var(--accent); }
.portal-dharatic .d2 { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.portal-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.portal-nav a { color: #3E4A5C; }
.portal-nav a.on { color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.btn-navy { background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; }
.btn-navy:hover { background: #133A78; }
.btn-red { background: var(--accent); color: #fff; padding: 14px 26px; border-radius: 7px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; }
.btn-red:hover { background: #C4161C; }
.btn-ghost-w { color: #fff; padding: 13px 22px; border-radius: 7px; border: 1px solid rgba(255,255,255,.35); font-weight: 500; font-family: inherit; font-size: 15px; background: transparent; cursor: pointer; }
.btn-ghost-w:hover { background: rgba(255,255,255,.08); }

/* Hero */
.dh-hero { position: relative; background: var(--primary); color: #fff; overflow: hidden; }
.dh-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding: 80px 64px 56px; align-items: end; z-index: 2; }
.dh-kicker { display: flex; align-items: center; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #FFB3B6; }
.dh-kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.dh-hero h1 { margin: 18px 0 0; font-size: 54px; line-height: 1.07; letter-spacing: -.02em; font-weight: 600; }
.dh-hero h1 .hl { color: #FF8F93; }
.dh-hero p.sub { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #D3DCEA; max-width: 560px; }
.dh-hero-cta { display: flex; gap: 14px; margin-top: 28px; align-items: center; }
.dh-dhara { text-align: right; padding-bottom: 6px; }
.dh-dhara .big { font-family: "IBM Plex Sans Devanagari", sans-serif; font-size: 120px; line-height: .9; color: rgba(255,255,255,.10); display: block; }
.dh-dhara .cap { font-size: 14px; line-height: 1.55; color: #AFBDD3; max-width: 300px; margin-left: auto; }
.dh-dhara .cap b { color: #fff; }

/* Animated geological cross-section */
.dh-xsec2 { position: relative; height: 400px; overflow: hidden; }
.dh-xsec2 svg { width: 100%; height: 100%; display: block; }
.dh-ev { transform-box: fill-box; transform-origin: center; animation: dhPulse 2.4s ease-out infinite; }
.dh-bore { transform-box: fill-box; transform-origin: top; animation: dhBore 9s cubic-bezier(.35,.6,.4,1) infinite; }
@keyframes dhPulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dhBore { 0% { transform: scaleY(0); } 80%, 100% { transform: scaleY(1); } }
@keyframes dhWarn { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(226,31,38,.95); } 50% { box-shadow: inset 0 0 0 2px rgba(226,31,38,.15); } }
@keyframes dhPop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.dh-xsec-callout { position: absolute; left: 712px; top: 296px; background: #fff; color: #122033; border-radius: 6px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(3,12,30,.3); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.dh-xsec-callout .dot { width: 8px; height: 8px; border-radius: 50%; background: #E21F26; flex: none; }
.dh-xsec-legend { position: absolute; right: 20px; bottom: 16px; display: flex; gap: 16px; background: rgba(7,28,63,.85); padding: 9px 15px; border-radius: 6px; font-size: 12px; color: #E3E9F2; align-items: center; }
.dh-xsec-legend span { display: flex; align-items: center; gap: 6px; }
.dh-xsec-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dh-xsec-legend .dim { color: #8FA0BC; }

/* Notice bar + stats */
.dh-notice { display: flex; align-items: center; gap: 16px; background: #FEF4F4; border-bottom: 1px solid #F6DADB; padding: 12px 64px; font-size: 13.5px; color: #3E4A5C; }
.dh-notice .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 3px; }
.dh-notice a { margin-left: auto; font-weight: 600; color: #B3141A; white-space: nowrap; }
.dh-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); background: #fff; }
.dh-stat { padding: 26px 64px 26px 64px; border-right: 1px solid var(--border); }
.dh-stat:last-child { border-right: 0; }
.dh-stat .v { font-size: 32px; font-weight: 600; color: var(--primary); letter-spacing: -.02em; }
.dh-stat .l { font-size: 13.5px; color: var(--muted); }

/* Sections */
.dh-section { padding: 88px 64px; }
.dh-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dh-h2 { margin: 12px 0 0; font-size: 36px; line-height: 1.15; letter-spacing: -.015em; color: var(--primary); font-weight: 600; max-width: 760px; }
.dh-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: #4A5568; max-width: 760px; }
.dh-today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.dh-today { background: var(--bg); border-radius: 14px; padding: 36px; }
.dh-today.dark { background: var(--primary); color: #fff; }
.dh-today .k { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.dh-today.dark .k { color: #FFB3B6; }
.dh-today h3 { font-size: 24px; margin: 12px 0; font-weight: 600; }
.dh-today p { font-size: 15px; line-height: 1.6; color: #4A5568; margin: 0; }
.dh-today.dark p { color: #C9D3E3; }
.dh-today .big-n { font-size: 30px; font-weight: 600; margin-top: 18px; }
.dh-today .big-n small { font-size: 13px; font-weight: 400; color: var(--muted); }
.dh-today.dark .big-n small { color: #AFBDD3; }
.dh-alert-card { background: #fff; border-radius: 10px; padding: 16px; color: var(--text); margin-top: 18px; box-shadow: 0 20px 40px rgba(3,12,30,.35); animation: dhFloat 5s ease-in-out infinite; }
@keyframes dhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dh-alert-card .row { display: flex; gap: 6px; margin-bottom: 8px; }
.dh-alert-card .t { font-size: 15px; font-weight: 600; }
.dh-alert-card .m { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
.dh-alert-card .b { font-size: 13px; color: #3E4A5C; border-top: 1px solid #EEF0F3; padding-top: 8px; margin-top: 8px; }
.dh-alert-card .lk { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 8px; }

/* Radar + depth sections */
.dh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dh-checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dh-checks li { position: relative; padding-left: 28px; font-size: 14.5px; color: #3E4A5C; }
.dh-checks li::before { content: "✓"; position: absolute; left: 0; color: #1E7B4A; font-weight: 700; }
.dh-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.dh-facts div { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.dh-facts b { display: block; font-size: 19px; color: var(--primary); }
.dh-facts span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }

/* Radar map (See your neighbours) */
@keyframes dhSpin { to { transform: rotate(360deg); } }
.dh-radar2 { position: relative; width: 580px; height: 440px; max-width: 100%; margin: 0 auto; background: #F2F5F9; background-image: linear-gradient(#E3E9F2 1px, transparent 1px), linear-gradient(90deg, #E3E9F2 1px, transparent 1px); background-size: 29px 29px; border-radius: 12px; overflow: hidden; }
.rr-ring { position: absolute; border-radius: 50%; border: 1px dashed #AFBDD3; }
.rr-ring.emph { border: 1px dashed #0B2A5B; background: rgba(11,42,91,.04); }
.rr-ring span { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #5A6576; background: #F2F5F9; padding: 0 5px; }
.rr-sweep { position: absolute; left: 90px; top: 20px; width: 400px; height: 400px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(11,42,91,0) 0deg, rgba(11,42,91,0) 290deg, rgba(11,42,91,.20) 360deg); animation: dhSpin 6s linear infinite; }
.rr-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); animation: dhPop .5s both cubic-bezier(.3,1.6,.5,1); }
.rr-tag { position: absolute; left: 18px; top: -10px; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; }
.rr-tag.ev { background: #fff; padding: 4px 8px; border-radius: 5px; box-shadow: 0 3px 10px rgba(11,42,91,.15); }
.rr-tag b { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: #122033; }
.rr-tag span { font-size: 11px; color: #B3141A; font-weight: 500; }
.rr-pulse { position: absolute; left: 281px; top: 211px; width: 18px; height: 18px; border-radius: 50%; background: #0B2A5B; transform-origin: center; animation: dhPulse 2s ease-out infinite; }
.rr-centre { position: absolute; left: 281px; top: 211px; width: 18px; height: 18px; border-radius: 50%; background: #0B2A5B; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11,42,91,.4); }
.rr-me { position: absolute; left: 250px; top: 284px; width: 80px; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; color: #0B2A5B; }
.rr-badge { position: absolute; right: 14px; top: 12px; background: #0B2A5B; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.rr-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 14px; background: #fff; padding: 7px 12px; border-radius: 6px; font-size: 11.5px; color: #3E4A5C; box-shadow: 0 2px 8px rgba(11,42,91,.08); }
.rr-legend span { display: flex; align-items: center; gap: 6px; }
.rr-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Depth column (Know what's ahead) */
.dh-depth2 { position: relative; padding: 8px 0 0; }
.dd-head { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #5A6576; margin-bottom: 8px; }
.dd-body { position: relative; height: 500px; }
.dd-tick { position: absolute; left: 0; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #8A97AB; transform: translateY(-50%); }
.dd-col { position: absolute; left: 70px; top: 0; width: 190px; height: 420px; border-radius: 6px; overflow: hidden; background: #EDF0F4; }
.dd-band { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,.35); padding: 3px 8px; font-size: 10.5px; font-weight: 600; }
.dd-band.warn { animation: dhWarn 1.6s ease-in-out infinite; }
.dd-bitline { position: absolute; left: 0; right: 0; top: 0; animation: dhBitDrop 8s cubic-bezier(.35,.6,.4,1) infinite; }
.dd-bitline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px dashed #0B2A5B; }
.dd-bit { position: absolute; right: 6px; top: -11px; background: #0B2A5B; color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 4px; }
@keyframes dhBitDrop { 0% { transform: translateY(0); } 78%, 100% { transform: translateY(298px); } }
.dd-pin { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #E21F26; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Modules grid */
.dh-mod-group { margin-top: 36px; }
.dh-mod-group-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.dh-mod-group-h .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; color: var(--accent); }
.dh-mod-group-h .t { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--primary); }
.dh-mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.dh-mod { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.dh-mod .g { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.dh-mod h4 { font-size: 16px; margin: 8px 0 6px; }
.dh-mod p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }
.dh-mod .go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; }
.dh-extras { grid-template-columns: repeat(3, 1fr); }
.dh-extra { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.dh-extra h4 { color: #fff; }
.dh-extra p { color: #C9D3E3; }
.dh-extra .g { color: #FFB3B6; }
.dh-docrow { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dh-docrow span { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #8A97AB; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; background: #fff; }
.dh-who-chip { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #FFD9DB; border-radius: 20px; padding: 5px 12px; margin-bottom: 14px; }

/* Steps */
.dh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.dh-step { border-top: 3px solid var(--primary); padding-top: 18px; }
.dh-step .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; color: var(--accent); }
.dh-step h4 { font-size: 16px; margin: 8px 0 6px; }
.dh-step p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* Who cards */
.dh-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.dh-who-card { background: var(--primary-deep); color: #fff; border-radius: 12px; padding: 28px; }
.dh-who-card h4 { font-size: 17px; margin: 0 0 8px; }
.dh-who-card p { font-size: 13.5px; color: #C9D3E3; margin: 0; line-height: 1.6; }

/* Notices + helpdesk */
.dh-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 40px; }
.dh-notice-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 12px; background: #fff; }
.dh-notice-card .d { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); }
.dh-notice-card .t { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.dh-notice-card .s { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.dh-notice-card .ntag { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--primary); background: #EAF1FB; border-radius: 3px; padding: 3px 8px; margin-top: 8px; }
.dh-help { background: var(--bg); border-radius: 12px; padding: 28px; }
.dh-help h4 { font-size: 16px; margin: 0 0 12px; }
.dh-help .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.dh-help .row:last-child { border-bottom: 0; }
.dh-help .row b { font-weight: 600; }

/* Footer */
.dh-footer { background: var(--primary-deep); color: #C9D3E3; padding: 48px 64px 32px; }
.dh-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.dh-footer h5 { color: #fff; font-size: 13px; margin: 0 0 12px; }
.dh-footer a { color: #C9D3E3; font-size: 13px; display: block; margin-bottom: 8px; }
.dh-footer .base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; align-items: center; }
.dh-footer .legal a { display: inline; margin: 0 0 0 18px; }

/* ============ Login ============ */
.dh-login { display: grid; grid-template-columns: 640px 1fr; min-height: 100vh; }
.dh-login-left { background: var(--primary); color: #fff; padding: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.dh-login-left .rig-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.dh-login-left .rig-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,42,91,.7) 0%, #0B2A5B 70%); pointer-events: none; }
.tricolor.abs { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.dh-login-left .oil-row { display: flex; align-items: center; gap: 14px; z-index: 2; position: relative; padding: 52px 56px 0; }
.dh-login-left .logo-box { background: #fff; border-radius: 8px; padding: 6px; display: inline-flex; width: 52px; height: 70px; align-items: center; justify-content: center; flex: none; }
.dh-login-left .logo-box img { width: 40px; height: 58px; object-fit: contain; }
.dh-login-left .left-mid { position: relative; z-index: 2; padding: 0 56px; margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 22px; }
.dh-login-left h2 { font-size: 52px; line-height: 1; margin: 0; font-weight: 700; letter-spacing: -.02em; z-index: 2; }
.dh-login-left h2 .tic { color: #FF8F93; }
.dh-login-left .sub { font-size: 19px; color: #D3DCEA; line-height: 1.55; max-width: 460px; z-index: 2; }
.dh-login-notices { margin-top: 12px; z-index: 2; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; overflow: hidden; }
.dh-login-notices .k { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #FFB3B6; font-weight: 600; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dh-login-notice { display: flex; gap: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.45; color: #E3E9F2; border-bottom: 1px solid rgba(255,255,255,.06); }
.dh-login-notice:last-child { border-bottom: 0; }
.dh-login-notice .d { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #AFBDD3; flex: none; padding-top: 2px; }
.dh-login-left .left-foot { position: relative; z-index: 2; padding: 0 56px 44px; font-size: 12px; color: #8FA0BC; }
.dh-login-right { background: #fff; padding: 28px 72px 48px; display: flex; flex-direction: column; justify-content: center; }
.dh-login-card { max-width: 420px; width: 100%; margin: 0 auto; }
.dh-login-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dh-login-top .lang { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.dh-login-top .lang b { color: var(--primary); }
.dh-login-top .lang .dev { font-family: "IBM Plex Sans Devanagari", sans-serif; }
.dh-login-card h1 { font-size: 26px; margin: 0; }
.dh-login-card .sub { font-size: 14px; color: var(--text-2); margin: 8px 0 24px; }
.dh-tabs { display: flex; border-bottom: 2px solid var(--border-soft); margin-bottom: 24px; }
.dh-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border: 0; background: none; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.dh-tab.on { color: var(--primary); border-bottom-color: var(--accent); }
.dh-field { margin-bottom: 16px; }
.dh-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.dh-field input { width: 100%; font-family: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; }
.dh-field input:focus { outline: 2px solid var(--primary-border); border-color: var(--primary); }
.dh-captcha { display: flex; gap: 10px; align-items: stretch; }
.dh-captcha .code { font-family: "IBM Plex Mono", monospace; font-size: 20px; font-weight: 600; letter-spacing: .3em; background: #F1F5FA; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; user-select: none; color: var(--primary-deep); }
.dh-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; font-size: 13px; }
.dh-row label { display: flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.dh-admin-link { font-size: 13px; color: var(--primary); font-weight: 600; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.dh-admin-link:hover { color: var(--accent); }
.dh-signin { width: 100%; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.dh-signin:hover { background: #133A78; }
.dh-field label.lbl-row { display: flex; justify-content: space-between; align-items: center; }
.dh-pw-wrap { position: relative; }
.dh-pw-wrap .dh-admin-link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.dh-otp-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.dh-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }
.dh-or::before, .dh-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.dh-sso { width: 100%; margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--text); }
.dh-sso:hover { background: var(--bg); }
.dh-itact { margin-top: 32px; font-size: 11.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.dh-otp-row { display: flex; gap: 8px; }
.dh-otp-row input { text-align: center; font-size: 18px; font-weight: 600; }

@media (max-width: 1100px) {
  .dh-hero-grid, .dh-split, .dh-2col { grid-template-columns: 1fr; }
  .dh-mod-grid, .dh-steps { grid-template-columns: repeat(2, 1fr); }
  .dh-stats { grid-template-columns: repeat(2, 1fr); }
  .dh-login { grid-template-columns: 1fr; }
  .dh-login-left { min-height: 420px; }
  .gov-strip, .portal-head, .dh-section, .dh-footer { padding-left: 24px; padding-right: 24px; }
  .dh-notice { padding-left: 24px; padding-right: 24px; }
  .dh-hero-grid { padding: 48px 24px; }
  .dh-xsec2 { height: 300px; }
  .dh-xsec-callout { left: 40%; top: 62%; }
  .dh-radar2 { width: 100%; max-width: 580px; }
  .rr-sweep { left: calc(50% - 200px); top: calc(50% - 200px); }
  .dh-extras { grid-template-columns: 1fr; }
  .dh-hero h1 { font-size: 38px; }
  .portal-nav a:not(.btn-navy) { display: none; }
}
