/* GTINpass — one stylesheet, no frameworks */
/* Poppins, self-hosted (SIL OFL, static/fonts/Poppins-OFL.txt): Latin + Latin Extended. Greek and Cyrillic have no
   Poppins glyphs and fall back to the system font. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: block; src: url("/static/fonts/poppins-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: block; src: url("/static/fonts/poppins-400-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: block; src: url("/static/fonts/poppins-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: block; src: url("/static/fonts/poppins-500-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: block; src: url("/static/fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: block; src: url("/static/fonts/poppins-600-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: block; src: url("/static/fonts/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: block; src: url("/static/fonts/poppins-700-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* brand fonts for public pages (Settings → Brand); only downloaded when a page uses them — OFL, static/fonts/*-OFL.txt */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-700-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url("/static/fonts/lora-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url("/static/fonts/lora-400-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("/static/fonts/lora-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("/static/fonts/lora-600-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-weight: 700; font-display: swap; src: url("/static/fonts/lora-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 700; font-display: swap; src: url("/static/fonts/lora-700-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #0B1220;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E5EAE8;
  --bg: #F7F9F8;
  --card: #FFFFFF;
  --brand: #0E9F6E;
  --brand-dark: #0B7A55;
  --mint: #E7F8F1;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 4px 16px rgba(11, 18, 32, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: none; }   /* no underlines anywhere (owner, Nov 19) */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }   /* even lines, no lone last word */
p, li, dd { text-wrap: pretty; }
.auth-side p, .head p, .lead { text-wrap: balance; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--brand); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; border-color: #CBD5D1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 18px; }
.label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 159, 110, .14); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.input.is-valid { border-color: var(--brand); }
.input-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input-row .field + .field { margin-top: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.check { font-size: 13px; margin-top: 6px; font-weight: 500; }
.check.ok { color: var(--brand-dark); }
.check.bad { color: var(--danger); }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 14px; font-weight: 500; }
.alert-ok { background: var(--mint); color: var(--brand-dark); }

/* ---------- icons ---------- */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }

/* ---------- app shell: collapsed dark rail ---------- */
.shell { min-height: 100vh; padding-left: 76px; }
.rail {
  position: fixed; inset: 0 auto 0 0; width: 76px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; padding: 18px 0;
  background: var(--ink);
  border-right: 1px solid #1B2638;
}
.rail-logo { display: grid; place-items: center; margin-bottom: 26px; }
.rail-logo img { display: block; border-radius: 12px; }
.rail-nav { display: grid; gap: 6px; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; justify-items: center; }
.rail-foot form { margin: 0; }
.rail-item {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0;
  display: grid; place-items: center; color: #8FA9A0; background: transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.rail-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.rail-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--ink); }
.rail-item.active { background: rgba(52, 211, 153, .16); color: #34D399; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28); }
.rail-item.active::before {
  content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #34D399;
}
.rail-avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #34D399; color: #04241A;
}
/* hover name tooltips */
.rail [data-tip]::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 7px 11px; border-radius: 8px; background: #0B1220; color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(11, 18, 32, .25);
  transition: opacity .12s, transform .12s;
}
.rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.rail-logo { position: relative; }

.main { min-height: 100vh; padding: 32px 32px 0; display: flex; flex-direction: column; }
.app-footer { margin-top: auto; padding: 40px 0 24px; text-align: center; font-size: 12px; color: var(--muted); }
.app-footer a { color: var(--brand-dark); }

/* ---------- page head ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.head h1 { font-size: 28px; letter-spacing: -.03em; }
.eyebrow-sm { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 4px; }
.head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.head-actions { display: flex; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.back:hover { color: var(--ink); text-decoration: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-primary { box-shadow: inset 0 -2px 0 rgba(4, 36, 26, .25); }

/* ---------- panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-menus { overflow: visible; }                    /* row ⋮ menus may reach past the bottom edge */
.panel-menus > :first-child { border-radius: 15px 15px 0 0; }
.panel-menus > :last-child, .panel-menus .prow:last-child { border-radius: 0 0 15px 15px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 16px; }
.panel-head .muted { font-size: 13px; }
.panel-head-pad { padding: 22px 24px 0; }
.panel-head-pad p { font-size: 14px; margin-top: 4px; }
.panel-note { font-size: 14px; }
.panel-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 24px; color: var(--muted); }
.panel-empty b { color: var(--ink); }
.panel-empty .ico-lg { color: var(--brand); margin-bottom: 6px; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px;
  background: #F1F5F4; color: var(--ink-2); font-size: 12px; font-weight: 600;
}
.chip.mono { font-size: 12px; }
.chip-green { background: var(--mint); color: var(--brand-dark); }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab lab" "big viz" "foot foot"; align-items: center; column-gap: 12px; row-gap: 6px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi-foot { font-size: 13px; color: var(--muted); }
.up { color: #34D399; }
.down { color: #F87171; }
.kpi .up { color: var(--brand-dark); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.dash-grid > .panel { display: flex; flex-direction: column; }          /* cards in a row share one height */
.chart-wrap { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; min-height: 220px; }
.chart-scale { position: relative; width: 34px; font-size: 12px; color: var(--muted); }
.chart-scale span { position: absolute; right: 0; transform: translateY(-50%); }
.chart-plot { position: relative; }
.chart { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--brand); fill-opacity: .1; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bar { fill: var(--brand); transition: fill .1s; }          /* product list sparklines */
.bar:hover { fill: var(--brand-dark); }
.bar-empty { fill: #E9EFED; }
.chart-plot[data-chart] { cursor: crosshair; touch-action: pan-y; }
.chart-cross { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-hover-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand); pointer-events: none; }
/* hover label for charts (static/app.js): dark, right at the pointer, no delay */
.tip { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); padding: 7px 10px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.3; white-space: nowrap; box-shadow: 0 6px 18px rgba(11, 18, 32, .22); }
.tip b { font-weight: 600; }
.donut-seg { transition: opacity .15s; cursor: default; }
.donut:has(.donut-seg:hover) .donut-seg:not(:hover) { opacity: .35; }   /* only while a segment is hovered */
.donut-legend li { cursor: default; }
.spark .bar, .spark .bar-empty { cursor: default; }
.chart-dot { position: absolute; right: 0; width: 10px; height: 10px; margin: -5px -5px 0 0; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(14, 159, 110, .18); }
.chart-ticks { display: flex; justify-content: space-between; margin: 8px 0 0 46px; font-size: 12px; color: var(--muted); }
.donut-wrap { position: relative; width: 168px; margin: 4px auto 18px; }
.donut { display: block; width: 100%; height: auto; }
.donut-track { fill: none; stroke: #EEF3F1; stroke-width: 16; }
.donut-seg { fill: none; stroke-width: 16; }
.donut-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-centre strong { font-size: 24px; letter-spacing: -.02em; }
.donut-centre span { font-size: 12px; color: var(--muted); }
.donut-mobile { stroke: var(--brand); background: var(--brand); }
.donut-tablet { stroke: #9BE3C5; background: #9BE3C5; }
.donut-desktop { stroke: var(--ink); background: var(--ink); }
.donut-legend { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; font-size: 14px; }
.donut-key { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .num { text-align: right; font-weight: 600; }
.donut-legend .muted { font-weight: 500; }
.meter-list, .top-list, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.meter-row .muted { font-weight: 500; font-size: 13px; }
.meter { height: 8px; border-radius: 999px; background: #EEF3F1; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.meter-thin { height: 6px; }
.top-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 200px) 40px; align-items: center; gap: 12px; font-size: 14px; }
.top-name { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-name:hover, .feed-body a:hover { color: var(--brand-dark); }
.top-list .num { text-align: right; font-weight: 600; }
.top-text { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 600px) { .top-list li { grid-template-columns: minmax(0, 1fr) 64px 36px; } }
.top-text .muted { font-size: 13px; }
.feed { gap: 14px; }
.feed li { display: flex; gap: 12px; align-items: flex-start; }
.feed-dot { width: 32px; height: 32px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--mint); color: var(--brand-dark); }
.feed-body { min-width: 0; font-size: 14px; }
.feed-body a { color: var(--ink); font-weight: 600; }
.feed-body .chip { height: 20px; font-size: 12px; margin-left: 4px; }
.feed-body p { font-size: 13px; margin-top: 2px; }

/* ---------- products list ---------- */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; color: var(--muted); }
.search .ico { position: absolute; left: 14px; pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); font: inherit; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 159, 110, .14); }
.list-count { font-size: 13px; }
.plist { display: grid; }
.plist-head, .prow {
  display: grid; align-items: center; gap: 16px; padding: 0 20px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 150px 70px 84px;
}
.plist-products .plist-head, .plist-products .prow { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 200px 190px 64px; }   /* passport · scans · actions (⋮ menu) */
.plist-products .prow { min-height: 84px; padding-top: 14px; padding-bottom: 14px; }
.plist-products .prow-main { gap: 3px; }
.plist-head { height: 40px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFCFB; border-bottom: 1px solid var(--line); }
.plist-head .num { text-align: right; }
.prow { position: relative; min-height: 76px; border-bottom: 1px solid var(--line); transition: background .1s; }
.prow:last-child { border-bottom: 0; }
.prow-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pthumb { flex: none; width: 44px; height: 52px; padding: 3px; border-radius: 8px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.prow-main { display: grid; min-width: 0; }
.prow-name { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-name:hover { color: var(--brand-dark); }
.pthumb { display: block; }
.prow-sub { color: var(--muted); font-size: 13px; }
.prow-link .btn { gap: 5px; padding: 0 10px; }
.prow-link .btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--mint); }
.prow-spark { display: flex; align-items: center; gap: 10px; }
.spark { width: 98px; height: 30px; flex: none; }
.prow-spark b { font-size: 14px; }
.prow-quals { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.prow-quals .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-total { text-align: right; font-weight: 600; font-size: 15px; }
.plist-head .pver, .prow .pver { text-align: center; }   /* passports list: a short value under a wide heading — centred together */
.prow-actions { display: flex; gap: 6px; justify-content: flex-start; }        /* passports list: icons stay in place */
.prow-actions .btn { width: 36px; padding: 0; justify-content: center; }   /* icons only: compliance · public page */
.prow-actions .btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--mint); }
/* row ⋮ menu (<details>: opens without JS; app.js closes it on outside click / Escape / another menu) */
.row-menu { position: relative; justify-self: end; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.more-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 20px; line-height: 1; }
.more-btn:hover, .row-menu[open] .more-btn { background: var(--bg); border-color: var(--line); color: var(--ink); }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 196px; padding: 6px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(11, 18, 32, .28); }
.row-menu-list a, .row-menu-list button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.row-menu-list a:hover, .row-menu-list button:hover { background: var(--mint); color: var(--brand-dark); }
.row-menu-list .ico { color: var(--muted); }
.row-menu-list a:hover .ico, .row-menu-list button:hover .ico { color: var(--brand-dark); }
.prow-name, .pthumb { cursor: pointer; }
.hero-empty { display: flex; align-items: center; gap: 36px; padding: 36px 40px; }
.hero-empty-art { position: relative; overflow: hidden; flex: none; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transform: rotate(-3deg); box-shadow: 0 20px 40px -20px rgba(11, 18, 32, .3); }
.hero-empty-art img { display: block; }
.hero-empty h2 { font-size: 22px; margin-bottom: 8px; }
.hero-empty p { max-width: 460px; margin-bottom: 20px; }

/* ---------- editor (create / edit) ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.editor-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.editor-form { padding: 26px 28px; }
.input-lg { height: 48px; border-radius: 12px; background: #FBFCFC; }
.input-lg:focus { background: #fff; }
.input-icon { position: relative; display: block; }
.input-icon .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.form-section { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
.form-section { padding: 20px; border-radius: 16px; background: var(--bg); }   /* every step / section is a soft grey block, no lines (owner, Nov 20) */
.form-section + .form-section { margin-top: 14px; }
.form-section h2 { font-size: 16px; margin: 4px 0 16px; }
.step {
  width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--ink); color: #fff;
}
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.alert { display: flex; align-items: center; gap: 8px; }

.bbox { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.blist-head, .brow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr) 52px 150px 34px; align-items: center; gap: 12px; padding: 0 16px; }
.brow:last-child { border-bottom: 0; }
.blist-head { height: 40px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFCFB; border-bottom: 1px solid var(--line); }
.blist-head .num, .brow .num { text-align: right; }
.brow { min-height: 54px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .1s; }
.brow:hover { background: #FAFCFB; }
.brow-lot { font-weight: 600; color: var(--ink); }
.brow form { margin: 0; justify-self: end; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--danger-bg); color: var(--danger); }

