:root {
  color-scheme: light;
  --ink: #122238;
  --muted: #60758e;
  --paper: #f4f8fc;
  --panel: #ffffff;
  --line: #d9e3ed;
  --blue: #1d5fa7;
  --blue-soft: #e8f1fb;
  --cobalt: #163c70;
  --red: #c94c4c;
  --green: #3b8c68;
  --radius: 4px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { width: min(100%, 900px); min-height: 100vh; margin: 0 auto; padding: 30px 24px 84px; background: var(--paper); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--cobalt); }
.brand-mark, .section-kicker { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--cobalt); font-size: clamp(30px, 6vw, 48px); line-height: 1; letter-spacing: -.045em; text-transform: capitalize; }
h2 { margin-bottom: 0; color: var(--cobalt); font-size: clamp(22px, 4vw, 30px); letter-spacing: -.035em; }
h3 { margin-bottom: 5px; font-size: 17px; letter-spacing: -.015em; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #9db5ce; border-radius: 4px; color: var(--blue); font-size: 21px; }
.icon-button:hover, .icon-button:focus-visible { background: var(--blue-soft); outline: 3px solid #b4d2ef; }
.week-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 22px 0 30px; border-bottom: 1px solid var(--line); }
.day-tab { position: relative; display: flex; min-height: 64px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.day-tab strong { color: var(--ink); font-size: 20px; letter-spacing: -.05em; }
.day-tab:hover, .day-tab:focus-visible { background: var(--blue-soft); outline: none; }.day-tab.is-active { background: transparent; color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }.day-tab.is-active strong { color: var(--cobalt); }.day-tab i { position: absolute; top: 7px; right: 8px; color: var(--blue); font-size: 10px; font-style: normal; }
.month-panel { padding: 0 0 22px; border-bottom: 1px solid var(--line); background: transparent; }
.section-heading, .day-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.month-range, .event-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }.month-weekdays { margin-bottom: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; }.month-weekdays span { padding: 0 9px 7px; }
.month-cell { position: relative; display: flex; min-height: 72px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 9px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--panel); }
.month-cell:nth-child(7n) { border-right: 0; }.month-cell:hover, .month-cell:focus-visible { background: var(--blue-soft); outline: none; }
.month-cell strong { font-size: 15px; }
.month-cell.is-outside { color: #a9b9c9; background: #f7fafd; }.month-cell.is-selected { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }.month-event-count { position: absolute; top: 8px; right: 8px; color: var(--blue); font-size: 11px; font-weight: 800; }.month-status { width: 7px; height: 7px; border-radius: 1px; background: #c8d5e2; }
.month-status.status-planned { background: var(--blue); }.month-status.status-live { background: var(--red); }.month-status.status-done { background: var(--green); }.month-status.status-cancelled { background: #9caabd; }
.day-heading { margin: 30px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--cobalt); }
.event-list { display: grid; gap: 9px; }
.event-strip { display: grid; grid-template-columns: 75px 1fr 9px; gap: 16px; align-items: start; min-height: 96px; padding: 17px 0; border-bottom: 1px solid var(--line); background: transparent; }
.event-strip.status-live { border-color: #e9b5b5; }.event-strip.status-done { border-color: #b9d9c9; }.event-strip.status-cancelled { border-color: #c6d0dc; opacity: .65; }
.event-time { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }.event-time strong { color: var(--cobalt); font-size: 22px; letter-spacing: -.06em; }.event-time span { font-size: 12px; }
.event-copy p { margin: 0; color: var(--muted); font-size: 13px; }.event-copy .event-description { margin-top: 7px; line-height: 1.45; }.status-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--blue); }
.status-live .status-dot { background: var(--red); }.status-done .status-dot { background: var(--green); }.status-cancelled .status-dot { background: #9caabd; }
.empty-state { padding: 46px 18px; border: 1px dashed #aec2d6; text-align: center; }.empty-dot { display: block; width: 9px; height: 9px; margin: 0 auto 15px; border-radius: 1px; background: var(--blue); }.empty-state h3 { margin-bottom: 7px; }.empty-state p { margin-bottom: 0; color: var(--muted); }
.bottom-bar { position: fixed; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 12px; width: min(100%, 900px); margin: auto; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }.bottom-bar a { color: var(--blue); font-weight: 800; }.live-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 1px; background: var(--green); }
.auth-panel, .admin-content { padding: 24px 0; }.auth-panel { max-width: 480px; margin: 20px auto; }.auth-panel p:not(.form-error) { color: var(--muted); line-height: 1.5; }.event-form { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; } label.full { grid-column: 1 / -1; } input, select, textarea { width: 100%; border: 1px solid #b9cce0; border-radius: 8px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; } input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #b4d2ef; } textarea { resize: vertical; } button { min-height: 46px; margin-top: 20px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; } button:hover, button:focus-visible { background: var(--cobalt); outline: 3px solid #b4d2ef; }.text-button { min-height: auto; margin: 0; padding: 0; background: none; color: var(--blue); font-size: 12px; }.form-error { padding: 12px 14px; border-radius: 8px; background: #fdecec; color: #9c3030; font-size: 13px; }
@media (max-width: 560px) { .app-shell { padding: 20px 14px 78px; }.month-cell { min-height: 58px; padding: 7px; }.month-cell strong { font-size: 13px; }.month-event-count { top: 5px; right: 5px; }.month-range { display: none; }.event-strip { grid-template-columns: 60px 1fr 9px; gap: 10px; padding: 14px 0; }.event-time strong { font-size: 19px; }.form-grid { grid-template-columns: 1fr; } label.full { grid-column: auto; }.bottom-bar { padding-right: 14px; padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
