/* AGSO RADIOLOGY DARK 0.1.8 — VISUAL PARITY WITH APPROVED MOCKUP
   Scope: the dashboard and responsive shell only.
   The clinical screenshot remains unmodified; optical styling is CSS-only.
   Core module launch, roles, login, progress and results remain unchanged.
*/
:root {
  --bg:#03101c;
  --surface:#092337;
  --surface2:#102d40;
  --cyan:#19c7e5;
  --cyan-light:#68e2f4;
  --blue:#2f80ed;
  --text:#f6f9fc;
  --muted:#a5bbcb;
  --line:rgba(99,181,216,.22);
  --border:rgba(25,199,229,.76);
  --border-soft:rgba(87,171,209,.30);
}
html,body {background:#03101c!important;}
body {
  color:#f6f9fc;
  background:radial-gradient(ellipse at 57% -18%,rgba(43,69,129,.28),transparent 48%),
    linear-gradient(180deg,#03101b 0%,#03121e 74%,#020e19 100%)!important;
}

/* 1. Top header: original identity, typography and exact spacing. */
.top {
  height:81px;
  display:flex;
  gap:34px;
  padding:0 clamp(24px,4.9vw,88px);
  background:linear-gradient(108deg,#061825 2%,#16263f 51%,#061826 98%);
  border-bottom:1px solid rgba(114,181,214,.22);
  position:relative;
  z-index:20;
}
.top-logo {font-size:clamp(31px,3.45vw,55px);font-weight:900;line-height:1;letter-spacing:-.056em;}
.top-logo:after {left:30%;bottom:-10px;height:12px;border-bottom:3px solid #1ed9ea;width:44%;}
.top-divider {height:44px;background:rgba(228,242,250,.55);}
.top-title {font-size:clamp(18px,2.45vw,34px);font-weight:330;white-space:nowrap;color:#e3edf8;letter-spacing:-.032em;}
.top-actions {gap:22px;margin-left:auto;}
.top-icon .icon {width:25px;height:25px;stroke-width:1.7;}
.avatar-button {width:42px;height:42px;font-size:13px;border:2px solid #788bb7;background:linear-gradient(135deg,#102a43,#2d3277);}
#contextSelect {display:none;}

/* 2. Framed shell + built-in radiology navigation. */
.workspace {
  width:min(1548px,calc(100% - 100px));
  margin:21px auto 34px;
  display:grid;
  grid-template-columns:301px minmax(0,1fr);
  min-height:785px;
  border:1.5px solid #10d0e9;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 20px 75px rgba(0,0,0,.45),inset 0 0 20px rgba(25,199,229,.025);
  background:linear-gradient(145deg,#061724 0%,#03111d 48%,#041d29 100%);
}
.side {
  padding:20px 18px 26px;
  border-right:1px solid rgba(138,192,221,.3);
  background:linear-gradient(180deg,#031320 0%,#03101b 100%);
}
.side-brand {display:block;text-align:center;font-size:38px;font-weight:900;letter-spacing:-.05em;margin:0 0 21px;position:relative;}
.side-swoosh {left:37%;bottom:-4px;width:28%;height:9px;border-bottom:3px solid #23e9ed;border-radius:50%;transform:rotate(-5deg);}
.nav {gap:5px;}
.nav button {
  color:#edf6fc;
  min-height:57px;
  padding:10px 15px;
  border-radius:15px;
  gap:16px;
  font-size:clamp(15px,1.34vw,19px);
  font-weight:500;
  letter-spacing:-.012em;
  overflow:hidden;
}
.nav .kit-nav-icon {width:28px;height:28px;flex:none;object-fit:contain;filter:brightness(1.14);}
.nav button span {min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nav button.active {background:linear-gradient(102deg,#06647c,#073d51);border:1px solid #16cde7;box-shadow:inset 0 1px 7px rgba(80,236,250,.12),0 8px 25px rgba(0,0,0,.16);font-weight:710;}
.nav-separator {background:rgba(142,202,225,.47);margin:14px 8px 10px;}
.side-footer {border-top-color:rgba(99,181,216,.17);font-size:11px;}
.main {padding:22px 24px 24px 29px;background:transparent;min-width:0;}
.content {max-width:1200px;margin:0 auto;min-width:0;}

/* 3. Welcome banner with a true, dedicated image region. */
#home .welcome {display:block;margin:0 0 16px 12px;}
#home .welcome h1 {font-size:clamp(27px,2.75vw,43px);font-weight:810;letter-spacing:-.038em;line-height:1.08;margin:0 0 7px;}
#home .welcome p {font-size:clamp(13px,1.45vw,21px);font-weight:350;color:#cedeee;}
.hero-radiology {
  display:block!important;
  height:182px;
  border:1px solid rgba(21,153,195,.64);
  border-radius:18px;
  background:linear-gradient(102deg,#031321,#062138 64%,#03131e);
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.hero-radiology:after {content:none!important;}
.hero-statement {
  position:absolute;
  z-index:5;
  left:4.1%;top:0;bottom:0;
  display:flex;align-items:center;gap:24px;
  width:57%;
  color:#f5fafc;
  font-size:clamp(17px,2.1vw,28px);
  font-weight:690;
  line-height:1.25;
  letter-spacing:-.025em;
  text-shadow:0 3px 13px rgba(0,0,0,.45);
}
.hero-statement .hero-line {height:63px;width:4px;flex:none;box-shadow:0 0 15px rgba(25,199,229,.42);background:#16d9ed;border-radius:9px;}
.hero-radiology-image {
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(ellipse at 75% 70%,rgba(33,151,229,.15),transparent 33%),
    linear-gradient(112deg,transparent 26%,rgba(0,110,169,.17) 80%,rgba(2,35,62,.65) 100%);
  isolation:isolate;
  overflow:hidden;
}
.hero-radiology-image:before {
  content:"";
  position:absolute;
  width:555px;height:555px;
  left:71%;top:49%;transform:translate(-50%,-50%);
  border:1.5px solid rgba(16,173,238,.57);
  border-radius:50%;
  box-shadow:0 0 0 30px rgba(19,111,182,.025), 0 0 0 66px rgba(21,161,221,.035),
    0 0 0 103px rgba(28,148,224,.025), 0 0 22px rgba(19,163,232,.22);
  z-index:1;
}
.hero-scan-orbits {
  position:absolute;
  left:71%;top:49%;width:458px;height:458px;
  transform:translate(-50%,-50%);
  border:1px solid rgba(20,145,225,.37);
  border-radius:50%;z-index:2;
  box-shadow:0 0 0 48px rgba(27,154,219,.05),inset 0 0 32px rgba(9,94,158,.21);
}
.hero-user-axial {
  position:absolute;
  z-index:3;
  left:71%;top:-158px;
  width:510px;height:auto;max-width:none;
  transform:translateX(-50%);
  opacity:.91;
  mix-blend-mode:screen;
  filter:grayscale(1) sepia(.86) hue-rotate(157deg) saturate(2.1) contrast(1.17) brightness(.93);
  pointer-events:none;
}
.hero-scan-beam {
  position:absolute;inset:0;z-index:4;pointer-events:none;
  background:
    linear-gradient(90deg,#041421 0%,#041521 18%,rgba(3,17,29,.92) 38%,rgba(3,17,29,.12) 62%,rgba(3,17,29,.02) 83%,rgba(4,19,30,.48) 100%),
    linear-gradient(135deg,transparent 76%,rgba(0,169,242,.12) 93%,rgba(19,227,250,.5) 100%);
}

/* 4. EXACT two rows / three horizontal icon tiles, with NO overlap. */
#home .modules {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px 21px;
  margin:18px 0 0;
}
#home .module {
  min-width:0;
  height:112px;min-height:112px;
  padding:8px 13px;
  display:grid;
  grid-template-columns:clamp(94px,9vw,133px) minmax(0,1fr);
  gap:9px;
  align-items:center;
  justify-content:start;
  border:1px solid rgba(20,169,213,.85);
  border-radius:17px;
  background:
    radial-gradient(ellipse at 22% 5%,rgba(24,92,137,.38),transparent 70%),
    linear-gradient(130deg,#0b2739 5%,#092233 65%,#071c2c 100%);
  box-shadow:inset 0 1px rgba(95,197,229,.09),0 8px 23px rgba(0,0,0,.17);
  overflow:hidden;
  transform:none;
  transition:border-color .17s ease,background .17s ease,box-shadow .17s ease;
}
#home .module:hover {transform:translateY(-2px);border-color:#52e6fb;box-shadow:inset 0 0 17px rgba(37,201,230,.1),0 12px 31px rgba(0,0,0,.24);}
#home .module-art {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;max-width:100%;
  height:94px;min-height:0;flex:auto;
  overflow:visible;
  background:none!important;
  position:relative;
}
#home .module-art:before,#home .module-art:after {content:none!important;}
#home .module-art img {
  display:block;
  object-fit:contain!important;
  width:100%;height:100%;
  max-width:127px;max-height:100px;
  border:0!important;border-radius:0!important;
  background:none!important;
  mix-blend-mode:normal!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.13));
}
#home .module-title {
  min-width:0;
  width:100%;height:auto;min-height:0;
  display:block;
  align-items:initial;
  justify-content:initial;
  text-align:left;
  padding:0;
  overflow:visible;
}
#home .module-title h3 {
  font-size:clamp(15px,1.58vw,23px);
  font-weight:750;
  line-height:1.15;
  letter-spacing:-.029em;
  white-space:normal;
  overflow-wrap:break-word;
  max-width:100%;
  margin:0;
  text-align:left;
  text-shadow:0 2px 6px rgba(0,0,0,.24);
}
#home .module-progress h3 {max-width:230px;}
#home .module button.module-open {position:absolute;inset:0;width:100%;height:100%;z-index:2;}

/* Status chip appears only while Campus is actually unfinished. */
#home .module.module-wip[data-mid="campus"]:after {
  content:"En trabajo";
  position:absolute;
  right:12px;bottom:8px;
  padding:3px 8px;
  border:1px solid #15cfe9;
  border-radius:9px;
  background:rgba(5,52,70,.85);
  color:#d5f7fc;
  font-size:10px;
  line-height:1.2;
  pointer-events:none;
  z-index:1;
}
/* 5. Bottom panels as in approved mockup: progress next to recent. */
#home .dashboard-lower {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);
  gap:22px;
  margin-top:23px;
}
#home .overview-panel, #home .recent-panel {
  min-height:169px;
  border:1px solid rgba(17,159,201,.86);
  border-radius:18px;
  background:radial-gradient(ellipse at 30% 0%,rgba(36,99,150,.2),transparent 85%),
    linear-gradient(140deg,#0b2738,#081d2b 85%);
  box-shadow:0 9px 27px rgba(0,0,0,.18);
  overflow:hidden;
}
#home .overview-panel {display:flex;gap:24px;align-items:center;padding:17px 24px;}
#home .performance-ring {
  width:128px;height:128px;flex:none;
  background:conic-gradient(#62ebef 0%,#13c9e6 var(--pct),#213e52 var(--pct));
  transform:rotate(-33deg);
}
#home .performance-ring:after {inset:19px;background:#061c2c;}
#home .performance-ring span {font-size:28px;transform:rotate(33deg);font-weight:730;}
#home .performance-copy {min-width:0;flex:1;}
#home .performance-copy h2 {font-size:clamp(15px,1.5vw,20px);font-weight:650;margin:0 0 16px;}
#home .performance-track {height:16px;background:#254556;}
#home .performance-copy p {font-size:10px;line-height:1.3;color:#86a3b5;}
#home .kit-recent {margin:0;display:block;padding:18px 22px;}
#home .kit-recent .recent-title h2 {font-size:20px;}
#home .recent-result {grid-template-columns:116px minmax(0,1fr);gap:17px;}
#home .recent-thumb {width:116px;height:86px;}
#home .recent-text strong {font-size:clamp(13px,1.15vw,17px);}
/* Legacy future UI actions remain in the DOM so the application's event
   wiring stays intact; they're hidden from the approved dashboard. */
#home .kit-states,#home .kit-quick {display:none!important;}

/* Navigation and all other API-backed views stay intact. */
@media (max-width:1440px) {
  .top {height:76px;gap:22px;padding:0 32px;}
  .top-logo {font-size:42px;}.top-logo:after{bottom:-10px;}
  .top-divider {height:42px;}.top-title {font-size:clamp(17px,2.5vw,29px);}
  .top-actions {gap:12px;}.top-icon .icon {width:24px;height:24px;}
  .avatar-button {width:40px;height:40px;}
  .workspace {width:calc(100% - 50px);grid-template-columns:clamp(216px,22vw,292px) minmax(0,1fr);min-height:calc(100vh - 116px);margin-top:18px;}
  .side {padding:15px 13px;}.side-brand {font-size:30px;margin-bottom:15px;}
  .nav button {min-height:49px;font-size:clamp(13px,1.27vw,17px);padding:8px 10px;gap:12px;}
  .nav .kit-nav-icon {width:25px;height:25px;}
  .main {padding:18px 20px;}
  #home .welcome {margin-bottom:12px;}
  .hero-radiology {height:170px;}
  .hero-user-axial {width:490px;top:-158px;}
  #home .modules {gap:12px 14px;margin-top:14px;}
  #home .module {height:106px;min-height:106px;grid-template-columns:clamp(78px,8vw,108px) minmax(0,1fr);gap:6px;padding:8px;}
  #home .module-art {height:86px;}
  #home .module-art img {max-height:93px;}
  #home .module-title h3 {font-size:clamp(13px,1.45vw,19px);}
  #home .module.module-wip[data-mid="campus"]:after {font-size:9px;padding:3px 6px;right:7px;bottom:5px;}
  #home .dashboard-lower {gap:13px;margin-top:15px;}
  #home .overview-panel,#home .recent-panel{min-height:146px;}
  #home .performance-ring{width:104px;height:104px;}
  #home .performance-ring:after{inset:16px;}
  #home .overview-panel{gap:14px;padding:12px 14px;}
  #home .kit-recent{padding:13px 15px;}
  #home .recent-thumb{width:86px;height:68px;}
  #home .recent-result{grid-template-columns:86px minmax(0,1fr);gap:10px;}
}
@media (max-width:1050px) {
  .workspace {grid-template-columns:78px minmax(0,1fr);}
  .side {padding:12px 7px;}
  .side-brand {font-size:17px;margin:3px 0 15px;}
  .side-swoosh {display:none;}
  .nav button {min-height:53px;padding:10px 5px;justify-content:center;}
  .nav button span {display:none;}
  .nav .kit-nav-icon {width:30px;height:30px;}
  .nav-separator {margin:12px 5px;}
  .hero-radiology{height:164px;}
  .hero-statement{font-size:clamp(16px,2.1vw,21px);}
  #home .module {grid-template-columns:76px minmax(0,1fr);height:104px;min-height:104px;}
  #home .module-title h3 {font-size:clamp(14px,1.7vw,18px);}
}
@media (max-width:800px) {
  .top {height:66px;padding:0 16px;gap:10px;}
  .top-logo {font-size:31px;}.top-logo:after {width:40%;height:9px;bottom:-8px;border-bottom-width:2px;}
  .top-divider{height:29px;}.top-title{font-size:13px;white-space:normal;max-width:165px;line-height:1.2;}
  .top-actions{gap:2px;}.top-icon .icon{width:21px;height:21px;}.avatar-button{width:33px;height:33px;font-size:10px;}
  .workspace{display:block;position:relative;width:100%;min-height:calc(100vh - 66px);margin:0;border:0;border-radius:0;overflow:visible;}
  .side{position:absolute;top:0;left:0;bottom:0;width:min(310px,86vw);z-index:30;background:#051524;
    transform:translateX(-112%);visibility:hidden;box-shadow:12px 0 35px #0007;}
  .side.open{transform:translateX(0);visibility:visible;}
  .side-brand{font-size:30px;}.side-swoosh{display:block;}
  .nav button {justify-content:flex-start;padding:10px 12px;font-size:16px;}
  .nav button span {display:inline;}
  .main{padding:16px 12px 26px;}
  #home .welcome{margin:0 0 11px 3px;}
  #home .welcome h1{font-size:29px;}
  #home .welcome p{font-size:13px;}
  .hero-radiology {height:180px;border-radius:15px;}
  .hero-statement {width:76%;left:5%;font-size:clamp(17px,4.3vw,24px);gap:13px;}
  .hero-statement .hero-line {height:61px;}
  .hero-user-axial{width:450px;left:82%;top:-125px;opacity:.68;}
  .hero-radiology-image:before,.hero-scan-orbits{left:82%;}
  .hero-scan-beam{background:linear-gradient(90deg,#041421 0%,rgba(4,20,33,.91) 40%,rgba(4,20,33,.40) 75%,rgba(4,20,33,.27) 100%);}
  #home .modules {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;}
  #home .module {height:115px;min-height:115px;grid-template-columns:85px minmax(0,1fr);gap:5px;padding:7px 6px;border-radius:14px;}
  #home .module-art{height:99px;}
  #home .module-art img{max-height:100px;}
  #home .module-title h3{font-size:clamp(13px,2.6vw,18px);line-height:1.13;}
  #home .module.module-wip[data-mid="campus"]:after{display:none;}
  #home .dashboard-lower {grid-template-columns:1fr;gap:11px;margin-top:12px;}
  #home .overview-panel,#home .recent-panel {min-height:144px;}
  #home .overview-panel {padding:11px 17px;}
  #home .kit-recent {padding:14px 17px;}
}
@media (max-width:400px) {
  #home .module{height:102px;min-height:102px;grid-template-columns:66px minmax(0,1fr);}
  #home .module-art{height:85px;}
  #home .module-art img{max-height:86px;}
  #home .module-title h3{font-size:13.5px;}
  .hero-statement{font-size:17px;max-width:72%;}
  .hero-user-axial{left:86%;width:420px;}
}


/* ============================================================================
   AGSO RADIOLOGY DARK v0.1.9 — CT BLACK
   SOURCE OF DESIGN: approved black radiology workstation reference (9 Nov 2026).
   VISUAL ONLY. No module runtime, data model, identity or API changes.
   The source 129.jpg is left byte-for-byte unchanged; its grayscale is CSS-only.
   The base layout is v0.1.8. This final layer changes lighting/palette globally.
   ============================================================================ */
:root {
  --bg:#00080e;
  --ink:#00080e;
  --sidebar:#000b12;
  --surface:#041620;
  --surface2:#071d28;
  --surface3:#09212d;
  --cyan:#11cce8;
  --cyan-light:#64e5f4;
  --blue:#177fae;
  --blue-soft:#449fca;
  --text:#f4f8fb;
  --muted:#a7bfcb;
  --muted2:#7894a3;
  --border:#0ca9c9;
  --border-soft:rgba(24,173,202,.42);
  --line:rgba(106,179,200,.20);
  --shadow:0 24px 62px rgba(0,0,0,.54);
}
html,body { background:#00070c!important; color:#f4f8fb; }
body {
  color:#f4f8fb;
  background:
    radial-gradient(ellipse at 51% -14%,rgba(20,59,85,.24),transparent 47%),
    radial-gradient(ellipse at 97% 98%,rgba(1,42,62,.16),transparent 37%),
    linear-gradient(180deg,#00070c,#000b11 65%,#00070c)!important;
}

/* 1 — Header and account controls: black instrument-console ambience. */
.top {
  background:
    radial-gradient(ellipse at 53% -165%,rgba(28,73,102,.54),transparent 80%),
    linear-gradient(105deg,#000a10 0%,#061521 52%,#000910 100%);
  border-bottom:1px solid rgba(57,137,168,.25);
  box-shadow:0 5px 35px rgba(0,0,0,.27);
}
.top-logo { color:#f7fbff; text-shadow:0 3px 12px rgba(0,0,0,.3); }
.top-logo:after { border-color:#15dbeb;filter:drop-shadow(0 0 5px rgba(8,231,246,.25)); }
.top-divider { background:rgba(238,248,255,.58); }
.top-title { color:#dce9f2; }
.top-icon { color:#eef6fb; }
.top-icon:hover { background:rgba(0,123,152,.13); }
.avatar-button { border-color:#829bc1;background:linear-gradient(145deg,#0a2033,#18345d); }
.account-popover,.search-popover {
  background:linear-gradient(145deg,#071c27,#020e15);
  border-color:rgba(17,196,225,.40);
}
.search-popover input { background:#010c14;border-color:rgba(18,173,201,.40); }

/* 2 — Unified frame, navigation and content; no flat blue panels. */
.workspace {
  border:1.5px solid #0ac9df;
  background:linear-gradient(126deg,#010d14 0%,#00090f 48%,#010e16 100%);
  box-shadow:0 26px 84px rgba(0,0,0,.56),0 0 17px rgba(0,218,236,.07),inset 0 0 18px rgba(2,176,220,.025);
}
.side {
  background:linear-gradient(180deg,#000c13 0%,#00070b 86%,#000c13 100%);
  border-right:1px solid rgba(96,165,192,.34);
}
.side-brand { color:#f9fcff; }
.side-swoosh { border-bottom-color:#00dfea;filter:drop-shadow(0 0 7px rgba(19,215,232,.25)); }
.nav button { color:#e5f0f7; }
.nav button:hover { background:rgba(12,110,140,.13); }
.nav button.active {
  color:#f9fdff;
  border:1px solid #1ad4e9;
  background:linear-gradient(96deg,#003d4e 0%,#002936 66%,#001e2b 100%);
  box-shadow:inset 0 0 23px rgba(22,207,231,.11),0 0 20px rgba(0,214,239,.11),0 8px 20px rgba(0,0,0,.26);
}
.nav .kit-nav-icon { filter:brightness(1.12) drop-shadow(0 0 2px rgba(163,236,245,.11)); }
.nav-separator { background:rgba(139,195,215,.45); }
.side-footer { border-top-color:rgba(70,151,178,.19); }
.main { background:transparent; }
.welcome-hidden-data { display:none; }
#home .welcome h1 { color:#f8fbff; }
#home .welcome h1 .gold-dot { color:#18dceb!important;text-shadow:0 0 12px rgba(12,226,246,.3); }
#home .welcome p { color:#c0d0dc; }

/* 3 — Authentic grayscale CT, mostly black surrounding banner. */
.hero-radiology {
  background:linear-gradient(105deg,#01090e 0%,#020e15 53%,#01121d 100%);
  border-color:rgba(16,154,184,.66);
  box-shadow:inset 0 0 20px rgba(0,0,0,.34),0 10px 30px rgba(0,0,0,.15);
}
.hero-radiology-image {
  background:radial-gradient(ellipse at 79% 58%,rgba(10,96,137,.12),transparent 45%),
             linear-gradient(112deg,transparent 25%,rgba(0,65,89,.12) 68%,rgba(1,24,38,.48) 100%);
}
.hero-radiology-image:before {
  border-color:rgba(12,192,225,.56);
  box-shadow:0 0 0 30px rgba(9,106,148,.018),0 0 0 67px rgba(8,99,145,.025),
             0 0 0 103px rgba(12,90,133,.016),0 0 20px rgba(14,184,217,.16);
}
.hero-scan-orbits { border-color:rgba(7,128,187,.36);box-shadow:0 0 0 48px rgba(4,87,130,.022),inset 0 0 34px rgba(5,88,131,.1); }
.hero-user-axial {
  opacity:.92;
  mix-blend-mode:screen;
  filter:grayscale(1) contrast(1.30) brightness(.88)!important;
}
.hero-scan-beam {
  background:
    linear-gradient(90deg,#00080e 0%,#00080e 16%,rgba(0,8,14,.96) 34%,rgba(0,8,14,.24) 62%,rgba(0,8,14,.02) 81%,rgba(0,8,14,.38) 100%),
    linear-gradient(136deg,transparent 82%,rgba(0,139,200,.08) 94%,rgba(12,217,234,.25) 100%);
}
.hero-statement { color:#f7fbfe;text-shadow:0 2px 10px rgba(0,0,0,.65); }
.hero-statement .hero-line { background:#10d6e9;box-shadow:0 0 14px rgba(11,211,239,.45); }

/* 4 — Six 3x2 modules: dark, subtle internal sheen; bright cyan lines. */
#home .module {
  background:
    radial-gradient(ellipse at 30% -50%,rgba(16,103,134,.22),transparent 72%),
    linear-gradient(150deg,#051722 0%,#02111a 58%,#010b12 100%);
  border-color:rgba(11,173,202,.88);
  box-shadow:inset 0 1px 0 rgba(111,232,252,.10),inset 0 -5px 13px rgba(0,0,0,.08),0 10px 24px rgba(0,0,0,.32);
}
#home .module::before {
  content:"";
  position:absolute;
  height:2px;width:51%;left:18%;top:0;z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(47,227,250,.24),transparent);
  box-shadow:0 0 9px rgba(16,208,240,.1);
}
#home .module:hover {
  background:linear-gradient(135deg,#061f2a,#03121b 76%);
  border-color:#35dff5;
  box-shadow:inset 0 0 18px rgba(17,190,222,.08),0 0 16px rgba(19,222,244,.09),0 16px 35px rgba(0,0,0,.46);
}
#home .module-title h3 { color:#f6faff;text-shadow:0 1px 7px rgba(0,0,0,.45); }
#home .module-art img { filter:drop-shadow(0 4px 9px rgba(0,0,0,.26))!important; }
#home .module.module-wip[data-mid="campus"]::after {
  background:rgba(0,20,28,.94);color:#e2f9ff;
  border-color:#0ec7df;box-shadow:0 0 7px rgba(13,214,235,.08);
}

/* 5 — Bottom panels match CT workstation, not bright-blue SaaS cards. */
#home .overview-panel,#home .recent-panel {
  background:
    radial-gradient(ellipse at 32% -30%,rgba(19,93,118,.18),transparent 75%),
    linear-gradient(145deg,#03131c,#020d13 85%);
  border-color:rgba(14,144,174,.75);
  box-shadow:inset 0 1px 0 rgba(106,214,232,.06),0 12px 28px rgba(0,0,0,.27);
}
#home .performance-ring {
  background:conic-gradient(#61f6f4 0%,#01c8e0 var(--pct),#1e3540 var(--pct),#1e3540 100%);
  filter:drop-shadow(0 0 8px rgba(12,185,213,.12));
}
#home .performance-ring:after { background:#01141e; }
#home .performance-track { background:#152d3b;border:1px solid rgba(96,184,207,.18); }
#home .performance-track span { background:linear-gradient(90deg,#50eff3,#0ccae8,#087fe0); }
#home .recent-thumb { background:#001019;filter:grayscale(.98); }
#home .kit-recent .recent-title h2,#home .performance-copy h2 { color:#f3f8fb; }
#home .recent-text strong { color:#e9f3f9; }
#home .recent-text small { color:#8ca5b4; }

/* 6 — All secondary pages: consistency across progress, roles, license, etc. */
.page-head { border-bottom-color:rgba(45,133,158,.25); }
.page-head h1 { color:#f6fafc; }
.page-head p,.page-head .kicker { color:var(--muted); }
.page-head .kicker { color:var(--cyan-light); }
.metric,.card,.license,.placeholder,.registry-grid .module {
  background:linear-gradient(155deg,#061a26 0%,#020e15 78%,#010b11 100%);
  border-color:rgba(17,137,163,.55);
  box-shadow:0 12px 25px rgba(0,0,0,.25);
}
.metric>span,.metric small,.row small { color:#8eacbb; }
.row,.table th,.table td { border-color:rgba(88,153,175,.19); }
.table th { background:rgba(0,8,13,.38); }
.table td { color:#e0edf4; }
.badge.dev { border-color:rgba(10,205,230,.42);background:rgba(0,62,80,.16);color:#7be7f4; }
.badge.work { background:rgba(24,38,82,.30);border-color:rgba(99,124,196,.44);color:#b7c7f8; }
.placeholder-icon { background:linear-gradient(145deg,#092532,#020e16);border-color:rgba(11,164,191,.44); }
.btn.ghost { background:#071923;border-color:rgba(17,161,192,.48); }
.btn.ghost:hover { background:#0a2733; }
.btn.primary { background:linear-gradient(135deg,#50e2f1,#03b7da);color:#03131a; }
.toast { background:#041722;border-color:rgba(7,185,210,.60); }

/* 7 — Login gets the SAME palette as the dashboard, not a separate blue UI. */
.login-left {
  background:linear-gradient(110deg,rgba(0,5,9,.52),rgba(1,15,24,.83)),
    radial-gradient(ellipse at 77% 40%,rgba(12,86,111,.18),transparent 36%),
    linear-gradient(145deg,#020c13,#00070c);
}
.login-left:before { border-color:rgba(6,164,204,.24);box-shadow:0 0 0 54px rgba(0,122,169,.018),0 0 0 107px rgba(0,109,158,.013); }
.login-left:after { filter:grayscale(1) brightness(.7) contrast(1.13);opacity:.59; }
.login-right { background:linear-gradient(145deg,#020d15,#00070c); }
.login-card {
  border-color:rgba(8,170,199,.62);
  background:linear-gradient(150deg,#061924,#020c13);
  box-shadow:0 25px 64px rgba(0,0,0,.48);
}
.field input { background:#010e16;border-color:rgba(12,154,183,.46); }
.demo-info { background:#000f19;border-color:rgba(13,151,177,.35); }
.login-pitch h1 em { color:#55e5f3; }
.login-card h2 { color:#f5faff; }

/* 8 — Mobile and notebook preserve the validated layout and avoid overflow. */
@media(max-width:1440px) {
  .workspace { background:linear-gradient(140deg,#010b12,#00090e 75%); }
  .top { background:linear-gradient(104deg,#000a10,#071825 52%,#01090f); }
}
@media(max-width:800px) {
  .workspace { background:#010a10;box-shadow:none; }
  .side { background:linear-gradient(180deg,#000c13,#010910); }
  .hero-user-axial { opacity:.66;filter:grayscale(1) contrast(1.25) brightness(.78)!important; }
  .hero-scan-beam {background:linear-gradient(90deg,#01090e 0%,rgba(1,9,14,.93) 40%,rgba(1,9,14,.48) 76%,rgba(1,9,14,.31));}
  #home .module::before { height:1px; }
}
