/* Shared CBT notice/feedback and a session-authorized operator window. */
:where(.cbt-ui,.cbt-operator) {
 min-width:0;
 color:var(--pixel-ink,#44384f);
 font-family:var(--body,'Galmuri11',sans-serif);
 font-size:15px;
 font-weight:400;
 font-synthesis:none;
 line-height:1.9;
}
:where(.cbt-ui,.cbt-operator) [hidden] {display:none!important}
:where(.cbt-ui,.cbt-operator) :is(h2,h3,button,summary) {font-family:var(--heading,'Mulmaru',sans-serif);font-weight:400;letter-spacing:0}
:where(.cbt-ui,.cbt-operator) :is(p,h2,h3,ul) {margin:0}
:where(.cbt-ui,.cbt-operator) :is(p,li,label,h2,h3,summary) {overflow-wrap:anywhere}
.cbt-ui {margin:0 0 18px;padding:14px 16px;border:1px solid var(--pixel-line,#cbbbd8);background:#ffffff}
.cbt-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
:where(.cbt-ui,.cbt-operator) .cbt-heading h2 {font-size:20px;line-height:1.6}
.cbt-phase {padding:2px 8px;border:1px solid #cbbbd8;background:#f6eefb;font-size:13px;line-height:1.8}
.cbt-phase[data-phase=maintenance],.cbt-phase[data-phase=closed] {background:#fbe9f2}
.cbt-admissions {margin-top:5px!important;font-size:13px;color:var(--pixel-muted,#716378)}
.cbt-notice {margin-top:12px!important;padding:10px 12px;border-left:3px solid #d492be;white-space:pre-wrap;background:#fff5fb}
.cbt-rules,.cbt-feedback {margin-top:12px;border-top:1px solid var(--school-rule,#e2d7eb);padding-top:4px}
:where(.cbt-ui,.cbt-operator) summary {min-height:44px;cursor:pointer;font-size:16px;line-height:1.8;padding:8px 0}
.cbt-rules ul {padding:0 0 8px 20px!important}
.cbt-rules li {margin:0 0 8px;font-size:14px;line-height:1.95}
.cbt-feedback-form,.cbt-notice-form {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px}
:where(.cbt-ui,.cbt-operator) label {font-size:15px;line-height:1.9}
:where(.cbt-ui,.cbt-operator) textarea {
 display:block;
 width:100%;
 min-width:0;
 min-height:112px;
 resize:vertical;
 padding:8px 10px;
 border:4px solid #cbbbd8;
 border-image:url('/art/pastel-input-normal.png') 4 fill / 4px / 0 stretch;
 border-radius:0;
 color:var(--pixel-ink,#44384f);
 font-family:var(--body,'Galmuri11',sans-serif);
 font-size:16px;
 font-weight:400;
 line-height:1.9;
}
:where(.cbt-ui,.cbt-operator) :is(.cbt-primary,.cbt-secondary) {
 min-width:0;
 min-height:46px;
 padding:0 10px;
 border:solid #cbbbd8;
 border-width:10px 12px 12px;
 border-image:url('/art/pastel-button_M_normal.png') 5 6 6 6 fill / 10px 12px 12px / 0 stretch;
 border-radius:0;
 background:#e88ac2;
 color:#44384f;
 box-shadow:2px 2px 0 #ded2e9;
 font-size:18px;
 line-height:24px;
 text-align:center;
 white-space:normal;
 overflow-wrap:anywhere;
 cursor:pointer;
}
:where(.cbt-ui,.cbt-operator) .cbt-secondary {border-image-slice:5 6 6 6;background:#f3eafb}
:where(.cbt-ui,.cbt-operator) :is(.cbt-primary,.cbt-secondary):hover:not(:disabled) {border-image-source:url('/art/pastel-button_M_hover.png');background:#f7c6df}
:where(.cbt-ui,.cbt-operator) :is(.cbt-primary,.cbt-secondary):active:not(:disabled) {border-image-source:url('/art/pastel-button_M_pressed.png');box-shadow:1px 1px 0 #ded2e9}
:where(.cbt-ui,.cbt-operator) :is(.cbt-primary,.cbt-secondary):disabled {border-image-source:url('/art/pastel-button_M_disabled.png');cursor:default;opacity:.65}
:where(.cbt-ui,.cbt-operator) :is(button,textarea,input,a,summary):focus-visible {outline:2px solid #665078;outline-offset:4px}
.cbt-counter,.cbt-note {font-size:13px;color:var(--pixel-muted,#716378);line-height:1.95}
.cbt-counter {justify-self:end}
.cbt-note {margin-top:8px!important}
.cbt-status,.cbt-error {margin-top:12px!important;font-size:14px;line-height:1.95}
.cbt-error {color:#79445f}
:where(.cbt-ui,.cbt-operator) :is(.cbt-status,.cbt-error):empty {display:none}
.cbt-error:focus {outline:2px solid #79445f;outline-offset:4px}
.cbt-link {display:inline-flex;align-items:center;min-height:44px;color:#665078;text-underline-offset:3px;overflow-wrap:anywhere}
.cbt-ui>.cbt-link {margin-left:12px}
.cbt-ui>.cbt-secondary {margin-top:12px}
.cbt-operator-page {margin:0;background:#ffffff!important}
.cbt-operator-shell {width:min(100% - 32px,920px);margin:0 auto;padding:30px 0 max(36px,env(safe-area-inset-bottom,0px))}
.cbt-operator-brand {display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-bottom:18px;text-decoration:none;font-family:var(--heading,'Mulmaru',sans-serif);font-size:24px;color:var(--pixel-ink,#44384f)}
.cbt-operator-brand img {width:32px;height:32px;image-rendering:pixelated}
.cbt-operator-shell>h1 {margin:0 0 14px;font-family:var(--heading,'Mulmaru',sans-serif);font-size:24px;font-weight:400;line-height:1.6}
.cbt-operator {padding:20px;border:8px solid #cbbbd8;border-image:url('/art/pastel-panel.png') 8 / 8px / 0 stretch;background:#ffffff}
.cbt-permission {margin-top:14px!important;color:var(--pixel-muted,#716378)}
.cbt-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.cbt-operation-block {min-width:0;padding:14px;border:1px solid var(--pixel-line,#cbbbd8);background:#ffffff}
.cbt-operation-block h3 {font-size:20px;line-height:1.7;margin-bottom:10px!important}
.cbt-toggle {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.cbt-toggle input {width:20px;height:20px;flex-shrink:0;accent-color:#8f4fa8}
.cbt-button-row {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:14px}
.cbt-close-prompt {margin-top:16px;padding-top:12px;border-top:1px solid #e2d7eb}
.cbt-close-prompt p {font-size:14px;line-height:1.95;margin-bottom:12px!important}
.cbt-close-prompt button {margin:0 6px 8px 0}
.cbt-feedback-inbox {min-width:0;margin:20px 0;padding:16px;border:1px solid var(--pixel-line,#cbbbd8);background:#fffafd;scroll-margin-top:20px}
.cbt-feedback-inbox h3 {font-size:21px;line-height:1.7}
.cbt-feedback-inbox:focus {outline:2px solid #665078;outline-offset:4px}
.cbt-feedback-inbox .cbt-heading .cbt-note {margin-top:0!important}
.cbt-inbox-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.cbt-inbox-list {display:grid;gap:12px;list-style:none;padding:0;margin:14px 0}
.cbt-inbox-entry {min-width:0;padding:12px 14px;border:1px solid #e2d7eb;background:#fff}
.cbt-inbox-time {display:block;font-size:13px;line-height:1.9;color:var(--pixel-muted,#716378);overflow-wrap:anywhere}
.cbt-inbox-body {margin-top:6px!important;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.95}
@media(max-width:760px){
 :where(.cbt-ui,.cbt-operator) {font-size:18px;line-height:1.95}
 .cbt-ui {padding:12px;margin-bottom:14px}
 .cbt-controls {grid-template-columns:minmax(0,1fr)}
 :where(.cbt-ui,.cbt-operator) textarea {font-size:18px}
 .cbt-rules li,.cbt-note,.cbt-status,.cbt-error,.cbt-close-prompt p {font-size:16px}
 .cbt-operator-shell {width:calc(100% - 28px);padding-top:22px}
 .cbt-operator {padding:16px 12px}
 .cbt-operation-block {padding:13px 12px}
 .cbt-ui>.cbt-link {display:flex;margin-left:0}
 .cbt-feedback-inbox {padding:13px 12px}
 .cbt-inbox-entry {padding:12px}
 .cbt-inbox-time {font-size:14px}
}
@media(max-width:350px){
 .cbt-operator-shell {width:calc(100% - 24px)}
 .cbt-operator {padding:14px 8px}
 .cbt-operator-brand {font-size:24px;gap:8px}
 .cbt-operation-block {padding:12px 10px}
}

/* Notices and feedback follow the complete game content at every viewport. */
.cbt-bottom {min-width:0;margin:28px 0 0}
.school-management .academy-bottom {width:min(100% - 40px,1360px);margin:10px auto 30px}
.cbt-bottom>.cbt-ui {margin-bottom:0}
@media(max-width:760px) {
 .cbt-bottom {margin-top:24px}
 .school-management .academy-bottom {width:min(100% - 28px,592px);margin:0 auto 28px}
}
@media(max-width:380px) {
 .school-management .academy-bottom {width:calc(100% - 24px)}
}
