/* rAneT GUIUX6 v6.1: unified typography, stable material surfaces, responsive and touch-safe controls. */
:root{font-family:Ubuntu,'Segoe UI Variable','Segoe UI',system-ui,sans-serif;font-size:16px;--radius:18px;--bg:#f2f5fa;--surface:#fff;--surface2:#f7f9fd;--text:#18253b;--muted:#57657a;--line:#dbe2ef;--brand:#5557d9;--brand-soft:#eceeff;--shadow:0 10px 30px rgba(39,52,94,.065)}
html[data-theme=dark]{--bg:#101522;--surface:#1c2434;--surface2:#263044;--text:#edf2ff;--muted:#adbace;--line:#3a475d;--brand:#a4a8ff;--brand-soft:#333965;--shadow:0 12px 30px rgba(0,0,0,.23)}
@media(prefers-color-scheme:dark){html[data-theme=system]{--bg:#101522;--surface:#1c2434;--surface2:#263044;--text:#edf2ff;--muted:#adbace;--line:#3a475d;--brand:#a4a8ff;--brand-soft:#333965;--shadow:0 12px 30px rgba(0,0,0,.23)}}
html{scroll-behavior:smooth;scroll-padding-top:86px}body{font-family:Ubuntu,'Segoe UI Variable','Segoe UI',system-ui,sans-serif;line-height:1.52;background:radial-gradient(ellipse at 80% -10%,color-mix(in srgb,var(--brand) 7%,transparent),transparent 55%),var(--bg);color:var(--text)}
.brand b,.page-heading h1,.panel-head h2,.hero-card h2,.stat-value,.story-copy h1{font-family:inherit;letter-spacing:-.02em}
.page-heading h1{font-size:clamp(1.45rem,2.5vw,2.08rem)}.page-heading p{font-size:.93rem;line-height:1.55}.panel-head h2{font-size:1.1rem}.panel-head p,.hint,.subtle{font-size:.87rem;line-height:1.5}
.sidebar{background:color-mix(in srgb,var(--surface) 89%,transparent);backdrop-filter:blur(24px) saturate(1.12);-webkit-backdrop-filter:blur(24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.topbar{background:color-mix(in srgb,var(--surface) 89%,transparent);backdrop-filter:blur(20px) saturate(1.12);-webkit-backdrop-filter:blur(20px)}
.panel,.hero-card,.stat-card,.auth-card,.tt-editor{background:var(--surface)!important;backdrop-filter:none!important}.stat-card,.panel,.hero-card,.action-card{box-shadow:var(--shadow);border-color:var(--line)}
button,input,select,textarea{font-family:inherit;font-size:16px;max-width:100%;color:var(--text)}.field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select,.tt-editor input:not([type=checkbox]),.tt-editor select{font-size:16px;min-height:46px}.field label{font-size:.86rem;line-height:1.4}.btn,.icon-button,.sidebar nav a,.profile-menu a{min-height:44px}.btn.small{min-height:40px;font-size:14px}.btn{white-space:normal;text-align:center}.btn.primary{background:#5b5de2;color:#fff}.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.btn:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 40%,transparent);outline-offset:2px}
input[type=checkbox],input[type=radio]{width:19px!important;height:19px!important;min-height:0!important;margin:0;flex:0 0 auto;accent-color:var(--brand);cursor:pointer}.inline-checkbox{display:inline-flex!important;gap:10px;align-items:center;min-height:36px;font-size:.94rem;font-weight:550;line-height:1.4}.inline-checkbox input{max-width:19px!important}.inline-checks label{display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:38px}.inline-checks input{width:19px!important;min-height:19px!important;height:19px!important}
.field[hidden],[hidden]{display:none!important}.grid,.form-grid,.field,.panel,.task-item,.period-item,.action-card{min-width:0}.page-content{padding-inline:clamp(14px,2.6vw,32px)}.table-wrap,.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.table-scroll table{min-width:620px}.note-body{font-size:1rem;line-height:1.7;overflow-wrap:anywhere;word-break:break-word;padding:12px;margin:10px 0;background:var(--surface2);border:1px solid var(--line);border-radius:12px;max-height:520px;overflow:auto}.compact-list{display:flex;flex-wrap:wrap;gap:7px}.compact-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:7px}.compact-inline select{min-height:40px;max-width:220px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sidebar nav a{font-size:.9rem}.session-pill{font-size:.8rem}.stat-top,.stat-foot,.period-info b,.task-item b,.action-card b{font-size:.9rem}.period-info small,.task-item small,.action-card small{font-size:.79rem}.text-link{font-size:.87rem}.tag{font-size:.73rem}.mini-profile small{font-size:.75rem}
/* School bell configuration stays in the timetable page. */
.bell-workspace{margin:16px 0;border:1px solid var(--line);border-radius:17px;background:var(--surface2);padding:12px 16px;scroll-margin-top:95px}.bell-workspace>summary{cursor:pointer;list-style-position:inside;font-size:.98rem;font-weight:750;padding:8px 2px;touch-action:manipulation}.bell-workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:13px}.bell-workspace-grid>form{min-width:0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.bell-workspace-grid h3{font-size:1rem;margin:0 0 14px}.bell-day-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:5px 12px}.bell-slot-list{margin-top:15px;display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:8px}.bell-slot-list h3{grid-column:1/-1;font-size:1rem;margin:4px 0}.bell-slot-item{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);display:flex;align-items:center;gap:8px;justify-content:space-between}.bell-slot-item b,.bell-slot-item small{display:block;font-size:.85rem}.bell-slot-item small{color:var(--muted);font-size:.75rem}.tt-shared-break{background:color-mix(in srgb,var(--teal) 9%,var(--surface))!important;border:1px solid color-mix(in srgb,var(--teal) 28%,var(--line));cursor:default!important}.tt-shared-break .tt-event{background:transparent!important;box-shadow:none!important;color:var(--text)}
/* The period editor reuses its own day without a separate, duplicated copy panel. */
.tt-copy-inline{background:var(--surface2)!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:14px!important}.tt-copy-inline summary{font-size:.94rem;line-height:1.4}.tt-copy-inline .field{margin-top:9px}.tt-copy-inline .field label{font-size:.9rem}.tt-copy-inline .inline-checks{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:5px 10px!important}.tt-copy-inline .inline-checks label{min-width:0!important;min-height:40px}.tt-copy-inline .field>label:has(input[type=checkbox]){display:flex!important;align-items:center!important;gap:10px!important;min-height:44px}.tt-editor{max-height:calc(100dvh - 28px);overflow-y:auto}.tt-modal-backdrop{z-index:50}.form-actions{gap:8px;flex-wrap:wrap}
.smart-notice-strip{border-radius:16px;overflow:hidden}.notice-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.notice-controls button{min-width:40px;min-height:40px}.compact-select{border:1px solid var(--line);border-radius:9px;background:var(--surface);min-height:40px;padding:4px 8px;font-size:14px}
@media(max-width:1100px){.bell-workspace-grid{grid-template-columns:1fr}.page-content{padding-inline:16px}}
@media(max-width:900px){.sidebar{background:var(--surface);backdrop-filter:none}.page-heading{flex-direction:column}.dashboard-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 15px}.page-content{padding-top:16px}.top-center-link{display:none}}
@media(max-width:650px){.page-content{padding-inline:12px}.panel{padding:16px}.page-heading h1{font-size:1.48rem}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:12px}.quick-grid{grid-template-columns:1fr}.period-item{grid-template-columns:52px minmax(0,1fr);gap:10px}.period-item .btn{grid-column:1/-1}.tt-editor{width:100%;max-height:95dvh;border-radius:18px 18px 4px 4px}.tt-editor .form-grid{grid-template-columns:1fr!important}.tt-copy-inline .inline-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.bell-slot-list{grid-template-columns:1fr}.hero-card{padding:18px}.sidebar nav a{min-height:48px}.auth-shell,.auth-shell.setup-shell{grid-template-columns:1fr!important;width:100%!important;min-height:auto!important}.auth-page{padding:12px 12px 60px!important}.auth-story{display:none!important}.auth-main,.auth-card{width:100%;max-width:none}.topbar{min-height:60px;height:auto;padding:8px 12px}.session-pill{font-size:.7rem;padding:6px 7px}.crumb{font-size:.8rem}}
@media(hover:none){.btn:hover,.action-card:hover{transform:none!important}.tt-cell,.tt-event,button,a,summary{touch-action:manipulation}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media(prefers-reduced-transparency:reduce){.sidebar,.topbar{background:var(--surface)!important;backdrop-filter:none!important}}
@supports not (backdrop-filter:blur(1px)){.sidebar,.topbar{background:var(--surface)!important}}
/* Grid readability and narrow-device day mode. */
.tt-event b{font-size:13px;line-height:1.3}.tt-event span{font-size:12px;line-height:1.25}.tt-event small{font-size:11px;line-height:1.25}.tt-day,.tt-period{font-size:12px}.tt-day small{font-size:11px}.tt-cell{min-height:90px}.tt-event{min-height:75px}
.timetable-grid.day-view{grid-template-columns:72px minmax(0,1fr)!important;min-width:0!important;width:100%}.timetable-grid.day-view .tt-period{padding-inline:8px}.timetable-grid.day-view .tt-cell{min-height:78px}.timetable-grid.day-view .tt-event b{font-size:15px}.timetable-grid.day-view .tt-event span{font-size:14px}.timetable-grid.day-view .tt-event small{font-size:13px}
@media(max-width:700px){.timetable-grid.day-view{grid-template-columns:66px minmax(0,1fr)!important;min-width:0!important}.timetable-grid.day-view .tt-cell{padding:7px}.timetable-grid.day-view .tt-period{padding:7px 5px}}

/* Unified password control anatomy for new and old forms. */
.tc-password-shell{display:flex;align-items:center;gap:6px;position:relative;min-width:0;width:100%}.tc-password-shell>input{flex:1;min-width:0}.tc-show-pass{flex:0 0 auto;padding:10px 12px;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--text);cursor:pointer}.tc-show-pass:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

/* v9.4.1 starter flow — opaque readable content and 44px touch surfaces */
.tc-start-header{margin-bottom:18px;padding:clamp(18px,3vw,28px)}.tc-start-header h1{font-size:clamp(1.5rem,2.6vw,2.1rem);margin:.45rem 0}.tc-start-header p{max-width:65ch;color:var(--muted)}.tc-start-progress{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted)}.tc-start-bar{height:10px;border-radius:99px;background:var(--line);overflow:hidden;min-width:120px;max-width:480px;flex:1}.tc-start-bar span{display:block;height:100%;border-radius:inherit;background:var(--brand)}.tc-start-actions{display:flex;flex-wrap:wrap;gap:10px}.tc-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.tc-start-step{display:flex;gap:14px;align-items:flex-start;padding:20px}.tc-step-count{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:var(--brand-soft);color:var(--brand);font-weight:800}.tc-step-count.is-done{background:color-mix(in srgb,#16a34a 16%,var(--surface));color:#15803d}.tc-start-step-body{flex:1;min-width:0}.tc-start-step h2{font-size:1.04rem;margin:0 0 8px}.tc-start-step h2 small{display:block;font-size:.76rem;color:var(--muted);font-weight:500;margin-top:4px}.tc-start-step p{font-size:.88rem;color:var(--muted);margin:0 0 14px}.tc-step-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.tc-start-help h2{font-size:1.1rem;margin:0 0 10px}.tc-start-help p{color:var(--muted);max-width:75ch}@media(max-width:760px){.tc-start-grid{grid-template-columns:1fr}.tc-start-step{padding:16px}.tc-start-actions .btn{flex:1 1 auto}}

.tc-quick-setup{margin:16px 0 20px}.tc-quick-setup .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tc-quick-setup input{width:100%;min-width:0}.tc-quick-setup .form-actions{margin-top:12px}@media(max-width:760px){.tc-quick-setup .form-grid{grid-template-columns:1fr}.tc-quick-setup .form-actions .btn{width:100%}}

/* v9.4.2 integrated import template shortcuts: solid readable panels and touch-first controls. */
.tc-module-import-panel{margin:0 0 22px;padding:16px 18px;border:1px solid var(--line);background:var(--surface);border-radius:16px;box-shadow:0 6px 25px rgba(15,23,42,.04)}
.tc-module-import-head strong{font-size:1rem;line-height:1.4}.tc-module-import-head p{margin:3px 0 12px;color:var(--muted);font-size:.87rem;line-height:1.45}
.tc-module-import-grid{display:grid;gap:10px}.tc-module-import-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:wrap;padding:9px 0;border-top:1px solid var(--line)}
.tc-module-import-label{font-size:.91rem;font-weight:650;line-height:1.4;min-width:130px}
.tc-module-import-buttons{display:flex;flex-wrap:wrap;gap:8px;min-width:0;align-items:center}
.tc-module-import-buttons .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;text-align:center;font-size:.87rem;line-height:1.3;white-space:normal}
.tc-module-import-buttons a:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:650px){.tc-module-import-panel{padding:14px}.tc-module-import-row{align-items:stretch;gap:8px}.tc-module-import-label{width:100%}.tc-module-import-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tc-module-import-buttons .btn{width:100%;min-width:0}.tc-module-import-buttons .btn.primary{grid-column:1/-1}}
@media(prefers-reduced-transparency:reduce){.tc-module-import-panel{backdrop-filter:none!important}}

/* v9.5.1: restrained, readable GUIUX6 controls and responsive accessibility safeguards. */
.btn.small,.compact-select,.tc-module-import-buttons .btn,.tc-today-action .btn,.tc-code-editor textarea{font-size:16px}
.tc-public-article-actions,.tc-auth-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tc-auth-actions{justify-content:flex-end;margin-bottom:6px}
.tc-public-article-actions .brand{min-width:0}
.tc-public-article-actions .icon-button,.tc-auth-actions .icon-button{min-width:44px;min-height:44px}
.tc-password-shell{display:flex;align-items:center;gap:0;min-width:0}
.tc-password-shell input{flex:1 1 auto;min-width:0}
.tc-password-shell button{flex:0 0 auto;min-height:44px;min-width:60px}
@media(max-width:700px){
 .tc-today-action-links{display:grid;grid-template-columns:minmax(0,1fr)}
 .tc-today-action-links .btn{width:100%;min-width:0}
 .tc-module-import-buttons .btn{min-height:44px;font-size:16px}
 .tc-public-article-actions{align-items:start}
}
@media(forced-colors:active){
 .sidebar,.topbar,.panel,.tt-editor,.tc-reading-card,.tc-today-action{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important;box-shadow:none!important;backdrop-filter:none!important}
 .btn:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid Highlight!important;outline-offset:2px}
}

/* v9.5.2: accessible, highly visible registration CTA for first-time teachers. */
.login-help{display:grid;justify-items:center;gap:12px;margin-top:22px;padding-top:22px;text-align:center;font-size:16px;line-height:1.5}
.login-help .signup-prompt{font-size:16px;font-weight:700;color:var(--text);margin:0}
.login-help .signup-cta{display:inline-flex;max-width:100%;min-height:48px;width:100%;white-space:normal;padding:12px 20px;font-size:16px;line-height:1.35;font-weight:800;text-align:center;justify-content:center;border:1px solid color-mix(in srgb,var(--brand) 26%,var(--line));border-radius:13px}
.login-help .signup-cta:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.login-help .login-verify-prompt{color:var(--muted);font-size:14px;line-height:1.6;margin:0}
.login-help .login-verify-prompt a{font-size:14px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:630px){.login-help .signup-cta{min-height:52px}}
