/* Task-based layout: input, review, report. */
body{grid-template-rows:64px minmax(0,1fr);background:#f4f7fa}
header{padding:0 22px;gap:22px;position:relative;z-index:20;min-width:0}
header h1{font-size:21px;white-space:nowrap}header h1 small{font-size:11px}
.header-right{margin-left:auto;gap:14px}.header-right>span:first-child{display:none}#saved{font-size:12px;white-space:nowrap;color:#558086}
.app-navigation{display:flex;align-self:stretch;gap:4px;align-items:stretch;flex-shrink:0}
.app-navigation button{border:0;background:transparent;padding:0 18px;font-size:15px;border-radius:0;font-weight:650;border-bottom:3px solid transparent;color:#6c808c}
.app-navigation button.active{color:#076f71;border-bottom-color:#076f71;background:#f2f9f8}
.settings-menu{position:relative;font-size:13px}.settings-menu>summary{cursor:pointer;list-style:none;padding:8px 10px;color:#52717c;border:1px solid #d6e2e8;border-radius:7px;background:#fff}.settings-menu>summary::-webkit-details-marker{display:none}
.settings-popover{position:absolute;right:0;top:42px;min-width:195px;display:grid;gap:6px;padding:10px;background:#fff;border:1px solid #d1e0e5;border-radius:9px;box-shadow:0 10px 30px #23485722;z-index:25}
.settings-popover button{font-size:13px;border:0;text-align:left;padding:8px;background:#f5f9fa}
body[data-page]:not([data-page=input])>main{visibility:hidden;pointer-events:none}
main{gap:16px;padding:14px 18px;grid-template-columns:clamp(270px,23vw,310px) minmax(0,1fr)}
.lesson{border:1px solid #dce7ed;border-radius:12px;padding:14px;background:#fff}
.lesson-context{padding:0 0 12px;border-bottom:1px solid #dce8ec;margin-bottom:14px}.context-kicker{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#50727f;margin-bottom:7px}.context-kicker span:first-child{background:#e9f4f3;border-radius:4px;padding:2px 7px;color:#087376;font-weight:700}
.lesson-context h2{font-size:19px;line-height:1.45;margin:0;font-weight:750;overflow-wrap:anywhere}.lesson-context p{font-size:12px;color:#798d98;margin:6px 0 9px}
.context-actions{display:flex;gap:8px}.context-actions button{font-size:12px;min-height:29px;padding:3px 8px;border-color:#d8e5e9;background:#fafcfd;color:#50727f}.context-actions button:last-child{border:0;background:transparent}
#contextReference{font-size:13px;color:#076f71;margin-top:7px;overflow-wrap:anywhere}#contextReference:empty{display:none}
#lessonDetails{border:0;padding:0;margin:0}.criteria-title{font-size:14px;margin-bottom:9px;color:#507480}#learning{display:none}
.criterion{border:1px solid #e2ecef;background:#f5f9fa;padding:10px;line-height:1.6}.criterion b{color:#306776}.criterion small{font-size:11px;color:#79909c}.distribution{border-top-color:#e0eaee;margin-top:7px;padding-top:6px}.distribution-extra{color:#8295a0}
.toolbar{margin-bottom:8px;min-height:40px;padding-bottom:3px;align-items:center}.toolbar>div:last-child{gap:8px}
.input-content-tabs{display:flex;gap:3px;background:#e9eff2;padding:3px;border-radius:8px}
.input-content-tabs button{font-size:14px;border:0;background:transparent;padding:6px 14px;min-height:34px;border-radius:6px;color:#5a7480;white-space:nowrap}.input-content-tabs button.active{background:white;color:#087174;box-shadow:0 1px 4px #38556718}
.toolbar #undo,.toolbar #viewSettings{font-size:12px;background:transparent;border-color:#d3e0e6;min-height:32px;padding:4px 8px;color:#5b7784}
.board-heading{min-height:22px;margin-bottom:7px}.board-meta{width:100%;justify-content:flex-end;gap:7px}.legend{font-size:10px;padding:1px 6px;opacity:.85}#progress{font-size:12px;color:#6c8a97;font-weight:550;margin-left:3px}
.entry-chooser[hidden],.legacy-mode-buttons[hidden],#legacyActions[hidden],.card-entry-tabs{display:none!important}
#seatTools{margin-bottom:7px;min-height:22px;justify-content:center}#seatTools>div{display:none}.blackboard{font-size:11px;padding:2px 25px;min-width:160px;background:#a5bdb9;color:#fff;min-height:22px}
#stampTools{padding:6px 10px;border-color:#d7e5e9;margin-bottom:7px}#stampTools button{min-height:30px;font-size:13px}
#board{gap:6px}.card,.card-main{border-radius:8px}.card-main{justify-content:center}.student strong{font-size:17px}.num{font-size:13px}
.card .editor{box-shadow:0 12px 36px #24414f2b}.editor-head{padding-bottom:5px;border-bottom:1px solid #b9d1d8}.editor-head button{font-size:12px}.quick-label{font-size:13px}
.lesson-picker{width:min(640px,94vw);max-width:none;max-height:90dvh;overflow:auto}.lesson-picker .selectors{margin:20px 0;grid-template-columns:1fr 110px}.lesson-picker .selectors label{font-size:13px}.lesson-picker .title-setup{margin-top:12px}.lesson-picker .title-setup>summary{font-size:14px}.lesson-picker .main-reference-picker{margin-top:15px}
.input-preferences{padding-bottom:14px;border-bottom:1px solid #d8e5e9;margin-bottom:15px}.input-preferences h3{margin-top:10px}.input-preferences>label{display:flex;justify-content:space-between;gap:12px}.input-preferences select{font-size:14px}.seat-preferences{display:flex;gap:8px;margin-top:12px}.seat-preferences button{font-size:13px}
.app-page[open]{position:fixed;top:64px;left:0;right:0;bottom:0;width:100%;max-width:none;height:calc(100dvh - 64px);max-height:none;margin:0;border:0;border-radius:0;padding:20px max(22px,calc((100vw - 1500px)/2));background:#f4f7fa;box-shadow:none;z-index:10;gap:14px;overflow:hidden}
.app-page .review-header h2{font-size:22px}.app-page .review-header{min-height:30px}.app-page #supportClose,.app-page #closeReview{display:none}.app-page>.review-tabs{display:none}
.record-navigation{display:flex;gap:18px;align-items:center;flex-shrink:0;border-bottom:1px solid #d7e3e9;min-height:40px}.record-navigation button{border:0;background:transparent;font-size:14px;padding:8px 2px;border-radius:0;border-bottom:2px solid transparent;font-weight:550;color:#6e8592;white-space:nowrap}.record-navigation button.active{color:#076f71;border-bottom-color:#076f71;background:transparent;font-weight:750}
#supportDialog[data-section=report] .record-navigation{display:none}#supportDialog #supportContent{padding:0;overflow:auto}.app-page .support-intro{background:transparent;padding:0;margin:0 0 14px;color:#728b97;font-size:13px}
.record-filters{margin:0 0 14px;align-items:start;gap:16px}.record-filters>label{min-width:175px}.period-filter{font-size:13px;position:relative;margin-top:24px;color:#527786}.period-filter>summary{cursor:pointer;list-style:none;padding:8px;border:1px solid #d1e0e7;background:white;border-radius:6px}.period-fields{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;background:white;border:1px solid #d7e4e9;border-radius:7px;margin-top:6px}.period-fields label{flex-direction:column;align-items:stretch}.period-fields input{font-size:13px;max-width:165px}.period-fields .profile-filter{margin:0}
.profile-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;align-items:start;grid-template-areas:'notes assessment' 'reference assessment' 'trend trend'}.profile-section{padding:16px 18px;background:#fff;border:1px solid #e1e9ed;border-radius:10px;min-width:0}.profile-section h3{margin:0 0 12px;font-size:16px}.profile-section small{font-size:12px}.profile-section .note-item{margin:0;background:#f5f9fa}.profile-section p{font-size:13px;line-height:1.65}.profile-section table{font-size:13px}.profile-section th,.profile-section td{padding:8px!important}.profile-section tbody th{white-space:normal;position:static}.profile-section table small{font-size:11px}.profile-section.notes{grid-area:notes}.profile-section.reference{grid-area:reference}.profile-section.assessment{grid-area:assessment}.profile-section.trend{grid-area:trend}.profile-section.trend>summary{font-size:15px;font-weight:650;cursor:pointer}.calculation-help{font-size:12px;color:#78909b;margin:0 0 10px}.calculation-help summary{cursor:pointer}.record-filters~.small-help{display:none}.profile-filter{gap:10px;font-size:13px}
.app-page .conversion-note{font-size:12px!important;background:#edf4f5;color:#6a8591}.review-selectors label{font-size:13px}.review-info,.review-footnote{color:#6c8794}.review-table-scroll{background:white;border-color:#e0e9ed}
#supportDialog[data-section=report] #supportContent{overflow:hidden;display:flex;flex-direction:column}.report-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;flex:1;min-height:0;height:100%;overflow:hidden}.report-config{padding:18px;background:white;border:1px solid #dfe8ed;border-radius:10px;min-width:0;overflow:auto}.report-config>h3{font-size:16px;margin:0 0 16px}.report-config .record-filters{display:block;margin-bottom:12px}.report-config label{font-size:13px}.report-config .record-filters>label{display:flex;flex-direction:column;align-items:stretch}.report-config .period-filter{margin-top:10px}.report-config .period-fields{display:block;border:0;padding:6px 0}.report-config .period-fields label{display:flex;flex-direction:column;align-items:stretch;margin:6px 0}.report-config .period-fields input{max-width:none;width:100%;font-size:13px}.report-config .period-fields button{font-size:12px;min-height:28px}.report-all-choice{display:flex!important;align-items:center;gap:7px;margin-bottom:16px}.report-all-choice input{min-height:16px;width:16px;height:16px}.report-config .report-options{display:grid;grid-template-columns:1fr;gap:8px;border:0;padding:0;margin:16px 0}.report-options legend{font-size:12px;color:#78909c;margin-bottom:7px}.report-options input{min-height:16px;width:16px;height:16px}.report-note-choice,.report-meta{font-size:13px;padding:12px 0;border-top:1px solid #e0e9ed}.report-note-choice>summary,.report-meta>summary{cursor:pointer;color:#507482}.report-note-choice p{font-size:12px}.note-selection-actions{display:flex;gap:6px;margin:8px 0}.note-selection-actions button{font-size:11px;min-height:26px;padding:3px 6px}.report-config .report-note{font-size:12px;line-height:1.5}.report-meta label{display:flex;flex-direction:column;align-items:stretch;margin:8px 0}.report-meta-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px}.report-meta input{min-width:0;width:100%;font-size:13px}.report-output{margin-top:12px;padding-top:14px;border-top:1px solid #dce7ec;display:grid;grid-template-columns:1fr;gap:9px}.report-output>label{display:flex;flex-direction:column;align-items:stretch;font-size:12px;color:#6a8794}.report-output select{font-size:13px;min-width:0;width:100%}.primary-action{background:#076f71;color:white;border-color:#076f71;min-height:38px}.report-output .preview-action{background:transparent;border:0;font-size:12px;color:#567a87;min-height:27px}.report-output .small-help{text-align:center;font-size:11px!important;margin:0}
.report-paper-area{min-width:0;min-height:0;overflow:auto;padding:0 8px 15px}.preview-caption{font-size:13px;color:#5e7d89;margin:0 0 12px;display:flex;justify-content:space-between;gap:8px}.preview-caption span{font-size:11px;color:#8599a3}.report-preview{background:#e9eff3;padding:20px;border-radius:8px}.report-preview .student-report{padding:30px;max-width:790px;box-shadow:0 2px 10px #344f6014}.report-preview .student-report h1{font-size:22px}.report-preview .student-report h3{font-size:15px;margin-top:22px}.report-preview .student-report p{font-size:12px}.report-preview .student-report table{font-size:12px}.report-preview .student-report td,.report-preview .student-report th{padding:7px}.legacy-report-actions[hidden]{display:none!important}
@media(min-width:801px) and (max-height:720px){body{grid-template-rows:58px minmax(0,1fr)}header{padding:0 14px;gap:12px}.app-navigation button{padding:0 12px;font-size:14px}header h1{font-size:19px}header h1 small{display:none}.app-page[open]{top:58px;height:calc(100dvh - 58px);padding-top:14px;padding-bottom:12px;gap:10px}main{padding:9px 10px;gap:10px;grid-template-columns:275px minmax(0,1fr)}.lesson{padding:10px}.lesson-context{padding-bottom:8px;margin-bottom:9px}.lesson-context h2{font-size:16px}.context-kicker{margin-bottom:5px}.lesson-context p{margin:4px 0 6px}.context-actions button{min-height:26px;font-size:11px}.criterion{font-size:12px;line-height:1.4;padding:6px}.criterion b{font-size:12px}.criterion small{font-size:10px;line-height:1.4}.criteria-title{font-size:13px;margin-bottom:7px}#criteria{gap:6px}.distribution{margin-top:4px;padding-top:3px}.distribution-counts>span{font-size:10px;line-height:17px}.distribution-extra{font-size:10px;line-height:1.3}.input-content-tabs button{font-size:13px;padding:4px 10px;min-height:30px}.toolbar{min-height:34px;margin-bottom:5px}.board-heading{min-height:19px;margin-bottom:5px}.board-meta .legend{display:none}#progress{font-size:11px}.report-layout{grid-template-columns:270px minmax(0,1fr);gap:16px}.report-config{padding:14px}.report-config>h3{margin-bottom:10px}.report-config .report-options{gap:6px;margin:11px 0}.report-all-choice{margin-bottom:10px}.report-note-choice,.report-meta{padding:9px 0}.report-output{padding-top:10px;gap:6px}.record-navigation{gap:15px;min-height:35px}.record-navigation button{font-size:13px}}
@media(max-width:1100px){.header-right{gap:6px}header{gap:12px;padding-left:14px;padding-right:14px}header h1 small{display:none}.app-navigation button{padding-left:12px;padding-right:12px}.profile-sections{grid-template-columns:1fr;grid-template-areas:'notes' 'assessment' 'reference' 'trend'}.input-content-tabs button{padding-left:10px;padding-right:10px}.report-preview{padding:10px}.report-preview .student-report{padding:20px}}
@media(max-width:800px){body{display:block;height:auto;overflow:auto}header{flex-wrap:wrap;min-height:92px;padding:8px 12px;gap:5px}header h1{font-size:18px}.app-navigation{order:3;width:100%;height:36px;justify-content:center}.app-navigation button{padding:0 14px;font-size:13px}.header-right{margin-left:auto}.header-right #saved{display:none}.app-page[open]{top:96px;height:calc(100dvh - 96px);padding:14px 10px}.report-layout{grid-template-columns:235px minmax(340px,1fr);gap:10px;overflow:auto}.report-config{padding:12px}.record-navigation{overflow:auto;gap:16px;min-height:38px}.record-navigation button{font-size:12px}main{grid-template-columns:1fr;padding:10px}.input-content-tabs button{padding:4px 9px}.toolbar{flex-wrap:wrap}.report-paper-area{padding:0}.lesson-context{margin-bottom:10px}.profile-sections{display:block}.profile-section{margin-bottom:12px}}
@media print{header.app-header,.app-page{display:none!important}}
.report-config{display:flex;flex-direction:column;overflow:hidden}.report-settings-scroll{overflow:auto;flex:1;min-height:0;padding-right:2px}.report-settings-scroll>h3{margin:0 0 16px;font-size:16px}.report-output{flex-shrink:0;margin-top:8px}.report-output .small-help{margin:0}.report-config .report-note-choice,.report-config .report-meta{padding-right:2px}
@media(min-width:801px) and (max-height:720px){.report-config .report-options{grid-template-columns:1fr 1fr;gap:7px}.report-config .report-options label{font-size:12px}.report-config .report-options legend{grid-column:1/-1}.report-output{gap:5px;margin-top:8px;padding-top:8px}.report-settings-scroll>h3{margin-bottom:10px}.report-output .small-help{display:none}}
@media(min-width:801px) and (max-height:720px){.lesson{padding-bottom:4px}}
/* Annual plan import is a secondary task; the daily input surface is unchanged. */
.annual-plan-dialog{width:min(920px,94vw);max-height:92dvh;overflow:auto;padding:20px}.annual-plan-dialog details{border:1px solid #d7e3e8;border-radius:8px;padding:10px;margin:10px 0}.annual-plan-dialog summary{cursor:pointer;font-weight:600}.annual-plan-dialog section{border-top:1px solid #d7e3e8;padding:10px 0}.annual-plan-footer{position:sticky;bottom:-20px;background:white;padding:12px 0;display:flex;gap:12px;align-items:center}.annual-plan-footer button{background:#087879;color:white}.original-text{white-space:pre-wrap;overflow-wrap:anywhere}#annualSource{font-size:14px;margin-top:8px}#annualSource>div{padding-top:8px}#criteria .criterion>div:not(.distribution){white-space:pre-wrap}#lessonDetails #learning{white-space:pre-wrap}#lessonPickerFields>button{margin-top:12px}
/* Choose the activity by its actual learning content, in the existing workspace. */
.inline-lesson-picker[hidden]{display:none!important}.workspace.choosing-lesson> :not(#lessonPicker){display:none!important}.inline-lesson-picker{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%;height:100%;max-height:none;padding:18px;background:#fff;border:1px solid #dce7ed;border-radius:12px;overflow:hidden}.inline-lesson-picker .review-header{flex-shrink:0;gap:12px;padding-bottom:12px;border-bottom:1px solid #e0e9ed}.inline-lesson-picker .review-header h2{font-size:21px;margin:0}.inline-lesson-picker .review-header button{font-size:14px}.lesson-picker-scroll{overflow:auto;min-height:0;padding-right:5px}.inline-lesson-picker .selectors{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;margin:15px 0}.inline-lesson-picker .selectors label{display:flex;flex-direction:column;align-items:stretch;font-size:14px;min-width:0}.inline-lesson-picker .selectors .unit{grid-column:auto;grid-row:auto}.inline-lesson-picker .selectors label[hidden]{display:none!important}.inline-lesson-picker select{font-size:15px;width:100%;min-width:0}.inline-lesson-picker .title-setup{margin:10px 0}.inline-lesson-picker .title-setup[open]~*{display:none}#learningChoices{padding-top:18px;display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));align-content:start}#learningChoices>h3,#learningChoices>.small-help{grid-column:1/-1;margin:0}#learningChoices>h3{font-size:17px}.learning-choice{padding:16px;border:1px solid #dce7ed;border-radius:10px;background:#fafcfd;display:flex;flex-direction:column;min-width:0}.learning-choice.selected-learning{border-color:#168584;box-shadow:inset 3px 0 #168584}.learning-choice-heading{font-size:13px;color:#6d8793;display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.learning-choice-heading>b{color:#087678}.learning-choice-topic{font-size:17px;font-weight:650;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.learning-choice-criteria{margin:12px 0;font-size:14px;line-height:1.55}.learning-choice-criteria>div{padding:9px 0;border-top:1px solid #e0e9ed}.learning-choice-criteria b{font-size:13px;color:#39717b}.learning-choice-criteria p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.learning-choice button{align-self:start;margin-top:auto;font-size:14px;background:#087879;color:#fff;border-color:#087879}#lessonDetails #learning{display:block;white-space:pre-wrap;font-size:14px;line-height:1.6;color:#284d5d;background:#edf5f6;border-radius:7px;padding:10px;margin:0 0 12px;overflow-wrap:anywhere}#lessonDetails .criteria-title::before{content:'学習内容と';}#lessonPickerFields:has(#titleSetup[open])+#learningChoices{display:none}
@media(max-width:800px){.inline-lesson-picker{height:calc(100dvh - 150px);min-height:400px}.inline-lesson-picker .selectors{grid-template-columns:1fr}.inline-lesson-picker .review-header h2{font-size:18px}}
/* Local-only real roster and backup setup. */
.safety-dialog{width:min(850px,94vw);max-width:none;max-height:90dvh;overflow:auto;padding:22px}.safety-dialog p{font-size:14px;line-height:1.7}.safety-dialog h3{font-size:17px}.safety-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.safety-actions button,.safety-dialog button{font-size:14px}.safety-dialog .file{padding:8px 0;font-size:14px}.safety-dialog textarea{width:100%;font-size:16px;padding:10px}.roster-meta{display:flex;gap:14px;margin:16px 0}.roster-meta input{max-width:230px}.roster-row{display:grid;grid-template-columns:70px 1fr 110px;gap:8px;margin:6px 0}.roster-row input{min-width:0}.roster-table{width:100%;border-collapse:collapse;margin:15px 0}.roster-table th,.roster-table td{padding:6px 10px;border-bottom:1px solid #d8e4e9;text-align:left}.history-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #e0e9ed}.backup-panel{background:#f3f8fa;border:1px solid #dce7ed;border-radius:8px;padding:14px}.backup-badge{font-size:11px;background:#eef7f5;border:0;color:#187466;padding:5px 7px;white-space:nowrap}.backup-badge.needs-backup{background:#fff2cd;color:#7c5b00}#spaceBadge{font-size:12px;margin-top:2px;padding:1px 6px;min-height:22px;border:0}.space-demo{background:#edf1f4;color:#5c7481}.space-live{background:#e2f3ed;color:#126755}.unspecified{--card-bg:#f0f3f5;--card-border:#bccbd2;--num-bg:#dbe4e9}.header-right{gap:7px}#rosterStatus,#safetyStatus{color:#9b3f24}.legend{display:none}@media(max-width:1100px){#backupBadge{max-width:140px;white-space:normal}.roster-meta{flex-wrap:wrap}.app-navigation button{padding-left:9px;padding-right:9px}}@media(max-width:800px){.roster-row{grid-template-columns:55px 1fr 90px}.safety-dialog{padding:14px}#backupBadge{max-width:100px}}
