/* HallDiary — mobile-first, no external fonts or assets.
   Theme: "Modern Heritage" (docs/halldiary-theme-mocks.html, recommended option; docs/theme.md):
   maroon primary + gold accent on warm ivory, with a matching dark palette. Light and dark
   share the same token names; dark follows the OS unless <html data-theme="light|dark"> is set. */
/* Anek (Ek Type, SIL OFL — fonts/OFL.txt): one self-hosted variable file, weights 500–800, Latin + Devanagari.
   Headings and the wordmark only; body text stays on the system font. */
@font-face { font-family: "Anek"; src: url("../fonts/anek.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
:root {
  --bg: #FAF7F2; --card: #FFFFFF; --surface-2: #EFEAE3; --ink: #1F1A17; --muted: #6B625B; --line: #EAE3DA;
  --brand: #7C2D3A; --brand-2: #96394A; --brand-soft: #F4E6E8; --brand-ink: #7C2D3A; --on-brand: #FFFFFF;
  --gold: #C9973A; --gold-soft: #F7EDD9; --gold-ink: #6E4D12;
  --good: #15803D; --good-soft: #E3F3E8; --warn: #B45309; --warn-soft: #FBEEDC; --bad: #B91C1C; --bad-soft: #FBE5E5; --on-status: #FFFFFF;
  --tent: #B45309; --conf: #15803D; --blk: #8A8A8A; --comp: #6B7280; --comp-soft: #ECEEF2;
  --r: 14px; --r-s: 10px; --shadow: 0 1px 2px rgba(31,26,23,.06), 0 4px 14px rgba(31,26,23,.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: "Anek", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #17120F; --card: #221B18; --surface-2: #2C2421; --ink: #EDE6DF; --muted: #A89D94; --line: #352B26;
  --brand: #F0B8C0; --brand-2: #E39AA5; --brand-soft: #3A2227; --brand-ink: #F0B8C0; --on-brand: #3D1219;
  --gold: #E3B964; --gold-soft: #342A18; --gold-ink: #E9C987;
  --good: #6FD39A; --good-soft: #1C3226; --warn: #F2B35E; --warn-soft: #3A2A14; --bad: #F59A9A; --bad-soft: #3D1D1D; --on-status: #17120F;
  --tent: #F2B35E; --conf: #6FD39A; --blk: #9AA3AF; --comp: #A3AAB8; --comp-soft: #2A2F3A;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #17120F; --card: #221B18; --surface-2: #2C2421; --ink: #EDE6DF; --muted: #A89D94; --line: #352B26;
  --brand: #F0B8C0; --brand-2: #E39AA5; --brand-soft: #3A2227; --brand-ink: #F0B8C0; --on-brand: #3D1219;
  --gold: #E3B964; --gold-soft: #342A18; --gold-ink: #E9C987;
  --good: #6FD39A; --good-soft: #1C3226; --warn: #F2B35E; --warn-soft: #3A2A14; --bad: #F59A9A; --bad-soft: #3D1D1D; --on-status: #17120F;
  --tent: #F2B35E; --conf: #6FD39A; --blk: #9AA3AF; --comp: #A3AAB8; --comp-soft: #2A2F3A;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif; line-height: 1.45; min-height: 100dvh; }
body.no-scroll { overflow: hidden; }
body.has-nav { padding-bottom: calc(64px + var(--safe-b)); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.05rem; } h3 { font-size: .98rem; }
p { margin: .4em 0; }
a { color: var(--brand-ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); outline: none; margin-top: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 10px 0 2px; }
label > input, label > select, label > textarea, label > .seg, label > .chips, label > .phone-in { margin-top: 5px; font-weight: 400; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
.ic { vertical-align: -5px; flex-shrink: 0; }

/* layout */
#view { max-width: 560px; margin: 0 auto; }
.page { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.page > section { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.sec-head a { font-size: .85rem; font-weight: 600; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .gap { gap: 10px; } .gap-s { gap: 6px; }
.flex1 { flex: 1; min-width: 0; } .right { text-align: right; } .center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .strong { font-weight: 600; }
.mt { margin-top: 14px; } .mt-s { margin-top: 6px; }
.good-t { color: var(--good); } .danger-t { color: var(--bad); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.full { width: 100%; }

/* splash */
#splash { position: fixed; inset: 0; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; z-index: 99; }
.splash-logo { width: 72px; height: 72px; border-radius: 20px; background: #fff; display: grid; place-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: var(--r-s); border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; background: var(--card); border-color: var(--line); transition: transform .08s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn.secondary { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.danger { background: var(--bad); color: var(--on-status); border-color: var(--bad); }
.btn.danger-o { background: var(--card); color: var(--bad); border-color: var(--bad-soft); }
.btn.big { padding: 14px 18px; font-size: 1.02rem; border-radius: var(--r); }
.btn.small { padding: 7px 12px; font-size: .85rem; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; }
.icon-btn:disabled { opacity: .35; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: var(--on-status); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; }
.chip { flex-shrink: 0; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--card); }
.seg button { flex: 1; padding: 10px 6px; border: 0; background: transparent; font-weight: 600; font-size: .9rem; }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.lang-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .85rem; }
.lang-toggle.float { position: absolute; top: 12px; right: 12px; }

/* cards */
.card { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); color: var(--ink); display: block; }
.card.row { display: flex; }
.card.booking { display: flex; align-items: center; gap: 12px; }
.card.booking .flex1 { display: flex; flex-direction: column; gap: 2px; }
.ev-emoji { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.ev-emoji.big { width: 56px; height: 56px; font-size: 1.8rem; }
.card.due { gap: 10px; border-left: 4px solid var(--bad); }
.card.enq { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--line); }
.card.enq.new { border-left-color: var(--brand-2); } .card.enq.contacted { border-left-color: var(--tent); } .card.enq.converted { border-left-color: var(--conf); }
.card > h2 { margin-bottom: 8px; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); background: var(--card); border-radius: var(--r); border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty.small { padding: 14px; }
.kv { display: flex; flex-direction: column; gap: 12px; background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.kv > div { display: flex; gap: 12px; align-items: flex-start; }
.kv > div > span { width: 32px; height: 32px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; color: var(--brand-ink); flex-shrink: 0; }
.banner { padding: 12px 14px; border-radius: var(--r-s); font-weight: 600; }
.banner.good { background: var(--good-soft); color: var(--good); } .banner.bad { background: var(--bad-soft); color: var(--bad); }
.warn { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: var(--r-s); font-size: .88rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.hint { color: var(--muted); font-size: .8rem; display: flex; gap: 5px; align-items: center; margin-top: 12px; }
.hint-line { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* pills */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--line); color: var(--muted); }
.pill.confirmed { background: var(--good-soft); color: var(--good); }
.pill.tentative { background: var(--warn-soft); color: var(--warn); }
.pill.completed { background: var(--comp-soft); color: var(--comp); }
.pill.cancelled { background: var(--bad-soft); color: var(--bad); }
.pill.blocked { background: var(--surface-2); color: var(--muted); }
.pill.new { background: var(--brand-soft); color: var(--brand-ink); }
.pill.contacted { background: var(--warn-soft); color: var(--warn); }
.pill.converted { background: var(--good-soft); color: var(--good); }
.pill.closed { background: var(--surface-2); color: var(--muted); }

/* dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats.three { grid-template-columns: 1fr 1fr 1fr; }
.stat { background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.stat-v { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.stat-l { font-size: .75rem; color: var(--muted); font-weight: 600; }
.stat.accent { background: var(--brand); color: var(--on-brand); } .stat.accent .stat-l { color: var(--on-brand); opacity: .8; }
.stat.good .stat-v { color: var(--good); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow); font-size: .72rem; font-weight: 600; color: var(--ink); }
.quick-btn .ic { color: var(--brand-ink); }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--card); padding: 10px; border-radius: var(--r); box-shadow: var(--shadow); }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: .9rem; position: relative; padding: 0; }
.cal-cell.pad { pointer-events: none; }
.cal-cell.past { color: var(--muted); opacity: .6; }
.cal-cell.today .n { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.cal-cell.sel { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-cell.booked { background: var(--good-soft); } .cal-cell.tentative { background: var(--warn-soft); } .cal-cell.partial { background: linear-gradient(135deg, var(--card) 50%, var(--good-soft) 50%); } .cal-cell.blocked { background: var(--surface-2); color: var(--muted); }
.dots { display: flex; gap: 2px; height: 5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blk); display: inline-block; }
.dot.confirmed { background: var(--conf); } .dot.tentative { background: var(--tent); } .dot.completed { background: var(--comp); } .dot.blocked { background: var(--blk); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .dot { margin-right: 2px; }
.sq { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.sq.free { background: var(--card); } .sq.partial { background: linear-gradient(135deg, var(--card) 50%, var(--bad-soft) 50%); } .sq.booked { background: var(--bad-soft); }
.cal-cell.cu.free { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--good); }
.cal-cell.cu.partial { background: linear-gradient(135deg, var(--card) 50%, var(--bad-soft) 50%); box-shadow: inset 0 0 0 1px var(--line); }
.cal-cell.cu.booked { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.cal-cell.cu.past { background: transparent; box-shadow: none; color: var(--muted); opacity: .5; text-decoration: none; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); border-left: 4px solid var(--good); }
.slot.taken { border-left-color: var(--blk); } .slot.taken.confirmed, .slot.taken.completed { border-left-color: var(--conf); } .slot.taken.tentative { border-left-color: var(--tent); }
.slot-l { width: 82px; flex-shrink: 0; }
.slot-b { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }

/* booking detail */
.detail-head { display: flex; gap: 14px; align-items: center; border-top: 4px solid var(--line); }
.detail-head.confirmed { border-top-color: var(--conf); } .detail-head.tentative { border-top-color: var(--tent); } .detail-head.cancelled { border-top-color: var(--bad); } .detail-head.completed { border-top-color: var(--comp); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 8px 0 10px; }
.bar i { display: block; height: 100%; background: var(--good); }
.row.triple { justify-content: space-between; gap: 8px; } .row.triple > div { flex: 1; }
.paylist { list-style: none; margin: 10px 0; padding: 0; border-top: 1px solid var(--line); }
.paylist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.actions .btn.primary, .actions .btn.danger-o { grid-column: 1 / -1; }
.pay-card { margin-top: 4px; }

/* forms */
.form-page label { margin-top: 6px; }
.phone-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.phone-in span { padding: 0 10px; color: var(--muted); font-weight: 600; }
.phone-in input { border: 0; margin: 0; } .phone-in input:focus { box-shadow: none; }
.phone-in:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.otp-in { letter-spacing: .4em; text-align: center; font-size: 1.4rem; }
.search-in { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 0 12px; color: var(--muted); }
.search-in input { border: 0; margin: 0; padding: 10px 0; } .search-in input:focus { box-shadow: none; }
.sticky-actions { position: sticky; bottom: calc(64px + var(--safe-b) + 8px); background: var(--bg); padding: 10px 0 0; margin-top: 6px; }
body:not(.has-nav) .sticky-actions { bottom: 8px; }
.voice-box { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); border-radius: var(--r); padding: 14px; }
.voice-box .muted { color: var(--on-brand); opacity: .8; }
.voice-box.dis { background: var(--surface-2); color: var(--muted); } .voice-box.dis .muted { color: var(--muted); }
.mic-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--card); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.mic-btn.on { background: var(--gold); color: var(--on-status); animation: pulse 1s infinite; }
.mic-btn:disabled { opacity: .5; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }

/* bottom nav */
#nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 20; max-width: 560px; margin: 0 auto; }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; }
#nav a.on { color: var(--brand-ink); }
#nav a .badge { top: 6px; right: 18%; }

/* landing */
.landing { min-height: 100dvh; display: flex; flex-direction: column; }
.land-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--brand-ink); letter-spacing: -.02em; }
.brand.center { justify-content: center; margin-bottom: 14px; }
.hero { padding: 8px 20px 24px; text-align: center; background: linear-gradient(180deg, var(--card), var(--bg)); }
.hero-art img { width: min(320px, 80vw); height: auto; }
.hero h1 { font-size: 1.7rem; line-height: 1.2; margin-top: 8px; }
.hero p { color: var(--muted); font-size: .98rem; max-width: 420px; margin: 10px auto 18px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; }
.features { display: grid; gap: 10px; padding: 8px 16px 20px; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; }
@media (min-width: 480px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 12px; background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.feature-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.feature p { margin: 3px 0 0; font-size: .85rem; color: var(--muted); }
.land-foot { margin-top: auto; text-align: center; color: var(--muted); font-size: .78rem; padding: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.login { min-height: 100dvh; padding: 16px; display: flex; flex-direction: column; }
.login .back { margin-bottom: 20px; }
.login-card { background: var(--card); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow); max-width: 420px; width: 100%; margin: 4vh auto 0; }
.login-card h2 small { font-weight: 500; color: var(--muted); font-size: .9rem; }
.login-card .btn { margin-top: 18px; }

/* customer */
.venue { padding-top: 0; }
.gallery { position: relative; margin: 0 -16px; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.gallery img.on { opacity: 1; }
.gal-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); } .gal-dots i.on { background: var(--card); }
.live-badge { position: absolute; top: 12px; left: 12px; background: rgba(31,26,28,.75); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(4px); }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.venue-head h1 { font-size: 1.5rem; }
.rating { color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.cta-row { display: flex; gap: 8px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; } .hscroll::-webkit-scrollbar { display: none; }
.mini-hall { min-width: 150px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card.price { padding: 10px; text-align: center; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .85rem; box-shadow: var(--shadow); }
.policy { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.avail-result { background: var(--card); border-radius: var(--r); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--good); }
.avail-result.bad { border-top-color: var(--bad); }
.avail-result .chips { justify-content: center; }
.big-check { font-size: 2.4rem; }

/* sheet & toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .22s; max-width: 560px; margin: 0 auto; max-height: 85dvh; overflow-y: auto; }
.sheet-wrap.open .sheet-bg { opacity: 1; } .sheet-wrap.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 14px; }
.sheet h2 { margin-bottom: 6px; }
.confirm-msg { font-weight: 600; margin: 8px 0 18px; }
#toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { background: var(--good); color: var(--on-status); } #toast.err { background: var(--bad); color: var(--on-status); }

/* ---- v0.2: more menu, tabs, catering, staff, billing, reports ---- */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.tile-e { font-size: 1.6rem; }
.tabs { display: flex; background: var(--card); border-radius: var(--r-s); padding: 4px; box-shadow: var(--shadow); gap: 2px; }
.tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.tabs a.on { background: var(--brand); color: var(--on-brand); }
.summary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sum-tile { display: flex; gap: 10px; align-items: center; padding: 12px; }
.sum-tile > span { font-size: 1.4rem; }
.sum-tile .strong { font-size: .9rem; }
.alert-strip { display: flex; align-items: center; gap: 8px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; padding: 10px 14px; box-shadow: none; }
.card.alert { border-left: 4px solid var(--warn); display: flex; flex-direction: column; gap: 2px; }
.card.alert.due { border-left-color: var(--bad); } .card.alert.enq { border-left-color: var(--brand-2); } .card.alert.prep { border-left-color: var(--comp); }
.pill.veg { background: var(--good-soft); color: var(--good); } .pill.nonveg { background: var(--bad-soft); color: var(--bad); }
.card.pkg.sel { outline: 2px solid var(--brand); }
.card.pkg ul.plain { columns: 2; column-gap: 14px; }
ul.plain { margin: 8px 0; padding-left: 18px; }
.card.kitchen { border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 4px; }
.pk-list { display: flex; flex-direction: column; gap: 6px; }
.pk-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); text-align: left; }
.pk-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl td, .tbl th { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.tbl td:first-child { color: var(--muted); width: 34%; }
.tbl.lines td:first-child, .tbl.sums td:first-child { color: var(--ink); width: auto; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl tr.sum td { border-top: 2px solid var(--line); }
.tbl tr.total td { font-weight: 700; font-size: 1rem; border-bottom: 0; }
.inline-in { width: 110px; padding: 5px 8px; margin: 0; text-align: right; }
.chip.tiny { padding: 2px 8px; font-size: .72rem; margin-left: 4px; }
.addon-list { display: flex; flex-direction: column; }
.addon-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 500; color: var(--ink); font-size: .92rem; }
.addon-row:last-child { border-bottom: 0; }
.addon-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.att { display: flex; gap: 4px; }
.att button { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; display: grid; place-items: center; }
.att button.on.p { background: var(--good); color: var(--on-status); border-color: var(--good); }
.att button.on.a { background: var(--bad); color: var(--on-status); border-color: var(--bad); }
.card.dim { opacity: .55; }
.hbar { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 8px; font-size: .85rem; margin: 6px 0; }
.hbar i { display: block; height: 10px; border-radius: 5px; background: var(--brand-2); min-width: 4px; }
.hbar b { text-align: right; }
.chart { width: 100%; height: auto; margin-top: 6px; }
.review { display: flex; flex-direction: column; gap: 4px; }
.stars { display: flex; gap: 4px; margin-top: 6px; }
.stars button { font-size: 1.8rem; border: 0; background: none; color: var(--line); padding: 0; line-height: 1; }
.stars button.on { color: var(--gold-ink); }
.card.est { border-top: 4px solid var(--gold); }
.card.mybk { display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--line); }
.card.mybk.confirmed { border-top-color: var(--conf); } .card.mybk.tentative { border-top-color: var(--tent); } .card.mybk.completed { border-top-color: var(--comp); }
.upi-box { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; }
.upi-qr { width: 84px; height: 84px; border-radius: 8px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--card) 0 50%) 0 0 / 14px 14px; border: 4px solid var(--card); box-shadow: var(--shadow); }

/* invoice */
.invoice { padding: 18px; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--brand); padding-bottom: 10px; margin-bottom: 10px; }
.inv-brand { font-weight: 800; font-size: 1.15rem; color: var(--brand-ink); }
.inv-title { font-weight: 800; letter-spacing: .06em; }
.inv-bill { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.inv-lines th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.inv-lines td:first-child { width: auto; color: var(--ink); }
.tbl.sums { margin-top: 8px; margin-left: auto; width: 70%; }
.inv-stamp { display: inline-block; margin-top: 12px; padding: 4px 12px; border: 2px solid; border-radius: 6px; font-weight: 800; letter-spacing: .08em; transform: rotate(-4deg); }
.inv-stamp.paid { color: var(--good); } .inv-stamp.partial { color: var(--warn); } .inv-stamp.unpaid { color: var(--bad); }
.inv-terms { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
@media print { #nav, .icon-btn, .btn, #toast { display: none !important; } body { background: #fff; color: #1F1A17; } .card { box-shadow: none; } }

/* ---- v0.3: multi-hall / multi-venue / rooms / facilities ---- */
.venue-switch { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--ink); text-align: left; }
.venue-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
.venue-row.on { color: var(--brand-ink); }
.venue-btn { width: 100%; border: 0; text-align: left; }
.hall-grid { display: flex; flex-direction: column; gap: 8px; }
.hall-row { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 6px; background: var(--card); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); }
.hall-name { display: flex; flex-direction: column; justify-content: center; padding-left: 4px; }
.hcell { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); text-align: left; color: var(--ink); min-width: 0; }
.hcell.free { border-style: dashed; }
.hcell.taken { background: var(--good-soft); border-color: transparent; }
.hcell.taken.tentative { background: var(--warn-soft); } .hcell.taken.blocked { background: var(--surface-2); } .hcell.taken.completed { background: var(--comp-soft); }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiny { font-size: .7rem; }
.hall-edit { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 8px; }

/* Parking: a tick and a number on one line. It is two facts, so it gets one row. */
.park-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.park-row + .park-row { border-top: 1px solid var(--line); }
.park-pick { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; font-size: .95rem; color: var(--ink); }
.park-pick input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.park-cap { width: 86px; flex: none; margin: 0; text-align: right; }
.park-row details summary { cursor: pointer; }

/* Attachments: small square thumbnails that wrap, plus a tile to add one. */
.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.file-chip { position: relative; width: 62px; height: 62px; margin: 0; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex: none; }
.file-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-pdf { display: grid; place-items: center; width: 100%; height: 100%; font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); }
.file-chip.file-missing { background: var(--line); }
.file-wait { position: absolute; left: 3px; bottom: 3px; font-size: .7rem; line-height: 1; padding: 2px 4px; border-radius: 6px; background: var(--warn-soft); color: var(--ink); }
.file-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; line-height: 1; padding: 0; cursor: pointer; }
.file-add { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 62px; margin: 0; border: 1px dashed var(--line); border-radius: var(--r-s); color: var(--muted); font-size: .85rem; font-weight: 600; cursor: pointer; }
.file-add.small { height: 34px; font-size: .78rem; }
.reading-files { padding-top: 0 !important; }
.reading-files .files { margin: 0 0 6px; }
.bill-split li { border-bottom: 1px dashed var(--line); }
.seg.wrap { flex-wrap: wrap; }
.fac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fac { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; margin: 0; color: var(--ink); font-weight: 500; }
.fac.on { border-color: var(--brand); background: var(--brand-soft); }
.fac input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.venue-card { padding: 0; overflow: hidden; }
.venue-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.vc-body { padding: 12px 14px; }
.float-l { position: absolute; top: 12px; left: 12px; }
.live-badge { left: auto; right: 12px; top: 54px; }
.hall-card { display: block; }
.price-mini { background: var(--bg); border-radius: 8px; padding: 6px 8px; text-align: center; }
.free-halls { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hall-pick { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink); }
.hall-pick .btn { grid-row: 1 / 3; }

