/* at-meets — a page from Amit's site: stone paper, deep green ink, sharp edges, heavy type. */
:root {
  --ground: #F3F4F0;
  --paper: #FAFBF8;
  --ink: #0B1F1A;
  --green: #00332A;
  --green-2: #0B4A3D;
  --tint: #E2E8E3;
  --rule: #00332A;
  --rule-soft: #C9D3CD;
  --muted: #4B5F58;
  --star: #F2EBD6;
  --on-green: #F3F4F0;
  --clay: #A6402A;
  --sand: #C9B38A;
  --night: #0C1130;
  --indigo: #27336F;
  --chalk: #F2EBD6;
  --focus: #27336F;
  --font: "Heebo", "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: 900 clamp(2.6rem, 7vw, 4.6rem)/.92 var(--font);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #0C1130;
  --paper: #121839;
  --ink: #F2EBD6;
  --green: #F2EBD6;
  --green-2: #FFF8E4;
  --tint: #1B2250;
  --rule: #F2EBD6;
  --rule-soft: #2E3668;
  --muted: #B9BAD0;
  --on-green: #0C1130;
  --clay: #D9623F;
  --sand: #C9B38A;
  --night: #0C1130;
  --indigo: #27336F;
  --chalk: #F2EBD6;
  --focus: #F2EBD6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 1rem/1.55 var(--font); color: var(--ink); background: var(--ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[data-embed] body { background: transparent; }
::selection { background: var(--green); color: var(--on-green); }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { display: block; }

/* ---------- top line ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 18px; border-bottom: 1px solid var(--rule);
}
.owner { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--green); text-decoration: none; }
.mark { color: var(--green); flex: none; }
.lang { font-size: 14px; font-weight: 500; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- booking page ---------- */
.bk { max-width: 1120px; margin: 0 auto; padding: 0 16px max(32px, env(safe-area-inset-bottom)); }
.bk__grid { display: grid; gap: 0; }
.who { position: relative; padding: 28px 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: end; border-bottom: 1px solid var(--rule); }
.who__text { min-width: 0; }
.title { margin: 0 0 14px; font: var(--display); letter-spacing: -.02em; color: var(--green); text-wrap: balance; }
.facts { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--ink); }
.desc { margin: 0; color: var(--muted); font-size: 17px; max-width: 34ch; }
.portrait { margin: 0; inline-size: 116px; align-self: stretch; position: relative; }
.portrait img {
  position: absolute; inset: auto 0 -24px 0; inline-size: 100%; block-size: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.note { margin: 16px 0 0; padding: 10px 12px; border: 1px dashed var(--muted); color: var(--muted); font-size: 14px; max-width: 40ch; }

.picker { padding: 24px 0 8px; min-height: 420px; }

@media (min-width: 900px) {
  .bk__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 64px; min-height: calc(100vh - 80px); }
  .who { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 48px 0 0; border-bottom: 0; }
  .portrait { inline-size: min(100%, 420px); align-self: center; margin-top: 24px; flex: 1 1 auto; min-height: 320px; }
  .portrait img { inset: auto 0 0 0; }
  .picker { padding: 48px 0 48px; border-inline-start: 1px solid var(--rule); padding-inline-start: 56px; }
}

