/* Mastero — dizayn tizimi.
   Joylashuv: telefon uchun bitta ustun (kompyuterda markazda 600px), tepada yopishqoq sarlavha,
   pastda bo'limlar paneli; sahifalar o'ngdan suriladi, formalar pastdan chiqadi. */
:root {
  --bg: #eef0eb; --bg-out: #e2e5dd; --surface: #fcfcfa; --surface-2: #f3f4f0; --surface-3: #e5e8e1;
  --fg: #1a201c; --muted: #5b635d; --faint: #8b928c; --line: #d8dcd4; --line-2: #e7eae3;
  --brand: #a5630a; --brand-2: #8a5208; --brand-text: #93580a; --brand-weak: #f6e8cf; --brand-ink: #ffffff; --on-weak: #7a4806;
  --ok: #217844; --ok-w: #dcefe2; --bad: #bd3627; --bad-w: #f9e1dc; --warn: #935d00; --warn-w: #fbeed1; --info: #2a63a3; --info-w: #e1ebf7;
  --s-plan: #627187; --s-conf: #2d6cb2; --s-prod: #0d7284; --s-ship: #a5630a; --s-done: #217844;
  --cat-material: #9a7646; --cat-furnitura: #4b7790; --cat-sex: #7a5fa3; --cat-yol: #c05a2a; --cat-yuk: #8a5a3a; --cat-ishhaqi: #3b8758; --cat-asbob: #6a717d; --cat-boshqa: #878c93;
  --tg: #2aa3e0;
  --sh: 0 1px 2px rgba(22, 28, 24, .06), 0 4px 14px rgba(22, 28, 24, .05);
  --sh-lg: 0 18px 48px rgba(22, 28, 24, .22);
  --fd: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --fb: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --fm: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --tab-h: 64px; --col: 600px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f120f; --bg-out: #090b09; --surface: #191c18; --surface-2: #20241f; --surface-3: #2a2f29;
    --fg: #ecebe3; --muted: #a2a79c; --faint: #7c8278; --line: #30352d; --line-2: #262a24;
    --brand: #e2a13a; --brand-2: #f0b95e; --brand-text: #ebb052; --brand-weak: #382b12; --brand-ink: #1d1404; --on-weak: #f2c77e;
    --ok: #5bc184; --ok-w: #17301f; --bad: #ef7262; --bad-w: #3a1e1a; --warn: #e6aa4c; --warn-w: #372911; --info: #73aef0; --info-w: #172a3e;
    --s-plan: #96a4b8; --s-conf: #6aa6e6; --s-prod: #3fbfb0; --s-ship: #e2a13a; --s-done: #5bc184;
    --cat-material: #c8a66d; --cat-furnitura: #86b1c9; --cat-sex: #b49bd7; --cat-yol: #ee8b5a; --cat-yuk: #c48f6b; --cat-ishhaqi: #74c495; --cat-asbob: #a6adb9; --cat-boshqa: #b1b5bb;
    --sh: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3); --sh-lg: 0 18px 48px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f120f; --bg-out: #090b09; --surface: #191c18; --surface-2: #20241f; --surface-3: #2a2f29;
  --fg: #ecebe3; --muted: #a2a79c; --faint: #7c8278; --line: #30352d; --line-2: #262a24;
  --brand: #e2a13a; --brand-2: #f0b95e; --brand-text: #ebb052; --brand-weak: #382b12; --brand-ink: #1d1404; --on-weak: #f2c77e;
  --ok: #5bc184; --ok-w: #17301f; --bad: #ef7262; --bad-w: #3a1e1a; --warn: #e6aa4c; --warn-w: #372911; --info: #73aef0; --info-w: #172a3e;
  --s-plan: #96a4b8; --s-conf: #6aa6e6; --s-prod: #3fbfb0; --s-ship: #e2a13a; --s-done: #5bc184;
  --cat-material: #c8a66d; --cat-furnitura: #86b1c9; --cat-sex: #b49bd7; --cat-yol: #ee8b5a; --cat-yuk: #c48f6b; --cat-ishhaqi: #74c495; --cat-asbob: #a6adb9; --cat-boshqa: #b1b5bb;
  --sh: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3); --sh-lg: 0 18px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--fb); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 45; }
