/* Atelye /app — ega/qabulchi PWA uslublari. Ranglar /shared/tokens.css dan. */
:root {
  --top-h: 56px;
  --tab-h: 66px;
  --side-w: 248px;
  --hole: var(--surface);       /* birka teshigi atrofdagi fon rangida */
  --note-bg: #fbf6ea;
  --changed-bg: #fdf6e7;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html.noscroll { overflow: hidden; }
body { min-height: 100vh; min-height: 100dvh; }
button { font-family: var(--font); }
input, select, textarea, button { font-size: 16px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
img { max-width: 100%; }
svg.ic { flex: none; display: block; }
.chip svg.ic, .ichip svg.ic { display: inline-block; }

/* ---------- yordamchi ---------- */
.grow { flex: 1 1 auto; }
.min0 { min-width: 0; }
.ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: 13.5px; }
.center { text-align: center; }
.txl { text-align: left; }
.strong { font-weight: 800; }
.ok-ink { color: var(--ok); }
.bad-ink { color: var(--bad); }
.self-start { align-self: flex-start; }
.wrap-row { flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.inactive { opacity: .6; }

/* ---------- qobiq ---------- */
.side { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .back-btn { margin-left: -8px; }
.top-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.view { display: block; max-width: 760px; margin: 0 auto; padding: 14px 16px calc(var(--tab-h) + 28px + var(--safe-b)); outline: none; }
.offline { position: sticky; top: var(--top-h); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 14px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(20, 22, 28, .05);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; min-width: 0; text-align: center; line-height: 1.15; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab.on { color: var(--brand); }
.tab.on svg { stroke-width: 2.2; }
.tab-cta { color: var(--brand); }
.tab-cta-ic { width: 52px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(31, 58, 95, .3); }
.tab-cta.on .tab-cta-ic { background: var(--brand-2); }

body[data-mode="public"] .tabbar, body[data-mode="public"] .topbar, body[data-mode="public"] .side,
body[data-mode="boot"] .tabbar, body[data-mode="boot"] .side { display: none !important; }
body[data-mode="public"] .view { padding-bottom: 40px; }
body[data-mode="focus"] .tabbar { display: none; }
body[data-mode="focus"] .view { padding-bottom: calc(120px + var(--safe-b)); }

/* ---------- tugmalar, belgilar ---------- */
.icon-btn { width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 44px; height: 44px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.btn-sm { min-height: 48px; padding: 0 14px; font-size: 14.5px; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-bad:hover { background: var(--bad-bg); }
.btn-ok:hover, .btn-primary:hover { filter: brightness(1.08); }
.btn { text-decoration: none; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy svg { visibility: hidden; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) rgba(255,255,255,.9) transparent; animation: spin .7s linear infinite; }
.btn:not(.btn-primary):not(.btn-ok):not(.btn-danger).is-busy::after { border-color: var(--brand) var(--brand) var(--brand) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; }

.call-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.call-btn:hover { background: #d2ecdc; }

.chip svg { margin-right: -2px; }
.chip-brand { background: var(--brand); color: #fff; }

/* Zakaz raqami — tikuvchilik birkasi (luggage tag): kesilgan burchaklar + latun halqali teshik */
.tag {
  --c: 8px; --h: 30px; --hd: 8px; --hx: 9px;
  position: relative; display: inline-flex; align-items: center; flex: none;
  height: var(--h); padding: 0 11px 0 calc(var(--hx) * 2 + var(--hd));
  background: var(--brand); color: #fff;
  clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  border-radius: 0 6px 6px 0;
}
.tag::before {
  content: ""; position: absolute; left: var(--hx); top: 50%; width: var(--hd); height: var(--hd);
  transform: translateY(-50%); border-radius: 50%; background: var(--hole);
  box-shadow: 0 0 0 2px var(--accent);
}
.tag-no { font-weight: 800; font-size: 16px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag-md { --c: 11px; --h: 44px; --hd: 10px; --hx: 12px; padding-right: 16px; border-radius: 0 8px 8px 0; }
.tag-md .tag-no { font-size: 24px; }
.tag-xl { --c: 26px; --h: 116px; --hd: 22px; --hx: 24px; padding-right: 34px; border-radius: 0 14px 14px 0; }
.tag-xl::before { box-shadow: 0 0 0 4px var(--accent); }
.tag-xl .tag-no { font-size: clamp(48px, 15vw, 68px); letter-spacing: -.02em; }

/* O'lchov lentasi — bosqichlar progressi */
.tape { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.tape i { display: block; width: 6px; height: 8px; border-radius: 1px; background: var(--line); }
.tape i:nth-child(5n) { height: 12px; }
.tape i.on { background: var(--accent); }

.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; }

/* ---------- ro'yxat elementlari ---------- */
.ocard {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 12px 14px; box-shadow: var(--shadow); cursor: pointer;
}
.ocard:hover { border-color: #cfc9bb; }
.ocard.due-bad, .card.due-bad { border-left: 6px solid var(--bad); }
.ocard.due-warn, .card.due-warn { border-left: 6px solid var(--warn); }
.ocard.due-ok, .card.due-ok { border-left: 6px solid var(--ok); }
.ocard-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ocard-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.ocard-name b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.urgent { flex: none; padding: 2px 8px; }
.ichips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ichip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.ichip-op { color: var(--ink-2); font-weight: 500; border-left: 1px solid var(--line); padding-left: 6px; }
.ichip-ok { background: var(--ok-bg); color: var(--ok); }
.ichip-bad { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.ichip-spec { background: var(--info-bg); color: var(--info); }
.ocard-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bal { color: var(--bad); font-size: 14px; white-space: nowrap; }
.paid-ok { color: var(--ok); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

.with-act .ocard { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.with-act .act-under { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; color: var(--brand); justify-content: flex-start; }
.with-act.due-bad .act-under, .with-act .act-under { border-left-width: 1px; }

.fcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 10px 14px; box-shadow: var(--shadow); cursor: pointer; min-width: 0; }
.fcard-time { font-size: 22px; font-weight: 800; color: var(--brand); min-width: 62px; }
.fcard-main { flex: 1; min-width: 0; }
.fcard-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rows { padding: 2px 14px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; min-height: 56px; }
.lrow:last-child { border-bottom: 0; }
.lrow[data-href] { cursor: pointer; }
.lrow-btn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; padding: 10px 6px; border-radius: 10px; }
.lrow-btn:hover { background: var(--surface-2); }
.lrow-btn.on { background: var(--info-bg); }
.list .lrow-btn { border: 1px solid var(--line); background: var(--surface); }
a.lrow { color: var(--ink); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.empty p { margin: 0; max-width: 34ch; color: var(--ink-2); }
.empty .btn { margin-top: 4px; }
.card.empty { padding: 28px 16px; }

/* ---------- bo'limlar ---------- */
.sec { margin: 22px 0; }
.sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-h h2 { margin: 0; font-size: 18px; }
.count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.sec-bad .sec-h h2 { color: var(--bad); }
.sec-bad .count { background: var(--bad); color: #fff; }
.sec-brand .count { background: var(--brand); color: #fff; }
.sec-warn .count { background: var(--warn-bg); color: var(--warn); }
.sec-hint { margin: -4px 0 10px; color: var(--ink-2); font-size: 14px; }
.sec-title { font-size: 18px; margin: 10px 0 0; }
.card-h { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 6px; }
.list-count { margin: 0 0 8px; }

/* ---------- Bugun ---------- */
.today-hero { padding: 6px 2px 4px; }
.today-date { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.today-sum { margin: 4px 0 8px; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; max-width: 30ch; text-wrap: balance; }
.today-bad { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--bad); font-weight: 700; font-size: 17px; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jump { min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.jump b { font-size: 17px; }
.jump-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.jump-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.jump-warn { background: var(--warn-bg); border-color: var(--warn-bg); color: var(--warn); }
.today-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mini { padding: 12px 14px; }
.mini h3 { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin: 0 0 8px; color: var(--ink-2); }
.mini-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 14.5px; }
.mini-row b { font-size: 16px; }
.mini-row.strong { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.mini[data-href] { cursor: pointer; }
section[id^="s-"] { scroll-margin-top: calc(var(--top-h) + 10px); }

/* ---------- qidiruv, filtr ---------- */
.search-bar { position: sticky; top: var(--top-h); z-index: 20; background: var(--bg); margin: -14px -16px 8px; padding: 12px 16px 8px; }
.search { position: relative; display: block; }
.search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; min-height: 50px; font-size: 17px; }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px 2px; -webkit-overflow-scrolling: touch; }
.fchips::-webkit-scrollbar { display: none; }
.fchips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.fchip { flex: none; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 15px var(--font); white-space: nowrap; cursor: pointer; }
.fchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fchip.big { font-size: 17px; padding: 0 20px; }

.period { margin-bottom: 14px; }
.period .fchips { margin-top: 0; }
.period-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.period-label { margin-top: 8px; }

/* ---------- forma ---------- */
.f > span:first-child { display: block; }
.input-big { font-size: 22px; min-height: 56px; font-weight: 600; }
.phone-in, .money-in { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.phone-in:focus-within, .money-in:focus-within { outline: 2px solid var(--brand-2); border-color: transparent; }
.phone-in .input, .money-in .input { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.phone-in .input:focus, .money-in .input:focus { outline: 0; }
.phone-pre { display: flex; align-items: center; padding: 0 10px 0 12px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.money-in > span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.phone-big .phone-pre { font-size: 20px; padding: 0 12px 0 16px; }
.phone-big .input { font-size: 26px; min-height: 64px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pw-in { position: relative; }
.pw-in .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 0; top: 0; }
.form-err { margin: 0; color: var(--bad); font-weight: 600; font-size: 14.5px; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fs legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.check-row .chip { margin-left: 6px; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg-o { flex: 1 1 auto; position: relative; min-width: 0; }
.seg-o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-o span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.seg-sm .seg-o span { min-height: 40px; padding: 0 10px; font-size: 14.5px; }
.seg-o input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(20,22,28,.08), 0 2px 8px rgba(20,22,28,.06); }
.seg-o input:focus-visible + span { outline: 2px solid var(--brand-2); }

.switch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.sw { position: relative; flex: none; width: 50px; height: 30px; border-radius: 15px; background: #d6d1c5; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .sw { background: var(--brand); }
.switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.fold { border-top: 1px solid var(--line); }
.fold > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.fold > summary::-webkit-details-marker { display: none; }
.fold-ic { margin-left: auto; color: var(--muted); transition: transform .15s; }
.fold[open] > summary .fold-ic { transform: rotate(180deg); }
.fold-body { padding: 2px 0 10px; }
.card > .fold:first-child { border-top: 0; }
.order > .fold, .name-search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }

.warn-line, .tg-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
.warn-line { background: var(--warn-bg); color: var(--warn); }
.tg-hint { background: var(--info-bg); color: var(--info); }
.onotes { margin: 0; padding: 8px 12px; background: var(--note-bg); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; white-space: pre-wrap; font-size: 15px; }

/* ---------- sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(27, 29, 34, .45); opacity: 0; transition: opacity .16s; }
.sheet-back.open { opacity: 1; }
.sheet-back.closing { opacity: 0; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 20px 20px 0 0; padding: 4px 16px calc(20px + var(--safe-b)); transform: translateY(28px); transition: transform .2s ease-out; outline: none; }
.sheet-back.open .sheet { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 2px; }
.sheet-head { position: sticky; top: -4px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 8px; background: var(--surface); }
.sheet-head h2 { margin: 0; font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .icon-btn { margin-right: -8px; }
.sheet-body h3 { margin: 4px 0 0; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.confirm-msg { font-size: 17px; margin: 6px 0 0; }
.debt-big { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; font-size: 16px; }
.debt-big b { font-size: 30px; color: var(--bad); }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.res { position: relative; }
.res input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.res > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; color: var(--ink-2); }
.res b { color: var(--ink); font-size: 15.5px; }
.res small { font-size: 12px; line-height: 1.25; }
.res-ok input:checked + span { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.res-fix input:checked + span { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.res-no input:checked + span { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.res input:focus-visible + span { outline: 2px solid var(--brand-2); }

.dtp { display: flex; flex-direction: column; gap: 10px; }
.dtp-out { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }

.pay-sum, .money3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-sum > div, .money3 > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.pay-sum span, .money3 span { font-size: 13px; color: var(--ink-2); }
.pay-sum b, .money3 b { font-size: clamp(14.5px, 4.3vw, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money3 .m-bad { background: var(--bad-bg); }
@media (max-width: 419px) {
  .money3, .pay-sum { grid-template-columns: 1fr 1fr; }
  .money3 > div:nth-child(3), .pay-sum > div:nth-child(3) { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .money3 > div:nth-child(3) b, .pay-sum > div:nth-child(3) b { font-size: 21px; }
}
.money3 .m-bad b, .money3 .m-bad span { color: var(--bad); }

/* ---------- Yangi zakaz ---------- */
.steps { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; }
.step { flex: 1 1 0; min-width: 0; }
.step.cur { flex: 1.6 1 0; }
.step button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font: 600 14.5px var(--font); cursor: pointer; }
.step button[disabled] { cursor: default; }
.step.cur button { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done button { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.step-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 800; }
.step.cur .step-n { background: rgba(255,255,255,.18); color: #fff; }
.step.done .step-n { background: var(--ok); color: #fff; }
.step-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.wsec { margin-bottom: 18px; }
.wsec > h2 { font-size: 18px; margin: 0 0 10px; }
label.big-label { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.client-box { margin-top: 12px; }
.client-box .hint { margin: 2px 2px 0; }
.client-found { display: flex; flex-direction: column; gap: 6px; }
.cf-name { font-size: 22px; font-weight: 800; line-height: 1.2; }
.cf-meas { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.name-search { margin-top: 4px; }
.nres { margin-top: 8px; }
.who-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.who-line b { color: var(--ink); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.qbtn { min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--brand); border-radius: 14px; background: var(--surface); color: var(--brand); text-align: left; cursor: pointer; }
.qbtn b { font-size: 19px; }
.qbtn span { font-size: 13px; color: var(--ink-2); }
.qbtn:active { background: var(--brand); color: #fff; }
.gtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gbtn { min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 15px var(--font); text-align: left; cursor: pointer; }
.gbtn:hover { border-color: var(--brand-2); }
.gbtn svg { color: var(--brand-2); }

.witems { display: flex; flex-direction: column; gap: 12px; }
.witem { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.witem-h { display: flex; align-items: center; gap: 10px; }
.witem-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.witem-title { flex: 1; min-width: 0; padding: 6px 0; border: 0; border-bottom: 1.5px dashed transparent; background: transparent; color: var(--ink); font: 700 19px var(--font); }
.witem-title:focus { outline: 0; border-bottom-color: var(--brand-2); }
.wgrid { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
@media (min-width: 560px) { .wgrid { grid-template-columns: 1fr 1fr; } }
.witem .fold { margin: 0 -14px; padding: 0 14px; }
.meas-src { margin-left: 4px; font-weight: 500; }
.meas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mf { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.mf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf .input { font-size: 19px; font-weight: 600; padding-right: 34px; }
.mf i { position: absolute; right: 12px; bottom: 14px; font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none; }
.mf-wide { grid-column: 1 / -1; }
.mf.changed .input { border-color: var(--accent); background: var(--changed-bg); }
.mf.changed span::after { content: " *"; color: var(--accent); }
.meas-hint { margin: 8px 0 0; }

.due-out { margin: 0; font-size: 17px; }
.summary { display: flex; flex-direction: column; gap: 6px; }
.sum-items { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.sum-items .between > span:first-child { min-width: 0; }
.sum-total { font-size: 18px; padding-top: 4px; }
.sum-rest { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.sum-rest b { font-size: 24px; color: var(--brand); }

.wbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,22,28,.06); padding: 10px 16px calc(10px + var(--safe-b)); }
.wbar-in { max-width: 728px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.wbar-back { width: 56px; min-height: 56px; padding: 0; flex: none; }
.wbar-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.wbar-sum b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbar-next { min-height: 56px; padding: 0 18px; font-size: 17px; flex: none; }
.btn-cta { min-height: 60px; padding: 0 22px; font-size: 18px; border-radius: var(--radius); }

/* ---------- Zakaz ochildi ---------- */
.done { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 0 auto; text-align: center; --hole: var(--bg); }
.done-ok { margin: 8px 0 0; display: inline-flex; align-self: center; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.done-tag { display: flex; justify-content: center; padding: 6px 0 0; }
.done-hint { margin: 0; color: var(--ink-2); }
.done-info { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.done-name { font-size: 18px; }
.done .card.stack { text-align: left; }
.done .card h3 { display: flex; align-items: center; gap: 6px; margin: 0; }
.share { display: flex; flex-direction: column; gap: 8px; }
.share-url { padding: 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; word-break: break-all; cursor: pointer; text-align: left; }
.share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }

/* ---------- Zakaz kartasi ---------- */
.order, .client, .settings, .more, .pair { display: flex; flex-direction: column; gap: 12px; }
.ohead { display: flex; flex-direction: column; gap: 10px; }
.ohead-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ohead-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ohead-due { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; }
.ohead-prog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ohead .sep { margin: 2px 0; }
.oclient { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oclient-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.oacts { display: flex; flex-direction: column; gap: 10px; }
.oacts:empty { display: none; }
.omoney { display: flex; flex-direction: column; gap: 10px; }
.pays { border-top: 1px solid var(--line); }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.ofits { display: flex; flex-direction: column; }
.fit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fit-row:last-child { border-bottom: 0; }
.fit-acts { display: flex; gap: 6px; }
.oitem { display: flex; flex-direction: column; gap: 10px; }
.oitem-h { display: flex; align-items: center; gap: 8px; }
.oitem-h h3 { margin: 0; font-size: 18px; }
.oitem .fold { margin: 0 -16px; padding: 0 16px; }

.tl { list-style: none; margin: 0; padding: 0; }
.tl-i { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.tl-i::before { content: ""; position: absolute; left: 11px; top: 34px; bottom: -7px; width: 2px; background: var(--line); }
.tl-i:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: #fff; }
.tl-tayyor .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-tayyor::before { background: var(--ok); }
.tl-olindi .tl-dot { border-color: var(--warn); background: var(--warn-bg); }
.tl-navbatda .tl-dot { border-color: var(--info); }
.tl-bekor { opacity: .55; }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.tl-i .icon-btn { margin: -6px -8px -6px 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.ph { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-add { border-style: dashed; background: var(--surface); }
.ph-add:hover { border-color: var(--brand-2); color: var(--brand-2); }
.ph-full { display: block; width: 100%; height: auto; border-radius: 10px; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0; }
.mgrid > div { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.mgrid dt { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgrid dd { margin: 0; font-size: 17px; font-weight: 700; }
.mgrid .changed { background: var(--changed-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.mgrid s { font-weight: 500; font-size: 13px; }

.events { list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.events li:last-child { border-bottom: 0; }
.danger-zone { margin-top: 12px; }

/* ---------- Mijoz ---------- */
.chead { display: flex; flex-direction: column; gap: 12px; }
.chead h2 { margin: 0; font-size: 21px; }
.meas-card { display: flex; flex-direction: column; gap: 10px; }
.meas-card h3 { margin: 0; }
.versions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ver { display: flex; flex-direction: column; gap: 8px; box-shadow: none; }

/* ---------- Kassa ---------- */
.cash-tot { margin-bottom: 12px; }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 559px) { .boxes > .box:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.box h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.cr-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.cr-ic.pos { background: var(--ok-bg); color: var(--ok); }
.cr-ic.neg { background: var(--bad-bg); color: var(--bad); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat { position: relative; }
.cat input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cat span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14.5px; text-align: center; color: var(--ink); }
.cat input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat input:focus-visible + span { outline: 2px solid var(--brand-2); }

/* ---------- Xodimlar ---------- */
.link-card { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-bottom: 12px; }
.link-card > svg:first-child { color: var(--brand-2); }
.settings .link-card, .more .link-card { margin-bottom: 0; }
.emp { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.emp-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.emp-top b { font-size: 17px; max-width: 100%; }
.emp .ichips { margin-bottom: 6px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { position: relative; }
.tchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tchip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--ink-2); }
.tchip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.tchip input:focus-visible + span { outline: 2px solid var(--brand-2); }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color { position: relative; }
.color input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.color span { display: block; width: 44px; height: 44px; border-radius: 50%; }
.color input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.color input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 4px; }
.pin { font-size: 24px; letter-spacing: .4em; font-weight: 700; max-width: 180px; }
.ehead-in { margin-bottom: 12px; }
.ehead-in h2 { margin: 0; }
.etot { display: flex; flex-direction: column; gap: 12px; }
.etot-main { display: flex; flex-direction: column; gap: 2px; }
.etot-main > span { color: var(--ink-2); font-weight: 600; }
.etot-main b { font-size: clamp(26px, 8vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.etot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.etot-grid > div { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.etot-grid dt { font-size: 12.5px; color: var(--ink-2); }
.etot-grid dd { margin: 0; font-weight: 700; }
.led-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.tbl-wrap { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tbl tbody th, .tbl tfoot th { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.tbl thead th:first-child { left: 0; z-index: 2; }
.tbl tfoot th, .tbl tfoot td { font-weight: 800; border-bottom: 0; background: var(--surface-2); }
.tbl tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover td, .tbl tbody tr[data-href]:hover th { background: #faf8f3; }
.rates td { padding: 6px; }
.rate-in { min-width: 108px; text-align: right; min-height: 44px; padding: 8px 10px; }
.rate-in.off { background: var(--surface-2); color: var(--muted); }
@media (max-width: 599px) {
  .rates thead { display: none; }
  .rates, .rates tbody { display: block; }
  .rates tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rates tr:last-child { border-bottom: 0; }
  .rates tbody th { grid-column: 1 / -1; position: static; box-shadow: none; padding: 0; border: 0; font-size: 16px; }
  .rates td { padding: 0; border: 0; }
  .rates td::before { content: attr(data-op); display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
  .rates .rate-in { min-width: 0; width: 100%; }
  .tbl-wrap:has(.rates) { overflow: visible; }
}
.sticky-save { position: sticky; bottom: calc(var(--tab-h) + 12px + var(--safe-b)); margin-top: 12px; z-index: 5; }

/* ---------- Hisobot ---------- */
.profit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf > span { font-weight: 700; color: var(--ink-2); }
.pf b { font-size: clamp(19px, 5.6vw, 30px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf small { line-height: 1.3; }
.rbody > .card, .cbody > .card { margin-bottom: 12px; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.kv-bad dd { color: var(--bad); }
.hbars { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 15px; min-width: 0; }
.hb-top .avatar { width: 32px; height: 32px; font-size: 12px; }
.hb-track { height: 10px; background: var(--surface-2); border-radius: 0 5px 5px 0; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--brand-2); border-radius: 0 4px 4px 0; }

/* ---------- Sozlamalar ---------- */
.ed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-row { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.ed-row .input { flex: 1; min-width: 0; }
.ed-row > .grow { font-weight: 600; }
.ed-n { width: 24px; flex: none; color: var(--muted); font-weight: 700; text-align: center; }
.route .ed-row { border-bottom: 1px solid var(--line); }
.qr-box { width: min(280px, 100%); margin: 4px auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.pair-link { padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 16px; font-weight: 700; word-break: break-all; text-align: center; cursor: pointer; }
.pair-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.pair-res .card-h { color: var(--ok); }

/* ---------- Ko'proq ---------- */
.who { align-items: center; gap: 12px; }
.more-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.more-link { min-height: 64px; }

/* ---------- Kirish ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 28px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.auth-brand p { margin: 2px 0 0; }
.auth-card { padding: 18px 16px; gap: 14px; }
.auth-card h2 { margin: 0; }
.auth-switch { margin: 0; text-align: center; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--accent); }
.brand-mark.big { width: 60px; height: 60px; border-radius: 16px; }

/* ---------- skelet ---------- */
.sk { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, #f7f5f0 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.sk-line { height: 14px; margin: 9px 0; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sk-tag { width: 86px; height: 30px; border-radius: 4px 6px 6px 4px; margin-bottom: 12px; }
.sk-tag.big { width: 260px; height: 116px; margin: 40px auto; }
.card + .card, .sk-card + .sk-card { margin-top: 0; }
.view > .card + .card { margin-top: 12px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- ≥560 ---------- */
@media (min-width: 560px) {
  .meas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .led-btns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 419px) {
  .hide-xs { display: none; }
  .step:not(.cur) .step-t { display: none; }
  .step:not(.cur) { flex: 0 0 auto; }
  .step:not(.cur) button { width: 48px; justify-content: center; padding: 0; }
  .res small { display: none; }
  .profit { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .hide-sm { display: none !important; }
}

/* ---------- ≥900: chap panel ---------- */
@media (min-width: 900px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: var(--side-w);
    display: flex; flex-direction: column; gap: 14px; padding: 18px 14px;
    background: var(--brand); color: #fff; overflow-y: auto;
  }
  .side-brand { display: flex; align-items: flex-start; gap: 12px; padding: 4px 4px 8px; }
  .side-brand .brand-mark { background: rgba(255,255,255,.1); }
  .side-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .side-who b { font-size: 16px; line-height: 1.2; }
  .side-who .muted { color: rgba(255,255,255,.7); }
  .side-who .chip { align-self: flex-start; background: rgba(255,255,255,.14); color: #fff; }
  .side-cta { background: var(--accent); border-color: var(--accent); color: var(--ink); min-height: 52px; font-size: 16px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.78); font: 600 15.5px var(--font); text-align: left; cursor: pointer; }
  .side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
  .side-link.on { background: rgba(255,255,255,.14); color: #fff; }
  .side-link.on svg { color: var(--accent); }
  .side-out { margin-top: auto; }
  .main-col { margin-left: var(--side-w); }
  body[data-mode="public"] .main-col { margin-left: 0; }
  .tabbar { display: none !important; }
  .view { max-width: 980px; padding: 20px 28px 56px; }
  body[data-mode="focus"] .view { max-width: 820px; }
  .topbar { padding: 0 20px 0 28px; }
  .search-bar { margin: -20px -28px 10px; padding: 16px 28px 10px; }
  .fchips { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .fchips.wrap, .period .fchips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .wbar { left: var(--side-w); }
  .today-cols { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
  .today-side { grid-template-columns: 1fr; position: sticky; top: calc(var(--top-h) + 20px); margin-top: 22px; }
  .olist .list, .clist .rows { max-width: none; }
  .olist .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sticky-save { bottom: 16px; }
  .meas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toast-wrap { bottom: 32px; }
  body[data-mode="focus"] .toast-wrap { bottom: 110px; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 16px; max-height: 86vh; padding-bottom: 20px; }
  .sheet-grip { display: none; }
  .sheet-wide { max-width: 760px; }
}
body[data-mode="focus"] .toast-wrap { bottom: 104px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .tabbar, .side, .topbar, .wbar { display: none !important; }
  .main-col { margin: 0 !important; }
}
.omoney .row .btn-primary { flex: 1 1 170px; }
.omoney [data-refund] { flex: none; padding: 0 10px; }
