/* Kairo Partner. Base: tasteskill assets/app.css, stile "Achromatic ledger", shell senza sidebar.
   Nessun colore nella cornice: inchiostro e grigi su un fondo pietra (#f4f3f1, il banco del grossista),
   carte bianche; l'unica tinta dei dati (#1d5fbf) va sul consumo del periodo. Primaria quasi nera.
   Griglia: colonna centrata di 1152px (fra 1088 e 1208), 12 colonne con un solo gutter di 16px:
   12 x 82,67 + 11 x 16 = 1152. Due colonne della panoramica: 7 + 5 = 12. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #f4f3f1;
  --surface: #ffffff;
  --raised: #efeeeb;
  --active: #e9e8e5;
  --border: #e4e2de;
  --rule: #efeeeb;
  --control: #d4d2ce;
  --text: #0a0a0a;
  --muted: #615f5b;
  --faint: #6b6b6b;
  --primary: #141414;
  --primary-ink: #ffffff;
  --secondary: #e5e5e5;
  --positive: #2e7d32; --negative: #c4242a; --warning: #92400e;
  --pill-positive-bg: #dcfae5; --pill-positive-ink: #04250e;
  --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;
  --pill-neutral-bg: #eeeeee; --pill-neutral-ink: #3d3d3d;
  --accent: #1d5fbf;                     /* la sola tinta: il consumo del periodo */
  --chart-1: #1d5fbf; --chart-muted: #cfccc6;
  --grid: #ebe9e5; --axis-ink: #6b6b6b; --ink: var(--text);
  --unit-ok: #141414; --unit-under: #b3aea6; --unit-out: #c4242a;

  --font: "Geist", Inter, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --fs-title: 24px; --fs-section: 16px; --fs-kpi: 30px; --fs-body: 14px; --fs-small: 12px;

  --col: 1152px;
  --gap: 16px;
  --card-pad: 20px;
  --radius-card: 8px;
  --radius-control: 6px;
  --control-height: 36px;
  --row-height: 48px;
  --bar: 48px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 120ms; --t-hover: 150ms; --t-ui: 200ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num, table, .kpi-value, .figure { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- shell: barra in alto sulla stessa colonna del contenuto ---------- */
.col { width: min(var(--col), calc(100% - 48px)); margin-inline: auto; }
.bar { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color var(--t-ui) ease; }
.bar.scrolled { border-bottom-color: var(--border); }
.bar-in { display: flex; align-items: center; gap: 28px; height: var(--bar); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.mark { width: 26px; height: 26px; flex: none; border-radius: 50%; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.scope { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.scope::before { content: "/"; margin-right: 10px; color: var(--control); }
.nav { display: flex; gap: 22px; }
.nav a { position: relative; display: inline-flex; align-items: center; height: var(--bar); color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color var(--t-hover) ease; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--text); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar-right form { margin: 0; }

/* ---------- title row ---------- */
main { padding: 28px 0 64px; }
main:focus { outline: none; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-inline: var(--card-pad); }
.title-row h1 { font-size: var(--fs-title); line-height: 30px; font-weight: 600; letter-spacing: -0.015em; }
.title-row .sub { margin-top: 4px; color: var(--muted); font-size: 15px; max-width: 72ch; }
.title-row .finding { margin-top: 4px; font-size: 15px; color: var(--text); }
.title-row .finding .muted { color: var(--muted); }
.actions { display: flex; gap: 8px; flex: none; }
.panel.objhead { flex-direction: row; align-items: center; gap: 16px; padding: 16px var(--card-pad); margin-bottom: var(--gap); }
.objhead .obj-text { flex: 1; min-width: 0; }
.objhead h1 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; }
.objhead .sub { margin-top: 2px; color: var(--muted); }
.initial { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--radius-control); background: var(--raised); color: var(--text); font-weight: 600; font-size: 16px; }
table.stock td.id { width: 40%; }
.crumb { display: inline-flex; margin: 0 0 12px var(--card-pad); color: var(--muted); font-weight: 500; }
.crumb:hover { color: var(--text); }

/* ---------- grid and panels ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.grid.top { align-items: start; }
.s12 { grid-column: span 12; } .s6 { grid-column: span 6; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; display: flex; flex-direction: column; }
.panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel h2 { font-size: var(--fs-section); line-height: 22px; font-weight: 600; }
.panel h3 { font-size: var(--fs-body); line-height: 20px; font-weight: 500; }
.panel .meta { color: var(--muted); font-size: var(--fs-small); }
.panel .foot { margin-top: auto; padding-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.panel .sep.first { margin-top: 0; }
.panel .legend { margin: -4px 0 8px; }
table.cov td.id { width: auto; }
table.cov td.cover { width: 230px; }
.nw { white-space: nowrap; }
.flag { color: var(--warning); font-weight: 500; }
.panel .sep { margin: 20px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 500; cursor: pointer; text-underline-offset: 3px; }
.card-link::after { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--chevron) center / 12px no-repeat; mask: var(--chevron) center / 12px no-repeat; }
.card-link:hover { text-decoration: underline; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chart { position: relative; min-width: 0; }
.sales-total { margin: -4px 0 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sales-total b { color: var(--text); font-weight: 500; }
.mailtext { display: block; white-space: pre-wrap; font-weight: 400; }
ul.cols { margin: 0; padding-left: 18px; list-style: disc; columns: 2; column-gap: 24px; }
ul.cols li { line-height: 22px; }
/* una lista accanto a una più alta: le righe si distribuiscono l'altezza, niente banda vuota */
.fill { flex: 1; display: flex; flex-direction: column; }
.fill > .table-wrap { flex: 1; }
.fill table { height: 100%; }

/* ---------- KPI: un contenitore diviso da filetti ---------- */
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.kpi { padding: 16px var(--card-pad) 18px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); }
.kpi-value { margin-top: 6px; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.kpi-value small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.kpi.lead .kpi-value { font-size: var(--fs-kpi); line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.kpi.lead .kpi-label { color: var(--text); font-weight: 500; }
.kpi-value.zero { color: var(--muted); }
.kpi .cap { margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
.kpi .cap.on { color: var(--warning); font-weight: 500; }

/* ---------- tables ---------- */
.table-wrap { position: relative; overflow-x: auto; margin-inline: calc(var(--card-pad) * -1); padding-inline: var(--card-pad); }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px; text-align: left; font-weight: 400; font-size: var(--fs-small); color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: calc((var(--row-height) - 20px) / 2) 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th.n, td.n { text-align: right; white-space: nowrap; }
td .sub { display: block; margin-top: 2px; font-size: var(--fs-small); line-height: 16px; color: var(--muted); }
td .unit { color: var(--muted); font-size: var(--fs-small); margin-left: 3px; }
td.dash, .dash { color: var(--muted); }
td.act, th.act { width: 1%; text-align: right; white-space: nowrap; }
.name { font-weight: 500; }
a.name:hover, button.name:hover { text-decoration: underline; text-underline-offset: 3px; }
button.name { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: transparent; }
tbody tr.click:hover .name { text-decoration: underline; text-underline-offset: 3px; }
td .phone, .phone { display: none; }

/* pill: tinta pallida, inchiostro scuro della stessa tinta, una per riga */
.pill { display: inline-flex; flex: none; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); white-space: nowrap; }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }

/* ---------- copertura del listino: un segno per salone ---------- */
.units { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.units svg { overflow: visible; }
.cover-note { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 16px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
td.cover { width: 32%; }

/* ---------- aree dell'app ---------- */
.areas { min-height: 0; }
details.kinds { margin-top: 14px; }
details.kinds summary { cursor: pointer; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.kinds summary::-webkit-details-marker { display: none; }
details.kinds summary::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--chevron) center / 12px no-repeat; mask: var(--chevron) center / 12px no-repeat; transition: transform var(--t-ui) var(--ease-out); }
details.kinds[open] summary::before { transform: rotate(90deg); }
details.kinds table { margin-top: 8px; }
details.kinds td { padding-top: 7px; padding-bottom: 7px; }
details.kinds tr.area td { padding-top: 14px; font-weight: 500; border-bottom-color: var(--border); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { background: #2b2b2b; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.sm { height: 30px; padding: 0 10px; }
.btn:disabled { cursor: not-allowed; background: var(--raised); color: var(--muted); border-color: var(--border); transform: none; }
.input { height: 38px; width: 100%; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
textarea.input { height: auto; padding: 10px 12px; line-height: 21px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input[readonly] { background: var(--raised); color: var(--muted); }
select.input { padding-right: 32px; }
.select-sm { height: 32px; width: auto; min-width: 0; field-sizing: content; padding: 0 30px 0 10px; border-color: var(--control); background-color: transparent; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-weight: 500; }
.field .hint { color: var(--muted); font-size: var(--fs-small); line-height: 17px; }
.field .hint b { color: var(--text); font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.switch { appearance: none; margin: 0; width: 32px; height: 20px; border-radius: 999px; background: var(--control); position: relative; cursor: pointer; transition: background-color var(--t-ui) ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch:checked { background: var(--text); } .switch:checked::after { transform: translateX(12px); }
.err { color: var(--negative); }
.err:empty { display: none; }
.field .hint.strong { color: var(--text); font-size: 13px; line-height: 19px; }
.ok { color: var(--positive); font-weight: 500; }
.notice { padding: 10px 12px; border-radius: var(--radius-control); background: var(--pill-warning-bg); border: 1px solid #fde68a; color: var(--pill-warning-ink); font-size: 13px; }

/* empty states keep the frame and say one sentence */
.empty { display: grid; place-items: center; min-height: 72px; padding: 16px; border: 1px dashed var(--control); border-radius: var(--radius-card); color: var(--muted); text-align: center; }
.skeleton { display: inline-block; background: var(--raised); border-radius: 4px; height: 1em; width: 8ch; vertical-align: middle; }

/* ---------- dialog: l'unica cosa che galleggia, quindi l'unica con un'ombra ---------- */
dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(10, 10, 10, 0.22); }
dialog::backdrop { background: rgba(20, 20, 20, 0.36); }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
.dlg-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 14px; background: var(--surface); }
.dlg-head h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
.dlg-body { padding: 0 24px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--radius-control); background: transparent; cursor: pointer; color: var(--muted); }
.x:hover { background: var(--raised); color: var(--text); }
.x svg { width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.lede { color: var(--muted); }
.mapping { padding: 12px 14px; border-radius: var(--radius-card); background: var(--raised); color: var(--text); font-size: 13px; line-height: 19px; }
.count { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.count.over { color: var(--warning); font-weight: 500; }
.desc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* pacchetti */
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pack { position: relative; display: grid; gap: 2px; padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius-card); cursor: pointer; transition: border-color var(--t-hover) ease; }
.pack:hover { border-color: var(--control); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--text); outline: 1px solid var(--text); outline-offset: -2px; }
.pack:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack .t { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.pack .t small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.pack .p { font-weight: 500; font-variant-numeric: tabular-nums; }
.pack .r { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 0; padding: 4px 14px; border-radius: var(--radius-card); background: var(--raised); }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--border); }
.kv dt { color: var(--muted); padding-right: 20px; }
.kv dd { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.kv dd.copy { font-weight: 400; text-align: right; }
.kv > :nth-last-child(-n + 3) { border-bottom: 0; }
.copy button { height: 24px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-weight: 500; font-size: var(--fs-small); cursor: pointer; }
.copy button:hover { background: var(--active); }

/* ---------- auth pages ---------- */
body.auth { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.auth-main { display: grid; place-items: start center; padding: 12vh 16px 48px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.auth-card h1 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.auth-card p { color: var(--muted); }
.auth-card a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .btn { width: 100%; height: 40px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .s7, .s5, .s8, .s4, .s6 { grid-column: span 12; }
  .bar-in { gap: 20px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .scope { max-width: 140px; }
}
@media (max-width: 1000px) {
  .tsec { display: none; }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
}
/* ---------- phone ---------- */
@media (max-width: 760px) {
  .col { width: calc(100% - 32px); }
  .bar-in { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 6px; }
  .brand { height: 40px; flex: 1 1 0; }
  .bar-right { gap: 4px; }
  .brand-name { display: none; }
  .auth .brand-name { display: inline; }
  .scope { max-width: none; color: var(--text); font-weight: 600; }
  .scope::before { content: none; }
  .nav { order: 3; flex-basis: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .nav a { height: 40px; }
  .nav a[aria-current="page"]::after { bottom: 0; }
  main { padding-top: 20px; }
  .title-row { flex-wrap: wrap; align-items: flex-start; padding-inline: 0; }
  .crumb { margin-left: 0; }
  .panel.objhead { flex-wrap: wrap; padding: 14px 16px; }
  .objhead .obj-text { flex: 1 1 0; }
  table.stock td.id { width: auto; }
  td .sub { font-size: 13px; line-height: 18px; }
  .input { font-size: 16px; }
  .actions { width: 100%; }
  .actions .btn.primary { flex: 1; }
  .kpi { padding: 14px 16px; }
  .kpi.lead .kpi-value { font-size: 24px; line-height: 30px; }
  .kpi-value small { font-size: 12px; margin-left: 3px; }
  .kpi-value { font-size: 19px; }
  .panel { padding: 16px; }
  .table-wrap { margin-inline: -16px; padding-inline: 16px; }
  .sec { display: none; }
  td .phone, .phone { display: block; }
  td .sub.sec { display: none; }
  .btn.sm { padding: 0 8px; }
  table.shops, table.shops tbody { display: block; }
  table.shops thead { display: none; }
  table.shops tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.shops tr:last-child { border-bottom: 0; }
  table.shops td { padding: 0; border: 0; }
  table.shops td.id { grid-column: 1; grid-row: 1 / span 2; }
  table.shops td.n:not(.sec) + td.n:not(.sec), table.shops td.n:not(.sec) { grid-column: 2; }
  table.shops td.act { grid-column: 2; width: auto; }
  table.cov, table.cov tbody { display: block; }
  table.cov thead { display: none; }
  table.cov tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.cov tr:last-child { border-bottom: 0; }
  table.cov td { padding: 0; border: 0; }
  table.cov td.id { grid-column: 1; grid-row: 1; }
  table.cov td.n { grid-column: 2; grid-row: 1; }
  table.cov td.cover { grid-column: 1 / -1; grid-row: 2; width: auto; margin-top: 10px; }
  td.id { width: auto; }
  td.cover { width: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr 1fr; }
  ul.cols { columns: 1; }
  .dlg-foot { flex-wrap: wrap; }
  .pack:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dlg-foot .btn { flex: 1; }
  .dlg-head { padding: 16px 16px 12px; }
  .dlg-body { padding: 0 16px 16px; }
  .kv { grid-template-columns: minmax(0, 1fr) auto; }
  .kv dt { grid-column: 1 / -1; padding: 10px 0 0; border-bottom: 0; font-size: var(--fs-small); }
  .kv dd { padding-top: 2px; }
  .kv > dd:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .kv > dd:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; } }
