/* יחדיו · שפה עיצובית: "נייר ודיו". שנהב חם, דיו כהה, הדגשה טרקוטה, כותרות סריף. */
:root {
  --paper: #F4F0E8;
  --paper-2: #EDE7DB;
  --surface: #FFFDF9;
  --surface-2: #F9F6F0;
  --ink: #1C1915;
  --ink-2: #3F3A33;
  --muted: #7D766B;
  --line: #E4DDD0;
  --line-2: #D6CDBE;
  --accent: #C0532E;
  --accent-ink: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --dark: #1F1C18;
  --dark-ink: #F6F1E8;
  --red: #C8443A; --orange: #D9702A; --yellow: #BF9112; --green: #2E8B57; --teal: #1E8C8C; --blue: #3A66C9; --purple: #7A52C2; --gray: #8A8378;
  --shadow: 0 1px 2px rgb(60 45 25 / .05), 0 8px 24px -12px rgb(60 45 25 / .18);
  --shadow-lg: 0 24px 60px -20px rgb(40 30 15 / .35);
  --r: 18px;
  --r-sm: 12px;
  --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --sans: 'Assistant', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --paper: #13120F; --paper-2: #1A1815; --surface: #1D1B17; --surface-2: #23201C;
  --ink: #F3EEE5; --ink-2: #D2CBBF; --muted: #9A9284; --line: #2E2A25; --line-2: #3A352F;
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
  --dark: #F3EEE5; --dark-ink: #1C1915;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):not([data-mode="dark"]) {
    --paper: #13120F; --paper-2: #1A1815; --surface: #1D1B17; --surface-2: #23201C;
    --ink: #F3EEE5; --ink-2: #D2CBBF; --muted: #9A9284; --line: #2E2A25; --line-2: #3A352F;
    --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
    --dark: #F3EEE5; --dark-ink: #1C1915;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (min-width: 1000px) { .hide-desk { display: none !important; } }
@media (max-width: 999px) { .hide-mobile { display: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- מבנה ---------- */
.shell { min-height: 100dvh; }
.side { display: none; }
.main { max-width: 1180px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 64px; margin: 0 -16px 6px; padding: 8px 16px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
.top__title { flex: 1; min-width: 0; }
.top__title h1 { font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__title small { display: block; color: var(--muted); font-size: 14px; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 900; font-size: 24px; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--accent-ink); background: var(--accent); font-family: var(--serif); font-weight: 900; font-size: 19px; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn--back .i { transform: scaleX(1); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; font-weight: 800; font-size: 15px; color: var(--dark-ink); background: var(--dark); border: 0; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: var(--c, var(--gray)); }
.av--lg { width: 52px; height: 52px; font-size: 18px; }

/* ניווט תחתון */
.nav { position: fixed; z-index: 40; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; height: var(--nav-h); padding: 6px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.nav a { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; border-radius: 18px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.nav a.on { color: var(--ink); background: var(--paper-2); }
.nav a.on .i { color: var(--accent); }
.nav .badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 4px); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); font-style: normal; }

.fab { position: fixed; z-index: 39; inset-inline-end: 18px; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; min-width: 58px; padding: 0 20px; border: 0; border-radius: 20px; font-weight: 800; font-size: 16px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.fab:active { transform: scale(.97); }
@media (max-width: 999px) { .fab { width: 58px; padding: 0; border-radius: 50%; } .fab span { display: none; } }

@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; height: 100dvh; padding: 22px 16px; border-inline-end: 1px solid var(--line); background: var(--paper-2); overflow-y: auto; }
  .side .brand-mini { padding: 4px 10px 18px; }
  .side a.nl { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 700; color: var(--ink-2); }
  .side a.nl:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
  .side a.nl.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
  .side a.nl.on .i { color: var(--accent); }
  .side a.nl .badge { margin-inline-start: auto; }
  .side h6 { margin: 18px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
  .side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .side .me small { display: block; color: var(--muted); font-size: 13px; }
  .nav { display: none; }
  .main { padding: 10px 36px 80px; }
  .top { margin: 0 -36px 10px; padding: 12px 36px; }
  .top__title h1 { font-size: 32px; }
  .fab { bottom: 32px; inset-inline-end: 36px; }
  .review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- רכיבים ---------- */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.section { margin-top: 26px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section__head h2 { font-size: 22px; }
.section__head h2 em { font-style: normal; font-family: var(--sans); font-size: 15px; font-weight: 800; color: var(--muted); margin-inline-start: 6px; }
.section__head a, .link { font-size: 15px; font-weight: 700; color: var(--accent); }
.grid2 { display: grid; gap: 22px; }
@media (min-width: 1000px) { .grid2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .grid2 > div > .section:first-child { margin-top: 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; font-weight: 800; font-size: 16px; background: var(--surface); color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn--primary { border-color: transparent; color: var(--accent-ink); background: var(--accent); }
.btn--primary:hover { border-color: transparent; filter: brightness(1.06); }
.btn--dark { border-color: transparent; color: var(--dark-ink); background: var(--dark); }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: transparent; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 800; white-space: nowrap; color: color-mix(in srgb, var(--c, var(--gray)) 82%, var(--ink)); background: color-mix(in srgb, var(--c, var(--gray)) 14%, var(--surface)); }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--gray)); }
.chip--plain::before { display: none; }
.dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--gray)); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.pill em { font-style: normal; font-weight: 800; color: var(--muted); font-size: 13px; }
.pill.on { color: var(--dark-ink); background: var(--dark); border-color: transparent; }
.pill.on em { color: inherit; opacity: .7; }

.search { position: relative; margin: 4px 0 12px; }
.search .i { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 52px; padding: 0 46px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--ink-2); }

.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.seg button.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
@media (max-width: 699px) { .toolbar > .chips { order: 2; flex: 1 1 100% !important; margin: 0 -16px !important; padding: 2px 16px 4px !important; } .toolbar > .seg { margin-inline-start: auto; } }

/* שורות ברשימה */
.list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover, .row--link:hover { background: var(--surface-2); }
.row::before { content: ''; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--org, transparent); }
.row__main { flex: 1; min-width: 0; }
.row__main b { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; }
.row__main small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: end; }
.row__end small { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.row__end .late { color: var(--red); }
.row--done .row__main b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 2px solid var(--line-2); border-radius: 9px; background: var(--surface); color: transparent; padding: 0; }
.check:hover { border-color: var(--green); color: color-mix(in srgb, var(--green) 50%, transparent); }
.check.on { border-color: var(--green); background: var(--green); color: #fff; }
.check .i { width: 16px; height: 16px; stroke-width: 3; }
.group-label { padding: 14px 16px 6px; font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.group-label.late { color: var(--red); }

.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 19px; color: var(--ink); }

/* ---------- בית ---------- */
.hello { padding: 10px 0 4px; }
.hello h1 { font-size: 40px; font-weight: 900; }
.hello p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (min-width: 1000px) { .hello h1 { font-size: 52px; } }
.banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--dark); color: var(--dark-ink); }
.banner .i { color: var(--accent); }
.banner p { flex: 1; font-weight: 700; }
.banner .btn { background: var(--accent); color: var(--accent-ink); border: 0; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 700; font-size: 14px; text-align: center; box-shadow: var(--shadow); }
.quick .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quick a:hover, .quick button:hover { border-color: var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-weight: 900; font-size: 38px; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.stat--hot { background: var(--dark); border-color: transparent; color: var(--dark-ink); }
.stat--hot span { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.stat--hot b { color: var(--accent); }
:root[data-mode="dark"] .stat--hot b { color: var(--accent); }

.review { display: grid; gap: 10px; }
.review-card { padding: 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--purple) 30%, var(--line)); background: color-mix(in srgb, var(--purple) 5%, var(--surface)); }
.review-card h3 { font-family: var(--sans); font-weight: 800; font-size: 17px; }
.review-card p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

