/* עוברים דירה - כרטיסים לבנים ורכים על רקע נייר, זהב לפעולות, כחול כהה לטקסט.
   נבנה לפי המוקאפ של ספטמבר 2026 (art-source/mockup-home-2026-09-22.png). */

:root {
  --ink:        #10243A;   /* טקסט */
  --ink-strong: #05213C;   /* כותרות ומספרים גדולים */
  --ink-2:      #3E5266;   /* טקסט משני */
  --ink-3:      #6C7C8C;   /* טקסט עמום */
  --paper:      #FAF8F3;
  --card:       #FFFFFF;
  --rule:       #E4E0D6;
  --rule-soft:  #EFECE5;
  --tape:       #DAA752;   /* זהב - כפתורי פעולה */
  --tape-dark:  #C48F37;
  --tape-hot:   #E8A121;   /* זהב חם - הלשונית הפעילה */
  --tape-soft:  #FDF4E3;
  --over:       #B3402F;
  --over-bg:    #FBEEEC;
  --ok:         #32893D;
  --ok-bg:      #E2F3E0;
  --blue:       #61ACF7;
  --grey-dot:   #D3CABD;

  --r:    18px;
  --r-sm: 12px;
  --tap:  50px;
  --shadow: 0 1px 2px rgba(16,36,58,.04), 0 6px 20px rgba(16,36,58,.055);
  --edge: 1px solid rgba(16,36,58,.05);

  /* Google Sans לכל האפליקציה. הגוף במשקל 400, והכותרות שיושבות על הנייר במשקל 600. */
  --sans: 'Google Sans', 'Segoe UI', 'Arial Hebrew', system-ui, sans-serif;
  --display: var(--sans);
  --mono: 'Google Sans', 'Segoe UI', 'Arial Hebrew', system-ui, sans-serif;
}

/* כותרות על הנייר */
.app-header h1, .section-title, .home-sec h2, .pin-screen h1, .modal-head h2,
.lobby-hero h2, .login-card h1, .doc h1, .doc h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .025em;
  color: var(--ink-strong);
}

/* מחוץ לכותרות אין מודגש - ההיררכיה נשענת על גודל, צבע וריווח */
strong, b { font-weight: 400; }

* { box-sizing: border-box; }

/* פקדים לא יורשים פונט מהדפדפן - בלי זה כרטיסים שהם <button> נופלים ל-Arial */
button, input, select, textarea { font-family: inherit; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (min-width: 700px) { html { font-size: 18px; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--sans); font-weight: 400; margin: 0; line-height: 1.3; }
a { color: var(--ink); }

[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }

/* ============ כותרת ============ */

.app-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  padding: 14px 16px 10px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.app-header .wrap { max-width: 720px; margin-inline: auto; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand h1 { font-size: 1.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-icon { width: 38px; height: 38px; flex: none; display: block; }
#brand-icon:empty { display: none; }

.head-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.head-btn {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative;
}
.head-btn:hover { background: rgba(16,36,58,.05); }
.bell-dot {
  position: absolute; top: 9px; inset-inline-end: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tape-hot); border: 2px solid var(--paper);
}
.avatar { border-radius: 50%; object-fit: cover; display: block; background: #EDE8DD; flex: none; }
.avatar-letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: #F1E6CE; color: #7A5A1E;
}

main { max-width: 720px; margin-inline: auto; padding: 8px 16px 124px; }

.view { display: none; }
.view.on { display: block; }

/* ============ ניווט תחתון: רצועה נגללת ============ */

.nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--card);
  box-shadow: 0 -2px 16px rgba(16,36,58,.07);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav .wrap {
  max-width: 720px; margin-inline: auto;
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav .wrap::-webkit-scrollbar { display: none; }
.nav button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .8rem; color: #7A8896;
  min-height: 66px; padding: 10px 6px 7px;
  flex: 0 0 auto; min-width: 75px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  white-space: nowrap; position: relative;
}
.nav button svg { stroke: currentColor; fill: none; }
.nav button[aria-current="true"] { color: var(--ink-strong); font-weight: 600; }
.nav button[aria-current="true"] svg { color: var(--tape-hot); stroke: var(--tape-hot); fill: rgba(232,161,33,.16); }
.nav button[aria-current="true"]::before {
  content: ''; position: absolute; top: 0; inset-inline: 22%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--tape-hot);
}
/* רמז שיש עוד - הצללה עדינה בקצוות */
.nav::before, .nav::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 22px; pointer-events: none; z-index: 1;
}
.nav::before { inset-inline-start: 0; border-start-start-radius: 20px; background: linear-gradient(to left, var(--card), transparent); }
.nav::after  { inset-inline-end: 0;  border-start-end-radius: 20px; background: linear-gradient(to right, var(--card), transparent); }

