:root {
  --empty: #e8665a; --empty-tint: #fff2f0;
  --light: #e79a22; --light-tint: #fff7e8;
  --good: #3c9a67; --good-tint: #edf8f1;
  --busy: #397fc4; --busy-tint: #eef6fd;
  --packed: #8658b6; --packed-tint: #f6f0fb;
  --ink: #1c1c1e; --muted: #6e6e73; --surface: #fff; --background: #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; color: #fff; background: var(--background); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
.app-shell { width: 100%; max-width: 480px; min-height: 100vh; margin: auto; padding: max(18px, env(safe-area-inset-top)) 16px calc(36px + env(safe-area-inset-bottom)); }
.app-header { display: flex; align-items: center; justify-content: space-between; margin: 5px 2px 20px; }
.app-header .eyebrow, .login-heading .eyebrow { color: #a1a1a6; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 1.2px; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.7px; }
.header-add { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: white; background: var(--ink); font-size: 31px; font-weight: 300; box-shadow: 0 4px 12px #0002; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }
.logout-button { min-height: 44px; padding: 0 5px; color: #b0b0b5; background: transparent; border: 0; font-size: 12px; font-weight: 650; }
.summary-card, .weekend-card, .form-card { color: var(--ink); background: var(--surface); border: 1px solid #ffffff1a; border-radius: 18px; box-shadow: 0 3px 14px #0000000a; }
.summary-card { padding: 17px 18px 15px; margin-bottom: 22px; }
.summary-card h2 { margin: 0 0 14px; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.summary-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.status-dots { display: flex; justify-content: space-between; gap: 10px; }
.status-dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0001; }
.weekend-list { display: grid; gap: 16px; }
.weekend-card { position: relative; overflow: hidden; scroll-margin-top: 12px; }
.weekend-accent { height: 5px; background: var(--status); }
.weekend-heading { display: flex; justify-content: space-between; align-items: center; padding: 15px 15px 13px; }
.weekend-heading h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.3px; }
.current-label { color: var(--status); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.status-badge { color: var(--status); background: var(--tint); border-radius: 999px; padding: 7px 9px; font-size: 10px; font-weight: 850; letter-spacing: .65px; }
.empty-run { box-shadow: 0 0 0 2px #e8665a36, 0 4px 16px #e8665a16; }
.empty-run-message { margin: -3px 15px 12px; padding: 8px 10px; color: #b64038; background: var(--empty-tint); border-radius: 9px; font-size: 12px; font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #0000000a; }
.day-column { min-width: 0; padding: 12px 8px 13px; }
.day-column + .day-column { border-left: 1px solid #0000000a; }
.day-heading { display: block; min-height: 32px; text-align: center; font-size: 15px; font-weight: 800; }
.day-heading span { color: var(--muted); font-size: 10px; letter-spacing: .7px; }
.empty-day { display: flex; min-height: 102px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8b8b91; background: #f7f7f9; border-radius: 11px; text-align: center; font-size: 11px; line-height: 1.25; }
.empty-day strong, .day-add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--status); font-size: 23px; font-weight: 400; }
.plans { display: grid; gap: 7px; }
.plan-chip { display: block; min-height: 51px; padding: 9px 8px; overflow-wrap: anywhere; background: var(--tint); border-left: 3px solid var(--status); border-radius: 8px; font-size: 11px; line-height: 1.2; }
.plan-chip strong { display: block; }
.plan-chip time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.day-add { margin: 3px auto 0; width: 32px; height: 32px; font-size: 20px; }
.status-empty { --status: var(--empty); --tint: var(--empty-tint); }
.status-light { --status: var(--light); --tint: var(--light-tint); }
.status-good { --status: var(--good); --tint: var(--good-tint); }
.status-busy { --status: var(--busy); --tint: var(--busy-tint); }
.status-packed { --status: var(--packed); --tint: var(--packed-tint); }
.status-dot.status-empty { background: var(--empty); } .status-dot.status-light { background: var(--light); } .status-dot.status-good { background: var(--good); } .status-dot.status-busy { background: var(--busy); } .status-dot.status-packed { background: var(--packed); }

.form-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 6px 0 24px; }
.form-header h1 { font-size: 19px; text-align: center; white-space: nowrap; }
.back-link { min-height: 44px; display: flex; align-items: center; color: #2376c9; font-size: 16px; }
.form-card { padding: 21px 18px; }
.form-card label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 750; }
.form-card label:first-of-type { margin-top: 0; }
.form-card label small { color: var(--muted); font-weight: 400; }
.form-card input { width: 100%; min-height: 50px; padding: 11px 12px; color: var(--ink); background: #f8f8fa; border: 1px solid #d7d7dc; border-radius: 11px; font-size: 16px; }
.form-card input:focus { outline: 3px solid #397fc42d; border-color: var(--busy); }
.primary-button, .delete-button { width: 100%; min-height: 52px; border: 0; border-radius: 13px; font-weight: 750; }
.primary-button { margin-top: 25px; color: white; background: var(--ink); }
.delete-form { margin-top: 12px; }
.delete-button { color: #c43e36; background: var(--empty-tint); }
.validation { display: block; margin-top: 5px; color: #c43e36; font-size: 12px; }
.validation:empty { display: none; }
.login-screen { display: flex; min-height: calc(100vh - 80px); flex-direction: column; justify-content: center; }
.login-mark { display: grid; grid-template-columns: repeat(3, 1fr); width: 68px; height: 56px; margin: 0 auto 22px; overflow: hidden; border-radius: 15px; box-shadow: 0 4px 14px #0002; }
.login-mark span:nth-child(1) { background: var(--empty); }
.login-mark span:nth-child(2) { background: var(--good); }
.login-mark span:nth-child(3) { background: var(--busy); }
.login-heading { margin-bottom: 25px; text-align: center; }
.login-heading h1 { font-size: 28px; }
.login-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.login-card { width: 100%; }
.login-card .primary-button { margin-top: 21px; }
@media (max-width: 360px) { .app-shell { padding-left: 10px; padding-right: 10px; } .day-column { padding-left: 6px; padding-right: 6px; } }
@media (display-mode: standalone) {
  .app-shell { padding-top: max(14px, env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
