/* Палитра «Architect Notes»: миллиметровка, тёмно-синий, бирюза, золото. Только телефонный формат. */
:root {
  --bg: #eef2f6; --grid: rgba(61,79,122,.06); --grid2: rgba(61,79,122,.12);
  --surface: #fbfcfd; --surface-2: #e9eef4; --line: #b7c1d1; --line-2: #d3dae5;
  --ink: #141a33; --ink-2: #3d4f7a; --ink-3: #4a5878; --ink-4: #8592ab;
  --teal: #1f9e7c; --teal-2: #17836a; --teal-soft: #dcf2ea; --teal-ink: #11694f; --mint: #3fd0a6;
  --gold: #8a6d1f; --gold-soft: #f3ecd9; --gold-line: #a8873a; --gold-line-2: #c9b47a;
  --red: #e5484d; --red-soft: #fbe9e7; --red-ink: #9c2a2a; --amber: #d08a1c; --amber-soft: #fbf0dc; --amber-ink: #8f5408;
  --blue-soft: #e3e9f5; --blue-ink: #2c4278;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.4; color: var(--ink); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; background-color: var(--bg);
  background-image: linear-gradient(var(--grid2) 1px, transparent 1px), linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--teal-2); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
.hidden { display: none !important; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; } svg.i.lg { width: 28px; height: 28px; }

/* Каркас: колонка телефона по центру и на большом экране */
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: transparent; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: calc(64px + var(--safe-t)); padding: var(--safe-t) 14px 0;
  background: rgba(244,247,250,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 21px; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top .titles h1 { flex: none; }
.back { width: 44px; height: 44px; margin-left: -8px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink); }
main#view { flex: 1; padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px); display: flex; flex-direction: column; gap: 12px; }
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20; display: flex;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(244,247,250,.97); border-top: 1px solid var(--line); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); position: relative; text-align: center; line-height: 1.1; }
.nav a.on { color: var(--teal-2); }
.nav .dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav .dot:empty { min-width: 8px; width: 8px; height: 8px; padding: 0; top: 10px; }

