/* KiranaBahi — big, calm, WhatsApp-like. Base 20px, option labels 28px, tap targets >= 64px. Do not shrink type. */
:root { --g: #075e54; --g2: #128c7e; --lg: #25d366; --bg: #f0f2f5; --card: #fff; --ink: #111b21; --mut: #54656f; --line: #e3e6e8; --red: #c62828; --amber: #b26a00; --green: #1b7f3b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 20px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; font-size: 20px; line-height: 1.35; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 1.4em; height: 1.4em; flex: none; }
.boot { padding: 40px; text-align: center; }
/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 8px 12px; background: var(--g); color: #fff; }
.top .ttl { flex: 1; min-width: 0; } .t1 { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 { font-size: 16px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .t2 small { font-size: 14px; }
.logo { width: 48px; height: 48px; border-radius: 50%; background: var(--lg); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.who { background: rgba(255,255,255,.18); border-radius: 20px; padding: 6px 12px; font-size: 16px; font-weight: 600; }
.iconbtn { min-width: 52px; min-height: 52px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 50%; }
.iconbtn.sm { min-width: 44px; min-height: 44px; color: var(--mut); }
.demo-ribbon { background: #fff3cd; color: #6b4e00; text-align: center; font-size: 16px; font-weight: 700; padding: 6px; border-bottom: 1px solid #f0d98c; }
.body { padding: 14px 14px 120px; max-width: 720px; margin: 0 auto; }
.body.center { display: flex; flex-direction: column; gap: 16px; }
/* four big options */
.four { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.big-opt { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 88px; border: 0; border-radius: 18px; background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.12); font-size: 28px; font-weight: 700; color: var(--g); transition: transform .08s; }
.big-opt .ic { width: 42px; height: 42px; color: var(--g2); }
.big-opt:active { transform: scale(.97); background: #e7f5ef; }
.big-opt.alt { background: var(--g); color: #fff; } .big-opt.alt .ic { color: #fff; }
.hero { text-align: center; padding: 10px 0; } .hero h1 { font-size: 28px; margin: 8px 0; } .hero p { color: var(--mut); margin: 0; } .hero-ic { width: 90px; height: 90px; color: var(--g2); }
/* cards */
.card { display: block; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 16px; padding: 14px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.pullcard { border-left: 8px solid var(--amber); } .pullcard.ok { border-left-color: var(--lg); }
.pc-h { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 6px; } .pc-h .ic { color: var(--amber); } .pullcard.ok .pc-h .ic { color: var(--green); }
.pc-l { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pc-l small { grid-column: 1 / -1; color: var(--mut); font-size: 17px; } .pc-l.big b { font-size: 22px; }
.pc-f { color: var(--g2); font-weight: 600; padding-top: 8px; }
.sec-h { font-size: 18px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; margin: 18px 4px 8px; } .sec-h.red { color: var(--red); }
.city-h { font-size: 20px; font-weight: 700; margin: 12px 4px 6px; color: var(--g); }
/* chat-like rows */
.list { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.1); margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: left; }
.row:last-child { border-bottom: 0; } .row:active { background: #eef6f3; }
.av { width: 52px; height: 52px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.ic-av { background: #e1f3ec; color: var(--g); } .ic-av .ic { width: 28px; height: 28px; }
.rmain { flex: 1; min-width: 0; } .rt { font-size: 22px; font-weight: 600; } .rs { font-size: 17px; color: var(--mut); }
.rr { text-align: right; flex: none; } .ra { font-size: 20px; font-weight: 700; }
.secrow .rt { font-size: 23px; } .chev { font-size: 32px; color: var(--mut); }
.unit-row { min-height: 68px; } .unit-row.sel { background: #e7f5ef; } .unit-row.add .rt { color: var(--g2); display: flex; align-items: center; gap: 8px; }
.okc { color: var(--green); width: 30px; height: 30px; }
.audit { font-size: 15px; color: #7a8a93; }
.badge { display: inline-block; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 12px; }
.badge.red { background: #fde2e1; color: var(--red); } .badge.amber { background: #fff1d6; color: var(--amber); } .badge.green { background: #dcf5e3; color: var(--green); }
.green { color: var(--green); } .red { color: var(--red); }
/* search */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 32px; padding: 0 18px; min-height: 64px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.search .ic { color: var(--mut); } .search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 22px; min-height: 60px; }
.empty { padding: 20px; text-align: center; color: var(--mut); }
.linkbtn { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--g2); font-weight: 700; min-height: 64px; padding: 0 8px; margin-bottom: 6px; }
/* forms */
.fld { display: block; margin-bottom: 14px; } .fld > span { display: block; font-size: 18px; color: var(--mut); margin-bottom: 6px; font-weight: 600; }
.fld small { display: block; color: var(--mut); font-size: 16px; margin-top: 4px; }
.fld input:not([type=checkbox]):not([type=file]) { width: 100%; min-height: 64px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; }
.fld input:focus { outline: 0; border-color: var(--g2); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 64px; font-size: 20px; } .check input { width: 28px; height: 28px; }
.pickbtn, .unitbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 64px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; font-weight: 600; text-align: left; }
.pickbtn .ic, .unitbtn .ic { color: var(--g2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.seg button { flex: 1 1 auto; min-height: 64px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 20px; font-weight: 600; }
.seg button.on { background: var(--g); border-color: var(--g); color: #fff; }
.secondary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; border: 2px solid var(--g2); border-radius: 14px; background: #fff; color: var(--g); font-size: 22px; font-weight: 700; }
.secondary.big { min-height: 76px; margin-bottom: 12px; border-style: dashed; }
.hint { color: var(--mut); font-size: 17px; margin: 4px 0 10px; }
.note { background: #e7f5ef; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; } .note.ok .ic { color: var(--green); }
.warn { background: #fde2e1; color: var(--red); border-radius: 10px; padding: 8px 12px; margin: 6px 0; font-size: 18px; }
/* lines */
.lines { background: var(--card); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.line { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; border-bottom: 1px solid var(--line); min-height: 72px; }
.line.total { background: #f7faf9; border-radius: 0 0 16px 16px; border-bottom: 0; } .lmain { flex: 1; min-width: 0; } .lamt { font-weight: 700; font-size: 21px; }
.editor { border: 2px solid var(--g2); }
/* primary bar */
.pbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 4; }
.primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 692px; margin: 0 auto; min-height: 72px; border: 0; border-radius: 36px;
  background: var(--g2); color: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.primary.inline { margin-top: 8px; border-radius: 14px; }
.primary.pressed { animation: press .35s ease; } .primary:disabled { opacity: .8; }
@keyframes press { 0% { transform: scale(1); } 35% { transform: scale(.94); background: var(--g); } 100% { transform: scale(1); } }
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px; background: #1f2c34; color: #fff;
  padding: 14px 24px; border-radius: 30px; font-size: 22px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: opacity .4s; max-width: 90vw; }
.toast .ic { color: var(--lg); } .toast.err { background: var(--red); } .toast.out { opacity: 0; }
/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; } .sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; max-width: 720px; margin: 0 auto; }
.sheet-h { display: flex; align-items: center; padding: 10px 10px 6px 18px; } .sheet-t { flex: 1; font-size: 24px; font-weight: 700; }
.sheet-b { overflow: auto; padding: 4px 14px 24px; }
/* tables / tiles */
.tbl-wrap { overflow-x: auto; background: var(--card); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 18px; } .tbl th, .tbl td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--mut); font-size: 16px; } .tbl tr.short td:first-child { color: var(--red); font-weight: 700; }
.balcard { text-align: center; } .bal-main { font-size: 36px; font-weight: 800; } .bal-main small { font-size: 20px; }
.lr { display: flex; gap: 8px; margin-top: 10px; } .lr > div { flex: 1; background: #f5f7f8; border-radius: 12px; padding: 8px; } .lr small { display: block; color: var(--mut); font-size: 15px; font-weight: 700; } .lr b small { font-size: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile { background: var(--card); border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); } .tile small { display: block; color: var(--mut); font-size: 16px; } .tile b { font-size: 22px; }
.tile.green b { color: var(--green); } .tile.red b { color: var(--red); } .tile.amber b { color: var(--amber); }
.staffcard .sc-h { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 8px; } .staffcard .seg button { font-size: 18px; }
.syncline { text-align: center; color: var(--mut); font-size: 16px; padding: 10px; }
/* WhatsApp preview */
.wa-bg { background: #e5ddd5; min-height: calc(100vh - 68px); max-width: none; }
.wa-chat { display: flex; justify-content: flex-end; padding: 8px 0 16px; }
.wa-bubble { background: #dcf8c6; border-radius: 12px 0 12px 12px; padding: 10px 12px 6px; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
.wa-bubble pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 19px; } .wa-time { text-align: right; font-size: 14px; color: var(--mut); }
/* print preview on screen */
.printprev { max-width: none; } .preview { overflow-x: auto; background: #777; padding: 10px; border-radius: 12px; }
.preview .paper { margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
#print-root { display: none; }
.pc-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.pullcard { padding: 12px 14px; } .pullcard .pc-h { margin-bottom: 2px; }
.search input::-webkit-search-cancel-button { display: none; }
/* v2 day-loop */
.badge.big { font-size: 18px; padding: 4px 12px; margin-right: 6px; }
.row.struck .rt, .row.struck .ra { text-decoration: line-through; opacity: .6; }
.edit-note { background: #fff4e5; border-left: 6px solid var(--amber); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 18px; }
.dline { padding: 10px 0; border-bottom: 1px solid var(--line); } .dline:last-child { border-bottom: 0; }
.dline.short { background: #fff6f6; margin: 0 -14px; padding: 10px 14px; }
.dl-h { display: flex; justify-content: space-between; font-size: 21px; }
.dl-q { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.dl-q input { width: 120px; min-height: 64px; font-size: 24px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; }
.dl-q .unit { font-size: 22px; font-weight: 700; }
.linkbtn.inline { display: inline-flex; min-height: 48px; padding: 0 6px; margin: 0; }
.secondary.danger, .primary.danger { border-color: var(--red); color: var(--red); } .primary.danger { background: var(--red); color: #fff; }
.row-btns { display: grid; gap: 10px; margin-bottom: 12px; }
.galla { display: flex; align-items: center; justify-content: center; gap: 16px; } .galla small { display: block; color: var(--mut); font-size: 15px; } .galla b { font-size: 24px; } .galla > span { font-size: 28px; color: var(--mut); }
.list.mini { margin-bottom: 8px; } .mrow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; } .mrow small { display: block; color: var(--mut); font-size: 16px; } .mrow b { white-space: nowrap; }
.empty.small { padding: 6px 14px; text-align: left; font-size: 17px; }
.tile small { font-size: 16px; } .tile b small { font-size: 15px; color: var(--mut); font-weight: 600; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.invite-code { font-size: 44px; font-weight: 800; letter-spacing: .25em; text-align: center; padding: 20px 0; font-variant-numeric: tabular-nums; }
.big-num { font-size: 26px; } .tbl td.r { text-align: right; }
html, body { overflow-x: hidden; }
input[type=file] { display: block; width: 100%; max-width: 100%; font-size: 18px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; box-sizing: border-box; }
/* v3: calm Ghar, groups, master, confirm popup, mode switch, desktop */
.demo-ribbon { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.ribbon-btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #b08a1a; background: #fff; color: #5a4000; border-radius: 20px; padding: 4px 12px; min-height: 40px; font-size: 16px; font-weight: 700; }
.ribbon-btn .ic { width: 20px; height: 20px; }
.four { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 8px; }
.four .big-opt { flex-direction: column; gap: 8px; min-height: 132px; padding: 14px 8px; text-align: center; line-height: 1.1; }
.four .big-opt .ic { width: 44px; height: 44px; }
.groups { display: grid; gap: 12px; }
.grp { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.1); overflow: hidden; }
.grp-h { font-size: 17px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px 6px; }
.grp-r { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 22px; font-weight: 600; }
.grp-r:active { background: #eef6f3; } .grp-r .ic { width: 28px; height: 28px; color: var(--g2); }
.grp-r .gl { flex: 1; min-width: 0; } .grp-r .chev { font-size: 28px; color: var(--mut); }
.cnt { font-size: 16px; font-weight: 700; color: var(--mut); background: #eef1f3; border-radius: 12px; padding: 2px 10px; }
.body.ghar .sec-h { margin-top: 14px; }
.sumline { background: var(--card); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mut { color: var(--mut); font-weight: 500; font-size: .8em; }
.addrow { align-items: end; } .addrow .secondary { min-height: 64px; margin-bottom: 14px; }
.inline-units { display: flex; flex-wrap: wrap; gap: 8px; border: 2px solid var(--g2); }
.seg-u { min-height: 56px; padding: 6px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 20px; font-weight: 600; } .seg-u.on { background: var(--g); color: #fff; border-color: var(--g); }
.badge:not(.red):not(.amber):not(.green) { background: #eceff1; color: var(--mut); }
/* confirm popup (before any WhatsApp) */
.modal-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal-wrap .sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
.modal-t { font-size: 22px; font-weight: 700; line-height: 1.3; }
.modal-prev { overflow: auto; background: #e5ddd5; border-radius: 14px; padding: 10px; min-height: 80px; } .modal-prev .wa-bubble { max-width: 100%; margin-left: auto; }
.modal-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; } .modal-btns .primary.inline { margin: 0; min-height: 64px; }
@media (min-width: 700px) { .modal-wrap { align-items: center; } .modal { border-radius: 20px; } }
/* desktop / PC */
@media (min-width: 900px) {
  .body { max-width: 860px; }
  .body.ghar { max-width: 1080px; }
  .four { grid-template-columns: repeat(4, 1fr); } .four .big-opt { min-height: 150px; }
  .groups { grid-template-columns: 1fr 1fr; }
  .body.center { max-width: 640px; }
  .pbar .primary { max-width: 832px; }
}
/* ===== v4: auth, onboarding, wizard, import, salesman ===== */
.google { background: #fff; color: #1f1f1f; border: 2px solid var(--line); font-size: 24px; }
.g-logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 16px; margin: 6px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.soon { opacity: .75; border-style: dashed; } .soon .badge { margin-left: 6px; }
.demo-link { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--mut); text-decoration: underline; font-size: 16px; min-height: 44px; }
.ok-note { background: #dcf5e3; color: var(--green); border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-weight: 600; }
.warnbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff4e5; border-left: 6px solid var(--amber); }
.errc { color: var(--red); } .req { color: var(--red); font-size: 14px; font-weight: 700; margin-left: 6px; }
.firmchip { display: inline-flex; align-items: center; gap: 4px; max-width: 42vw; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 20px; padding: 6px 12px; min-height: 44px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.firmchip .ic { width: 20px; height: 20px; }
.progress { height: 14px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 4px 0 14px; } .progress > div { height: 100%; background: var(--lg); transition: width .3s; }
.chkrow.done .av { background: #dcf5e3; color: var(--green); } .chkrow.skipped .rs { color: var(--amber); } .chkrow.todo .av { background: #fff4e5; color: var(--amber); }
.stepfoot { display: flex; justify-content: center; margin: 12px 0; }
.imp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.imp-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--g); font-size: 18px; font-weight: 700; text-align: center; }
.imp-opt .ic { width: 34px; height: 34px; color: var(--g2); }
.filebtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; border: 2px dashed var(--g2); border-radius: 14px; color: var(--g); font-weight: 700; background: var(--card); }
textarea { width: 100%; min-height: 160px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 20px; background: var(--card); color: var(--ink); }
.imp-sum { display: block; margin: 10px 0; font-size: 18px; line-height: 1.5; }
.tblwrap { overflow: auto; max-height: 60vh; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.imptbl { border-collapse: collapse; width: 100%; font-size: 17px; }
.imptbl th { position: sticky; top: 0; background: var(--g); color: #fff; padding: 8px; text-align: left; white-space: nowrap; font-size: 16px; }
.imptbl td { border-bottom: 1px solid var(--line); padding: 4px; vertical-align: top; min-width: 80px; }
.imptbl td:first-child { min-width: 0; color: var(--mut); padding-top: 12px; }
.imptbl input { width: 100%; min-width: 90px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 18px; }
.imptbl td.err { background: #fde2e1; } .imptbl td.err input { border-color: var(--red); } .imptbl td.warn { background: #fff1d6; }
.imptbl td small { display: block; font-size: 13px; color: var(--red); } .imptbl td.warn small { color: var(--amber); }
.imptbl tr.bad td:first-child { color: var(--red); font-weight: 800; } .imptbl tr.skip { opacity: .6; }
.ostock, .obal { display: flex; flex-direction: column; }
.osrow { display: grid; grid-template-columns: 1fr 120px auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.osrow small, .obrow small { display: block; color: var(--mut); font-size: 15px; } .osrow em { font-style: normal; color: var(--mut); font-size: 16px; }
.osrow input, .obrow input { width: 100%; min-height: 56px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); font-size: 22px; }
.obrow { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; } .obrow details summary { color: var(--g2); font-size: 16px; min-height: 36px; }
.match.done { border: 2px solid var(--green); } .tick { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; } .tick input { width: 32px; height: 32px; flex: none; }
.invcard { text-align: center; } .bigcode { font: 800 40px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 6px; color: var(--g); margin: 8px 0; user-select: all; }
.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 700; } .invrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; } .invrow em { font-style: normal; color: var(--mut); }
.firmcard .fc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 22px; } .acc-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
.mform { display: flex; flex-direction: column; }
.filebtn { position: relative; cursor: pointer; } .filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.ribbon { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; margin: 0 0 10px; padding: 10px 14px; border: 0; border-radius: 14px; text-align: left; font-size: 19px; font-weight: 700; background: #e7f5ef; color: var(--g); }
.ribbon.warn { background: #fde2e1; color: var(--red); border-left: 6px solid var(--red); }
/* ===== dark theme ===== */
html[data-theme=dark] { color-scheme: dark; --g: #00a884; --g2: #25b39e; --bg: #0b141a; --card: #17222a; --ink: #e9edef; --mut: #9aa9b2; --line: #2e3c45; --red: #ff7b72; --amber: #f0b44c; --green: #4cd07d; }
@media (prefers-color-scheme: dark) { html[data-theme=system] { color-scheme: dark; --g: #00a884; --g2: #25b39e; --bg: #0b141a; --card: #17222a; --ink: #e9edef; --mut: #9aa9b2; --line: #2e3c45; --red: #ff7b72; --amber: #f0b44c; --green: #4cd07d; } }

html[data-theme=dark] .fld input:not([type=checkbox]):not([type=file]), html[data-theme=dark] .pickbtn, html[data-theme=dark] .unitbtn, html[data-theme=dark] .seg button, html[data-theme=dark] .secondary, html[data-theme=dark] input[type=file], html[data-theme=dark] .seg-u, html[data-theme=dark] .ribbon-btn, html[data-theme=dark] .dl-q input { background: var(--card); color: var(--ink); }
html[data-theme=dark] .secondary { color: var(--g2); }
html[data-theme=dark] .big-opt { color: var(--ink); }
html[data-theme=dark] .big-opt.alt { background: #005c4b; }
html[data-theme=dark] .seg button.on, html[data-theme=dark] .seg-u.on { background: #005c4b; border-color: #25b39e; color: #fff; }
html[data-theme=dark] .row:active, html[data-theme=dark] .grp-r:active, html[data-theme=dark] .big-opt:active, html[data-theme=dark] .unit-row.sel { background: #1d3a33; }
html[data-theme=dark] .ic-av { background: #1d3a33; color: #7fe0c7; }
html[data-theme=dark] .note, .ribbon { background: #16302a; }
html[data-theme=dark] .warn, html[data-theme=dark] .badge.red, html[data-theme=dark] .imptbl td.err { background: #3a1a1a; }
html[data-theme=dark] .badge.amber, html[data-theme=dark] .imptbl td.warn, html[data-theme=dark] .edit-note, html[data-theme=dark] .warnbox, html[data-theme=dark] .chkrow.todo .av { background: #3a2c12; }
html[data-theme=dark] .badge.green, html[data-theme=dark] .ok-note, html[data-theme=dark] .chkrow.done .av { background: #163823; }
html[data-theme=dark] .badge:not(.red):not(.amber):not(.green), html[data-theme=dark] .cnt, html[data-theme=dark] .lr > div { background: #22313a; color: var(--mut); }
html[data-theme=dark] .line.total { background: #1b2830; }
html[data-theme=dark] .dline.short { background: #2e1a1a; }
html[data-theme=dark] .audit { color: var(--mut); }
html[data-theme=dark] .demo-ribbon { background: #3a2c12; color: #f5d88a; border-color: #5a4518; }
html[data-theme=dark] .ribbon-btn { color: #f5d88a; border-color: #b08a1a; }
html[data-theme=dark] .wa-bg, html[data-theme=dark] .modal-prev { background: #0b141a; }
html[data-theme=dark] .wa-bubble { background: #005c4b; color: #e9edef; }
html[data-theme=dark] .toast { background: #e9edef; color: #111b21; }
html[data-theme=dark] .google { background: #fff; color: #1f1f1f; }
html[data-theme=dark] .imptbl th { background: #005c4b; }
html[data-theme=dark] .bigcode { color: #7fe0c7; }
html[data-theme=dark] .top { background: #1f2c34; }
html[data-theme=dark] .preview { background: #333; }
@media (prefers-color-scheme: dark) {
html[data-theme=system] .fld input:not([type=checkbox]):not([type=file]), html[data-theme=system] .pickbtn, html[data-theme=system] .unitbtn, html[data-theme=system] .seg button, html[data-theme=system] .secondary, html[data-theme=system] input[type=file], html[data-theme=system] .seg-u, html[data-theme=system] .ribbon-btn, html[data-theme=system] .dl-q input { background: var(--card); color: var(--ink); }
html[data-theme=system] .secondary { color: var(--g2); }
html[data-theme=system] .big-opt { color: var(--ink); }
html[data-theme=system] .big-opt.alt { background: #005c4b; }
html[data-theme=system] .seg button.on, html[data-theme=system] .seg-u.on { background: #005c4b; border-color: #25b39e; color: #fff; }
html[data-theme=system] .row:active, html[data-theme=system] .grp-r:active, html[data-theme=system] .big-opt:active, html[data-theme=system] .unit-row.sel { background: #1d3a33; }
html[data-theme=system] .ic-av { background: #1d3a33; color: #7fe0c7; }
html[data-theme=system] .note, .ribbon { background: #16302a; }
html[data-theme=system] .warn, html[data-theme=system] .badge.red, html[data-theme=system] .imptbl td.err { background: #3a1a1a; }
html[data-theme=system] .badge.amber, html[data-theme=system] .imptbl td.warn, html[data-theme=system] .edit-note, html[data-theme=system] .warnbox, html[data-theme=system] .chkrow.todo .av { background: #3a2c12; }
html[data-theme=system] .badge.green, html[data-theme=system] .ok-note, html[data-theme=system] .chkrow.done .av { background: #163823; }
html[data-theme=system] .badge:not(.red):not(.amber):not(.green), html[data-theme=system] .cnt, html[data-theme=system] .lr > div { background: #22313a; color: var(--mut); }
html[data-theme=system] .line.total { background: #1b2830; }
html[data-theme=system] .dline.short { background: #2e1a1a; }
html[data-theme=system] .audit { color: var(--mut); }
html[data-theme=system] .demo-ribbon { background: #3a2c12; color: #f5d88a; border-color: #5a4518; }
html[data-theme=system] .ribbon-btn { color: #f5d88a; border-color: #b08a1a; }
html[data-theme=system] .wa-bg, html[data-theme=system] .modal-prev { background: #0b141a; }
html[data-theme=system] .wa-bubble { background: #005c4b; color: #e9edef; }
html[data-theme=system] .toast { background: #e9edef; color: #111b21; }
html[data-theme=system] .google { background: #fff; color: #1f1f1f; }
html[data-theme=system] .imptbl th { background: #005c4b; }
html[data-theme=system] .bigcode { color: #7fe0c7; }
html[data-theme=system] .top { background: #1f2c34; }
html[data-theme=system] .preview { background: #333; }
}
/* v5: install help */
.inst.first { border: 2px solid var(--g2); }
.istep { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 19px; }
.istep > .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--g2); color: #fff; font-size: 17px; }
#instBtn[hidden] { display: none; }
.legal-links { text-align: center; font-size: 15px; margin: 18px 0 6px; color: var(--mut, #667); } .legal-links a { color: inherit; }