body.has-layer { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: var(--brand-text); }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-family: var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mono { font-family: var(--fm); letter-spacing: .02em; }
.pos { color: var(--ok); } .neg { color: var(--bad); } .mut { color: var(--muted); }
.muted { color: var(--muted); } .pad { padding: 14px; } .meta { font-size: 12px; color: var(--muted); margin: 16px 4px 4px; }
.row-sb { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.xs { width: 14px; height: 14px; } .ic.xl { width: 46px; height: 46px; stroke-width: 1.4; } .ic.mut { color: var(--faint); }
.logo { display: block; flex: none; } .logo.lg { width: 78px; height: 78px; filter: drop-shadow(0 10px 22px rgba(165, 99, 10, .32)); } .logo.sm { width: 32px; height: 32px; } .logo.xs { width: 18px; height: 18px; }

/* ---------- tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; font: 700 15px/1 var(--fd); border: 1.5px solid transparent; white-space: nowrap; transition: transform .12s, filter .15s, background .15s; user-select: none; }
.btn:active { transform: scale(.98); } .btn:disabled { opacity: .45; pointer-events: none; }
.btn.lg { height: 52px; width: 100%; font-size: 16px; } .btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 8px rgba(165, 99, 10, .25); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn.text { color: var(--brand-text); height: auto; padding: 8px 4px; font-size: 14px; }
.btn.danger { background: var(--bad); color: #fff; } .btn.danger-ghost { background: var(--bad-w); color: var(--bad); width: 100%; margin-top: 18px; }
.btn.tg { background: var(--tg); color: #fff; text-decoration: none; } .btn.tg small { font: 500 13px var(--fb); opacity: .85; }
.btn.dashed { width: 100%; border-style: dashed; background: transparent; color: var(--brand-text); }
.btn.busy { opacity: .6; pointer-events: none; } .btn.grow { flex: 1; }
.ib { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--fg); flex: none; position: relative; text-decoration: none; }
.ib:active { background: var(--surface-3); } .ib.sm { width: 34px; height: 34px; border-radius: 10px; } .ib.on { color: var(--brand-text); }
.lnk { color: var(--brand-text); text-decoration: underline; font-weight: 600; }

/* ---------- maydonlar ---------- */
.fld { margin-bottom: 14px; min-width: 0; }
.fld label, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input:focus-visible, select:focus-visible { outline: none; }
input:disabled, select:disabled { opacity: .6; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); -webkit-appearance: checkbox; appearance: auto; flex: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; text-overflow: ellipsis; }
input[type=date] { min-height: 48px; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; min-height: 0; margin: 2px 0 8px; } .err:empty { margin: 0; }
.pw { position: relative; } .pw input { padding-right: 50px; } .pw .ib { position: absolute; right: 4px; top: 7px; color: var(--muted); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 6px; cursor: pointer; }
.money-in { position: relative; } .money-in input { padding-right: 58px; font-family: var(--fm); font-weight: 600; } .money-in .suf { position: absolute; right: 14px; bottom: 15px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg { display: flex; background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 6px; text-align: center; line-height: 1.2; }
.seg button small { font: 500 10.5px var(--fm); opacity: .8; } .seg button:disabled { opacity: .4; }
.seg .on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg.wide { width: 100%; }

/* ---------- kirish ekranlari ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow: hidden; }
.auth-art { position: absolute; inset: 0 0 auto 0; height: 52vh; color: var(--brand); opacity: .26; display: flex; justify-content: center; pointer-events: none; }
.art { width: 118%; max-width: 640px; margin-top: 4vh; }
.auth-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; width: 100%; max-width: 460px; margin: 0 auto; padding: 8px max(20px, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.welcome .auth-in { justify-content: flex-end; padding-top: 36vh; }
.auth-brand { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.auth-brand h1 { font: 800 34px/1.1 var(--fd); margin: 14px 0 4px; letter-spacing: -.025em; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 15.5px; }
.auth-acts { display: flex; flex-direction: column; gap: 10px; }
.auth-acts .btn.text { align-self: center; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 4px 0 0; }
.auth-note .ic { width: 16px; height: 16px; margin-top: 1px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 4px; position: relative; z-index: 1; }
.mini-brand { display: flex; align-items: center; gap: 8px; font: 800 15px var(--fd); min-width: 0; } .mini-brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w40 { width: 40px; flex: none; }
.auth h2 { font: 800 27px/1.15 var(--fd); margin: 6px 0 0; letter-spacing: -.015em; }
.sub { color: var(--muted); margin: 0 0 8px; font-size: 14.5px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.big-ic { width: 72px; height: 72px; border-radius: 24px; background: var(--brand-weak); color: var(--brand-text); display: grid; place-items: center; margin: 10px auto 4px; }
.big-ic .ic { width: 34px; height: 34px; stroke-width: 1.6; } .big-ic.warn { background: var(--warn-w); color: var(--warn); }
.keybox { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 10px; }
.keybox label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.key-in { font: 600 19px var(--fm); letter-spacing: .06em; text-align: center; height: 56px; text-transform: uppercase; }
.buy { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.buy h3 { font: 800 18px var(--fd); margin: 0; } .buy .sub { margin: 0; } .buy .hint { margin: 0; }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pkg { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 6px 12px; text-align: center; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkg b { font: 700 13.5px var(--fd); } .pkg .pp { font-size: 15px; font-weight: 700; margin-top: 4px; white-space: nowrap; } .pkg small { font-size: 11px; color: var(--muted); } .pkg .pm { margin-top: 4px; color: var(--fg); font-weight: 600; }
.pkg.best { border-color: var(--brand); background: var(--brand-weak); }
.pkg .pill { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #fff; font-size: 10.5px; white-space: nowrap; padding: 2px 8px; }
.pkg .pill i { display: none; }
.note { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); margin: 10px 0; }
.note .btn { margin-left: auto; } .note .ic { color: var(--faint); }
.terms { padding-left: 20px; margin: 0; } .terms li { margin-bottom: 10px; }

/* ---------- asosiy qobiq ---------- */
#app { max-width: var(--col); margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 28px); background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 max(10px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bt b { font: 800 16px var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 10.5px/18px var(--fb); text-align: center; border: 2px solid var(--bg); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; margin: 4px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-radius: 14px; font-size: 13.5px; font-weight: 600; animation: drop .3s ease; }
.banner span { flex: 1; min-width: 0; } .banner .btn { background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.banner.bad { background: var(--bad-w); color: var(--bad); } .banner.warn { background: var(--warn-w); color: var(--warn); } .banner.info { background: var(--info-w); color: var(--info); }
.ptr { height: var(--d, 0px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; color: var(--muted); }
.ptr .ic { margin-bottom: 10px; transition: transform .2s; } .ptr.ready .ic { transform: rotate(180deg); color: var(--brand-text); }
.ptr.spin { height: 48px; transition: height .2s; } .ptr.spin .ic { animation: spin .8s linear infinite; color: var(--brand-text); }
.fab { position: fixed; z-index: 35; right: max(16px, calc((100vw - var(--col)) / 2 + 16px), env(safe-area-inset-right, 0px)); bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 19px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(165, 99, 10, .35); transition: transform .15s; }
.fab .ic { width: 26px; height: 26px; stroke-width: 2.2; } .fab:active { transform: scale(.94); }
.fab.locked { background: var(--surface-3); color: var(--muted); box-shadow: var(--sh); }
.tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-width: var(--col); margin: 0 auto; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tabs button .ic { width: 22px; height: 22px; padding: 0; transition: color .15s; }
.tabs button.on { color: var(--brand-text); } .tabs button.on .ic { stroke-width: 2.1; }
.tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buyurtmalar ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 11px 12px; min-width: 0; box-shadow: var(--sh); }
.tile small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { display: block; font-size: 17px; letter-spacing: -.04em; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quick.two { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; font-size: 12.5px; font-weight: 600; text-align: center; transition: transform .12s; }
.qbtn:active { transform: scale(.97); }
.qbtn .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--brand-weak); color: var(--brand-text); }
.qbtn.sm { flex-direction: row; justify-content: center; padding: 10px; } .qbtn.sm .ic { width: 30px; height: 30px; padding: 6px; background: var(--info-w); color: var(--info); }
.search { position: relative; margin-top: 14px; } .search .ic { position: absolute; left: 13px; top: 14px; color: var(--faint); } .search input { padding-left: 42px; height: 46px; border-radius: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 4px; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrapc { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chipb { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--fg); }
.chipb span { color: var(--muted); font-family: var(--fm); font-size: 12px; }
.chipb.on { background: var(--fg); color: var(--bg); border-color: var(--fg); } .chipb.on span { color: inherit; opacity: .7; }
.cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); }
.sw { position: relative; border-radius: 17px; overflow: hidden; }
.sw-acts { position: absolute; inset: 0 0 0 auto; width: 152px; display: flex; }
.sw-act { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; padding: 0 4px; line-height: 1.15; }
.sw-act.pay { background: var(--ok); } .sw-act.nx { background: var(--s-conf); }
.ocard { position: relative; z-index: 1; display: block; width: 100%; padding: 14px; text-align: left; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.oc-top { display: flex; align-items: center; gap: 12px; }
.oc-th { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.oc-th.ph { display: grid; place-items: center; font: 800 15px var(--fd); color: var(--on-weak); background: var(--brand-weak); border: 0; }
.oc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-main b { font: 700 16px/1.25 var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-main small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-money { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.oc-money small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; } .oc-money b { font-size: 14.5px; font-weight: 600; }
.oc-l { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; } .oc-l.ok { color: var(--ok); } .oc-l.warn { color: var(--warn); }
.oc-mid { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.avs { display: flex; margin-left: auto; padding-left: 6px; } .avs .av { margin-left: -7px; border: 2px solid var(--surface); }
.prog { height: 4px; background: var(--surface-3); border-radius: 99px; margin-top: 12px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.pill { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { --c: var(--ok); } .pill.warn { --c: var(--warn); } .pill.bad { --c: var(--bad); }
.st-plan { --c: var(--s-plan); } .st-conf { --c: var(--s-conf); } .st-prod { --c: var(--s-prod); } .st-ship { --c: var(--s-ship); } .st-done { --c: var(--s-done); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 9px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; } .chip.bad { background: var(--bad-w); color: var(--bad); } .chip.warn { background: var(--warn-w); color: var(--warn); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-weak); color: var(--on-weak); font: 800 11px var(--fd); font-style: normal; flex: none; }
.av.lg { width: 40px; height: 40px; font-size: 14px; } .av.xl { width: 58px; height: 58px; font-size: 20px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 20px; color: var(--muted); gap: 10px; }
.empty p { margin: 0; max-width: 30ch; } .art-e { width: 116px; color: var(--faint); }

/* ---------- buyurtma sahifasi ---------- */
.o-head { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.cl-card { overflow: hidden; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; min-height: 48px; border-top: 1px solid var(--line-2); width: 100%; text-align: left; }
.kv:first-child { border-top: 0; } .kv > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14.5px; } .kv .ic { color: var(--muted); }
.kv-a { display: flex; gap: 2px; } .lnk-row { color: var(--brand-text); font-weight: 600; } .lnk-row .ic { color: inherit; }
.money-card { margin-top: 10px; padding: 6px 0; }
.mrow { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 14px; font-size: 14.5px; gap: 10px; }
.mrow span { color: var(--muted); } .mrow b { font-weight: 600; }
.mrow.tot { border-top: 1.5px solid var(--line); margin-top: 4px; padding-top: 12px; } .mrow.tot span { color: var(--fg); font: 700 15px var(--fd); } .mrow.tot b { font-size: 18px; }
.qrow { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; margin: 12px 0 4px; } .qrow .btn { padding: 0 8px; font-size: 13.5px; } .qrow .btn .ic { width: 18px; height: 18px; }
.sec { font: 800 12.5px var(--fd); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 24px 4px 10px; display: flex; gap: 8px; align-items: center; }
.cnt { background: var(--surface-3); color: var(--fg); border-radius: 99px; padding: 1px 8px; font: 600 11.5px var(--fm); letter-spacing: 0; }
.item { padding: 14px; margin-bottom: 10px; }
.it-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .it-h b { font: 700 16px/1.25 var(--fd); display: block; } .it-h small { display: block; color: var(--muted); font-size: 13px; } .it-h .num { font: 600 15px var(--fm); white-space: nowrap; }
.it-n { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.it-st { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pillbtn { display: inline-flex; align-items: center; gap: 2px; border-radius: 99px; } .pillbtn > .ic { color: var(--muted); }
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ftile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 100%; }
.ftile img { width: 100%; height: 100%; object-fit: cover; display: block; } .ftile img.miss { visibility: hidden; }
.ftile.add { border: 1.5px dashed var(--line); background: transparent; color: var(--brand-text); font-size: 11.5px; font-weight: 600; }
.ftile.doc { color: var(--muted); font: 700 11px var(--fm); }
.fpin { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.tchips, .tpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; position: relative; }
.tchip.sel { cursor: pointer; } .tchip.sel input { position: absolute; opacity: 0; pointer-events: none; }
.tchip.sel:has(input:checked) { border-color: var(--brand); background: var(--brand-weak); }
.tchip.sel:has(input:focus-visible) { outline: 2px solid var(--brand); }
.tl { padding: 2px 4px; } .tl-i { display: flex; gap: 12px; padding: 7px 0; } .tl-i > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 6px; flex: none; }
.tl-i span { font-size: 14px; } .tl-i small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- ro'yxatlar ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; border-top: 1px solid var(--line-2); min-height: 58px; text-decoration: none; color: inherit; }
.list > .li:first-child { border-top: 0; } button.li:active, a.li:active { background: var(--surface-2); }
.li-ic { --cc: var(--muted); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--cc); flex: none; }
.li-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-b b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.li-b small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-v { font-weight: 600; font-size: 14px; white-space: nowrap; } .li-v.mut { color: var(--muted); }
.li-a { display: flex; gap: 2px; } .li.danger { color: var(--bad); } .li.danger .li-ic { color: var(--bad); background: var(--bad-w); }
.li-ic.k-in { --cc: var(--ok); background: var(--ok-w); }
.li-ic.k-out { background: color-mix(in srgb, var(--cc) 14%, transparent); }
.li-ic.k-give, .li-ic.k-take { --cc: var(--info); background: var(--info-w); }
.li-ic.warn { --cc: var(--warn); background: var(--warn-w); } .li-ic.bad { --cc: var(--bad); background: var(--bad-w); } .li-ic.info { --cc: var(--info); background: var(--info-w); }
.c-material { --cc: var(--cat-material); } .c-furnitura { --cc: var(--cat-furnitura); } .c-sex { --cc: var(--cat-sex); } .c-yol { --cc: var(--cat-yol); }
.c-yuk { --cc: var(--cat-yuk); } .c-ishhaqi { --cc: var(--cat-ishhaqi); } .c-asbob { --cc: var(--cat-asbob); } .c-boshqa { --cc: var(--cat-boshqa); }
.grp { margin-top: 12px; }
.you { font: 600 11px var(--fb); color: var(--brand-text); background: var(--brand-weak); padding: 1px 6px; border-radius: 99px; }

/* ---------- kassa va hisobot ---------- */
.kcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.kcard { padding: 14px; text-align: left; display: flex; flex-direction: column; min-width: 0; transition: transform .12s; }
.kcard:active { transform: scale(.98); } .kcard.on { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }
.kc-h { display: flex; align-items: center; gap: 10px; min-width: 0; } .kc-h > div { min-width: 0; display: flex; flex-direction: column; }
.kc-h b { font: 700 14.5px var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kc-h small { font-size: 12px; color: var(--muted); }
.kc-l { font-size: 11px; color: var(--muted); margin-top: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kc-v small { font: 600 12px var(--fb); color: var(--muted); letter-spacing: 0; }
.kc-v { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-s { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--fm); } .kc-s span { display: inline-flex; align-items: center; gap: 3px; }
.chipb.x { gap: 4px; }
.ledger { margin-top: 4px; } .ledger .list { margin-bottom: 6px; }
.lg-d { display: flex; justify-content: space-between; padding: 14px 4px 7px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .lg-d .num { text-transform: none; letter-spacing: 0; }
.hero { padding: 18px; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.hero small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; } .hero b { font-size: 30px; font-weight: 600; line-height: 1.15; } .hero span { font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini { padding: 12px 14px; min-width: 0; } .mini small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; } .mini b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid2 + .card { margin-top: 10px; }
.bars .bar { margin-bottom: 14px; } .bars .bar:last-child { margin-bottom: 0; }
.bar-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .bar-t b { margin-left: auto; font-weight: 600; font-size: 13px; } .bar-t small { color: var(--muted); width: 38px; text-align: right; font-family: var(--fm); font-size: 12px; }
.cdot { width: 10px; height: 10px; border-radius: 3px; background: var(--cc); flex: none; display: inline-block; }
.track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; } .track i { display: block; height: 100%; border-radius: 99px; background: var(--cc); }
.tbl-w { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 11px 12px 8px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line-2); white-space: nowrap; } .tbl th:not(:first-child), .tbl td.num { text-align: right; }
.btn.exp { margin-top: 22px; }

/* ---------- menyu ---------- */
.prof { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 8px; } .prof > div { min-width: 0; display: flex; flex-direction: column; }
.prof b { font: 800 18px var(--fd); } .prof small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; margin-top: 10px; text-align: left; }
.subc .li-b b { font-size: 15px; } .subc .btn { background: var(--brand); color: var(--brand-ink); }
.subc.ok .li-ic { --cc: var(--ok); background: var(--ok-w); } .subc.warn .li-ic { --cc: var(--warn); background: var(--warn-w); } .subc.bad .li-ic { --cc: var(--bad); background: var(--bad-w); }
.sub-card { padding: 16px; display: flex; flex-direction: column; gap: 6px; } .sub-card .big { font: 800 22px var(--fd); }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 8px; font-size: 12px; color: var(--muted); } .foot .pill { font-weight: 600; }
.tgls { padding: 2px 14px; }
.tgl { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); cursor: pointer; position: relative; }
.tgls > .tgl:first-child { border-top: 0; } .tgl > span { flex: 1; min-width: 0; } .tgl b { display: block; font-size: 14.5px; font-weight: 600; } .tgl small { display: block; font-size: 12.5px; color: var(--muted); }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tgl > i { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; border: 1px solid var(--line); }
.tgl > i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.tgl input:checked + i { background: var(--ok); border-color: var(--ok); } .tgl input:checked + i::after { transform: translateX(18px); }
.tgl input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.tgl.col { flex-direction: column; align-items: stretch; cursor: default; }
.meter { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 12px; } .meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }
.legend { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); } .legend span { display: flex; align-items: center; gap: 8px; }
.card p { margin: 0 0 8px; } .card p:last-child { margin-bottom: 0; } .btns { display: flex; gap: 10px; margin-top: 14px; } .btns .btn { flex: 1; }

