/* Assistant is served from this site: hospital networks often block Google Fonts. */
@font-face { font-family: Assistant; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/assistant-hebrew.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Assistant; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/assistant-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* OBGYN-LUZ. Hebrew, RTL, phone first. Light by default, dark when the device asks for it. Colours only through variables. */
:root {
  --bg: #f5f4f6; --card: #ffffff; --ink: #1d1a22; --muted: #625d6b; --line: #e3dfe7; --soft: #f7f3f6;
  --accent: #7b1b4e; --accent-ink: #ffffff; --accent-soft: #f6e6ee;
  --ok: #1b7a43; --ok-soft: #e4f4ea; --bad: #b3261e; --bad-soft: #fbe9e7; --goal: #1f6fb2; --goal-soft: #e5f1fb; --warn: #8a5300; --warn-soft: #fdf1e0;
  --senior: #b44d0c; --oncall: #17498c; --resident: #4c1d95; --feedback: #0b5454;
  --shadow: 0 1px 2px rgba(29, 26, 34, .06), 0 2px 8px rgba(29, 26, 34, .05);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #25282c; --card: #2f3338; --ink: #eceef0; --muted: #a9b0b8; --line: #41464d; --soft: #363a40;
    --accent: #e48ab6; --accent-ink: #25282c; --accent-soft: #46283a;
    --ok: #7fd3a0; --ok-soft: #27412f; --bad: #f2a29b; --bad-soft: #4a2c2a; --goal: #8cc4f2; --goal-soft: #253a4d; --warn: #f2c27a; --warn-soft: #463a26;
    --senior: #f5a46a; --oncall: #8fb8ee; --resident: #c4a8f5; --feedback: #6fd0c6; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Assistant, "Segoe UI", Arial, sans-serif; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
button { font: inherit; }
.boot { text-align: center; color: var(--muted); margin-top: 30vh; }
header.top { position: sticky; top: 0; z-index: 5; background: var(--accent); color: var(--accent-ink); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; }
header.top img { width: 30px; height: 30px; border-radius: 8px; }
header.top .t { font-weight: 800; letter-spacing: .3px; }
header.top .s { font-size: 13px; opacity: .85; }
header.top .sp { flex: 1; }
header.top button { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 3px 12px; font-size: 14px; cursor: pointer; }
main { max-width: 720px; margin: 0 auto; padding: 14px; display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card h3 { margin: 12px 0 6px; font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.full { width: 100%; }
input[type=text], input[type=email], input[inputmode] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); }
label.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.note { border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.note.warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.info { background: var(--soft); color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 15px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.s { border-inline-start: 4px solid var(--senior); } .tile.o { border-inline-start: 4px solid var(--oncall); }
.tile.l { border-inline-start: 4px solid var(--accent); } .tile.f { border-inline-start: 4px solid var(--feedback); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.date { font-weight: 700; min-width: 74px; display: inline-block; margin-inline-end: 8px; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); margin-inline-start: 4px; }
.chip.me { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day { padding: 8px 0; border-bottom: 1px solid var(--line); }
.day.today { background: var(--accent-soft); margin: 0 -16px; padding: 8px 16px; }
.day.mine .dn { color: var(--accent); }
.day .dn { font-weight: 800; }
.who { font-size: 14px; }
.who .me { background: var(--accent-soft); color: var(--accent); font-weight: 800; border-radius: 6px; padding: 0 4px; }
.seg { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.seg button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--resident); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.big { font-size: 26px; font-weight: 800; }
.stat { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
ul.keep, ul.improve, ul.goals { margin: 4px 0; padding-inline-start: 18px; }
ul.keep li { color: var(--ok); } ul.improve li { color: var(--bad); } ul.goals li { color: var(--goal); }
nav.tabs { position: fixed; bottom: 0; inset-inline: 0; z-index: 6; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
nav.tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; padding: 8px 2px 6px; }
nav.tabs a .i { display: block; font-size: 21px; line-height: 1.1; }
nav.tabs a[aria-current=page] { color: var(--accent); font-weight: 800; }
.install { border: 1px dashed var(--accent); }
.login { max-width: 420px; margin: 8vh auto 0; }
.login .logo { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 10px; }
.center { text-align: center; }
/* ---------- round 2 (Roee 04/12/26: "ממשק נוח"): the board inside the app, day chips, sticky controls ---------- */
.hero h2 { font-size: 22px; margin: 2px 0 6px; }
.today-me { margin-top: 4px; }
.nm { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; margin: 2px 0 2px 4px; font-size: 15px; }
.nm.me { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 800; }
.who { margin-top: 4px; }
.who .line { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.pair { display: inline-flex; align-items: center; gap: 2px; margin-inline-end: 8px; }
.chip.r { color: var(--resident); }
.sticky { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 4; background: var(--bg); padding: 6px 0; display: grid; gap: 8px; }
.daychips { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.daychips::-webkit-scrollbar { display: none; }
.dchip { flex: 0 0 auto; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; position: relative; }
.dchip span { font-size: 12px; color: var(--muted); }
.dchip.today { border-color: var(--accent); }
.dchip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dchip.on span { color: var(--accent-ink); }
.dchip.mine::after { content: ''; position: absolute; top: 5px; inset-inline-start: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dchip.on.mine::after { background: var(--accent-ink); }
.wsep { flex: 0 0 1px; background: var(--line); margin: 4px 2px; }
.board .brow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.board .brow:last-child { border-bottom: 0; }
.board .brow.mine .blabel { color: var(--accent); font-weight: 800; }
.blabel { font-size: 14px; color: var(--muted); font-weight: 600; padding-top: 3px; }
.stamp { text-align: center; margin: 0; }
.monthbar { justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.monthbar .btn { padding: 6px 14px; }
.day.past { opacity: .55; }
li.is-today { background: var(--accent-soft); margin: 0 -16px; padding-inline: 16px; }
/* line icons (Roee 04/12/26: clean icons, lines only) */
svg.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.hi { display: flex; align-items: center; gap: 7px; }
.hi svg.ico { color: var(--accent); }
button.hi, b.hi { display: inline-flex; }
nav.tabs a .i { display: flex; justify-content: center; }
nav.tabs a .i svg.ico { width: 24px; height: 24px; stroke-width: 1.7; }
.today-me svg.ico { margin-inline-end: 4px; }
.seg button.hi svg.ico { color: currentColor; }
