/* Self-hosted fonts (DM Sans, Outfit) */
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Palette as CSS variables. Green/gold sampled from cki-logo.png pixels (median): green #4BB430, gold #FFD114.
   Layout feel (dark header, Outfit/DM Sans, uppercase nav, gold rule labels, 4px buttons, rounded cards) borrowed from ckilock.com.
   Swap palette: change only this block. */
:root {
  --brand: #00A651;          /* cki-brand --cki-green-strong (ckilock.com main green) */
  --brand-dark: #007A3D;     /* cki-brand --cki-green-text (text on white) */
  --brand-soft: #EEF7EA;
  --accent: #D4A843;         /* cki-brand --cki-gold-muted (rules, hover, gold on dark) */
  --accent-dark: #8A6D00;
  --ink: #1a1a1a; --ink-2: #555; --ink-3: #6b6b6b;
  --line: #e5e5e5; --bg: #f7f7f7; --card: #fff; --header: #0a0a0a;
  --danger: #B42318; --danger-soft: #FDECEA; --warn: #8A6D00; --warn-soft: #FFF6D6; --ok: #2F7D1E; --ok-soft: #EEF7EA;
  --font-display: 'Outfit', system-ui, sans-serif; --font-body: 'DM Sans', system-ui, sans-serif;
  --r-sm: 4px; --r-md: 10px; --r-lg: 20px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
a { color: var(--brand-dark); }
.site-header { background: var(--header); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand .crest { height: 52px; width: auto; }   /* official transparent crest (cki-brand), sits directly on the black header */
.brand b { font-family: var(--font-display); font-weight: 700; display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.nav { display: flex; gap: 4px; }
.nav-link { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 6px; align-items: center; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: var(--accent); }
.pill { background: var(--accent); color: #000; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.search { margin-left: auto; } .search input { width: 280px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid #333; background: #1b1b1b; color: #fff; font: inherit; }
main { padding: 48px 28px 64px; }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.label::before { content: ''; width: 30px; height: 2px; background: var(--accent); }
.label span { font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 12px; } h1 { font-size: 30px; font-weight: 800; } h2 { font-size: 22px; font-weight: 700; } h3 { font-size: 17px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
section { margin-bottom: 44px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.kpi b { font-family: var(--font-display); font-size: 34px; font-weight: 800; display: block; line-height: 1.1; }
.kpi.hot b { color: var(--danger); } .kpi span { color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vcard { text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; transition: border-color .18s, box-shadow .18s; }
.vcard:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(75,180,48,.15); }
.vcard h3 { margin: 0 0 8px; font-size: 15.5px; } .vcard .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.issue { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.issue:last-child { border-bottom: 0; } .issue .date { color: var(--ink-3); font-size: 13px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f0f0f0; color: var(--ink-2); white-space: nowrap; }
.tag.danger { background: var(--danger-soft); color: var(--danger); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.ok { background: var(--ok-soft); color: var(--ok); }
.btn { display: inline-flex; gap: 6px; align-items: center; background: var(--brand-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 18px; border-radius: var(--r-sm); border: 0; cursor: pointer; }
.btn:hover { background: var(--brand); } .btn.ghost { background: transparent; color: var(--brand-dark); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--brand); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
select, .field { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 12px; border-bottom: 2px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:hover td { background: #fafafa; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; } .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; }
details > summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; gap: 12px; align-items: center; }
details > summary::-webkit-details-marker { display: none; } details > summary::before { content: '▸'; color: var(--ink-3); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); } details .body { padding: 0 18px 18px; }
.alert-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.alert-row .detail { color: var(--ink-2); font-size: 14px; } .confirm-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.confirm-form input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.back { margin-bottom: 18px; } .props { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 8px 0 22px; }
.props div span { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; } .props div b { font-size: 16px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; }
.foot { padding: 20px 28px 40px; color: var(--ink-3); font-size: 13px; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--header); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); border-left: 4px solid var(--accent); }
@media (max-width: 900px) { .header-row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; } .search { margin-left: 0; width: 100%; } .search input { width: 100%; } .issue { grid-template-columns: 1fr; gap: 4px; } }
/* additions: logos, date headers, states */
.vlogo { object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 3px; flex-shrink: 0; }
.vbadge { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-family: var(--font-display); font-weight: 800; font-size: 13px; flex-shrink: 0; border: 1px solid #d6ebcd; }
.vhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .vhead h3 { margin: 0; }
.vcard { text-decoration: none; display: block; } .vcard .hot, .hot { color: var(--danger); font-weight: 700; }
.vendor-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; } .vendor-hero h1 { margin: 0; }
.dhead { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.card > .dhead:first-child, .dhead:first-of-type { margin-top: 0; }
.issue { grid-template-columns: 1fr auto; } .more { margin-top: 16px; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); }
.arow-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .ok-text { color: var(--ok); margin-top: 6px; }
.alert-row:first-of-type { border-top: 0; } .aact { display: flex; align-items: flex-start; }
.btn.sm { padding: 7px 12px; font-size: 11.5px; } .btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .kpi:focus-visible, .vcard:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kpi { transition: border-color .18s, transform .18s; } .kpi:hover { border-color: var(--brand); transform: translateY(-1px); }
summary .grow { flex: 1; } details.soft { background: var(--warn-soft); border-color: #f1e2a6; }
.tablewrap { overflow-x: auto; } tr.click { cursor: pointer; } h3 { margin-top: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) { .wrap, main { padding-left: 16px; padding-right: 16px; } h1 { font-size: 24px; } .alert-row { grid-template-columns: 1fr; } .brand b { font-size: 14px; } .brand .crest { height: 42px; } .nav-link { padding: 6px 10px; font-size: 13px; } .kpi b { font-size: 28px; } .seg button { padding: 7px 10px; } }
.confirm-form { margin-top: 0; } .confirm-form[hidden] { display: none; } .aact { min-width: 120px; justify-content: flex-end; }
/* auth pages + admin */
.user { display: flex; align-items: center; gap: 4px; } .who { color: #ccc; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.nav-link { background: none; border: 0; cursor: pointer; }
body.auth { background: radial-gradient(1200px 600px at 50% -10%, #1d3317 0%, #0a0a0a 60%); min-height: 100vh; }
.auth-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; }
.auth-card { background: #fff; border-radius: var(--r-lg); padding: 40px 36px 32px; width: 100%; max-width: 420px; box-shadow: 0 20px 64px rgba(0,0,0,.35); border-top: 4px solid var(--accent); text-align: center; }
.auth-card form { text-align: left; margin: 20px 0 14px; display: grid; gap: 16px; }
.auth-crest { height: 96px; width: auto; margin-bottom: 14px; }
.label.center { justify-content: center; } .label.center::after { content: ''; width: 30px; height: 2px; background: var(--accent); }
.auth-card label, .form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.auth-card input, .form-grid input, .form-grid select { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid #cfcfcf; border-radius: var(--r-sm); color: var(--ink); }
.auth-card input:focus, .form-grid input:focus { border-color: var(--brand-dark); }
.btn.block { width: 100%; justify-content: center; padding: 13px; font-size: 13px; }
.form-err { background: var(--danger-soft); color: var(--danger); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin: 0; }
.auth-foot { color: #9a9a9a; font-size: 12.5px; margin-top: 18px; letter-spacing: .04em; }
.linkbtn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.4fr .6fr .8fr auto; gap: 14px; align-items: end; }
.onetime { border: 2px solid var(--accent); background: #FFFBEA; margin-bottom: 20px; }
.temp { font-size: 26px; letter-spacing: .08em; background: #fff; border: 1px dashed var(--accent-dark); border-radius: var(--r-sm); padding: 12px 16px; display: inline-block; margin: 4px 0 8px; user-select: all; }
tr.dim td { color: var(--ink-3); } td.actions { white-space: nowrap; text-align: right; } td.actions .btn { margin-left: 6px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } .user { margin-left: auto; } }
.form-grid input, .form-grid select { width: 100%; min-width: 0; } .card > h3:first-child { margin-top: 0; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .user .who { display: none; } }
/* ---- cross-browser / mobile QA fixes (2026-10-22) ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.auth, .auth-wrap { min-height: 100vh; min-height: 100dvh; }
.site-header .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
.foot { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.auth-wrap { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
@media (max-width: 1180px) and (min-width: 901px) { .header-row { gap: 12px; } .search input { width: 170px; } .user .who { display: none; } .brand small { letter-spacing: .08em; } .nav-link { padding: 8px 10px; } .brand b { font-size: 15px; } .who { max-width: 90px; } }
@media (max-width: 900px) {
  .brand { order: 1; } .user { order: 2; margin-left: auto; } .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .nav::-webkit-scrollbar { display: none; } .search { order: 4; }
  .site-header .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
@media (max-width: 700px) { .site-header { position: static; } .nav-link { flex: 0 0 auto; white-space: nowrap; } .brand small { letter-spacing: .1em; } }
/* touch devices + narrow screens: 44px targets, 16px inputs so iOS Safari doesn't zoom on focus */
@media (pointer: coarse), (max-width: 900px) {
  .nav-link, .btn, .btn.sm, .seg button, select, .field, .linkbtn, .search input, .auth-card input, .form-grid input, .form-grid select, .confirm-form input { min-height: 44px; }
  .btn.sm { padding: 10px 14px; } .seg button { padding: 10px 14px; } .brand { min-height: 44px; }
  input, select, textarea, .search input, .auth-card input, .form-grid input, .form-grid select, .confirm-form input { font-size: 16px; }
  .linkbtn { min-width: 44px; padding: 10px 6px; }

  tr.click td { padding-top: 13px; padding-bottom: 13px; }
  .arow-head a, .props a, td.mono a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
}
.nav-link, .brand b { white-space: nowrap; }
.vcard h2.vname { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
mark { background: #fde68a; color: inherit; border-radius: 2px; padding: 0 1px; } table.results td { vertical-align: top; } @media (max-width: 640px) { table.results th:nth-child(5), table.results td:nth-child(5) { display: none; } }

.onorder{flex-basis:100%;display:grid;gap:2px;margin-top:6px;padding-left:2px}
.onorder .small{overflow-wrap:anywhere}
details > summary { flex-wrap: wrap; }
/* acknowledgement line items (nested under each ack row) */
tr.acklines > td { padding: 0 0 10px 18px; background: transparent; }
table.sub { font-size: 12.5px; width: 100%; }
table.sub th { font-weight: 600; opacity: .75; }

/* Invoices tab */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; } .inv-filters input[type=search] { flex: 1 1 260px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.inv-filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; max-width: 100%; }
.inv-note { max-width: 820px; } .inv-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.invdoc h2 { margin: 0 0 10px; } .inv-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.printonly { display: none; }
@media (max-width: 640px) { table.invtable th:nth-child(4), table.invtable td:nth-child(4), table.invtable th:nth-child(5), table.invtable td:nth-child(5) { display: none; } .inv-filters .seg { width: 100%; overflow-x: auto; } }
@media print {
  .site-header, footer, #foot, .noprint, .toast { display: none !important; } .printonly { display: block !important; }
  body { background: #fff; color: #000; font-size: 11pt; } main, .wrap { padding: 0 !important; max-width: none !important; }
  .tablewrap { overflow: visible !important; } table { width: 100%; border-collapse: collapse; } th, td { border-bottom: 1px solid #bbb; padding: 4px 6px; }
  table.invtable th, table.invtable td { display: table-cell !important; } tr { break-inside: avoid; } thead { display: table-header-group; }
  .tag { border: 1px solid #000; background: none !important; color: #000 !important; } mark { background: none; } a { color: #000; text-decoration: none; }
  .inv-props { grid-template-columns: repeat(3, 1fr); } .invdoc { break-after: page; }
}
.tag.calc{background:#eef;color:#335;font-size:.75em;border:1px dashed #88a}
@media print{.tag.calc{border:1px dashed #000;color:#000;background:none}}
/* Invoices: manufacturer tiles (ckilock.com green/gold) */
.inv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 14px 0; }
.inv-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; background: #fff; border: 1px solid #d6ebcd; border-top: 4px solid var(--brand, #2e7d32); border-radius: 12px; cursor: pointer; font: inherit; text-align: center; min-height: 44px; transition: box-shadow .15s, border-color .15s; }
.inv-tile:hover, .inv-tile:focus-visible { border-top-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.inv-tile-logo { height: 60px; display: flex; align-items: center; }
.inv-tile-name { color: var(--brand-dark, #1b5e20); font-family: var(--font-display); }
.inv-tile-meta { color: #666; font-size: 13px; }
.inv-tile-total { color: var(--accent-dark); font-weight: 800; font-size: 17px; }
.btn.ghost { background: none; border: 1px solid #d6ebcd; color: var(--brand-dark, #1b5e20); }
@media print { .inv-tiles { display: none; } }

/* Invoice document, themed to ckilock.com (site palette: green #00A651 / dark green #007A3D / gold #D4A843 / dark #0a0a0a; Outfit + DM Sans) */
.invdoc { --cki-green: #00A651; --cki-green-dark: #007A3D; --cki-gold: #D4A843; --cki-dark: #0a0a0a;
  background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--cki-green); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 0 28px 22px; max-width: 980px; }
.invdoc-band { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0 16px; margin-bottom: 18px; border-bottom: 2px solid var(--cki-gold); }
.inv-id { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.inv-id div span, .inv-props div span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.inv-id div b { font-family: var(--font-display); font-size: 18px; color: var(--cki-dark); } .inv-id div:first-child b { font-size: 22px; color: var(--cki-green-dark); }
.invdoc-brand { display: flex; align-items: center; gap: 14px; text-align: right; flex-direction: row-reverse; }
.invdoc-brand img { height: 92px; width: auto; }
.invdoc-kind { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: var(--cki-dark); }
.credit .invdoc-kind { color: #B42318; }
.invdoc-co { font-family: var(--font-display); font-weight: 700; color: var(--cki-green-dark); } .invdoc-sub { font-size: 12px; color: var(--ink-3); }
.invdoc .inv-props { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; margin: 0 0 20px; }
.invdoc .inv-props div b { font-size: 15px; }
table.inv-lines { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
table.inv-lines th { background: var(--cki-dark); color: #fff; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; }
table.inv-lines th.num { text-align: right; } table.inv-lines td { padding: 7px 10px; border-bottom: 1px solid var(--line); } table.inv-lines tbody tr:nth-child(even) td { background: #f7f7f7; }
@media (max-width: 640px) { .invdoc { padding: 0 14px 16px; } .invdoc-band { flex-direction: column-reverse; } .invdoc-brand { flex-direction: row; text-align: left; } .invdoc-brand img { height: 64px; } }
@page { size: Letter; margin: 0.5in 0.55in; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invdoc { border: 0; border-top: 6pt solid var(--cki-green); border-radius: 0; box-shadow: none; padding: 0; max-width: none; }
  .invdoc-band { padding-top: 12pt; } .invdoc-brand img { height: 1.05in; }
  .inv-id div b { font-size: 14pt; } .inv-id div:first-child b { font-size: 17pt; }
  .invdoc .inv-props { grid-template-columns: repeat(4, 1fr); gap: 8pt 14pt; } .invdoc .inv-props div b { font-size: 10.5pt; }
  table.inv-lines th { background: var(--cki-dark) !important; color: #fff !important; border: 0; } table.inv-lines td { border-bottom: 1px solid #ccc; }
  .invdoc { break-after: page; } .invdoc:last-of-type { break-after: auto; }
}

/* PO # value highlighted like a yellow highlighter (screen + print) */
mark.po-hl { background: linear-gradient(104deg, rgba(255,242,0,0) 0.6%, #FFF200 2.5%, #FFF200 96%, rgba(255,242,0,0) 99%); color: inherit; padding: 1px 6px; margin: 0 -2px; border-radius: 3px 8px 4px 9px / 9px 4px 8px 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { mark.po-hl { background: #FFF200 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Outline boxes around the Invoice # and Invoice date values (screen + print) */
.invdoc .val-box { display: inline-block; border: 1.5px solid #0a0a0a; border-radius: 3px; padding: 2px 8px; line-height: 1.3; min-width: 7.5em; text-align: left; box-sizing: border-box; }
.inv-id div span.val-box, .inv-props div span.val-box { font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; font-weight: inherit; }
@media print { .invdoc .val-box { border: 1.2pt solid #000; } }

/* Tracking links (invoice card, order + acknowledgement views) */
a.trk { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.trk-carrier { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.trk-line { margin: 4px 0 10px; } .trk-line .tag { font-size: 11px; }
@media print { a.trk { color: #000 !important; text-decoration: none; } }

/* ---- Unified look (2026-10-24): every page uses the Invoices tab's layout ----
   page-head title row and green-topped white cards/tiles (radius 12, #d6ebcd border, 4px brand top), shared by all views. */
.page-head { margin: 4px 0 14px; } .page-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; }
.section-title { font-size: 18px; margin: 26px 0 12px; color: var(--brand-dark); }
a.inv-tile { text-decoration: none; color: inherit; } .inv-tile-total.hot { color: var(--danger); }
.card, .kpi, .vcard, .empty, .auth-card { border: 1px solid #d6ebcd; border-top: 4px solid var(--brand); border-radius: 12px; background: #fff; }
.kpi:hover, .vcard:hover { border-top-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.kpi span { color: #666; } .kpi b { color: var(--brand-dark); } .kpi.hot b { color: var(--danger); }
/* mobile: wrap the nav so every tab is visible */
@media (max-width: 900px) { .nav { flex-wrap: wrap; overflow-x: visible; } .nav-link { flex: 0 0 auto; } }
@media (max-width: 700px) { .inv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .inv-tile { padding: 14px 8px 12px; } }

/* Logos: never upscale past native pixels (no blur); wordmarks get a wide box on tiles and page titles. */
.inv-tile-logo { height: 60px; width: 100%; justify-content: center; }
.inv-tile-logo .vlogo, .page-head .vlogo { width: auto !important; height: auto !important; object-fit: contain; border: 0; padding: 0; background: transparent; }
.inv-tile-logo .vlogo { max-width: min(150px, 100%); max-height: 56px; }
.page-head .vlogo { max-width: 140px; max-height: 40px; }

/* Header ~18% bigger and crisper (2026-10-24); signed-in name in CKI green. Crest stays below its native 400px height. */
.site-header { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.header-row { height: 90px; }
.brand .crest { height: 62px; }
.brand b { font-size: 19px; }
.brand small { font-size: 13px; }
.site-header .nav-link { font-size: 16.5px; font-weight: 600; }
.site-header .pill { font-size: 13px; padding: 2px 9px; }
.site-header .search input { font-size: 15px; }
@media (max-width: 1180px) and (min-width: 901px) { .site-header .nav-link { font-size: 15px; } .brand b { font-size: 17px; } }
@media (max-width: 900px) { .header-row { height: auto; } }
@media (max-width: 700px) { .brand .crest { height: 50px; } .brand b { font-size: 16.5px; } .brand small { font-size: 12px; } .site-header .nav-link { font-size: 15px; } }
@media (min-width: 1181px) { .header-row { gap: 20px; } .site-header .search input { width: 210px; } .site-header .nav-link { padding: 8px 12px; } }
@media (max-width: 700px) { .brand { min-width: 0; flex: 1 1 auto; } .brand b { white-space: normal; } .user { flex: 0 0 auto; } }
@media (min-width: 1181px) and (max-width: 1640px) { .header-row { gap: 14px; } .site-header .search input { width: 170px; } .site-header .nav-link { padding: 8px 9px; letter-spacing: .02em; } .brand b { font-size: 18px; } .site-header .who { max-width: 100px; } }
/* Laptop widths: the bigger header doesn't fit on one row, so the tabs drop to their own row (nothing cut off). */
@media (min-width: 901px) and (max-width: 1380px) { .header-row { flex-wrap: wrap; height: auto; padding: 10px 0 8px; row-gap: 6px; } .brand { order: 1; } .search { order: 2; } .user { order: 3; } .nav { order: 4; width: 100%; } .site-header .search input { width: 240px; } .user .who { display: inline; } }
/* Signed-in name: bigger, in the crest's shield green (#4BB430, sampled from cki-crest-transparent.png) */
.site-header .who { color: #4BB430; font-size: 18.5px; font-weight: 800; max-width: 170px; }
@media (min-width: 1181px) and (max-width: 1640px) { .site-header .who { max-width: 120px; } }

/* ---- Design audit fixes (pre-ship checklist, Oct 2026) ---- */
:root { --brand-hover: #006633; --focus: #007A3D; }   /* hover: white text 7.12:1; focus ring on white 5.45:1, on #f7f7f7 5.09:1 */
body { font-size: 16px; }
/* Focus: dark green ring on light surfaces; gold kept on the black header (8.94:1 on #0a0a0a) */
.btn:focus-visible, .kpi:focus-visible, .vcard:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .inv-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-header input:focus-visible, body.auth .auth-foot a:focus-visible { outline-color: var(--accent); }
.btn:hover { background: var(--brand-hover); }
.btn:active, .seg button:active, .nav-link:active { transform: translateY(1px); }
/* Minimum ~13px text */
.brand small, .pill, .label span, .tag, .btn, th, .props div span, .dhead, .btn.sm, .auth-foot, table.sub, .tag.calc, .inv-id div span, .inv-props div span, .invdoc-sub, table.inv-lines th, .trk-carrier, .trk-line .tag, .site-header .pill { font-size: 13px; }
/* Tap targets: 44px on touch-size screens */
@media (max-width: 900px) {
  .nav-link, .btn, .btn.sm, .seg button, .site-header .search input { min-height: 44px; }
  .nav-link, .seg button { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .kpi:hover, .btn:active, .seg button:active, .nav-link:active { transform: none; }
}
@media print { body { font-size: 11pt; } }
/* Phones: invoice line table keeps main's compact headers so Extended fits; scroll sideways if a long table still overflows */
@media (max-width: 640px) {
  table.inv-lines { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.inv-lines th { font-size: 11px; letter-spacing: .04em; padding: 8px 6px; }
}

/* ---- Overview + Alerts redesign ---- */
.ico { flex-shrink: 0; vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 8px 0 22px; }
.stat { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #d6ebcd; border-top: 4px solid var(--brand-dark); border-radius: 12px; padding: 16px; color: var(--ink); text-decoration: none; min-height: 44px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.stat:hover { border-top-color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.stat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-body b { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1.05; }
.stat-body > span { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.stat-body small { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.stat.hot { border-top-color: var(--danger); } .stat.hot .stat-ic { background: var(--danger-soft); color: var(--danger); } .stat.hot b { color: var(--danger); }
.stat.warn { border-top-color: #8A6D00; } .stat.warn .stat-ic { background: var(--warn-soft); color: #8A6D00; }
.stat.ok .stat-ic { background: var(--brand-soft); color: var(--brand-dark); }
.stat.gold { border-top-color: var(--accent); } .stat.gold .stat-ic { background: #FBF3DD; color: #8A6D00; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.dash-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--brand-dark); flex-wrap: wrap; }
.dash-card-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.chart-svg { width: 100%; height: 210px; display: block; }
.ch-lab { font-size: 13px; fill: #555; font-family: var(--font-body); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li + li { border-top: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; color: var(--ink); text-decoration: none; min-height: 44px; border-radius: 6px; }
.feed a:hover { background: var(--bg); }
.feed-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); }
.feed-body { min-width: 0; display: flex; flex-direction: column; } .feed-body b { font-size: 14px; } .feed-body span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
/* Severity palette: text colors all >= 4.5:1 on their soft backgrounds */
.sev-urgent { --sev: #B42318; --sev-soft: #FDECEA; } .sev-action { --sev: #8A5A00; --sev-soft: #FFF4D6; } .sev-review { --sev: #007A3D; --sev-soft: #EEF7EA; } .sev-fyi { --sev: #4a4a4a; --sev-soft: #f0f0f0; }
.sev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--sev, var(--ink)); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip .count { background: var(--sev-soft, #f0f0f0); color: var(--sev, var(--ink)); border-radius: 999px; padding: 0 8px; font-size: 13px; }
.chip.on { background: var(--sev, var(--ink)); color: #fff; border-color: var(--sev, var(--ink)); } .chip.on .count { background: rgba(255,255,255,.22); color: #fff; }
.sev-group { margin-bottom: 18px; }
.sev-title { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--sev); margin: 18px 0 10px; flex-wrap: wrap; }
.sev-title .count { background: var(--sev-soft); border-radius: 999px; padding: 0 9px; font-size: 13px; }
.sev-title small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-3); }
.acard { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sev); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.acard.done { opacity: .8; border-left-color: #bbb; }
.acard-logo { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.acard-logo .vlogo { width: 44px !important; height: 44px !important; border: 0; padding: 0; }
.acard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.sev-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--sev-soft); color: var(--sev); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.acard .detail { color: var(--ink-2); font-size: 14px; }
.acard .aact { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.agroup summary { display: flex; align-items: center; gap: 10px; }
.empty-state { text-align: center; background: #fff; border: 1px dashed #cfe6c6; border-radius: 14px; padding: 40px 20px; color: var(--brand-dark); }
.empty-state h2 { color: var(--ink); margin: 12px 0 6px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 12px; gap: 10px; flex-direction: column; } .stat-body b { font-size: 28px; }
  .acard { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; } .acard-logo { width: 44px; height: 44px; } .acard-logo .vlogo { width: 38px !important; height: 38px !important; }
  .acard .aact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .chip { min-height: 44px; } .chart-svg { height: 170px; } .ch-lab { font-size: 15px; }
}
.ch-labs { display: grid; grid-template-columns: repeat(8, 1fr); margin: 4px 4.64% 6px; text-align: center; font-size: 13px; color: #555; font-variant-numeric: tabular-nums; }
.chart-svg { height: 190px; }
.dash-grid { align-items: start; }
.acard a.btn { text-decoration: none; justify-content: center; }
@media (max-width: 700px) { .chart-svg { height: 150px; } .ch-labs { font-size: 13px; } }
/* Alert history: sort + manufacturer filter */
.hist-ctl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hist-ctl select { min-height: 40px; }
.hist-group { margin-bottom: 18px; }
.hist-vhead { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 18px 0 10px; color: var(--ink); }
.hist-vhead .vlogo { width: 32px !important; height: 32px !important; }
@media (max-width: 700px) { .hist-ctl { width: 100%; justify-content: space-between; } .hist-ctl select { flex: 1; min-height: 44px; max-width: 70%; } #hq { width: 100%; min-height: 44px; } }
#hq { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 14px; min-width: 240px; background: #fff; }
.hist-group .tablewrap { margin-top: 0; }
@media (max-width: 700px) { #hq { min-height: 44px; width: 100%; min-width: 0; } }

/* ---- Acknowledgements / Invoices / Users redesign (screen only where it touches shared parts) ---- */
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vtile, .itile { position: relative; gap: 8px; padding-top: 22px; }
.vt-flag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 3px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.vt-stats { display: flex; gap: 6px; justify-content: center; width: 100%; }
.vt-stats > span { flex: 1; max-width: 90px; background: var(--bg); border-radius: 8px; padding: 6px 4px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; line-height: 1.2; }
.vt-stats b { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.vt-foot { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); }
.itile .inv-tile-total { font-family: var(--font-display); font-size: 22px; }
.vtile:hover, .itile:hover { transform: translateY(-2px); } .vtile, .itile { transition: transform .15s, box-shadow .15s, border-color .15s; }
.inv-note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; }
@media screen {
  .props:not(.inv-props) { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .props:not(.inv-props) > div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand-dark); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
  .props:not(.inv-props) > div b { font-family: var(--font-display); font-size: 22px; }
  main details:not(.agroup):not(.soft) { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
  main details:not(.agroup):not(.soft) > summary { padding: 12px 16px; min-height: 44px; }
  main details[open]:not(.agroup):not(.soft) { border-left: 4px solid var(--brand-dark); }
  table.invtable { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
  table.invtable thead th { background: var(--header); color: #fff; border-bottom: 0; }
  table.invtable tbody tr:nth-child(even) { background: #fafafa; }
  table.invtable tbody tr.click:hover { background: var(--brand-soft); }
  table.invtable td { padding-top: 12px; padding-bottom: 12px; }
  .invdoc { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
  .inv-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
}
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ucard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-dark); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ucard.dim { opacity: .7; border-top-color: #bbb; }
.uc-top { display: flex; gap: 12px; align-items: center; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.avatar.admin { background: #0a0a0a; color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.uc-id { display: flex; flex-direction: column; min-width: 0; } .uc-id b { font-size: 16px; } .uc-id .small { color: var(--ink-2); }
.uc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-s { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f0f0f0; color: #4a4a4a; }
.pill-s.ok { background: var(--ok-soft); color: #2F7D1E; } .pill-s.warn { background: var(--warn-soft); color: #8A5A00; } .pill-s.danger { background: var(--danger-soft); color: var(--danger); } .pill-s.gold { background: #FBF3DD; color: #7A5C00; }
.uc-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.uc-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.add-user .dash-card-head h2 { font-size: 18px; }
@media (max-width: 700px) {
  .stats-3 { grid-template-columns: 1fr 1fr; } .stats-3 > :last-child { grid-column: 1 / -1; }
  .uc-act .btn { min-height: 44px; flex: 1; justify-content: center; }
  .props:not(.inv-props) { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vtile:hover, .itile:hover { transform: none; } }
@media print { .stats, .vt-flag, .ucards { display: none !important; } }
/* "About open" note: readable, calm */
.inv-note { display: flex; gap: 12px; align-items: flex-start; color: #1a1a1a; font-size: 15px; font-weight: 400; line-height: 1.55; background: #FFF8E6; border: 1px solid #F0E2B6; border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; max-width: 900px; }
.inv-note b { font-weight: 700; }
.inv-note-ic { flex-shrink: 0; color: #7A5C00; margin-top: 2px; }
@media print { .inv-note { background: none; border: 1px solid #999; color: #000; font-size: 10pt; } .inv-note-ic { display: none; } }
/* Invoice total = estimate */
.stat.est .stat-body small { color: #1a1a1a; font-weight: 600; }
.stat .approx { color: #555; font-weight: 700; margin-right: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Leads tab */
.lead-bubbles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.lead-bubble { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; min-height: 44px; background: #fff; border: 1px solid #d6ebcd; border-top: 4px solid var(--brand); border-radius: var(--r-lg); color: var(--brand-dark); text-decoration: none; text-align: center; transition: box-shadow .15s, border-color .15s; }
.lead-bubble:hover, .lead-bubble:focus-visible { border-top-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.lead-bubble b { font-family: var(--font-display); font-size: 17px; } .lead-bubble small { color: var(--ink-2); font-size: 13px; }
.lead-count { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--ink); }
.lead-bubble.review { border-top-color: var(--warn); }
.lead-bubble.empty { background: #f4f5f4; border-color: #e2e4e2; border-top-color: #c9ccc9; color: #5f6660; cursor: default; }
.lead-bubble.empty small { color: #5f6660; }
.lead-bubbles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.crumb { font-size: 14px; margin: 0 0 6px; } .crumb a { display: inline-block; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
.lead-gc-head { display: flex; align-items: center; justify-content: flex-start; gap: 14px; } .lead-gc-head h1 { margin: 0; }
.lead-list { display: grid; gap: 14px; }
.lead-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .lead-top h2 { font-size: 18px; margin: 0; }
.lead .btn { min-height: 44px; white-space: nowrap; }
.lead-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 14px 0; }
.lead-meta dt { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; } .lead-meta dd { margin: 0; font-size: 15px; }
.lead-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.lead-link { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; font-weight: 700; }
.lead.past { background: #f0f0f0; border-style: dashed; } .lead.past h2, .lead.past dd { color: #4a4a4a; }
.lead.past .tag { background: #e0e0e0; color: #3d3d3d; }
@media (max-width: 900px) { .lead-bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lead-top { flex-direction: column; } .lead-top .btn, .lead-top .tag { align-self: stretch; justify-content: center; text-align: center; } .lead-meta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lead-bubble { transition: none; } }
.lead-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px 14px; margin: 0 0 12px; background: var(--brand-soft); border-radius: var(--r-sm); }
.lead-contact-h { width: 100%; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.lead-contact a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
.lead-actions { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; } .lead-plans { min-height: 44px; }
.lead.past .lead-contact { background: #f7f7f7; border: 1px solid #d0d0d0; }
@media (max-width: 600px) { .lead-contact { flex-direction: column; align-items: flex-start; } .lead-actions { width: 100%; } .lead-plans { flex: 1; justify-content: center; } }
/* GC logos: pre-trimmed, padded files (light logos ship on a dark plate); shown at a fixed height, never stretched */
.gclogo { display: block; width: auto; object-fit: contain; image-rendering: auto; }
.inv-tile .gclogo { margin: 0 auto; max-width: 100% !important; }
/* Hosted plan files */
.plans { border: 1px solid #d6ebcd; border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.plans-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; background: #FFF8E6; border-left: 4px solid var(--accent); border-radius: var(--r-sm); color: #1a1a1a; font-size: 16px; line-height: 1.45; }
.plans-note svg { flex: 0 0 auto; margin-top: 2px; color: #1a1a1a; }
.plans-list { list-style: none; margin: 0 0 10px; padding: 0; }
.plans-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.plans-list li:last-child { border-bottom: 0; }
.plans-list a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
.plans-size { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.plans .btn { min-height: 44px; }
.plans-gone { display: flex; gap: 6px; align-items: center; margin: 0 0 12px; color: #3d3d3d; font-size: 15px; font-weight: 700; }
@media (max-width: 600px) { .plans .btn { width: 100%; justify-content: center; } }
.tag.stage-bidding { background: #e6f4ea; color: #14532d; } .tag.stage-planning { background: #eef2ff; color: #312e81; }
.lead-top h2 .tag { font-size: 13px; vertical-align: middle; margin-left: 6px; }
.lead-det { margin: 10px 0; border-top: 1px solid #e5e7e5; padding-top: 8px; } .lead-det summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--brand-dark); }
.lead-desc { font-size: 14px; line-height: 1.5; white-space: pre-line; } .lead-role h3 { font-size: 15px; margin: 12px 0 4px; } .lead-role ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.lead-more { display: block; margin: 16px auto; min-height: 44px; }
.lead-role a { display: inline-flex; align-items: center; min-height: 44px; }
.inv-tile.pending { border-top-color: var(--warn); }
/* Plans available (Leads) */
.tag.plans { background: #e6f0ff; color: #1d4ed8; }
.plans-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; }
.plans-toggle input { width: 18px; height: 18px; accent-color: #1d4ed8; }
@media (max-width: 900px) { .site-header .search input { font-size: 16px; } }
/* Phones: hide 0-bid categories behind a toggle; desktop unchanged */
.show-empty-btn { display: none; }
@media (max-width: 600px) {
  .lead-bubbles:not(.show-empty) .lead-bubble.empty { display: none; }
  .show-empty-btn { display: block; width: 100%; min-height: 44px; margin: 10px 0 4px; }
}
/* Phones: show signed-in name compactly next to Sign out */
@media (max-width: 600px) {
  .site-header .user .who { display: inline-block; font-size: 14px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; margin-right: 6px; }
}
/* Keep footer below the fold while tabs load (cuts layout shift) */
main { min-height: calc(100vh - 120px); min-height: calc(100dvh - 120px); }
#app > .muted:first-child { margin-top: 0; } /* loading placeholder matches page top (layout shift) */
#app { display: flow-root; } /* child margins stay inside main, so it never moves as tabs render */
.tag.no-plans { background: #f3f3f3; color: #5f5f5f; font-weight: 600; border: 1px dashed #c9c9c9; }
/* Company main line on GC pages: tap-to-call / mailto, wraps on phones */
.gc-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.gc-contact .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .gc-contact .btn { flex: 1 1 100%; justify-content: center; } }
.lead { min-width: 0; } .lead-contact, .lead-contact a { min-width: 0; overflow-wrap: anywhere; } /* long emails wrap instead of widening cards on phones */
.parent-line { font-style: italic; } .gc-contact .parent-line { white-space: normal; text-align: left; }

.claim-group{border:1px solid var(--line,#ddd);border-radius:12px;margin:.5rem 0;background:var(--card,#fff)}
.claim-group>summary{cursor:pointer;padding:.9rem 1rem;min-height:44px;display:flex;align-items:center;gap:.5rem;font-size:1.05rem;list-style:none}
.claim-group>summary::-webkit-details-marker{display:none}
.claim-group>summary::after{content:"\25B8";margin-left:auto;transition:transform .15s}
.claim-group[open]>summary::after{transform:rotate(90deg)}
.claim-group>.lead-list{padding:0 .75rem .75rem}

.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .stats-4 { grid-template-columns: 1fr 1fr; } }
.press-note a { font-weight: 600; }

/* Compact lead rows */
.lead-row{border:1px solid var(--line,#ddd);border-radius:10px;background:#fff;margin:.35rem 0}
.lead-row>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;padding:.7rem .9rem;min-height:44px}
.lead-row>summary::-webkit-details-marker{display:none}
.lead-row>summary::after{content:"\25B8";margin-left:auto;transition:transform .15s}
.lead-row[open]>summary::after{transform:rotate(90deg)}
.lead-row>summary:focus-visible{outline:3px solid var(--accent,#2a7);outline-offset:2px}
.lr-title{font-weight:600;flex:1 1 14rem;min-width:0;overflow-wrap:anywhere}
.lr-meta{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:var(--ink-2,#555)}
.lr-meta .tag{margin:0;padding:1px 6px;font-size:.75rem}
.lead-row.past{background:#f6f6f6}.lead-row.past .lr-title{color:#5f6660}
.lr-body{padding:0 .5rem .5rem}.lr-body>.card{margin:0;box-shadow:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Paid invoices (from check runs): still readable, visually muted. */
tr.is-paid td { color: #8a8f98; background: #f6f6f4; }
tr.is-paid td .tag:not(.paid), tr.is-paid td mark { filter: grayscale(1); opacity: .7; }
.tag.paid { display: inline-block; background: #e7f4ec; color: #1f6b3a; border: 1px solid #b9dcc5; border-radius: 999px; padding: 1px 8px; font: 600 11px/1.6 system-ui, sans-serif; white-space: nowrap; opacity: 1; }
.paid-count { color: #1f6b3a; font-weight: 600; }
.invdoc.is-paid { opacity: .7; filter: grayscale(.6); }
.paid-banner { margin: 0 0 10px; font-weight: 600; color: #1f6b3a; }
@media print { tr.is-paid td, .invdoc.is-paid { opacity: 1; filter: none; } }

/* Payments tab: batch cards, condensed check rows that expand on tap. */
.pay-batch { margin-bottom: 16px; }
.pay-bhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.pay-bhead h2 { margin: 0; font-size: 1.15rem; }
.pay-total { font-size: 1.25rem; white-space: nowrap; }
.pay-props { margin: 0 0 10px; }
.pay-row .lr-meta b.num { min-width: 5.5rem; text-align: right; color: var(--ink, #222); }
.pay-table tfoot td { border-top: 2px solid var(--line, #ddd); }
tr.unmatched td { background: #fbf8ef; }
.lead-row.pay-row > summary::after, .lead-row.pay-row > summary::before { display: none; }
.pay-chev { color: var(--ink-3, #888); transition: transform .15s; } .pay-row[open] .pay-chev { transform: rotate(90deg); }
@media (max-width: 600px) { .pay-table th:nth-child(3), .pay-table td:nth-child(3), .pay-table th:nth-child(4), .pay-table td:nth-child(4) { display: none; } .pay-table tfoot td[colspan] { display: table-cell; } .pay-row .lr-meta { width: 100%; } .pay-row .lr-meta b.num { margin-left: auto; } }

/* payments-ui redesign */
.pay-search { width: 100%; max-width: 420px; padding: 10px 12px; margin: 0 0 14px; border: 1px solid var(--line, #ddd); border-radius: 8px; font: inherit; background: var(--card, #fff); color: inherit; }
details.pay-batch > summary { cursor: pointer; list-style: none; } details.pay-batch > summary::-webkit-details-marker { display: none; }
.pay-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.pay-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 0; box-shadow: none; border: 1px solid var(--line, #ddd); }
.pay-stat b { font-size: 1.15rem; }
.pay-h3 { font-size: .95rem; margin: 12px 0 6px; display: flex; gap: 8px; align-items: center; cursor: default; }
.pay-unmatched > summary { cursor: pointer; list-style: none; } .pay-unmatched > summary::-webkit-details-marker { display: none; }
.pay-unmatched[open] > summary .pay-chev { transform: rotate(90deg); }
.pay-payee { font-weight: 600; } .pay-date { margin-left: 8px; } .pay-status:empty { display: none; }
@media (max-width: 600px) { .pay-stats { grid-template-columns: repeat(2, 1fr); } .pay-date { display: block; margin: 0; } }

/* payments-polish (20261029d) */
.pay-search { padding: 11px 14px 11px 38px; border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 16px; transition: border-color .15s, box-shadow .15s; }
.pay-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay-batch { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pay-bhead { align-items: center; margin: 0; }
.pay-batch[open] > .pay-bhead { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pay-bhead h2 { font-size: 1.05rem; letter-spacing: .01em; }
.pay-bright { display: flex; align-items: center; gap: 12px; }
.pay-total { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.num, .pay-amt, .pay-total, .pay-stat b, .pay-table td.num { font-variant-numeric: tabular-nums; }
.pay-stats { gap: 12px; margin: 0 0 18px; }
.pay-stat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); --acc: var(--brand-dark); --acc-soft: var(--brand-soft); }
.pay-stat::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); opacity: .75; }
.pay-stat--checks { --acc: #2E5E8C; --acc-soft: #EAF1F8; } .pay-stat--invoices { --acc: #5B4B8A; --acc-soft: #F0EDF7; } .pay-stat--disc { --acc: var(--accent-dark); --acc-soft: var(--warn-soft); }
.pay-ic { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.pay-ic svg { width: 18px; height: 18px; }
.pay-stat-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.pay-stat b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.pay-stat-s { grid-column: 1 / -1; font-size: .75rem; color: var(--ink-3); margin-top: 6px; }
.pay-h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin: 4px 0 8px; font-weight: 700; }
.pay-un-sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.lead-row.pay-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; box-shadow: none; background: transparent; }
.lead-row.pay-row:last-of-type { border-bottom: 0; }
.pay-row > summary { padding: 12px 6px; border-radius: 8px; transition: background .12s; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-row > summary:hover { background: var(--bg); }
.pay-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-payee { font-weight: 600; font-size: .98rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-3); }
.pay-chip { padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: .74rem; }
.pay-sub .pay-date { margin: 0; } .pay-sub > * + *:not(.pay-chip)::before { content: "·"; margin-right: 8px; color: var(--line); }
.pay-sub .pay-date::before { content: none !important; }
.pay-row .lr-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pay-row .lr-meta b.num.pay-amt { min-width: 6.5rem; text-align: right; font-weight: 600; font-size: 1rem; }
.pay-disc { font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-chev { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-3); transition: transform .2s ease, background .15s; }
.pay-chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pay-row[open] > summary .pay-chev, .pay-batch[open] > summary .pay-chev, .pay-unmatched[open] > summary .pay-chev { transform: rotate(180deg); }
.pay-row[open] > summary { background: var(--bg); border-radius: 8px 8px 0 0; }
.pay-row .lr-body { padding: 4px 6px 14px; background: var(--bg); border-radius: 0 0 8px 8px; animation: payIn .18s ease; }
@keyframes payIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pay-table { width: 100%; border-collapse: collapse; font-size: .85rem; background: var(--card); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.pay-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; text-align: left; padding: 9px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.pay-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; }
.pay-table th.num, .pay-table td.num { text-align: right; }
.pay-table tbody tr:last-child td { border-bottom: 0; }
.pay-table tbody tr.click:hover td { background: var(--brand-soft); }
.pay-table tfoot td { border-top: 1px solid var(--line); background: #fafafa; }
.pay-unmatched { margin-top: 18px; padding: 4px 14px 8px; border-radius: var(--r-md); background: #FFFCF2; border: 1px dashed #E6D7A6; }
.pay-unmatched > summary.pay-h3 { margin: 0; padding: 10px 0; justify-content: flex-start; }
.pay-unmatched > summary .pay-chev { margin-left: auto; }
.pay-un-title { color: var(--warn); }
.pay-unmatched .lead-row.pay-row { border-bottom-color: #F0E6C8; }
.pay-unmatched .pay-row > summary:hover, .pay-unmatched .pay-row[open] > summary, .pay-unmatched .pay-row .lr-body { background: #FFF6D6; }
@media (prefers-reduced-motion: reduce) { .pay-chev, .pay-row .lr-body { transition: none; animation: none; } }
@media (max-width: 600px) {
  .pay-batch { padding: 14px; }
  .pay-total { font-size: 1.15rem; }
  .pay-stats { gap: 8px; } .pay-stat { padding: 11px; } .pay-ic { width: 28px; height: 28px; } .pay-stat b { font-size: 1.05rem; }
  .pay-row > summary { flex-wrap: nowrap; }
  .pay-row .lr-meta { width: auto; gap: 6px; } .pay-row .lr-meta b.num.pay-amt { min-width: 0; font-size: .95rem; }
  .pay-disc { display: none; }
  .pay-payee { white-space: normal; }
}
/* payments-polish overrides */
details.pay-batch > summary::before, details.pay-unmatched > summary::before, .lead-row.pay-row > summary::before, .lead-row.pay-row > summary::after { content: none !important; display: none !important; }
details.pay-batch > summary.pay-bhead { padding: 0; display: flex; justify-content: space-between; align-items: center; text-align: left; flex-wrap: nowrap; min-height: 0; }
main details.pay-batch, main details.pay-batch[open] { border-left: 1px solid var(--line) !important; }
main details.lead-row.pay-row, main details.lead-row.pay-row[open] { border-left: 0 !important; }
main .lead-row.pay-row, main .lead-row.pay-row[open] { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
main .pay-unmatched .lead-row.pay-row { border-bottom-color: #F0E6C8; }
main details.pay-unmatched, main details.pay-unmatched[open] { border-left: 1px dashed #E6D7A6 !important; }
main details.pay-row > summary { padding: 12px 8px; min-height: 0; }
main details.pay-unmatched > summary.pay-h3 { padding: 10px 0; min-height: 0; }
.pay-row[open] > summary .pay-chev, .pay-batch[open] > summary .pay-chev, .pay-unmatched[open] > summary .pay-chev { transform: none; }
.pay-chev::before { transition: transform .2s ease; }
.pay-row[open] > summary .pay-chev::before, .pay-batch[open] > summary .pay-chev::before, .pay-unmatched[open] > summary .pay-chev::before { transform: translateY(2px) rotate(-135deg); }
.pay-table tr.is-paid td { color: var(--ink-2); background: transparent; }
.pay-table tr.is-paid td.num { color: var(--ink); }
.pay-table tr.is-paid.unmatched td { color: var(--ink-2); }
/* Uncleared checks reminder */
.pay-uncleared,main details.pay-uncleared,main details[open].pay-uncleared{border-left:4px solid #c0392b !important;background:#fff5f4 !important;margin-bottom:16px}
.pay-uncleared h2{color:#a93226;font-size:1.05rem;margin:0}
.pay-uncleared .pay-total{color:#a93226}
.pay-uncleared .tablewrap{padding:0 12px}
.pay-un-note{font-size:.75rem;color:var(--ink-2);margin-top:2px;white-space:normal}
.pay-un-foot{padding:0 12px 10px;margin:8px 0 0}
/* Analytics (Chris only) */
.an-pos { color: #1b7a3a; } .an-neg { color: #b42318; }
.an-bars td { padding-top: 0; border-top: 0; } .an-bar { display: block; height: 6px; border-radius: 3px; margin: 2px 0; } .an-bar.in { background: #1b7a3a; } .an-bar.out { background: #b42318; opacity: .75; }
.an-caveats { margin: 12px 0 0; padding-left: 18px; }
@media (max-width: 600px) { .an-table th:nth-child(3), .an-table td:nth-child(3), .an-table th:nth-child(4), .an-table td:nth-child(4) { display: table-cell; } .an-ct th:nth-child(3), .an-ct td:nth-child(3) { display: none; } }
.an-tax { color: var(--ink-3, #999); opacity: .7; } .an-tag { font-size: .72em; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; margin-left: 2px; white-space: nowrap; }

/* =====================================================================
   UI OVERHAUL v2 (2026-10-29): visual layer only. Same classes, same markup hooks.
   CKI palette kept: crest green #4BB430 / ckilock green #00A651 / text green #007A3D,
   gold #D4A843 / crest gold #FFCF03, black #0a0a0a. Contrast checked for text pairs.
   ===================================================================== */
:root {
  --bg: #f4f5f2; --card: #fff; --line: #e4e7e1; --line-2: #eef0ec;
  --ink: #141714; --ink-2: #4f554f; --ink-3: #646a64;
  --header: #070807;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(16,24,16,.05), 0 4px 14px rgba(16,24,16,.05);
  --shadow-lg: 0 2px 4px rgba(16,24,16,.06), 0 14px 36px rgba(16,24,16,.10);
  --gold-line: linear-gradient(90deg, transparent, #D4A843 18%, #FFCF03 50%, #D4A843 82%, transparent);
  --green-grad: linear-gradient(180deg, #0a8a45 0%, #007A3D 100%);
}
html { background: var(--bg); scroll-behavior: smooth; }
body { background: radial-gradient(1400px 420px at 50% -120px, rgba(75,180,48,.10), transparent 70%), var(--bg); background-repeat: no-repeat; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(212,168,67,.35); }
h1 { letter-spacing: -.015em; font-weight: 800; } h2 { letter-spacing: -.01em; }

/* ---- Header: deep black, faint green glow, gold hairline ---- */
.site-header { background: radial-gradient(900px 140px at 12% 0, rgba(75,180,48,.16), transparent 70%), linear-gradient(180deg, #0d0f0d, #060706); border-bottom: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-line); }
.brand { gap: 14px; }
.brand .crest { height: 64px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(75,180,48,.18)); }
.brand b { letter-spacing: .01em; font-weight: 700; }
.brand small { color: #D4A843; letter-spacing: .26em; font-size: 12px; font-weight: 700; display: block; margin-top: 2px; }
.nav { gap: 2px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.site-header .nav-link { color: #d9ddd8; font-size: 14px; font-weight: 600; letter-spacing: .06em; padding: 8px 13px; border-radius: 9px; transition: color .15s, background .15s; }
.site-header .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-header .nav-link.active { color: #0a0a0a; background: linear-gradient(180deg, #E6C060, #D4A843); box-shadow: 0 2px 10px rgba(212,168,67,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.site-header .nav-link.active .pill { background: #0a0a0a; color: #FFCF03; }
.site-header .pill { background: #D4A843; color: #0a0a0a; font-size: 12px; padding: 1px 8px; line-height: 1.5; }
.site-header .search input { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px 10px 38px; color: #fff; transition: border-color .15s, background .15s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3aaa2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; background-size: 16px; }
.site-header .search input::placeholder { color: #9aa199; }
.site-header .search input:focus { outline: none; border-color: #D4A843; background-color: rgba(255,255,255,.09); }
.site-header .who { color: #6fd04f; font-size: 15px; font-weight: 700; }
.site-header .user button.nav-link, .site-header .user a.nav-link { background: transparent; border: 1px solid rgba(255,255,255,.14); }
.site-header .user .nav-link:hover { border-color: #D4A843; }

/* ---- Page titles ---- */
main { padding-top: 36px; }
.page-head { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-head h1, main > h1, #app > h1 { font-size: 30px; }
.label::before { width: 26px; background: linear-gradient(90deg, #D4A843, #FFCF03); border-radius: 2px; }
.label span { color: var(--brand-dark); letter-spacing: .24em; }
.section-title { font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); }

/* ---- Surfaces: one card language everywhere (soft border, inset brand bar, layered shadow) ---- */
.card, .kpi, .vcard, .stat, .ucard, .inv-tile, .lead-bubble, .pay-batch, .props:not(.inv-props) > div, .plans {
  background: var(--card); border: 1px solid var(--line) !important; border-radius: var(--r-md); box-shadow: var(--shadow), inset 0 3px 0 var(--brand);
}
.inv-tile, .lead-bubble { border-top-width: 1px !important; }
.card:hover, .kpi:hover, .vcard:hover, .stat:hover, .inv-tile:hover, .lead-bubble:hover, a.inv-tile:focus-visible { box-shadow: var(--shadow-lg), inset 0 3px 0 #D4A843; border-color: #d8dcd3 !important; }
.stat { transition: box-shadow .18s, transform .18s; } .stat:hover { transform: translateY(-2px); }
.stat.hot { box-shadow: var(--shadow), inset 0 3px 0 var(--danger); } .stat.warn, .inv-tile.pending, .lead-bubble.review { box-shadow: var(--shadow), inset 0 3px 0 #C99A2E; }
.stat.gold { box-shadow: var(--shadow), inset 0 3px 0 #D4A843; }
.lead-bubble.empty { background: #f6f7f5; box-shadow: none; border-style: dashed !important; }
.ucard.dim { box-shadow: var(--shadow), inset 0 3px 0 #c3c7c2; }
.stat-ic, .feed-ic { background: linear-gradient(180deg, #F1F8EC, #E4F2DC); color: var(--brand-dark); box-shadow: inset 0 0 0 1px rgba(0,122,61,.10); border-radius: 12px; }
.stat-body b, .kpi b, .lead-count { letter-spacing: -.02em; }
.stat-body > span { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3); }
.empty, .empty-state { background: #fff; border: 1px dashed #cfd8c9; border-radius: var(--r-md); box-shadow: none; }
.inv-tile-total { color: #7A5C00; }
.vt-stats > span { background: #f5f7f3; border: 1px solid var(--line-2); }

/* ---- Buttons & controls ---- */
.btn { background: var(--green-grad); border-radius: 10px; letter-spacing: .07em; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18); transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: linear-gradient(180deg, #007A3D, #006633); box-shadow: 0 4px 14px rgba(0,122,61,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1px solid #d3dccd; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn.ghost:hover { background: #f3f9ef; border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,122,61,.12); }
.seg { border-radius: 11px; padding: 3px; gap: 2px; background: #eceee9; border: 1px solid var(--line); }
.seg button { border-radius: 8px; color: var(--ink-2); font-weight: 600; transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(0,0,0,.10); }
select, .field, .inv-filters input[type=search], .inv-filters select, #hq, .pay-search, .confirm-form input, .form-grid input, .form-grid select { border: 1px solid #d9ddd5; border-radius: 10px; background-color: #fff; transition: border-color .15s, box-shadow .15s; }
select:focus, .field:focus, .inv-filters input:focus, #hq:focus, .confirm-form input:focus, .form-grid input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,166,81,.15); }
.chip { border-color: #dde1d9; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s; } .chip:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.tag { border-radius: 999px; font-weight: 700; letter-spacing: .01em; }

/* ---- Tables ---- */
th { color: var(--ink-3); letter-spacing: .08em; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line-2); } tr:hover td { background: #f7faf5; }
@media screen {
  table.invtable { border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); border-collapse: separate; border-spacing: 0; }
  table.invtable thead th { background: linear-gradient(180deg, #151815, #0a0b0a); color: #eef0ed; font-size: 12px; letter-spacing: .1em; padding-top: 13px; padding-bottom: 13px; }
  table.invtable thead th:first-child { border-top-left-radius: var(--r-md); } table.invtable thead th:last-child { border-top-right-radius: var(--r-md); }
  table.invtable tbody tr:nth-child(even) { background: #fafbf9; }
  main details:not(.agroup):not(.soft) { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow); }
  main details[open]:not(.agroup):not(.soft) { border-left: 3px solid var(--brand); }
}
.tablewrap { -webkit-overflow-scrolling: touch; }

/* ---- Alerts ---- */
.acard { border: 1px solid var(--line); border-left: 4px solid var(--sev); border-radius: 12px; box-shadow: var(--shadow); }
.acard-logo { border-color: var(--line-2); border-radius: 12px; }

/* ---- Leads ---- */
.lead-row, .claim-group { border-color: var(--line) !important; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s; }
.lead-row:hover { box-shadow: var(--shadow); }
.lead-contact { background: linear-gradient(180deg, #F3F9EF, #EAF5E3); border: 1px solid #dbecd2; border-radius: 10px; }

/* ---- Payments ---- */
.pay-batch { padding: 18px 20px; }
.pay-stat { border-radius: 12px; box-shadow: var(--shadow); border-color: var(--line); }
.pay-total { font-weight: 700; letter-spacing: -.01em; }
.pay-table { border-color: var(--line); border-radius: 10px; }
.pay-uncleared, main details.pay-uncleared, main details[open].pay-uncleared { background: linear-gradient(180deg, #FFF7F6, #FFF1EF) !important; border: 1px solid #F3D3CF !important; border-left: 4px solid #B42318 !important; box-shadow: var(--shadow), inset 0 0 0 0 transparent !important; }
.pay-uncleared h2, .pay-uncleared .pay-total { color: #A3201A; }

/* ---- Analytics ---- */
.an-bar { height: 7px; border-radius: 4px; } .an-bar.in { background: linear-gradient(90deg, #00A651, #007A3D); } .an-bar.out { background: linear-gradient(90deg, #d9534a, #B42318); opacity: .85; }
.an-pos { color: #0f6e33; font-weight: 700; } .an-neg { color: #B42318; font-weight: 700; }
.an-tax { color: #6b716b; opacity: 1; } .an-tax .an-tag { background: #eef0ed; border-color: #cfd3ce; color: #555b55; }

/* ---- Toast, footer ---- */
.toast { border-radius: 12px; border-left: 0; box-shadow: var(--shadow-lg), inset 3px 0 0 #D4A843; background: #0d0f0d; }
.foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }

/* ---- Auth (login / change password) ---- */
body.auth { background: radial-gradient(900px 520px at 50% -8%, rgba(75,180,48,.26), transparent 65%), radial-gradient(700px 400px at 50% 110%, rgba(212,168,67,.12), transparent 70%), #060706; }
.auth-card { background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.6) !important; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(212,168,67,.25), inset 0 4px 0 #D4A843; padding: 36px 34px 28px; }
.auth-crest { height: 150px; width: auto; margin: -6px 0 10px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.auth-card h1 { font-size: 26px; margin-top: 4px; }
.auth-card input { border-radius: 10px; border-color: #d3d8cf; background: #fbfcfa; transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,166,81,.18); background: #fff; }
.btn.block { padding: 14px; font-size: 14px; border-radius: 12px; }
.auth-foot { color: #8f968e; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1380px) and (min-width: 901px) { .nav { width: 100%; justify-content: flex-start; } }
@media (max-width: 900px) {
  .nav { width: 100%; padding: 3px; }
  .site-header .nav-link { padding: 8px 11px; font-size: 13.5px; }
  .site-header .search input { font-size: 16px; }
}
@media (max-width: 700px) {
  main { padding-top: 22px; }
  .brand .crest { height: 52px; }
  .brand small { letter-spacing: .18em; font-size: 11px; }
  .page-head h1, main > h1, #app > h1 { font-size: 24px; }
  .nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .site-header .nav-link { flex: 1 0 auto; justify-content: center; padding: 6px 10px; font-size: 13px; letter-spacing: .04em; }
  .card { padding: 18px 16px; }
  .auth-card { padding: 28px 20px 22px; } .auth-crest { height: 124px; }
}
@media (prefers-reduced-motion: reduce) { .stat:hover { transform: none; } html { scroll-behavior: auto; } }
@media print { .site-header::after { display: none; } .card, .kpi, .stat, .inv-tile { box-shadow: none !important; } body { background: #fff; } }
@media (max-width: 700px) { .site-header { position: relative; } }
@media (min-width: 1381px) and (max-width: 1640px) { .header-row { flex-wrap: wrap; height: auto; padding: 10px 0 10px; row-gap: 8px; } .brand { order: 1; } .search { order: 2; } .user { order: 3; } .nav { order: 4; width: 100%; } .site-header .search input { width: 260px; } }
/* Compact phone header (ui3): row 1 = crest + search + sign out; row 2 = one scrollable tab row */
@media (max-width: 700px) {
  .header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0 8px; height: auto; }
  .brand { order: 1; flex: 0 0 auto; min-width: 0; min-height: 44px; gap: 0; }
  .brand .crest { height: 44px; }
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search { order: 2; flex: 1 1 0; min-width: 0; width: auto; margin: 0; }
  .site-header .search input { width: 100%; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .user { order: 3; flex: 0 0 auto; margin-left: 0; }
  .site-header .user .who { display: none; }
  .site-header .user .nav-link { padding: 0 12px; font-size: 13px; }
  .nav { order: 4; width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 3px; gap: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .site-header .nav-link { flex: 0 0 auto; scroll-snap-align: start; padding: 0 12px; min-height: 44px; font-size: 13px; white-space: nowrap; }
}
/* ui5: header never wider than the screen. Desktop: brand + search + user on row 1, tabs on their own row. */
.site-header { width: 100%; max-width: 100%; left: 0; right: 0; }
.header-row { min-width: 0; max-width: 100%; }
.brand, .search, .user { min-width: 0; }
@media (min-width: 901px) {
  .header-row { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .brand { order: 1; } .search { order: 2; margin-left: auto; } .user { order: 3; } .nav { order: 4; width: 100%; flex-wrap: wrap; }
  .site-header .search input { width: clamp(180px, 24vw, 320px); }
  .site-header .who { max-width: 180px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
}
/* stat grids (Payments / Analytics) shrink instead of pushing the page wider */
.pay-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.pay-stat, .pay-stat > * { min-width: 0; } .pay-stat b, .pay-stat-l, .pay-stat .num { overflow-wrap: anywhere; }
@media (max-width: 600px) { .pay-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
main, #app { max-width: 100%; } #app > * { max-width: 100%; }
/* Analytics charts (11/2) */
.an-sum { margin-bottom: 14px; }
.an-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 16px; }
.an-chart h2 { margin: 0 0 2px; } .an-chart > div { margin-top: 8px; }
@media (max-width: 900px) { .an-charts { grid-template-columns: 1fr; } }
.an-row-h { font-size: 15px; margin: 6px 0 8px; } .an-sum3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 700px) { .an-sum3 { grid-template-columns: 1fr; } }
.an-ch-box { min-height: 300px; } .an-chart { min-width: 0; overflow: hidden; } .an-charts > * { min-width: 0; }
@media (max-width: 600px) { .an-ch-box { min-height: 240px; } .an-charts { gap: 12px; } .an-row-h { font-size: 14px; } .an-row-h .small { display: block; margin-top: 2px; } .an-sum3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-sum3 > :last-child { grid-column: 1 / -1; } }
