:root {
  --bg: #eef2f6; --card: #fff; --text: #1f2a37; --muted: #5b6776; --line: #d5dde6;
  --ok-bg: #e3f4ea; --ok-line: #9fd3b2; --ok: #1d6b3e; --ok-btn: #2e7d4f;
  --warn-bg: #fff4dc; --warn-line: #e9b44c; --warn: #7a4f00;
  --bad-bg: #fde8e8; --bad-line: #e8a0a0; --bad: #9b1c1c;
  --info: #1f5fa8; --info-bg: #e6eef9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
.screen { max-width: 860px; margin: 0 auto; padding: 20px; }
h1 { font-size: 30px; margin: 0; }
h2 { font-size: 26px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 18px; }
/* הלוגו ושם המסגרת — נקבעים במסך "תצוגה" של ההנהלה */
.brand-logo { display: block; max-width: 220px; max-height: 120px; margin: 0 auto 12px; }
.brand-logo.small { max-width: 120px; max-height: 60px; margin: 0; flex: none; }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-org { font-size: 21px; color: var(--muted); margin: 6px 0 0; }
.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.counter { background: var(--ok-bg); color: var(--ok); padding: 12px 18px; border-radius: 14px; font-size: 22px; font-weight: bold; }
.sync { background: var(--info-bg); color: var(--info); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 18px; }
button { font-family: inherit; cursor: pointer; border-radius: 14px; border: 2px solid #b8c4d0; background: var(--card); color: var(--text); }
button:focus-visible, .input:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.primary { background: var(--info); border-color: var(--info); color: #fff; }
.big { width: 100%; height: 76px; font-size: 26px; margin-top: 16px; }
.mid { height: 60px; font-size: 21px; padding: 0 22px; flex: 1; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); margin-bottom: 10px; min-height: 76px; }
.row .name { flex: 1; font-size: 24px; }
.photo { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.row .st { font-size: 18px; }
.row.here { background: var(--ok-bg); border-color: var(--ok-line); }
.row.here .st { color: var(--ok); font-size: 20px; }
.row.answered { border-color: var(--line); } .row.answered .st { color: var(--info); }
.row.needs-check { background: var(--warn-bg); border-color: var(--warn-line); } .row.needs-check .st { color: var(--warn); }
.row.notified .st { color: var(--warn); }
.row.missing .st { color: var(--muted); }
.icon { width: 60px; height: 60px; font-size: 26px; flex: none; }
a.icon { display: flex; align-items: center; justify-content: center; border: 2px solid #b8c4d0; border-radius: 14px; text-decoration: none; }
.absent-btn { height: 60px; padding: 0 16px; font-size: 20px; flex: none; }
.absent-btn.on { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.row.absent .st { color: var(--bad); }
.alert { background: var(--warn-bg); border: 3px solid var(--warn-line); color: var(--warn); padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 21px; }
.arrive { height: 60px; padding: 0 26px; font-size: 22px; background: var(--ok-btn); border-color: var(--ok-btn); color: #fff; flex: none; }
.home { font-size: 15px; color: var(--muted); }
.hint { margin-top: 10px; background: var(--bad-bg); border: 2px solid var(--bad-line); color: var(--bad); padding: 12px; border-radius: 12px; font-size: 19px; }
.field { display: block; font-size: 19px; margin: 16px 0 6px; color: var(--muted); }
.input { width: 100%; font-size: 22px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; font-family: inherit; background: var(--card); color: var(--text); -webkit-user-select: text; user-select: text; }
.pad { width: 100%; height: 260px; background: var(--card); border: 2px dashed #9aa8b6; border-radius: 14px; touch-action: none; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.error { margin-top: 12px; color: var(--bad); font-size: 19px; }
.done-icon { font-size: 80px; color: var(--ok); text-align: center; margin-top: 40px; }
#screen-done h1, .done-text { text-align: center; }
.done-text { font-size: 22px; }
#screen-done .muted { text-align: center; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 30, 40, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--card); width: 100%; max-width: 860px; max-height: 92vh; overflow: auto; padding: 22px; border-radius: 22px 22px 0 0; }
.sheet.small { border-radius: 22px; margin-bottom: 30vh; max-width: 520px; font-size: 22px; }
.tag { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 10px; font-size: 17px; }
.phones { display: flex; flex-wrap: wrap; gap: 10px; }
.phones a { display: inline-block; padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; font-size: 20px; color: var(--info); text-decoration: none; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reasons button { height: 60px; font-size: 20px; }
.reasons button.on { background: var(--info); border-color: var(--info); color: #fff; }
.check { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-top: 18px; }
.check input { width: 30px; height: 30px; }