/* ---------- steps (the Little Dipper's three stars) ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; inline-size: 28px; block-size: 1px; background: var(--rule-soft); margin-inline: 10px; }
.steps i { inline-size: 9px; block-size: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); flex: none; }
.steps [aria-current="step"] { color: var(--green); }
.steps [aria-current="step"] i, .steps .is-past i { background: var(--green); border-color: var(--green); }
.steps .is-past { color: var(--green); }

/* ---------- week ---------- */
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.weekbar__label { font-weight: 900; font-size: 22px; color: var(--green); letter-spacing: -.01em; }
.weekbar__nav { display: flex; gap: 8px; }
.iconbtn {
  inline-size: 44px; block-size: 44px; display: grid; place-items: center;
  border: 1px solid var(--rule); background: transparent; cursor: pointer; color: var(--green);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.iconbtn:hover:not(:disabled) { background: var(--green); color: var(--on-green); }
.iconbtn:disabled { opacity: .25; cursor: default; }
.iconbtn svg { width: 18px; height: 18px; }
[dir="rtl"] .iconbtn > svg { transform: scaleX(-1); }

.days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 0 28px; padding: 0; list-style: none;
  border-block: 1px solid var(--rule);
}
.days li + li { border-inline-start: 1px solid var(--rule-soft); }
.day {
  inline-size: 100%; min-height: 72px; padding: 10px 0 8px; display: grid; place-content: center; gap: 4px; text-align: center;
  border: 0; background: transparent; color: var(--green); cursor: pointer; position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.day__wd { font-size: 12px; font-weight: 500; }
.day__n { font-size: 24px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.day:hover:not(:disabled) { background: var(--tint); }
.day[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
.day:disabled { color: var(--muted); opacity: .38; cursor: default; }
.day.is-today .day__wd::after { content: ""; display: inline-block; inline-size: 5px; block-size: 5px; background: currentColor; transform: rotate(45deg) translateY(-2px); margin-inline-start: 5px; }

/* ---------- times ---------- */
.times-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.step-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.tz { font-size: 13px; color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .times { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot {
  inline-size: 100%; min-height: 52px; border: 1px solid var(--rule-soft); background: var(--paper); cursor: pointer;
  font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--green);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.slot:hover { border-color: var(--green); }
.slot:active { background: var(--green); color: var(--on-green); }
.empty { color: var(--muted); margin: 8px 0 0; font-size: 17px; }
.skeleton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.skeleton span { block-size: 52px; background: var(--tint); animation: breathe 1.6s var(--ease) infinite alternate; }
.skeleton span:nth-child(odd) { animation-delay: .25s; }
@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }

/* ---------- details ---------- */
.chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 28px; background: var(--green); color: var(--on-green);
}
.chosen__when { font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.chosen .linkbtn { color: var(--on-green); }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--green); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; font-weight: 600; min-height: 40px; }
.form { display: grid; gap: 20px; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend, .field label { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; color: var(--ink); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border: 1px solid var(--rule); }
.way { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; cursor: pointer; text-align: center; color: var(--green); transition: background .2s var(--ease), color .2s var(--ease); }
.way + .way { border-inline-start: 1px solid var(--rule); }
.way input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.way svg { width: 24px; height: 24px; }
.way__name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.way__hint { font-size: 12px; color: var(--muted); line-height: 1.2; }
.way:hover { background: var(--tint); }
.way:has(input:checked) { background: var(--green); color: var(--on-green); }
.way:has(input:checked) .way__hint { color: color-mix(in srgb, var(--on-green) 78%, transparent); }
.way:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }

.field { display: grid; }
[hidden] { display: none !important; }
.field input, .field textarea {
  inline-size: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper);
  font-size: 16px; caret-color: var(--green); transition: box-shadow .2s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--green), 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field [aria-invalid="true"] { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.ferr { font-size: 14px; color: var(--clay); font-weight: 500; margin-top: 6px; }
.ferr:empty { display: none; }
input[type="email"], input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }
.hp { position: absolute; inset-inline-start: -9999px; }
.err { color: var(--clay); margin: 0; font-weight: 600; }
.err:empty { display: none; }
.small { font-size: 13px; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 1px solid var(--green); border-radius: 0;
  font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--tint); }
