
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#071018}
body.gp-clean{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:#edf1ef}
body.gp-clean a{text-decoration:none}
:root{--ink:#09131b;--navy:#0d2434;--navy2:#102f45;--glass:rgba(8,16,21,.78);--glass2:rgba(12,25,32,.88);--line:rgba(231,225,207,.28);--gold:#d6b47c;--sand:#e6d2ad;--green:#557b70;--green2:#7da796;--white:#f4f2ea;--muted:#b3bbb8;--danger:#ce746d}
button,input,select,textarea{font:inherit}

/* =============== LOGIN =============== */
.gp-login-page{
 min-height:100svh; position:relative; display:flex; align-items:center; justify-content:center;
 padding:44px 20px; overflow:hidden; text-align:center;
 background:
 linear-gradient(180deg,rgba(5,10,14,.25) 0%,rgba(5,10,14,.28) 34%,rgba(3,8,11,.82) 100%),
 linear-gradient(90deg,rgba(4,10,14,.58),rgba(4,10,14,.12) 50%,rgba(4,10,14,.48)),
 url("https://images.unsplash.com/photo-1772041045313-0500d3706819?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000") center center/cover no-repeat fixed;
}
.gp-login-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,transparent 0 18%,rgba(0,0,0,.15) 48%,rgba(0,0,0,.42) 100%);pointer-events:none}
.gp-login-card{
 width:min(520px,100%); position:relative; z-index:2; padding:44px 48px 40px;
 background:linear-gradient(180deg,rgba(8,15,19,.72),rgba(4,9,12,.88));
 border:1px solid rgba(231,213,181,.4); border-radius:24px;
 box-shadow:0 32px 90px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.08);
 backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.gp-login-brand{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--white)}
