*{box-sizing:border-box}body{margin:0;background:#eef3f8;color:#172235;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}button,input,select,textarea{font:inherit}.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #dce4ed;padding:12px 18px;display:flex;justify-content:space-between;align-items:center}.top h1{margin:0;font-size:20px}.wrap{max-width:1450px;margin:auto;padding:18px}.btn{border:0;border-radius:13px;padding:11px 15px;background:#1769df;color:#fff;font-weight:800}.sub{background:#fff;color:#334155;border:1px solid #cad5e1}.green{background:#07834f}.orange{background:#e86612}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.card{background:#fff;border-radius:22px;box-shadow:0 5px 22px #203d5c0c;padding:18px}.info{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.tag{background:#fff;border-radius:13px;padding:9px 12px}.teacher{display:grid;grid-template-columns:260px 1fr;gap:14px}.classbtn,.student{width:100%;border:2px solid #dce4ed;border-radius:14px;background:#fff;padding:13px;margin-bottom:7px;text-align:left;font-weight:800}.classbtn.on{background:#1769df;color:#fff}.student.on{border-color:#e86612;background:#fff0e5}.roster{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.actions{display:flex;gap:9px;margin-top:12px}.actions>*{flex:1}.grid{display:grid;grid-template-columns:90px repeat(3,1fr);min-width:800px}.grid>*{border:1px solid #d9e1e9;padding:12px;min-height:140px}.head{background:#263750;color:#fff;min-height:auto;text-align:center;font-weight:800}.all{background:#e4f8ed}.absent{background:#ffede0}.dash{overflow:auto}.bulletin{font-size:clamp(22px,3vw,48px);line-height:1.45}.bulletin h1{color:#1769df}.bulletin blockquote{border-left:8px solid #e86612;background:#fff5ed;margin:0;padding:10px 18px}.tabs{display:flex;gap:7px;flex-wrap:wrap}.back{position:fixed;inset:0;z-index:50;background:#102038aa;display:flex;align-items:center;justify-content:center;padding:15px}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px}.mhead,.mbody{padding:17px}.mhead{display:flex;justify-content:space-between;border-bottom:1px solid #e4eaf0}.field{margin:12px 0}.field label{display:block;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:11px;border:1px solid #cad5e1;border-radius:11px}.field textarea{min-height:170px}.toast{display:none;position:fixed;bottom:15px;left:50%;transform:translateX(-50%);background:#172235;color:#fff;padding:12px;border-radius:12px;z-index:70}.banner{position:fixed;right:15px;top:15px;z-index:80;width:min(420px,calc(100vw - 30px));background:#fff;border-left:6px solid #e86612;border-radius:16px;padding:15px;box-shadow:0 18px 50px #0004;animation:slide 8s forwards}@keyframes slide{0%{transform:translateX(120%)}6%,90%{transform:none}100%{transform:translateX(120%)}}
@media(max-width:760px){.wrap{padding:9px}.top{flex-wrap:wrap;gap:8px}.teacher{display:block}.classes{display:flex;overflow:auto;gap:7px;margin-bottom:9px}.classbtn{width:auto;min-width:95px}.roster{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.actions{position:sticky;bottom:0;background:#fff;padding:9px}.modal{border-radius:22px 22px 0 0}.back{align-items:flex-end;padding:0}.bulletin{font-size:clamp(20px,6vw,34px)}}
/* v2.1 UI refinement */
.wide{width:100%}.help,.muted{color:#718096}.student small{display:block;color:#8493a5}.notice{border-left:5px solid #1769df}.section-title{display:flex;justify-content:space-between;align-items:end}.section-title h2,.section-title p{margin:0}.live{color:#07834f;font-weight:900}.dynamic-grid{display:grid;min-width:max-content}.dynamic-grid>*{border:1px solid #d9e1e9;padding:12px;min-height:145px}.grade-cell{background:#e7edf3;display:flex;align-items:center;justify-content:center;font-size:20px}.status-cell{display:flex;flex-direction:column;gap:9px}.status-cell strong{font-size:17px}.status-cell.all{background:#e4f8ed}.status-cell.absent{background:#ffede0}.empty-cell{background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 8px,#f2f5f8 8px,#f2f5f8 16px)}.admin-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px}.admin-menu{background:#fff;border-radius:20px;padding:12px;height:max-content;position:sticky;top:84px}.menu-label{padding:13px 11px 6px;color:#8794a5;font-size:12px;font-weight:900}.admin-menu-btn{width:100%;display:grid;grid-template-columns:30px 1fr auto;align-items:center;border:0;border-radius:13px;padding:13px 10px;background:transparent;text-align:left;color:#334155;font-weight:800}.admin-menu-btn:hover{background:#f1f5f9}.admin-menu-btn.on{background:#1769df;color:#fff}.admin-content{min-height:600px}.admin-head{display:flex;justify-content:space-between;align-items:start;gap:12px;border-bottom:1px solid #e5eaf0;padding-bottom:15px;margin-bottom:17px}.admin-head h2{margin:0}.admin-head p{color:#718096;margin:6px 0 0}.segmented{display:inline-flex;padding:4px;background:#edf2f7;border-radius:13px;margin-bottom:13px}.segmented button{border:0;background:transparent;border-radius:10px;padding:10px 15px;font-weight:800}.segmented button.on{background:#fff;color:#1769df;box-shadow:0 2px 8px #203d5c18}.editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:9px;background:#f1f5f9;border-radius:13px 13px 0 0}.editor-toolbar button{border:1px solid #d4dde7;background:#fff;border-radius:8px;padding:7px 10px}.editor-toolbar .red,.text-red{color:#d92d20}.editor-toolbar .blue,.text-blue{color:#1769df}.editor-toolbar .green-text,.text-green{color:#07834f}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-grid .field{margin-top:0}.editor-grid textarea{border-radius:0 0 11px 11px;min-height:340px}.preview-label{display:block;font-weight:800;margin-bottom:6px}.preview{min-height:340px;border:1px solid #d6dee8;border-radius:11px;padding:15px;background:#fff}.preview h1,.preview h2,.preview h3{color:#173d70}.preview blockquote{border-left:5px solid #e86612;background:#fff5ed;padding:9px 12px;margin:8px 0}.publish-bar{display:flex;justify-content:flex-end;gap:8px;padding-top:12px}.schedule-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.schedule-card{border:2px solid #d9e1e9;background:#fff;border-radius:16px;padding:17px;text-align:left;display:flex;flex-direction:column;gap:7px}.schedule-card.on{border-color:#1769df;background:#edf5ff}.schedule-card strong{color:#1769df}.list-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #e8edf2}.list-row small{display:block;color:#718096;margin-top:4px}.period-list{margin:12px 0}.period-row{display:grid;grid-template-columns:1.4fr 1fr auto 1fr auto;gap:7px;align-items:center;margin-bottom:7px}.period-row input{width:100%;padding:10px;border:1px solid #cad5e1;border-radius:10px}.icon-btn{border:0;border-radius:9px;padding:8px}.danger{color:#b42318;background:#fff0ee}.student-admin{display:flex;justify-content:space-between;align-items:center;padding:9px 4px;border-bottom:1px solid #edf0f4}.danger-zone{border:2px solid #f3a58e;background:#fff5f1;border-radius:16px;padding:18px}.warning{background:#fff0ee;color:#9f261b;padding:11px;border-radius:11px}.board-date{color:#718096}.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.admin-layout{grid-template-columns:1fr}.admin-menu{position:static;display:flex;overflow:auto;gap:6px}.menu-label{display:none}.admin-menu-btn{min-width:150px;grid-template-columns:25px 1fr auto}.editor-grid{grid-template-columns:1fr}.admin-content{min-height:0}.schedule-choice{grid-template-columns:1fr}.period-row{grid-template-columns:1fr 1fr}.period-row span{display:none}.period-row .icon-btn{grid-column:2}.dynamic-grid>*{min-height:125px}}
/* v2.2 display fitting, compact dashboard, board and teacher settings */
body[data-view="staffroom"] .wrap{max-width:none;width:100%;padding:clamp(8px,1.2vw,18px)}body[data-view="staffroom"] .dash{padding:clamp(7px,.8vw,13px)}body[data-view="staffroom"] .dynamic-grid{width:100%;min-width:calc(72px + var(--cols)*118px);font-size:clamp(12px,.95vw,16px)}body[data-view="staffroom"] .dynamic-grid>*{min-height:clamp(105px,14vh,150px);padding:clamp(7px,.7vw,12px)}body[data-view="staffroom"] .dynamic-grid .head{min-height:48px!important;padding:10px 6px}body[data-view="staffroom"] .grade-cell{font-size:clamp(16px,1.25vw,21px)}body[data-view="staffroom"] .status-cell{gap:clamp(4px,.45vw,9px)}body[data-view="staffroom"] .status-cell strong{font-size:clamp(13px,1vw,17px)}.staff-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:11px 14px;margin-bottom:12px}.staff-tools>div:first-child{display:flex;flex-direction:column}.staff-tools span{color:#718096;font-size:13px}.staff-notice{padding:14px 18px}.staff-notice h2{font-size:clamp(17px,1.4vw,23px);margin:0 0 6px}.staff-notice p,.staff-notice li{font-size:clamp(13px,1vw,16px)}.teacher-subbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:-4px 0 12px}.teacher-subbar span{color:#718096;font-size:12px}.voice-status{padding:12px;border-radius:12px;margin-bottom:12px}.voice-status.ok{background:#e4f8ed;color:#07613c}.voice-status.ng{background:#fff0ee;color:#9f261b}
body[data-view="board"]{overflow:auto}body[data-view="board"] .wrap{max-width:none;width:100%;padding:clamp(8px,1.4vw,22px)}body[data-view="board"] .bulletin{font-size:clamp(17px,2.15vw,34px);line-height:1.32}body[data-view="board"] .bulletin .card{min-height:calc(100vh - clamp(16px,2.8vw,44px));padding:clamp(18px,3vw,48px);display:block}body[data-view="board"] .bulletin h1{font-size:clamp(34px,5.2vw,76px);margin:.25em 0 .55em}body[data-view="board"] .bulletin h2{font-size:clamp(25px,3.2vw,48px);margin:.6em 0 .3em}body[data-view="board"] .bulletin h3{font-size:clamp(21px,2.6vw,38px)}body[data-view="board"] .bulletin p{margin:.42em 0}body[data-view="board"] .bulletin ul,body[data-view="board"] .bulletin ol{margin:.35em 0;padding-left:1.5em}body[data-view="board"] .bulletin blockquote{padding:clamp(10px,1.35vw,18px);margin:.55em 0}.board-date{font-size:clamp(16px,1.8vw,27px)}
@media(max-width:760px){.teacher-subbar{justify-content:stretch}.teacher-subbar .btn{flex:1}.teacher-subbar span{display:none}.staff-tools{align-items:flex-start;flex-direction:column}.staff-tools>div:last-child{display:flex;width:100%;gap:6px}.staff-tools .btn{flex:1}.dynamic-grid{min-width:calc(65px + var(--cols)*118px)!important}.dynamic-grid[style]{grid-template-columns:65px repeat(var(--cols),minmax(118px,1fr))!important}}
/* v2.3 teacher toolbar and scheduled bulletins */
.teacher-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.teacher-toolbar .info{margin:0}.teacher-tools{display:flex;gap:8px;flex-shrink:0}.notice-button{position:relative;background:#1769df}.notice-button i{position:absolute;right:7px;top:6px;width:8px;height:8px;border-radius:50%;background:#ffdd57;box-shadow:0 0 0 2px #1769df}.notice-modal h2{margin-top:0;color:#1769df}.notice-modal small{display:block;margin-top:18px;color:#718096}.empty-notice{padding:35px;text-align:center;color:#718096;background:#f6f8fa;border-radius:14px}.date-actions{display:flex;gap:7px}.bulletin-meta{display:flex;align-items:end;gap:12px;margin-bottom:10px}.bulletin-meta .field{margin:0;min-width:190px}.selected-date{padding:11px 14px;border-radius:11px;background:#edf5ff;color:#1769df;font-weight:800}
@media(max-width:760px){.teacher-toolbar{align-items:stretch;flex-direction:column}.teacher-tools{display:grid;grid-template-columns:1fr 1fr}.teacher-tools .btn{padding:10px 7px;font-size:13px}.bulletin-meta{align-items:stretch;flex-direction:column}.bulletin-meta .field{width:100%}.date-actions{width:100%}.date-actions .btn{flex:1}}
/* v2.4 success feedback, report resolution and motion */
@media(prefers-reduced-motion:no-preference){.card,.tag,.classbtn,.student,.btn,.admin-menu-btn,.schedule-card,.status-cell{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease}.btn:active,.classbtn:active,.student:active{transform:scale(.97)}.classbtn:hover,.student:hover,.schedule-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #203d5c18}.back{animation:modalFade .22s ease both}.modal{animation:modalIn .28s cubic-bezier(.22,.8,.28,1) both}.admin-content>*{animation:contentIn .28s ease both}.banner{animation:slide 8s forwards}@keyframes modalFade{from{opacity:0}to{opacity:1}}@keyframes modalIn{from{opacity:0;transform:translateY(18px) scale(.975)}to{opacity:1;transform:none}}@keyframes contentIn{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}}
.send-success-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;background:#10203822;backdrop-filter:blur(2px);opacity:0;transition:opacity .25s ease;pointer-events:none}.send-success-backdrop.show{opacity:1}.send-success-card{min-width:min(360px,calc(100vw - 32px));display:flex;flex-direction:column;align-items:center;gap:9px;background:#fff;border-radius:24px;padding:28px 24px;box-shadow:0 24px 70px #1020383d;transform:translateY(18px) scale(.94);transition:transform .3s cubic-bezier(.22,.8,.28,1)}.send-success-backdrop.show .send-success-card{transform:none}.send-success-card strong{font-size:21px}.send-success-card span{color:#718096}.success-check{width:74px;height:74px}.success-check svg{width:100%;height:100%;fill:none;stroke:#07834f;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.success-check circle{stroke-dasharray:151;stroke-dashoffset:151;animation:drawCircle .45s .12s ease forwards}.success-check path{stroke-dasharray:38;stroke-dashoffset:38;animation:drawCheck .32s .5s ease forwards}@keyframes drawCircle{to{stroke-dashoffset:0}}@keyframes drawCheck{to{stroke-dashoffset:0}}
button.status-cell{width:auto;border-radius:0;text-align:left;color:inherit;font:inherit;cursor:pointer}.status-cell:hover{position:relative;z-index:1;box-shadow:inset 0 0 0 3px #1769df55}.report-summary{display:flex;flex-direction:column;gap:5px;padding:15px;border-radius:15px;margin-bottom:12px}.report-summary.absent{background:#ffede0;color:#8a3600}.report-summary.all{background:#e4f8ed;color:#07613c}.report-summary b{font-size:20px}.report-memo{background:#f3f6f9;border-radius:13px;padding:12px;margin-bottom:14px}.report-memo p{margin:5px 0 0}.resolve-list h3{margin-bottom:8px}.resolve-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid #e7ecf1}.resolve-row div{display:flex;flex-direction:column}.resolve-row small{color:#718096;margin-top:3px}.resolved-empty{text-align:center;padding:28px;background:#e4f8ed;color:#07613c;border-radius:14px;font-weight:800}
@media(max-width:600px){.modal{animation-name:modalSheetIn}@keyframes modalSheetIn{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:none}}.resolve-row{align-items:stretch;flex-direction:column}.resolve-row .btn{width:100%}.send-success-card{padding:23px 17px}.send-success-card strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* v2.5 VOICEVOX diagnostics and notice modal correction */
.voice-status small{display:block;margin-top:5px;word-break:break-all;opacity:.8}.voice-error{margin:12px 0;padding:12px;border-radius:12px;background:#fff0ee;color:#9f261b}.voice-error code{display:block;white-space:pre-wrap;word-break:break-word;margin-top:6px}.notice-modal>.markdown-preview:empty:after{content:'本文はまだ登録されていません。';display:block;padding:30px;text-align:center;color:#718096;background:#f6f8fa;border-radius:14px}.notice-modal .markdown-preview h1:first-child,.notice-modal .markdown-preview h2:first-child{margin-top:0}.notice-modal .markdown-preview p:first-child{margin-top:0}.notice-modal .markdown-preview p:last-child{margin-bottom:0}
/* v2.6 dual bulletins, warning overlay, web push */
.teacher-tools{flex-wrap:wrap}.staff-tools>div:last-child{display:flex;gap:10px;flex-wrap:wrap}.staff-tools>div:last-child .btn{margin:0}.warning-overlay{position:fixed;z-index:140;inset:0;display:flex;flex-direction:column;justify-content:center;pointer-events:none;opacity:0;background:#16000066;backdrop-filter:blur(2px);transition:opacity .25s ease}.warning-overlay.show{opacity:1}.warning-stripes{height:clamp(28px,5vh,58px);background:repeating-linear-gradient(135deg,#d82020 0,#d82020 28px,#fff 28px,#fff 56px);box-shadow:0 0 25px #0008}.warning-content{background:#b41218;color:#fff;text-align:center;padding:clamp(22px,5vh,60px) 15px;border-top:5px solid #fff;border-bottom:5px solid #fff}.warning-content span{display:block;font-weight:1000;letter-spacing:.15em;font-size:clamp(17px,2vw,30px)}.warning-content strong{display:block;margin-top:12px;font-size:clamp(30px,5.3vw,82px);line-height:1.12;text-shadow:0 3px 0 #650000}.warning-content p{font-size:clamp(15px,2vw,28px);margin:13px 0 0}.dual-editors{display:grid;grid-template-columns:1fr;gap:18px}.bulletin-editor-card{border:1px solid #dce4ed;border-radius:18px;padding:16px;background:#fbfcfe}.bulletin-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.bulletin-editor-head>div{display:flex;gap:10px;align-items:center}.bulletin-editor-head>div>span{font-size:28px}.bulletin-editor-head h3{margin:0}.bulletin-editor-head small{color:#718096}.save-state{padding:6px 9px;background:#edf2f7;border-radius:99px;font-size:12px;font-weight:800}.date-tabs{display:flex;background:#edf2f7;padding:4px;border-radius:13px}.date-tabs button{border:0;background:transparent;border-radius:10px;padding:10px 17px;font-weight:800}.date-tabs button.on{background:#1769df;color:#fff}.push-status{padding:14px;background:#f1f5f9;border-radius:13px;margin-bottom:13px}.push-status.ok{background:#e4f8ed;color:#07613c}.push-status.ng{background:#fff0ee;color:#9f261b}.push-status p{margin:7px 0 0;font-size:13px}.editor-toolbar+ .editor-grid .field{margin-top:0}
@media(max-width:760px){.teacher-tools{grid-template-columns:repeat(3,1fr)}.warning-content strong{font-size:clamp(28px,8vw,48px)}.staff-tools>div:last-child{gap:7px}.staff-tools>div:last-child .btn{min-width:120px}.admin-head{flex-direction:column}.date-tabs{width:100%}.date-tabs button{flex:1}.bulletin-editor-card{padding:11px}.editor-grid{grid-template-columns:1fr}}
/* v2.7 staffroom-only warning and buzzer */
.staff-tools>div:last-child{column-gap:10px;row-gap:8px}.staff-tools>div:last-child .btn{white-space:nowrap}
/* v2.8 bulletin date controls alignment */
.bulletin-meta{align-items:flex-end}.bulletin-date-tabs{flex:0 0 auto;margin-bottom:0}.bulletin-meta>.field{margin:0}.bulletin-date-tabs button{min-height:42px}.bulletin-meta input[type="date"]{min-height:42px}
@media(max-width:760px){.bulletin-meta{display:grid;grid-template-columns:auto minmax(170px,1fr);align-items:end}.bulletin-date-tabs{width:auto}.bulletin-date-tabs button{min-width:72px}.bulletin-meta>.field{width:100%}.bulletin-meta>.selected-date{grid-column:1/-1}.date-tabs{width:auto}}
@media(max-width:430px){.bulletin-meta{grid-template-columns:1fr}.bulletin-date-tabs{width:100%}.bulletin-meta>.selected-date{grid-column:auto}}
/* v2.9 audio balance and longer alerts */
.banner{animation-duration:12s!important}.switch-line{display:flex!important;align-items:center;gap:10px}.switch-line input{width:auto!important;transform:scale(1.25)}input[type="range"]{accent-color:#1769df}.voice-status+.field{margin-top:16px}
/* v2.10 automatic period refresh and uploaded siren */
.period-transition{position:fixed;inset:0;z-index:155;display:flex;align-items:center;justify-content:center;background:#10203899;backdrop-filter:blur(7px);opacity:0;pointer-events:none;transition:opacity .3s ease}.period-transition.show{opacity:1}.period-transition>div{min-width:min(480px,calc(100vw - 36px));display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:28px;padding:34px 28px;box-shadow:0 28px 80px #0005;transform:scale(.9) translateY(18px);transition:transform .38s cubic-bezier(.2,.8,.2,1)}.period-transition.show>div{transform:none}.period-transition small{color:#718096;font-size:16px}.period-transition strong{color:#1769df;font-size:clamp(38px,6vw,72px);margin:7px 0}.period-transition span{font-weight:800}.staff-tools input[type="range"]{width:100%}
/* v2.11 student phonetic readings */
.reading-row{align-items:flex-end;gap:12px;padding:12px 4px}.student-identity{display:grid;grid-template-columns:minmax(150px,1fr) 80px minmax(180px,1fr);align-items:center;gap:9px;flex:1}.student-identity label{font-size:12px;color:#718096;font-weight:800}.student-identity input{width:100%;padding:9px 10px;border:1px solid #cad5e1;border-radius:10px}.student-row-actions{display:flex;gap:7px}.student-row-actions .btn{padding:9px 11px;font-size:13px}.bulk-reading-help small{display:block;color:#718096;margin-top:6px}
@media(max-width:700px){.reading-row{align-items:stretch;flex-direction:column}.student-identity{grid-template-columns:1fr}.student-row-actions{width:100%}.student-row-actions .btn{flex:1}}
/* v2.12 consolidated staffroom settings */
.staff-screen-settings-row{display:flex;justify-content:flex-end;margin-bottom:10px}.staff-screen-settings-button{background:#fff;box-shadow:0 3px 12px #203d5c12}.settings-sections{display:grid;gap:13px}.settings-section{border:1px solid #dce4ed;border-radius:16px;padding:15px;background:#fbfcfe}.settings-section-head{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center}.settings-section-head>span:first-child{font-size:25px}.settings-section-head h3{margin:0}.settings-section-head p{margin:4px 0 0;color:#718096;font-size:13px}.settings-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toggle-switch{position:relative;width:48px;height:27px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-switch span{position:absolute;inset:0;border-radius:99px;background:#cbd5e1;transition:.2s}.toggle-switch span:before{content:'';position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0003;transition:.2s}.toggle-switch input:checked+span{background:#1769df}.toggle-switch input:checked+span:before{transform:translateX(21px)}.settings-save-bar{position:sticky;bottom:-17px;display:flex;justify-content:flex-end;gap:8px;margin:17px -17px -17px;padding:13px 17px;background:#fff;border-top:1px solid #e4eaf0}
@media(max-width:600px){.staff-screen-settings-row .btn{width:100%}.settings-inline-fields{grid-template-columns:1fr}.settings-section-head{grid-template-columns:32px 1fr auto}.settings-section{padding:12px}}
/* v2.13 rotating teacher notices */
.teacher-notice-ticker{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid #cbdcf4;border-left:5px solid #1769df;border-radius:15px;background:#fff;color:#172235;text-align:left;cursor:pointer;overflow:hidden;box-shadow:0 3px 14px #203d5c0c}.teacher-notice-ticker:hover{background:#f8fbff;box-shadow:0 6px 18px #203d5c16}.ticker-label{font-weight:900;color:#1769df;white-space:nowrap}.ticker-window{min-width:0;overflow:hidden;position:relative;height:1.5em;display:flex;align-items:center}.ticker-message{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;transform:translateY(0);opacity:1;transition:transform .28s ease,opacity .28s ease}.ticker-message.slide-out{transform:translateY(-115%);opacity:0}.ticker-message.slide-in{transform:translateY(115%);opacity:0}.ticker-count{padding:4px 8px;border-radius:99px;background:#edf5ff;color:#1769df;font-size:12px;font-weight:900;white-space:nowrap}.ticker-open{color:#718096;font-size:13px;white-space:nowrap}
@media(max-width:650px){.teacher-notice-ticker{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:10px}.ticker-label{font-size:13px}.ticker-open{display:none}.ticker-message{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ticker-message{transition:none}}
/* v2.14 staffroom notice ticker placement */
.teacher-notice-ticker{display:none!important}.staff-notice-ticker{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid #cbdcf4;border-left:5px solid #1769df;border-radius:15px;background:#fff;color:#172235;text-align:left;cursor:pointer;overflow:hidden;box-shadow:0 3px 14px #203d5c0c}.staff-notice-ticker:hover{background:#f8fbff;box-shadow:0 6px 18px #203d5c16}.staff-period-row{margin-top:2px;margin-bottom:8px;align-items:center}.staff-period-actions{display:flex;align-items:center;gap:12px}.staff-period-actions .staff-screen-settings-button{margin:0}.staff-screen-settings-row{display:none!important}
@media(max-width:650px){.staff-notice-ticker{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:10px}.staff-notice-ticker .ticker-label{font-size:13px}.staff-notice-ticker .ticker-open{display:none}.staff-period-actions{gap:7px}.staff-period-actions .live{font-size:12px}.staff-period-actions .btn{padding:9px 10px;font-size:12px}}
/* v2.15 teacher realtime banner restored; full alarm remains staffroom-only */
body[data-view="teacher"] .banner{border-left-color:#e86612}
/* v2.16 staffroom table height fits viewport */
body[data-view="staffroom"]{height:100dvh;overflow:hidden}body[data-view="staffroom"] .wrap{height:calc(100dvh - var(--staff-header-height,72px));display:flex;flex-direction:column;overflow:hidden}body[data-view="staffroom"] .dash{flex:1;min-height:0;overflow:auto;padding:clamp(6px,.7vw,11px)}body[data-view="staffroom"] .dynamic-grid{align-content:stretch}body[data-view="staffroom"] .dynamic-grid>.head{height:48px;min-height:48px!important}body[data-view="staffroom"] .dynamic-grid>.grade-cell,body[data-view="staffroom"] .dynamic-grid>.status-cell,body[data-view="staffroom"] .dynamic-grid>.empty-cell{height:var(--staff-row-height,120px);min-height:92px!important;max-height:190px;overflow:hidden}body[data-view="staffroom"] .status-cell span,body[data-view="staffroom"] .status-cell small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.staff-notice-ticker{flex:0 0 auto}.staff-period-row{flex:0 0 auto}
@media(max-height:700px){body[data-view="staffroom"] .staff-notice-ticker{padding-top:8px;padding-bottom:8px;margin-bottom:7px}body[data-view="staffroom"] .staff-period-row h2{font-size:20px}body[data-view="staffroom"] .staff-period-row p{font-size:12px}body[data-view="staffroom"] .dynamic-grid>.grade-cell,body[data-view="staffroom"] .dynamic-grid>.status-cell,body[data-view="staffroom"] .dynamic-grid>.empty-cell{min-height:82px!important}}
@media(max-width:760px){body[data-view="staffroom"]{overflow:auto}body[data-view="staffroom"] .wrap{height:auto;min-height:calc(100dvh - 72px);overflow:visible}body[data-view="staffroom"] .dash{overflow:auto}body[data-view="staffroom"] .dynamic-grid>.grade-cell,body[data-view="staffroom"] .dynamic-grid>.status-cell,body[data-view="staffroom"] .dynamic-grid>.empty-cell{min-height:100px!important}}
/* v2.17 instant schedule row editing */
.period-list{max-height:min(52vh,520px);overflow:auto;scroll-behavior:smooth;padding:3px}.period-row{animation:periodRowIn .22s ease both}.period-row:focus-within{background:#edf5ff;border-radius:12px;padding:5px;margin-left:-5px;margin-right:-5px}.period-row .icon-btn{cursor:pointer}@keyframes periodRowIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.period-row{animation:none}.period-list{scroll-behavior:auto}}
/* v2.18 remove unintended horizontal scrollbar in schedule editor */
#modal .modal{overflow-x:hidden}#modal .mbody{overflow-x:hidden}.period-list{overflow-x:hidden!important;overflow-y:auto;padding:3px 1px}.period-row{width:100%;min-width:0;grid-template-columns:minmax(110px,1.35fr) minmax(112px,1fr) 18px minmax(112px,1fr) 36px}.period-row>*{min-width:0}.period-row input{width:100%;max-width:100%;box-sizing:border-box}.period-row:focus-within{padding:5px 3px;margin-left:0;margin-right:0}
@media(max-width:600px){.period-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px}.period-row>[data-field="label"]{grid-column:1/-1}.period-row>[data-field="start"]{grid-column:1}.period-row>span{display:none}.period-row>[data-field="end"]{grid-column:2}.period-row>.icon-btn{grid-column:3;grid-row:2}}
/* v2.19 align bulletin editor and preview */
.bulletin-editor-card .editor-toolbar{margin:0;border-radius:13px 13px 0 0}.bulletin-editor-card .editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}.bulletin-editor-card .editor-grid>.field,.bulletin-editor-card .editor-grid>div{display:flex;flex-direction:column;min-width:0;margin:0}.bulletin-editor-card .editor-grid>.field>label:empty{display:none}.bulletin-editor-card .editor-grid textarea{display:block;width:100%;height:340px;min-height:340px;max-height:340px;margin:0;border-radius:0 0 11px 11px;resize:vertical}.bulletin-editor-card .preview-label{height:28px;display:flex;align-items:center;margin:0;font-weight:800}.bulletin-editor-card .preview{width:100%;height:340px;min-height:340px;max-height:340px;margin:0;overflow:auto}.bulletin-editor-card .editor-grid>div:last-child{padding-top:0}.bulletin-editor-card .editor-grid>.field:before{content:'本文';height:28px;display:flex;align-items:center;font-weight:800}
@media(max-width:850px){.bulletin-editor-card .editor-grid{grid-template-columns:1fr}.bulletin-editor-card .editor-grid textarea,.bulletin-editor-card .preview{height:280px;min-height:280px;max-height:280px}}
/* v2.20 modal clipping and polished scrollbars */
#modal .back{overflow:hidden}#modal .modal{display:flex;flex-direction:column;overflow:hidden!important;max-height:min(90dvh,900px);border-radius:22px;isolation:isolate}#modal .mhead{flex:0 0 auto;background:#fff;position:relative;z-index:2}#modal .mbody{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:17px}#modal .mbody>*{max-width:100%}.settings-save-bar{left:0;right:0;bottom:-17px;margin-left:-17px;margin-right:-17px;max-width:none!important}.period-list,.preview{scrollbar-width:thin;scrollbar-color:#9aa6b2 transparent}#modal .mbody{scrollbar-width:thin;scrollbar-color:#9aa6b2 transparent}#modal .mbody::-webkit-scrollbar,.period-list::-webkit-scrollbar,.preview::-webkit-scrollbar{width:8px;height:0}#modal .mbody::-webkit-scrollbar-track,.period-list::-webkit-scrollbar-track,.preview::-webkit-scrollbar-track{background:transparent;margin:8px 0}#modal .mbody::-webkit-scrollbar-thumb,.period-list::-webkit-scrollbar-thumb,.preview::-webkit-scrollbar-thumb{background:#9aa6b2;border-radius:99px;border:2px solid #fff}#modal .mbody::-webkit-scrollbar-corner,.period-list::-webkit-scrollbar-corner,.preview::-webkit-scrollbar-corner{display:none;background:transparent}
@media(max-width:600px){#modal .modal{max-height:92dvh;border-radius:22px 22px 0 0}#modal .mbody{padding-right:17px;scrollbar-gutter:auto}}
/* v2.21 preserve line breaks in full notice views */
.notice-modal .markdown-preview,.staff-notice-full .markdown-preview{white-space:normal}.notice-modal .markdown-preview br,.bulletin br{display:block;content:'';margin-top:.32em}.notice-modal .markdown-preview p,.bulletin p{white-space:normal}.notice-modal .markdown-preview li,.bulletin li{margin:.22em 0}
/* v2.22 remove clipped grade/class corner heading */
body[data-view="staffroom"] .corner-head{font-size:0;color:transparent;padding:0!important;background:#263750}
/* v2.23 show sender and subject in absent report cells */
body[data-view="staffroom"] .status-cell .report-meta{font-weight:800;color:#6b3a18;-webkit-line-clamp:1;white-space:nowrap;text-overflow:ellipsis}
/* v2.24 warning remains through VOICEVOX playback */
.warning-content small{display:block;margin-top:14px;font-size:clamp(12px,1.2vw,18px);font-weight:800;opacity:.82}.warning-overlay.show .warning-stripes{animation:warningStripeMove 1.1s linear infinite}@keyframes warningStripeMove{from{background-position:0 0}to{background-position:79px 0}}
@media(prefers-reduced-motion:reduce){.warning-overlay.show .warning-stripes{animation:none}}
/* v2.25 compact absent-cell metadata */
body[data-view="staffroom"] .status-cell .report-footer{display:flex!important;align-items:center;gap:7px;min-width:0;white-space:nowrap;line-height:1.15;color:#6b3a18}body[data-view="staffroom"] .status-cell .report-footer time{flex:0 0 auto;font-size:11px}body[data-view="staffroom"] .status-cell .report-footer b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:11px}body[data-view="staffroom"] .status-cell .report-memo-line{font-size:10px;line-height:1.15;color:#7a4a2a;-webkit-line-clamp:1!important;white-space:nowrap;text-overflow:ellipsis}body[data-view="staffroom"] .status-cell.absent{gap:clamp(3px,.35vw,6px)}
