/* Том Холдинг · демо-приложения · общая дизайн-система */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@400;500;600&display=swap");

:root {
  --bg: #f6f7fb; --bg2: #eceef6; --paper: #fff;
  --ink: #0b1230; --ink2: #434b6b; --mute: #7d84a0; --deep: #060b20;
  --line: #e3e6ef; --line2: #eef0f6;
  --blue: #3552f2; --blue2: #5b74ff; --blue-soft: #9eaeff; --blue-bg: #eef1ff;
  --green: #0f9d63; --green-bg: #e6f6ee;
  --amber: #c77a05; --amber-bg: #fdf3df;
  --red: #dc3e45; --red-bg: #fdecec;
  --violet: #7a5af8; --violet-bg: #f1edff;
  --head: "Unbounded", "Manrope", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 20px; --r-s: 12px; --r-xs: 8px;
  --sh: 0 1px 2px rgba(11,18,48,.04), 0 10px 28px -14px rgba(11,18,48,.12);
  --sh-l: 0 2px 6px rgba(11,18,48,.06), 0 30px 60px -20px rgba(11,18,48,.28);
  --ease: cubic-bezier(.2,.7,.1,1);
  /* переменные темы: каждое приложение переопределяет их под бренд заказчика */
  --side-bg: radial-gradient(420px 300px at 0% 0%, rgba(53,82,242,.35), transparent 70%), var(--ink);
  --side-ink: #fff; --side-mute: #b9c0de; --side-on: rgba(255,255,255,.1); --side-line: rgba(255,255,255,.12);
  --hero: radial-gradient(300px 200px at 100% 0%, rgba(91,116,255,.5), transparent 70%), var(--ink);
  --hero-ink: #fff; --hero-mute: #a8b1d8;
  --brand: linear-gradient(140deg, var(--blue2), var(--blue)); --brand-ink: #fff;
  --btn: var(--ink); --btn-ink: #fff; --acc-ink: #fff;
  --rb: 12px; --ri: 11px; --th: #fafbfd; --frame: #0b1230; --hw: 500;
  --glow: radial-gradient(900px 520px at 85% 0%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 60%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, .h { font-family: var(--head); font-weight: var(--hw); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.mute { color: var(--mute); } .ink2 { color: var(--ink2); } .sm { font-size: 12.5px; } .xs { font-size: 11.5px; }
.b { font-weight: 700; } .r { text-align: right; } .c { text-align: center; } .nw { white-space: nowrap; }
.up { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.pos { color: var(--green); } .neg { color: var(--red); } .acc { color: var(--blue); }
.row { display: flex; align-items: center; gap: 10px; } .row.w { flex-wrap: wrap; } .row.t { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; } .sp { flex: 1; } .gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hide { display: none !important; }

/* оболочка */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.brand-m { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.brand-m svg { width: 20px; height: 20px; stroke-width: 2; }
.brand-n { font: 500 15px/1.1 var(--head); letter-spacing: -.02em; }
.brand-s { font-size: 11.5px; color: var(--side-mute); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--rb); color: var(--side-mute); font-weight: 600; transition: .18s var(--ease); }
.nav a:hover { color: var(--side-ink); }
.nav a.on { background: var(--side-on); color: var(--side-ink); }
.nav a .cnt { margin-left: auto; font: 600 11px var(--mono); background: var(--blue); color: var(--acc-ink); padding: 2px 7px; border-radius: 99px; }
.nav-h { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--side-mute); padding: 14px 12px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.demo-note { border: 1px solid var(--side-line); border-radius: var(--r-s); padding: 12px; font-size: 12px; color: var(--side-mute); line-height: 1.45; }
.demo-note b { color: var(--side-ink); display: block; margin-bottom: 3px; }
.side .btn.ghost { color: var(--side-mute); border-color: var(--side-line); background: transparent; }
.side .btn.ghost:hover { background: var(--side-on); color: var(--side-ink); }
.body { min-width: 0; display: flex; flex-direction: column; }
.mtop { display: none; }
.view { padding: 28px 32px 60px; max-width: 1440px; width: 100%; margin: 0 auto; animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph p { color: var(--ink2); margin-top: 6px; max-width: 640px; }
.ph .sp { min-width: min(100%, 320px); } .ph > .row { flex: none; max-width: 100%; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.crumb:hover { color: var(--blue); }

/* варианты оболочки: верхнее меню и узкая панель с иконками */
.shell.top { display: block; }
.shell.top .side { position: sticky; top: 0; z-index: 60; height: auto; flex-direction: row; align-items: center; gap: 26px; padding: 10px 28px; overflow: visible; border-bottom: 1px solid var(--side-line); }
.shell.top .nav { flex-direction: row; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; } .shell.top .nav a { padding: 8px 13px; white-space: nowrap; }
.shell.top .side-foot { margin: 0; flex-direction: row; align-items: center; } .shell.top .demo-note, .shell.top .side-foot .ghost span { display: none; }
.shell.top .side-foot .btn.ghost { width: 38px; padding: 0; height: 38px; }
.shell.rail { grid-template-columns: 92px 1fr; }
.shell.rail .side { padding: 16px 8px; align-items: center; gap: 18px; }
.shell.rail .brand > span:last-child, .shell.rail .demo-note, .shell.rail .side-foot span { display: none; }
.shell.rail .nav { width: 100%; gap: 4px; } .shell.rail .nav a { flex-direction: column; gap: 5px; padding: 10px 2px; font-size: 10.5px; text-align: center; line-height: 1.15; position: relative; }
.shell.rail .nav a svg { width: 21px; height: 21px; } .shell.rail .nav a .cnt { position: absolute; top: 4px; right: 12px; margin: 0; }
.shell.rail .side-foot { width: 100%; align-items: center; } .shell.rail .side-foot .btn { width: 44px; padding: 0; }

/* карточки */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card.p { padding: 20px; } .card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.card-h h3 { flex: 1; }
.card-b { padding: 18px 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g21 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); } .g12 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); } .g32 { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .v { font: 500 26px/1.1 var(--head); letter-spacing: -.03em; margin-top: 10px; white-space: nowrap; }
.kpi .v small { font: 600 13px var(--sans); color: var(--mute); letter-spacing: 0; }
.kpi .d { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.kpi.dark { background: var(--hero); color: var(--hero-ink); border-color: transparent; }
.kpi.dark .up, .kpi.dark .d { color: var(--hero-mute); }
.delta { display: inline-flex; align-items: center; gap: 3px; font: 600 11.5px var(--mono); padding: 2px 7px; border-radius: 99px; background: var(--green-bg); color: var(--green); }
.delta.neg { background: var(--red-bg); color: var(--red); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--rb); font-weight: 700; font-size: 13.5px; white-space: nowrap; background: var(--btn); color: var(--btn-ink); transition: .18s var(--ease); border: 1px solid transparent; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.blue { background: var(--blue); color: var(--acc-ink); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); } .btn.ghost:hover { background: var(--bg); filter: none; }
.btn.soft { background: var(--blue-bg); color: var(--blue); }
.btn.green { background: var(--green); color: #fff; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; } .btn.sm svg.i { width: 15px; height: 15px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn.ic { width: 40px; padding: 0; } .btn.ic.sm { width: 32px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.lnk { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; } .lnk:hover { text-decoration: underline; }

/* формы */
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span { font-size: 12px; font-weight: 700; color: var(--ink2); }
.in, select.in, textarea.in { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--ri); background: var(--paper); outline: none; transition: .15s; min-width: 0; }
textarea.in { height: auto; padding: 10px 12px; resize: vertical; min-height: 76px; line-height: 1.5; }
.in:hover { border-color: #cfd4e4; } .in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.in.sm { height: 32px; padding: 0 9px; border-radius: 9px; font-size: 13px; }
.in.num { text-align: right; }
.in.bare { border-color: transparent; background: transparent; padding: 0 6px; } .in.bare:hover { border-color: var(--line); background: var(--paper); } .in.bare:focus { border-color: var(--blue); background: var(--paper); }
.search { position: relative; } .search svg { position: absolute; left: 12px; top: 11px; color: var(--mute); } .search .in { padding-left: 38px; }
.seg { display: inline-flex; padding: 3px; background: var(--bg2); border-radius: 12px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { height: 32px; padding: 0 13px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(11,18,48,.12); }
.sw { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cfd4e4; transition: .2s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sw.on { background: var(--blue); } .sw.on::after { transform: translateX(16px); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--blue) var(--p, 50%), var(--bg2) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 3px 8px rgba(53,82,242,.35); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }

/* таблицы и метки */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--th); }
.t td { padding: 13px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.cl { cursor: pointer; transition: background .12s; } .t tbody tr.cl:hover { background: var(--th); }
.t th.r, .t td.r { text-align: right; } .t th:first-child, .t td:first-child { padding-left: 20px; } .t th:last-child, .t td:last-child { padding-right: 20px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--bg2); color: var(--ink2); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.plain::before { display: none; }
.tag.blue { background: var(--blue-bg); color: var(--blue); } .tag.green { background: var(--green-bg); color: var(--green); }
.tag.amber { background: var(--amber-bg); color: var(--amber); } .tag.red { background: var(--red-bg); color: var(--red); }
.tag.violet { background: var(--violet-bg); color: var(--violet); } .tag.dark { background: var(--btn); color: var(--btn-ink); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; background: var(--blue); }
.av.lg { width: 48px; height: 48px; font-size: 16px; } .av.sm { width: 26px; height: 26px; font-size: 10px; }
.bar { height: 7px; border-radius: 99px; background: var(--bg2); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--blue); transition: width .5s var(--ease); }
.hint { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-bg); color: #23318f; font-size: 13px; line-height: 1.45; }
.hint svg { margin-top: 1px; color: var(--blue); } .hint.amber { background: var(--amber-bg); color: #6f4400; } .hint.amber svg { color: var(--amber); }
.hint.red { background: var(--red-bg); color: #8f1f24; } .hint.red svg { color: var(--red); } .hint.green { background: var(--green-bg); color: #0a5c3b; } .hint.green svg { color: var(--green); }
.empty { padding: 44px 20px; text-align: center; color: var(--mute); }
.empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 8px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; } .dl dt { color: var(--mute); } .dl dd { margin: 0; text-align: right; font-weight: 700; }
.hr { height: 1px; background: var(--line2); border: 0; margin: 14px 0; }

/* графики */
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch text { font: 500 10.5px var(--mono); fill: var(--mute); }
.hb { display: flex; flex-direction: column; gap: 11px; }
.hb-r { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hb-r .bar { height: 9px; } .hb-r b { font: 600 12px var(--mono); }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink2); } .lgd i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* модалка, тосты */
.ov { position: fixed; inset: 0; z-index: 90; background: rgba(6,11,32,.5); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 18px; animation: ovin .2s; }
@keyframes ovin { from { opacity: 0; } }
.md { background: var(--paper); border-radius: calc(var(--r) + 4px); width: min(560px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; box-shadow: var(--sh-l); animation: mdin .28s var(--ease); }
.md.wide { width: min(880px, 100%); }
@keyframes mdin { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.md-h { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; } .md-h h2 { flex: 1; font-size: 17px; }
.md-b { padding: 4px 22px 20px; overflow-y: auto; }
.md-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--btn); color: var(--btn-ink); padding: 12px 16px; border-radius: var(--r-s); box-shadow: var(--sh-l); font-weight: 600; font-size: 13.5px; max-width: 360px; animation: tin .3s var(--ease); }
.toast svg { color: #7ee2b0; } .toast.err svg { color: #ff9a9e; } .toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } }

/* общие элементы приложений */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 13px; transition: .12s; position: relative; }
.chip em { font-style: normal; color: var(--mute); font-size: 11.5px; } .chip:hover { border-color: var(--blue); } .chip.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); } .chip.on em { color: inherit; opacity: .7; } .chip[disabled] { opacity: .35; pointer-events: none; }
.bub { background: var(--blue-bg); border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-size: 13px; color: #23318f; max-width: 460px; }
.ok-i { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; animation: pop .5s var(--ease); } .ok-i svg { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); } }
.rg { padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.mbar { position: relative; height: 9px; background: var(--bg2); border-radius: 99px; margin: 9px 0 7px; } .mbar i { display: block; height: 100%; border-radius: 99px; transition: width .4s var(--ease); } .mbar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.mini { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .mini b { font: 500 18px var(--head); letter-spacing: -.02em; white-space: nowrap; }
.code { margin: 0; background: var(--ink); color: #cfd5ee; padding: 14px 16px; border-radius: 14px; font: 500 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* клиентская часть: телефон */
.stage { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: var(--glow), var(--bg); }
.phone { width: 390px; max-width: 100%; height: min(800px, calc(100vh - 56px)); background: var(--paper); border-radius: 42px; border: 9px solid var(--frame); box-shadow: var(--sh-l); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-s { flex: 1; overflow-y: auto; scrollbar-width: none; } .phone-s::-webkit-scrollbar { display: none; }
.frame { border: 0; width: 100%; height: 100%; display: block; background: var(--paper); }
.phone.emb { height: 720px; }
.embed body, body.embed { background: var(--paper); }
body.embed .stage { padding: 0; min-height: 100vh; background: var(--paper); display: block; }
body.embed .phone { width: 100%; height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.back { position: fixed; left: 18px; top: 18px; z-index: 30; } body.embed .back { display: none; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g21, .g12, .g32 { grid-template-columns: minmax(0, 1fr); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell.rail { grid-template-columns: 1fr; } .shell.top .side, .shell.rail .side { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .shell.rail .brand > span:last-child { display: block; } .shell.rail .nav a { flex-direction: row; font-size: 13px; padding: 8px 12px; } .shell.rail .nav a .cnt { position: static; margin-left: 6px; }
  .side { position: static; height: auto; padding: 12px; gap: 10px; }
  .side-foot { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 12px; white-space: nowrap; font-size: 13px; } .nav-h { display: none; }
  .mtop { display: flex; gap: 8px; margin-left: auto; } .brand { padding-right: 0; }
  .view { padding: 18px 14px 50px; } h1 { font-size: 21px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .kpi .v { font-size: 21px; }
  .ph { align-items: flex-start; } .ph .sp { flex-basis: 100%; }
  .card-h { flex-wrap: wrap; padding: 14px 16px; } .card-b { padding: 16px; } .card.p { padding: 16px; }
  .md-f .btn { flex: 1; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .kpi .v { font-size: 18px; } .stage { padding: 0; } .phone { width: 100%; height: 100vh; border: 0; border-radius: 0; } .back { display: none; } }
@media print { .side, .toasts, .noprint { display: none !important; } .shell { display: block; } body { background: #fff; } .view { padding: 0; } }
.gg { color: var(--ink); }
