/* fonts are bundled so the portal works without internet */
@font-face{font-family:'Mukta';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/mukta-devanagari-400-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/mukta-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/mukta-devanagari-500-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/mukta-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/mukta-devanagari-600-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/mukta-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/mukta-devanagari-700-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Mukta';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/mukta-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Tiro Devanagari Marathi';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/tiro-devanagari-marathi-devanagari-400-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Tiro Devanagari Marathi';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/tiro-devanagari-marathi-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
:root {
  --kumkum: #B3123C;
  --kumkum-dark: #8C0B2E;
  --maroon: #4A0A24;
  --violet: #4B1A7A;
  --violet-soft: #EFE7F8;
  --marigold: #F5A40C;
  --marigold-soft: #FFF1D3;
  --surface: #FBF6F8;
  --card: #FFFFFF;
  --ink: #2A0E1E;
  --ink-2: #5E4655;
  --ink-3: #8F7A87;
  --line: #EEDFE6;
  --line-2: #E2CBD6;
  --green: #1F7A4D;
  --green-soft: #E3F4EA;
  --amber: #A35A00;
  --amber-soft: #FFF0D6;
  --red-soft: #FDE5EB;
  --grey-soft: #F0EBEE;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(74, 10, 36, .06), 0 6px 20px rgba(74, 10, 36, .06);
  --display: 'Tiro Devanagari Marathi', Georgia, serif;
  --ui: 'Mukta', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--ui); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.2; color: var(--maroon); }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 .6em; }
