@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/heebo-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/heebo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/heebo-hebrew-500-normal.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/heebo-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/heebo-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/heebo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #f3f6f9; --surface: #ffffff; --surface-2: #f8fafc; --line: #dde3ea; --line-strong: #c5ced8;
  --text: #1f2933; --muted: #5b6776; --primary: #123a63; --primary-2: #1d5a8f; --primary-soft: #e6eef7;
  --accent: #1fa39a; --accent-strong: #137d76; --accent-soft: #e2f5f3;
  --ok: #2e7d4f; --ok-soft: #e4f3ea; --warn: #a76a00; --warn-soft: #fdf1d8; --bad: #b3362b; --bad-soft: #fbe7e4;
  --demo: #6b4fa0; --demo-soft: #efe9f8;
  --radius: 12px; --shadow: 0 1px 2px rgba(30, 30, 25, .06), 0 4px 16px rgba(30, 30, 25, .06);
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
body { min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }

/* כותרת עליונה */
.topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
/* מותג Clery's: סמל + שם; השם תמיד LTR בתוך הממשק העברי */
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--primary); text-decoration: none; }
.brand-mark-img { display: block; flex: none; }
.brand-name { direction: ltr; unicode-bidi: isolate; letter-spacing: -.01em; }
.brand-dark { color: #fff; }
.brand-tagline { font-size: .8rem; color: var(--muted); font-weight: 500; }
.topbar nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.topbar nav a { padding: .4rem .75rem; border-radius: 8px; color: var(--muted); font-weight: 500; }
.topbar nav a.active, .topbar nav a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; }

