/* Panou FIXTEEN Mobil — mobile-first, temă întunecată implicit */
:root {
  --bg: #0b0f14;
  --bg-elev: #121820;
  --bg-card: #161d27;
  --bg-soft: #1c2532;
  --line: #273243;
  --text: #e8eef7;
  --text-muted: #8b9bb0;
  --text-dim: #6a7a90;
  --accent: #2ee6a6;
  --accent-dim: rgba(46, 230, 166, .14);
  --danger: #ff5d6c;
  --danger-dim: rgba(255, 93, 108, .14);
  --warn: #f5b942;
  --warn-dim: rgba(245, 185, 66, .14);
  --info: #4da3ff;
  --info-dim: rgba(77, 163, 255, .14);
  --ok: #2ee6a6;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --header-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --touch: 44px;
  --maxw: 720px;
}

html[data-theme="light"] {
  --bg: #f3f5f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #eef2f7;
  --line: #d5deea;
  --text: #121820;
  --text-muted: #5a6b80;
  --text-dim: #7a8a9e;
  --accent: #0f9f6e;
  --accent-dim: rgba(15, 159, 110, .12);
  --danger: #d12b3a;
  --danger-dim: rgba(209, 43, 58, .1);
  --warn: #c48a00;
  --warn-dim: rgba(196, 138, 0, .12);
  --info: #1a6fd4;
  --info-dim: rgba(26, 111, 212, .1);
  --shadow: 0 8px 24px rgba(18, 24, 32, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  min-height: 100%;
}
body { overscroll-behavior-y: contain; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  min-height: var(--touch);
  min-width: var(--touch);
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
/* poze produs: nu le strânge global, le controlează .thumb / .photo-main */
img.thumb, img.photo-main, img.thumb-lg, img.thumb-xl {
  max-width: none;
  background: var(--bg-soft);
}
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* —— Login —— */
.login-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + var(--safe-b));
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46, 230, 166, .12), transparent 55%),
    var(--bg);
}
.login-shell { width: 100%; max-width: 400px; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-logo {
  margin: 0 auto 14px;
  border-radius: 16px;
}
.login-card h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.login-sub, .login-hint {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 14px;
}
.login-hint { margin: 16px 0 0; font-size: 12px; }
.login-error {
  color: var(--danger);
  background: var(--danger-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 14px;
  text-align: left;
}

/* —— App shell —— */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  padding-top: var(--safe-t);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
  padding: 8px 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .meta {
  display: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border-radius: 12px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: scale(.96); }

.content {
  padding: 12px 12px 20px;
}

/* bottom nav */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 0 var(--safe-b);
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: var(--maxw);
  height: var(--nav-h);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  min-height: var(--nav-h);
  padding: 6px 2px;
}
.nav-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-btn.active { color: var(--accent); }
.nav-btn .nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
.nav-btn { position: relative; }

/* sheets / more menu */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-height: min(86dvh, 640px);
  background: var(--bg-elev);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  transform: translateY(110%);
  transition: transform .22s ease;
  padding: 10px 12px calc(16px + var(--safe-b));
  overflow: auto;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 99px;
  background: var(--line); margin: 4px auto 14px;
}
.sheet-title {
  margin: 0 0 10px;
  font-size: 1rem;
  padding: 0 4px;
}
.sheet-list { display: grid; gap: 6px; }
.sheet-item {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--touch);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}
.sheet-item:active { border-color: var(--line); }
.sheet-item svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent);
}
.sheet-item span { flex: 1; font-weight: 600; }
.sheet-item small { color: var(--text-muted); font-size: 12px; }

/* components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.card-head h3 { margin: 0; font-size: .98rem; }
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary {
  background: var(--accent);
  color: #062418;
}
.btn-secondary {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--text);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-block { width: 100%; }
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
  margin-bottom: 12px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.field input, .field select, .field textarea,
input[type="search"], input[type="text"], input[type="password"],
input[type="number"], textarea, select {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 16px; /* iOS zoom prevention */
}
textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
}
.field input:focus, .field select:focus, .field textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  min-height: 78px;
}
.kpi span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 4px;
  letter-spacing: -.02em;
}
.kpi small {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 2px;
}
.kpi.danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.kpi.danger strong { color: var(--danger); }
.kpi.ok strong { color: var(--ok); }
.kpi.warn strong { color: var(--warn); }
.kpi.info strong { color: var(--info); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.toolbar select, .toolbar input[type="search"] {
  flex: 1 1 140px;
  min-width: 0;
}

/* list cards */
.list { display: grid; gap: 8px; }
.item-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: left;
  width: 100%;
}
.item-card.no-thumb { grid-template-columns: 1fr auto; }

/* Fashion thumbs — div + background-image (fiabil pe iPhone) */
.thumb,
.thumb-empty {
  width: 84px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.thumb {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.thumb-lg,
.thumb-empty.thumb-lg {
  width: 84px;
  height: 112px;
}
.thumb-xl,
.thumb-empty.thumb-xl {
  width: 110px;
  height: 146px;
}
.thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--text-dim);
  font-size: 11px;
}
.thumb-empty::after {
  content: "Poză";
  opacity: .55;
}
.item-card .thumb,
.item-card .thumb-empty {
  width: 84px;
  height: 112px;
}
.item-card .body strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.item-card .body span,
.item-card .body small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.item-card .side {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.item-card .side strong { font-size: 14px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}
.status-pill.Created, .status-pill.live { background: var(--accent-dim); color: var(--accent); }
.status-pill.Picking, .status-pill.warning { background: var(--warn-dim); color: var(--warn); }
.status-pill.Shipped, .status-pill.Invoiced, .status-pill.info { background: var(--info-dim); color: var(--info); }
.status-pill.Delivered, .status-pill.ok { background: var(--accent-dim); color: var(--ok); }
.status-pill.Cancelled, .status-pill.rejected, .status-pill.UnSupplied {
  background: var(--danger-dim); color: var(--danger);
}
.profit-ok { color: var(--ok); }
.profit-missing { color: var(--warn); }

/* skeleton */
.skel {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-card) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-radius: 8px;
  height: 14px;
}
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  height: 84px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

