/* Sambatpatro — shared styles for the public site and the Studio. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --line: #e7e4de;
  --line-strong: #d6d2ca;
  --text: #1d1b19;
  --muted: #6b665f;
  --faint: #9a948b;
  --brand: #c8102e;          /* crimson */
  --brand-ink: #a10d25;
  --brand-soft: #fcebee;
  --navy: #1f3a8a;
  --navy-soft: #eaf0ff;
  --holiday: #c8102e;
  --ok: #1d7a4b;
  --ok-soft: #e6f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --today-ring: #1f3a8a;
  --hol-bg: #fdf1f3;
  --shadow: 0 1px 2px rgba(20, 16, 10, .05), 0 4px 16px rgba(20, 16, 10, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Mukta", "Noto Sans Devanagari", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --surface: #1c1b19; --surface-2: #222120; --line: #302e2b; --line-strong: #3d3a36;
    --text: #efece7; --muted: #aaa49b; --faint: #7d776f; --brand: #ff5a6e; --brand-ink: #ff7a8a;
    --brand-soft: #3a1c21; --navy: #8fa8ff; --navy-soft: #1f2640; --holiday: #ff6b7d; --ok: #5fcf95;
    --ok-soft: #173325; --warn: #f2b152; --warn-soft: #3a2c13; --today-ring: #8fa8ff; --hol-bg: #2b1a1d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #141312; --surface: #1c1b19; --surface-2: #222120; --line: #302e2b; --line-strong: #3d3a36;
  --text: #efece7; --muted: #aaa49b; --faint: #7d776f; --brand: #ff5a6e; --brand-ink: #ff7a8a;
  --brand-soft: #3a1c21; --navy: #8fa8ff; --navy-soft: #1f2640; --holiday: #ff6b7d; --ok: #5fcf95;
  --ok-soft: #173325; --warn: #f2b152; --warn-soft: #3a2c13; --today-ring: #8fa8ff; --hol-bg: #2b1a1d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.red { color: var(--holiday); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 90%; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.2px;
  min-width: 0; flex: 0 1 auto; }   /* shrinkable, so a long name truncates instead of overflowing the bar */
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Nav, the sign-in buttons and the language switch: one row on desktop, one drop-down on phones. */
.bar-menu { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.bar-auth { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.bar-lang { display: flex; align-items: center; }
.bar-lang-t { display: none; }   /* a label for the switch, shown only in the phone drop-down */
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.on { color: var(--brand); background: var(--brand-soft); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 14px; }
.lang a { padding: 5px 12px; color: var(--muted); }
.lang a.on { background: var(--text); color: var(--surface); }
.lang a:hover { text-decoration: none; }

.wrap { max-width: 90%; margin: 0 auto; padding: 24px 20px 60px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.card-h h2 { font-size: 17px; }
.card-b { padding: 16px 20px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 500 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--holiday); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13.5px; }
.btn.icon { width: 38px; padding: 0; }
/* the mobile menu button only shows on narrow screens */
.btn.menu-btn { display: none; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=search], input[type=email],
input[type=url], input[type=time], input[type=datetime-local], select, textarea {
  font: 15px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 7px 11px; min-height: 38px; max-width: 100%; }
textarea { width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
label { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field .help { font-size: 13px; color: var(--muted); font-weight: 400; }
.field .err { font-size: 13px; color: var(--holiday); }
.field input[type=text], .field input[type=number], .field select, .field input[type=password],
.field input[type=email], .field input[type=url], .field input[type=date], .field input[type=time] { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.red { background: var(--brand-soft); color: var(--holiday); border-color: transparent; }
.pill.navy { background: var(--navy-soft); color: var(--navy); border-color: transparent; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.notice { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14.5px; background: var(--warn-soft); color: var(--warn); margin-bottom: 16px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.err { background: var(--brand-soft); color: var(--holiday); }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }

/* ---------- today hero ---------- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-bottom: 22px;
  box-shadow: var(--shadow); }
.hero-date { width: 92px; height: 92px; border-radius: 22px; background: linear-gradient(160deg, #e11d3a, #b50e28);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(200, 16, 46, .25); }
.hero-date:hover { text-decoration: none; transform: translateY(-1px); }
.hero-date b { font-size: 42px; line-height: 1; }
.hero-date span { font-size: 14px; opacity: .92; margin-top: 2px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--brand); }
.hero-main h1 { font-size: 27px; letter-spacing: -.2px; margin-top: 2px; }
.hero-ad { color: var(--muted); font-size: 15.5px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-facts span { font-size: 13.5px; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.hero-facts span.red { color: var(--holiday); background: var(--brand-soft); border-color: transparent; }
.hero-next { display: flex; flex-direction: column; gap: 2px; min-width: 230px; max-width: 300px; padding: 14px 18px; border-radius: 16px;
  background: var(--brand-soft); color: var(--text); }
.hero-next:hover { text-decoration: none; filter: brightness(.98); }
.hero-next b { font-size: 17px; line-height: 1.3; }
.hero-next .muted { font-size: 13.5px; }
.hero-next .count { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--brand);
  padding: 2px 10px; border-radius: 999px; }

/* ---------- month calendar ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26%, 400px); gap: 22px; align-items: start; }
.cal-card { border-radius: 20px; }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 12px; flex-wrap: wrap; }
.cal-title h2 { font-size: 26px; letter-spacing: -.3px; }
.cal-title .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cal-ctrl { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg a { padding: 0 14px; height: 36px; display: inline-flex; align-items: center; color: var(--text); font-weight: 500; font-size: 15px; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a:hover { background: var(--surface-2); text-decoration: none; }
.seg a.on { color: var(--brand); }
.jump { display: flex; gap: 6px; }
.jump select { min-height: 36px; padding: 4px 10px; border-radius: 999px; }
/* Studio's calendar is still a table */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.cal th.sat { color: var(--holiday); }
.cal td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; padding: 0; height: 104px; }
.cal td:last-child { border-right: 0; }
.cal tr:last-child td { border-bottom: 0; }
.cal td.empty { background: var(--surface-2); }
/* public month grid */
.cal-wk, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 14px; }
.cal-wk div { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 0 8px; }
.cal-wk div.off { color: var(--holiday); }
.cal-wk .wk-1 { display: none; }    /* the single-letter weekday, swapped in on narrow phones */
.cal-grid { padding-bottom: 16px; }
.dcell { display: flex; text-decoration: none; flex-direction: column; min-height: 96px; padding: 8px 9px 7px; color: var(--text); text-align: left;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; font: inherit; cursor: pointer; position: relative;
  transition: border-color .12s, background .12s, box-shadow .12s; min-width: 0; }
.dcell:hover { text-decoration: none; border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.dcell.empty { background: transparent; cursor: default; }
.dcell.empty:hover { border-color: transparent; box-shadow: none; }
.dcell .top { display: flex; align-items: flex-start; justify-content: space-between; }
.dcell .n { font-size: 22px; font-weight: 700; line-height: 1; min-width: 34px; height: 34px; margin: -4px 0 0 -4px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.dcell .ad { font-size: 12px; color: var(--faint); }
.dcell .ti { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dcell .ev { font-size: 12px; line-height: 1.3; margin-top: auto; color: var(--navy); overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dcell .ev.h { color: var(--holiday); font-weight: 600; }
.dcell.hol { background: var(--hol-bg); }
.dcell.hol .n { color: var(--holiday); }
.dcell.today .n { background: var(--brand); color: #fff; }
.dcell .dots { position: absolute; right: 8px; bottom: 7px; display: flex; gap: 3px; }
.dcell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); display: none; }
.dcell .dots i.h { background: var(--holiday); }

/* ---------- rashifal, currency, gold under the calendar ---------- */
.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 20px; margin-top: 24px;
  align-items: stretch; }
.extras .side-block { min-width: 0; }
.side-card.fill { flex: 1; }



/* ---------- side panel ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.side .card { border-radius: 20px; }
.dp-date { padding: 20px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.dp-big { width: 74px; height: 74px; border-radius: 16px; background: var(--brand); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex: none; }
.dp-big.work { background: var(--navy); }
.dp-big b { font-size: 34px; line-height: 1; }
.dp-big span { font-size: 13px; opacity: .9; }
.dp-date h2 { font-size: 19px; }
.dp-date .sub { color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14.5px; padding: 16px 20px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.evlist { list-style: none; margin: 0; padding: 4px 20px 16px; }
.evlist li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.evlist li:first-child { border-top: 0; }
.evlist .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-top: 8px; flex: none; }
.evlist .dot.h { background: var(--holiday); }
.evlist .hl { color: var(--holiday); font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.section-t { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 700; padding: 14px 20px 4px; }
.list { list-style: none; margin: 0; padding: 4px 0 8px; }
.list li a, .list li > div { display: flex; gap: 12px; padding: 9px 20px; color: var(--text); align-items: center; }
.list li a:hover { background: var(--surface-2); text-decoration: none; }
.list .date-chip { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 0; line-height: 1.15; }
.list .date-chip b { display: block; font-size: 18px; }
.list .date-chip span { font-size: 11.5px; color: var(--muted); }
.list .date-chip.h b { color: var(--holiday); }
.list .t { font-size: 15px; line-height: 1.3; }
.list .s { font-size: 13px; color: var(--muted); }

/* ---------- day page ---------- */
.day-hero { display: flex; gap: 24px; align-items: center; padding: 28px; }
.day-hero .dp-big { width: 110px; height: 110px; border-radius: 22px; }
.day-hero .dp-big b { font-size: 52px; }
.day-hero h1 { font-size: 30px; }
.panch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.panch div:nth-child(4n) { border-right: 0; }
.panch div { padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panch span { display: block; font-size: 13px; color: var(--muted); }
.panch b { font-size: 17px; font-weight: 600; }
.panch small { display: block; color: var(--faint); font-size: 13px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); font-weight: 700;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---------- misc pages ---------- */
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: 28px; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); font-size: 14.5px; }
.tabs a.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.tabs a:hover { text-decoration: none; }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: 21px; margin: 28px 0 8px; }
.prose code, .code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre.code { display: block; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer .in { max-width: 90%; margin: 0 auto; padding: 22px 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.result-big { font-size: 26px; font-weight: 700; margin: 6px 0; }
.hol-month { margin-bottom: 20px; }
.hol-month h2 { font-size: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidenav { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidenav .brand { padding: 4px 10px 18px; font-size: 19px; }
.sidenav .brand small { font-weight: 600; color: var(--brand); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.sidenav a.item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
.sidenav a.item svg { width: 18px; height: 18px; flex: none; }
.sidenav a.item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidenav a.item.on { background: var(--brand-soft); color: var(--brand); }
.sidenav .grp { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 700; padding: 16px 12px 6px; }
.sidenav .badge { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px;
  font-weight: 700; padding: 0 7px; line-height: 19px; }
.sidenav .me { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.snav-btn { display: none; }      /* only on narrow screens, where .snav-items folds away */
.main { padding: 26px 32px 60px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat b { font-size: 28px; display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash > div { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.scell { display: block; height: 100%; padding: 7px 8px; color: var(--text); font-size: 12.5px; }
.scell:hover { background: var(--surface-2); text-decoration: none; }
.scell .n { font-size: 20px; font-weight: 700; }
.scell.hol .n { color: var(--holiday); }
.scell .e { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.scell .e.h { color: var(--holiday); }
.scell .e.hidden { color: var(--faint); text-decoration: line-through; }
.scell .flags { display: flex; gap: 3px; float: right; }
.flag { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.flag.warn { background: var(--warn); }
.flag.edit { background: var(--navy); }
.ev-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; }
.ev-row .body { flex: 1; min-width: 0; }
.ev-row .title { font-weight: 600; }
.ev-row.hidden .title { color: var(--faint); text-decoration: line-through; }
.ev-row .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ev-row form { display: inline; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login { width: 100%; max-width: 380px; padding: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-rashi { grid-column: 1 / -1; }
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: auto minmax(0, 1fr); }
  .hero-next { grid-column: 1 / -1; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .hero-next .count { margin: 0 0 0 auto; }
  .side { position: static; }
  .dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  /* The side column becomes a slim bar with a menu button; the list folds away behind it,
     rather than wrapping into several rows of chips above every page. */
  .sidenav { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 8px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidenav .brand { padding: 2px 0; margin-right: auto; font-size: 17px; }
  .sidenav .brand .mark { width: 26px; height: 26px; }
  .snav-btn { display: inline-flex; }
  .snav-items { display: none; width: 100%; flex-direction: column; gap: 2px;
    margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
  .sidenav.open .snav-items { display: flex; }
  .sidenav .grp { display: block; padding: 12px 12px 4px; }
  .sidenav a.item { padding: 10px 12px; }        /* a comfortable tap target */
  .sidenav .me { display: none; width: 100%; margin-top: 6px; }
  .sidenav.open .me { display: block; }
  .main { padding: 20px 16px 48px; }
}
@media (max-width: 720px) {
  /* The bar keeps only the logo, the account buttons and the menu; everything else drops down.
     `top: 100%` (not a fixed 62px) means the panel follows the shorter mobile bar by itself. */
  .topbar .in { gap: 10px; padding: 0 14px; height: 56px; }
  .brand { font-size: 18px; gap: 8px; margin-right: auto; }
  .brand .mark { width: 27px; height: 27px; }
  .bar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 14px 16px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; }
  .bar-menu.open { display: flex; }
  .nav { flex: none; flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .nav a { padding: 11px 12px; border-radius: 10px; font-size: 15.5px; font-weight: 600; color: var(--text); }
  .nav a.on { color: var(--brand); background: var(--brand-soft); }

  /* Sign in: two full-width buttons stacked, so neither looks like an afterthought beside the other. */
  .bar-auth { flex-direction: column; align-items: stretch; gap: 8px;
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .bar-auth .acct-login { display: inline-flex; align-items: center; justify-content: center; height: 42px;
    padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: 15px; font-weight: 600; color: var(--text); }
  .bar-auth .acct-login:hover { background: var(--surface-2); text-decoration: none; }
  .bar-auth .btn.sm { height: 42px; padding: 0 16px; font-size: 15px; font-weight: 600; }

  /* Language: a settings-style row, label on the left and the switch off to the right. */
  .bar-lang { justify-content: space-between; gap: 12px;
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .bar-lang-t { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
  .lang { margin: 0; flex: none; background: var(--surface-2); border-color: var(--line); padding: 3px;
    overflow: visible; }   /* the base rule clips, which would cut the selected chip's shadow */
  .lang a { padding: 6px 15px; font-size: 14.5px; font-weight: 600; border-radius: 999px; color: var(--muted); }
  .lang a.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(20, 16, 10, .10); }
  .btn.menu-btn { display: inline-flex; margin-left: 0; }
  .wrap { padding: 16px 16px 48px; }
  /* iOS zooms the whole page when a focused field is smaller than 16px, which then leaves the
     layout scrolled sideways. Keeping fields at 16px on touch widths avoids it entirely. */
  input[type=text], input[type=number], input[type=date], input[type=password], input[type=search],
  input[type=email], input[type=url], input[type=time], input[type=datetime-local], select, textarea { font-size: 16px; }
  .cal-head { padding: 14px 12px 8px; min-width: 0; }
  .cal-title h2 { font-size: 22px; }
  .cal-ctrl { margin-left: 0; width: 100%; }
  .jump { flex: 1; }
  .jump select { flex: 1; min-width: 0; }
  /* A tidy grid of square-ish day tiles: big BS number, small AD number, dots for events. */
  .cal-wk, .cal-grid { gap: 5px; padding: 0 10px; }
  .cal-wk div { font-size: 12.5px; padding: 4px 0 7px; }
  .cal-grid { padding-bottom: 12px; }
  .dcell { min-height: 60px; padding: 7px 2px 6px; align-items: center; justify-content: flex-start;
    border-radius: 12px; }
  .dcell .top { flex-direction: column; align-items: center; gap: 1px; }
  .dcell .n { font-size: 18.5px; min-width: 28px; height: 28px; margin: 0; }
  .dcell .ad { font-size: 10.5px; line-height: 1; }
  .dcell .ti, .dcell .ev { display: none; }
  .dcell .dots { position: static; margin-top: 4px; gap: 2.5px; }
  .dcell .dots i { display: block; width: 5px; height: 5px; }
  .hero { padding: 16px; gap: 14px; border-radius: 16px; }
  .hero-date { width: 70px; height: 70px; border-radius: 18px; }
  .hero-date b { font-size: 32px; }
  .hero-main h1 { font-size: 20px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .panch { grid-template-columns: 1fr 1fr; }
  .panch div:nth-child(4n) { border-right: 1px solid var(--line); }
  .panch div:nth-child(2n) { border-right: 0; }
  .day-hero { padding: 20px; gap: 16px; }
  .day-hero .dp-big { width: 84px; height: 84px; }
  .day-hero .dp-big b { font-size: 38px; }
  .day-hero h1 { font-size: 22px; }
}

/* Small phones (iPhone SE / 360 px Androids): the header and the day tiles get tighter still. */
@media (max-width: 430px) {
  .topbar .in { gap: 8px; padding: 0 12px; }
  .brand { font-size: 16.5px; gap: 7px; }
  .brand .mark { width: 24px; height: 24px; }
  .wrap { padding: 14px 12px 40px; }
  .footer .in { padding: 18px 12px; gap: 10px 14px; }

  /* One letter per weekday, so the columns stay even and nothing wraps. */
  .cal-wk .wk-ab { display: none; }
  .cal-wk .wk-1 { display: inline; }
  .cal-wk, .cal-grid { gap: 3px; padding: 0 6px; }
  .cal-wk div { font-size: 12px; padding: 4px 0 6px; }
  .dcell { min-height: 54px; padding: 6px 1px 5px; border-radius: 10px; }
  .dcell .n { font-size: 17px; min-width: 26px; height: 26px; }
  .dcell .ad { font-size: 9.5px; }
  .cal-head { padding: 12px 10px 8px; gap: 10px; }
  .cal-title h2 { font-size: 20px; }

  .hero { padding: 14px; gap: 12px; }
  .hero-date { width: 62px; height: 62px; border-radius: 16px; }
  .hero-date b { font-size: 28px; }
  .hero-main h1 { font-size: 18px; }
  .card-h, .card-b { padding: 14px 14px; }
  .rashi-grid-pub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gold-card { padding: 14px 14px 10px; }
  .toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Studio: weekly holidays ---------- */
.weekchips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekchip { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; background: var(--surface-2); }
.weekchip b { display: block; font-size: 16px; }
.weekchip span { display: block; font-size: 13px; color: var(--muted); }
.weekchip small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.weekchip.off { background: var(--brand-soft); border-color: transparent; }
.weekchip.off b, .weekchip.off small { color: var(--holiday); }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.daytoggle { position: relative; cursor: pointer; }
.daytoggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.daytoggle span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); font-weight: 600; color: var(--muted); background: var(--surface); }
.daytoggle input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.daytoggle input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 1px; }

/* ---------- banners (website carousel + Studio) ---------- */
.promo { margin-bottom: 22px; border-radius: 20px; overflow: hidden; }
.cal-main { min-width: 0; display: flex; flex-direction: column; }  /* banner above the calendar, beside the festivals */
.cal-main .cal-card { flex: 1; }
.cal-main > .promo { width: 100%; }  /* Swiper sets margin: auto, which would stop it stretching in a flex column */
.promo-slide { display: flex; align-items: center; aspect-ratio: 6 / 1; min-height: 96px; max-height: 150px; width: 100%;
  border-radius: 18px; background-size: cover; background-position: center; color: #fff; padding: 16px 28px; position: relative; }
.promo-slide:hover { text-decoration: none; }
.promo-text { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 18px; width: 100%; position: relative; z-index: 1; }
.promo-text b { font-size: clamp(17px, 2vw, 24px); line-height: 1.2; }
.promo-text > span:not(.promo-btn) { font-size: clamp(13.5px, 1.3vw, 16px); opacity: .95; flex-basis: 100%; order: 2; }
.promo-text b { order: 1; flex-basis: 100%; }
.promo-text.over { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.promo-slide:has(.promo-text.over)::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); }
.promo-btn { order: 3; position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: #fff; color: #1d1b19;
  font-weight: 700; font-size: 14.5px; padding: 8px 18px; border-radius: 999px; text-shadow: none; white-space: nowrap; }
.promo-text:has(.promo-btn) { padding-right: 160px; }
.promo { margin-bottom: 22px; }
.promo .swiper-pagination { bottom: 6px !important; }
.promo .swiper-pagination-bullet { background: #fff; opacity: .6; }
.promo .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 999px; transition: width .2s; }
.banner-list { display: grid; gap: 14px; }
.banner-row { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 18px; padding: 14px; align-items: start; }
.banner-row.dim .bprev { opacity: .6; }
.banner-row .title { font-weight: 700; font-size: 16.5px; }
.banner-row .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bprev { aspect-ratio: 6 / 1; border-radius: 12px; display: flex; align-items: center; padding: 10px 14px; color: #fff;
  background-size: cover; background-position: center; overflow: hidden; }
.bprev.big { margin-bottom: 14px; padding: 16px 22px; }
.bprev-text { display: flex; flex-direction: column; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); min-width: 0; }
.bprev-text b { font-size: 15px; line-height: 1.2; }
.bprev-text span { font-size: 12.5px; opacity: .95; }
.bprev.big .bprev-text b { font-size: 21px; }
.bprev.big .bprev-text span { font-size: 14.5px; }
@media (max-width: 860px) { .banner-row { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .promo-slide { aspect-ratio: 3 / 1; padding: 14px 16px 22px; border-radius: 16px; }
  .promo-text:has(.promo-btn) { padding-right: 0; }
  .promo-btn { position: static; transform: none; margin-top: 6px; padding: 5px 14px; font-size: 13.5px; }
  .promo { border-radius: 16px; }
}

/* ---------- today card: live clock, sun times, panchanga drop-down ---------- */
.hero-date span { font-size: 13px; }
.hero-sub { color: var(--text); font-size: 15px; margin-top: 2px; }
.hero-ad { font-size: 14px; }
.hero-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.clock { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .3px; min-width: 150px; }
.sun { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sun svg { width: 20px; height: 20px; fill: none; stroke: #f08c00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panch-toggle { font: 600 13.5px var(--font); color: var(--brand); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.panch-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
.panch-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin: 12px 0 0; padding: 12px 14px;
  background: var(--surface-2); border-radius: 12px; }
.panch-more[hidden] { display: none; }
.panch-more dt { font-size: 12px; color: var(--muted); }
.panch-more dd { margin: 0; font-weight: 600; font-size: 14px; }
.panch-more small { font-weight: 400; color: var(--faint); }

/* ---------- sidebar blocks ---------- */
.side-card { border-radius: 18px; overflow: hidden; }
.side-card.pad { padding: 14px 16px; }
.side-block { display: flex; flex-direction: column; gap: 8px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.side-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.side-head h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; }
.side-head a { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.side-date { font-size: 13px; color: var(--muted); text-align: right; margin-bottom: 10px; }
.side-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; }
.side-foot a { font-weight: 600; color: var(--brand); }

/* festivals / upcoming holidays */
.tabs2 { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs2 button { flex: 1; font: 600 15px var(--font); color: var(--muted); background: none; border: 0; padding: 11px 8px; cursor: pointer;
  border-bottom: 2px solid transparent; }
.tabs2 button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--surface); }
.fest-list { list-style: none; margin: 0; padding: 0; max-height: 452px; overflow-y: auto; scrollbar-width: thin; }
.fest-list[hidden] { display: none; }
.fest-list li + li { border-top: 1px solid var(--line); }
.fest-empty { padding: 14px 16px; }
.fest-row { display: flex; align-items: center; gap: 11px; padding: 10px 14px; color: var(--text); }
.fest-row:hover { background: var(--surface-2); text-decoration: none; }
.fest-row img, .thumb-ph { flex: none; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.thumb-ph { display: flex; align-items: center; justify-content: center; background: var(--navy-soft); color: var(--navy);
  font-weight: 700; font-size: 15px; }
.thumb-ph.h { background: var(--brand-soft); color: var(--holiday); }
.fest-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fest-mid b { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.fest-mid small, .fest-when small { font-size: 11.5px; color: var(--muted); }
.fest-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fest-when b { font-size: 13.5px; }
.fest-row.past { opacity: .6; }
.fest-row.is-today { background: var(--brand-soft); }
.fest-row.is-today:hover { background: var(--brand-soft); }
.fest-row b.red { color: var(--holiday); }

/* my notes */
.notes-login { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.notes-login svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes-login:hover { color: var(--text); text-decoration: none; }
.notes-login.small { font-size: 13.5px; }
.note-mini { list-style: none; margin: 0; padding: 0; }
.note-mini li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.note-mini li + li { border-top: 1px solid var(--line); }
.note-mini .nd { flex: none; width: 64px; color: var(--brand); font-weight: 600; }
.dp-notes { padding: 0 20px 14px; }
.dp-note-list { list-style: none; margin: 0 0 8px; padding: 0; }
.dp-note-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; }
.dp-note-list li span { flex: 1; min-width: 0; }
.dp-note-list li.done span { text-decoration: line-through; color: var(--faint); }
.nchk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: none; cursor: pointer; flex: none; }
.dp-note-list li.done .nchk { background: var(--ok); border-color: var(--ok); }
.ndel { border: 0; background: none; color: var(--faint); font-size: 18px; cursor: pointer; line-height: 1; }
.ndel:hover { color: var(--holiday); }
.dp-note-add { display: flex; gap: 6px; }
.dp-note-add input[name=text] { flex: 1; min-width: 0; min-height: 34px; }
.dp-note-add input[type=time] { width: 106px; min-height: 34px; padding: 4px 6px; }
.dp-note-add .btn { height: 34px; width: 34px; padding: 0; font-size: 18px; }

/* rashifal */
.rashi-sel { width: 100%; font-weight: 700; color: var(--brand); font-size: 16px; }
.rashi-text { margin: 12px 2px 0; font-size: 14.5px; line-height: 1.7; }

/* currency converter */
.fx { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 10px; align-items: end; }
.fx label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.fx input, .fx select { width: 100%; min-width: 0; font-size: 14.5px; }
.fx input[readonly] { background: var(--surface-2); font-weight: 700; }
.fx-result { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.fx-result b { font-size: 18px; color: #e8590c; }

/* gold and silver */
.metal { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.metal + .metal { border-top: 1px solid var(--line); }
.metal-ico { width: 46px; height: 32px; border-radius: 6px; flex: none; transform: skewX(-12deg);
  background: linear-gradient(135deg, #ffe08a, #e0a526 45%, #b27a0f 70%, #f5cf63); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.metal-ico.gold2 { background: linear-gradient(135deg, #ffe7a8, #d9a43a 50%, #a8741a); }
.metal-ico.silver { background: linear-gradient(135deg, #f4f5f7, #b8bcc4 45%, #8a8f99 70%, #e3e5e9); }
.metal-name { flex: 1; display: flex; flex-direction: column; }
.metal-name b { font-size: 15px; }
.metal-name small { font-size: 12px; color: var(--muted); }
.metal-val { display: flex; flex-direction: column; align-items: flex-end; }
.metal-val b { font-size: 16px; }
.metal-chg { font-size: 11.5px; font-weight: 600; }
.metal-chg.up { color: var(--ok); }
.metal-chg.down { color: var(--holiday); }

/* header account link, sign-in page, notes page */
.acct { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.acct a { color: var(--text); font-weight: 600; }
.acct form { display: inline; }
.acct button { font: 500 14px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; }
.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth { width: 100%; max-width: 420px; padding: 28px; }
.auth h1 { font-size: 24px; }
.note-page { list-style: none; margin: 0; padding: 6px 0; }
.note-page li { display: flex; gap: 14px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.note-page li:last-child { border-bottom: 0; }
.note-page .nd { flex: none; width: 150px; font-weight: 600; }
.note-page li.done .nt { text-decoration: line-through; color: var(--faint); }
.note-page.past .nt { color: var(--muted); }
@media (max-width: 720px) {
  .panch-more { grid-template-columns: 1fr 1fr; }
  .clock { font-size: 20px; min-width: 0; }
}

.thumb-edit { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 14px; padding: 12px; border: 1px dashed var(--line-strong);
  border-radius: 12px; }
.thumb-edit img, .thumb-edit .thumb-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.thumb-edit .field { margin-bottom: 6px; }
.rashi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rashi-card { padding: 14px 16px; }
.rashi-card h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rashi-card h3 .sym { color: var(--brand); font-size: 20px; }
.rashi-card textarea { min-height: 88px; font-size: 14.5px; line-height: 1.6; }
.rashi-card textarea + textarea { margin-top: 6px; min-height: 60px; }
@media (max-width: 860px) { .rashi-grid { grid-template-columns: 1fr; } }

@media (max-width: 1020px) { .topbar .in, .wrap, .footer .in { max-width: 100%; } }

/* ---------- top row: today card + gold & silver card ---------- */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26%, 400px); gap: 22px; margin-bottom: 22px;
  align-items: stretch; }
.hero-row .hero { margin-bottom: 0; }
.gold-card { border-radius: 20px; padding: 16px 18px 12px; display: flex; flex-direction: column; }
.gold-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.gold-head h2 { font-size: 16.5px; }
.gold-head span { font-size: 12.5px; color: var(--muted); }
.gold-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.gold-row + .gold-row { border-top: 1px solid var(--line); }
.gold-row .metal-ico { width: 38px; height: 25px; border-radius: 5px; }
.gold-name { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.gold-name b { font-size: 14.5px; }
.gold-name small { font-size: 11.5px; color: var(--muted); }
.gold-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.gold-val b { font-size: 15.5px; }
.gold-val .metal-chg { font-size: 11.5px; }
.gold-foot { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--faint); text-align: right; }
.hero-next { align-self: stretch; justify-content: center; min-width: 0; width: clamp(180px, 18vw, 300px); }

/* ---------- festivals card is exactly as tall as the calendar ---------- */
.cal-layout { align-items: stretch; }
.side { position: relative; min-height: 420px; }
#fest-card { position: absolute; inset: 0; display: flex; flex-direction: column; }
#fest-card .fest-list { flex: 1; max-height: none; }

/* ---------- my notes ---------- */
.notes-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%;
  gap: 6px; padding: 8px 0; }
.notes-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.notes-art { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); display: flex; align-items: center;
  justify-content: center; margin-bottom: 4px; }
.notes-art svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; }
.note-mini li { padding: 0; }
.note-mini li a { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--text); }
.note-mini li a:hover { text-decoration: none; }
.note-mini .nd { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex;
  flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.note-mini .nd b { font-size: 17px; }
.note-mini .nd small { font-size: 10.5px; margin-top: 2px; font-weight: 500; }
.note-mini .nt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.note-mini .nt small { color: var(--muted); font-size: 12px; }

/* ---------- rashifal: all signs ---------- */
.rashi-grid-pub { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rashi-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer;
  transition: background .12s, border-color .12s; }
.rashi-chip .sym { font-size: 22px; line-height: 1; color: var(--brand); }
.rashi-chip:hover { background: var(--surface-2); }
.rashi-chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rashi-chip[aria-selected="true"] .sym { color: #fff; }
.rashi-reading { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); }
.rashi-reading b { color: var(--brand); font-size: 16px; }
.rashi-reading .rashi-text { margin: 6px 0 0; }

@media (max-width: 760px) {
  .hero-next { grid-column: 1 / -1; max-width: none; width: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .hero-next .count { margin: 0 0 0 auto; }
}
@media (max-width: 1020px) {
  .side { min-height: 0; }
  #fest-card { position: static; }
  #fest-card .fest-list { max-height: 420px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .extras { grid-template-columns: minmax(0, 1fr); }
  .rashi-grid-pub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- header: bell, account menu, pop-up panels ---------- */
.acct { gap: 8px; }
.acct-login { font-weight: 600; color: var(--text); padding: 0 6px; }
.pop-wrap { position: relative; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.acct .avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong);
  background: var(--navy); color: #fff; font: 700 15px var(--font); cursor: pointer; overflow: hidden; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 320px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(20, 16, 10, .16);
  padding: 8px; }
.pop-panel[hidden] { display: none; }
.pop-head { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bell-panel .pop-head { flex-direction: row; justify-content: space-between; align-items: baseline; }
.pop-head a { font-size: 13px; font-weight: 600; }
.pop-head .muted { font-size: 13px; }
.umenu { width: 240px; }
.umenu > a, .umenu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--text);
  font: 500 14.5px var(--font); background: none; border: 0; cursor: pointer; }
.umenu > a:hover, .umenu button:hover { background: var(--surface-2); text-decoration: none; }
.umenu form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.pop-sec { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 8px 10px 4px; }
.pop-row { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--text); }
.pop-row:hover { background: var(--surface-2); text-decoration: none; }
.pop-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pop-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-row small { font-size: 12px; color: var(--muted); }
.pop-date { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--navy-soft); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pop-date b { font-size: 15px; }
.pop-date small { font-size: 9.5px; color: inherit; margin-top: 2px; }
.pop-row.holiday .pop-date { background: var(--brand-soft); color: var(--holiday); }
.pop-row.google .pop-date { background: #e8f0fe; color: #1a73e8; }
.pop-empty { padding: 10px; margin: 0; font-size: 14px; }
.bell-panel #bell-enable { margin: 6px 10px 6px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 340px; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 40px 14px 16px; border-radius: 14px; background: var(--text); color: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  animation: toast-in .25s ease-out; }
.toast span { font-size: 13.5px; opacity: .85; }
.toast button { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- sign in with Google ---------- */
.google-btn { width: 100%; height: 44px; gap: 10px; font-weight: 600; border-color: var(--line-strong); }
.google-btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- account settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.set-h { font-size: 18px; margin-bottom: 12px; }
.g-status { display: flex; align-items: center; gap: 12px; }
.g-status img { border-radius: 50%; }

/* ---------- my calendar (Google-Calendar style) ---------- */
.mycal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.mycal-side { display: flex; flex-direction: column; gap: 14px; }
.mycal-create { height: 50px; border-radius: 16px; font-size: 16px; justify-content: flex-start; padding: 0 20px; gap: 10px;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .25); }
.mycal-create svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.mycal-box { padding: 14px 16px; border-radius: 16px; }
.mycal-box h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  text-align: left; border-radius: 10px; font: inherit; color: var(--text); }
.agenda-item:hover { background: var(--surface-2); }
.ag-date { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex;
  flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ag-date b { font-size: 15px; }
.ag-date small { font-size: 9.5px; margin-top: 2px; }
.ag-body { display: flex; flex-direction: column; min-width: 0; }
.ag-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-meta { font-size: 12px; color: var(--muted); }
.gs-line { margin: 0 0 2px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.gs-sub { font-size: 13px; margin: 0 0 10px; }
.dot-ok, .dot-off { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dot-off { background: var(--faint); }
.mycal-main { border-radius: 20px; overflow: hidden; }
.mycal-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mycal-bar h1 { font-size: 22px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg-patro { background: var(--brand); }
.lg-google { background: #1a73e8; }
.lg-hol { background: var(--hol-bg); border: 1px solid #f3c7cf; }
.mycal-wk, .mycal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mycal-wk div { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .4px; }
.mycal-wk div.off { color: var(--holiday); }
.mc-cell { min-height: 118px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .12s; }
.mc-cell:nth-child(7n) { border-right: 0; }
.mc-cell:hover { background: var(--surface-2); }
.mc-cell.empty { background: var(--surface-2); cursor: default; }
.mc-cell.hol { background: var(--hol-bg); }
.mc-top { display: flex; align-items: center; justify-content: space-between; }
.mc-n { font-size: 15px; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; }
.mc-cell.hol .mc-n { color: var(--holiday); }
.mc-cell.today .mc-n { background: var(--brand); color: #fff; }
.mc-ad { font-size: 11.5px; color: var(--faint); }
.mc-fest { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fest.h { color: var(--holiday); font-weight: 600; }
.mc-notes { display: flex; flex-direction: column; gap: 2px; }
.mc-chip { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 2px 6px; font: 500 12px var(--font);
  color: #fff; background: var(--brand); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-chip.google { background: #1a73e8; }
.mc-chip.done { opacity: .5; text-decoration: line-through; }
.mc-chip b { font-weight: 700; }
.mc-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 18px 20px; background: var(--surface);
  color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); }
.mc-dialog::backdrop { background: rgba(20, 16, 10, .35); }
.mc-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mc-dialog-head h2 { font-size: 18px; }
.mc-title-input { font-size: 20px !important; font-weight: 600; border-width: 0 0 2px !important; border-radius: 0 !important;
  padding-left: 2px !important; }
.mc-title-input:focus { outline: none; border-color: var(--brand) !important; }

@media (max-width: 1020px) {
  .mycal { grid-template-columns: minmax(0, 1fr); }
  .mycal-side { order: 2; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .mc-cell { min-height: 74px; padding: 4px 3px; }
  .mc-fest { display: none; }
  .mc-chip { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .mc-chip b { display: none; }
  .legend { display: none; }
}

.u-cell { display: flex; align-items: center; gap: 10px; }
.u-cell img, .u-ava { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.u-ava { display: inline-flex; align-items: center; justify-content: center; background: var(--navy-soft); color: var(--navy); font-weight: 700; }

/* Studio → Clients: sign-ups per day */
.signup-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 16px 20px 30px; }
.signup-chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.signup-chart .bar i { display: block; min-height: 2px; background: var(--brand, #c62828); border-radius: 3px 3px 0 0; opacity: .85; }
.signup-chart .bar:hover i { opacity: 1; }
.signup-chart .bar span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px;
  font-size: 11px; color: var(--muted); white-space: nowrap; }
