/* ==========================================================================
   Ashario · Staff Documents
   Design tokens are taken from ashario.com:
   - black storefront canvas, white type, hairline borders (#2b2a27)
   - Apple-blue pill buttons (#0071e3 / #0076df), uppercase tracked labels
   - the light "form" palette of the Product Request page (#fbfbfd / #f5f5f7)
   - store zone colours (Finch teal, Centerpoint gold, Aurora blue)
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --blue: #0071e3;
  --blue-2: #0076df;
  --blue-hover: #0077ed;
  --green: #34c759;
  --red: #ff3b30;
  --red-deep: #cf2424;
  --red-dark: #990000;
  --gold: #d1ba98;
  --gold-deep: #9f8561;
  --teal: #4fd1dc;
  --sky: #4d9fff;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 980px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --page-max: 1500px;
  --gutter: 40px;
  --header-h: 76px;
}

/* ---- dark: the storefront ------------------------------------------------ */
html[data-theme="dark"], .on-dark {
  color-scheme: dark;
  --bg: #000;
  --panel: #111;
  --panel-2: #18181a;
  --glass: rgba(5, 5, 6, .94);
  --soft: rgba(255, 255, 255, .04);
  --soft-2: rgba(255, 255, 255, .06);
  --soft-3: rgba(255, 255, 255, .12);
  --line: #2b2a27;
  --line-soft: rgba(255, 255, 255, .07);
  --hair: rgba(255, 255, 255, .16);
  --hair-soft: rgba(255, 255, 255, .12);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .75);
  --text-3: rgba(255, 255, 255, .55);
  --eyebrow: #8e8e93;
  --link: #2997ff;
  --input: rgba(255, 255, 255, .06);
  --input-line: rgba(255, 255, 255, .14);
  --input-focus: rgba(255, 255, 255, .09);
  --ring: rgba(41, 151, 255, .3);
  --accent-soft: rgba(41, 151, 255, .15);
  --ok: #34c759;
  --ok-soft: rgba(52, 199, 89, .15);
  --bad: #ff6a61;
  --bad-soft: rgba(255, 59, 48, .16);
  --warn: #d1ba98;
  --warn-soft: rgba(209, 186, 152, .16);
  --idle: rgba(255, 255, 255, .22);
  --shadow-card: none;
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, .6);
  --backdrop: rgba(0, 0, 0, .72);
}
html[data-theme="dark"] { --card: #f4f5f7; --panel-radius: 18px; --backdrop: rgba(0, 0, 0, .78); }

/* ---- light: the form pages ---------------------------------------------- */
html[data-theme="light"], .on-light {
  color-scheme: light;
  --bg: #fbfbfd;
  --panel: #fff;
  --panel-2: #f5f5f7;
  --glass: rgba(255, 255, 255, .97);
  --soft: #f5f5f7;
  --soft-2: #ececef;
  --soft-3: #dedee3;
  --line: #e3e3e8;
  --line-soft: #ededf0;
  --hair: #d2d2d7;
  --hair-soft: rgba(0, 0, 0, .08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --eyebrow: #86868b;
  --link: #0071e3;
  --input: #f5f5f7;
  --input-line: transparent;
  --input-focus: #fff;
  --ring: rgba(0, 113, 227, .14);
  --accent-soft: rgba(0, 113, 227, .08);
  --ok: #1a7f37;
  --ok-soft: rgba(52, 199, 89, .13);
  --bad: #d70015;
  --bad-soft: rgba(255, 59, 48, .08);
  --warn: #8a6a2f;
  --warn-soft: rgba(209, 186, 152, .32);
  --idle: #d2d2d7;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .14);
  --backdrop: rgba(0, 0, 0, .42);
}
html[data-theme="light"] { --card: #fff; --panel-radius: 20px; }
.on-dark, .on-light { color: var(--text); }

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .025em;
  /* a long unbroken string (a web address, a file name, an e-mail) wraps instead of pushing the page sideways */
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; /* for browsers that do not know dvh (iPhones before iOS 15.4); same pattern below */
  min-height: 100dvh;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(0, 113, 227, .35); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 30px; z-index: 999; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-width { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 1280px; }
main.main { flex: 1; padding: 48px 0 72px; }
main.main:focus { outline: none; } /* it only takes the focus for "Skip to content" */

/* ---- type helpers --------------------------------------------------------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--eyebrow); }
.facts { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.title-xl { font-size: 34px; text-transform: uppercase; }
.title-lg { font-size: 28.9px; text-transform: uppercase; }
.title-md { font-size: 22px; letter-spacing: -.01em; }
.lead { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 720px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wordmark { font-family: var(--font-display); font-weight: 300; letter-spacing: .34em; font-size: 22px; text-transform: uppercase; padding-left: .34em; }

/* ---- boot ----------------------------------------------------------------- */
.boot { min-height: 100vh; min-height: 100dvh; background: #000; display: grid; place-content: center; justify-items: center; gap: 22px; }
.boot-bar { width: 120px; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; border-radius: 2px; }
.boot-bar i { display: block; width: 40%; height: 100%; background: #fff; animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* ---- header (always black, as on ashario.com) ----------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #000; border-bottom: 1px solid #2b2a27; }
.header-layout { display: flex; align-items: center; min-height: var(--header-h); gap: 24px; }
.header-logo { flex: 0 0 auto; display: flex; align-items: center; min-width: 170px; }
.header-logo a { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.header-logo img { height: 42px; width: auto; display: block; }
.header-logo .wordmark { font-size: 21px; }
.header-nav { flex: 1 1 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 6px; }
.nav-link {
  position: relative; display: inline-block; padding: 7.5px 8px; margin: 0 5px; color: #fff; font-size: 14px;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; border-bottom: 2px solid #fff; transition: right .5s; }
.nav-link:hover { text-decoration: none; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--blue-2); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: 0; text-align: center; vertical-align: 1px; }
.header-icons { flex: 0 0 auto; min-width: 170px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: inherit; transition: background .2s; }
.icon-btn:hover { background: var(--soft-2); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #b30000; border: 2px solid #000; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 30px; margin-left: 4px; transition: background .2s; }
.user-btn:hover { background: var(--soft-2); }
.user-btn .who { font-size: 13px; font-weight: 600; max-width: 130px; }
.burger { display: none; }

.announce { background: var(--red-deep); color: #fff; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; }
.announce a { color: #fff; text-decoration: underline; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: #000; border-top: 1px solid #2b2a27; padding: 30px 0 34px; text-align: center; }
.site-footer .footer-title { font-size: 12.8px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.site-footer p { font-size: 12px; color: rgba(255, 255, 255, .62); }
.site-footer a { color: #fff; }

/* ---- drawer (mobile navigation, slides from the right) ------------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; animation: fade .25s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(450px, 88vw); background: #000; border-left: 1px solid #2b2a27; z-index: 91; display: flex; flex-direction: column; animation: drawer .35s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #2b2a27; }
.drawer-nav { padding: 12px 0; overflow: auto; flex: 1; }
.drawer-nav a, .drawer-nav button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 30px; color: #fff; font-size: 17.6px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: left; }
.drawer-nav a.active { color: var(--link); }
.drawer-foot { padding: 20px 30px 28px; border-top: 1px solid #2b2a27; font-size: 13px; color: var(--text-2); }
@keyframes drawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 30px;
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; padding: 13px 22px;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: opacity .2s, background .2s, border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn--primary:hover:not(:disabled) { opacity: .85; }
.btn--cta { font-size: 14px; letter-spacing: .3em; padding: 10px 28px; }
.btn--ghost { background: var(--soft); border-color: var(--hair); color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: none; padding: 11px 18px; }
.btn--ghost:hover:not(:disabled) { background: var(--soft-2); border-color: var(--link); }
.btn--form { font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-transform: none; padding: 14px 24px; border-radius: var(--r-pill); }
.btn--form.btn--primary { background: var(--blue); border-color: var(--blue); }
.btn--form.btn--primary:hover:not(:disabled) { opacity: 1; background: var(--blue-hover); transform: scale(1.01); box-shadow: 0 4px 16px rgba(0, 113, 227, .3); }
.btn--quiet { background: var(--soft); color: var(--text); }
.btn--quiet:hover:not(:disabled) { background: var(--soft-2); }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover:not(:disabled) { opacity: .88; }
.btn--success { background: var(--green); border-color: var(--green); color: #fff; }
.btn--success:hover:not(:disabled) { opacity: .88; }
.btn--sm { font-size: 11px; padding: 8px 14px; letter-spacing: .14em; }
.btn--ghost.btn--sm { font-size: 12px; letter-spacing: .04em; padding: 7px 13px; }
.btn--block { width: 100%; }
.btn--wrap { white-space: normal; text-align: left; border-radius: 16px; } /* buttons that carry someone's own text, e.g. a file name */
.cta { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-2); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
html[data-theme="dark"] .cta, .on-dark .cta { color: var(--link); }
.on-light .cta { color: var(--blue-2); }
.text-link { color: var(--link); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.text-link.danger { color: var(--bad); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- page head ------------------------------------------------------------ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head .lead { margin-top: 12px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; text-transform: uppercase; }
.section-head h2 .count { color: var(--text-3); font-weight: 400; margin-left: 6px; }

/* ---- surfaces ------------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--panel-radius); box-shadow: var(--shadow-card); }
html[data-theme="light"] .panel { border-color: rgba(0, 0, 0, .04); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.panel-head h3 { font-size: 17px; }
.panel-body { padding: 20px 24px 24px; }
.panel-foot { padding: 14px 24px; border-top: 1px solid var(--line); }

/* rows with a colour key — the "delivery zone" rows of the home page */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row-card { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: transparent; text-align: left; width: 100%; color: inherit; transition: border-color .3s var(--ease), background .3s var(--ease); }
html[data-theme="light"] .row-card { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
button.row-card:hover, a.row-card:hover { border-color: var(--hair); background: var(--soft); text-decoration: none; }
.row-key { flex: 0 0 4px; align-self: stretch; border-radius: 2px; background: var(--c, var(--idle)); }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.row-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.row-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; flex: 0 0 auto; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { align-items: stretch; padding: 18px; }
.kpi .value { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.kpi .value small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-left: 4px; }
.kpi .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* light cards on the black canvas — the Careers "job board" items */
.jb-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.jb-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: 12px; background: var(--card); color: var(--text); border: 1px solid transparent; box-shadow: var(--shadow-card); }
html[data-theme="light"] .jb-item { border-color: rgba(0, 0, 0, .04); border-radius: 14px; }
.jb-body { min-width: 0; flex: 1; }
.jb-title { font-size: 20px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jb-meta { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; color: var(--text); }
.jb-meta .sep { margin: 0 8px; color: var(--text-3); }
.jb-summary { font-size: 15px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jb-action { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ---- chips ---------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; max-width: 100%; overflow: hidden; background: var(--soft-2); color: var(--text-2); }
.chip--submitted { background: var(--accent-soft); color: var(--link); }
.chip--approved { background: var(--ok-soft); color: var(--ok); }
.chip--rejected { background: var(--bad-soft); color: var(--bad); }
.chip--overdue { background: var(--red-deep); color: #fff; }
.chip--expiring { background: var(--warn-soft); color: var(--warn); }
.chip--expired { background: var(--red-dark); color: #fff; }
.chip--plain { text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: 12px; }
.chip--outline { background: transparent; border: 1px solid var(--hair); color: var(--text-2); }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--idle)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* chips that carry people's own words (a position, a store, a name) may run onto a second line */
.chip--plain, .chip--wrap, .type-card .chip { white-space: normal; border-radius: 14px; }
.table .chip { white-space: nowrap; }
.table .chip--plain { white-space: normal; } /* a store or position with a very long name takes a second line instead of widening the table */
.chip-x { width: 22px; height: 22px; flex: 0 0 auto; }
.chip-x::after { content: ""; position: absolute; inset: -9px; } /* a bigger area to tap than the 22px you see */

/* ---- avatar --------------------------------------------------------------- */
.avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--soft-2); border: 1.5px solid var(--c, var(--hair)); color: var(--text); text-transform: uppercase; }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; border-width: 2px; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .name { font-weight: 600; font-size: 14px; }
.person .sub { font-size: 12px; color: var(--text-3); }

/* ---- forms (Product Request form look) ------------------------------------ */
.field { margin-bottom: 20px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--text-2); margin-bottom: 7px; }
.req { color: var(--red); margin-left: 2px; }
.input {
  display: block; width: 100%; background: var(--input); color: var(--text); font-size: 16px; line-height: 1.4; padding: 13px 16px;
  border-radius: 10px; border: 1.5px solid var(--input-line); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--hair); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3.5px var(--ring); background: var(--input-focus); }
.input.error { border-color: var(--red); background: var(--bad-soft); }
.input:disabled { opacity: .55; cursor: not-allowed; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.input option { background: var(--panel); color: var(--text); }
.input--sm { font-size: 14px; padding: 9px 13px; }
select.input--sm { padding-right: 34px; background-position: right 12px center; }
.error-message { color: var(--bad); font-size: 13px; margin-top: 6px; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.note-box svg { flex: 0 0 auto; margin-top: 1px; color: var(--text-3); }
.note-box--bad { background: var(--bad-soft); color: var(--text); }
.note-box--bad svg { color: var(--bad); }
.note-box--info { background: var(--accent-soft); color: var(--text); }
.note-box--info svg { color: var(--link); }
.note-box--ok { background: var(--ok-soft); color: var(--text); }
.note-box--ok svg { color: var(--ok); }
.note-box--warn { background: var(--warn-soft); color: var(--text); }
.note-box--warn svg { color: var(--warn); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.switch { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; padding: 10px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 26px; background: var(--soft-3); position: relative; transition: background .3s var(--ease); margin-top: 1px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--link); outline-offset: 2px; }
.switch .text { flex: 1; }
.switch .text small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }

/* selectable chips (category chips of the product request form) */
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--hair); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .3s var(--ease); user-select: none; }
.pick:hover { border-color: var(--blue); color: var(--link); }
.pick.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- tabs & toolbar ------------------------------------------------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; border: 1px solid var(--hair); background: var(--soft); color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .04em; transition: all .3s var(--ease); white-space: nowrap; }
.tab:hover { border-color: var(--link); text-decoration: none; }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab .n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--soft-3); letter-spacing: 0; }
.tab.active .n { background: rgba(255, 255, 255, .22); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0 16px; }
.toolbar .grow { flex: 1 1 220px; min-width: 180px; }
.toolbar .input { width: auto; max-width: 100%; min-width: 0; }
.toolbar .grow .input { width: 100%; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 38px; }

/* ---- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* in a table words stay whole (the wrapper scrolls on a phone), and no cell grows past 340px for one long value */
.table { width: 100%; border-collapse: collapse; font-size: 14px; overflow-wrap: break-word; }
.table td { max-width: 340px; }
.table td:has(> .person) { max-width: 280px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; transition: background .2s; }
.table tbody tr.clickable:hover { background: var(--soft); }
.table td.actions { text-align: right; white-space: nowrap; }
.table .cb { width: 48px; padding: 0; }
.cb-hit { display: grid; place-items: center; width: 100%; min-width: 48px; min-height: 48px; cursor: pointer; } /* the whole cell ticks the box */
.table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; vertical-align: middle; }
.table .doc { font-weight: 600; }
.row-link { color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.row-link:hover, .row-link:focus-visible { text-decoration: underline; }
.table .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.empty { text-align: center; padding: 56px 24px; color: var(--text-2); }
.empty .icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--soft-2); color: var(--text-3); }
.empty h3 { font-size: 19px; margin-bottom: 6px; color: var(--text); }
.empty p { font-size: 14px; max-width: 420px; margin: 0 auto; line-height: 1.5; }
.empty .btn-row { justify-content: center; margin-top: 20px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.bulkbar { position: sticky; bottom: 16px; z-index: 20; margin: 16px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 20px; border-radius: 40px; background: var(--glass); border: 1px solid var(--hair-soft); box-shadow: var(--shadow-pop); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 13px; font-weight: 600; animation: rise .3s var(--ease); }

/* ---- progress ------------------------------------------------------------- */
.bar { height: 6px; border-radius: 6px; background: var(--soft-3); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--green)); transition: width .6s var(--ease); }
.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-cell .bar { flex: 1; }
.progress-cell .num { font-size: 12px; color: var(--text-2); min-width: 36px; text-align: right; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--soft-3) 0); position: relative; flex: 0 0 auto; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel); }
.ring > div { position: relative; text-align: center; }
.ring b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.ring span { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* ---- stepper (Product Request step dots) ---------------------------------- */
.steps { display: flex; margin: 4px 0 2px; }
.step { flex: 1; position: relative; text-align: center; padding-top: 22px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.step::before { content: ""; position: absolute; top: 4px; left: -50%; right: 50%; height: 2px; background: var(--idle); }
.step:first-child::before { display: none; }
.step::after { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--idle); transition: all .3s var(--ease); }
.step.done { color: var(--ok); }
.step.done::after, .step.done::before, .step.active::before { background: var(--green); }
.step.active { color: var(--link); }
.step.active::after { background: var(--blue); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.bad { color: var(--bad); }
.step.bad::after { background: var(--red); box-shadow: 0 0 0 4px var(--bad-soft); }

/* ---- popovers & menus (store chooser look) -------------------------------- */
.popover { position: absolute; z-index: 80; min-width: 220px; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hair-soft); box-shadow: var(--shadow-pop); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: pop .2s var(--ease); }
.popover .eyebrow { padding: 4px 6px 10px; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 18px; border-radius: 30px; background: var(--soft); border: 1px solid var(--hair); color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-align: left; text-decoration: none; transition: border-color .2s, background .2s; }
.menu-item:hover { border-color: var(--link); background: var(--soft-2); text-decoration: none; }
.menu-item.danger { color: var(--bad); }
.notes { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.notes-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.notes-list { max-height: min(60vh, 460px); overflow: auto; }
.note-item { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); color: var(--text); text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.note-item:hover { background: var(--soft); text-decoration: none; }
.note-item .bullet { flex: 0 0 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; }
.note-item.unread .bullet { background: var(--link); }
.note-item .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.note-item .b { font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.note-item .w { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ---- modal ---------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; background: var(--backdrop); animation: fade .25s var(--ease); overflow: auto; }
.modal { width: min(580px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--panel); color: var(--text); border: 1px solid var(--hair-soft); border-radius: 20px; box-shadow: var(--shadow-pop); animation: rise .35s var(--ease); }
.modal > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal--sm { width: min(440px, 100%); }
.modal--lg { width: min(780px, 100%); }
.modal--xl { width: min(1320px, 100%); height: calc(100vh - 48px); height: calc(100dvh - 48px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 32px 0; }
.modal-head > :first-child { min-width: 0; }
.modal-head h2 { font-size: 22px; letter-spacing: -.02em; }
.modal-head .sub { font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }
.modal-body { padding: 22px 32px 8px; overflow: auto; flex: 1; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 32px 28px; }
.modal-foot .spacer { flex: 1; }
.modal-close { flex: 0 0 auto; margin: -6px -10px 0 0; }

/* ---- request sheet -------------------------------------------------------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); flex: 1; min-height: 0; }
.sheet--single { grid-template-columns: minmax(0, 1fr); }
.viewer { display: flex; flex-direction: column; min-height: 0; background: #060607; border-radius: 20px 0 0 20px; border-right: 1px solid var(--hair-soft); overflow: hidden; }
html[data-theme="light"] .viewer { background: #1d1d1f; }
.viewer-stage { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: auto; position: relative; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.viewer-stage.zoomed { grid-template: auto / auto; place-items: start; }
.viewer-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.viewer-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-stage .nopreview { text-align: center; padding: 32px; color: rgba(255, 255, 255, .75); }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.viewer-bar .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, .1); }
.thumb { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .3); }
.sheet-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 26px 28px 16px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; }
.sheet-head h2 { font-size: 22px; margin: 8px 0 10px; }
.sheet-foot { flex: 0 0 auto; }
.sheet-scroll { flex: 1; overflow: hidden auto; padding: 18px 28px 24px; }
.sheet-foot { padding: 14px 28px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sheet-foot .btn--form { padding: 12px 18px; font-size: 15px; }
.sheet-foot > .icon-btn { color: var(--text-3); }
.sheet-foot > .icon-btn:hover { color: var(--bad); }
.sheet-nav { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-left: auto; }
.block { margin-top: 22px; }
.block > .label { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--text-3); margin-bottom: 10px; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 18px; font-size: 14px; margin: 0; }
.dl dt { color: var(--text-3); font-size: 13px; }
.dl dd { margin: 0; min-width: 0; }
.prose { font-size: 15px; line-height: 1.55; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }

/* dropzone + files */
.dropzone { display: block; border: 1.5px dashed var(--hair); border-radius: 14px; padding: 26px 20px; text-align: center; background: var(--soft); cursor: pointer; transition: all .3s var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.dropzone .big { font-size: 15px; font-weight: 600; margin-top: 10px; }
.dropzone .big span { color: var(--link); }
.dropzone .rules { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.dropzone svg { color: var(--link); }
.files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; min-width: 0; }
.file.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--accent-soft); }
.file .pic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--soft-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--text-2); }
.file .pic img { width: 100%; height: 100%; object-fit: cover; }
.file .info { flex: 1; min-width: 0; text-align: left; }
.file .fname { font-size: 14px; font-weight: 600; }
.file .fmeta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.file .fbar { height: 3px; border-radius: 3px; background: var(--soft-3); overflow: hidden; margin-top: 6px; }
.file .fbar i { display: block; height: 100%; background: var(--blue); transition: width .2s linear; }
.file.failed { border-color: var(--red); background: var(--bad-soft); }
.file.failed .fmeta { color: var(--bad); }
.file button.open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13px; line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.good::before { background: var(--green); }
.timeline li.bad::before { background: var(--red); }
.timeline li.info::before { background: var(--blue); }
.timeline .when { color: var(--text-3); font-size: 12px; }
.timeline .said { margin-top: 4px; padding: 9px 12px; border-radius: 10px; background: var(--soft); color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 6px; }
.comment-form .input { flex: 1; min-width: 0; }

/* lightbox (file preview on small screens) */
.lightbox:focus { outline: none; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: #000; display: flex; flex-direction: column; animation: fade .2s var(--ease); }
.lightbox .viewer { border-radius: 0; border: 0; flex: 1; background: transparent; }

/* ---- gate (sign-in — the age-gate layout) --------------------------------- */
.gate { min-height: 100vh; min-height: 100dvh; background: #000; display: grid; place-items: center; padding: 32px 20px; }
.gate-inner { width: min(420px, 100%); text-align: center; }
.gate-inner--wide { width: min(520px, 100%); }
.gate-logo { display: flex; justify-content: center; margin-bottom: 6px; min-height: 60px; align-items: center; }
.gate-logo img { width: 200px; height: auto; display: block; }
.gate-logo .wordmark { font-size: 30px; }
.gate h1 { font-size: 28px; line-height: 35px; text-transform: uppercase; margin: 10px 0 8px; }
.gate .sub { font-size: 15px; line-height: 1.55; color: var(--text-2); margin-bottom: 26px; }
.gate form { text-align: left; }
.gate .btn--gate { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: .12em; padding: 13px 40px; width: 100%; }
.gate .btn--gate:hover:not(:disabled) { background: var(--blue-hover); }
.gate .foot { margin-top: 26px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.gate .remember { justify-content: center; font-size: 13px; margin: 16px 0 0; align-items: center; }
.gate .remember input { width: 15px; height: 15px; margin: 0; }
/* ---- two-step sign-in ----------------------------------------------------- */
.otp { display: flex; gap: 10px; justify-content: center; margin: 6px 0 20px; }
.otp-input {
  width: 48px; height: 58px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; background: var(--input); color: var(--text);
  border: 1.5px solid var(--input-line); border-radius: 10px; outline: none; caret-color: var(--blue);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.otp-input:focus { background: var(--input-focus); border-color: var(--blue); box-shadow: 0 0 0 3.5px var(--ring); transform: scale(1.04); }
.setup-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; text-align: left; }
.setup-steps > li { display: flex; gap: 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.setup-steps > li > div { flex: 1; min-width: 0; }
.setup-steps b { color: var(--text); font-weight: 600; }
.setup-steps .n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--blue); color: #fff; }
.qr-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.qr-box { flex: 0 0 172px; width: 172px; height: 172px; background: #fff; border-radius: 12px; padding: 4px; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-side { flex: 1; min-width: 200px; }
.cred.key { font-size: 14px; letter-spacing: .06em; padding: 8px 8px 8px 14px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .08em; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--soft); border: 1px solid var(--hair); color: var(--text); }
.meter { height: 4px; border-radius: 4px; background: var(--soft-3); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease), background .3s; }

/* ---- matrix --------------------------------------------------------------- */
.matrix { overflow: auto; max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); min-height: 320px; }
.matrix table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); background: var(--panel); }
.matrix thead th { position: sticky; top: 0; z-index: 3; vertical-align: bottom; padding: 12px 6px; height: 190px; min-width: 44px; font-weight: 500; }
.matrix thead th.corner { left: 0; z-index: 5; text-align: left; padding: 14px 18px; vertical-align: bottom; min-width: 230px; }
.matrix thead th .vert { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; letter-spacing: .02em; text-align: left; }
.matrix thead th.cat-start, .matrix td.cat-start { border-left: 1px solid var(--line); }
.matrix tbody th { position: sticky; left: 0; z-index: 2; text-align: left; padding: 9px 18px; font-weight: 400; min-width: 230px; max-width: 280px; }
.matrix td { text-align: center; padding: 0; }
.matrix tr.group th { position: sticky; left: 0; background: var(--panel-2); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); padding: 9px 18px; text-align: left; }
.matrix tr.group td { background: var(--panel-2); }
.cell { width: 100%; min-width: 44px; height: 42px; display: grid; place-items: center; transition: background .15s; }
button.cell:hover { background: var(--soft-2); }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--idle); display: inline-block; flex: 0 0 auto; }
.dot--approved { background: var(--green); }
.dot--submitted { background: var(--blue); }
.dot--pending { background: transparent; border: 2px solid var(--idle); }
.dot--rejected { background: transparent; border: 2px solid var(--red); }
.dot--overdue { background: var(--red); }
.dot--expiring { background: var(--gold); }
.dot--expired { background: var(--red-dark); box-shadow: 0 0 0 2px var(--bad-soft); }
.dot--none { width: 8px; height: 2px; border-radius: 2px; background: var(--idle); opacity: .7; }
.dot--na { background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---- activity feed -------------------------------------------------------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; }
.feed li:last-child { border-bottom: 0; }
.feed .ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--text-2); }
.feed .ico.good { background: var(--ok-soft); color: var(--ok); }
.feed .ico.bad { background: var(--bad-soft); color: var(--bad); }
.feed .ico.info { background: var(--accent-soft); color: var(--link); }
.feed .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed .when { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- layout grids --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.type-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.type-card h3 { font-size: 17px; line-height: 1.3; }
.type-card .desc { font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.type-card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.type-card.archived { opacity: .6; }
.stat-inline { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); }
.stat-inline b { color: var(--text); font-size: 14px; font-weight: 600; margin-right: 4px; }
.hero-card { display: flex; align-items: center; gap: 28px; padding: 26px 28px; flex-wrap: wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.checklist .n { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--soft-2); }
.checklist li.done .n { background: var(--green); color: #fff; }
.checklist .t { flex: 1; font-size: 14px; }
.checklist .t b { display: block; font-size: 15px; }
.cred { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .06em; background: var(--soft); border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid transparent; }
.swatches button.selected { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--c); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; }
.kv .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.kv .v { font-size: 15px; overflow-wrap: anywhere; }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.status-list li:last-child { border-bottom: 0; }
.status-list .mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); margin-top: 1px; }
.status-list .mark.warn { background: var(--gold-deep); }
.status-list .mark.bad { background: var(--red); }
.status-list small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; line-height: 1.45; }