.page { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.page-wide { max-width: none; padding: 1rem 1.25rem; }
.page-head { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.crumbs a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: .6rem; }

/* כפתורים וטפסים */
button, .btn { font: inherit; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: .45rem .9rem; border-radius: 9px; cursor: pointer; font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--primary-2); color: #fff; }
button.danger { color: var(--bad); border-color: #e6b9b3; }
button.ghost { border-color: transparent; background: transparent; }
button.small, .btn.small { padding: .25rem .6rem; font-size: .85rem; }
input, select, textarea { font: inherit; border: 1px solid var(--line-strong); border-radius: 9px; padding: .45rem .65rem; background: #fff; color: var(--text); min-width: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 1px; }
label.field { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--muted); }
label.field > span { font-weight: 500; }
.form-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }

/* תגיות מצב */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--primary-soft); color: var(--primary); }
.badge.neutral { background: #eeece7; color: var(--muted); }
.badge.demo { background: var(--demo-soft); color: var(--demo); border-color: #d9cdee; }
.demo-banner { background: repeating-linear-gradient(-45deg, var(--demo-soft), var(--demo-soft) 12px, #f6f2fc 12px, #f6f2fc 24px); border: 1px solid #d9cdee; color: var(--demo); border-radius: 10px; padding: .55rem .9rem; font-weight: 500; margin-bottom: 1rem; }

/* טבלאות */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f7f5f0; }
tr.selected td { background: var(--primary-soft) !important; }
td.num, th.num { text-align: end; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table th { position: sticky; top: 0; z-index: 1; }

/* רשימות בעיות */
.issue { display: flex; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; font-size: .9rem; }
.issue.error { background: var(--bad-soft); color: #7d241c; }
.issue.warning { background: var(--warn-soft); color: #6e4700; }
.issue.info { background: var(--primary-soft); color: var(--primary); }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.disc { border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; background: var(--surface-2); }
.disc.missing { border-style: dashed; background: #fbfaf8; }
.disc .swatch, .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }

/* דרופזון */
.drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 1.4rem; text-align: center; background: var(--surface-2); transition: .15s; }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }

/* התחברות */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(155deg, #0e2238 0%, #123a63 55%, #137d76 120%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 2.2rem; line-height: 1.25; }
.login-art p { opacity: .9; max-width: 32rem; font-size: 1.05rem; }
.login-form { display: grid; place-items: center; padding: 2rem; }
.login-form form { width: 100%; max-width: 360px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

/* חלון קופץ והודעות */
.modal-back { position: fixed; inset: 0; background: rgba(20, 22, 25, .45); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 1.4rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.modal h2 { margin-bottom: 1rem; }
.modal .actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.2rem; }
.toast-host { position: fixed; bottom: 1.2rem; inset-inline-start: 50%; transform: translateX(50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: #22252a; color: #fff; padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; max-width: 520px; }
.toast.error { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* פרויקטים */
.apt-table td { vertical-align: middle; }
.empty { text-align: center; padding: 2rem; color: var(--muted); }
.kpis { display: flex; gap: .75rem; flex-wrap: wrap; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .85rem; min-width: 120px; }
.kpi b { display: block; font-size: 1.3rem; }

/* מסך בדיקה */
.review-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr); gap: 1rem; height: calc(100vh - 150px); min-height: 560px; }
.review-layout > .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.pane-head { padding: .75rem 1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pane-body { padding: .75rem 1rem; overflow: auto; flex: 1; min-height: 0; }
.tabs { display: flex; gap: .25rem; }
.tabs button { border: none; background: transparent; padding: .4rem .75rem; border-radius: 8px; color: var(--muted); }
.tabs button.active { background: var(--primary-soft); color: var(--primary); }
.qty-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; overflow: hidden; }
.qty-item > header { display: flex; gap: .5rem; align-items: center; padding: .55rem .75rem; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.qty-item > header .grow { flex: 1; min-width: 160px; }
.qty-item table td, .qty-item table th { padding: .4rem .6rem; font-size: .9rem; }
.value { font-weight: 700; font-size: 1rem; }
.value.missing { color: var(--bad); font-weight: 500; }
.override-note { font-size: .78rem; color: var(--warn); }
.src-list { font-size: .85rem; }
.src-list li { margin-bottom: .2rem; }
.src-list .excluded { color: var(--muted); text-decoration: line-through; }

@media (max-width: 1100px) { .review-layout { grid-template-columns: 1fr; height: auto; } .review-layout > .card:first-child { height: 70vh; } }

/* צופה תלת-ממד */
.viewer { position: relative; flex: 1; min-height: 360px; background: linear-gradient(180deg, #dfe8ec 0%, #f3f1ec 70%); overflow: hidden; user-select: none; }
.viewer canvas { display: block; width: 100%; height: 100%; outline: none; }
.v-toolbar { position: absolute; top: .75rem; inset-inline-start: .75rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 3; }
.v-toolbar button { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: var(--shadow); border-color: transparent; padding: .4rem .7rem; font-size: .88rem; }
.v-toolbar button.on { background: var(--primary); color: #fff; }
.v-side { position: absolute; top: .75rem; inset-inline-end: .75rem; width: 240px; max-height: calc(100% - 1.5rem); overflow: auto; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: 12px; box-shadow: var(--shadow); padding: .7rem .8rem; z-index: 3; font-size: .88rem; }
.v-side h4 { margin: .4rem 0 .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.v-side label { display: flex; align-items: center; gap: .45rem; padding: .18rem 0; cursor: pointer; }
.v-side .room-btn { display: flex; width: 100%; justify-content: space-between; border: none; background: transparent; padding: .25rem .4rem; border-radius: 7px; font-weight: 400; font-size: .86rem; }
.v-side .room-btn:hover { background: #f1efe9; color: var(--text); }
.v-side .room-btn.on { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.v-info { position: absolute; bottom: .75rem; inset-inline-start: .75rem; width: min(360px, calc(100% - 1.5rem)); background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: var(--shadow); padding: .75rem .9rem; z-index: 4; font-size: .86rem; max-height: 45%; overflow: auto; }
.v-info h3 { margin-bottom: .3rem; }
.v-info dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin: .4rem 0 0; }
.v-info dt { color: var(--muted); }
.v-info dd { margin: 0; overflow-wrap: anywhere; }
.v-info .close { position: absolute; top: .35rem; inset-inline-end: .35rem; padding: .1rem .45rem; }
.v-hint { position: absolute; bottom: .75rem; inset-inline-end: .75rem; background: rgba(34, 37, 42, .72); color: #fff; padding: .35rem .7rem; border-radius: 8px; font-size: .78rem; z-index: 2; }
.v-info:not(.hidden) ~ .v-hint { display: none; }
.v-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(244, 242, 238, .85); z-index: 10; text-align: center; }
.v-loading .spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; margin: 0 auto .75rem; }
.v-loading .err { color: var(--bad); max-width: 360px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* עיגול מסתובב קטן בתוך שורה/תג: תהליך רקע בביצוע (זיהוי, חילוץ) */
.spinner-inline { display: inline-block; flex: none; width: .95em; height: .95em; border-radius: 50%; color: var(--primary); border: 2px solid currentColor; border-top-color: transparent; opacity: .85; animation: spin .9s linear infinite; vertical-align: -.15em; margin-inline-end: .3rem; }
.badge .spinner-inline { color: inherit; margin-inline-end: 0; }
.badge:has(.spinner-inline)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .spinner-inline { animation-duration: 2.4s; } }

/* דייר */
.my-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 1rem; height: calc(100vh - 170px); min-height: 560px; }
.my-layout > .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 1000px) { .my-layout { grid-template-columns: 1fr; height: auto; } .my-layout > .card:first-child { height: 65vh; } }
.hero-note { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

/* ---------- סביבת עבודה לתכנית (עורך / בדיקה) ---------- */
.ws { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; grid-template-rows: minmax(480px, calc(100vh - 290px)) auto; gap: .75rem; }
.ws > .card { padding: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ws > .card + .card { margin-top: 0; }
.ws-tools { grid-column: 1; grid-row: 1; padding: .75rem !important; overflow: auto !important; }
.ws-views { grid-column: 2; grid-row: 1; }
.ws-inspector { grid-column: 3; grid-row: 1; padding: .75rem .9rem !important; overflow: auto !important; }
.ws-bottom { grid-column: 1 / -1; grid-row: 2; max-height: 46vh; }
.ws-tools h3, .ws-inspector h3 { margin: 0 0 .4rem; }
.ws-tools h4, .ws-inspector h4 { margin: .8rem 0 .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; display: flex; gap: .4rem; align-items: center; }
.ws-tools .tool { width: 100%; justify-content: flex-start; margin-bottom: .3rem; font-size: .88rem; }
.ws-tools .tool.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.ws-views-body { flex: 1; min-height: 0; display: grid; gap: 1px; background: var(--line); }
.ws-views-body.mode-split { grid-template-columns: 1fr 1fr; }
.ws-views-body.mode-top { grid-template-columns: 1fr; } .ws-views-body.mode-top > :nth-child(2) { display: none; }
.ws-views-body.mode-3d { grid-template-columns: 1fr; } .ws-views-body.mode-3d > :nth-child(1) { display: none; }
.ws-pane { position: relative; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.ws-top { flex: 1; min-height: 0; display: flex; }
.ws-3d { flex: 1; min-height: 0; display: flex; }
.ws-3d .viewer { min-height: 0; }
.ws-zoom { position: absolute; top: .5rem; inset-inline-start: .5rem; display: flex; gap: .25rem; }
.ws-zoom button { background: rgba(255,255,255,.92); }
.ws-legend { position: absolute; bottom: .4rem; inset-inline-start: .5rem; background: rgba(255,255,255,.88); padding: .15rem .5rem; border-radius: 6px; color: var(--muted); }
/* הדרכה לפי הקשר במבט העל, שורת תחומי התכנון, סיבוב התצוגה וחלון העריכה בתלת-ממד */
.ws-guide { position: absolute; bottom: .4rem; inset-inline-start: .5rem; inset-inline-end: .5rem; background: rgba(255,255,255,.92); padding: .25rem .55rem; border-radius: 8px; color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; line-height: 1.35; box-shadow: var(--shadow); }
.ws-layers { gap: .3rem; flex-wrap: wrap; margin-inline-start: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .8rem; color: var(--muted); }
.chip.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip:disabled { opacity: .55; cursor: not-allowed; }
.chip .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ws-zoom { flex-wrap: wrap; align-items: center; }
.ws-zoom-sep { width: 1px; height: 1.2rem; background: var(--line); margin: 0 .2rem; }
.v-edit { position: absolute; bottom: .75rem; inset-inline-start: .75rem; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem .7rem; z-index: 3; max-width: min(420px, calc(100% - 1.5rem)); }
.v-edit .row { gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
.v-edit:not(.hidden) ~ .v-hint { display: none; }
svg.plan2d { width: 100%; height: 100%; flex: 1; background: #fff; touch-action: none; cursor: grab; outline: none; }
svg.plan2d.placing { cursor: crosshair; }
svg.plan2d g.el.editable { cursor: move; }
svg.plan2d g.el:hover polygon { stroke: #ff8a00; }
svg.plan2d text { font-family: 'Heebo', Arial, sans-serif; pointer-events: none; }
svg.plan2d .handle { cursor: pointer; }
.ws-inspector .explain { color: var(--muted); margin: .4rem 0; }
.ws-inspector table.perm td { padding: .2rem .3rem; }
.ws-inspector dl.props { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; font-size: .86rem; margin: .5rem 0; }
.ws-inspector dl.props dt { color: var(--muted); } .ws-inspector dl.props dd { margin: 0; }
.ws-inspector .issue { margin-top: .35rem; }
.form-grid.tight { grid-template-columns: 1fr 1fr; gap: .4rem; }
.form-grid.tight input { width: 100%; }
.preview-box { margin: .4rem 0; } .preview-box .issue { margin-top: .25rem; }
.legend .row { gap: .4rem; margin: .15rem 0; }
.ws-bottom table td, .ws-bottom table th { padding: .35rem .5rem; }
.ws-bottom tr.changed td { background: #f4fbfa; } .ws-bottom tr.needs td { background: #fff8e8; }
.ws-bottom tfoot td { font-weight: 500; } .ws-bottom tfoot tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.comments .comment { border: 1px solid var(--line); border-radius: 9px; padding: .45rem .65rem; margin-bottom: .45rem; }
.comments .comment.return_reason { border-color: #e9c27a; background: var(--warn-soft); }
.comments .comment .body { white-space: pre-wrap; }
.comment-form { display: grid; gap: .4rem; margin-top: .5rem; } .comment-form textarea { width: 100%; }
ol.timeline { margin: 0; padding-inline-start: 1.2rem; } ol.timeline li { margin-bottom: .25rem; }
.plan-head h1 { margin: 0; font-size: 1.35rem; }
.plan-name { font-size: 1.15rem; font-weight: 700; border-color: transparent; background: transparent; min-width: 220px; }
.plan-name:hover:not(:disabled), .plan-name:focus { border-color: var(--line-strong); background: #fff; }
.save-ind { font-size: .82rem; padding: .1rem .5rem; border-radius: 999px; }
.save-ind.ok { color: var(--ok); } .save-ind.busy { color: var(--primary); } .save-ind.dirty { color: var(--warn); } .save-ind.bad { color: var(--bad); background: var(--bad-soft); }
.banner { margin-bottom: .6rem; align-items: center; flex-wrap: wrap; }
.kpis.col { flex-direction: column; } .card-mini { border: 1px solid var(--line); border-radius: 8px; padding: .4rem .55rem; margin-bottom: .4rem; }
.ws-readonly .ws-tools .tool { display: none; }
@media (max-width: 1100px) {
  .ws { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ws > .card { grid-column: 1 !important; grid-row: auto !important; }
  .ws-views { height: 70vh; } .ws-views-body.mode-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .ws-tools { order: 3; } .ws-inspector { order: 2; } .ws-bottom { order: 4; max-height: none; }
}
@media (max-width: 600px) { .topbar { flex-wrap: wrap; padding: .5rem .75rem; } .user-chip > span:first-child { display: none; } .page { padding: 1rem; } .ws-bottom .table-scroll, .ws-bottom .pane-body { overflow-x: auto; } }

/* התראות */
.notif-btn { position: relative; } .notif-btn .count { position: absolute; top: -6px; inset-inline-end: -6px; background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .35rem; }
.notif-list { max-height: 60vh; overflow: auto; } .notif-list a { display: block; padding: .45rem .3rem; border-bottom: 1px solid var(--line); color: var(--text); } .notif-list a.unread { font-weight: 700; }

/* ---------- גיליונות הדפסה (A3 לרוחב) ---------- */
.print-root { margin: 0; padding: 0; background: #e9edf1; }
.print-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 1rem; align-items: center; background: #123a63; color: #fff; padding: .6rem 1rem; flex-wrap: wrap; }
.print-toolbar button.primary { background: #1fa39a; border-color: #1fa39a; }
.sheet { width: 420mm; height: 297mm; margin: 10mm auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); position: relative; overflow: hidden; page-break-after: always; break-after: page; }
.sheet-frame { position: absolute; inset: 8mm; border: .5mm solid #123a63; display: flex; }
.sheet-main { width: 290mm; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-inline-end: .3mm solid #123a63; }
.sheet-main .draw svg { display: block; }
.sheet-side { flex: 1; padding: 4mm; display: flex; flex-direction: column; gap: 3mm; font-size: 3.1mm; overflow: hidden; }
.tb-brand img { display: block; }
.tb-status { font-weight: 700; font-size: 4.6mm; padding: 2mm 3mm; border: .6mm solid; border-radius: 1.5mm; text-align: center; }
.tb-status.st-draft { color: #b3362b; border-color: #b3362b; background: #fbe7e4; }
.tb-status.st-approved { color: #8a5a00; border-color: #c98a12; background: #fdf1d8; }
.tb-status.st-released { color: #1f6b40; border-color: #2e7d4f; background: #e4f3ea; }
.tb-status.st-standard { color: #123a63; border-color: #123a63; background: #e6eef6; }
.tb-superseded { color: #b3362b; font-weight: 700; border: .4mm dashed #b3362b; padding: 1.5mm; text-align: center; }
dl.tb { display: grid; grid-template-columns: auto 1fr; gap: .8mm 3mm; margin: 0; } dl.tb dt { color: #5b6776; } dl.tb dd { margin: 0; font-weight: 500; }
.tb-scale { border-top: .2mm solid #c5ced8; padding-top: 2mm; } .tb-scale .small { font-size: 2.6mm; color: #5b6776; }
.tb-legend { border-top: .2mm solid #c5ced8; padding-top: 2mm; display: grid; grid-template-columns: 1fr 1fr; gap: .6mm 2mm; font-size: 2.8mm; } .tb-legend b { grid-column: 1 / -1; }
.tb-legend .sw { display: inline-block; width: 4mm; height: 3mm; border: .2mm solid #666; margin-inline-end: 1.5mm; vertical-align: middle; }
.tb-legend .sw.dash-new { border: .4mm dashed #1fa39a; } .tb-legend .sw.dash-old { border: .4mm dashed #8a94a0; } .tb-legend .sw.removed { border: .4mm solid #b3362b; background: #fbe7e4; }
.tb-legend .sw.marker { background: #123a63; color: #fff; border-radius: 50%; width: 3.6mm; height: 3.6mm; text-align: center; font-size: 2.4mm; line-height: 3.6mm; border: none; }
.tb-legend .sw.dim { border: none; color: #1d5a8f; font-weight: 700; width: auto; } .tb-legend .sw.tag { border: none; color: #123a63; font-size: 2.4mm; width: auto; }
.sheet-main svg text.marker-tag, .sheet-main svg text.room-dim { font-family: 'Heebo', Arial, sans-serif; }
.tb-changes { margin: 0; padding-inline-start: 5mm; overflow: hidden; flex: 1; font-size: 2.8mm; }
.tb-note { font-size: 2.5mm; color: #5b6776; border-top: .2mm solid #c5ced8; padding-top: 2mm; }
.annex { padding: 6mm; overflow: hidden; font-size: 3mm; width: 100%; height: 100%; align-self: flex-start; }
.annex h2 { font-size: 4.2mm; margin: 3mm 0 2mm; color: #123a63; }
.annex table { font-size: 2.7mm; } .annex th, .annex td { padding: .8mm 1.5mm; }
.annex .shot3d { max-width: 120mm; max-height: 70mm; border: .2mm solid #c5ced8; }
@media print {
  @page { size: A3 landscape; margin: 0; }
  html, body { background: #fff; }
  .no-print { display: none !important; }
  .sheet { margin: 0; box-shadow: none; }
}

.google-btn { justify-content: center; width: 100%; padding: .55rem; }
.google-btn .g { font-weight: 700; color: #4285f4; font-size: 1.05rem; }
.or { text-align: center; }
.plans-list td { vertical-align: middle; }
.invite-card { max-width: 520px; margin: 3rem auto; }
.rules-matrix select { padding: .2rem .4rem; font-size: .85rem; }
.rules-matrix td, .rules-matrix th { padding: .35rem .45rem; }
.ws-readonly .ws-legend { display: none; }
.ws-readonly .ws-guide { display: none; }

/* כפתור שנראה כקישור (למשל "שכחתי סיסמה") */
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; align-self: flex-start; }