.attn .row__main small { white-space: normal; }
.tag-why { font-weight: 800; }
.tag-why.red { color: var(--red); }
.tag-why.orange { color: var(--orange); }
.tag-why.purple { color: var(--purple); }

/* פרויקטים */
.projects { display: grid; gap: 10px; }
@media (min-width: 700px) { .projects--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .projects--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj { display: block; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.proj:hover { border-color: var(--line-2); }
.proj__head { display: flex; align-items: flex-start; gap: 10px; }
.proj__head h3 { flex: 1; font-size: 19px; }
.proj__pct { font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1; }
.proj small { color: var(--muted); font-size: 14px; }
.bar { position: relative; height: 8px; margin-top: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--c, var(--green)); }
.bar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; border-radius: 2px; }
.proj__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.proj__foot .behind { color: var(--red); }

/* כרטיס פרטים */
.hero { padding: 20px; }
.hero h2 { font-size: 28px; }
.hero .sub { margin-top: 6px; color: var(--muted); }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.statuses button { min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); background: transparent; font-weight: 800; font-size: 15px; color: color-mix(in srgb, var(--c) 85%, var(--ink)); }
.statuses button.on { background: var(--c); color: #fff; border-color: transparent; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-weight: 700; font-size: 14px; }
.action .i { color: var(--accent); }
.action--wa .i { color: #1FA855; }
.fields { margin: 12px 0 0; padding: 4px 18px; }
.fields > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fields > div:last-child { border-bottom: 0; }
.fields dt { color: var(--muted); font-weight: 700; font-size: 14.5px; }
.fields dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fields dd.long { white-space: pre-wrap; font-weight: 400; }
.fields img { max-width: 100%; border-radius: 12px; }
.money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.money-row > div { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.money-row b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 900; }
.money-row span { font-size: 13px; font-weight: 700; color: var(--muted); }

/* החלטה */
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); text-align: start; font-weight: 700; font-size: 16px; }
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option.on { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.option .n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--paper-2); font-family: var(--serif); font-weight: 900; }

