:root { color-scheme: light; font-family: "Segoe UI", "Yu Gothic UI", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f4f7fb; }
main { width: min(900px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 42px; }
.hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.eyebrow { margin: 0 0 5px; color: #2563eb; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; color: #102a43; font-size: clamp(25px, 5vw, 36px); }
h2 { margin: 0; color: #193b5a; font-size: 18px; }
.hero p:not(.eyebrow) { margin: 7px 0 0; color: #627d98; }
.connection { padding: 7px 10px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 12px; white-space: nowrap; }
.connection.connected { background: #dcfce7; color: #166534; }
.toolbar, .filters, .form-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.toolbar { margin-bottom: 14px; }
button { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 8px; background: #2563eb; color: white; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #1d4ed8; }
button.secondary { background: #64748b; }
button.secondary:hover { background: #475569; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.summary div, .panel, section:not(.hero) { border: 1px solid #d9e2ec; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(31, 58, 86, .06); }
.summary div { padding: 13px; }
.summary strong { display: block; color: #102a43; font-size: 24px; }
.summary span { color: #627d98; font-size: 12px; }
.filters { margin-bottom: 14px; }
label { display: grid; gap: 4px; color: #334e68; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 8px; border: 1px solid #bcccdc; border-radius: 7px; background: #fff; color: #172033; font: inherit; }
input, select { min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.filters label { min-width: 180px; }
section:not(.hero) { padding: 15px; }
.panel { margin-bottom: 14px; }
.panel form { display: grid; gap: 9px; margin-top: 12px; }
.section-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.link-button { min-height: auto; padding: 0; background: transparent; color: #2563eb; font-size: 12px; }
.link-button:hover { background: transparent; text-decoration: underline; }
.events { display: grid; gap: 9px; margin-top: 12px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 13px; border: 1px solid #e2e8f0; border-radius: 9px; }
.event.done { background: #f0fdf4; }
.event.done .event-title { color: #64748b; text-decoration: line-through; }
.event-check { margin-top: 4px; accent-color: #16a34a; }
.event-date { color: #b45309; font-size: 12px; font-weight: 800; white-space: nowrap; }
.event-title { color: #172033; font-weight: 700; }
.event-course, .event-description { margin-top: 3px; color: #627d98; font-size: 12px; }
.event-link { color: #2563eb; font-size: 12px; word-break: break-all; }
.error { color: #b42318; font-size: 13px; font-weight: 600; }
.message { min-height: 20px; color: #334e68; font-size: 13px; }
.hidden { display: none; }
@media (max-width: 600px) { main { padding-top: 18px; } .hero { display: block; } .connection { display: inline-block; margin-top: 12px; } .summary strong { font-size: 20px; } .event { grid-template-columns: auto 1fr; } .event-date { grid-column: 2; grid-row: 1; } }