/* ---------- qatlamlar: sahifa ---------- */
.page { position: fixed; inset: 0; z-index: 50; max-width: var(--col); margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -10px 0 30px rgba(0, 0, 0, .12); will-change: transform; }
.page.in { transform: none; } .page.out { transform: translateX(105%); }
.ph { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 8px max(6px, env(safe-area-inset-left, 0px)); min-height: calc(60px + env(safe-area-inset-top, 0px)); flex: none; background: var(--bg); }
.pt { flex: 1; min-width: 0; margin: 0; font: 800 18px var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa { display: flex; gap: 2px; }
.pb { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-top: 4px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.pb > .card + .card, .pb > .list + .btn, .pb > .card + .btn { margin-top: 12px; }
.pb > .btn.lg { margin-top: 16px; }
.pf { display: flex; align-items: center; gap: 14px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); flex: none; }
.pf .btn.lg { flex: 1; width: auto; } .of-total { display: flex; flex-direction: column; flex: none; } .of-total small { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; } .of-total b { font-size: 17px; font-weight: 600; }
.irow { padding: 12px 12px 0; margin-bottom: 10px; }
.irow-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.irow-h b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-weak); color: var(--on-weak); display: grid; place-items: center; font: 800 12px var(--fd); }
.oform .sec:first-of-type { margin-top: 8px; }
.viewer { background: var(--surface-2); } .v-img img { width: 100%; border-radius: 14px; display: block; background: #fff; min-height: 120px; }
.v-doc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0 20px; text-align: center; word-break: break-all; } .v-doc .ic { width: 58px; height: 58px; color: var(--muted); stroke-width: 1.3; }
.f-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: 12px 2px; align-items: center; }

