:root { --bg:#0f172a; --card:#111827; --text:#e5e7eb; --muted:#9ca3af; --accent:#3b82f6; --ok:#10b981; --warn:#ef4444; }
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font:14px/1.4 system-ui,Segoe UI,Roboto,Ubuntu}
a{color:var(--accent);text-decoration:none}
.wrap{max-width:980px;margin:24px auto;padding:0 16px}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#0b1220;border-bottom:1px solid #1f2937}
.card{background:var(--card);border:1px solid #1f2937;border-radius:16px;padding:16px;margin:16px 0;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.row{display:flex;gap:8px}.between{justify-content:space-between}.center{align-items:center}
.btn{background:#1f2937;border:1px solid #334155;border-radius:10px;padding:6px 10px;color:var(--text);cursor:pointer}
.btn:hover{background:#273449}
.btn.success{background:var(--ok);border-color:var(--ok);color:#002b1f}
.btn.warn{background:var(--warn);border-color:var(--warn)}
.badge{background:#334155;color:var(--text);padding:2px 8px;border-radius:999px;font-size:12px}
.muted{color:var(--muted)}
.card h2,h3{margin-top:0}
.card label{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.card input, .card select{padding:8px;border-radius:8px;border:1px solid #334155;background:#0b1324;color:var(--text)}
.card .inline{display:inline-block;margin-right:8px}
.alert{background:#1f2937;border-left:4px solid var(--warn);padding:8px 12px;border-radius:8px;margin-bottom:10px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #253048;padding:8px;text-align:left}
.nowrap{white-space:nowrap}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.calendar{display:grid;grid-template-columns:repeat(1,1fr);gap:10px}
@media(min-width:700px){.calendar{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.calendar{grid-template-columns:repeat(4,1fr)}}
.day{border:1px solid #253048;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}
.day.today{outline:2px solid var(--accent)}
.dayhead{display:flex;justify-content:space-between;align-items:center}
.tag{background:#0b1324;border:1px solid #334155;border-radius:999px;padding:4px 10px}
.log{display:flex;flex-direction:column;gap:8px}
.logrow{display:grid;grid-template-columns:1.5fr 1fr 1.5fr 2fr;gap:10px;padding:8px;border:1px solid #253048;border-radius:10px}
.center2{display:flex;align-items:center;justify-content:center;height:10vh}
.center{display:flex;align-items:center;justify-content:center;height:100vh}
.card h2{margin-bottom:10px}
