/* =========================================================================
   MicraCoatings Installer Portal — navy + gold, left-sidebar layout
   Class names + CSS-variable names unchanged so app.js / admin.html work.
   ========================================================================= */
:root {
  --bg: #050810;
  --surface: #0F172A;
  --surface-2: #152036;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.18);
  --text: #E8ECF1;
  --muted: #94A3B8;
  --muted-2: #64748B;
  --accent: #E0A94A;
  --accent-dim: #A16207;
  --gold: #E0A94A;
  --gold-2: #F4C77B;
  --gold-dim: rgba(224,169,74,.32);
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --sidebar-w: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(224,169,74,.3); color: #fff; }

/* ---- Shell: sidebar + main ---- */
.shell { display: flex; min-height: 100dvh; align-items: stretch; }

.sidebar {
  flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
  position: sticky; top: 0; align-self: flex-start; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(5,8,16,.85));
  border-right: 1px solid var(--line);
}
/* Login / signup screens: no sidebar, centered form */
body:not(.authed) .sidebar { display: none; }

.side-brand { display: flex; align-items: center; gap: 11px; padding: 6px 6px 14px; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.side-brand-txt { min-width: 0; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff; line-height: 1.1; }
.wordmark .ca { color: var(--gold); }
.subtitle { color: var(--muted); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

/* Hero action */
.hero-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 4px 0 14px; padding: 13px 14px; border: 0; cursor: pointer;
  background: var(--accent); color: #050810; font-family: var(--font-body);
  font-size: 14.5px; font-weight: 700; border-radius: 12px; transition: background .18s, box-shadow .18s;
}
.hero-action svg { width: 18px; height: 18px; }
.hero-action:hover { background: var(--gold-2); box-shadow: 0 0 34px -10px rgba(224,169,74,.7); }
body:not(.authed) .hero-action { display: none; }

/* Vertical nav (was bottom tab bar) */
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.sidenav .tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  padding: 11px 12px; border-radius: 10px; transition: background .15s, color .15s;
}
.sidenav .tab svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; }
.sidenav .tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sidenav .tab[aria-current="true"] { color: #fff; background: rgba(224,169,74,.12); box-shadow: inset 3px 0 0 var(--accent); }
.sidenav .tab[aria-current="true"] svg { stroke: var(--gold); }
/* Greyed-out tab (e.g. Pricing for non-Canadian accounts). Still clickable so
   the "contact your distributor" panel is reachable, but visibly disabled. */
.sidenav .tab.locked { opacity: .45; }
.sidenav .tab.locked svg { stroke: var(--muted); }
.sidenav .tab.locked[aria-current="true"] { color: var(--muted); background: rgba(255,255,255,.03); box-shadow: inset 3px 0 0 rgba(255,255,255,.15); }
.sidenav .tab .tab-lock { margin-left: auto; font-size: 12px; opacity: .8; }

/* User box pinned to bottom */
.side-user { margin-top: auto; padding: 14px 12px 6px; border-top: 1px solid var(--line); }
body:not(.authed) .side-user { display: none; }
.u-name { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #fff; line-height: 1.2; word-break: break-word; }
.u-email { font-size: 12px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.link-btn { margin-top: 12px; background: none; border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 8px 12px; border-radius: 9px; transition: color .15s, border-color .15s; }
.link-btn:hover { color: var(--text); border-color: rgba(255,255,255,.35); }

/* ---- Main ---- */
.main { flex: 1 1 auto; min-width: 0; }
.app { max-width: 900px; margin: 0 auto; padding: 30px 26px 70px; }
.center { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.5; }
.err { color: var(--gold-2); font-size: 13px; }
h2.section, h3.section { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 24px 2px 12px; }

/* ---- Cards ---- */
.card { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.card.gold { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(224,169,74,.14), 0 0 40px -20px rgba(224,169,74,.5); }
.card.plan-locked { opacity: .5; }
.card.plan-locked .row b { color: var(--muted); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 6px; }

/* ---- Tier + meter ---- */
.tier-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.tier-name.paid { color: var(--gold); }
.meter { display: flex; gap: 4px; margin-top: 14px; }
.meter .seg { flex: 1; height: 10px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.meter .seg.fill { background: linear-gradient(180deg, #EDEBE6, #B9B6AF); border-color: #CFCCC5; }
.meter .seg.fill.paid { background: linear-gradient(180deg, var(--gold-2), var(--accent-dim)); border-color: var(--gold); }
.meter-label { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.verified { color: var(--gold-2); border-color: var(--gold-dim); background: rgba(224,169,74,.10); }
.badge.warn { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.badge.live { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.badge.pending { color: var(--muted); }
.soon-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--gold-2); border: 1px solid var(--gold-dim); background: rgba(224,169,74,.10); }

/* ---- Payment method chooser (selectable cards, not radio dots) ---- */
.pay-choose { margin: 14px 0; }
.pay-lab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-card { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); position: relative; transition: border-color .15s, background .15s, box-shadow .15s; }
.pay-ic { width: 26px; height: 26px; flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pay-txt b { font-size: 14.5px; color: var(--text); }
.pay-txt small { font-size: 12px; color: var(--muted); }
.pay-check { position: absolute; top: 9px; right: 12px; color: var(--accent); font-weight: 700; opacity: 0; transition: opacity .15s; }
.pay-opt:hover .pay-card { border-color: rgba(255,255,255,.32); }
.pay-opt input:checked + .pay-card { border-color: var(--accent); background: rgba(224,169,74,.10); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-opt input:checked + .pay-card .pay-ic { stroke: var(--gold); }
.pay-opt input:checked + .pay-card .pay-check { opacity: 1; }
.pay-opt input:focus-visible + .pay-card { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Stars ---- */
.stars { color: var(--gold-2); letter-spacing: 2px; }
.stars .empty { color: var(--muted-2); }

/* ---- Buttons + fields ---- */
button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); cursor: pointer; text-decoration: none;
  width: 100%; transition: background .18s, border-color .18s, box-shadow .18s, transform .1s;
}
button.btn:hover, a.btn:hover { border-color: rgba(255,255,255,.3); }
button.btn:active { transform: translateY(1px); }
button.btn.primary { background: var(--accent); border-color: var(--accent); color: #050810; }
button.btn.primary:hover { background: var(--gold-2); box-shadow: 0 0 40px -10px rgba(224,169,74,.7); }
button.btn.gold { background: var(--accent); border-color: var(--accent); color: #050810; }
button.btn.gold:hover { background: var(--gold-2); box-shadow: 0 0 40px -10px rgba(224,169,74,.7); }
button.btn.ghost { background: transparent; }
button.btn.danger { background: transparent; color: var(--danger); border-color: rgba(248,113,113,.4); }
button.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; background: var(--surface-2); border-color: var(--line-2); color: var(--muted); }
.btn-row { display: grid; gap: 10px; margin-top: 10px; }

label.field { display: block; margin: 12px 0; }
label.field span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
input, select, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 13px; font-size: 15px; font-family: inherit; }
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
option { background: var(--surface); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: auto; margin-top: 2px; }
.check a { color: var(--gold-2); font-weight: 600; }

/* Privacy notice shown above the consent checkbox at signup. */
.consent-note { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 2px; }
.consent-note b { color: var(--text); font-size: 13.5px; }
.consent-note p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.consent-note a { color: var(--gold-2); font-weight: 600; }

/* Danger zone — self-serve account deletion (right to erasure). */
.danger-zone { border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.06); margin-top: 16px; }
.danger-zone h3 { color: var(--danger); margin: 0 0 6px; font-size: 16px; }
.danger-zone p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; }
.danger-check span { color: var(--text); }
.danger-zone .btn.danger { background: var(--danger); color: #2a0808; border-color: var(--danger); font-weight: 700; }
.danger-zone .btn.danger:disabled { opacity: .45; cursor: not-allowed; }

/* Colour chart — pigment calculator */
.cc-card .cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cc-head-txt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.cc-swatch { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
img.cc-swatch { cursor: zoom-in; transition: transform .12s, border-color .12s; }
img.cc-swatch:hover { transform: scale(1.04); border-color: var(--gold); }

/* Full-screen image viewer (colour swatches, and reusable elsewhere) */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3,6,12,.9); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(5px); }
.lightbox.open { display: flex; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 94vw; }
.lb-img { max-width: 94vw; max-height: 82vh; border-radius: 14px; object-fit: contain; box-shadow: 0 24px 70px rgba(0,0,0,.65); }
.lb-cap { color: var(--text); font-size: 15px; font-weight: 600; text-align: center; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.cc-swatch-none { background: linear-gradient(135deg, var(--surface-2), rgba(255,255,255,.06)); position: relative; }
.cc-swatch-none::after { content: 'No\00A0photo'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; }
.cc-pill { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(224,169,74,.14); color: var(--gold-2); white-space: nowrap; }
.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.cc-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cc-table tr:last-child td { border-bottom: 0; }
.cc-amt { text-align: right; white-space: nowrap; }
.cc-table td.cc-amt b { font-size: 17px; color: var(--gold-2); }

/* ---- Photo grid (bigger / clearer) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .pill { position: absolute; top: 8px; left: 8px; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: rgba(5,8,16,.7); color: #fff; text-transform: uppercase; letter-spacing: .05em; backdrop-filter: blur(3px); }
.photo .pill.approved { color: #86EFC0; }
.photo .pill.pending { color: var(--gold-2); }
.photo .pill.rejected { color: var(--danger); }
.photo .del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 999px; border: none; background: rgba(5,8,16,.7); color: #fff; font-size: 17px; cursor: pointer; line-height: 1; backdrop-filter: blur(3px); }
.photo .meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 9px 11px; font-size: 12px; background: linear-gradient(0deg, rgba(5,8,16,.88), transparent); }

/* ---- Reviews ---- */
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review:last-child { border-bottom: none; }
.review .head { display: flex; justify-content: space-between; align-items: baseline; }
.review .resp { margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13px; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--gold); border: 1px solid var(--gold); color: #050810; font-weight: 600; padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: 90vw; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.toast.err { background: var(--surface-2); border-color: rgba(248,113,113,.5); color: var(--danger); }

/* ---- Admin console (admin.html) reuses .topbar ---- */
.topbar { position: sticky; top: 0; z-index: 10; padding: 16px 18px; padding-top: calc(16px + env(safe-area-inset-top)); background: rgba(10,15,28,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wordmark { letter-spacing: .04em; }
.topbar .link-btn { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; margin-top: 0; border: 0; }

#clerk-auth { min-height: 420px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Responsive: keep the sidebar on the left, shrink it on phones ---- */
@media (max-width: 900px) { :root { --sidebar-w: 208px; } .app { padding: 24px 18px 60px; } }
@media (max-width: 600px) {
  :root { --sidebar-w: 150px; }
  .sidebar { padding: 16px 10px; }
  .side-brand { gap: 8px; padding: 4px 4px 12px; }
  .logo-mark { width: 32px; height: 32px; }
  .wordmark { font-size: 14px; }
  .subtitle { font-size: 9px; letter-spacing: .08em; }
  .hero-action { font-size: 13px; padding: 11px 10px; }
  .sidenav .tab { font-size: 13px; gap: 9px; padding: 10px 9px; }
  .sidenav .tab svg { width: 18px; height: 18px; }
  .app { padding: 20px 14px 50px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}

/* ---- Loading skeleton (shown until auth + profile resolve) ---- */
.skel-wrap { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.skel { position: relative; overflow: hidden; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: var(--r); }
.skel::after, .skel-grid span::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(224,169,74,.09), transparent);
  animation: skel-shimmer 1.5s ease-in-out infinite;
}
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }
.skel-head { height: 54px; width: 62%; border-radius: 12px; }
.skel-card { height: 92px; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 4px; }
.skel-grid span { position: relative; overflow: hidden; display: block; aspect-ratio: 4/3;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.03); }
@media (prefers-reduced-motion: reduce) { .skel::after, .skel-grid span::after { animation: none; } }

/* ---- Auth welcome (sign-in / get-listed screen) ---- */
.auth-welcome { max-width: 468px; margin: 0 auto; }
.auth-welcome .aw-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2);
  background: rgba(224,169,74,.10); border: 1px solid var(--gold-dim); padding: 6px 13px;
  border-radius: 999px; margin-bottom: 16px; }
.auth-welcome h1 { font-family: var(--font-head); font-weight: 700; font-size: 27px; line-height: 1.14;
  color: #fff; margin: 0 0 10px; letter-spacing: -.01em; }
.auth-welcome .aw-lead { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.auth-welcome .aw-lead b { color: var(--text); }
.auth-welcome .aw-open { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 8px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.auth-welcome .aw-open b { color: var(--gold-2); font-weight: 600; }
.auth-welcome .aw-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.auth-welcome .aw-benefits li { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.auth-welcome .aw-benefits svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .auth-welcome h1 { font-size: 23px; } }
/* Gentle banner shown on the login screen when a session times out mid-use. */
.auth-notice { background: rgba(224,169,74,.12); border: 1px solid var(--gold-dim); color: var(--gold-2);
  padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; margin: 0 0 14px; }

/* ---- Invoicing tab ---- */
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
.inv-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-num { text-align: right; white-space: nowrap; }
.inv-act { text-align: right; white-space: nowrap; }
.inv-act .btn + .btn { margin-left: 6px; }
.inv-status { padding: 6px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); width: auto; }
.inv-st-paid { color: #86EFC0; border-color: rgba(134,239,192,.5); }
.inv-st-sent { color: var(--gold-2); }
.inv-st-void { color: var(--danger); border-color: rgba(248,113,113,.4); }
.inv-totals { font-size: 15px; }
.iv-line-wrap { padding: 10px 0 4px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.iv-line-wrap:last-of-type { border-bottom: 0; }
.iv-prod { width: 100%; max-width: 420px; padding: 7px 10px; font-size: 12.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; }
.iv-line { display: grid; grid-template-columns: 1fr 70px 104px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.iv-line input { width: 100%; padding: 9px 10px; }
.iv-line .iv-qty, .iv-line .iv-price { text-align: right; }
@media (max-width: 560px) { .iv-line { grid-template-columns: 1fr 54px 84px 34px; } }