/* ---- toasts --------------------------------------------------------------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 30px; background: rgba(5, 5, 6, .94); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 500; animation: rise .35s var(--spring); max-width: 100%; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.toast svg { flex: 0 0 auto; }
.toast--ok svg { color: var(--green); }
.toast--bad svg { color: var(--red); }
.toast button { color: #2997ff; font-weight: 600; margin-left: 6px; }

/* ---- skeleton ------------------------------------------------------------- */
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--soft) 25%, var(--soft-2) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1420px) {
  /* keep the seven admin links on one line on smaller laptops */
  .header-layout { gap: 14px; }
  .header-logo, .header-icons { min-width: 0; }
  .header-nav { gap: 0; }
  .nav-link { margin: 0 2px; letter-spacing: .04em; }
}
@media (max-width: 1240px) {
  .header-nav { display: none; }
  .burger { display: grid; }
  .header-logo { flex: 1; }
  .header-icons { min-width: 0; }
  .user-btn .who { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet .viewer { display: none; }
  .modal--xl { height: auto; width: min(640px, 100%); }
  .hide-md { display: none !important; }
}
@media (max-width: 760px) {
  :root { --gutter: 17px; --header-h: 64px; }
  main.main { padding: 30px 0 56px; }
  .title-xl { font-size: 27px; }
  .title-lg { font-size: 24px; }
  .header-logo img { height: 34px; }
  .kpis, .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 28px; }
  .jb-item { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .jb-action { flex-direction: row; align-items: center; justify-content: space-between; }
  .jb-title { font-size: 18px; }
  .jb-meta { font-size: 12px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .toolbar select.input { flex: 1 1 150px; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal, .modal--sm, .modal--lg, .modal--xl { width: 100%; max-height: 94vh; max-height: 94dvh; height: auto; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 18px 20px 4px; }
  .modal-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .sheet-head { padding: 22px 20px 0; }
  .sheet-scroll { padding: 16px 20px 20px; }
  .sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .sheet-foot .btn { flex: 1; }
  .hide-sm { display: none !important; }
  .otp { gap: 7px; }
  .otp-input { width: 44px; height: 54px; font-size: 22px; }
  .qr-box { margin: 0 auto; }
  .qr-side { order: -1; flex-basis: 100%; } /* on a phone the one-tap button comes before the square */
  .page-head { margin-bottom: 26px; }
  .page-head .btn-row { width: 100%; }
  .page-head .btn-row .btn { flex: 1; }
  .hero-card { padding: 20px; gap: 20px; }
  .ring { width: 104px; height: 104px; }
  .ring b { font-size: 24px; }
  .toasts { bottom: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .matrix { max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); }
  /* iPhones zoom the whole page when a field with text smaller than 16px gets the focus */
  .input--sm { font-size: 16px; }
  .matrix thead th.corner, .matrix tbody th { min-width: 150px; max-width: 170px; padding-left: 12px; padding-right: 10px; }
}
/* touch screens: small text links and ticks get a finger-sized area, without moving anything on the page */
@media (max-width: 760px), (pointer: coarse) {
  .text-link, .cta { padding-block: 12px; margin-block: -12px; }
  button.text-link { min-width: 28px; }
  .check { padding-block: 4px; }
  .announce a { padding-block: 10px; }
  .table input[type="checkbox"] { width: 24px; height: 24px; }
  .chip-x { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .toolbar, .btn, .bulkbar { display: none !important; }
  body { background: #fff; color: #000; }
}