/* ============ תפריט המבורגר (דסקטופ) ============ */

.menu-btn {
  display: none;
  appearance: none; cursor: pointer;
  width: 46px; height: 46px; flex: none;
  border: var(--edge); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  align-items: center; justify-content: center;
}
.menu-btn:hover { background: #FBF9F5; }

.menu-back { position: fixed; inset: 0; z-index: 55; background: rgba(16,36,58,.24); }
.menu {
  position: absolute; inset-block-start: 64px; inset-inline: 0;
  max-width: 720px; margin-inline: auto;
  background: var(--paper);
  border-radius: 0 0 var(--r) var(--r);
  padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  box-shadow: 0 12px 32px rgba(16,36,58,.16);
  max-height: calc(100dvh - 80px); overflow-y: auto;
}
.menu-item {
  appearance: none; cursor: pointer; text-align: start;
  display: flex; align-items: center; gap: 11px;
  min-height: 58px; padding: 8px 12px;
  border: var(--edge); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  font-family: var(--sans); font-size: 1rem;
}
.menu-item:hover { background: #FBF9F5; }
.menu-item svg { flex: none; stroke: var(--ink-2); }
.menu-item[aria-current="true"] { background: var(--tape-soft); box-shadow: inset 0 0 0 1.5px var(--tape); }
.mi-text { display: grid; min-width: 0; }
.mi-label { line-height: 1.25; }
.mi-note { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  main { padding-block-end: 48px; }
  .fab { bottom: 28px; }
  .sticky-total { bottom: 0; }
}

/* ============ חלונית קופצת: התראות וחשבון ============ */

.pop-back { position: fixed; inset: 0; z-index: 58; }
.pop {
  position: absolute; top: var(--pop-top, 70px); inset-inline-end: max(12px, calc((100vw - 720px) / 2));
  width: min(340px, calc(100vw - 24px));
  background: var(--card); border-radius: var(--r); box-shadow: 0 14px 40px rgba(16,36,58,.18);
  padding: 10px; max-height: 70vh; overflow-y: auto;
}
.pop-title { font-weight: 600; color: var(--ink-strong); padding: 8px 10px 6px; }
.pop-item {
  appearance: none; border: 0; background: none; cursor: pointer; width: 100%; text-align: start;
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 10px; border-radius: 10px;
  font-size: 1rem; color: var(--ink);
}
.pop-item:hover { background: #F7F4EE; }
.pop-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--tape-hot); }
.pop-dot.delivery { background: var(--over); }
.pop-empty { margin: 4px 10px 12px; color: var(--ink-3); }
.pop-account { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; }
.pop-name { font-size: 1.05rem; }
.pop-mail { font-size: .85rem; color: var(--ink-3); }
.pop-sep { height: 1px; background: var(--rule-soft); margin: 6px 4px; }
.pop-sub { font-size: .8rem; color: var(--ink-3); padding: 4px 10px 0; }
.pop-project { padding: 0 10px 6px; font-weight: 600; color: var(--ink-strong); }

/* ============ טיפוגרפיה ============ */

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.big { font-size: 1.35rem; }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }
.over { color: var(--over); }
.ok { color: var(--ok); }
.center { text-align: center; }

.section-title {
  font-size: 1.2rem;
  margin: 26px 2px 10px;
  display: flex; align-items: baseline; gap: 8px;
}
.section-title .count { font-family: var(--mono); font-size: .85rem; font-weight: 400; color: var(--ink-3); margin-inline-start: auto; letter-spacing: 0; }
.view > .section-title:first-child { margin-top: 6px; }

