:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18263b;background:#f5f7fb;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:#255ec2}h1,h2,h3,p{margin:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8db6ff;outline-offset:2px}.hidden{display:none!important}.shell{min-height:100vh}.topbar{height:78px;background:#11233f;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,58px);gap:12px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brandmark{width:42px;height:42px;border-radius:12px;background:#2866df;display:grid;place-items:center;font-size:21px}.brand h1{font-size:21px;font-weight:750;letter-spacing:-.6px}.brand small{display:block;color:#b8c9e1;margin-top:2px;font-size:12px}.top-actions{display:flex;align-items:center;gap:10px}.account-tag{font-size:12px;color:#d6e3f8}.btn{border:1px solid #dde4f0;background:white;color:#213650;border-radius:10px;padding:10px 14px;font-weight:650;transition:.15s ease}.btn:hover{border-color:#9bb5dd;background:#f6f9ff}.btn.primary{background:#2866df;color:#fff;border-color:#2866df;box-shadow:0 4px 10px #2866df1b}.btn.primary:hover{background:#1556ce}.btn.ghost{background:transparent;color:inherit;border-color:#ffffff52}.btn.ghost:hover{background:#ffffff14}.btn.subtle{background:#f5f8fc}.btn.danger{color:#b42318;border-color:#f4c7c2}.btn.danger:hover{background:#fef2f1}.btn.icon-btn{min-width:38px;padding:9px 10px;font-size:17px}.btn.small{padding:6px 10px;border-radius:8px;font-size:12px}.main{max-width:1510px;margin:0 auto;padding:30px clamp(16px,3vw,46px)}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:22px}.heading h2{font-size:30px;letter-spacing:-1px;font-weight:760}.muted{color:#7b8798}.subheading{margin-top:5px;color:#79879b;font-size:13px}.heading-actions,.month-controls,.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.content{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}.panel{border:1px solid #e2e8f1;border-radius:17px;background:#fff;box-shadow:0 7px 25px #1a365414;overflow:hidden}.monthbar{display:flex;justify-content:space-between;align-items:center;padding:19px 20px;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e7ebf2}.monthbar h3{font-size:20px;font-weight:760;min-width:205px}.filters select{appearance:none;border:1px solid #dce4ed;border-radius:9px;background:#fff;padding:9px 30px 9px 11px;color:#2d3c50;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b8798' stroke-width='2'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat}.weekday-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fbfcfe;border-bottom:1px solid #e9edf3}.weekday{padding:12px 6px;text-align:center;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.09em;color:#8a95a6}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(112px,auto)}.day{border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:9px 6px;overflow:hidden;min-width:0;transition:background .12s}.day:nth-child(7n){border-right:none}.day.other-month{background:#fafbfe}.day.other-month .day-number{color:#bdc5d1}.day:hover{background:#f4f8ff}.day.today .day-number{background:#2866df;color:#fff}.day-head{display:flex;align-items:center;justify-content:space-between;height:24px;margin-bottom:6px}.day-number{border:0;background:transparent;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-weight:650;color:#54657b;cursor:pointer}.day-events{display:flex;flex-direction:column;gap:4px}.event-chip{display:block;border:0;text-align:left;width:100%;border-radius:5px;padding:6px 6px 6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e7efff;color:#1d3f78;border-left:3px solid #2866df;font-size:11px;font-weight:720;min-width:0}.event-chip:hover{filter:brightness(.97)}.more{border:none;background:none;color:#56749e;font-size:11px;font-weight:700;padding:5px;cursor:pointer}.sidebar{display:flex;flex-direction:column;gap:16px}.side-section{padding:21px}.side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.side-head h3{font-size:16px}.side-head span{font-size:11px;color:#8693a5}.person-list{display:grid;gap:11px}.person{display:flex;align-items:center;gap:10px;font-size:13px;color:#4a5d73}.avatar-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}.person-name{font-weight:630}.person small{margin-left:auto;color:#8693a5;font-size:11px}.upcoming-list{display:flex;flex-direction:column;gap:13px}.upcoming{display:flex;gap:10px;align-items:start}.up-date{min-width:42px;text-align:center;background:#f1f5fa;border-radius:8px;padding:7px 4px}.up-date strong{display:block;font-size:18px}.up-date small{font-size:9px;font-weight:740;text-transform:uppercase;color:#6d829b}.up-info{min-width:0;padding-top:2px}.up-info button{border:none;padding:0;background:none;font-weight:750;text-align:left;color:#213650;font-size:12px;line-height:1.45}.up-info button:hover{text-decoration:underline}.up-info p{font-size:11px;color:#8793a3;margin-top:4px}.privacy-note{background:#f9fbff;border:1px solid #e5ecf7;color:#50657d;border-radius:10px;padding:12px;font-size:12px;line-height:1.5}.privacy-note strong{color:#253a57}.banner{background:#fff6dc;border:1px solid #f6df99;color:#704c06;border-radius:12px;padding:12px 15px;margin-bottom:15px;font-size:13px}.agenda{padding:8px 19px 18px}.agenda-day{padding:13px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#607389;font-weight:800}.agenda-event{width:100%;display:flex;text-align:left;align-items:center;gap:12px;padding:13px 10px;border:1px solid #e9eef5;border-radius:9px;background:white;margin-top:8px}.agenda-event:hover{background:#f8fbff}.agenda-time{min-width:66px;color:#61758a;font-size:12px}.agenda-title{font-weight:730;font-size:13px}.agenda-sub{font-size:11px;color:#8493a5;margin-top:4px}.agenda-bar{width:4px;align-self:stretch;border-radius:5px;background:#2866df}.empty{padding:45px 15px;text-align:center;color:#8493a5;line-height:1.5}.empty .symbol{font-size:35px;margin-bottom:10px}.legend{display:flex;flex-wrap:wrap;gap:13px;padding:14px 19px;border-top:1px solid #e7edf3;color:#8896a6;font-size:11px}.legend span{display:flex;gap:5px;align-items:center}.app-footer{color:#8794a7;font-size:11px;margin-top:16px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:22px;background:linear-gradient(135deg,#11233f,#1d3e6a)}.login-card{width:min(440px,100%);padding:32px;background:#fff;border-radius:23px;box-shadow:0 22px 64px #0004}.login-logo{display:inline-grid;place-items:center;background:#eaf2ff;color:#245fd1;border-radius:14px;font-size:25px;width:56px;height:56px;margin-bottom:20px}.login-card h1{font-size:27px;letter-spacing:-.7px}.login-card .lead{margin:8px 0 25px;color:#78889d;line-height:1.5}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field label{font-size:12px;font-weight:740;color:#344862}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border-radius:9px;border:1px solid #d6dfeb;color:#243951;background:white;outline:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#2866df;box-shadow:0 0 0 3px #2866df18}.field textarea{min-height:73px;resize:vertical}.field .hint{font-size:11px;color:#8897a8}.login-card .btn{width:100%;margin-top:9px;padding:13px}.login-bottom{margin-top:20px;padding-top:17px;border-top:1px solid #e7ecf3;color:#8090a3;font-size:12px;line-height:1.5}.error{color:#ad3024;font-size:12px;margin:9px 0;line-height:1.5}.success{color:#16723d;font-size:12px;margin:9px 0}.demo-label{background:#fef2ce;color:#7a520b;font-size:11px;font-weight:740;border-radius:6px;padding:5px 8px}dialog{border:0;border-radius:18px;box-shadow:0 24px 80px #09204166;padding:0;width:min(570px,calc(100% - 26px));max-height:min(95vh,960px);overflow-y:auto;color:#20334e}dialog::backdrop{background:#0b1a33ae}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:22px 24px 14px}.modal-head h3{font-size:22px;letter-spacing:-.4px}.modal-body{padding:10px 24px 22px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.switch-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #dce5ef;background:#f8fbff;padding:13px 14px;border-radius:11px;gap:15px}.switch-row b{display:block;font-size:13px}.switch-row small{display:block;font-size:11px;margin-top:3px;color:#75879c;line-height:1.4}.switch{position:relative;display:inline-block;width:45px;height:26px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background:#bcc9dc;border-radius:30px;transition:.18s}.slider:before{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.18s}.switch input:checked+.slider{background:#2866df}.switch input:checked+.slider:before{transform:translateX(19px)}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:22px}.modal-actions .push{margin-right:auto}.tag-private{color:#4b60a2}.hint-box{padding:10px 12px;background:#f3f7fc;border-radius:8px;color:#65788f;font-size:11px;line-height:1.5;margin:10px 0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#162d4c;color:white;border-radius:11px;padding:12px 18px;box-shadow:0 9px 30px #0003;font-size:12px;z-index:99;min-width:180px;text-align:center;max-width:95vw}.spinner{border:3px solid #cad7e8;border-top-color:#2866df;width:24px;height:24px;border-radius:50%;animation:spin .8s linear infinite;margin:25px auto}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1090px){.content{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr}.day{min-height:110px}}@media(max-width:670px){.topbar{height:66px;padding:0 15px}.brand h1{font-size:17px}.brand small{font-size:10px}.brandmark{width:36px;height:36px}.account-tag{display:none}.top-actions{gap:4px}.top-actions .btn{padding:8px 9px;font-size:11px}.main{padding:17px 10px}.heading{margin-bottom:13px}.heading h2{font-size:22px}.heading-actions .btn{font-size:11px}.content{gap:12px}.monthbar{padding:12px}.monthbar h3{font-size:17px;min-width:160px}.filters{width:100%}.filters select{width:calc(50% - 4px);font-size:11px}.weekday{padding:9px 1px;font-size:9px}.month-grid{grid-auto-rows:minmax(86px,auto)}.day{padding:5px 2px;min-height:86px}.day-number{font-size:11px;width:21px;height:21px}.event-chip{font-size:9px;line-height:1.3;padding:4px 2px 4px 4px;border-left-width:2px}.more{font-size:9px;padding:2px}.sidebar{grid-template-columns:1fr}.side-section{padding:16px}.form-row{grid-template-columns:1fr}.modal-head{padding:17px 17px 8px}.modal-body{padding:8px 17px 17px}.modal-actions{flex-wrap:wrap}.upcoming-list{display:grid;grid-template-columns:1fr 1fr}.app-footer{padding:0 4px}}
/* School calendars and expanded ten-member layout */
.header-select{padding:7px 9px;border-radius:8px;border:1px solid #8195ba;color:white;background:#1f365a;font-size:12px;max-width:110px}
.holiday-filters{display:flex;flex-wrap:wrap;gap:12px;padding:12px 17px;border-bottom:1px solid #e8edf5;background:#fbfdff;font-size:12px;color:#455d79}
.holiday-filters label{display:flex;align-items:center;gap:5px;cursor:pointer}
.holiday-filters input{accent-color:#2866df}
.legend i{display:inline-block;width:9px;height:9px;border-radius:2px}
.check-label{display:flex;align-items:center;gap:9px;cursor:pointer}
.check-label input{accent-color:#2866df}
.category-badge{font-size:12px;display:inline-block;border-radius:10px;padding:6px 10px;background:#f2f4fa;color:#435e80;font-weight:750}
@media(max-width:670px){.holiday-filters{gap:9px;font-size:11px}.top-actions{max-width:64%}.header-select{width:88px}}

/* Camera/photo schedule import */
.photo-dialog{width:min(760px,calc(100% - 20px));max-height:94vh}
.photo-dialog .photo-preview{display:block;max-width:100%;max-height:230px;object-fit:contain;border:1px solid #e2e8f1;background:#fafcff;border-radius:9px;margin-top:8px}
.photo-progress{font-size:12px;color:#64748b;margin-right:auto}
.photo-buttons{justify-content:flex-start;margin-top:0;margin-bottom:12px}
.photo-dialog .field textarea{min-height:95px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.photo-result{margin-top:16px}.photo-result h4{font-size:15px;margin:7px 0 5px}.photo-rows{display:flex;flex-direction:column;gap:9px}
.photo-row{display:grid;grid-template-columns:70px 1.25fr 1fr 1fr;gap:10px;align-items:center;background:#f8fafd;border:1px solid #e2e8f1;border-radius:10px;padding:9px 10px}
.photo-row label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#5d728d;font-weight:700}.photo-row input{font-size:13px;padding:7px 5px;min-width:0;width:100%;border:1px solid #d1ddeb;border-radius:6px;background:#fff}
.photo-row .photo-include{flex-direction:row;align-items:center}.photo-row .photo-include input{width:auto}.photo-warning{grid-column:1/-1;margin:0;font-size:11px;color:#9d5a17}.photo-skipped{margin:10px 0;padding:10px;border:1px solid #e5ebf3;border-radius:9px;font-size:12px;color:#5e7188}.photo-skipped p{margin:5px 0}.photo-skipped li{margin:5px 0;overflow-wrap:anywhere}
@media(max-width:670px){.photo-row{grid-template-columns:65px 1fr 1fr;gap:7px}.photo-row label:nth-child(2){grid-column:2/-1}.photo-dialog .modal-actions{gap:6px}.top-actions{max-width:none}.topbar{height:auto;min-height:66px;flex-wrap:wrap;padding:9px 12px}.top-actions .btn{font-size:10px;padding:7px}.brand h1{font-size:15px}}

/* Compact searchable multi-person picker in Quick Add */
.person-picker{position:relative;width:100%;min-width:0}
.person-picker-trigger{width:100%;min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:10px 12px;border:1px solid #d6dfeb;border-radius:9px;background:#fff;color:#243951;font:inherit;font-size:13px;cursor:pointer}
.person-picker-trigger:focus-visible,.person-picker-trigger[aria-expanded="true"]{outline:none;border-color:#2866df;box-shadow:0 0 0 3px #2866df18}
#ev-person-selected{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.person-picker-chevron{font-size:14px;color:#5c7089;flex:none}
.person-picker-panel{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;display:flex;flex-direction:column;gap:6px;padding:9px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;box-shadow:0 12px 28px #0c24402b}
.person-picker-panel[hidden]{display:none!important}
.person-picker-panel #ev-person-search{width:100%;height:37px;padding:8px 10px;margin:0;border:1px solid #d6dfeb;border-radius:7px;font-size:13px}
.person-picker-options{max-height:155px;overflow-y:auto;overscroll-behavior:contain}
.field .person-picker-option{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;padding:7px 8px;margin:0;border-radius:7px;color:#263c58;font-size:13px;font-weight:500;cursor:pointer;line-height:1.25}
.field .person-picker-option:hover{background:#f0f5fc}
.field .person-picker-option[hidden]{display:none!important}
.field .person-picker-option input[type="checkbox"]{width:17px!important;height:17px!important;min-width:17px;flex:0 0 17px;margin:0;padding:0;accent-color:#2866df;box-shadow:none}
.person-picker-option span{flex:1;text-align:left}
.person-picker-done{align-self:flex-end;min-width:76px}
@media(max-width:670px){.person-picker-panel{max-width:100%}.person-picker-options{max-height:142px}}

/* Editable, auto-completing family names field */
.person-entry{position:relative;width:100%;min-width:0}
.person-entry #ev-person-input{width:100%;min-height:43px}
.person-entry small{font-size:11px;line-height:1.35;color:#667991}
.person-entry-suggestions{position:absolute;top:44px;left:0;right:0;z-index:40;background:white;border:1px solid #d6dfeb;border-radius:9px;box-shadow:0 10px 25px #102e4a24;overflow:hidden}
.person-entry-suggestions[hidden]{display:none!important}
.person-entry-suggestion{display:block;width:100%;text-align:left;padding:9px 12px;background:#fff;border:0;color:#243951;font-size:13px;cursor:pointer}
.person-entry-suggestion:hover,.person-entry-suggestion:focus{background:#eef5ff}

/* Mobile-first daily dashboard and thumb-friendly navigation. Desktop stays unchanged. */
.mobile-dashboard,.mobile-bottom-nav{display:none}
@media(max-width:670px){
  .shell{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .topbar{background:#12345d;gap:8px}
  .top-actions #new-event{display:none}
  .top-actions #photo-import{background:#ffffff19;border-color:#ffffff55;font-size:12px;padding:9px 11px}
  .brand small{display:none}
  .brand h1{font-size:16px}
  .main{padding:14px 12px 18px}
  .mobile-dashboard{display:block}
  .shell[data-mobile-view="month"] .mobile-dashboard{display:none}
  .shell[data-mobile-view="today"] .heading,
  .shell[data-mobile-view="week"] .heading,
  .shell[data-mobile-view="today"] .mobile-calendar-content,
  .shell[data-mobile-view="week"] .mobile-calendar-content{display:none}
  .mobile-welcome{padding:18px 17px 19px;border-radius:18px;background:linear-gradient(135deg,#1b57a6,#317be7);color:white;box-shadow:0 10px 23px #184f9b24;margin-bottom:17px}
  .mobile-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;opacity:.88}
  .mobile-welcome h2{font-size:24px;line-height:1.22;letter-spacing:-.6px;margin:9px 0 7px}
  .mobile-welcome p{font-size:13px;opacity:.92}
  .mobile-section-title{display:flex;justify-content:space-between;align-items:center;margin:15px 2px 10px}
  .mobile-section-title h3{font-size:17px;letter-spacing:-.3px}
  .mobile-section-title span{font-size:12px;color:#697c97}
  .mobile-inline-add{background:#eaf2ff;color:#1e5cb5;border:0;border-radius:9px;padding:9px 14px;font-weight:750}
  .mobile-next-title{margin-top:24px}
  .mobile-dashboard .agenda{border:0;display:flex;flex-direction:column;gap:8px}
  .mobile-dashboard .agenda-day{font-size:12px;color:#667f9e;font-weight:750;padding:10px 3px 2px}
  .mobile-dashboard .agenda-event{display:grid;grid-template-columns:5px 75px minmax(0,1fr);width:100%;min-height:77px;gap:10px;align-items:center;text-align:left;border:1px solid #e0e8f3;background:#fff;border-radius:13px;padding:12px;box-shadow:0 3px 11px #1d3d6310}
  .mobile-dashboard .agenda-bar{width:5px;height:100%;min-height:45px;border-radius:5px}
  .mobile-dashboard .agenda-time{font-size:11px;font-weight:750;color:#45617f}
  .mobile-dashboard .agenda-title{font-size:14px;font-weight:750;line-height:1.35}
  .mobile-dashboard .agenda-sub{font-size:11px;line-height:1.4;color:#6d7d92;overflow-wrap:anywhere}
  .mobile-empty{border:1px dashed #d4e0ee;background:#fff;padding:20px 14px;border-radius:13px;color:#64748b;font-size:13px}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;border-top:1px solid #dbe5f1;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -5px 22px #152c4617}
  .mobile-bottom-nav button{border:0;background:transparent;color:#5c6e86;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:750;border-radius:10px}
  .mobile-bottom-nav button[aria-current="page"]{color:#205ec0;background:#eaf2ff}
  .mobile-bottom-nav .mobile-add-action{color:#fff;background:#2866df;margin:2px 5px;min-height:50px}
  .mobile-nav-symbol{font-size:22px;line-height:1.05}
  .mobile-bottom-nav .mobile-add-action .mobile-nav-symbol{font-size:25px}
  .shell[data-mobile-view="month"] .sidebar{display:none}
  .shell[data-mobile-view="month"] .heading{margin-bottom:11px}
  .shell[data-mobile-view="month"] .heading-actions{display:none}
  .shell[data-mobile-view="month"] .monthbar{gap:10px}
  .shell[data-mobile-view="month"] .month-controls{width:100%;justify-content:space-between}
  .shell[data-mobile-view="month"] .monthbar h3{text-align:center;min-width:0}
  .shell[data-mobile-view="month"] #toggle-view{display:none}
  .shell[data-mobile-view="month"] .app-footer{font-size:10px}
  .shell[data-mobile-view="month"] .holiday-filters{font-size:11px}
  .modal-actions button{min-height:43px}
  .modal-body input,.modal-body select,.modal-body textarea{font-size:16px}
}
@media print{.mobile-dashboard,.mobile-bottom-nav{display:none!important}.mobile-calendar-content{display:grid!important}}