/* ---------- pastdan chiqadigan oyna ---------- */
.sw-wrap { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(8, 10, 8, .5); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--col); margin: 0 auto; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--sh-lg); transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sw-wrap.in .scrim { opacity: 1; } .sw-wrap.in .sheet { transform: none; }
.sw-wrap.out .scrim { opacity: 0; } .sw-wrap.out .sheet { transform: translateY(102%); }
.grab { width: 38px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; flex: none; }
.sh-h { display: flex; align-items: center; gap: 8px; padding: 6px max(10px, env(safe-area-inset-right, 0px)) 4px max(20px, env(safe-area-inset-left, 0px)); flex: none; }
.sh-h h3 { flex: 1; margin: 0; font: 800 18px var(--fd); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-b { overflow-y: auto; padding: 6px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); overscroll-behavior: contain; }
.sw-wrap.dlg .sheet { bottom: auto; top: 50%; left: 16px; right: 16px; max-width: 400px; border-radius: 20px; transform: translateY(-46%) scale(.96); opacity: 0; transition: transform .22s, opacity .22s; padding-bottom: 0; }
.sw-wrap.dlg.in .sheet { transform: translateY(-50%); opacity: 1; } .sw-wrap.dlg.out .sheet { opacity: 0; transform: translateY(-46%) scale(.96); }
.sw-wrap.dlg .grab { display: none; } .dlg-t { margin: 0 0 6px; color: var(--muted); }
.amt { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 16px; }
.amt input { border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: none; font: 600 34px/1.1 var(--fm); text-align: center; width: 100%; max-width: 280px; height: 56px; padding: 0 4px; letter-spacing: -.03em; }
.amt input:focus { box-shadow: none; border-bottom-color: var(--brand); } .amt span { color: var(--muted); font-weight: 600; }
.kinds { margin-bottom: 8px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 9px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15; min-width: 0; }
.cat .ic { color: var(--cc); } .cat span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cat.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, var(--surface)); }
.menu .mi { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 4px; font-size: 15px; font-weight: 600; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.menu .mi:first-child { border-top: 0; } .menu .mi .ic { color: var(--muted); } .menu .mi[data-danger] { color: var(--bad); } .menu .mi[data-danger] .ic { color: var(--bad); }
.steps .step { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 2px; font-size: 15px; position: relative; }
.steps .step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 42px; height: 12px; width: 2px; background: var(--line); }
.steps .step.done:not(:last-child)::after { background: var(--ok); }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 700 12px var(--fm); color: var(--muted); flex: none; background: var(--surface); }
.steps .dot .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.steps .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; } .steps .cur .dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .steps .cur { font-weight: 700; } .steps .step:not(.done):not(.cur) { color: var(--muted); }

