/* Koibito Gig — design system.
   Principles: fast (system fonts, no images in chrome), compact (12px rhythm), readable (≥13px text, 44px targets),
   one token set for both themes. Theme: data-theme="light|dark" on <html> (set before paint by js/theme.js);
   without it the OS preference applies. */
:root {
  --k-green: #10a83a; --k-green-2: #0c8c30; --k-ink: #0a6e26; --k-lime: #63e24a; --k-soft: #e3f6e8; --k-deep: #0b3d1c;
  --bg: #f2f5f2; --surface: #ffffff; --surface-2: #f6f9f6; --fg: #142017; --muted: #5a6a5f; --faint: #8a988e; --line: #e2e9e3;
  --warn: #9a5b00; --warn-soft: #fff2db; --info: #1f5fbf; --info-soft: #e7effc; --danger: #c22828; --danger-soft: #fdecec;
  --off: #6a736c; --off-soft: #eef1ee; --done: #3f4b42; --done-soft: #e7ece8; --star: #f2b200;
  --hero: linear-gradient(135deg, #0f9e37 0%, #19b844 55%, #4cd35a 100%); --hero-fg: #ffffff;
  --shadow: 0 1px 2px rgba(16, 40, 22, .06), 0 4px 14px rgba(16, 40, 22, .06);
  --av-s: 48%; --av-l: 84%; --av-fg: #18291c;
  --r: 12px; --r-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --k-green: #22c55e; --k-green-2: #1aa64d; --k-ink: #6fe08c; --k-lime: #8cf06e; --k-soft: #12301c; --k-deep: #0b3d1c;
    --bg: #0b110d; --surface: #141c17; --surface-2: #19231d; --fg: #e7efe9; --muted: #9aab9f; --faint: #6f8075; --line: #243028;
    --warn: #f3b04f; --warn-soft: #362712; --info: #8bb6ff; --info-soft: #172840; --danger: #ff8a8a; --danger-soft: #3a1818;
    --off: #9aa39c; --off-soft: #1d2620; --done: #c4d0c7; --done-soft: #212b24; --star: #f2b200;
    --hero: linear-gradient(135deg, #0f3d1f 0%, #145a2a 60%, #1c7a36 100%); --hero-fg: #effaf1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45); --av-s: 26%; --av-l: 28%; --av-fg: #e7efe9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --k-green: #22c55e; --k-green-2: #1aa64d; --k-ink: #6fe08c; --k-lime: #8cf06e; --k-soft: #12301c; --k-deep: #0b3d1c;
  --bg: #0b110d; --surface: #141c17; --surface-2: #19231d; --fg: #e7efe9; --muted: #9aab9f; --faint: #6f8075; --line: #243028;
  --warn: #f3b04f; --warn-soft: #362712; --info: #8bb6ff; --info-soft: #172840; --danger: #ff8a8a; --danger-soft: #3a1818;
  --off: #9aa39c; --off-soft: #1d2620; --done: #c4d0c7; --done-soft: #212b24; --star: #f2b200;
  --hero: linear-gradient(135deg, #0f3d1f 0%, #145a2a 60%, #1c7a36 100%); --hero-fg: #effaf1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45); --av-s: 26%; --av-l: 28%; --av-fg: #e7efe9;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--k-ink); }
:focus-visible { outline: 2.5px solid var(--k-green); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
details summary { cursor: pointer; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.big { width: 36px; height: 36px; stroke-width: 1.5; color: var(--faint); }
.ic.vf { width: 14px; height: 14px; color: var(--k-green); }
.ic.okc { color: var(--k-green); } .ic.bad { color: var(--danger); }
.okc { color: var(--k-ink); }

.app { max-width: 560px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; font-variant-numeric: tabular-nums; }
.pad { display: flex; flex-direction: column; gap: 12px; padding: 4px max(14px, env(safe-area-inset-right, 0px)) 14px max(14px, env(safe-area-inset-left, 0px)); }
.navspace { height: 84px; flex: none; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; gap: 10px; } .gap { gap: 10px; } .gap6 { gap: 6px; } .wrap { flex-wrap: wrap; }
.row.wrap { row-gap: 6px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .sm { font-size: 13.5px; } .xs { font-size: 12.5px; } .center { text-align: center; } .block { display: block; } .strong { font-weight: 700; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plain { background: none; border: 0; padding: 0; text-align: left; width: 100%; color: inherit; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; color: var(--fg); min-width: 0; margin-right: auto; }
.brand img, .logo { width: 30px; height: 30px; border-radius: 50%; flex: none; display: block; }
.brand .wm { white-space: nowrap; } .brand .wm b { color: var(--k-ink); font-weight: 800; }
.logo.lg { width: 64px; height: 64px; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: inherit; text-decoration: none; }
.iconbtn:hover { background: var(--off-soft); }
.iconbtn em, .nv em { position: absolute; top: 3px; right: 2px; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.iconbtn.solid { background: var(--k-green); color: #fff; }
.iconbtn.lang b { font-size: 12px; padding: 2px 6px; border: 1.5px solid var(--line); border-radius: 7px; }
.modesw { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 2px; border-radius: 999px; background: var(--off-soft); border: 1px solid var(--line); flex: none; }
.ms { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ms .ic { width: 15px; height: 15px; }
.ms.on { background: var(--k-green); color: #fff; box-shadow: var(--shadow); }
.sub { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; padding: calc(4px + env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) 4px max(6px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sub h1 { flex: 1; font-size: 16px; font-weight: 800; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub .spacer { width: 40px; flex: none; }
.sub .link { white-space: nowrap; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.nv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 52px; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 12px; }
.nv .ic { width: 22px; height: 22px; }
.nv.on { color: var(--k-ink); }
.nv.on .ic { background: var(--k-soft); border-radius: 999px; width: 44px; padding: 2px 11px; height: 26px; }
.nv em { top: 2px; right: auto; left: calc(50% + 6px); background: var(--warn); }
.fabadd { position: fixed; z-index: 19; right: max(16px, calc(50% - 264px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px;
  min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--k-green); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 6px 18px color-mix(in srgb, var(--k-green) 40%, transparent); }
.fabadd .ic { stroke-width: 2.4; }
.cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20;
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.hello h1 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.hello p { font-size: 13.5px; opacity: .9; }
.pagetitle { font-size: 20px; font-weight: 800; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.sechead h2 { font-size: 15.5px; font-weight: 800; }
.count { color: var(--muted); font-weight: 600; font-size: 13px; }
.h2 { font-size: 15.5px; font-weight: 800; margin-top: 4px; } .h3 { font-size: 14px; font-weight: 800; margin-top: 4px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lbl, label, .flabel { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; color: var(--k-ink); font-weight: 700; font-size: 13.5px; }
.link .ic { width: 16px; height: 16px; }
.link.danger { color: var(--danger); }
.sechead .link, .linkrow .link, .srow .link { padding-inline: 4px; margin-inline: -4px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.body { white-space: pre-line; max-width: 65ch; }
.quote { font-size: 13.5px; color: var(--muted); font-style: italic; }
.info-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); font-size: 13px; }
.info-note .ic { width: 16px; height: 16px; margin-top: 1px; }
.demo { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); padding: 9px 11px; border-radius: var(--r-sm); }
.demo .ic { width: 16px; height: 16px; }
.simtag { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: var(--r-sm); text-align: center; }
.simtag .ic { width: 15px; height: 15px; }
.demo-dest { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border-radius: var(--r); background: var(--off-soft); font-size: 13px; }
.demo-dest b, .demo-dest small { display: block; } .demo-dest small { color: var(--muted); margin-top: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 16px; border-radius: var(--r); font-weight: 700; font-size: 14.5px; text-align: center; }
.btn .ic { width: 18px; height: 18px; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.primary { background: var(--k-green); color: #fff; }
.btn.primary:hover { background: var(--k-green-2); }
.btn.ghost { background: var(--surface); border: 1.5px solid var(--line); }
.btn.ghost.on { border-color: var(--k-green); color: var(--k-ink); }
.btn.light { background: rgba(255, 255, 255, .18); color: var(--hero-fg); border: 1px solid rgba(255, 255, 255, .3); }
.btn.white { background: var(--surface); color: var(--k-ink); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.cnt { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--k-green); color: #fff; font-size: 12px; line-height: 20px; }

/* ---------- home hero, tiles, quick actions ---------- */
.hero { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--hero); color: var(--hero-fg); }
.hero .lbl { color: inherit; opacity: .85; font-weight: 600; }
.hero .hero-note { margin: 0; opacity: .9; line-height: 1.4; }
.card.earn-intro { display: grid; gap: 4px; }
.card.earn-intro p { margin: 0; }
.hero .big { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hero-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats > div { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .14); min-width: 0; }
.hero-stats span { font-size: 11.5px; opacity: .88; }
.hero-stats b { font-size: 13.5px; overflow-wrap: anywhere; }
.hero-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; min-width: 0; }
.tile b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.tile span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.tile.hot { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: var(--warn-soft); }
.tile.hot b, .tile.hot span { color: var(--warn); }
.qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.qa button .ic { width: 24px; height: 24px; padding: 4px; box-sizing: content-box; border-radius: 10px; background: var(--k-soft); color: var(--k-ink); }
.draftbar { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); border: 1px dashed currentColor; width: 100%; text-align: left; }
.draftbar span { flex: 1; min-width: 0; } .draftbar b, .draftbar small { display: block; }
.draftbar small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draftbar.dark { background: var(--warn-soft); }
/* kept for older markup */
.wallet-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--hero); color: var(--hero-fg); }
.wc-main .lbl { color: inherit; opacity: .85; }
.wc-main .big { display: block; font-size: 24px; font-weight: 800; }
.wc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wc-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wc-stats > div { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .14); min-width: 0; }
.wc-stats span { font-size: 11.5px; opacity: .88; } .wc-stats b { font-size: 13.5px; overflow-wrap: anywhere; }
.wc-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.postcta { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }

/* ---------- lists & cards ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.card { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 11px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.card[role="button"], button.card { cursor: pointer; }
.card[role="button"]:active, button.card:active { background: var(--surface-2); }
.card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.card.is-taken { background: var(--off-soft); }
.card.is-taken h3, .card.is-taken .price b { color: var(--muted); }
.card.is-taken .price b { text-decoration: line-through; }
/* compact gig row: icon · title/meta · price */
.card.gig { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 11px; }
.gic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--k-soft); color: var(--k-ink); flex: none; }
.gic .ic { width: 20px; height: 20px; }
.gmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gmain h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.gline > span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.gline .ic { width: 14px; height: 14px; }
.gline.facts { flex-wrap: nowrap; }
.gline.facts > span { white-space: nowrap; flex: none; }
.gline.facts > .pl { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; display: block; }
.gline.facts > .pl .ic { margin-right: 3px; vertical-align: -2px; }
.card.gig .price { padding-top: 1px; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .ic { width: 15px; height: 15px; }
.foot { align-items: flex-end; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; }
.who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who.strong { font-size: 14.5px; font-weight: 700; }
.price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.price b { font-size: 15px; font-weight: 800; color: var(--k-ink); white-space: nowrap; }
.price small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.price small.okc { color: var(--k-ink); font-weight: 700; }
.amt { font-weight: 800; }
.tag { margin-left: 2px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; background: var(--info-soft); color: var(--info); text-transform: uppercase; letter-spacing: .03em; }
.type { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.type .ic { width: 14px; height: 14px; }
.type.t-multi { color: var(--k-ink); } .type.t-service { color: var(--info); }
.rating { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--fg); }
.rating small { font-weight: 500; color: var(--muted); margin-left: 2px; }
.ic.st { width: 13px; height: 13px; fill: var(--star); stroke: var(--star); }
.worker, .poster { flex-direction: row; align-items: center; gap: 10px; }
.worker .chev, .lrow .chev { width: 16px; height: 16px; color: var(--faint); }
.dotcount { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--danger); }
.dotcount .ic { width: 14px; height: 14px; }
.next { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.next .ic { width: 15px; height: 15px; margin-top: 1px; }
.next.act { color: var(--warn); } .next.run { color: var(--fg); } .next.done { color: var(--muted); font-weight: 500; }
.orow { gap: 5px; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 100%; line-height: 1.5; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.boosted { background: var(--warn-soft); color: var(--warn); margin-left: 6px; }
.pill.boosted .ic { width: 12px; height: 12px; }
.card.boost { display: grid; gap: 6px; }
.card.boost .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--warn); }
.pill.big { font-size: 13px; padding: 4px 10px; }
.p-ok { background: var(--k-soft); color: var(--k-ink); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-off { background: var(--off-soft); color: var(--off); }
.p-info { background: var(--info-soft); color: var(--info); }
.p-mine { background: var(--surface-2); color: var(--k-ink); border: 1px solid var(--line); }
.p-done { background: var(--done-soft); color: var(--done); }
.p-danger { background: var(--danger-soft); color: var(--danger); }
.spots { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.spots .bar { flex: 1; height: 5px; border-radius: 5px; background: var(--off-soft); overflow: hidden; min-width: 40px; }
.spots .bar i { display: block; height: 100%; background: var(--k-green); border-radius: 5px; }
.ministeps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.ministeps i { height: 4px; border-radius: 4px; background: var(--off-soft); }
.ministeps i.done { background: var(--k-green); }
.ministeps i.now { background: color-mix(in srgb, var(--k-green) 45%, var(--off-soft)); }
.ministeps.bad i.now { background: var(--danger); }

/* avatars */
.av { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--h) var(--av-s) var(--av-l)); color: var(--av-fg); font-weight: 800; font-size: 12.5px; overflow: hidden; }
.av.biz { border-radius: 10px; }
.av.photo { background: var(--off-soft); } .av.photo img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { width: 20px; height: 20px; font-size: 9px; }
.av.md { width: 40px; height: 40px; }
.av.lg { width: 58px; height: 58px; font-size: 20px; }

/* categories */
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.catgrid.pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 4px; min-height: 70px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.cat .ic { width: 22px; height: 22px; color: var(--k-green); }
.catgrid.pick .cat { flex-direction: row; justify-content: flex-start; padding: 9px 10px; min-height: 48px; font-size: 13px; text-align: left; }
.cat.on { border-color: var(--k-green); background: var(--k-soft); box-shadow: inset 0 0 0 1px var(--k-green); }
.cat.all .ic { color: var(--muted); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.sub { margin-top: -4px; }
.chips.mini { gap: 4px; margin-top: 3px; }
.chip { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; color: var(--k-green); }
.chip.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.chip.xs { min-height: 0; padding: 1px 7px; font-size: 11px; }
.chip.on { background: var(--k-green); color: #fff; border-color: var(--k-green); }
.chip.on .ic { color: inherit; }
.chip em { font-style: normal; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--off-soft); color: var(--fg); font-size: 11px; line-height: 17px; text-align: center; }
.chip.on em { background: rgba(255, 255, 255, .25); color: #fff; }
.chip em.hot { background: var(--warn); color: #fff; }
.chip.static { cursor: default; }
.chip.okchip { background: var(--k-soft); color: var(--k-ink); border-color: transparent; }

/* explore */
.findbar { display: flex; gap: 6px; align-items: center; }
.searchbox { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); min-width: 0; }
.searchbox:focus-within { border-color: var(--k-green); }
.searchbox .ic { color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; height: 44px; min-height: 0; border: 0; background: none; outline: none; padding: 0; }
.fbtn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); flex: none; }
.fbtn.on { border-color: var(--k-green); color: var(--k-ink); }
.fbtn em { position: absolute; top: -5px; right: -5px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: var(--k-green); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; }
.toolbar { display: flex; gap: 6px; align-items: center; }
.toolbar .sel { flex: 1; }
.sel { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--line); min-width: 0; }
.sel .ic { width: 15px; height: 15px; color: var(--muted); }
.sel select { flex: 1; min-width: 0; min-height: 34px; height: 34px; border: 0; background: none; font-size: 13px; font-weight: 600; outline: none; padding: 0; }
.fpanel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frow { display: flex; flex-direction: column; gap: 5px; }
.rescount { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted); }
.empty { padding: 18px 12px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; }
.empty.sm, p.empty { padding: 6px; font-size: 13px; }

/* segmented */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: var(--r); background: var(--off-soft); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 6px; border-radius: var(--r-sm); font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button .ic { width: 16px; height: 16px; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.seg button em { font-style: normal; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; line-height: 17px; }
.lrow .seg { grid-auto-columns: auto; }
.lrow .seg button { min-height: 30px; padding: 0 9px; font-size: 12.5px; }

/* detail */
.detail { gap: 10px; }
.dtitle { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); }
.banner .ic { margin-top: 1px; }
.banner b { display: block; font-size: 14px; }
.banner span { display: block; font-size: 12.5px; opacity: .92; margin-top: 1px; }
.banner.ok { background: var(--k-soft); color: var(--k-ink); }
.banner.off { background: var(--off-soft); color: var(--fg); border: 1px solid var(--line); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.facts > div { display: flex; flex-direction: column; padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.facts .span2 { grid-column: span 2; }
.facts b { font-size: 14px; overflow-wrap: anywhere; }
.facts small { font-size: 11.5px; color: var(--muted); }
.payout, .paybox, .calc, .summary { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.payout p, .escrow, p.xs.muted, .hint { display: flex; gap: 6px; align-items: flex-start; }
.payout .ic, .escrow .ic, p .ic { width: 15px; height: 15px; margin-top: 2px; }
.paybox .row span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.escrow { font-size: 12.5px; color: var(--k-ink); padding: 9px 11px; border-radius: var(--r-sm); background: var(--k-soft); }
.mybox { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: var(--r); border: 1.5px dashed var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 10px; position: relative; padding-bottom: 10px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--k-green); }
.timeline i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--off-soft); color: var(--muted); font-style: normal; font-weight: 800; font-size: 12px; border: 2px solid var(--line); }
.timeline li.done i { background: var(--k-green); border-color: var(--k-green); color: #fff; }
.timeline li.done i .ic { width: 13px; height: 13px; stroke-width: 3; }
.timeline li.now i { border-color: var(--k-green); color: var(--k-ink); background: var(--surface); }
.timeline li.bad i { border-color: var(--danger); color: var(--danger); }
.timeline b { display: block; font-size: 13.5px; }
.timeline small { color: var(--muted); font-size: 12px; }
.timeline li:not(.done):not(.now) b { color: var(--muted); }
.events { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.events li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 7px 9px; border-radius: var(--r-sm); background: var(--off-soft); }
.events li.revision { background: var(--warn-soft); color: var(--warn); } .events li.disputed { background: var(--danger-soft); color: var(--danger); }
.events li .ic { width: 15px; height: 15px; } .events b { display: block; } .events small { opacity: .85; }
.proof .pitems { display: flex; flex-wrap: wrap; gap: 6px; }
.pitem { display: inline-flex; gap: 6px; align-items: flex-start; padding: 6px 9px; border-radius: var(--r-sm); background: var(--off-soft); font-size: 12.5px; max-width: 100%; overflow-wrap: anywhere; text-decoration: none; color: inherit; }
a.pitem { color: var(--info); }
.pitem .ic { width: 14px; height: 14px; margin-top: 1px; }
.pitems.edit { display: flex; flex-direction: column; gap: 6px; }
.pitem-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.review { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; }
.review .ic { width: 15px; height: 15px; }
.review.approved { color: var(--k-ink); } .review.revision { color: var(--warn); } .review.wait { color: var(--muted); }
.dispute { border-color: var(--danger); } .dispute.resolved { border-color: var(--line); }
.dispute b .ic { width: 16px; height: 16px; color: var(--danger); margin-right: 4px; }
.explain { padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.explain summary { display: flex; gap: 8px; align-items: center; font-weight: 700; list-style: none; min-height: 28px; }
.explain summary::-webkit-details-marker { display: none; }
.explain[open] summary { margin-bottom: 6px; }
.explain ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.explain > * + * { margin-top: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--off-soft); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.file { padding: 6px; text-align: center; gap: 2px; } .thumb.file small { font-size: 10px; overflow-wrap: anywhere; line-height: 1.2; }
.thumb.missing::after { content: "?"; color: var(--muted); }
.thumb .rm { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; }
.thumb .rm .ic { width: 14px; height: 14px; }
.demobox { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: var(--r); border: 1.5px dashed var(--warn); background: var(--warn-soft); color: var(--warn); }
.demohead { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.demohead .ic { width: 16px; height: 16px; }
.demobtns { display: flex; flex-wrap: wrap; gap: 6px; }
.demobtns .btn.ghost { color: var(--fg); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.msg { max-width: 82%; padding: 7px 11px; border-radius: 14px; font-size: 13.5px; overflow-wrap: anywhere; }
.msg small { display: block; font-size: 10.5px; opacity: .72; margin-top: 1px; }
.msg.them { align-self: flex-start; background: var(--off-soft); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--k-green); color: #fff; border-bottom-right-radius: 4px; }
.chatin { display: flex; gap: 6px; }
.chatin input { flex: 1; min-width: 0; }

/* forms */
.form label, .sheet label:not(.toggle):not(.upload):not(.radio) { display: block; margin-top: 4px; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { width: 100%; min-height: 44px; padding: 9px 11px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); outline: none; font-size: 15px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--k-green); }
input:disabled { opacity: .7; }
.hint { justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -4px; }
.err { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.err .ic { width: 15px; height: 15px; }
.warnbox { display: flex; gap: 8px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.warnbox.bad { background: var(--danger-soft); color: var(--danger); }
.warnbox .ic { width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.money-in { display: flex; align-items: center; gap: 8px; padding-left: 11px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); }
.money-in:focus-within { border-color: var(--k-green); }
.money-in span { font-weight: 800; color: var(--muted); }
.money-in input { border: 0; padding-left: 0; font-weight: 700; font-size: 17px; }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper .iconbtn { border: 1.5px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 700; }
.stepper b { font-size: 20px; min-width: 30px; text-align: center; }
.stepper span { flex: 1; min-width: 140px; }
.srow { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; padding-bottom: 0; }
.srow b, .srow small { display: block; } .srow b { overflow-wrap: anywhere; }
.srow small { color: var(--muted); font-size: 12px; }
.toggle { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 0; font-size: 13.5px; cursor: pointer; font-weight: 500; color: var(--fg); }
.toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--k-green); flex: none; }
.radios { display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 11px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--fg); cursor: pointer; }
.radio input { accent-color: var(--k-green); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--k-green); background: var(--k-soft); }
.q { font-size: 17px; font-weight: 800; margin-top: 2px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fgroup > h3 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wsteps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.wsteps i { height: 4px; border-radius: 4px; background: var(--off-soft); }
.wsteps i.on { background: var(--k-green); }
.wlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; font-size: 11px; font-weight: 700; color: var(--faint); margin-top: -6px; }
.wlabels span.on { color: var(--k-ink); }
.saved, .offline { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.saved { color: var(--k-ink); } .offline { color: var(--warn); margin-right: 8px; }
.saved .ic, .offline .ic { width: 13px; height: 13px; }
.upload { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--line); background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--fg); position: relative; }
.upload:focus-within { border-color: var(--k-green); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-align: left; }
.choice.on { border-color: var(--k-green); background: var(--k-soft); }
.choice > .ic:first-child { width: 24px; height: 24px; color: var(--k-green); }
.choice span { flex: 1; min-width: 0; } .choice b, .choice small { display: block; }
.choice small { color: var(--muted); font-size: 12.5px; } .choice small.okc { color: var(--k-ink); }
.choices2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices2 .choice { flex-direction: column; align-items: flex-start; gap: 4px; }
.skillgroup { display: flex; flex-direction: column; gap: 5px; }
.pform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }

/* lists, account */
.list { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 48px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; text-decoration: none; color: inherit; }
.lrow:last-child { border-bottom: 0; }
.lrow > .ic:first-child { color: var(--k-green); }
.lrow.unread { background: var(--k-soft); }
.lrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-green); flex: none; }
.col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.badge { font-style: normal; min-width: 19px; padding: 0 5px; border-radius: 10px; background: var(--k-green); color: #fff; font-size: 11.5px; line-height: 19px; text-align: center; }
.txi.t-escrow_release, .txi.t-refund { color: var(--k-green); } .txi.t-escrow_hold { color: var(--k-ink); } .txi.t-withdrawal { color: var(--info); }
.ledger { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: var(--r-sm); background: var(--off-soft); }
.profile { display: flex; align-items: center; gap: 12px; }
.profile h1 { font-size: 19px; font-weight: 800; }
.profile .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats3 > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stats3 b { font-size: 15px; overflow-wrap: anywhere; } .stats3 span { font-size: 11.5px; color: var(--muted); }
.vstep .ic { color: var(--k-green); }
.toggle-row { cursor: pointer; color: var(--fg); font-weight: 500; }
.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .12s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch:checked { background: var(--k-green); } .switch:checked::after { transform: translateX(18px); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.tips li { display: flex; gap: 8px; }
.review-card { gap: 4px; }
.inbox-row b { font-size: 14px; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 12, 6, .5); }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-radius: 18px 18px 0 0; background: var(--bg); border-top: 1px solid var(--line); }
.grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line); align-self: center; flex: none; }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shead h2 { font-size: 16.5px; font-weight: 800; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 4px; }
.intro h2 { font-size: 19px; font-weight: 800; }
.intro .seg { width: 100%; }
.qrwrap { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.qrhead { display: flex; justify-content: space-between; align-items: baseline; width: 100%; max-width: 230px; gap: 6px; }
.qrhead b { font-size: 17px; font-weight: 800; letter-spacing: .04em; } .qrhead span { font-size: 9.5px; color: var(--muted); }
.qr { width: 210px; max-width: 100%; aspect-ratio: 1; padding: 8px; border-radius: 10px; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.big { font-size: 22px; font-weight: 800; }
.paid { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 0 2px; }
.paid .ic.big { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--k-green); color: #fff; stroke-width: 3; }
.stars { display: flex; justify-content: center; gap: 6px; }
.stars button .ic { width: 36px; height: 36px; color: var(--line); fill: var(--line); }
.stars button.on .ic { color: var(--star); fill: var(--star); }
.sheet .lbl { margin-top: 2px; }

/* toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); max-width: min(460px, calc(100% - 28px)); padding: 10px 14px; border-radius: var(--r); background: var(--fg); color: var(--bg); font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; font-family: var(--font); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* API mode */
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.boot img { border-radius: 50%; }
.app.busy { cursor: progress; }
.app.busy [data-act] { opacity: .85; }
.auth { max-width: 440px; margin: 0 auto; padding-top: 20px; }
.auth h1 { margin: 14px 0 4px; font-size: 20px; }
.auth .brandrow { display: flex; align-items: center; justify-content: space-between; }
.auth .brand { margin: 0; font-size: 17px; }
.okbox { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: var(--r-sm); background: var(--k-soft); color: var(--k-ink); }
.auth form .btn { margin-top: 12px; }
.auth .linkrow { margin-top: 10px; }

@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px var(--line); } }
@media (max-width: 420px) { .brand .wm { display: none; } }
@media (max-width: 370px) {
  .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pform { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-stats > div:nth-child(3) { grid-column: span 2; }
  .ms { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
