/* Parallel view: all layout rules are scoped to the new shell. */
.next-shell{--next-red:#a91229;min-height:100dvh;background:#faf7f6}
.next-rail{position:fixed;inset:0 auto 0 0;width:216px;background:#fff;border-right:1px solid #e7dfdc;padding:30px 18px;display:flex;flex-direction:column;z-index:45}
.next-rail .brand{font-size:18px}.next-rail .brand img{width:40px;height:44px;object-fit:contain}
.next-preview{font-size:10px;letter-spacing:2px;color:#9c7775;margin:26px 12px 14px}.next-rail nav{display:grid;gap:8px}.next-rail nav a{display:flex;gap:12px;align-items:center;padding:16px;border-radius:14px;color:#615958}.next-rail nav a[aria-current]{background:#f9e4e6;color:#a91229;font-weight:700}.next-return{margin-top:auto;background:transparent;padding:16px 8px;text-align:left;color:#766b69;font-size:13px}
.next-main{margin-left:216px}.next-header{position:sticky;top:0;background:#faf7f6f5;backdrop-filter:blur(12px);z-index:30;padding:20px 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee5e1}.next-header small{display:block;font-size:10px;letter-spacing:1.5px;margin-bottom:6px}.next-header strong{font-size:20px}.next-message{padding:12px}.next-content{max-width:1440px;padding:32px 36px;margin:auto}.next-bottom{display:none}
.next-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.next-intro .eyebrow{margin-bottom:12px}.next-intro h1{font-size:38px;margin-bottom:12px}.next-intro p{color:#80716e}.next-task{background:#fff;border:1px solid #eadbd7;border-radius:18px;padding:20px;display:flex;gap:16px;align-items:center;color:#9f142c;text-align:left;box-shadow:0 4px 12px #672c2110}.next-task strong{font-size:32px}.next-task span{max-width:130px}.next-task.is-active{background:#fae3e6}
.next-filters{margin-bottom:24px;display:grid;gap:12px}.next-filter-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.next-spacer{flex:1}.next-filters .btn{border-radius:12px;min-height:44px}.next-filter{border:1px solid #e7d9d5;border-radius:24px;padding:10px 18px;background:#fff;color:#665b58;min-height:44px}.next-filter.is-active{background:#a91229;color:white;border-color:#a91229}.next-filter-row input,.next-filter-row select{border:1px solid #e7d9d5;border-radius:12px;padding:12px;background:#fff;min-width:0;font-size:16px}.next-filter-row input{flex:1;min-width:160px}
.next-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.next-event{border:1px solid #e5dad7;border-radius:20px;padding:24px;background:#fff;box-shadow:0 3px 0 #d9c9c540;overflow-wrap:anywhere}.next-event-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;font-size:13px;color:#84736f}.next-event h3{font-size:21px;line-height:1.35;margin-bottom:12px}.next-event p{font-size:15px;color:#655754}.next-event .next-role{margin-top:10px;font-size:13px;color:#9c1830;font-weight:600}.next-response{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #f0e9e7;font-size:14px;flex-wrap:wrap}.next-event .response{min-height:44px;border-radius:24px;padding:10px 16px}.next-event .response.chosen{background:#a91229;color:white;border-color:#a91229}.next-event-foot{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:18px;font-size:13px;color:#7e6c67}.next-event-foot .action-link{font-size:14px}.next-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.next-calendar section>h3{font-size:16px;margin:12px 0}.next-calendar .next-event{margin-bottom:12px;padding:18px}
.next-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.next-hub-card{border:1px solid #e5dad7;border-radius:20px;background:#fff;padding:28px;display:flex;flex-direction:column;gap:16px}.next-hub-card>.icon{color:#a91229;width:26px;height:26px}.next-hub-card h2{font-size:23px}.next-hub-card p{color:#786b67;font-size:15px}.next-hub-card>span{margin-top:auto;color:#a91229;font-size:14px}.next-hub-card:hover{border-color:#ae5360;box-shadow:0 6px 20px #672c2110}
@media(max-width:1100px){.next-calendar,.next-hub{grid-template-columns:repeat(2,minmax(0,1fr))}.next-event-list{grid-template-columns:1fr}}
@media(max-width:760px){.next-rail{display:none}.next-main{margin:0}.next-header{padding:calc(14px + env(safe-area-inset-top)) 20px 14px}.next-header strong{font-size:20px}.next-content{padding:24px 18px calc(100px + env(safe-area-inset-bottom))}.next-intro{display:block}.next-intro h1{font-size:30px}.next-intro p{font-size:15px}.next-task{margin-top:20px;width:100%;padding:14px 18px}.next-task span{max-width:none}.next-task strong{font-size:25px}.next-filter-row{gap:8px}.next-filters .btn,.next-filter{font-size:14px;padding:10px 14px}.next-spacer{display:none}.next-filter-row select{width:100%}.next-event{padding:20px;border-radius:22px}.next-calendar,.next-hub{grid-template-columns:1fr}.next-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#f4eae8f5;backdrop-filter:blur(12px);border-top:1px solid #e6d8d4;z-index:50}.next-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:54px;font-size:11px;color:#6b5a56;border-radius:16px}.next-bottom a[aria-current]{background:#fbdcdf;color:#a91229;font-weight:700}.next-bottom .icon{width:23px;height:23px}.next-hub-card{padding:22px}.next-content .form-grid{min-width:0}}

.next-profile-tabs{margin-bottom:24px}
.next-month-nav{display:flex;align-items:center;justify-content:space-between;margin:20px 0}.next-month-nav h2{font-size:22px}.next-month-scroll{overflow:auto}.next-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:620px;gap:5px}.next-month>strong{text-align:center;padding:12px;color:#806c67;font-size:13px}.next-month-day{background:white;border:1px solid #eaded9;border-radius:10px;min-height:120px;padding:8px}.next-month-day>strong{font-size:13px;color:#8e746c}.next-month-day.is-today{border-color:#a91229}.next-month-day button{display:block;width:100%;font-size:12px;text-align:left;background:#f9e8eb;color:#8b1428;border-radius:6px;padding:7px;margin-top:6px;overflow-wrap:anywhere;min-height:44px}
@media(min-width:1200px){
 #modal.next-docked[open]{position:fixed;inset:100px 20px 20px auto;margin:0;width:calc((100vw - 260px)*.52);max-width:760px;max-height:calc(100dvh - 120px);height:calc(100dvh - 120px);border:1px solid #e5dad7;border-radius:20px;box-shadow:0 8px 28px #54211616;z-index:35;overflow:auto}
 body:has(#modal.next-docked[open]) .next-content{margin-right:calc((100vw - 260px)*.52 + 16px);padding-right:16px}
 body:has(#modal.next-docked[open]) .next-event-list{grid-template-columns:1fr}
 body:has(#modal.next-docked[open]) .next-intro{display:block}
 body:has(#modal.next-docked[open]) .next-task{margin-top:16px}
 #modal.next-docked .match-board{grid-template-columns:1fr}
}

.next-create{margin-bottom:18px}.next-create .btn{font-size:14px}.next-event-foot .action-link{white-space:normal;text-align:right}.next-event .response{font-weight:600}.next-event .response.yes:not(.chosen){color:#a91229;border-color:#c98994}.next-event-list+[data-agenda-more]{margin-top:20px}

.next-lineup-task{margin-bottom:18px}.next-bottom a{font-size:12px}

.next-search-tools{border:1px solid #e7d9d5;border-radius:12px;background:#fff;padding:12px 16px}.next-search-tools summary{cursor:pointer;font-size:14px;color:#7a6560}.next-search-tools[open] summary{margin-bottom:12px}
@media(max-width:760px){.next-intro .eyebrow{font-size:10px;margin-bottom:10px}.next-intro p{display:none}.next-intro{margin-bottom:20px}.next-task{margin-top:16px}.next-content{padding-top:20px}}

.next-event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0}.next-map-link{min-width:40px;min-height:40px;padding:8px}.next-training-summary{margin:16px 0}.next-training-summary .match-summary{margin-top:0}.next-training-summary .player-chips{flex-wrap:wrap}.next-event:has(.challenge-person:hover),.next-event:has(.challenge-person:focus-within){position:relative;z-index:2}

@media(max-width:650px){.next-training-summary .challenge-person-menu{bottom:calc(90px + env(safe-area-inset-bottom));max-height:65vh;overflow-y:auto}}

.next-event-actions .next-whatsapp{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;color:#167c3c;background:#edf8ef;border-color:#c4e4cc}.next-event-actions .next-whatsapp:hover{background:#d9f0df;border-color:#167c3c}.next-whatsapp svg{flex-shrink:0}
