/* SpazaChat: one stylesheet for the whole site. Phones first, cheap data: the phone's own font for text, Montserrat
   (two weights, served from here) for headings only. Colours come from the SpazaChat logo. */
@font-face { font-family:"Montserrat"; src:url("/static/fonts/montserrat-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"Montserrat"; src:url("/static/fonts/montserrat-800.woff2") format("woff2"); font-weight:800; font-display:swap; }

:root {
  --deep:#0f3d36; --deep-2:#16514a; --deep-3:#0b2f2a;
  --brand:#1b8a66; --brand-2:#167455; --brand-soft:#e2f2ea; --brand-line:#bfe0d1;
  --sun:#f4c430; --sun-2:#e2b11c; --sun-soft:#fdf4d6;
  --cream:#f6f4ee; --surface:#ffffff; --surface-2:#fbfaf6;
  --ink:#13231f; --ink-2:#34463f; --muted:#64756f; --line:#e4e6df; --line-2:#d2d8d2;
  --danger:#b42318; --danger-soft:#fdeceb; --warn:#8a5300; --warn-soft:#fff3d6; --ok:#13795b; --ok-soft:#e2f2ea;
  --r-sm:8px; --r:12px; --r-lg:18px; --r-xl:26px; --pill:999px;
  --sh-1:0 1px 2px rgba(15,61,54,.07);
  --sh-2:0 2px 6px rgba(15,61,54,.06), 0 8px 24px rgba(15,61,54,.07);
  --sh-3:0 12px 32px rgba(15,61,54,.14), 0 2px 8px rgba(15,61,54,.06);
  --text:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --display:"Montserrat",var(--text);
  --wrap:74rem;
}
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--cream); color:var(--ink); font:16px/1.55 var(--text); -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; display:block; }
a { color:var(--brand-2); text-underline-offset:3px; }
a:hover { color:var(--deep); }
h1, h2, h3 { font-family:var(--display); color:var(--deep); letter-spacing:-.01em; line-height:1.15; margin:0 0 .5em; }
h1 { font-size:clamp(1.75rem, 4.6vw, 3rem); font-weight:800; }
h2 { font-size:clamp(1.3rem, 2.6vw, 1.75rem); font-weight:800; }
h3 { font-size:1.05rem; font-weight:700; }
p { margin:0 0 1rem; }
code { font:600 .92em/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; background:var(--brand-soft); color:var(--deep);
       padding:.18rem .4rem; border-radius:6px; }
:focus-visible { outline:3px solid var(--sun); outline-offset:2px; border-radius:4px; }
[hidden] { display:none !important; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:.75rem; top:-3rem; background:var(--deep); color:#fff; padding:.5rem .9rem; border-radius:var(--r-sm); z-index:50; }
.skip:focus { top:.75rem; }
.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding:0 1rem; }
@media (min-width:48rem) { .wrap { padding:0 1.5rem; } }
.muted { color:var(--muted); }
.small { font-size:.88rem; }
.pre { white-space:pre-line; }
.i { width:1.15em; height:1.15em; flex:none; vertical-align:-.2em; }
.i-lg { width:1.6rem; height:1.6rem; }

