/* ============================================================
   Scanu — application shell (auth, dashboard, builder, admin)
   ============================================================ */

/* ---------------------------------------------------------- auth pages */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

.auth-aside {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .auth-aside { display: none; } }
.auth-aside::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 60%;
  background:
    linear-gradient(#1c1c1c 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, #1c1c1c 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
.auth-aside .brand { color: var(--paper); }
/* The panel has the vertical room the header does not, so it carries the full
   stacked logo — mark, lettering and subtitle — at a generous size. */
.auth-aside .brand-full-link { display: inline-block; color: var(--paper); }
.auth-aside .brand-full {
  display: block;
  width: clamp(150px, 15vw, 210px);
  height: auto;
  max-width: none;
}
.auth-aside .pitch { margin-top: auto; max-width: 30ch; position: relative; z-index: 1; }
.auth-aside .pitch h2 { font-size: clamp(33px, 3.7vw, 48px); }
.auth-aside .pitch p { color: var(--ink-40); margin-top: 18px; font-size: 16px; }
.auth-aside .marks { display: flex; gap: 10px; margin-top: 34px; position: relative; z-index: 1; }
.auth-aside .marks span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 5px 10px; color: var(--ink-40);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card { width: min(420px, 100%); }
.auth-card .mobile-brand { display: none; margin-bottom: 30px; }
@media (max-width: 900px) { .auth-card .mobile-brand { display: inline-flex; } }
.auth-card h1 { font-size: clamp(31px, 4.3vw, 39px); margin-bottom: 10px; }
.auth-card .sub { color: var(--ink-60); font-size: 16px; }
.auth-form { display: grid; gap: 18px; margin-top: 34px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { margin-top: 26px; font-size: 14px; color: var(--ink-60); }
.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-40); margin-bottom: 28px;
}
.auth-back:hover { color: var(--ink); }

.form-error {
  border: 1px solid var(--ink);
  border-left-width: 3px;
  padding: 12px 15px;
  font-size: 15px;
  border-radius: var(--radius);
  background: var(--surface);
}

.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength i { height: 2px; flex: 1; background: var(--line); transition: background .3s var(--ease); }
.strength[data-level="1"] i:nth-child(-n+1),
.strength[data-level="2"] i:nth-child(-n+2),
.strength[data-level="3"] i:nth-child(-n+3),
.strength[data-level="4"] i { background: var(--ink); }

/* ---------------------------------------------------------- app chrome */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-nav .shell { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.app-nav .brand { --mark-size: clamp(27px, 2.9vw, 37px); --word-h: clamp(24px, 3vw, 39px); }

.app-tabs { display: flex; gap: 2px; margin-left: 12px; }
.app-tabs a {
  padding: 8px 15px;
  font-size: 15px;
  color: var(--ink-60);
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.app-tabs a:hover { color: var(--ink); background: var(--surface); }
.app-tabs a.is-active { color: var(--ink); background: var(--surface); font-weight: 500; }
@media (max-width: 720px) { .app-tabs { display: none; } }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.account-chip:hover { border-color: var(--ink); }
.account-chip .avatar {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.account-chip .who { font-size: 14px; max-width: 140px; }
@media (max-width: 560px) { .account-chip .who { display: none; } }

.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .12);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 110;
  animation: modal-in .22s var(--ease-out) both;
}
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 0; background: none; width: 100%;
  text-align: left; font-size: 15px; cursor: pointer;
  border-radius: var(--radius);
  color: var(--ink);
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface); }
.menu-pop .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-pop .who { padding: 10px 12px; }
.menu-pop .who b { display: block; font-size: 15px; }
.menu-pop .who span { font-size: 13px; color: var(--ink-40); }