/* טופס */
.form { display: flex; flex-direction: column; gap: 16px; }
.f label, .f > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.f label i, .f > span i { color: var(--red); font-style: normal; }
.f input:not([type=checkbox]):not([type=radio]):not([type=color]), .f select, .f textarea, .inp { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); }
.f textarea, textarea.inp { min-height: 110px; resize: vertical; line-height: 1.55; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--red); }
.f .err { display: block; margin-top: 4px; color: var(--red); font-size: 14px; font-weight: 700; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink-2); background: var(--surface); }
.radios label.st::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { color: var(--dark-ink); background: var(--dark); border-color: transparent; }
.radios label:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; font-weight: 700; cursor: pointer; background: var(--surface); }
.switch input { appearance: none; width: 48px; height: 28px; flex: none; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { inset-inline-start: 23px; }
.money-in { position: relative; }
.money-in b { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.photo-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-in img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.savebar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 10px; padding: 10px; margin: 6px -6px 0; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.savebar .btn--primary { flex: 1; }

/* לוח עמודות */
.board { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 16px; margin: 0 -16px; scroll-snap-type: x proximity; }
@media (min-width: 1000px) { .board { margin: 0 -36px; padding: 2px 36px 16px; } }
.col { flex: 0 0 280px; scroll-snap-align: start; padding: 10px; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); }
.col__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 800; }
.col__head em { margin-inline-start: auto; font-style: normal; color: var(--muted); font-size: 14px; }
.col .tile { display: block; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-inline-start: 3px solid var(--org, var(--line)); }
.col .tile b { display: block; font-weight: 700; line-height: 1.35; }
.col .tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.col .tile.dragging { opacity: .4; }
.col.over { outline: 2px dashed var(--accent); outline-offset: -4px; }

/* ציר זמן */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.gantt__inner { position: relative; min-width: 760px; }
.gantt__scale { display: grid; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--muted); }
.gantt__scale span { padding: 10px 6px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
.gantt__row { position: relative; display: grid; grid-template-columns: 200px 1fr; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); }
.gantt__row:last-child { border-bottom: 0; }
.gantt__name { padding: 8px 14px; font-weight: 700; font-size: 14.5px; line-height: 1.3; border-inline-end: 1px solid var(--line); }
.gantt__name small { display: block; font-weight: 600; color: var(--muted); font-size: 12.5px; }
.gantt__track { position: relative; height: 54px; }
.gantt__bar { position: absolute; top: 14px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); overflow: hidden; display: flex; align-items: center; padding: 0 8px; font-size: 12.5px; font-weight: 800; color: color-mix(in srgb, var(--c) 80%, var(--ink)); white-space: nowrap; }
.gantt__bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--c) 45%, transparent); }
.gantt__bar span { position: relative; }
.gantt__today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; }
.gantt__today::before { content: 'היום'; position: absolute; top: 2px; inset-inline-start: 4px; font-size: 11px; font-weight: 800; color: var(--accent); }

/* לוח שנה */
.cal { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal__head h3 { font-size: 20px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { padding: 8px 4px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal__day { min-height: 74px; padding: 4px; border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; overflow: hidden; }
.cal__day:nth-child(7n + 1) { border-inline-start: 0; }
.cal__day > b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.cal__day.out { background: var(--surface-2); color: var(--muted); }
.cal__day.today > b { background: var(--accent); color: var(--accent-ink); }
.cal__ev { display: block; margin-top: 2px; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--blue)) 16%, var(--surface)); color: color-mix(in srgb, var(--c, var(--blue)) 80%, var(--ink)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1000px) { .cal__day { min-height: 110px; padding: 6px; font-size: 12.5px; } }

/* עוזר */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 92%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; }
.bubble--me { align-self: flex-start; background: var(--dark); color: var(--dark-ink); border-end-start-radius: 6px; font-weight: 600; }
.bubble--bot { align-self: flex-end; background: var(--surface); border: 1px solid var(--line); border-end-end-radius: 6px; box-shadow: var(--shadow); }
.bubble--bot .list { margin-top: 10px; box-shadow: none; }
.askbar { position: sticky; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); display: flex; gap: 8px; margin-top: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.askbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 0 10px; color: var(--ink); }
.askbar input:focus { outline: none; }
@media (min-width: 1000px) { .askbar { bottom: 20px; } }

