/* Sathi — mistri lead app. Phone first, outdoor light, big touch targets, icon + word everywhere. */
:root {
    --st-ink: #0f1f1c;
    --st-muted: #4b6460;
    --st-line: #cfe3de;
    --st-bg: #eef6f4;
    --st-card: #fff;
    --st-main: #0f766e;
    --st-main-dark: #0b5a54;
    --st-main-soft: #dff2ee;
    --st-ok: #15803d;
    --st-ok-soft: #dcfce7;
    --st-warn: #a16207;
    --st-warn-soft: #fef3c7;
    --st-bad: #b91c1c;
    --st-bad-soft: #fee2e2;
    --st-info: #1d4ed8;
    --st-info-soft: #dbeafe;
    --st-due: #b45309;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--st-bg); color: var(--st-ink); font: 17px/1.5 'KX Bangla', 'Inter', system-ui, sans-serif; }
body.st-in { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: inherit; }
::selection { background: var(--st-main); color: #fff; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.st-num, .st-money, .st-figs b { font-variant-numeric: tabular-nums; }

/* Top bar */
.st-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--st-main); color: #fff; }
.st-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; text-decoration: none; }
.st-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.16); }
.st-top-r { display: flex; gap: 4px; align-items: center; }
.st-top-r form { margin: 0; }
.st-lang { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.st-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.st-lang:active, .st-icon-btn:active { background: rgba(255,255,255,.16); }

.st-main { max-width: 560px; margin: 0 auto; padding: 14px 14px 20px; }
.st-h { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.3; margin: 4px 0 14px; }
.st-h .st-i { color: var(--st-main); }
.st-h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 10px; }
.st-h2 .st-i { color: var(--st-main); }

/* Cards and sections */
.st-card { display: block; background: var(--st-card); border: 1px solid var(--st-line); border-radius: 16px; padding: 16px; margin-bottom: 14px; text-decoration: none; }
.st-sec { margin-top: 6px; }
.st-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; }
.st-sec-h h2 { font-size: 18px; margin: 0; }
.st-shop h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 12px; }
.st-shop h3 .st-i { color: var(--st-main); }

/* The one big action */
.st-big { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 18px; border-radius: 18px; background: var(--st-main); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(15,118,110,.28); }
.st-big:active { background: var(--st-main-dark); transform: translateY(1px); }
.st-big-i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--st-main); }
.st-big-i .st-i { width: 32px; height: 32px; }
.st-big b { display: block; font-size: 22px; line-height: 1.25; }
.st-big small { display: block; font-size: 15px; opacity: .9; }
.st-big > span:nth-child(2) { flex: 1; }
.st-big-go { width: 28px; height: 28px; opacity: .85; }

/* Hero (login / join) */
.st-hero { text-align: center; padding: 22px 8px 18px; }
.st-hero-i { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--st-main); color: #fff; margin-bottom: 10px; }
.st-hero-i .st-i { width: 40px; height: 40px; }
.st-hero h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.3; }
.st-hero p { margin: 0; color: var(--st-muted); }

/* Forms */
.st-lbl { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-weight: 700; font-size: 16px; }
.st-lbl:first-child, .st-card > .st-contact + .st-lbl { margin-top: 0; }
.st-lbl .st-i { color: var(--st-main); }
input, select, textarea { display: block; width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 18px; color: var(--st-ink); border: 2px solid var(--st-line); border-radius: 12px; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--st-main); outline: none; box-shadow: 0 0 0 3px var(--st-main-soft); }
input::placeholder, textarea::placeholder { color: #8aa39e; }
.st-pin { font-size: 28px; letter-spacing: .5em; text-align: center; font-weight: 700; }
.st-inrow { display: flex; gap: 8px; align-items: stretch; }
.st-inrow > input, .st-inrow > textarea { flex: 1; min-width: 0; }
.st-mic { flex: none; width: 54px; border: 2px solid var(--st-main); border-radius: 12px; background: var(--st-main-soft); color: var(--st-main); cursor: pointer; display: grid; place-items: center; }
.st-mic .st-i { width: 26px; height: 26px; }
.st-mic.is-on { background: var(--st-bad); border-color: var(--st-bad); color: #fff; animation: st-pulse 1s ease-out infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(185,28,28,.45); } 100% { box-shadow: 0 0 0 12px rgba(185,28,28,0); } }
.st-hint { font-size: 14px; color: var(--st-muted); margin: 6px 0 0; }
.st-contact { margin: 0 0 6px; }
.st-shopline { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; color: var(--st-muted); }
.st-shopline .st-i { color: var(--st-main); }

.st-shops { border: 1px solid var(--st-line); margin: 0 0 14px; }
.st-shops legend { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 0 6px; }
.st-pick { display: block; margin: 0 0 8px; cursor: pointer; }
.st-pick:last-child { margin-bottom: 0; }
.st-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-pick span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 2px solid var(--st-line); border-radius: 12px; font-weight: 600; }
.st-pick input:checked + span { border-color: var(--st-main); background: var(--st-main-soft); color: var(--st-main-dark); }
.st-pick input:focus-visible + span { outline: 3px solid #f59e0b; outline-offset: 2px; }

.st-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.st-extras > :only-child { grid-column: 1 / -1; }
.st-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px; text-align: center; font: inherit; font-size: 15px; font-weight: 600; color: var(--st-main-dark); background: #fff; border: 2px dashed var(--st-line); border-radius: 14px; cursor: pointer; }
.st-tile .st-i { width: 32px; height: 32px; color: var(--st-main); }
.st-tile input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.st-tile.is-done { border-style: solid; border-color: var(--st-ok); background: var(--st-ok-soft); color: var(--st-ok); }
.st-tile.is-done .st-i { color: var(--st-ok); }
.st-tile[hidden] { display: none; }

/* Buttons */
.st-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px; margin-top: 12px; font: inherit; font-weight: 700; color: #fff; background: var(--st-main); border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; }
.st-btn:active { background: var(--st-main-dark); }
.st-btn-light { background: var(--st-main-soft); color: var(--st-main-dark); }
.st-btn-light:active { background: #c7e8e1; }
.st-btn-big { min-height: 62px; font-size: 20px; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,118,110,.28); }
.st-btn-big .st-i { width: 26px; height: 26px; }
.st-btn[disabled] { opacity: .6; cursor: wait; }
.st-link { color: var(--st-main); font-weight: 700; text-decoration: none; padding: 6px 2px; }
.st-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -4px 0 6px; color: var(--st-main); font-weight: 700; text-decoration: none; }
.st-muted { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--st-muted); font-size: 15px; margin: 10px 0 0; }

