/**
 * Vendor Onboarding — South Carolina Service Operations
 *
 * One system across sign-in, the vendor portal, the operations dashboards,
 * the readiness review and Admin. Colour carries a fixed meaning everywhere:
 *
 *   magenta = brand and primary action        green  = verified / cleared
 *   amber   = pending / waiting / attention   red    = blocked / missing
 *   purple  = readiness review                grey   = inactive / n/a
 *
 * Status never relies on colour alone; every chip and dot carries a word.
 */

/* The sign-in screen is a dark hero; the workspace people live in all day is
   light glass (tokens below). Colour carries a fixed meaning throughout. */
:root {
  --mag: #e11d74;
  --mag-600: #c4155f;
  --mag-700: #a2104e;
  --mag-bg: #fdeaf2;

  --green: #0f7a4f;
  --green-bg: #e3f5ec;
  --amber: #855307;
  --amber-bg: #fdf2e0;
  --red: #c02434;
  --red-bg: #fdecee;
  --purple: #6d33c9;
  --purple-bg: #f0e9fd;
  --blue: #1a5cba;
  --blue-bg: #e9f0fc;
  --gray: #4f5663;
  --gray-bg: #eef0f4;

  --ink-900: #08070b;
  --ink-800: #14161b;
  --ink: #16181d;
  --ink-2: #4e5563;
  --ink-3: #616874;

  --bg: #f6f6f7;
  --card: #fff;
  --card-2: #fafbfc;
  --line: #e5e7ec;
  --line-2: #f0f1f4;

  --sh-1: 0 1px 2px rgba(11, 12, 15, .05);
  --sh-2: 0 1px 3px rgba(11, 12, 15, .06), 0 8px 24px rgba(11, 12, 15, .06);
  --sh-3: 0 24px 60px rgba(11, 12, 15, .24);

  --r: 10px;
  --r-lg: 14px;
  --side: 244px;
  --max: 1320px;

  /* Light glass (redesign, 9 Oct): a light ground with two soft colour fields
     behind it, frosted glass only on the frame -- sidebar, top bar, stat tiles,
     modals. Lists, tables and forms stay solid white. */
  --ground: #e9edf3;
  --glass: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .85);
  --glass-blur: blur(24px) saturate(1.6);
  --glass-shadow: 0 8px 32px rgba(30, 40, 70, .08);
  --accent: #c2185b;
  --ink: #1d1d1f;
  --muted: #5f6470;
  --line: #eef0f4;
  --ok-bg: #dff3e7; --ok: #146c3a;
  --bad-bg: #fde6e4; --bad: #a3231a;
  --warn-bg: #fdf0d8; --warn: #8a5300;
  --radius-card: 20px;
  --radius-ctl: 12px;

  --mag: var(--accent);
  --mag-600: #a8144f;
  --mag-700: #8e1043;
  --bg: var(--ground);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.noscroll { overflow: hidden; }

h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
s { text-decoration: line-through; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--mag); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mag); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: none; }
.dim { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tone-green { color: var(--green); }
.tone-amber { color: var(--amber); }
.tone-red { color: var(--red); }
.tone-purple { color: var(--purple); }
.link { color: var(--mag); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.link .ic { width: 15px; height: 15px; }

/* ================= brand mark ================= */

.mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--mag); color: #fff; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em;
}
.mark-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }

/* ================= sign in (dark hero) ================= */

:root {
  --onb-bg: #07070a;
  --onb-bg-soft: #0c090d;
  --onb-text: #f7f7f8;
  --onb-muted: #a7a8b3;
  --onb-accent: #e20074;
  --onb-accent-bright: #ff4f9f;
  --onb-accent-soft: rgba(226, 0, 116, .14);
  --onb-border: rgba(255, 79, 159, .72);
}

body.auth-body { background: var(--onb-bg); color: var(--onb-text); }

.auth {
  min-height: 100dvh;
  /* The shell it renders into is a flex row; without this the splash sizes to
     its content and leaves a dead dark band down the right of the screen. */
  width: 100%; flex: 1 1 auto;
  /* The motif deliberately runs past the column edge; clip rather than scroll,
     so it never creates a sideways drag on a phone. */
  overflow-x: clip;
  background:
    radial-gradient(900px 620px at 78% 88%, rgba(226, 0, 116, .16), transparent 66%),
    radial-gradient(700px 520px at 12% 6%, rgba(226, 0, 116, .07), transparent 62%),
    linear-gradient(170deg, var(--onb-bg-soft), var(--onb-bg) 55%);
  color: var(--onb-text);
  display: flex; align-items: center;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 6vw, 96px)
           calc(clamp(28px, 5vh, 56px) + env(safe-area-inset-bottom));
}
.auth-wrap {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 50% 50%; align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.auth-side { display: flex; flex-direction: column; min-width: 0; }
.auth-id { margin-bottom: 22px; }
.auth-id .mark { margin-bottom: 20px; box-shadow: 0 10px 34px rgba(226, 0, 116, .34); }
.auth-id h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; font-weight: 700; }
.auth-org { font-size: clamp(15px, 1.3vw, 18px); color: var(--onb-muted); margin-top: 6px; }

.levelup {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--onb-border); color: var(--onb-accent-bright);
  border-radius: 999px; padding: 9px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  box-shadow: 0 0 24px rgba(226, 0, 116, .18) inset;
}
.levelup .ic { width: 15px; height: 15px; }

.auth-headline {
  /* Sized so the three authored line breaks hold at 1280--1440 rather than
     rewrapping to five ragged lines. */
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; margin: clamp(24px, 4.5vh, 44px) 0 clamp(24px, 5vh, 52px);
}

