@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#173048;background:#f4f6fb;font-synthesis:none;--navy:#102740;--blue:#385ddb;--text:#203449;--muted:#66788b;--border:#e4e9f0;--white:#fff;--shadow:0 12px 32px rgba(17,36,63,.06);color-scheme:light}*{box-sizing:border-box}body{margin:0}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{font-family:'Manrope',sans-serif;letter-spacing:-.035em}h1{font-size:30px;line-height:1.17}h2{font-size:22px;line-height:1.25}h3{font-size:16px;line-height:1.3}a{color:#3458be;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}input,select,textarea{width:100%;padding:12px 14px;border:1px solid #d8e1eb;border-radius:10px;background:#fff;color:#19344d;outline:none}input:focus,textarea:focus,select:focus{border-color:#5270d9;box-shadow:0 0 0 3px #5270d922}textarea{resize:vertical;min-height:110px}.boot{padding:45vh 20px;text-align:center;color:var(--muted)}.app-shell{display:grid;grid-template-columns:252px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#d9e3ee;padding:26px 17px;display:flex;flex-direction:column;gap:20px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:7px 8px 24px;border-bottom:1px solid #ffffff24}.logo{width:45px;height:45px;border-radius:14px;background:linear-gradient(150deg,#89a3ff,#6082e8);color:#fff;display:grid;place-items:center;font-size:27px;font-weight:800;font-family:Manrope}.brand strong{display:block;color:white;font-size:14px;font-family:Manrope}.brand small{display:block;font-size:11px;color:#a7b9c9;margin-top:3px}.nav{display:flex;flex-direction:column;gap:4px}.nav button{background:transparent;border:0;color:#adbfcd;text-align:left;padding:12px 13px;border-radius:11px;font-weight:600;font-size:13px;display:flex;align-items:center;gap:12px;width:100%}.nav button:hover{background:#ffffff13;color:white}.nav button.active{background:#284567;color:white}.nav .glyph{font-size:18px;width:22px;text-align:center}.sidebar-bottom{margin-top:auto;font-size:12px;color:#9fb0c1;background:#ffffff12;padding:15px;border-radius:13px;line-height:1.55}.sidebar-bottom strong{color:white}.sidebar .logout{background:transparent;border:1px solid #56708b;border-radius:9px;padding:10px;color:white;width:100%;margin-top:14px}.page{max-width:1320px;width:100%;margin:auto;padding:37px 44px 90px}.page-head{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#6380a3;text-transform:uppercase;margin:0 0 9px}.subtext,.muted{color:var(--muted);font-size:13px;line-height:1.55}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);border:1px solid var(--blue);border-radius:10px;color:white;padding:11px 15px;font-size:13px;font-weight:700;transition:transform .15s}.button:hover{filter:brightness(.95);transform:translateY(-1px)}.button.outline{color:#294a67;background:white;border-color:#dae2ed}.button.ghost{color:#49617d;background:#eef2f8;border-color:transparent}.button.small{padding:8px 11px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:19px}.stack{display:flex;flex-direction:column;gap:18px}.card{background:white;border:1px solid #e7ecf3;border-radius:17px;padding:21px 23px;box-shadow:var(--shadow);min-width:0}.card-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.card-heading h2,.card-heading h3{margin:0}.help{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #c7d3e4;border-radius:50%;background:white;color:#5674a6;font-size:12px;font-weight:800;flex:none;vertical-align:middle}.help:hover{background:#e9f1ff}.kpi-title{font-size:12px;color:#667b8b;font-weight:700;margin-bottom:16px;display:flex;gap:8px;align-items:center}.kpi-value{font-size:30px;letter-spacing:-.035em;font-weight:800;font-family:Manrope}.kpi-foot{font-size:12px;color:#728496;margin-top:7px}.progress-track{height:8px;background:#e8edf4;border-radius:50px;overflow:hidden;margin-top:15px}.progress-fill{height:100%;background:#4b75dc;border-radius:50px}.pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:5px 8px;background:#f1f4ff;border-radius:40px;color:#3457a8;font-weight:800}.pill.green{color:#16735f;background:#e5f7ef}.pill.orange{color:#9b601f;background:#fff2df}.pill.grey{color:#607080;background:#eff2f5}.subject-tag{padding:5px 9px;border-radius:7px;font-size:11px;font-weight:700;display:inline-block}.subject-economics{background:#e4f5ef;color:#18705b}.subject-english{background:#f2eaff;color:#7953b5}.subject-statistics{background:#e3efff;color:#2b6ca6}.subject-media-studies{background:#fff0e1;color:#a46d27}.subject-scholarship-media-studies{background:#fce7ef;color:#a04466}.subject-business-studies{background:#e9e7ff;color:#6554a9}.session{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #edf0f4}.session:last-child{border-bottom:0}.checkbox{width:22px;height:22px;flex:none;accent-color:#426adb}.session-copy{flex:1;min-width:0}.session-copy b{display:block;font-size:13px;line-height:1.4;margin:7px 0}.session-copy small{color:#7b8c9d;font-size:11px}.session.done .session-copy b{text-decoration:line-through;color:#8a99a7}.session .session-time{font-size:11px;color:#8496a7}.exam-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eef1f6}.exam-row:last-child{border-bottom:0}.date-box{width:48px;flex:none;border:1px solid #e1e8f1;border-radius:11px;padding:7px 4px;text-align:center}.date-box strong{display:block;font-size:18px;font-family:Manrope}.date-box small{font-size:10px;color:#8291a0}.exam-copy{flex:1;min-width:0}.exam-copy b{display:block;font-size:13px;margin-bottom:4px}.exam-copy small{color:#8996a4;font-size:11px}.label{font-size:12px;font-weight:700;color:#405871;display:block;margin:12px 0 7px}.table-wrapper{overflow-x:auto}.simple-table{border-collapse:collapse;width:100%;font-size:12px}.simple-table th{font-size:11px;letter-spacing:.02em;background:#f5f7fb;color:#718394;text-align:left}.simple-table td,.simple-table th{padding:12px;border-bottom:1px solid #ebeff5;min-width:95px}.simple-table td b{font-weight:700}.callout{background:#eaf1fc;border:1px solid #d6e2f9;padding:14px 16px;border-radius:12px;color:#385b8f;font-size:12px;line-height:1.55}.study-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.day-tile{background:#f8fafe;border:1px solid #e4eaf2;border-radius:12px;padding:12px;min-height:150px}.day-tile.today{border-color:#839dea;background:#f3f6ff}.day-head{font-size:11px;color:#6a7d90;margin-bottom:11px}.day-head strong{display:block;color:#25415c;font-size:17px;margin-top:4px}.mini-task{display:block;font-size:10px;line-height:1.4;background:#fff;border:1px solid #e7ebf1;border-radius:7px;padding:6px;margin:5px 0}.mini-task small{color:#8291a4}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.empty{padding:28px;text-align:center;border:1px dashed #cfdbe7;border-radius:14px;color:#687f93;font-size:13px;line-height:1.7}.empty .illustration{font-size:29px;margin-bottom:8px}.chat-messages{height:355px;overflow:auto;padding:10px;background:#f6f8fc;border-radius:12px;display:flex;flex-direction:column;gap:12px}.chat-bubble{max-width:90%;line-height:1.55;padding:13px 15px;border-radius:13px;background:white;box-shadow:0 2px 8px #19304b0b;font-size:13px;white-space:pre-wrap}.chat-bubble.user{align-self:flex-end;background:#dfe8ff}.chat-bubble.ai{align-self:flex-start}.chat-form{display:flex;gap:9px;margin-top:12px}.chat-form input{flex:1}.info-note{font-size:11px;color:#81909e;line-height:1.5}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.login-view{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-art{background:radial-gradient(ellipse at 68% 24%,#325a98 0%,transparent 53%),linear-gradient(145deg,#112840,#091b2e);padding:10vh 10%;display:flex;flex-direction:column;justify-content:center;color:white;position:relative;overflow:hidden}.login-art:after{content:'✦';font-size:350px;opacity:.05;position:absolute;right:-20px;bottom:-140px}.login-art h1{font-size:45px;line-height:1.15;max-width:490px}.login-art p{font-size:15px;line-height:1.7;color:#b8cede;max-width:460px}.login-art .logo{margin-bottom:35px}.login-panel{display:grid;place-items:center;padding:40px}.login-form{max-width:390px;width:100%}.login-form h2{font-size:28px}.login-form p{font-size:14px;line-height:1.6;color:#788b9c}.error{color:#bd3453;background:#fff0f3;border:1px solid #ffcbd6;padding:10px 12px;border-radius:9px;font-size:12px;margin:12px 0}.success{color:#146b55;background:#e9f8ef;border:1px solid #c2e9d4;padding:10px 12px;border-radius:9px;font-size:12px;margin:12px 0}.overlay{position:fixed;inset:0;background:#0b203b90;display:grid;place-items:center;z-index:100;padding:15px}.dialog{background:white;border-radius:18px;max-width:510px;width:100%;padding:25px;box-shadow:0 30px 90px #0003}.dialog h2{font-size:20px;margin:0 0 12px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-header h2{margin:0}.nav-toggle{display:none}.footer{font-size:11px;color:#8597a8;padding-top:26px}.column-label{font-size:10px;color:#8497aa;text-transform:uppercase;letter-spacing:.1em;font-weight:800;margin:0 0 9px}button:focus-visible{outline:3px solid #769ff9;outline-offset:2px} @media(max-width:1020px){.grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.page{padding:30px 27px 65px}.study-calendar{grid-template-columns:repeat(4,1fr)}} @media(max-width:700px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:14px 16px;gap:8px}.brand{padding:2px 4px 12px}.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;padding-bottom:5px}.nav button{width:auto;min-width:max-content;padding:8px 10px;font-size:12px}.nav .glyph{font-size:15px}.page{padding:24px 15px 60px}.page-head{flex-direction:column}.grid{grid-template-columns:1fr}.study-calendar{grid-template-columns:repeat(2,1fr)}.card{padding:18px}.login-view{grid-template-columns:1fr}.login-art{padding:30px 24px 20px;min-height:200px}.login-art h1{font-size:25px}.login-art p{font-size:12px}.login-art .logo{margin:0 0 12px}.login-panel{padding:30px 25px}.field-grid{grid-template-columns:1fr}}


