/* אותה שפה כמו התוכנה במחשב (renderer/styles.css): שחור-פחם על לבן-שמנת, בלי צבע הדגשה */
@font-face { font-family: 'Assistant'; src: url('/fonts/Assistant-Regular.ttf') format('truetype'); font-display: swap; }
:root {
  --ink: #1C1B1B; --paper: #FAFAF8; --card: #FFFFFF; --slate: #5A5856; --gry: #6E6C69;
  --line: #E2E0DC; --line-soft: #EFEDE9; --hover: #F2F0EC; --warn: #8C5A2B; --danger: #8C2F2A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 16px/1.5 'Assistant', system-ui, sans-serif; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--ink); color: #fff; }
header b { flex: 1; font-size: 18px; }
.pend { font-size: 13px; color: #E8D9C4; }
.hbtn { background: none; border: 1px solid #555; color: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; }
.dev-badge { display: none; font-size: 12px; background: var(--warn); padding: 2px 8px; border-radius: 6px; }
body.dev .dev-badge { display: inline; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px; }
nav { position: fixed; bottom: 0; inset-inline: 0; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
nav a { flex: 1; text-align: center; padding: 14px 0; color: var(--gry); text-decoration: none; font-weight: 600; }
nav a.on { color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
h1 { font-size: 22px; margin: 6px 0 10px; }
h2 { font-size: 15px; margin: 22px 0 8px; color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.count { color: var(--gry); font-weight: 400; }
.muted { color: var(--gry); font-size: 14px; }
.center { text-align: center; }
.bad { color: var(--danger); }
.late { color: var(--danger); font-weight: 600; }
.num { color: var(--gry); font-weight: 400; font-size: .85em; }
.row { display: flex; gap: 10px; align-items: center; padding: 11px 12px; margin: 6px 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.row:active { background: var(--hover); }
.row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; white-space: nowrap; }
.tag { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--slate); }
.dot, .note-pending { color: var(--warn); }
.search, input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); }
.search { font-size: 17px; }
textarea { resize: vertical; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; font: inherit; color: var(--slate); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px;
  padding: 9px 16px; font: inherit; margin-top: 8px; cursor: pointer; white-space: nowrap; }
.inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline input { flex: 1 1 160px; width: auto; }
.inline input[type=date] { flex: 0 1 150px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { font-size: 14px; color: var(--slate); }
.info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 14px 0 0; }
.info dt { color: var(--gry); } .info dd { margin: 0; overflow-wrap: anywhere; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 16px; }
.task input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.task.done span { color: var(--gry); text-decoration: line-through; }
.log { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.crumbs { font-size: 13px; color: var(--gry); margin-bottom: 4px; overflow-wrap: anywhere; }
.back { color: var(--gry); text-decoration: none; }
.toast { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); inset-inline: 16px; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 10px; opacity: 0; transform: translateY(10px);
  transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.bad { background: var(--danger); }
