:root { --ink:#1A1A1A; --text:#2A2220; --muted:#6B5F5B; --line:#E6E6E6; --nude:#F5F2EE; --accent:#8C6E58; --ok:#24533A; --okbg:#E4EFE8; --warn:#7A4B00; --warnbg:#FFF1D6; --bad:#B3261E; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Jost', system-ui, sans-serif; color: var(--text); background: #FAFAFA; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--accent); }

.wm { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wm span { font-size: 26px; font-weight: 300; letter-spacing: .3em; padding-left: .3em; }
.wm small { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10px; letter-spacing: .5em; color: var(--muted); }
.wm small i:first-child { margin-right: .5em; }
.wm small i { width: 16px; height: 1px; background: var(--accent); display: block; }
.wm.small span { font-size: 18px; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #FFF; border: 1px solid var(--line); padding: 32px 24px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-card .wm { margin-bottom: 12px; }

.top { position: sticky; top: 0; z-index: 10; background: #FFF; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: 24px; font-weight: 500; margin: 0; }
h2 { font-size: 18px; font-weight: 500; margin: 0; }
p { margin: 0; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn { min-height: 44px; padding: 0 18px; border: 0; background: var(--ink); color: #FFF; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.light { background: #FFF; color: var(--ink); border: 1px solid var(--ink); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; min-height: 44px; }
label { font-size: 14px; font-weight: 500; }
input, select, textarea { border: 1px solid #CFCFCF; padding: 10px 12px; background: #FFF; min-height: 44px; width: 100%; }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.err { color: var(--bad); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #FFF; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 28px; font-weight: 500; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }
.stat em { font-style: normal; font-size: 12px; color: var(--accent); }
.panel { background: #FFF; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }

table { width: 100%; border-collapse: collapse; background: #FFF; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

.pill { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 600; background: var(--nude); color: var(--text); white-space: nowrap; }
.pill.new { background: var(--warnbg); color: var(--warn); }
.pill.done { background: var(--okbg); color: var(--ok); }
.pill.bad { background: #FBE3E1; color: var(--bad); }

.order { background: #FFF; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.order header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.order .items { font-size: 14px; color: var(--muted); }
.order .controls { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; align-items: end; }
@media (max-width: 600px) { .order .controls { grid-template-columns: 1fr; } }

.toast { pointer-events: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #FFF; padding: 12px 18px; font-size: 14px; z-index: 50; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { min-height: 36px; padding: 0 12px; border: 1px solid #DDD; background: #FFF; cursor: pointer; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.swatch { width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }

/* products */
.btn.danger { background: var(--bad); color: #FFF; }
details.panel summary { cursor: pointer; }
.ptools { display: grid; grid-template-columns: 1fr 180px 180px; gap: 8px; }
@media (max-width: 700px) { .ptools { grid-template-columns: 1fr 1fr; } .ptools #pq { grid-column: 1 / -1; } }
.bulkbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #FFF; padding: 10px 12px; }
.bulkbar .btn.light { background: transparent; color: #FFF; border-color: rgba(255,255,255,.5); }
.bulkbar .link { color: #FFF; min-height: 36px; }
.ptable td { vertical-align: middle; }
.ptable tr.sel td { background: #FBF7F3; }
th.chk, td.chk { width: 36px; }
.chk input { width: 18px; height: 18px; min-height: 0; cursor: pointer; }
.pthumb { width: 64px; position: relative; }
.pthumb img { width: 56px; height: 56px; object-fit: cover; background: #F3F3F3; display: block; }
.pthumb em { position: absolute; right: 8px; bottom: 6px; font-style: normal; font-size: 11px; background: rgba(0,0,0,.65); color: #FFF; padding: 0 5px; }
.swatch.big { width: 56px; height: 56px; margin: 0; }
.plink { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; text-align: left; color: var(--ink); }
.plink:hover { text-decoration: underline; }

.overlay { position: fixed; inset: 0; background: rgba(20,16,14,.45); z-index: 40; display: flex; justify-content: flex-end; }
.sheet { background: #FAFAFA; width: min(860px, 100%); height: 100%; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: #FFF; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sheet-body section { background: #FFF; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet-body section.grid2 { display: grid; }
.sheet-body h3 { margin: 0; font-size: 16px; font-weight: 600; }
textarea.prose { font-family: inherit; font-size: 15px; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gimg { position: relative; margin: 0; border: 1px solid var(--line); background: #F3F3F3; aspect-ratio: 1; cursor: grab; }
.gimg.main { outline: 2px solid var(--ink); outline-offset: -2px; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gimg .tag { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 600; background: var(--ink); color: #FFF; padding: 2px 6px; }
.gimg .tag.alt { background: var(--accent); }
.gimg .tag.ext { left: auto; right: 6px; background: #FFF; color: var(--muted); border: 1px solid var(--line); }
.gbtns { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; justify-content: center; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.gbtns button { width: 30px; height: 30px; border: 0; background: #FFF; cursor: pointer; font-size: 14px; }
.gbtns button:hover { background: var(--ink); color: #FFF; }
.upl { cursor: pointer; }

.vrow { display: grid; grid-template-columns: 110px 110px 100px 1fr 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.vrow input, .vrow select { min-height: 40px; }
.vhead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.vimg { display: flex; gap: 6px; align-items: center; }
.vimg img, .vimg i { width: 40px; height: 40px; object-fit: cover; flex: none; background: #F3F3F3; border: 1px solid var(--line); display: block; }
@media (max-width: 640px) {
  .vrow { grid-template-columns: 1fr 1fr 90px 36px; }
  .vrow .vimg { grid-column: 1 / 4; grid-row: 2; }
  .vhead { display: none; }
}
tr.click { cursor: pointer; }
tr.click:hover td { background: #FBF7F3; }
textarea.prose { font-family: inherit; font-size: 15px; }

/* QR codes */
.qrthumb { width: 56px; }
.qrthumb canvas { display: block; }
.qr-edit { display: flex !important; flex-direction: row !important; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.qr-preview { width: 260px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.qr-checker { width: 240px; height: 240px; display: grid; place-items: center; background-color: #FFF; background-image: linear-gradient(45deg, #EEE 25%, transparent 25%), linear-gradient(-45deg, #EEE 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #EEE 75%), linear-gradient(-45deg, transparent 75%, #EEE 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; border: 1px solid var(--line); }

/* website editor */
main.wide { max-width: none; padding: 12px 16px 16px; }
.web { display: flex; flex-direction: column; gap: 12px; }
.web-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.web-grid { display: grid; grid-template-columns: 400px 1fr; gap: 16px; align-items: start; }
.web-side { background: #FFF; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 150px); overflow-y: auto; position: sticky; top: 76px; }
.web-side h2 { font-size: 17px; margin: 0; }
.web-preview { background: #EDEBE9; border: 1px solid var(--line); height: calc(100vh - 150px); display: flex; justify-content: center; overflow: hidden; }
.web-preview iframe { border: 0; background: #FFF; height: 100%; width: 100%; }
.web-preview.mobile iframe { width: 390px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.12); }
@media (max-width: 900px) { .web-grid { grid-template-columns: 1fr; } .web-side { position: static; max-height: none; } .web-preview { height: 70vh; } }
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sec-list li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #FFF; padding: 4px 6px; }
.sec-list li.off { opacity: .5; }
.sec-list .grip { cursor: grab; color: var(--muted); padding: 0 2px; }
.sec-open { flex: 1; display: flex; gap: 10px; align-items: center; background: none; border: 0; text-align: left; padding: 6px 0; cursor: pointer; min-width: 0; }
.sec-open strong { font-weight: 600; }
.sec-ico { width: 30px; height: 30px; display: grid; place-items: center; background: var(--nude); flex: none; }
.sec-actions { display: flex; gap: 2px; }
.sec-actions button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 15px; }
.sec-actions button:hover:not(:disabled) { background: var(--nude); }
.sec-actions button:disabled { opacity: .25; cursor: default; }
.sub-edit { display: flex; flex-direction: column; gap: 10px; }
.item-card { border: 1px solid var(--line); padding: 10px; }
.web-side .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slide-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.slide-tabs button { border: 1px solid var(--line); background: #FFF; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.slide-tabs button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.img-pick { display: flex; gap: 10px; align-items: flex-start; }
.img-prev { width: 90px; height: 90px; flex: none; background: #F3F3F3 center / cover; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; text-align: center; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.link-pick { display: flex; flex-direction: column; gap: 6px; }
.pick-res { display: flex; flex-direction: column; }
.pick-res button { display: flex; gap: 8px; align-items: center; background: #FFF; border: 0; border-bottom: 1px solid var(--line); padding: 6px; text-align: left; cursor: pointer; }
.pick-res button:hover { background: var(--nude); }
.pick-res img { width: 32px; height: 32px; object-fit: cover; }
.btn.pulse { box-shadow: 0 0 0 3px rgba(140,110,88,.35); }
.share-pop { position: absolute; z-index: 50; width: min(380px, calc(100vw - 20px)); background: #FFF; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.share-pop textarea { font-size: 14px; }
.web-side > .link { align-self: flex-start; }
.oi { display: grid; grid-template-columns: 1fr 110px 64px 84px 30px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.oi input, .oi select { min-height: 36px; }
.oi-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-bottom: 0; }
@media (max-width: 560px) { .oi { grid-template-columns: 1fr 1fr 60px 30px; } .oi > span:first-child { grid-column: 1 / -1; } .oi-head { display: none; } }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 14px; }
.activity li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: center; }
.activity li:last-child { border-bottom: 0; }
.act-prod { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.act-prod img { width: 28px; height: 28px; object-fit: cover; background: #F3F3F3; }
@media (max-width: 560px) { .activity li { grid-template-columns: 1fr; gap: 2px; } }
.activity li > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* free samples → sales */
.conv-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.conv-big { background: #F6F1EC; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.conv-big b { font-size: 30px; font-weight: 600; color: #6D5442; line-height: 1.1; }
.conv-big span { font-size: 13px; color: #6b5d52; }
.conv-verdict { font-weight: 500; margin: 8px 0 12px; }
.conv-funnel { display: grid; gap: 10px; margin-bottom: 8px; }
.cf-row { display: grid; grid-template-columns: 190px 1fr 90px; gap: 12px; align-items: center; }
.cf-l { font-size: 14px; }
.cf-bar { background: #f2eeea; height: 22px; border-radius: 4px; overflow: hidden; display: block; }
.cf-bar i { display: block; height: 100%; border-radius: 4px; }
.cf-n { font-size: 13px; color: #6b5d52; text-align: right; }
.conv-chart { width: 100%; height: auto; max-width: 760px; display: block; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr 70px; } .cf-bar { grid-column: 1 / -1; grid-row: 2; } }

/* Free gift editor */
.gmode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.gm { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid #E4DDD6; border-radius: 12px; cursor: pointer; }
.gm.on { border-color: #2B2226; background: #FAF7F4; }
.gm span { display: flex; flex-direction: column; gap: 2px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: #F3EDE6; font-size: 13px; }
.gchip small { color: #8a8079; }
.gchip button { border: 0; background: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; }
.gtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.gpreview { display: flex; flex-wrap: wrap; gap: 8px; }
.gprev { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid #EEE8E2; border-radius: 10px; font-size: 12.5px; background: #fff; }
.gprev img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #F6F2EE; }
.gprev span { display: flex; flex-direction: column; }
.gprev small { color: #8a8079; }
@media (max-width: 700px) { .gmode { grid-template-columns: 1fr; } }
.gtypes .check, .gmode .gm { font-size: 14px; }
.gtypes .check { display: flex; align-items: center; gap: 8px; }
.gtypes input[type=checkbox], .gmode input[type=radio] { width: 18px; height: 18px; min-height: 0; flex: none; margin: 2px 0 0; padding: 0; accent-color: #2B2226; }

/* =====================================================================
   2026 refresh — green theme, sidebar on desktop, drawer + bottom bar on phone
   ===================================================================== */
:root {
  --g900: #0F271D; --g800: #163A2B; --g700: #1F4D3A; --g600: #2B6A4F; --g500: #3C8A66; --g300: #9FD8B9; --g100: #E2EFE7; --g50: #F1F7F3;
  --bg: #F3F5F2; --ink: #14201A; --text: #24302A; --muted: #5F6C65; --line: #E2E8E3; --accent: #2B6A4F;
  --ok: #1F6B45; --okbg: #E2F3E9; --warn: #8A5300; --warnbg: #FFF1D9; --bad: #B3261E;
  --r: 12px; --shadow: 0 1px 2px rgba(15,39,29,.05), 0 4px 16px -8px rgba(15,39,29,.10);
}
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--g600); }
:focus-visible { outline: 2px solid var(--g500); outline-offset: 2px; }
h1 { font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; color: var(--ink); }

/* brand */
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--g700); color: #fff; font-weight: 300; font-size: 22px; letter-spacing: 0; }
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }

/* login */
.login { background: radial-gradient(120% 90% at 0% 0%, #2B6A4F 0%, #1F4D3A 40%, #0F271D 100%); }
.login-card { border: 0; border-radius: 20px; padding: 36px 28px 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); align-items: stretch; }
.login-card .brand-mark { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; align-self: center; }
.login-card .wm small i { background: var(--g500); }

/* shell */
.shell:not([hidden]) { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px 14px;
  background: linear-gradient(180deg, var(--g800) 0%, var(--g900) 100%); color: #DCEBE2; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 6px; }
.side-brand .brand-mark { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.side-brand strong { display: block; color: #fff; font-weight: 500; letter-spacing: .24em; font-size: 15px; text-transform: uppercase; }
.side-brand small { display: block; color: var(--g300); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-top: 2px; }
.side-close { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.tabs { display: flex; flex-direction: column; gap: 14px; overflow: visible; flex: 1; }
.ngroup { display: flex; flex-direction: column; gap: 2px; }
.nlabel { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(220,235,226,.5); padding: 0 12px 4px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 0; color: rgba(236,245,239,.78); font-weight: 400; font-size: 14.5px; text-decoration: none; transition: background .15s, color .15s; position: relative; }
.tabs a:hover { background: rgba(255,255,255,.07); color: #fff; }
.tabs a[aria-current="page"] { background: rgba(159,216,185,.16); color: #fff; font-weight: 500; }
.tabs a[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g300); }
.ni { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; position: relative; }
.ni svg { width: 20px; height: 20px; }
.nt { flex: 1; }
.nbadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--g300); color: var(--g900); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.side-foot { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.side-act { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: rgba(236,245,239,.72); font-size: 14px; text-decoration: underline transparent; cursor: pointer; text-align: left; min-height: 0; }
.side-act:hover { background: rgba(255,255,255,.07); color: #fff; }
#installApp { background: rgba(159,216,185,.14); color: #fff; }
.side-ver { font-size: 11px; color: rgba(220,235,226,.4); padding: 6px 12px 0; }
.content { min-width: 0; display: flex; flex-direction: column; }
.top { display: none; }
main { max-width: 1180px; width: 100%; margin: 0 auto; padding: 28px 32px 80px; gap: 22px; }
.bottom { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(10,25,18,.45); z-index: 55; }

/* components */
.btn { border-radius: 10px; background: var(--g700); transition: background .15s, transform .1s; }
.btn:hover { background: var(--g800); }
.btn:active { transform: scale(.98); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid #D3DCD6; }
.btn.light:hover { background: var(--g50); border-color: var(--g500); }
.btn.danger { background: var(--bad); }
.btn.pulse { box-shadow: 0 0 0 3px rgba(60,138,102,.35); }
.link { color: var(--g600); }
input, select, textarea { border: 1px solid #D3DCD6; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g500); box-shadow: 0 0 0 3px rgba(60,138,102,.18); }
input[type=checkbox], input[type=radio] { accent-color: var(--g700); }
.panel, .order, .table-wrap, .sheet-body section, .web-side, .item-card, .sec-list li, .login-card { border-radius: var(--r); }
.panel, .order { border-color: var(--line); box-shadow: var(--shadow); padding: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.stat { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g500), var(--g300)); opacity: .9; }
.stat b { font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.stat em { color: var(--g600); }
.table-wrap { background: #fff; box-shadow: var(--shadow); }
th { background: #F7F9F7; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tr.click:hover td, .ptable tr.sel td { background: var(--g50); }
.pill { border-radius: 99px; padding: 3px 10px; background: #EEF2EF; }
.pill.done { background: var(--okbg); color: var(--ok); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.filters button { border: 0; border-radius: 9px; background: transparent; color: var(--muted); min-height: 34px; }
.filters button:hover { color: var(--ink); background: var(--g50); }
.filters button[aria-pressed="true"] { background: var(--g700); color: #fff; }
.toast { border-radius: 12px; background: var(--g900); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.bulkbar { top: 12px; border-radius: 12px; background: var(--g800); }
.sheet { background: var(--bg); }
.sheet-head { border-bottom-color: var(--line); }
.overlay { background: rgba(10,25,18,.45); }
.web-side { top: 16px; }
.slide-tabs button, .gbtns button, .sec-ico { border-radius: 8px; }
.slide-tabs button[aria-pressed="true"] { background: var(--g700); border-color: var(--g700); }
.gimg { border-radius: 10px; overflow: hidden; }
.gimg.main { outline-color: var(--g700); }
.gimg .tag { background: var(--g700); border-radius: 6px; }
.conv-big { background: var(--g50); border-radius: 12px; }
.conv-big b { color: var(--g700); }
.conv-big span, .cf-n { color: var(--muted); }
.cf-bar { background: #EAF0EC; }
.gm { border-color: #DCE4DF; }
.gm.on { border-color: var(--g700); background: var(--g50); }
.gchip { background: var(--g100); }
.gtypes input[type=checkbox], .gmode input[type=radio] { accent-color: var(--g700); }
.ios-tip { position: fixed; inset: 0; z-index: 80; background: rgba(10,25,18,.5); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.ios-card { background: #fff; border-radius: 18px; padding: 20px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 10px; }

/* phone & tablet */
@media (max-width: 980px) {
  .shell:not([hidden]) { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; z-index: 60; transform: translateX(-102%); transition: transform .25s cubic-bezier(.3, .7, .2, 1); padding-top: calc(18px + env(safe-area-inset-top)); box-shadow: 20px 0 40px -20px rgba(0,0,0,.4); }
  body.nav-open .side { transform: none; }
  body.nav-open { overflow: hidden; }
  .side-close { display: grid; place-items: center; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
  .menu-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--g50); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
  .menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--g700); }
  .top-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
  .top-title strong { font-weight: 500; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-shop { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--g700); background: var(--g50); }
  main { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); gap: 16px; }
  main > .row:first-child h1, main > h1:first-child { font-size: 22px; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom a, .bottom button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: none; cursor: pointer; border-radius: 12px; font-family: inherit; }
  .bottom .ni { width: 44px; height: 28px; border-radius: 99px; transition: background .15s; }
  .bottom .ni svg { width: 22px; height: 22px; }
  .bottom [aria-current="page"] { color: var(--g700); font-weight: 600; }
  .bottom [aria-current="page"] .ni { background: var(--g100); }
  .bottom .nbadge { position: absolute; top: -4px; right: 0; min-width: 18px; height: 18px; font-size: 10px; background: var(--bad); color: #fff; }
  .ndot { position: absolute; top: 0; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bulkbar { top: calc(66px + env(safe-area-inset-top)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 24px; }
  .panel, .order { padding: 16px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
.filters { align-self: flex-start; width: max-content; max-width: 100%; }
.row .filters { align-self: auto; }