/* הודעה למשימות */
.composer textarea { min-height: 120px; }
.mic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--dark); color: var(--dark-ink); }
.mic.on { background: var(--red); color: #fff; }
.mic.on::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--red); animation: pulse 1.3s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.sugg { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.sugg + .sugg { margin-top: 10px; }
.sugg input.inp { min-height: 46px; font-weight: 700; }
.sugg .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sugg .meta select, .sugg .meta input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.sugg .why { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.sugg__top { display: flex; align-items: center; gap: 10px; }
.sugg__top .check { margin-top: 0; }

/* סיכום שבועי והדפסה */
.report h2 { font-size: 24px; margin-bottom: 6px; }
.report .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 14px 0; }
.report .kv > div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.report .kv b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 900; }
.report .kv span { font-size: 14px; color: var(--muted); font-weight: 700; }

/* חלון צף */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgb(20 15 10 / .45); animation: fade .18s ease; }
.sheet { width: 100%; max-height: 90dvh; overflow-y: auto; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; margin: 4px auto 14px; border-radius: 99px; background: var(--line-2); }
.sheet h2 { font-size: 24px; margin-bottom: 12px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; padding: 20px; } .sheet { max-width: 560px; border-radius: 24px; padding: 24px; } .sheet::before { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* חיפוש כללי */
.palette { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 10px; background: rgb(20 15 10 / .45); animation: fade .15s ease; }
.palette__box { width: 100%; max-width: 640px; margin-top: 6vh; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.palette__box .search { margin: 0; }
.palette__box .search input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 62px; font-size: 18px; }
.palette__list { max-height: 60dvh; overflow-y: auto; }
.palette__list .row { border-bottom: 1px solid var(--line); }
.palette__list .row.sel { background: var(--accent-soft); }
.palette__hint { padding: 10px 16px; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; font-size: 12px; font-weight: 800; font-family: var(--sans); }

/* הודעה קופצת */
.toast { position: fixed; z-index: 120; inset-inline: 16px; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 14px 18px; border-radius: 16px; background: var(--dark); color: var(--dark-ink); font-weight: 700; box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .22s; }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast span { flex: 1; }
.toast button { border: 0; background: transparent; color: var(--accent); font-weight: 800; min-height: 40px; padding: 0 6px; }
@media (min-width: 1000px) { .toast { bottom: 28px; } }

/* הגדרות */
.set { padding: 18px; margin-bottom: 12px; }
.set h3 { font-size: 20px; margin-bottom: 12px; }
.set .f + .f { margin-top: 12px; }
.accents { display: flex; gap: 10px; flex-wrap: wrap; }
.accents button { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line-2); }
.accents button.on { box-shadow: 0 0 0 3px var(--ink); }
.note { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.note b { color: var(--accent); }
.log .row { min-height: 56px; }
.log time { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile-link { display: flex; flex-direction: column; gap: 10px; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.tile-link:hover { border-color: var(--line-2); }
.tile-link .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.tile-link b { font-family: var(--serif); font-size: 19px; }
.tile-link small { color: var(--muted); font-weight: 700; margin-top: -6px; }

.team { display: grid; gap: 10px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.member__main { flex: 1; min-width: 0; }
.member__main b { display: block; font-size: 17px; }
.member__main small { color: var(--muted); }
.load { display: flex; gap: 4px; margin-top: 8px; }
.load i { height: 6px; flex: 1; border-radius: 99px; background: var(--paper-2); }
.load i.on { background: var(--green); }
.load i.warn { background: var(--orange); }
.load i.hot { background: var(--red); }

.fin { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .fin { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fin > div { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.fin b { display: block; font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.1; }
.fin span { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.fin .dark { background: var(--dark); color: var(--dark-ink); border-color: transparent; }
.fin .dark span { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); }

@media print {
  .side, .nav, .fab, .top .icon-btn, .top .avatar, .no-print, .toast { display: none !important; }
  body, html { background: #fff; }
  .main { padding: 0; }
  .card, .list { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