.btn--danger { background: transparent; border-color: var(--clay); color: var(--clay); }
.btn--block { inline-size: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ---------- done: the panel turns to night and the star lights ---------- */
.done {
  background: var(--green); color: var(--on-green); padding: 32px 24px 28px; display: grid; gap: 14px;
  animation: dusk .7s var(--ease) both;
}
.done:focus { outline: none; }
.done__star { color: var(--star); inline-size: 44px; block-size: 44px; animation: glint 1.2s .25s var(--ease) both; }
:root[data-theme="dark"] .done__star { color: var(--on-green); }
.done h2 { margin: 0; font: 900 clamp(2rem, 6vw, 3rem)/.95 var(--font); letter-spacing: -.02em; }
.done__when { margin: 0; font-weight: 700; font-size: 20px; }
.done__how { margin: 0; font-size: 17px; }
.done__mail { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--on-green) 80%, transparent); }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 6px; }
.done .btn { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.done .btn:hover { background: var(--star); }
.done a:not(.btn) { color: var(--on-green); }
@keyframes dusk { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes glint { from { opacity: 0; transform: scale(.6) rotate(-30deg); } to { opacity: 1; transform: none; } }

/* ---------- embed: just the picker, compact header ---------- */
html[data-embed] .bk { max-width: none; padding: 0; }
html[data-embed] .bk__grid { display: block; min-height: 0; }
html[data-embed] .who { padding: 0 0 16px; grid-template-columns: 1fr; border-bottom: 1px solid var(--rule); }
html[data-embed] .title { font-size: 28px; margin-bottom: 6px; }
html[data-embed] .desc, html[data-embed] .portrait, html[data-embed] .top .owner { display: none; }
html[data-embed] .top { padding-block: 0 8px; border: 0; justify-content: flex-end; }
html[data-embed] .picker { border: 0; padding: 20px 0 4px; min-height: 0; }

/* ---------- single-card pages (manage, messages, index, login) ---------- */
.solo { max-width: 620px; margin: 0 auto; padding: 0 16px 48px; }
.solo__body { padding: 40px 0 0; display: grid; gap: 16px; }
.solo .title { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 0; }
.solo .desc { max-width: 46ch; }
.facts-list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts-list li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.facts-list b { font-size: 14px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; align-self: start; padding-top: 2px; }
.fact__ico { display: grid; color: var(--green); flex: none; }
.fact__ico svg { width: 22px; height: 22px; }
.facts-list span { font-weight: 700; color: var(--ink); }
.solo .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.solo .actions .btn { padding: 0 10px; gap: 8px; min-inline-size: 0; white-space: nowrap; font-size: 16px; }
.solo .actions .btn--primary:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .solo .actions { display: flex; flex-wrap: wrap; gap: 12px; } .solo .actions .btn { padding: 0 26px; } }
.status { font-weight: 700; color: var(--clay); margin: 0; }

.linklist { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.linkrow__title { font-weight: 900; font-size: 24px; color: var(--green); letter-spacing: -.01em; }
.linkrow__meta { grid-column: 1; color: var(--muted); font-size: 15px; }
.linkrow svg { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; color: var(--green); transition: transform .25s var(--ease); }
[dir="rtl"] .linkrow svg { transform: scaleX(-1); }
.linkrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .linkrow:hover svg { transform: scaleX(-1) translateX(4px); }

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

/* ---------- admin (Operate: same world, denser) ---------- */
body.is-admin { background: var(--ground); }
.admin { max-width: 920px; margin: 0 auto; padding: 0 16px 112px; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: max(12px, env(safe-area-inset-top)) 0 12px; background: var(--ground); border-bottom: 1px solid var(--rule);
}
.tabs { display: flex; border: 1px solid var(--rule); }
.tab { min-height: 42px; padding: 0 16px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--green); }
.tab + .tab { border-inline-start: 1px solid var(--rule); }
.tab[aria-selected="true"] { background: var(--green); color: var(--on-green); }
.who-admin { font-size: 13px; color: var(--muted); }
.list { display: grid; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.row__title { font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row__meta { color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
.row__actions { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 8px; background: var(--tint); color: var(--green); }
.chip--off { background: transparent; border: 1px solid var(--rule-soft); color: var(--muted); }
.mini { min-height: 40px; padding: 0 12px; border: 1px solid var(--rule-soft); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; }
.mini:hover { border-color: var(--green); }
.mini--danger { color: var(--clay); }
.fab { position: fixed; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: 0 10px 28px -8px rgb(0 51 42 / .45); }
.section-title { font-size: 22px; font-weight: 900; color: var(--green); margin: 28px 0 6px; }
.panel { border-top: 1px solid var(--rule); padding: 20px 0; display: grid; gap: 16px; margin-top: 8px; }
.panel .field label { margin-bottom: 6px; }
.panel .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field select { inline-size: 100%; min-height: 52px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); font-size: 16px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.week { display: grid; }
.wday { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.wday__name { font-weight: 700; padding-top: 10px; }
.wins { display: grid; gap: 6px; }
.win { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.win input[type="time"] { min-height: 44px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); direction: ltr; font-variant-numeric: tabular-nums; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 600; }
.toggle input { inline-size: 20px; block-size: 20px; accent-color: var(--green); }
.pill-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); cursor: pointer; font-weight: 600; color: var(--green); }
.pill-check:has(input:checked) { background: var(--green); color: var(--on-green); }
.pill-check input { accent-color: var(--green); }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--rule); }
.sheet-actions .btn { flex: 1 1 160px; }
.copy { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.copy code { font-size: 13px; direction: ltr; background: var(--tint); padding: 6px 8px; overflow-wrap: anywhere; }
.toast { position: fixed; inset-inline: 16px; bottom: 96px; margin: 0 auto; max-width: 420px; padding: 14px 16px; background: var(--green); color: var(--on-green); text-align: center; z-index: 20; font-weight: 600; }
.flip { display: grid; transform: scaleX(-1); }
.who__text { inline-size: 100%; }
.note { inline-size: fit-content; }
.who__text { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .portrait { flex: 0 1 auto; min-height: 0; margin-top: auto; padding-top: 24px; display: flex; justify-content: center; }
  .portrait img { position: static; inline-size: auto; max-inline-size: 100%; max-block-size: max(340px, calc(100vh - 420px)); object-fit: contain; }
}
.done__star .mark { color: inherit; }
/* the mark, large, closing the intro column (desktop only) */
.sky { display: none; }
@media (min-width: 900px) {
  .sky { display: block; margin-top: auto; padding: 48px 0 8px; color: var(--green); opacity: .9; }
  .sky .mark { inline-size: min(100%, 260px); block-size: auto; color: var(--green); }
}

/* ---------- WhatsApp opt-in ---------- */
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--rule-soft); background: var(--paper); }
.check:has(input:checked) { border-color: var(--rule); box-shadow: inset 0 0 0 1px var(--rule); }
.check input { appearance: none; inline-size: 22px; block-size: 22px; margin: 1px 0 0; border: 1.5px solid var(--green); border-radius: 0; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; inline-size: 12px; block-size: 7px; border: solid var(--on-green); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s var(--ease); }
.check input:checked { background: var(--green); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check label { display: grid; gap: 2px; cursor: pointer; }
.check__t { font-weight: 700; font-size: 15px; }
.check .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- moving a booking ---------- */
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.movebox { margin-bottom: 20px; }
.movebox__from { display: flex; gap: 10px; align-items: baseline; margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.movebox__from span { font-weight: 700; }
.movebox__from s { text-decoration-thickness: 1.5px; }
.movebox .chosen { margin-bottom: 0; }
.picker > .btn--block { margin-top: 20px; }
.picker > .small { margin-top: 12px; }

/* ---------- length ---------- */
.lengths { margin-bottom: 22px; }
.lengths legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--rule); }
.seg__opt { position: relative; display: grid; place-items: center; min-height: 48px; padding: 0 10px; font-weight: 700; color: var(--green); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.seg__opt + .seg__opt { border-inline-start: 1px solid var(--rule); }
.seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__opt:hover { background: var(--tint); }
.seg__opt:has(input:checked) { background: var(--green); color: var(--on-green); }
.seg__opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }

