@font-face { font-family: "CMN Display"; src: url("/fonts/cmn-display-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "CMN Display"; src: url("/fonts/cmn-display-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* ConsoleMeNow - shared styles
   Direction: warehouse shelving. Steel-blue ink, bin-tape yellow, label-maker tape for locations.
   Light and dark themes are driven by <html data-theme="light|dark"> (set by /js/theme.js). */

:root {
  --bg: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --ink: #10212f;
  --muted: #52667a;
  --line: #d3dbe3;
  --line-strong: #aebccb;
  --accent: #f5c400;
  --accent-hover: #ffd21f;
  --accent-ink: #1d1600;
  --link: #175b8e;
  --tape-bg: #10212f;
  --tape-ink: #f1f5f9;
  --ok: #17734b;
  --ok-bg: #dff3e8;
  --warn-bg: #fff2bf;
  --warn-ink: #5c4600;
  --danger: #b42318;
  --danger-bg: #fde4e1;
  --bar: #2c5f86;
  --bar-2: #8fb3cf;
  --shadow: 0 1px 0 rgba(16, 33, 47, .04), 0 8px 24px -12px rgba(16, 33, 47, .25);

  --font-geo: "CMN Display", "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a141e;
  --surface: #101e2b;
  --surface-2: #152636;
  --ink: #e7edf3;
  --muted: #92a5b8;
  --line: #21364a;
  --line-strong: #37506a;
  --accent: #f5c400;
  --accent-hover: #ffd21f;
  --link: #7dbdf1;
  --tape-bg: #e7edf3;
  --tape-ink: #0a141e;
  --ok: #62d69f;
  --ok-bg: #123b2a;
  --warn-bg: #3d3208;
  --warn-ink: #ffe07a;
  --danger: #ff8f84;
  --danger-bg: #431a17;
  --bar: #6fb0e6;
  --bar-2: #2f5677;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1360px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 0 18px; border-radius: 4px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, transform .06s;
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #c4ccd4; }
.btn-google:hover { border-color: #1f1f1f; }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); }
:root[data-theme="dark"] .btn-danger-solid { color: #1a0604; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 4px;
  background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ---------- header ---------- */
.site-header { border-bottom: 1.5px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap, .site-header .wrap-wide { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-geo); font-weight: 700; font-size: 21px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .box { fill: var(--accent); }
.brand-mark .chev { stroke: #10212f; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- tape (location labels) ---------- */
.tape {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  background: var(--tape-bg); color: var(--tape-ink);
  font: 600 12px/1 var(--font-mono); letter-spacing: .02em;
  padding: 5px 8px 5px 8px; border-radius: 2px;
}
.tape .sep { opacity: .55; padding: 0 3px; }
.tape-empty { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); font-weight: 500; }

/* ---------- landing ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -.02em; line-height: .98; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.error-banner { background: var(--danger-bg); color: var(--danger); border: 1.5px solid var(--danger); padding: 12px 16px; border-radius: 4px; margin: 20px 0 0; font-weight: 500; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border: 1.5px solid var(--accent); padding: 12px 16px; border-radius: 4px; margin: 0 0 20px; }

.sheet { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); background: var(--surface-2); font-weight: 600; }
.sheet-head .grow { flex: 1; }
.sheet-note { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 9px 16px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.mini-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .r { text-align: right; }
.mini-table .sub { display: block; font-size: 12.5px; color: var(--muted); }
.hero .tape { animation: tape-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.hero .mini-table tr:nth-child(1) .tape { animation-delay: .25s; }
.hero .mini-table tr:nth-child(2) .tape { animation-delay: .4s; }
.hero .mini-table tr:nth-child(3) .tape { animation-delay: .55s; }
.hero .mini-table tr:nth-child(4) .tape { animation-delay: .7s; }
.hero .mini-table tr:nth-child(5) .tape { animation-delay: .85s; }
@keyframes tape-in { from { opacity: 0; transform: translateX(-14px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

.section { padding: 72px 0; border-top: 1.5px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.spec { padding: 20px 0; border-top: 1.5px solid var(--line-strong); }
.spec dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; }
.spec dd { margin: 0; color: var(--muted); max-width: 32em; }

.insight-demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.demo-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.demo-msgs li { padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-left: 5px solid var(--bar); border-radius: 3px; }
.demo-msgs li.warn { border-left-color: var(--accent); }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.price-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.price-list li { padding-left: 28px; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.tag-outer { background: var(--line-strong); clip-path: polygon(34px 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%, 0 34px); }
.tag-inner { position: relative; margin: 2px; background: var(--surface); clip-path: polygon(33px 0, calc(100% - 33px) 0, 100% 33px, 100% 100%, 0 100%, 0 33px); padding: 64px 32px 32px; }
.tag-inner::before { content: ""; position: absolute; top: 18px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.tag-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.tag-price { font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; letter-spacing: -.02em; }
.tag-price small { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tag-inner .btn { width: 100%; margin-top: 22px; }

.faq { max-width: 46em; }
.faq details { border-top: 1.5px solid var(--line-strong); padding: 16px 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--line-strong); }
.faq summary { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.site-footer { border-top: 1.5px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap, .site-footer .wrap-wide { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer .grow { flex: 1; }
.site-footer a { color: var(--muted); }

/* ---------- simple pages (subscribe, privacy, terms) ---------- */
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; padding: 56px 0 72px; }
.narrow h1 { font-family: var(--font-geo); letter-spacing: -.045em; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.narrow h2 { font-family: var(--font-geo); letter-spacing: -.035em; font-size: 1.4rem; margin: 32px 0 8px; }
.narrow ul { padding-left: 1.2em; }
.narrow li { margin-bottom: .4em; }
.panel { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; padding: 28px; box-shadow: var(--shadow); }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line); object-fit: cover; flex: none; }
.who .grow { flex: 1; min-width: 0; }
.who strong, .who span { display: block; overflow: hidden; text-overflow: ellipsis; }

/* ---------- app shell ---------- */
.app-header .wrap-wide { gap: 16px; }
.tabs { display: flex; gap: 4px; margin-left: 18px; }
.tab { border: 0; background: transparent; padding: 0 14px; min-height: 64px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
main.app { padding: 24px 0 80px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 38px; }
.input, .select, .textarea, .search input {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 4px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.search input { padding-left: 38px; }
.input:hover, .select:hover, .textarea:hover, .search input:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .search input:focus-visible { outline: 3px solid var(--link); outline-offset: 0; border-color: var(--link); }
.textarea { min-height: 88px; resize: vertical; }
.select { padding-right: 30px; }
.toolbar .select, .toolbar .input { width: auto; }

.panel-strip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.panel-strip summary { font-weight: 600; cursor: pointer; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.sortbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.sortbar .group { display: flex; gap: 6px; align-items: end; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.dir-btn { min-width: 42px; padding: 0; font-family: var(--font-mono); font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.summary { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; padding: 4px 2px 12px; color: var(--muted); }
.summary strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }

.bulkbar { position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-weight: 600; }
.bulkbar .btn { border-color: rgba(29, 22, 0, .5); background: rgba(255, 255, 255, .5); color: var(--accent-ink); }
.bulkbar .btn:hover { background: #fff; }
.bulkbar .grow { flex: 1; }

.table-wrap { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; overflow-x: auto; box-shadow: var(--shadow); }
table.inv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.inv th { position: sticky; top: 0; text-align: left; background: var(--surface-2); border-bottom: 1.5px solid var(--line-strong); padding: 0; white-space: nowrap; }
table.inv th button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 11px 12px; border: 0; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; text-align: inherit; }
table.inv th button:hover { color: var(--ink); }
table.inv th.sorted button { color: var(--ink); }
table.inv th.r button { justify-content: flex-end; }
table.inv th .arrow { font-family: var(--font-mono); font-size: 12px; }
table.inv th.plain { padding: 11px 12px; color: var(--muted); font-weight: 600; }
table.inv td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.inv tbody tr.item { cursor: pointer; }
table.inv tbody tr.item:hover td { background: var(--surface-2); }
table.inv tbody tr.item.selected td { background: var(--warn-bg); }
table.inv td.r { text-align: right; }
table.inv .name { font-weight: 600; }
table.inv .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.inv .cb { width: 42px; padding-right: 0; }
table.inv input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
tr.group-row td { background: var(--surface-2); padding: 10px 12px; border-top: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); font-weight: 600; }
tr.group-row .gmeta { color: var(--muted); font-weight: 500; margin-left: 12px; }
.serial { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line-strong); background: var(--surface); white-space: nowrap; }
.badge.b-lent, .badge.b-repair { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--accent); }
.badge.b-storage { background: var(--surface-2); }
.badge.b-gone { color: var(--muted); border-style: dashed; }
.badge.b-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.b-bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.more-row { text-align: center; padding: 16px; }
.empty { padding: 56px 24px; text-align: center; }
.empty h3 { font-size: 1.6rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 32em; margin: 0 auto 20px; }

@media (max-width: 1000px) { .c-md { display: none; } }
@media (max-width: 720px) { .c-sm { display: none; } }

/* ---------- insights ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface); margin-bottom: 24px; overflow: hidden; }
.kpi { padding: 18px 20px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); margin: 0 -1.5px -1.5px 0; }
.kpi .v { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 13.5px; }
.kpi .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.msgs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.msgs li { background: var(--surface); border: 1.5px solid var(--line); border-left: 5px solid var(--bar); padding: 11px 16px; border-radius: 3px; }
.msgs li.warn { border-left-color: var(--accent); background: var(--surface); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; padding: 20px; min-width: 0; }
.card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--bar); min-width: 2px; transition: width .35s ease-out; }
.bar-row:first-child .bar-fill { background: var(--accent); }
.bar-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.split { display: flex; height: 28px; border-radius: 3px; overflow: hidden; background: var(--surface-2); margin: 6px 0 12px; }
.split > div { height: 100%; }
.split .s0 { background: var(--bar); }
.split .s1 { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border-radius: 2px; vertical-align: -1px; }
.columns { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 8px; border-bottom: 1.5px solid var(--line-strong); }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.col .bar { width: 100%; max-width: 46px; background: var(--bar); border-radius: 2px 2px 0 0; min-height: 2px; }
.col .amt { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-labels { display: flex; gap: 10px; margin-top: 6px; }
.col-labels span { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.meter .track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--ok); }
.meter .fill.low { background: var(--accent); }
.score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }

/* ---------- account ---------- */
.account-grid { display: grid; gap: 20px; max-width: 760px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row .grow { flex: 1; min-width: 200px; }
.card + .card { margin-top: 0; }
.danger-zone { border-color: var(--danger); }

/* ---------- dialogs ---------- */
dialog.modal {
  border: 1.5px solid var(--line-strong); border-radius: 6px; padding: 0; background: var(--surface); color: var(--ink);
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
}
dialog.modal.small { width: min(460px, calc(100% - 24px)); }
dialog.modal::backdrop { background: rgba(6, 14, 22, .62); }
dialog.modal[open] { display: flex; flex-direction: column; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1.5px solid var(--line); }
.modal-head h2 { font-size: 1.4rem; flex: 1; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; border-top: 1.5px solid var(--line); background: var(--surface-2); }
.modal-foot .grow { flex: 1; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.f { grid-column: span 3; min-width: 0; }
.f.w2 { grid-column: span 2; }
.f.w4 { grid-column: span 4; }
.f.full { grid-column: 1 / -1; }
.f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.f .hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.req { color: var(--danger); }
.cf-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.form-error { color: var(--danger); font-weight: 600; margin: 0; }
.biz-note { margin: 22px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent); color: var(--ink); font-size: .95rem; }
.biz-note a { color: var(--link); }
.form-note { margin: 0 0 20px; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent); color: var(--muted); font-size: .95rem; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 4px; font-weight: 500; box-shadow: var(--shadow); animation: pop .16s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .toast.err { color: #1a0604; }

.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0; }
  .hero-grid, .insight-demo, .pricing { grid-template-columns: 1fr; gap: 36px; }
  .spec-list { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing .tag-outer { max-width: 400px; }
  .nav .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f, .f.w2, .f.w4 { grid-column: span 2; }
  .f.half { grid-column: span 1; }
  .cf-row { grid-template-columns: 1fr 1fr auto; }
  .tab { padding: 0 9px; }
  .header-actions .btn span { display: none; }
  .brand span { display: none; }
  .section { padding: 48px 0; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .bar-track { grid-column: 1 / -1; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- app additions ---------- */
.namebtn, .linkbtn { border: 0; background: transparent; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.namebtn { font-weight: 600; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.namebtn:hover, .linkbtn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.namebtn:focus-visible, .linkbtn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
table.inv tbody tr.item.gone td:not(.cb) { opacity: .6; }
.import-note { margin: 0 0 8px; }
.import-note.bad { color: var(--danger); font-weight: 600; }
.import-list { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); }
.empty .row { justify-content: center; }
.kpi .v.small { font-size: 1.6rem; }
.list .sub-line { display: block; font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .app-header .wrap-wide { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 8px; }
  .app-header .brand { min-height: 44px; }
  .app-header .tabs { order: 3; width: 100%; margin-left: 0; }
  .app-header .tab { flex: 1; min-height: 46px; padding: 0 6px; }
  .app-header .header-actions { margin-left: auto; }
  .bulkbar { top: 108px; }
}

/* footer used inside the app and on the subscribe page */
.site-footer .wrap-wide { width: min(1360px, 100% - 32px); }
