/* העיצוב שמרגלית בחרה: בהיר ומשפחתי */
@font-face { font-family: 'Heebo'; src: url('fonts/Heebo-var.ttf'); font-weight: 100 900; font-display: swap; }
:root { --bg: #F3F5F7; --card: #fff; --soft: #EEF2F4; --text: #1D2B34; --muted: #5C6B75; --line: #E1E7EB; --edge: #7B8992; --accent: #17706E; --on: #fff; --hot: #B93822; --hotbg: #FDECE7; --warm: #B06410;
  --blue: #2B6CB0; --pink: #C24D6A; --r: 18px; --shadow: 0 1px 2px rgb(29 43 52 / .05), 0 8px 22px rgb(29 43 52 / .07); }
* { box-sizing: border-box; margin: 0; } [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.45 'Heebo', system-ui, sans-serif; padding-bottom: calc(200px + env(safe-area-inset-bottom)); overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; } button { border: 0; padding: 0; background: none; cursor: pointer; text-align: start; } a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-weight: 800; line-height: 1.18; text-wrap: balance; } h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 18px; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
bdi { unicode-bidi: isolate; }
.hero { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0 0 28px 28px; background: var(--soft); }
main, .intro { display: grid; gap: 24px; padding: 20px 16px 0; } main > *, .intro > * { min-width: 0; }
.sub { color: var(--muted); font-size: 16px; } .hello { display: flex; align-items: flex-start; gap: 8px; } .hello > div { flex: 1; min-width: 0; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.icon.flat { background: none; box-shadow: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { min-height: 112px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile b { font-size: 18px; } .tile span { font-size: 16px; color: var(--muted); line-height: 1.3; } .tile svg { margin-top: auto; align-self: flex-end; width: 30px; height: 30px; color: var(--c); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 16px; } .card.pad { padding: 16px; }
.ttl { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; } .ttl small { font-size: 16px; color: var(--muted); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--line); } .row:last-child { border: 0; }
.row .t { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; } .row small { display: block; font-size: 16px; color: var(--muted); line-height: 1.3; } .late { color: var(--hot) !important; font-weight: 600; }
.chk { display: grid; place-items: center; width: 48px; height: 48px; margin-inline-start: -10px; flex: none; } .chk i { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--edge); border-radius: 10px; color: transparent; } .chk svg { width: 18px; height: 18px; stroke-width: 3; }
.done .chk i { background: var(--accent); border-color: var(--accent); color: var(--on); } .done .t { color: var(--muted); text-decoration: line-through; }
.star { color: var(--edge); } .star[aria-pressed=true] { color: var(--warm); } .star[aria-pressed=true] svg { fill: currentColor; }
.hot { padding: 2px 10px; border-radius: 99px; background: var(--hotbg); color: var(--hot); font-size: 16px; font-weight: 700; white-space: nowrap; }
.btn { min-height: 48px; padding: 8px 18px; border-radius: 99px; background: var(--soft); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; line-height: 1.2; }
.btn.main { background: var(--accent); color: var(--on); } .btn.white { background: var(--card); box-shadow: var(--shadow); } .btn.del { color: var(--hot); } .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.quick { display: flex; gap: 8px; padding: 10px 0; } .quick input { flex: 1; } .quick .btn { width: 48px; padding: 0; flex: none; }
input:not([type=checkbox], [type=radio], [type=file]), select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid var(--edge); border-radius: 16px; background: #F8FAFB; -webkit-appearance: none; appearance: none; text-align: start; }
textarea { min-height: 110px; resize: vertical; display: block; line-height: 1.45; } ::placeholder { color: var(--muted); opacity: 1; }
.av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; flex: none; background: var(--soft); }
.who { display: flex; align-items: center; gap: 16px; padding: 28px 16px 0; } .who .av { width: 104px; height: 104px; border: 4px solid var(--card); box-shadow: var(--shadow); }
.faces { display: flex; gap: 4px; justify-content: space-between; padding-bottom: 10px; } .faces button { width: 52px; min-height: 52px; display: grid; place-items: center; } .faces .av { width: 44px; height: 44px; }
.back { margin: 16px 16px 0; } .empty { padding: 14px 0; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .num { font-weight: 800; font-size: clamp(23px, 7.2vw, 34px); line-height: 1.2; overflow-wrap: anywhere; } .minus { color: var(--hot); }
.bar { height: 10px; border-radius: 9px; background: var(--soft); overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; border-radius: 9px; background: var(--accent); } .bar.near i { background: #D98A2B; } .bar.over i { background: var(--hot); }
.swap { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .swap b { text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 12px 6px; text-align: center; } .cal > b { font-size: 16px; color: var(--muted); font-weight: 500; }
.cal button { min-height: 62px; border-radius: 12px; text-align: center; line-height: 1.2; position: relative; padding: 4px 0 10px; } .cal small { display: block; font-size: 14px; color: var(--muted); } .cal .hol { background: #FFF5DD; } .cal .today { box-shadow: inset 0 0 0 2px var(--accent); } .cal [aria-pressed=true] { background: var(--accent); color: var(--on); } .cal [aria-pressed=true] small { color: inherit; }
.cal .dot::after { content: ""; position: absolute; bottom: 5px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--pink); } .cal [aria-pressed=true].dot::after { background: #fff; }
.warn { background: var(--hotbg); color: var(--hot); padding: 14px 16px; border-radius: var(--r); font-weight: 600; }

nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px 2px calc(8px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -6px 24px rgb(0 0 0 / .1); }
nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 80px; min-width: 0; font-size: 16px; line-height: 1.05; text-align: center; color: var(--muted); }
nav .av, nav .ic { width: 40px; height: 40px; border-radius: 50%; } nav .ic { display: grid; place-items: center; background: var(--soft); color: var(--text); } nav [aria-current] { color: var(--text); font-weight: 700; } nav [aria-current] > :first-child { outline: 3px solid var(--accent); outline-offset: 1px; }
.fab { position: fixed; z-index: 6; left: 16px; bottom: calc(112px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on); box-shadow: 0 8px 24px rgb(0 0 0 / .25); } .fab svg { width: 30px; height: 30px; }
#toast { position: fixed; z-index: 8; inset: auto 16px calc(184px + env(safe-area-inset-bottom)); max-width: 460px; margin: auto; padding: 8px 18px; min-height: 56px; border-radius: 18px; background: #1D2B34; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / .25); } #toast button { min-height: 48px; padding: 0 10px; color: #F4D58A; font-weight: 800; }

dialog { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--card); color: inherit; overflow: auto; overscroll-behavior: contain; } dialog::backdrop { background: rgb(16 28 34 / .5); }
.form { display: grid; gap: 18px; padding: 20px 18px 0; } .form > * { min-width: 0; } .form label.f, fieldset { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; } .form .lab, legend { font-weight: 700; padding: 0; } legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { position: relative; } .chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; } .chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 16px; border-radius: 99px; background: var(--soft); font-weight: 500; }
.chip input:checked + span { background: var(--accent); color: var(--on); font-weight: 700; } .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tick { display: flex; align-items: center; gap: 12px; min-height: 48px; } .tick input { width: 26px; height: 26px; accent-color: var(--accent); flex: none; }
.foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); } .foot .main { flex: 1; } .err { color: var(--hot); font-weight: 700; } .err:empty { display: none; }
.upload { position: relative; overflow: hidden; } .upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; } .upload:focus-within { outline: 3px solid var(--accent); }

@media (min-width: 900px) {
  body { padding: 0 124px 120px 0; }
  #app { max-width: 1120px; margin: auto; padding: 24px 20px 0; }
  nav { inset: 0 0 0 auto; width: 112px; grid-template-columns: 1fr; align-content: center; gap: 12px; padding: 12px; box-shadow: -6px 0 24px rgb(0 0 0 / .06); }
  .top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; } .hero { border-radius: 28px; } main.cols { columns: 2; display: block; column-gap: 24px; } main.cols > * { break-inside: avoid; margin-bottom: 24px; }
  .fab { left: 28px; bottom: 28px; } #toast { bottom: 28px; } dialog { margin: auto; border-radius: 28px; } .cal button { min-height: 78px; }
}
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: up .22s ease-out; } @keyframes up { from { transform: translateY(30px); opacity: 0; } } }