/* Planner-first timetable: school lessons, free periods and study leave in one view */
.page{max-width:1640px;padding:31px 35px 80px}
.planner-page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.planner-page-head h1{margin-bottom:8px;font-size:29px}
.planner-page-head .subtext{margin:0}
.planner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.planner-stat{background:white;border:1px solid #e3eaf4;border-radius:14px;padding:16px 17px;display:flex;flex-direction:column;gap:6px;box-shadow:0 4px 20px #122b4505}
.planner-stat small{font-size:11px;font-weight:700;color:#6f8195}
.planner-stat b{color:#193b57;font:800 19px/1.3 'Manrope',sans-serif;letter-spacing:-.03em}
.planner-stat span{font-size:11px;color:#6c7d8f;line-height:1.4}
.planner-main-card{background:#fff;border:1px solid #e2e9f2;border-radius:18px;box-shadow:var(--shadow);padding:19px 19px 13px}
.planner-calendar-title{display:flex;align-items:center;justify-content:space-between;gap:15px}
.planner-calendar-title h2{font-size:20px;margin:0 0 6px}
.planner-calendar-title .eyebrow{margin-bottom:5px}
.planner-calendar-title .muted{margin:0 0 12px}
.planner-calendar-title .button{min-width:37px}
.planner-legend{display:flex;flex-wrap:wrap;gap:15px;margin:7px 0 16px;color:#67778a;font-size:11px}
.planner-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-key{width:11px;height:11px;border-radius:3px;display:inline-block}
.legend-key.school{background:#dfe7f0;border:1px solid #b3c5d7}
.legend-key.revision{background:#d9eee4;border:1px solid #74bea0}
.legend-key.free{background:#f9fbfe;border:1px dashed #b5c7db}
.legend-key.exam{background:#ffe8e2;border:1px solid #d89a88}
.planner-scroll{overflow:auto;max-width:100%;border:1px solid #e1e8f1;border-radius:13px;background:white;scrollbar-color:#bccbdc #f5f7fb;scrollbar-width:thin}
.planner-scroll:focus-visible{outline:2px solid #6583d4;outline-offset:2px}
.planner-table{display:grid;grid-template-columns:92px repeat(7,minmax(138px,1fr));min-width:1090px}
.planner-corner,.planner-day-head,.planner-time,.planner-cell{border-right:1px solid #e7ecf3;border-bottom:1px solid #e8edf4;min-width:0}
.planner-table>*:nth-child(8n){border-right:0}
.planner-corner{background:#ecf2f8;padding:16px 9px;display:flex;flex-direction:column;justify-content:center}
.planner-corner span{font-size:10px;letter-spacing:.055em;color:#476480;font-weight:800}
.planner-corner small{font-size:10px;color:#8a9dad;margin-top:5px}
.planner-day-head{background:#f6f8fb;padding:12px 9px 10px;text-align:center;min-height:99px}
.planner-day-head.is-today{background:#e8efff}
.planner-day-head>span:first-child{display:block;font-size:11px;font-weight:800;color:#536981}
.planner-day-head strong{display:block;font:800 21px/1.25 'Manrope',sans-serif;color:#1b3954;margin:3px 0}
.planner-day-head small{display:block;font-size:10px;color:#778ba0;font-weight:650}
.planner-day-head em{font-style:normal;display:block;font-size:9px;color:#ae6a29;margin-top:5px;line-height:1.4}
.exam-badge{display:block!important;background:#fff0e9;color:#a64331!important;border-radius:5px;margin-top:5px;padding:3px 4px;font-size:9px!important;font-weight:750}
.planner-time{background:#f8fafc;padding:11px 8px;min-height:87px}
.planner-time strong{display:block;font-size:10px;font-weight:800;color:#3d526c;line-height:1.4}
.planner-time small{display:block;font-size:9px;color:#8a9aaa;margin-top:5px;line-height:1.4}
.planner-cell{padding:5px;background:#fff;min-height:87px;display:flex;flex-direction:column;gap:4px}
.planner-cell.occupied{background:#f9fbfe}
.planner-cell.during-exam{background:#fff6f4}
.planner-event{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left;border-radius:7px;padding:8px;border:1px solid transparent;min-height:45px;overflow-wrap:anywhere;line-height:1.25}
.planner-event small{font-size:9px;font-weight:700;opacity:.82}
.planner-event strong{font-size:11px;font-weight:800}
.planner-event span{font-size:10px;line-height:1.4;opacity:.88;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.planner-event.class-block{color:#435f77;background:#e9f0f8;border-color:#d8e3ef;cursor:default}
.planner-event.revision{--study-bg:#e7f5ee;--study-accent:#267958;color:var(--study-accent);background:var(--study-bg);border-color:#c4e8d2;cursor:pointer}
.planner-event.revision:hover{outline:2px solid #9bb5d6;outline-offset:1px;filter:brightness(.98)}
.planner-event.revision.subject-economics{--study-bg:#e7f5ec;--study-accent:#21704d}
.planner-event.revision.subject-english{--study-bg:#f1eafe;--study-accent:#7152a6}
.planner-event.revision.subject-statistics{--study-bg:#e4f1fd;--study-accent:#275e96}
.planner-event.revision.subject-media-studies{--study-bg:#fff2e3;--study-accent:#9b6427}
.planner-event.revision.subject-scholarship-media-studies{--study-bg:#fbe8ef;--study-accent:#984565}
.planner-event.revision.subject-business-studies{--study-bg:#eeeaff;--study-accent:#6550a1}
.planner-event.revision.complete{opacity:.52}
.free-period{border:1px dashed #c6d7e9;color:#7190a8;border-radius:7px;padding:8px 6px;font-size:10px;text-align:center;background:#f7fbfe;font-weight:700}
.planner-muted{font-size:10px;color:#a1acb9;display:block;padding:9px 5px;text-align:center}
.planner-exam-shade{border:1px solid #f2cabb;background:#ffe8df;border-radius:7px;padding:8px 5px;text-align:center;color:#a04b35;font-size:10px;font-weight:800}
.planner-footnote{font-size:10px;line-height:1.5;color:#74899c;margin-top:10px}
.planner-lower{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px;margin-top:17px}
.planner-lower .card{margin:0}
.dialog{max-height:calc(100vh - 36px);overflow-y:auto}
@media(max-width:1180px){.planner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.page{padding:29px 22px 65px}}
@media(max-width:800px){.planner-lower{grid-template-columns:1fr}.planner-page-head{flex-direction:column;align-items:flex-start}.planner-stat b{font-size:16px}}
@media(max-width:600px){.page{padding:20px 13px 60px}.planner-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.planner-stat{padding:11px 12px}.planner-calendar-title{flex-direction:column;align-items:flex-start}.planner-main-card{padding:12px}.planner-legend{gap:8px}.planner-page-head h1{font-size:24px}}


/* Visible Gemini collaborator beside the live timetable */
.planner-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(315px,350px);align-items:start;gap:16px}
.planner-work-area{min-width:0}
.planner-assistant{min-width:0;position:sticky;top:16px}
.planner-table{min-width:940px;grid-template-columns:78px repeat(7,minmax(123px,1fr))}
.planner-time{padding:9px 5px}
.planner-main-card{min-width:0}
.gemini-panel{display:flex;flex-direction:column;gap:11px;padding:18px;background:#fff;border:1px solid #dce5f0;border-radius:18px;box-shadow:var(--shadow);min-width:0}
.gemini-panel.gemini-compact{max-height:calc(100vh - 35px);min-height:480px}
.gemini-header{display:flex;align-items:start;justify-content:space-between;gap:8px}
.gemini-header .eyebrow{margin-bottom:5px;font-size:9px}
.gemini-header h2{font-size:19px;margin:0}
.gemini-header .pill{flex:none}
.gemini-subtitle{font-size:12px;line-height:1.5;color:#657d91;margin:0}
.gemini-messages{background:#f4f7fb;border:1px solid #e7edf5;border-radius:12px;padding:11px;min-height:110px;max-height:230px;overflow:auto;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin;scrollbar-color:#c5d0e0 #f4f7fb}
.gemini-compact .gemini-messages{flex:1 1 150px;min-height:85px;max-height:none}
.gemini-messages .chat-bubble{font-size:12px;max-width:99%;padding:10px 12px}
.gemini-compose{border-top:1px solid #edf1f6;padding-top:7px;flex:none}
.gemini-compose .label{margin:2px 0 8px}
.gemini-compose textarea{width:100%;min-height:76px;max-height:145px;resize:vertical;font-size:12px;line-height:1.5}
.gemini-compose-controls{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:9px}
.gemini-compose-controls .button{white-space:nowrap}
.microphone-button.is-listening{border-color:#c64f60!important;background:#fdefef!important;color:#a33247!important;box-shadow:0 0 0 3px #e4676422}
.gemini-voice-status{font-size:10px;color:#75889a;line-height:1.5;margin:7px 0 0}
.gemini-example-prompts{display:flex;flex-wrap:wrap;gap:7px}
.gemini-example-prompts button{background:#f4f7fe;color:#45628d;border:1px solid #dce6f4;font-size:10px;line-height:1.35;padding:7px 9px;text-align:left;border-radius:9px;cursor:pointer}
.gemini-example-prompts button:hover{background:#e9effe}
.gemini-panel>.info-note{font-size:10px;margin:0}
.proposal-review{background:#f7f9ff;border:1px solid #bcccec;border-radius:13px;padding:12px;overflow:auto;max-height:330px;flex:none}
.proposal-title{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-bottom:7px}
.proposal-title strong{font-size:12px;color:#2d4f83}
.proposal-review>.muted{font-size:10px;margin-bottom:8px}
.proposal-steps{display:flex;flex-direction:column;gap:6px}
.proposal-step{display:flex;gap:9px;background:white;border-radius:8px;padding:9px 8px;border:1px solid #e4eaf8;min-width:0}
.proposal-number{font-size:11px;color:#496bad;font-weight:800;background:#e5edff;border-radius:50%;width:20px;height:20px;flex:none;display:grid;place-items:center}
.proposal-description{font-size:11px;line-height:1.5;color:#405575;min-width:0;overflow-wrap:anywhere}
.proposal-description b{font-size:11px}
.proposal-link{background:none;border:none;padding:4px 0;color:#4263ad;font-size:10px;display:block;font-weight:700}
.proposal-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.proposal-review .info-note{margin-bottom:0}
.planner-event.proposed{color:#4b5fa5;background:#edf0ff;border:2px dashed #7289d1;min-height:51px}
.planner-event.proposed-old{color:#8d98a5;background:#f6f7fa;border:1px dashed #b8c0ca;opacity:.75;min-height:45px}
.planner-event.proposed-old span{text-decoration:line-through}
.proposed-flex{border:1px dashed #91a3d8;background:#eef2ff;color:#445c96;border-radius:8px;margin:8px 0;padding:10px;font-size:11px}
.proposed-flex small{font-size:10px;font-weight:800;margin-right:6px}
.legend-key.proposed{background:#eef0ff;border:2px dashed #768bd1}
.standalone-assistant{max-width:760px;margin:0 auto}
.standalone-assistant .gemini-messages{max-height:360px;min-height:220px}
@media(max-width:1440px){.planner-workspace{grid-template-columns:minmax(0,1fr) minmax(290px,325px)}.planner-assistant .gemini-panel{padding:13px}}
@media(max-width:1100px){.planner-workspace{grid-template-columns:1fr}.planner-assistant{position:static}.gemini-panel.gemini-compact{max-height:none;min-height:0}.gemini-compact .gemini-messages{max-height:290px;min-height:130px}.planner-table{min-width:940px}.planner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.gemini-panel{padding:14px}.proposal-review{max-height:480px}.planner-workspace{gap:13px}.planner-legend{gap:9px}}

/* Exam-coverage syllabus dashboard */
.coverage-banner{background:#eef4fe;border:1px solid #d4e1f6;border-radius:14px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px;flex-wrap:wrap}
.coverage-banner strong{color:#244f89;font:800 17px 'Manrope',sans-serif}
.coverage-banner span{font-size:12px;color:#537191;flex:1 1 260px;line-height:1.5}
.coverage-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}
.coverage-tabs .button{font-size:12px}
.coverage-list{display:flex;flex-direction:column;gap:18px}
.coverage-standard{background:white;border:1px solid #e3e9f3;border-radius:17px;overflow:hidden;box-shadow:var(--shadow)}
.coverage-standard>header{display:flex;justify-content:space-between;align-items:start;gap:14px;padding:19px 22px 13px}
.coverage-standard>header h2{font-size:19px;line-height:1.35;margin:0 0 7px}
.coverage-standard>header .eyebrow{margin-bottom:6px}
.coverage-standard>header .muted{margin:0}
.coverage-entry{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 22px 15px;border-bottom:1px solid #edf1f6;flex-wrap:wrap}
.coverage-entry label{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:12px;color:#425c78}
.coverage-entry select{width:auto;min-width:235px;max-width:100%;padding:9px 12px}
.coverage-standard details>summary{list-style:none;cursor:pointer;background:#f7f9fd;padding:13px 22px;font-size:12px;font-weight:800;color:#46617c}
.coverage-standard details>summary::-webkit-details-marker{display:none}
.coverage-standard details>summary::after{content:'▾';float:right}
.coverage-standard details:not([open])>summary::after{content:'▸'}
.coverage-topic{padding:13px 21px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #edf1f6}
.coverage-topic-content{min-width:0;flex:1}
.coverage-topic-content strong{font-size:13px;color:#253f57}
.coverage-topic-content p{font-size:12px;color:#687f92;line-height:1.5;margin:6px 0}
.coverage-dates{font-size:10px;color:#8091a2;line-height:1.5}
.coverage-dates button{border:0;padding:2px 0;background:none;color:#345bb7;text-decoration:underline;font-size:10px}
.coverage-status{display:flex;flex-direction:column;gap:5px;flex:none;font-size:10px;color:#70859a;font-weight:700}
.coverage-status select{min-width:135px;width:155px;font-size:11px;padding:9px}
@media(max-width:800px){.coverage-topic{align-items:stretch;flex-direction:column;gap:6px}.coverage-status select{width:100%;max-width:300px}.coverage-standard>header{flex-direction:column}.coverage-entry select{min-width:200px}}


/* Dashboard: six-subject exam overview, readable on desktop and mobile */
.dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-next-subject{font:800 18px/1.3 'Manrope',sans-serif;color:#203a59;margin:0 0 9px}
.dashboard-next-date{font-size:13px;font-weight:750;color:#426281;line-height:1.5}
.dashboard-next-countdown{display:inline-block;border-radius:10px;background:#eaf0ff;color:#315bb2;font:800 22px/1.2 'Manrope',sans-serif;padding:9px 13px;margin-top:13px}
.dashboard-examinations{margin-top:23px}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}
.dashboard-section-heading h2{margin:0 0 5px;font-size:20px}
.dashboard-section-heading .eyebrow{margin-bottom:5px}
.dashboard-section-heading .muted{margin:0}
.dashboard-exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dashboard-exam{display:flex;flex-direction:column;gap:8px;padding:18px 18px 16px;border-radius:15px;background:white;border:1px solid #e3eaf3;box-shadow:var(--shadow);min-width:0}
.dashboard-exam.near{border-color:#a8b8ec;background:#fbfcff}
.dashboard-exam.past{opacity:.66}
.dashboard-exam-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dashboard-exam-icon{display:block;flex:none;width:15px;height:15px;border-radius:5px;font-size:0}
.dashboard-exam h3{font:800 15px/1.3 'Manrope',sans-serif;margin:0;color:#233b57}
.dashboard-exam-date{font-size:12px;color:#617b96;margin:0;line-height:1.45}
.dashboard-exam-date strong{white-space:nowrap;color:#33597c}
.countdown{font-size:11px;color:#345daa;background:#e8efff;padding:6px 9px;border-radius:20px;font-weight:800;white-space:nowrap}
.countdown.urgent{background:#fff0e2;color:#9a5c23}
.countdown.past{background:#eff2f6;color:#6c7c8c}
.dashboard-exam-progress{margin-top:auto;padding-top:8px;color:#7d8e9e;font-size:10px}
.dashboard-exam-progress .progress-track{height:6px;margin-top:8px}
@media(max-width:1250px){.dashboard-exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:940px){.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-exam-grid{grid-template-columns:1fr}.dashboard-summary{grid-template-columns:1fr}.dashboard-section-heading{align-items:flex-start;flex-direction:column;gap:8px}}


/* Weekly allocation is intentionally time-shifted: equal overall minutes, not equal hours every week. */
.dashboard-balance-note{margin-top:13px;font-size:12px;line-height:1.5;color:#566f85}
.planner-week-mix{background:#fff;border:1px solid #e0e7f1;border-radius:15px;padding:13px 16px;margin-bottom:16px;box-shadow:0 4px 20px #122b4505}
.mix-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}
.mix-header>div{display:flex;flex-direction:column;gap:4px}
.mix-header strong{font-size:13px;color:#284361}
.mix-header small{font-size:11px;color:#6b7f93;line-height:1.5}
.mix-week-total{font-size:12px;font-weight:800;color:#3e6289;white-space:nowrap;background:#edf3fa;padding:6px 9px;border-radius:8px}
.mix-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.mix-item{min-width:0}
.mix-item-line{display:flex;justify-content:space-between;align-items:flex-start;gap:4px;margin-bottom:5px}
.mix-item-line span{color:#3d5671;font-size:10px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.mix-item-line b{color:#294d71;font-size:10px;white-space:nowrap}
.mix-track{background:#edf0f6;height:6px;border-radius:100px;overflow:hidden;margin-bottom:4px}
.mix-fill{height:100%;border-radius:100px;background:#799abc}
.mix-fill.subject-economics{background:#3b9e7a}
.mix-fill.subject-english{background:#926bcb}
.mix-fill.subject-statistics{background:#4a92cd}
.mix-fill.subject-media-studies{background:#ce9851}
.mix-fill.subject-scholarship-media-studies{background:#c76890}
.mix-fill.subject-business-studies{background:#8275cf}
.mix-item>small{font-size:9px;color:#8998ab}
@media(max-width:1350px){.mix-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:12px}}
@media(max-width:720px){.mix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mix-header{align-items:flex-start;flex-direction:column;gap:9px}}


/* Clicking a school subject opens its own study-focus editor; ordinary classes remain intact. */
.class-focus-button{width:100%;font-family:inherit;text-align:left;cursor:pointer!important;min-height:64px}
.class-focus-button:hover,.class-focus-button:focus-visible{outline:2px solid #789cc2;outline-offset:1px;background:#dfeaf6!important}
.class-focus-label{display:block!important;font-size:10px!important;line-height:1.45!important;color:#486987;opacity:1!important;overflow-wrap:anywhere}
.free-period-button{width:100%;cursor:pointer!important;font-family:inherit;text-align:center;font-size:10px;line-height:1.4}
.free-period-button:hover,.free-period-button:focus-visible{background:#e3f4ff!important;border-color:#94b5d2;outline:2px solid #bad5eb;outline-offset:1px}


/* Calendar quick-add for weekend, holiday and study-leave slots */
.planner-add-open{display:block;width:100%;background:transparent;border:1px dashed #cbd8e7;color:#7a8fa6;padding:8px 4px;border-radius:7px;cursor:pointer;font:700 10px/1.4 inherit;margin-top:auto;opacity:.75}
.planner-add-open:hover,.planner-add-open:focus-visible{background:#eff7ff;color:#245a8e;border-color:#6d9ecc;opacity:1;outline:1px solid #85abd0}
.session-catchup{border:1px solid #d3e0ef;border-radius:8px;background:#f4f7ff;padding:5px 8px;font-size:10px;white-space:nowrap;color:#3c6096;font-weight:750;cursor:pointer;margin-left:8px;align-self:center}
.session-catchup:hover{background:#e3ebff}
.catchup-open-button{width:100%;white-space:normal;line-height:1.5;text-align:center}
.catchup-message{background:#f1f6ff;border:1px solid #d4e2f7;border-radius:10px;padding:12px;margin:15px 0}
.catchup-message b{font-size:12px;color:#345684}
.catchup-message p{font-size:12px;color:#58728f;margin:7px 0 0;line-height:1.55}
.catchup-choices{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.catchup-choice{border:1px solid #dee6f3;border-radius:11px;padding:13px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
.catchup-choice strong{font-size:13px;color:#234c77}
.catchup-choice p{font-size:11px;color:#657d96;margin:0;line-height:1.5}
.catchup-choice small{font-size:10px;color:#8499ad}
.catchup-choice .button{grid-column:2;grid-row:1 / span 3;white-space:normal}
.gemini-account-settings .card-heading{flex-wrap:wrap;gap:10px}
.gemini-account-settings .card-heading .pill{white-space:normal;overflow-wrap:anywhere}
.gemini-account-settings input[type=password]{width:100%;font-family:monospace}
@media(max-width:700px){.catchup-choice{grid-template-columns:1fr}.catchup-choice .button{grid-column:1;grid-row:auto;width:100%}}


/* Self-service private accounts and student-selected NCEA exams */
.login-panel{align-content:center}
.login-form{max-width:430px}
.login-form .label{display:block;margin:12px 0 6px}
.login-form .button{min-height:38px}
.login-form input,.login-form select{width:100%;min-width:0}
.login-form [hidden]{display:none!important}
.login-form .signup-username-row{display:flex;gap:9px;align-items:center}
.login-form .signup-username-row input{flex:1}
.login-form .signup-username-row button{flex:0 0 auto}
.login-form #username-status{display:block;min-height:18px;margin:6px 0 10px;line-height:1.45}
.username-available{display:block;font-size:12px;line-height:1.5;color:#146b55;margin:8px 0}
.username-unavailable{display:block;font-size:12px;line-height:1.5;color:#bd3453;margin:8px 0}
.login-form #register-error:empty,.login-form #login-error:empty{display:none}
#add-exam-form .label,#change-password-form .label{margin-top:12px}
#add-exam-form input,#change-password-form input{width:100%}
@media(max-width:750px){.login-panel{padding:28px 18px}.login-form{max-width:100%}.login-art{padding:35px 24px}.login-art h1{font-size:31px}}


/* Persistent key connection feedback; never put API keys in page markup */
.gemini-key-feedback:not(:empty){display:block;padding:12px;margin:12px 0 8px;border-radius:9px;border:1px solid #b9d0ed;background:#eef6ff;color:#214c78;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.gemini-key-feedback[data-kind="success"]{border-color:#bcdecf;background:#eff9f4;color:#1c6545}
.gemini-key-feedback[data-kind="error"]{border-color:#e7b6c1;background:#fff1f2;color:#963b4b}
.gemini-key-feedback[data-kind="warning"]{border-color:#ead29d;background:#fff9eb;color:#875a21}
.gemini-key-feedback:empty{display:none}


/* Individual first-time timetable importer */
.setup-upload-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:16px;margin:16px 0}
.setup-file-card{min-width:0}
.setup-file-card input[type="file"]{display:block;width:100%;max-width:100%;padding:10px 5px;margin:6px 0 13px;font-size:12px}
.setup-file-card textarea{width:100%;min-height:130px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.6;box-sizing:border-box}
.setup-file-card .label{display:block;margin-top:12px}
.setup-preview{margin:18px 0 26px}
.setup-preview .setup-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.setup-preview .setup-stats>div{background:#f3f7fc;border-radius:9px;padding:12px}
.setup-preview .setup-stats strong{font-size:23px;display:block}
.setup-preview .setup-stats small{display:block;color:#687b8d}
.setup-preview details{margin:12px 0}
.setup-preview summary{cursor:pointer;font-size:13px;font-weight:700}
.setup-preview .table-wrapper{overflow-x:auto}
.setup-preview .table-wrapper table{min-width:520px}
@media(max-width:600px){.setup-preview .setup-stats{grid-template-columns:repeat(2,1fr)}.setup-upload-grid{grid-template-columns:minmax(0,1fr)}}


/* Previewed seven-day study calendar from uploaded classes and exam dates */
.setup-week-scroll{width:100%;max-width:100%;overflow-x:auto;margin:12px 0 20px;border:1px solid #d9e3ef;border-radius:12px}
.setup-week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1020px}
.setup-week-day{min-height:170px;padding:9px;border-right:1px solid #e2e9f2}
.setup-week-day:last-child{border-right:0}
.setup-week-day-head{display:flex;flex-direction:column;gap:4px;margin-bottom:9px}
.setup-week-day-head small{color:#738293}
.setup-week-item{display:flex;flex-direction:column;gap:4px;padding:7px 8px;margin:6px 0;border-radius:7px;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.setup-week-item small{font-size:10px;color:inherit;opacity:.8}
.setup-week-item.school{background:#e7eff7;color:#27506d}
.setup-week-item.free{background:#edf8f2;color:#316347}
.setup-week-item.revision{background:#fff1df;color:#8b5116;border-left:3px solid #db9b43}
.setup-week-item.exam{background:#fae8ea;color:#9a4356}


.setup-image-upload{margin:16px 0}
.setup-image-upload input[type="file"]{display:block;width:100%;font-size:13px;padding:12px 6px;margin:6px 0 15px}
#setup-image-status:not(:empty){margin:12px 0;padding:10px 12px;border-radius:9px;background:#f1f5ff;color:#284e77;line-height:1.5;font-size:12px;overflow-wrap:anywhere}

/* Human-reviewed NZQA exam matching */
.setup-nzqa-matcher{margin:18px 0}
.setup-nzqa-matcher select{min-width:165px;padding:9px;border:1px solid #bfd0e2;border-radius:8px;background:white;color:#213a59}
.setup-nzqa-results{margin-top:15px;border-top:1px solid #e0e8f2;padding-top:12px}
.setup-nzqa-choice{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e1e8f1;border-radius:8px;margin:6px 0;cursor:pointer}
.setup-nzqa-choice input{width:17px;height:17px;flex:none;accent-color:#355adf}
.setup-nzqa-choice span{display:flex;flex-direction:column;gap:3px}
.setup-nzqa-choice small{color:#61738c;font-size:12px}
.setup-nzqa-results details{padding:10px 0;border-top:1px solid #e0e8f2;margin-top:10px}
.setup-nzqa-results summary{cursor:pointer;font-weight:600}
.setup-nzqa-extra{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:5px;margin-top:10px}


/* Student-owned Google Drive study resource library */
.drive-subject{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #e9eef6}
.drive-subject>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.drive-subject strong{font-size:13px}
.drive-subject small{font-size:12px;color:#71839b}
#drive-standard-form,#drive-upload-form,.drive-category-form{display:flex;flex-direction:column;gap:10px;margin-top:14px}
#drive-standard-form h4{margin:12px 0 0}
#drive-standard-form label,#drive-upload-form label,.drive-category-form label,.drive-link-form label{font-size:12px;font-weight:650;display:flex;flex-direction:column;gap:6px}
#drive-upload-form input[type=file]{padding:10px 8px;font-size:12px}
.drive-resource-item{border:1px solid #e5eaf2;border-radius:12px;padding:15px;margin:12px 0;display:flex;flex-direction:column;gap:12px}
.drive-file-head{display:flex;gap:12px;align-items:start}
.drive-file-icon{display:grid;place-items:center;flex:none;font-size:23px;color:#536bd8;width:37px;height:37px;background:#eef2ff;border-radius:9px}
.drive-file-copy{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.drive-file-copy strong{font-size:13px}
.drive-file-copy small{font-size:12px;color:#697b92}
.drive-resource-item details{background:#f6f8fb;border-radius:9px;padding:10px 12px}
.drive-resource-item summary{cursor:pointer;font-size:12px;font-weight:650}
.drive-resource-links{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.drive-link-chip{display:inline-flex;gap:5px;align-items:center;border:1px solid #dce5f1;background:#f8faff;border-radius:20px;padding:5px 9px;font-size:11px}
.drive-unlink{border:0;background:transparent;font-size:18px;line-height:1;color:#607b98;width:auto;padding:0 2px}
.drive-link-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.drive-link-form label{flex:1;min-width:230px}
.drive-session-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}
.drive-session-links a{font-size:11px;border:1px solid #d7e4fb;background:#f0f5ff;border-radius:7px;padding:4px 8px}
@media(max-width:650px){.drive-link-form label{min-width:100%}.drive-link-form .button{width:100%}}
