@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');
:root{
--ink:#fff;--mute:#C9C2E6;--bg:#000;
--gl-bg:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.06));--gl-blur:blur(28px) saturate(180%);--gl-bd:rgba(255,255,255,.18);
--gl-sh:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.65);
--gl-sheen:radial-gradient(120% 90% at 8% 0%,rgba(255,255,255,.24),transparent 42%);--r:26px;
--line:rgba(255,255,255,.14);--field:rgba(255,255,255,.08);--field-bd:rgba(255,255,255,.2);--chip:rgba(255,255,255,.12);
--on:#fff;--on-ink:#2A1B63;--btn:#fff;--btn-ink:#2A1B63;--btn-sh:none;--soft:rgba(255,255,255,.14);
--tint:linear-gradient(145deg,rgba(255,122,168,.32),rgba(255,122,168,.1));--err:#FFB3C4;--ok:#4ADE80;
--nav-on:rgba(255,255,255,.2);--scrim:rgba(0,0,0,.55);--toast:rgba(255,255,255,.94);--toast-ink:#2A1B63;
--font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif}
[data-theme=aero]{
--ink:#0B3556;--mute:#2B5F86;--bg:linear-gradient(180deg,#2E9BF0 0%,#6CCBF7 38%,#B5EFE0 68%,#9BE59A 100%);
--gl-bg:linear-gradient(180deg,rgba(255,255,255,.84),rgba(255,255,255,.52));--gl-blur:blur(14px);--gl-bd:rgba(255,255,255,.95);
--gl-sh:0 10px 26px rgba(10,90,150,.28),inset 0 1px 0 #fff;--gl-sheen:linear-gradient(180deg,rgba(255,255,255,.6),rgba(255,255,255,.05) 46%,transparent 46%);--r:24px;
--line:rgba(43,95,134,.18);--field:rgba(255,255,255,.75);--field-bd:rgba(43,95,134,.35);--chip:rgba(255,255,255,.62);
--on:linear-gradient(180deg,#F2FDFF 0%,#8FE1FB 48%,#45C2F0 52%,#9BEAFF 100%);--on-ink:#0B3556;
--btn:linear-gradient(180deg,#F2FDFF 0%,#A9E8FB 48%,#5FCDF3 52%,#B2F0FF 100%);--btn-ink:#0B3556;--btn-sh:0 4px 10px rgba(10,110,170,.4),inset 0 1px 0 #fff;--soft:rgba(255,255,255,.7);
--tint:linear-gradient(180deg,rgba(255,225,238,.9),rgba(255,190,215,.55));--err:#B3263E;--ok:#2FBF55;
--nav-on:linear-gradient(180deg,#F2FDFF 0%,#8FE1FB 48%,#45C2F0 52%,#9BEAFF 100%);--scrim:rgba(10,50,90,.35);--toast:#0B3556;--toast-ink:#fff;
--font:"Segoe UI","Open Sans","Trebuchet MS",system-ui,sans-serif}
[data-theme=minimal]{
--ink:#141414;--mute:#6B6B72;--bg:#F5F3EF;--gl-bg:#fff;--gl-blur:none;--gl-bd:#E6E2DB;--gl-sh:0 1px 2px rgba(0,0,0,.05);--gl-sheen:none;--r:18px;
--line:#ECE8E1;--field:#fff;--field-bd:#D6D1C8;--chip:#EEEAE3;--on:#141414;--on-ink:#fff;--btn:#141414;--btn-ink:#fff;--btn-sh:none;--soft:#EEEAE3;
--tint:#FBEAE6;--err:#B3261E;--ok:#2E7D4F;--nav-on:#EEEAE3;--scrim:rgba(0,0,0,.35);--toast:#141414;--toast-ink:#fff}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:var(--font);overscroll-behavior:none}
body{overflow:hidden}
.glow{position:fixed;border-radius:50%;filter:blur(70px);opacity:.45;pointer-events:none;z-index:0;animation:drift 24s ease-in-out infinite alternate}
.glow.a{width:280px;height:280px;background:#2EC4B6;left:-110px;top:14%}
.glow.b{width:280px;height:280px;background:#FF7AA8;right:-120px;top:50%;animation-duration:30s}
.glow.c{width:260px;height:260px;background:#6C5CE7;left:10%;bottom:-6%;animation-duration:27s}
@keyframes drift{from{transform:translate(0,0) scale(1)}to{transform:translate(36px,-48px) scale(1.18)}}
[data-theme=minimal] .glow{display:none}
[data-theme=aero] .glow{filter:none;opacity:1;background:radial-gradient(circle at 30% 28%,rgba(255,255,255,.95),rgba(255,255,255,.25) 38%,rgba(255,255,255,.06) 72%);border:1px solid rgba(255,255,255,.7);animation:float 14s ease-in-out infinite alternate}
[data-theme=aero] .glow.a{width:64px;height:64px;left:auto;right:24px;top:96px}
[data-theme=aero] .glow.b{width:34px;height:34px;left:14px;right:auto;top:46%}
[data-theme=aero] .glow.c{width:46px;height:46px;left:auto;right:12px;bottom:22%}
@keyframes float{from{transform:translateY(0)}to{transform:translateY(-26px)}}
[data-theme=aero] body::before{content:"";position:fixed;right:-80px;top:-70px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.9),rgba(255,255,255,0) 68%);pointer-events:none}
[data-theme=aero] body::after{content:"";position:fixed;left:-70px;right:-70px;bottom:-135px;height:230px;border-radius:50%;background:linear-gradient(180deg,#7BE07A,#34A84B);pointer-events:none;z-index:0}
#root{position:relative;z-index:1;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}
.boot{height:100%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:600;letter-spacing:.04em;color:var(--mute)}
button,input,textarea{font:inherit;color:var(--ink)}
button{border:0;cursor:pointer;transition:transform .14s ease,background-color .2s ease,opacity .2s ease}
button:active{transform:scale(.95)}
[hidden]{display:none!important}
.g{position:relative;background:var(--gl-bg);backdrop-filter:var(--gl-blur);-webkit-backdrop-filter:var(--gl-blur);border:1px solid var(--gl-bd);box-shadow:var(--gl-sh);border-radius:var(--r);padding:20px}
.g::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--gl-sheen);pointer-events:none}
.muted{color:var(--mute)}.sm{font-size:13px}
.page{min-height:100%;padding:calc(env(safe-area-inset-top) + 40px) 24px calc(env(safe-area-inset-bottom) + 120px);display:flex;flex-direction:column;gap:18px}
.auth{min-height:100%;padding:calc(env(safe-area-inset-top) + 56px) 24px 40px;display:flex;flex-direction:column;gap:18px}
.auth h1,.page h1{margin:0;font-size:30px;line-height:1.15;font-weight:700}
.field{display:flex;flex-direction:column;gap:6px}
.field span{font-size:13px;color:var(--mute)}
input,textarea{width:100%;border:1px solid var(--field-bd);background:var(--field);outline:none;font-size:16px;color-scheme:light dark}
input{min-height:50px;padding:0 18px;border-radius:99px}
textarea{padding:14px 18px;border-radius:20px;resize:none}
input::placeholder,textarea::placeholder{color:var(--mute);opacity:.7}
input:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
[data-theme=minimal] input,[data-theme=minimal] textarea{color-scheme:light}
.btn{min-height:52px;padding:0 24px;border-radius:99px;background:var(--btn);color:var(--btn-ink);box-shadow:var(--btn-sh);font-weight:700;font-size:16px;width:100%}
.btn.soft{background:var(--soft);color:var(--ink);font-weight:600;box-shadow:none}
[data-theme=aero] .btn.soft{box-shadow:0 2px 6px rgba(10,110,170,.25),inset 0 1px 0 #fff}
.link{background:none;color:var(--mute);min-height:44px;text-decoration:underline;font-size:14px}
.err{color:var(--err);font-size:14px;min-height:20px}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gbtn{width:46px;height:46px;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.row{display:flex;align-items:center;gap:12px}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.big{font-size:44px;letter-spacing:.2em;font-weight:700;text-align:center;padding:8px 0 8px .2em}
nav{position:fixed;z-index:5;left:20px;right:20px;bottom:calc(env(safe-area-inset-bottom) + 14px);display:flex;padding:6px;border-radius:99px;background:var(--gl-bg);backdrop-filter:var(--gl-blur);-webkit-backdrop-filter:var(--gl-blur);border:1px solid var(--gl-bd);box-shadow:var(--gl-sh)}
.t{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;font-size:11px;font-weight:500;color:var(--mute);min-height:52px;border-radius:99px}
.t.a{color:var(--ink);font-weight:600;background:var(--nav-on);box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
[data-theme=minimal] .t.a{box-shadow:none}
.wel{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:40px 36px;text-align:center}
.wel p{margin:0;font-size:24px;line-height:1.4;font-weight:600;min-height:4.2em;display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(10px);transition:opacity .7s ease,transform .7s ease}
.wel p.in{opacity:1;transform:none}
.skip{position:absolute;top:calc(env(safe-area-inset-top) + 16px);right:20px;background:none;color:var(--mute);min-height:44px;padding:0 12px}
.sheet{position:fixed;inset:0;z-index:9;background:var(--scrim);display:flex;align-items:flex-end;padding:20px 20px calc(env(safe-area-inset-bottom) + 20px);animation:fadein .2s ease both}
.sheet .g{width:100%;display:flex;flex-direction:column;gap:10px;max-height:88vh;overflow-y:auto;animation:slideup .36s cubic-bezier(.2,.8,.2,1) both}
.sheet.closing{animation:fadeout .2s ease both}.sheet.closing .g{animation:slidedown .2s ease both}
#toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 110px);transform:translateX(-50%);padding:12px 20px;border-radius:99px;background:var(--toast);color:var(--toast-ink);font-weight:600;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s;z-index:20}
#toast.on{opacity:1}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{min-height:44px;padding:0 16px;border-radius:99px;background:var(--chip);color:var(--ink);font-size:14px;font-weight:500}
.chip.on{background:var(--on);color:var(--on-ink);font-weight:700}
.chip.sw{width:44px;padding:0}.chip.sw.on{outline:3px solid var(--ink);outline-offset:2px}
.item{display:flex;align-items:center;gap:8px;padding:4px 0;border-top:1px solid var(--line);margin-top:4px}
.grow{flex:1;min-width:0}.ttl{font-size:16px;overflow-wrap:anywhere}.strike{text-decoration:line-through;color:var(--mute)}
.ck,.x{width:44px;height:44px;min-width:44px;background:none;display:flex;align-items:center;justify-content:center;flex:none;color:var(--mute)}
.ck span{width:24px;height:24px;border-radius:50%;border:2px solid var(--ink);display:block;transition:background-color .2s,border-color .2s}
.late{color:var(--err);font-size:13px}
.rowb{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.l{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--mute)}
.empty{margin:8px 0}.bar{width:4px;height:36px;border-radius:2px;margin:0 8px 0 4px;flex:none}
.cal{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px}
.wk{text-align:center;font-size:11px;color:var(--mute);padding-bottom:4px}
.day{background:none;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;font-size:14px;color:var(--ink)}
.day b{font-weight:500;width:26px;height:26px;display:flex;align-items:center;justify-content:center}
.day.sel{background:var(--chip)}.day.today b{background:var(--on);color:var(--on-ink);border-radius:50%;font-weight:700}
.dots{display:flex;gap:3px;height:5px}.dots i{width:5px;height:5px;border-radius:50%;display:block}
.tint{background:var(--tint)}
.page .g .btn.soft{margin-top:10px}
.enter{animation:rise .34s cubic-bezier(.2,.8,.2,1) both}
.new{animation:rise .38s cubic-bezier(.2,.8,.2,1) both}
.gone{opacity:0;transform:translateX(-14px) scale(.98);transition:opacity .2s ease,transform .2s ease}
.pop>*{animation:pop .3s cubic-bezier(.3,1.6,.5,1) both}
.ck.pop span{background:var(--ok);border-color:var(--ok)}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(1)}45%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}
@keyframes slideup{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes slidedown{to{transform:translateY(40px);opacity:0}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Entry uses the approved monochrome palette independently of app theme. */
.auth.entry,.wel {
  background:linear-gradient(155deg,#fff,#f5f5f6 52%,#ececef);
  color:#222226;
  font-family:"Plus Jakarta Sans",system-ui,sans-serif;
}
.auth.entry { width:min(100%,460px); margin:auto; text-align:center; padding-inline:28px; }
.auth.entry form { text-align:left; width:100%; }
.auth.entry .wordmark { font-size:clamp(58px,16vw,78px); letter-spacing:-.09em; font-weight:800; }
.auth.entry .muted,.wel .muted,.auth.entry .link,.wel .skip { color:#54545b; }
.auth.entry input { color:#222226; background:#eeeef0; border:1px solid #dddde0; }
.auth.entry .btn,.wel .btn { color:#fff; background:linear-gradient(150deg,#39393c,#212124); box-shadow:4px 6px 13px #ccc; }
.auth.entry .btn.soft { color:#222226; background:linear-gradient(150deg,#fff,#ededee); }
.auth.entry .btn:active,.wel .btn:active { transform:scale(.97); box-shadow:inset 2px 3px 7px #0005; }
.save-status:empty { display:none; }
.save-status { margin:0; }
@media(prefers-reduced-motion:reduce){.auth.entry *, .wel *{transition:none!important;animation:none!important}}

/* White Neumorphism */
html[data-theme="mono"] {
  --bg:#f4f4f5; --ink:#202124; --mute:#595c62; --line:#dedee1;
  --font:"Plus Jakarta Sans",system-ui,sans-serif;
  --gl-bg:#f5f5f6; --gl-bd:#fff; --gl-blur:none;
  --gl-sh:6px 7px 16px #dcdcdf,-6px -7px 16px #fff;
  --gl-sheen:none; --nav-on:#ececef; --tint:#eaeaec;
  --mono-inset:inset 3px 3px 7px #dadadd,inset -3px -3px 7px #fff;
}
[data-theme="mono"] body {background:linear-gradient(158deg,#fff,#f6f6f7 44%,#ededf0)}
[data-theme="mono"] .glow {display:none}
[data-theme="mono"] .page {max-width:680px;margin:auto}
[data-theme="mono"] h1 {letter-spacing:-.065em}
[data-theme="mono"] .btn {background:#28282c;color:#fff}
[data-theme="mono"] .btn.soft {background:linear-gradient(145deg,#fff,#eaeaec);color:#202124}
[data-theme="mono"] :is(input,textarea,.chip) {background:#ececef;color:#202124;border-color:#d8d8dd}
[data-theme="mono"] :is(.chip.on,.day.sel) {background:#303034;color:#fff}
[data-theme="mono"] .day.today {outline:1px solid #666;outline-offset:-2px}
[data-theme="mono"] nav {width:min(calc(100% - 32px),640px);left:50%;right:auto;transform:translateX(-50%);border-radius:19px}
[data-theme="mono"] nav .t {border-radius:12px}
[data-theme="mono"] nav .t.a {box-shadow:var(--mono-inset)}
[data-theme="mono"] .tint {background:#eaeaec}
[data-theme="mono"] :focus-visible {outline:2px solid #404045;outline-offset:3px}
.next-event {display:flex;gap:14px;align-items:center;margin-top:9px}
.next-event h2 {margin:0;font-size:1.17rem;overflow-wrap:anywhere}
.date-tile {display:grid;text-align:center;place-content:center;min-width:60px;min-height:64px;border-radius:13px;background:var(--nav-on);box-shadow:var(--mono-inset,none);font-size:11px;text-transform:uppercase}
.date-tile strong {font-size:24px;line-height:1.1}
.folded-note,.sealed-note {overflow:hidden;padding-right:48px}
.folded-note::after,.sealed-note::after {content:"";position:absolute;top:0;right:0;width:29px;height:29px;background:linear-gradient(45deg,#cfcfd4 49%,var(--bg) 50%);pointer-events:none}

.roster-dot {background:var(--ink);outline:1px solid var(--ink);outline-offset:1px}
.sheet select {font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px}
#shift-hours {display:grid;gap:8px}
#shift-hours[hidden] {display:none}
.sheet {overflow-y:auto}
#shift-grid .day {min-height:44px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.shift-marker {font-size:9px;line-height:1.2}
