
:root{--navy:#071d3a;--orange:#f97316;--green:#16a34a;--border:#dbe3ef;--red:#dc2626;--blue:#2563eb}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;background:#f8fafc;color:#0f172a}
.app{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.sidebar{background:#092039;color:#edf3fd;padding:22px 15px}
.sidebar .nav{display:grid;align-content:start;gap:4px}
.sidebar .navBtn{width:100%;margin:0;border:0;border-inline-start:3px solid transparent;border-radius:6px;background:transparent;color:inherit;text-align:left;padding:11px 13px;min-height:44px;font:600 .94rem/1.35 system-ui,sans-serif;cursor:pointer}
.sidebar .navBtn:hover{background:#132b45}
.sidebar .navBtn.active{background:#19344f;color:#fff;border-inline-start-color:#ff8a37;font-weight:700}
.sidebar .navBtn:focus-visible{outline:2px solid #ffae73;outline-offset:2px}
.sidebar #signOut{margin-top:10px;color:#c5d3e3}
.main{padding:22px}
.page{display:none}.page.active{display:block}
.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
.left{display:flex;align-items:center;gap:12px}
h1{font-size:34px;margin:0 0 14px;font-weight:900}
#calendarPage h1{margin:0}
.btn,.icon{border:1px solid var(--border);background:white;border-radius:9px;padding:11px 14px;font-weight:900;cursor:pointer}
.btn.full{width:100%;margin-bottom:12px}
.icon{width:46px;font-size:20px}
.orange{background:var(--orange);color:white}.green{background:var(--green);color:white}.red{background:var(--red);color:white}
.layout{display:grid;grid-template-columns:1fr 480px;gap:18px}
.cal,.panel,.card,.editPage{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 8px 25px rgba(15,23,42,.06)}
.pad{padding:20px}
.head,.calendarWeek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendarWeek{align-content:start;min-height:130px;border-bottom:1px solid var(--border);background:white}
.calendarWeek>.day{grid-row:1;min-width:0;border-bottom:0}
.calendarWeek.hasMultiDayEvents{align-content:stretch;isolation:isolate}
.calendarWeek.hasMultiDayEvents>.day{min-height:0}
.calendarWeek.hasMultiDayEvents>.day:not(.dayBackdrop){position:relative;z-index:1;background:transparent;border-right:0;outline:0}
.calendarWeek>.dayBackdrop{grid-row:1 / -1;z-index:0;padding:0}
.calendarWeek>.multiBar{z-index:2;align-self:start;margin-top:4px}
.dow{padding:13px;text-align:center;font-weight:900;border-right:1px solid var(--border);border-bottom:1px solid var(--border);font-size:13px}
.dow.sun{color:red;background:#fff1f2;border-top:3px solid red}
.dow.sat{color:blue;background:#eff6ff;border-top:3px solid blue}
.day{min-height:130px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px;cursor:pointer;background:white}
.day:hover{outline:2px solid var(--orange);outline-offset:-2px}
.day.sun{background:#fffafa}.day.sat{background:#f7fbff}.day.other{background:#f8fafc;color:#9ca3af}.day.sel{outline:3px solid var(--orange);outline-offset:-3px}
.num{font-weight:900;font-size:16px;margin-bottom:7px}
.day.sun .num{color:red}.day.sat .num{color:blue}
.chip{border-radius:7px;padding:6px;margin-bottom:6px;font-size:12px;border:1px solid;line-height:1.25;overflow:hidden}
.chip.training{background:#fff7ed;border-color:#fed7aa;color:#7c2d12}
.chip.game{background:#f0fdf4;border-color:#bbf7d0;color:#14532d}
.chip.event{background:#f3e8ff;border-color:#c084fc;color:#581c87}
.chip.holiday{background:#dbeafe;border-color:#60a5fa;color:#1e3a8a;font-weight:900}
.chip b{display:block}
.multiBar{height:28px;min-width:0;margin:0 4px;border-radius:8px;background:#f3e8ff;border:2px solid #c084fc;color:#581c87;font:800 12px system-ui,sans-serif;text-align:left;padding:0 7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.panelHead{padding:20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.panelHead h2{margin:0;font-size:22px}
.panelBody{padding:16px}.section{font-weight:900;margin:14px 0;display:flex;justify-content:space-between;align-items:center}
.eventCard{border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:9px;display:grid;grid-template-columns:1fr auto;gap:10px;cursor:pointer}
.eventCard.training{border-left:5px solid var(--orange)}
.eventCard.game{border-left:5px solid var(--green)}
.eventCard.event{border-left:5px solid #a855f7}
.eventTitle{font-weight:900}.meta{color:#334155;font-size:14px;line-height:1.35}
.small{border:1px solid var(--border);background:#f8fafc;border-radius:7px;padding:8px;cursor:pointer;font-weight:900}
.previewBox{border:1px solid var(--border);border-radius:12px;padding:14px;margin:12px 0 18px;background:#f8fafc}
.previewBox h3{margin:0 0 10px;font-size:20px}.previewItem{margin:9px 0}.previewItem b{display:block;margin-bottom:3px}
.previewActions{display:flex;gap:8px;margin-top:12px}
.editPage{max-width:850px;margin:0 auto;padding:24px}.editActions{display:flex;gap:10px;margin-top:16px}
label{display:block;font-size:13px;font-weight:900;margin:12px 0 5px}
input,textarea,select{width:100%;border:1px solid var(--border);border-radius:8px;padding:10px;font-family:Arial;font-size:14px}
textarea{min-height:65px;resize:vertical}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.searchBox{margin:16px 0 18px}.searchBox input{font-size:16px;padding:13px;border:2px solid var(--border)}
table{width:100%;border-collapse:collapse;background:white}
th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
th{background:var(--navy);color:white}
.errorBox{background:#fee2e2;color:#7f1d1d;border:1px solid #fecaca;border-radius:12px;padding:16px;margin-bottom:16px;display:none;white-space:pre-wrap}
.muted{color:#475569;font-weight:700}.iconPreview{font-size:28px;margin-top:8px}.copyList{margin-top:16px}
@media(max-width:1200px){.app{grid-template-columns:1fr}.sidebar{display:none}.layout{grid-template-columns:1fr}}

.objectiveBtn{background:#b91c1c;color:white;border-color:#b91c1c}
.objectiveCard h3{margin:0 0 4px;font-size:20px}.objectiveMonth{font-weight:900;color:#0f766e}
.monthlyFocus{margin:10px 0 4px;border:1px solid #99f6e4;border-left:5px solid #0f766e;background:#f0fdfa;border-radius:9px;padding:12px;white-space:pre-wrap}
.monthlyFocus.empty{border-color:var(--border);border-left-color:#94a3b8;background:#f8fafc;color:#64748b}

[hidden]{display:none!important}
.sidebar{min-width:0}
.login{max-width:420px;margin:8vh auto;padding:24px;background:white;border-radius:16px}
.login button,#importButton{margin-top:12px}
.curriculumCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;align-items:start}
.curriculumCard{background:white;padding:16px;border:1px solid #dce3ee;border-radius:12px}
.curriculumCard summary{font-weight:700;cursor:pointer}
.curriculumCard li{margin:.4em 0}
@media(max-width:1200px){.sidebar{display:block;position:static;height:auto;padding:12px}.sidebar .nav{display:flex;flex-wrap:wrap;gap:6px}.sidebar .navBtn{width:auto;min-width:0;max-width:100%}.sidebar #signOut{margin-top:0}}
@media(max-width:650px){.main{padding:10px;min-width:0}.dow{font-size:9px;overflow:hidden}.cal .grid .day{min-width:0;padding:3px}.layout{min-width:0}.panel{min-width:0}.two{grid-template-columns:1fr}}

.curriculumHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.curriculumTabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:18px}
.curriculumTabs button{background:transparent;border:0;border-bottom:3px solid transparent;padding:11px 20px;font:inherit;font-weight:700;color:#475569;cursor:pointer}
.curriculumTabs button[aria-selected="true"]{border-bottom-color:#ea580c;color:#071d3a;background:#fff7ed;border-radius:8px 8px 0 0}
.curriculumEntry{border:1px solid var(--border);border-radius:12px;background:white;padding-bottom:10px;min-width:0;overflow-wrap:anywhere}
#curriculumEditor{width:min(580px,calc(100% - 24px));max-height:calc(100% - 24px);padding:22px;border:1px solid var(--border);border-radius:14px;color:#071d3a}
#curriculumEditor::backdrop{background:#071d3a88}
#curriculumEditor h2{margin:0 0 12px}
#curriculumEditor textarea{min-height:0;resize:vertical}
#curriculumEditError{color:#991b1b}

.curriculumPhase{margin:16px 0;background:#eef3f9;border:1px solid #dce5ef;border-radius:14px;overflow:hidden}
.curriculumPhase>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:15px 18px;background:#e4edf8;color:#071d3a;font-weight:800;list-style:none}
.curriculumPhase>summary::-webkit-details-marker{display:none}
.curriculumPhase>summary::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-right:3px}
.curriculumPhase[open]>summary::before{transform:rotate(45deg)}
.phaseCount{margin-left:auto;font-size:13px;font-weight:600;color:#475569;white-space:nowrap}
.curriculumPhase>.curriculumCards{padding:14px;align-items:stretch}
.curriculumEntry{border-top:3px solid #ea580c;padding:16px}
.curriculumEntry h3{margin:0 0 10px;font-size:18px}
.curriculumEntry ul{margin:10px 0;padding-left:20px}
.curriculumEntry li+li{margin-top:6px}
.curriculumNote{color:#475569;white-space:pre-wrap}
.curriculumTags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.curriculumTags span{padding:3px 8px;border-radius:6px;background:#eaf1fb;color:#17365d;font-size:13px}
#curriculumEditorCards fieldset{min-width:0;margin:0 0 16px;padding:12px;border:1px solid var(--border);border-radius:10px}
#curriculumEditorCards legend{padding:0 6px;font-weight:700}
.curriculumActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.curriculumEditCard{margin-top:12px}

.hubIdentity{display:flex;justify-content:center;align-items:center}
.hubCrest{display:block;max-width:100%;height:auto}
.sidebarIdentity{margin:0 0 18px}
.sidebarIdentity .hubCrest{width:192px}
.loginIdentity{margin:0 0 14px}
.loginIdentity .hubCrest{width:208px}
@media(max-width:1200px){
  .sidebarIdentity{justify-content:flex-start;margin:0 0 8px}
  .sidebarIdentity .hubCrest{width:92px}
}

.plannerSearchResults{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.plannerSearchResult{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px 14px;text-align:left;color:#071d3a;font:inherit;cursor:pointer}
.plannerSearchResult:hover,.plannerSearchResult:focus-visible{background:#f2f6fc;border-color:#6685a8}
.plannerSearchText{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.plannerResultType{padding:4px 8px;border-radius:6px;background:#e7effa;color:#123a5c;font-size:14px}
.plannerEventDetails{box-sizing:border-box;width:min(640px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid var(--border);border-radius:14px;padding:20px;color:#071d3a}
.plannerEventDetails::backdrop{background:#071d3a88}
.plannerDetailHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.plannerDetailHeader h2{margin:0;overflow-wrap:anywhere}
.plannerDetailFields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.plannerDetailFields div{background:#f2f6fc;padding:10px;border-radius:8px}
.plannerDetailFields dt{font-weight:700;margin-bottom:4px}
.plannerDetailFields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.plannerDelete{color:#991b1b;border-color:#f2b4b4}
#plannerEventError{color:#991b1b}

#calendarPage .top .left{flex-wrap:wrap}
.calendarObjectives{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.calendarObjectives:empty{display:none}
.calendarObjective{display:grid;gap:3px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#991b1b;padding:7px 10px;text-align:left;max-width:280px;font:inherit;overflow-wrap:anywhere}
.calendarObjective strong{font-size:.875rem}
.calendarObjective span{font-size:.875rem}
.trainingFormHeader{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-bottom:8px}
#addObjectiveBtn{white-space:normal}
.objectiveResultType{background:#fef2f2;color:#991b1b}

.dayContent{display:flow-root;overflow-wrap:anywhere}
