:root {
  --brand: #0b8457;
  --brand-deep: #075e3e;
  --brand-light: #2fbf86;
  --brand-soft: #d3f3e3;
  --brand-ink: #00391f;
  --bg: #f6f8f7;
  --card: #ffffff;
  --surface: #eef2f0;
  --surface-2: #e6ece9;
  --text: #17201c;
  --muted: #5b6863;
  --line: #e1e7e4;
  --on-brand: #ffffff;
  --danger: #c0392b;
  --danger-soft: #fbe3e0;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 6px 24px rgba(16, 40, 30, .06);
  --grad: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, var(--brand-light));
  --chart: #0b8457;
  --gutter: clamp(16px, 3vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2fbf86;
    --brand-deep: #0f6b48;
    --brand-light: #4fd6a0;
    --brand-soft: #0f3d2b;
    --brand-ink: #b7f0d2;
    --bg: #0e1311;
    --card: #151c19;
    --surface: #19211d;
    --surface-2: #212a26;
    --text: #e7eeea;
    --muted: #9aa8a2;
    --line: #26302c;
    --on-brand: #00210f;
    --danger-soft: #3a1d1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --grad: linear-gradient(135deg, #0a4f35, #0b8457 55%, #2fbf86);
    --chart: #22a874;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.01em; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); white-space: nowrap; }
.logo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent);
}
.logo svg { width: 60%; height: 60%; }
.logo-lg { width: 88px; height: 88px; border-radius: 26px; }
.search { flex: 1; max-width: 560px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 11px 18px 11px 44px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.search input:focus { outline: none; border-color: var(--brand); background: var(--card); }
.topnav { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.h1 { font-size: 28px; font-weight: 800; margin: 4px 0 18px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { font-size: 20px; font-weight: 700; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650; font-size: 15px;
  cursor: pointer; text-align: center; white-space: nowrap; transition: transform .08s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 18px; height: 18px; }
.btn-big { padding: 14px 28px; font-size: 16px; border-radius: 16px; }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.btn-outline:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn-tonal { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.btn-white { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn-goter { background: #1d3f9e; border-color: #1d3f9e; color: #fff; grid-column: 1 / -1; }

/* ---------- Icons ---------- */
.icon, .icon-lg, .icon-xl, .icon-sm, .icon-md { object-fit: cover; border-radius: 24%; background: #fff; flex-shrink: 0; }
.icon { width: 100%; aspect-ratio: 1; }
.icon-sm { width: 52px; height: 52px; }
.icon-md { width: 64px; height: 64px; }
.icon-lg { width: 96px; height: 96px; box-shadow: var(--shadow); }
.icon-xl { width: 112px; height: 112px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.icon-fallback { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); font-size: 30px; }
.icon-sm.icon-fallback { font-size: 22px; }
.icon-lg.icon-fallback, .icon-xl.icon-fallback { font-size: 44px; }

/* ---------- Hero / featured ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
  padding: 36px; border-radius: 28px; background: var(--grad); color: #fff;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 25%, transparent);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.hero-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 16px 0 8px; font-weight: 800; }
.hero p { margin: 0 0 22px; opacity: .9; font-size: 17px; max-width: 46ch; }
.hero-app { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-shots { display: flex; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.hero-shots img { height: 280px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.25); object-fit: cover; }
.hero-shots img:nth-child(2) { transform: translateY(24px); }

/* store-app promo */
.promo {
  display: flex; align-items: center; gap: 18px; margin-top: 18px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink);
}
.promo b { display: block; font-size: 16px; }
.promo span { font-size: 14px; opacity: .85; }
.promo .btn { margin-left: auto; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin: 26px 0 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 8px 16px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; color: var(--text); white-space: nowrap; font-size: 14px; font-weight: 550; transition: background .15s; }
.chip:hover { background: var(--surface); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- Tiles (horizontal) ---------- */
.tiles { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tile { flex: 0 0 112px; scroll-snap-align: start; color: var(--text); }
.tile .icon { box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover .icon { transform: translateY(-3px); }
.tile-name { font-weight: 600; font-size: 14px; margin-top: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { color: var(--muted); font-size: 12px; }

/* ---------- App list cards ---------- */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.row-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); color: var(--text);
  transition: box-shadow .15s, transform .15s;
}
.row-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- App page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.detail-head { display: flex; gap: 22px; align-items: center; }
.app-title { font-size: 32px; font-weight: 800; margin: 0; line-height: 1.15; }
.dev { color: var(--brand); font-weight: 650; }
.tagline { color: var(--muted); margin-top: 14px; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stats > div { text-align: center; padding: 14px 6px; display: flex; flex-direction: column; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.stats span { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 12px; }
.actions .btn { flex: 1; max-width: 300px; }
.shots { display: flex; gap: 14px; overflow-x: auto; margin: 28px 0 4px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { height: 380px; border-radius: 18px; flex-shrink: 0; box-shadow: var(--shadow); scroll-snap-align: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; }
.card h2 { font-size: 18px; margin: 0 0 10px; }
.desc { white-space: pre-wrap; }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 550; word-break: break-word; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.side .card { margin: 0; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 112px; height: 112px; border-radius: 14px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.qr-center { justify-content: center; margin: 16px 0; }
.qr-center img { width: 210px; height: 210px; }
.badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Install / store pages ---------- */
.install { background: var(--bg); }
.install-wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 48px; }
.install-card { background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.install-top { background: var(--grad); padding: 34px 20px 70px; color: #fff; }
.install-top .hero-label { margin-bottom: 4px; }
.install-body { padding: 0 22px 26px; margin-top: -56px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.install-body .app-title { font-size: 26px; margin-top: 6px; }
.install-body .btn-big { margin-top: 10px; }
.steps { list-style: none; padding: 0; margin: 14px 0 4px; text-align: left; width: 100%; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.note { font-size: 13px; color: var(--muted); text-align: left; width: 100%; background: var(--surface); padding: 12px 14px; border-radius: 14px; }
.features { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.features li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.features li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* ---------- Notices ---------- */
.notice { padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 15px; }
.notice.ok { background: var(--brand-soft); color: var(--brand-ink); }
.notice.warn { background: var(--danger-soft); color: var(--danger); }

/* ---------- Forms / admin ---------- */
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; }
.form input:not([type=file]), .form textarea {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
.form input:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.form input[type=file] { font-weight: 400; font-size: 14px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.progress { position: relative; height: 30px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.progress .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.store-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 18px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); }
.store-card a { color: inherit; text-decoration: underline; }
.store-card input[type=file] { max-width: 230px; font-size: 13px; }
.table { display: grid; gap: 12px; }
.trow { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tmain { flex: 1; min-width: 0; display: grid; gap: 6px; }
.tact { display: flex; gap: 8px; }
.login-card { max-width: 400px; margin: 40px auto; text-align: center; }
.login-card .logo { margin: 0 auto 14px; }

/* ---------- Developer panel layout ---------- */
.dev-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.dev-side { position: sticky; top: 84px; display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.dev-me { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dev-me .avatar { width: 44px; height: 44px; font-size: 18px; }
.dev-me-text { display: grid; min-width: 0; }
.dev-me-text b, .dev-me-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-nav { display: grid; gap: 2px; }
.dnav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 15px; }
.dnav svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.dnav em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.dnav:hover { background: var(--surface); }
.dnav.on { background: var(--brand-soft); color: var(--brand-ink); }
.dnav.on svg { color: var(--brand-ink); }
.dev-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.dev-main > .card, .dev-main > .kpis, .dev-main > .h1 { margin: 0; }
.dev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dev-two > .card, .dev-two > .form { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.kpi .trend { margin-top: 4px; }
.kpi { gap: 2px; }
.trend { font-size: 12px; font-weight: 600; }
.trend.up { color: var(--brand); }
.trend.down { color: var(--danger); }
.trend.flat { color: var(--muted); font-weight: 500; }
.icon-xs { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.icon-xs.icon-fallback { font-size: 13px; }

/* chart */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.ch-axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.ch-empty { fill: var(--muted); font-size: 13px; font-family: inherit; }
.ch-bar { fill: var(--chart, #0b8457); }
.ch-hit { fill: transparent; cursor: default; }
.ch-col:hover .ch-hit { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.ch-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); }
.ch-table { margin-top: 8px; font-size: 13px; }
.ch-table summary { cursor: pointer; color: var(--muted); }
.ch-table table { margin-top: 8px; border-collapse: collapse; min-width: 220px; }
.ch-table td, .ch-table th { padding: 4px 12px 4px 0; text-align: left; border-bottom: 1px solid var(--line); }

/* app cards + tables */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.app-card { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: box-shadow .15s, transform .15s; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.app-card-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.app-card-status { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.app-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.app-card-stats div { display: grid; }
.app-card-stats b { font-size: 20px; }
.app-card-stats span { color: var(--muted); font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-app { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.attn { display: grid; gap: 8px; }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface); color: var(--text); }
.attn-row .row-main { display: grid; gap: 4px; }
.dev-app-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dev-app-head .icon-lg { width: 80px; height: 80px; }
.dev-app-head .app-title { font-size: 26px; }
.dev-app-head .row-main { min-width: 220px; }
.dev-app-head .row-main .muted { overflow-wrap: anywhere; }
.dev-app-head > .row { margin-left: auto; }
.notes { display: grid; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--card); }
.onboard { text-align: center; padding: 34px 24px; }
.onboard .logo { margin: 0 auto 10px; }
.onboard .steps { max-width: 520px; margin: 16px auto 20px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.danger-zone h2 { color: var(--danger); }
@media (max-width: 900px) {
  .dev-layout { grid-template-columns: 1fr; gap: 16px; }
  .dev-side { position: static; grid-template-columns: 1fr auto; align-items: center; }
  .dev-side .btn-block { width: auto; }
  .dev-nav { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .dnav { justify-content: center; padding: 9px 6px; font-size: 14px; }
  .dnav em { display: none; }
  .dev-logout { display: none; }
  .dev-two { grid-template-columns: 1fr; }
  .dev-app-head > .row { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 600px) { .dnav svg { display: none; } .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; } }

/* ---------- Developer app shell (full width, full-height sidebar) ---------- */
.dev-body .foot { display: none; }
.dev-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 61px); }
.dev-side {
  position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 16px; background: var(--card); border: 0; border-right: 1px solid var(--line); border-radius: 0;
}
.dev-logout { margin-top: auto; }
.dnav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.dev-main { padding: 26px var(--gutter) 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ov-main, .ov-side { display: grid; gap: 18px; min-width: 0; align-content: start; }
.ov-main > .card, .ov-side > .card { margin: 0; }
.kpi.kpi-i { flex-direction: row; align-items: center; gap: 14px; text-align: left; }
.kpi-i > div { display: flex; flex-direction: column; min-width: 0; }
.kpi-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.kpi-ico svg { width: 22px; height: 22px; }
.kpi-alert .kpi-ico { background: #ffe8a8; color: #6b4a00; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.progress-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.checklist li.ok { color: var(--muted); text-decoration: line-through; }
.chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.checklist li.ok .chk { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; }
.activity li { display: flex; gap: 12px; align-items: flex-start; }
.adot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--muted); }
.a-live { background: var(--brand); }
.a-submit { background: #d9a400; }
.a-rejected { background: var(--danger); }
.a-new { background: #4a7bd0; }
.tip-card { background: var(--brand-soft); border-color: transparent; }
.tip-card h2 { color: var(--brand-ink); font-size: 16px; }
@media (max-width: 1200px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .dev-layout { grid-template-columns: 1fr; min-height: 0; }
  .dev-side { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px var(--gutter); }
  .dnav-label, .dev-nav a[target] { display: none; }
  .dev-main { padding-top: 18px; }
  .dev-body .foot { display: block; }
}

/* ---------- Panels (developer + admin) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.kpi b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi-alert { background: #fff4dc; border-color: #f2d48a; color: #6b4a00; }
.kpi-alert span { color: #6b4a00; }
.status { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-live { background: var(--brand-soft); color: var(--brand-ink); }
.st-pending { background: #fff1cc; color: #6b4a00; }
.st-rejected { background: var(--danger-soft); color: var(--danger); }
.note-line { display: block; font-size: 13px; padding: 7px 10px; border-radius: 10px; }
.note-line.info { background: #fff6e0; color: #6b4a00; }
.note-line.bad { background: var(--danger-soft); color: var(--danger); }
.review { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid #f2d48a; border-radius: var(--radius); }
.review-head { display: flex; gap: 14px; align-items: center; }
.review-desc { color: var(--muted); }
.reject-form { flex: 1; min-width: 260px; }
.reject-form input { flex: 1; min-width: 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; max-width: 1100px; }
.auth-pitch { background: var(--grad); color: #fff; border-radius: 28px; padding: 34px; }
.auth-pitch h1 { font-size: 34px; line-height: 1.15; margin: 16px 0 18px; font-weight: 800; }
.auth-pitch .features li::before { background: rgba(255,255,255,.2); color: #fff; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.card.empty { padding: 40px 20px; }
.card.empty h2 { color: var(--text); }
@media (prefers-color-scheme: dark) {
  .kpi-alert, .note-line.info, .st-pending { background: #3a2f12; color: #f3d38a; border-color: #5a4718; }
  .kpi-alert span { color: #f3d38a; }
  .review { border-color: #5a4718; }
}
@media (max-width: 800px) {
  .auth { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .hide-sm { display: none; } .auth-pitch h1 { font-size: 26px; } }

.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.empty .logo { margin: 0 auto 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; z-index: 20; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .hero-shots { justify-content: flex-start; }
  .hero-shots img { height: 200px; }
  .hero-shots img:nth-child(n+2) { display: none; }
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .h1 { font-size: 24px; }
  .hero { padding: 22px; border-radius: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-shots { display: none; }
  .promo { flex-wrap: wrap; }
  .promo .btn { margin-left: 0; width: 100%; }
  .list { grid-template-columns: 1fr; }
  .detail-head { gap: 16px; }
  .icon-lg { width: 80px; height: 80px; }
  .app-title { font-size: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .actions .btn { max-width: none; }
  .shots img { height: 280px; }
  .two { grid-template-columns: 1fr; }
  .trow { flex-wrap: wrap; }
  .tact { width: 100%; }
  .form { padding: 18px; }
}
@media (max-width: 600px) { .kpi-ico { display: none; } .page-head .row .btn { flex: 1; } }

/* ---------- App form (publish / edit) ---------- */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 650; font-size: 14px; }
.seg a svg { width: 18px; height: 18px; }
.seg a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.app-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.form-main { display: grid; gap: 18px; min-width: 0; }
.form-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.form-main .card, .form-side .card { margin: 0; }
.fs { display: grid; gap: 16px; }
.fs label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; }
.fs input:not([type=file]), .fs textarea {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 400; width: 100%; transition: border-color .15s, background .15s;
}
.fs input:focus, .fs textarea:focus { outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.fs input[readonly] { color: var(--muted); }
.fs textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.fs-head { display: flex; gap: 14px; align-items: flex-start; }
.fs-head h2 { margin: 0; font-size: 18px; }
.fs-head p { margin: 2px 0 0; }
.fs-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.req { color: var(--danger); }
.hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.count { float: right; font-weight: 500; font-size: 12px; color: var(--muted); }
label > .count { position: relative; top: 2px; }
.cur-ver { display: flex; gap: 10px; flex-wrap: wrap; }
.cur-ver > div { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--surface); min-width: 0; }
.cur-ver b { overflow-wrap: anywhere; }
.dev-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); }
.dev-chip .avatar { width: 36px; height: 36px; font-size: 15px; }
.dev-chip > div { display: grid; }

.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 28px 18px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 4%, var(--surface)); cursor: pointer; transition: border-color .15s, background .15s;
}
.fs label.drop { font-weight: 400; }
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.drop.has-file { border-style: solid; border-color: var(--brand); }
.drop.invalid { border-color: var(--danger); background: var(--danger-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--card); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); }
.drop-ico svg { width: 22px; height: 22px; }
.drop-main { font-weight: 700; overflow-wrap: anywhere; }
.drop-sub { font-size: 13px; color: var(--muted); }
.gfx { display: flex; gap: 18px; align-items: center; }
.drop-icon { width: 128px; height: 128px; padding: 0; border-radius: 28px; flex-shrink: 0; overflow: hidden; place-items: center; }
.drop-icon-img { width: 100%; height: 100%; object-fit: cover; }
.drop-icon-empty { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 12px; }
.drop-icon-empty svg { width: 22px; height: 22px; color: var(--brand); }
.drop-icon-empty b { color: var(--text); font-size: 13px; }
.gfx-help p { margin: 4px 0 0; }
.warn-line { color: #8a5a00; }
.shot-strip { display: flex; gap: 10px; overflow-x: auto; }
.shot-strip:empty { display: none; }
.shot-strip img { height: 150px; border-radius: 12px; border: 1px solid var(--line); flex-shrink: 0; }
input.invalid, textarea.invalid { border-color: var(--danger) !important; background: var(--danger-soft) !important; }

/* live preview */
.pv { display: grid; gap: 12px; }
.pv-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pv-head { display: flex; gap: 14px; align-items: center; }
.pv-icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 30px; box-shadow: var(--shadow); }
.pv-icon img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pv-name { font-weight: 800; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.pv-dev { color: var(--brand); font-weight: 650; font-size: 14px; }
.pv-tag { font-size: 14px; color: var(--muted); }
.pv-btn { background: var(--brand); color: var(--on-brand); text-align: center; padding: 10px; border-radius: 14px; font-weight: 700; }
.pv-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-shots img, .pv-shots span { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--surface-2); }

.submit-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 14px 18px; margin: 0 calc(-1 * var(--gutter)) -56px; background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.submit-bar .submit-note { margin-right: auto; }
.submit-bar .progress { flex: 1; max-width: 320px; }
@media (max-width: 1100px) { .form-grid { grid-template-columns: 1fr; } .form-side { position: static; } }
@media (max-width: 600px) {
  .gfx { flex-direction: column; align-items: flex-start; }
  .submit-bar { flex-wrap: wrap; }
  .submit-bar .submit-note { width: 100%; }
  .submit-bar .btn { flex: 1; }
  .seg { width: 100%; } .seg a { flex: 1; justify-content: center; }
}

/* ---------- Every page full width ---------- */
.narrow { max-width: none; }
.auth { max-width: none; min-height: calc(100vh - 200px); grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.auth-pitch { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 64px); }
.auth-pitch h1 { font-size: clamp(30px, 3.4vw, 48px); }
.auth > section:last-child { display: grid; align-content: center; }
.auth .form { padding: clamp(22px, 3vw, 40px); }
.install-wrap { max-width: none; padding: 24px var(--gutter) 56px; }
.install-wrap > p { text-align: center; }
@media (min-width: 900px) {
  .install-card { display: grid; grid-template-columns: 1fr 1fr; text-align: left; min-height: calc(100vh - 140px); }
  .install-top { display: flex; align-items: flex-start; padding: 40px; position: relative; }
  .install-body { margin-top: 0; padding: clamp(32px, 5vw, 72px); align-items: flex-start; justify-content: center; }
  .install-body .app-title { font-size: 36px; }
  .install-body .btn-big { width: auto; min-width: 280px; }
  .install-body .steps, .install-body .note, .install-body .features { max-width: 560px; }
  .install-body .qr-center { justify-content: flex-start; }
  .install-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 60%, rgba(255,255,255,.2), transparent 60%); }
}
@media (max-width: 800px) { .auth { min-height: 0; } }
.top-art { display: none; }
@media (min-width: 900px) {
  .install-top { flex-direction: column; }
  .top-art { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 10px; flex: 1; width: 100%; text-align: center; }
  .top-art .icon-xl, .top-art .logo-lg { width: 180px; height: 180px; border-radius: 44px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
  .top-art .logo-lg svg { width: 55%; height: 55%; }
  .top-art b { font-size: 30px; font-weight: 800; margin-top: 10px; }
  .top-art span { opacity: .85; }
  .install-body > .icon-xl, .install-body > .logo-lg { display: none; }
}
.auth-pitch .hero-label { align-self: flex-start; }
.fs label:not(.drop) { display: block; }
.fs label:not(.drop) > input, .fs label:not(.drop) > textarea { display: block; margin-top: 8px; }
.fs label:not(.drop) > .share-row { margin-top: 8px; }
.fs label.drop { display: grid; }

/* APK details read in the browser */
.apk-info { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.apk-info.bad { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.apk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.apk-grid > div { display: grid; min-width: 0; }
.apk-grid span { font-size: 12px; color: var(--muted); }
.apk-grid b { overflow-wrap: anywhere; font-size: 14px; }
.pkg-status { font-size: 14px; font-weight: 600; }
.pkg-status.good { color: var(--brand); }
.pkg-status.bad { color: var(--danger); }
.pkg-status a { margin-left: 4px; }
.pkg-url { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pkg-url b { color: var(--text); }
.pv-url { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
@media (max-width: 700px) { .apk-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- App page tabs, releases, signing, test login ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.dot-badge { font-style: normal; font-size: 11px; background: #d9a400; color: #fff; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.st-muted { background: var(--surface-2); color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.rel-pending { border-color: #f2d48a; }
.rel-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rel-meta > div { display: grid; background: var(--surface); padding: 10px 12px; border-radius: 12px; }
.rel-meta span { font-size: 12px; color: var(--muted); }
.rel-pending form { margin-top: 12px; }
.rel-list { display: grid; }
.rel-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rel-row:first-child { border-top: 0; padding-top: 0; }
.rel-ver { display: grid; }
.rel-body { display: grid; gap: 6px; }
.rel-notes { margin: 0; white-space: pre-wrap; font-size: 14px; }
.rel-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.rel-mini:first-of-type { border-top: 0; }
.whats-new { background: var(--surface); padding: 12px 14px; border-radius: 12px; margin: 8px 0 12px; }
.whats-new p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs label.radio-card, .radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 400; }
.radio-card input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.radio-card span { display: grid; gap: 2px; }
.radio-card small { color: var(--muted); font-size: 13px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.access-fields { display: grid; gap: 14px; }
.access-fields[hidden] { display: none; }
.review-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.review-box .k { color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .radio-cards, .rel-meta { grid-template-columns: 1fr; } .rel-row { grid-template-columns: 1fr; gap: 4px; } }
.apk-info[hidden] { display: none; }
.fs label.radio-card:not(.drop) { display: flex; }
.fs label.radio-card:not(.drop) > input { display: inline-block; margin-top: 3px; width: 18px; height: 18px; }

/* ---------- Admin panel ---------- */
.admin-av { background: var(--grad); color: #fff; }
.admin-av svg { width: 22px; height: 22px; }
.em-alert { background: #d9a400 !important; color: #fff !important; font-weight: 700; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip-n { font-size: 12px; opacity: .7; margin-left: 2px; }
.mini-search { position: relative; flex: 0 1 340px; }
.mini-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.mini-search input { width: 100%; padding: 9px 14px 9px 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.mini-input { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; width: 200px; }
.tbl-wrap { overflow-x: auto; }
.tbl-app span { display: grid; }
.tbl-app small { font-weight: 400; font-size: 12px; }
.attn-row .row-main { display: grid; }
.dev-card { display: grid; gap: 12px; }
.dev-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dev-stats { display: flex; gap: 18px; margin-left: auto; }
.dev-stats div { display: grid; text-align: center; }
.dev-stats b { font-size: 18px; }
.dev-stats span { font-size: 12px; color: var(--muted); }
.dev-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-app-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; }
.dev-app-pill .icon-xs { width: 22px; height: 22px; border-radius: 6px; }
@media (max-width: 700px) { .dev-stats { margin-left: 0; width: 100%; justify-content: space-around; } .mini-search { flex-basis: 100%; } .mini-input { width: 100%; } }
@media (max-width: 600px) {
  .page-head > .row { width: 100%; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filters .chips { max-width: 100%; }
  .mini-search { flex-basis: auto; }
  .tbl th:nth-child(4), .tbl td:nth-child(4), .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
  .dev-app-head .row form.row { flex-wrap: wrap; width: 100%; }
}
.dev-main { overflow-x: clip; }
.fs label.switch-row, .switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.fs label.switch-row:not(.drop) > input, .switch-row input { display: inline-block; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-size: 13px; }

/* anything marked hidden stays hidden, even if a class sets display */
[hidden] { display: none !important; }
.play-to-apk { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.play-to-apk p { margin: 0; }

/* ---------- Terms / Privacy ---------- */
.legal-head { margin-bottom: 8px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.legal-toc { position: sticky; top: 84px; margin: 0; font-size: 14px; }
.legal-toc ol { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-text { margin: 0; line-height: 1.65; max-width: 900px; }
.legal-text section + section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-text section { scroll-margin-top: 84px; }
.legal-text h2 { font-size: 19px; margin: 0 0 10px; }
.legal-text h3 { font-size: 15px; margin: 16px 0 6px; }
.legal-text p, .legal-text ul { margin: 0 0 10px; }
.legal-text ul { padding-left: 20px; }
.legal-text li + li { margin-top: 6px; }
@media (max-width: 820px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
