
:root{--green:#1e493e;--bg:#f6f7f2;--line:#e2e9df;--mute:#83968a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#20332e;font:15px system-ui,-apple-system,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer}.app{display:grid;grid-template-columns:230px 1fr;min-height:100vh}aside{background:var(--green);color:white;padding:25px 15px;display:flex;flex-direction:column}.logo{font:25px Georgia,serif;letter-spacing:-1px;padding:2px 14px 24px}.logo small{font:10px system-ui;letter-spacing:3px;color:#b8d4c4}.stable{background:#315d50;border-radius:12px;padding:12px;margin:0 4px 28px;font-size:13px}.stable small{color:#b9d4c6}nav button{display:block;width:100%;background:transparent;color:#c2d7c9;border:0;text-align:left;padding:12px 15px;border-radius:9px;margin:3px 0}nav button:hover,nav button.active{background:#426c5d;color:white}.foot{margin-top:auto;color:#aec8b9;font-size:11px;padding:15px}.main{padding:30px 38px;max-width:1440px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;color:var(--mute);font-size:12px;margin-bottom:35px}.avatar{background:#dce9d5;color:#315b45;padding:9px;border-radius:50%;font-weight:700}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#85a08c;font-weight:700}h1,h2{font-family:Georgia,serif;font-weight:400}h1{font-size:36px;margin:5px 0}h2{font-size:23px;margin:0 0 18px}p{color:#81958a;margin:0}.primary{border:0;border-radius:10px;background:#285747;color:white;padding:12px 17px;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat,.card{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 20px #24493409}.stat{padding:19px}.stat small{color:var(--mute)}.stat strong{display:block;font:34px Georgia,serif;margin:12px 0 0}.stat em{color:#6b9b74;font:11px system-ui}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.card{padding:23px;margin-bottom:20px}.cardhead{display:flex;justify-content:space-between;align-items:center}.cardhead a{font-size:12px;color:#4b805a;cursor:pointer}.eventrow{display:grid;grid-template-columns:50px 1fr;gap:12px;margin:10px 0}.time{font-size:12px;color:#93a397;padding-top:11px}.event{background:#f2f7ef;border-left:3px solid #8bab89;border-radius:0 10px 10px 0;padding:10px 12px;display:flex;justify-content:space-between}.event.orange{background:#fcf5ec;border-color:#d5a275}.event.blue{background:#f0f7f8;border-color:#92b7c4}.event strong,.horse strong{font-size:13px}.event small,.horse small{display:block;color:#82988a}.tag{background:#e1ecd9;border-radius:6px;padding:5px 7px;align-self:center;font-size:10px;color:#4d7654}.horse{display:flex;gap:11px;padding:10px 0;border-top:1px solid #edf0ea;align-items:center}.thumb{width:42px;height:42px;background:linear-gradient(130deg,#6b5141,#d2a883);border-radius:10px;display:grid;place-items:center;color:white;font-size:21px}.pill{margin-left:auto;background:#eaf3e6;color:#4d8159;border-radius:20px;font-size:10px;padding:5px 8px}.notice{background:#edf4e8}.page{display:none}.page.active{display:block}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;letter-spacing:1px;color:#93a397;text-transform:uppercase}td,th{padding:14px 10px;border-bottom:1px solid #edf0ea}input{border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:15px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day{min-height:90px;border:1px solid var(--line);border-radius:9px;padding:8px}.today{background:#edf6e8;border-color:#94bd98}.chip{display:block;font-size:10px;background:#dfecd8;border-radius:5px;padding:3px;margin-top:5px}.login{max-width:420px;margin:20px auto}.login button,.login input{width:100%;margin:5px 0}.login button:not(.primary){background:white;border:1px solid var(--line);padding:11px;border-radius:9px}.demo{background:#fff6e9;padding:12px;border-radius:9px;font-size:12px;color:#987448;margin-top:18px}@media(max-width:950px){.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}@media(max-width:650px){.app{display:block}aside{position:sticky;top:0;z-index:2;padding:10px;display:block}.logo{display:inline-block;padding:0 10px}.stable,.foot{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;width:auto;padding:8px}.main{padding:17px}.top{margin-bottom:20px}.heading h1{font-size:28px}.stat{padding:12px}.stat strong{font-size:26px}.card{padding:16px}.day{min-height:68px;font-size:11px}.chip{font-size:8px}td,th{padding:8px 4px;font-size:11px}}

[hidden]{display:none!important}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.formgrid label,.card label{display:block;font-size:12px;font-weight:700;color:#567062}.formgrid input,.card label>input{display:block;width:100%;margin:5px 0 12px}.actions{display:flex;gap:8px}.secondary{border:1px solid #cfdbcf;border-radius:10px;background:white;color:#315d49;padding:10px 15px}.hint{font-size:12px;margin-top:9px;color:#a04c3f}.item{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #edf0ea;padding:12px 0}.item:first-of-type{border-top:0}.item small{display:block;color:#82988a}.item .actions{flex-wrap:wrap;justify-content:flex-end}.item button{font-size:12px}.capacity{color:#4d805b;font-weight:700}.full{color:#b45c45}.admin-only{display:block}.item .admin-only{display:inline-block}#roleSelect{border:1px solid #d6e3d7;background:white;border-radius:8px;padding:8px;color:#345949}@media(max-width:650px){.formgrid{grid-template-columns:1fr}.item{align-items:flex-start;flex-direction:column}.item .actions{justify-content:flex-start}}
.typebar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:15px}.typebar button{border:1px solid #bfd3be;background:#f4f8ef;color:#315d49;border-radius:20px;padding:8px 11px;font-size:12px}.typebar button.active{background:#285747;color:white}.eventtype{display:inline-block;background:#e7f0df;color:#4e7754;border-radius:15px;padding:3px 9px;font-size:11px;margin-bottom:7px}.entry{display:flex;justify-content:space-between;gap:15px;align-items:start;border-top:1px solid #e9eee7;padding:12px 0}.entry small{display:block;color:#81958a}.entry .actions{flex-wrap:wrap;justify-content:flex-end}.entry select,.entry input{padding:8px;border:1px solid #d9e6d8;border-radius:8px;max-width:160px}.cancelled{opacity:.55}.cancelled .eventtype{background:#f5e7e0;color:#a46051}.message{background:#fff7e9;padding:9px;border-radius:8px;color:#8a6944;font-size:12px;margin:6px 0}.authnote{font-size:12px;color:#98744b;background:#fff6e8;border-radius:8px;padding:9px;margin:12px 0}.role-trainer .admin-only{display:none!important}@media(max-width:650px){.entry{flex-direction:column}.entry .actions{justify-content:flex-start}}
dialog{border:1px solid #d7e4d4;border-radius:16px;box-shadow:0 18px 70px #1d493e42;max-width:420px;width:calc(100% - 30px);padding:25px;color:#20332e}dialog::backdrop{background:#183a32a6}dialog label{display:block;font-weight:700;font-size:12px;color:#547261;margin:12px 0}dialog input,dialog select{display:block;width:100%;padding:11px;border:1px solid #d5e2d4;border-radius:9px;margin-top:5px}dialog h2{margin:0 0 8px}
.legend{display:flex;gap:6px;flex-wrap:wrap}.legend span{border-left:4px solid;border-radius:5px;padding:4px 8px;font-size:11px}.weeknav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0}.weeknav strong{margin-right:auto}.weekscroll{overflow-x:auto}.weekgrid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1015px;gap:8px}.weekcol{background:#fff;border:1px solid #e1e9df;border-radius:12px;min-height:240px}.weekcol header{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #e1e9df;color:#6e8778;text-transform:capitalize}.weekcol header span{font:22px Georgia,serif}.week-today{border-color:#84ad8a;background:#f7fbf4}.weekbody{padding:7px}.weekevent{width:100%;display:block;text-align:left;margin:5px 0;border:0;border-left:4px solid;border-radius:7px;padding:8px;font-size:11px;color:#315044}.weekevent b,.weekevent span,.weekevent small{display:block}.weekevent span{font-weight:700}.weekevent small{color:#6d8176}.weekevent:hover{filter:brightness(.96)}.empty{font-size:11px;color:#a7b2a7;padding:8px;display:block}.calendar-tip{padding:15px}.kind-group{background:#e8f1e5!important;border-color:#85a98a!important;color:#46654a!important}.kind-single{background:#eef1e7!important;border-color:#a7b387!important;color:#627047!important}.kind-away{background:#e5eff1!important;border-color:#83a8b1!important;color:#466c75!important}.kind-competition{background:#eeeafa!important;border-color:#a79bc5!important;color:#665883!important}.kind-terrain{background:#f5eee4!important;border-color:#c8aa82!important;color:#7b6247!important}.kind-badges{background:#f5e9eb!important;border-color:#c7a0a9!important;color:#885d66!important}.heights{display:flex;flex-wrap:wrap;gap:8px}.heights label{border:1px solid #d8e3d8;border-radius:8px;padding:7px;margin:3px!important}.heights input{display:inline;width:auto;margin:0 5px 0 0}fieldset{border:0;padding:0}fieldset legend{font-size:12px;font-weight:700;color:#547261}@media(max-width:650px){.weeknav strong{width:100%}}
.activitychecks{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 15px}.activitychecks label{border:1px solid #d7e3d6;border-radius:8px;padding:7px;font-size:12px}.activitychecks input{margin:0 5px 0 0}#policyHorse,#eActivity,#leaseHorse{width:100%;padding:11px;border:1px solid #d7e3d6;border-radius:8px;margin:5px 0 12px}
.app{display:none}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px}.login-box{width:100%;max-width:440px}.login-box input,.login-box label{display:block;width:100%}.login-box label{font-size:12px;margin:12px 0}.login-box input{margin:5px 0}.error{color:#a05242;font-size:13px;margin:10px 0}.notify{padding:10px 15px;border-radius:8px;background:#fff4de;margin-bottom:15px;color:#805f38}.field{display:block;font-size:12px;margin:10px 0}.field input,.field select{width:100%;margin-top:4px;padding:9px;border:1px solid #d7e2d4;border-radius:8px}dialog{max-height:90vh;overflow:auto;max-width:600px}#loginMode{display:flex;gap:8px}.row{display:flex;gap:8px;flex-wrap:wrap}.row label{font-size:12px}#detail .entry select{min-width:130px}.account{font-size:12px}.side-name{padding:15px;color:#bfdbc9;font-size:12px}
@media(max-width:650px){.app{grid-template-columns:1fr}}
/* Phone layout: readable day view with the full week one tap away. */
.main{min-width:0}.entry>span{min-width:0;overflow-wrap:anywhere}.actions{flex-wrap:wrap}button,select,input{font:inherit}button:focus-visible,summary:focus-visible{outline:3px solid #94b9a0;outline-offset:3px}summary{cursor:pointer;font-weight:600;padding:5px 0}.mobile-days{display:none}.entry small{line-height:1.6}#personActivity{scroll-margin-top:20px}
@media(max-width:650px){
 body{font-size:14px}.app{grid-template-columns:minmax(0,1fr);min-height:100dvh}.app[style*="none"]{display:none!important}
 aside{position:relative;padding:15px 18px;background:#1e493e;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.logo{padding:0;font-size:24px;white-space:nowrap}.side-name{padding:0;font-size:11px;max-width:55%;overflow-wrap:anywhere;text-align:right;color:#d4e4d9}.stable,.foot{display:none}
 nav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#1e493e;display:flex;gap:4px;overflow-x:auto;padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #20332e18}nav button{flex:1 0 auto;min-height:46px;margin:0;text-align:center;font-size:13px;padding:10px 13px;border-radius:10px}nav button.active{background:#426c5d}
 .main{padding:18px 16px calc(96px + env(safe-area-inset-bottom));margin:0;max-width:100%}.top{align-items:flex-start;gap:12px;margin-bottom:20px}.top>span:first-child{display:none}.account{display:flex;width:100%;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}.account #accountName{flex:1;min-width:50%}.account #liveStatus{flex-basis:100%;order:3;font-size:11px}.account button{padding:8px 12px;min-height:40px;margin-left:auto}
 .heading{margin-bottom:20px}h1{font-size:30px;line-height:1.15}h2{font-size:23px}.heading p{margin-top:7px;font-size:13px;line-height:1.5}.eyebrow{font-size:10px}.stats{gap:10px}.stat{padding:15px;min-width:0}.stat strong{font-size:30px;margin-top:8px}.stat small{font-size:12px}.card{padding:18px;border-radius:14px}.card>p{line-height:1.6;margin:10px 0}.entry{gap:10px;padding:15px 0}.entry>span{width:100%}.entry b{font-size:15px}.entry small{font-size:12px;color:#647e70}.entry .actions{justify-content:flex-start;width:100%}.entry select,.entry input{max-width:100%;min-height:44px}.primary,.secondary{min-height:44px}.entry>button{width:100%}.field{font-size:13px}input,select,textarea{font-size:16px!important;min-height:44px}.row label,.heights label,.activitychecks label{display:flex;align-items:center;min-height:44px}input[type="checkbox"]{min-height:20px;width:20px;height:20px;flex-shrink:0;accent-color:#285747}
 .legend{gap:5px}.legend span{font-size:10px;padding:5px 7px}.weeknav{display:grid;grid-template-columns:44px 1fr 44px auto;gap:6px;margin:16px 0 12px}.weeknav strong{grid-column:1/-1;width:auto;margin:0;font-size:14px;text-align:center;grid-row:1}.weeknav button{padding:9px}.weeknav #prevWeek{grid-column:1}.weeknav #nextWeek{grid-column:3}.weeknav #todayWeek{grid-column:4}
 .mobile-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:12px}.mobile-day{border:1px solid #dce6db;background:white;color:#657e70;border-radius:11px;padding:8px 0;min-height:57px}.mobile-day small,.mobile-day b{display:block}.mobile-day small{font-size:10px;text-transform:capitalize}.mobile-day b{font-size:17px;margin-top:3px}.mobile-day.active{background:#285747;color:white;border-color:#285747;box-shadow:0 3px 10px #28574720}
 .weekscroll{overflow:visible}.weekgrid{display:block;min-width:0}.weekcol{display:none;min-height:180px}.weekcol.mobile-selected{display:block}.weekcol header{padding:14px 16px;font-size:14px}.weekbody{padding:10px}.weekevent{padding:14px;font-size:14px;border-radius:10px;margin:0 0 9px;min-height:86px}.weekevent b{font-size:13px;margin-bottom:6px}.weekevent span{font-size:15px}.weekevent small{font-size:12px;line-height:1.6}.empty{padding:20px 8px;font-size:13px;text-align:center}
 dialog{width:calc(100% - 20px);max-height:calc(100dvh - 30px);padding:20px;border-radius:16px}dialog .actions{position:sticky;bottom:-20px;background:white;padding:12px 0 16px;margin-bottom:-10px}dialog .actions button{flex:1}.login-screen{padding:20px 16px;min-height:100dvh}.login-box{padding:24px}.notify{line-height:1.5;font-size:13px}#detail,#personActivity{scroll-margin-top:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.top{justify-content:flex-end}.account{display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:flex-end}.account #liveStatus{flex-basis:100%;text-align:right;order:3}.avatar-photo{width:48px;height:48px;flex:0 0 48px;border-radius:50%;object-fit:cover;border:2px solid #e1eadf;display:inline-flex;align-items:center;justify-content:center}.avatar-placeholder{background:#e7efe3;color:#315d49;font-size:17px;font-weight:700}.identity{display:flex;align-items:center;gap:12px;min-width:0}.identity>span{min-width:0}.profile-avatar-row{display:flex;align-items:center;gap:18px;margin-bottom:20px}.profile-avatar-row .avatar-photo,#profileAvatar .avatar-photo{width:96px;height:96px;flex-basis:96px}.profile-avatar-row button{margin:4px 4px 4px 0}.profile-avatar-row p{font-size:12px;margin-top:8px}.danger{color:#9c4b40;border-color:#dec7c0}button:disabled{opacity:.5;cursor:not-allowed}#avatarCanvas{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;margin:20px auto;border-radius:50%;touch-action:none;cursor:grab;border:3px solid #d6e4d5}#avatarCanvas:active{cursor:grabbing}#avatarZoom{accent-color:#285747}.identity .avatar-photo{flex-shrink:0}
@media(max-width:650px){.account{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;gap:6px 10px}.account #accountName{font-size:11px;overflow-wrap:anywhere}.account #liveStatus{grid-column:2/4;text-align:left;order:initial}.account #accountAvatar{grid-column:1;grid-row:1/3}.account #logout{grid-column:3;grid-row:1}.profile-avatar-row{align-items:flex-start;flex-wrap:wrap}.entry>.identity{width:100%}.entry>.identity>span{width:auto}.profile-avatar-row .avatar-photo{width:80px;height:80px;flex-basis:80px}nav button{font-size:12px;padding:10px}.top{margin-bottom:20px}}

.stable-contact{margin-top:auto;padding:25px 12px 10px;border-top:1px solid #ffffff20;font-size:12px}.stable-contact>a{display:flex;gap:8px;align-items:center;color:#d7e6dc;text-decoration:none;margin:12px 0;overflow-wrap:anywhere}.stable-contact>a:hover{text-decoration:underline}.stable-social,.contact-social{display:flex;gap:8px;flex-wrap:wrap}.social-square{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;border:1px solid #d7e3d8;border-radius:8px;background:#f4f7f0;color:#315d49;text-decoration:none}.social-square svg{width:21px;height:21px}.social-square:hover{background:#e2edde}.social-square:focus-visible{outline:3px solid #94b9a0;outline-offset:2px}.stable-social .social-square{background:#315d50;border-color:#537668;color:#fff}.stable-social .social-square:hover{background:#426c5d}.contact-phone{display:block;color:#315d49;text-decoration:none;margin-top:6px;padding:5px 0;min-height:30px}.contact-phone:hover{text-decoration:underline}.contact-social:empty{display:none}#contactsList{margin-top:15px}
@media(max-width:650px){aside{flex-wrap:wrap}.stable-contact{width:100%;margin-top:8px;padding:12px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}.stable-contact>a{margin:0;font-size:11px;min-height:30px}.stable-social{width:100%;gap:8px}.stable-social .social-square{width:36px;height:36px;min-width:36px}.contact-social .social-square{width:44px;height:44px}.contact-entry{flex-direction:row;align-items:center;flex-wrap:wrap}.contact-entry .identity{flex:1 1 190px}.contact-phone{font-size:14px;min-height:40px}.contact-social{margin-left:60px}}

.whatsapp-check{display:flex!important;align-items:center;gap:10px;font-size:13px;margin:16px 0;min-height:44px}.whatsapp-check input{width:20px;min-height:20px;height:20px;margin:0;accent-color:#285747}

.phone-whatsapp{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:12px 0}.phone-whatsapp>label:first-child{flex:1;min-width:180px}.phone-whatsapp .whatsapp-check{flex:0 0 auto;justify-content:flex-start;margin:0;white-space:nowrap}.phone-whatsapp .whatsapp-check input{display:inline-block;width:20px!important;flex:0 0 20px;min-height:20px!important;margin:0!important}.url-prefix{display:flex;align-items:center;border:1px solid #d7e2d4;border-radius:8px;margin-top:4px;overflow:hidden;background:#f3f6ef}.url-prefix>span{padding:10px;color:#567062;white-space:nowrap;font-weight:400}.url-prefix input{border:0!important;border-left:1px solid #d7e2d4!important;border-radius:0!important;margin:0!important;min-width:0;flex:1;background:white}input[readonly]{background:#f3f6ef}

.phone-whatsapp .whatsapp-check{width:auto!important}

:root{color-scheme:light}.brand{width:170px;margin:0 auto 26px}.brand img{display:block;width:100%;height:auto;background:white;border-radius:12px}.brand-caption{margin-top:10px;width:100%;font-family:system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1.6;letter-spacing:3px;text-transform:uppercase}.brand-caption span{display:block;text-align:justify;text-align-last:justify}.login-box .brand{width:180px;margin:0 auto 25px;color:#285747}.account-actions{display:flex;flex-direction:column;align-items:center;gap:6px}.theme-switch{display:flex;gap:5px}.theme-switch button{width:40px;height:36px;min-height:36px;padding:8px;border:1px solid #d3dfd1;border-radius:8px;background:#fff;color:#5e7769;display:grid;place-items:center}.theme-switch button[aria-pressed="true"]{background:#e4efdc;border-color:#789d7c;color:#285747}.theme-switch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"]{color-scheme:dark;--bg:#131d1a;--green:#162f27;--line:#35463c;--mute:#adbdaf}
html[data-theme="dark"] body{color:#e1e9df}html[data-theme="dark"] aside{background:#162f27}html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] .weekcol,html[data-theme="dark"] dialog{background:#202c25;border-color:#35463c;color:#e1e9df;box-shadow:0 5px 20px #00000015}html[data-theme="dark"] p,html[data-theme="dark"] .entry small,html[data-theme="dark"] .weekcol header,html[data-theme="dark"] .formgrid label,html[data-theme="dark"] .card label,html[data-theme="dark"] dialog label,html[data-theme="dark"] fieldset legend{color:#adbdaf}html[data-theme="dark"] .entry,html[data-theme="dark"] .weekcol header{border-color:#35463c}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .secondary,html[data-theme="dark"] .mobile-day,html[data-theme="dark"] .social-square,html[data-theme="dark"] .theme-switch button{background:#26362d;border-color:#49604f;color:#e1e9df}html[data-theme="dark"] .primary,html[data-theme="dark"] .mobile-day.active{background:#4b7859;color:white}html[data-theme="dark"] .theme-switch button[aria-pressed="true"]{background:#45634c;border-color:#8cac86;color:#fff}html[data-theme="dark"] .theme-switch button:hover{background:#37523e}html[data-theme="dark"] .avatar-photo{border-color:#49604f}html[data-theme="dark"] .avatar-placeholder{background:#344d3a;color:#dde9d5}html[data-theme="dark"] .week-today{background:#263a2a;border-color:#71976b}html[data-theme="dark"] .kind-group{background:#304833!important;border-color:#88ac85!important;color:#dfebdb!important}html[data-theme="dark"] .kind-single{background:#3b4430!important;border-color:#a2af7e!important;color:#e2e9cb!important}html[data-theme="dark"] .kind-away{background:#29434a!important;border-color:#80a8b0!important;color:#d8e8ec!important}html[data-theme="dark"] .kind-competition{background:#3b3450!important;border-color:#a699c3!important;color:#e7dff4!important}html[data-theme="dark"] .kind-terrain{background:#493f30!important;border-color:#c4a27b!important;color:#eddfc9!important}html[data-theme="dark"] .kind-badges{background:#4a333c!important;border-color:#be919f!important;color:#eed9e0!important}html[data-theme="dark"] .weekevent small{color:inherit;opacity:.85}html[data-theme="dark"] .notify{background:#4a4029;color:#f0dfb8}html[data-theme="dark"] .error,html[data-theme="dark"] .danger{color:#efaa9d}html[data-theme="dark"] .url-prefix,html[data-theme="dark"] input[readonly]{background:#1a271f;border-color:#49604f}html[data-theme="dark"] .url-prefix>span{color:#adbdaf}html[data-theme="dark"] dialog .actions{background:#202c25}html[data-theme="dark"] .login-box .brand{color:#d7e6cc}html[data-theme="dark"] .contact-phone{color:#b6d7ad}html[data-theme="dark"] .activitychecks label,html[data-theme="dark"] .heights label{border-color:#49604f}html[data-theme="dark"] .account #liveStatus{color:#adbdaf!important}
@media(max-width:650px){aside .brand{width:105px;margin:0}.brand-caption{font-size:11px;line-height:1.4;letter-spacing:2px;margin-top:6px}.brand img{border-radius:8px}.account .account-actions{grid-column:3;grid-row:1/3;gap:5px}.account #liveStatus{grid-column:2;grid-row:2}.account #logout{grid-column:auto;grid-row:auto;margin:0}.theme-switch button{width:36px;height:36px;min-height:36px;padding:7px}.account-actions #logout{min-height:40px}.login-box .brand{width:150px}.login-box .brand-caption{font-size:14px}html[data-theme="dark"] nav{background:#162f27}}

.brand-caption span{display:flex;justify-content:space-between;text-align:left;letter-spacing:0}.brand-caption i{font-style:normal}

.app-credit{margin-top:22px;padding-top:14px;border-top:1px solid #ffffff18;font-size:10px;letter-spacing:1.3px;line-height:1.8;color:#bfd0c3}.app-credit span,.app-credit small{display:block}.app-credit small{font-size:10px;letter-spacing:.3px;color:#98b1a0}.login-box .app-credit{margin-top:26px;text-align:center;border-color:var(--line);color:#6e8274}.login-box .app-credit small{color:#8a9b8d}html[data-theme="dark"] .login-box .app-credit{color:#b5c5b8}html[data-theme="dark"] .login-box .app-credit small{color:#92aa98}@media(max-width:650px){.stable-contact .app-credit{width:100%;margin-top:4px;padding-top:10px;font-size:9px}.stable-contact .app-credit small{font-size:9px}}

.sidebar-account{margin-top:auto;border-top:1px solid #ffffff25;padding:18px 10px;color:#dce8df}.sidebar-account .account{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;justify-content:initial;width:100%;font-size:12px}.sidebar-account #accountAvatar{grid-column:1;grid-row:1}.sidebar-account #accountName{grid-column:2;grid-row:1;overflow-wrap:anywhere;line-height:1.6;font-size:12px}.sidebar-account #liveStatus{grid-column:1/-1;grid-row:2;text-align:left;order:initial;font-size:10px;color:#b3c8b8!important}.sidebar-account .account-actions{grid-column:1/-1;grid-row:3;flex-direction:row;justify-content:space-between;width:100%;gap:6px}.sidebar-account #logout{margin:0;min-height:38px;padding:8px 10px;font-size:12px}.sidebar-account .theme-switch button{width:34px;height:34px;min-height:34px;padding:6px}.sidebar-account .avatar-photo{border-color:#6a8773}.sidebar-account .secondary,.sidebar-account .theme-switch button{background:#315d50;border-color:#537668;color:#fff}.sidebar-account .theme-switch button[aria-pressed="true"]{background:#54785e;border-color:#99b797;color:white}.stable-contact{margin-top:0}.main{align-self:start;margin-top:0;padding-top:25px}html[data-theme="dark"] .sidebar-account .secondary,html[data-theme="dark"] .sidebar-account .theme-switch button{background:#263e2e;border-color:#49604f;color:#e1e9df}html[data-theme="dark"] .sidebar-account .theme-switch button[aria-pressed="true"]{background:#45634c}
@media(max-width:650px){.sidebar-account{width:100%;margin-top:14px;padding:14px 0;border-bottom:1px solid #ffffff25}.sidebar-account .account{grid-template-columns:48px minmax(0,1fr) auto;gap:6px 10px}.sidebar-account #accountAvatar{grid-row:1/3}.sidebar-account #accountName{grid-column:2;grid-row:1;font-size:11px}.sidebar-account #liveStatus{grid-column:2;grid-row:2}.sidebar-account .account-actions{grid-column:3;grid-row:1/3;flex-direction:column;width:auto}.sidebar-account #logout{grid-column:auto;grid-row:auto}.stable-contact{border-top:0;margin-top:0;padding-top:0}.main{padding-top:18px}}

/* v0.1.2: mobile page flows from brand and tiles to content and footer. */
@media(max-width:650px){
 .app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;min-height:100dvh}
 aside{display:contents;padding:0;position:static}
 aside>.brand{grid-row:1;justify-self:center;width:126px;margin:20px auto 16px;color:#285747}
 aside>.brand .brand-caption{font-family:Georgia,serif;font-size:17px;line-height:1.3;letter-spacing:0;margin-top:8px;font-weight:600}
 aside>nav{grid-row:2;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:auto;margin:0 16px;padding:0;overflow:visible;background:transparent;box-shadow:none;z-index:auto}
 aside>nav button{width:100%;min-height:64px;border:1px solid #dfe8dc;background:white;color:#315d49;font-size:14px;font-weight:600;text-align:center;border-radius:13px;padding:14px 8px;white-space:normal;margin:0;box-shadow:0 3px 12px #24493406}
 aside>nav button.active{background:#285747;color:white;border-color:#285747}
 aside>.sidebar-account{grid-row:3;width:auto;margin:18px 16px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#20332e}
 .sidebar-account .account{grid-template-columns:44px minmax(0,1fr) auto;gap:5px 9px}
 .sidebar-account .avatar-photo{width:44px;height:44px;flex-basis:44px;border-color:#d8e4d2}
 .sidebar-account #accountName{color:#315d49;font-size:11px;line-height:1.5}
 .sidebar-account #liveStatus{color:#758a7c!important;font-size:10px}
 .sidebar-account #logout{min-height:36px;padding:6px 8px;font-size:12px}
 .sidebar-account .secondary,.sidebar-account .theme-switch button{background:white;border-color:#d3dfd1;color:#315d49}
 .sidebar-account .theme-switch button[aria-pressed="true"]{background:#e4efdc;color:#285747;border-color:#789d7c}
 .sidebar-account .theme-switch button{width:31px;height:31px;min-height:31px;padding:5px}
 .main{grid-row:4;padding:22px 16px 8px;align-self:start;min-width:0;margin:0}
 .heading{margin-bottom:18px}h1{font-size:29px}.card{box-shadow:0 4px 18px #24493407}.stats{gap:10px}
 aside>.stable-contact{grid-row:5;align-self:end;width:auto;margin:8px 16px 0;padding:20px 0 20px;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:8px;color:#315d49}
 .stable-contact>a{color:#315d49;font-size:13px;min-height:32px;margin:0}
 .stable-contact .stable-social{justify-content:center;width:auto;gap:10px;margin:10px 0 4px}
 .stable-contact .social-square{width:44px;height:44px;min-width:44px;background:white;border-color:#d8e3d3;color:#315d49;border-radius:10px}
 .stable-contact .app-credit{width:100%;text-align:center;color:#7a8b7e;font-size:10px;margin-top:8px;padding-top:13px;border-color:var(--line)}
 .stable-contact .app-credit small{color:#8a9b8d;font-size:10px}
 html[data-theme="dark"] aside>.brand{color:#e1e9df}
 html[data-theme="dark"] aside>nav{background:transparent}
 html[data-theme="dark"] aside>nav button{background:#202f26;color:#d7e7d2;border-color:#3c5142;box-shadow:0 3px 12px #00000015}
 html[data-theme="dark"] aside>nav button.active{background:#4b7859;border-color:#80a778;color:white}
 html[data-theme="dark"] .sidebar-account #accountName{color:#e1e9df}
 html[data-theme="dark"] .sidebar-account #liveStatus{color:#adbdaf!important}
 html[data-theme="dark"] .sidebar-account .secondary,html[data-theme="dark"] .sidebar-account .theme-switch button{background:#263e2e;border-color:#49604f;color:#e1e9df}
 html[data-theme="dark"] .sidebar-account .theme-switch button[aria-pressed="true"]{background:#45634c;border-color:#8cac86}
 html[data-theme="dark"] .stable-contact>a{color:#c4d9be}
 html[data-theme="dark"] .stable-contact .social-square{background:#26362d;border-color:#49604f;color:#e1e9df}
 html[data-theme="dark"] .stable-contact .app-credit{color:#adbdaf}
 html[data-theme="dark"] .stable-contact .app-credit small{color:#92aa98}
}

.google-signin{display:block;text-align:center;text-decoration:none;border:1px solid #d6dfd5;background:white;color:#315d49;padding:12px 16px;border-radius:10px;margin:16px 0;font-weight:600;min-height:44px}html[data-theme="dark"] .google-signin{background:#26362d;border-color:#49604f;color:#e1e9df}

.person-card{padding:20px 22px;display:grid;grid-template-columns:minmax(250px,1fr) minmax(260px,1fr);gap:20px;align-items:center}.people-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-start}.role-badge{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;border-radius:9px;background:#edf3e8;color:#4b6b50;font-size:12px;border:1px solid #dce7d7}.people-actions select{max-width:170px;min-height:42px}html[data-theme="dark"] .role-badge{background:#304833;color:#dfebdb;border-color:#49604f}@media(max-width:900px){.person-card{grid-template-columns:minmax(0,1fr);gap:14px}}@media(max-width:650px){.person-card{padding:18px;display:grid}.people-actions{gap:8px}.people-actions button{flex:1 1 180px}.people-actions select{max-width:100%}}

.people-explanation{font-size:12px;line-height:1.6;margin:0 0 14px;color:var(--mute)}