/* ============ כרטיסים ורשימות ============ */

.card {
  background: var(--card);
  border: var(--edge);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-block-end: 14px;
}
.card.flat { padding: 0; overflow: hidden; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-block-end: 1px solid var(--rule-soft);
  min-height: var(--tap);
  background: var(--card);
  width: 100%; text-align: start;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  border-inline: 0; border-block-start: 0;
  cursor: pointer;
}
.row:last-child { border-block-end: 0; }
.row:hover { background: #FDFCF9; }
.row .grow { flex: 1; min-width: 0; }
.row .meta { font-size: .85rem; color: var(--ink-3); }
.row .chev { color: #C9C3B6; flex: none; }

.empty {
  padding: 26px 18px; text-align: center; color: var(--ink-3);
  border: 1.5px dashed var(--rule); border-radius: var(--r); background: rgba(255,255,255,.6);
}

/* ============ כפתורים ============ */

.btn {
  appearance: none; cursor: pointer;
  font-family: var(--sans); font-size: 1.02rem;
  min-height: var(--tap); padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--rule);
  background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: #FBF9F5; }
/* טקסט כהה על הזהב, לא לבן: לבן על הזהב הזה יורד מתחת לניגודיות קריאה */
.btn-primary { background: var(--tape); border-color: var(--tape); color: #2A1F05; font-weight: 600; }
.btn-primary:hover { background: #E1B263; }
.btn-danger { color: var(--over); border-color: #EBCFC9; background: var(--card); }
.btn-danger:hover { background: var(--over-bg); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; font-size: .92rem; padding: 0 14px; }
.btn-line { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-line .btn { flex: 1; white-space: nowrap; padding: 0 14px; }
.linkish {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 10px 0 0;
  color: #9A6A12; text-decoration: underline; font-size: .9rem;
}

.fab {
  position: fixed; inset-inline-end: 18px; bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 45;
  width: 62px; height: 62px; padding: 0;
  border-radius: 50%; border: 0;
  background: var(--tape); color: #FFF;
  box-shadow: 0 6px 18px rgba(196,143,55,.42);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fab:hover { background: #E1B263; }

/* ============ טפסים ============ */

.field { margin-block-end: 14px; }
.field > label { display: block; font-size: .92rem; color: var(--ink-2); margin-block-end: 5px; }
.field .hint { font-size: .82rem; color: var(--ink-3); }

input, select, textarea {
  width: 100%; min-width: 0;
  font-family: var(--sans); font-size: 1.03rem; color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  min-height: var(--tap);
}
input[inputmode="decimal"], input[type="date"], input.num-in { font-family: var(--mono); font-variant-numeric: tabular-nums; }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236C7C8C' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 38px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, label:focus-within {
  outline: 3px solid rgba(218,167,82,.55); outline-offset: 1px;
}
input::placeholder, textarea::placeholder { color: #A9B3BC; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; font-size: 1.02rem; }
.check input[type="checkbox"] { width: 30px; height: 30px; min-height: 30px; flex: none; margin: 0; accent-color: var(--ok); cursor: pointer; }

/* ============ מודאל ============ */

.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(16,36,58,.42);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 700px) { .modal-back { align-items: center; } }
.modal {
  background: var(--paper); width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) { .modal { border-radius: 20px; } }
.modal-head {
  position: sticky; top: 0; z-index: 2; background: var(--paper);
  padding: 18px 0 12px; margin-block-end: 4px;
  border-block-end: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px;
}
.modal-head h2 { font-size: 1.32rem; flex: 1; }
.modal-head .x {
  appearance: none; border: var(--edge); background: var(--card); box-shadow: var(--shadow);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; color: var(--ink-2); line-height: 1;
}
.modal-foot { display: flex; gap: 10px; padding-block-start: 16px; }
.modal-foot .btn { flex: 1; }
.modal form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; padding-block-start: 10px; }
.modal .field { grid-column: 1 / -1; min-width: 0; }
.modal .field.half { grid-column: auto; }

/* חלון בחירה עם כפתורים גדולים (הכפתור הצף בדף הבית) */
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 4px; }
.sheet-opt {
  appearance: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; padding: 12px;
  border: var(--edge); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  font-size: 1.02rem; color: var(--ink);
}
.sheet-opt:first-child { grid-column: 1 / -1; min-height: 80px; flex-direction: row; background: var(--tape-soft); box-shadow: inset 0 0 0 1.5px var(--tape); }
.sheet-opt:hover { background: #FBF9F5; }
.sheet-ic { color: var(--tape-dark); display: inline-flex; }

/* ============ אקורדיון ============ */

.acc { border: var(--edge); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); margin-block-end: 14px; overflow: hidden; }
.acc > summary {
  list-style: none; cursor: pointer;
  padding: 15px 16px; min-height: var(--tap);
  display: flex; align-items: center; gap: 10px;
  font-size: 1.06rem; font-weight: 600; color: var(--ink-strong);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .count { font-family: var(--mono); font-size: .82rem; font-weight: 400; color: var(--ink-3); margin-inline-start: auto; }
.acc > summary .caret { transition: transform .15s; color: var(--ink-3); }
.acc[open] > summary { border-block-end: 1px solid var(--rule-soft); }
.acc[open] > summary .caret { transform: rotate(180deg); }
.acc-body { padding: 0; }

/* ============ מידות ============ */

.meas-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-block-end: 1px solid var(--rule-soft); cursor: pointer; background: var(--card); width: 100%; border-inline: 0; border-block-start: 0; text-align: start; }
.meas-row:last-child { border-block-end: 0; }
.meas-row .label { flex: 1; font-size: 1.05rem; min-width: 0; }
.meas-row .dims { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.25rem; color: var(--ink-strong); white-space: nowrap; direction: ltr; }
.meas-row .dims .x { color: var(--ink-3); padding: 0 2px; }
.meas-row .note { font-size: .84rem; color: var(--ink-3); }

/* ============ צ'יפים ותגיות ============ */

.chips { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 4px; margin-block-end: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  appearance: none; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: .93rem;
  min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: var(--edge); background: var(--card); color: var(--ink-2); box-shadow: var(--shadow);
}
.chip[aria-pressed="true"] { background: var(--ink-strong); color: #FFF; box-shadow: none; }

.tag {
  display: inline-block; font-size: .8rem;
  padding: 3px 10px; border-radius: 20px;
  background: #F3F0EA; color: var(--ink-2);
  white-space: nowrap;
}
.tag.t-ok { background: var(--ok-bg); color: var(--ok); }
.tag.t-over { background: var(--over-bg); color: var(--over); }
.tag.t-tape { background: var(--tape-soft); color: #8A6410; }

.pill-grey { font-size: .9rem; padding: 5px 14px; border-radius: 10px; background: #EAEDF2; color: #5A6B7B; white-space: nowrap; }

/* ============ בדיקת התאמה ============ */

.fit { border: var(--edge); border-radius: var(--r); background: #FCFBF8; padding: 14px; margin-block-end: 14px; }
.fit h3 { font-size: 1.05rem; font-weight: 600; margin-block-end: 10px; }
.fit .track {
  position: relative; height: 46px;
  border: 1.5px solid var(--ink); border-radius: 8px;
  background: repeating-linear-gradient(to left, rgba(16,36,58,.14) 0 1px, transparent 1px 10px);
  overflow: hidden;
}
.fit .bar {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  background: rgba(50,137,61,.24);
  border-inline-end: 2.5px solid var(--ok);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .85rem; color: var(--ink);
  min-width: 2px; transition: inline-size .2s;
}
.fit .bar.is-over { background: rgba(179,64,47,.22); border-inline-end-color: var(--over); }
.fit .verdict { margin-block-start: 10px; font-size: 1.08rem; font-family: var(--mono); }
.fit .scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); margin-block-start: 4px; }
.fit .warn {
  margin-block-start: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .95rem; background: var(--over-bg); color: var(--over);
}
.fit .warn.soft { background: var(--tape-soft); color: #7A5808; }
.fit .lines { margin-block-start: 10px; display: grid; gap: 4px; font-family: var(--mono); font-size: .93rem; }
.fit .lines div { display: flex; justify-content: space-between; gap: 10px; }

/* ============ תקציב ============ */

.bar-track { height: 12px; border-radius: 6px; background: #EEEBE5; overflow: hidden; display: flex; flex: 1; }
.bar-track i { display: block; height: 100%; }
.bar-track .b-paid { background: #499E50; }
.bar-track .b-actual { background: var(--blue); }
.bar-track .b-over { background: var(--over); }

.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.kv .k { color: var(--ink-2); }
.kv .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.budget-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-block-end: 1px solid var(--rule-soft); background: var(--card); }
.budget-row:last-child { border-block-end: 0; }
.budget-row .lab { flex: 1; min-width: 0; cursor: pointer; }
.budget-row .nums { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; font-size: 1.02rem; }
.budget-row .nums .plan { color: var(--ink-3); font-size: .84rem; display: block; }
.budget-row.is-paid .lab .t { color: var(--ok); }

.sticky-total {
  position: fixed; inset-inline: 0; bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 35; background: var(--card); box-shadow: 0 -2px 12px rgba(16,36,58,.06);
}
.sticky-total .wrap {
  max-width: 720px; margin-inline: auto; padding: 9px 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center;
}
.sticky-total .lab { font-size: .72rem; color: var(--ink-3); display: block; white-space: nowrap; }
.sticky-total .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .97rem; display: block; white-space: nowrap; letter-spacing: -.02em; }

/* ============ דף הבית ============ */

.hero {
  position: relative; overflow: hidden;
  min-height: 190px; padding: 26px 20px 22px;
  display: flex; align-items: center;
}
.hero-count { position: relative; z-index: 1; max-width: 50%; }
.hero-count .days {
  font-size: clamp(3.4rem, 17vw, 4.6rem); font-weight: 600; line-height: .95;
  color: var(--ink-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.hero-count .lab { font-size: 1.28rem; color: var(--ink-strong); margin-block-start: 8px; line-height: 1.2; }
.hero-count .date { color: var(--ink-3); font-size: 1.05rem; margin-block-start: 4px; }
.hero-empty { font-size: 1.3rem; color: var(--ink-strong); line-height: 1.3; }
/* כמו במוקאפ: הבית שלם וגדול, ורק העצים הרחוקים נחתכים בקצה הכרטיס.
   הגודל נקבע לפי גובה, כי התמונה רחבה יותר משל המוקאפ: 31vw משאיר את כל הבית, כולל הגדר משמאל. */
.hero-art {
  position: absolute; inset-inline-end: 0; bottom: -8px;
  width: 58%; height: clamp(112px, 31vw, 180px);
  overflow: hidden; pointer-events: none;
}
.hero-art img { position: absolute; bottom: 0; inset-inline-start: 0; height: 100%; width: auto; max-width: none; display: block; }
.status-pill {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 20px; font-size: .9rem;
  background: var(--ok-bg); color: #2E6E36;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-pill.st-day { background: var(--tape-soft); color: #8A6410; }
.status-pill.st-day i { background: var(--tape-hot); }
.status-pill.st-home { background: #E6EFF9; color: #2D5F91; }
.status-pill.st-home i { background: #4A86C5; }

.link-card {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  text-decoration: none; color: var(--ink); font-size: 1.05rem;
}
.link-card .grow { flex: 1; min-width: 0; }
.chev-l { color: var(--ink-3); flex: none; }

.budget-card { padding: 18px 16px 16px; }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 600; color: var(--ink-strong); }
.bc-title svg { color: var(--ink-2); }
.bc-total { font-size: 1.1rem; color: var(--ink-strong); }
.bc-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.bc-pct { font-size: .95rem; color: var(--ink-3); min-width: 2.6em; text-align: end; }
.bc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-end: 16px; }
.bc-stat { display: grid; gap: 4px; padding: 2px 10px; align-content: space-between; }
.bc-stat + .bc-stat { border-inline-start: 1px solid var(--rule-soft); }
.bc-stat:first-child { padding-inline-start: 0; }
.bc-lab { font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.bc-val { display: inline-flex; align-items: center; gap: 6px; font-size: 1.1rem; color: var(--ink-strong); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot.d-paid { background: #499E50; }
.dot.d-actual { background: var(--blue); }
.dot.d-plan { background: var(--grey-dot); }

.home-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 2px 12px; }
.home-sec h2 { display: inline-flex; align-items: center; gap: 9px; font-size: 1.22rem; }
.home-sec h2 svg { color: var(--ink-2); }
.sec-link {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: #B07A1E; font-size: .98rem; text-decoration: underline; text-underline-offset: 3px;
}

.task-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: var(--edge); border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px 12px 10px 16px; margin-block-end: 10px; min-height: 76px;
  width: 100%; text-align: start; color: var(--ink); font-size: 1rem;
}
button.task-card { cursor: pointer; }
.tc-main {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 4px 0;
  flex: 1; min-width: 0; text-align: start; color: inherit;
  display: flex; flex-direction: column; gap: 2px;
}
.tc-title { font-size: 1.08rem; color: var(--ink-strong); line-height: 1.3; }
.tc-meta { font-size: .88rem; color: var(--ink-3); }
.tc-date {
  position: relative; flex: none; cursor: pointer;
  min-width: 58px; height: 44px; padding: 0 12px; border-radius: 22px;
  background: #F6F3ED; color: #9C8F7A;
  display: inline-flex; align-items: center; justify-content: center; font-size: .92rem;
}
.tc-date.has { background: var(--tape-soft); color: #8A6410; }
.tc-date.late { background: var(--over-bg); color: var(--over); }
.tc-date input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  opacity: 0; cursor: pointer; border: 0; padding: 0;
}
.tc-check {
  appearance: none; cursor: pointer; flex: none;
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  border: 2px solid #5E6F7F; background: var(--card); color: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.tc-check:hover { border-color: var(--ok); color: rgba(50,137,61,.35); }
.tc-check.on { background: var(--ok); border-color: var(--ok); color: #FFF; }
.task-card.deliv .tag { flex: none; }

/* ============ השוואת הצעות ============ */

.compare { overflow-x: auto; border: var(--edge); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.compare table { border-collapse: collapse; width: 100%; min-width: 420px; }
.compare th, .compare td { padding: 11px 12px; border-block-end: 1px solid var(--rule-soft); text-align: start; vertical-align: top; font-size: .95rem; }
.compare th { background: #FCFBF8; white-space: nowrap; width: 1%; color: var(--ink-2); }
.compare td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.compare td.best { background: var(--ok-bg); }

/* ============ קישורים ============ */

.link-row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-block-end: 1px solid var(--rule-soft); min-height: var(--tap); }
.link-row:last-child { border-block-end: 0; }
.link-row a { flex: 1; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row a:hover { text-decoration: underline; }
.link-row .edit { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 8px; min-height: 44px; min-width: 44px; }

/* ============ שיתוף וחברים ============ */

.invite-box {
  background: #F6F3ED; border-radius: var(--r-sm); padding: 12px 14px;
  font-family: var(--mono); font-size: .9rem; color: var(--ink-2);
  overflow-wrap: anywhere; user-select: all;
}
.member { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-block-end: 1px solid var(--rule-soft); flex-wrap: wrap; }
.member:last-child { border-block-end: 0; }
.member .grow { flex: 1; min-width: 0; }
.member .meta { font-size: .85rem; color: var(--ink-3); }
.m-actions { display: flex; gap: 8px; width: 100%; padding-inline-start: 52px; }

/* ============ מסכים מחוץ לפרויקט ============ */

.lobby { max-width: 560px; margin-inline: auto; padding: 8px 16px 48px; }
.lobby-hero { text-align: center; padding: 8px 4px 18px; }
.lobby-hero h2 { font-size: 1.7rem; margin: 6px 0 8px; }
.lobby-hero p { color: var(--ink-2); margin: 0 auto 18px; max-width: 420px; }
.lobby-art img { display: block; width: min(440px, 92%); height: auto; margin: 0 auto; }
.lobby-label { display: block; font-size: 1.05rem; color: var(--ink-strong); margin-block-end: 8px; }
.lobby-project { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 76px; }
.lobby-project .title { font-size: 1.12rem; color: var(--ink-strong); }
.lobby-project .meta { font-size: .88rem; color: var(--ink-3); }
.lobby-project .grow { flex: 1; min-width: 0; }

.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); border: var(--edge);
  padding: 8px 24px 26px; overflow: hidden;
}
.login-art img { display: block; width: calc(100% + 24px); max-width: none; height: auto; margin: 0 -12px 4px; }
.login-card h1 { font-size: 2rem; margin: 4px 0 8px; }
.login-card p { color: var(--ink-2); margin: 0 0 22px; }
.invite-lead { background: var(--tape-soft); border-radius: var(--r-sm); padding: 12px 14px; color: #6E5010 !important; }
.gbtn { display: flex; justify-content: center; min-height: 48px; margin-block-end: 12px; }
.login-err { color: var(--over) !important; }
.login-note { font-size: .88rem; color: var(--ink-3) !important; margin: 14px 0 0 !important; }
.login-foot { margin-top: 18px; font-size: .88rem; }
.login-foot a { color: var(--ink-3); }

.doc { max-width: 680px; margin-inline: auto; padding: 32px 18px 56px; }
.doc h1 { font-size: 1.9rem; margin-bottom: 4px; }
.doc h2 { font-size: 1.2rem; margin: 26px 0 6px; }
.doc p { margin: 0 0 10px; color: var(--ink-2); }

/* ============ שונות ============ */

.pin-screen { max-width: 340px; margin: 12vh auto; padding: 0 20px; text-align: center; }
.pin-screen h1 { font-size: 2.1rem; margin-block-end: 6px; }
.pin-screen p { color: var(--ink-3); margin-block-start: 0; margin-block-end: 26px; }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 70; max-width: 480px; margin-inline: auto;
  background: var(--ink-strong); color: #FFF;
  border-radius: 14px; padding: 13px 16px; box-shadow: 0 8px 24px rgba(16,36,58,.25);
  font-size: .98rem; text-align: center;
}
.toast.err { background: var(--over); }
.toast.has-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; }
.toast-action {
  appearance: none; border: 0; cursor: pointer; flex: none;
  background: rgba(255,255,255,.14); color: #FFE3A8; font-size: .98rem;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
}

.loading { padding: 40px; text-align: center; color: var(--ink-3); }

/* ============ בורר עם רשימה ============ */

.combo { position: relative; display: flex; }
.combo input { padding-inline-end: 52px; }
.combo-toggle {
  position: absolute; inset-inline-end: 1px; inset-block: 1px;
  width: 48px; border: 0; background: none; cursor: pointer;
  color: var(--ink-3); display: flex; align-items: center; justify-content: center;
  border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm);
}
.combo-toggle:hover { background: #F4F1EA; }
.combo-list {
  margin-block-start: 6px;
  border: 1.5px solid var(--rule); border-radius: var(--r-sm);
  background: var(--card); max-height: 244px; overflow-y: auto;
}
.combo-opt {
  display: block; width: 100%; text-align: start;
  border: 0; border-block-end: 1px solid var(--rule-soft); background: none;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0 14px; min-height: 48px; cursor: pointer;
}
.combo-opt:last-child { border-block-end: 0; }
.combo-opt:hover { background: #FBF9F5; }
.combo-opt.is-current { background: var(--tape-soft); }

/* ============ קבצים ותמונות ============ */

.file-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-block-end: 1px solid var(--rule-soft); min-height: var(--tap); }
.file-row:last-child { border-block-end: 0; }
.file-row .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize { font-family: var(--mono); font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.file-row a { text-decoration: none; }
.file-row .edit { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-3); min-width: 40px; min-height: 40px; }
.file-kind {
  flex: none; width: 38px; height: 38px; border-radius: 9px;
  background: #F3F0EA; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .66rem; color: var(--ink-2);
}
.file-kind.img { padding: 0; overflow: hidden; }
.file-kind img { width: 100%; height: 100%; object-fit: cover; }

.pick-line { display: flex; gap: 10px; margin-block-start: 4px; }
.pick-line .btn { flex: 1; }

.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.receipt-card {
  border: var(--edge); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer; text-align: start;
  display: flex; flex-direction: column; padding: 0; color: var(--ink);
}
.receipt-card .thumb { aspect-ratio: 4 / 3; background: #F1EEE7; display: block; width: 100%; object-fit: cover; }
.receipt-card .pdf { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #F1EEE7; font-family: var(--mono); color: var(--ink-2); }
.receipt-card .body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.receipt-card .t { font-size: .98rem; line-height: 1.3; }
.receipt-card .m { font-size: .82rem; color: var(--ink-3); }
.receipt-card .a { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-strong); }

.drive-chip {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start;
  font-size: .76rem; padding: 2px 9px; border-radius: 20px;
  background: var(--ok-bg); color: var(--ok);
}
.drive-chip.pending { background: #F3F0EA; color: var(--ink-3); }
.drive-chip.errored { background: var(--over-bg); color: var(--over); }

.viewer-img { width: 100%; border-radius: var(--r-sm); background: #F1EEE7; display: block; }

.icon-btn {
  flex: none; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--rule); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn.call { background: var(--tape); border-color: var(--tape); color: #2A1F05; }
.icon-btn.call:hover { background: #E1B263; }
.icon-btn:hover { background: #FBF9F5; }

.progress { height: 6px; border-radius: 3px; background: #EEEBE5; overflow: hidden; margin-block-start: 8px; }
.progress i { display: block; height: 100%; background: var(--tape); transition: inline-size .2s; }

/* ============ אנשי קשר - שורה מתקפלת ============ */

.contact { position: relative; background: var(--card); border-block-end: 1px solid var(--rule-soft); }
.contact:last-child { border-block-end: 0; }
.contact > details > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px 16px;
}
.contact > details > summary::-webkit-details-marker { display: none; }
.contact.has-phone > details > summary { padding-inline-end: 74px; }
.contact > details > summary:hover { background: #FDFCF9; }
.c-name { flex: 1; min-width: 0; font-size: 1.05rem; }
.c-caret { color: var(--ink-3); flex: none; transition: transform .15s; }
.contact > details[open] > summary .c-caret { transform: rotate(180deg); }
.call-abs { position: absolute; inset-inline-end: 13px; top: 5px; }
/* הגוף מתחיל מתחת לכפתור החיוג (שנגמר ב-53px), ולכן משתמש בכל הרוחב */
.c-body { padding: 0 16px 14px; display: grid; gap: 7px; }
.c-line { display: flex; gap: 10px; align-items: baseline; }
.c-line.stack { flex-direction: column; gap: 1px; align-items: stretch; }
.c-line.stack .c-key { width: auto; }
.c-key { flex: none; width: 62px; font-size: .85rem; color: var(--ink-3); }
.c-val { min-width: 0; overflow-wrap: anywhere; }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 4px; }
.c-actions .btn { text-decoration: none; }

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

/* ============ פירורי לחם בכותרת: "בית חדש ‹ משימות" ============ */

.crumb {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0;
  text-decoration: none; color: var(--ink-3); font-size: 1.05rem;
  min-height: 44px; padding-inline-end: 2px; border-radius: 10px;
}
.crumb:hover .crumb-name { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumb img { width: 26px; height: 26px; flex: none; }
.crumb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 11em; }
.crumb-sep { flex: none; color: #B8B2A6; margin-inline-start: 4px; }
.brand h1 { flex: 0 1 auto; min-width: 0; }
/* בטלפון יש בית ברצועה התחתונה, ואין מקום לשני שמות - נשאר רק הבית הלחיץ */
@media (max-width: 559px) {
  .crumb-name { display: none; }
  .crumb { min-width: 44px; justify-content: center; }
  .crumb img { width: 30px; height: 30px; }
}