/* ---------- imo-ishora ko'rsatkichi va xabar ---------- */
.edge { position: fixed; top: 50%; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.5); }
.edge.on { opacity: var(--p, 0); } .edge.L { left: 8px; transform: translateY(-50%) translateX(calc(-48px + var(--p, 0) * 48px)) scale(calc(.55 + var(--p, 0) * .45)); }
.edge.R { right: 8px; transform: translateY(-50%) translateX(calc(48px - var(--p, 0) * 48px)) scale(calc(.55 + var(--p, 0) * .45)); }
#toast { position: fixed; z-index: 100; left: 50%; bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); width: max-content; padding: 11px 16px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.ok .ic { color: var(--ok-w); } #toast.bad .ic { color: var(--bad-w); }
#toast .ic { width: 18px; height: 18px; stroke-width: 2.4; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .two { grid-template-columns: 1fr; } .tile b { font-size: 16px; } .files { grid-template-columns: repeat(3, 1fr); } .cats { grid-template-columns: repeat(4, 1fr); } .qrow { grid-template-columns: 1fr 1fr; } .qrow .btn:first-child { grid-column: 1 / -1; } }
@media (min-width: 700px) { body { background: var(--bg-out); } #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } .auth { background: var(--bg); max-width: var(--col); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); } .kcards { grid-template-columns: repeat(3, 1fr); } }
