/* עורף אית״ן | Oref Eitan — כתום · שחור · לבן */
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel2: #1c1c1c;
  --panel3: #262626;
  --line: #2e2e2e;
  --text: #ffffff;
  --muted: #a6a6a6;
  --dim: #6f6f6f;
  --orange: #ff6a00;
  --orange2: #ff8c3a;
  --orange-soft: rgba(255, 106, 0, .14);
  --red: #e0002a;
  --radius: 14px;
  --font: 'Heebo', 'Assistant', 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--orange2); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px 96px; }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ---------- כותרת ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(10, 10, 10, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.logo { width: 38px; height: 38px; flex: none; }
.logo .scan { animation: scan 2.6s ease-in-out infinite; filter: drop-shadow(0 0 3px #fff); }
@keyframes scan { 0%, 100% { transform: translateY(-14px); opacity: .25; } 50% { transform: translateY(14px); opacity: 1; } }
.bname { display: flex; flex-direction: column; line-height: 1.05; }
.bname b { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.bname small { font-size: 10.5px; letter-spacing: 3.2px; color: var(--orange); font-weight: 700; direction: ltr; text-align: right; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.net { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); flex: none; }
.net.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(224, 0, 42, .25); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.demo-tag { font-size: 12px; background: #fff; color: #000; padding: 3px 8px; border-radius: 99px; font-weight: 700; }
.viewonly { font-size: 12px; border: 1px solid var(--orange); color: var(--orange); padding: 3px 10px; border-radius: 99px; font-weight: 700; white-space: nowrap; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--panel3); border-color: #444; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 800; }
.btn.primary:hover { background: var(--orange2); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff5a6e; border-color: #5a1a24; background: transparent; }
.btn.danger:hover { background: #2a0c11; }
.btn.big { padding: 14px 22px; font-size: 18px; border-radius: 12px; }
.btn.wa { background: #25d366; border-color: #25d366; color: #000; font-weight: 800; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { border-color: var(--orange); }

/* ---------- באנר מצב ---------- */
.banner { text-align: center; font-weight: 900; letter-spacing: 2px; padding: 6px 10px; font-size: 14px; display: flex; justify-content: center; gap: 18px; overflow: hidden; white-space: nowrap; }
.banner.drill { background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, #000 18px 36px); color: #000; }
.banner.drill b, .banner.drill span { background: var(--orange); padding: 0 10px; border-radius: 4px; }
.banner.drill span { background: #000; color: var(--orange); }
.banner.real { background: var(--red); color: #fff; animation: realpulse 2s ease-in-out infinite; }
@keyframes realpulse { 50% { background: #9e001e; } }
.banner.closed { background: #2a2a2a; color: var(--muted); letter-spacing: 0; font-weight: 600; }

/* ---------- דף הבית ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 0 18px; flex-wrap: wrap; }
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.sec { font-size: 15px; color: var(--muted); font-weight: 700; margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; }
.sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; overflow: hidden; text-align: right; width: 100%; }
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.card.real::before, .card.drill::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.card.real::before { background: var(--red); }
.card.drill::before { background: repeating-linear-gradient(-45deg, var(--orange) 0 8px, #000 8px 16px); }
.card .ct { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.card .cs { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card .cm { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.card .cm b { color: var(--text); }
.card .bar { margin-top: 10px; }
.tag { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tag.real { background: var(--red); color: #fff; }
.tag.drill { background: var(--orange); color: #000; }
.tag.closed { background: #333; color: var(--muted); }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- רשימה ---------- */
.lhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0 12px; flex-wrap: wrap; }
.lhead h1 { margin: 0; font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: -.5px; line-height: 1.15; }
.lmeta { color: var(--muted); font-size: 14px; margin-top: 4px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.lmeta b { color: var(--text); font-weight: 600; }
.clock { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; font-weight: 800; color: var(--orange); }
.lactions { display: flex; gap: 8px; flex-wrap: wrap; }
.bigclock { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; text-align: center; }
.bigclock small { display: block; color: var(--muted); font-size: 11px; }
.bigclock .clock { font-size: 24px; }

.broadcast { display: flex; gap: 8px; align-items: center; background: var(--orange-soft); border: 1px solid rgba(255, 106, 0, .45); border-radius: 12px; padding: 8px; margin-bottom: 14px; }
.broadcast .bl { font-weight: 800; color: var(--orange); padding: 0 6px; white-space: nowrap; font-size: 14px; }
.broadcast input { flex: 1; min-width: 0; }
.bcnow { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.bcnow b { color: var(--text); }
.bcmsg { background: var(--orange); color: #000; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 700; font-size: 17px; }
.bcmsg small { display: block; font-weight: 600; font-size: 12px; opacity: .75; margin-bottom: 2px; }

.progress { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 10px; }
.ptext { color: var(--muted); font-size: 15px; }
.ptext b { color: var(--text); font-size: 17px; }
.ptext b.o { color: var(--orange); }
.pct { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--panel3); }
.bar i { display: block; height: 100%; transition: width .4s; }
.bar.empty { opacity: .6; }
.tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 9px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; overflow: hidden; transition: border-color .15s; }
.tile::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--c); }
.tile .n { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c); }
.tile.big .n { color: var(--text); }
.tile:nth-child(2) .n { color: var(--orange); }
.tile .l { font-size: 12px; color: var(--muted); line-height: 1.2; }
.tile:hover { border-color: #555; }
.tile.on { border-color: var(--c); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--c); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--text); border-color: var(--orange); }
.tab .cnt { background: var(--panel3); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-inline-start: 4px; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1; min-width: 180px; }
.input, .toolbar input, .toolbar select, .broadcast input, .f input, .f select, .f textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; width: 100%; }
.toolbar select { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--orange) !important; box-shadow: 0 0 0 3px var(--orange-soft); }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #000; font-weight: 700; border-radius: 99px; padding: 4px 6px 4px 12px; font-size: 13px; border: 0; cursor: pointer; }
.fchip span { background: #000; color: var(--orange); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

.st { display: inline-flex; align-items: center; background: var(--c); color: var(--f); border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 800; white-space: nowrap; border: 0; line-height: 1.4; }
.stbtnq { cursor: pointer; }
.stbtnq:hover { filter: brightness(1.12); }

.people { display: flex; flex-direction: column; gap: 6px; }
.prow { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; }
.prow.click { cursor: pointer; }
.prow.click:hover { background: var(--panel2); }
.prow.urgent { box-shadow: inset 0 0 0 1px var(--orange); }
.pname { font-weight: 800; font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.age { color: var(--muted); font-weight: 500; font-size: 13px; }
.urg { background: var(--orange); color: #000; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 6px; }
.ploc { color: var(--muted); font-size: 14px; }
.ploc .where { color: #ddd; }
.phosp { color: #38bdf8; font-size: 14px; font-weight: 600; }
.pnote { font-size: 13.5px; color: #cfcfcf; margin-top: 2px; white-space: pre-wrap; }
.pnote.hq { color: var(--orange2); }
.pside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.tel { color: var(--text); font-weight: 600; direction: ltr; text-decoration: none; border: 1px solid var(--line); padding: 2px 8px; border-radius: 8px; font-size: 13px; }
.groupH { font-size: 13px; font-weight: 800; color: var(--muted); margin: 12px 0 2px; display: flex; align-items: center; gap: 8px; }
.groupH i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- מבט מבנה ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.bldgs { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.bldg { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 240px; flex: 0 1 auto; max-width: 100%; }
.bhead { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.bhead span { color: var(--muted); }
.roof { height: 6px; background: repeating-linear-gradient(-45deg, var(--orange) 0 6px, #000 6px 12px); border-radius: 4px 4px 0 0; }
.ground { height: 4px; background: #555; border-radius: 0 0 4px 4px; }
.frow { display: flex; gap: 6px; align-items: stretch; border-inline: 2px solid #333; padding: 4px 6px; border-bottom: 1px dashed #2a2a2a; }
.flabel { width: 62px; flex: none; font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.cells { display: flex; gap: 6px; flex-wrap: wrap; }
.cell { min-width: 58px; background: color-mix(in srgb, var(--c) 18%, #111); border: 1px solid color-mix(in srgb, var(--c) 70%, #000); border-radius: 8px; padding: 5px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cell:hover { filter: brightness(1.25); }
.cell.done { opacity: .62; }
.cell .apt { font-weight: 800; font-size: 13px; }
.cell .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 64px; }
.cell .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.hint { color: var(--dim); font-size: 13px; }

/* ---------- יומן ---------- */
.logadd { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.logadd input[type=text] { flex: 1; min-width: 200px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #1f1f1f; font-size: 14.5px; }
.log time { font-variant-numeric: tabular-nums; color: var(--orange); font-weight: 700; direction: ltr; text-align: right; font-size: 13.5px; }
.log time small { display: block; color: var(--dim); font-weight: 500; font-size: 11px; }
.log em { font-style: normal; font-size: 11px; background: #333; padding: 1px 6px; border-radius: 5px; color: var(--muted); }
.log em.bc { background: var(--orange); color: #000; }
.log .k-sys span { color: var(--muted); }

/* ---------- חלונות ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid #333; border-top: 4px solid var(--orange); border-radius: 16px; width: 100%; max-width: 560px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.wide { max-width: 760px; }
.modal h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.modal p.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); font-weight: 600; grid-column: span 6; }
.f.s2 { grid-column: span 2; }
.f.s3 { grid-column: span 3; }
.f textarea { min-height: 64px; resize: vertical; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; grid-column: span 6; }
.chk input { width: 18px; height: 18px; accent-color: var(--orange); }
.stgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stbtn { border: 2px solid color-mix(in srgb, var(--c) 55%, #000); background: color-mix(in srgb, var(--c) 12%, #111); color: var(--text); border-radius: 10px; padding: 10px 4px; cursor: pointer; font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.stbtn.on { background: var(--c); color: var(--f); border-color: var(--c); }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 800; }
.seg button.on.drill { border-color: var(--orange); background: var(--orange); color: #000; }
.seg button.on.real { border-color: var(--red); background: var(--red); color: #fff; }
.mactions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 18px; flex-wrap: wrap; }
.mactions .sp { flex: 1; }
.err { color: #ff5a6e; font-size: 14px; min-height: 1em; }

.sharelink { display: flex; gap: 8px; }
.sharelink input { flex: 1; min-width: 0; direction: ltr; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.sharebtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.qrbox { display: flex; gap: 18px; align-items: center; background: #fff; color: #000; border-radius: 14px; padding: 16px; margin-top: 8px; flex-wrap: wrap; }
.qrbox #qr { width: 196px; height: 196px; flex: none; }
.qrbox #qr img, .qrbox #qr canvas { width: 196px !important; height: 196px !important; }
.qrcap { flex: 1; min-width: 160px; font-size: 15px; }
.qrcap b { font-size: 19px; display: block; margin: 4px 0; }
.qrcap .qb { color: var(--orange); font-weight: 900; letter-spacing: 2px; font-size: 12px; }
.warn { background: #fff; color: #000; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; border-inline-start: 6px solid var(--orange); }

.menu { position: absolute; z-index: 200; background: var(--panel2); border: 1px solid #3a3a3a; border-radius: 12px; padding: 6px; min-width: 210px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); display: flex; flex-direction: column; }
.menu button { background: none; border: 0; text-align: right; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.menu button:hover { background: var(--panel3); }
.menu button.danger { color: #ff5a6e; }
.menu hr { border: 0; border-top: 1px solid #333; margin: 4px 0; width: 100%; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { background: #fff; color: #000; font-weight: 700; padding: 10px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fade .2s; max-width: 100%; }
.toast.err { background: var(--red); color: #fff; }

.fab { position: fixed; bottom: 18px; left: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #000; border: 0; font-size: 34px; font-weight: 400; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 106, 0, .4); display: none; }

/* ---------- התחברות ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(800px 400px at 50% 0%, rgba(255, 106, 0, .18), transparent 70%); }
.authbox { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.authbox .logo { width: 76px; height: 76px; margin-bottom: 8px; }
.authbox h1 { margin: 0; font-size: 34px; font-weight: 900; }
.authbox .en { color: var(--orange); letter-spacing: 5px; font-weight: 800; font-size: 13px; margin-bottom: 18px; }
.authbox form { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.authbox input { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: none; }

.foot { color: var(--dim); font-size: 12px; text-align: center; margin-top: 40px; }

/* ---------- מובייל ---------- */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tile { padding: 8px 4px; }
  .tile .n { font-size: 21px; }
  .tile .l { font-size: 10.5px; }
  .tile.big { grid-column: span 2; }
  .prow { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px; }
  .pst { grid-column: 1 / -1; display: flex; }
  .pside { grid-row: 2; grid-column: 2; }
  .pmain { grid-row: 2; }
  .form .f.s2, .form .f.s3 { grid-column: span 3; }
  .stgrid { grid-template-columns: repeat(2, 1fr); }
  .lactions .btn .lbl { display: none; }
  .fab { display: block; }
  .addbtn { display: none; }
  .bname b { font-size: 18px; }
  .demo-tag { display: none; }
  .modal { padding: 18px 16px; }
  .log li { grid-template-columns: 70px 1fr; gap: 8px; }
  .bldg { min-width: 0; width: 100%; }
  .flabel { width: 48px; }
  .hero { padding-top: 22px; }
  .hero .btn.big { width: 100%; }
  .broadcast { flex-wrap: wrap; }
  .broadcast .bl { width: 100%; }
}

@media print {
  .top, .fab, .lactions, .broadcast, .tabs, .toolbar, .tiles { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =================== גרסה 2 =================== */
.netpill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.netpill.bad { background: var(--red); color: #fff; animation: blink 1.2s infinite; }
.netpill.sync { background: #333; color: var(--orange); }
.viewonly.lead { border-color: #fff; color: #fff; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pulse { animation: pulseo 1.6s infinite; }
@keyframes pulseo { 50% { box-shadow: 0 0 0 6px var(--orange-soft); } }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.iconbtn.sm { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.btn.evac { background: var(--red); border-color: var(--red); color: #fff; font-weight: 800; }
.btn.warnbtn { border-color: #ffc400; color: #ffc400; }
.linkbtn { background: none; border: 0; color: var(--orange2); text-decoration: underline; cursor: pointer; padding: 0; font-weight: 700; }
.toast { display: flex; gap: 12px; align-items: center; }
.toast .undo { background: #000; color: var(--orange); border: 0; border-radius: 8px; padding: 4px 12px; font-weight: 800; cursor: pointer; }
.menu .mh { font-size: 12px; color: var(--muted); padding: 6px 10px 2px; font-weight: 700; }

/* ניווט והודעות */
.navcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.navcard div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.navcard div:first-child b:first-child { color: var(--text); font-size: 15px; }
.navbtns { display: flex; gap: 8px; }
.broadcast select { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 8px; }
.bcnow.lvl-important b { color: var(--orange); }
.bcnow.lvl-emergency { color: #ff8b9a; }
.bcmsg.lvl-important { background: #fff; color: #000; border-inline-start: 8px solid var(--orange); }
.bcmsg.lvl-emergency { background: var(--red); color: #fff; animation: realpulse 2s infinite; }
#emerg { position: fixed; inset: 0; z-index: 500; background: var(--red); display: flex; align-items: center; justify-content: center; padding: 24px; animation: realpulse 1s infinite; }
.emerg-in { text-align: center; color: #fff; max-width: 560px; }
.emerg-t { font-size: 34px; font-weight: 900; }
.emerg-m { font-size: 26px; font-weight: 800; margin: 18px 0; line-height: 1.3; }
.emerg-s { opacity: .8; margin-bottom: 24px; }

/* אישורים ממתינים */
.pending { border: 2px solid #ffc400; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; background: rgba(255, 196, 0, .07); }
.pending .ph { font-weight: 800; color: #ffc400; margin-bottom: 6px; }
.prow2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #2a2a2a; flex-wrap: wrap; font-size: 14px; }
.prow2 span:last-child { display: flex; gap: 6px; }

/* כרטיס אדם */
.pthumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid #444; cursor: zoom-in; }
.secchip { font-size: 11px; font-weight: 800; border: 1px solid var(--sc); color: var(--sc); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.pendchip { font-size: 11px; font-weight: 800; background: #ffc400; color: #000; border-radius: 6px; padding: 0 6px; }
.repchip { font-size: 11px; font-weight: 700; background: #333; color: var(--muted); border-radius: 6px; padding: 0 6px; }
.binwrap { margin-top: 18px; }

/* מבט מבנה */
.cell { border-bottom: 3px solid var(--s, transparent); position: relative; }
.cell.vacant { background: #151515; border-color: #2e2e2e; border-bottom-color: var(--s); }
.cell.vacant .apt { color: var(--muted); }
.cell.contra { box-shadow: 0 0 0 2px #ffc400; }
.scico { font-style: normal; font-size: 11px; margin-inline-start: 3px; }
.scico.contra, .contra-l { color: #000; background: #ffc400; border-radius: 50%; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-style: normal; font-size: 10px; }
.legend em { font-style: normal; font-weight: 900; }
.frow[style*="--sc"] { border-inline-start-color: var(--sc); }
.fsec { display: block; color: var(--sc); font-size: 10px; font-weight: 800; }
.flabel { flex-direction: column; align-items: flex-start; justify-content: center; }

/* צוותים */
.insidebox { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.insidebox .n { font-size: 40px; font-weight: 900; color: var(--muted); line-height: 1; }
.insidebox.on .n { color: var(--orange); }
.insidebox small { display: block; color: var(--muted); font-size: 12px; }
.secrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.secbig { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--sc); border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: right; display: flex; flex-direction: column; min-width: 140px; }
.secbig b { font-size: 17px; color: var(--sc); }
.secbig small { color: var(--muted); font-size: 12px; }
.secbig span { font-size: 13px; font-weight: 700; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 12px; }
.tcard { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--tc); border-radius: 14px; padding: 12px; }
.tcard .th { display: flex; justify-content: space-between; align-items: flex-start; }
.tcard .th b { font-size: 18px; }
.tcard .th small { display: block; color: var(--muted); font-size: 13px; }
.tmeta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 6px 0; align-items: center; }
.ttask { font-size: 14px; background: var(--panel2); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.tbtns { display: flex; gap: 6px; margin-bottom: 8px; }
.rlist { display: flex; flex-direction: column; gap: 5px; }
.rrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel2); border-radius: 10px; padding: 6px 10px; border-inline-start: 4px solid #444; }
.rrow.exp-ok { border-color: #22c55e; }
.rrow.exp-warn { border-color: var(--orange); background: rgba(255, 106, 0, .1); }
.rrow.exp-max { border-color: var(--red); background: rgba(224, 0, 42, .18); animation: blink 1.4s infinite; }
.rn { display: flex; flex-direction: column; min-width: 0; }
.rn small { color: var(--muted); font-size: 12px; }
.rn small a { color: var(--muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.rrow { flex-wrap: wrap; }
.toolbar select, .modal select, .modal input, .modal textarea { max-width: 100%; min-width: 0; }
.modal .toolbar select { flex: 1; }
.rgrid, .pgrid, .phgrid { grid-template-columns: repeat(auto-fill, minmax(min(var(--gmin, 160px), 100%), 1fr)) !important; }
.rgrid { --gmin: 320px; } .pgrid { --gmin: 200px; }
.rcard, .pcardp, figure.ph, .tcard, .bldg { min-width: 0; }
html, body { max-width: 100%; }
.rs { display: flex; align-items: center; gap: 6px; flex: none; }
.inpill { font-size: 12px; background: #000; color: var(--orange); border: 1px solid var(--orange); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.inpill .clock { font-size: 12px; }
.outpill { font-size: 12px; color: var(--muted); }
.evaccount { text-align: center; padding: 18px; border-radius: 14px; background: rgba(224, 0, 42, .2); margin: 10px 0; font-size: 18px; font-weight: 700; }
.evaccount b { display: block; font-size: 64px; line-height: 1; color: #ff5a6e; }
.evaccount.ok { background: rgba(34, 197, 94, .15); }
.evaccount.ok b { color: #22c55e; }

/* מוקד */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rcard.new { border-color: var(--orange); }
.rh { display: flex; justify-content: space-between; gap: 8px; }
.rh b { font-size: 16px; }
.rh span { font-size: 12px; }
.rb { font-size: 14px; color: #ddd; white-space: pre-wrap; }
.rm { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.rm b { color: var(--text); }
.relchip { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 0 6px; background: #333; }
.relchip.r-saw { background: #22c55e; color: #000; }
.relchip.r-guess { background: #555; }
.rf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #2a2a2a; padding-top: 8px; font-size: 13px; }
.rbtns { display: flex; gap: 6px; }
.linked { display: inline-flex; gap: 6px; align-items: center; }
.cblist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cbrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(255, 106, 0, .1); border: 1px solid rgba(255, 106, 0, .5); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.cbrow span:last-child { display: flex; gap: 6px; }
.lnkopt { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--panel2); margin-bottom: 4px; font-size: 14px; color: var(--text); cursor: pointer; flex-wrap: wrap; }

/* תוכניות ותמונות */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pcardp { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.pcardp:hover { border-color: var(--orange); }
.pcardp img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; background: #fff; }
.pcardp small { color: var(--muted); }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
figure.ph { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
figure.ph img { width: 100%; height: 140px; object-fit: cover; display: block; cursor: zoom-in; }
figure.ph figcaption { padding: 6px 8px; font-size: 13px; }
figure.ph small { display: block; color: var(--muted); font-size: 11px; }
.phdel { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .7); }
.planwrap { position: relative; display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; background: #fff; }
.planwrap img { display: block; max-width: 100%; max-height: 70vh; }
.planwrap.placing img { cursor: crosshair; outline: 3px dashed var(--orange); outline-offset: -3px; }
.pin { position: absolute; width: 22px; height: 22px; transform: translate(-50%, -100%); background: none; border: 0; padding: 0; cursor: pointer; }
.pin.mk { transform: translate(-50%, -50%); }
.pin span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); }
.pin i { width: 20px; height: 20px; border-radius: 50% 50% 0 50%; transform: rotate(45deg); background: var(--c); border: 2px solid #000; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: #000; }
.pin.mk i { transform: none; border-radius: 6px; font-weight: 900; }
.pin span { background: rgba(0, 0, 0, .85); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-top: 3px; white-space: nowrap; }
.lightbox { text-align: center; }
.lightbox img { max-width: 100%; max-height: 75vh; border-radius: 10px; }
.photorow { display: flex; align-items: center; gap: 8px; }
.photorow img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }

/* חלונות */
.modal.xwide { max-width: 1100px; }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mtabs { display: flex; gap: 4px; background: var(--panel2); border-radius: 10px; padding: 3px; }
.mtabs button { background: none; border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 700; }
.mtabs button.on { background: var(--orange); color: #000; }
.simwarn { background: rgba(255, 196, 0, .12); border: 1px solid #ffc400; border-radius: 10px; padding: 8px 10px; color: #ffd75e; font-size: 13.5px; }
.fh { grid-column: span 6; margin: 14px 0 0; font-size: 15px; color: var(--orange); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid #262626; align-items: center; font-size: 14px; }
.hist time { color: var(--orange); font-size: 12.5px; }
.hist li div span { display: block; }
.hist small { color: var(--muted); display: block; font-size: 12px; }
.dlist { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.dpair { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 8px; align-items: stretch; background: var(--panel2); border-radius: 12px; padding: 8px; }
.dpair [data-notdup] { grid-column: 2 / -1; }
.dscore { font-size: 18px; font-weight: 900; color: #ffc400; display: flex; align-items: center; justify-content: center; }
.dside { background: var(--panel); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.dside small { color: var(--muted); }
.dside .btn { margin-top: 6px; }
.lklist { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.lkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel2); border-radius: 10px; padding: 8px 12px; flex-wrap: wrap; }
.lkrow small { display: block; color: var(--muted); font-size: 12.5px; }
.lkbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swb { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.swb.on { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }
.rulerow { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.rulerow input { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.srt { width: 100%; min-height: 320px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14.5px; line-height: 1.6; resize: vertical; }
.vwrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.vlist { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.vpt { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; text-align: right; font-weight: 700; }
.vpt small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.vpt.on { border-color: var(--orange); background: var(--orange-soft); }
.vprev { display: flex; flex-direction: column; gap: 10px; }
.aarkpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.aarkpi div { background: var(--panel2); border-radius: 12px; padding: 10px; text-align: center; }
.aarkpi b { font-size: 24px; color: var(--orange); display: block; font-variant-numeric: tabular-nums; }
.aarkpi small { color: var(--muted); font-size: 12px; }
.aarctl { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.aarctl input[type=range] { flex: 1; accent-color: var(--orange); }
.aarctl select { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.aart { margin-bottom: 6px; color: var(--muted); }
.aart b { color: var(--orange); font-size: 20px; }
.tiles.small { grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 10px 0 0; }
.tiles.small .tile { cursor: default; }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid #222; }
.tbl tr.ok td:first-child { border-inline-start: 3px solid #22c55e; }
.cronbox { background: var(--panel2); border-radius: 12px; padding: 12px; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.cronbox code { display: block; background: #000; color: var(--orange); padding: 8px 10px; border-radius: 8px; margin: 6px 0 10px; overflow-x: auto; font-size: 12.5px; white-space: nowrap; }

/* מדריך */
.injlist { display: flex; flex-direction: column; gap: 6px; }
.inj { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.inj.due { border-color: var(--orange); background: rgba(255, 106, 0, .1); }
.inj.rel { opacity: .55; }
.inj .it { font-weight: 900; color: var(--orange); font-variant-numeric: tabular-nums; }
.inj .ib { display: flex; flex-direction: column; }
.inj .ib small { color: var(--muted); font-size: 13px; }
.inj .note { color: #ffc400 !important; }
.lby { color: var(--dim); }

/* טופס דיווח ציבורי */
.repbox { max-width: 460px; }
.repbox textarea, .repbox select { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: none; min-height: 44px; }
.repbox textarea { min-height: 90px; resize: vertical; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.row3 input { min-width: 0; }

/* מסך מלחמה */
.tvbody { overflow: hidden; }
#tv { height: 100vh; display: flex; flex-direction: column; padding: 14px 18px; gap: 12px; }
.tvload { margin: auto; font-size: 28px; color: var(--muted); }
.tvhead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-radius: 16px; background: var(--panel); border-bottom: 6px solid var(--orange); }
.tvhead.real { border-color: var(--red); }
.tvbrand b { font-size: 30px; font-weight: 900; display: block; line-height: 1; }
.tvbrand small { color: var(--orange); letter-spacing: 4px; font-weight: 800; font-size: 13px; }
.tvname { font-size: 34px; font-weight: 900; text-align: center; flex: 1; line-height: 1.1; }
.tvname small { display: block; font-size: 17px; color: var(--muted); font-weight: 600; }
.tvclock { text-align: center; font-variant-numeric: tabular-nums; }
.tvclock span { font-size: 52px; font-weight: 900; color: var(--orange); display: block; line-height: 1; direction: ltr; }
.tvclock small { color: var(--muted); font-size: 15px; display: block; }
.tvbc { background: var(--orange); color: #000; font-size: 26px; font-weight: 800; padding: 10px 18px; border-radius: 14px; }
.tvbc.lvl-emergency { background: var(--red); color: #fff; animation: realpulse 1.2s infinite; }
.tvbc small { font-size: 15px; opacity: .7; }
.tvgrid { flex: 1; display: grid; grid-template-columns: 1.1fr 1.3fr 1.2fr; gap: 14px; min-height: 0; }
.tvstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.tvbig { grid-column: span 1; background: var(--panel); border-radius: 16px; padding: 14px; text-align: center; border-bottom: 5px solid var(--orange); }
.tvbig.w { border-color: #22c55e; }
.tvbig b { font-size: 72px; font-weight: 900; line-height: 1; display: block; }
.tvbig b small { font-size: 30px; color: var(--muted); }
.tvbig span { font-size: 20px; color: var(--muted); }
.tvs { background: var(--panel); border-radius: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; border-inline-start: 6px solid var(--c); }
.tvs b { font-size: 34px; font-weight: 900; color: var(--c); }
.tvs span { font-size: 16px; color: #ddd; }
.tvcol { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.tvcol h2 { margin: 0; font-size: 20px; color: var(--orange); }
.tvlist { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.tvp { background: var(--panel); border-radius: 12px; padding: 8px 14px; border-inline-start: 8px solid var(--c); display: grid; grid-template-columns: 1fr auto; }
.tvp b { font-size: 22px; }
.tvp span { font-weight: 800; color: var(--c); font-size: 17px; }
.tvp small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.tvr { background: var(--panel); border-radius: 12px; padding: 8px 14px; display: grid; grid-template-columns: 1fr auto; border-inline-start: 8px solid #22c55e; }
.tvr.warn { border-color: var(--orange); }
.tvr.max { border-color: var(--red); background: rgba(224, 0, 42, .25); animation: blink 1.4s infinite; }
.tvr b { font-size: 20px; }
.tvr span { color: var(--muted); grid-row: 2; }
.tvr em { font-style: normal; font-size: 24px; font-weight: 800; grid-row: span 2; align-self: center; direction: ltr; font-variant-numeric: tabular-nums; }
.tvempty { color: var(--muted); font-size: 18px; padding: 10px; }
.tvb { display: flex; flex-direction: column; gap: 8px; }
.tvb > div { background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.tvb small { color: var(--muted); }
.tvlog { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; background: var(--panel); border-radius: 12px; padding: 10px 14px; font-size: 17px; }
.tvlog time { color: var(--orange); font-weight: 800; margin-inline-end: 6px; }
.tvfoot { color: var(--dim); font-size: 13px; text-align: center; }
#tvtoast { position: fixed; top: 20px; left: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.tvpop { background: #fff; color: #000; font-size: 26px; font-weight: 900; padding: 14px 22px; border-radius: 14px; border-inline-start: 12px solid var(--c); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: fade .3s; }

@media (max-width: 640px) {
  .tgrid, .rgrid { grid-template-columns: 1fr; }
  .vwrap { grid-template-columns: 1fr; }
  .vlist { flex-direction: row; overflow-x: auto; max-height: none; }
  .dpair { grid-template-columns: 1fr; }
  .dscore { justify-content: flex-start; }
  .hist li { grid-template-columns: 1fr; }
  .inj { grid-template-columns: 48px 1fr; }
  .inj > span:last-child { grid-column: 1 / -1; }
  .tiles.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-btns { width: 100%; }
  .navbtns { width: 100%; }
  .navbtns .btn { flex: 1; }
}
@media (max-width: 1100px) { .tvgrid { grid-template-columns: 1fr 1fr; } .tvstats { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); } }
.tbl tr.secbad td { color: #ff8b9a; }