/* ---------- day column ---------- */
.cal { position: relative; display: grid; grid-template-columns: 52px 1fr; }
.cal__axis { position: relative; }
.cal__hour { position: absolute; inset-inline-start: 0; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
.cal__track {
  position: relative; border-inline-start: 1px solid var(--rule);
  /* taken time: a quiet hatch; free times sit on top as solid blocks */
  background:
    repeating-linear-gradient(to bottom, transparent 0 87px, var(--rule-soft) 87px 88px),
    repeating-linear-gradient(-45deg, transparent 0 7px, color-mix(in srgb, var(--rule-soft) 55%, transparent) 7px 8px);
}
.cal__slots { list-style: none; margin: 0; padding: 0; }
.cal__slot { position: absolute; inset-inline: 8px 0; }
.slot--cal {
  inline-size: 100%; block-size: 100%; min-height: 0; display: flex; align-items: center; gap: 6px; justify-content: flex-start;
  padding: 0 14px; background: var(--paper); border: 1px solid var(--rule-soft); border-inline-start: 3px solid var(--green);
  font-variant-numeric: tabular-nums; direction: ltr; text-align: left;
}
[dir="rtl"] .slot--cal { justify-content: flex-end; }
.slot--cal b { font-weight: 900; font-size: 16px; }
.slot--cal span { font-size: 13px; color: var(--muted); }
.slot--cal:hover, .slot--cal:focus-visible { border-color: var(--green); background: var(--tint); }
.cal__ghost { position: absolute; inset-inline: 8px 0; background: color-mix(in srgb, var(--green) 10%, transparent); outline: 1px dashed var(--green); opacity: 0; pointer-events: none; transition: opacity .15s var(--ease); }
.cal__ghost.is-on { opacity: 1; }
.addbtn { justify-self: start; text-decoration: none; }

/* ---------- group scheduling ---------- */
.pollcta { margin-top: 20px; text-decoration: none; font-weight: 700; }
.pollcta::before { content: "+ "; }
.poll-hint { margin: 0 0 14px; padding: 12px 14px; background: var(--tint); font-size: 15px; }
.slot--cal.is-picked { background: var(--green); color: var(--on-green); border-color: var(--green); }
.slot--cal.is-picked span { color: color-mix(in srgb, var(--on-green) 78%, transparent); }
.pollbar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px; padding: 12px 0;
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: var(--ground); border-top: 1px solid var(--rule);
}
.pollbar__n { font-weight: 900; font-size: 18px; margin-inline-end: auto; }
.pollbar .btn { min-height: 48px; }
.picklist { margin: 0; padding: 0 0 0 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.picklist li { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-weight: 600; }
.sharebox { inline-size: 100%; min-height: 52px; margin: 8px 0 4px; padding: 0 14px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 15px/1 var(--font); }

.solo--wide { max-width: 820px; }
.cands { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); }
.cand { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.cand__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cand__when b { font-weight: 900; font-size: 17px; }
.cand__hm { font-variant-numeric: tabular-nums; color: var(--muted); }
.cand__when em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.cand__best { background: var(--green); color: var(--on-green); }
.cand__taken { border: 1px solid var(--clay); color: var(--clay); }
.cand.is-taken { opacity: .55; }
.cand__count { display: grid; gap: 4px; justify-items: end; font-size: 13px; color: var(--muted); min-inline-size: 120px; }
.tally { display: flex; inline-size: 120px; block-size: 6px; background: var(--tint); }
.tally__yes { background: var(--green); }
.tally__maybe { background: color-mix(in srgb, var(--green) 40%, transparent); }
.seg--tri { grid-column: 1 / -1; }
.seg--tri .seg__opt { min-height: 44px; font-size: 14px; white-space: nowrap; padding: 0 8px; }
.sharebox--light { border-color: var(--rule); background: var(--paper); color: var(--ink); }
.seg__opt--no:has(input:checked) { background: var(--ink); }
.seg__opt--maybe:has(input:checked) { background: var(--green-2); }
.seg__opt:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.cand .btn--sm { grid-column: 1 / -1; min-height: 44px; justify-self: start; }
.matrix-wrap { overflow-x: auto; margin-top: 8px; }
.matrix { border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); text-align: center; white-space: nowrap; }
.matrix thead th { font-weight: 500; color: var(--muted); }
.matrix thead th b { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }
.matrix tbody th { text-align: start; font-weight: 700; }
.m-yes { color: var(--green); font-weight: 900; }
.m-maybe { color: var(--muted); }
.m-no { color: var(--rule-soft); }
#poll .step-title { margin: 28px 0 12px; }
@media (min-width: 720px) { .seg--tri { grid-column: auto; min-inline-size: 330px; } .cand { grid-template-columns: 1fr auto 330px; } .cand .btn--sm { grid-column: 1 / -1; } }

