/* Admin: same palette as the shop, denser and built for quick daily use on a phone at the counter. */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --sunk: #f2f2f2;
  --line: #e3e3e3;
  --ink: #1b1b1b;
  --ink-2: #333333;
  --muted: #5f5f5f;
  --kumkum: #c62828;
  --kumkum-dark: #a31f1f;
  --kumkum-soft: #fdecec;
  --marigold: #f08c00;
  --marigold-soft: #fff4e2;
  --tulsi: #4a7c00;
  --tulsi-soft: #eef6e2;
  --amber: #a15c00;
  --amber-soft: #fff3d6;
  --blue: #2d5f9a;
  --blue-soft: #e5eef9;
  --display: "Figtree", "Noto Sans Kannada", "Segoe UI", system-ui, sans-serif;
  --deva: "Noto Sans Kannada", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --body: "Figtree", "Noto Sans Kannada", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); }
h2 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--kumkum); outline-offset: 2px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); border-top: 3px solid var(--kumkum); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: var(--ink); padding: 0 6px; line-height: 1.15; }
.side .brand small { display: block; font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--kumkum); color: #fff; display: grid; place-items: center; font-family: var(--deva); font-size: 1.25rem; line-height: 1; font-weight: 600; }
.side nav { display: grid; gap: 2px; margin-top: 18px; }
.side a, .side button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #3a3a3a; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-weight: 500; }
.side a:hover, .side button:hover { background: var(--sunk); color: var(--ink); }
.side a.on { background: var(--kumkum-soft); color: var(--kumkum); font-weight: 700; }
.side .count { margin-left: auto; background: var(--kumkum); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 0 7px; min-width: 22px; text-align: center; }
.side .bottom { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 36px) 48px; display: grid; gap: 22px; align-content: start; max-width: 1640px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-top { display: none; }
.tabbar { display: none; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; align-content: start; }
  .side { display: none; }
  .mobile-top { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); color: var(--ink); border-top: 3px solid var(--kumkum); box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .mobile-top .brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-top .brand-mark { width: 32px; height: 32px; font-size: 1.05rem; border-radius: 8px; }
  .mobile-top a { color: var(--kumkum); font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
  .main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 18px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); box-shadow: 0 -4px 16px rgba(36,26,44,.06); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--kumkum); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--kumkum); color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 5px; min-width: 18px; text-align: center; }
}

