* { box-sizing: border-box; }
:root { color-scheme: dark; --bg:#0b1120; --panel:#151e30; --panel2:#1b2740; --text:#edf2f8; --muted:#a8b4c7; --border:#2a3851; --accent:#8b9cf7; }
body { margin:0; background:radial-gradient(ellipse at top,#18243a 0,#0b1120 55%); color:var(--text); font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }
.wrap { width:min(760px,100%); margin:0 auto; padding:24px 16px 48px; }
.narrow { width:min(520px,100%); }
.main-header { padding:18px 4px 20px; }
.eyebrow { color:#b6c4df; text-transform:uppercase; font-size:.75rem; letter-spacing:.12em; }
h1 { margin:.3em 0; font-size:clamp(1.7rem,6vw,2.4rem); line-height:1.15; letter-spacing:-.03em; }
h2 { font-size:1.15rem; margin:0 0 12px; }
.subtitle { color:var(--muted); margin:0; }
.panel,.status-card { border:1px solid var(--border); background:rgba(21,30,48,.94); border-radius:18px; padding:18px; margin:14px 0; box-shadow:0 10px 24px rgba(0,0,0,.12); }
.status-card { text-align:center; padding:24px 18px; transition:background .2s; }
.status-dot { width:13px;height:13px;border-radius:50%; margin:0 auto 10px; background:#8b95a8; box-shadow:0 0 0 6px rgba(139,149,168,.12); }
.status-label { font-weight:800; font-size:clamp(1.5rem,6vw,2.1rem); }
.status-detail { color:var(--muted); margin-top:5px; }
.status-meta { font-size:.86rem;color:var(--muted);margin-top:12px; }
.status-card[data-status="open"] .status-dot { background:#34d399; box-shadow:0 0 0 6px #34d39922; }
.status-card[data-status="probably_open"] .status-dot { background:#facc15; box-shadow:0 0 0 6px #facc1522; }
.status-card[data-status="closed"] .status-dot { background:#fb7185; box-shadow:0 0 0 6px #fb718522; }
.status-card[data-status="probably_closed"] .status-dot { background:#fb923c; box-shadow:0 0 0 6px #fb923c22; }
.status-card[data-status="unknown"] .status-dot { background:#94a3b8; }
.schedule { display:grid; gap:9px; }
.schedule div { display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border); }
.schedule div:last-child { border-bottom:0; }
.schedule strong { text-align:right; font-size:.92rem; }
.muted { color:var(--muted); }
.small { font-size:.84rem; }
form { display:grid; gap:10px; }
label { font-weight:600; }
input[type=password],textarea,select { width:100%; background:#0e1728; border:1px solid var(--border); color:var(--text); border-radius:10px; padding:11px 12px; font:inherit; }
textarea { resize:vertical; }
.status-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:4px 0 8px; }
.choice { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--border); background:#101a2b; border-radius:12px; cursor:pointer; font-weight:600; }
.choice input { margin:0; accent-color:var(--accent); }
.choice.green { border-color:#1f755a; }.choice.red { border-color:#80374a; }.choice.yellow { border-color:#817321; }.choice.orange { border-color:#875328; }
button { border:0; border-radius:11px; padding:12px 15px; background:#7c8df4; color:#0a1020; font:inherit; font-weight:800; cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
button.secondary { background:#27354d;color:var(--text); }
.form-message { min-height:1.2em; color:var(--muted); font-size:.9rem; }
.form-message.error { color:#fca5a5; }.form-message.success { color:#86efac; }
.history { display:grid; gap:10px; }
.report { display:grid; grid-template-columns:12px 1fr; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.report:last-child { border-bottom:0; }
.report-dot { width:10px;height:10px;border-radius:50%;margin-top:6px; }
.report-head { display:flex; flex-wrap:wrap; gap:7px; align-items:center; font-weight:650; }
.report-time { color:var(--muted); font-size:.82rem; }
.report-source { color:var(--muted); font-size:.8rem; }
.report-comment { color:#c6d1e1; font-size:.9rem; margin-top:3px; white-space:pre-wrap; overflow-wrap:anywhere; }
.section-title { display:flex;justify-content:space-between;align-items:baseline;gap:8px; }
footer { text-align:center; color:var(--muted); padding:22px 4px 0; font-size:.9rem; }
a { color:#b8c5ff; }
.back { text-decoration:none; color:var(--muted); display:inline-block; margin-bottom:12px; }
.logout { margin-top:14px; }
.notice { padding:10px 12px;border-radius:10px;margin-bottom:12px; }
.notice.error { background:#4a1f2c;color:#fecdd3; }
@media (max-width:440px) { .wrap { padding:16px 12px 32px; } .panel,.status-card { padding:15px; } .status-options { grid-template-columns:1fr; } .schedule div { align-items:flex-start; } }
