:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e3e9ec;
  --text: #17252b;
  --muted: #64767e;
  --primary: #0e7c86;
  --primary-600: #0b6870;
  --primary-50: #e7f4f5;
  --success: #1f9d55;
  --success-50: #e8f6ee;
  --warning: #c27c0e;
  --warning-50: #fdf3e1;
  --danger: #d23f3f;
  --danger-50: #fcebeb;
  --info: #2f6fdb;
  --info-50: #e9f0fc;
  --sidebar: #0f2a30;
  --sidebar-text: #b9cdd1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .06), 0 4px 14px rgba(16, 40, 48, .05);
  --sidebar-w: 248px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Qobiq ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40;
  padding: 16px 12px; transition: transform .22s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img { border-radius: 9px; }
.brand-name { color: #fff; font-weight: 650; font-size: 15px; }
.brand-sub { font-size: 12px; opacity: .7; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: var(--sidebar-text); text-decoration: none; background: none; border: 0; cursor: pointer;
  text-align: left; width: 100%; font-size: 14.5px;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .badge { margin-left: auto; background: rgba(255,255,255,.16); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 10px; }
.nav-item.active .badge { background: rgba(255,255,255,.25); }
.nav-settings { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding-top: 14px; }

.user-box { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.user-box:empty { display: none; }
.user-av { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.user-inf { flex: 1; min-width: 0; }
.user-n { color: #fff; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-r { font-size: 12px; opacity: .7; }
.user-box .icon-btn { color: var(--sidebar-text); }
.user-box .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; border-color: transparent; }

.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.sync:empty { display: none; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.sync.green i { background: var(--success); }
.sync.orange { color: var(--warning); }
.sync.red { color: var(--danger); font-weight: 600; }
.sync + .topbar-right { margin-left: 14px; }

.auth { position: fixed; inset: 0; z-index: 300; background: linear-gradient(160deg, #0f2a30 0%, #0e7c86 100%); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 400px; padding: 26px 24px; margin: auto 0; }
.auth-card h2 { margin: 0 0 14px; font-size: 20px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-brand img { border-radius: 11px; }
.auth-brand b { font-size: 16px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 58px; display: flex; align-items: center; gap: 12px;
  padding: 0 24px; background: rgba(244, 247, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.page-title { font-size: 18px; margin: 0; font-weight: 650; }
.topbar-right { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.menu-btn { display: none; }
.content { padding: 20px 24px 40px; max-width: 1400px; width: 100%; }
.backdrop { display: none; }

@media (max-width: 899px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open { transform: none; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(10, 25, 30, .45); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; }
  .page-title { white-space: nowrap; }
  .topbar-right { display: none; }
  .sync span { display: none; }
  .sync.red span, .sync.orange span { display: inline; }
  .content { padding: 14px 12px 90px; }
}

/* ---------- Umumiy elementlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.card-h .sub { color: var(--muted); font-size: 13px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-b { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right-text { text-align: right; }
.bold { font-weight: 650; }
.hidden { display: none !important; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-sale { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
@media (max-width: 899px) { .grid-2, .grid-sale { grid-template-columns: minmax(0, 1fr); } }
input[type=date], input[type=time], input[type=datetime-local] { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: #cdd8dc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #198347; border-color: #198347; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); border-color: #f2c4c4; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field > span .req { color: var(--danger); }
.input, .select, .textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); outline: none; width: 100%; min-width: 0;
}
.textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.input.err, .select.err, .textarea.err { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.field-err { color: var(--danger); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 550; font-size: 13.5px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.green { background: var(--success-50); color: var(--success); }
.pill.orange { background: var(--warning-50); color: var(--warning); }
.pill.red { background: var(--danger-50); color: var(--danger); }
.pill.blue { background: var(--info-50); color: var(--info); }
.pill.gray { background: #eef2f3; color: var(--muted); }
.pill.teal { background: var(--primary-50); color: var(--primary); }

/* Jadval */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border); }

/* Mobil: jadval -> kartochka */
@media (max-width: 720px) {
  table.table.responsive thead { display: none; }
  table.table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table.responsive td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; text-align: left; }
  .table.responsive td.num { text-align: right; }
  .table.responsive td.actions::before { content: ''; }
  .table.responsive td.actions { justify-content: flex-end; padding-top: 6px; }
  .table.responsive tfoot { display: block; }
  .table.responsive tfoot tr { display: flex; }
}

/* Statistika kartalari */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat .lbl { color: var(--muted); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.stat .val { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat .val { font-size: 17px; }
}
.stat.accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.stat.accent .lbl, .stat.accent .hint { color: rgba(255,255,255,.8); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1 1 220px; }
.toolbar .input, .toolbar .select { height: 36px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 6px; }

.alert { display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--radius-sm); font-size: 13.5px; align-items: flex-start; }
.alert svg { margin-top: 1px; }
.alert .btn { white-space: normal; height: auto; min-height: 32px; padding: 6px 10px; text-align: left; }
.alert.warn { background: var(--warning-50); color: #7d5005; }
.alert.danger { background: var(--danger-50); color: #922; }
.alert.info { background: var(--info-50); color: #1d4a99; }
.alert.ok { background: var(--success-50); color: #146c3a; }

/* ---------- Sotuv ---------- */
.steps { display: none; gap: 8px; margin-bottom: 12px; }
.steps .st { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--muted); font-weight: 550; }
.steps .st b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps .st.on { border-color: var(--primary); color: var(--primary); }
.steps .st.on b, .steps .st.done b { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 899px) {
  .steps { display: flex; }
  .sale[data-step="1"] .step-2 { display: none; }
  .sale[data-step="2"] .step-1 { display: none; }
  .svc-list { max-height: none; }
}
@media (min-width: 900px) { .only-mobile { display: none !important; } }
@media (max-width: 899px) { .only-desktop { display: none !important; } }

.svc-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.svc-row:hover { background: var(--surface-2); }
.svc-row.sel { background: var(--primary-50); }
.svc-row .chk { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c3cfd3; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.svc-row.sel .chk { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-row .chk svg { width: 13px; height: 13px; stroke-width: 3; }
.svc-row .nm { flex: 1; min-width: 0; }
.svc-row .nm div:first-child { font-weight: 550; }
.svc-row .pr { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 13px; }

.summary { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.summary .ln { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.summary .ln.total { font-size: 18px; font-weight: 700; border-top: 1px dashed var(--border); padding-top: 10px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-grid .field > span { display: flex; align-items: center; gap: 6px; }
.debt-box { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; font-weight: 650; }
.debt-box.zero { background: var(--success-50); color: var(--success); }
.debt-box.some { background: var(--warning-50); color: var(--warning); }
.debt-box.full { background: var(--danger-50); color: var(--danger); }
.debt-box.over { background: var(--info-50); color: var(--info); }

.sticky-save { position: sticky; bottom: 0; }
@media (max-width: 899px) {
  .sticky-save { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); z-index: 15; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
}

/* Bron ro'yxati */
.bk-list { display: flex; flex-direction: column; }
.bk { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.bk:last-child { border-bottom: 0; }
.bk .tm { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.bk.now .tm { background: var(--warning-50); border-color: #f0d49c; color: var(--warning); }
.bk.past .tm { opacity: .6; }
.bk .inf { flex: 1; min-width: 0; }
.bk .inf .n { font-weight: 600; }
.bk .inf .c { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kun jadvali (sloty) */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; padding: 14px 16px; }
.slot { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--primary); color: var(--primary); }
.slot { position: relative; }
.slot.has { background: var(--warning-50); border-color: #f0d49c; color: var(--warning); }
.slot .cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--warning); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.slot.pick .cnt { background: #fff; color: var(--primary); }
.slot.past { opacity: .4; }
.slot.pick { background: var(--primary); color: #fff; border-color: var(--primary); }
.legend { display: flex; gap: 14px; padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--border); }

/* Xizmatlar */
.items-edit { display: flex; flex-direction: column; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 38px; gap: 8px; }
@media (max-width: 520px) { .item-row { grid-template-columns: minmax(0, 1fr) 70px 70px 38px; } }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 8px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tl:last-child { border-bottom: 0; }
.tl .when { min-width: 130px; font-size: 12.5px; color: var(--muted); }
.tl .what { flex: 1; font-size: 13.5px; }
.tl .what .chg { display: block; }
.tl .old { color: var(--danger); text-decoration: line-through; }
.tl .new { color: var(--success); font-weight: 600; }
@media (max-width: 520px) { .tl { flex-direction: column; gap: 3px; } }

/* Kassa */
.wallets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .wallets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .wallets { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .wallet { padding: 12px; } .wallet .val { font-size: 17px; } .wallet .ico { width: 32px; height: 32px; margin-bottom: 6px; } }
.wallet.accent .today { color: rgba(255,255,255,.85); }
.wallet { padding: 16px; position: relative; overflow: hidden; }
.wallet .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.wallet .val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet .lbl { color: var(--muted); font-size: 13px; font-weight: 550; }
.wallet .today { font-size: 12px; color: var(--muted); margin-top: 6px; }
.amt-in { color: var(--success); font-weight: 650; }
.amt-out { color: var(--danger); font-weight: 650; }

/* ---------- Modal ---------- */
.modal-root .overlay { position: fixed; inset: 0; background: rgba(10, 25, 30, .5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease; }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); gap: 10px; }
.modal-h h3 { margin: 0; font-size: 16.5px; flex: 1; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) {
  .modal-root .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .modal-f { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

.toast-root { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #17252b; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 9px; font-size: 14px; max-width: 360px; animation: pop .2s; pointer-events: auto; }
.toast.ok svg { color: #5ee09a; }
.toast.err { background: #8f2424; }
@media (max-width: 600px) { .toast-root { left: 12px; right: 12px; } .toast { max-width: none; } }

.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
@media (max-width: 520px) { .kv { grid-template-columns: 110px minmax(0, 1fr); } }

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin: 0; }
}