.gp-login-brand img{width:126px;height:auto;display:block;filter:drop-shadow(0 3px 12px rgba(0,0,0,.35))}
.gp-login-brand b{display:block;font-family:Georgia,"Times New Roman",serif;font-size:29px;letter-spacing:.22em;font-weight:500;margin-left:.22em}
.gp-login-brand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.28em;color:var(--sand)}
.gp-login-eyebrow{margin-top:30px;color:var(--sand);font-size:10px;letter-spacing:.28em;font-weight:700}
.gp-login-card h1{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-weight:500;font-size:clamp(29px,4vw,38px);line-height:1.55;letter-spacing:.08em;color:#fff;margin:12px 0 10px}
.gp-login-lead{margin:0 0 26px;color:#e2e2dd;font-size:13px;line-height:1.9;letter-spacing:.06em}
.gp-login-form{text-align:left;margin-top:24px;padding-top:25px;border-top:1px solid rgba(231,213,181,.25)}
.gp-login-form label{display:block;margin:0 0 8px;color:var(--sand);font-size:10px;letter-spacing:.22em;font-weight:700}
.gp-login-form input{width:100%;height:60px;border-radius:12px;border:1px solid rgba(255,255,255,.38);background:rgba(4,9,12,.48);color:#fff;padding:0 18px;font-size:17px;letter-spacing:.04em;outline:none}
.gp-login-form input::placeholder{color:rgba(255,255,255,.42)}
.gp-login-form input:focus{border-color:var(--sand);box-shadow:0 0 0 3px rgba(214,180,124,.12)}
.gp-login-form button{width:100%;height:60px;margin-top:14px;border:1px solid rgba(218,193,151,.42);border-radius:12px;background:linear-gradient(135deg,#173f3b,#315c50);color:#f4e6c9;font-size:15px;font-weight:700;letter-spacing:.12em;cursor:pointer;box-shadow:0 14px 30px rgba(0,0,0,.24);display:flex;align-items:center;justify-content:center;gap:14px}
.gp-login-form button:hover{filter:brightness(1.12);transform:translateY(-1px)}
.gp-login-note{margin:18px 0 0;padding-top:17px;border-top:1px solid rgba(255,255,255,.16);color:#aeb3b1;font-size:10px;letter-spacing:.05em}
.gp-login-foot{position:absolute;bottom:18px;z-index:2;color:rgba(255,255,255,.54);font-size:8px;letter-spacing:.28em}
.gp-alert{padding:11px 13px;border-radius:10px;font-size:12px;margin:12px 0}
.gp-alert.error{background:rgba(135,42,35,.48);border:1px solid rgba(238,132,121,.45);color:#ffd9d4}
.gp-alert.success{background:rgba(41,104,72,.18);border:1px solid rgba(102,176,130,.35);color:#cfe8d8}
.gp-alert.warn{background:rgba(171,123,43,.16);border:1px solid rgba(218,180,101,.35);color:#ead8aa}
.gp-center-card{min-height:100svh;display:grid;place-items:center;text-align:center;padding:30px;background:linear-gradient(rgba(5,10,14,.72),rgba(5,10,14,.85)),url("https://images.unsplash.com/photo-1772041045313-0500d3706819?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000") center/cover no-repeat;color:#fff}
.gp-center-card>div,.gp-center-card>section{max-width:520px}
.gp-btn{display:inline-flex;margin-top:15px;background:#315c50;color:#f5e7cb!important;border:1px solid rgba(218,193,151,.38);border-radius:10px;padding:12px 22px;font-weight:700}

/* =============== STUDENT =============== */
.gp-app{min-height:100svh;background:#07131b;color:#eff2ef}
.gp-app-header{position:sticky;top:0;z-index:30;background:rgba(5,14,20,.91);border-bottom:1px solid rgba(231,213,181,.18);backdrop-filter:blur(13px)}
.gp-shell{width:min(1120px,calc(100% - 32px));margin:auto}
.gp-app-header .gp-shell{min-height:72px;display:flex;align-items:center;justify-content:space-between}
.gp-mini-brand{display:flex;align-items:center;gap:15px;color:#fff}
.gp-mini-brand img{width:68px;height:auto}
.gp-mini-brand b{display:block;font-family:Georgia,serif;font-size:20px;letter-spacing:.17em;font-weight:500}
.gp-mini-brand small{display:block;color:var(--sand);font-size:7px;letter-spacing:.21em;margin-top:3px}
.gp-app-header a{color:#e6ded0!important;font-size:9px;letter-spacing:.16em;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:9px 13px}
.gp-hero{
 min-height:570px;position:relative;overflow:hidden;padding:58px 0 158px;
 background:
 linear-gradient(90deg,rgba(5,12,17,.86) 0%,rgba(5,12,17,.52) 47%,rgba(5,12,17,.25) 100%),
 linear-gradient(180deg,rgba(6,14,19,.18),rgba(6,14,19,.24) 54%,#07131b 100%),
 url("https://images.unsplash.com/photo-1695714429003-c0c949477fd6?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000") center 43%/cover no-repeat;
}
.gp-hero:after{content:"";position:absolute;inset:auto 0 0;height:190px;background:linear-gradient(transparent,#07131b)}
.gp-hero .gp-shell{position:relative;z-index:2}
.gp-hero-kicker{font-size:9px;letter-spacing:.26em;color:var(--sand);font-weight:700}
.gp-hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:clamp(34px,5.2vw,57px);line-height:1.45;letter-spacing:.07em;font-weight:500;margin:18px 0 10px;text-shadow:0 4px 18px rgba(0,0,0,.4)}
.gp-hero>.gp-shell>p{margin:0;color:#d9ddda;font-size:13px;letter-spacing:.05em}
.gp-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:30px;max-width:820px}
.gp-glass,.gp-panel{
 background:linear-gradient(145deg,rgba(7,14,18,.79),rgba(9,18,23,.9));
 border:1px solid rgba(226,212,187,.26);box-shadow:0 18px 42px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035);
 backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);
}
.gp-glass{border-radius:18px;padding:22px 24px}
.gp-glass>small,.gp-section-head small,.gp-message small{font-size:9px;letter-spacing:.19em;color:var(--gold);font-weight:700}
.gp-glass h2{margin:7px 0;color:#f3eee4;font-size:15px;font-weight:600}
.gp-count{display:flex;align-items:flex-end;gap:10px}
.gp-count b{font-family:Georgia,serif;font-size:70px;line-height:1;font-weight:500}
.gp-count span{margin-bottom:9px;font-size:15px}
.gp-muted-light{font-size:10px;color:#bbc3bf}
.gp-glass p{margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.15);font-size:10px;line-height:1.8;color:#cfd5d2}
.gp-position{display:flex;align-items:flex-end;justify-content:space-between}
.gp-position b{font-family:Georgia,serif;font-size:38px;color:var(--gold);font-weight:500}
.gp-progress{height:9px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(0,0,0,.22);overflow:hidden;margin:19px 0 9px}
.gp-progress i{display:block;height:100%;background:linear-gradient(90deg,#416f66,#87a99a)}
.gp-ridge{display:none}
.gp-student-main{position:relative;z-index:5;margin-top:-72px;padding-bottom:80px}
.gp-student-grid{display:grid;grid-template-columns:1.28fr .72fr;gap:18px}
.gp-panel{border-radius:17px;padding:20px}
.gp-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.gp-section-head h2{font-size:21px;font-weight:600;color:#f2eee5;margin:5px 0 0}
.gp-section-head>span{font-size:10px;color:#9da7a3}
.gp-task-list{display:grid;gap:9px}
.gp-task{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;margin:0;padding:11px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.035);transition:.2s}
.gp-task:hover{background:rgba(255,255,255,.055)}
.gp-task.is-done{opacity:.54}
.gp-subject{width:46px;height:42px;border-radius:8px;display:grid;place-items:center;background:rgba(65,111,102,.28);color:#b9dacd;font-weight:700}
.gp-task b{display:block;color:#f4f2ec;font-size:12px;font-weight:600}
.gp-task small{display:block;color:#9fa9a5;font-size:9px;line-height:1.65;margin-top:2px}
.gp-task a{display:inline-block;color:#d7bd8d;font-size:9px;font-weight:700;margin-top:4px}
.gp-task button{min-width:92px;border:1px solid rgba(204,184,149,.35);border-radius:8px;background:rgba(8,15,19,.35);color:#ddc594;padding:8px 11px;font-size:9px;letter-spacing:.09em;font-weight:700;cursor:pointer}
.gp-task.is-done button{border-color:rgba(111,166,144,.5);background:rgba(39,86,70,.5);color:#a9d3c2}
.gp-empty{border:1px dashed rgba(255,255,255,.15);border-radius:11px;padding:18px;color:#9ba6a2;font-size:11px;background:rgba(255,255,255,.025)}
.gp-week{margin-top:18px}
.gp-week-list{position:relative}
.gp-week-list:before{content:"";position:absolute;left:22px;top:22px;bottom:22px;width:1px;background:rgba(221,199,160,.28)}
.gp-day{display:grid;grid-template-columns:46px 1fr;gap:12px;position:relative;margin-bottom:9px}
.gp-daymark{position:relative;z-index:2;width:46px;height:46px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.24);background:#0d1920;color:#bbc4c0}
.gp-daymark b{font-size:7px;letter-spacing:.05em} .gp-daymark small{font-size:8px;margin-top:1px}
.gp-day.today .gp-daymark{border-color:var(--gold);color:#e3c58d;box-shadow:0 0 0 3px rgba(214,180,124,.08)}
.gp-daybody{min-height:46px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.035);border-radius:11px;padding:9px 12px}
.gp-daybody>span,.gp-daybody small{font-size:8px;color:#98a39f}
.gp-daybody b{display:block;font-size:10px;color:#eceae4}
.gp-daybody div+div{border-top:1px dashed rgba(255,255,255,.1);margin-top:6px;padding-top:6px}
.gp-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.gp-stat-grid .gp-panel{text-align:center;padding:15px}
.gp-stat-grid small{display:block;color:#9aa5a1;font-size:8px}
.gp-stat-grid b{font-family:Georgia,serif;font-size:31px;color:#f0ebdf;font-weight:500}
.gp-stat-grid span{font-size:8px;color:#bba780;margin-left:2px}
.gp-message{display:grid;grid-template-columns:48px 1fr;gap:12px;margin-top:16px}
.gp-message-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:rgba(214,180,124,.12);font-size:20px}
.gp-message p{font-size:10px;line-height:1.9;color:#bcc5c1;margin:6px 0}

/* =============== TEACHER =============== */
.gp-teacher{min-height:100svh;display:grid;grid-template-columns:235px 1fr;background:
linear-gradient(rgba(5,12,17,.89),rgba(5,12,17,.96)),
url("https://images.unsplash.com/photo-1772041045313-0500d3706819?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000") center/cover fixed;color:#edf0ed}
.gp-teacher-side{position:sticky;top:0;height:100svh;padding:26px 19px;display:flex;flex-direction:column;background:rgba(6,15,21,.91);border-right:1px solid rgba(226,210,182,.18);backdrop-filter:blur(14px)}
.gp-teacher-brand{display:flex;align-items:center;gap:11px;padding:0 4px 24px;border-bottom:1px solid rgba(255,255,255,.1)}
.gp-teacher-brand img{width:64px;height:auto}
.gp-teacher-brand b{display:block;font-family:Georgia,serif;font-size:16px;letter-spacing:.16em;font-weight:500}
.gp-teacher-brand small{display:block;font-size:7px;color:var(--sand);letter-spacing:.18em;margin-top:3px}
.gp-teacher-side nav{display:grid;gap:5px;margin-top:23px}
.gp-teacher-side nav a{color:#cad1ce!important;padding:12px;border-radius:9px;font-size:12px;font-weight:600}
.gp-teacher-side nav a:hover{background:rgba(255,255,255,.06);color:#fff!important}
.gp-side-logout{margin-top:auto;color:#9da9a5!important;font-size:10px;letter-spacing:.12em;padding:11px}
.gp-teacher-main{min-width:0;padding:32px 38px 70px}
.gp-teacher-top{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}
.gp-teacher-top small{font-size:8px;letter-spacing:.2em;color:#a5afab}
.gp-teacher-top h1{font-family:Georgia,"Yu Mincho",serif;font-weight:500;letter-spacing:.08em;font-size:31px;margin:7px 0 0}
.gp-teacher-user{border:1px solid rgba(255,255,255,.17);border-radius:999px;padding:9px 13px;font-size:10px;color:#d9dfdc;background:rgba(255,255,255,.04)}
.gp-admin-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.gp-admin-stat,.gp-admin-card{background:rgba(8,17,22,.84);border:1px solid rgba(226,210,182,.19);box-shadow:0 18px 40px rgba(0,0,0,.24);backdrop-filter:blur(13px)}
.gp-admin-stat{border-radius:14px;padding:19px}
.gp-admin-stat small{display:block;color:#99a5a1;font-size:9px}
.gp-admin-stat b{display:block;font-family:Georgia,serif;font-size:34px;font-weight:500;color:#f1ede4;margin-top:6px}
.gp-admin-stat span{font-size:8px;color:#bca985}
.gp-admin-section{margin-top:35px;scroll-margin-top:18px}
.gp-admin-section-head{margin-bottom:14px}
.gp-admin-section-head small{font-size:8px;color:var(--gold);letter-spacing:.18em;font-weight:700}
.gp-admin-section-head h2{font-size:23px;font-weight:600;color:#f1eee7;margin:5px 0}
.gp-admin-section-head p{font-size:11px;color:#a7b0ac;margin:3px 0}
.gp-admin-2col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.gp-admin-card{border-radius:15px;padding:21px}
.gp-admin-card h3{font-size:16px;font-weight:600;color:#eeeae2;margin:0 0 17px}
.gp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gp-admin-card label{display:block;margin-bottom:12px}
.gp-admin-card label>span{display:block;margin-bottom:7px;color:#b7c0bc;font-size:10px;font-weight:600}
.gp-admin-card input,.gp-admin-card select,.gp-admin-card textarea{width:100%;border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:11px 12px;background:rgba(255,255,255,.05);color:#f0f2ef;outline:none}
.gp-admin-card select option{background:#0b1820;color:#fff}
.gp-admin-card input:focus,.gp-admin-card select:focus,.gp-admin-card textarea:focus{border-color:#b99d70;box-shadow:0 0 0 3px rgba(185,157,112,.1)}
.gp-admin-card input[type=file]{padding:8px}
.gp-admin-card label>small{display:block;color:#84918c;font-size:8px;margin-top:5px}
.gp-check{display:flex!important;align-items:center;gap:8px;color:#aab4b0!important;font-size:10px}
.gp-check input{width:auto}
.gp-check.bottom{align-self:end;margin-bottom:14px!important}
.gp-form-actions{display:flex;gap:9px;align-items:center;margin-top:8px}
.gp-primary{border:1px solid rgba(214,180,124,.38);border-radius:8px;background:linear-gradient(135deg,#1b443d,#315b50);color:#f2e3c4!important;padding:11px 17px;font-weight:700;cursor:pointer}
.gp-secondary{border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#cbd3cf!important;padding:10px 15px;font-size:11px}
.gp-table-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.gp-table-head h3{margin:0} .gp-table-head span{font-size:9px;color:#95a19d}
.gp-student-list,.gp-task-admin-list{display:grid;gap:8px;max-height:590px;overflow:auto}
.gp-student-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.025)}
.gp-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(84,124,111,.25);color:#b8d8ca;font-weight:700}
.gp-student-row b{display:block;font-size:11px;color:#f0eee8} .gp-student-row small{display:block;font-size:8px;color:#929e99}
.gp-student-row code{display:inline-block;margin-top:3px;border-radius:4px;padding:2px 5px;background:rgba(255,255,255,.06);color:#c9d2ce;font-size:8px}
.gp-student-row>a{font-size:9px;color:#d3b77f!important;font-weight:700}
.gp-task-admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.025)}
.gp-task-admin-row>div:first-child>span{display:inline-block;margin-bottom:4px;border-radius:999px;padding:3px 7px;background:rgba(84,124,111,.25);color:#b8d8ca;font-size:8px}
.gp-task-admin-row b{display:block;font-size:10px;color:#eeeae2} .gp-task-admin-row small{font-size:8px;color:#929d99}
.gp-row-actions{display:flex;align-items:center;gap:8px} .gp-row-actions a,.gp-row-actions button{border:0;background:none;padding:0;color:#d0b47d!important;font-size:9px;font-weight:700;cursor:pointer} .gp-row-actions button{color:#d17e76!important}
.gp-progress-list{display:grid;gap:7px} .gp-progress-list>div{display:grid;grid-template-columns:28px 130px 1fr auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08)} .gp-progress-list>div>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(72,132,104,.2);color:#a9d0be;font-weight:700}
.gp-progress-list b{font-size:10px} .gp-progress-list p{margin:0;color:#b4bdb9;font-size:10px} .gp-progress-list time{font-size:8px;color:#828f89}
.gp-settings{max-width:620px} .gp-settings p{font-size:10px;line-height:1.7;color:#929e99}

@media(max-width:1000px){
 .gp-student-grid{grid-template-columns:1fr}
 .gp-teacher{grid-template-columns:1fr}
 .gp-teacher-side{position:relative;height:auto;padding:17px 18px}
 .gp-teacher-side nav{display:flex;overflow:auto;margin-top:13px}
 .gp-teacher-side nav a{white-space:nowrap}
 .gp-side-logout{position:absolute;right:18px;top:21px}
 .gp-teacher-main{padding:24px 18px 60px}
 .gp-admin-stat-grid{grid-template-columns:1fr 1fr}
 .gp-admin-2col{grid-template-columns:1fr}
}
@media(max-width:700px){
 .gp-login-page{padding:24px 14px;background-attachment:scroll}
 .gp-login-card{padding:34px 22px 30px;border-radius:19px}
 .gp-login-brand img{width:105px}
 .gp-login-brand b{font-size:24px}
 .gp-login-card h1{font-size:28px}
 .gp-login-form input,.gp-login-form button{height:56px}
 .gp-app-header .gp-shell{min-height:64px}
 .gp-mini-brand img{width:56px}
 .gp-hero{min-height:600px;padding:44px 0 140px;background-position:63% center}
 .gp-hero-grid{grid-template-columns:1fr;max-width:none}
 .gp-student-main{margin-top:-60px}
 .gp-shell{width:min(100% - 20px,1120px)}
 .gp-task{grid-template-columns:42px 1fr auto;gap:9px;padding:10px}
 .gp-subject{width:42px;height:40px}
 .gp-task button{min-width:78px;padding:7px 8px;font-size:7px}
 .gp-form-grid{grid-template-columns:1fr}
 .gp-admin-stat-grid{grid-template-columns:1fr 1fr}
 .gp-teacher-top{align-items:flex-start}
 .gp-admin-card{padding:17px}
 .gp-progress-list>div{grid-template-columns:28px 1fr auto}
 .gp-progress-list p{grid-column:2/4}
}


/* ===== SPIRE EXACT LOGO FIX v1.4 ===== */
.gp-login-brand img,
.gp-mini-brand img,
.gp-teacher-brand img{
  display:block!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  box-sizing:border-box!important;
  background:rgba(250,247,238,.96)!important;
  border:1px solid rgba(232,219,193,.72)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.65)!important;
  filter:none!important;
}

.gp-login-brand img{
  width:154px!important;
  max-width:46vw!important;
  padding:10px 13px!important;
  border-radius:9px!important;
  margin:0 auto 2px!important;
}

.gp-mini-brand img{
  width:92px!important;
  padding:6px 8px!important;
  border-radius:7px!important;
  flex:0 0 auto!important;
}

.gp-teacher-brand img{
  width:86px!important;
  padding:6px 8px!important;
  border-radius:7px!important;
  flex:0 0 auto!important;
}

/* Keep full original SPIRE logo proportions; never crop the mountain. */
.gp-login-brand,
.gp-mini-brand,
.gp-teacher-brand{
  overflow:visible!important;
}

@media(max-width:700px){
  .gp-login-brand img{width:136px!important;max-width:52vw!important}
  .gp-mini-brand img{width:78px!important}
  .gp-teacher-brand img{width:76px!important}
}


/* ===== SPIRE OFFICIAL LOGO v1.5 =====
   Approved logo is intentionally rendered on its original white field.
   No transparency conversion is applied. */
.gp-login-brand img,
.gp-mini-brand img,
.gp-teacher-brand img{
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  height:auto!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid rgba(231,220,198,.32)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.20)!important;
  filter:none!important;
  border-radius:4px!important;
}
.gp-login-brand img{
  width:176px!important;
  max-width:54vw!important;
  margin:0 auto 3px!important;
}
.gp-mini-brand img{
  width:82px!important;
  max-height:none!important;
  flex:0 0 auto!important;
}
.gp-teacher-brand img{
  width:80px!important;
  max-height:none!important;
  flex:0 0 auto!important;
}
@media(max-width:700px){
  .gp-login-brand img{width:156px!important}
  .gp-mini-brand img{width:70px!important}
  .gp-teacher-brand img{width:68px!important}
}


/* ===== CURRICULUM / UNIT TEST v1.6 ===== */
.gp-current-unit{margin-bottom:15px}.gp-current-unit>small,.gp-test-cta small{font-size:8px;letter-spacing:.18em;color:var(--gold);font-weight:700}.gp-current-unit h3,.gp-test-cta h3{margin:6px 0;color:#f2eee5;font-size:17px;line-height:1.5}.gp-current-unit p,.gp-test-cta p{margin:5px 0;color:#99a5a1;font-size:9px;line-height:1.7}.gp-flow-mini{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:13px}.gp-flow-mini span{border:1px solid rgba(214,180,124,.24);border-radius:999px;padding:5px 7px;font-size:7px;color:#d9c49c}.gp-flow-mini i{font-style:normal;color:#65736e}.gp-test-cta{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-bottom:18px;color:inherit!important}.gp-test-cta strong{font-family:Georgia,serif;color:var(--gold);font-size:38px;font-weight:500}.gp-test-cta strong em{font:normal 8px sans-serif;margin-left:3px;color:#9ca7a3}.gp-test-arrow{position:absolute;right:12px;bottom:10px;color:#d2b77e;font-size:13px}.gp-growth-head{margin-top:4px}
.gp-test-page,.gp-exam-page{min-height:100svh;background:linear-gradient(rgba(5,12,17,.88),rgba(5,12,17,.96)),url("https://images.unsplash.com/photo-1695714429003-c0c949477fd6?auto=format&fit=crop&fm=jpg&q=70&w=2400") center/cover fixed;color:#eef1ee}.gp-test-top{position:sticky;top:0;z-index:30;background:rgba(5,14,20,.92);border-bottom:1px solid rgba(226,210,182,.18);backdrop-filter:blur(13px)}.gp-test-top .gp-shell{min-height:72px;display:flex;align-items:center;justify-content:space-between}.gp-test-brand{display:flex;align-items:center;gap:12px;color:#fff!important}.gp-test-brand img{width:72px;height:auto;background:#fff;object-fit:contain}.gp-test-brand b{display:block;font-family:Georgia,serif;letter-spacing:.17em;font-weight:500}.gp-test-brand small{display:block;margin-top:2px;color:var(--sand);font-size:7px;letter-spacing:.2em}.gp-test-home{color:#c8d0cc!important;border:1px solid rgba(255,255,255,.17);padding:8px 12px;border-radius:999px;font-size:9px}.gp-test-hero{padding:58px 0 74px;background:linear-gradient(90deg,rgba(4,12,17,.92),rgba(4,12,17,.38)),url("https://images.unsplash.com/photo-1695714429003-c0c949477fd6?auto=format&fit=crop&fm=jpg&q=70&w=2400") center 38%/cover}.gp-test-hero small,.gp-exam-meta>span{color:var(--gold);font-size:9px;letter-spacing:.2em;font-weight:700}.gp-test-hero h1{font-family:"Yu Mincho",Georgia,serif;font-size:45px;font-weight:500;letter-spacing:.08em;margin:9px 0}.gp-test-hero p{max-width:680px;color:#ced5d1;font-size:12px;line-height:1.9}.gp-test-main{padding:30px 0 70px}.gp-test-section-head{display:flex;align-items:end;justify-content:space-between;margin:12px 0}.gp-test-section-head small{font-size:8px;color:var(--gold);letter-spacing:.18em}.gp-test-section-head h2{font-size:22px;margin:4px 0}.gp-test-section-head>span{font-size:10px;color:#9da8a4}.gp-test-list{display:grid;gap:10px}.gp-test-row{display:grid;grid-template-columns:1.6fr .55fr .55fr .7fr;align-items:center;gap:15px;padding:16px 18px;border:1px solid rgba(226,210,182,.19);border-radius:14px;background:rgba(8,17,22,.86);box-shadow:0 15px 35px rgba(0,0,0,.2);backdrop-filter:blur(12px)}.gp-test-unit>span{font-size:7px;letter-spacing:.14em;color:#adbaae}.gp-test-unit h3{margin:4px 0;font-size:14px}.gp-test-unit p{margin:0;color:#8f9b96;font-size:8px}.gp-test-state span{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:700}.gp-test-row.ready .gp-test-state span{background:rgba(86,126,112,.22);color:#b9d4c8}.gp-test-row.retry .gp-test-state span{background:rgba(193,143,67,.18);color:#e3c489}.gp-test-row.overdue .gp-test-state span{background:rgba(170,61,52,.24);color:#f0a69d}.gp-test-state small{display:block;margin-top:5px;color:#83908a;font-size:7px}.gp-test-deadline small{display:block;color:#84918c;font-size:7px}.gp-test-deadline b{display:block;margin-top:3px;color:#e8e2d8;font-size:13px}.gp-test-action a{display:inline-flex;justify-content:center;width:100%;padding:10px;border:1px solid rgba(214,180,124,.36);border-radius:8px;background:linear-gradient(135deg,#1b443d,#315b50);color:#f2e3c4!important;font-size:9px;font-weight:700}.gp-test-action>span{font-size:8px;color:#ad9b7d}.gp-test-empty{padding:24px;border:1px dashed rgba(255,255,255,.15);border-radius:12px;color:#98a49e}.gp-test-history{margin-top:24px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(8,17,22,.6);padding:14px}.gp-test-history summary{cursor:pointer;color:#c8d1cd;font-size:10px}.gp-test-history p{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.08);padding:10px 2px;margin:8px 0 0;font-size:9px}.gp-test-history p span{color:#99aa9f}.gp-test-result{margin:0 0 28px;border:1px solid rgba(226,210,182,.26);border-radius:17px;padding:26px;text-align:center;background:rgba(8,17,22,.88)}.gp-test-result>small{letter-spacing:.2em;font-size:9px;font-weight:700}.gp-test-result.pass>small,.gp-test-result.pass .gp-result-score{color:#9bc9b5}.gp-test-result.retry>small,.gp-test-result.retry .gp-result-score{color:#dfb774}.gp-test-result h2{margin:8px 0 2px}.gp-result-score b{font:500 72px/1 Georgia,serif}.gp-result-score span{font-size:14px}.gp-test-result p{font-size:10px;color:#a9b3af}
.gp-exam-shell{width:min(860px,calc(100% - 24px));margin:auto;padding:42px 0 70px}.gp-exam-meta{text-align:center;margin-bottom:24px}.gp-exam-meta h1{font-family:"Yu Mincho",Georgia,serif;font-size:32px;font-weight:500;letter-spacing:.05em;margin:8px 0}.gp-exam-meta p{font-size:9px;color:#a9b3af}.gp-exam-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;margin-bottom:14px;padding:11px 14px;border-radius:12px;background:rgba(8,17,22,.86);border:1px solid rgba(255,255,255,.12)}.gp-exam-progress b{font:500 25px Georgia,serif;color:#e3c58e}.gp-exam-progress span{font-size:9px;color:#89958f}.gp-exam-progress>small{font-size:7px;letter-spacing:.11em;color:#9da8a3}.gp-exam-bar{height:6px;background:rgba(255,255,255,.09);border-radius:999px;overflow:hidden}.gp-exam-bar i{display:block;height:100%;width:5%;background:linear-gradient(90deg,#416f66,#d6b47c);transition:.25s}.gp-question-stage{min-height:500px}.gp-question{display:none;min-height:500px;border:1px solid rgba(226,210,182,.22);border-radius:18px;padding:32px;background:linear-gradient(145deg,rgba(7,14,18,.9),rgba(9,18,23,.96));box-shadow:0 20px 48px rgba(0,0,0,.26)}.gp-question.active{display:block}.gp-q-top{display:flex;align-items:center;justify-content:space-between}.gp-q-top>span{font-size:8px;letter-spacing:.18em;color:#aab5b0}.gp-q-top em{font-style:normal;border-radius:999px;padding:4px 8px;font-size:7px}.gp-q-top em.basic{color:#a9d0be;background:rgba(72,132,104,.17)}.gp-q-top em.standard{color:#e1c28b;background:rgba(180,130,60,.15)}.gp-q-top em.advanced{color:#e5aaa3;background:rgba(153,65,58,.18)}.gp-question h2{margin:28px 0;font-size:20px;line-height:1.9;font-weight:500;white-space:normal}.gp-word-chips{display:flex;gap:7px;flex-wrap:wrap;margin:-8px 0 26px}.gp-word-chips span{border:1px solid rgba(214,180,124,.3);background:rgba(214,180,124,.07);padding:7px 9px;border-radius:7px;color:#dfceb0;font-size:11px}.gp-choice-list{display:grid;gap:10px}.gp-choice-list label input{position:absolute;opacity:0}.gp-choice-list label>span{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.025);cursor:pointer;font-size:12px}.gp-choice-list label>span i{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);font-style:normal;color:#c8b184}.gp-choice-list input:checked+span{border-color:#b99a68;background:rgba(185,154,104,.1);box-shadow:0 0 0 2px rgba(185,154,104,.08)}.gp-text-answer{margin-top:35px}.gp-text-answer label{display:block;color:#d3b67e;font-size:8px;letter-spacing:.18em;margin-bottom:8px}.gp-text-answer input{width:100%;height:58px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(255,255,255,.035);color:#fff;padding:0 16px;font-size:16px;outline:none}.gp-text-answer input:focus{border-color:#b99a68;box-shadow:0 0 0 3px rgba(185,154,104,.1)}.gp-exam-nav{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.gp-exam-nav button{min-height:48px;border-radius:9px;padding:0 18px;border:1px solid rgba(255,255,255,.18);background:rgba(8,17,22,.84);color:#cbd3cf;font-weight:700;cursor:pointer}.gp-exam-nav button:disabled{opacity:.3}.gp-exam-nav #gpNext,.gp-exam-nav #gpSubmit{margin-left:auto;border-color:rgba(214,180,124,.35);background:linear-gradient(135deg,#1b443d,#315b50);color:#f2e3c4}.gp-test-lock{text-align:center;padding:35px;border:1px solid rgba(226,210,182,.22);border-radius:15px;background:rgba(8,17,22,.86)}.gp-test-lock p{color:#a5b0ab;font-size:11px}.gp-test-lock a{display:inline-flex;margin-top:10px;padding:10px 18px;border-radius:8px;background:#315b50;color:#f2e3c4!important;font-size:10px}
@media(max-width:760px){.gp-test-row{grid-template-columns:1fr 1fr;gap:11px}.gp-test-unit{grid-column:1/3}.gp-test-action{grid-column:1/3}.gp-test-hero{padding:42px 0 54px}.gp-test-hero h1{font-size:36px}.gp-question{padding:22px 17px;min-height:520px}.gp-question h2{font-size:17px}.gp-exam-progress{grid-template-columns:auto 1fr}.gp-exam-progress>small{grid-column:1/3}.gp-test-brand img{width:58px}.gp-exam-nav button{font-size:10px;padding:0 12px}}


/* ===== UNIT TEST MANAGEMENT v1.7 ===== */
.gp-test-admin-select{margin-bottom:16px}
.gp-test-admin-select form{max-width:520px}
.gp-test-admin-select label{display:grid;gap:7px}
.gp-test-admin-select label span{font-size:11px;color:#60706b;font-weight:700}
.gp-test-admin-select select{width:100%;min-height:44px;border:1px solid #d9dfdc;border-radius:9px;background:#fff;padding:0 12px}
.gp-test-admin-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}
.gp-test-admin-head small,.gp-test-admin-unit>span{font-size:9px;letter-spacing:.14em;color:#8d744d;font-weight:800}
.gp-test-admin-head h3{margin:5px 0 2px;font-size:22px}.gp-test-admin-head code{font-size:11px}
.gp-test-admin-meta{text-align:right}.gp-test-admin-meta span{display:block;font-size:9px;color:#7a8782}.gp-test-admin-meta b{font-size:12px}
.gp-test-admin-list{display:grid;gap:10px}
.gp-test-admin-row{display:grid;grid-template-columns:minmax(240px,1.7fr) minmax(105px,.65fr) minmax(115px,.7fr) minmax(240px,1.15fr);gap:12px;align-items:center;background:#fff;border:1px solid #e3e8e5;border-radius:13px;padding:14px 15px;box-shadow:0 6px 18px rgba(19,39,34,.04)}
.gp-test-admin-unit h3{font-size:14px;margin:3px 0}.gp-test-admin-unit p{font-size:10px;color:#74817c;margin:0}
.gp-test-admin-gate{display:grid;gap:3px}.gp-test-admin-gate small{font-size:9px;color:#89948f}.gp-test-admin-gate b{font-size:11px}.gp-test-admin-gate b.ok{color:#27745d}.gp-test-admin-gate b.wait{color:#aa6b54}.gp-test-admin-gate em{font-style:normal;font-size:9px;color:#75827d}
.gp-test-admin-controls form{display:flex;gap:5px}.gp-test-admin-controls button{border:1px solid #d7dfdb;background:#f6f8f7;color:#55625d;border-radius:7px;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer}.gp-test-admin-controls button.active{background:#173e36;color:#fff;border-color:#173e36}.gp-test-admin-controls small{display:block;margin-top:5px;font-size:8px;color:#89948f}
@media(max-width:920px){.gp-test-admin-row{grid-template-columns:1fr 1fr}.gp-test-admin-controls{grid-column:1/-1}}
@media(max-width:600px){.gp-test-admin-head{align-items:flex-start;flex-direction:column}.gp-test-admin-meta{text-align:left}.gp-test-admin-row{grid-template-columns:1fr}.gp-test-admin-controls{grid-column:auto}.gp-test-admin-controls form{flex-wrap:wrap}}


/* ===== v1.8 SUBJECT-BY-SUBJECT LEVEL SETTINGS ===== */
.gp-subject-settings{
  grid-column:1/-1;
  margin:18px 0;
  padding:18px;
  border:1px solid rgba(216,183,126,.22);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}
.gp-subject-settings-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:6px}
.gp-subject-settings-head small{display:block;font-size:9px;letter-spacing:.18em;color:#d8b77e}
.gp-subject-settings-head h4{margin:3px 0 0;font-size:18px}
.gp-subject-settings-head>span{font-size:10px;padding:6px 9px;border-radius:999px;border:1px solid rgba(216,183,126,.28);color:#e1c58f;background:rgba(216,183,126,.06)}
.gp-subject-settings-note{margin:0 0 14px;color:#9da9a5;font-size:11px;line-height:1.7}
.gp-subject-settings-table{display:grid;gap:7px}
.gp-subject-settings-th,.gp-subject-setting-row{display:grid;grid-template-columns:.55fr 1fr 1.6fr .65fr;align-items:center;gap:10px}
.gp-subject-settings-th{padding:0 11px 4px;color:#778783;font-size:9px;letter-spacing:.1em}
.gp-subject-setting-row{padding:10px 11px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(5,12,17,.34)}
.gp-subject-setting-row>b{font-size:13px}
.gp-subject-setting-row select{width:100%;min-width:0}
.gp-auto-material{font-size:11px;color:#d9e0dc;line-height:1.45}
.gp-auto-material.is-warning{color:#f0b28e}
.gp-phase-chip{justify-self:start;font-size:9px;padding:5px 8px;border-radius:999px;background:rgba(82,124,112,.16);border:1px solid rgba(82,124,112,.35);color:#a8cec1}
.gp-phase-rule{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:12px;padding:11px 12px;border-left:2px solid #527c70;background:rgba(82,124,112,.07);font-size:10px;line-height:1.6}
.gp-phase-rule b{color:#b9d1c9}.gp-phase-rule span{color:#9eaaa6}
.gp-student-subject-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.gp-student-subject-chips span{font-size:8px;padding:3px 6px;border-radius:999px;border:1px solid rgba(216,183,126,.22);color:#d9c59c;background:rgba(216,183,126,.05)}
.gp-review-flow span{font-size:8px}
.gp-preview-pending{display:block;margin-top:8px;color:#74837e!important;font-size:8px!important;letter-spacing:.12em}
@media(max-width:760px){
  .gp-subject-settings-head{align-items:flex-start;flex-direction:column}
  .gp-subject-settings-th{display:none}
  .gp-subject-setting-row{grid-template-columns:72px 1fr;gap:8px 10px}
  .gp-subject-setting-row>b{grid-row:1/3}
  .gp-auto-material{grid-column:2/3}
  .gp-phase-chip{display:none}
  .gp-phase-rule{grid-template-columns:1fr}
}


/* ===== v1.9 EIKEN TEST ROUTER ===== */
.gp-eiken-routing{margin:14px 0;padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.025)}
.gp-eiken-routing.is-eiken{border-color:rgba(216,183,126,.34);background:linear-gradient(145deg,rgba(216,183,126,.055),rgba(255,255,255,.02))}
.gp-eiken-routing-head small{font-size:8px;letter-spacing:.18em;color:#d8b77e}
.gp-eiken-routing-head h4{margin:4px 0 4px;font-size:16px}
.gp-eiken-routing-head p{margin:0 0 13px;font-size:10px;color:#97a39f;line-height:1.7}
.gp-eiken-router-note{margin-top:10px;padding:9px 11px;border-left:2px solid #527c70;background:rgba(82,124,112,.07);font-size:10px;color:#9eb0aa}


/* ===== v2.0 EIKEN VOCAB DB ===== */
.gp-range-inputs{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center}.gp-range-inputs em{font-style:normal;color:#7f8d88}.gp-import-guide{display:grid;gap:5px;margin:12px 0;padding:11px;border-left:2px solid #d8b77e;background:rgba(216,183,126,.06);font-size:10px}.gp-import-guide b{color:#e0c58f}.gp-import-guide span,.gp-import-guide small{color:#9ca9a4;line-height:1.55}.gp-vocab-set-list{display:grid;gap:7px}.gp-vocab-set-list a{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid rgba(255,255,255,.09);border-radius:9px;color:inherit;text-decoration:none}.gp-vocab-set-list a.is-active{border-color:rgba(216,183,126,.38);background:rgba(216,183,126,.06)}.gp-vocab-set-list span{font-size:9px;color:#93a19c}.gp-vocab-edit-grid{margin-top:14px}.gp-vocab-table-card{overflow:hidden}.gp-vocab-table{overflow:auto;max-height:620px}.gp-vocab-tr{display:grid;grid-template-columns:48px 110px 130px minmax(260px,1fr) 92px;gap:9px;align-items:center;padding:9px 4px;border-bottom:1px solid rgba(255,255,255,.07);font-size:10px}.gp-vocab-tr.head{position:sticky;top:0;background:#101a1f;z-index:2;color:#778782;font-size:8px;letter-spacing:.09em}.gp-vocab-tr small{color:#a7b1ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gp-vocab-tr .gp-row-actions{display:flex;gap:7px}.gp-vocab-tr .danger{color:#e4988d}.gp-eiken-test-list{margin-bottom:30px}.gp-vocab-question h2{font-size:clamp(19px,3vw,27px);line-height:1.65}.gp-vocab-question .gp-choice-list label span{font-size:17px}
@media(max-width:760px){.gp-vocab-tr{grid-template-columns:38px 88px 100px minmax(190px,1fr) 80px}.gp-vocab-edit-grid{grid-template-columns:1fr}.gp-vocab-table-card{min-width:0}}


/* ===== v2.1 EIKEN DISTRIBUTION ===== */
.gp-vocab-quick-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 4px;padding:18px 20px;border:1px solid rgba(216,183,126,.38);border-radius:14px;background:linear-gradient(135deg,rgba(216,183,126,.10),rgba(82,124,112,.08));text-decoration:none;color:inherit}
.gp-vocab-quick-card div{display:grid;gap:3px}.gp-vocab-quick-card small{font-size:8px;letter-spacing:.18em;color:#d8b77e}.gp-vocab-quick-card b{font-size:16px;color:#f3eee3}.gp-vocab-quick-card span{font-size:10px;color:#9ca9a4}.gp-vocab-quick-card strong{font-size:10px;color:#e6ca94;white-space:nowrap}
.gp-student-multi-label select[multiple]{min-height:150px;padding:8px}.gp-student-multi-label>small{display:block;margin-top:5px;color:#81908a;font-size:9px}.gp-all-students{margin-top:8px!important}
.gp-eiken-assignment-summary{display:grid;gap:3px;padding:11px 12px;border:1px solid rgba(82,124,112,.30);border-radius:9px;background:rgba(82,124,112,.08)}.gp-eiken-assignment-summary small{font-size:8px;letter-spacing:.15em;color:#93beaf}.gp-eiken-assignment-summary b{font-size:11px}.gp-eiken-assignment-summary span{font-size:9px;color:#84928d}
#gp-task-subject{font-weight:700;border-color:rgba(216,183,126,.36)}
#vocab-db{scroll-margin-top:18px}