/* ---------------------------------------------------------- page head */
.page { padding-block: 44px 96px; }
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.page-head h1 { font-size: clamp(31px, 3.9vw, 44px); }
.page-head p { color: var(--ink-60); margin-top: 8px; max-width: 54ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------- address card
   The client's permanent address, shown before any menu exists so the code
   can be printed while the menu is still being put together. */
.address-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 28px;
  background: var(--paper);
}
@media (max-width: 680px) {
  .address-card { grid-template-columns: 1fr; gap: 20px; justify-items: start; padding: 22px; }
}
.address-card .address-qr {
  width: 132px; height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  flex: 0 0 auto;
}
.address-card .address-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.address-card .address-body { display: grid; gap: 10px; min-width: 0; }
.address-card .address-url {
  font-family: var(--mono);
  font-size: clamp(14px, 1.8vw, 19px);
  word-break: break-all;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.address-card .address-url:hover { border-bottom-color: var(--ink); }

/* the sections of the published menu, at a glance */
.menu-tags {
  display: flex;
  gap: 6px;
  padding: 0 20px 16px;
  flex-wrap: wrap;
}
.menu-tags span {
  font-size: 12.5px;
  color: var(--ink-60);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 9px;
  background: var(--surface);
}
.menu-tags span b { font-family: var(--mono); font-size: 11px; color: var(--ink-40); margin-left: 5px; }

/* ---------------------------------------------------------- quota meters */
.meters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 36px; }
@media (max-width: 860px) { .meters { grid-template-columns: 1fr; } }

.meter {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}
.meter .top { display: flex; align-items: baseline; gap: 10px; }
.meter .top h3 { font-size: 15px; font-weight: 550; letter-spacing: 0; }
.meter .top .val { margin-left: auto; font-family: var(--mono); font-size: 14px; }
.meter .bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.meter .bar i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--ink);
  width: 0;
  transition: width .8s var(--ease-out);
}
.meter .foot { font-size: 13px; color: var(--ink-40); display: flex; gap: 8px; }
.meter.is-empty .bar i { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); }

/* ---------------------------------------------------------- menu grid */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.menu-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease-out);
}
.menu-card:hover { border-color: var(--ink-20); transform: translateY(-2px); }
.menu-card .top {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 20px 16px;
}
.menu-card .type-mark {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.menu-card h3 { font-size: 18px; }
.menu-card .slug { font-family: var(--mono); font-size: 12px; color: var(--ink-40); margin-top: 4px; }
.menu-card .qr-thumb {
  width: 58px; height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--paper);
  flex: 0 0 auto;
}
.menu-card .qr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.menu-card .stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 0 20px 18px;
  font-size: 13px; color: var(--ink-40);
}
.menu-card .stats b { color: var(--ink); font-weight: 550; }
.menu-card .foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.menu-card .foot .spacer { margin-left: auto; }

/* ---------------------------------------------------------- builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1080px) { .builder { grid-template-columns: 1fr; } }

.builder-main { display: grid; gap: 18px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.panel > header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel > header h2 { font-size: 16px; font-weight: 550; letter-spacing: 0; }
.panel > header .spacer { margin-left: auto; }
.panel .body { padding: 20px; display: grid; gap: 18px; }
.panel .body.tight { padding: 16px; gap: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

/* section blocks */
.section-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 12px;
}
.section-block > .head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.section-block > .head .title-input {
  border: 1px solid transparent; background: transparent;
  font-size: 15.5px; font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius);
  min-width: 0; flex: 1;
}
.section-block > .head .title-input:hover { border-color: var(--line); background: var(--paper); }
.section-block > .head .title-input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.section-block > .head .count {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-40);
  flex: 0 0 auto;
}
.section-block .note-input {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 13.5px; color: var(--ink-60);
  padding: 8px 12px;
}
.section-block .note-input:focus { outline: none; color: var(--ink); background: var(--surface); }

/* Buttons that reorder or remove a row. Always visible: on a touch screen
   there is no hover to reveal them with. */
.row-tools { display: flex; gap: 2px; flex: 0 0 auto; }
.row-tools button {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--ink-40);
  cursor: pointer; padding: 0;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.row-tools button:hover { color: var(--ink); border-color: var(--line); background: var(--paper); }
.row-tools button[data-act$="del"]:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* One editable item. Two groups — the words, then the numbers — so the row
   stacks cleanly on a phone without any of the fields becoming unusable. */
.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 6px 10px;
  align-items: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.item-row:last-child { border-bottom: 0; }
