/* Shabbat Times. A live sky on top (mobile) or on the left (desktop), calm content beside it. */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EFECE5;
  --ink: #17181C;
  --muted: #6B6A70;
  --line: #E4E0D7;
  --accent: #B8650F;
  --accent-soft: #F7E9D4;
  --focus: #3659D8;
  --shadow: 0 1px 2px rgba(20, 18, 12, .05), 0 8px 24px rgba(20, 18, 12, .06);
  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-he: "Noto Sans Hebrew", "Arial Hebrew", "David", sans-serif;
  --pad: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D12; --surface: #16171E; --surface-2: #1E2029; --ink: #F1EFEA; --muted: #9A99A3;
    --line: #262833; --accent: #F0A94B; --accent-soft: #2A2116; --focus: #8FA5FF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0D12; --surface: #16171E; --surface-2: #1E2029; --ink: #F1EFEA; --muted: #9A99A3;
  --line: #262833; --accent: #F0A94B; --accent-soft: #2A2116; --focus: #8FA5FF;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he { font-family: var(--font-he); font-weight: 500; direction: rtl; unicode-bidi: isolate; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Sky ---------- */
.sky {
  --s1: #0B1030; --s2: #1A2152; --s3: #3A2E5C; --glow: rgba(120, 110, 200, .25);
  --sky-ink: #FBF8F2; --sky-dim: rgba(251, 248, 242, .72); --star: 0;
  position: relative; isolation: isolate; overflow: hidden; color: var(--sky-ink);
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%);
  transition: background 1.5s ease;
}
.sky[data-phase="dawn"]   { --s1: #232B5C; --s2: #7A6A9E; --s3: #F1B38C; --glow: rgba(255, 190, 140, .55); }
.sky[data-phase="day"]    { --s1: #1D4C8A; --s2: #3F78BC; --s3: #7FA9D6; --glow: rgba(255, 244, 214, .45); }
.sky[data-phase="golden"] { --s1: #25407A; --s2: #8F7BA0; --s3: #F2B774; --glow: rgba(255, 196, 110, .7); }
.sky[data-phase="dusk"]   { --s1: #131A45; --s2: #4B3A72; --s3: #D9745A; --glow: rgba(255, 140, 90, .6); --star: .35; }
.sky[data-phase="night"]  { --star: .8; }
.sky[data-phase="shabbat"]{ --s1: #090C24; --s2: #151A45; --s3: #3B2A48; --glow: rgba(255, 176, 80, .38); --star: 1; }
.sky-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.horizon {
  position: absolute; left: -20%; right: -20%; bottom: -35%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, var(--glow), transparent 65%);
  transition: background 1.5s ease;
}
.stars {
  position: absolute; inset: 0 0 35% 0; opacity: var(--star); transition: opacity 1.5s ease;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 47% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 36% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 70% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 50%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 6%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.8); } to { filter: brightness(1.25); } }

header.sky {
  display: flex; flex-direction: column; gap: 22px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--pad) 22px;
  border-radius: 0 0 30px 30px;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.place-btn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: var(--sky-ink);
  padding: 9px 14px 9px 12px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.place-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-btn .chev { width: 16px; height: 16px; opacity: .8; }
.round {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: var(--sky-ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.round.soft { background: var(--surface-2); border-color: transparent; color: var(--ink); backdrop-filter: none; }
.sub-line { margin: -12px 0 0; font-size: .88rem; color: var(--sky-dim); min-height: 1.3em; }
.sub-line button { background: none; border: 0; padding: 0; color: var(--sky-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.focus { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 0 6px; }
.kicker {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dim);
}
.big {
  margin: 10px 0 0; font-weight: 700; line-height: .9;
  font-size: clamp(4.4rem, 22vw, 7.2rem); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px rgba(0,0,0,.15);
}
.big small { font-size: .3em; font-weight: 600; letter-spacing: -.01em; margin-left: .16em; color: var(--sky-dim); }
.when { margin: 14px 0 0; font-size: 1.15rem; font-weight: 500; color: var(--sky-ink); }
.count {
  margin: 14px 0 0; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); font-size: .9rem; font-weight: 500; color: var(--sky-ink);
}
.count:empty { display: none; }

/* One calm card for the secondary times */
.glance {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 2px 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.g-row + .g-row { border-top: 1px solid rgba(255,255,255,.12); }
.g-row span { color: var(--sky-dim); font-size: .95rem; }
.g-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 14px 0 2px; overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FFC46B, #FFE2A8); }

/* Shabbat track: candle lighting to havdalah */
.track { position: relative; padding-top: 4px; }
.track:empty { display: none; }
.t-line { position: relative; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 0 6px; }
.t-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #FFC46B, #FFE2A8); }
.t-dot { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--s2); border: 2px solid rgba(255,255,255,.7); }
.t-dot.on { background: #FFC46B; border-color: #FFE2A8; box-shadow: 0 0 10px rgba(255,196,107,.8); }
.t-now { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.t-labels { position: relative; height: 44px; margin-top: 10px; }
.t-lab { position: absolute; top: 0; display: flex; flex-direction: column; font-size: .8rem; color: var(--sky-dim); line-height: 1.3; white-space: nowrap; transform: translateX(-50%); text-align: center; }
.t-lab b { color: var(--sky-ink); font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-lab.first { transform: none; text-align: left; }
.t-lab.last { transform: translateX(-100%); text-align: right; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0;
  background: none; border: 0; color: var(--sky-ink); font-size: .82rem; font-weight: 500;
}
.actions button span { position: relative;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s;
}
.actions button:hover span { background: rgba(255,255,255,.22); }
.actions svg { width: 22px; height: 22px; }
.actions .dot { position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 2px rgba(0,0,0,.2); }

/* ---------- Content ---------- */
.content { padding: 20px var(--pad) calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .95rem;
  white-space: nowrap;
}
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .star { display: inline-grid; place-items: center; margin-right: -6px; width: 26px; height: 26px; border-radius: 50%; }
.chip .star svg { width: 16px; height: 16px; }
.chip.add { color: var(--muted); border-style: dashed; }
.chip.save { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }

.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  background: var(--accent-soft); color: var(--ink); font-size: .96rem;
}
.note .ni { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.note b { display: block; font-weight: 600; }
.note p { margin: 2px 0 0; color: var(--muted); }

.block { display: flex; flex-direction: column; gap: 8px; }
.block h2 { margin: 0 0 4px; font-weight: 650; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.small { font-size: .88rem; }
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; }

.rows { list-style: none; margin: 0; padding: 4px 18px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.row:last-child { border-bottom: 0; }
.row.muted { display: block; }
.row.past { opacity: .45; }
.row.key .r-title { font-weight: 600; }
.r-day { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.r-day span { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r-day b { font-weight: 500; font-size: 1.35rem; margin-top: 4px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.r-main { min-width: 0; }
.r-title { display: block; font-weight: 500; }
.r-sub { display: block; font-size: .86rem; color: var(--muted); }
.r-sub .he { font-size: .95rem; }
.r-time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.r-time.candle { color: var(--accent); }
.pill { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; }

.weeks .row { grid-template-columns: 58px 1fr auto; }
.weeks .r-day b { font-size: 1.3rem; }
.weeks .r-time { display: flex; flex-direction: column; line-height: 1.3; }
.weeks .r-time b { font-weight: 600; }
.weeks .r-time span { font-size: .84rem; font-weight: 400; color: var(--muted); }

.parsha { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.parsha-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.parsha-top .en { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.parsha-top .en small { display: block; font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.parsha-top .he { font-size: 1.35rem; color: var(--muted); }
.parsha p { margin: 0; }
.readings { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.readings dt { color: var(--muted); }
.readings dd { margin: 0; font-variant-numeric: tabular-nums; }
.aliyot { margin: 0; padding-left: 20px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; columns: 2; }
.more { font-weight: 600; font-size: .95rem; text-decoration: none; }

.foot { font-size: .84rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.foot p { margin: 0; max-width: 60ch; }

/* ---------- Desktop: sky on the left, content on the right ---------- */
@media (min-width: 960px) {
  :root { --pad: 34px; }
  .app { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 100dvh; }
  header.sky {
    position: sticky; top: 12px; margin: 12px 0 12px 12px; height: calc(100dvh - 24px);
    border-radius: 30px; padding: 26px var(--pad) 30px; justify-content: space-between; gap: 18px;
  }
  .focus { padding-top: 0; flex: 1; justify-content: center; }
  .big { font-size: clamp(6.4rem, 9vw, 9.4rem); }
  .content { padding: 44px clamp(28px, 5vw, 72px) 60px; max-width: 700px; }
  .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
}

/* ---------- Sheets ---------- */
dialog {
  border: 0; padding: 0; background: var(--bg); color: var(--ink);
  width: 100%; max-width: 100%; margin: auto auto 0; max-height: 88dvh;
  border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25);
}
dialog[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
dialog::backdrop { background: rgba(8, 9, 14, .5); backdrop-filter: blur(3px); }
@media (min-width: 640px) {
  dialog { width: min(460px, calc(100vw - 32px)); margin: auto; border-radius: 26px; }
  .grab { display: none; }
}
.sheet { padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.grab { width: 38px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { margin: 0; font-weight: 650; font-size: 1.45rem; letter-spacing: -.02em; }
.sheet p { margin: 0; }
.sheet-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 4px -6px !important; }

.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.05rem; }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 18px; overflow: hidden; }
.list:empty { display: none; }
.list li + li { border-top: 1px solid var(--line); }
.list li > button, .list-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0;
  padding: 13px 16px; min-height: 54px;
}
.list li > button:hover, .list-btn:hover { background: var(--surface-2); }
.list .flag { font-size: 1.25rem; }
.list .muted-row { padding: 14px 16px; color: var(--muted); font-size: .95rem; }
.list-btn { background: var(--surface); border-radius: 18px; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.ico svg { width: 18px; height: 18px; }
.lb-text { display: flex; flex-direction: column; line-height: 1.3; }
.lb-text small { color: var(--muted); font-size: .85rem; }
.saved { display: flex; align-items: center; }
.saved > button:first-child { flex: 1; min-width: 0; }
.saved .pn { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved .pt { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.saved .cur { color: var(--accent); font-size: .78rem; font-weight: 600; margin-left: 6px; }
.saved .rm { flex: none; width: auto !important; min-height: 0 !important; padding: 10px 16px !important; color: var(--muted); }
.saved .rm:hover { color: #C4331F; background: none !important; }

.group { background: var(--surface); border-radius: 18px; overflow: hidden; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; min-height: 54px; }
.setting + .setting { border-top: 1px solid var(--line); }
.setting > span { font-weight: 500; }
.setting select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--muted);
  text-align: right; text-align-last: right; padding: 14px 20px 14px 0; font-size: .98rem; min-width: 0; max-width: 60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A99A3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 10l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 18px;
}
.setting select:focus-visible { outline: 2px solid var(--focus); }
.toggle input {
  appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 30px; margin: 0;
  background: var(--line); position: relative; transition: background .2s; flex: none; cursor: pointer;
}
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked { background: #34A853; }
.toggle input:checked::after { transform: translateX(20px); }

.btn { min-height: 52px; border-radius: 16px; border: 0; background: var(--surface); font-weight: 600; font-size: 1rem; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .9; }

/* ---------- Big screen ---------- */
.display {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4vh; text-align: center; padding: 24px;
}
.display[hidden] { display: none !important; }
.display-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; }
.d-place { margin: 0; font-size: clamp(1rem, 2.4vw, 1.8rem); color: var(--sky-dim); letter-spacing: .04em; }
.d-name { margin: 0; font-weight: 600; letter-spacing: -.03em; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.05; }
.d-row { display: flex; flex-wrap: wrap; gap: 3vh 7vw; justify-content: center; margin-top: 2vh; }
.d-row > div { display: flex; flex-direction: column; align-items: center; }
.d-label { font-size: clamp(.85rem, 1.8vw, 1.3rem); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-dim); font-weight: 600; }
.d-time { font-weight: 250; letter-spacing: -.05em; font-size: clamp(4rem, 14vw, 12rem); line-height: 1; font-variant-numeric: tabular-nums; }
.d-time small { font-size: .28em; font-weight: 400; letter-spacing: 0; margin-left: .15em; color: var(--sky-dim); }
.d-day { font-size: clamp(1rem, 2.2vw, 1.6rem); color: var(--sky-dim); }
.d-count { margin: 2vh 0 0; font-size: clamp(1.1rem, 2.8vw, 2rem); font-weight: 500; }
.d-clock { margin: 0; color: var(--sky-dim); font-variant-numeric: tabular-nums; font-size: clamp(.9rem, 1.8vw, 1.3rem); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 500; z-index: 60;
  max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .25s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Blessing ---------- */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg:empty { display: none; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.b-how { font-size: .92rem; color: var(--muted); }
.b-he { font-family: var(--font-he); font-size: 1.35rem; line-height: 1.75; direction: rtl; text-align: right; margin: 0; }
.b-tr { font-weight: 500; line-height: 1.5; margin: 0; }
.b-en { font-size: .9rem; color: var(--muted); margin: 0; }
.b-part + .b-part { border-top: 1px solid var(--line); padding-top: 14px; }
.b-part { display: flex; flex-direction: column; gap: 8px; }
.b-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Zmanim ---------- */
.zgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
@media (min-width: 520px) { .zgrid { grid-template-columns: repeat(3, 1fr); } }
.z { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); }
.z span { font-size: .8rem; color: var(--muted); }
.z b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.z.past { opacity: .45; }
.z.next b { color: var(--accent); }
.z-toggle { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: .92rem; align-self: flex-start; }
.z-note { font-size: .82rem; color: var(--muted); }

/* ---------- Sheets: extras ---------- */
.list-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 54px; color: var(--ink); text-decoration: none; }
.list-link:hover { background: var(--surface-2); }
.list li > button .lb-text { text-align: left; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.status .pulse { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); flex: none; }
.status.off .pulse { background: var(--line); box-shadow: none; }
.status b { display: block; font-weight: 600; }
.status small { color: var(--muted); font-size: .88rem; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.linkish { background: none; border: 0; padding: 8px 0; color: var(--muted); font-size: .92rem; font-weight: 500; }