/* ---------- building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head a { color: var(--kumkum); font-weight: 600; text-decoration: none; font-size: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--kumkum); color: #fff; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--kumkum-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: #cfcfcf; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--ink-2); }
.btn.green { background: var(--tulsi); }
.btn.green:hover { background: #3c6600; }
.btn.danger { background: var(--surface); color: var(--kumkum); border-color: #f0c2c2; }
.btn.danger:hover { background: var(--kumkum-soft); }
.btn.sm { padding: 6px 11px; font-size: .88rem; border-radius: 8px; }
.btn.lg { padding: 12px 18px; font-size: 1rem; }
.btn.block { width: 100%; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px; cursor: pointer; display: inline-flex; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }

.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input { width: 100%; border: 1px solid #cfcfcf; background: var(--surface); border-radius: 8px; padding: 9px 12px; outline: none; min-width: 0; }
.input:focus { border-color: var(--kumkum); box-shadow: 0 0 0 3px var(--kumkum-soft); }
textarea.input { resize: vertical; min-height: 90px; }
select.input { padding-right: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--kumkum); flex: none; }
.check span { display: grid; }
.check small { color: var(--muted); font-size: .85rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--tulsi); }
.switch input:checked::after { transform: translateX(18px); }
.error-text { color: var(--kumkum); font-weight: 500; font-size: .9rem; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; width: fit-content; }
.chip.in, .chip.ok { background: var(--tulsi-soft); color: var(--tulsi); }
.chip.low, .chip.wait { background: var(--amber-soft); color: var(--amber); }
.chip.out, .chip.bad { background: var(--kumkum-soft); color: var(--kumkum); }
.chip.info { background: var(--blue-soft); color: var(--blue); }
.chip.plain { background: var(--sunk); color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 14px 16px; display: grid; gap: 2px; text-decoration: none; position: relative; overflow: hidden; }
.kpi b { font-size: clamp(1.4rem, 3vw, 1.8rem); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.alert { border-color: #f0cf8a; background: linear-gradient(var(--amber-soft), var(--surface)); }
.kpi.alert b { color: var(--amber); }
.kpi.bad b { color: var(--kumkum); }
a.kpi:hover { border-color: var(--ink); }

.setup { display: grid; gap: 8px; background: var(--marigold-soft); border: 1px solid #f3d29a; border-radius: 14px; padding: 14px 18px; }
.setup ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.setup a { color: var(--kumkum); font-weight: 600; }

.table-wrap { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
td.r, th.r { text-align: right; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--sunk); }
.pos { color: var(--tulsi); font-weight: 600; }
.neg { color: var(--kumkum); font-weight: 600; }

.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.bar { display: grid; align-content: end; justify-items: center; gap: 4px; height: 100%; position: relative; }
.bar i { display: block; width: 100%; max-width: 44px; background: var(--marigold); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar.today i { background: var(--kumkum); }
.bar span { position: absolute; top: -18px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: .75rem; color: var(--muted); }

/* ---------- orders ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.tabs button { border: 1px solid #cfcfcf; background: var(--surface); border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--kumkum); color: #fff; border-color: var(--kumkum); }
.tabs button b { background: var(--kumkum-soft); color: var(--kumkum); border-radius: 999px; padding: 0 6px; font-size: .75rem; }
.tabs button[aria-selected="true"] b { background: #fff; }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; text-align: left; width: 100%; }
.order-row:hover { border-color: var(--ink); }
.order-row.new { border-left: 4px solid var(--marigold); }
.order-row .who { display: grid; min-width: 0; }
.order-row .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row .who span { color: var(--muted); font-size: .85rem; }
.order-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 640px) {
  .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .order-row .code { grid-column: 1; }
  .order-row .who { grid-column: 1 / -1; grid-row: 2; }
  .order-row .st { grid-column: 2; grid-row: 1; justify-self: end; }
  .order-row .amt { grid-column: 2; grid-row: 2; align-self: end; }
}
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid #cfcfcf; background: var(--surface); border-radius: 8px; padding: 0 14px; min-width: 0; flex: 1 1 220px; max-width: 360px; }
.search-box input { border: 0; outline: none; background: none; padding: 8px 0; width: 100%; min-width: 0; }
.search-box .icon { color: var(--muted); }

/* ---------- drawer & dialog ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40; display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { background: var(--bg); width: min(560px, 100%); height: 100%; overflow-y: auto; box-shadow: var(--shadow); display: grid; align-content: start; animation: slide .2s ease-out; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 14px 18px; }
.drawer-body { padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 18px; display: grid; gap: 16px; }
.modal-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 16px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .modal-wrap { place-items: end stretch; padding: 0; } .modal { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.utr-box { display: grid; gap: 6px; background: var(--amber-soft); border: 1px solid #f0cf8a; border-radius: 12px; padding: 14px; }
.utr-box .mono { font-size: 1.35rem; letter-spacing: .08em; word-break: break-all; }
.utr-box ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; font-size: .9rem; }
.ss-thumb { width: 120px; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.action-row .btn { flex: 1 1 160px; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.items-list { display: grid; gap: 8px; }
.items-list div { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- products ---------- */
.prod-list { display: grid; gap: 10px; }
.prod-row { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; }
.prod-row:hover { border-color: var(--ink); }
.prod-row.hidden-prod { opacity: .6; }
.thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--marigold-soft); display: grid; place-items: center; font-family: var(--deva); color: var(--kumkum); font-size: 1.4rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-row .name { display: grid; min-width: 0; }
.prod-row .name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-row .name span { color: var(--muted); font-size: .85rem; }
.vchips { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 700px) {
  .prod-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 4px 12px; }
  .thumb { width: 48px; height: 48px; grid-row: span 2; }
  .prod-row .vchips { grid-column: 2 / -1; grid-row: 2; }
}
.variant-table { display: grid; gap: 10px; }
.variant-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) repeat(4, minmax(0, .8fr)) auto; gap: 8px; align-items: end; padding: 12px; background: var(--sunk); border-radius: 10px; }
.variant-row .field > label { font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 1100px) {
  .variant-row { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .variant-row .v-label { grid-column: span 2; }
  .variant-row .v-label + .v-label { grid-column: span 3; }
}
@media (max-width: 760px) {
  .variant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-row .v-label + .v-label { grid-column: 1 / -1; }
  .variant-row .v-label { grid-column: 1 / -1; }
  .variant-row .v-remove { grid-column: 1 / -1; justify-self: end; }
}
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { width: 104px; height: 104px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--sunk); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tools { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; gap: 4px; }
.photo .tools button { background: rgba(255,255,255,.92); border: 0; border-radius: 6px; padding: 3px; cursor: pointer; display: inline-flex; }
.photo .main-tag { position: absolute; top: 4px; left: 4px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.photo-add { width: 104px; height: 104px; border-radius: 10px; border: 1.5px dashed #c4c4c4; display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: .82rem; text-align: center; background: var(--surface); }
.photo-add:hover { border-color: var(--kumkum); color: var(--kumkum); }
.sticky-save { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(transparent, var(--bg) 30%); padding-top: 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 820px) { .sticky-save { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- stock ---------- */
.stock-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stock-row:last-child { border-bottom: 0; }
.stock-row .name { display: grid; min-width: 0; }
.stock-row .name span { color: var(--muted); font-size: .85rem; }
.stock-row .count { font-size: 1.3rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.stock-row .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .stock-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stock-row .btns { grid-column: 1 / -1; justify-content: flex-start; }
}
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.seg label:has(input:checked) { border-color: var(--kumkum); background: var(--kumkum-soft); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { font-size: .95rem; }
.seg span { font-size: .8rem; color: var(--muted); }
.big-qty { display: flex; align-items: center; gap: 10px; }
.big-qty button { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.big-qty input { text-align: center; font-size: 1.3rem; font-weight: 700; width: 100px; }

/* ---------- categories & banners ---------- */
.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.glyph { width: 40px; height: 40px; border-radius: 50%; background: var(--marigold-soft); color: var(--kumkum); display: grid; place-items: center; font-family: var(--deva); font-size: 1.15rem; }
.row-tools { display: flex; gap: 6px; }
.banner-prev { border-radius: 12px; background: #2a1d14; color: #fff; padding: 16px 18px; display: grid; gap: 4px; position: relative; overflow: hidden; min-height: 110px; align-content: end; isolation: isolate; }
.banner-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-prev.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,12,26,.85), rgba(20,12,26,.15)); }
.banner-prev small { color: #ffc46b; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.banner-prev b { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.banner-prev span { opacity: .85; font-size: .9rem; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); border-top: 3px solid var(--kumkum); }
.login form { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.login .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.3rem; line-height: 1.2; }

.empty { text-align: center; padding: 36px 16px; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.skel { background: linear-gradient(90deg, var(--sunk), #e6e6e6, var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; z-index: 70; max-width: min(92vw, 460px); text-align: center; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--kumkum); }
@media (max-width: 820px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Kannada text ---------- */
.kn-tag.en { color: var(--muted); background: var(--sunk); }
.kn-missing { color: var(--amber); font-size: .8rem; }
.prod-row .name span[lang="kn"], .list-row span[lang="kn"] { font-size: .9rem; }
.kn-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--kumkum); background: var(--kumkum-soft); border-radius: 4px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; letter-spacing: 0; text-transform: none; }
[lang="kn"] { line-height: 1.6; }

/* Login & security */
.stack-sm { display: grid; gap: 12px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.codes { margin: 0; padding: 12px 12px 12px 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; background: var(--sunk); border-radius: 10px; font-size: 1rem; user-select: all; }
