:root { --bg:#f3f8fc; --fg:#17324a; --muted:#5d7488; --card:#fff; --accent:#0b7fc7; --line:#d9e6f0; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f1b26; --fg:#e4eef6; --muted:#8fa6b8; --card:#172634; --accent:#4fb3f0; --line:#25384a; } }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--fg); }
header { display:flex; gap:12px; align-items:baseline; padding:14px 20px; background:var(--accent); color:#fff; }
.logo { font-weight:700; font-size:18px; } .sub { opacity:.85; }
main { max-width:1100px; margin:0 auto; padding:20px 16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.muted { color:var(--muted); }
footer { text-align:center; color:var(--muted); font-size:13px; padding:24px; }
header nav { display:flex; gap:16px; margin-left:12px; } header nav a { color:#fff; text-decoration:none; opacity:.9; } header nav a:hover { opacity:1; text-decoration:underline; }
header .right { margin-left:auto; } header form { margin:0; }
.link { background:none; border:0; color:#fff; text-decoration:underline; cursor:pointer; font:inherit; }
h1 { margin:0 0 16px; font-size:24px; } h2 { margin:0 0 8px; font-size:17px; color:var(--accent); }
.grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); }
.big { font-size:40px; font-weight:700; margin:0; }
.qr { display:block; background:#fff; padding:8px; border-radius:8px; max-width:100%; height:auto; }
.narrow { max-width:420px; margin:40px auto; text-align:center; } .center { text-align:center; }
.code { font:700 44px/1.2 ui-monospace, Consolas, monospace; letter-spacing:8px; margin:16px 0; }
.btn { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 18px; font:inherit; cursor:pointer; }
a { color:var(--accent); word-break:break-all; }
.table-wrap { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-weight:600; font-size:14px; } tr:last-child td { border-bottom:0; }
.note { background:var(--card); border-left:4px solid var(--accent); padding:10px 14px; border-radius:6px; }
.note.ok { border-color:#2e9d57; } .note.bad, .bad { color:#c0392b; } .note.bad { border-color:#c0392b; }
.card + .card, .card + .grid, .grid + .card, .table-wrap + .card { margin-top:16px; }
.fields { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; margin:8px 0; }
.fields label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:var(--muted); }
.fields label.wide { flex:1 1 320px; }
input, select { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--fg); max-width:100%; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:8px 0; } .row select { max-width:100%; }
.slots { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; } .slot { display:flex; gap:4px; } .slot input { width:70px; }
details.add { margin-top:12px; } details.add summary { cursor:pointer; color:var(--accent); font-weight:600; }
ul.plain { list-style:none; padding:0; margin:0; } ul.plain li { padding:6px 0; border-bottom:1px solid var(--line); } ul.plain li:last-child { border-bottom:0; }
form.inline { display:inline; margin-left:6px; }
.small { font-size:13px; } button.small { padding:4px 10px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--fg); cursor:pointer; }
button.danger { color:#c0392b; border-color:#c0392b; margin-top:16px; }
.days { display:grid; gap:16px; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); }
.pill { display:inline-block; font-size:12px; padding:1px 8px; border-radius:10px; background:var(--line); margin-left:6px; } .pill.full { background:#f2c94c; color:#333; }
li.cancelled { opacity:.6; text-decoration:line-through; }
@media (max-width:600px) { header { flex-wrap:wrap; } header nav { margin-left:0; gap:12px; } }
.duration { display:inline-flex; gap:6px; align-items:center; } .duration input { width:80px; }
input.time { width:80px; }
details.edit { display:inline-block; margin-left:8px; } details.edit summary { cursor:pointer; color:var(--accent); font-size:14px; }
details.edit[open] { display:block; margin:8px 0 4px; padding:10px; border:1px dashed var(--line); border-radius:8px; }
summary.h2 { cursor:pointer; font-weight:600; font-size:17px; color:var(--accent); }
a.button { display:inline-block; text-decoration:none; padding:4px 10px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--fg); white-space:nowrap; }
a.edit-link { text-decoration:none; margin-left:6px; }
label.check { flex-direction:row !important; align-items:center; gap:8px !important; color:var(--fg) !important; }
button.small.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.marks { margin-left:6px; white-space:nowrap; } .marks form.inline { margin-left:2px; }
h3 { font-size:15px; margin:8px 0 4px; }
textarea { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--fg); width:100%; }
details.thread { border-bottom:1px solid var(--line); padding:8px 0; } details.thread summary { cursor:pointer; }
.chat { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.bubble { max-width:80%; padding:8px 12px; border-radius:10px; background:var(--bg); border:1px solid var(--line); white-space:pre-wrap; }
.bubble.me { align-self:flex-end; background:var(--accent); color:#fff; border-color:var(--accent); } .bubble.me .muted { color:#e6f2fb; }
.support-bar { background:#f2c94c; color:#333; padding:8px 16px; text-align:center; font-size:14px; }
.support-bar button.small { margin-left:8px; }