/* empty / error */
.empty-state, .error-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
}
.empty-state h3, .error-state h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
}
.error-state { color: var(--danger); }

/* toast */
#toast-stack {
  position: fixed;
  left: 12px; right: 12px;
  top: calc(var(--safe-t) + 10px);
  z-index: 100;
  display: grid;
  gap: 8px;
  pointer-events: none;
  max-width: var(--maxw);
  margin: 0 auto;
}
.toast {
  pointer-events: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in .2s ease;
}
.toast.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.toast.success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.toast.out { opacity: 0; transition: opacity .25s; }
@keyframes toast-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* modal / confirm sheet full */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: var(--maxw);
  max-height: min(92dvh, 720px);
  overflow: auto;
  background: var(--bg-elev);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 16px 14px calc(18px + var(--safe-b));
  transform: translateY(20px);
  transition: transform .2s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal h2 { margin: 0 0 4px; font-size: 1.15rem; }
.modal-sub { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }
.modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.modal-actions.row {
  grid-template-columns: 1fr 1fr;
}
.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.modal-detail-grid > div {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px;
}
.modal-detail-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}
.modal-detail-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  word-break: break-word;
}

.order-line {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.order-line:first-child { border-top: 0; }
.order-product-main {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}
.order-product-main .thumb,
.order-product-main .thumb-empty {
  width: 84px;
  height: 112px;
}
.fulfill-photo-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.fulfill-photo-row .thumb,
.fulfill-photo-row .thumb-empty {
  width: 110px;
  height: 146px;
}
.order-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.manual-warning {
  background: var(--warn-dim);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 10px 0;
}
.confirm-danger {
  background: var(--danger-dim);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
}
.confirm-danger strong { color: var(--danger); }

/* product detail — poză mare ca pe PC */
.product-detail-photo {
  margin: 0 auto 14px;
  max-width: 280px;
}
.product-detail-photo .photo-main {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: block;
}
.product-detail-photo .photo-empty {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
}
.product-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* chips / filters */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.chip.active {
  background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
}

/* queue / pipeline */
.work-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.work-item:first-child { border-top: 0; }
.work-item strong { font-size: 14px; }
.work-item span { color: var(--text-muted); font-size: 12px; }
.work-item.tone-red strong { color: var(--danger); }
.work-item.tone-amber strong { color: var(--warn); }
.work-item.tone-green strong { color: var(--ok); }

.pipeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pipeline-cell {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px;
}
.pipeline-cell span { display: block; font-size: 11px; color: var(--text-dim); font-weight: 600; }
.pipeline-cell strong { font-size: 1.2rem; }

/* stats chart */
.chart-wrap {
  width: 100%;
  overflow: hidden;
  margin: 8px 0;
}
.chart-wrap svg { width: 100%; height: auto; display: block; }
.stat-bar { fill: var(--info); opacity: .75; }
.stat-bar-base { fill: var(--line); }
.stat-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.stat-dot { fill: var(--accent); }
.chart-label { fill: var(--text-dim); font-size: 10px; }

/* admin */
.supplier-health-card {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.supplier-health-card > div:first-child {
  display: flex; justify-content: space-between; align-items: baseline;
}
.supplier-health-numbers {
  display: flex; gap: 14px; margin: 8px 0;
}
.supplier-health-numbers b {
  font-size: 14px;
  display: grid;
}
.supplier-health-numbers small {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 11px;
}
.health-track {
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}
.health-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.admin-issue, .admin-ok {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.admin-issue:first-child, .admin-ok:first-child { border-top: 0; }
.admin-issue i, .admin-ok i {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.admin-issue i { background: var(--warn-dim); color: var(--warn); }
.admin-ok i { background: var(--accent-dim); color: var(--ok); }
.admin-issue p, .admin-ok p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.job-console {
  background: #0a0d12;
  color: #b8c4d4;
  border-radius: 10px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 8px;
}
html[data-theme="light"] .job-console {
  background: #1a222e;
  color: #d0d8e4;
}

.suggest-list {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 6px;
  overflow: hidden;
}
.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  min-height: var(--touch);
}
.suggest-item-photo {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}
.suggest-item-photo .thumb,
.suggest-item-photo .thumb-empty {
  width: 56px;
  height: 74px;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item strong,
.suggest-copy strong { display: block; font-size: 13px; }
.suggest-item span,
.suggest-copy span { color: var(--text-muted); font-size: 12px; display: block; }

.history-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px;
}
.history-chips button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.install-banner {
  background: var(--info-dim);
  border: 1px solid color-mix(in srgb, var(--info) 30%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.install-banner strong { display: block; margin-bottom: 4px; color: var(--info); }

.pull-indicator {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  height: 0;
  overflow: hidden;
  transition: height .15s;
}
.pull-indicator.active { height: 28px; padding-top: 4px; }

.page { display: none; }
.page.active { display: block; }

.warning-banner {
  background: var(--warn-dim);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.age-note {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.section-gap { margin-top: 16px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.score-value {
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
}
.score-side strong { display: block; }
.score-side span { color: var(--text-dim); font-size: 13px; }

/* infinite scroll sentinel */
.sentinel {
  height: 1px;
  margin: 8px 0;
}

@media (min-width: 480px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
}
