@font-face {
  font-family: "IBM Plex Sans";
  src: url("../vendor/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../vendor/fonts/ibm-plex-mono-medium-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../vendor/fonts/ibm-plex-mono-semibold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f2f0e9;
  --canvas-strong: #e9e6dd;
  --paper: #fffefa;
  --paper-2: #f8f6ef;
  --ink: #17221c;
  --ink-soft: #46534b;
  --muted: #6e7971;
  --line: #d9dbd4;
  --line-strong: #c5c9c1;
  --shell: #17231d;
  --shell-2: #213028;
  --shell-text: #f7f4ea;
  --accent: #f26b2b;
  --accent-strong: #d84e13;
  --accent-soft: #ffeadf;
  --pay: #137a50;
  --pay-soft: #e4f2eb;
  --warn: #9a640c;
  --warn-soft: #fff1d6;
  --danger: #b74236;
  --danger-soft: #fae8e5;
  --shadow-sm: 0 1px 2px rgba(20, 31, 25, .05), 0 5px 18px rgba(20, 31, 25, .04);
  --shadow-md: 0 12px 34px rgba(20, 31, 25, .09);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111713;
  --canvas-strong: #18201b;
  --paper: #1a241e;
  --paper-2: #202c25;
  --ink: #f5f2e9;
  --ink-soft: #c0c9c2;
  --muted: #93a097;
  --line: #344139;
  --line-strong: #45544b;
  --shell: #0c120f;
  --shell-2: #17211b;
  --shell-text: #f7f4ea;
  --accent: #ff7b3d;
  --accent-strong: #ff935f;
  --accent-soft: #442317;
  --pay: #51d598;
  --pay-soft: #17392a;
  --warn: #ffc15a;
  --warn-soft: #3c3019;
  --danger: #ff8d82;
  --danger-soft: #40221f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 5px 18px rgba(0, 0, 0, .12);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .56; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { display: block; }
mark { padding: 0 2px; border-radius: 3px; background: var(--warn-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  background: var(--shell);
  color: var(--shell-text);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 9px 9px 9px 3px;
  font: 700 15px/1 var(--mono);
  letter-spacing: -.8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .13);
  transform: rotate(-1deg);
}
.brand-word { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.35px; line-height: 1; }
.brand-sub { color: #aeb9b2; font: 500 9px/1 var(--mono); letter-spacing: 1.25px; text-transform: uppercase; }
.demo-badge {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #d8dfda;
  background: rgba(255, 255, 255, .07);
  font: 600 9px/1 var(--mono);
  letter-spacing: .65px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; align-self: stretch; align-items: center; gap: 4px; }
.nav-btn {
  position: relative;
  height: 100%;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #b9c2bc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-btn:hover, .nav-btn:focus-visible { color: #fff; }
.nav-btn.active { color: #fff; }
.nav-btn.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signup-cta {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.signup-cta:hover { background: var(--accent-strong); }
.icon-btn, .profile-btn {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .06);
  color: #e9edea;
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn { width: 42px; display: grid; place-items: center; font-size: 18px; }
.icon-btn:hover, .profile-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.profile-wrap { position: relative; }
.profile-btn { padding: 0 11px 0 8px; display: inline-flex; align-items: center; gap: 9px; }
.profile-label { font-size: 13px; font-weight: 600; }
.profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 240px;
  padding: 7px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.profile-menu p { margin: 7px 9px 9px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.profile-menu p b { color: var(--ink); }
.menu-btn {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.menu-btn:hover { background: var(--paper-2); }
.menu-link { display: flex; align-items: center; color: var(--accent-strong); text-decoration: none; }
.danger-text { color: var(--danger); }
body:not([data-view="app"]) #appNav,
body:not([data-view="app"]) #profileWrap,
body:not([data-view="app"]) #bottomNav { display: none; }

.app-main { max-width: 1280px; margin: 0 auto; padding: 34px 28px 110px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.main-column { min-width: 0; }
.page-heading { margin-bottom: 20px; }
.eyebrow, .step-no, .check-kicker {
  color: var(--accent-strong);
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.page-heading h1 { margin: 7px 0 7px; font-size: clamp(28px, 4vw, 43px); line-height: 1.03; letter-spacing: -1.55px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.search-command {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 8px 18px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-command:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.search-icon { color: var(--muted); }
.search-command input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.search-command input::placeholder { color: var(--muted); }
.primary-btn, .secondary-btn, .auth-primary, .auth-secondary, .google-btn, .addcheck, .pc-save, .pc-action-primary, .pc-action-icon {
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.primary-btn {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.primary-btn:hover { background: var(--accent-strong); }
.inline-cta { display: inline-flex; align-items: center; text-decoration: none; }
.secondary-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.secondary-btn:hover { border-color: var(--accent); }
.secondary-btn.danger { color: var(--danger); }
.clearbtn {
  display: none;
  margin: 9px 0 0 auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  cursor: pointer;
}
.shortcuts { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 12px 0 24px; }
.import-mobile { display: none; }
.shortcuts .lbl { color: var(--muted); font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .7px; }
.chip {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip code { color: var(--accent-strong); font: 600 11px/1 var(--mono); }

.card, .welcome-card, .activity-card, .summary > .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.summary { margin: 0 0 26px; }
.summary:empty { display: none; }
.summary > .card { padding: 22px; }
.summary .store-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.summary .sub { margin: 5px 0 18px; color: var(--muted); font-size: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.stat { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.stat .lbl { color: var(--muted); font: 600 9px/1.3 var(--mono); letter-spacing: .7px; text-transform: uppercase; }
.stat .val { margin-top: 6px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.stat .val.pay { color: var(--pay); }
.stat .val small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.racks h4 { margin: 0 0 8px; color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.rack-chip {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rack-chip:hover, .rack-chip:focus-within, .rack-chip.selected { border-color: var(--accent); background: var(--accent-soft); }
.rack-filter {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rack-chip .name { min-width: 0; font-weight: 700; }
.rack-chip .pill, .rack-chip .warn {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  font: 600 9px/1 var(--mono);
  vertical-align: middle;
}
.rack-chip .pill { background: var(--pay-soft); color: var(--pay); }
.rack-chip .warn { background: var(--warn-soft); color: var(--warn); text-transform: uppercase; }
.rack-chip .right { flex: none; display: flex; align-items: center; gap: 8px; }
.rack-chip .avg { color: var(--pay); font: 600 14px/1 var(--mono); }
.rack-chip .chev { color: var(--muted); font-size: 22px; }
.addcheck {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent-strong);
  font-size: 11px;
}
.addcheck:hover { background: var(--accent); color: #fff; }
.bar { height: 3px; margin: -3px 10px 0; overflow: hidden; border-radius: 999px; background: var(--line); }
.bar > span { display: block; height: 100%; background: var(--accent); }
.rack-filter-hint { margin-top: 9px; color: var(--muted); text-align: center; font-size: 11px; }
.rack-filter-hint button, .linkish, .text-link, .backstores {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  cursor: pointer;
  text-decoration: underline;
}
.backstores { display: inline-block; margin-bottom: 10px; }
.legend { margin-top: 16px; padding-top: 13px; display: flex; flex-wrap: wrap; gap: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.legend .li { display: inline-flex; align-items: center; gap: 5px; }
.rdot, .status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; vertical-align: middle; }
.rdot.t3 { background: var(--pay); }
.rdot.t2 { background: #e4a437; }
.rdot.t1 { background: var(--line-strong); }
.nohit { padding: 28px 16px; color: var(--muted); text-align: center; }

.section-title { margin: 28px 2px 11px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.count { color: var(--muted); font: 500 11px/1 var(--mono); }
.activity-card { overflow: hidden; }
.activity-scroll, .scrollbox { max-height: 540px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  text-align: left;
  font: 600 9px/1 var(--mono);
  letter-spacing: .65px;
  text-transform: uppercase;
}
.sort-btn {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.sort-btn:hover { color: var(--accent-strong); }
tbody td { padding: 12px 14px; border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--paper-2); }
td.pay { color: var(--pay); font: 600 12px/1 var(--mono); white-space: nowrap; }
td.rack { font-weight: 600; }
.load-date { display: none; margin-top: 3px; color: var(--muted); font: 400 9px/1.2 var(--mono); }
.store-cell .dest { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
footer { margin: 16px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.welcome-card { padding: 24px; }
.welcome-card h2 { margin: 8px 0 7px; font-size: 21px; }
.welcome-card > p { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.55; }
.welcome-steps { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.welcome-step { min-height: 130px; padding: 15px; display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.welcome-step strong { font-size: 14px; }
.welcome-step > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.45; }

.check-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.check-panel::before {
  content: "";
  position: absolute;
  inset: 11px 13px auto;
  height: 1px;
  border-top: 1px dashed var(--line-strong);
}
.check-panel .pc-top { padding: 27px 20px 17px; display: block; }
.pc-title { color: var(--accent-strong); font: 600 10px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.pc-title::first-letter { font-size: 0; }
.pc-sub { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pc-total { margin-top: 8px; color: var(--ink); font: 600 35px/1 var(--mono); letter-spacing: -1.5px; }
.pc-items { max-height: 310px; overflow: auto; padding: 8px 20px 4px; border-top: 1px dashed var(--line-strong); }
.pc-item { padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.pc-item:first-child { border-top: 0; }
.pc-item .what { min-width: 0; font-size: 12px; font-weight: 600; }
.pc-item .what .meta { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.pc-item .amt { color: var(--pay); font: 600 11px/1 var(--mono); white-space: nowrap; }
.pc-empty { padding: 16px 0; color: var(--muted); text-align: center; font-size: 12px; }
.pc-x {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--muted);
  cursor: pointer;
}
.pc-x:hover { border-color: var(--danger); color: var(--danger); }
.pc-settings { padding: 14px 20px 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pc-settings select { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); color: var(--ink); }
.pc-save { min-height: 34px; border: 0; background: var(--accent); color: #fff; }
.pc-reset { grid-column: 1 / -1; justify-self: center; color: var(--danger); }
.pc-reset.arm { font-weight: 700; }
.pc-actions { margin: 14px 20px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pc-action-primary { border: 1px solid var(--accent-strong); background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.pc-action-primary:hover { background: var(--accent-strong); }
.pc-action-icon { width: 43px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); font-size: 16px; }
.pc-action-icon:hover { border-color: var(--accent); color: var(--accent-strong); }
.pc-action-icon.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.history-page { max-width: 980px; margin: 0 auto; }
.hist-head { margin-bottom: 20px; }
.hist-head h2 { margin: 0; font-size: 32px; letter-spacing: -1px; }
.hist-back + h2 { margin-top: 7px; }
.hist-sub { margin: 5px 0 0; color: var(--muted); }
.hist-back { margin-bottom: 10px; }
.hist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hist-card {
  min-height: 145px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.hist-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.hist-when { font-size: 14px; font-weight: 700; }
.hist-when .meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.hist-amt { grid-column: 1; color: var(--pay); font: 600 25px/1 var(--mono); }
.hist-card .chev { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 28px; }
.hist-detail-total { margin: 14px 0 18px; color: var(--pay); font: 600 32px/1 var(--mono); }
.hist-detail-total small { display: block; margin-top: 7px; color: var(--muted); font: 400 11px/1.4 var(--sans); }
.hist-items { padding: 4px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.hist-empty { padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.auth-page {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.auth-story { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: var(--shell); color: var(--shell-text); }
.auth-story::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -210px;
  bottom: -230px;
  border: 85px solid rgba(242, 107, 43, .1);
  border-radius: 50%;
}
.auth-story::after {
  content: "RP";
  position: absolute;
  right: 34px;
  bottom: 10px;
  color: rgba(255, 255, 255, .035);
  font: 700 170px/1 var(--mono);
}
.auth-story-inner { position: relative; z-index: 1; max-width: 530px; padding: 58px; }
.auth-story h1 { margin: 12px 0 17px; font-size: clamp(39px, 5vw, 62px); line-height: .99; letter-spacing: -2.5px; }
.auth-story p { max-width: 480px; margin: 0; color: #bec8c1; font-size: 16px; line-height: 1.6; }
.auth-proof { margin-top: 36px; display: grid; gap: 13px; }
.auth-proof div { padding: 12px 0; display: grid; grid-template-columns: 74px 1fr; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-proof span { color: #91a098; font: 600 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.auth-proof strong { font-size: 13px; font-weight: 600; }
.auth-form-wrap { display: grid; place-items: center; padding: 44px; }
.auth-form { width: min(100%, 410px); padding: 0; border: 0; box-shadow: none; background: transparent; }
.auth-form h2 { margin: 0; font-size: 27px; letter-spacing: -.7px; }
.demo-entry h2 { margin-top: 9px; }
.demo-entry .auth-primary { margin-top: 4px; }
.demo-signup { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-form > p:not(.auth-msg):not(.signedin-row) { margin: 7px 0 23px; color: var(--muted); }
.google-btn, .auth-primary, .auth-secondary { width: 100%; min-height: 48px; padding: 0 15px; }
.google-btn { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.google-btn:hover, .auth-secondary:hover { border-color: var(--accent); }
.google-g { margin-right: 8px; color: #4285f4; font: 700 16px/1 var(--sans); }
.divider { margin: 18px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .7px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.field input, .modal input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink);
}
.field input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.forgot-link { display: block; margin: -4px 0 15px auto; font-size: 12px; }
.auth-primary { border: 1px solid var(--accent-strong); background: var(--accent); color: #fff; }
.auth-primary:hover { background: var(--accent-strong); }
.auth-secondary { margin-top: 9px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.tos-row { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.tos-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); transform: translateY(-1px); }
.tos-row a { color: var(--accent-strong); }
.auth-msg { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-msg.err { color: var(--danger); }
.privacy-note { margin-top: 18px; padding: 12px; display: flex; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); color: var(--muted); font-size: 10px; line-height: 1.45; }
.lock-dot { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pay-soft); color: var(--pay); font-size: 10px; }
.signedin-row { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.single-card-page .auth-story { min-height: 530px; }
.compact-story .auth-proof { display: none; }

.account-panel-body { padding: 20px; }
.account-panel-body p { color: var(--muted); font-size: 12px; }
.dz-btns { display: flex; flex-wrap: wrap; gap: 9px; }
#refreshBtn.refreshing .ref-ico { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay { position: fixed; inset: 0; z-index: 50; padding: 18px; display: grid; place-items: center; background: rgba(7, 12, 9, .72); backdrop-filter: blur(4px); }
.modal { width: min(100%, 470px); padding: 24px; box-shadow: var(--shadow-md); }
.modal h3 { margin: 8px 0 8px; font-size: 21px; }
.modal p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.modal input { margin-bottom: 14px; text-align: center; letter-spacing: 2px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 9px; }
.danger-solid {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.update-banner {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 45;
  max-width: 92vw;
  padding: 10px 11px 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  font-size: 12px;
}
.update-reload { min-height: 35px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.update-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: 90vw;
  padding: 11px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: var(--shell);
  color: var(--shell-text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity .18s;
}
.toast.show { opacity: 1; }
#watermark { position: fixed; inset: 0; z-index: 9999; opacity: .045; pointer-events: none; background-repeat: repeat; }
.bottom-nav { display: none; }

@media (max-width: 980px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
  .topbar-inner { padding: 0 18px; }
  .nav-btn { padding: 0 10px; }
  .auth-story-inner { padding: 42px; }
  .auth-form-wrap { padding: 34px; }
}

@media (max-width: 780px) {
  .topbar { height: 62px; }
  .topbar-inner { padding: 0 13px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-sub, .profile-label, #appNav { display: none; }
  .demo-badge { font-size: 8px; padding: 5px 7px; }
  .signup-cta { min-height: 36px; padding: 0 10px; }
  .top-actions { gap: 6px; }
  .icon-btn, .profile-btn { height: 38px; }
  .icon-btn { width: 38px; }
  .profile-btn { padding: 0 7px; }
  .app-main { padding: 23px 13px 104px; }
  .workspace-grid { display: block; }
  body[data-view="app"][data-screen="home"] #pcheck:not([hidden]) { display: none; }
  body[data-view="app"][data-screen="check"] #homeScreen .main-column { display: none; }
  body[data-view="app"][data-screen="check"] #pcheck { margin-top: 0; }
  .page-heading h1 { font-size: 31px; }
  .page-heading p { font-size: 13px; }
  .search-command { grid-template-columns: auto minmax(0, 1fr); padding: 8px 10px 8px 14px; }
  /* Mobile mirrors production: quick codes centered under the search box,
     import button in its own full-width row BELOW them. */
  .search-command .primary-btn { display: none; }
  .shortcuts { justify-content: center; margin: 14px 0 14px; }
  .shortcuts .lbl { width: 100%; text-align: center; }
  .import-mobile { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin: 0 0 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .rack-chip { align-items: flex-start; }
  .rack-chip .right { flex-direction: column; align-items: flex-end; }
  .welcome-steps { grid-template-columns: 1fr; }
  .welcome-step { min-height: 0; }
  .check-panel { position: relative; top: auto; margin-top: 24px; }
  .history-page { padding: 0 2px; }
  .hist-list { grid-template-columns: 1fr; }
  .auth-page { min-height: 0; display: block; }
  .auth-story { min-height: 310px; }
  .auth-story-inner { padding: 34px 26px; }
  .auth-story h1 { font-size: 39px; }
  .auth-story p { font-size: 13px; }
  .auth-proof { display: none; }
  .auth-form-wrap { padding: 28px 20px 34px; }
  .single-card-page .auth-story { min-height: 260px; }
  body[data-view="app"] .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    min-height: 66px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px);
  }
  .bottom-nav button { position: relative; min-height: 52px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; }
  .bottom-nav button > span:first-child { display: block; margin-bottom: 3px; font-size: 19px; }
  .bottom-nav button.active { background: var(--accent-soft); color: var(--accent-strong); }
  .update-banner { bottom: 82px; }
  .toast { bottom: 84px; }
}

@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .demo-badge { display: none; }
  .signup-cta { font-size: 11px; }
  .profile-menu { position: fixed; top: 68px; right: 10px; }
  .summary > .card { padding: 16px; }
  .summary .store-name { font-size: 21px; }
  .rack-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .rack-chip .name .pill, .rack-chip .name .warn { margin-top: 5px; }
  .legend > span:first-child { width: 100%; }
  .section-title { align-items: center; }
  thead .sort-btn, tbody td { padding: 10px 8px; }
  thead th { font-size: 8px; }
  tbody td { font-size: 11px; }
  .load-date { display: block; }
  tbody td:nth-child(4), thead th:nth-child(4) { display: none; }
  .pc-settings { grid-template-columns: 1fr 1fr; }
  .modal { padding: 20px; }
  .stack-mobile { flex-direction: column-reverse; }
  .stack-mobile > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