/* ---------------------------------------------------------------- buttons, chips, badges */
.btn { --b:var(--brand); display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:2.75rem;
       padding:.6rem 1.15rem; border:1.5px solid var(--b); border-radius:var(--pill); background:var(--b); color:#fff;
       font:700 .95rem/1.1 var(--text); text-decoration:none; cursor:pointer; transition:background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { --b:var(--brand-2); color:#fff; box-shadow:0 6px 16px rgba(27,138,102,.25); }
.btn:active { transform:translateY(1px); }
.btn.deep { --b:var(--deep); } .btn.deep:hover { --b:var(--deep-3); box-shadow:0 6px 16px rgba(15,61,54,.25); }
.btn.sun { --b:var(--sun); color:var(--deep); } .btn.sun:hover { --b:var(--sun-2); color:var(--deep); box-shadow:0 6px 16px rgba(226,177,28,.3); }
.btn.line { background:transparent; color:var(--deep); border-color:var(--line-2); }
.btn.line:hover { background:var(--surface); border-color:var(--deep); color:var(--deep); box-shadow:none; }
.btn.ghost { background:transparent; border-color:transparent; color:var(--brand-2); padding-inline:.6rem; }
.btn.ghost:hover { background:var(--brand-soft); box-shadow:none; color:var(--deep); }
.btn.danger { background:transparent; color:var(--danger); border-color:#efb8b2; }
.btn.danger:hover { background:var(--danger); border-color:var(--danger); color:#fff; box-shadow:none; }
.btn.on-dark { background:transparent; border-color:rgba(255,255,255,.45); color:#fff; } .btn.on-dark:hover { background:rgba(255,255,255,.1); border-color:#fff; }
.btn.sm { min-height:2.25rem; padding:.4rem .85rem; font-size:.88rem; }
.btn.lg { min-height:3.25rem; padding:.8rem 1.5rem; font-size:1.02rem; }
.btn.block { width:100%; }
button:disabled { opacity:.55; cursor:default; }
.chip { display:inline-flex; align-items:center; gap:.35rem; padding:.38rem .8rem; border-radius:var(--pill); background:var(--surface);
        border:1px solid var(--line); color:var(--ink-2); font-size:.88rem; text-decoration:none; white-space:nowrap; }
a.chip:hover { border-color:var(--brand); color:var(--deep); background:var(--brand-soft); }
.chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.badge { display:inline-flex; align-items:center; gap:.3rem; padding:.18rem .55rem; border-radius:var(--pill); font-size:.78rem; font-weight:700;
         background:var(--brand-soft); color:var(--ok); white-space:nowrap; }
.badge.warn { background:var(--warn-soft); color:var(--warn); }
.badge.bad { background:var(--danger-soft); color:var(--danger); }
.badge.grey { background:#eceee9; color:var(--ink-2); }
.badge.sun { background:var(--sun-soft); color:#7a5a00; }
.verified { display:inline-flex; align-items:center; gap:.3rem; color:var(--ok); font-weight:700; font-size:.88rem; }

/* ---------------------------------------------------------------- forms */
label { font-weight:600; font-size:.92rem; color:var(--ink-2); }
.input, input:not([type]), input[type=text], input[type=search], input[type=number], input[type=password], input[type=tel], input[type=file], select {
  width:100%; min-height:2.75rem; padding:.6rem .8rem; border:1.5px solid var(--line-2); border-radius:var(--r-sm);
  background:var(--surface); color:var(--ink); font:inherit; transition:border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color:#b9c3bc; }
input:focus, select:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(27,138,102,.15); }
input::placeholder { color:#8d9b96; }
.field { position:relative; flex:1 1 13rem; }
.field .i { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.field input { padding-left:2.6rem; }
.form-row { display:grid; gap:.35rem; margin-bottom:1rem; }
.check { display:flex; align-items:flex-start; gap:.55rem; font-weight:500; }
.check input { width:1.15rem; height:1.15rem; margin-top:.15rem; accent-color:var(--brand); min-height:0; }

/* ---------------------------------------------------------------- the public site's header and footer */
.site-header { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.94); backdrop-filter:saturate(1.4) blur(10px);
               border-bottom:1px solid var(--line); }
.header-row { display:flex; align-items:center; gap:1rem; min-height:4rem; }
.logo { display:inline-flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--deep); flex:none; }
.logo svg { width:2.35rem; height:2.35rem; border-radius:10px; }
.logo-word { font:800 1.2rem/1 var(--display); letter-spacing:-.02em; color:var(--deep); }
.logo-word span { color:var(--brand); font-weight:700; }
.nav-main { display:none; gap:.25rem; margin-left:1rem; }
.nav-main a { padding:.5rem .8rem; border-radius:var(--pill); color:var(--ink-2); text-decoration:none; font-weight:600; font-size:.95rem; }
.nav-main a:hover { background:var(--brand-soft); color:var(--deep); }
.nav-main a[aria-current] { color:var(--deep); background:var(--brand-soft); }
.header-tools { margin-left:auto; display:flex; align-items:center; gap:.5rem; }
.header-tools .btn { display:none; }
details.menu-pop { position:relative; }
details.menu-pop > summary { list-style:none; display:inline-flex; align-items:center; gap:.35rem; min-height:2.5rem; padding:.4rem .7rem;
                             border:1.5px solid var(--line); border-radius:var(--pill); cursor:pointer; color:var(--ink-2); font-weight:600; font-size:.9rem; background:var(--surface); }
details.menu-pop > summary::-webkit-details-marker { display:none; }
details.menu-pop > summary:hover { border-color:var(--line-2); }
details.menu-pop[open] > summary { border-color:var(--brand); color:var(--deep); }
.pop { position:absolute; right:0; top:calc(100% + .45rem); min-width:12rem; background:var(--surface); border:1px solid var(--line);
       border-radius:var(--r); box-shadow:var(--sh-3); padding:.4rem; z-index:30; }
.pop a { display:flex; align-items:center; gap:.6rem; padding:.6rem .75rem; border-radius:var(--r-sm); color:var(--ink); text-decoration:none; font-weight:600; }
.pop a:hover { background:var(--brand-soft); }
.pop a[aria-current] { color:var(--brand-2); }
.pop hr { border:0; border-top:1px solid var(--line); margin:.35rem 0; }
.burger .pop { min-width:16rem; }
@media (min-width:56rem) {
  .nav-main { display:flex; }
  .header-tools .btn { display:inline-flex; }
  .burger { display:none; }
}
.site-footer { background:var(--deep); color:#cfe2da; margin-top:4rem; padding:3rem 0 1.5rem; }
.site-footer a { color:#e7f3ee; text-decoration:none; }
.site-footer a:hover { color:var(--sun); }
.footer-grid { display:grid; gap:2rem; grid-template-columns:1fr; }
@media (min-width:44rem) { .footer-grid { grid-template-columns:1.4fr repeat(3, 1fr); } }
.footer-grid h3 { color:#fff; font-size:.92rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.8rem; }
.footer-grid ul { list-style:none; padding:0; margin:0; display:grid; gap:.5rem; }
.site-footer .logo-word { color:#fff; } .site-footer .logo-word span { color:var(--sun); }
.footer-base { border-top:1px solid rgba(255,255,255,.14); margin-top:2.5rem; padding-top:1.25rem; font-size:.85rem; display:flex;
               flex-wrap:wrap; gap:.5rem 1.5rem; justify-content:space-between; color:#a9c4ba; }

/* ---------------------------------------------------------------- home */
.hero { position:relative; overflow:hidden; padding:2.5rem 0 3rem; }
.hero::before { content:""; position:absolute; inset:-30% -10% auto auto; width:38rem; height:38rem; border-radius:50%;
                background:radial-gradient(closest-side, rgba(244,196,48,.28), transparent 70%); pointer-events:none; }
.hero-grid { position:relative; display:grid; gap:2.5rem; align-items:center; }
@media (min-width:60rem) { .hero { padding:4rem 0 2.5rem; } .hero-grid { grid-template-columns:1.15fr .85fr; } }
.eyebrow { display:inline-flex; align-items:center; gap:.45rem; padding:.35rem .8rem; border-radius:var(--pill); background:var(--surface);
           border:1px solid var(--line); color:var(--deep); font-weight:700; font-size:.85rem; margin-bottom:1.1rem; box-shadow:var(--sh-1); }
.eyebrow .dot { width:.5rem; height:.5rem; border-radius:50%; background:var(--brand); box-shadow:0 0 0 4px var(--brand-soft); }
.hero h1 { max-width:16ch; margin-bottom:1.25rem; }
.hero .lead { font-size:clamp(1.02rem, 1.6vw, 1.18rem); color:var(--ink-2); max-width:38rem; margin-bottom:1.5rem; }
.search-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-2); padding:.75rem; }
.search-card form { display:flex; flex-wrap:wrap; gap:.6rem; align-items:stretch; }
.search-card .field:first-of-type { flex-basis:100%; }
.search-card .btn { flex:1 1 8rem; }
@media (min-width:36rem) { .search-card .btn { flex:0 0 auto; } }
.search-card [data-near] { flex:1 1 100%; justify-content:flex-start; background:transparent; border-color:transparent; color:var(--brand-2); min-height:2.25rem; padding-inline:.5rem; }
.search-card [data-near]:hover { background:var(--brand-soft); }
.search-foot { display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:center; margin-top:.9rem; }
.trust { display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1.4rem; color:var(--ink-2); font-size:.92rem; font-weight:600; }
.trust span { display:inline-flex; align-items:center; gap:.45rem; }
.trust .i { color:var(--brand); }

.phone { width:min(100%, 21rem); margin:0 auto; background:var(--deep); border-radius:2.6rem; padding:.7rem; box-shadow:var(--sh-3);
         transform:rotate(1.5deg); }
.phone-screen { background:#efe9dd; border-radius:2rem; overflow:hidden; }
.phone-top { background:var(--deep-2); color:#fff; display:flex; align-items:center; gap:.6rem; padding:.85rem 1rem; }
.phone-top svg { width:2rem; height:2rem; border-radius:50%; }
.phone-top b { font-size:.95rem; display:block; } .phone-top small { color:#b9d6cc; font-size:.75rem; }
.chat { padding:1rem .8rem 1.2rem; display:grid; gap:.55rem; font-size:.88rem; }
.bubble { max-width:85%; padding:.55rem .75rem; border-radius:1rem; box-shadow:0 1px 1px rgba(0,0,0,.06); line-height:1.4; }
.bubble.me { justify-self:end; background:#d8f5c9; border-bottom-right-radius:.3rem; }
.bubble.bot { justify-self:start; background:#fff; border-bottom-left-radius:.3rem; }
.bubble .row { display:flex; justify-content:space-between; gap:.75rem; padding:.45rem 0; border-top:1px solid #eee; font-size:.84rem; }
.bubble .row:first-of-type { margin-top:.45rem; }
.bubble .row span { color:var(--muted); }
.bubble .tap { display:block; text-align:center; color:#118a6a; font-weight:700; border-top:1px solid #eee; padding-top:.45rem; margin-top:.2rem; }
.voice { display:flex; align-items:center; gap:.5rem; width:10rem; }
.voice i { display:block; height:1.35rem; flex:1; background:repeating-linear-gradient(90deg, #6aa98f 0 3px, transparent 3px 6px); border-radius:4px; opacity:.85; }

.section { padding:3.5rem 0 0; }
.section-head { max-width:42rem; margin-bottom:1.75rem; }
.section-head p { color:var(--ink-2); font-size:1.05rem; }
.section-head.next { margin-top:3rem; }
.cards-3 { display:grid; gap:1rem; }
@media (min-width:48rem) { .cards-3 { grid-template-columns:repeat(3, 1fr); } }
.feature { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1.4rem; box-shadow:var(--sh-1); }
.feature .ico { width:3rem; height:3rem; border-radius:14px; display:grid; place-items:center; background:var(--brand-soft); color:var(--brand-2); margin-bottom:1rem; }
.feature .ico.sun { background:var(--sun-soft); color:#8a6400; }
.feature .ico.deep { background:#dfe9e6; color:var(--deep); }
.feature p { color:var(--ink-2); margin:0; }
.step-num { font:800 .8rem/1 var(--display); color:var(--brand); letter-spacing:.08em; text-transform:uppercase; margin-bottom:.5rem; }
.band { border-radius:var(--r-xl); padding:2rem 1.5rem; display:grid; gap:1.25rem; align-items:center; position:relative; overflow:hidden; }
@media (min-width:48rem) { .band { grid-template-columns:1fr auto; padding:2.5rem; } }
.band h2 { margin-bottom:.4rem; }
.band p { margin:0; }
.band.dark { background:var(--deep); color:#d4e6df; } .band.dark h2 { color:#fff; }
.band.sun { background:var(--sun); color:var(--deep); }
.band .actions { display:flex; flex-wrap:wrap; gap:.6rem; position:relative; z-index:1; }

/* ---------------------------------------------------------------- results, shops, services */
.page-top { padding:2rem 0 1.25rem; }
.page-top h1 { font-size:clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom:.35rem; }
.page-top .lead { color:var(--ink-2); margin:0; }
.toolbar { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:.75rem; box-shadow:var(--sh-1); margin:1rem 0; }
.toolbar form { display:flex; flex-wrap:wrap; gap:.6rem; }
.toolbar .btn { flex:0 1 auto; }
.results-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem; margin:1.5rem 0 1rem; }
.results-head h2 { margin:0; font-size:1.25rem; }
.grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(15.5rem, 1fr)); }
.p-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
          overflow:hidden; box-shadow:var(--sh-1); transition:box-shadow .2s, transform .2s, border-color .2s; }
.p-card:hover { box-shadow:var(--sh-2); border-color:var(--line-2); transform:translateY(-2px); }
.p-media { aspect-ratio:4/3; background:linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); display:grid; place-items:center; position:relative; }
.p-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.p-media .ph { font:800 2.4rem/1 var(--display); color:var(--brand-2); opacity:.55; }
.p-media .badge { position:absolute; left:.6rem; top:.6rem; box-shadow:var(--sh-1); }
.p-body { padding:1rem; display:flex; flex-direction:column; gap:.35rem; flex:1; }
.p-title { font-weight:700; color:var(--ink); font-size:1.02rem; line-height:1.3; }
.price { font:800 1.25rem/1.2 var(--display); color:var(--deep); }
.p-shop { display:flex; align-items:center; gap:.35rem; font-size:.9rem; color:var(--ink-2); flex-wrap:wrap; }
.p-shop a { color:var(--ink); font-weight:600; text-decoration:none; } .p-shop a:hover { color:var(--brand-2); text-decoration:underline; }
.meta { display:flex; flex-wrap:wrap; gap:.35rem .9rem; font-size:.85rem; color:var(--muted); margin-top:.15rem; }
.meta span { display:inline-flex; align-items:center; gap:.3rem; }
.p-body .btn { margin-top:auto; }
.p-body .spacer { flex:1; min-height:.5rem; }
.s-card { display:flex; gap:1rem; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
          padding:1.1rem; box-shadow:var(--sh-1); text-decoration:none; color:inherit; transition:box-shadow .2s, border-color .2s; }
.s-card:hover { box-shadow:var(--sh-2); border-color:var(--line-2); color:inherit; }
.avatar { width:3.25rem; height:3.25rem; border-radius:16px; flex:none; display:grid; place-items:center; background:var(--deep); color:var(--sun);
          font:800 1.15rem/1 var(--display); }
.avatar.lg { width:5rem; height:5rem; border-radius:22px; font-size:1.8rem; box-shadow:0 0 0 5px var(--surface); }
.s-card h3 { margin:0 0 .2rem; color:var(--ink); }
.s-card p { margin:.35rem 0 0; color:var(--ink-2); font-size:.94rem; }
.list-gap { display:grid; gap:.85rem; }
.empty { text-align:center; padding:2.5rem 1rem; background:var(--surface); border:1px dashed var(--line-2); border-radius:var(--r-lg); color:var(--ink-2); }
.empty > .i { width:2.75rem; height:2.75rem; color:var(--brand); margin:0 auto .75rem; display:block; }
.notice { display:flex; gap:.7rem; align-items:flex-start; padding:.85rem 1rem; border-radius:var(--r); background:var(--brand-soft);
          color:var(--deep); border:1px solid var(--brand-line); margin:1rem 0; }
.notice .i { margin-top:.1rem; color:var(--brand-2); }
.notice.bad { background:var(--danger-soft); border-color:#f3c6c1; color:#7a1a12; } .notice.bad .i { color:var(--danger); }
.notice.warn { background:var(--warn-soft); border-color:#f1dca6; color:#5f3c00; } .notice.warn .i { color:var(--warn); }
.notice p { margin:0; }

.profile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-1); margin-top:1.5rem; }
.profile-cover { height:7rem; background:linear-gradient(120deg, var(--deep) 0%, var(--deep-2) 55%, var(--brand) 100%); position:relative; }
.profile-cover::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 88% 0%, rgba(244,196,48,.22), transparent 35%); }
.profile-body { padding:0 1.25rem 1.4rem; display:grid; gap:1rem; }
@media (min-width:48rem) { .profile-body { grid-template-columns:1fr auto; align-items:end; padding:0 1.75rem 1.6rem; } }
.profile-id { margin-top:-2.5rem; position:relative; z-index:1; }
.profile-id h1 { font-size:clamp(1.5rem, 3.4vw, 2.1rem); margin:.85rem 0 .3rem; }
.profile-id .meta { font-size:.92rem; }
.about { font-size:1.06rem; color:var(--ink-2); }

.legal { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1.5rem; max-width:48rem; }
.legal h2 { font-size:1.2rem; margin-top:1.5rem; }
.legal h3 { font-size:1.05rem; margin-top:1.25rem; }
.legal ul, .legal ol { padding-left:1.4rem; margin:0 0 1rem; } .legal li { margin:.35rem 0; }
.legal .table-wrap { overflow-x:auto; margin:0 0 1.25rem; }
.legal table { width:100%; border-collapse:collapse; font-size:.92rem; }
.legal th { background:var(--deep); color:#fff; text-align:left; padding:.55rem .7rem; font-weight:700; }
.legal td { border-bottom:1px solid var(--line); padding:.55rem .7rem; vertical-align:top; }
.legal code { background:var(--brand-soft); border-radius:4px; padding:0 .3rem; font-size:.9em; }

/* ---------------------------------------------------------------- pricing */
.plans { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); }
.plan { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1.5rem; box-shadow:var(--sh-1); display:flex; flex-direction:column; gap:.6rem; }
.plan h3 { font-size:1.1rem; margin:0; }
.plan .price { font-size:1.8rem; }
.plan ul { list-style:none; padding:0; margin:.25rem 0 0; display:grid; gap:.45rem; color:var(--ink-2); }
.plan li { display:flex; gap:.5rem; align-items:center; }
.plan li .i { color:var(--brand); }
.steps-row { display:grid; gap:1rem; counter-reset:step; }
@media (min-width:48rem) { .steps-row { grid-template-columns:repeat(3, 1fr); } }

/* ---------------------------------------------------------------- the dashboards (sellers and staff) */
.app { min-height:100vh; display:grid; grid-template-columns:1fr; }
@media (min-width:60rem) { .app { grid-template-columns:16rem 1fr; } }
.side { display:none; background:var(--deep); color:#cfe2da; padding:1.25rem .9rem; position:sticky; top:0; height:100vh; flex-direction:column; gap:.25rem; }
@media (min-width:60rem) { .side { display:flex; } }
.side .logo { margin:0 .5rem 1.5rem; } .side .logo-word { color:#fff; } .side .logo-word span { color:var(--sun); }
.side-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:#8fb3a6; margin:1rem .75rem .35rem; }
.side a.nav { display:flex; align-items:center; gap:.7rem; padding:.62rem .75rem; border-radius:var(--r-sm); color:#d9ebe4; text-decoration:none; font-weight:600; font-size:.94rem; }
.side a.nav:hover { background:rgba(255,255,255,.08); color:#fff; }
.side a.nav[aria-current] { background:var(--brand); color:#fff; box-shadow:0 4px 12px rgba(0,0,0,.18); }
.side .grow { flex:1; }
.side .who { border-top:1px solid rgba(255,255,255,.14); padding:1rem .5rem 0; font-size:.88rem; }
.side .who b { color:#fff; display:block; }
.app-main { min-width:0; padding-bottom:5.5rem; }
@media (min-width:60rem) { .app-main { padding-bottom:2rem; } }
.topbar { position:sticky; top:0; z-index:15; background:rgba(255,255,255,.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--line);
          display:flex; align-items:center; gap:.75rem; padding:.7rem 1rem; min-height:3.75rem; }
@media (min-width:60rem) { .topbar { padding:.7rem 2rem; } .topbar .logo { display:none; } }
.topbar .title { font-weight:700; color:var(--deep); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.topbar .tools { margin-left:auto; display:flex; align-items:center; gap:.5rem; flex:none; }
.content { padding:1.25rem 1rem; max-width:68rem; }
@media (min-width:60rem) { .content { padding:2rem; } }
.page-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.page-head h1 { font-size:clamp(1.45rem, 3vw, 1.9rem); margin:0; }
.page-head p { margin:.3rem 0 0; color:var(--muted); }
.tabbar { position:fixed; left:0; right:0; bottom:0; z-index:20; background:var(--surface); border-top:1px solid var(--line);
          display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); padding:.35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow:0 -4px 16px rgba(15,61,54,.06); }
@media (min-width:60rem) { .tabbar { display:none; } }
.tabbar a { display:flex; flex-direction:column; align-items:center; gap:.2rem; padding:.35rem .15rem; border-radius:var(--r-sm); color:var(--muted);
            text-decoration:none; font-size:.68rem; font-weight:700; text-align:center; line-height:1.15; }
.tabbar a .i { width:1.35rem; height:1.35rem; }
.tabbar a[aria-current] { color:var(--brand-2); background:var(--brand-soft); }
.kpis { display:grid; gap:.85rem; grid-template-columns:repeat(2, minmax(0, 1fr)); margin-bottom:1.5rem; }
@media (min-width:60rem) { .kpis { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.kpi { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1rem 1.1rem; box-shadow:var(--sh-1); display:grid; gap:.35rem; }
.kpi .label { display:flex; align-items:center; gap:.45rem; color:var(--muted); font-size:.85rem; font-weight:600; }
.kpi .label .i { color:var(--brand); }
.kpi .value { font:800 1.75rem/1.1 var(--display); color:var(--deep); }
.kpi a { font-size:.85rem; font-weight:600; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-1); margin-bottom:1.25rem; overflow:hidden; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:1rem 1.15rem; border-bottom:1px solid var(--line); }
.panel-head h2 { font-size:1.05rem; margin:0; }
.panel-body { padding:1.1rem 1.15rem; }
.panel-body > :last-child { margin-bottom:0; }
.status { display:flex; align-items:center; gap:.75rem; padding:1rem 1.15rem; border-radius:var(--r-lg); margin-bottom:1.25rem; font-weight:600; }
.status .i { width:1.4rem; height:1.4rem; }
.status.ok { background:var(--ok-soft); color:var(--deep); border:1px solid var(--brand-line); } .status.ok .i { color:var(--brand); }
.status.bad { background:var(--danger-soft); color:#7a1a12; border:1px solid #f3c6c1; } .status.bad .i { color:var(--danger); }
.rows { list-style:none; margin:0; padding:0; }
.rows li { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.7rem 1.15rem; border-bottom:1px solid var(--line); }
.rows li:last-child { border-bottom:0; }
.rows a { color:var(--ink); font-weight:600; text-decoration:none; } .rows a:hover { color:var(--brand-2); }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table { width:100%; border-collapse:separate; border-spacing:0; font-size:.93rem; }
th { text-align:left; font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:700; padding:.7rem 1rem;
     background:var(--surface-2); border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:.75rem 1rem; border-bottom:1px solid var(--line); vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover td { background:#fbfcfa; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
.item-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-1); padding:1rem 1.1rem; display:grid; gap:.85rem; }
.item-top { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; }
.item-top .name { font-weight:700; color:var(--ink); font-size:1.02rem; }
.item-top .nums { display:flex; gap:1.25rem; text-align:right; flex:none; }
.item-top .nums small { display:block; color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.item-top .nums b { font:800 1.15rem/1.2 var(--display); color:var(--deep); }
.item-top .nums b.low { color:var(--danger); }
.controls { display:grid; gap:.6rem; }
@media (min-width:40rem) { .controls { grid-template-columns:1.25fr 1fr; } }
.ctl { display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; }
.ctl input { flex:1 1 5.5rem; width:auto; min-width:0; min-height:2.4rem; padding:.45rem .6rem; }
.ctl .btn { min-height:2.4rem; }
.item-foot { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:.75rem; }
details.more > summary { list-style:none; cursor:pointer; color:var(--danger); font-weight:600; font-size:.88rem; display:inline-flex; align-items:center; gap:.35rem; }
details.more > summary::-webkit-details-marker { display:none; }
details.more[open] > summary { margin-bottom:.5rem; }
.toast { display:flex; gap:.7rem; align-items:flex-start; padding:.9rem 1rem; border-radius:var(--r); margin-bottom:1.25rem; font-weight:600;
         background:var(--ok-soft); color:var(--deep); border:1px solid var(--brand-line); box-shadow:var(--sh-1); }
.toast .i { color:var(--brand); margin-top:.1rem; }
.toast.bad { background:var(--danger-soft); color:#7a1a12; border-color:#f3c6c1; } .toast.bad .i { color:var(--danger); }
.dropzone { border:2px dashed var(--line-2); border-radius:var(--r-lg); padding:1.75rem 1.25rem; text-align:center; background:var(--surface-2); display:grid; gap:.85rem; justify-items:center; }
.dropzone .i { width:2.5rem; height:2.5rem; color:var(--brand); }
.dropzone input[type=file] { max-width:22rem; background:var(--surface); }
.seg { display:inline-flex; background:var(--surface); border:1px solid var(--line); border-radius:var(--pill); padding:.25rem; gap:.2rem; margin-bottom:1.25rem; }
.seg a { padding:.45rem .9rem; border-radius:var(--pill); text-decoration:none; color:var(--ink-2); font-weight:600; font-size:.9rem; }
.seg a[aria-current] { background:var(--deep); color:#fff; }
.pager { display:flex; gap:.5rem; margin-top:1rem; }

/* ---------------------------------------------------------------- sign-in pages */
.auth { min-height:100vh; display:grid; place-items:center; padding:2rem 1rem;
        background:radial-gradient(circle at 15% 10%, rgba(244,196,48,.22), transparent 35%), radial-gradient(circle at 90% 90%, rgba(27,138,102,.18), transparent 40%), var(--cream); }
.auth-card { width:100%; max-width:26rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-3); padding:2rem 1.75rem; }
.auth-card .logo { margin-bottom:1.5rem; }
.auth-card h1 { font-size:1.5rem; }
.auth-card .btn { width:100%; margin-top:.5rem; }
.auth-note { text-align:center; margin-top:1.25rem; font-size:.86rem; color:var(--muted); max-width:26rem; }

/* ---------------------------------------------------------------- small helpers the pages share */
form.toolbar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
form.toolbar select, form.toolbar .fit, .ctl .fit, .ctl select { width:auto; flex:0 1 auto; }
.actions-row { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.gap-top { margin-top:.85rem; }
.cards-2 { display:grid; gap:1.25rem; }
.cards-2 { margin-bottom:1.25rem; } .cards-2 > .panel, .list-gap > .panel { margin-bottom:0; }
@media (min-width:60rem) { .cards-2 { grid-template-columns:1fr 1fr; } }
.panel.narrow { max-width:34rem; }
.kpi .value.small-value { font-size:1.2rem; }
.side .who form { margin-top:.8rem; }
.pop form { margin:0; }
.pop .btn.block { justify-content:flex-start; }
.status code { word-break:break-all; }
.rows li b { font-variant-numeric:tabular-nums; }
.s-card .more-link { margin-top:.5rem; display:inline-flex; align-items:center; gap:.3rem; color:var(--brand-2); font-weight:700; font-size:.9rem; }
@media (max-width:33.99rem) {           /* phones: a result is a row, so more of them fit on the screen */
  .grid > .p-card { display:grid; grid-template-columns:6.25rem 1fr; }
  .grid > .p-card .p-media { aspect-ratio:1; margin:.85rem 0 .85rem .85rem; border-radius:var(--r); overflow:hidden; align-self:start; }
  .grid > .p-card .p-media .badge { display:none; }
  .grid > .p-card .p-media .ph { font-size:1.6rem; }
  .grid > .p-card .p-body { padding:.85rem; }
  .grid > .p-card .p-body .btn { min-height:2.5rem; }
}
.after-profile { margin-top:1.25rem; }
.kpi { align-content:start; }
.side .logo svg, .site-footer .logo svg { box-shadow:0 0 0 1.5px rgba(255,255,255,.22); }
.ctl.stock { display:grid; grid-template-columns:repeat(3, 1fr); }
.ctl.stock input { grid-column:1 / -1; }
@media (min-width:26rem) { .ctl.stock { grid-template-columns:minmax(4.5rem, 1fr) auto auto auto; } .ctl.stock input { grid-column:auto; } }
.ctl.stock .btn { padding-inline:.55rem; white-space:nowrap; gap:.3rem; }
label.mini { display:grid; gap:.25rem; font-size:.8rem; color:var(--muted); flex:1 1 9rem; }
label.mini input { min-height:2.4rem; }
.ctl label.check { flex:0 0 auto; }
form.toolbar .check { flex:0 1 auto; }
@media (max-width:40rem) { .hide-sm { display:none; } }
.status.warn { background:var(--warn-soft); color:#5f3c00; border:1px solid #f1dca6; } .status.warn .i { color:var(--warn); }
.item-top .grow { flex:1; min-width:0; }
.thumb { width:3.25rem; height:3.25rem; border-radius:12px; object-fit:cover; flex:none; background:linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); }
span.thumb { display:grid; place-items:center; font:800 1rem/1 var(--display); color:var(--brand-2); }
details.more.photo > summary { color:var(--brand-2); }
.item-foot details[open] { flex-basis:100%; }
.actions-row.center { justify-content:center; margin-top:1rem; }
.two { display:grid; gap:0 1rem; grid-template-columns:1fr 1fr; }
.choices { display:grid; gap:.5rem; }
.choice { display:flex; align-items:center; gap:.6rem; padding:.7rem .85rem; border:1.5px solid var(--line); border-radius:var(--r); cursor:pointer; font-weight:600; }
.choice:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); }
.choice input { accent-color:var(--brand); width:1.1rem; height:1.1rem; }
.ctl .pin { max-width:8rem; }
textarea { width:100%; min-height:7rem; padding:.6rem .8rem; border:1.5px solid var(--line-2); border-radius:var(--r-sm); font:inherit; color:var(--ink); background:var(--surface); resize:vertical; }
textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(27,138,102,.15); }
.label-like { font-weight:600; font-size:.92rem; color:var(--ink-2); }
.item-top .nums b.small-b { font-size:.95rem; font-family:var(--text); }
.lead-text { margin:0; font-size:1rem; }
label.mini input { font-weight:400; font-size:1rem; color:var(--ink); }

/* ---------------------------------------------------------------- guides (/developers/pos) */
.guide { display:grid; gap:1.25rem; margin-top:.5rem; }
@media (min-width:60rem) { .guide { grid-template-columns:15.5rem minmax(0, 1fr); align-items:start; } .guide-toc { position:sticky; top:5.25rem; } }
.guide-toc { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1rem 1.15rem; font-size:.9rem; box-shadow:var(--sh-1); }
.guide-toc b { color:var(--deep); font-family:var(--display); }
.guide-toc ul { margin:.6rem 0 0; padding:0; list-style:none; display:grid; gap:.45rem; }
.guide-toc a { color:var(--ink-2); text-decoration:none; } .guide-toc a:hover { color:var(--brand-2); text-decoration:underline; }
.guide-body { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1.25rem; min-width:0; box-shadow:var(--sh-1); }
@media (min-width:48rem) { .guide-body { padding:2rem 2.25rem; } }
.guide-body > p:first-child { font-size:1.06rem; }
.guide-body h2 { font-size:1.3rem; margin:2.25rem 0 .8rem; padding-top:1.5rem; border-top:1px solid var(--line); scroll-margin-top:5.5rem; }
.guide-body h3 { margin-top:1.5rem; scroll-margin-top:5.5rem; }
.guide-body p, .guide-body li { color:var(--ink-2); }
.guide-body ul, .guide-body ol { padding-left:1.3rem; margin:0 0 1rem; }
.guide-body li { margin:.4rem 0; } .guide-body li p { margin:0 0 .5rem; }
.guide-body .table-wrap { border:1px solid var(--line); border-radius:var(--r); margin:1rem 0 1.25rem; }
.guide-body table { font-size:.9rem; } .guide-body td { vertical-align:top; }
.guide-body tbody tr:hover td { background:transparent; }
.code-wrap { position:relative; margin:1rem 0 1.25rem; }
pre.code { margin:1rem 0 1.25rem; background:#0b2420; color:#dcefe8; border-radius:var(--r); padding:1rem 1.1rem; overflow-x:auto;
           font:500 .84rem/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; -webkit-overflow-scrolling:touch; }
.code-wrap pre.code { margin:0; padding-top:2.1rem; }
pre.code code { background:none; color:inherit; padding:0; font:inherit; border-radius:0; }
.code-wrap pre.code[data-lang]::before { content:attr(data-lang); position:absolute; top:.6rem; left:1.1rem; font:700 .68rem/1 var(--text);
                                         text-transform:uppercase; letter-spacing:.08em; color:#7fa597; }
.code-wrap .copy { position:absolute; top:.4rem; right:.45rem; background:rgba(255,255,255,.08); color:#dcefe8; border:1px solid rgba(255,255,255,.18);
                   border-radius:var(--pill); font:700 .74rem/1 var(--text); padding:.4rem .7rem; cursor:pointer; }
.code-wrap .copy:hover { background:rgba(255,255,255,.16); }
.page-top .notice { max-width:48rem; }
.guide-body table { min-width:34rem; }                     /* on a phone a wide table scrolls sideways instead of squashing */
.guide-body td code, .guide-body th code { white-space:nowrap; }