/* Messages */
.st-ok, .st-err { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.st-ok { background: var(--st-ok-soft); color: #14532d; }
.st-err { background: var(--st-bad-soft); color: #7f1d1d; }
.st-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--st-muted); padding: 24px 16px; }
.st-empty > .st-i { width: 40px; height: 40px; color: #9bc0b9; }
.st-empty .st-btn { width: auto; padding: 12px 20px; }

/* Figures: icon, number, word */
.st-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 0; }
.st-fig { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--st-bg); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.st-fig-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--st-main); margin-bottom: 2px; }
.st-fig-i .st-i { width: 18px; height: 18px; }
.st-fig b { font-size: 21px; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.st-fig > span:last-child { font-size: 14px; color: var(--st-muted); line-height: 1.3; }
.st-fig-ok .st-fig-i { color: var(--st-ok); }
.st-fig-due { background: var(--st-warn-soft); }
.st-fig-due .st-fig-i { color: var(--st-due); }
.st-fig-due b { color: var(--st-due); }

/* Rows */
.st-list { padding: 4px 0; }
.st-list .st-h2 { padding: 12px 16px 2px; }
.st-row { display: flex; align-items: center; gap: 12px; }
.st-lrow, .st-pay { padding: 12px 16px; text-decoration: none; min-height: 68px; }
.st-lrow + .st-lrow, .st-pay + .st-pay { border-top: 1px solid var(--st-line); }
.st-lrow:active { background: var(--st-bg); }
.st-grow { flex: 1; min-width: 0; }
.st-grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row small, .st-r small { display: block; color: var(--st-muted); font-size: 14px; }
.st-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.st-money { font-weight: 700; color: var(--st-ok); }
.st-lrow-st { display: block; margin: 3px 0 2px; }
.st-go { color: #9bc0b9; width: 20px; height: 20px; }
.st-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--st-main-soft); color: var(--st-main-dark); font-weight: 700; font-size: 18px; }
.st-av-lg { width: 56px; height: 56px; font-size: 22px; }
.st-av-ok { background: var(--st-ok-soft); color: var(--st-ok); }

/* Status: colour + icon + word */
.st-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; background: #e5efed; color: var(--st-muted); }
.st-badge .st-i { width: 16px; height: 16px; }
.st-new { background: var(--st-info-soft); color: var(--st-info); }
.st-assigned, .st-contacted { background: var(--st-warn-soft); color: var(--st-warn); }
.st-bought { background: var(--st-ok-soft); color: var(--st-ok); }
.st-rejected, .st-not_interested { background: var(--st-bad-soft); color: var(--st-bad); }
.st-status-big { margin: 12px 0 4px; }
.st-status-big .st-badge { font-size: 17px; padding: 8px 14px; }
.st-status-big .st-badge .st-i { width: 20px; height: 20px; }

/* Lead page */
.st-lead h1 { font-size: 22px; margin: 0; line-height: 1.3; }
.st-lead .st-num { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--st-main); font-weight: 700; text-decoration: none; font-size: 18px; }
.st-reason { color: var(--st-bad); font-weight: 600; margin: 8px 0 0; }
.st-quote { background: var(--st-bg); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.st-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.st-note { max-width: 88%; padding: 10px 12px; margin: 0; border-radius: 14px 14px 14px 4px; background: var(--st-bg); }
.st-note-mistri { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--st-main-soft); }
.st-note small { display: block; color: var(--st-muted); font-size: 12px; margin-top: 2px; }

/* Bottom nav */
.st-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: flex-end; background: #fff; border-top: 1px solid var(--st-line); padding: 0 6px env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(15,31,28,.06); }
.st-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 10px 4px 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--st-muted); }
.st-nav a .st-i { width: 26px; height: 26px; }
.st-nav a.on { color: var(--st-main); }
.st-nav .st-nav-add { color: var(--st-main-dark); }
.st-nav-plus { display: grid; place-items: center; width: 60px; height: 60px; margin-top: -24px; border-radius: 50%; background: var(--st-main); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15,118,110,.35); }
.st-nav-plus .st-i { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
    .st-mic.is-on { animation: none; }
    .st-big:active { transform: none; }
}
@media (min-width: 600px) {
    .st-figs { grid-template-columns: repeat(3, 1fr); }
}