/* ---------- the rest of the palette, each with one job ----------
   clay: the match. Lights for a moment: link hover, today's mark, the star's core. Never a surface.
   sand: dawn. The "maybe" in polls, the thin line under the sunrise.
   The confirmation stays in the day palette: brand green with a sand dawn line. No blue in this system. */
a:hover, .linkbtn:hover { text-decoration-color: var(--clay); }
.day.is-today .day__wd::after { background: var(--clay); }
.day.is-today[aria-pressed="true"] .day__wd::after { background: var(--sand); }
.done {
  background: var(--green);
  color: var(--chalk); box-shadow: inset 0 -3px 0 var(--sand);
}
.done__star { color: var(--chalk); }
.done__mail { color: color-mix(in srgb, var(--chalk) 78%, transparent); }
.done .btn { background: var(--chalk); color: var(--green); border-color: var(--chalk); }
.done .btn:hover { background: var(--sand); border-color: var(--sand); }
.done a:not(.btn) { color: var(--chalk); }
.done a:not(.btn):hover { text-decoration-color: var(--clay); }
.tally__maybe { background: var(--sand); }
.seg__opt--maybe:has(input:checked) { background: var(--sand); color: var(--ink); }
.cand__best { background: var(--clay); color: var(--chalk); }
.m-maybe { color: #8a7650; font-weight: 900; }

/* ---- Lordicon (system outline, current-color; same set and rules as the site) ---- */
lord-icon.ico { display: inline-block; flex: none; inline-size: 20px; block-size: 20px; }
lord-icon.ico > svg { display: block; inline-size: 100%; block-size: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn lord-icon.ico { inline-size: 22px; block-size: 22px; }
.way lord-icon.ico { inline-size: 24px; block-size: 24px; }
[dir="rtl"] lord-icon.ico--dir:not(.ico--flip), [dir="ltr"] lord-icon.ico--dir.ico--flip { transform: scaleX(-1); }
.chosen__when bdi { white-space: nowrap; }
.range { white-space: nowrap; }
[dir="rtl"] .btn > lord-icon.ico { order: 2; }
.changes-link { display: block; inline-size: fit-content; margin: 18px 0 0; margin-inline-end: auto; }

/* ---- Fields: Material-style floating label inside the field (brand book, ממשק) ---- */
:root { --field-bg: #fff; --field-line: rgba(11,31,26,.28); }
:root[data-theme="dark"] { --field-bg: var(--paper); --field-line: rgba(242,235,214,.4); }
.field input, .field textarea { border-radius: 2px; background: var(--field-bg); border-color: var(--field-line); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--clay); box-shadow: inset -3px 0 0 var(--clay); }
[dir="ltr"] .field [aria-invalid="true"] { box-shadow: inset 3px 0 0 var(--clay); }
.field--float { position: relative; }
.field--float input, .field--float textarea { min-height: 56px; padding: 24px 14px 6px; line-height: 1.3; }
.field--float textarea { min-height: 112px; }
.field--float > label {
  position: absolute; top: 17px; inset-inline: 14px; margin: 0; padding: 0; line-height: 1.2;
  font-size: 16px; font-weight: 400; color: var(--muted); pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: right top;
  transition: transform .18s var(--ease), color .18s, top .18s var(--ease);
}
[dir="ltr"] .field--float > label { transform-origin: left top; }
.field--float:has(input:focus, textarea:focus) > label,
.field--float:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) > label { top: 6px; transform: scale(.78); font-weight: 500; color: var(--green); }
.field--float:has([aria-invalid="true"]) > label { color: var(--clay); }
.field--float input::placeholder, .field--float textarea::placeholder { color: transparent; transition: color .15s; }
.field--float input:focus::placeholder, .field--float textarea:focus::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.opt { font-weight: 400; color: var(--muted); }

/* ---- Choice: hollow radio rows (thin ring; a green dot with a gap when chosen) ---- */
.ways { display: grid; gap: 2px; border: 0; grid-template-columns: none; }
.way { display: flex; align-items: center; justify-items: start; gap: 10px; padding: 8px 0; text-align: start; color: var(--ink); background: none; min-height: 44px; }
.way + .way { border: 0; }
.way input { position: static; opacity: 1; appearance: none; -webkit-appearance: none; inline-size: 20px; block-size: 20px; margin: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent); display: grid; place-items: center; flex: none; inset: auto; }
.way input::after { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform .15s var(--ease); }
.way input:checked { border-color: var(--green); }
.way input:checked::after { transform: scale(1); }
.way:hover, .way:has(input:checked) { background: none; color: var(--ink); }
.way:has(input:focus-visible) { outline: none; }
.way input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.way svg, .way lord-icon.ico { inline-size: 20px; block-size: 20px; color: var(--green); }
.way__name { font-weight: 500; font-size: 16px; }
.way__hint, .way:has(input:checked) .way__hint { font-size: 14px; color: var(--muted); }
.way__hint::before { content: "· "; }