a { color: var(--kumkum); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
.mr { font-family: var(--display); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--maroon) 0%, #3A0C3A 55%, var(--violet) 100%);
  color: #F8E9EF; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.brand { padding: 22px 20px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 46px; height: 54px; object-fit: cover; object-position: top; border-radius: 23px 23px 8px 8px; border: 2px solid var(--marigold); }
.brand .t1 { font-family: var(--display); font-size: 17px; color: #fff; line-height: 1.15; }
.brand .t2 { font-size: 12px; color: #E6C9D6; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #F3DCE6; text-decoration: none; font-weight: 500; }
.nav a svg { width: 19px; height: 19px; opacity: .85; flex: none; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: #fff; color: var(--kumkum); box-shadow: inset 4px 0 0 var(--marigold); }
.nav a.on svg { opacity: 1; }
.nav .count { margin-left: auto; background: var(--marigold); color: var(--maroon); font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 20px; }
.nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; }
.side-foot { padding: 14px 18px 18px; font-size: 13px; color: #E6C9D6; border-top: 1px solid rgba(255,255,255,.1); }
.side-foot b { color: #fff; font-weight: 600; }
.side-foot button { margin-top: 8px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 4px 12px; border-radius: 8px; cursor: pointer; }
.main { min-width: 0; }
.topbar { display: none; }
.page { padding: 26px 30px 60px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .grow { flex: 1; min-width: 220px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--kumkum); color: var(--kumkum); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--kumkum); border-color: var(--kumkum); color: #fff; box-shadow: 0 2px 0 var(--kumkum-dark); }
.btn.primary:hover { background: var(--kumkum-dark); color: #fff; }
.btn.violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.gold { background: var(--marigold); border-color: var(--marigold); color: var(--maroon); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--kumkum); border-color: #F2B8C8; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 8px 11px; min-height: 38px; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
textarea.input { min-height: 90px; resize: vertical; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--kumkum); }

.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.tabs button.on { background: var(--maroon); color: #fff; }
.tabs button .n { font-weight: 500; opacity: .75; margin-left: 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { flex: 1; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 20px; white-space: nowrap; }
.pill.active, .pill.received, .pill.paid, .pill.sent, .pill.confirmed, .pill.done { background: var(--green-soft); color: var(--green); }
.pill.inactive, .pill.pending, .pill.queued, .pill.due-soon, .pill.enquiry, .pill.sending { background: var(--amber-soft); color: var(--amber); }
.pill.deleted, .pill.expired, .pill.cancelled, .pill.failed, .pill.returned { background: var(--red-soft); color: var(--kumkum); }
.pill.unrecorded, .pill.checked_out { background: var(--grey-soft); color: var(--ink-2); }
.pill.checked_in { background: var(--violet-soft); color: var(--violet); }
.pill.foreign { background: var(--violet-soft); color: var(--violet); }
.pill.mahapanchami { background: var(--marigold); color: var(--maroon); }
.pill.panchami { background: var(--red-soft); color: var(--kumkum); }
.pill.utsav { background: var(--violet-soft); color: var(--violet); }
.pill.nokaul { background: #fff; color: var(--ink-2); border: 1px dashed var(--line-2); }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); background: #FDF9FB; position: sticky; top: 0; white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #FFF7FA; }
table.t tr.sel td { background: #FFF1D3; }
table.t td.c, table.t th.c { width: 36px; text-align: center; }
table.t .name { font-weight: 600; }
table.t .addr { color: var(--ink-2); font-size: 13px; max-width: 340px; }
.code { font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.empty h3 { margin-bottom: 6px; }

.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--ink-2); font-size: 13px; }
.bulkbar { position: sticky; bottom: 16px; z-index: 5; margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--maroon); color: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(74, 10, 36, .3); }
.bulkbar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.bulkbar .btn:hover { background: #fff; color: var(--kumkum); }
.bulkbar b { margin-right: 6px; }

/* ---------- Mahapanchami hero (signature) ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 26px; align-items: center;
  padding: 34px 30px 26px; border-radius: 22px; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245,164,12,.28) 0%, rgba(245,164,12,0) 45%),
    linear-gradient(120deg, var(--kumkum) 0%, #7A0E3E 48%, var(--violet) 100%);
}
.hero::before { /* marigold toran */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background:
    radial-gradient(circle at 9px 6px, #FFC93C 0 5px, #F08A00 5.5px 7px, transparent 7.5px) 0 0 / 18px 16px repeat-x;
}
.hero::after { /* hanging leaves */
  content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 12px;
  background: radial-gradient(ellipse 4px 7px at 27px 5px, #3F8E3A 0 99%, transparent 100%) 0 0 / 54px 12px repeat-x; opacity: .9;
}
.hero .arch { width: 170px; height: 200px; border-radius: 85px 85px 14px 14px; overflow: hidden; border: 3px solid var(--marigold); box-shadow: 0 0 0 6px rgba(255,255,255,.12); background: #3a0a1f; }
.hero .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero .what { font-size: 15px; color: #FFE3EC; }
.hero h1 { color: #fff; font-size: 46px; margin: 2px 0 6px; }
.hero .date { font-family: var(--display); font-size: 24px; color: var(--marigold-soft); }
.hero .det { margin-top: 8px; font-size: 16px; color: #FFE3EC; max-width: 52ch; }
.hero .count { text-align: center; padding: 16px 22px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); min-width: 150px; }
.hero .count .d { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--marigold); }
.hero .count .l { font-size: 14px; color: #FFE3EC; }
.hero .count.today .d { font-size: 34px; }

.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit; display: block; border-left: 5px solid var(--c, var(--kumkum)); }
.stat:hover { box-shadow: var(--shadow); }
.stat .v { font-family: var(--display); font-size: 30px; color: var(--c, var(--kumkum)); line-height: 1.1; }
.stat .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dash { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.utsav-list { list-style: none; margin: 0; padding: 0; }
.utsav-list li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.utsav-list li:last-child { border-bottom: 0; }
.dchip { text-align: center; border-radius: 12px; padding: 5px 0 6px; background: var(--red-soft); color: var(--kumkum); }
.dchip .dd { font-family: var(--display); font-size: 24px; line-height: 1; }
.dchip .mm { font-size: 12px; font-weight: 600; }
.dchip.mahapanchami { background: var(--marigold); color: var(--maroon); }
.dchip.utsav { background: var(--violet-soft); color: var(--violet); }
.utsav-list .tt { font-family: var(--display); font-size: 17px; color: var(--maroon); }
.utsav-list .en { font-size: 13px; color: var(--ink-2); }

.rooms-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px 20px; }
.rm { border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.rm b { display: block; font-family: var(--display); font-size: 18px; font-weight: 400; }
.rm.busy { background: var(--kumkum); color: #fff; }
.rm.hall { grid-column: span 5; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 10px 14px; }
.rm.hall b { display: inline; }

.progress { height: 10px; background: var(--grey-soft); border-radius: 10px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--kumkum), var(--marigold)); border-radius: 10px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.filters .input { width: auto; min-width: 150px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search input { padding-left: 36px; width: 100%; }
.search svg { position: absolute; left: 11px; top: 10px; width: 18px; height: 18px; color: var(--ink-3); }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(42, 14, 30, .45); z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 680px; box-shadow: 0 30px 80px rgba(42,14,30,.35); animation: rise .18s ease; }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: #FDF9FB; border-radius: 0 0 18px 18px; flex-wrap: wrap; }
.x { border: 0; background: var(--grey-soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.scrim.drawer { justify-content: flex-end; padding: 0; }
.scrim.drawer .modal { max-width: 640px; min-height: 100vh; border-radius: 0; animation: slide .2s ease; }
.scrim.drawer .modal-foot { border-radius: 0; position: sticky; bottom: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.section-t { font-family: var(--display); font-size: 17px; color: var(--maroon); margin: 20px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.addr-card { background: var(--marigold-soft); border: 1px dashed #E8B65A; border-radius: 12px; padding: 12px 14px; font-size: 14px; white-space: pre-line; }

#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--maroon); color: #fff; padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 500; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--kumkum); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; min-height: 320px;
  background: linear-gradient(180deg, rgba(74,10,36,.15) 0%, rgba(74,10,36,.55) 45%, rgba(75,26,122,.95) 100%), url('/assets/temple.jpg') center / cover; }
.login-art .jaya { font-family: var(--display); font-size: 20px; color: var(--marigold); }
.login-art h1 { color: #fff; font-size: 44px; margin: 6px 0 8px; }
.login-art p { color: #FBE3EC; font-size: 17px; max-width: 46ch; }
.login-next { margin-top: 18px; display: inline-flex; gap: 14px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 10px 16px; width: fit-content; }
.login-next .d { font-family: var(--display); font-size: 30px; color: var(--marigold); line-height: 1; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background:
  radial-gradient(circle at 100% 0%, var(--violet-soft), transparent 50%), radial-gradient(circle at 0% 100%, var(--red-soft), transparent 45%), var(--surface); }
.login-box { width: 100%; max-width: 380px; }
.login-box .deity { width: 110px; height: 130px; border-radius: 55px 55px 12px 12px; overflow: hidden; border: 3px solid var(--marigold); margin-bottom: 18px; box-shadow: 0 0 0 6px var(--marigold-soft); }
.login-box .deity img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.login-box h2 { font-size: 28px; margin-bottom: 4px; }
.login-box form { display: grid; gap: 14px; margin-top: 22px; }
.login-box .btn { justify-content: center; padding: 11px; font-size: 16px; }
.login-err { color: var(--kumkum); font-weight: 600; min-height: 1.4em; }

/* ---------- booking grid ---------- */
.bgrid { overflow-x: auto; }
.bgrid table { border-collapse: separate; border-spacing: 0; width: max(100%, 1090px); table-layout: fixed; font-size: 13px; }
.bgrid th:first-child { width: 190px; }
.bgrid th, .bgrid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 46px; padding: 0; text-align: center; }
.bgrid th { background: #FDF9FB; font-weight: 600; color: var(--ink-2); padding: 6px 4px; position: sticky; top: 0; z-index: 2; }
.bgrid th.today { background: var(--marigold); color: var(--maroon); }
.bgrid th.fest { box-shadow: inset 0 -4px 0 var(--kumkum); }
.bgrid th .wd { display: block; font-weight: 500; font-size: 11px; }
.bgrid td.res { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; padding: 4px 12px; min-width: 170px; }
.bgrid td.res b { display: block; font-weight: 600; color: var(--maroon); }
.bgrid td.res small { color: var(--ink-3); }
.bgrid td.free { cursor: pointer; }
.bgrid td.free:hover { background: var(--green-soft); }
.bgrid td.free:hover::after { content: '+'; color: var(--green); font-weight: 700; font-size: 18px; }
.bgrid td.bk { padding: 3px 2px; }
.bgrid .bar { height: 38px; border-radius: 8px; background: var(--kumkum); color: #fff; display: flex; align-items: center; padding: 0 8px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; font-size: 12px; text-align: left; }
.bgrid .bar.enquiry { background: var(--marigold); color: var(--maroon); }
.bgrid .bar.checked_in { background: var(--violet); }
.bgrid .bar.checked_out { background: #9C8792; }
.bgrid tr.hall td.res { background: var(--violet-soft); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- calendar ---------- */
.masa { margin-bottom: 18px; }
.masa-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.masa-head h3 { font-size: 21px; }
.cal-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cal-row:last-child { border-bottom: 0; }
.cal-row.past { opacity: .5; }
.cal-row.next { background: linear-gradient(90deg, var(--marigold-soft), #fff 70%); box-shadow: inset 5px 0 0 var(--marigold); }
.cal-row .tt { font-family: var(--display); font-size: 18px; color: var(--maroon); }
.cal-row .en { font-size: 13px; color: var(--ink-2); }
.notice { background: var(--violet-soft); border-radius: 12px; padding: 12px 16px; color: var(--violet); font-size: 14px; }
.notice.gold { background: var(--marigold-soft); color: #6B4300; }
.notice.red { background: var(--red-soft); color: var(--kumkum); }

/* ---------- labels ---------- */
.label-preview { background: #E9DDE3; padding: 20px; border-radius: 14px; overflow: auto; max-height: 75vh; }
.sheet { width: 210mm; height: 297mm; background: #fff; margin: 0 auto 20px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,.15); overflow: hidden; }
.stk { position: absolute; width: 64mm; height: 34.17mm; padding: 2.5mm 3mm; overflow: hidden; font-family: Arial, 'Mukta', sans-serif; font-weight: 700; line-height: 1.22; color: #000; }
.stk .lc { font-size: .92em; }
.stk.blank { background: repeating-linear-gradient(45deg, #fafafa 0 6px, #f1f1f1 6px 12px); }
.preview-mode .stk { outline: 1px dashed #d9c3cf; }
.qr-box { display: flex; gap: 18px; align-items: center; }
.qr-box .qr { width: 170px; height: 170px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; flex: none; }
.qr-box .qr svg { width: 100%; height: 100%; }

.msg-preview { background: #E7F7E4; border-radius: 14px 14px 14px 4px; padding: 12px 14px; white-space: pre-wrap; font-size: 14px; max-width: 460px; border: 1px solid #C9E8C3; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 3px 11px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 130px 1fr; }
  .hero .arch { width: 130px; height: 160px; }
  .hero .count { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; justify-content: center; }
}
td .m-only, .m-inline { display: none; }
@media (max-width: 820px) {
  td .m-only { display: block; margin-top: 4px; }
  .m-inline { display: inline; }
  .d-only { display: none; }
  table.t.wide { min-width: 760px; }
  .filters .input { min-width: 0; flex: 1 1 140px; }
  .search { max-width: none; flex-basis: 100%; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(42,14,30,.45); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--maroon); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: transparent; border: 0; color: #fff; padding: 4px; display: flex; cursor: pointer; }
  .topbar button svg { width: 26px; height: 26px; }
  .topbar .t { font-family: var(--display); font-size: 17px; }
  .page { padding: 18px 16px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding: 30px 20px 20px; text-align: left; }
  .hero .arch { display: none; }
  .hero h1 { font-size: 34px; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 300px; padding: 26px 20px; }
  .login-art h1 { font-size: 32px; }
  .cal-row { grid-template-columns: 58px 1fr; }
  .cal-row > :last-child { grid-column: 2; }
  .kv { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---------- calmer layout (v2) ---------- */
.page { max-width: 1240px; }
.page-head { align-items: center; margin-bottom: 18px; }
.page-head h1 { font-size: 32px; }
.page-head p { max-width: 64ch; font-size: 15px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.btn .m-lbl { display: none; }
.back { display: inline-block; margin-bottom: 6px; font-size: 14px; text-decoration: none; font-weight: 600; }
.more { position: relative; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(74,10,36,.16); padding: 6px; min-width: 220px; z-index: 30; display: none; }
.more.up .more-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.more.open .more-menu { display: block; }
.more-menu a, .more-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.more-menu a:hover, .more-menu button:hover { background: var(--surface); color: var(--kumkum); }
.more-menu svg { width: 17px; height: 17px; }
.bulkbar .more-menu button { color: var(--ink); }

/* series switcher — A / B / C / D / Main / V Panchami / Abroad */
.series { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 0 14px; scrollbar-width: thin; }
.series button { flex: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; border: 1px solid var(--line-2); background: #fff; border-radius: 14px; padding: 8px 16px 9px; cursor: pointer; min-width: 78px; transition: border-color .12s; }
.series button:hover { border-color: var(--kumkum); }
.series button b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--maroon); line-height: 1.15; }
.series button span { font-size: 12px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.series button.on { background: linear-gradient(135deg, var(--kumkum), var(--violet)); border-color: transparent; box-shadow: 0 6px 16px rgba(179,18,60,.25); }
.series button.on b { color: #fff; }
.series button.on span { color: #FFE3EC; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 380px; margin-left: auto; }
.toolbar .tabs + .search { margin-left: auto; }
.input.slim { width: auto; min-width: 0; }
.tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs button { flex: none; }
.fcount { background: var(--kumkum); color: #fff; border-radius: 20px; font-size: 11px; padding: 0 6px; line-height: 17px; }
.filter-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }

.list-card { box-shadow: none; }
table.t.list th { background: #fff; color: var(--ink-3); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
table.t.list td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid #F4EAEF; }
table.t.list tbody tr:last-child td { border-bottom: 0; }
table.t.list .name { font-weight: 600; color: var(--ink); }
table.t .sub { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
table.t th.sn, table.t td.sn { width: 92px; }
table.t td.chev { width: 28px; color: var(--line-2); }
table.t td.chev svg { width: 18px; height: 18px; display: block; }
table.t tr.click:hover td.chev { color: var(--kumkum); }
table.t .num-r { text-align: right; white-space: nowrap; }
table.t .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
table.t .nowrap { white-space: nowrap; }
.pager { border-top: 1px solid var(--line); }

.kpis { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kpis .kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; min-width: 170px; }
.kpis.inner { padding: 16px 20px 6px; margin: 0; }
.kpis.inner .kpi { border: 0; padding: 0; min-width: 0; flex: 1; }
.kpi span { display: block; font-size: 13px; color: var(--ink-2); }
.kpi b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.kpi small { color: var(--ink-3); font-size: 12px; }
.pending-line { display: block; margin: 8px 20px 16px; padding: 9px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 14px; text-decoration: none; }

.strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.series-bars { padding: 10px 20px 16px; display: grid; gap: 2px; }
.series-bars a { display: grid; grid-template-columns: 92px 1fr 48px; gap: 12px; align-items: center; padding: 7px 0; color: inherit; text-decoration: none; border-radius: 8px; }
.series-bars a:hover .sl { color: var(--kumkum); }
.series-bars .sl { font-family: var(--display); font-size: 17px; color: var(--maroon); }
.series-bars .bar { height: 10px; background: var(--grey-soft); border-radius: 10px; overflow: hidden; }
.series-bars .bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--kumkum), #E0475F); }
.series-bars .bar.violet i { background: linear-gradient(90deg, var(--violet), #8A5BC4); }
.series-bars b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-list { border-top: 1px solid var(--line); }
.mini-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 20px; text-decoration: none; color: inherit; border-bottom: 1px solid #F4EAEF; font-size: 14px; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list .sub { color: var(--ink-3); font-size: 13px; text-align: right; }
.slim-notice { margin-bottom: 14px; padding: 9px 14px; }
.notice.aarti { margin-bottom: 16px; }
.utsav-list li { padding: 11px 20px; }
.hero { padding: 32px 30px 26px; }
.hero-actions { margin-top: 16px; }
.cal-row { padding: 12px 20px; }
.card-head { padding: 13px 20px; }
.card-head h3 { font-size: 18px; }
.btn.ghost:hover { background: var(--surface); }

@media (max-width: 820px) {
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { font-size: 14px; }
  .head-actions { justify-content: flex-start; }
  .head-actions .btn.primary { margin-left: auto; }
  .head-actions .btn:not(.primary) .lbl { display: none; }
  .head-actions .btn:not(.primary) { padding: 8px 11px; }
  .btn .m-lbl { display: inline; }
  .btn .m-lbl + .lbl, .btn .lbl:has(+ .m-lbl) { display: none; }
  .toolbar { gap: 8px; }
  .toolbar .tabs { width: auto; max-width: 100%; }
  .toolbar .search { max-width: none; margin-left: 0; flex: 1 1 auto; }
  #ftoggle .lbl { display: none; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .series button { min-width: 64px; padding: 7px 13px; }
  .series button b { font-size: 19px; }
  table.t th.sn, table.t td.sn { width: 64px; }
  table.t.list td { padding: 11px 10px; }
  table.t td.chev { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
  .stat { padding: 11px 14px; }
  .stat .v { font-size: 26px; }
  .hero { padding: 30px 20px 20px; gap: 14px; }
  .hero h1 { font-size: 32px; }
  .hero .date { font-size: 20px; }
  .hero .det { font-size: 15px; }
  .hero .count { grid-column: auto; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 10px 14px; min-width: 0; width: fit-content; }
  .hero .count .d { font-size: 40px; }
  .kpis .kpi { flex: 1; min-width: 0; padding: 10px 14px; }
  .kpi b { font-size: 22px; }
  .series-bars a { grid-template-columns: 80px 1fr 40px; }
  .rooms-mini { grid-template-columns: repeat(3, 1fr); }
  .rm.hall { grid-column: span 3; }
  .bulkbar { bottom: 10px; }
  .modal-body { padding: 16px; }
  .notice.aarti .small { display: block; margin-top: 4px; }
}


/* ---------- polish (v3) ---------- */
body { background: #FBF5F8; }
.main { background:
  radial-gradient(900px 320px at 100% -6%, rgba(75,26,122,.08), transparent 70%),
  radial-gradient(700px 260px at 10% -8%, rgba(179,18,60,.07), transparent 70%); background-repeat: no-repeat; }
.card { border-radius: 18px; border-color: #F0E3EA; box-shadow: 0 1px 2px rgba(74,10,36,.04), 0 12px 32px -14px rgba(74,10,36,.16); }
.list-card { box-shadow: 0 1px 2px rgba(74,10,36,.04), 0 12px 32px -18px rgba(74,10,36,.14); overflow: hidden; }
.btn { border-radius: 11px; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.btn.primary { background: linear-gradient(180deg, #C2164A, #A90F37); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 14px -6px rgba(179,18,60,.6); }
.btn.primary:hover { background: linear-gradient(180deg, #A90F37, #8C0B2E); }
.btn.gold { box-shadow: 0 6px 16px -6px rgba(245,164,12,.8); }
.tabs { border-radius: 999px; padding: 4px; border-color: #EEDDE6; background: #fff; }
.tabs button { border-radius: 999px; padding: 6px 15px; }
.tabs button.on { background: var(--maroon); box-shadow: 0 4px 10px -4px rgba(74,10,36,.5); }
.input { border-radius: 11px; border-color: #E6D2DC; }
.page-head h1 { letter-spacing: -.2px; }

/* sidebar */
.brand { position: relative; padding-bottom: 22px; }
.brand::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 10px;
  background: radial-gradient(circle at 5px 5px, #FFC93C 0 3px, #E88A00 3.5px 4.5px, transparent 5px) 0 0 / 12px 10px repeat-x; opacity: .9; }
.brand { border-bottom: 0; }
.nav { padding-top: 16px; }
.nav a { padding: 10px 12px; }
.side-next { margin: 0 12px 12px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #FFE7EF;
  background: linear-gradient(135deg, rgba(245,164,12,.22), rgba(255,255,255,.06)); border: 1px solid rgba(245,164,12,.45); }
.side-next:hover { background: linear-gradient(135deg, rgba(245,164,12,.32), rgba(255,255,255,.1)); }
.side-next .sn-d { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--marigold); text-align: center; min-width: 40px; }
.side-next .sn-d small { display: block; font-family: var(--ui); font-size: 11px; font-weight: 600; color: #FFE0A6; }
.side-next .mr { display: block; font-size: 15px; color: #fff; }
.side-next small { font-size: 12px; color: #F1C9D8; }

/* stat cards */
.stat { display: flex; align-items: center; gap: 14px; border-left: 0; border-radius: 18px; padding: 16px 18px; border-color: #F0E3EA;
  box-shadow: 0 1px 2px rgba(74,10,36,.04), 0 12px 32px -18px rgba(74,10,36,.16); transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -16px rgba(74,10,36,.25); }
.stat .si { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); }
.stat .si svg { width: 22px; height: 22px; }
.stat .v { color: var(--ink); font-size: 30px; }
.stat .k { color: var(--ink-2); }

/* hero: prabhavali halo behind the countdown */
.hero { border-radius: 24px; box-shadow: 0 24px 50px -24px rgba(122,14,62,.6);
  background:
    repeating-radial-gradient(circle at 88% 55%, rgba(255,255,255,.07) 0 1.5px, transparent 2px 26px),
    radial-gradient(120% 140% at 100% 0%, rgba(245,164,12,.28) 0%, rgba(245,164,12,0) 45%),
    linear-gradient(120deg, var(--kumkum) 0%, #7A0E3E 48%, var(--violet) 100%); }
.hero .count { background: rgba(74,10,36,.35); backdrop-filter: blur(4px); border-color: rgba(245,164,12,.45); border-radius: 22px; }

/* series chips get a small caption under the letter */
.series button { border-radius: 16px; box-shadow: 0 1px 2px rgba(74,10,36,.04); }
table.t.list tbody tr { transition: background .1s; }
table.t tr.click:hover td { background: #FFF6F9; }
.code { color: var(--violet); }
.pill { padding: 2px 10px; }
.utsav-list li:hover { background: #FFFAFC; }
.rm { border-radius: 12px; }
@media (max-width: 820px) {
  .stat { padding: 12px 14px; gap: 10px; }
  .stat .si { width: 36px; height: 36px; border-radius: 11px; }
  .stat .si svg { width: 19px; height: 19px; }
  .stat .v { font-size: 24px; }
  .hero { border-radius: 20px; }
  .topbar { background: linear-gradient(90deg, var(--maroon), #5A1449); }
}

@media (max-width: 820px) {
  .bgrid table { width: 900px; }
  .bgrid th:first-child { width: 116px; }
  .bgrid td.res { min-width: 0; padding: 4px 8px; }
  .bgrid td.res small { display: none; }
  .bgrid td.res b { font-size: 12px; }
}
/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  #app, #modal-root, #toast { display: none !important; }
  #print-root { display: block !important; }
  .sheet { box-shadow: none; margin: 0; page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .stk.blank { background: none; }
  .print-list { padding: 12mm; font-family: Arial, sans-serif; }
  .print-list table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .print-list td, .print-list th { border: 1px solid #999; padding: 3px 5px; text-align: left; vertical-align: top; }
  .print-list h2 { font-family: Georgia, serif; color: #000; margin-bottom: 4mm; }
  .receipt { padding: 14mm; }
}
#print-root { display: none; }
.receipt { font-family: var(--ui); max-width: 180mm; margin: 0 auto; }
.receipt .rh { text-align: center; border-bottom: 2px solid var(--kumkum); padding-bottom: 8px; margin-bottom: 14px; }
.receipt .rh h2 { color: var(--kumkum); }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 6px 4px; border-bottom: 1px solid #ddd; }

/* ---------- v3 polish ---------- */
.form-sec { font-family: var(--display); font-size: 16px; color: var(--kumkum); padding-top: 6px; margin-bottom: -4px; display: flex; align-items: center; gap: 10px; }
.form-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-sec:first-child { padding-top: 0; }
.status-box { min-height: 38px; display: flex; align-items: center; }
.tabbar { display: none; }
.tb-av { display: none; }
@media (max-width: 820px) {
  .topbar { padding: 8px 14px; gap: 10px; }
  .tb-av { display: block; width: 30px; height: 34px; object-fit: cover; object-position: top; border-radius: 15px 15px 6px 6px; border: 1.5px solid var(--marigold); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(74,10,36,.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 4px 0; border-radius: 10px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--kumkum); }
  .tabbar a.on svg { background: var(--red-soft); border-radius: 10px; padding: 3px 10px; width: 44px; height: 28px; }
  .page { padding-bottom: 96px; }
  .bulkbar { bottom: 74px; }
  #toast { bottom: 84px; }
}

.sheet-opts summary { cursor: pointer; font-weight: 600; color: var(--violet); padding: 4px 0; }
.sheet-opts[open] summary { color: var(--kumkum); }

.web-box { background: var(--violet-soft); border-radius: 12px; padding: 12px 14px; color: var(--ink); }

.req-card .card-head { gap: 8px; }
.req-list { display: grid; }
.req { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 20px; border-top: 1px solid #F4EAEF; flex-wrap: wrap; }
.req .name { font-weight: 600; }
.req .sub { font-size: 13px; color: var(--ink-3); }
.req-a { display: flex; gap: 6px; align-items: center; }
.req-a .btn.ghost svg { width: 18px; height: 18px; color: #1F7A4D; }

/* ---------- calendar photo upload ---------- */
.modal.xwide { max-width: 1240px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 220px; padding: 26px 18px; border: 2px dashed var(--line-2); border-radius: 18px; cursor: pointer;
  background: radial-gradient(circle at 50% 0%, var(--marigold-soft), transparent 60%), #FFFBFC; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--kumkum); background: radial-gradient(circle at 50% 0%, #FFE6C2, transparent 60%), #FFF5F8; }
.drop-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin: 0 auto 6px;
  background: linear-gradient(135deg, var(--kumkum), var(--violet)); box-shadow: 0 8px 22px rgba(179, 18, 60, .28); }
.drop-ic svg { width: 28px; height: 28px; }
.drop-t { font-family: var(--display); font-size: 20px; color: var(--maroon); }
.drop-s { color: var(--ink-3); font-size: 14px; }
.drop-prev { max-height: 360px; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow); margin-top: 10px; }
.drop.has { min-height: 0; padding: 14px; border-style: solid; border-color: var(--line); }
.drop.has .drop-ic, .drop.has .drop-s { display: none; }
.drop.has .drop-t { font-size: 15px; font-family: var(--ui); color: var(--ink-3); order: 2; }
.cu-tips { margin: 14px 0 0; padding: 0 0 0 20px; color: var(--ink-2); font-size: 14px; }
.cu-tips li { margin: 3px 0; }
.cu-tips li::marker { color: var(--marigold); }
.cu-mode { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--violet-soft); }
.cu-prog { text-align: center; padding: 34px 10px 26px; max-width: 460px; margin: 0 auto; }
.cu-om { font-size: 54px; line-height: 1; color: var(--kumkum); animation: cu-pulse 1.8s ease-in-out infinite; }
@keyframes cu-pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.cu-pt { font-family: var(--display); font-size: 19px; color: var(--maroon); margin: 12px 0 14px; }
.cu-prog .progress { margin-bottom: 10px; }
.cu-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, var(--marigold-soft), #fff); border: 1px solid #F7DFAE; }
.cu-sum b { color: var(--maroon); }
.cu-tw { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.cu-t { min-width: 1080px; }
.cu-t th { position: sticky; top: 0; z-index: 1; background: #FDF6F9; }
.cu-t td { padding: 5px 6px; vertical-align: top; }
.cu-t .input { padding: 5px 7px; font-size: 13.5px; min-height: 0; height: 32px; border-radius: 7px; width: 100%; }
.cu-t input[type=date] { width: 138px; }
.cu-t select.input { width: 128px; }
.cu-t input[type=checkbox] { width: 17px; height: 17px; margin-top: 7px; accent-color: var(--kumkum); }
.cu-t tr.flag td { background: var(--amber-soft); }
.cu-t tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--marigold); }
.cu-t tr.off td { opacity: .45; }
.cu-fix { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--amber); background: #fff; border: 1px solid #F1C98A; border-radius: 20px; padding: 0 7px; }
.cal-empty { text-align: center; padding: 40px 20px; }
.cal-empty h3 { margin: 6px 0; }
.cal-empty p { color: var(--ink-2); max-width: 440px; margin: 0 auto 16px; }
@media (max-width: 720px) {
  .drop { min-height: 180px; }
  /* review as cards on a phone */
  .cu-tw { max-height: none; border: 0; overflow: visible; }
  .cu-t { min-width: 0; }
  .cu-t thead { display: none; }
  .cu-t, .cu-t tbody { display: block; }
  .cu-t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 12px 12px 12px 44px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; position: relative; background: #fff; }
  .cu-t tr.flag { background: var(--amber-soft); border-color: #F1C98A; }
  .cu-t tr.flag td, .cu-t tr.flag td:first-child { background: none; box-shadow: none; }
  table.t.cu-t td { display: block; padding: 0; border: 0; min-width: 0; }
  .cu-t td:first-child { position: absolute; left: 12px; top: 10px; }
  .cu-t td:nth-child(n+2)::before { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  .cu-t td:nth-child(2)::before { content: 'Date'; } .cu-t td:nth-child(3)::before { content: 'Till'; }
  .cu-t td:nth-child(4)::before { content: 'Month'; } .cu-t td:nth-child(5)::before { content: 'Tithi'; }
  .cu-t td:nth-child(6)::before { content: 'Type'; } .cu-t td:nth-child(7)::before { content: 'No Kaul'; }
  .cu-t td:nth-child(8)::before { content: 'Notes (Marathi)'; } .cu-t td:nth-child(9)::before { content: 'Notes (English)'; }
  .cu-t td:nth-child(8), .cu-t td:nth-child(9) { grid-column: 1 / -1; }
  .cu-t input[type=date], .cu-t select.input, .cu-t .input { width: 100%; min-width: 0; max-width: 100%; }
  .cu-t td:nth-child(7) input { margin-top: 4px; }
}
