/* Smart Inventory — mobile-first UI. No framework, no build step. */
:root {
  --bg: #f4f5f1; --card: #ffffff; --card2: #eef0eb; --text: #17201c; --muted: #66716b; --line: #dfe3dc;
  --accent: #23705a; --accent-text: #ffffff; --accent-soft: #dcefe7;
  --warn: #a15c00; --warn-soft: #fbecd2; --bad: #b3261e; --bad-soft: #fbe3e1; --info: #1f5fa8; --info-soft: #dfeaf8;
  --radius: 18px; --tap: 48px; --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101312; --card: #1a1f1d; --card2: #232a27; --text: #e9eeeb; --muted: #9aa6a0; --line: #2c3431;
    --accent: #5fcfa5; --accent-text: #06241a; --accent-soft: #17352b;
    --warn: #f2b556; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3d1b19; --info: #8fc0ff; --info-soft: #16293f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: contain; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 22px 4px 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0 0 8px; }
[hidden] { display: none !important; }

#app { max-width: 640px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 14px calc(96px + var(--safe-b)); }
.boot { padding: 40vh 0 0; text-align: center; font-size: 22px; font-weight: 700; color: var(--muted); }
.top { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; min-height: 44px; }
.top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--muted); font-size: 14px; }
.back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.sp { height: 10px; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tap { cursor: pointer; } .card.tap:active { transform: scale(.985); }
.card h3 + .muted { margin-top: 2px; }
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: var(--tap); border-bottom: 1px solid var(--line); color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.list > *:last-child { border-bottom: 0; }
.list .ttl { font-weight: 600; overflow-wrap: anywhere; } .list .chev { color: var(--muted); flex: none; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* home */
.hero { display: flex; align-items: center; gap: 14px; margin: 4px 2px 16px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.today { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -14px 6px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.today::-webkit-scrollbar { display: none; }
.stat { flex: none; min-width: 108px; background: var(--card); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); border: 0; text-align: left; }
.stat b { display: block; font-size: 24px; line-height: 1.1; } .stat span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.stat.warn b { color: var(--warn); } .stat.bad b { color: var(--bad); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 0; border-radius: 22px; padding: 16px 14px; min-height: 112px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tile:active { transform: scale(.97); }
.tile .em { font-size: 30px; line-height: 1; } .tile b { font-size: 17px; } .tile small { color: var(--muted); display: block; font-size: 12.5px; margin-top: 1px; }
.tile.primary { background: var(--accent); color: var(--accent-text); } .tile.primary small { color: inherit; opacity: .85; }
.tile .badge { position: absolute; top: 12px; right: 12px; }
.badge { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 12px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.badge.soft { background: var(--card2); color: var(--text); }

/* buttons, inputs */
.btn { min-height: var(--tap); padding: 0 16px; border-radius: 14px; border: 0; background: var(--card2); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .5; }
.btn.primary { background: var(--accent); color: var(--accent-text); } .btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.ghost { background: transparent; border: 1px solid var(--line); } .btn.block { width: 100%; } .btn.big { min-height: 60px; font-size: 18px; border-radius: 18px; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .btns .btn { flex: 1 1 auto; }
.field { display: block; margin-bottom: 10px; } .field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 4px; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); outline: none; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.search { position: sticky; top: calc(6px + var(--safe-t)); z-index: 5; display: flex; gap: 8px; margin-bottom: 12px; }
.search input { box-shadow: var(--shadow); border-color: transparent; }
.seg { display: flex; background: var(--card2); border-radius: 13px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; min-height: 38px; border: 0; background: none; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--card2); border: 0; max-width: 100%; overflow-wrap: anywhere; }
.chip.ok { background: var(--accent-soft); color: var(--accent); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
button.chip { min-height: 36px; padding: 6px 12px; font-size: 14px; } button.chip.on { background: var(--accent); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }

/* items */
.item { display: flex; gap: 12px; align-items: center; }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--card2) center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 22px; color: var(--muted); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 84px; height: 84px; border-radius: 16px; }
.photos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 10px; padding: 0 14px; scrollbar-width: none; }
.photos img { height: 130px; border-radius: 14px; flex: none; background: var(--card2); }
.where { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin-top: 8px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }

/* progress */
.bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.steps { display: flex; gap: 6px; margin: 0 2px 14px; } .steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--accent); }
.route { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.route .stop { flex: none; background: var(--card); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 14px; } .route .stop b { display: block; }
.route .arr { color: var(--muted); flex: none; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.grid3 .ph { aspect-ratio: 1; border-radius: 12px; background: var(--card2) center/cover; position: relative; overflow: hidden; }
.grid3 .ph img { width: 100%; height: 100%; object-fit: cover; }
.grid3 .ph span { position: absolute; inset: auto 4px 4px auto; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; }

/* chat */
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 18px; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { background: var(--accent); color: var(--accent-text); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.bot { background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.ask { position: sticky; bottom: calc(86px + var(--safe-b)); display: flex; gap: 8px; margin-top: 12px; }
.ask input { box-shadow: var(--shadow); border-color: transparent; }

/* nav */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: center; background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; color: var(--muted); padding: 5px 0; min-height: var(--tap); justify-content: center; }
#nav a .ic { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .75; } #nav a.on { color: var(--accent); font-weight: 600; } #nav a.on .ic { filter: none; opacity: 1; }
#scanbtn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-text); font-size: 26px; margin-top: -22px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); flex: none; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sheet-body { position: relative; width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 14px calc(18px + var(--safe-b)); animation: up .22s ease-out; overscroll-behavior: contain; }
.sheet-body::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; } .sheet-head h3 { flex: 1; font-size: 20px; overflow-wrap: anywhere; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card2); font-size: 18px; flex: none; }
video.cam { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3/4; object-fit: cover; }

/* toasts */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(88px + var(--safe-b)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; background: #1d2622; color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: up .2s ease-out; }
.toast.err { background: #7a1d17; } .toast span { flex: 1; overflow-wrap: anywhere; } .toast button { border: 0; background: none; color: #8fe3c0; font-weight: 700; min-height: 36px; padding: 0 6px; }
.offline { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.login { max-width: 380px; margin: 12vh auto 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: sp .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 0.3: inventory candidates, sorting, scanner ladder */
.tile.accent2 { background: var(--accent-soft); }
.card.unknown { border: 1px dashed var(--bad); }
.quote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--card2); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.plain { border: 0; background: none; padding: 0; text-align: left; min-width: 0; color: inherit; }
button.plain.item { width: 100%; }
.thumb.zoom { position: relative; }
.thumb.zoom img { position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; object-fit: fill; }
.shot { position: relative; margin-bottom: 10px; }
.shot img { width: 100%; display: block; border-radius: 14px; }
.shot i { position: absolute; border: 3px solid #ff3b30; border-radius: 6px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .28); pointer-events: none; }
.shot i.approx { border-style: dashed; border-color: #ffb020; box-shadow: none; }
.shot { overflow: hidden; border-radius: 14px; }
.offline.info { background: var(--info-soft); color: var(--info); } .offline.bad { background: var(--bad-soft); color: var(--bad); }
.ladder { list-style: none; margin: 10px 0 0; padding: 0; }
.ladder li { position: relative; padding: 4px 0 4px 28px; font-size: 14.5px; overflow-wrap: anywhere; }
.ladder li::before { position: absolute; left: 2px; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ladder li.ok::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.ladder li.no::before { content: "!"; background: var(--warn-soft); color: var(--warn); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
details.card summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.list > .wraprow { flex-wrap: wrap; }
.list .row.plain { display: flex; align-items: center; gap: 12px; }

/* 0.4: Склад, places, storage plans, audit log, labels, the guided tour */
.code { display: inline-block; font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--info-soft); color: var(--info); margin-left: 4px; vertical-align: 1px; }
.steps-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; margin-top: 2px; }
.steps-path .arr { color: var(--muted); font-weight: 400; }
.tree { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 8px; margin-bottom: 10px; }
.tree .sum { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 10px; cursor: pointer; list-style: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree details > summary .ic::before { content: "▸ "; color: var(--muted); font-size: 12px; }
.tree details[open] > summary .ic::before { content: "▾ "; }
.tree .leafnode .ic::before { content: "  "; white-space: pre; font-size: 12px; }
.tree .kids { margin-left: 16px; border-left: 1px solid var(--line); padding-left: 6px; }
.tree .root .sum { cursor: default; }
.tree .ttl { font-weight: 600; overflow-wrap: anywhere; }
.tree .open { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); color: var(--text); font-size: 18px; flex: none; }
.tree .leaf { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; min-height: 38px; padding: 4px 6px 4px 22px; font-size: 15px; border-radius: 10px; }
.tree .leaf:active, .tree .sum:active { background: var(--card2); }
.cand { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cand .ic { font-size: 20px; width: 26px; text-align: center; flex: none; }
.card.prop[data-state="PROPOSED"] { border: 1px dashed var(--warn); }
.card.prop[data-state="DONE"] { opacity: .7; }
.audit { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.auditlist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.audit .row { gap: 8px; flex-wrap: wrap; }
.label-one { display: flex; gap: 14px; align-items: center; background: #fff; color: #000; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.label-one img.qr, .label img { width: 120px; height: 120px; flex: none; }
.big-code { font: 700 26px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
.label { display: flex; gap: 10px; align-items: center; background: #fff; color: #000; border: 1px dashed #999; border-radius: 8px; padding: 8px; break-inside: avoid; }
#tour { position: fixed; inset: 0; z-index: 80; }
#tour.pass { pointer-events: none; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 4000px rgba(0, 0, 0, .62); outline: 3px solid var(--accent); pointer-events: none; transition: all .25s; }
.tour-tip { position: fixed; left: 12px; right: 12px; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 18px; padding: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); pointer-events: auto; }
.tour-tip h3 { margin: 2px 0 6px; }
@media print {
  #nav, #toasts, #sheet, #tour, .noprint { display: none !important; }
  body { background: #fff; } #app { max-width: none; padding: 0; }
  .label-sheet { grid-template-columns: repeat(2, 1fr); }
}

/* evidence behind an identification */
.why { margin-top: 8px; font-size: 14px; }
.why summary { cursor: pointer; color: var(--muted); padding: 6px 0; min-height: 32px; }
.why-row { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.why-row .dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--muted); transform: translateY(1px); }
.why-row .dot.strong { background: var(--accent); }
.why-row .dot.medium { background: var(--warn); }
.why-row .dot.weak { background: var(--line); border: 1px solid var(--muted); }
.conf-HIGH { color: var(--accent); } .conf-MEDIUM { color: var(--warn); } .conf-LOW { color: var(--bad); }

/* ---- 1.0: home screen, picker, tasks, statistics */
.tiles { margin-bottom: 10px; }
.tile.sm { min-height: 92px; padding: 14px 12px; border-radius: 18px; gap: 8px; }
.tile.sm .em { font-size: 26px; } .tile.sm b { font-size: 15.5px; line-height: 1.2; display: block; } .tile.sm small { font-size: 12px; line-height: 1.25; }
.home-name { text-align: left; padding: 0; color: inherit; } .home-name h1 { margin: 0; } .caret { color: var(--muted); font-size: .7em; }
.start-btn { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 22px; padding: 18px 18px; margin: 4px 0 14px; text-align: left; box-shadow: var(--shadow); min-height: 76px; }
.start-btn:active { transform: scale(.985); } .start-btn .em { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: none; }
.start-btn b { font-size: 21px; display: block; } .start-btn small { opacity: .88; font-size: 13px; display: block; margin-top: 1px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.start-tile { background: var(--card2); border: 0; border-radius: 18px; padding: 14px 12px; text-align: left; min-height: 96px; display: flex; flex-direction: column; gap: 4px; color: inherit; }
.start-tile:active { transform: scale(.97); } .start-tile .em { font-size: 26px; line-height: 1; } .start-tile b { font-size: 15.5px; } .start-tile small { color: var(--muted); font-size: 12px; line-height: 1.25; }
a.card.cont { display: flex; color: inherit; align-items: center; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--card2); margin-top: 6px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.picker .sheet-body { max-height: 88vh; }
.picklist { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 8px; background: var(--card2); border-radius: 14px; padding: 4px 8px 4px 4px; }
.pick-row > .plain { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 8px; text-align: left; color: inherit; min-width: 0; }
.pick-row .ic { font-size: 20px; flex: none; width: 26px; text-align: center; } .pick-row .ttl { overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 4px; } .crumbs .arr { color: var(--muted); }
.field-pick { text-align: left; justify-content: flex-start; font-weight: 500; overflow-wrap: anywhere; }
.need.done { opacity: .72; } .need.skipped { opacity: .5; } .need .match { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; color: inherit; background: var(--card2); border-radius: 12px; padding: 8px 10px; margin-top: 8px; min-height: var(--tap); }
ol.route { margin: 8px 0 0; padding-left: 20px; } ol.route li { margin: 6px 0; line-height: 1.35; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; } .statgrid .stat { min-width: 0; display: block; color: inherit; } .statgrid .stat b { font-size: 22px; overflow-wrap: anywhere; }
@media (min-width: 520px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
.bars { display: flex; flex-direction: column; gap: 8px; } .bar-row { display: grid; grid-template-columns: minmax(84px, 34%) 1fr auto; gap: 8px; align-items: center; color: inherit; font-size: 14px; min-height: 28px; }
.bar-row .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-row .bt { height: 10px; background: var(--card2); border-radius: 5px; overflow: hidden; } .bar-row .bt i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar-row .bv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { width: 100%; height: 90px; color: var(--accent); display: block; }
.center { text-align: center; }