/* Элементы */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pad { padding: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--teal-2); text-transform: uppercase; }
.label.gold { color: var(--gold); } .label.red { color: var(--red-ink); font-weight: 700; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .mono { font-family: var(--mono); }
.btn { height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; color: var(--ink); }
.btn:disabled { opacity: .5; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.btn.danger { background: var(--red-soft); border-color: #e1c4c1; color: var(--red-ink); }
.btn.dashed { border: 1.5px dashed #8e9bb3; background: rgba(251,252,253,.8); }
.btn.big { height: 60px; font-size: 17px; border-radius: 14px; }
.btn.sm { height: 38px; font-size: 13.5px; border-radius: 9px; padding: 0 12px; }
.btn.block { width: 100%; }
.input { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 17px; outline: none; }
.input:focus { border-color: var(--teal); }
.input.mono { font-family: var(--mono); font-weight: 700; letter-spacing: .1em; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
textarea.note { background: var(--gold-soft); border-color: var(--gold-line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid #c5cdd9; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip.ink.on { background: var(--ink); border-color: var(--ink); }
.chip.gold { color: var(--gold); border-color: var(--gold-line-2); font-weight: 700; }
.chip.gold.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.chip.dash { border-style: dashed; border-color: var(--gold-line); background: transparent; color: var(--gold); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } .grid4 .chip { padding: 0 4px; font-size: 12px; height: 36px; }
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.tabs button.on { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); }
.tabs.dark button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qty button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 24px; color: var(--ink-2); }
.qty input { width: 56px; height: 48px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-family: var(--mono); font-weight: 700; font-size: 18px; outline: none; -moz-appearance: textfield; background: #fff; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 40px; height: 40px; font-size: 20px; } .qty.sm input { width: 52px; height: 40px; font-size: 16px; }
.badge-qty { position: absolute; right: 6px; bottom: 6px; font-family: var(--mono); font-size: 13px; font-weight: 700; background: rgba(20,26,51,.9); color: #fff; padding: 2px 8px; border-radius: 6px; }
.badge-urgent { position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; border-radius: 9px; font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.newdot { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg); }
.newcount { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.gold-note { font-size: 13px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 6px 10px; border-radius: 4px; }
.flash { padding: 10px 12px; border-radius: 10px; background: var(--teal-soft); border: 1px solid var(--teal); color: var(--teal-ink); font-weight: 700; font-size: 14px; }
.err { color: var(--red-ink); font-size: 13.5px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 12px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.tag.blue { color: var(--blue-ink); background: var(--blue-soft); border: 1px solid var(--line); }
.tag.green { color: var(--teal-ink); background: var(--teal-soft); border: 1px solid var(--teal); }
.tag.amber { color: var(--amber-ink); background: var(--amber-soft); }
.tag.dark { color: #fff; background: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; background: var(--ink); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.listbtn { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.listbtn.sel { border: 2px solid var(--teal); background: var(--teal-soft); }
.code-pill { font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: .12em; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 9px; border-radius: 8px; }

/* Плитки и сетки */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; text-align: left; padding: 0; color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px 13px 0 0; background: #fff; }
.tile .name { padding: 10px 12px; font-weight: 700; font-size: 15.5px; }
.tile .edit { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; }
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; }
.model { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; }
.model > button.ph { border: 0; padding: 0; background: transparent; position: relative; }
.model > button.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px 11px 0 0; background: #fff; }
.model .where { padding: 8px 10px 0; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--teal-2); }
.model .art { padding: 6px 10px 10px; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.model.open { grid-column: span 2; border: 2px solid var(--teal); }
.models3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Строка заказа */
.item { display: flex; gap: 14px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.item.urgent { border: 2px solid var(--red); }
.item .pic { position: relative; width: 140px; height: 140px; flex: none; }
.item .pic img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-2); background: #fff; }
.item .side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-4); }
.check .box { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.check.on { color: var(--ink); font-weight: 700; } .check.on .box { background: var(--teal); border-color: var(--teal); color: #fff; }
.toggle { height: 42px; border-radius: 10px; border: 1px solid #c5cdd9; background: #fff; color: var(--ink-3); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 700; font-size: 14px; }
.toggle .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; }
.toggle.on { background: var(--teal); border-color: var(--teal); color: #fff; } .toggle.on .box { background: #fff; border-color: #fff; color: var(--teal); }
.dates { display: flex; flex-direction: column; gap: 3px; padding: 7px 9px; border-radius: 8px; background: #f4f7fa; border: 1px solid var(--line-2); font-size: 12px; }
.dates > div { display: flex; justify-content: space-between; gap: 6px; }
.group { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(251,252,253,.92); border: 1px solid var(--line); }

/* Загрузка фото / обрезка */
.pickers { display: flex; flex-direction: column; gap: 12px; }
.picker { position: relative; height: 120px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 18px; cursor: pointer; }
.picker.dark { background: var(--ink); color: #fff; } .picker.light { background: var(--surface); border: 1.5px solid var(--line); }
.picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker .hint { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.crop { position: relative; width: 100%; aspect-ratio: 1; background: var(--ink); border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; }
.crop img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.crop .shade { position: absolute; background: rgba(10,14,30,.6); pointer-events: none; }
.crop .box { position: absolute; border: 2px solid var(--mint); touch-action: none; }
.crop .h { position: absolute; width: 30px; height: 30px; border-color: var(--mint); border-style: solid; border-width: 0; }
.crop .h.tl { left: -12px; top: -12px; border-left-width: 4px; border-top-width: 4px; }
.crop .h.tr { right: -12px; top: -12px; border-right-width: 4px; border-top-width: 4px; }
.crop .h.bl { left: -12px; bottom: -12px; border-left-width: 4px; border-bottom-width: 4px; }
.crop .h.br { right: -12px; bottom: -12px; border-right-width: 4px; border-bottom-width: 4px; }
.uploading { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border-radius: 12px; }

/* Уведомления, модальные окна */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + var(--safe-t)); z-index: 100; width: min(460px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: rgba(255,255,255,.98); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px; box-shadow: 0 14px 40px rgba(20,26,51,.28); display: flex; gap: 10px; align-items: center; animation: drop .25s ease; }
.toast img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.toast.err { background: var(--red-ink); color: #fff; border: 0; } .toast.ok { background: var(--teal-2); color: #fff; border: 0; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(16,24,40,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 96vw; max-height: 90dvh; }
.skeleton { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), #f6f8fb, var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Вход */
.login { min-height: 100dvh; display: flex; flex-direction: column; padding: 0 24px calc(24px + var(--safe-b)); }
.login .logo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-top: 40px; }
.logo-mark { width: 132px; height: 132px; border-radius: 32px; background: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 36px rgba(20,26,51,.28); overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.pin { display: flex; gap: 10px; justify-content: center; }
.pin span { width: 54px; height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 28px; font-weight: 700; }
.pin span.f { border-color: var(--ink); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.keypad button { height: 60px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 24px; font-weight: 700; }
.keypad button.ghost { border: 0; background: transparent; font-size: 15px; color: var(--ink-3); }

/* Выписка (печать в PDF) */
.statement { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.statement table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.statement th { text-align: left; padding: 6px 2px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.statement td { padding: 7px 2px; border-bottom: 1px dashed var(--line-2); vertical-align: top; }
.statement td.r, .statement th.r { text-align: right; }
.statement td.what { font-family: var(--font); font-size: 11.5px; }
@media print {
  body { background: #fff !important; }
  .top, .nav, .no-print, .toasts { display: none !important; }
  main#view { padding: 0 !important; }
  .statement { border: 0; padding: 0; }
  #app { max-width: none; }
}

/* Этапы-кружки: стол → напечатан → выдан */
.stages { display: flex; gap: 8px; }
.stage { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-4); min-width: 58px; }
.stage .c { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: transparent; transition: background .15s, border-color .15s; }
.stage.on { color: var(--ink); } .stage.on .c { background: var(--teal); border-color: var(--teal); color: #fff; }
.stage[data-stage="table"].on .c { background: var(--ink-2); border-color: var(--ink-2); }
.stage[data-stage="issued"].on .c { background: var(--ink); border-color: var(--ink); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; height: 46px; border: 0; background: #fff; font-weight: 700; color: var(--ink-3); }
.seg button.on { background: var(--teal); color: #fff; }
.seg button.on.no { background: var(--ink-3); }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--gold-line); }

/* ===== Компьютер (только для команды) ===== */
body.desk #app { max-width: none; padding-left: 232px; }
body.desk .nav { left: 0; top: 0; bottom: 0; transform: none; width: 232px; max-width: none; height: auto; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 18px 12px; border-top: 0; border-right: 1px solid var(--line); background: rgba(244,247,250,.98); }
body.desk .nav .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 800; font-size: 16px; }
body.desk .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; }
body.desk .nav a.on { background: var(--teal-soft); }
body.desk .nav .dot { position: static; margin-left: auto; }
body.desk .nav .side-actions { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
body.desk .nav .side-actions a { color: var(--ink-2); font-size: 13.5px; }
body.desk .top { padding: 0 28px; }
body.desk main#view { padding: 20px 28px 40px; max-width: 1280px; width: 100%; }
body.desk .overlay { align-items: center; }
body.desk .sheet { border-radius: 18px; max-width: 520px; }
body.desk .toasts { left: auto; right: 16px; transform: none; width: 380px; }
body.desk .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
body.desk .models { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.drows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.drow { display: grid; grid-template-columns: 88px minmax(180px, 1.4fr) 90px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.drow:first-child { border-top: 0; }
.drow.urgent { background: var(--red-soft); box-shadow: inset 4px 0 0 var(--red); }
.drow img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; }
.drow .qtyc { font-family: var(--mono); font-size: 26px; font-weight: 800; text-align: center; }
.drow .qtyc small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-4); }
.dhead { padding: 14px 4px 6px; }
.item .stages { gap: 2px; width: 100%; }
.item .stage { min-width: 0; flex: 1; font-size: 10.5px; }
.item .stage .c { width: 38px; height: 38px; }
