:root {
  --bg: #0b0f19;
  --panel: #121a2b;
  --panel2: #172138;
  --line: #243049;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #14b8a6;
  --accent2: #7dd3fc;
  --warn: #fbbf24;
  --bad: #ef4444;
  --good: #22c55e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 18px; line-height: 1.45; }
main { max-width: 1100px; margin: 0 auto; padding: clamp(14px, 3vw, 32px); display: grid; gap: 22px; }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { margin: 0 0 10px; font-size: 1.3rem; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
p { margin: 0 0 8px; }
a { color: var(--accent2); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub { color: var(--muted); margin-top: 4px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card.item { display: grid; gap: 10px; }
.grid { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.banner { border: 1px solid var(--warn); background: #2a2208; color: #fde68a; padding: 12px 16px; border-radius: 12px; }
.banner.good { border-color: var(--good); background: #0b2a17; color: #bbf7d0; }
.banner.bad { border-color: var(--bad); background: #2a0d0d; color: #fecaca; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 12px; min-height: 48px; padding: 10px 20px; color: #fff; background: #334155; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover:not(:disabled) { filter: brightness(1.15); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.primary { background: var(--accent); }
.danger { background: #b91c1c; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.big { font-size: 1.15rem; min-height: 56px; }
input, textarea, select { font: inherit; width: 100%; background: #0b1324; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
textarea { min-height: 140px; resize: vertical; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 0.95rem; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--text); }
label.check input { width: 22px; height: 22px; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; background: #1e293b; color: var(--accent2); }
.chip.urgent { background: #7f1d1d; color: #fecaca; }
.chip.high { background: #78350f; color: #fde68a; }
.chip.ok { background: #14532d; color: #bbf7d0; }
.chip.warn { background: #78350f; color: #fde68a; }
.chip.bad { background: #7f1d1d; color: #fecaca; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { background: #1e293b; }
.tabs button.on { background: var(--accent); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table-wrap { overflow-x: auto; }
.shots { display: flex; gap: 10px; flex-wrap: wrap; }
.shots img { width: 230px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; background: #fff; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; background: #0f172a; border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px; z-index: 50; max-width: 90vw; }
.toast.bad { border-color: var(--bad); }
.toast.good { border-color: var(--good); }
.login { max-width: 460px; margin: 10vh auto; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.quote { white-space: pre-wrap; background: #0b1324; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 320px; overflow: auto; }
details > summary { cursor: pointer; color: var(--accent2); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 60; display: grid; place-items: center; overflow: auto; padding: 16px; }
.lightbox img { max-width: 100%; border-radius: 8px; background: #fff; }
@media (max-width: 560px) { body { font-size: 17px; } .card { padding: 14px; } }