.item-row .fields { display: grid; gap: 2px; min-width: 0; }
.item-row .meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
@media (max-width: 760px) {
  .item-row { grid-template-columns: 1fr; }
  .item-row .meta { flex-wrap: wrap; }
}
.item-row .flat {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 15px;
  min-width: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.item-row .flat:hover { border-color: var(--line); }
.item-row .flat:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.item-row .flat.desc { font-size: 13.5px; color: var(--ink-60); }
.item-row .flat.name.is-blank { border-color: var(--line); background: var(--surface); }
.item-row .flat.price { font-family: var(--mono); font-size: 13.5px; text-align: right; flex: 0 0 84px; }
.item-row .flat.badge { font-size: 13px; flex: 0 0 92px; }
.item-row .stock {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-40);
  cursor: pointer; white-space: nowrap; flex: 0 0 auto;
}
/* the product has no hues — the browser's own blue would be the only one */
.item-row .stock input { accent-color: var(--ink); margin: 0; }
.item-row.is-out .fields { opacity: .5; }
.item-row.is-out .stock { color: var(--ink); font-weight: 550; }

.section-foot { padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
.section-foot .btn svg { margin-right: 4px; vertical-align: -2px; }

.section-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.picker-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.picker-chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* the ten designs — the shape of the published menu */
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
.design {
  display: grid; gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.design b { font-size: 13.5px; font-weight: 550; }
.design small { font-size: 11.5px; line-height: 1.35; color: var(--ink-40); }
.design:hover { border-color: var(--ink); transform: translateY(-1px); }
.design:active { transform: none; }
.design.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.design.on small { color: var(--ink-20); }

/* colour swatches — the palette the public page will be painted in.
   A grid rather than a row: there are enough of them to wrap. */
/* colourways — a whole set of surfaces each, so the chip is shaped like the
   design chips beside it rather than like a dot in a palette strip */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
.swatch {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 2px 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
/* the tint the colourway fills badges with, carrying the accent it prices in */
.swatch i {
  grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.swatch i em { width: 11px; height: 11px; border-radius: 50%; display: block; }
.swatch b { font-size: 13.5px; font-weight: 550; }
.swatch small {
  font-size: 11.5px; line-height: 1.35; color: var(--ink-40);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.swatch:hover { border-color: var(--ink); transform: translateY(-1px); }
.swatch:active { transform: none; }
.swatch.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.swatch.on small { color: var(--ink-20); }
.swatch.on i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* the reading direction — pinned LTR, pinned RTL, or following the language */
.directions { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
.direction {
  display: grid; gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.direction b { font-size: 13.5px; font-weight: 550; }
.direction small { font-size: 11.5px; line-height: 1.35; color: var(--ink-40); }
.direction:hover { border-color: var(--ink); transform: translateY(-1px); }
.direction:active { transform: none; }
.direction.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.direction.on small { color: var(--ink-20); }

/* builder side rail */
.rail { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 1080px) { .rail { position: static; } }

.qr-preview { display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr-preview .frame {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  position: relative;
}
.qr-preview .frame img { width: 168px; height: 168px; display: block; }
.qr-preview .url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-60);
  word-break: break-all;
  line-height: 1.5;
}
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.usage-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.usage-line .bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.usage-line .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.usage-line .val { font-family: var(--mono); font-size: 12px; color: var(--ink-60); }

/* live preview — a phone-shaped window onto the real published page */
.phone {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 390 / 640;
  width: 100%;
}
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }

.ai-box { display: grid; gap: 14px; }

/* sticky save bar */
.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 90;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.save-bar .state { font-size: 14px; color: var(--ink-40); }
.save-bar .spacer { margin-left: auto; }

/* ---------------------------------------------------------- tables (admin) */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--paper);
}
table.data { width: 100%; border-collapse: collapse; min-width: 900px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; vertical-align: middle; }
table.data thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .2s var(--ease); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface); }
table.data td .who b { display: block; font-size: 15.5px; font-weight: 550; }
table.data td .who span { font-size: 13.5px; color: var(--ink-40); }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data td.actions .row { justify-content: flex-end; gap: 6px; display: flex; }

.quota-cell { display: grid; gap: 5px; min-width: 130px; }
.quota-cell .line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.quota-cell .line .k { font-family: var(--mono); font-size: 11px; color: var(--ink-40); width: 38px; }
.quota-cell .line .bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.quota-cell .line .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.quota-cell .line .v { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-60); }

.state-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.state-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.state-dot.off { color: var(--ink-40); }
.state-dot.off::before { background: transparent; border: 1px solid var(--ink-20); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; }
@media (max-width: 800px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .cell { background: var(--paper); padding: 22px; }
.stat-strip .cell strong { display: block; font-size: 33px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-strip .cell span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-40); pointer-events: none; }

/* ---------------------------------------------------------- account page */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
