/* iOS anchored sheets adapted to Japan Arena: solid surfaces, no background blur. */
:root{--ji-surface-ink:#1c2739;--ji-surface-muted:#536174;--ji-surface-line:#d8dfe8;--ji-surface-blue:#0066cc}
.ji-notification-sheet{box-sizing:border-box;position:fixed;z-index:10020;right:var(--ji-sheet-right,16px);top:var(--ji-sheet-top,80px);width:min(460px,calc(100% - 24px));max-height:min(720px,calc(100dvh - var(--ji-sheet-top,80px) - 12px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #ccd5e2;border-radius:20px;background:#f2f2f7;color:var(--ji-surface-ink);box-shadow:0 15px 48px #142c4a26;font:400 15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;isolation:isolate}
.ji-notification-sheet[hidden]{display:none!important}.ji-notification-sheet *{box-sizing:border-box}.ji-notification-sheet :is(button,input){font:inherit}.ji-notification-sheet button{cursor:pointer;box-shadow:none;letter-spacing:0}.ji-notification-sheet :focus-visible{outline:3px solid #005fcc!important;outline-offset:2px}.ji-notification-sheet :is(h2,h3,p){margin:0;background:none;-webkit-text-fill-color:currentColor}
.ji-notification-sheet .ji-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 20px 16px;background:#f2f2f7;border-bottom:1px solid var(--ji-surface-line);flex:none}.ji-sheet-head small{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--ji-surface-muted)}.ji-notification-sheet .ji-sheet-head h2{font-size:21px;font-weight:700;color:var(--ji-surface-ink);line-height:1.4}.ji-sheet-head [data-notice-count]{display:inline-grid;place-items:center;vertical-align:middle;min-width:22px;height:22px;padding:0 6px;background:#0066cc;color:#fff;border-radius:99px;font-size:11px;font-weight:700}.ji-sheet-head [data-notice-count][hidden]{display:none}
.ji-notification-sheet .ji-sheet-close{width:40px;height:40px;min-height:40px;display:grid;place-items:center;flex:none;border:0;border-radius:50%;background:#e4e7ee;color:#536174;padding:9px}.ji-sheet-close img{width:22px;height:22px}
.ji-notification-sheet .ji-notice-toolbar{display:flex;justify-content:space-between;gap:8px;padding:12px 14px;align-items:center;flex:none}.ji-segments{display:flex;gap:2px;background:#e3e6ed;border-radius:10px;padding:3px}.ji-notification-sheet .ji-segments button{border:0;background:none;color:#485669;border-radius:8px;padding:8px 11px;min-height:38px;font-size:13px;font-weight:600}.ji-notification-sheet .ji-segments button[aria-pressed=true]{background:#fff;color:#005ebc;box-shadow:0 1px 3px #1c27391a}.ji-notification-sheet :is([data-notice-all],[data-notice-retry]){border:0;background:none;color:#005ebc;font-size:12px;font-weight:600;min-height:40px;padding:8px}.ji-notification-sheet button:disabled{cursor:default;color:#606b7b;opacity:1}.ji-notification-sheet [data-notice-all]:disabled{color:#6a7482}
.ji-notice-stream{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 12px 12px;flex:1}.ji-notification-sheet .ji-notice{display:flex;gap:12px;padding:17px 14px;background:#fff;border:1px solid var(--ji-surface-line);border-radius:14px;margin-bottom:9px;overflow-wrap:anywhere}.ji-notice>div{min-width:0;flex:1}.ji-notice.is-unread{border-color:#88b8ed;box-shadow:inset 3px 0 #0066cc}.ji-notice-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:#eef4fc}.ji-notice-icon img{width:22px;height:22px}.ji-notice-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--ji-surface-muted)}.ji-notice-meta b{font-weight:600;color:#34465c}.ji-notification-sheet .ji-notice h3{font-size:15px;font-weight:700;color:#1c2739;line-height:1.5;margin:5px 0}.ji-notification-sheet .ji-notice p{font-size:14px;line-height:1.65;color:#3e4f65;white-space:pre-wrap}.ji-notice footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:11px}.ji-notice time{font-size:10px;color:#536174}.ji-notification-sheet .ji-notice button{border:0;background:#eff5fd;color:#005ebc;border-radius:7px;font-size:11px;min-height:34px;padding:7px 9px}.ji-notification-sheet .ji-notice button:disabled{background:none;color:#536174;padding-left:0}.ji-sheet-foot{padding:11px 15px;border-top:1px solid var(--ji-surface-line);color:#536174;font-size:11px;flex:none}.ji-notification-sheet .ji-surface-status{font-size:12px;line-height:1.6;color:#8d320c;padding:0 16px 10px}.ji-surface-status:empty{display:none}.ji-notice-empty{padding:35px 20px;text-align:center;color:#536174}.ji-notice-empty>img{width:32px;height:32px;opacity:.7;margin-bottom:10px}.ji-notification-sheet .ji-notice-empty h3{font-size:17px;color:#243d5d}.ji-notification-sheet .ji-notice-empty p{font-size:13px;margin-top:7px}
/* Shared support surfaces; preserve the existing transport and permissions. */
html body .sp-root{--sp-ink:#1c2739;--sp-muted:#536174;--sp-line:#dce2eb;--sp-blue:#0066cc;background:#f2f2f7;color:var(--sp-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-radius:20px;padding:18px}
html body .sp-root button{border-color:#cdd6e2;border-radius:10px;min-height:40px;color:#34465c;font-size:13px}
html body .sp-root :is(input,select,textarea){border-color:#bdc9d8!important;border-radius:10px!important;color:#263a55!important;font-size:15px!important;background:#fff!important}
html body .sp-root :is(input,textarea)::placeholder{color:#66758a!important;opacity:1}
html body .sp-root :focus-visible{outline:3px solid #005fcc!important;outline-offset:2px}
html body .sp-root .sp-primary{background:#0066cc!important;border-color:#0066cc!important;color:#fff!important;box-shadow:none;min-height:40px;font-size:13px}
html body .sp-root .sp-primary:hover{background:#0055ad!important}
html body .sp-heading h2{font-size:24px;letter-spacing:-.5px;color:#1c2739!important;background:none!important;-webkit-text-fill-color:#1c2739!important}
html body .sp-heading :is(p,.sp-sync){color:#536174;font-size:12px}html body .sp-sync[data-live=true]{color:#17643a}
html body .sp-root .sp-shell{border:1px solid #d8dfe8;border-radius:14px;min-height:0;height:min(720px,calc(100dvh - 220px))}
html body .sp-root .sp-search input{background:#eef0f5!important;font-size:14px!important}html body .sp-root .sp-filter-toggle{min-width:40px;display:grid;place-items:center;padding:8px;background:#eef0f5;color:#34465c}html body .sp-filter-toggle svg{width:20px;height:20px}
html body .sp-root .sp-tabs{gap:3px}html body .sp-root .sp-tabs button{font-size:12px;color:#536174;min-height:36px}html body .sp-root .sp-tabs button.active{color:#0055ad;background:#e8f1fd}
html body .sp-root .sp-ticket{border-radius:0;min-height:90px;padding:15px!important;border-bottom:1px solid #edf0f5}html body .sp-root .sp-ticket.active{background:#edf4ff;box-shadow:inset 3px 0 #0066cc}
html body .sp-root .sp-ticket-top strong{font-size:14px;color:#24364e}html body .sp-root :is(.sp-ticket-copy p,.sp-ticket-top time,.sp-ticket-meta small,.sp-paging small){color:#536174}html body .sp-root .sp-ticket-top time{font-size:10px}html body .sp-root .sp-ticket-copy p{font-size:13px}html body .sp-root .sp-ticket-meta small{font-size:11px}
html body .sp-root .sp-avatar{background:#e7effb;color:#365c8c}html body .sp-root .sp-unread{background:#0066cc;color:#fff;border-radius:99px;font-size:10px;min-width:19px;height:19px}
html body .sp-root .sp-chat-header{background:#f8f9fc;min-height:76px}html body .sp-root .sp-chat-header h3{font-size:16px;line-height:1.5}html body .sp-root .sp-chat-header p{color:#536174;font-size:11px}html body .sp-root .sp-state-chip{color:#3c536f;background:#fff;border-color:#cbd7e6;font-size:11px}
html body .sp-root .sp-thread{background:#f8f9fc;padding:22px}html body .sp-root .sp-message{max-width:88%}html body .sp-root :is(.sp-message-name,.sp-message-time){font-size:11px;color:#536174}html body .sp-root .sp-bubble{font-size:15px;line-height:1.75;color:#263a55;background:#fff;border:1px solid #dce2eb;border-radius:4px 16px 16px 16px;box-shadow:none}html body .sp-root .sp-message.mine .sp-bubble{background:#0066cc;border-color:#0066cc;color:#fff;border-radius:16px 4px 16px 16px}html body .sp-root .sp-message.note .sp-bubble{background:#fff7df;border-color:#e5cc8e;color:#715009}
html body .sp-root .sp-note-label{color:#755210}html body .sp-root .sp-composer{border-color:#bdc9d8;border-radius:14px;padding:13px;box-shadow:none}html body .sp-root .sp-composer textarea{font-size:16px!important;line-height:1.6;min-height:54px!important}html body .sp-root .sp-composer-actions{align-items:center}html body .sp-root .sp-attach{min-height:40px;min-width:40px;color:#34465c}html body .sp-root .sp-attach svg{width:20px;height:20px}html body .sp-root .sp-send svg{width:17px;height:17px}
html body .sp-root :is(.sp-read-receipt,.sp-profile small,.sp-profile-section p,.sp-event strong,.sp-event time,.sp-empty p,.sp-empty h3,.sp-history,.sp-note-switch){color:#536174!important}html body .sp-root :is(.sp-profile-heading,.sp-profile-section h4){color:#34465c;font-size:13px}html body .sp-root .sp-profile-section label{color:#536174!important;font-size:12px!important}html body .sp-root .sp-lock{color:#725014;background:#fff5db}html body .sp-root .sp-profile-section select{font-size:13px!important;min-height:38px!important}html body .sp-root .sp-read-receipt{font-size:11px}
html body .sp-root .sp-dialog{background:#f2f2f7;color:#1c2739;border-color:#ccd5e2;border-radius:20px;padding:22px;max-height:calc(100dvh - 32px)}html body .sp-root .sp-dialog::backdrop,html body #jaSupportDialog::backdrop{background:#15294238;backdrop-filter:none!important}html body .sp-dialog label{color:#455a74;font-size:13px}html body .sp-dialog header h3{color:#1c2739!important;background:none!important;-webkit-text-fill-color:#1c2739!important}html body .sp-dialog [data-close]{width:40px;height:40px;min-height:40px;border-radius:50%;padding:8px;background:#e4e7ee;display:grid;place-items:center;font-size:24px}html body .sp-dialog :is(.sp-form-error,.sp-statusbar){color:#8d320c}html body .sp-root .sp-statusbar{color:#8d320c;background:#fff6ed;border-color:#e1c5ae}html body .sp-root .sp-statusbar:empty{display:none}
html body #jaSupportDialog{background:#f2f2f7;border:1px solid #ccd5e2;border-radius:22px;width:min(1280px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:hidden}html body #jaSupportDialog .sp-root{padding:20px}html body #jaSupportDialog .sp-shell{height:min(700px,calc(100dvh - 152px));min-height:0}html body .sp-student-close{top:20px;right:20px;width:40px;height:40px;border-radius:50%;background:#e4e7ee;color:#34465c;font-size:25px;display:grid;place-items:center}html body .sp-student-close+div .sp-heading{padding-right:48px}
html body .student-profile-overlay,html body .completion-overlay{backdrop-filter:none!important;background:#15294238}html body .ja-portal-dialog:not(.ja-shell-page){border-radius:20px;background:#f2f2f7;color:#1c2739}html body .ja-portal-dialog::backdrop{backdrop-filter:none!important;background:#15294238}
@media(max-width:700px){.ji-notification-sheet{inset:auto 8px 8px!important;width:auto;max-height:min(82dvh,720px);border-radius:22px}.ji-notification-sheet:before{content:'';display:block;flex:none;width:36px;height:5px;border-radius:99px;background:#a7adb8;margin:8px auto 0}.ji-notification-sheet .ji-sheet-head{padding-top:9px}.ji-notification-sheet .ji-sheet-head h2{font-size:20px}.ji-notification-sheet .ji-notice-toolbar{padding:10px}.ji-notification-sheet .ji-segments button{padding:8px}.ji-notification-sheet [data-notice-all]{font-size:11px}.ji-notice-stream{padding:0 9px 9px}.ji-notification-sheet .ji-notice{padding:14px 12px;gap:9px}.ji-notice-icon{width:30px;height:30px}}
@media(max-width:650px){html body #jaSupportDialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:20px}html body #jaSupportDialog .sp-root{padding:14px 10px 10px}html body #jaSupportDialog .sp-shell{height:calc(100dvh - 150px)!important;min-height:0}html body .sp-root .sp-shell{height:calc(100dvh - 230px)!important;min-height:0}html body .sp-root .sp-thread{padding:14px 11px}html body .sp-root .sp-message{max-width:95%}html body .sp-root .sp-bubble{font-size:15px;padding:10px 12px}html body .sp-root .sp-chat-header{padding:11px;gap:7px}html body .sp-root .sp-chat-header h3{font-size:15px}html body .sp-root .sp-composer{margin:6px 9px 10px;padding:10px}html body .sp-root .sp-composer textarea{min-height:42px!important}html body .sp-root .sp-heading{padding-right:45px;flex-wrap:nowrap;align-items:center}html body .sp-root .sp-heading>div:first-child{width:auto;min-width:0}html body .sp-root .sp-heading>div:last-child{width:auto;flex:none}html body .sp-root .sp-heading h2{font-size:19px}html body .sp-root .sp-heading .sp-sync{display:none}html body .sp-root .sp-heading .sp-primary{padding:7px 10px;font-size:12px;white-space:nowrap}html body .sp-root .sp-heading .sp-settings{display:none}html body .sp-student-close{right:12px;top:14px;width:36px;height:36px}html body .sp-root .sp-note-switch{font-size:11px!important}html body .sp-root .sp-mobile-back{min-height:40px;font-size:12px}html body .sp-root .sp-profile-toggle{min-height:40px}html body .sp-root .sp-search input{font-size:16px!important}html body .sp-root .sp-filters{grid-template-columns:1fr 1fr}html body .sp-root .sp-dialog{padding:18px;max-height:calc(100dvh - 24px)}html body .sp-root .sp-composer-actions{gap:5px}}
@media(prefers-reduced-motion:no-preference){.ji-notification-sheet{animation:ji-sheet-enter .16s ease-out}@keyframes ji-sheet-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

html body .sp-root [hidden]{display:none!important}

html body #jaSupportDialog{box-sizing:border-box;max-width:calc(100% - 24px)}
@media(max-width:650px){html body #jaSupportDialog{max-width:calc(100% - 12px)}}
