@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@400;500;600;700&display=swap');
:root{font-family:'IBM Plex Sans Condensed',sans-serif;color:#eaf1f8;background:#0c1220;font-size:15px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.hidden{display:none!important}h1,h2,h3,b,strong{font-family:'IBM Plex Sans Condensed',sans-serif}h1{font-size:1.65rem;margin:.3rem 0}h2{font-size:1.15rem;margin:0 0 .5rem}h3{font-size:1rem}p{line-height:1.55}.muted{color:#9baec6}.eyebrow,.nav-heading,.metric small{letter-spacing:.12em;font-size:.67rem;font-weight:800;color:#9bb6d3}.mark{font:800 2.4rem 'IBM Plex Sans Condensed',sans-serif;color:#e8f0ff;line-height:1}.mark span{color:#d6ac67}.mark.mini{font-size:1.7rem}.shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.side{padding:27px 16px;background:#111b2c;border-right:1px solid #223148;display:flex;flex-direction:column;gap:20px}.identity{display:flex;gap:12px;align-items:center;padding:0 9px 22px;border-bottom:1px solid #27384c}.identity b{display:block;font-size:1.1rem;letter-spacing:.2em}.identity small{display:block;color:#8fa7c1;font-size:.59rem;letter-spacing:.13em}.nav-heading{margin:8px 10px -9px}.side nav{display:grid;gap:4px}.nav-link{width:100%;text-align:left;border:0;background:transparent;color:#aebfd6;padding:13px;border-radius:9px;font-weight:600}.nav-link:hover,.nav-link.active{background:#20344f;color:#fff}.side-footer{margin-top:auto;border-top:1px solid #27384c;padding:19px 10px 5px;font-size:.82rem;color:#d0dced;line-height:1.9}.side-footer small{display:block;color:#8198ae;overflow-wrap:anywhere}.status-dot{display:inline-block;width:9px;height:9px;background:#d6ac67;border-radius:50%;margin-right:4px}.logout{border:1px solid #3b516c;background:transparent;color:#bfd0e3;border-radius:7px;padding:5px 12px;margin-top:12px}.topbar{padding:27px 37px;border-bottom:1px solid #233046;display:flex;gap:15px;align-items:center;justify-content:space-between}.top-actions{display:flex;gap:16px;align-items:center}.brand-selector{font-size:.66rem;color:#92a6bd;display:flex;flex-direction:column;gap:4px;letter-spacing:.09em}.chip{border:1px solid #795e32;color:#e4bd7b;background:#2f281f;padding:8px 11px;border-radius:20px;font-size:.66rem;letter-spacing:.07em;font-weight:700}.content{max-width:1500px;padding:30px 38px;margin:auto}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:34px}.metric,.product-card,.info-panel,.review-card{background:#151f30;border:1px solid #2a3b53;border-radius:14px;padding:21px}.metric strong{display:block;font-size:2rem;margin:12px 0 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.section-heading p{margin:.3rem 0}.primary{border:0;border-radius:9px;background:#d5ae71;color:#151920;font-weight:800;padding:12px 17px}.primary:hover{background:#edc995}.secondary{border:1px solid #455971;border-radius:9px;background:#263a53;color:#e6f0fc;font-weight:700;padding:11px 16px}.danger{border:1px solid #934e57;border-radius:9px;background:#3f262e;color:#ffd9dd;font-weight:700;padding:11px 16px}.toolbar{display:flex;gap:13px;margin-bottom:20px}.toolbar input{flex:1}.toolbar select{min-width:195px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:17px}.product-card{padding:0;overflow:hidden}.product-media{height:180px;background:linear-gradient(135deg,#30435c,#151c2c);display:flex;align-items:center;justify-content:center;color:#829bb4;font-size:3rem;overflow:hidden}.product-media img{width:100%;height:100%;object-fit:contain}.product-info{padding:19px}.product-info p{margin:5px 0 18px}.product-actions{display:flex;gap:8px;margin-top:17px}.pill{font-size:.67rem;padding:5px 9px;border:1px solid #455971;border-radius:20px;letter-spacing:.025em;color:#d6e3f5;white-space:nowrap}.pill.pending_review{border-color:#96723a;color:#efd09a}.pill.approved,.pill.queued{border-color:#498c80;color:#98ded2}.pill.changes_requested,.pill.rejected{border-color:#aa5759;color:#ffd1d1}.channels{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.channels .info-panel{padding:16px}.channels p{font-size:.76rem;color:#a8bdd0;margin:5px 0}.info-panel{margin:18px 0}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 80% 20%,#234163,transparent 38%),#0a1220}.login-card{width:min(420px,100%);border:1px solid #38506b;border-radius:20px;background:#142033;box-shadow:0 22px 80px #0307128c;padding:40px;display:grid;gap:15px}.login-card h1{font-size:1.7rem}.login-card .muted{margin:-12px 0 16px}.login-card label,.form-grid label,.edit-form label{display:grid;gap:7px;color:#c3d2e7;font-size:.85rem;font-weight:600}.foot-note{color:#7f92a9;font-size:.73rem;margin:12px 0 0}.error{color:#ff9f9f;min-height:1.25rem;margin:0}input,select,textarea{background:#0e1827;color:#f5f9ff;border:1px solid #38516e;border-radius:8px;padding:11px 12px;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #d6ae70;outline-offset:1px}.form-grid,.edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:800px}.form-grid>.primary,.edit-form>.primary{align-self:end}.inline-check{display:flex!important;align-items:center;gap:10px;grid-column:1/-1}.inline-check input{width:auto}.modal{position:fixed;inset:0;background:#050b14d9;display:grid;place-items:center;padding:15px;z-index:20}.modal-panel{width:min(920px,100%);max-height:94vh;overflow:auto;background:#152236;border:1px solid #3e526e;border-radius:16px;padding:24px;box-shadow:0 30px 80px #0009}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #2d435b;margin-bottom:22px}.close{font-size:2rem;background:transparent;border:0;color:#d8e4ef}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.modal h3{margin-top:22px}.product-hero{height:260px;max-width:100%;object-fit:contain;background:#0b1523;border:1px solid #34455c;border-radius:10px}.item-meta{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px;color:#c7d6e9}.pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0c1725;padding:15px;border-radius:8px;color:#c7d6e9;font:0.83rem/1.6 ui-monospace,monospace}#flash{padding:12px 15px;background:#223a49;border:1px solid #4f8e99;border-radius:8px;margin-bottom:18px;color:#e4f7ff}#flash.bad{background:#402630;border-color:#ae5765}#holiday-output{white-space:pre-wrap;color:#b5d6f0}.small-note{font-size:.78rem;color:#a1b3ca}.product-grid .secondary{font-size:.8rem}.full{grid-column:1/-1}@media(max-width:900px){.shell{grid-template-columns:1fr}.side{padding:14px;gap:10px}.side nav{display:flex;overflow:auto}.identity{border:0;padding:0}.nav-heading,.side-footer{display:none}.nav-link{white-space:nowrap}.topbar{padding:18px;align-items:flex-start;flex-direction:column}.content{padding:18px}.metrics{gap:8px}.metric{padding:13px}.metric strong{font-size:1.5rem}}@media(max-width:560px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metric small{font-size:.55rem}.metric strong{font-size:1.4rem}.section-heading{flex-direction:column;align-items:stretch}.toolbar{flex-direction:column}.toolbar select{min-width:0}.form-grid,.edit-form{grid-template-columns:1fr}.login-card{padding:26px}.modal-panel{padding:17px}}


/* Shared DUNN application visual system, sourced from the approved iRecruit palette.
   Does not import iRecruit data, credentials, marks, or application behavior. */
:root {
  --dunn-bg: oklch(0.15 0.03 250);
  --dunn-sidebar: oklch(0.20 0.04 250);
  --dunn-card: oklch(0.24 0.05 250);
  --dunn-input: oklch(0.18 0.04 250);
  --dunn-raised: oklch(0.30 0.06 250);
  --dunn-red: oklch(0.48 0.22 25);
  --dunn-red-hover: oklch(0.55 0.24 25);
  --dunn-foreground: oklch(0.97 0 0);
  --dunn-muted: oklch(0.72 0.02 250);
  --dunn-border: oklch(1 0 0 / 14%);
  font-family: 'IBM Plex Sans Condensed', system-ui, sans-serif;
  color: var(--dunn-foreground);
  background: var(--dunn-bg);
  color-scheme: dark;
}
body { background: var(--dunn-bg); }
h1,h2,h3,b,strong { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', 'IBM Plex Sans Condensed', sans-serif; }
h1,h2,h3 { font-weight: 800; letter-spacing: .025em; }
h1 { font-size: 2rem; } h2 { font-size: 1.48rem; } h3 { font-size: 1.16rem; }
.eyebrow,.nav-heading,.metric small { color: var(--dunn-muted); }
.muted,.small-note,.foot-note { color: var(--dunn-muted); }
.mark { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; color: var(--dunn-foreground); letter-spacing: .035em; }
.mark span { color: var(--dunn-red-hover); }
.side { background: var(--dunn-sidebar); border-right: 1px solid var(--dunn-border); }
.identity { border-bottom-color: var(--dunn-border); }
.identity b { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; font-size: 1.42rem; letter-spacing: .13em; }
.identity small { color: var(--dunn-muted); }
.nav-link { color: oklch(0.83 0.015 250); }
.nav-link:hover { background: var(--dunn-raised); color: var(--dunn-foreground); }
.nav-link.active { background: oklch(0.48 0.22 25 / 18%); box-shadow: inset 3px 0 0 var(--dunn-red); color: #fff; }
.side-footer { border-top-color: var(--dunn-border); color: var(--dunn-foreground); }
.side-footer small { color: var(--dunn-muted); }
.status-dot { background: var(--dunn-red); }
.logout { border-color: var(--dunn-border); color: var(--dunn-foreground); }
.topbar { border-bottom-color: var(--dunn-border); }
.brand-selector { color: var(--dunn-muted); }
.chip { border-color: oklch(0.48 0.22 25 / 55%); color: #fff; background: oklch(0.48 0.22 25 / 23%); }
.metric,.product-card,.info-panel,.review-card { background: var(--dunn-card); border-color: var(--dunn-border); }
.metric strong { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; font-size: 2.4rem; }
.primary { background: var(--dunn-red); color: #fff; }
.primary:hover { background: var(--dunn-red-hover); }
.secondary { border-color: var(--dunn-border); background: var(--dunn-raised); color: var(--dunn-foreground); }
.secondary:hover,.logout:hover { border-color: oklch(0.48 0.22 25 / 60%); }
.product-media { background: linear-gradient(130deg, var(--dunn-raised), var(--dunn-sidebar)); color: var(--dunn-muted); }
.pill { color: var(--dunn-foreground); border-color: var(--dunn-border); }
.channels p { color: var(--dunn-muted); }
.login-shell { background: radial-gradient(circle at 75% 20%,oklch(0.48 0.22 25 / 10%),transparent 40%),var(--dunn-bg); }
.login-card { background: var(--dunn-card); border-color: var(--dunn-border); box-shadow: 0 24px 85px oklch(0.04 0.01 250 / 75%); }
.login-card label,.form-grid label,.edit-form label { color: var(--dunn-foreground); }
input,select,textarea { background: var(--dunn-input); border-color: oklch(1 0 0 / 21%); color: var(--dunn-foreground); }
input::placeholder,textarea::placeholder { color: var(--dunn-muted); }
input:focus,select:focus,textarea:focus { outline: 2px solid var(--dunn-red-hover); outline-offset: 1px; }
input[type="checkbox"] { accent-color: var(--dunn-red); }
.modal-panel { background: var(--dunn-card); border-color: var(--dunn-border); }
.modal-head { border-bottom-color: var(--dunn-border); }
.product-hero { background: var(--dunn-input); border-color: var(--dunn-border); }
.item-meta,.pre { color: var(--dunn-foreground); }
.pre { background: var(--dunn-input); }
#flash { background: oklch(0.30 0.06 250); border-color: oklch(0.48 0.22 25 / 45%); }
#holiday-output { color: var(--dunn-foreground); }
::selection { background: oklch(0.48 0.22 25 / 55%); color: white; }
@media(max-width:900px) { .metric strong { font-size: 1.8rem; } }
@media(max-width:560px) { .metric strong { font-size: 1.65rem; } }


/* DUNN NEXUS, shared DUNN family identity. This is a product wordmark,
   not an imported or modified DUNN AXIS logo asset. */
.nexus-mark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex: 0 0 auto;
  font-family: 'IBM Plex Sans Condensed','Arial Narrow',sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -.11em;
  color: #fff;
  line-height: 1;
  padding: .16rem .52rem .22rem .35rem;
  background: linear-gradient(140deg,oklch(.24 .05 250),oklch(.15 .03 250));
  border: 1px solid oklch(1 0 0 / 24%);
  border-left: 4px solid var(--dunn-red);
  border-radius: .42rem;
  box-shadow: 0 6px 24px #0003;
}
.nexus-mark span {color: var(--dunn-red-hover);}
.nexus-mark.mini {font-size: 1.65rem;min-width: 2.6rem;border-left-width: 3px;padding: .19rem .48rem .19rem .31rem;}
.login-card .nexus-mark {justify-self:start;}
.nexus-wordmark {font-family: 'IBM Plex Sans Condensed','Arial Narrow',sans-serif;font-weight: 900;letter-spacing: .045em;font-size: clamp(2rem,5vw,2.85rem);margin: .18rem 0 .22rem;}
.nexus-wordmark span {color: var(--dunn-red-hover);}
.login-card .muted {margin: -.1rem 0 1rem;color:var(--dunn-muted);}
.identity {min-width: 0;}
.identity div {min-width: 0;}
.identity b {letter-spacing:.045em;font-size:1.28rem;white-space:nowrap;}
.identity small {font-size:.61rem;letter-spacing:.07em;}


/* Approved founder-supplied DUNN NEXUS transparent PNG artwork.
   Use the exact pixel files; do not substitute AI search imagery. */
.login-card { gap: 12px; padding: 28px 34px 30px; }
.login-brand { display:flex; flex-direction:column; align-items:center; width:100%; gap:0; }
.login-dn-logo { display:block; width:min(172px,55%); height:auto; object-fit:contain; filter:drop-shadow(0 9px 20px #0006); }
.login-wordmark { display:block; width:100%; height:94px; object-fit:cover; object-position: center center; margin-top:-4px; }
.login-card .eyebrow { margin:0; text-align:center; }
.login-heading { font-size:1.38rem; line-height:1.13; margin:3px 0 0; text-align:center; }
.login-card .muted { margin:0 0 4px; text-align:center; }
.nexus-identity { display:flex; align-items:center; justify-content:center; gap:5px; padding:5px 0 17px; }
.sidebar-dn-logo { display:block; width:56px; height:56px; object-fit:contain; flex-shrink:0; }
.sidebar-wordmark { display:block; width:155px; height:62px; object-fit:cover; object-position:center; }
@media(max-width:900px){
 .nexus-identity { justify-content:flex-start; padding:0; gap:6px; }
 .sidebar-dn-logo { width:42px; height:42px; }
 .sidebar-wordmark { width:152px; height:48px; }
}
@media(max-width:560px){
 .login-card { padding:18px 22px 23px; gap:10px; }
 .login-dn-logo { width:min(126px,45%); }
 .login-wordmark { height:77px; }
 .login-heading { font-size:1.18rem; }
}


/* DUNN NEXUS landing scene, modeled on the scale of the DUNN AXIS auth hero,
   but with an original commerce network instead of financial candlesticks. */
.login-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 24px 16px 35px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background: #05182b;
}
.nexus-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(16,48,75,.25) 0%, transparent 48%),
    radial-gradient(ellipse at 2% 70%, rgba(9,77,124,.26) 0%, transparent 40%),
    radial-gradient(ellipse at 100% 35%, rgba(119,17,45,.13) 0%, transparent 35%),
    linear-gradient(155deg,#041120 0%,#081f37 60%,#050e1a 100%);
}
.nexus-grid {
  position: absolute;
  inset: 0;
  opacity: .29;
  background-image:
    linear-gradient(to right, rgba(58,123,174,.24) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(58,123,174,.24) 1px,transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0,0,0,.28) 50%, #000);
  mask-image: linear-gradient(to right, #000, rgba(0,0,0,.28) 50%, #000);
}
#nexus-network-scene { position: absolute; inset: 0; pointer-events: none; }
#nexus-network-scene canvas { display: block; width: 100%; height: 100%; }
.nexus-login-stage {
  width: min(470px,100%);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-bottom: 8px;
}
.nexus-emblem-scene {
  width: 100%;
  aspect-ratio: 1 / .87;
  display: grid;
  place-items: center;
  perspective: 960px;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
}
.nexus-emblem-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nexus-emblem-scene .login-dn-logo {
  display: block;
  width: 96%;
  height: auto;
  object-fit: contain;
  position: relative;
  transform-style: preserve-3d;
}
.nexus-emblem-scene.is-webgl-ready .login-dn-logo { opacity: 0; }
.login-brand .login-wordmark {
  width: 100%;
  height: 104px;
  object-fit: cover;
  object-position: center center;
  margin-top: -5px;
  filter: drop-shadow(0 8px 10px #0008);
}
.nexus-login-stage .login-card {
  width: 100%;
  background: rgba(8,21,38,.93);
  border: 1px solid rgba(98,130,159,.54);
  border-top: 3px solid var(--dunn-red);
  border-radius: 15px;
  box-shadow: 0 20px 65px rgba(0,0,0,.42);
  padding: 19px 21px 14px;
  gap: 11px;
  display: grid;
}
.nexus-login-stage .login-heading {
  font-size: 1.27rem;
  line-height: 1.15;
  text-align: center;
  margin: 0;
}
.login-subtitle {
  margin: 0 0 1px;
  text-align: center;
  font-size: .79rem;
  color: #bdcad8;
}
.nexus-login-stage .login-card label { gap: 5px; font-size:.83rem; }
.nexus-login-stage input { padding: 11px 12px; min-height: 43px; background: #f8fafc; color: #132035; border:1px solid #c6d2dd; }
.nexus-login-stage input:focus { outline:2px solid #ee4057;outline-offset:1px; }
.nexus-login-stage .primary { min-height: 43px; padding: 10px 16px; font-weight: 800; }
.nexus-login-stage .error { text-align: center; min-height: 0; font-size: .78rem; }
.nexus-login-stage .error:empty { display: none; }
.nexus-login-stage .foot-note { margin: 0; text-align: center; font-size:.69rem; color:#c7d3df; line-height:1.35; }
.nexus-backdrop-caption {
  position:absolute;
  left: 0; right: 0; bottom: 12px;
  font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-align: center; color: #7da0c5;
  opacity: .7; pointer-events:none;
}
.nexus-backdrop-caption span { color:#cd2645; padding:0 .38rem; }
@media(max-height:850px) and (min-width:761px) {
  .login-shell { justify-content:flex-start; padding-top: 10px; }
  .nexus-emblem-scene { width: min(390px,100%); }
  .login-brand .login-wordmark { height:86px; }
  .nexus-login-stage .login-card { padding:14px 19px 12px; gap:8px; }
}
@media(max-width:760px) {
  .login-shell { min-height:100svh; overflow-y:auto; justify-content:flex-start; padding: 14px 14px 26px; }
  .nexus-grid { background-size: 45px 45px; opacity:.19; }
  .nexus-login-stage { width: min(440px,100%); }
  .nexus-emblem-scene { width:min(360px,100%); }
  .login-brand .login-wordmark { height:92px; }
  .nexus-backdrop-caption { display:none; }
}
@media(max-width:440px) {
  .nexus-emblem-scene { width:min(290px,100%); }
  .login-brand .login-wordmark { height: 78px; }
  .nexus-login-stage .login-card { padding: 14px 15px 13px; }
  .nexus-login-stage .login-heading { font-size: 1.1rem; }
}
@media(prefers-reduced-motion: reduce){
  .nexus-emblem-scene canvas,#nexus-network-scene canvas { display:none!important; }
  .nexus-emblem-scene .login-dn-logo { opacity:1!important; transform:none!important; }
}


/* EXACT DUNN AXIS house family from its app.py: Barlow, not Barlow Condensed. */
:root { --dunn-font: 'IBM Plex Sans Condensed','Arial Narrow','Arial',sans-serif; font-family:var(--dunn-font); }
body,h1,h2,h3,h4,h5,h6,b,strong,small,p,span,label,button,input,select,textarea,
aside,nav,header,footer,.mark,.nexus-wordmark,.metric strong,.identity b,
.sidebar-wordmark,.login-heading,.chip,.eyebrow,.pill,.small-note {
  font-family: var(--dunn-font) !important;
}
.pre,pre,code { font-family:ui-monospace,Consolas,monospace !important; }
/* Bigger and brighter legend than the initial proof of concept. */
.nexus-backdrop-caption {
  position:static;
  color:#d4e5f5;
  opacity:1;
  font-size:.92rem;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.13em;
}
.nexus-backdrop-caption span { color:#ff4c6b; font-size:1.06rem; }
.nexus-landing-footer {
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-top:16px;
  padding-bottom:5px;
}
.nexus-legal-link { color:#d5e5f5; font-size:.85rem; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.nexus-legal-link:hover { color:#fff; }
.side-footer .nexus-legal-link { display:block; margin:6px 0; font-size:.82rem; }
.nexus-login-stage .login-card { font-family:var(--dunn-font) !important; }
@media(max-width:760px){
  .nexus-backdrop-caption {display:block;font-size:.70rem;letter-spacing:.04em;padding:0 8px;}
  .nexus-backdrop-caption span {padding:0 .12rem;}
  .nexus-landing-footer {margin-top:14px;}
}


/* DUNN AXIS-inspired administrative system: dark collapsible left sidebar and
   off-white, high-contrast working area. The login landing remains dark. */
#dashboard.shell {grid-template-columns:302px minmax(0,1fr);background:#f2f5fa;color:#15273b;min-height:100vh;}
#dashboard .side {padding:15px 17px 18px;background:#071a2e;color:#fff;gap:15px;border-right:1px solid #203e5e;}
#dashboard .nexus-identity {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:9px 2px 8px;gap:1px;border:0;perspective:1000px;
}
#dashboard .admin-emblem-wrap {height:203px;width:100%;display:grid;place-items:center;perspective:930px;}
#dashboard .sidebar-dn-logo {
  width:225px;height:225px;max-width:98%;object-fit:contain;transform-style:preserve-3d;
  animation:nexusSidebarSpin 10s linear infinite;filter:drop-shadow(0 12px 24px rgba(0,0,0,.40));
}
@keyframes nexusSidebarSpin{
  from {transform:rotateY(0deg) scale(.95);}
  to {transform:rotateY(360deg) scale(.95);}
}
#dashboard .sidebar-wordmark {width:265px;max-width:100%;height:73px;object-fit:cover;object-position:center;}
#dashboard .admin-menu {display:block;width:100%;overflow:auto;min-height:0;flex:1;}
#dashboard .menu-group {display:block;margin:0 0 10px;border:1px solid #23435e;border-radius:9px;overflow:hidden;background:#091b30;}
#dashboard .menu-group summary {
  display:flex;align-items:center;gap:9px;min-height:41px;
  padding:8px 11px 8px 12px;cursor:pointer;list-style:none;
  background:#183b5a;color:#fff;border-left:4px solid #ec1c39;
  font:800 .94rem 'IBM Plex Sans Condensed',Arial,sans-serif;letter-spacing:.02em;
}
#dashboard .menu-group summary::-webkit-details-marker {display:none;}
#dashboard .menu-group summary:before {content:'›';font-size:1.3rem;line-height:1;transform:rotate(0deg);transition:transform .18s;}
#dashboard .menu-group[open] summary:before {transform:rotate(90deg);}
#dashboard .menu-group .nav-link {display:block;color:#f1f6fc;text-align:center;font-size:.91rem;font-weight:800;padding:9px 8px;border-radius:4px;text-decoration:none;}
#dashboard .menu-group .nav-link:hover,#dashboard .menu-group .nav-link.active{background:#244967;color:#fff;}
#dashboard .menu-group:not([open]) .nav-link {display:none;}
#dashboard .side-footer{color:#e2ecf6;border-top-color:#294560;padding:10px 8px;font-size:.90rem;line-height:1.6;display:block;}
#dashboard .side-footer small{color:#d6e3f1;font-size:.75rem;}
#dashboard .side-footer .nexus-legal-link{color:#c7e4ff;}
#dashboard main {min-width:0;background:#f2f5fa;color:#15273b;}
#dashboard .topbar {padding:29px 32px 24px;background:#f3f6fb;border-bottom:1px solid #dce3ed;align-items:center;}
#dashboard .topbar h1 {color:#0d2337;font-size:2rem;font-weight:900;}
#dashboard .topbar .eyebrow{color:#e11c3b;font-size:.81rem;}
#dashboard .content {max-width:none;margin:0;padding:24px 28px 50px;color:#202a39;}
#dashboard h1,#dashboard h2,#dashboard h3,#dashboard h4 {color:#0e2338;font-weight:900;}
#dashboard h2{font-size:1.55rem}#dashboard h3{font-size:1.2rem;}
#dashboard p,#dashboard label,#dashboard .muted,#dashboard .small-note {color:#455a73;}
#dashboard .metric,#dashboard .product-card,#dashboard .info-panel,#dashboard .review-card{
  background:#fff;border:1px solid #d4dfeb;color:#243249;box-shadow:0 5px 20px #1c41630b;
}
#dashboard .metric small{color:#64738b;font-weight:800;font-size:.73rem;}
#dashboard .metric strong{color:#122c45;}
#dashboard .product-info p,#dashboard .product-info h3 {color:#34445b;}
#dashboard .pill {color:#1a4468;background:#e9f1f8;border-color:#bbcddd;}
#dashboard .chip {color:#a10b2c;background:#ffe7ec;border:1px solid #e5a8b4;font-size:.75rem;}
#dashboard .primary {background:#d90b2c;color:#fff;}#dashboard .primary:hover{background:#f02648;}
#dashboard .secondary{background:#e9f0f8;color:#153654;border-color:#9eafc1;}
#dashboard .danger{background:#ffe7ed;color:#92233c;border-color:#ce7a8b;}
#dashboard input,#dashboard select,#dashboard textarea {
  background:#fff;color:#12273d;border:1px solid #abbccf;
}
#dashboard input::placeholder,#dashboard textarea::placeholder{color:#5b6d82;}
#dashboard .brand-selector{color:#455b75;font-size:.75rem;font-weight:800;}
#dashboard .brand-selector select{min-width:168px;}
#dashboard .product-media{background:#e9eff7;color:#637e99;}
#dashboard .pre,#dashboard #holiday-output{color:#243b53;background:#ecf2f9;}
#dashboard #flash{color:#17344d;background:#e2f1f7;border-color:#82b1ce;}
#dashboard #flash.bad{background:#ffe3e7;border-color:#ce6270;color:#5e1724;}
#dashboard .info-panel a{color:#0759a1;font-weight:700;}
#dashboard .side .nav-link,#dashboard .side .nexus-legal-link{color:#f7fbff;}
#dashboard .modal-panel{background:#f9fbff;color:#243249;}#dashboard .modal-head{border-bottom-color:#b8cadb;}
#dashboard .modal .close{color:#153654;}
#dashboard .modal label{color:#243249;}
#dashboard .admin-data-table{border-collapse:collapse;width:100%;font-size:.92rem;min-width:495px;}
#dashboard .admin-data-table td,#dashboard .admin-data-table th{border-bottom:1px solid #e0e7ee;padding:10px 9px;text-align:left;}
#dashboard .admin-data-table th{color:#233e5a;background:#e9f2fa;font-size:.85rem;}
#dashboard .admin-scroll{max-width:100%;overflow:auto;}
#dashboard .admin-connection{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:15px;}
#dashboard .admin-connection h4{margin:0 0 7px;}
#dashboard .admin-connection p{max-width:640px;font-size:.93rem;}
#dashboard .admin-gate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:13px;}
#dashboard .admin-gate-grid>div{background:#edf3f8;border:1px solid #d4e1eb;border-radius:8px;padding:12px;}
#dashboard .admin-gate-grid b,#dashboard .admin-gate-grid span{display:block;color:#1c3c57;}
#dashboard .admin-gate-grid span{font-size:.83rem;margin-top:5px;}
@media(max-width:900px){
  #dashboard.shell{grid-template-columns:1fr;}
  #dashboard .side{padding:10px;gap:8px;}
  #dashboard .nexus-identity{flex-direction:row;align-items:center;justify-content:flex-start;padding:0 8px;}
  #dashboard .admin-emblem-wrap{width:54px;height:54px;}
  #dashboard .sidebar-dn-logo{width:53px;height:53px;}
  #dashboard .sidebar-wordmark{width:175px;height:54px;}
  #dashboard .admin-menu{display:flex;align-items:start;gap:7px;max-width:100%;overflow-x:auto;}
  #dashboard .menu-group{min-width:180px;flex-shrink:0;margin:0;}
  #dashboard .side-footer{display:block;margin-top:0;padding:2px 8px 4px;}
  #dashboard .content{padding:16px 14px;}
  #dashboard .topbar{padding:15px 18px;flex-direction:column;align-items:flex-start;}
  #dashboard .topbar h1{font-size:1.55rem;}
}
@media(prefers-reduced-motion:reduce){#dashboard .sidebar-dn-logo{animation:none;transform:none;}}

#dashboard .menu-group[hidden] { display:none!important; }
#dashboard .admin-menu .menu-group[hidden] { display:none!important; }


/* Final typography contract. Applies also to dynamically rendered cards,
   controls, policies, headings, data tables, dialogs, and sidebar menus. */
:root { --nexus-font: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-family: var(--nexus-font); }
html,body,body *,body *::before,body *::after {
  font-family: var(--nexus-font) !important;
}


/* Responsive dashboard contract: phone and tablet layouts must never inherit
   the former fixed-width horizontal admin menu or create document-wide scroll. */
.mobile-menu-toggle { display:none; }
@media (max-width:900px) {
  html,body { width:100%; max-width:100%; overflow-x:clip; }
  #dashboard.shell {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;max-width:100%;min-width:0;
    min-height:100svh;
    overflow-x:clip;
  }
  #dashboard .side {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    width:100%;min-width:0;
    padding:10px 12px;
  }
  #dashboard .nexus-identity {
    grid-column:1;
    width:100%;min-width:0;max-width:100%;
    flex-direction:row;justify-content:flex-start;gap:6px;
    padding:0;
  }
  #dashboard .admin-emblem-wrap { width:49px;height:49px;flex:0 0 49px; }
  #dashboard .sidebar-dn-logo { width:49px;height:49px;max-width:100%; }
  #dashboard .sidebar-wordmark { width:clamp(105px,39vw,180px);max-width:calc(100% - 55px);height:49px;object-fit:contain; }
  #dashboard .mobile-menu-toggle {
    grid-column:2;
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-width:86px;min-height:44px;
    padding:9px 12px;
    border:1px solid #4b6784;border-radius:9px;
    color:#fff;background:#183b5a;
    font-size:1rem;font-weight:800;line-height:1;
  }
  #dashboard .mobile-menu-toggle[aria-expanded="true"] { background:#274d6c; }
  #dashboard .mobile-menu-icon { font-size:1.2rem;line-height:1;min-width:16px; }
  #dashboard .admin-menu {
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    width:100%;max-width:100%;min-width:0;
    overflow:visible;
    padding:3px 0 0;
  }
  #dashboard .menu-group {
    display:block;
    width:100%;min-width:0;max-width:100%;margin:0;
    flex:auto;
  }
  #dashboard .menu-group summary { min-height:44px;padding:10px 13px; }
  #dashboard .menu-group .nav-link {
    display:block;width:100%;min-height:44px;
    white-space:normal;text-align:left;
    padding:11px 16px;line-height:1.35;
    overflow-wrap:anywhere;
  }
  #dashboard .menu-group:not([open]) .nav-link {display:none;}
  #dashboard .side-footer {
    display:block;
    grid-column:1/-1;
    min-width:0;width:100%;
    padding:9px 5px 6px;margin:0;
    line-height:1.5;
  }
  #dashboard .side[data-mobile-menu-open="false"] .admin-menu,
  #dashboard .side[data-mobile-menu-open="false"] .side-footer {
    display:none!important;
  }
  #dashboard main,#dashboard .content,#dashboard .page {
    width:100%;max-width:100%;min-width:0;
  }
  #dashboard .topbar {
    display:flex;flex-direction:column;align-items:stretch;
    width:100%;min-width:0;
    padding:17px 16px 18px;gap:14px;
  }
  #dashboard .topbar h1 {font-size:clamp(1.55rem,5vw,2rem);}
  #dashboard .top-actions {
    display:flex;align-items:end;flex-wrap:wrap;gap:10px;
    width:100%;min-width:0;max-width:100%;
  }
  #dashboard .brand-selector {
    flex:1 1 150px;min-width:0;max-width:100%;
  }
  #dashboard .brand-selector select {
    display:block;min-width:0;max-width:100%;width:100%;min-height:44px;
  }
  #dashboard .chip {max-width:100%;white-space:normal;text-align:center;}
  #dashboard .content {padding:16px;overflow-wrap:anywhere;}
  #dashboard .section-heading {flex-wrap:wrap;align-items:stretch;gap:12px;}
  #dashboard .section-heading > div {min-width:0;}
  #dashboard .metrics {gap:10px;margin-bottom:25px;}
  #dashboard .metric {min-width:0;padding:14px;}
  #dashboard .metric small {font-size:.76rem;line-height:1.3;}
  #dashboard .metric strong {font-size:1.8rem;margin:9px 0 0;}
  #dashboard .product-grid {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));
  }
  #dashboard .channels {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
  }
  #dashboard .toolbar {display:flex;flex-wrap:wrap;gap:10px;}
  #dashboard .toolbar input,#dashboard .toolbar select {flex:1 1 180px;min-width:0;max-width:100%;}
  #dashboard .form-grid,#dashboard .edit-form {max-width:100%;min-width:0;}
  #dashboard .form-grid label,#dashboard .edit-form label {min-width:0;}
  #dashboard .info-panel,#dashboard .product-card,#dashboard .review-card,#dashboard .product-info {
    max-width:100%;min-width:0;overflow-wrap:anywhere;
  }
  #dashboard .admin-scroll {width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;}
  #dashboard .product-actions,#dashboard .form-actions {flex-wrap:wrap;}
  #dashboard input,#dashboard textarea,#dashboard select,
  #dashboard button {max-width:100%;}
  #dashboard input,#dashboard textarea,#dashboard select {min-width:0;}
  #dashboard #holiday-output,#dashboard .pre {overflow-wrap:anywhere;white-space:pre-wrap;}
  .modal {max-width:100vw;overflow-x:hidden;}
  .modal-panel {width:100%;max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;}
  .modal-panel input,.modal-panel select,.modal-panel textarea {max-width:100%;min-width:0;}
}
@media (max-width:600px) {
  #dashboard .topbar {padding:15px 15px 17px;}
  #dashboard .content {padding:16px 14px 28px;}
  #dashboard .metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  #dashboard .metrics > .metric:last-child:nth-child(odd) {grid-column:1/-1;}
  #dashboard .section-heading {flex-direction:column;align-items:stretch;}
  #dashboard .section-heading > button {width:100%;min-height:46px;}
  #dashboard .toolbar {flex-direction:column;}
  #dashboard .toolbar input,#dashboard .toolbar select {width:100%;flex:0 1 auto;min-width:0;min-height:44px;}
  #dashboard .product-grid,#dashboard .channels {grid-template-columns:minmax(0,1fr);}
  #dashboard .form-grid,#dashboard .edit-form {grid-template-columns:minmax(0,1fr);}
  #dashboard .form-grid > .primary,#dashboard .edit-form > .primary {width:100%;min-height:46px;}
  #dashboard .product-actions > button {flex:1 1 125px;}
  #dashboard .admin-connection {flex-direction:column;align-items:stretch;}
  #dashboard .pill {white-space:normal;}
  .modal {padding:12px;}
  .modal-panel {padding:17px;}
}
@media (max-width:360px) {
  #dashboard .side {padding:9px;}
  #dashboard .mobile-menu-toggle {min-width:78px;padding:8px;}
  #dashboard .sidebar-wordmark {width:112px;}
  #dashboard .metric {padding:11px;}
  #dashboard .metric small {font-size:.72rem;}
}

/* Multi-store planning cards within existing protected Super Admin UI. */
#dashboard .admin-connection { padding:14px 12px;border-bottom:1px solid #d7e4ee; }
#dashboard .admin-connection:last-of-type {border-bottom:0;}
#dashboard .admin-connection .small-note {font-size:.87rem;line-height:1.55;overflow-wrap:anywhere;}
#dashboard .admin-connection .pill {align-self:flex-start;}
@media(max-width:600px){#dashboard .admin-connection {padding:12px 6px;}#dashboard .admin-connection .pill{width:max-content;max-width:100%;}}