/* ---- Messages: icon centred, colour stripe on the start side (success green, problem clay, info ink) ---- */
.note, .err:not(:empty) { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--field-bg); border: 0; box-shadow: inset -3px 0 0 currentColor, 0 0 0 1px var(--rule-soft); }
[dir="ltr"] .note, [dir="ltr"] .err:not(:empty) { box-shadow: inset 3px 0 0 currentColor, 0 0 0 1px var(--rule-soft); }
.note, .err:not(:empty) { box-shadow: inset -3px 0 0 currentColor; }
[dir="ltr"] .note, [dir="ltr"] .err:not(:empty) { box-shadow: inset 3px 0 0 currentColor; }
.note { color: var(--indigo); background: #E6E8F2; font-size: 15px; }
.err:not(:empty) { color: var(--clay); background: #F6E6E0; font-weight: 600; }
.msg--ok { color: var(--green); background: #E3ECE7; }
:root[data-theme="dark"] .note { color: var(--chalk); background: var(--tint); }
:root[data-theme="dark"] .err:not(:empty) { background: color-mix(in srgb, var(--clay) 18%, var(--paper)); }

/* ---- Buttons: 48px, 2px corners, clay underline on hover, indigo focus ring ---- */
.btn { min-height: 48px; border-radius: 2px; }
.btn:hover:not(:disabled) { box-shadow: inset 0 -2px 0 var(--clay); }
.btn:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