/* preview panel (create / edit) */
.preview { position: sticky; top: 24px; display: grid; gap: 16px; }
.preview h2 { font-size: 16px; }
.preview-qr { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.preview-empty {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 20px;
  border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); font-size: 14px;
}
.preview-empty .ico-lg { color: #B8C6C1; }

/* toast (success message, fades out) */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(11, 18, 32, .4);
  animation: toast 3.2s ease forwards;
}
.toast .ico { color: #34D399; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }


/* ---------- billing / pricing ---------- */
.bill-hero {                                    /* light like every other card (owner, Nov 20: no dark blocks) */
  display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap;   /* flex-start so the trial block and the usage tiles share a top line */
  padding: 24px 28px; margin-bottom: 20px; border-radius: 20px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bill-hero-plan { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; padding-right: 28px; }  /* flex, not grid: the global .kpi-label{grid-area:lab} must stay inert here */
.bill-plan-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bill-plan-name strong { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }   /* = .kpi-value, the app's canonical big-number size */
.bill-days { font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.bill-hero-plan .meter { margin-top: 2px; }
.bill-sub { font-size: 13px; color: var(--muted); }
.bill-usage { flex: 2 1 440px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.bill-usage > div { display: flex; flex-direction: column; gap: 6px; padding: 0 22px; border-left: 1px solid var(--line); }
.bill-usage > div:first-child { padding-left: 0; border-left: 0; }
.bill-usage b { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }   /* = .kpi-value */
.bill-usage small { color: var(--muted); font-size: 13px; }                    /* = .kpi-foot; unit/limit on its own line */

.cycle-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.cycle-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cycle-toggle button.on { background: var(--ink); color: #fff; }
.cycle-toggle button.on .chip-green { background: rgba(52, 211, 153, .2); color: #6EE7B7; }
.pick-head { display: flex; justify-content: center; margin-bottom: 18px; }   /* toggle centred above the cards, like the landing page */
.bill-compare-link { margin: 18px 0 4px; font-size: 14px; text-align: center; }
.bill-compare-link a { color: var(--brand-dark); font-weight: 600; }
.bill-plans { max-width: none; margin: 0; }                 /* the landing plan cards, full dashboard width */
.bill-plans .plan-price { font-size: 32px; }               /* in-app = the app type scale (max 32px), not the landing's 48px */
.bill-plans .plan-price small { font-size: 14px; }
.plan.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }

.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pick-card { display: grid; gap: 18px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.pick-card:hover { border-color: #BFE9D6; transform: translateY(-2px); }
.pick-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.pick-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pick-top h2 { font-size: 18px; }
.pick-top .muted { font-size: 14px; margin-top: 2px; }
.pick-price { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.lx .pick-price, .pick-price { text-wrap: nowrap; }   /* "text-wrap: pretty" on p would turn wrapping back on */
.pick-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.pick-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; font-weight: 500; }
.pick-points li { display: flex; align-items: center; gap: 8px; }
.pick-points .ico { width: 20px; height: 20px; padding: 3px; border-radius: 8px; background: var(--mint); color: var(--brand-dark); }
.pick-card .btn { height: 44px; border-radius: 12px; }
.pick-card .btn[disabled] { opacity: .55; cursor: not-allowed; }

.compare-wrap { overflow-x: auto; }
.cmp-tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 7px;
  border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 700; font-style: normal;
  font-family: Georgia, "Times New Roman", serif; cursor: help; vertical-align: middle; flex: none; }
.cmp-tip:hover, .cmp-tip:focus-visible { background: var(--brand); color: #fff; outline: none; }
.tipbubble { position: absolute; z-index: 1000; max-width: 260px; padding: 9px 12px; border-radius: 9px; background: var(--ink);
  color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; box-shadow: 0 8px 22px rgba(11, 18, 32, .22);
  pointer-events: none; display: none; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); white-space: nowrap; }
.compare thead th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.compare .col-main { background: #F2FBF7; }
.compare thead .col-main { color: var(--brand-dark); }
.compare-group td { padding: 12px 20px; background: var(--bg); font-size: 16px; font-weight: 700; color: var(--ink); text-align: start; }
.compare tbody tr:not(.compare-group):hover td { background: #FAFCFB; }
.compare tbody tr:not(.compare-group):hover td.col-main { background: #EAF8F1; }
.compare .yes { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 3; }
.compare .no { color: #C3CFCB; font-size: 18px; }
.compare-val { font-size: 15px; font-weight: 600; }
.billing-note { margin-top: 16px; font-size: 13px; text-align: center; }

.btn-danger-outline { color: var(--danger); border-color: #F5C2C2; }
.btn-danger-outline:hover { background: var(--danger-bg); border-color: var(--danger); }

/* landing pricing */
.lpricing .cycle-toggle { display: flex; width: max-content; margin: 0 auto 28px; }
.pick-card-dark { color: #fff; border: 0; background: var(--ink); box-shadow: inset 0 4px 0 #34D399; }
.pick-card-dark .muted, .pick-card-dark .pick-price small { color: #A7C4B8; }
.pick-card-dark .pick-points .ico { background: rgba(52, 211, 153, .16); color: #34D399; }


/* ---------- product page: data, batches, style ---------- */
.form-section h2 .h2-note { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.batch-add { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: #FBFCFC; border: 1px dashed var(--line); }
.batch-add-foot { display: flex; justify-content: flex-end; }
.logo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.upload { position: relative; display: flex; align-items: center; gap: 12px; min-width: 260px; padding: 10px 16px 10px 10px; border-radius: 12px;
  border: 1px dashed #C9D6D1; background: #FBFCFC; cursor: pointer; transition: border-color .15s, background .15s; }
.upload:hover, .upload:focus-within { border-color: var(--brand); background: var(--mint); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-dark); box-shadow: 0 0 0 1px var(--line); }
.upload-text { display: grid; gap: 1px; min-width: 0; }
.upload-text strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.upload-text small { font-size: 13px; color: var(--muted); }
.preview-qr { transition: opacity .15s; }
.code-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.code-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 14px; }
.code-facts div + div { border-top: 1px solid var(--line); }
.code-facts dt { color: var(--muted); }
.code-facts dd.mono { white-space: nowrap; }   /* a number never breaks in the middle; the name beside it wraps */
.code-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.pane-details .switch { margin-top: 20px; }
.pane-group { padding: 20px; border-radius: 16px; background: var(--bg); }   /* code page groups: soft grey blocks, no lines */
.pane-group + .pane-group { margin-top: 14px; }
@media (max-width: 600px) { .pane-group { padding: 14px; margin-left: -6px; margin-right: -6px; } }   /* phones: the blocks use the width */
.attr-rows { display: grid; gap: 10px; }
.attr-row { display: flex; gap: 10px; align-items: center; }
.attr-row .input { height: 44px; min-width: 0; }
.attr-row [data-attr-type] { flex: 1.1 1 0; }
.attr-row [data-attr-value] { flex: 1 1 0; }
.attr-row .icon-btn { flex: none; }
.attr-add { margin-top: 12px; }
.attr-none { margin: 0; font-size: 14px; }
.link-rows { display: grid; gap: 10px; }
.link-rows:empty { display: none; }
.link-row { display: flex; gap: 10px; align-items: center; }
.link-row .input { height: 44px; min-width: 0; }
.link-row select { flex: 1.1 1 0; }
.link-row [name="link_href"] { flex: 1.6 1 0; }
.link-row .link-lang { flex: 0 0 64px; text-align: center; }
.link-row [name="link_title"] { flex: 1 1 0; }
.link-row .icon-btn { flex: none; }
.q-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 14px; align-items: end; }   /* a wrapped label never pushes its box down */
.q-fields .field { margin-top: 18px; }
/* product page: tabbed studio (CSS-only tabs — work without JS) */
.studio { padding: 0; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.studio-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.studio-tabs label { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .15s; }
.studio-tabs label:hover { color: var(--ink); }
.studio-tabs label::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; }
.tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; background: var(--bg); color: var(--ink-2); }
#tab-details:checked ~ .studio-tabs label[for="tab-details"], #tab-data:checked ~ .studio-tabs label[for="tab-data"],
#tab-batches:checked ~ .studio-tabs label[for="tab-batches"], #tab-design:checked ~ .studio-tabs label[for="tab-design"] { color: var(--ink); }
#tab-details:checked ~ .studio-tabs label[for="tab-details"]::after, #tab-data:checked ~ .studio-tabs label[for="tab-data"]::after,
#tab-batches:checked ~ .studio-tabs label[for="tab-batches"]::after, #tab-design:checked ~ .studio-tabs label[for="tab-design"]::after { background: var(--brand); }
#tab-details:focus-visible ~ .studio-tabs label[for="tab-details"], #tab-data:focus-visible ~ .studio-tabs label[for="tab-data"],
#tab-batches:focus-visible ~ .studio-tabs label[for="tab-batches"], #tab-design:focus-visible ~ .studio-tabs label[for="tab-design"] { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 12px; }
.studio-body { padding: 26px 28px; min-height: 360px; }
.pane, .dpane { display: none; }
#tab-details:checked ~ .studio-body .pane-details, #tab-data:checked ~ .studio-body .pane-data,
#tab-batches:checked ~ .studio-body .pane-batches, #tab-design:checked ~ .studio-body .pane-design { display: block; }
.pane-intro { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.studio-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #FBFCFC; border-radius: 0 0 16px 16px; }
.batch-add > .label { margin: 0; }

.design { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.design-nav { display: grid; gap: 4px; position: sticky; top: 24px; }
.design-nav label { display: block; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.design-nav label:hover { background: var(--bg); }
#d-pattern:checked ~ .design .design-nav label[for="d-pattern"], #d-corners:checked ~ .design .design-nav label[for="d-corners"],
#d-colours:checked ~ .design .design-nav label[for="d-colours"], #d-logo:checked ~ .design .design-nav label[for="d-logo"],
#d-ecc:checked ~ .design .design-nav label[for="d-ecc"] { background: var(--mint); color: var(--brand-dark); }
#d-pattern:checked ~ .design .dpane-pattern, #d-corners:checked ~ .design .dpane-corners, #d-colours:checked ~ .design .dpane-colours,
#d-logo:checked ~ .design .dpane-logo, #d-ecc:checked ~ .design .dpane-ecc { display: grid; gap: 16px; }
.dpane h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.dpane h3 + .tiles { margin-top: -4px; }
.dpane .tiles + h3 { margin-top: 10px; }

.crow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 168px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dpane-colours > div:last-of-type .crow, .dpane-colours > .crow:last-of-type { border-bottom: 0; }
.design-group { display: grid; gap: 16px; }   /* code page Design: one grey block per part */
.design-group h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.design-group h3 + .tiles { margin-top: -4px; }
.design-group .tiles + h3 { margin-top: 10px; }
.design-colours .crow { padding: 8px 0; border-bottom: 0; }   /* rows apart by space, no lines */
.crow-head { display: grid; }
.crow-head b { font-size: 14px; color: var(--ink); }
.crow-head small { font-size: 13px; color: var(--muted); }
.crow-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .14); cursor: pointer; transition: transform .12s; }
.dot:hover { transform: scale(1.12); }
.dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.color-input { position: relative; display: block; }
.color-dot { position: absolute; left: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .15); overflow: hidden; cursor: pointer; }
.color-dot input { position: absolute; inset: -6px; width: 34px; height: 34px; opacity: 0; cursor: pointer; }
.color-input .input { height: 42px; padding-left: 42px; text-transform: uppercase; }

.ecc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ecc-opt { display: grid; }                                        /* cards in a row share one height */
.ecc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ecc-opt span { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.ecc-opt b { font-size: 14px; color: var(--ink); }
.ecc-opt small { font-size: 13px; color: var(--muted); }
.ecc-opt span:hover { border-color: #C9D6D1; }
.ecc-opt input:checked + span { border-color: var(--brand); background: #F6FCF9; box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.ecc-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ecc-opt input:disabled + span { opacity: .5; cursor: not-allowed; }
.ecc-opt input:disabled + span:hover { border-color: var(--line); }

.scan-check { padding-top: 14px; border-top: 1px solid var(--line); }
.print-min { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-2); }
.print-min .ico { flex: none; margin-top: 2px; color: var(--muted); }
.scan-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.scan-warn { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scan-warn li { padding: 10px 12px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F6DFA4; color: #8A5A00; font-size: 13px; line-height: 1.45; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.tile { cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-box { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tile-glyph { width: 54%; aspect-ratio: 1; background: #94A3B8; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background .15s; }
.tile:hover .tile-glyph { background: #64748B; }
.tile input:checked + .tile-box .tile-glyph { background: var(--brand-dark); }
.tile:hover .tile-box { border-color: #C9D6D1; }
.tile input:checked + .tile-box { border-color: var(--brand); background: #F6FCF9; box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.tile input:focus-visible + .tile-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.tile-name { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile input:checked ~ .tile-name { color: var(--brand-dark); }
.logo-settings { display: grid; gap: 18px; padding: 18px; border-radius: 16px; background: #FBFCFC; border: 1px solid var(--line); }
.logo-note { font-size: 13px; }
.range-field { display: grid; gap: 10px; max-width: 420px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-head .label { margin: 0; }
.range-head b { font-size: 13px; color: var(--brand-dark); min-width: 40px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(var(--brand), var(--brand)) 0 / var(--fill, 50%) 100% no-repeat, var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(11, 18, 32, .18); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; width: fit-content; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #CBD5D1; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 18, 32, .25); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.toggle-chip span:hover { border-color: #F5C2C2; color: var(--danger); }
.toggle-chip input:checked + span { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.preview-qr.loading { opacity: .55; }
.panel-sub { font-size: 13px; margin-top: 2px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.brow-dates { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.preview-data { margin: 0; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.preview-data div { display: flex; justify-content: space-between; gap: 12px; }
.preview-data dt { color: var(--muted); }
.preview-data dd { margin: 0; font-weight: 600; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; }
.how-list li { display: grid; gap: 2px; }
.how-list b { font-weight: 600; color: var(--ink); }
.how-list span { color: var(--muted); }
select.input { appearance: none; padding-right: 40px; background: #FBFCFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748B' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }

/* Searchable dropdown: enhances <select data-search> into a type-to-filter box; looks exactly like select.input */
.ss { position: relative; }
.ss-native { display: none; }
.ss-field { appearance: none; cursor: text; padding-right: 40px; background-color: #FBFCFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748B' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.ss-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(11, 18, 32, .14); padding: 6px; }
.ss-opt { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.ss-opt:hover, .ss-opt.active { background: var(--mint); }
.ss-opt[aria-selected="true"] { font-weight: 600; color: var(--brand-dark); }
.ss-empty { padding: 11px 12px; color: var(--muted); font-size: 13px; }


/* ---------- company prefixes ---------- */
.head-sub { margin: 8px 0 0; max-width: 760px; font-size: 14px; color: var(--muted); }
.prefix-add { justify-content: flex-start; padding-bottom: 8px; border-bottom: 0; }
.prefix-add .input { max-width: 320px; height: 42px; }
.prefix-hint { margin: 0; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.pxlist { display: grid; }
.pxlist-head, .pxrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 80px 40px; gap: 16px; align-items: center; padding: 0 20px; }
.pxlist-own .pxlist-head, .pxlist-own .pxrow { grid-template-columns: repeat(5, minmax(0, 1fr)) 40px; }   /* customer: five even columns */
.pxlist-admin { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 300px; }
.pxlist-head.pxlist-admin > :last-child { text-align: right; }
.pxlist-head { height: 40px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFCFB; border-bottom: 1px solid var(--line); }
.pxlist-head .num, .pxrow .num { text-align: right; }
.pxrow { min-height: 60px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pxrow:last-child { border-bottom: 0; }
.pxrow-prefix { font-weight: 600; color: var(--ink); font-size: 15px; }
.pxrow-note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pxrow form { margin: 0; }
.pxrow-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.px-reject { margin: 0; }
.pxlist-admin .pxrow-actions { display: grid; gap: 6px; justify-items: end; text-align: right; }   /* decision sits at the right edge */
.px-decide { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.reject-label { margin-top: 12px; }
.chip-amber { background: #FFF6E0; color: #8A5A00; }
.chip-xs { height: 20px; font-size: 12px; justify-self: start; margin-top: 2px; }
.chip-red { background: var(--danger-bg); color: var(--danger); }
.chip-blue { background: #E8F0FE; color: #1E53B8; }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn[disabled]:hover { background: transparent; color: var(--muted); }
.code-status { display: inline-flex; align-items: center; gap: 4px; }
.prefix-hint { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 22px; padding: 10px 14px; border-radius: 12px; background: var(--mint); color: var(--ink-2); font-size: 14px; }
.prefix-hint .ico { flex: none; margin-top: 2px; color: var(--brand-dark); }
.prefix-hint-warn { background: #FFF6E0; color: #8A5A00; }
.prefix-hint-warn .ico { color: #8A5A00; }

/* ---------- print labels ---------- */
.set-all { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.set-all .input { width: 84px; height: 40px; text-align: center; }
.llist { display: grid; }
.llist-head, .lrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px; align-items: center; gap: 16px; padding: 0 20px; }
.llist-head { height: 40px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFCFB; border-bottom: 1px solid var(--line); }
.llist-head .num { text-align: right; }
.lrow { min-height: 72px; border-bottom: 1px solid var(--line); transition: background .1s; }
.lrow:hover { background: #FAFCFB; }
.lrow-name { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-batch { min-height: 56px; }
.lrow-batch .lrow-name { font-weight: 600; font-size: 14px; }
.lrow-batch-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lrow-branch { flex: none; width: 44px; height: 28px; position: relative; }
.lrow-branch::before { content: ""; position: absolute; left: 21px; top: -14px; width: 14px; height: 28px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 8px; }
.stepper { justify-self: end; display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 159, 110, .14); }
.stepper button { width: 38px; height: 100%; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s; }
.stepper button:hover { background: var(--mint); color: var(--brand-dark); }
.stepper input { width: 58px; height: 100%; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; font-weight: 600; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.stepper input:focus { outline: none; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.pager-links { display: flex; gap: 4px; align-items: center; }
.pager-btn { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; text-decoration: none; }
a.pager-btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--mint); }
.pager-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-btn.off { opacity: .4; }
.pager-gap { padding: 0 4px; color: var(--muted); }
.lsum { gap: 18px; }
.lsum-head { display: flex; justify-content: space-between; align-items: center; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--danger); }
.sel { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.sel-empty { font-size: 14px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); }
.sel-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.sel-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.sel-item b { font-size: 13px; color: var(--brand-dark); }
.sel-rm { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.sel-rm:hover { background: var(--danger-bg); color: var(--danger); }
.grid-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-opt input { position: absolute; opacity: 0; pointer-events: none; }
.grid-card { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s, background .15s; }
.grid-card:hover { border-color: #C9D6D1; }
.grid-card b { margin-top: 8px; font-size: 15px; color: var(--ink); }
.grid-card small { font-size: 12px; color: var(--muted); }
.grid-opt input:checked + .grid-card { border-color: var(--brand); background: #F6FCF9; box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.grid-opt input:focus-visible + .grid-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.mini-sheet { width: 40px; height: 56px; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(var(--c), 1fr); grid-template-rows: repeat(var(--r), 1fr); gap: 2px; }
.mini-sheet i { border-radius: 2px; background: var(--mint); border: 1px solid #C9EEDD; }
.grid-opt input:checked + .grid-card .mini-sheet i { background: #BFEBD8; border-color: #8FD9B9; }
.lbl-total { display: flex; justify-content: space-between; padding: 12px 0; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lbl-total b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.lsum-note { font-size: 13px; }

/* ---------- confirm modal ---------- */
.modal {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(11, 18, 32, .45);
}
.modal::backdrop { background: rgba(11, 18, 32, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .16s ease-out; }
.modal[open]::backdrop { animation: fade-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-box { margin: 0; padding: 26px; display: grid; gap: 8px; }
.modal-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); margin-bottom: 8px; }
.modal-box h2 { font-size: 18px; }
.modal-box p { font-size: 14px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.modal-actions .btn { height: 44px; border-radius: 12px; }
.modal-actions form { margin: 0; }
.modal-actions form .btn { width: 100%; }
.modal-icon-ok { background: var(--mint); color: var(--brand-dark); }
.modal-box .ecc-list { margin-top: 12px; }
/* QR popup (products list) */
.modal-qr { width: min(440px, calc(100vw - 32px)); }
.modal-qr .modal-box { position: relative; gap: 6px; }
.modal-close { position: absolute; top: 14px; right: 14px; font-size: 24px; }
.qr-pop-art { display: grid; place-items: center; padding: 18px; margin: 4px 0 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.qr-pop-art img { display: block; width: auto; max-width: 100%; height: 280px; object-fit: contain; }
.modal-qr .modal-box h2 { text-align: center; }
.qr-pop-key { text-align: center; color: var(--muted); font-size: 13px; }
.qr-pop-actions { grid-template-columns: 1fr 1fr 1.4fr; margin-top: 14px; }
.ecc-list-one { grid-template-columns: 1fr; }
.type-pick { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }   /* two columns when there is room, else one */
.type-pick > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd last card takes the full row: no half-empty row */
.page-pick { margin: 4px 0 2px; }
.page-pick-3 { grid-template-columns: 1fr; }   /* own website · product page · passport: stacked, … */
@media (min-width: 1200px) { .page-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* … one row when there is room */
.page-pick + .field, .page-pick ~ .hint[data-show-for] { margin-top: 16px; }   /* breathing space under the choice */
.page-hosted { display: grid; gap: 10px; }
form .page-hosted { margin-top: 16px; }
.page-hosted p { margin: 0; font-size: 14px; }
.page-hosted-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 6px 16px -8px rgba(220, 38, 38, .7); }
.btn-danger-solid:hover { background: #B91C1C; border-color: #B91C1C; }

/* ---------- auth (split layout) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }

.auth-side {
  position: relative; overflow: hidden; color: #E6F4EE;
  background: url("/static/bars.svg") no-repeat right 56px bottom 0 / 300px 120px, var(--ink);
  padding: 44px 56px; display: flex; flex-direction: column;
}
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; font-size: 18px; }
.auth-side .brand b { color: #34D399; }
.auth-side .brand img { width: 34px; height: 34px; }
.auth-pitch {
  margin: auto 0; padding: 40px 0; display: grid; align-items: center; gap: 40px;
  grid-template-columns: minmax(0, 1fr) 200px; max-width: 720px;
}
.auth-pitch h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: #fff; }
.auth-pitch h2 span { color: #34D399; }
.auth-pitch p { margin-top: 14px; font-size: 16px; color: #A7C4B8; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #D5E9E0; }
.auth-points li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 8px; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(52, 211, 153, .16); color: #34D399; border: 1px solid rgba(52, 211, 153, .3);
}
.label-card {
  margin: 0; width: 200px; padding: 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-3deg);
}
.label-card img { display: block; width: 100%; height: auto; }
.label-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #E5EAE8; color: var(--ink); font-size: 12px; }
.label-meta b { font-weight: 600; }
.auth-side-foot { font-size: 13px; color: #6E8F82; }

.auth-main { display: flex; flex-direction: column; padding: 32px 40px; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 40px; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 24px 0; }
.auth-form h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-form .sub { margin: 8px 0 28px; color: var(--muted); font-size: 15px; }
.auth-form .field + .field { margin-top: 16px; }
.auth-form .input { height: 48px; border-radius: 12px; background: #FBFCFC; }
.auth-form .input:focus { background: #fff; }
.auth-form .btn-primary { height: 48px; border-radius: 12px; font-size: 15px; margin-top: 24px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--bg); color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col .field + .field { margin-top: 0; }
.two-col + .field { margin-top: 16px; }
.auth-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-mobile-brand { display: none; }

@media (max-width: 1180px) {
  .auth-pitch { grid-template-columns: 1fr; }
  .label-card { display: none; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 24px 20px; }
  .auth-top { justify-content: space-between; }
  .auth-mobile-brand { display: flex; }
}
@media (max-width: 480px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .field + .field { margin-top: 16px; }
  .auth-form h1 { font-size: 28px; }
}

/* ---------- landing ---------- */
html { scroll-padding-top: 80px; }   /* no page-wide smooth scrolling: it made the browser's scroll restore on refresh glide; section links glide by themselves (app.js jumpTo) */
.lwrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); }

/* nav: transparent over the dark hero, white once scrolled */

/* hero */

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #A7F3D0; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.grad { color: #34D399; }
.lead { font-size: 18px; line-height: 1.6; color: #A7C4B8; max-width: 560px; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }

.scanline {
  position: absolute; left: -4%; right: -4%; height: 3px; top: 0; border-radius: 2px;
  background: #E5484D; animation: scan 3.2s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes scan { 0% { top: 0; } 55% { top: 100%; } 100% { top: 100%; } }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(15, 28, 40, .78); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); color: #fff; font-size: 13px; line-height: 1.3;
}
.float-chip b { display: block; font-weight: 600; }
.float-chip small { color: #8FA9A0; font-size: 12px; }
.chip-ico { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; background: rgba(52, 211, 153, .16); color: #34D399; }

@keyframes float-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* sections */

.sunrise-copy h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.035em; margin: 6px 0 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }

.step-num { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--ink); color: #fff; }

.step-demo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line); }
.demo-input { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--brand); font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.demo-input .ico { color: var(--muted); }
.demo-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.demo-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }

.ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brand-dark); background: var(--mint); border: 1px solid #C9EEDD; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: var(--mint); color: var(--brand-dark); }
.mock { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(11, 18, 32, .35); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; }
.mock-kpi small { color: var(--muted); font-weight: 600; font-size: 12px; }
.mock-kpi b { font-size: 28px; letter-spacing: -.03em; }
.mock-kpi .up { color: var(--brand-dark); font-weight: 600; }
.mock-kpi-dark { border: 0; color: #fff; background: var(--ink); }
.mock-kpi-dark small { color: #8FA9A0; }
.mock-kpi-dark .up { color: #34D399; }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.mock-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: #9BE3C5; }
.mock-chart span:last-child { background: var(--brand); }
.mock-rows { list-style: none; margin: 18px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; }
.mock-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mock-rows li:last-child { border-bottom: 0; }
.mock-rows .chip { flex: none; gap: 4px; }
/* mock KPI icon chips + passport header — echo the real dashboard/passport look */
.mock-kpi small { display: flex; align-items: center; gap: 7px; }
.mock-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--mint); color: var(--brand-dark); flex: none; }
.mock-ico .ico { width: 13px; height: 13px; }
.mock-kpi-dark .mock-ico { background: rgba(255, 255, 255, .14); color: #34D399; }
.mock-pass-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--ink); }
.mock-badge .ico { width: 15px; height: 15px; color: var(--brand-dark); }
.mock-pass .mock-rows { margin-top: 14px; }

.sunrise-copy h2 { color: #fff; }
.sunrise-copy p { color: #A7C4B8; font-size: 16px; margin-bottom: 28px; }
.eyebrow-light { color: #34D399; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 48px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #34D399; }
.timeline li:nth-child(2) { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); }
.timeline li:nth-child(2)::before { background: #34D399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .2); }
.timeline b { color: #fff; }
.timeline span { color: #A7C4B8; }

.faq-list { display: grid; gap: 12px; }
.faq { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: #BFE9D6; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; color: var(--brand-dark); transition: transform .25s; }
.faq[open] summary .ico { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--ink-2); }

/* no entrance animations: every page is complete in its first frame (no fade-in or reveal flash on refresh) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  
  
  
  
  .plist-head, .prow { grid-template-columns: minmax(0, 1fr) 140px 70px 84px; }
  .plist-products .plist-head, .plist-products .prow { grid-template-columns: minmax(0, 1fr) 160px 190px 64px; }
  .plist-head > :nth-child(2), .prow > :nth-child(2) { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 720px) {
  .pick, .pick-points { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 0; }
  
  
  
  
    
  
  
  .steps { grid-template-columns: 1fr; }
  
  
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpi:last-child { display: none; }
  .shell { padding-left: 0; padding-bottom: 72px; }
  .rail { inset: auto 0 0 0; width: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 12px; }
  .rail-logo, .rail-avatar { display: none; }
  .rail-nav { display: flex; gap: 8px; }
  .rail-foot { margin: 0; display: flex; }
  .rail-item.active::before, .rail [data-tip]::after { display: none; }
  .main { padding: 20px 16px 0; min-height: calc(100vh - 72px); }
  .head { flex-direction: column; align-items: stretch; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 28px; }
  .plist-head, .llist-head, .pxlist-head { display: none; }
  .pxrow, .pxlist-admin { grid-template-columns: 1fr auto; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .lrow > :nth-child(2) { display: none; }
  .set-all > span:first-child { display: none; }
  .list-toolbar { flex-wrap: wrap; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .plist-products .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 12px 16px; }
  .plist-products .prow-pass { grid-column: 1; grid-row: 2; }
  .plist-products .prow-pass .muted:only-child { display: none; }
  .prow > :nth-child(2), .prow-spark, .prow-total { display: none; }
  .plist-products .prow-spark { display: inline-flex; grid-column: 1; grid-row: 3; gap: 7px; align-items: baseline; }   /* scans on their own row (phones) */
  .plist-products .prow-spark .spark { display: none; }   /* the 14-day bar chart is too wide for phones */
  .plist-products .scan-n { display: inline-flex; align-items: baseline; gap: 7px; }
  .plist-products .scan-n small::before { content: "· "; }
  .hero-empty { flex-direction: column; text-align: center; padding: 28px 20px; }
  
  
  
  .form-section { grid-template-columns: 1fr; }
  .studio-body { padding: 20px 16px; }
  .studio-foot { padding: 14px 16px; }
  .design { grid-template-columns: 1fr; gap: 16px; }
  .design-nav { position: static; display: flex; overflow-x: auto; }
  .design-nav label { white-space: nowrap; }
  .crow { grid-template-columns: 1fr; gap: 10px; }
  .attr-row, .link-row { flex-wrap: wrap; }
  .link-row select, .link-row [name="link_href"] { flex-basis: 100%; }
  .attr-row [data-attr-type] { flex-basis: calc(100% - 44px); }
  .attr-row [data-attr-value] { flex-basis: 100%; order: 1; }   /* delete icon stays beside the type */
  .ecc-list { grid-template-columns: 1fr; }
  .step { display: none; }
  
}

/* ---------- error pages ---------- */
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 24px 16px; }
.error-card { width: min(460px, 100%); padding: 40px 36px 36px; text-align: center; display: flex; flex-direction: column;
  align-items: center; }
.error-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--mint); color: var(--brand-dark); }
.error-icon .ico { width: 24px; height: 24px; }
.error-code { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.error-card h1 { font-size: 22px; line-height: 1.3; margin: 6px 0 10px; }
.error-text { color: var(--muted); max-width: 34ch; margin: 0; line-height: 1.6; text-wrap: balance; }
.nobr { white-space: nowrap; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 480px) { .error-card { padding: 32px 22px 26px; } .error-actions .btn { flex: 1 1 100%; } }

/* ---------- account ---------- */
a.rail-avatar:hover { text-decoration: none; }
a.rail-avatar.active { box-shadow: 0 0 0 2px #0B1220, 0 0 0 4px #34D399; }
.rail-account { display: none; }
/* account: one card, sections one below the other (the New QR code page's .form-section), icon instead of a step number */
.account-sections .form-section { grid-template-columns: 36px minmax(0, 1fr); }
.account-sections .form-section h2 .chip { margin-left: 6px; vertical-align: 2px; }
.code-facts .code-facts-stack { display: grid; gap: 4px; }
.code-facts .code-facts-stack dd { text-align: left; font-size: 13px; }
.set-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.set-head h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.set-head p { font-size: 14px; margin: 4px 0 0; }
.set-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--brand-dark); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.set-grid-3 { grid-template-columns: repeat(3, 1fr); }
.set-grid .field + .field { margin-top: 0; }
.set-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.set-actions-start { justify-content: flex-start; margin-top: 0; }
.set-alert { margin-bottom: 16px; }
.set-note { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.set-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.set-mini { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #FAFCFB; }
.set-mini h3 { font-size: 14px; margin: 0; }
/* boxes side by side: same height, buttons on one line at the bottom */
.set-split-even > .set-mini { display: flex; flex-direction: column; gap: 10px; }
.set-split-even > .set-mini > .btn:last-child { margin-top: auto; }
.secret-box { border: 1px solid #BFE9D7; background: var(--mint); border-radius: 12px; padding: 16px; margin-bottom: 18px; font-size: 14px; }
.secret-box p { margin: 0 0 12px; color: var(--ink-2); }
.secret-copy { display: flex; gap: 8px; }
.secret-copy .input { background: #fff; font-size: 13px; }
.team-rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.team-rule p { margin: 4px 0 0; font-size: 13px; }
.team-rule form { margin: 0; flex: none; }
.frame-options { display: grid; gap: 12px; margin-top: 12px; }
.frame-options .field { margin: 0; }
.dev-list { display: grid; gap: 0; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dev-row:last-child { border-bottom: 0; }
.dev-row .muted { font-size: 12px; }
.dev-row form { margin: 0; justify-self: end; }
@media (max-width: 700px) { .dev-row { grid-template-columns: minmax(0, 1fr) auto; } .dev-row .muted { grid-column: 1 / -1; grid-row: 2; } }
.btn-icon-copy { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; flex: none; }
.codes-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes-grid li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; font-size: 14px; }
.twofa-setup { display: flex; gap: 24px; align-items: flex-start; }
.twofa-qr { flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.twofa-steps { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.secret-inline { word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; font-size: 13px; }
.twofa-confirm { display: flex; flex-wrap: wrap; gap: 10px; max-width: 360px; }
.twofa-confirm .input { flex-basis: 100%; height: 44px; }   /* code + password each on their own full-width row, not cramped */
.keylist { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.keylist-head, .keyrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 130px 110px 150px 40px; gap: 14px; align-items: center; padding: 0 16px; }
.keylist-head { height: 38px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFCFB; border-bottom: 1px solid var(--line); }
.keyrow { min-height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; }
.keyrow:last-child { border-bottom: 0; }
.keyrow-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keyrow form { margin: 0; }
.key-add { display: flex; gap: 8px; max-width: 520px; }
@media (max-width: 720px) {
  .rail-account { display: grid; }
  .set-grid, .set-grid-3, .set-split { grid-template-columns: 1fr; }
  .twofa-setup { flex-direction: column; }
  .keylist-head { display: none; }
  .keyrow { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .keyrow > span:nth-child(3), .keyrow > span:nth-child(4) { display: none; }
}

/* ---------- import / export ---------- */
.io-result { margin-bottom: 20px; }
.io-errors { margin-bottom: 20px; }
.errlist { display: grid; max-height: 420px; overflow: auto; margin-top: 14px; border-top: 1px solid var(--line); }
.errrow { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 10px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.errrow:last-child { border-bottom: 0; }
.errrow-n { color: var(--danger); font-weight: 600; }
.io-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }   /* three small step cards */
.io-steps li { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.io-steps .step { width: 24px; height: 24px; margin-bottom: 8px; border-radius: 8px; font-size: 12px; }
.io-steps b { font-size: 14px; color: var(--ink); }
.io-upload { display: grid; gap: 12px; }
.upload-drop { flex-direction: column; justify-content: center; min-height: 170px; padding: 28px; gap: 10px; text-align: center; }   /* big centred drop box */
.upload-drop .upload-text { justify-items: center; }
.io-upload .io-actions { justify-content: center; }
.io-upload .upload-text strong { max-width: none; }
.io-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.io-actions-start { justify-content: flex-start; }
.io-help { margin-top: 20px; }
.io-help summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.io-help summary::-webkit-details-marker { display: none; }
.io-help summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
.io-help[open] summary::after { content: "–"; }
.io-help summary h2 { font-size: 16px; margin: 0; }
.io-cols { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 18px; margin: 18px 0 0; font-size: 14px; }
.io-cols dt { font-weight: 600; }
.io-cols dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .io-cols, .io-steps { grid-template-columns: 1fr; }
  .io-cols dd { margin-bottom: 6px; }
}

/* ---------- API guide ---------- */
.docs .panel h2 { font-size: 16px; margin: 0 0 10px; }
.docs .panel p { font-size: 14px; color: var(--ink-2); }
.code { background: #0B1220; color: #E2E8F0; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 12px 0; }
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.ep-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ep { display: grid; grid-template-columns: 70px minmax(200px, auto) minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ep:last-child { border-bottom: 0; }
.ep > span { min-width: 0; overflow-wrap: anywhere; }
.ep-m { font-weight: 700; font-size: 12px; color: var(--brand-dark); }
.ep-post { color: #1D4ED8; }
.ep-del { color: var(--danger); }
@media (max-width: 760px) { .ep { grid-template-columns: 60px minmax(0, 1fr); } .ep > .muted { grid-column: 1 / -1; } }
.twofa-confirm .btn, .key-add .btn, .secret-copy .btn, .io-actions .btn { flex: none; white-space: nowrap; }
.key-add .input, .secret-copy .input { min-width: 0; flex: 1; }
.twofa-confirm .input { min-width: 0; }   /* full-width rows (set above), not squeezed into one line */
@media (max-width: 720px) {
  /* bottom bar: every item fits on a 360 px phone (up to 9 items for staff) */
  .rail { padding: 0 4px; justify-content: space-between; }
  .rail-nav { flex: 1; justify-content: space-around; gap: 0; }
  .rail-foot { gap: 0; }
  .rail-item { width: 38px; }
}

/* ---------- product passports (reuse the product page / list components) ---------- */
a.ecc-opt { display: block; color: inherit; text-decoration: none; }

/* passport editor tabs and sections: same look as the product page tabs / design menu */
#tab-content:checked ~ .studio-tabs label[for="tab-content"],
#tab-documents:checked ~ .studio-tabs label[for="tab-documents"],
#tab-sharing:checked ~ .studio-tabs label[for="tab-sharing"],
#tab-versions:checked ~ .studio-tabs label[for="tab-versions"] { color: var(--ink); }
#tab-content:checked ~ .studio-tabs label[for="tab-content"]::after,
#tab-documents:checked ~ .studio-tabs label[for="tab-documents"]::after,
#tab-sharing:checked ~ .studio-tabs label[for="tab-sharing"]::after,
#tab-versions:checked ~ .studio-tabs label[for="tab-versions"]::after { background: var(--brand); }
#tab-content:focus-visible ~ .studio-tabs label[for="tab-content"],
#tab-documents:focus-visible ~ .studio-tabs label[for="tab-documents"],
#tab-sharing:focus-visible ~ .studio-tabs label[for="tab-sharing"],
#tab-versions:focus-visible ~ .studio-tabs label[for="tab-versions"] { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 12px; }
#tab-content:checked ~ .studio-body .pane-content,
#tab-documents:checked ~ .studio-body .pane-documents,
#tab-sharing:checked ~ .studio-body .pane-sharing,
#tab-versions:checked ~ .studio-body .pane-versions { display: block; }
/* passport / product page editor: sections fold open (soft grey blocks like the code page) */
.sec { padding: 0; }
.sec + .sec { margin-top: 10px; }
.sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 16px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sec-title .tab-count { margin-left: 6px; }
.sec-chevron { flex: none; color: var(--muted); transition: transform .15s; }
.sec[open] .sec-chevron { transform: rotate(90deg); }   /* the chevron points right when closed, down when open */
.sec-body { display: grid; gap: 18px; padding: 0 20px 20px; }
.sec-body .field + .field { margin-top: 0; }
.video-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); gap: 10px; margin-top: 12px; }   /* editor: saved videos as play cards */
.video-previews .pg-video { min-height: 0; aspect-ratio: 16 / 9; border-radius: 12px; padding: 12px 14px; }
.video-previews .pg-video-play { top: 12px; left: 14px; width: 36px; height: 36px; }
.side-block { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg); }   /* editor side panel: grey blocks */
.side-block > .label { margin: 0; }
.side-block .hint { margin: 0; }
.side-block .preview-data { padding-top: 0; border-top: 0; }
.side-url { padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.5; color: var(--ink); }   /* the whole address, wrapped after a "/" */
.side-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-buttons .btn { justify-content: center; white-space: nowrap; }
.side-buttons [aria-disabled] { opacity: .5; cursor: not-allowed; }
.acct { gap: 14px; }   /* Account side panel: avatar, plan card, four tiles */
.acct-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-head > div { display: grid; min-width: 0; }
.acct-head b { font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #34D399; color: var(--ink); font-size: 18px; font-weight: 700; }
.acct-plan { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.acct-plan b { color: var(--ink); }
.acct-plan small { font-size: 12px; }
.acct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-tile { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--bg); min-width: 0; }
.acct-tile small { font-size: 12px; color: var(--muted); }
.acct-tile b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--brand-dark); box-shadow: 0 0 0 1px var(--line); }
.acct-tile .acct-ok { color: var(--brand-dark); }
.acct-tile .acct-warn { color: #B45309; }
.fact-list { display: grid; gap: 8px; }   /* guide side panels: one fact per row, icon + label + value */
.fact-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.fact-row .acct-ico { flex: none; }
.fact-row > span:last-child { display: grid; min-width: 0; }
.fact-row small { font-size: 12px; color: var(--muted); }
.fact-row b { font-size: 14px; color: var(--ink); }
.doc-thumb { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--bg); }   /* image documents show what they are */
.dpp-doclist .keyrow-name { display: flex; align-items: center; gap: 12px; }
.design-group > .keylist, .design-group .keylist { background: #fff; }   /* lists stay white inside a grey block */
.dpp-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dpp-label .label { margin-bottom: 0; }
.input-xs { width: auto; height: 32px; padding: 0 28px 0 10px; font-size: 13px; border-radius: 8px; }
textarea.input { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.dpp-langs { display: grid; gap: 8px; }
.dpp-lang { display: flex; gap: 8px; align-items: flex-start; }
.dpp-lang .chip { flex: none; margin-top: 12px; }
.dpp-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 14px 20px; border-radius: 16px; background: var(--bg); }   /* a grey block like the sections, no line */
.dpp-languages > .label { margin: 0 6px 0 0; }
.dpp-lang-chip, .dpp-lang-add { display: inline-flex; align-items: center; gap: 2px; margin: 0; }
.dpp-lang-chip .icon-btn { width: 28px; height: 28px; }
.dpp-lang-add { gap: 6px; }
/* row inputs wrap cleanly — a many-column i18n field (e.g. "How to sort it" with 3 columns × 3 languages) never
   clips off the right edge; the remove button sits at the end of the last line */
.dpp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dpp-row .input { flex: 1 1 130px; min-width: 130px; height: 44px; }
.dpp-row .icon-btn { flex: 0 0 auto; margin-inline-start: auto; }
.dpp-upload { display: grid; gap: 16px; margin-bottom: 22px; }
.dpp-upload .set-grid .field + .field { margin-top: 0; }
.dpp-upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dpp-upload-row > .btn { margin-left: auto; }   /* preview + file box together, Upload on the right */
.dpp-doclist .keylist-head, .dpp-doclist .keyrow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 120px 80px 40px; }
.dpp-codelist .keylist-head, .dpp-codelist .keyrow { grid-template-columns: minmax(0, 1.5fr) 120px minmax(0, 1fr) 110px 40px; }
.dpp-versionlist .keylist-head, .dpp-versionlist .keyrow { grid-template-columns: 70px 170px 130px minmax(0, 1fr) 40px; }
.pane-sharing form + .keylist, .pane-sharing .set-grid + .form-actions { margin-top: 18px; }
.pane-sharing .set-grid .field + .field { margin-top: 0; }
.dpp-publish { display: grid; gap: 10px; }
.dpp-publish .hint { margin: 0; }
@media (max-width: 720px) {
  .rail-item { width: 34px; }
  .dpp-doclist .keylist-head, .dpp-codelist .keylist-head, .dpp-versionlist .keylist-head { display: none; }
  .dpp-doclist .keyrow, .dpp-codelist .keyrow, .dpp-versionlist .keyrow { grid-template-columns: minmax(0, 1fr) auto; }
  .dpp-doclist .keyrow > :nth-child(n+2):nth-child(-n+4), .dpp-codelist .keyrow > :nth-child(n+3):nth-child(-n+4),
  .dpp-versionlist .keyrow > :nth-child(n+3):nth-child(-n+4) { display: none; }
  .dpp-codelist .keyrow > :nth-child(2), .dpp-versionlist .keyrow > :nth-child(2) { display: none; }
}
/* public passport page (standalone, like the auth / error pages) */
.dpp-public { max-width: 460px; margin: 0 auto; padding: 20px 14px 40px; display: grid; gap: 14px;
  --dpp-card-sh: 0 1px 3px rgba(16, 24, 40, .05), 0 10px 24px -16px rgba(16, 24, 40, .16); }   /* 99% of scans are phones: always the phone-width column, centred on bigger screens; the soft shadow keeps cards separate on any page background (incl. white) */
.dpp-head { display: grid; gap: 10px; }
.dpp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dpp-top-head .brand-bar { margin: 0; }
.dpp-top-head .brand-logo { max-height: 38px; max-width: 170px; }
.dpp-gp { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; }
.dpp-gp img { border-radius: 6px; }
.dpp-top .eyebrow-sm { margin: 0; }
.dpp-kind { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.dpp-kind .chip { gap: 4px; }
.dpp-ids { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.dpp-ids b { color: var(--ink); font-weight: 600; }
/* sections read as one list: no table box inside the card, lighter headings */
.dpp-public .panel > .code-facts, .dpp-public .dpp-block > .code-facts { border: 0; border-radius: 0; }
.dpp-public .panel > .code-facts div, .dpp-public .dpp-block > .code-facts div { padding: 12px 0; }
.dpp-public .set-head { align-items: center; margin-bottom: 8px; }
.dpp-public .set-ico { width: 32px; height: 32px; border-radius: 10px; }
.dpp-public .dpp-data { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }   /* flat facts, like the section fields — no grey tile inside the card */
.dpp-public .dpp-data div { padding: 0; border: 0; background: none; flex-direction: column; gap: 3px; }
.dpp-public .dpp-data dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dpp-public .dpp-data dd { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
/* compliance score (passport editor) */
.law-score { display: grid; gap: 6px; }
.meter-law > span { background: #B45309; }
.law-ok { color: var(--brand-dark); font-weight: 600; font-size: 13px; margin: 0; }
.law-missing summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #92400E; }
.law-missing ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.law-missing li { display: grid; gap: 1px; font-size: 13px; }
.law-missing li small { color: var(--muted); font-size: 12px; }
.law-score .hint, .law-none { margin: 0; font-size: 13px; }
/* access requests (passport editor) */
.req-list { display: grid; gap: 10px; margin: 0 0 22px; }
.req-list h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.req-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #FFFBF0; }
.req-who { min-width: 0; display: grid; gap: 3px; font-size: 14px; }
.req-who p { margin: 0; font-size: 13px; }
.req-reason { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.req-actions { display: flex; gap: 8px; flex: none; }
.req-actions form { margin: 0; }
@media (max-width: 560px) { .req-row { flex-direction: column; } }
.dpp-safety-gate { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.dpp-safety-gate:hover { border-color: var(--brand); }
/* access request (public passport) */
.dpp-request { margin-top: 14px; }
.dpp-request summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); font-size: 14px; }
.dpp-request > p { font-size: 14px; margin: 10px 0 0; }
.dpp-request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; }
.dpp-request-wide { grid-column: 1 / -1; }
.dpp-request-form .field { margin: 0; }
.dpp-request-privacy { margin: 10px 0 0; font-size: 13px; }   /* the grid gap spaces them; a field's own top margin pushed Email below Your name */
.dpp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dpp-request-note { margin-top: 14px; }
@media (max-width: 560px) { .dpp-request-form { grid-template-columns: minmax(0, 1fr); } }
/* more information: the code's extra links */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.link-card { display: grid; grid-template-rows: 1fr auto; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.link-card:hover { border-color: var(--brand); background: var(--mint); }
.link-card b { font-size: 14px; }
.link-card small { font-size: 12px; color: var(--muted); }
/* scan or share */
.dpp-share { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }   /* QR on top, text and buttons centred under it */
.dpp-share-qr { flex: none; width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.dpp-share-text { display: grid; gap: 6px; min-width: 0; justify-items: center; }
.dpp-share-text h2 { font-size: 16px; margin: 0; }
.dpp-share-text p { margin: 0; font-size: 14px; }
.dpp-share-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; }
.dpp-share-links .btn { height: 38px; }
.btn-share-icon { width: 38px; padding: 0; justify-content: center; flex: none; }
/* supply chain: a timeline down the left edge */
.dpp-chain { list-style: none; margin: 4px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.dpp-chain li { position: relative; display: grid; gap: 3px; }
.dpp-chain li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand); }
.dpp-chain-top { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dpp-chain-name { margin: 0; font-size: 15px; }
.dpp-chain-name b { font-weight: 700; }
.dpp-tech summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.dpp-tech summary::-webkit-details-marker { display: none; }
.dpp-tech summary > span:last-child { display: grid; gap: 2px; flex: 1; }
.dpp-tech summary small { font-size: 13px; color: var(--muted); }
.dpp-tech summary::after { content: "+"; font-size: 20px; color: var(--brand); }
.dpp-tech[open] summary::after { content: "−"; }
.dpp-tech[open] summary { margin-bottom: 8px; }
.dpp-public > .panel.dpp-hero { padding: 0; overflow: hidden; border: 0; box-shadow: var(--dpp-card-sh); border-radius: 18px; }   /* image fills the card edge to edge */
.dpp-hero { display: flex; flex-direction: column; gap: 0; align-items: stretch; }   /* always image-forward, like the phone mockup */
.dpp-hero h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.dpp-hero-text { flex: 1; display: grid; gap: 6px; min-width: 0; padding: 18px; }   /* the panel has no padding now, so the text does */
.dpp-photo { flex: none; width: 100%; height: 220px; max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 0; border: 0; background: var(--mint); }
.dpp-page .dpp-photo { width: 220px; height: 220px; }
.dpp-text { margin: 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; line-height: 1.6; }
.dpp-block { margin-top: 18px; }
.dpp-data { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; border: 0; border-radius: 0; overflow: visible; }
.dpp-data div { flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dpp-data div + div { border-top: 1px solid var(--line); }
.dpp-data dt { font-size: 12px; }
.dpp-data dd { text-align: left; font-size: 16px; }
.dpp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.dpp-block h3 { font-size: 14px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.dpp-access-on { justify-content: space-between; }
.dpp-access-on span { flex: 1; }
.dpp-access-on form { margin: 0; }
.dpp-foot { display: grid; gap: 12px; margin-top: 6px; font-size: 13px; }
.dpp-foot > p { text-align: center; margin: 0; }
.dpp-brand { display: inline-flex; font-size: 13px; gap: 5px; vertical-align: middle; }
.code-facts dd a { color: var(--brand-dark); }
@media (max-width: 560px) {
  .dpp-page .dpp-photo { width: 100%; height: auto; max-height: 340px; aspect-ratio: 1; }
  .dpp-public .code-facts div { flex-direction: column; gap: 2px; }
  .dpp-public .code-facts dd { text-align: left; }
}
.dpp-brand img { width: 18px; height: 18px; }
/* public pages' footer: one centred line, logo centred with the text, even space around the dots */
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 0;
             font-size: 13px; line-height: 20px; color: var(--muted); }
.foot-line > a:not(.dpp-brand) { color: var(--muted); text-decoration: none; }
.foot-line > a:not(.dpp-brand):hover { color: var(--ink); text-decoration: underline; }
.foot-line .dpp-brand { align-items: center; gap: 5px; font-size: 13px; line-height: 20px; }
.foot-line .dpp-brand img { width: 16px; height: 16px; border-radius: 4px; }
.foot-sep { color: var(--line-2, #CBD5E1); }
.foot-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .03em; color: var(--muted); }
#tab-documents:checked ~ .studio-foot, #tab-sharing:checked ~ .studio-foot, #tab-versions:checked ~ .studio-foot { display: none; }
.dpp-lang > .input, .dpp-lang > textarea, .dpp-lang > select { flex: 1; min-width: 0; }
.head-actions .btn { white-space: nowrap; }
@media (max-width: 720px) {                             /* phones: main button full width on top, the rest in equal pairs */
  .head-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .head-actions .btn { justify-content: center; min-width: 0; }
  .head-actions .btn-primary, .head-actions .btn:only-child, .head-actions .head-wide { grid-column: 1 / -1; order: -1; }
  .head-actions form { display: grid; }
  .prow-link .btn { width: 36px; padding: 0; justify-content: center; }     /* products list: copy icon only */
  .prow-link .btn span { display: none; }
  .prow-actions .btn { width: 36px; padding: 0; justify-content: center; }  /* passports list: link icon only */
  .prow-actions .btn span { display: none; }
  .pxrow:not(.pxlist-admin) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto 32px; gap: 10px; }
  .pxlist-own .pxrow { grid-template-columns: minmax(0, 1fr) auto auto 32px; gap: 10px; }
  .pxlist-own .pxrow > :nth-child(4), .pxlist-own .pxrow > :nth-child(5) { display: none; }   /* phones: dates hidden */
  .stepper { height: 36px; }
  .stepper button { width: 30px; }
  .stepper input { width: 40px; }
  .keylist-api .keyrow { grid-template-columns: minmax(0, 1fr) auto 32px; }
  .pxrow.pxlist-admin { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }     /* staff: actions get their own line */
  .pxlist-admin > * { min-width: 0; overflow-wrap: anywhere; }
  .pxlist-admin .pxrow-actions { grid-column: 1 / -1; justify-items: start; text-align: left; }
}
.design > * { min-width: 0; }
@media (max-width: 900px) {
  .design { grid-template-columns: minmax(0, 1fr); }
  .studio { min-width: 0; }
}
@media (max-width: 900px) {
  .dpp-toolbar .search { flex: 1 1 100%; max-width: none; }
}
/* steps continued in a second form: same divider as .form-section + .form-section */
.form-next > .form-section:first-of-type { margin-top: 14px; }   /* same gap as the other grey blocks */
.form-section-body .muted + p { margin-top: 16px; }

.set-all-short { display: none; }
@media (max-width: 900px) { .set-all > .set-all-short { display: inline; } }
@media (max-width: 720px) {
  .bill-hero { gap: 18px; }
  .bill-hero-plan { flex-basis: 100%; min-width: 0; padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .bill-usage { flex-basis: 100%; grid-template-columns: 1fr; gap: 18px; }   /* one clean column — no orphan tile, no empty half-row */
  .bill-usage > div { min-width: 0; padding: 0; border-left: 0; }
}
/* list rows: name and status chips on one line */
.prow-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.prow-title .prow-name { min-width: 0; }
.prow-title .chip-xs { flex: none; margin-top: 0; }

.label-link { font-size: 13px; font-weight: 600; }
.confirm-banner { margin-bottom: 20px; align-items: center; }
.confirm-banner form { margin: 0 0 0 auto; }

/* ---------- GTINpass product page (passports/page_public.html) ---------- */
.pg { max-width: 1120px; margin: 0 auto; padding: 20px 20px 56px; display: grid; gap: 36px; }
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-brand { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pg-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #EDF1EF; }
.pg-lang a, .pg-lang span { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.pg-lang span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 32, .1); }
.pg-lang a:hover { color: var(--ink); }

/* hero */
.pg-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; }   /* same grid as the cards below */
.pg-hero-text { grid-template-columns: minmax(0, 720px); }
.pg-gallery { display: grid; gap: 14px; }
.pg-radio { position: absolute; opacity: 0; pointer-events: none; }
.pg-main { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: #F4F3EF; box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .05); }
.pg-img { display: none; width: 100%; height: 100%; object-fit: contain; }
#pg-photo-0:checked ~ .pg-main .pg-img-0, #pg-photo-1:checked ~ .pg-main .pg-img-1, #pg-photo-2:checked ~ .pg-main .pg-img-2,
#pg-photo-3:checked ~ .pg-main .pg-img-3, #pg-photo-4:checked ~ .pg-main .pg-img-4, #pg-photo-5:checked ~ .pg-main .pg-img-5 { display: block; }
.pg-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
/* several photos: thumbnails in a strip beside the photo, so the gallery is no taller than the text */
.pg-gallery-multi { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
.pg-gallery-multi .pg-main { grid-column: 2; grid-row: 1; }
.pg-gallery-multi .pg-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; flex-wrap: nowrap; }
.pg-gallery-multi .pg-thumb { width: 64px; height: 64px; }
.pg-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #F2F1EC; cursor: pointer; opacity: .6;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .06); transition: opacity .15s, box-shadow .15s; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-thumb:hover { opacity: 1; }
#pg-photo-0:checked ~ .pg-thumbs .pg-thumb-0, #pg-photo-1:checked ~ .pg-thumbs .pg-thumb-1, #pg-photo-2:checked ~ .pg-thumbs .pg-thumb-2,
#pg-photo-3:checked ~ .pg-thumbs .pg-thumb-3, #pg-photo-4:checked ~ .pg-thumbs .pg-thumb-4, #pg-photo-5:checked ~ .pg-thumbs .pg-thumb-5 { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.pg-radio:focus-visible ~ .pg-thumbs { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 12px; }
.pg-info { display: grid; gap: 22px; align-content: start; min-width: 0; padding: 0 28px; }   /* text lines up with the text in the cards */
.pg-info h1 { font-size: 52px; line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.pg-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.pg-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pg-badges li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pg-badges .ico { color: var(--brand); }
.pg-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-cta .btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.pg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 4px 0 0; border-top: 1px solid var(--line); }
.pg-facts div { padding: 14px 16px 0 0; }
.pg-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.pg-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* sections */
.pg-h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 4px; }
.pg-block { display: grid; gap: 16px; }
.pg-videos { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.pg-videos-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.pg-videos-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto; }
.pg-video { position: relative; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 18px 20px; min-height: 150px;
  background: #0B1220; color: #fff; text-decoration: none; isolation: isolate; }
.pg-video-main { grid-row: span 2; aspect-ratio: 16 / 9; }
.pg-videos-1 .pg-video-main, .pg-videos-2 .pg-video-main { grid-row: auto; }
.pg-videos-2 .pg-video:not(.pg-video-main) { aspect-ratio: auto; }
.pg-video-play { position: absolute; top: 18px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; transition: transform .2s; }
.pg-video-play .ico { width: 20px; height: 20px; margin-left: 2px; }
.pg-video-main .pg-video-play { top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.pg-video-main .pg-video-play .ico { width: 30px; height: 30px; margin-left: 4px; }
.pg-video:hover .pg-video-play { transform: scale(1.06); }
.pg-video-text { position: relative; display: grid; gap: 3px; }
.pg-video-text b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-video-main .pg-video-text b { font-size: 20px; }
.pg-video-text small { font-size: 12px; opacity: .6; letter-spacing: .02em; }
.pg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

.pg-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
/* cards flow down two columns: a short card never leaves a hole beside a tall one */
.pg-flow { columns: 2 340px; column-gap: 20px; }
.pg-flow > .pg-panel { break-inside: avoid; margin: 0 0 20px; }
.pg-flow > .pg-panel:last-child { margin-bottom: 0; }
.pg-flow .pg-videos { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.pg-flow .pg-video-main { grid-row: auto; aspect-ratio: 16 / 9; }
.pg-flow .pg-video-main .pg-video-play { top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; }   /* centred on phones too */
.pg-flow .pg-video-main .pg-video-play .ico { width: 24px; height: 24px; }
.pg-flow .pg-video-main .pg-video-text b { font-size: 16px; }
.pg-flow .pg-video:not(.pg-video-main) { min-height: 0; aspect-ratio: auto; padding: 14px 16px 14px 76px; }
.pg-flow .pg-video:not(.pg-video-main) .pg-video-play { top: 50%; margin-top: -22px; left: 16px; }
.pg-panels-one { grid-template-columns: minmax(0, 1fr); }
.pg-panel { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.pg-item h3, .pg-callout h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }   /* never smaller than its text */
.pg-item p { margin: 0; white-space: pre-line; color: var(--ink); font-size: 15px; line-height: 1.65; }
.pg-item-inline { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); }
.pg-item-inline h3 { margin: 0; }
.pg-item-inline p { text-align: right; font-weight: 600; }
.pg-rows { list-style: none; margin: 0; padding: 0; }
.pg-rows li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pg-rows li:last-child { border-bottom: 0; }
.pg-rows .pg-rows-head { padding-top: 0; font-size: 13px; color: var(--muted); }
.pg-rows-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }   /* long lists: two columns */
.pg-rows-2 li:last-child { border-bottom: 1px solid var(--line); }
.pg-rows-2 .pg-rows-head { grid-column: 1 / -1; }
/* the balanced layout made by static/app.js (two columns, each card goes to the shorter one) */
.pg-flow.pg-cols { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pg-flow.pg-cols { align-items: stretch; }
.pg-col { display: flex; flex-direction: column; gap: 20px; }
.pg-col > .pg-panel { margin: 0; }
.pg-col > .pg-panel:last-child { flex: 1; align-content: start; }   /* both columns end on the same line */
.pg-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.pg-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.55; }
.pg-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--brand-dark); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pg-callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 16px; background: #FFF8E6; }
.pg-callout .ico { color: #B45309; margin-top: 1px; }
.pg-callout h3 { color: #92400E; margin-bottom: 4px; }
.pg-callout p { margin: 0; font-size: 15px; line-height: 1.55; color: #422006; }
.pg-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-certs li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.pg-cert-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.pg-plain { margin: 0; white-space: pre-line; }
.pg-docs { display: grid; gap: 4px; }
.pg-doc { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .15s; }
.pg-doc:hover { background: #F4F7F5; }
.pg-doc-ico { width: 34px; height: 34px; border-radius: 10px; background: #F1F4F2; color: var(--ink); display: grid; place-items: center; flex: none; }
.pg-doc-text { display: grid; gap: 1px; min-width: 0; }
.pg-doc-text b { font-size: 15px; overflow-wrap: anywhere; }
.pg-doc-text small { font-size: 12px; color: var(--muted); }

/* contact: the closing block */
.pg-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 76px; align-items: start; padding: 32px 28px;   /* same grid as the cards */ border-radius: 24px;
  background: #0B1220; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.pg-contact h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.02em; }
.pg-address { margin: 0; white-space: pre-line; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.6; }
/* heading | address on one row, then the buttons two per row — all on the cards' two columns */
.pg-contact-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; }
.pg-contact-head h2 { margin: 0; }
.pg-contact-head { row-gap: 10px; }
.pg-contact-head .pg-address { padding-top: 6px; }   /* first line level with the heading */
.pg-contact-actions { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 10px; }
.pg-contact-btn { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .15s; }
.pg-contact-btn:hover { background: rgba(255, 255, 255, .13); }
.pg-contact-btn .ico { color: var(--brand-light, #34D399); flex: none; }
.pg-contact-btn span { display: grid; gap: 1px; min-width: 0; }
.pg-contact-btn small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.pg-contact-btn b { font-size: 15px; overflow-wrap: anywhere; }
.pg-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pg-foot a { color: inherit; }
.pg-buybar { display: none; }

@media (max-width: 860px) {
  .pg { gap: 28px; padding: 14px 16px 40px; }
  .pg-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pg-info { padding: 0; }
  .pg-gallery-multi { grid-template-columns: minmax(0, 1fr); }
  .pg-gallery-multi .pg-main, .pg-gallery-multi .pg-thumbs { grid-column: auto; grid-row: auto; }
  .pg-gallery-multi .pg-thumbs { flex-direction: row; flex-wrap: wrap; }
  .pg-main { border-radius: 16px; }
  .pg-thumb { width: 56px; height: 56px; }
  .pg-info { gap: 18px; }
  .pg-info h1 { font-size: 36px; }
  .pg-lead { font-size: 16px; }
  .pg-cta { flex-direction: column; }
  .pg-cta .btn-lg { width: 100%; white-space: nowrap; }
  .pg-videos, .pg-videos-2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .pg-video-main { grid-row: auto; aspect-ratio: 4 / 3; }
  .pg-flow .pg-video-main { aspect-ratio: 4 / 3; }
  .pg-flow .pg-video-main .pg-video-play { top: 40%; }
  .pg-video-main .pg-video-play { top: 20px; left: 20px; width: 56px; height: 56px; margin: 0; }
  .pg-video-main .pg-video-play .ico { width: 24px; height: 24px; }
  .pg-video-main .pg-video-text b { font-size: 18px; }
  .pg-video:not(.pg-video-main) { min-height: 0; padding: 14px 16px 14px 76px; }
  .pg-video:not(.pg-video-main) .pg-video-play { top: 50%; margin-top: -22px; left: 16px; }
  .pg-panels { grid-template-columns: minmax(0, 1fr); }
  .pg-panel { padding: 22px 20px; border-radius: 16px; }
  .pg-contact { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; border-radius: 20px; gap: 22px; }
  .pg-has-buy { padding-bottom: 96px; }
  .pg-buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11, 18, 32, .25); }
  .pg-buybar-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- product page, link-in-bio style (templates/passports/page_public.html .pg-bio) ----------
   one centred column on every screen; buttons and open-in-place sections follow the Brand button shape (--btn-r) */
/* a product page is a link-in-bio marketing page: the phone-column (mobile) view on every screen, just centred on desktop */
.pg.pg-bio { max-width: 460px; padding: 36px 16px 48px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
/* a soft page backdrop with a hint of the brand colour at the top (branded pages keep their own background) */
.pg-bio:not(.branded)::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #EFF4F3, #F6F8FA 280px); }
.pg-bio:not(.branded)::before { background-image: radial-gradient(120% 55% at 50% -8%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 60%), linear-gradient(180deg, #EFF4F3, #F6F8FA 280px); }
.bl-slabel { display: flex; align-items: center; gap: 8px; margin: 4px 2px -2px; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bl-slabel::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.bl-lang { justify-self: center; }
.bl-head { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 10px; min-width: 0; }
.bl-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: contain; padding: 12px; background: #fff; margin-bottom: 8px;
  box-shadow: 0 0 0 4px #fff, 0 12px 30px -14px rgba(11, 18, 32, .4); }
.bl-brand { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-head h1 { margin: 0; font-size: 28px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.bl-lead { margin: 2px 0 0; max-width: min(42ch, 100%); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.bl-badges { justify-content: center; gap: 8px; margin-top: 12px; }
.bl-badges li { padding: 7px 13px 7px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.page-dark .bl-badges li { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
/* Highlights (features) shown inside the Details section as a 2-column check list */
.pg-hl-grid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pg-hl-grid li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.pg-hl-grid .ico { color: var(--brand); flex: none; margin-top: 2px; }
@media (max-width: 400px) { .pg-hl-grid { grid-template-columns: 1fr; } }
.bl-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.bl-icons a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--brand-dark); background: transparent; transition: transform .12s, color .12s; }
.bl-icons a .ico { width: 22px; height: 22px; }
.bl-icons a:hover { color: var(--brand); transform: translateY(-2px) scale(1.08); }
.pg-facts.bl-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0; border-top: 0; padding: 0; border-radius: 18px; background: #fff; text-align: center; overflow: hidden; }
.bl-facts div { padding: 15px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; }
.bl-facts div:last-child { border-right: 0; }
.bl-facts dt { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.bl-facts dd { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.25; white-space: nowrap; }
/* link rows and section headers: icon tile at the left, title, chevron at the right */
.bl-btn, .bl-pill > summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 0; padding: 15px 16px;
  border-radius: var(--btn-r, 16px); background: #fff; color: var(--ink); font-size: 15.5px; font-weight: 700; text-align: left; text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px -12px rgba(16, 24, 40, .18); cursor: pointer; list-style: none; transition: transform .12s, box-shadow .12s; }
.bl-btn:hover, .bl-pill > summary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(16, 24, 40, .4); }
.bl-pill > summary::-webkit-details-marker { display: none; }
.bl-label { min-width: 0; overflow-wrap: anywhere; letter-spacing: -.01em; }
.bl-label small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.bl-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--brand-dark); }
.bl-primary { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; text-align: center; box-shadow: 0 9px 20px -12px rgba(11, 18, 32, .55); }
.bl-primary .bl-label { flex: none; text-align: center; font-weight: 700; font-size: 15px; }
.bl-primary .bl-ico { width: auto; height: auto; background: transparent; border-radius: 0; color: #fff; }
.bl-primary .bl-ico .ico { width: 21px; height: 21px; stroke-width: 2.2; color: #fff; }
.btn-outline .bl-primary { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px var(--brand-dark); }
.btn-outline .bl-primary .bl-ico { background: var(--mint); color: var(--brand-dark); }
.bl-chev { justify-self: end; color: var(--muted); transition: transform .15s; }
.bl-chev-link { justify-self: end; color: var(--muted); }
.bl-pill { border-radius: min(var(--btn-r, 16px), 28px); background: #fff; }
.bl-pill[open] > summary { box-shadow: none; transform: none; }
.bl-pill[open] .bl-chev { transform: rotate(90deg); }
.bl-pill[open] { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -18px rgba(16, 24, 40, .22); }
.bl-body { display: grid; gap: 14px; padding: 2px 18px 18px; text-align: left; }
/* rich content inside the sections — mockup look: small grey field labels, boxed tables, soft callouts */
.pg-bio .bl-body .pg-item h3 { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 5px; }
.pg-bio .bl-body .pg-item p, .pg-bio .bl-body .pg-item li { font-size: 14.5px; }
.pg-bio .bl-body .pg-callout { background: #FFFBEF; box-shadow: inset 0 0 0 1px #F3E4BC; border-radius: 13px; padding: 13px 14px; }
.pg-bio .bl-body .pg-callout h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pg-bio .bl-body .pg-cert-ico { border-radius: 10px; width: 34px; height: 34px; }
.pg-bio .bl-body .pg-rows { box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.pg-bio .bl-body .pg-rows li { padding: 9px 12px; }
.pg-bio .bl-body .pg-rows li:last-child { border-bottom: 0; }
.pg-bio .bl-body .pg-rows .pg-rows-head { padding: 8px 12px; background: #FAFBFC; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.bl-body.pg-docs { gap: 8px; }
.bl-share { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 22px; border-radius: min(var(--btn-r, 16px), 28px); background: #fff; }   /* QR on top, text and buttons centred under it — like the passport */
.bl-share h2 { margin: 0; font-size: 16px; color: var(--ink); }
.bl-share .muted { margin: 0; font-size: 14px; }
/* share: icons are bare brand-coloured icons (no background); Copy link stays a button with a brand icon */
.bl-share .dpp-share-links .btn .ico { color: var(--brand-dark); }
.bl-share .dpp-share-links .btn-share-icon { background: transparent; border-color: transparent; box-shadow: none; color: var(--brand-dark); transition: transform .12s, color .12s; }
.bl-share .dpp-share-links .btn-share-icon:hover { background: transparent; color: var(--brand); transform: translateY(-2px) scale(1.08); }
.bl-share .dpp-share-links .btn-share-icon .ico { width: 20px; height: 20px; }
.bl-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }   /* small squares, three to a row */
.bl-photos a { cursor: zoom-in; }
.bl-carousel { position: relative; }
.bl-carousel-on [data-car-row] { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.bl-carousel-on [data-car-row]::-webkit-scrollbar { display: none; }
.bl-carousel-on .bl-photos a { flex: 0 0 calc((100% - 16px) / 3.25); scroll-snap-align: start; }   /* three and a bit show: the cut-off one says "swipe" */
.bl-carousel-on .bl-video { flex: 0 0 88%; scroll-snap-align: start; }
.bl-car-btn { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #0B1220; box-shadow: 0 2px 10px rgba(11, 18, 32, .18); cursor: pointer; opacity: 0; transition: opacity .15s; }
.bl-car-prev { left: 8px; transform: translateY(-50%) rotate(180deg); }
.bl-car-next { right: 8px; transform: translateY(-50%); }
.bl-carousel:hover .bl-car-btn, .bl-car-btn:focus-visible { opacity: 1; }   /* on computers: shown while the pointer is over the row */
@media (hover: none) { .bl-car-btn { display: none; } }   /* phones swipe */
.bl-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 64px 16px; background: rgba(11, 18, 32, .85); }   /* photo pop-up */
.lightbox[hidden] { display: none; }
.lightbox-box { display: grid; justify-items: center; gap: 16px; width: min(600px, 100%); }
.lightbox-box img { display: block; max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 16px; user-select: none; }
.lightbox button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox [data-lb-close] { position: fixed; top: 16px; right: 16px; }
.lightbox [data-lb-prev] .ico { transform: rotate(180deg); }
.lightbox-nav { display: flex; align-items: center; gap: 14px; }
.lightbox-count { min-width: 44px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .8); }
.bl-address { white-space: pre-line; margin: 0; }
.bl-videos { display: grid; gap: 8px; }
.pg-video.bl-video { aspect-ratio: 16 / 9; min-height: 0; padding: 16px 18px; border-radius: 16px; background-color: #0B1220; background-size: cover; background-position: center; }
.bl-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 18, 32, .78), rgba(11, 18, 32, .05) 60%); }   /* the title stays readable on any picture */
.pg-video.bl-video .pg-video-play { top: 42%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; z-index: 1; }
.bl-video .pg-video-play .ico { width: 24px; height: 24px; }
.bl-video .pg-video-text { position: relative; z-index: 1; min-width: 0; max-width: 100%; }
.bl-video .pg-video-text b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line, clear of the play button */
:is(.pg-bio, .dpp-public) .rate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 22px 16px; border-radius: min(var(--btn-r, 16px), 28px); text-align: center; }
:is(.pg-bio, .dpp-public) .rate-head { display: contents; }
:is(.pg-bio, .dpp-public) .rate-head h2 { font-size: 16px; }
:is(.pg-bio, .dpp-public) .rate-form { order: 2; margin: 2px 0 0; gap: 2px; }
:is(.pg-bio, .dpp-public) .rate-avg { order: 3; font-size: 13px; }
:is(.pg-bio, .dpp-public) .rate-note { order: 4; margin: 8px 0 0; }
:is(.pg-bio, .dpp-public) .rate-star { width: 44px; height: 44px; }
:is(.pg-bio, .dpp-public) .rate-star .ico { width: 30px; height: 30px; }
.pg-foot.bl-foot { flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; text-align: center; }
.pg-bio .pg-buybar { transform: translateY(110%); transition: transform .2s; }
.pg-bio .pg-buybar.on { transform: none; }
.page-dark :is(.bl-btn:not(.bl-primary), .bl-pill, .bl-facts, .bl-share) { --ink: #0B1220; --ink-2: #334155; --muted: #64748B; color: var(--ink-2); }
.page-dark .bl-icons a:hover { background: rgba(255, 255, 255, .12); }
.page-dark.btn-outline .bl-primary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.page-dark.btn-outline .bl-primary .bl-ico { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 640px) {
  .pg.pg-bio { padding: 28px 16px 40px; }
  .pg-bio.pg-has-buy { padding-bottom: 96px; }
  .bl-head h1 { font-size: 24px; }
  .bl-body { padding: 4px 16px 18px; }
  .bl-share { flex-direction: column; text-align: center; }
  .bl-share .dpp-share-links { justify-content: center; }
}

/* ---------- language picker (templates/passports/_lang_menu.html) — public passports and product pages ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; color: #0B1220;
  font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; box-shadow: 0 1px 2px rgba(11, 18, 32, .08); }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu-chev { color: #64748B; transform: rotate(90deg); transition: transform .15s; }
.lang-menu[open] .lang-menu-chev { transform: rotate(-90deg); }
.lang-menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: grid; min-width: 190px; max-height: 60vh; overflow-y: auto; padding: 6px;
  border-radius: 14px; background: #fff; box-shadow: 0 12px 32px -8px rgba(11, 18, 32, .28); }
.lang-menu-list a, .lang-menu-list span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: #0B1220; text-decoration: none; }
.lang-menu-list a:hover { background: #F3F6F5; }
.lang-menu-list .on { font-weight: 700; color: var(--brand-dark); }
.bl-lang { justify-self: end; }

/* ---------- public passport: sections as cards, values as grey tiles (no lines) ---------- */
.dpp-public > .panel.dpp-sec { border: 0; box-shadow: var(--dpp-card-sh); border-radius: 18px; padding: 18px; }
.dpp-public > .panel:is(.rate, .dpp-share, .dpp-tech) { border: 0; box-shadow: var(--dpp-card-sh); border-radius: 18px; }   /* the closing cards match the sections */
.dpp-public .dpp-sec .set-head { margin-bottom: 16px; }
.dpp-public .dpp-sec .set-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.dpp-public .dpp-sec .set-ico { width: 34px; height: 34px; border-radius: 10px; }
.dpp-public .dpp-sec > .code-facts, .dpp-public .dpp-sec .dpp-block > .code-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; overflow: visible; }
.dpp-public .dpp-sec > .code-facts > .dpp-wide { grid-column: 1 / -1; }   /* an email or web address gets the full row */
.dpp-public .dpp-sec > .code-facts div, .dpp-public .dpp-sec .dpp-block > .code-facts div { flex-direction: column; justify-content: flex-start; gap: 3px; padding: 0; border: 0; }   /* name over value, spaced in a grid: no lines, no boxes */
.dpp-public .dpp-sec > .code-facts dt, .dpp-public .dpp-sec .dpp-block > .code-facts dt { font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 2.3em; overflow-wrap: anywhere; }   /* crisp slate labels; two reserved lines so values line up across columns; long German compound words wrap */
.dpp-public .dpp-sec > .code-facts dd, .dpp-public .dpp-sec .dpp-block > .code-facts dd { text-align: start; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.dpp-public .dpp-sec > .code-facts dd.mono { white-space: normal; overflow-wrap: anywhere; }
.dpp-public .dpp-sec .dpp-block { margin-top: 24px; }
.dpp-public .dpp-sec .dpp-block h3 { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }   /* never smaller than its text */
.dpp-public .dpp-sec .dpp-block > .dpp-text { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.dpp-public .dpp-sec .dpp-block h3 .chip { text-transform: none; letter-spacing: 0; }
/* highlight chips under the hero · percent meters · composition bars (passport, all from the passport's own data) */
.dpp-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }   /* wrap to more rows so every chip is fully visible — nothing hidden behind a scroll */
.dpp-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.dpp-stars .ico { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; color: #CBD5E1; }
.dpp-stars .ico.on { color: #F5A524; }
.dpp-stars-v { margin-left: 6px; vertical-align: middle; }
.dpp-yes { display: inline-flex; align-items: center; gap: 6px; }
.dpp-yes .ico { color: var(--brand); }
.dpp-chip-v { gap: 6px; }
.dpp-public .dpp-sec .dpp-stat { font-size: 18px; }
/* public tamper-evident record page (passports/integrity.html) */
.dpp-int-back { font-size: 14px; font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.dpp-int-name { font-size: 20px; letter-spacing: -.01em; margin: 10px 0 6px; }
.dpp-int-status { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.dpp-int-hash { font-size: 13px; overflow-wrap: anywhere; }
.dpp-int-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 18px; }
.dpp-int-list li { display: grid; gap: 5px; padding-top: 16px; border-top: 1px solid var(--line); }
.dpp-int-list li:first-child { padding-top: 0; border-top: 0; }
.dpp-int-vhead { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.dpp-int-ok { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.dpp-int-ok .ico { color: var(--brand); }
.dpp-int-ok-bad, .dpp-int-ok-bad .ico { color: var(--danger); }
.dpp-int-pair { margin: 0; font-size: 13px; }
.dpp-integrity .panel, .dpp-integrity .dpp-head { min-width: 0; }   /* grid items may shrink: the code block scrolls inside, not the page */
.dpp-int-code { max-width: 100%; box-sizing: border-box; overflow-x: auto; margin: 14px 0; padding: 16px; border-radius: 12px; background: #0B1220; color: #E2E8F0; font-size: 12px; line-height: 1.6; }
.dpp-int-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.dpp-int-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dpp-int-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.dpp-foot-int { text-align: center; margin: 0; }
.dpp-foot-int a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.dpp-foot-int .ico { color: var(--brand); flex: none; }
.dpp-foot-int .mono { font-weight: 400; color: var(--muted); }
.dpp-meter { height: 9px; margin-top: 8px; border-radius: 999px; background: #EDF1F5; overflow: hidden; }
.dpp-meter > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #34D399); }
.dpp-bars { display: flex; height: 9px; margin: 2px 0 14px; border-radius: 999px; overflow: hidden; }
.dpp-bars > i { display: block; }
.dpp-legend { display: grid; gap: 10px; }
.dpp-legend > div { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink); }
.dpp-legend .sw { position: relative; top: 2px; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.dpp-legend .dpp-leg-t { min-width: 0; overflow-wrap: anywhere; }
.dpp-legend .dpp-leg-pc { margin-left: auto; font-weight: 700; white-space: nowrap; }   /* percentage right-aligned, like the mockup */
.dpp-legend .muted { font-size: 13px; }
@media (max-width: 640px) {
  .dpp-public > .panel.dpp-sec { padding: 18px; }
  .dpp-public .dpp-sec > .code-facts, .dpp-public .dpp-sec .dpp-block > .code-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpp-public .dpp-sec > .code-facts > .dpp-wide { grid-column: 1 / -1; }   /* an email or web address gets the full row, so it doesn't break */
}
/* desktop view: the passport widens, the hero image sits beside the text, fields go three across */
@media (min-width: 820px) {
  .dpp-public { max-width: 960px; padding: 32px 24px 56px; gap: 18px; }
  .dpp-public .dpp-hero { flex-direction: row; align-items: stretch; }
  .dpp-public .dpp-photo { width: 340px; height: auto; align-self: stretch; }
  .dpp-public .dpp-hero-text { padding: 32px 36px; align-content: center; }
  .dpp-public .dpp-hero h1 { font-size: 32px; }
  .dpp-public .dpp-hero .dpp-text { font-size: 16px; }
  .dpp-public > .panel.dpp-sec { padding: 28px 32px; }
  .dpp-public .dpp-sec .set-head h2 { font-size: 20px; }
  .dpp-public .dpp-sec .set-ico { width: 40px; height: 40px; border-radius: 12px; }
  .dpp-public .dpp-sec > .code-facts, .dpp-public .dpp-sec .dpp-block > .code-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
  .dpp-public .dpp-data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dpp-public .dpp-sec > .code-facts dd, .dpp-public .dpp-sec .dpp-block > .code-facts dd { font-size: 16px; }
  .dpp-public .dpp-sec .dpp-block h3, .dpp-public .dpp-sec .dpp-block > .dpp-text { font-size: 16px; }
  .dpp-public .dpp-tech summary b, .dpp-public .dpp-share-text h2, :is(.pg-bio, .dpp-public) .rate-head h2 { font-size: 20px; }   /* closing cards match the section headings */
  .dpp-public .dpp-tech .set-ico { width: 40px; height: 40px; border-radius: 12px; }
  .dpp-public .dpp-tech summary small, .dpp-public .dpp-share-text p { font-size: 14px; }
}

/* ---------- team (templates/team.html, team_join.html, base.html banner) ---------- */
.team-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 14px; border-radius: 12px; background: #EEF2F7; color: var(--ink); font-size: 14px; }
.team-banner .ico { color: var(--ink-2); flex: none; }
.team-banner form { margin: 0 0 0 auto; }
.team-switch { margin: 0; }
.team-switch .input { height: 42px; min-width: 240px; }
.team-invites { margin-bottom: 20px; }
.team-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 14px; }
.team-invite-row + .team-invite-row { border-top: 1px solid var(--line); }
.team-invite-row form { margin: 0; }
.modal-invite { width: min(460px, calc(100vw - 32px)); }
/* Scan domain: the 2 DNS records to add — 1 CNAME or A record, 2 TXT; boxes full width, copy buttons aligned */
.dns-prompt { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.dns-box { margin-top: 14px; padding: 6px 14px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dns-box-title { font-size: 13px; font-weight: 600; margin: 8px 0 2px; }
.dns-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dns-num { width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; background: var(--mint);
  color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.dns-body { display: grid; gap: 6px; min-width: 0; }
.dns-line { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.dns-kind { flex: none; width: 46px; font-size: 12px; font-weight: 700; }
.dns-arrow { color: var(--muted); font-weight: 400; text-align: center; }
.dns-box code { flex: 1; min-width: 0; font-size: 13px; word-break: break-all; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.dns-val { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; }   /* every box full width: copy buttons line up */
.btn-copy-mini { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; }
.btn-copy-mini:hover { color: var(--brand-dark); background: var(--mint); }
.dns-or { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 12px; color: var(--muted); }
.dns-or::before, .dns-or::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.modal-invite .field { margin: 10px 0 4px; }
.modal-invite .field .input { height: 44px; }
.modal-invite .ecc-list { margin-top: 0; }
.team-role-pick { grid-template-columns: 1fr; gap: 8px; }   /* one role per row: name left, what it may do right — no wrapped text */
.team-role-pick span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.team-role-pick small { font-size: 13px; }
.modal-invite .modal-actions .btn { white-space: nowrap; }
.modal-invite .alert { margin: 6px 0 0; }
.modal-invite .modal-box > p.muted { text-wrap: pretty; }   /* full width, no lone last word (balance left a gap on the right) */
/* the list sits inside the panel like the other lists (no box of its own) */
.team-list { border: 0; border-radius: 0; margin: 0; }
.team-list .keyrow, .team-list .keylist-head { grid-template-columns: minmax(0, 1.6fr) 160px minmax(0, 1fr) 40px; padding: 0 20px; }
.team-mine .keyrow, .team-mine .keylist-head { grid-template-columns: minmax(0, 1.6fr) 150px 150px 140px; }
.team-list.team-mine .keyrow > :last-child { justify-self: start; }   /* "Working here" under its Status heading */
.team-mine .keyrow { min-height: 60px; }
.list-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.team-list .keyrow { padding-top: 8px; padding-bottom: 8px; }
.team-list .keyrow-name { display: grid; gap: 1px; white-space: normal; }
.team-list .keyrow-name small { font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list .keyrow form { margin: 0; }
.team-list .keyrow > :last-child { justify-self: end; }
.team-list [hidden] { display: none !important; }
.team-role-form .input-xs { min-width: 120px; }
.team-join-actions { display: grid; gap: 10px; }
.team-join-actions .btn, .auth-form form .btn-block { height: 48px; }   /* both buttons the same height */
@media (max-width: 400px) {
  .team-role-pick span { padding: 12px; }
}
@media (max-width: 760px) {   /* narrow: name on its own line, then role · status · action */
  .team-switch, .team-switch .input { width: 100%; min-width: 0; }
  .team-list .keyrow { grid-template-columns: auto minmax(0, 1fr) 32px; row-gap: 8px; padding: 12px 16px; }
  .team-list .keyrow-name { grid-column: 1 / -1; }
  .team-list .keyrow-name small { white-space: normal; overflow-wrap: anywhere; }
  .team-list .keyrow > :last-child { grid-column: 3; }   /* the remove / leave button always in the same place */
  .team-list .keyrow > span:nth-child(3) { display: block; font-size: 13px; }   /* keep "Invited" on phones too */
  .team-list .keyrow > span.team-joined { display: none; }
  .team-mine .keyrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .team-mine .keyrow > span:nth-child(3) { display: none; }
  .team-list.team-mine .keyrow > :last-child { grid-column: 3; justify-self: end; }
  .team-mine .keyrow > span:nth-child(4) { display: block; }
  .team-banner { flex-wrap: wrap; }
}
/* controls a team role can't use are hidden (the server refuses them anyway — app/team.py) */
body[data-role="viewer"] [data-need="editor"], body[data-role="viewer"] [data-need="admin"],
body[data-role="editor"] [data-need="admin"] { display: none !important; }

/* ---------- branding: the account's logo + colour on its public pages (app/branding.py sets the variables) ---------- */
.brand-bar { display: flex; align-items: center; margin-bottom: 14px; }
.brand-logo { display: block; width: auto; height: auto; max-height: 64px; max-width: 220px; object-fit: contain; }   /* square logos show big enough, wide ones stay within the width */
.pg-top .brand-logo { max-height: 52px; max-width: 200px; }
.branded .btn-primary { color: var(--brand-ink, #fff); }
.branded .dpp-brand b { color: #0E9F6E; }   /* "Hosted by GTINpass" keeps the GTINpass green */
.branded .btn-primary:hover { background: var(--brand); border-color: var(--brand); filter: brightness(.93); }
.brand-grid { align-items: start; }
.brand-logo-row { display: flex; align-items: center; gap: 12px; }
.brand-logo-box { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); overflow: hidden; }
.brand-logo-box img { max-width: 52px; max-height: 52px; object-fit: contain; }
/* Settings → Brand: two-section grouping + second preview */
.brand-group-head { display: flex; align-items: center; gap: 8px; margin: 24px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.brand-group-head:first-child { margin-top: 0; }
.brand-group-head .ico { color: var(--brand-dark); }
.brand-group-note { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--muted); }
.preview-sub { display: flex; align-items: center; gap: 6px; margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.preview-sub .ico { color: var(--brand-dark); }
.anim-sample { color: #fff; background: var(--p, var(--brand)); border: 0; }
/* Product-page button animations (marketing): on the real page's .bl-primary and in the preview / picker samples */
@keyframes gp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes gp-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.btn-anim-pulse .bl-primary, .btn-anim-pulse .bprev-btn, .anim-sample.btn-anim-pulse { animation: gp-pulse 1.8s ease-in-out infinite; }
.btn-anim-shine .bl-primary, .btn-anim-shine .bprev-btn, .anim-sample.btn-anim-shine { position: relative; overflow: hidden; }
.btn-anim-shine .bl-primary::after, .btn-anim-shine .bprev-btn::after, .anim-sample.btn-anim-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%); background-size: 220% 100%; background-repeat: no-repeat; animation: gp-shine 2.6s linear infinite; pointer-events: none; }
.btn-anim-rise .bl-primary, .btn-anim-rise .bprev-btn, .anim-sample.btn-anim-rise { transition: transform .2s ease, box-shadow .2s ease; }
.btn-anim-rise .bl-primary:hover, .btn-anim-rise .bprev-btn:hover, .anim-sample.btn-anim-rise:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 18, 32, .18); }
@media (prefers-reduced-motion: reduce) { .bl-primary, .bprev-btn, .anim-sample { animation: none !important; } }

/* Settings → Brand: tabs, two-column panel and the realistic passport / product previews */
.brand-tab-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.brand-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; background: #eceff0; border-radius: 12px; }
.brand-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.brand-tab .ico { color: currentColor; }
.brand-tab:hover { color: var(--ink); }
#bt-passport:checked ~ .brand-tabs label[for="bt-passport"], #bt-product:checked ~ .brand-tabs label[for="bt-product"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 32, .1); }
#bt-passport:focus-visible ~ .brand-tabs label[for="bt-passport"], #bt-product:focus-visible ~ .brand-tabs label[for="bt-product"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.brand-tabpanel { display: none; }
#bt-passport:checked ~ [data-panel="passport"], #bt-product:checked ~ [data-panel="product"] { display: block; }
.brand-link { position: relative; }
.brand-link .input { padding-right: 44px; }
.brand-link-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.brand-link-del:hover { background: #FEF2F2; color: #DC2626; }
.brand-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.brand-controls { margin: 0; }
.brand-side { position: sticky; top: 20px; }
.brand-side .preview-sub { margin: 0 0 10px; }
.brand-side .hint { margin-top: 10px; }
/* preview shell — mirrors a real public page (phone-width card) */
.bprev { border-radius: 20px; padding: 18px 16px 16px; background: var(--page-bg, #F7F9F8); box-shadow: 0 1px 3px rgba(11, 18, 32, .08), 0 10px 30px -18px rgba(11, 18, 32, .3); overflow: hidden; }
.bprev, .bprev * { font-family: inherit; }
.bprev-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bprev-logo { display: inline-flex; align-items: center; height: 40px; }
.bprev-logo img { max-height: 40px; max-width: 120px; object-fit: contain; }
.bprev-logo b { font-size: 15px; font-weight: 800; color: var(--ink); }
.bprev-lang { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.bprev-kind { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--p); }
.bprev-kind .ico { color: var(--p); }
.bprev-chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--p) 14%, #fff); color: var(--p); font-size: 11px; font-weight: 700; }
.bprev-photo { height: 120px; border-radius: 14px; background: linear-gradient(135deg, #e7eceb, #f3f5f4); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .05); }
.bprev-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bprev-rows span { height: 34px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
/* product preview — bio-link style */
.bprev-product { text-align: center; }
.bprev-avatar { width: 72px; height: 72px; margin: 2px auto 10px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px -6px rgba(11, 18, 32, .3); display: grid; place-items: center; overflow: hidden; }
.bprev-avatar img { max-width: 54px; max-height: 54px; object-fit: contain; }
.bprev-avatar b { font-size: 15px; font-weight: 800; color: var(--ink); }
.bprev-brand { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bprev-title { margin: 0 0 12px; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.bprev-lead { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 0 14px; }
.bprev-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 13px; background: #fff; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 32, .06); }
.bprev-row-ic { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--p) 14%, #fff); display: grid; place-items: center; flex: none; }
.bprev-row-ic .ico { color: color-mix(in srgb, var(--p) 72%, #000); }
.bprev-chev { margin-left: auto; color: var(--muted); }
.bprev.page-dark .bprev-row { background: rgba(255, 255, 255, .08); color: #fff; }
/* buttons: white text on the brand gradient, exactly like the real .bl-primary */
.bprev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px; border-radius: var(--btn-r, 12px); background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 72%, #000)); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 9px 20px -12px rgba(11, 18, 32, .55); }
.bprev-btn .ico { color: #fff; width: 20px; height: 20px; stroke-width: 2.2; }
.bprev.btn-outline .bprev-btn { background: #fff; color: color-mix(in srgb, var(--p) 72%, #000); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p) 72%, #000); }
.bprev.btn-outline .bprev-btn .ico { color: inherit; }
.bprev-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.bprev-tiles span { height: 52px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bprev-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 0; }
.bprev-product .bprev-links { justify-content: center; }
.bprev-links span { font-size: 12px; font-weight: 600; color: var(--p); }
.bprev.page-dark { color: #fff; }
.bprev.page-dark .bprev-title { color: #fff; }
.bprev.page-dark .bprev-lead { color: rgba(255, 255, 255, .8); }
.bprev.page-dark .bprev-brand { color: rgba(255, 255, 255, .8); }
@media (max-width: 860px) { .brand-cols { grid-template-columns: minmax(0, 1fr); } .brand-side { position: static; } }
.logo-pick .brand-logo-box, .dpp-upload-row .brand-logo-box { width: 58px; height: 58px; }   /* same preview box as the brand logo */
.brand-logo-row .upload { flex: 0 0 auto; min-width: 0; }   /* compact, like the code logo upload */
.brand-note { display: block; margin-top: 8px; font-size: 13px; }
.pg-share { display: flex; align-items: center; gap: 24px; }
.pg-share .pg-h2 { margin: 0; font-size: 20px; }
@media (max-width: 560px) { .pg-share { flex-direction: column; align-items: flex-start; } }
/* ratings (passports/_rating.html) */
.rate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rate-head h2 { margin: 0; }
.rate-avg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.rate-avg .ico { color: #F5A524; fill: #F5A524; }
.rate-avg b { color: var(--ink); }
.rate-note { margin: 12px 0 0; }
.rate-form { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-top: 12px; }
.rate-star { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: #CBD5E1; }
.rate-star .ico { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; }
.rate-star.on, .rate-form:not(:hover) .rate-star.on ~ .rate-star { color: #F5A524; }
.rate-star:hover, .rate-star:hover ~ .rate-star { color: #F5A524; }
.rate-form:hover .rate-star.on:not(:hover) { color: #CBD5E1; }
.rate-form:hover .rate-star:hover, .rate-form:hover .rate-star:hover ~ .rate-star { color: #F5A524; }
.rate-star:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.brand-switch { margin-top: 14px; }
.rate-chip { display: inline-flex; align-items: center; gap: 4px; }
.rate-chip .ico { color: #F5A524; fill: #F5A524; }
/* company settings tabs (_settings_tabs.html) */
.settings-tabs { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.settings-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; }
.settings-tabs a:hover { color: var(--ink); }
.settings-tabs a.on { color: var(--ink); }
.settings-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
/* webhooks page */
.hook-list .keyrow, .hook-list .keylist-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px 120px 40px; padding: 0 20px; }
.hook-list { border: 0; border-radius: 0; margin: 0; }
.hook-list .keyrow { padding-top: 10px; padding-bottom: 10px; }
.hook-list .keyrow-name { white-space: normal; overflow-wrap: anywhere; }
.hook-list .keyrow form { margin: 0; }
.hook-list .keyrow > form:nth-child(4) { justify-self: start; }
.hook-list .keyrow > :last-child { justify-self: end; }
/* brand page preview */
.brand-color { max-width: 220px; }
.brand-preview { display: grid; gap: 8px; justify-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.brand-preview-top { height: 32px; display: flex; align-items: center; }
.brand-preview-top img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.brand-preview-top b { font-size: 15px; }
.brand-preview-kind { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--p); }
.brand-preview-name { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.brand-preview-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--btn-r, 12px); background: var(--p); color: var(--pi, #fff); font-weight: 600; font-size: 14px; }
.brand-preview-card { display: grid; gap: 10px; justify-items: start; width: 100%; box-sizing: border-box; padding: 14px; border-radius: 12px; background: #fff; }
.brand-preview-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.brand-preview.page-dark .brand-preview-top, .brand-preview.page-dark .brand-preview-kind, .brand-preview.page-dark .brand-preview-links { color: #fff; }
.brand-preview.btn-outline .brand-preview-btn { background: #fff; color: var(--p); box-shadow: inset 0 0 0 1.5px var(--p); }
/* Brand settings: swatch rows and the button / font pickers (a ring marks the chosen one, no cards) */
.brand-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.brand-swatches .dot { width: 28px; height: 28px; }
.brand-picks { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brand-pick { position: relative; cursor: pointer; }
.brand-pick input { position: absolute; opacity: 0; pointer-events: none; }
.brand-pick input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.brand-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 4px; }
.brand-btn-sample { display: inline-block; padding: 9px 16px; font-size: 13px; font-weight: 600; background: var(--p); color: #fff; }
.brand-btn-sample.outline { background: #fff; color: var(--p); box-shadow: inset 0 0 0 1.5px var(--p); }
.brand-pick input:checked + .brand-btn-sample.outline { box-shadow: inset 0 0 0 1.5px var(--p), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.brand-font-sample { display: grid; justify-items: center; gap: 2px; width: 76px; padding: 8px 0; border-radius: 12px; background: #fff; }
.brand-font-sample b { font-size: 22px; font-weight: 600; color: var(--ink); }
.brand-font-sample small { font-size: 12px; color: var(--muted); }
.brand-link { display: block; }
.brand-link + .brand-link { margin-top: 8px; }
[data-brand-links] .attr-add { margin-top: 10px; }
/* Public passport / product pages: the account's design (app/branding.py design()) */
.font-own { font-family: var(--font); }
.font-own :is(h1, h2, h3, .btn, input, button, select, textarea) { font-family: inherit; }
.branded .btn { border-radius: var(--btn-r, 12px); }
.btn-outline .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px var(--brand-dark); }
.btn-outline .btn-primary:hover { background: var(--mint); }
.page-dark { --ink: #FFFFFF; --ink-2: #E2E8F0; --muted: #CBD5E1; color: var(--ink-2); }
.page-dark :is(.panel, .pg-panel, .chip, .pg-lang, .pg-gallery, .dpp-request, details, dialog, .btn:not(.btn-primary), .brand-preview-card) { --ink: #0B1220; --ink-2: #334155; --muted: #64748B; color: var(--ink-2); }   /* the text colour inherited from the dark page is reset too */
.page-dark .pg-hero .btn-outline .btn-primary, .page-dark.btn-outline .pg-hero .btn-primary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.page-dark .dpp-kind, .page-dark .dpp-kind > .ico { color: #fff; }   /* the line above the cards on a dark page */
.brand-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; font-size: 13px; }
.brand-links a { color: var(--ink-2); text-decoration: none; }
.brand-links a:hover { color: var(--brand-dark); }
.page-dark .brand-links a:hover { color: #fff; }
@media (max-width: 760px) {
  .hook-list .keyrow { grid-template-columns: minmax(0, 1fr) auto 32px; row-gap: 6px; padding: 12px 16px; }
  .hook-list .keyrow-name { grid-column: 1 / -1; }
  .hook-list .keyrow > span:nth-child(2) { display: block; grid-column: 1 / -1; font-size: 13px; }
  .hook-list .keyrow > span:nth-child(3) { display: block; grid-column: 1; }
  .hook-list .keyrow > form:nth-child(4) { grid-column: 2; }
  .hook-list .keyrow > :last-child { grid-column: 3; }
  .hook-when { display: none; }
}
.hook-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hook-group { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; align-content: start; }
.hook-group legend { padding: 0 4px; margin-left: -4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hook-group .check-inline { font-size: 14px; color: var(--ink); }
.hook-group input { width: 16px; height: 16px; accent-color: var(--brand); }
.hook-ev { display: block; font-size: 13px; }
.hook-ev b { font-weight: 600; color: var(--ink-2); }
.brand-logo-row + .set-actions, .brand-color + .set-actions { margin-top: 12px; }
@media (max-width: 560px) {   /* all five Settings tabs fit a phone: text only, tighter */
  .settings-tabs { gap: 0; }
  .settings-tabs a { padding: 0 7px; font-size: 14px; }
  .settings-tabs a .ico { display: none; }
  .settings-tabs a.on::after { left: 6px; right: 6px; }
}
.key-list { border: 0; border-radius: 0; margin: 0; }
.key-list .keyrow, .key-list .keylist-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) 72px; padding: 0 20px; }
.key-list .keyrow .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-list .keyrow > :last-child { justify-self: end; }
.key-list .keyrow form { margin: 0; }
.key-list .keyrow-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
@media (max-width: 720px) {
  /* stacked card: Name + Status on top, then key / created / last-used lines, actions on the right (like the team and
     webhook lists) — no hidden data on phones */
  .key-list .keyrow { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; padding: 14px 16px; align-items: start; }
  .key-list .keyrow-name { grid-column: 1; grid-row: 1; align-self: center; }
  .key-list .keyrow > .mono { grid-column: 1; grid-row: 2; font-size: 12px; }
  .key-list .keyrow > :nth-child(3) { display: block; grid-column: 1; grid-row: 3; font-size: 12px; }
  .key-list .keyrow > :nth-child(4) { display: block; grid-column: 1; grid-row: 4; font-size: 12px; }
  .key-list .keyrow > :nth-child(3)::before { content: "Created "; color: var(--muted); }
  .key-list .keyrow > :nth-child(4)::before { content: "Last used "; color: var(--muted); }
  .key-list .keyrow > :nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .key-list .keyrow-actions { grid-column: 2; grid-row: 2 / 5; justify-self: end; align-self: center; }
}
/* plan cards (landing + /pricing, _plan_cards.html) — name, price, one line, button, points */
.lpricing .cycle-toggle, .plan-cards + .plan-note { margin-left: auto; margin-right: auto; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; gap: 24px; }
.plan { display: grid; align-content: start; gap: 0; padding: 34px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 20px; font-weight: 700; }
.plan-price { margin: 18px 0 0; font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.plan-price small { margin-left: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-tagline { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.plan .btn { margin-top: 26px; height: 50px; border-radius: 13px; font-size: 15px; }
.plan-points { list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 15px; font-weight: 500; }
.plan-points li { display: flex; align-items: center; gap: 10px; }
.plan-points .ico { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 3; }
.plan-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-dark .plan-price small, .plan-dark .plan-tagline { color: #A7C4B8; }
.plan-dark .plan-points { border-top-color: rgba(255, 255, 255, .12); }
.plan-dark .plan-points .ico { background: #34D399; color: var(--ink); }
.plan-dark .btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.plan-dark .btn-light:hover { background: #E7F8F1; border-color: #E7F8F1; }
.plan-note { text-align: center; margin-top: 24px; font-size: 14px; }
.plan-more { text-align: center; margin: 10px 0 0; font-weight: 600; }
.plan-more a { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 760px) { .plan-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; } .plan { padding: 28px 24px; } .plan-price { font-size: 42px; } }
@media (max-width: 560px) {   /* the comparison fits a phone without sideways scrolling */
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare thead th { font-size: 15px; white-space: normal; }
  .compare thead th small { display: none; }
  .compare-group td { padding: 10px; font-size: 15px; }
  .compare-val { font-size: 13px; }
  .compare th:not(:first-child), .compare td:not(:first-child) { width: 78px; padding-left: 4px; padding-right: 4px; }
}
/* wine e-label (passports/elabel_public.html): plain and readable, nothing else on the page */
/* Wine e-label — presentation only (law: nutrition declaration + ingredients, nothing else). A clean official-looking
   nutrition panel: a strong header rule, tabular figures, the energy line emphasised, ingredients set apart. No colour
   branding, logo, image or link beyond "Report this page". Phone-label width, centred on any screen. */
.elabel { max-width: 460px; margin: 0 auto; padding: 28px 16px 48px; }
.elabel-top { justify-content: flex-end; }
.elabel-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 30px -20px rgba(16, 24, 40, .2); }
.elabel-card h1 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; }
.elabel-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 20px; font-variant-numeric: tabular-nums; }
.elabel-table th, .elabel-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 500; }
.elabel-table thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.elabel-table td, .elabel-table thead th:last-child { text-align: end; white-space: nowrap; }
.elabel-table tbody th { color: var(--ink); font-weight: 600; }
.elabel-table tbody tr:first-child th, .elabel-table tbody tr:first-child td { font-size: 16px; font-weight: 700; }
.elabel-table tbody tr:last-child th, .elabel-table tbody tr:last-child td { border-bottom: 0; }
.elabel-table .elabel-sub th { padding-inline-start: 18px; color: var(--ink-2); font-weight: 400; }
.elabel-table .elabel-sub td { color: var(--ink-2); font-weight: 400; }
.elabel-ingredients { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.elabel-ingredients b { font-weight: 700; }
.elabel-date { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.elabel-date span { color: var(--muted); }
.elabel-negligible { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.pxrow-kind { display: block; font-family: var(--font, inherit); font-size: 12px; color: var(--muted); }   /* prefixes: a single GTIN, not a company prefix */
.prefix-add .prefix-kind { width: auto; flex: 0 0 auto; }
/* report form (/report) and the staff queue (/reports) */
.report-form { display: grid; gap: 14px; max-width: 680px; }
.report-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.report-row { flex-direction: column; align-items: stretch; }   /* staff: the report on top, its decisions side by side below */
.report-decisions { display: grid; gap: 8px; }   /* one line per decision: name · boxes · button */
.report-decide { display: grid; grid-template-columns: 140px minmax(0, 1fr) 190px; gap: 12px; align-items: center; margin: 0;
                 padding: 10px 12px; border-radius: 12px; background: #fff; }
.report-decide > b { font-size: 13px; }
.report-fields { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.report-fields.muted { display: block; font-size: 13px; }
.report-decide .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) { .report-decide { grid-template-columns: 1fr; } .report-fields { grid-auto-flow: row; } .report-decide .btn { width: auto; justify-self: start; } }
/* public report form: a plain page, no GTINpass menu or sales footer */
.rp-page { max-width: 680px; margin: 0 auto; padding: 32px 16px 40px; display: grid; gap: 18px; }
.rp-page h1 { margin: 0; font-size: 28px; }
.rp-page .rp-intro { margin: 0; }
.rp-card { background: #fff; border-radius: 16px; padding: 22px; }
.rp-back { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.rp-foot { text-align: center; font-size: 12px; color: var(--muted); }
.rp-foot a { color: var(--brand-dark); font-weight: 500; }
.elabel-report { margin: 18px 0 0; text-align: center; font-size: 12px; }
.elabel-report a { color: #64748B; }
.report-form .input-row { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .report-form .input-row { grid-template-columns: 1fr; } }
/* one passport's compliance page (/passports/<id>/compliance) */
.head-chips { display: flex; gap: 6px; margin: 8px 0 0; }
.cmp-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.cmp-top .kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cmp-top .meter { margin-top: 6px; }
.cmp-top .meter span.pass-mid { background: #F59E0B; }
.cmp-top .meter span.pass-low { background: #EF4444; }
.cmp-none { font-size: 24px; color: var(--ink-2); }
.cmp-rows { display: grid; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 12px 20px; color: var(--ink); }
.cmp-row:nth-child(odd) { background: #FAFCFB; }
.cmp-row:hover { background: var(--mint); }
.cmp-row-main { display: grid; gap: 2px; min-width: 0; }
.cmp-row-main small { font-size: 12px; }
.cmp-go { color: var(--muted); }
.cmp-note { font-size: 13px; margin: 12px 4px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .cmp-top { grid-template-columns: 1fr; } .cmp-row .chip { display: none; } }
/* passport import (/passports/import) — same layout as /gs1-codes/import */
.linkish { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--brand-dark); cursor: pointer; }
.linkish:hover { color: var(--brand); }
.io-steps select { width: 100%; margin-top: 6px; }
.pio-template { display: grid; gap: 6px; }
.pio-guide { display: grid; margin-top: 14px; font-size: 13px; }
.pio-guide-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 80px; gap: 12px; padding: 7px 8px; border-radius: 8px; }
.pio-guide-row:nth-child(odd) { background: #FAFCFB; }
.pio-h { word-break: break-word; font-size: 12px; }
@media (max-width: 700px) { .pio-guide-row { grid-template-columns: 1fr auto; } .pio-guide-row > :nth-child(2) { display: none; } }
/* products list: Passport column — version + what the law still needs (dpp.passport_summaries) */
.prow-pass { min-width: 0; }
.pass-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); max-width: 100%; }
.pass-v { padding: 2px 7px; border-radius: 6px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pass-draft { background: #FEF3C7; color: #92400E; }
.pass-meter { width: 52px; flex: none; }
.pass-ok span { background: var(--brand); }
.pass-mid span { background: #F59E0B; }
.pass-low span { background: #EF4444; }
.pass-t { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-link .num.pass-t { font-weight: 600; }
/* products list: one Scans column, copy-link icon by the name, Actions = the ⋮ menu */
.scan-n { display: grid; line-height: 1.2; }
.scan-n b { font-size: 15px; }
.scan-n small { font-size: 12px; white-space: nowrap; }
.prow-act-head { text-align: center; }
.plist-products .row-menu { justify-self: center; }
.prow-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name-copy { flex: none; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.name-copy:hover { background: var(--mint); color: var(--brand-dark); }
.pass-v { white-space: nowrap; flex: none; }
.plist-products .prow-title { flex-wrap: nowrap; }
.plist-products .prow-title .prow-name { flex: 0 1 auto; }
.plist-products .prow-title .chip-xs { white-space: nowrap; }
/* ten squares for a score (_squares.html): green all done · amber half or more · red less · grey nothing mandatory */
.sq { display: inline-grid; grid-template-columns: repeat(10, 7px); gap: 2px; flex: none; }
.sq i { width: 7px; height: 12px; border-radius: 2px; background: #E9EFED; }
.sq-ok i.on { background: var(--brand); }
.sq-mid i.on { background: #F59E0B; }
.sq-low i.on { background: #EF4444; }
.sq-none i.on { background: #94A3B8; }
.sq-n { font-size: 13px; font-weight: 600; margin-left: 8px; white-space: nowrap; }
.cmp-sq { display: flex; align-items: center; margin-top: 4px; }
.cmp-sq .sq-n { display: none; }
/* new passport / page: How it works (three levels, the chosen code's level highlighted) */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); }
.how-step.on { background: var(--mint); box-shadow: 0 0 0 1px var(--brand) inset; }
.how-step .set-ico { background: #fff; }
.how-body { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.how-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.how-code { justify-self: start; padding: 1px 6px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink-2); }
.how-foot { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-2); }
.how-foot .ico { flex: none; color: var(--brand-dark); margin-top: 1px; }
.pass-v { width: 52px; padding: 2px 0; text-align: center; box-sizing: border-box; }   /* v1 and Draft the same width: squares line up */
/* Type scale (owner, Nov 20, 2026 audit): 12 · 13 · 14 · 15 · 16 · 18 · 20 · 22 · 24 · 28 · 32 · 36 · 40+ (website heroes);
   nothing under 12px. Touch screens and phones: fields 16px, or iPhones zoom the whole page in when a field is tapped. */
@media (pointer: coarse), (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
  select:not([multiple]):not([size]), textarea:not([cols]):not([wrap]) { font-size: 16px; }   /* outranks .input-xs etc. */
}
.dpp-hp input { font: inherit; }
.contact-hp input { font: inherit; }
small { font-size: max(12px, .85em); }   /* the browser's own "smaller" fell to 11.7px in 14px text; 12px is the floor */
.cmp-later { margin-top: 16px; }
/* Review & publish (/passports/review) */
.rv-toolbar { gap: 14px; }
.rv-toolbar .list-count { margin-left: auto; }
.rv-all { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.rv-list .plist-head, .rv-list .prow { grid-template-columns: 28px minmax(0, 2fr) minmax(0, 1.4fr) 200px; }
.rv-row { cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.rv-row input[type=checkbox], .rv-all input { width: 18px; height: 18px; accent-color: var(--brand); }
.rv-blocked { cursor: default; }
.rv-problem { font-size: 13px; color: #B45309; }
.rv-note { font-size: 13px; }
.rv-changed { font-size: 13px; color: var(--ink-2); min-width: 0; }
@media (max-width: 900px) {
  .rv-list .plist-head { display: none; }
  .rv-list .prow { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; }
  .rv-list .prow > .prow-main { display: grid; }   /* the general list rule hides column 2 on phones */
  .rv-list .rv-changed, .rv-list .prow-spark { grid-column: 2; display: flex; }
}
.rv-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: var(--mint); color: var(--ink); font-size: 14px; }
.rv-banner > .ico { color: var(--brand-dark); }
.rv-banner-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand-dark); }
.rv-banner:hover .rv-banner-go { color: var(--brand); }
/* code page: live preview of the extra buttons visitors see (passport_public._extra_links, mirrored in app.js) */
.link-preview { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.lp-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lp-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-btn { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.lp-web { margin: 0; }
.link-preview.lp-website .lp-buttons { opacity: .5; }
.lp-lines { display: grid; gap: 10px; }
.lp-line { display: grid; gap: 6px; }
.lp-never { margin: 0; color: #B45309; }
.row-menu.up .row-menu-list { top: auto; bottom: calc(100% + 6px); box-shadow: 0 -16px 40px -16px rgba(11, 18, 32, .28); }   /* opens upwards near the bottom; shadow above it, not on the button */
html.jumping body { visibility: hidden; }   /* static/jump.js: until the page has scrolled to the spot */
/* editor: generic environmental claims to check (app/green_claims.py, Directive (EU) 2024/825) */
.claims-check { display: grid; gap: 6px; }
.claims-n { font-size: 13px; font-weight: 600; color: #B45309; }
/* opt-in scan record on serial-numbered items (public passport + product page) */
.dpp-scanrec p, .bl-scanrec p { margin: 0; font-size: 14px; }
.dpp-scanrec, .bl-scanrec { display: grid; gap: 4px; }
.bl-scanrec { padding: 16px 22px; border-radius: min(var(--btn-r, 16px), 28px); background: #fff; text-align: center; }   /* like .bl-share */
/* product page: sections grouped one under another */
.bl-group { display: contents; }
/* {address}/sorting — plain page: no shop links, videos or ratings (Regulation (EU) 2025/40 Art. 12(5)(b)) */
.sorting-page { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; display: grid; gap: 16px; }
.sorting-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sorting-card { background: #fff; border-radius: 16px; padding: 22px; display: grid; gap: 6px; }
.sorting-card h1 { margin: 0 0 8px; font-size: 24px; }
.sorting-name { margin: 0; color: var(--muted); font-size: 14px; }
.sorting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sorting-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--page-bg, #F7F9F8); }
.sorting-list li > span:nth-child(2) { display: grid; font-size: 15px; }
.sorting-list small { color: var(--muted); font-size: 13px; }
.sorting-where { font-weight: 600; font-size: 14px; color: var(--brand-dark); text-align: end; }
@media (max-width: 420px) { .sorting-list li { grid-template-columns: 36px minmax(0, 1fr); } .sorting-where { grid-column: 2; text-align: start; } }
/* dashboard: Needs your attention + EU deadlines */
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }   /* attention, then deadlines: full width, never side by side (their lengths differ too much) */
.dash-top > .panel { display: flex; flex-direction: column; }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn-list li, .attn-clear { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #F7F9F8; }
.attn-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--muted); }
.attn-high .attn-ico { background: #FFF4E5; color: #B45309; }
.attn-mid .attn-ico { background: #EEF2F7; color: #475569; }
.attn-clear .attn-ico { background: var(--mint); color: var(--brand-dark); }
.attn-text { display: grid; gap: 2px; min-width: 0; }
.attn-text b { font-size: 14px; }
.attn-text small { font-size: 13px; color: var(--muted); }
.attn-list .btn { white-space: nowrap; }
.dash-span { grid-column: 1 / -1; }
.never-note { margin: 0 0 12px; }
.panel-more { margin-top: 12px; font-size: 13px; font-weight: 600; }
.rating-big { display: grid; justify-items: start; gap: 6px; }
.rating-big strong { font-size: 32px; line-height: 1; }
.rating-stars { display: flex; gap: 2px; color: #DCE5E1; }
.rating-stars .on { color: #F59E0B; fill: currentColor; }
@media (max-width: 560px) { .attn-list li, .attn-clear { grid-template-columns: 36px minmax(0, 1fr); } .attn-list .btn { grid-column: 2; justify-self: start; } }
/* Settings → Domain: list of the brand's scan domains */
.dmlist .pxlist-head, .dmlist .pxrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 70px 300px; }
.dm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.dm-name small { flex-basis: 100%; font-size: 12px; }
.dm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dm-actions form { margin: 0; }
.dm-dns { display: grid; gap: 6px; padding: 12px 20px 14px; background: #FAFCFB; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.dm-dns p { margin: 0; }
.dm-dns .mono { font-size: 13px; color: var(--ink); word-break: break-all; }
.dm-note { margin: 0; padding: 12px 20px 16px; }
@media (max-width: 700px) { .dmlist .pxlist-head { display: none; } .dmlist .pxrow { grid-template-columns: minmax(0, 1fr) auto; } .dmlist .pxrow > :nth-child(3) { display: none; } .dm-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.hint-warn { color: #8A5A00; }   /* a hint that warns (e.g. changing a printed code's domain) */
/* dashboard refresh (Nov 21, 2026): KPI icons + trend line, attention tiles, ranked products, device icons */
.kpi { position: relative; overflow: hidden; }
.kpi-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--mint); color: var(--brand-dark); }
.kpi-ico .ico { width: 16px; height: 16px; }
.kpi.k-deadline .kpi-ico { background: #FFF4E5; color: #B45309; }
/* v2 attention list: one row per item (icon · text · action button) */
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.alist li:first-child { padding-top: 4px; }
.alist li:last-child { border-bottom: none; padding-bottom: 2px; }
.alist-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.alist .attn-high .alist-ico { background: #FFF4E5; color: #B45309; }
.alist .attn-mid .alist-ico { background: #EEF2F7; color: #475569; }
.alist .attn-text b { font-size: 14.5px; }
.alist .attn-text small { font-size: 13px; color: var(--muted); }
.alist-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); background: #fff; white-space: nowrap; }
.alist-btn .ico { width: 14px; height: 14px; }
.alist .attn-high .alist-btn { color: #B45309; border-color: #F0D6AE; background: #FFFBF4; }
.alist .attn-high .alist-btn:hover { background: #FDEBD5; }
.alist .attn-mid .alist-btn { color: var(--brand-dark); border-color: #CFEADF; background: #F4FBF8; }
.alist .attn-mid .alist-btn:hover { background: #E7F6EF; }
@media (max-width: 560px) { .alist li { grid-template-columns: 40px minmax(0, 1fr); } .alist-btn { grid-column: 2; justify-self: start; } }
/* v2 bottom row: Top products + Recent scans, each sized to its own content */
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.dash-bottom > .panel { display: flex; flex-direction: column; }
.dash-grid { margin-bottom: 16px; }
.feed-row .feed-body a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-ranked .meter-thin { margin-top: 7px; }
@media (max-width: 820px) { .dash-bottom { grid-template-columns: 1fr; } }
/* Product activity: the app's own list component (.plist/.plist-head/.prow), columns product · scans · device · last scan */
.plist-activity .plist-head, .plist-activity .prow { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.3fr) 150px 134px; }
.plist-activity .prow { min-height: 68px; }
.plist-activity .prow-product { gap: 12px; }
.plist-activity .top-rank { flex: none; width: 22px; }
.plist-activity .prow-spark { gap: 12px; }
.plist-activity .scan-n b { font-size: 15px; }
.prow-dev { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); min-width: 0; }
.prow-dev .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.plist-activity .prow-when { text-align: right; white-space: nowrap; line-height: 1.3; }
.plist-activity .prow-when .pw-time { display: block; color: var(--ink); font-size: 13px; }   /* exact local time, shown — not just a tooltip */
.plist-activity .prow-when .pw-ago { display: block; color: var(--muted); font-size: 12px; }
.act-empty { padding: 44px 20px; }
@media (max-width: 680px) {
  .plist-activity .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; min-height: 0; }
  .plist-activity .prow-product { grid-column: 1; grid-row: 1; }
  .plist-activity .prow-spark { display: inline-flex; grid-column: 2; grid-row: 1; justify-self: end; }
  .plist-activity .prow-spark .spark { display: none; }        /* phones: the 14-day chart is too wide — show just the count */
  .plist-activity .prow-dev { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--muted); }
  .plist-activity .prow-when { grid-column: 2; grid-row: 2; }
}
.kpi-value { margin-top: 2px; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.trend { font-weight: 600; }
.trend-up { color: var(--brand-dark); }
.trend-down { color: #B42318; }
.kpi-label { grid-area: lab; }
.kpi-value { grid-area: big; }
.kpi-foot { grid-area: foot; }
.kpi-viz, .kpi-line { grid-area: viz; justify-self: end; align-self: center; }
.kpi-line { width: 92px; height: 34px; overflow: visible; }
/* Option A: a small metric visual beside each number */
.kpi-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--mint); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.kpi-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.kpi-bar { width: 92px; height: 10px; border-radius: 999px; background: #CDEBDD; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.kpi-ring { width: 52px; height: 52px; flex: none; }
.kpi-ring svg { width: 52px; height: 52px; display: block; }
.kpi-line path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.kpi .rating-stars { display: inline-flex; gap: 1px; }
.count-badge { margin-left: 4px; color: var(--muted); font-weight: 600; }
.h2-sub { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.attn-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }   /* tiles share the row */
.attn-tiles li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: #F7F9F8; }
.attn-tiles .attn-ico { margin-bottom: 4px; }
.attn-tiles b { font-size: 14px; line-height: 1.35; }
.attn-tiles small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.attn-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.attn-go:hover { color: var(--ink); }
.attn-high .attn-go { color: #B45309; }
.top-ranked { grid-template-columns: 24px minmax(0, 1fr) 40px !important; }
.top-rank { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.feed-row { align-items: center !important; }
.feed-row .feed-body { flex: 1; }
.feed-time { font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) { .kpi-spark { grid-template-columns: minmax(0, 1fr) 90px; } .kpi-line { width: 90px; } }
@media (max-width: 600px) { .top-ranked { grid-template-columns: 24px minmax(0, 1fr) 40px !important; } .kpi-spark { grid-column: 1 / -1; } }
/* deadlines inside the attention card (one card for what to do), product names wrap on phones instead of "…" */
@media (max-width: 600px) { .top-name { white-space: normal; overflow: visible; } }
/* no coloured fills behind the attention icons (owner): the icon keeps its colour */
.attn-tiles .attn-ico, .attn-clear .attn-ico { width: auto; height: auto; background: none; justify-content: start; }
@media (max-width: 600px) { .kpis > .kpi:last-child { grid-column: 1 / -1; } }   /* phones: no half-width card left alone */
@media (max-width: 600px) { .kpis-4 > .kpi:last-child { grid-column: auto; } }   /* 4 even cards: clean 2×2, no orphan */
.feed-row .feed-dot { width: 24px; height: 24px; background: none; color: var(--muted); }   /* dashboard: plain device icon, no green fill (owner) */
/* dashboard: no green backgrounds anywhere (owner) — device icons plain, the chart has its line only */
.feed-row .feed-dot { width: 24px; height: 24px; background: none; color: var(--muted); }
.panel-chart .chart-area { fill: none; }
/* no background on the boxes inside the dashboard's attention card (owner) */
.attn-tiles li { background: none; padding: 4px 0; }
/* ---------- dashboard rework (Nov 21, 2026): one strip of key numbers, one overview card, plain lists ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 4px 0; margin-bottom: 16px; }
.kpi-strip > .kpi { border: 0; box-shadow: none; background: none; border-radius: 0; padding: 18px 24px; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }   /* two cards, one height */
.overview-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ov-main, .ov-side { min-width: 0; display: flex; flex-direction: column; }
.attn-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.attn-rows li, .attn-rows-clear { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.attn-rows .attn-ico, .attn-rows-clear .attn-ico { width: auto; height: auto; background: none; color: var(--muted); }
.attn-rows .attn-high .attn-ico, .attn-rows li.attn-high .attn-ico { color: #B45309; }
.attn-rows-clear .attn-ico { color: var(--brand-dark); }
.attn-rows .attn-text { display: grid; gap: 1px; min-width: 0; }
.attn-rows .attn-text b { font-size: 14px; }
.attn-rows .attn-text small { font-size: 13px; color: var(--muted); }
.attn-rows .attn-go { margin: 0; padding: 0; white-space: nowrap; }
.dl-days { font-size: 13px; font-weight: 600; color: #B45309; white-space: nowrap; }
.ov-side .dl-note { margin: auto 0 0; padding-top: 14px; font-size: 12px; }
.feed-row { display: grid !important; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center !important; }
@media (max-width: 1100px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .kpi-strip > .kpi-spark { grid-column: 1 / -1; } .kpi-strip > .kpi { padding: 16px 18px; } .attn-rows li { grid-template-columns: 20px minmax(0, 1fr); } .attn-rows .attn-go { grid-column: 2; } }
/* dashboard: separate key-number cards; clear separation between list items and between titles and texts (owner) */
.kpis > .kpi { padding: 20px 22px; }
.dash-grid .panel-head, .dash-bottom .panel-head, .never-panel .panel-head, .overview .panel-head { margin-bottom: 18px; }
.attn-rows { gap: 22px; }
.attn-rows .attn-text { gap: 4px; }
.attn-rows .attn-text b, .top-name, .feed-body a { color: var(--ink); font-weight: 600; }
.attn-rows .attn-text small, .top-text .muted, .feed-body p { color: var(--muted); }
.top-list { gap: 22px; }
.top-text { gap: 4px; }
.feed { gap: 20px; }
.feed-body p { margin-top: 4px; }
/* dashboard: the nearest EU deadline as a 5th key-number card (owner) */
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-5 .kpi-spark { grid-template-columns: minmax(0, 1fr) 80px; }
.kpis-5 .kpi-line { width: 80px; }
.kpi-more { font-weight: 600; color: var(--ink); cursor: default; }
@media (max-width: 1280px) { .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the trend line sits beside the big number; the text under it gets the card's full width (no wrapping) */
.kpi-spark > .kpi-line { height: 34px; }
@media (max-width: 600px) { .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* phones: two cards a row (Scans and the last card full width) */
@media (max-width: 600px) { .kpis-5 > .kpi:last-child { grid-column: auto; } }   /* 5 cards: Scans full width, then two rows of two */
/* dashboard: a clear separation under every card title (owner) */
.dash-grid .panel-head, .dash-bottom .panel-head, .never-panel .panel-head, .overview .panel-head { padding-bottom: 14px; margin: 0 -24px 18px; padding-left: 24px; padding-right: 24px; border-bottom: 1px solid var(--line); }
/* Brand → Logo on phones: the upload box shrinks to the screen instead of pushing it sideways (found by tests/t_layout.py) */
.brand-logo-row { flex-wrap: wrap; }
.brand-logo-row .upload { min-width: 0; flex: 1 1 200px; }

/* ===== Staff area (app/templates/admin_*.html) — charts, lists, filters, tables ===== */
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow); }
.chart-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.chart-card-head b { font-size: 20px; color: var(--ink); }
.chart.mini { width: 100%; height: 86px; display: block; overflow: visible; }

.ov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ov-cols > .panel { min-width: 0; }   /* grid items shrink to their track instead of overflowing (mobile) */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line); }
.list-rows li:first-child { border-top: 0; }
.lr-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lr-main b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lr-empty { color: var(--muted); font-size: 14px; padding: 18px 2px; justify-content: center; }
.link-sm { font-size: 13px; }

/* the staff list toolbar holds the search and the filter chips (same .search + .list-count as every other list) */
.list-toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.list-toolbar .chip { cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; }

/* accounts / codes lists: the staff prefix table's own component (.pxlist/.pxrow), just different columns */
.pxlist-users { grid-template-columns: minmax(0, 1.9fr) 160px 64px 72px 96px minmax(150px, 0.9fr); }
.pxlist-codes { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr) 70px 108px 92px 104px; }
.pxlist-users .pxrow-actions, .pxlist-codes .pxrow-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.px-plan { display: flex; gap: 6px; align-items: center; }
.px-plan select { max-width: 100px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }

@media (max-width: 820px) {
            .charts, .ov-cols { grid-template-columns: 1fr; }
}

/* Staff accounts/codes lists on phones — collapse like the prefix rows (.pxlist-admin): the main cell left, status
   top-right, plan and actions on their own full-width lines, secondary numbers hidden. */
@media (max-width: 720px) {
  .pxrow.pxlist-users, .pxrow.pxlist-codes { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; }
  .pxlist-users > *, .pxlist-codes > * { min-width: 0; overflow-wrap: anywhere; }
  .pxlist-users > :nth-child(1), .pxlist-codes > :nth-child(1) { grid-column: 1; }
  .pxlist-users > :nth-child(5), .pxlist-codes > :nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; }   /* status, top-right by the name */
  .pxlist-users > :nth-child(3), .pxlist-users > :nth-child(4),
  .pxlist-codes > :nth-child(3), .pxlist-codes > :nth-child(4) { display: none; }                       /* codes/scans · scans/created */
  .pxlist-users > :nth-child(2), .pxlist-users > :nth-child(6),
  .pxlist-codes > :nth-child(2), .pxlist-codes > :nth-child(6) { grid-column: 1 / -1; }                 /* plan/owner · actions */
  .pxlist-users .pxrow-actions, .pxlist-codes .pxrow-actions { justify-content: flex-start; }
}

/* Product scan analytics page (/gs1-codes/{id}/scans) — reuses .kpi, .panel, .donut, .feed, .panel-empty */
.scan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scan-cols > .panel { display: flex; flex-direction: column; }
.scan-cols > .panel > .panel-empty { flex: 1; }
.scan-range { display: flex; gap: 4px; background: #eef1f0; border-radius: 9px; padding: 3px; }
.scan-range a { font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 7px; text-decoration: none; }
.scan-range a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 32, .1); }
.scan-chart { margin-top: 18px; height: 160px; display: flex; align-items: flex-end; gap: 3px; }
.scan-chart i { flex: 1; min-width: 2px; background: linear-gradient(180deg, var(--brand), #5fd0a6); border-radius: 3px 3px 0 0; min-height: 3px; }
.scan-hours { margin-top: 18px; flex: 1; min-height: 118px; display: flex; align-items: flex-end; gap: 2px; }
.scan-hours i { flex: 1; background: var(--mint); border-radius: 2px; min-height: 3px; }
.scan-hours i.pk { background: var(--brand); }
.scan-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .scan-cols { grid-template-columns: 1fr; } }
.prow-spark-link { text-decoration: none; color: inherit; transition: color .12s; }
.prow-spark-link:hover { color: var(--brand-dark); }
.prow-spark-link:hover .scan-n small { color: var(--brand-dark); }
.scan-stack { display: grid; gap: 16px; }
.scan-stack > .kpis { margin-bottom: 0; }
/* Recent scans — the app's own list table (same .plist / .plist-head / .prow as Product activity), one line per row */
.plist-scans .plist-head, .plist-scans .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; }
.plist-scans .prow { min-height: 58px; }
.plist-scans .prow-device { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); min-width: 0; }
.plist-scans .prow-device .ico { color: var(--muted); flex: none; }
.plist-scans .prow-device span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-scans .prow-time { color: var(--ink); font-size: 13px; white-space: nowrap; }   /* same timestamp size as the dashboard table */
.panel:has(.plist-scans) .list-toolbar .muted { font-size: 13px; }           /* 'last 8' matches the 'last 30 days' labels */
.plist-scans .prow-when { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 1100px) {   /* keep our 3 columns + the date cell, which the global .prow rule above drops at this width */
  .plist-scans .plist-head, .plist-scans .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; }
  .plist-scans .plist-head > :nth-child(2), .plist-scans .prow-time { display: block; }
}
@media (max-width: 600px) {
  .plist-scans .plist-head { display: none; }
  .plist-scans .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; min-height: 0; }
  .plist-scans .prow-device { grid-column: 1; grid-row: 1; }
  .plist-scans .prow-when { grid-column: 2; grid-row: 1; }
  .plist-scans .prow-time { grid-column: 1 / -1; grid-row: 2; padding-left: 28px; font-size: 13px; color: var(--muted); }
}

/* Signed-in devices — the same list table; "this device" pinned + highlighted, the long list collapsed */
.plist-devices .plist-head, .plist-devices .prow { grid-template-columns: minmax(0, 1fr) 116px 116px 84px; }
.plist-devices .prow { min-height: 58px; }
.plist-devices .dev-me { background: var(--mint); }
.plist-devices .prow-dev { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.plist-devices .prow-dev .ico { color: var(--muted); flex: none; }
.plist-devices .prow-dev .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-devices .prow-dev .chip { white-space: nowrap; flex: none; }
.plist-devices .prow-when { font-size: 13px; color: var(--ink); white-space: nowrap; }
.plist-devices .prow-ago { font-size: 13px; color: var(--muted); white-space: nowrap; }
.plist-devices .prow-x { justify-self: start; }
.plist-devices details.dev-more > summary { padding: 13px 20px; font-size: 13px; font-weight: 600; color: var(--brand-dark); cursor: pointer; list-style: none; border-top: 1px solid #F1F4F3; }
.plist-devices details.dev-more > summary::-webkit-details-marker { display: none; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 1100px) {   /* keep our columns + the "Signed in" cell, which the global .prow rule drops at this width */
  .plist-devices .plist-head, .plist-devices .prow { grid-template-columns: minmax(0, 1fr) 116px 116px 84px; }
  .plist-devices .plist-head > :nth-child(2), .plist-devices .prow-when { display: block; }
}
@media (max-width: 600px) {     /* phones: device + sign-out on top, the two times stacked underneath */
  .plist-devices .plist-head { display: none; }
  .plist-devices .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 12px 16px; min-height: 0; }
  .plist-devices .prow-dev { grid-column: 1; grid-row: 1; }
  .plist-devices .prow-x { grid-column: 2; grid-row: 1; justify-self: end; }
  .plist-devices .prow-when { grid-column: 1 / -1; grid-row: 2; padding-left: 29px; color: var(--muted); }
  .plist-devices .prow-ago { grid-column: 1 / -1; grid-row: 3; padding-left: 29px; }
}
