:root {
  --bg: #f5f6f8; --card: #fff; --ink: #1c2530; --muted: #667085;
  --line: #d9dee5; --accent: #1f5fae; --accent-soft: #e6f0fb; --ok: #1a7f4b; --ok-soft: #e5f4ec;
  --warn: #b54708; --warn-soft: #fef0e1; --fixed: #8a94a6; --fixed-soft: #eef0f3; --no: #b42318; --no-soft: #fde8e8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Heebo", "Arial", sans-serif; font-size: 18px; line-height: 1.6; }
.top { background: var(--accent); color: #fff; }
.top .in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; }
.top b { font-size: 19px; margin-inline-end: auto; }
.top a { color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 6px; font-size: 16px; }
.top a.on, .top a:hover { background: rgba(255,255,255,.18); }
main { max-width: 1100px; margin: 0 auto; padding: 22px 16px 80px; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.ask { background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin-top: 10px; font-size: 16px; }
.ask::before { content: "שאלה אליך: "; font-weight: 700; color: var(--warn); }
.muted { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 8px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tag.auto { background: var(--ok-soft); color: var(--ok); }
.tag.fixed { background: var(--fixed-soft); color: var(--fixed); }
.tag.data { background: var(--accent-soft); color: var(--accent); }
.tag.judge { background: var(--warn-soft); color: var(--warn); }
.tag.ai { background: #f1e8fd; color: #6b2fb3; }
.tag.no { background: var(--no-soft); color: var(--no); }
table.t { width: 100%; border-collapse: collapse; font-size: 16px; }
table.t th { text-align: start; color: var(--muted); font-weight: 400; font-size: 14px; padding: 6px; border-bottom: 2px solid var(--line); vertical-align: bottom; }
table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap { overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
a.tile { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
a.tile:hover { border-color: var(--accent); }
a.tile h3 { color: var(--accent); }
button { font: inherit; font-size: 16px; padding: 7px 16px; border-radius: 8px; border: 2px solid var(--accent); background: #fff; color: var(--accent); cursor: pointer; font-weight: 700; }
button.primary { background: var(--accent); color: #fff; }
textarea { font: inherit; font-size: 16px; width: 100%; min-height: 60px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 8px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); }

/* comments */
.cmt { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cmt summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; list-style: none; }
.cmt summary::-webkit-details-marker { display: none; }
.cmt summary .n { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; margin-inline-start: 6px; }
.cmt .list { margin: 8px 0; }
.cmt .c { background: var(--bg); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; font-size: 16px; white-space: pre-wrap; }
.cmt .c .who { font-weight: 700; font-size: 13px; color: var(--muted); display: block; }
.cmt .row { display: flex; gap: 8px; align-items: flex-end; }
.cmt .row textarea { min-height: 44px; }
.toast { position: fixed; bottom: 24px; inset-inline: 0; margin: auto; width: fit-content; max-width: 90%; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 8px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 9; }
.toast.show { opacity: 1; }
