:root{
  --blue:#004BEE; --blue-d:#0038B4; --blue-tint:#EAF1FF; --blue-line:#BFD6FF;
  --navy:#0A1330; --navy-2:#0E1B41; --ink:#0A1330; --muted:#5A6478;
  --line:#E1E8F5; --wash:#F4F7FE; --white:#fff;
  --ok:#12A05C; --warn:#B8730A; --warn-bg:#FFF6E6; --err:#C6392F; --err-bg:#FFF3F2;
  --display:'Poppins',system-ui,sans-serif; --body:'Inter',system-ui,sans-serif;
  --sh-1:0 1px 2px rgba(10,19,48,.05); --sh-2:0 6px 18px -8px rgba(10,19,48,.16);
  --sh-3:0 18px 46px -22px rgba(10,19,48,.30);
  --rail:248px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--body);background:var(--wash);color:var(--ink);
  font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--display);font-weight:600;letter-spacing:-.02em;margin:0}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.hide{display:none!important}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--body);font-weight:600;font-size:14px;line-height:1;
  padding:11px 18px;border-radius:6px;border:1px solid transparent;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .12s;
}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn-p{background:var(--blue);color:#fff}
.btn-p:hover:not([disabled]){background:var(--blue-d)}
.btn-g{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-g:hover:not([disabled]){border-color:var(--blue-line);color:var(--blue)}
.btn-d{background:#fff;color:var(--err);border-color:#F3C9C5}
.btn-d:hover:not([disabled]){background:var(--err-bg)}
.btn-s{padding:7px 12px;font-size:13px;border-radius:6px}

/* ---------------- login ---------------- */
.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}
.auth-art{
  position:relative;overflow:hidden;
  /* Deeper and longer than before. The old ramp hit full brand blue by the
     bottom corner, which fought the white type sitting on it. */
  background:linear-gradient(155deg,#080F26 0%,#0A1330 22%,#0D2A6B 62%,#004BEE 128%);
  color:#fff;padding:clamp(40px,5.5vw,72px) clamp(28px,4.5vw,64px);
  display:flex;flex-direction:column;justify-content:space-between;gap:40px;
}
/* Two soft lights rather than one, placed off-canvas so neither reads as a
   shape — they only stop the flat fill looking printed. */
.auth-art::before{
  content:'';position:absolute;width:680px;height:680px;right:-260px;top:-240px;
  background:radial-gradient(circle,rgba(120,164,255,.20) 0%,rgba(120,164,255,0) 66%);
  pointer-events:none;
}
.auth-art::after{
  content:'';position:absolute;width:520px;height:520px;left:-220px;bottom:-260px;
  background:radial-gradient(circle,rgba(0,75,238,.28) 0%,rgba(0,75,238,0) 68%);
  pointer-events:none;
}
/* Short accent rule above the headline — the one piece of ornament left. */
.auth-rule{
  display:block;width:34px;height:2px;border-radius:2px;
  background:#5E9AFF;margin:0 0 22px;
}

.auth-art > *{position:relative}
.auth-art h1{font-size:clamp(28px,3.1vw,40px);line-height:1.1;margin:0 0 16px;color:#fff;
  letter-spacing:-.025em}
.auth-art p{color:rgba(255,255,255,.72);font-size:15.5px;line-height:1.68;max-width:46ch;margin:0}
/* The lockup is a direct child of a column flex container, so it must opt out
   of align-items:stretch — otherwise width:auto lets the browser pull it to the
   full panel width and the 4.2:1 artwork renders at roughly 13:1.
   align-self pins the cross size; max-width is the belt-and-braces guard if
   this ever moves into a grid or a wider panel. */
.auth-logo{
  display:block;align-self:flex-start;flex:0 0 auto;
  height:2.375rem;width:auto;max-width:min(15rem,60%);
}
.auth-foot{font-size:13px;color:rgba(255,255,255,.5)}
.auth-form{display:grid;place-items:center;padding:clamp(32px,4vw,56px) 32px;background:#fff}
.auth-box{width:100%;max-width:396px}
.auth-box h2{font-size:27px;margin:0 0 7px;letter-spacing:-.02em}
.auth-box .sub{color:var(--muted);font-size:14.5px;margin:0 0 26px}
/* blue lockup above the form — hidden on wide screens where the art panel shows it */
.auth-box .form-logo{display:none;height:2.125rem;width:auto;max-width:60%;margin:0 0 24px}
.auth-help{margin-top:22px;font-size:13px;color:var(--muted)}
/* Caps lock is the single commonest reason a correct password is rejected. */
.caps{
  display:none;align-items:center;gap:7px;margin:-6px 0 14px;
  font-size:12.5px;color:var(--warn);background:var(--warn-bg);
  border:1px solid #F0DCB4;border-radius:6px;padding:8px 11px;line-height:1.4;
}
.caps.on{display:flex}
.caps::before{content:'⇪';font-size:14px;line-height:1}
@media(max-width:900px){
  .auth{grid-template-columns:1fr}
  .auth-art{padding:34px 24px;order:2;gap:22px}
  .auth-art h1{font-size:24px}
  .auth-rule{margin-bottom:16px}
  .auth-form{order:1;padding:34px 22px}
  .auth-box .form-logo{display:block}
  .auth-logo{height:1.875rem}
}
/* One focus treatment across both doors. The global :focus-visible rule uses the
   brand blue, which disappears against the navy card, so the staff side gets the
   lighter tint at the same width rather than a different style. */
.staff-card :focus-visible,.staff-auth a:focus-visible{outline-color:#8FB6FF}
.auth-form :focus-visible,.auth-art a:focus-visible{outline-color:var(--blue)}
.auth-art :focus-visible{outline-color:#8FB6FF}

/* ---------------- public landing page (/) ---------------- */
.lp{min-height:100vh;display:flex;flex-direction:column;background:#fff}
.lp-top{
  display:flex;align-items:center;gap:16px;padding:18px 30px;
  border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:10;
}
.lp-logo{display:block;height:2rem;width:auto;max-width:60%;margin-right:auto}

/* ---- hero ---- */
.lp-hero{
  display:grid;grid-template-columns:1.08fr .92fr;gap:44px;align-items:center;
  padding:clamp(44px,6vw,80px) 30px clamp(40px,5vw,64px);
  max-width:1180px;margin:0 auto;width:100%;
}
.lp-eyebrow{
  font-size:11.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;
  color:var(--blue);margin:0 0 14px;
}
.lp-hero h1{
  font-size:clamp(32px,4.4vw,52px);line-height:1.03;margin:0 0 18px;letter-spacing:-.03em;
}
.lp-lead{font-size:17px;line-height:1.6;color:var(--muted);max-width:50ch;margin:0}
.lp-cta{display:flex;flex-direction:column;gap:12px;align-items:flex-start;margin-top:30px}
.lp-doors{display:flex;flex-wrap:wrap;gap:10px}
.lp-note{font-size:13px;color:var(--muted);max-width:46ch;line-height:1.55}
/* The photograph, unfiltered. Nothing is laid over it, so it needs no scrim. */
.lp-hero-art{
  height:360px;border-radius:12px;border:1px solid var(--line);
  background-image:url('/brand/hero-desk.jpg');
  background-size:cover;background-position:46% center;background-repeat:no-repeat;
}

/* ---- shared section chrome ---- */
.lp-section{padding:clamp(40px,5vw,64px) 30px;max-width:1180px;margin:0 auto;width:100%}
.lp-section h2,.lp-band h2{
  font-size:clamp(22px,2.6vw,30px);letter-spacing:-.025em;margin:0 0 8px;
}
.lp-sub{font-size:15.5px;color:var(--muted);margin:0 0 28px;max-width:56ch;line-height:1.6}

/* ---- what it replaces ---- */
.lp-band{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lp-band{padding:clamp(40px,5vw,60px) 30px}
.lp-band > *{max-width:1180px;margin-left:auto;margin-right:auto}
.lp-swap{display:grid;gap:14px;margin-top:24px}
.lp-swap-row{
  display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1.5fr);
  gap:12px;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:10px;padding:16px 18px;
}
.lp-was{color:var(--muted);font-size:15px;font-style:italic}
.lp-arrow{color:var(--blue);text-align:center;font-size:17px}
.lp-now{font-size:14.5px;line-height:1.55}

/* ---- what is inside ---- */
.lp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lp-card{
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;
  transition:border-color .16s,transform .16s;
}
.lp-card:hover{border-color:var(--blue-line);transform:translateY(-2px)}
.lp-card h3{font-size:16px;margin:0 0 8px}
.lp-card p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}

/* ---- honest preview of the real dashboard ---- */
.lp-peek-wrap{padding-bottom:0}
.lp-peek{
  border:1px solid var(--line);border-radius:12px;overflow:hidden;
  background:var(--wash);box-shadow:var(--sh-3);
}
.lp-peek-bar{
  display:flex;align-items:center;gap:7px;padding:10px 14px;
  background:#fff;border-bottom:1px solid var(--line);
}
.lp-peek-bar span{width:9px;height:9px;border-radius:50%;background:var(--line)}
.lp-peek-bar em{
  font-style:normal;margin-left:8px;font-family:ui-monospace,Menlo,monospace;
  font-size:11.5px;color:var(--muted);
}
.lp-peek-body{display:grid;grid-template-columns:186px 1fr;min-height:280px}
.lp-peek-rail{background:var(--navy);padding:16px 12px;display:flex;flex-direction:column;gap:3px}
.lp-peek-mark{
  display:block;height:22px;margin:0 4px 16px;
  background-image:url('/brand/lockup-white.png');
  background-size:contain;background-repeat:no-repeat;background-position:left center;
}
.lp-peek-rail u{
  text-decoration:none;font-size:12.5px;color:rgba(255,255,255,.66);
  padding:7px 9px;border-radius:6px;
}
.lp-peek-rail u.on{background:rgba(255,255,255,.10);color:#fff;box-shadow:inset 2px 0 0 #5E9AFF}
.lp-peek-main{padding:18px 20px}
.lp-peek-h{font-family:var(--display);font-weight:600;font-size:17px;margin-bottom:14px}
.lp-peek-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.lp-peek-stats div{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 12px}
.lp-peek-stats b{
  display:block;font-family:var(--display);font-weight:600;font-size:19px;letter-spacing:-.02em;
}
.lp-peek-stats span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.lp-peek-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px}
.lp-peek-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:9px}
.lp-peek-row{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.lp-peek-row b{font-weight:500;font-size:14px}
.lp-peek-row span{margin-left:auto;font-size:12px;color:var(--muted)}
.lp-peek-bar-track{height:7px;border-radius:99px;background:var(--wash);overflow:hidden}
.lp-peek-bar-track i{display:block;height:100%;background:var(--blue);border-radius:99px}

/* ---- trust strip ---- */
.lp-strip{
  background:var(--navy);color:#fff;margin-top:clamp(40px,5vw,64px);
  padding:clamp(40px,5vw,60px) 30px;
  display:grid;grid-template-columns:repeat(3,1fr);gap:30px;
}
.lp-strip > div{max-width:38ch;margin:0 auto;width:100%}
.lp-strip b{display:block;font-family:var(--display);font-weight:600;font-size:16px;margin-bottom:7px}
.lp-strip span{font-size:14px;line-height:1.62;color:rgba(255,255,255,.72)}

/* ---- how access works ---- */
.lp-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.lp-steps li{display:flex;gap:14px;align-items:flex-start}
.lp-num{
  flex:0 0 30px;width:30px;height:30px;border-radius:50%;
  background:var(--blue-tint);color:var(--blue);
  display:grid;place-items:center;font-weight:600;font-size:14px;
}
.lp-steps b{display:block;font-weight:600;font-size:15px;margin-bottom:4px}
.lp-steps span span{font-size:14px;line-height:1.6;color:var(--muted)}
.lp-ask{margin:28px 0 0;font-size:14px;color:var(--muted)}

.lp-foot{
  margin-top:auto;padding:22px 30px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;
  font-size:13px;color:var(--muted);
}

@media(max-width:960px){
  .lp-hero{grid-template-columns:1fr;gap:30px;padding:40px 20px 36px}
  .lp-hero-art{
    height:240px;order:-1;
    /* 62KB instead of 157KB on a phone. */
    background-image:url('/brand/hero-desk-sm.jpg');
  }
  .lp-grid{grid-template-columns:1fr 1fr}
  .lp-steps{grid-template-columns:1fr;gap:16px}
  .lp-strip{grid-template-columns:1fr;gap:22px;padding:34px 20px}
  .lp-section,.lp-band{padding-left:20px;padding-right:20px}
  .lp-top{padding:14px 20px}
  .lp-peek-body{grid-template-columns:150px 1fr}
  .lp-peek-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .lp-grid{grid-template-columns:1fr}
  .lp-doors{width:100%}
  .lp-doors .btn{flex:1 1 auto;justify-content:center}
  .lp-swap-row{grid-template-columns:1fr;gap:6px;text-align:left}
  .lp-arrow{text-align:left;transform:rotate(90deg);width:20px}
  /* the rail adds nothing at this width and squeezes the content */
  .lp-peek-rail{display:none}
  .lp-peek-body{grid-template-columns:1fr}
}

/* ---------------- staff sign-in (separate door, /staff) ---------------- */
.staff-auth{
  min-height:100vh;display:grid;place-items:center;padding:32px 22px;
  background:
    radial-gradient(900px 500px at 50% -10%,rgba(0,75,238,.30) 0%,rgba(0,75,238,0) 70%),
    var(--navy);
}
.staff-box{width:100%;max-width:392px;text-align:left}
.staff-head{text-align:center;margin-bottom:28px}
.staff-head img{height:2.5rem;width:auto;max-width:70%;margin:0 auto 22px;display:block}
.staff-card .caps{
  color:#F2CE8E;background:rgba(184,115,10,.17);border-color:rgba(242,206,142,.32);
}
.staff-tag{
  display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;color:#8FB6FF;
  background:rgba(143,182,255,.11);border:1px solid rgba(143,182,255,.24);
  border-radius:999px;padding:5px 12px;
}
.staff-card{
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.11);
  border-radius:12px;padding:30px 28px;backdrop-filter:blur(7px);
  box-shadow:0 26px 60px -30px rgba(0,0,0,.75);
}
.staff-card h2{font-size:21px;color:#fff;margin:0 0 6px}
.staff-card .sub{color:rgba(255,255,255,.62);font-size:14px;margin:0 0 24px;line-height:1.55}
.staff-card .f label{color:rgba(255,255,255,.88)}
.staff-card .f input{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.17);color:#fff;
}
.staff-card .f input::placeholder{color:rgba(255,255,255,.36)}
.staff-card .f input:focus{border-color:#8FB6FF;background:rgba(255,255,255,.11)}
.staff-card .f input.bad{border-color:#FF9A90;background:rgba(198,57,47,.20)}
.staff-card .pw-eye{color:#8FB6FF}
.staff-card .note.err{background:rgba(198,57,47,.17);color:#FFC7C1;border-color:rgba(255,154,144,.36)}
.staff-card .note.warn{background:rgba(184,115,10,.17);color:#F2CE8E;border-color:rgba(242,206,142,.32)}
.staff-card .note.ok{background:rgba(18,160,92,.17);color:#9FE3C0;border-color:rgba(159,227,192,.32)}
.staff-back{
  display:block;text-align:center;margin-top:22px;
  font-size:13px;color:rgba(255,255,255,.5);
}
.staff-back a{color:#8FB6FF;font-weight:600}
@media(max-width:560px){ .staff-card{padding:26px 20px} }

/* ---------------- fields ---------------- */
.f{margin-bottom:16px}
.f label,.lbl{
  display:block;font-size:12.5px;font-weight:600;letter-spacing:.02em;
  color:var(--ink);margin-bottom:6px;
}
.f input,.f select,.f textarea{
  width:100%;font-family:var(--body);font-size:14.5px;color:var(--ink);background:#fff;
  border:1.5px solid var(--line);border-radius:6px;padding:11px 13px;transition:border-color .15s;
}
.f textarea{min-height:104px;resize:vertical;line-height:1.55}
.f input:focus,.f select:focus,.f textarea:focus{outline:none;border-color:var(--blue)}
.f input.bad,.f select.bad,.f textarea.bad{border-color:var(--err);background:var(--err-bg)}
.err-txt{display:none;color:var(--err);font-size:12.5px;margin-top:5px}
.err-txt.on{display:block}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:66px}
.pw-eye{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  background:none;border:0;color:var(--blue);font-size:12.5px;font-weight:600;
  cursor:pointer;padding:6px 8px;
}
.note{border-radius:6px;padding:11px 13px;font-size:13.5px;line-height:1.5;margin:14px 0 0}
.note.err{background:var(--err-bg);color:var(--err);border:1px solid #F3C9C5}
.note.ok{background:#EAF7F0;color:#0B7A46;border:1px solid #BEE5D0}
.note.warn{background:var(--warn-bg);color:var(--warn);border:1px solid #F0DCB4}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
@media(max-width:560px){.two{grid-template-columns:1fr}}

/* ---------------- shell ---------------- */
.shell{display:grid;grid-template-columns:var(--rail) 1fr;min-height:100vh}
.rail{
  background:var(--navy);color:#fff;padding:20px 14px;display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;
}
/* The real lockup, so the app matches the door people came in through.
   Same flex-stretch guard as the login panel: the rail is a column flex
   container, and an img with width:auto would otherwise be pulled to the
   full rail width. */
.rail-mark{padding:10px 10px 24px;display:flex;flex:0 0 auto}
.rail-mark img{
  display:block;align-self:flex-start;flex:0 0 auto;
  height:2.5rem;width:auto;max-width:100%;
}
/* The nav is the one part of the rail allowed to scroll. Before this it grew
   past the viewport and pushed the sign-out block off the bottom of the screen
   entirely — at 17 nav items the staff rail needs ~948px, so on any laptop
   under about 950px tall the Sign out button was simply unreachable. */
.rail nav{
  display:grid;gap:2px;flex:1 1 auto;align-content:start;
  overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent;
  margin-right:-4px;padding-right:4px;
}
.rail nav::-webkit-scrollbar{width:6px}
.rail nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:99px}
.rail nav::-webkit-scrollbar-track{background:transparent}
.rail a{
  display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:6px;
  color:rgba(255,255,255,.72);font-size:14px;font-weight:500;text-decoration:none;
  transition:background .14s,color .14s;
}
.rail a:hover{background:rgba(255,255,255,.07);color:#fff;text-decoration:none}
.rail a.on{background:rgba(255,255,255,.10);color:#fff;font-weight:500;
  box-shadow:inset 2px 0 0 #5E9AFF;border-radius:6px}
.rail .grp{
  font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.42);padding:16px 11px 6px;font-weight:500;
}
.dot{
  margin-left:auto;background:rgba(255,255,255,.18);border-radius:999px;
  font-size:11px;font-weight:500;padding:1px 7px;
}
.rail a.on .dot{background:rgba(255,255,255,.16)}
.rail-foot{
  border-top:1px solid rgba(255,255,255,.1);padding-top:12px;margin-top:12px;
  flex:0 0 auto;   /* pinned: always visible, whatever the nav length */
}
.who{display:flex;gap:10px;align-items:center;padding:6px 10px 10px;min-width:0}
.who > div:last-child{min-width:0}
.avatar{
  width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;
  display:grid;place-items:center;font-weight:600;font-size:12.5px;flex:0 0 32px;
}
.who b{display:block;font-size:13.5px;color:#fff;font-weight:600;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who span{display:block;font-size:11.5px;color:rgba(255,255,255,.55);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.main{min-width:0;display:flex;flex-direction:column}
.top{
  background:#fff;border-bottom:1px solid var(--line);padding:18px 30px;
  display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:20;
}
.top h1{font-size:22px}
.top .sub{color:var(--muted);font-size:13.5px;margin-top:2px}
.top-actions{margin-left:auto;display:flex;gap:9px;flex-wrap:wrap}
.burger{display:none;background:none;border:1px solid var(--line);border-radius:6px;padding:8px 11px;cursor:pointer}
.body{padding:26px 30px 60px;max-width:1240px;width:100%}
@media(max-width:960px){
  .shell{grid-template-columns:1fr}
  .rail{
    position:fixed;left:0;top:0;bottom:0;width:262px;z-index:60;height:100vh;
    transform:translateX(-100%);transition:transform .22s ease;
  }
  .rail.open{transform:none;box-shadow:var(--sh-3)}
  .burger{display:inline-flex}
  .top{padding:14px 16px}
  .body{padding:18px 16px 50px}
  .scrim{position:fixed;inset:0;background:rgba(10,19,48,.45);z-index:55}
}

/* ---------------- cards ---------------- */
.card{background:#fff;border:1px solid var(--line);border-radius:10px}
.card-h{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.card-h h3{font-size:16px}
.card-h .btn{margin-left:auto}
.card-b{padding:18px}
.grid{display:grid;gap:14px}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1000px){.g4{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.g4,.g3,.g2{grid-template-columns:1fr}}

.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 17px}
/* A stat that leads somewhere says so: it lifts, the border warms, and an
   arrow appears. Rendered as an anchor, so focus and middle-click work. */
.stat.is-link{
  display:block;position:relative;color:inherit;text-decoration:none;
  transition:border-color .16s,transform .16s,box-shadow .16s;
}
.stat.is-link:hover{
  border-color:var(--blue-line);transform:translateY(-2px);
  box-shadow:var(--sh-2);text-decoration:none;
}
.stat.is-link:hover .m{color:var(--blue)}
.stat-go{
  position:absolute;top:14px;right:15px;color:var(--blue);font-size:15px;
  opacity:0;transform:translateX(-4px);transition:opacity .16s,transform .16s;
}
.stat.is-link:hover .stat-go,.stat.is-link:focus-visible .stat-go{opacity:1;transform:none}
.stat .k{font-size:11.5px;color:var(--muted);font-weight:500}
.stat .v{font-family:var(--display);font-weight:600;font-size:26px;letter-spacing:-.02em;margin-top:7px;line-height:1}
.stat .m{font-size:12.5px;color:var(--muted);margin-top:6px}
.stat.hot .v{color:var(--err)}
.stat.good .v{color:var(--ok)}

/* ---------------- table ---------------- */
.tw{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
th{
  text-align:left;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);font-weight:500;padding:11px 14px;border-bottom:1px solid var(--line);
  white-space:nowrap;
}
td{padding:14px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--wash)}
td b{font-weight:600}
.muted{color:var(--muted)}
.right{text-align:right}
.nowrap{white-space:nowrap}

/* ---------------- pills ---------------- */
.pill{
  display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;
  padding:4px 10px;border-radius:999px;
  background:var(--wash);color:var(--muted);
}
.pill.blue{background:var(--blue-tint);color:var(--blue)}
.pill.green{background:#EAF7F0;color:#0B7A46}
.pill.amber{background:var(--warn-bg);color:var(--warn)}
.pill.red{background:var(--err-bg);color:var(--err)}
.pill.grey{background:#EEF1F6;color:#5A6478}

/* ---------------- staff overview: action list + ageing ---------------- */
.acts{list-style:none;margin:0;padding:0}
.acts li{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}
.acts li:last-child{border-bottom:0}
.sev{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--muted)}
.sev.high{background:var(--err)}
.sev.medium{background:var(--warn)}
.sev.low{background:var(--blue)}
.at{flex:1;min-width:0}
.at b{display:block;font-weight:500;font-size:14px}
.at span{display:block;color:var(--muted);font-size:12.5px;margin-top:1px}
.ago{font-size:13px;font-weight:500;white-space:nowrap}
.allclear{text-align:center;padding:22px 12px;color:var(--muted)}
.allclear b{display:block;color:var(--ok);font-weight:600;font-size:14.5px;margin-bottom:3px}
.allclear span{font-size:13px}

.ageing{display:grid;gap:11px}
.arow{display:grid;grid-template-columns:84px 1fr 92px;align-items:center;gap:10px;font-size:12.5px}
.arow .al{color:var(--muted)}
.arow .av{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}
@media(max-width:520px){.arow{grid-template-columns:70px 1fr 76px;font-size:12px}}

/* ---------------- analytics columns ---------------- */
.cols{display:flex;align-items:flex-end;gap:10px;height:170px;padding:4px 0 0}
.col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;height:100%}
.col .stack{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.col .stack i{
  display:block;width:38%;max-width:22px;min-height:2px;border-radius:3px 3px 0 0;
  transition:height .35s ease;
}
.col .stack i.a{background:var(--blue)}
.col .stack i.b{background:#8FB6FF}
.col span{font-size:11px;color:var(--muted);white-space:nowrap}
.legend{display:flex;gap:16px;justify-content:center;margin-top:12px;font-size:12px;color:var(--muted)}
.legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}
.legend i.a{background:var(--blue)}
.legend i.b{background:#8FB6FF}
@media(max-width:640px){.cols{height:140px;gap:6px}.col span{font-size:10px}}


/* ---- requirements / meetings / tasks ---- */
.rowbtns{display:flex;flex-wrap:wrap;gap:8px}
.chk{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin:0 0 14px}
.chk input{width:15px;height:15px;accent-color:var(--blue)}
h4.mini{font-family:var(--body);font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);font-weight:500;margin:14px 0 5px}
h4.mini:first-child{margin-top:0}
p.mb{margin:0;white-space:pre-wrap;font-size:14px;line-height:1.6}
.msg.internal{background:#FFFCF3;border-color:#F0DCB4}


/* ---- onboarding checklist ---- */
h3.sec{font-family:var(--display);font-size:14px;font-weight:600;color:var(--muted);
  margin:0 0 12px;letter-spacing:0}
h3.sec:not(:first-child){margin-top:22px}
.ob-list{list-style:none;margin:0;padding:0}
.ob-step{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}
.ob-step:last-child{border-bottom:0}
.ob-step.is-done .ob-body b{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.ob-tick{flex:0 0 20px;width:20px;height:20px;border-radius:50%;margin-top:2px;
  border:2px solid var(--line);display:grid;place-items:center;font-size:11px;color:#fff}
.ob-tick.done{background:var(--ok);border-color:var(--ok)}
.ob-tick.skip{background:var(--muted);border-color:var(--muted)}
.ob-body{flex:1;min-width:0}
.ob-body b{display:block;font-weight:500;font-size:14.5px}
.ob-detail{display:block;color:var(--muted);font-size:13px;line-height:1.55;margin-top:2px}
.ob-meta{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.ob-act{flex:0 0 auto;display:flex;gap:6px;align-items:center;padding-top:2px}
@media(max-width:640px){
  .ob-step{flex-wrap:wrap}
  .ob-act{width:100%;padding-left:32px}
}

/* ---------------- misc ---------------- */
.bar{height:7px;border-radius:99px;background:var(--wash);overflow:hidden;min-width:80px}
.bar i{display:block;height:100%;background:var(--blue);border-radius:99px;transition:width .4s}
.empty{text-align:center;padding:44px 20px;color:var(--muted)}
.empty h3{font-size:17px;color:var(--ink);margin-bottom:7px}
.empty p{margin:0 auto;max-width:44ch;font-size:14px}
.ms{list-style:none;margin:0;padding:0}
.ms li{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--line)}
.ms li:last-child{border-bottom:0}
.ms .mk{
  flex:0 0 18px;width:18px;height:18px;border-radius:50%;margin-top:2px;
  border:2px solid var(--line);display:grid;place-items:center;font-size:10px;color:#fff;
}
.ms .mk.done{background:var(--ok);border-color:var(--ok)}
.ms .mk.active{border-color:var(--blue);background:var(--blue-tint)}
.ms b{display:block;font-weight:600;font-size:14px}
.ms span{font-size:12.5px;color:var(--muted)}
.thread{display:grid;gap:12px}
.msg{border:1px solid var(--line);border-radius:10px;padding:13px 15px;background:#fff}
.msg.staff{background:var(--blue-tint);border-color:var(--blue-line)}
.msg .mh{display:flex;gap:9px;align-items:center;margin-bottom:6px;font-size:12.5px}
.msg .mh b{font-weight:600}
.msg p{margin:0;white-space:pre-wrap;font-size:14px;line-height:1.6}
.feed{list-style:none;margin:0;padding:0;font-size:13.5px}
.feed li{padding:9px 0;border-bottom:1px solid var(--line);color:var(--muted)}
.feed li:last-child{border-bottom:0}
.feed b{color:var(--ink);font-weight:600}

/* ---------------- modal ---------------- */
.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px}
.modal-bg{position:absolute;inset:0;background:rgba(10,19,48,.5)}
.modal-box{
  position:relative;background:#fff;border-radius:12px;box-shadow:var(--sh-3);
  width:100%;max-width:520px;max-height:88vh;overflow:auto;
}
.modal-h{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center}
.modal-h h3{font-size:18px}
.modal-x{margin-left:auto;background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:var(--muted);padding:0 4px}
.modal-b{padding:20px}
.modal-f{padding:14px 20px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end}
.toast{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:90;
  background:var(--navy);color:#fff;padding:12px 18px;border-radius:10px;
  font-size:14px;box-shadow:var(--sh-3);max-width:90vw;
}
.toast.err{background:var(--err)}
.spin{
  width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  border-radius:50%;animation:sp .7s linear infinite;
}
.btn-g .spin,.loading .spin{border-color:var(--line);border-top-color:var(--blue)}
@keyframes sp{to{transform:rotate(360deg)}}
.loading{display:grid;place-items:center;min-height:60vh;gap:12px;color:var(--muted)}
.code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;
  background:var(--wash);border:1px solid var(--line);border-radius:6px;
  padding:11px 13px;word-break:break-all;user-select:all;
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ============ second wave: search, bell, approvals, ticket side ============ */
.top-t{min-width:0}
.top-tools{display:flex;align-items:center;gap:10px;margin-left:auto;position:relative}
.top-actions{margin-left:0}

.srch{position:relative}
.srch input{
  font-family:var(--body);font-size:13.5px;width:210px;padding:9px 13px;
  border:1.5px solid var(--line);border-radius:999px;background:var(--wash);
  transition:border-color .15s,background .15s,width .18s;
}
.srch input:focus{outline:none;border-color:var(--blue);background:#fff;width:280px}
.srch-out{
  display:none;position:absolute;top:calc(100% + 8px);right:0;width:400px;max-height:60vh;
  overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:var(--sh-3);z-index:70;
}
.srch-out.on{display:block}
.srch-row{
  display:flex;align-items:center;gap:10px;padding:11px 14px;text-decoration:none;
  color:var(--ink);border-bottom:1px solid var(--line);font-size:13.5px;
}
.srch-row:last-child{border-bottom:0}
.srch-row:hover{background:var(--wash);text-decoration:none}
.srch-row b{font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.srch-row .muted{font-size:12px;white-space:nowrap}
.srch-empty{padding:18px 14px;color:var(--muted);font-size:13.5px;text-align:center}

.bell{
  position:relative;background:#fff;border:1.5px solid var(--line);border-radius:10px;
  width:38px;height:38px;cursor:pointer;display:grid;place-items:center;
  color:var(--muted);transition:border-color .15s,color .15s;
}
.bell:hover{border-color:var(--blue);color:var(--blue)}
.bell-i{font-size:17px;line-height:1;transform:rotate(-20deg)}
.bell-n{
  position:absolute;top:-6px;right:-6px;background:var(--err);color:#fff;
  border-radius:999px;font-size:10.5px;font-weight:500;padding:2px 6px;min-width:18px;
}
.bell-pop{
  position:absolute;top:calc(100% + 8px);right:0;width:340px;background:#fff;
  border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh-3);z-index:70;overflow:hidden;
}
.bell-h{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;font-size:14px}
.bell-clear{margin-left:auto;background:none;border:0;color:var(--blue);font-size:12.5px;font-weight:600;cursor:pointer}
.bell-list{max-height:58vh;overflow:auto}
.bell-row{
  display:block;padding:11px 14px;border-bottom:1px solid var(--line);
  text-decoration:none;color:var(--ink);font-size:13.5px;
}
.bell-row:last-child{border-bottom:0}
.bell-row:hover{background:var(--wash);text-decoration:none}
.bell-row.un{background:var(--blue-tint)}
.bell-row.un:hover{background:#dfe9ff}
.bell-row b{display:block;font-weight:600;margin-bottom:2px}
.bell-row span{display:block;font-size:12px;color:var(--muted)}
.bell-empty{padding:26px 14px;text-align:center;color:var(--muted);font-size:13.5px}

.tk-wrap{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:16px;align-items:start}
.tk-side{display:grid;gap:14px}
.tk-box{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}
.tk-box h4{font-size:14px;margin:0 0 10px}
.tk-files{list-style:none;margin:0 0 12px;padding:0;font-size:13.5px}
.tk-files li{display:flex;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}
.tk-files li:last-child{border-bottom:0}
.tk-files a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-files span{font-size:12px;color:var(--muted);white-space:nowrap}
.tk-up{width:100%;justify-content:center;cursor:pointer}
.tk-int{background:#FFFCF3;border-color:#F0DCB4}
.tk-int h4{color:var(--warn)}
.tk-int textarea{
  width:100%;font-family:var(--body);font-size:13.5px;border:1.5px solid #F0DCB4;
  border-radius:6px;padding:10px;min-height:82px;resize:vertical;margin-bottom:10px;background:#fff;
}
.tk-int textarea:focus{outline:none;border-color:var(--warn)}
.msg.internal{background:#FFFCF3;border-color:#F0DCB4}
@media(max-width:960px){
  .tk-wrap{grid-template-columns:1fr}
  .srch input{width:150px}
  .srch input:focus{width:190px}
  .srch-out{width:min(92vw,380px)}
}
@media(max-width:700px){
  .srch{display:none}
  .top-tools{gap:8px}
}

/* ============ progress + status ============ */
.pnums{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.pnums div{background:var(--wash);border-radius:10px;padding:12px 14px}
.pnums b{display:block;font-family:var(--display);font-weight:600;font-size:22px;letter-spacing:-.02em;line-height:1}
.pnums span{display:block;font-size:11.5px;color:var(--muted);margin-top:5px}
@media(max-width:700px){.pnums{grid-template-columns:1fr 1fr}}

.pbar{position:relative;height:12px;border-radius:99px;background:var(--wash);overflow:visible}
.pbar-fill{height:100%;border-radius:99px;background:var(--blue);transition:width .5s}
.pbar-now{
  position:absolute;top:-5px;width:2px;height:22px;background:var(--navy);border-radius:2px;
}
.pbar-now::after{
  content:"";position:absolute;top:-4px;left:-3px;width:8px;height:8px;
  border-radius:50%;background:var(--navy);
}
.pbar-key{display:flex;gap:18px;margin-top:12px;font-size:12px;color:var(--muted)}
.pbar-key span{display:flex;align-items:center;gap:6px}
.pbar-key i{width:12px;height:6px;border-radius:99px;display:inline-block}
.k-fill{background:var(--blue)}
.k-now{background:var(--navy);width:3px!important;height:12px!important;border-radius:2px}

.ship{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.ship h4{font-size:10.5px;margin:0 0 10px;color:var(--muted);font-weight:500;letter-spacing:.08em;text-transform:uppercase}
.ship-row{display:flex;gap:10px;align-items:center;padding:7px 0;font-size:13.5px;border-bottom:1px solid var(--line)}
.ship-row:last-child{border-bottom:0}
.ship-d{color:var(--muted);font-size:12.5px;white-space:nowrap;min-width:96px}
.ship-row b{flex:1;font-weight:600}

.sys .card-b{padding-top:14px}
.inc{display:flex;gap:9px;align-items:center;padding:6px 0;font-size:13px;border-bottom:1px solid var(--line)}
.inc:last-of-type{border-bottom:0}
.inc b{flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inc .muted{font-size:12px;white-space:nowrap}
.sys-admin{display:flex;gap:9px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.sys-admin select{
  flex:1;font-family:var(--body);font-size:13px;padding:7px 10px;
  border:1px solid var(--line);border-radius:6px;background:#fff;
}
