:root{color:#3a3a3a;--navy:#173a63;--red:#ce252b;--page-bg:#f4f6f9;--surface:#fff;--surface-muted:#f6f8fa;--text:#263445;--text-muted:#738295;--border:#e6ebf0;background:#f4f6f9;font-family:Roboto,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%}html{scroll-behavior:smooth;overflow-x:clip}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;background:var(--red);color:#fff;border:0;border-radius:8px;padding:10px 14px;font-weight:600}button:disabled{color:#8b98a9;cursor:not-allowed;box-shadow:none;background:#cbd5e1}button:disabled:hover,button:disabled:focus{color:#8b98a9;background:#cbd5e1}.icon-action{width:34px;height:34px;color:var(--navy);background:#fff;border:1px solid #dbe2ea;border-radius:7px;flex:0 0 34px;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-action:hover{background:#eff6ff;border-color:#bfdbfe}.icon-action.danger{color:#dc2626}.icon-action.danger:hover{background:#fef2f2;border-color:#fecaca}.icon-action.compact{background:0 0;border:0;border-radius:4px;flex-basis:24px;width:24px;height:24px}.icon-action.compact:hover{background:#dbeafe}.icon-action.compact.danger:hover{background:#fee2e2}.shell{min-height:100dvh}.mobile-menu-toggle,.mobile-menu-backdrop{display:none}.shell aside{background:var(--navy);color:#fff;flex-direction:column;width:250px;padding:28px 18px;transition:width .2s;display:flex;position:fixed;inset:0 auto 0 0}.shell aside h2{letter-spacing:3px;margin:0}.shell aside small{color:#b9c8d8;letter-spacing:1px;font-size:9px}.shell nav{gap:8px;margin-top:42px;display:grid}.shell nav a{color:#d3dfeb;text-align:left;background:0 0;border-radius:8px;align-items:center;gap:12px;padding:10px 14px;font-weight:600;text-decoration:none;display:flex}.shell nav a.active{color:var(--navy);background:#fff}.shell nav a:not(.active):hover{color:#fff;background:#ffffff1f}.sidebar-profile-link{color:#d3dfeb;border-radius:8px;align-items:center;gap:12px;margin-top:auto;padding:10px 14px;font-weight:600;text-decoration:none;display:flex}.sidebar-profile-link:hover{color:#fff;background:#ffffff1f}.sidebar-profile-link.active{color:var(--navy);background:#fff}.sidebar-profile-link+.logout{margin-top:8px}.logout{text-align:left;background:#ffffff18;border:1px solid #fff4;justify-content:flex-start;align-items:center;gap:10px;width:100%;margin-top:auto;line-height:1.25;display:flex}.logout svg{flex:0 0 17px;display:block}.shell main{margin-left:250px;transition:margin-left .2s}.shell.sidebar-collapsed aside{width:76px;padding-left:10px;padding-right:10px}.shell.sidebar-collapsed main{margin-left:76px}.shell.sidebar-collapsed .sidebar-logo{padding:14px 4px 24px}.shell.sidebar-collapsed .sidebar-logo img{width:52px}.shell.sidebar-collapsed nav a,.shell.sidebar-collapsed .sidebar-profile-link{justify-content:center;gap:0;padding:12px 8px}.shell.sidebar-collapsed nav a span,.shell.sidebar-collapsed .sidebar-profile-link span,.shell.sidebar-collapsed .logout span{display:none}.shell.sidebar-collapsed .logout{justify-content:center;padding:12px 8px}.header-title{align-items:center;gap:12px;min-width:0;display:flex}.sidebar-toggle{width:34px;height:34px;color:var(--navy);background:#fff;border:1px solid #e1e7ed;border-radius:8px;flex:0 0 34px;place-items:center;padding:0;display:grid}.sidebar-toggle:hover{background:#f1f5f9}.shell header{z-index:900;height:68px;color:var(--navy);background:#fff;border-bottom:1px solid #e6ebf0;justify-content:space-between;align-items:center;padding:0 30px;display:flex;position:sticky;top:0}.shell section{max-width:1500px;margin:auto;padding:30px}.title{justify-content:space-between;align-items:end;margin-bottom:24px;display:flex}.title small{color:var(--red);letter-spacing:1.5px;font-weight:800}.title h1{color:var(--navy);margin:8px 0;font-size:25px}.title p,.hint{color:#8793a1;font-size:12px}.cards{grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px;display:grid}.cards article,.panel{background:#fff;border:1px solid #e6ebf0;border-radius:13px;padding:20px}.cards small{color:#8793a1;display:block}.cards strong{color:var(--navy);margin-top:10px;font-size:30px;display:block}.dashboard-stat-card{cursor:help;position:relative}.dashboard-stat-popup{z-index:20;opacity:0;visibility:hidden;pointer-events:none;background:#fff;border:1px solid #dbe2ea;border-radius:10px;width:min(360px,100vw - 48px);max-height:320px;padding:14px;transition:opacity .15s,transform .15s,visibility .15s;position:absolute;top:calc(100% - 6px);left:12px;overflow:auto;transform:translateY(5px);box-shadow:0 12px 30px #0f172a2e}.dashboard-stat-card:hover .dashboard-stat-popup,.dashboard-stat-card:focus .dashboard-stat-popup{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}.dashboard-stat-popup>b{color:var(--navy);margin-bottom:8px;display:block}.dashboard-stat-popup ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.dashboard-stat-popup li{color:#334155;border-top:1px solid #edf0f3;padding-top:8px;font-size:13px}.dashboard-stat-popup li small{color:#8793a1;margin-top:3px;line-height:1.4}.dashboard-stat-popup p{color:#64748b;margin:0;font-size:13px}.panel{margin-bottom:18px;overflow:auto}.panel h3{color:var(--navy);margin-top:0}table{border-collapse:collapse;white-space:nowrap;width:100%}.app-table{width:100%}.app-table thead th{z-index:2;position:sticky;top:0}.app-table tbody tr:hover{background:#f8fafc}.dashboard-pagination{color:#64748b;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;font-size:13px;display:flex}.dashboard-pagination button{color:#173c65;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px}.dashboard-pagination button:disabled{cursor:not-allowed;opacity:.45}.attendance-pagination{color:#526173;border-top:1px solid #e6ebf0;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;min-height:64px;margin:18px -20px -20px;padding:10px 20px;font-size:12px;display:grid}.attendance-pagination-summary{white-space:nowrap;min-width:0}.attendance-page-size{justify-self:center;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:400;display:flex}.attendance-page-size select{border-color:#dce3ea;border-radius:8px;min-width:64px;padding:7px 9px}.attendance-page-controls{justify-self:end;gap:5px;display:flex}.attendance-page-controls button{color:#263445;background:#fff;border:1px solid #dce3ea;border-radius:8px;min-width:34px;height:34px;padding:0 8px;font-size:13px;font-weight:400}.attendance-page-controls button.is-current{color:#fff;background:#2563eb;border-color:#2563eb}.attendance-page-controls button:disabled{cursor:not-allowed;opacity:.45}.session-table-wrap{overflow-x:auto}.session-table{min-width:720px}.session-table td strong,.session-table td small{display:block}.session-table td small{color:var(--text-muted);margin-top:4px}.session-current,.session-revoke-button{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.session-current{color:#15803d;font-size:12px;font-weight:600}.session-revoke-button{color:#b91c1c;background:#fff;border:1px solid #fecaca;padding:7px 10px;font-size:12px}.session-revoke-button:hover:not(:disabled){background:#fef2f2}.session-error{color:#b91c1c}.account-add-button{background:#07869a;align-items:center;gap:8px;display:inline-flex}.account-tabs{border-bottom:1px solid var(--border);gap:8px;margin:0 0 18px;display:flex}.account-tabs button{color:var(--text-muted);background:0 0;border:1px solid #0000;border-bottom-width:2px;border-radius:8px 8px 0 0;margin-bottom:-1px;padding:10px 18px}.account-tabs button.is-active{border-color:var(--border) var(--border) var(--surface);background:var(--surface);color:#07869a;border-bottom-color:#07869a}.account-panel{min-height:360px}.account-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.account-toolbar strong{color:var(--navy)}.account-toolbar input{width:min(360px,100%);min-height:40px}.account-table-wrap{overflow-x:auto}.account-table{table-layout:fixed;width:100%;min-width:1120px}.account-table th:first-child,.account-table td:first-child{width:20%}.account-table th:nth-child(2),.account-table td:nth-child(2){width:10%}.account-table th:nth-child(3),.account-table td:nth-child(3){width:14%}.account-table th:nth-child(4),.account-table td:nth-child(4){width:16%}.account-table th:nth-child(5),.account-table td:nth-child(5){width:25%}.account-table th:nth-child(6),.account-table td:nth-child(6){width:15%}.account-table td strong,.account-table td small{display:block}.account-table td small{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;overflow:hidden}.account-sidebar-cell{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.account-actions{white-space:nowrap;align-items:center;gap:6px;display:flex}.account-actions .icon-action{flex:0 0 34px;margin:0}.account-status{white-space:nowrap;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:650;display:inline-flex}.account-status.is-active{color:#166534;background:#dcfce7}.account-status.is-locked{color:#b91c1c;background:#fee2e2}.account-dialog-backdrop{z-index:1400;background:#0f172a88;place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow-y:auto}.account-dialog{border:1px solid var(--border);background:var(--surface);width:min(620px,100%);max-height:min(90dvh,850px);color:var(--text);border-radius:14px;padding:20px;overflow-y:auto;box-shadow:0 24px 70px #0f172a44}.account-dialog>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:0 0 18px;padding:0 0 14px;display:flex}.account-dialog>header>div{color:#07869a;align-items:center;gap:10px;display:flex}.account-dialog h2{color:var(--text);margin:0;font-size:19px}.account-dialog>header>button{color:var(--text-muted);background:0 0;padding:4px 9px;font-size:24px}.account-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.account-form-grid label{color:var(--text);gap:7px;margin:0;font-size:13px;display:grid}.account-form-grid input,.account-form-grid select{width:100%;min-height:40px}.account-sidebar-options{border:1px solid var(--border);border-radius:9px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:18px 0 12px;padding:14px;display:grid}.account-sidebar-options legend{color:var(--text);padding:0 6px;font-size:13px;font-weight:650}.account-sidebar-options label,.account-active-toggle{color:var(--text);cursor:pointer;align-items:center;gap:8px;margin:0;font-size:13px;display:flex}.account-sidebar-options input,.account-active-toggle input{accent-color:#07869a;width:16px;height:16px;margin:0}.account-modal-error{color:#b91c1c}.account-dialog>footer{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;margin-top:18px;padding-top:14px;display:flex}.account-dialog>footer button{background:#07869a;min-width:112px}.account-dialog>footer .account-cancel-button{background:var(--surface);color:var(--text);border:1px solid #cbd5e1}html[data-theme=dark] .account-toolbar strong{color:#eee7d8}html[data-theme=dark] .account-status.is-active{color:#bbf7d0;background:#14532d}html[data-theme=dark] .account-status.is-locked{color:#fecaca;background:#7f1d1d}.session-tabs{border-bottom:1px solid var(--border);gap:8px;margin:0 0 18px;display:flex}.session-tabs button{color:var(--text-muted);background:0 0;border:1px solid #0000;border-bottom-width:2px;border-radius:8px 8px 0 0;align-items:center;gap:8px;margin-bottom:-1px;padding:10px 16px;display:inline-flex}.session-tabs button:hover{background:var(--surface-muted)}.session-tabs button.is-active{border-color:var(--border) var(--border) var(--surface);background:var(--surface);color:#07869a;border-bottom-color:#07869a}.session-history-table{min-width:900px}.session-history-table td:nth-child(2){min-width:260px}.session-history-table td:nth-child(3){max-width:320px}.session-history-table td:nth-child(3) small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.session-history-filter{color:var(--text);justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.session-history-filter button{background:#07869a;padding:7px 10px;font-size:12px}.session-event-label{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:650;display:inline-flex}.session-event-label.is-success{color:#166534;background:#dcfce7}.session-event-label.is-warning{color:#92400e;background:#fef3c7}html[data-theme=dark] .session-tabs button.is-active{border-color:var(--border) var(--border) var(--surface);background:var(--surface);color:#63c7d3}html[data-theme=dark] .session-event-label.is-success{color:#bbf7d0;background:#14532d}html[data-theme=dark] .session-event-label.is-warning{color:#fde68a;background:#713f12}@media (width<=1450px){.attendance-pagination{grid-template-columns:minmax(0,1fr) auto;row-gap:10px}.attendance-page-size{grid-area:1/2;justify-self:end}.attendance-page-controls{grid-area:2/1/auto/-1;justify-self:end}}@media (width<=650px){.attendance-pagination{grid-template-columns:1fr;row-gap:10px;margin-left:-14px;margin-right:-14px;padding:12px 14px}.attendance-page-size{grid-area:auto/1;justify-self:start}.attendance-page-controls{grid-area:auto/1;justify-self:start;gap:3px}.attendance-page-controls button{min-width:30px;height:32px}.attendance-page-number:not(.is-current){display:none}}.paginated-page{flex-direction:column;min-height:calc(100vh - 102px);margin-bottom:-26px;display:flex}.paginated-table-panel{flex-direction:column;flex:1;min-height:360px;margin-bottom:0;display:flex;overflow:hidden}.paginated-table-scroll{flex:1;min-height:0;overflow:auto}.pagination-bar{color:#64748b;border-top:1px solid #edf0f3;flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 4px 2px;display:flex}.pagination-controls,.pagination-page-size{color:#64748b;justify-content:center;align-items:center;gap:8px;margin:0;font-size:13px;display:flex}.pagination-controls span{text-align:center;min-width:72px}.pagination-controls button{padding:7px 11px}.pagination-controls button:disabled{cursor:not-allowed;opacity:.45}.pagination-page-size select{min-width:64px;padding:7px 9px}th{text-align:left;color:#738295;background:#f6f8fa;padding:12px;font-size:13px}td{border-bottom:1px solid #edf0f3;padding:12px;font-size:14px}td small{color:#8995a2;margin-top:3px;font-size:12px;display:block}input,select{color:#3a3a3a;background:#fff;border:1px solid #dce3ea;border-radius:7px;padding:9px}label{margin-right:10px;font-size:11px;font-weight:600}.filters{flex-wrap:wrap;gap:15px;display:flex}.attendance-filters{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:18px 20px;padding:22px 24px;display:grid}.attendance-filters>label{color:#334155;flex-direction:column;align-items:flex-start;gap:8px;margin:0;font-size:14px;line-height:1.4;display:flex}.attendance-filters input:not([type=checkbox]),.attendance-filters select{width:100%;min-height:42px;padding:9px 11px;font-size:14px}.attendance-filters .attendance-filter-checkbox{cursor:pointer;flex-direction:row;align-items:center;gap:10px;min-height:42px}.attendance-filter-checkbox input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;margin:0}.weekly-controls label{color:#334155;flex-direction:column;gap:8px;margin:0;font-size:14px;display:flex}.weekly-controls input[type=date]{min-height:42px;font-size:14px}.school-actions{flex-wrap:wrap;gap:12px;margin-bottom:20px;display:flex}.school-modal-backdrop{z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.school-modal{width:min(560px,100%);max-height:90vh;position:relative;overflow-y:auto}.school-modal>.panel{padding:24px;margin:0!important}.school-modal h3{padding-right:44px}.school-modal form{gap:14px;display:grid}.school-modal-close{color:#173a63;background:#f1f5f9;border:1px solid #dbe2ea;place-items:center;width:36px;height:36px;padding:0;font-size:22px;line-height:1;display:grid;position:absolute;top:14px;right:14px}.login{background:linear-gradient(135deg, #102b49, var(--navy));place-items:center;min-height:100vh;display:grid}.login form{background:#fff;border-radius:16px;gap:10px;width:min(390px,92vw);padding:36px;display:grid}.login .brand{text-align:center;color:var(--red);letter-spacing:4px;font-size:22px}.login h1{text-align:center;color:var(--navy);font-size:21px}.login label{margin-top:8px}.login input{width:100%}.login button{margin-top:12px;padding:13px}.error{color:#b4232a;background:#fff0f0;border-radius:7px;padding:10px}.center{height:100vh;color:var(--navy);place-items:center;font-size:28px;font-weight:800;display:grid}@media (width<=900px){.shell aside{width:205px}.shell main{margin-left:205px}.cards{grid-template-columns:repeat(2,1fr)}.shell section{padding:18px}.paginated-page{min-height:calc(100vh - 90px);margin-bottom:-14px}}@media (width<=650px){.shell,.shell main,.shell section{width:100%;min-width:0;max-width:100%}.shell aside{z-index:1001;width:min(260px,82vw);padding:16px 14px calc(18px + env(safe-area-inset-bottom));transition:transform .2s;position:fixed;inset:0 auto 0 0;overflow-y:auto;transform:translate(-100%);box-shadow:8px 0 28px #0f172a30}.shell.sidebar-collapsed aside{width:min(260px,82vw);padding:16px 14px calc(18px + env(safe-area-inset-bottom))}.shell.sidebar-collapsed aside .sidebar-logo img{width:132px}.shell.sidebar-collapsed aside nav a{justify-content:flex-start;gap:12px;padding:10px 14px}.shell.sidebar-collapsed aside nav a span,.shell.sidebar-collapsed aside .sidebar-profile-link span,.shell.sidebar-collapsed aside .logout span{display:inline}.shell.sidebar-collapsed aside .logout{justify-content:flex-start;padding:10px 14px}.shell.sidebar-collapsed aside .sidebar-profile-link{justify-content:flex-start;gap:12px;padding:10px 14px}.sidebar-toggle{display:none}.shell aside .sidebar-logo{padding:8px 8px 14px}.shell aside .sidebar-logo img{width:132px}.shell.mobile-menu-open aside{transform:translate(0)}.mobile-menu-toggle{z-index:1003;background:var(--navy);color:#fff;border-radius:0 9px 9px 0;place-items:center;width:40px;height:48px;padding:0;display:grid;position:fixed;top:50%;left:0;transform:translateY(-50%);box-shadow:2px 2px 9px #0f172a35}.mobile-menu-toggle.is-compact{opacity:.82;border-radius:0 7px 7px 0;width:22px;height:36px;padding:0 2px;box-shadow:1px 1px 5px #0f172a30}.mobile-menu-toggle.is-compact svg{width:14px;height:14px}.shell.mobile-menu-open .mobile-menu-toggle{top:max(12px, env(safe-area-inset-top));background:#173a63;border:1px solid #ffffff70;border-radius:8px;left:calc(min(260px,82vw) - 50px);transform:none;box-shadow:0 2px 8px #0f172a35}.mobile-menu-backdrop{z-index:1000;background:#0f172a70;border-radius:0;width:100%;height:100%;padding:0;display:block;position:fixed;inset:0}.shell nav{grid-template-columns:1fr;margin-top:24px}.shell .logout,.sidebar-profile-link{margin-top:auto}.sidebar-profile-link+.logout{margin-top:8px}.profile-form{grid-template-columns:1fr}.profile-avatar-section{align-items:flex-start}.shell main{margin:0}.shell.sidebar-collapsed main{margin-left:0}.shell header{gap:8px;height:auto;min-height:64px;padding:10px 14px 10px 54px}.shell header>b{text-overflow:ellipsis;white-space:nowrap;max-width:42%;font-size:14px;overflow:hidden}.header-user-actions{gap:8px;min-width:0;font-size:12px}.header-user-name-block{text-align:right;min-width:0;max-width:36vw;line-height:1.25}.header-user-name,.header-user-japanese-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.shell section{overflow-x:clip}.panel{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;padding:14px;overflow-x:auto}.shell section{padding:15px}.paginated-page{min-height:60vh;margin-bottom:-11px}.paginated-table-panel{min-height:55vh}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cards article{min-width:0;padding:14px}.cards strong{font-size:25px}.dashboard-stat-popup{width:min(340px,100vw - 72px);left:0}.title{flex-direction:column;align-items:start;gap:12px}}@media (width<=380px){.cards{grid-template-columns:minmax(0,1fr)}.header-user-name-block{max-width:30vw}.title h1{font-size:22px}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.shell aside{transition:none}}.dashboard-page{width:100%;min-width:0;max-width:none;margin:0;display:block}.dashboard-page>.title,.dashboard-page>.dashboard-tabs{width:100%}.dashboard-page>.notification-center{width:100%;max-width:none;margin:0}.notification-center{grid-template-columns:minmax(0,1fr);align-items:start;width:100%;max-width:1500px;margin:0 auto;display:grid}.notification-center.has-composer{grid-template-columns:minmax(300px,.9fr) minmax(0,1.5fr)}.notification-center>section{width:100%;min-width:0;max-width:none;margin:0}@media (width<=820px){.notification-center.has-composer{grid-template-columns:minmax(0,1fr)}}@media (width<=650px){.notification-popover{top:calc(env(safe-area-inset-top,0px) + 66px);width:auto;max-width:420px;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 82px);margin-left:auto;position:fixed;left:12px;right:12px}.notification-popover-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:min(52dvh,420px);overflow-y:auto}html,body,#root{min-width:0;overflow-x:clip}.shell aside{padding-top:calc(16px + env(safe-area-inset-top,0px));padding-right:max(14px, env(safe-area-inset-right,0px));padding-bottom:calc(18px + env(safe-area-inset-bottom,0px));padding-left:max(14px, env(safe-area-inset-left,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.shell.sidebar-collapsed aside{padding-top:calc(16px + env(safe-area-inset-top,0px))}.mobile-menu-toggle{top:calc(env(safe-area-inset-top,0px) + 9px);left:calc(env(safe-area-inset-left,0px) + 9px);touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:1px solid #ffffff38;border-radius:10px;width:40px;height:40px;transform:none}.mobile-menu-toggle.is-compact{opacity:1;border-radius:10px;width:40px;height:40px;padding:0}.mobile-menu-toggle.is-compact svg{width:18px;height:18px}.shell.mobile-menu-open .mobile-menu-toggle{top:calc(env(safe-area-inset-top,0px) + 9px);left:calc(min(260px, 82vw) - 49px + env(safe-area-inset-left,0px));width:40px;height:40px;transform:none}.shell header{min-height:calc(62px + env(safe-area-inset-top,0px));padding-top:calc(8px + env(safe-area-inset-top,0px));padding-right:max(10px, env(safe-area-inset-right,0px));padding-bottom:8px;padding-left:calc(58px + env(safe-area-inset-left,0px));gap:6px}.header-title{flex:0 auto;gap:0;min-width:0;max-width:28vw}.header-title b{max-width:28vw;font-size:13px}.header-user-actions{flex:auto;justify-content:flex-end;gap:5px}.header-user-name-block{flex:0 auto;max-width:clamp(62px,25vw,108px)}.header-user-name{font-size:12px}.header-user-japanese-name{font-size:10px}.header-avatar-link,.notification-bell{flex-basis:34px;width:34px;height:34px}.theme-toggle{flex-basis:30px;width:30px;height:34px}.shell section{padding-top:18px;padding-right:max(12px, env(safe-area-inset-right,0px));padding-bottom:calc(18px + env(safe-area-inset-bottom,0px));padding-left:max(12px, env(safe-area-inset-left,0px))}.title h1{text-wrap:balance;font-size:clamp(20px,5.5vw,23px)}.title p{text-wrap:pretty;font-size:13px}.panel{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:12px;min-width:0;padding:13px}.paginated-table-scroll,.session-table-wrap,.attendance-table-scroll,.skeleton-table-wrap{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;max-width:100%;overflow-x:auto}.app-table th,.app-table td{padding:9px 10px;font-size:13px}.school-actions{gap:8px}.school-actions button{flex:140px;min-height:44px}.school-modal-backdrop{padding:10px max(10px, env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(10px, env(safe-area-inset-left,0px));overscroll-behavior:contain;align-items:flex-end}.school-modal{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 20px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-y:auto}.school-modal>.panel{padding:18px}.school-modal form>div{flex-wrap:wrap}.school-modal form>div>button{flex:120px;min-height:44px}.confirm-dialog{width:min(440px,100vw - 32px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);overscroll-behavior:contain;padding:20px;overflow-y:auto}.confirm-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.confirm-actions button{min-height:44px;padding:9px 10px}.toast-container{top:calc(env(safe-area-inset-top,0px) + 10px);right:max(10px, env(safe-area-inset-right,0px));left:max(10px, env(safe-area-inset-left,0px));width:auto}.toast{width:100%;max-width:440px;margin-left:auto}.attendance-filters{gap:12px;padding:13px}.attendance-filters>*{min-width:0}.attendance-filters input,.attendance-filters select{width:100%;min-width:0;font-size:16px}.attendance-table-scroll{min-height:200px;max-height:clamp(220px,100dvh - 500px,440px)}.attendance-roster-pagination .pagination-controls span{min-width:0}.login{min-height:100svh;padding:max(16px, env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) max(16px, env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px))}.login form{width:min(390px,100%);padding:26px 20px}}@media (width<=380px){.header-title,.header-title b{max-width:24vw}.header-user-name-block{max-width:22vw}.attendance-filters{grid-template-columns:minmax(0,1fr)}.account-actions{grid-template-columns:repeat(3,minmax(40px,1fr))}}@media (pointer:coarse){button,a,select,input[type=checkbox]{touch-action:manipulation}}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Regular.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Medium.ttf)format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Bold.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Black.ttf)format("truetype");font-weight:900;font-style:normal;font-display:swap}.report-logo{object-fit:contain;width:120px;height:auto;display:block}.toast-container{z-index:2000;pointer-events:none;flex-direction:column;gap:10px;width:min(360px,100vw - 32px);display:flex;position:fixed;top:20px;right:20px}.toast{border-left:4px solid var(--navy);color:#1f2937;pointer-events:auto;background:#fff;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:14px;animation:.22s ease-out toast-in;display:flex;box-shadow:0 8px 24px #0f172a2e}.toast-icon{flex-shrink:0;margin-top:1px;display:inline-flex}.toast-msg{flex:1;line-height:1.4}.toast-close{color:#94a3b8;background:0 0;border:0;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:22px;min-width:22px;height:22px;padding:0;display:inline-flex}.toast-close:hover{color:#475569;background:#f1f5f9}.toast-success{border-left-color:#16a34a}.toast-success .toast-icon{color:#16a34a}.toast-error{border-left-color:var(--red)}.toast-error .toast-icon{color:var(--red)}.toast-info{border-left-color:var(--navy)}.toast-info .toast-icon{color:var(--navy)}@keyframes toast-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}.confirm-dialog{background:#fff;border-radius:12px;width:min(440px,100%);padding:24px;animation:.18s ease-out toast-in;box-shadow:0 20px 50px #0f172a59}.confirm-dialog h3{color:var(--navy);margin:0 0 10px;font-size:18px}.confirm-title-danger{color:var(--red)!important}.confirm-message{color:#475569;margin:0 0 22px;font-size:14px;line-height:1.5}.confirm-actions{justify-content:flex-end;gap:10px;display:flex}.confirm-btn{border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600}.confirm-btn-cancel{color:#334155;background:#f1f5f9;border:1px solid #dbe2ea}.confirm-btn-cancel:hover{background:#e2e8f0}.confirm-btn-primary{background:var(--navy);color:#fff}.confirm-btn-primary:hover{background:#0f2c4d}.confirm-btn-danger{background:var(--red);color:#fff}.confirm-btn-danger:hover{background:#b21e23}.sidebar-logo{box-sizing:border-box;justify-content:center;align-items:center;width:100%;padding:20px 15px 30px;display:flex;position:relative}.sidebar-logo img{object-fit:contain;width:180px;max-width:100%;height:auto;display:block}.theme-toggle{color:#d5c7a4;background:0 0;border:1px solid #0000;border-radius:50%;flex:0 0 36px;place-items:center;width:36px;height:36px;padding:0;display:grid}.header-user-actions{align-items:center;gap:12px;display:flex}.header-user-name-block{text-align:right;gap:2px;min-width:0;line-height:1.25;display:grid}.header-user-name{color:var(--navy);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650;overflow:hidden}.header-user-japanese-name{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.header-avatar-link{border:1px solid var(--border);background:var(--surface-muted);width:38px;height:38px;color:var(--navy);border-radius:50%;flex:0 0 38px;place-items:center;text-decoration:none;display:grid;overflow:hidden}.header-avatar-link img{object-fit:cover;width:100%;height:100%}.notification-bell-wrap{flex:none;position:relative}.notification-bell{border:1px solid var(--border);background:var(--surface);width:38px;height:38px;color:var(--navy);border-radius:50%;place-items:center;padding:0;display:grid;position:relative}.notification-bell:hover,.notification-bell.is-open{background:var(--surface-muted)}.notification-badge{border:2px solid var(--surface);color:#fff;background:#dc2626;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 4px;font-size:10px;font-weight:700;display:grid;position:absolute;top:-5px;right:-5px}.notification-popover{z-index:1200;border:1px solid var(--border);background:var(--surface);width:min(380px,100vw - 24px);color:var(--text);border-radius:12px;position:absolute;top:calc(100% + 10px);right:0;overflow:hidden;box-shadow:0 16px 40px #0f172a30}.notification-popover>header{border-bottom:1px solid var(--border);background:var(--surface);height:auto;color:var(--text);justify-content:space-between;align-items:center;padding:13px 15px;display:flex;position:static}.notification-popover>header span,.notification-empty{color:var(--text-muted);font-size:12px}.notification-popover-list{max-height:min(55vh,420px);overflow-y:auto}.notification-item{border-bottom:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);text-align:left;border-radius:0;gap:5px;padding:12px 15px;font-weight:400;display:grid}.notification-item:hover,.notification-item.is-unread{background:var(--surface-muted)}.notification-item.is-unread .notification-item-title:before{content:"";background:#07869a;border-radius:50%;width:7px;height:7px;margin:0 7px 1px 0;display:inline-block}.notification-item-title{font-size:13px;font-weight:700}.notification-item-message{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;font-weight:400;display:-webkit-box;overflow:hidden}.notification-item small{color:var(--text-muted);font-size:10px;font-weight:400}.notification-empty{text-align:center;margin:0;padding:20px 15px}.notification-view-all{background:var(--surface);color:#07869a;border-radius:0;justify-content:center;align-items:center;gap:7px;width:100%;padding:11px;font-size:12px;display:flex}.dashboard-tabs{border-bottom:1px solid var(--border);gap:8px;margin:0 0 18px;display:flex}.dashboard-tabs button{color:var(--text-muted);background:0 0;border:1px solid #0000;border-bottom-width:2px;border-radius:8px 8px 0 0;align-items:center;gap:8px;margin-bottom:-1px;padding:10px 16px;display:inline-flex}.dashboard-tabs button.is-active{border-color:var(--border) var(--border) var(--surface);background:var(--surface);color:#07869a;border-bottom-color:#07869a}.notification-center{grid-template-columns:minmax(0,1fr);gap:18px;display:grid}.notification-composer{gap:13px;display:grid}.notification-composer h3,.notification-feed h3{color:var(--text);margin:0}.notification-composer label{color:var(--text);gap:7px;margin:0;font-size:13px;font-weight:600;display:grid}.notification-composer input,.notification-composer select,.notification-composer textarea{border:1px solid var(--border);background:var(--surface);width:100%;min-height:40px;color:var(--text);box-sizing:border-box;border-radius:8px;padding:9px 11px}.notification-composer textarea{resize:vertical;min-height:110px}.notification-recipient-field{position:relative}.notification-suggestions{z-index:20;border:1px solid var(--border);background:var(--surface);border-radius:8px;max-height:240px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #0f172a20}.notification-suggestions button{border-bottom:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);text-align:left;border-radius:0;gap:3px;padding:9px 11px;font-weight:400;display:grid}.notification-suggestions button:hover{background:var(--surface-muted)}.notification-suggestions small{color:var(--text-muted);font-size:11px}.notification-send-button{background:#07869a;align-items:center;gap:8px;width:fit-content;display:inline-flex}.notification-feed{gap:10px;display:grid}.notification-feed-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:2px;display:flex}.notification-feed-header button{color:#07869a;background:0 0;padding:7px 10px;font-size:12px}.notification-feed-row{border:1px solid var(--border);background:var(--surface);border-radius:9px;gap:5px;padding:13px 15px;display:grid}.notification-feed-row.is-unread{background:var(--surface-muted);border-left:3px solid #07869a}.notification-feed-row strong{color:var(--text);font-size:14px}.notification-feed-row p{color:var(--text-muted);white-space:pre-wrap;margin:0}.notification-feed-row small{color:var(--text-muted);font-size:11px}.theme-toggle:hover{color:#f5c766;background:#ffffff12;border-color:#fff2}.profile-panel{max-width:900px;margin:0 auto}.profile-avatar-section{border-bottom:1px solid var(--border);align-items:center;gap:18px;padding-bottom:24px;display:flex}.profile-avatar{border:1px solid var(--border);background:var(--surface-muted);width:96px;height:96px;color:var(--text-muted);border-radius:50%;flex:0 0 96px;place-items:center;display:grid;overflow:hidden}.profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-avatar-copy{color:var(--text-muted);gap:7px;font-size:13px;display:grid}.profile-avatar-copy strong{color:var(--text);font-size:16px}.profile-upload-button{border:1px solid var(--border);background:var(--surface);width:fit-content;color:var(--text);cursor:pointer;border-radius:8px;align-items:center;gap:7px;margin-top:4px;padding:9px 12px;display:inline-flex;position:relative}.profile-upload-button input{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.profile-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:24px;display:grid}.profile-form label{color:var(--text);gap:7px;margin:0;font-size:13px;font-weight:600;display:grid}.profile-form input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:42px;color:var(--text);box-sizing:border-box;border-radius:8px;padding:9px 11px}.profile-form-actions{grid-column:1/-1;justify-content:flex-end;padding-top:2px;display:flex}.profile-form-actions button{background:#07869a;align-items:center;gap:8px;display:inline-flex}.profile-tabs{margin-top:2px}.password-change-form{grid-template-columns:minmax(0,1fr);max-width:560px}.password-change-note{color:var(--text-muted);grid-column:1/-1;align-items:flex-start;gap:8px;margin:0;font-size:13px;display:flex}.password-change-note svg{flex:0 0 15px;margin-top:2px}.profile-account-meta{border-top:1px solid var(--border);color:var(--text-muted);flex-wrap:wrap;gap:20px;margin-top:22px;padding-top:17px;font-size:13px;display:flex}.profile-account-meta strong{color:var(--text)}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--navy:#f0eadf;--red:#d5a342;--page-bg:#10110e;--surface:#171813;--surface-muted:#1d1e18;--text:#eee9dc;--text-muted:#a69b7f;--border:#2c2d25;color:var(--text);background:var(--page-bg)}html[data-theme=dark] body{background:var(--page-bg);min-height:100vh;color:var(--text)}html[data-theme=dark] .shell aside{color:var(--text);background:#151610;border-right:1px solid #292a22}html[data-theme=dark] .shell aside small{color:#a69b7f}html[data-theme=dark] .shell nav a{color:#d0c8b7}html[data-theme=dark] .shell nav a.active{color:#f3d18a;background:#292920}html[data-theme=dark] .shell nav a:not(.active):hover{color:#fff;background:#ffffff12}html[data-theme=dark] .logout{color:#e7dfcf;background:#ffffff08;border-color:#ffffff1d}html[data-theme=dark] .shell header{border-bottom-color:var(--border);color:var(--text);background:#11120f}html[data-theme=dark] .shell section{color:var(--text)}html[data-theme=dark] .title h1,html[data-theme=dark] .panel h3,html[data-theme=dark] .cards strong{color:#eee7d8}html[data-theme=dark] .title p,html[data-theme=dark] .hint,html[data-theme=dark] .cards small,html[data-theme=dark] td small{color:#a69b7f}html[data-theme=dark] .cards article,html[data-theme=dark] .panel{background:var(--surface);border-color:var(--border);color:var(--text)}html[data-theme=dark] .dashboard-stat-popup{color:var(--text);background:#1b1c16;border-color:#36372c}html[data-theme=dark] .dashboard-stat-popup>b{color:#f1e5c7}html[data-theme=dark] .dashboard-stat-popup li{color:#e6dfd1;border-top-color:#303128}html[data-theme=dark] th{color:#c5b99d;background:#20211b}html[data-theme=dark] .dashboard-pagination{color:#c5b99d}html[data-theme=dark] .dashboard-pagination button{color:#e5dfd2;background:#1a1b16;border-color:#3a3b31}html[data-theme=dark] .attendance-pagination{border-top-color:var(--border);color:#c5b99d}html[data-theme=dark] .attendance-page-controls button{color:#e5dfd2;background:#1a1b16;border-color:#3a3b31}html[data-theme=dark] .attendance-page-controls button.is-current{color:#fff;background:#2563eb;border-color:#2563eb}html[data-theme=dark] td,html[data-theme=dark] .pagination-bar{color:#e5dfd2;border-color:#2b2c24}html[data-theme=dark] tbody tr:hover,html[data-theme=dark] .app-table tbody tr:hover{background:#1d1e18}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{color:#eee9dc;background:#171813;border-color:#3a3b31}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8f8877}html[data-theme=dark] option{color:#eee9dc;background:#171813}html[data-theme=dark] .icon-action{color:#e3c37d;background:#1c1d17;border-color:#38392f}html[data-theme=dark] .icon-action:hover{background:#29261d;border-color:#62512f}html[data-theme=dark] .school-modal-close{color:#e6d5ad;background:#24251e;border-color:#3a3b31}html[data-theme=dark] .school-modal-backdrop{background:#000000b8}html[data-theme=dark] .login{background:linear-gradient(135deg,#10110e,#1a1b15)}html[data-theme=dark] .login form,html[data-theme=dark] .toast,html[data-theme=dark] .confirm-dialog{border:1px solid var(--border);color:var(--text);background:#191a15}html[data-theme=dark] .login h1,html[data-theme=dark] .confirm-dialog h3{color:#eee7d8}html[data-theme=dark] .login label,html[data-theme=dark] .confirm-message{color:#d4cbb8}html[data-theme=dark] .confirm-btn-cancel{color:#eee9dc;background:#262720;border-color:#3a3b31}html[data-theme=dark] .confirm-btn-cancel:hover{background:#33342b}html[data-theme=dark] .confirm-btn-primary{color:#17140d;background:#c99a42}html[data-theme=dark] .error{color:#ffb4ab;background:#2b1919;border:1px solid #653537}html[data-theme=dark] [style*="background: rgb(255, 255, 255)"],html[data-theme=dark] [style*="background: white"]{color:var(--text);background-color:var(--surface)!important}html[data-theme=dark] [style*="background: rgb(241, 245, 249)"],html[data-theme=dark] [style*="background: rgb(246, 248, 250)"]{background-color:#23241d!important}html[data-theme=dark] [style*="background: rgb(239, 246, 255)"],html[data-theme=dark] [style*="background: rgb(219, 234, 254)"]{background-color:#20241e!important}html[data-theme=dark] [style*="background: rgb(254, 242, 242)"],html[data-theme=dark] [style*="background: rgb(255, 240, 240)"]{background-color:#311e1d!important}html[data-theme=dark] [style*="background: rgb(229, 231, 235)"]{background-color:#34352c!important}html[data-theme=dark] [style*="border: 1px solid rgb(216, 222, 232)"],html[data-theme=dark] [style*="border: 1px solid rgb(219, 226, 234)"]{border-color:#414238!important}html[data-theme=dark] [style*="color: rgb(23, 58, 99)"],html[data-theme=dark] [style*="color: rgb(23, 60, 101)"],html[data-theme=dark] [style*="color: rgb(51, 65, 85)"],html[data-theme=dark] [style*="color: rgb(58, 58, 58)"],html[data-theme=dark] [style*="color: rgb(71, 85, 105)"],html[data-theme=dark] [style*="color: rgb(100, 116, 139)"]{color:#e0d8c8!important}html[data-theme=dark] [style*="color: rgb(135, 147, 161)"],html[data-theme=dark] [style*="color: rgb(148, 163, 184)"]{color:#a69b7f!important}html[data-theme=dark] .center{color:#eee7d8}html[data-theme=dark] ::selection{color:#fff6df;background:#66502a}@media (prefers-reduced-motion:no-preference){body,.shell aside,.shell header,.cards article,.panel,input,select,textarea{transition:background-color .18s,border-color .18s,color .18s}}.students-page-layout,.teachers-page-layout,.reports-page-layout{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.students-management-section,.teachers-management-section,.reports-management-section{flex-direction:column;flex:1;width:100%;min-height:0;display:flex;overflow:hidden;margin:0 auto!important}.students-list-page{flex-direction:column;flex:1;height:100%;min-height:0;margin:0;display:flex}.students-list-page>.title{flex:none}.students-list-page .paginated-table-panel{flex:1;height:100%;min-height:0;overflow:hidden}.students-list-page .paginated-table-scroll{flex:1;min-height:0;overflow:auto}.students-list-page .paginated-table-scroll thead th{z-index:2;position:sticky;top:0}.teachers-list-page{flex-direction:column;flex:1;height:100%;min-height:0;margin:0;display:flex;overflow:hidden}.teachers-list-page>.title{flex:none}.teachers-list-page .paginated-table-panel{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;overflow:hidden}.teachers-list-page .teachers-table-scroll{flex:auto;min-height:0;overflow:auto}.teachers-list-page .teachers-table-scroll thead th{z-index:2;position:sticky;top:0}.teachers-list-page .teachers-table-footer{flex:none}.reports-management-section{min-height:0}.reports-management-section>.title{flex:none}.reports-management-section>.reports-table-panel{flex-direction:column;height:100%;display:flex}.reports-table-panel{flex:1;min-height:0;overflow:hidden}.reports-table-panel>label,.reports-table-panel>.error{flex:none}.reports-month-filter{color:#334155;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 16px;font-size:14px;font-weight:600;line-height:1.4;display:flex}.reports-month-filter input{width:220px;min-height:42px;padding:9px 11px;font-size:14px}.reports-table-scroll{flex:auto;min-height:0;overflow:auto}.reports-table-scroll .app-table thead th{z-index:2;position:sticky;top:0}.reports-table-panel>.pagination-bar{flex:none}.attendance-table-toolbar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.attendance-table-toolbar .pagination-bar{border:0;flex:auto;margin:0;padding:0}.attendance-table-toolbar button{background:#15803d;flex:none}.attendance-empty-row{text-align:center;color:#64748b;padding:24px}.attendance-message.is-success{color:#15803d}.attendance-message.is-error{color:#dc2626}.attendance-tabs{border-bottom:1px solid #dce3ea;gap:8px;margin:0 0 18px;display:flex}.attendance-tabs button{color:#64748b;background:0 0;border:1px solid #0000;border-bottom-width:2px;border-radius:8px 8px 0 0;margin-bottom:-1px;padding:10px 16px;font-weight:600}.attendance-tabs button:hover{color:#173a63;background:#f1f5f9}.attendance-tabs button.is-active{color:#173a63;background:#fff;border-color:#dce3ea #dce3ea #2563eb}.attendance-filters .attendance-filter-checkbox{grid-column:1/-1;margin:0}.attendance-filter-checkbox input[type=checkbox]{appearance:none;background:#cbd5e1;border:0;border-radius:999px;flex-basis:44px;width:44px;height:24px;transition:background .18s;position:relative}.attendance-filter-checkbox input[type=checkbox]:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0f172a33}.attendance-filter-checkbox input[type=checkbox]:checked{background:#07869a}.attendance-filter-checkbox input[type=checkbox]:checked:after{transform:translate(20px)}.attendance-roster-panel{padding:16px;overflow:hidden}.attendance-roster-content{min-width:0}.attendance-roster-heading{align-items:center;gap:16px;min-height:42px;margin:0 0 12px;display:flex}.attendance-roster-heading h2{color:#122d49;margin:0;font-size:19px}.attendance-roster-heading>span{color:#64748b;white-space:nowrap;border-left:1px solid #cbd5e1;padding-left:16px}.attendance-search{color:#475569;border:1px solid #cbd5e1;border-radius:9px;align-items:center;gap:8px;width:min(360px,42%);min-height:40px;margin:0 0 0 auto;padding:0 11px;display:flex}.attendance-search:focus-within{border-color:#07869a;box-shadow:0 0 0 3px #07869a1c}.attendance-search input{color:#0f172a;background:0 0;border:0;outline:0;width:100%;min-width:0;padding:7px 0;font-size:14px}.attendance-table-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:clamp(180px,100dvh - 520px,480px);overflow:auto}.attendance-roster-table{border-collapse:collapse;width:100%;min-width:760px}.attendance-roster-table thead th{z-index:2;color:#475569;background:#f1f5f9;position:sticky;top:0}.attendance-roster-table tbody tr:hover{background:#f8fafc}.attendance-roster-table .attendance-status{border-radius:8px;width:160px;min-height:34px;padding:6px 10px;font-weight:650}.attendance-roster-table .attendance-status-present{color:#166534;background:#dcfce7;border-color:#bbf7d0}.attendance-roster-table .attendance-status-excused{color:#1d4ed8;background:#dbeafe;border-color:#bfdbfe}.attendance-roster-table .attendance-status-absent{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.attendance-roster-table .attendance-status-late{color:#9a3412;background:#ffedd5;border-color:#fed7aa}.attendance-roster-table .attendance-status-early{color:#92400e;background:#fef3c7;border-color:#fde68a}.attendance-roster-pagination .pagination-bar{border-top:1px solid #e8edf2;padding:14px 2px 0}.attendance-roster-pagination .pagination-controls button,.attendance-roster-pagination .pagination-page-size select{color:#173a63;background:#fff;border:1px solid #d7e0e9;min-height:38px}.attendance-roster-pagination .pagination-controls button:not(:disabled):hover{background:#ecfeff;border-color:#07869a}.attendance-save-bar{z-index:5;background:var(--surface,#fff);border:1px solid #dce5ed;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px;padding:14px 18px;display:flex;position:sticky;bottom:12px;box-shadow:0 8px 24px #173a6314}.attendance-save-bar>strong{color:#122d49}.attendance-save-bar>div{gap:10px;display:flex}.attendance-save-bar button{background:#07869a;min-width:128px}.attendance-save-bar .attendance-cancel-button{color:#173a63;background:#fff;border:1px solid #aab7c5}html[data-theme=dark] .attendance-roster-heading h2,html[data-theme=dark] .attendance-save-bar>strong{color:#eee7d8}html[data-theme=dark] .attendance-roster-heading>span{color:#c5b99d;border-color:#3a3b31}html[data-theme=dark] .attendance-roster-table thead th{color:#c5b99d;background:#20211b}html[data-theme=dark] .attendance-search,html[data-theme=dark] .attendance-roster-pagination .pagination-controls button,html[data-theme=dark] .attendance-roster-pagination .pagination-page-size select,html[data-theme=dark] .attendance-save-bar .attendance-cancel-button{color:#e5dfd2;background:#1a1b16;border-color:#3a3b31}html[data-theme=dark] .attendance-search input{color:#e5dfd2}html[data-theme=dark] .attendance-save-bar{background:var(--surface);border-color:#36372c}@media (width<=650px){.session-tabs{overflow-x:auto}.session-tabs button{flex:none}.account-toolbar{flex-direction:column;align-items:stretch}.account-toolbar input{width:100%}.account-form-grid,.account-sidebar-options{grid-template-columns:1fr}.account-dialog-backdrop{padding:12px}.account-dialog{padding:16px}.account-add-button{justify-content:center;width:100%}.account-tabs{overflow-x:auto}.mobile-menu-toggle{left:env(safe-area-inset-left)}.shell.mobile-menu-open .mobile-menu-toggle{left:calc(min(260px, 82vw) - 50px + env(safe-area-inset-left))}.shell header{padding-top:calc(10px + env(safe-area-inset-top));padding-right:max(14px, env(safe-area-inset-right));padding-left:calc(54px + env(safe-area-inset-left))}.shell section{padding-right:max(14px, env(safe-area-inset-right));padding-bottom:calc(18px + env(safe-area-inset-bottom));padding-left:max(14px, env(safe-area-inset-left))}.title{flex-direction:column;align-items:stretch;gap:4px;margin-bottom:16px}.title h1{font-size:22px;line-height:1.25}.title p{margin:6px 0;line-height:1.45}.panel{border-radius:11px;margin-bottom:14px}button:not(.icon-action):not(.mobile-menu-toggle):not(.sidebar-toggle){min-height:44px}input,select,textarea{min-height:44px;font-size:16px}table th,table td{padding:9px 10px;font-size:13px}.attendance-tabs{scrollbar-width:none;gap:2px;margin-bottom:14px;overflow-x:auto}.attendance-tabs::-webkit-scrollbar{display:none}.attendance-tabs button{flex:none;min-height:44px;padding:9px 12px;font-size:13px}.attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px}.attendance-roster-panel{padding:12px}.attendance-roster-heading{flex-wrap:wrap;gap:10px}.attendance-roster-heading h2{font-size:17px}.attendance-roster-heading>span{padding-left:10px}.attendance-search{order:1;width:100%;margin-left:0}.attendance-table-scroll{max-height:clamp(160px,100dvh - 620px,320px)}.attendance-roster-pagination .pagination-bar{align-items:flex-start}.attendance-roster-pagination .pagination-controls{flex:1 0 100%}.attendance-roster-pagination .pagination-controls button{flex:1}.attendance-save-bar{bottom:max(8px, env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;padding:12px}.attendance-save-bar>div{width:100%}.attendance-save-bar button{flex:1;min-width:0;padding:10px}.attendance-table-toolbar{flex-direction:column;align-items:stretch;gap:10px}.attendance-table-toolbar .pagination-bar{gap:10px}.attendance-table-toolbar .pagination-bar>small{flex:1 0 100%}.attendance-table-toolbar .pagination-controls{flex:100%}.attendance-table-toolbar .pagination-controls button{flex:1}.attendance-table-toolbar>button{width:100%}.report-action-bar{margin:10px 0 0}.school-report{padding:12px}.report-header{gap:12px}.report-logo{width:84px}.report-heading h1{font-size:18px}#weekly-report{margin-top:12px;padding:12px}}.skeleton-block{vertical-align:middle;background:linear-gradient(90deg,#edf1f5 25%,#f7f9fb 50%,#edf1f5 75%) 0 0/200% 100%;border-radius:6px;max-width:100%;animation:1.35s ease-in-out infinite skeleton-shimmer;display:inline-block}.skeleton-row td{height:48px}.skeleton-table-wrap{width:100%;overflow:auto}.skeleton-table-wrap table{width:100%}.skeleton-history{gap:12px;padding:8px 0;display:grid}.app-page-loading{background:var(--page-bg);flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:100dvh;display:flex}.app-loading-mark{background:var(--navy);color:#fff;border-radius:16px;place-items:center;width:56px;height:56px;margin-bottom:8px;font-size:30px;font-weight:800;display:grid}.dashboard-skeleton-card{flex-direction:column;justify-content:space-between;min-height:118px;display:flex}.dashboard-skeleton-table{gap:16px;display:grid}.dashboard-skeleton-table .skeleton-table-wrap{margin-top:0}@keyframes skeleton-shimmer{to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.skeleton-block{animation:none}}html[data-theme=dark] .skeleton-block{background:linear-gradient(90deg,#25261f 25%,#35362e 50%,#25261f 75%) 0 0/200% 100%}html[data-theme=dark] .app-page-loading{background:#11120f}@media (width<=650px){.shell,.shell main{min-width:0;max-width:100vw}.mobile-menu-toggle,.mobile-menu-toggle.is-compact{top:calc(env(safe-area-inset-top,0px) + 10px);left:calc(env(safe-area-inset-left,0px) + 10px);opacity:1;width:42px;height:42px;min-height:42px;padding:0;transform:none}.shell.mobile-menu-open .mobile-menu-toggle{left:calc(min(260px, 82vw) - 52px + env(safe-area-inset-left,0px))}.shell header{min-height:calc(62px + env(safe-area-inset-top,0px));padding-top:calc(8px + env(safe-area-inset-top,0px));padding-right:max(10px, env(safe-area-inset-right,0px));padding-bottom:8px;padding-left:calc(58px + env(safe-area-inset-left,0px))}.header-title{flex:0 24vw;min-width:0;max-width:24vw}.header-title b{text-overflow:ellipsis;white-space:nowrap;max-width:24vw;overflow:hidden}.header-user-actions{gap:4px;min-width:0}.header-user-name-block{min-width:0;max-width:clamp(54px,22vw,100px)}.header-user-name,.header-user-japanese-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header-avatar-link,.notification-bell{flex:0 0 34px;width:34px;height:34px;min-height:34px}.theme-toggle{flex:0 0 30px;width:30px;height:34px;min-height:34px}.dashboard-page,.dashboard-page>*,.account-panel,.account-table-wrap,.notification-center,.notification-center>section{min-width:0;max-width:100%}.notification-center>section{overflow-wrap:anywhere;overflow:visible}.notification-composer input,.notification-composer select,.notification-composer textarea,.account-dialog input,.account-dialog select,.account-dialog textarea{width:100%;min-width:0;font-size:16px}.notification-popover-portal{max-width:420px;margin-inline:auto;overflow:hidden;width:auto!important;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)!important;left:12px!important;right:12px!important}.notification-popover-portal .notification-popover-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-y:auto;max-height:min(52dvh,420px)!important}.account-dialog-backdrop{padding:0 max(0px, env(safe-area-inset-right,0px)) 0 max(0px, env(safe-area-inset-left,0px));align-items:flex-end}.account-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px));padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:16px 16px 0 0;overflow-y:auto}.account-dialog>footer{bottom:calc(-18px - env(safe-area-inset-bottom,0px))}.attendance-save-bar{bottom:env(safe-area-inset-bottom,0px);padding-bottom:max(12px, env(safe-area-inset-bottom,0px))}.attendance-table-scroll,.account-table-wrap,.paginated-table-scroll,.session-table-wrap{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}}@media (width<=380px){.shell header{padding-right:max(7px, env(safe-area-inset-right,0px));padding-left:calc(54px + env(safe-area-inset-left,0px));gap:3px}.header-title,.header-title b{max-width:19vw}.header-user-name-block{max-width:18vw}.header-user-actions{gap:2px}}@media (width<=650px){.dashboard-page{width:100%;min-width:0}.dashboard-page>.title,.dashboard-page>.dashboard-tabs,.dashboard-page>.notification-center{width:100%}.dashboard-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:14px;display:grid}.dashboard-tabs button{justify-content:center;min-width:0;padding:10px 8px;font-size:14px}.notification-center,.notification-center.has-composer{grid-template-columns:minmax(0,1fr);gap:12px;width:100%;margin:0}.notification-center>section{width:100%;min-width:0;margin:0;padding:16px;overflow:visible}.notification-composer{gap:12px}.notification-composer h3,.notification-feed h3{align-items:center;gap:8px;font-size:17px;display:flex}.notification-composer input,.notification-composer select,.notification-composer textarea{min-width:0;min-height:46px;font-size:16px}.notification-composer textarea{min-height:120px}.notification-send-button{justify-content:center;width:100%;min-height:46px}.notification-suggestions{max-height:200px;box-shadow:none;margin-top:6px;position:static;overflow-y:auto}.notification-suggestions button{min-height:48px}.notification-feed-header{flex-direction:column;align-items:flex-start}.notification-feed-header button{min-height:40px;padding-left:0}.notification-feed-row{overflow-wrap:anywhere;padding:12px}.notification-feed-row>button{width:100%;min-height:42px;margin-top:4px}.notification-popover-portal{border-radius:14px;max-width:420px;margin-left:auto;margin-right:auto;width:auto!important;left:12px!important;right:12px!important}.notification-popover-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.account-panel{min-height:0;padding:14px}.account-toolbar{gap:10px;margin-bottom:12px}.account-toolbar strong{font-size:15px;line-height:1.35}.account-toolbar input{min-height:46px;font-size:16px}.account-table-wrap{overflow:visible}.account-table,.account-table tbody{table-layout:auto;white-space:normal;width:100%;min-width:0;display:block}.account-table thead{display:none}.account-table tbody{gap:10px;display:grid}.account-table tbody tr{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;padding:8px;display:grid}.account-table th:nth-child(n),.account-table td:nth-child(n){width:auto}.account-table tbody td{overflow-wrap:anywhere;border:0;align-content:start;gap:5px;min-width:0;padding:8px 6px;font-size:13px;display:grid}.account-table tbody td:before{color:var(--text-muted);content:attr(data-label);font-size:11px;font-weight:650}.account-table tbody td:first-child,.account-table tbody td:nth-child(4),.account-table tbody td:nth-child(5),.account-table tbody td:last-child{grid-column:1/-1}.account-table td small{white-space:normal;overflow-wrap:anywhere;line-height:1.35}.account-table .account-sidebar-cell{white-space:normal;line-height:1.4}.account-actions{white-space:normal;grid-template-columns:repeat(3,minmax(44px,1fr));gap:8px;display:grid}.account-actions .icon-action{width:100%;height:44px;min-height:44px;margin:0}.account-table-wrap>.pagination-bar{align-items:center;gap:10px;padding:12px 0 2px}.account-table-wrap>.pagination-bar>small,.account-table-wrap>.pagination-bar>.pagination-controls{flex:1 0 100%}.account-table-wrap>.pagination-bar>.pagination-controls{justify-content:space-between}.account-dialog-backdrop{align-items:end;padding:0}.account-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px));padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0}.account-dialog>footer{bottom:calc(-18px - env(safe-area-inset-bottom,0px));background:var(--surface);padding:12px 0 0;position:sticky}.account-dialog>footer button{flex:1;min-height:46px}.account-dialog-backdrop{padding:0 max(0px, env(safe-area-inset-right,0px)) 0 max(0px, env(safe-area-inset-left,0px));align-items:flex-end}.account-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px));padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:16px 16px 0 0;overflow-y:auto}.account-dialog input,.account-dialog select,.account-dialog textarea{width:100%;min-width:0;font-size:16px}.account-dialog>footer{bottom:calc(-18px - env(safe-area-inset-bottom,0px))}.notification-popover-portal{overflow:hidden;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)!important}.notification-popover-portal .notification-popover-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-y:auto;max-height:min(52dvh,420px)!important}.profile-page{width:100%;min-width:0}.profile-tabs{border-bottom:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:0 0 14px;padding:0;display:grid;overflow:visible}.profile-tabs button{border:1px solid var(--border);text-align:center;white-space:normal;overflow-wrap:anywhere;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-width:0;min-height:52px;padding:9px 8px;font-size:13px;line-height:1.25;display:flex}.profile-tabs button svg{flex:0 0 16px}.profile-panel{width:100%;min-width:0;max-width:none;margin:0;padding:16px;overflow:hidden}.profile-avatar-section{align-items:center;gap:14px;padding-bottom:18px}.profile-avatar{flex-basis:76px;width:76px;height:76px}.profile-avatar-copy{overflow-wrap:anywhere;gap:6px;min-width:0;line-height:1.45}.profile-form,.password-change-form{grid-template-columns:minmax(0,1fr);gap:16px;width:100%;max-width:none;padding-top:18px}.profile-form label{gap:8px;min-width:0;line-height:1.4}.profile-form label>span{overflow-wrap:anywhere;min-height:18px;line-height:1.4;display:block}.profile-form input{min-width:0;min-height:48px;font-size:16px}.profile-form-actions{grid-column:1;padding-top:2px}.profile-form-actions button{justify-content:center;width:100%;min-height:48px}.profile-account-meta{gap:8px 18px;margin-top:18px;padding-top:14px;line-height:1.5}.password-change-note{line-height:1.5}}@media (width<=360px){.profile-tabs button{gap:4px;padding-left:5px;padding-right:5px;font-size:12px}.profile-panel{padding:13px}}.session-history-toolbar{color:var(--text-muted);justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.session-clear-history-button{color:#b91c1c;background:#fff;border:1px solid #fecaca;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:8px 12px;display:inline-flex}.session-clear-history-button:disabled{cursor:not-allowed;opacity:.55}@media (width<=650px){.session-history-toolbar{flex-direction:column;align-items:flex-start}.session-clear-history-button{width:100%;min-height:44px}}.session-clear-backdrop{z-index:1500;background:#0f172a88;place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow-y:auto}.session-clear-dialog{border:1px solid var(--border);background:var(--surface);width:min(520px,100%);max-height:min(90dvh,760px);color:var(--text);border-radius:14px;gap:16px;padding:22px;display:grid;overflow-y:auto;box-shadow:0 24px 70px #0f172a44}.session-clear-dialog>header,.session-clear-dialog>header>div,.session-clear-dialog>footer{align-items:center;display:flex}.session-clear-dialog>header,.session-clear-dialog>footer{justify-content:space-between;gap:12px}.session-clear-dialog>header{border-bottom:1px solid var(--border);padding-bottom:14px}.session-clear-dialog>header>div{color:#07869a;gap:9px}.session-clear-dialog h2{color:var(--text);margin:0;font-size:18px}.session-clear-dialog>header>button{min-width:40px;min-height:40px;color:var(--text-muted);background:0 0;padding:0;font-size:25px}.session-clear-scope,.session-clear-warning{margin:0;line-height:1.5}.session-clear-scope{color:var(--text-muted)}.session-clear-warning{color:#b91c1c;font-size:13px}.session-clear-field{min-width:0;color:var(--text);gap:7px;font-size:13px;font-weight:650;display:grid}.session-clear-field select,.session-clear-field input{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;min-height:44px;color:var(--text);border-radius:8px;padding:9px 11px;font-size:15px}.session-clear-date-range{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.session-clear-types{border:1px solid var(--border);border-radius:10px;gap:10px;margin:0;padding:14px;display:grid}.session-clear-types legend{color:var(--text);padding:0 5px;font-size:13px;font-weight:650}.session-clear-types label{color:var(--text);align-items:center;gap:9px;font-size:14px;line-height:1.4;display:flex}.session-clear-types input{accent-color:#07869a;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0}.session-clear-dialog>footer button{justify-content:center;align-items:center;gap:7px;min-height:44px;padding:9px 14px;display:inline-flex}.session-clear-dialog .session-clear-cancel{border:1px solid var(--border);background:var(--surface);color:var(--text)}.session-clear-dialog .session-clear-confirm{background:#b91c1c}.session-clear-dialog button:disabled{cursor:not-allowed;opacity:.55}@media (width<=650px){.session-clear-backdrop{padding:0 max(0px, env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(0px, env(safe-area-inset-left,0px));align-items:flex-end}.session-clear-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px));padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0;gap:14px}.session-clear-date-range{grid-template-columns:minmax(0,1fr)}.session-clear-dialog>footer button{flex:1;min-height:48px}}