/* ---- v0.3: vendor portal ---- */
.card.order { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--line); }
.card.order.new { border-left-color: var(--brand-2); } .card.order.accepted { border-left-color: var(--tent); } .card.order.done { border-left-color: var(--conf); }
.order-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.order-row:last-child { border-bottom: 0; }
.pre { white-space: pre-wrap; font-size: .92rem; line-height: 1.5; }
.card.instr { border-left: 4px solid var(--gold); }
.card.alert.order { border-left-color: var(--gold); }

/* ---- Phase-0 sign-in ---- */
.btn.social { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.prov-g, .prov-a, .prov-p { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 1rem; flex: none; }
.prov { background: var(--card); border: 1px solid var(--line); }
.prov img { display: block; }
.prov b { display: none; }
.prov.nologo img { display: none; }
.prov.nologo b { display: inline-flex; align-items: center; }
.prov-g.nologo { color: #4285f4; }
.prov-a.nologo { background: #000; color: #fff; border-color: #000; }
.prov-a.nologo b { line-height: 0; }
.prov-p { background: var(--brand-soft); color: var(--brand-ink); }
.or-line { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .85rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.quick-ic { display:inline-flex; width:72px; height:72px; border-radius:50%; background: var(--brand-soft); color: var(--brand-ink); align-items:center; justify-content:center; margin: 6px 0 4px; }


/* ---- v0.5: synced diary ---- */
.ios-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0 16px 12px; padding: 12px 14px; background: var(--gold-soft); color: var(--gold-ink); border-radius: var(--r); font-size: .9rem; max-width: 528px; }
.ios-hint .small { color: inherit; opacity: .85; margin-top: 2px; }
@media (min-width: 560px) { .ios-hint { margin-left: auto; margin-right: auto; } }
#recaptcha { margin-top: 8px; }

/* Sync in progress: a thin indeterminate line at the top of every screen (main.js toggles body.syncing). */
body.syncing::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold) 60%, transparent 100%) 0 0 / 40% 100% no-repeat;
  animation: syncbar 1.1s linear infinite; }
@keyframes syncbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { body.syncing::before { animation: none; background: var(--gold); opacity: .6; } }