.auth-foot {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14px; line-height: 1.45; color: var(--onb-muted); max-width: 34ch;
  margin-top: auto;
}
.auth-foot .ic { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* ---- artwork + form ---- */

.auth-main { position: relative; display: flex; justify-content: center;
  align-items: center; min-width: 0; overflow-x: clip; }
.stairs {
  /* Bleeds past the container so the artwork reaches the viewport edge
     instead of leaving a dead dark band beside it. */
  position: absolute; right: -14%; bottom: -2%;
  width: 122%; height: auto; max-height: 78vh;
  pointer-events: none; z-index: 0;
}
.stair-steps path { stroke: rgba(255, 79, 159, .3); stroke-width: 1.5; fill: none; }
.stair-grid path { stroke: rgba(255, 79, 159, .12); stroke-width: 1; fill: none; }
.stair-rise { stroke: url(#riseGrad); stroke-width: 4.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.stair-head { stroke: #fff; stroke-width: 4.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }

.auth-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: rgba(18, 16, 21, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px; padding: clamp(26px, 3vw, 36px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.auth-card h3 { font-size: 25px; letter-spacing: -.025em; color: var(--onb-text); }
.auth-sub { font-size: 14.5px; color: var(--onb-muted); margin: 7px 0 24px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field-label { color: var(--onb-muted); }
.auth-card .fld {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14);
  color: var(--onb-text);
}
.auth-card .fld::placeholder { color: #6f7280; }
.auth-card .fld:focus { border-color: var(--onb-accent-bright);
  box-shadow: 0 0 0 3px rgba(226, 0, 116, .22); background: rgba(255, 255, 255, .07); }
.auth-ok { font-size: 13.5px; color: #8ee6b0; margin: 0 0 4px; }
.auth-err { min-height: 20px; font-size: 13.5px; color: #ff8b9c;
  font-weight: 550; margin-bottom: 10px; }
.btn-lg { min-height: 48px; font-size: 15px; border-radius: 11px; }
.auth-rule { height: 1px; background: rgba(255, 255, 255, .1); margin: 24px 0 16px; }
.auth-help { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px;
  color: var(--onb-muted); }
.auth-help .ic { flex: none; margin-top: 1px; }
.auth-help-sm { font-size: 12.5px; margin-top: 18px; }
.auth-back { display: block; width: 100%; background: none; border: 0; cursor: pointer;
  color: var(--onb-muted); font-size: 13.5px; font-weight: 550; margin-top: 16px; }
.auth-back:hover { color: var(--onb-accent-bright); }

.auth-who {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.auth-who > .ic { color: var(--onb-accent-bright); flex: none; }
.auth-who-e { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-change { background: none; border: 0; cursor: pointer; flex: none;
  color: var(--onb-accent-bright); font-size: 12.5px; font-weight: 650; }
.auth-change:hover { text-decoration: underline; }

.pw-rules { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 14px; }
.pw-rules li { display: flex; align-items: center; gap: 7px; font-size: 12.5px;
  color: var(--onb-muted); }
.pw-rules .ic { width: 14px; height: 14px; color: var(--onb-accent-bright); }

.in-icon { position: relative; display: block; }
.in-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--onb-muted); pointer-events: none; }
.in-icon .fld { padding-left: 40px; }
.in-icon-r .fld { padding-right: 44px; }
.in-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--onb-muted);
  width: 32px; height: 32px; border-radius: 7px; }
.in-eye:hover { background: rgba(255, 255, 255, .08); color: var(--onb-text); }

@media (max-width: 1024px) {
  .auth-wrap { grid-template-columns: 48% 52%; }
  .auth-headline { font-size: clamp(34px, 4.2vw, 52px); }
}

/* One column: the motif drops behind the copy, dimmed so text stays readable. */
@media (max-width: 768px) {
  .auth { align-items: flex-start; padding: 26px 24px calc(28px + env(safe-area-inset-bottom)); }
  .auth-wrap { grid-template-columns: 1fr; gap: 22px; }
  /* The side block dissolves into the grid so the authorisation note can sit
     below the form rather than pushing it off the bottom of the screen. */
  .auth-side { display: contents; }
  .auth-side > * { position: relative; z-index: 1; grid-column: 1; }
  .auth-id { margin-bottom: 0; }
  .auth-id .mark { margin-bottom: 14px; }
  .levelup { justify-self: start; }
  /* Kept deliberately short so the sign-in card is reachable without
     scrolling on a 390x844 phone. */
  .auth-headline { font-size: clamp(30px, 8.4vw, 44px); margin: 0; }
  .auth-foot { margin-top: 0; order: 3; }
  .auth-main { justify-content: stretch; }
  .stairs { right: -14%; bottom: auto; top: -46%; width: 132%; opacity: .38;
    max-height: none; }
  .auth-card { width: 100%; }
}

@media (max-width: 380px) {
  .auth { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .auth-wrap { gap: 18px; }
  .auth-id .mark { margin-bottom: 10px; }
  .auth-headline { font-size: 30px; }
  .auth-card { padding: 20px 18px; }
  .auth-sub { margin-bottom: 18px; }
}

/* ================= app frame ================= */

.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* The two blurred colour fields behind the glass. Not on the dark sign-in hero. */
body:not(.auth-body):not(.maint-body)::before,
body:not(.auth-body):not(.maint-body)::after {
  content: ''; position: fixed; z-index: 0; border-radius: 50%; pointer-events: none;
}
body:not(.auth-body):not(.maint-body)::before {
  left: -120px; top: -160px; width: 620px; height: 620px;
  background: #f7c6d9; opacity: .55; filter: blur(90px);
}
body:not(.auth-body):not(.maint-body)::after {
  right: -160px; bottom: -200px; width: 700px; height: 700px;
  background: #c9d8f5; opacity: .7; filter: blur(100px);
}

.side {
  width: var(--side); flex: none; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: 22px; box-shadow: var(--glass-shadow);
  display: flex; flex-direction: column; position: sticky; top: 16px;
  height: calc(100vh - 32px); margin: 16px 0 16px 16px; padding: 20px 14px 14px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand .mark { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.side-brand b { display: block; font-size: 15px; font-weight: 650; }
.side-brand > span > span { display: block; font-size: 12px; color: var(--muted);
  line-height: 1.3; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-gap { flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-ctl);
  color: #33363d; font-size: 14px; font-weight: 500; min-height: 44px;
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.nav-item.is-on { background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.nav-item.is-on .ic { color: var(--accent); }
.nav-label { flex: 1; }
.nav-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center;
  justify-content: center; background: var(--accent); color: #fff; }
.side-foot { border-top: 1px solid rgba(0, 0, 0, .06); padding-top: 12px; margin-top: 8px; }
.who { width: 100%; display: flex; align-items: center; gap: 10px; background: none;
  border: 0; cursor: pointer; color: var(--muted); padding: 8px; border-radius: var(--radius-ctl);
  text-align: left; }
.who:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.who-av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  font-weight: 600; flex: none; }
.who-t { flex: 1; min-width: 0; }
.who-t b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.who-t span { display: block; font-size: 12px; color: var(--muted); }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 12px; padding: 6px 24px;
}
.topbar-title { font-size: 15.5px; font-weight: 650; flex: 1; }
.topbar .topbar-menu { display: none; }
.main { padding: 24px; max-width: calc(var(--max) + 48px); width: 100%; margin: 0 auto; }
.tabbar { display: none; }

/* ================= buttons ================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-ctl); cursor: pointer; min-height: 44px;
  border: 1px solid var(--mag); background: var(--mag); color: #fff;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--mag-600); border-color: var(--mag-600); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ic { width: 16px; height: 16px; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-2); border-color: #ccd1db; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; min-height: 36px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--red); border-color: #f0cace; background: var(--card); }
.btn-danger:hover { background: var(--red-bg); border-color: #e2a6ac; }
.btn.btn-danger:not(.btn-ghost) { background: var(--red); border-color: var(--red); color: #fff; }
.btn.btn-danger:not(.btn-ghost):hover { background: #a41d2c; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--ink-2);
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.topbar .icon-btn { width: 44px; height: 44px; }
.seg-group { display: inline-flex; }
.seg { border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  padding: 6px 13px; font-size: 13px; font-weight: 550; cursor: pointer; min-height: 32px; }
.seg:first-child { border-radius: 8px 0 0 8px; }
.seg:last-child { border-radius: 0 8px 8px 0; }
.seg + .seg { border-left: 0; }
.seg.is-on { background: var(--mag-bg); border-color: var(--mag); color: var(--mag-700); font-weight: 650; }
.segrow { margin-bottom: 14px; }

/* ================= icon containers ================= */

.ibox { width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; }
.ibox-lg { width: 42px; height: 42px; border-radius: 11px; }
.ibox-xl { width: 52px; height: 52px; border-radius: 14px; }
.ibox-lg .ic, .ibox-xl .ic { width: 21px; height: 21px; }
.ibox-xl .ic { width: 25px; height: 25px; }
.ibox-green { background: var(--green-bg); color: var(--green); }
.ibox-amber { background: var(--amber-bg); color: var(--amber); }
.ibox-red { background: var(--red-bg); color: var(--red); }
.ibox-purple { background: var(--purple-bg); color: var(--purple); }
.ibox-magenta { background: var(--mag-bg); color: var(--mag-700); }
.ibox-blue { background: var(--blue-bg); color: var(--blue); }
.ibox-gray { background: var(--gray-bg); color: var(--gray); }

/* ================= chips and dots ================= */

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 7px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.chip-sm { font-size: 11.5px; padding: 2px 8px; }
.chip .ic { width: 13px; height: 13px; }
.chip-green { background: var(--green-bg); color: var(--green); }
.chip-amber { background: var(--amber-bg); color: var(--amber); }
.chip-red { background: var(--red-bg); color: var(--red); }
.chip-purple { background: var(--purple-bg); color: var(--purple); }
.chip-magenta { background: var(--mag-bg); color: var(--mag-700); }
.chip-blue { background: var(--blue-bg); color: var(--blue); }
.chip-gray { background: var(--gray-bg); color: var(--gray); }

.sdot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; }
.sdot i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sdot-green { color: var(--green); } .sdot-green i { background: var(--green); }
.sdot-amber { color: var(--amber); } .sdot-amber i { background: var(--amber); }
.sdot-red { color: var(--red); } .sdot-red i { background: var(--red); }
.sdot-purple { color: var(--purple); } .sdot-purple i { background: var(--purple); }
.sdot-gray { color: var(--gray); } .sdot-gray i { background: var(--gray); }

/* ================= avatars ================= */

.av { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--gray-bg); color: var(--ink-2); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 650; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block;
  /* Above the initials, which are only a placeholder for a photo that has not
     loaded (or failed). Without this the letters print over the face. */
  position: absolute; inset: 0; z-index: 1; background: var(--card); }
.av-ini { position: relative; }
.av-sm { width: 32px; height: 32px; font-size: 11.5px; }
.av-lg { width: 62px; height: 62px; font-size: 19px; }
.av-xl { width: 82px; height: 82px; font-size: 25px; }
.av-tile { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 20px; }
.av-none { background: #f4f5f7; color: var(--ink-3); border: 1.5px dashed #ccd2dc; }
.av-flag { position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--red); color: #fff; border: 2px solid var(--card);
  display: flex; align-items: center; justify-content: center; }
.av-flag .ic { width: 8px; height: 8px; }
.av-lg .av-flag, .av-xl .av-flag, .av-tile .av-flag { width: 22px; height: 22px; }
.av-lg .av-flag .ic, .av-xl .av-flag .ic, .av-tile .av-flag .ic { width: 12px; height: 12px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d2d7e0;
  border-top-color: var(--mag); animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ================= page furniture ================= */

.phead { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead h1 { font-size: 25px; }
.phead-sub { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.phead-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 5px; font-size: 13px;
  color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--mag); font-weight: 600; }
.crumbs .ic { width: 14px; height: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 16px; }
.chead { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding: 16px 18px 12px; }
.chead h2 { font-size: 15.5px; display: flex; align-items: center; gap: 7px; }
.chead p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.card > .tbl-wrap, .card > .clist, .card > .blist { border-top: 1px solid var(--line-2); }
.cfoot { padding: 12px 18px; font-size: 12.5px; color: var(--ink-3);
  border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 6px; }
.cfoot .ic { width: 14px; height: 14px; }
.card > .btn-block { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.lead { font-size: 14.5px; color: var(--ink-2); }

.two-col { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: start; }
.col-main, .col-side { min-width: 0; }

/* ================= metrics ================= */

.mgrid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.mgrid-4 { grid-template-columns: repeat(4, 1fr); }
.metric, .stat { display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-card);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  padding: 15px 16px; box-shadow: 0 6px 24px rgba(30, 40, 70, .07); position: relative;
  color: var(--ink); }
.stat { flex-direction: column; align-items: stretch; gap: 8px; padding: 22px 24px; }
.metric-flat { cursor: default; }
.metric:not(.metric-flat):hover { border-color: #ccd1db; box-shadow: var(--sh-2); }
.metric::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.metric-green::before { background: var(--green); }
.metric-red::before { background: var(--red); }
.metric-amber::before { background: var(--amber); }
.metric-purple::before { background: var(--purple); }
.metric-magenta::before { background: var(--mag); }
.metric-magenta .metric-num { color: var(--mag); }
.metric-body { flex: 1; min-width: 0; }
.metric-num { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; }
.metric-green .metric-num { color: var(--green); }
.metric-red .metric-num { color: var(--red); }
.metric-amber .metric-num { color: var(--amber); }
.metric-purple .metric-num { color: var(--purple); }
.metric-lab { display: block; font-size: 13.5px; font-weight: 600; margin-top: 3px; }
.metric-note { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.metric-go { color: var(--ink-3); display: flex; }

/* ================= blockers ================= */

.blist { display: flex; flex-direction: column; }
.brow { display: grid; align-items: center; gap: 14px;
  grid-template-columns: 34px 22px minmax(0, 1fr) 70px 90px auto;
  padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.brow:last-child { border-bottom: 0; }
.brank { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-bg);
  color: var(--ink-2); font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.bmain b { display: block; font-size: 14px; font-weight: 600; }
.bmain span { display: block; font-size: 12.5px; color: var(--ink-3); }
.bnum { text-align: right; }
.bnum b { display: block; font-size: 19px; font-weight: 700; }
.bnum span { display: block; font-size: 11px; color: var(--ink-3); }
.bmeter { height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bmeter i { display: block; height: 100%; background: #c8ccd6; border-radius: 3px; }

.rlist { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.rrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  border-bottom: 1px solid var(--line-2); }
.rrow:hover { background: #fafbfc; }
.rav { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-bg);
  color: var(--ink-2); font-size: 12px; font-weight: 650; flex: none;
  display: flex; align-items: center; justify-content: center; }
.rmain { flex: 1; min-width: 0; }
.rmain b { display: block; font-size: 14px; }
.rmain span { display: block; font-size: 12.5px; color: var(--ink-3); }
.rwhen { font-size: 12px; color: var(--ink-3); text-align: right; }

.card-wins { background: linear-gradient(160deg, #fff, var(--mag-bg)); }
.wins { padding: 4px 18px 18px; }
.wins-n { font-size: 42px; font-weight: 700; color: var(--mag); letter-spacing: -.04em; }
.wins p { font-size: 14.5px; color: var(--ink-2); margin: -4px 0 14px; }

.owners { border-top: 1px solid var(--line-2); }
.orow { display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  border-bottom: 1px solid var(--line-2); font-size: 14px; }
.orow:last-child { border-bottom: 0; }
.orow:hover { background: #fafbfc; }
.oname { flex: 1; font-weight: 550; }
.onum { font-weight: 700; font-size: 13.5px; }
.onum-red { color: var(--red); } .onum-amber { color: var(--amber); }
.onum-gray { color: var(--ink-2); }
.orow .ic { color: var(--ink-3); }

/* ================= how it works ================= */

.card-how { background: #fcfcfd; }
.steps { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; position: relative;
  padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.step-magenta { border-color: #f6cfe1; background: #fffafc; }
.step-amber { border-color: #f3ddb6; background: #fffcf6; }
.step-green { border-color: #bfe3d1; background: #f9fdfb; }
.step-n { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px;
  border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.step-magenta .step-n { background: var(--mag); }
.step-amber .step-n { background: var(--amber); }
.step-green .step-n { background: var(--green); }
.step b { display: block; font-size: 13.5px; }
.step > div > span { display: block; font-size: 12.5px; color: var(--ink-3);
  margin-top: 2px; }

/* ================= banners ================= */

.banner { display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border-radius: var(--r-lg); margin-bottom: 16px; border: 1px solid; }
.banner-body { flex: 1; min-width: 0; }
.banner-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.banner-sub { font-size: 13.5px; margin-top: 2px; }
.banner-red { background: var(--red-bg); border-color: #f3ccd1; }
.banner-red .banner-title { color: var(--red); }
.banner-red .banner-sub { color: #93313c; }
.banner-amber { background: var(--amber-bg); border-color: #f0dcb4; }
.banner-amber .banner-title { color: var(--amber); }
.banner-green { background: var(--green-bg); border-color: #bee0cf; }
.banner-green .banner-title { color: var(--green); }
.banner-purple { background: var(--purple-bg); border-color: #d9c9f7; }
.banner-purple .banner-title { color: var(--purple); }
.banner-purple .banner-sub { color: #59389c; }

/* ================= people list =================
   Replaces the old roster table. A row is a person, not a set of cells: name,
   where they work, where they stand, and what is left -- all in words. */

.plist { display: flex; flex-direction: column; }
.prow {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 13px 18px; border: 0; border-bottom: 1px solid var(--line-2);
  background: none; color: inherit; cursor: pointer; font: inherit;
}
.prow:last-child { border-bottom: 0; }
.prow:hover { background: #fafbfc; }
.prow-m { flex: 1; min-width: 0; }
.prow-m b { display: block; font-size: 14.5px; font-weight: 600; }
.prow-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.prow-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  text-align: right; flex: none; }
.prow-left, .pr-left { font-size: 12px; color: var(--amber); font-weight: 600; }
.pr-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--green); font-weight: 600; }
.pr-ok .ic { width: 13px; height: 13px; }
.prow-c { color: var(--ink-3); flex: none; }

@media (max-width: 560px) {
  .prow { flex-wrap: wrap; row-gap: 8px; }
  .prow-s { width: 100%; align-items: flex-start; text-align: left; padding-left: 52px; }
  .prow-c { display: none; }
}

.prow-static { cursor: default; }
.prow-static:hover { background: none; }
.prow-note { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 4px;
  overflow-wrap: anywhere; }
.prow-when { display: block; font-size: 11.5px; color: var(--ink-3); }

/* ---- acknowledgement checkboxes on the submit form ---- */
.ackbox{ display:flex; gap:11px; align-items:flex-start; margin-top:16px; padding:13px 14px;
  border:1px solid var(--line); border-radius:11px; background:var(--card-2); cursor:pointer; }
.ackbox input{ width:18px; height:18px; margin:1px 0 0; flex:none; accent-color:var(--mag); }
.ackbox span{ font-size:13px; color:var(--ink-2); line-height:1.5; }
.ackbox b{ display:block; font-size:13.5px; color:var(--ink); margin-bottom:2px; }
.ackbox-req{ border-color:rgba(226,0,116,.35); background:var(--mag-bg); }

/* Advisory items read quieter than the seven that actually block. */
.clist-soft .crow{ opacity:.92; }
.clist-soft .cmain b{ font-weight:550; }

/* ================= the inbox =================
   External notification kept running into tenant restrictions, so the app
   claims attention itself. The dot only appears for things that are new since
   this person last looked -- a permanent badge trains people to ignore it. */

.bell { position: relative; margin-left: auto; }
.bell.is-on { background: var(--mag-bg); color: var(--mag-600); }
.bell-dot {
  position: absolute; top: 1px; right: 0px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px;
  text-align: center; border: 2px solid var(--card);
}
.topbar-title + .bell { margin-left: auto; }

.inbox-wrap { position: relative; z-index: 18; }
.inbox {
  position: absolute; right: 24px; top: 6px; width: min(420px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.inbox-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.inbox-head b { font-size: 14.5px; }
.inbox-head span { font-size: 12.5px; color: var(--ink-3); }
.inbox-list { max-height: min(60vh, 460px); overflow-y: auto; }
.inbox-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px;
  border-bottom: 1px solid var(--line-2); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--card-2); }
.inbox-m { flex: 1; min-width: 0; }
.inbox-m b { display: block; font-size: 13.5px; font-weight: 600; }
.inbox-m span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.inbox-when { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; flex: none; }
.inbox-empty { padding: 30px 20px; text-align: center; color: var(--ink-3); }
.inbox-empty .ic { width: 26px; height: 26px; color: var(--green); }
.inbox-empty p { font-size: 13.5px; margin-top: 8px; }

@media (max-width: 720px) { .inbox { right: 12px; width: calc(100vw - 24px); } }

/* ================= section tabs =================
   Four things in the sidebar; everything else lives as a tab under the one it
   belongs to, so the nav stays short without hiding anything. */

.stabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  position: sticky; top: 57px; z-index: 19; }
.stab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 10px 12px 12px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); min-height: 44px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.stab .ic { width: 16px; height: 16px; }
.stab:hover { color: var(--ink); }
.stab.is-on { color: var(--mag); border-bottom-color: var(--mag); }
.stab-n { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
  background: var(--gray-bg); color: var(--ink-2); }
.stab.is-on .stab-n { background: var(--mag-bg); color: var(--mag-700); }

@media (max-width: 1000px) { .stabs { padding: 0 18px; } }
@media (max-width: 720px) { .stabs { padding: 0 12px; top: 53px; } }

/* ================= tables ================= */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-3); padding: 10px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfbfc; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fafbfc; }
.tcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tcell b { font-weight: 600; }
.tcell .dim { display: block; font-size: 12px; }
.acts { display: flex; gap: 6px; white-space: nowrap; }
.pillnum { display: inline-block; background: var(--red-bg); color: var(--red);
  border-radius: 999px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; margin-right: 6px; }
.ready { display: flex; align-items: center; gap: 8px; }
.ready-n { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.prog { display: inline-block; height: 6px; border-radius: 3px; background: var(--line-2);
  overflow: hidden; width: 88px; vertical-align: middle; }
.prog-fill { display: block; height: 100%; border-radius: 3px; }
.prog-green { background: var(--green); }
.prog-amber { background: var(--amber); }
.prog-red { background: var(--red); }
.misslist { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.miss { background: var(--red-bg); color: var(--red); border-radius: 6px;
  padding: 2px 7px; font-size: 11.5px; font-weight: 600; }
.miss-ok { background: var(--green-bg); color: var(--green); }
.wait { display: inline-flex; align-items: center; gap: 5px; color: var(--amber);
  font-weight: 600; font-size: 12.5px; }
.wait .ic { width: 14px; height: 14px; }
.ownerchip { display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ownerchip-l { font-size: 12.5px; color: var(--ink-3); }
.ownerchip b { font-size: 16px; font-weight: 700; }

/* ================= filters ================= */

.fbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 240px; min-width: 200px; }
.search-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; padding: 8px 12px 8px 34px; min-height: 36px;
  border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px;
  background: var(--card); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--mag);
  box-shadow: 0 0 0 3px var(--mag-bg); }
.fbar .fld { width: auto; min-width: 145px; min-height: 36px; font-size: 13.5px;
  padding: 6px 30px 6px 11px; }
/* Phone: 16px so iOS does not zoom into a search or filter, 44px to tap. */
@media (max-width: 759px) {
  .search input, .fbar .fld { font-size: 16px; min-height: 44px; }
}

/* ================= queue ================= */

.card-q { margin-bottom: 12px; }
.qhead { width: 100%; display: flex; align-items: center; gap: 13px; background: none;
  border: 0; cursor: pointer; text-align: left; padding: 14px 18px; }
.qhead-m { flex: 1; min-width: 0; }
.qhead-m b { display: block; font-size: 14.5px; }
.qhead-m span { display: block; font-size: 12.5px; color: var(--ink-3); }
.qchev { color: var(--ink-3); transition: transform .15s ease; display: flex; }
.qchev.is-open { transform: rotate(180deg); }
.bulkbar { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 10px;
  background: var(--mag-bg); border: 1px solid #f3cbdf; border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--sh-2); }
.bulk-n { font-size: 13.5px; font-weight: 650; color: var(--mag-700); margin-right: auto; }

/* ================= technician record ================= */

.card-id .idcard { display: flex; align-items: center; gap: 18px; padding: 20px; }
.idface { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.idphoto-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.idphoto-acts .btn { padding: 5px 9px; }
.idphoto-locked { font-size: 12px; color: var(--ink-3); text-align: center; max-width: 150px; }
.photo-full { display: block; width: 100%; height: auto; border-radius: 10px;
  background: var(--card-2); }
.idmain { flex: 1; min-width: 0; }
.idmain h1 { font-size: 24px; }
.idmain p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.idchips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.cprog { display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  color: var(--ink-3); font-weight: 600; }

.clist { display: flex; flex-direction: column; }
.crow { display: flex; align-items: center; gap: 13px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-2); }
.crow:last-child { border-bottom: 0; }
.cmain { flex: 1; min-width: 0; }
.cmain b { display: block; font-size: 14px; font-weight: 600; }
.cmain > span { display: block; font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.cstamp, .cact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: flex-end; }
.stamp { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  color: var(--ink-3); }
.stamp .ic { width: 14px; height: 14px; color: var(--green); }

.vrgrid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr);
  padding: 0 18px 16px; }
.vritem { display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 11px; }
.vritem b { display: block; font-size: 13.5px; }
.vritem span { display: block; font-size: 12px; color: var(--ink-3); }
.fld-sm { margin-top: 7px; min-height: 30px; font-size: 12.5px; padding: 4px 26px 4px 8px; }

.card-nba .nba { display: flex; gap: 13px; padding: 4px 18px 14px; }
.nba b { display: block; font-size: 14.5px; }
.nba p { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.nba-act { padding: 0 18px 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.card-nba.card-nba { border-left: 3px solid var(--line); }

.dl { display: grid; gap: 9px; padding: 0 18px 16px; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.dl dt { color: var(--ink-3); }
.dl dd { font-weight: 600; text-align: right; }
.dl-inline { grid-template-columns: repeat(3, auto); padding: 0; gap: 22px; }
.dl-inline > div { display: block; }
.dl-inline dt { font-size: 12px; }
.dl-inline dd { text-align: left; margin-top: 2px; }
.dq { display: flex; align-items: center; gap: 7px; margin: 0 18px 14px;
  padding: 9px 11px; background: var(--amber-bg); color: var(--amber);
  border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.dq .ic { width: 15px; height: 15px; }

.acts-list { border-top: 1px solid var(--line-2); }
.act { display: flex; align-items: flex-start; gap: 10px; padding: 11px 18px;
  border-bottom: 1px solid var(--line-2); }
.act:last-child { border-bottom: 0; }
.act > .ic { margin-top: 2px; }
.act-m { flex: 1; min-width: 0; }
.act-m b { display: block; font-size: 13.5px; font-weight: 600; }
.act-m span { display: block; font-size: 12px; color: var(--ink-3); }
.act-t { font-size: 11.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.card .link { margin: 0 18px 16px; display: inline-flex; }

.note-add { display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  padding: 0 18px 14px; }
.note-add textarea { width: 100%; }
.notes { display: flex; flex-direction: column; gap: 11px; padding: 0 18px 16px; }
.note { border-left: 2px solid var(--line); padding-left: 12px; }
.note-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.note-h span { color: var(--ink-3); }
.note-b { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ================= review ================= */

.card-attest { background: #fffdf8; border-color: #f0dcb4; }
.attest { display: flex; gap: 14px; padding: 18px; }
.attest-b { flex: 1; min-width: 0; }
.attest-b > b { display: block; font-size: 14.5px; margin-bottom: 10px; }
.attest-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.attest-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mag);
  flex: none; }
.attest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.attest-grid dt { font-size: 12px; color: var(--ink-3); }
.attest-grid dd { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.review-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px; }
.review-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px;
  color: var(--ink-3); }
.review-note .ic { width: 15px; height: 15px; color: var(--amber); }
.bullets { display: flex; flex-direction: column; gap: 7px; padding: 0 18px 14px;
  font-size: 13px; color: var(--ink-2); }
.bullets li { position: relative; padding-left: 14px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px;
  height: 5px; border-radius: 50%; background: #c3c8d3; }

/* ================= gallery ================= */

.gallery { display: grid; gap: 14px; padding: 4px 18px 18px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.gcell { text-align: center; }
.gcell:hover .av { outline: 2px solid var(--mag); outline-offset: 2px; }
.gname { display: block; font-size: 12.5px; font-weight: 600; margin-top: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsub { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 5px; }

/* ================= admin ================= */

.atabs { display: flex; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--line);
  margin-bottom: 18px; }
.atab { background: none; border: 0; cursor: pointer; color: var(--ink); white-space: nowrap;
  padding: 9px 13px 11px; font-size: 13.5px; font-weight: 550;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.atab:hover { color: var(--ink); }
.atab.is-on { color: var(--mag-600); border-bottom-color: var(--mag); }
.policy { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 0 18px 18px; }
.pol { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; }
.pol b { display: block; font-size: 13.5px; }
.pol p { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.maint { display: flex; align-items: center; gap: 14px; margin: 0 18px 18px;
  padding: 15px; border-radius: 12px; background: #fbfbfc; border: 1px solid var(--line); }
.maint-on { background: var(--amber-bg); border-color: #f0dcb4; }
.maint-b { flex: 1; }
.maint-b b { font-size: 14px; }
.maint-b p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

body.maint-body { background: var(--ink-900); }
.maint-screen { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px; color: #fff; }
.maint-screen .mark { margin-bottom: 22px; }
.maint-screen h1 { font-size: 15px; color: #9aa1b0; font-weight: 550; }
.maint-screen h2 { font-size: 30px; margin: 10px 0 12px; }
.maint-screen p { font-size: 15px; color: #b4bbc9; max-width: 420px; }
.maint-org { font-size: 12.5px; color: #98a0af; margin-top: 22px !important; }

/* ================= forms ================= */

.field { display: block; }
.field-label { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2);
  margin-bottom: 6px; }
.req { color: var(--red); font-style: normal; }
.fld { width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 9px 12px; min-height: 40px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--card); }
.fld:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px var(--mag-bg); }
select.fld { appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2379818f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
textarea.fld { min-height: 60px; resize: vertical; line-height: 1.5; }
.field-hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.field-wide { grid-column: 1 / -1; }

/* ================= empty, skeleton, toast, modal ================= */

.empty { padding: 44px 24px; text-align: center; }
.empty .ibox { margin: 0 auto 14px; }
.empty h3 { font-size: 17px; margin-bottom: 5px; }
.empty p { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }

.sk-head { height: 26px; width: 220px; border-radius: 8px; background: #e9eaee;
  margin-bottom: 18px; animation: pulse 1.4s ease-in-out infinite; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-2); }
.sk { background: #e9eaee; border-radius: 7px; display: block;
  animation: pulse 1.4s ease-in-out infinite; }
.sk-av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sk-l1 { height: 12px; width: 40%; } .sk-l2 { height: 10px; width: 24%; }
.sk-pill { height: 20px; width: 90px; border-radius: 999px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translateX(-50%) translateY(150%);
  display: flex; align-items: center; gap: 8px; background: var(--ink-900); color: #fff;
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 550;
  box-shadow: var(--sh-3); max-width: calc(100vw - 32px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility .22s; }
.toast-show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast-bad { background: var(--red); }
.toast-act { pointer-events: auto; }
.toast-btn { margin-left: 6px; background: rgba(255, 255, 255, .16); color: #fff; border: 0;
  border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 650; cursor: pointer; }
.toast-btn:hover, .toast-btn:focus-visible { background: rgba(255, 255, 255, .28); }

/* To do (staff home) */
.todo-tile.is-on { border-color: var(--ink-900); box-shadow: var(--sh-2); }
.todo-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.todo-help { margin: 0 0 10px; }
.todo-sub { font-size: 14px; margin: 16px 0 6px; }
.todo-all { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 6px 4px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px;
  border-bottom: 1px solid var(--line, #eceef2); }
.todo-row:last-child { border-bottom: 0; }
.todo-pick { display: flex; padding: 6px; }
.todo-pick input, .todo-all input { width: 18px; height: 18px; }
.todo-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit;
  text-decoration: none; }
.todo-who > span { display: flex; flex-direction: column; min-width: 0; }
.todo-note { font-size: 12.5px; }
.bulk-row td:last-child { white-space: nowrap; }

.modal { position: fixed; inset: 0; z-index: 90; background: rgba(29, 29, 31, .28);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.modal-on { opacity: 1; visibility: visible; pointer-events: auto; }
/* Modals are glass, like the rest of the frame; the fields inside stay solid white. */
.sheet { background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card); width: min(560px, 100%);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--sh-3); }
.sheet-wide { width: min(860px, 100%); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.sheet-head h3 { font-size: 16.5px; }
.sheet-body { padding: 20px; overflow-y: auto; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, .06); background: none; }

/* ================= responsive ================= */

@media (max-width: 1400px) { :root { --side: 220px; } }

@media (max-width: 1200px) {
  .two-col { grid-template-columns: 1fr; }
  .mgrid, .mgrid-4 { grid-template-columns: repeat(2, 1fr); }
  .brow { grid-template-columns: 34px 22px minmax(0, 1fr) 64px auto; }
  .bmeter { display: none; }
}

@media (max-width: 1000px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 264px;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s; }
  body.side-open .side { transform: none; box-shadow: var(--sh-3); visibility: visible;
    transition: transform .2s ease; }
  .side { margin: 0; height: 100vh; border-radius: 0 22px 22px 0;
    background: rgba(255, 255, 255, .9); }
  body.side-open .shell::before { content: ''; position: fixed; inset: 0;
    background: rgba(11, 12, 15, .45); z-index: 55; }
  .topbar .topbar-menu { display: inline-flex; }
  .main { padding: 18px; }
  .policy, .vrgrid, .field-grid, .attest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main { padding: 14px 12px 92px; }
  .topbar { padding: 4px 14px; }
  .mgrid, .mgrid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 12px; gap: 10px; }
  .metric-num { font-size: 22px; }
  .metric-go { display: none; }
  .phead h1 { font-size: 21px; }
  .btn-txt { display: none; }


  .brow { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 8px; }
  .brank { display: none; }
  .card-id .idcard { flex-direction: column; text-align: center; }
  .dl-inline { grid-template-columns: 1fr; gap: 10px; }
  .crow { flex-wrap: wrap; }
  .cstamp, .cact { width: 100%; justify-content: flex-start; padding-left: 47px; }
  .auth-card { padding: 26px 20px; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .review-acts .btn { flex: 1; }
}

/* Phone: the sidebar gives way to a bottom glass tab bar. "More" (and the
   menu button) still slide the full sidebar in. */
@media (max-width: 759px) {
  .main { padding-bottom: 104px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    position: fixed; left: 12px; right: 12px; z-index: 50;
    bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 22px;
    background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(30, 40, 70, .12); }
  .btn-sm { min-height: 44px; }
  .tabbar-item { display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 2px; border-radius: 14px; color: var(--muted); font-size: 12px;
    font-weight: 500; min-height: 48px; position: relative; background: none; border: 0;
    cursor: pointer; text-align: center; }
  .tabbar-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-item .ic { width: 22px; height: 22px; }
  .tabbar-item.is-on { background: #fff; color: var(--accent); font-weight: 600; }
  .tabbar-n { position: absolute; top: 3px; left: 50%; margin-left: 6px; background: var(--accent);
    color: #fff; border-radius: 999px; font-size: 11px; font-style: normal;
    font-weight: 700; padding: 0 5px; min-width: 16px; text-align: center; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) { .mgrid, .mgrid-4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ------------------------------------------------------------------ *
 * Apparel stock
 * ------------------------------------------------------------------ */

.mgrid-3 { grid-template-columns: repeat(3, 1fr); }

/* A size grid you can read across a room and tap with a thumb. */
.stiles { display: grid; gap: 10px; padding: 4px 2px 2px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.stile { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 84px; padding: 10px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid #e3e6ec; background: var(--card); color: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.stile:hover { border-color: #ccd1db; box-shadow: var(--sh-2); transform: translateY(-1px); }
.stile:focus-visible { outline: 2px solid var(--mag); outline-offset: 2px; }
.stile-n { font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.stile-s { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .04em; }
.stile-ok  .stile-n { color: var(--green); }
.stile-low { border-color: #f0dcb4; background: #fdf7ec; }
.stile-low .stile-n { color: var(--amber); }
.stile-out { border-color: #f2ccd2; background: #fdeff1; }
.stile-out .stile-n { color: var(--red); }

.segs { display: flex; gap: 4px; margin: 4px 0 18px; padding: 4px;
  background: var(--card-2); border: 1px solid #e3e6ec; border-radius: 10px; }
.seg { flex: 1; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 550;
  color: var(--ink-2); cursor: pointer; background: transparent; }
.seg:hover { color: var(--ink); }
.seg-on { background: var(--card); color: var(--mag); box-shadow: var(--sh-1); }
.err { min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--red); }
.card-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.card-note-red { color: var(--red); }
.nowrap { white-space: nowrap; }

.howto { margin: 2px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.howto li { margin: 5px 0; }

.cabrow { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cabqr { width: 168px; height: 168px; flex: none; padding: 8px; border-radius: 12px;
  background: #fff; border: 1px solid #e3e6ec; }
.cabqr svg { width: 100%; height: 100%; display: block; }
.cabmeta { flex: 1; min-width: 210px; }
.cabmeta p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.cabacts { display: flex; gap: 8px; flex-wrap: wrap; }
.revlist { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-3); }
.revlist li { margin: 4px 0; }

@media (max-width: 720px) {
  .mgrid, .mgrid-3, .mgrid-4 { grid-template-columns: repeat(2, 1fr); }
  .stiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .cabrow { justify-content: center; }
}

/* ---- market filter and per-market spread ---- */
.mktbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.mkt { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 550;
  border: 1px solid #e3e6ec; background: var(--card); color: var(--ink-2); cursor: pointer; }
.mkt:hover { border-color: #ccd1db; color: var(--ink); }
.mkt-on, .mkt-on:hover { background: var(--mag-600); border-color: var(--mag-600); color: #fff; }

/* ---- Stock: one market, three buttons, read-only tiles, recent changes ---- */
.mkt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; min-height: 32px;
  border-radius: 999px; background: var(--mag-bg, #fdeaf2); color: var(--mag-700); font-size: 13.5px; }
.mkt-chip b { font-weight: 650; }
.mkt-chip .linkish { margin: 0; padding: 0 6px; min-height: 44px; min-width: 44px; font-size: 13.5px; }
.mkt-one { margin: 0 0 16px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.stile-ro { cursor: default; }
.stile-ro:hover { box-shadow: none; transform: none; }
.stile-ro.stile-ok:hover { border-color: #e3e6ec; }
.card > .stiles { padding: 0 18px 18px; }
.chead-a { display: flex; align-items: center; gap: 8px; }
.stacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.stacts-1 { grid-template-columns: minmax(0, 220px); }
.stact { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 12px 14px; border-radius: 12px; border: 1px solid #e3e6ec; background: var(--card);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--sh-1); }
.stact:hover { border-color: var(--mag-600); }
.stact:focus-visible { outline: 2px solid var(--mag); outline-offset: 2px; }
.stact b { font-size: 14.5px; font-weight: 650; }
.stact span { font-size: 12.5px; color: var(--ink-3); }
.recent { list-style: none; margin: 0; padding: 0 18px; }
.recent li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px;
  flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.recent li.is-undone .recent-t { text-decoration: line-through; color: var(--ink-3); }
.recent-m { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.recent-m .linkish { margin-left: 0; font-size: 12.5px; }
.recent-all { padding: 10px 18px 14px; font-size: 13px; font-weight: 600; }
.recent-all a { color: var(--mag-700); }
.fgrp { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.fgrp legend { font-size: 13.5px; font-weight: 650; margin-bottom: 6px; padding: 0; }
.flines { display: grid; gap: 8px 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.fline { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; min-width: 0; }
.fline-s { font-size: 12.5px; font-weight: 650; color: var(--ink-2); min-width: 34px; }
.fline .fld-sm { margin-top: 0; padding-right: 8px; width: 100%; min-width: 0; }
.fline-h { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.editpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 720px) {
  /* On a phone a banner's button goes under its text instead of squeezing it. */
  .banner { flex-wrap: wrap; }
  .banner-body { flex-basis: calc(100% - 70px); }
  .stacts { gap: 8px; }
  .stact { padding: 10px; }
  .stact b { font-size: 13.5px; }
}

.binlist { list-style: none; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px;
  background: var(--card-2); border: 1px solid #e3e6ec; }
.binlist li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0;
  font-size: 13.5px; color: var(--ink-2); }
.binlist li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.binlist .bin-on { color: var(--mag-700); font-weight: 600; }
.binlist .bin-on b { color: var(--mag-700); }

.row-undone td { opacity: .55; text-decoration: line-through; }
.row-undone td:last-child { text-decoration: none; }

.linkish { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--mag-700); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--mag-600); }

/* A neutral banner, for a record that is simply listed rather than in progress. */
.banner-plain { background: var(--card-2); border-color: #e3e6ec; }
.banner-plain .banner-title { color: var(--ink); }
.banner-plain .banner-sub { color: var(--ink-2); }
.ibox-plain { background: var(--gray-bg); color: var(--gray); }

/* ---- what happens next ---- */
.card-next { margin-bottom: 20px; }
.nxlist { list-style: none; margin: 0; padding: 0; }
.nx { display: flex; align-items: center; gap: 14px; padding: 13px 2px;
  border-top: 1px solid var(--line); }
.nx:first-child { border-top: 0; padding-top: 4px; }
.nx-body { flex: 1; min-width: 0; }
.nx-body b { display: block; font-size: 15px; letter-spacing: -.01em; }
.nx-body span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.nx-red .nx-body b { color: var(--red); }
.nx-magenta .nx-body b { color: var(--mag-700); }

/* ---- the walkthrough ---- */
.guide { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: g; }
.gstep { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0;
  border-top: 1px solid var(--line); }
.gstep:first-child { border-top: 0; }
.gstep-n { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.gstep > div { flex: 1; min-width: 0; }
.gstep b { display: block; font-size: 15px; letter-spacing: -.01em; }
.gstep span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }

/* ------------------------------------------------------------------ *
 * Give out: who and what, in either order
 * ------------------------------------------------------------------ */

.tapmode { align-items: center; margin: 0 0 12px; }
.tapmode-l { flex: none; padding: 0 8px 0 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.tapmode .seg { min-height: 40px; }
.mktbar .tapmode-l { align-self: center; }

.give-grid { display: grid; gap: 16px; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  align-items: start; }
.give-card { margin-bottom: 0; }
.gpeople { list-style: none; margin: 10px 0 0; padding: 0; max-height: 52vh; overflow: auto; }
.gtech { display: block; width: 100%; text-align: left; min-height: 48px; padding: 10px 12px;
  margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: inherit; cursor: pointer; }
.gtech:hover { border-color: var(--mag); }
.gtech:focus-visible { outline: 2px solid var(--mag); outline-offset: 2px; }
.gtech b { display: block; font-size: 14.5px; }
.gtech span, .give-who span { display: block; font-size: 12.5px; color: var(--ink-3); }
.give-who { display: flex; align-items: center; gap: 12px; }
.give-who > div { flex: 1; min-width: 0; }

.gprod { margin-bottom: 14px; }
.gprod h3, .gbasket-h { font-size: 13.5px; margin: 0 0 8px; }
.gtile { min-height: 72px; }
.gtile:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.gbasket-h { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.gbasket { list-style: none; margin: 0; padding: 0; }
.gline { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.gline:last-child { border-bottom: 0; }
.gstep { display: inline-flex; align-items: center; gap: 6px; }
.gstep .btn { min-width: 40px; min-height: 40px; font-size: 18px; justify-content: center; }
.gline-q { min-width: 28px; text-align: center; font-size: 17px; }
.gempty { font-size: 13.5px; margin: 0; }

.give-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  flex-wrap: wrap; margin-top: 16px; }
.give-foot .err { margin: 0; flex: 1 1 100%; text-align: right; }
.give-need { font-size: 13px; margin: 0; }
#give-go { min-height: 46px; padding: 0 22px; }

.give-done-t { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--green); }
.give-done.is-undone .give-done-t { color: var(--amber); }
.give-done p { margin: 6px 0 12px; font-size: 14.5px; }
.give-done-a { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-foot { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0;
    justify-content: stretch; }
  #give-go { flex: 1; }
}

.cabrecent-h { font-size: 13.5px; margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.cabrecent { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.cabrecent li { display: grid; grid-template-columns: 150px 1fr 1fr auto; gap: 10px; padding: 5px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cabrecent li:last-child { border-bottom: 0; }
.cabrecent-none { font-size: 13.5px; margin: 0; }
@media (max-width: 720px) { .cabrecent li { grid-template-columns: 1fr 1fr; } }

.hfbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.hf { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.hf span { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.hf-acts { display: flex; gap: 8px; margin-left: auto; }
.apparel-given { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.apparel-given li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.apparel-given li:last-child { border-bottom: 0; }

.cpad { padding: 0 18px 16px; }
.cpad-all { padding: 16px 18px; }
.cabrecent-h { margin-top: 18px; }
@media (max-width: 720px) {
  .give-foot { bottom: calc(64px + env(safe-area-inset-bottom)); padding: 10px 0; }
}

/* Task 2 (record, requests): in-page tab links and collapsed sections */
a.atab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 44px; padding: 0 14px; }
.fold { padding: 0; }
.fold > summary { cursor: pointer; padding: 14px 20px; min-height: 44px; font-weight: 600; list-style-position: inside; }
.fold > summary .dim { font-weight: 400; margin-left: 8px; }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > .clist, .fold > .vrgrid { padding: 8px 20px 16px; }
.fold > .cfoot { padding: 0 20px 16px; }

/* LoadOut sync: markets, list notes, role check rows */
.prow-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.prow-open { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
  background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fnote { display: flex; align-items: center; gap: 7px; margin: -4px 0 14px; font-size: 13px; color: var(--ink-2); }
.fnote .ic { width: 15px; height: 15px; }
.mklist { list-style: none; margin: 0; padding: 0 18px; }
.mkrow { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.mkrow:last-child { border-bottom: 0; }
.mkadd { display: flex; gap: 8px; padding: 10px 18px 16px; }
.mkadd .fld { flex: 1; min-width: 0; }
.modal .dq { margin: 10px 0 0; }

/* ---- Simpler onboarding (10 Oct): request cards, photo pick, retake, magnets form ---- */
.reqcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.reqcard { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.reqcard-face { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.reqcard-main { min-width: 0; flex: 1; }
.reqcard-main h3 { margin: 0 0 2px; font-size: 17px; }
.reqcard-dl { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 14px; margin: 10px 0; font-size: 13px; }
.reqcard-dl dt { color: var(--ink-3); font-size: 12px; }
.reqcard-dl dd { margin: 0; }
.reqcard-checks { list-style: none; margin: 8px 0 4px; padding: 0; font-size: 13.5px; }
.reqcard-checks li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.reqcard-checks svg { width: 16px; height: 16px; flex: none; }
.reqcard-sign { font-size: 12.5px; color: var(--ink-2); margin: 0 0 8px; }
.reqcard-says { margin: 6px 0; }
.reqcard-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.reqcard-acts .btn { min-height: 44px; flex: 1; justify-content: center; }
.confirm-bar { padding: 16px 18px; margin-bottom: 14px; border-color: rgba(226,0,116,.35);
  background: var(--mag-bg); display: flex; flex-direction: column; gap: 4px; }
.photo-pick { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.photo-prev { width: 72px; height: 72px; border-radius: 14px; background: var(--gray-bg);
  display: grid; place-items: center; overflow: hidden; color: var(--ink-3); flex: none; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.attest-line { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.btn.btn-warn { background: var(--amber-bg); color: var(--amber); border-color: #ebc98c; }
.badge-face { border: 0; background: none; padding: 0; cursor: zoom-in; }
.form-frame { padding: 0; overflow: hidden; }
.form-frame iframe { display: block; width: 100%; min-height: 1400px; border: 0; }
@media (max-width: 759px) {
  .reqcards { grid-template-columns: 1fr; }
  .reqcard { flex-direction: column; align-items: stretch; }
  .reqcard-face { flex-direction: row; }
  .reqcard-dl { grid-template-columns: 1fr 1fr; }
}

/* Badge requests page */
.badge-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 14px; align-items: start; }
.badge-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.badge-cards .card { padding: 16px; }
.badge-cards h3 { margin: 0 0 4px; font-size: 16px; }
.badge-cards p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2, inherit); }
.badge-link { font-size: 12px; word-break: break-all; user-select: all; color: var(--ink-3); }
.badge-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-guide { font-size: 13px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.photo-guide ul { margin: 6px 0 0; padding-left: 18px; }
.badge-top > .photo-guide { margin: 0; }
@media (max-width: 768px) { .badge-top, .badge-cards { grid-template-columns: 1fr; } }
.hire-add { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* Admin › Settings › Emails */
.mailset { display: flex; flex-direction: column; gap: 12px; }
.mailset-row { display: flex; gap: 10px; align-items: flex-start; }
.mailset-row > span { display: flex; flex-direction: column; gap: 2px; }
.mailset-row input, .mailset-when input { width: 18px; height: 18px; }
.mailset-when { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-left: 28px; }
.mailset-when label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

.stock-worth{margin:4px 0 12px;color:var(--ink-2,#4e5563);font-size:14.5px}
.stock-worth b{color:var(--ink,#16181d);font-size:17px}
