@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{--ink:#32251f;--deep:#2b1c17;--coffee:#4a2f24;--gold:#b18138;--goldlight:#e4c48d;--cream:#fcf8f0;--paper:#fffdf9;--parchment:#f2e7d4;--tan:#e7d8bd;--muted:#7a6a5c;--green:#597554;--red:#ad5a4f;--border:#e5d7c2;--shadow:0 14px 40px rgba(51,32,18,.08);--round:19px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--cream);font-size:14px;line-height:1.6}button,input,textarea{font:inherit}button{cursor:pointer}a{color:var(--coffee)}a:hover{color:var(--gold)}h1,h2,h3,h4{font-family:'Cormorant Garamond',Georgia,serif;line-height:1.12;margin:0;color:var(--deep)}h1{font-size:clamp(38px,5vw,72px);font-weight:700}h2{font-size:36px}h3{font-size:26px}h4{font-size:21px}p{margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.caps{font-size:11px;letter-spacing:2px;font-weight:800;text-transform:uppercase}.gold{color:var(--gold)}.display{font-family:'Cormorant Garamond',serif}.strong{font-weight:800}.hidden{display:none!important}.startup{height:100vh;display:grid;place-content:center;justify-items:center;background:var(--deep);color:var(--goldlight)}.startup p{margin-top:18px}.medallion{display:grid;place-items:center;width:108px;height:108px;border:2px solid var(--goldlight);outline:1px solid #9a7446;outline-offset:6px;border-radius:50%;font:700 50px 'Cormorant Garamond',serif;color:var(--goldlight);background:radial-gradient(circle,#5a3b29,#2d1c16)}.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-visual{background:radial-gradient(circle at 30% 30%,#64442c 0,#281812 68%);color:#f6e7c9;position:relative;overflow:hidden;padding:8vh 7vw;display:flex;flex-direction:column;justify-content:center}.auth-visual::before,.hero::before{content:'✦   ✧     ✦    ✧     ✦';position:absolute;font-size:80px;color:#e4c48d12;letter-spacing:40px;transform:rotate(-28deg);top:12%;left:-12%;white-space:nowrap;pointer-events:none}.ornament{border:1px solid #be9c66a0;display:inline-grid;place-items:center;width:74px;height:74px;border-radius:50%;font:700 32px 'Cormorant Garamond',serif;color:var(--goldlight);margin-bottom:32px;box-shadow:0 0 0 6px #b1813821}.auth-visual h1,.hero h1{color:#fff4e5}.auth-visual p{max-width:580px;font-size:16px;color:#e8d6c3}.auth-points{margin-top:32px;display:grid;gap:12px}.auth-points span{display:flex;gap:12px;align-items:center}.auth-points b{color:var(--goldlight)}.auth-main{display:grid;place-content:center;padding:35px 8%;background:linear-gradient(130deg,#fffaf2,#f5ead8)}.auth-card{width:min(470px,100%)}.auth-card h2{font-size:43px}.auth-card .subtitle{margin:14px 0 24px;color:var(--muted)}.auth-card form{display:grid;gap:15px}.field{display:grid;gap:6px}.field label{font-size:12px;font-weight:800;letter-spacing:.5px;color:#695245}.field input,.field textarea,.search{background:#fffefa;border:1px solid var(--border);border-radius:11px;padding:12px 14px;color:var(--ink);outline:0;transition:border-color .2s,box-shadow .2s;width:100%}.field input:focus,.field textarea:focus,.search:focus{border-color:var(--gold);box-shadow:0 0 0 3px #b1813822}.field textarea{min-height:145px;resize:vertical}.btn{border:1px solid transparent;background:var(--coffee);color:#fff;padding:11px 18px;border-radius:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .15s,background .15s;text-decoration:none;font-size:13px}.btn:hover:not(:disabled){background:#623a27;color:#fff;transform:translateY(-1px)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.goldbtn{background:var(--gold);color:#fff}.btn.goldbtn:hover{background:#956b30}.btn.line{background:transparent;border-color:var(--border);color:var(--coffee)}.btn.line:hover{background:#f2e6d3;color:var(--coffee)}.btn.pale{background:#f2e6d3;color:var(--coffee)}.btn.danger{background:#9c514a}.btn.sm{padding:8px 11px;font-size:12px}.btn.full{width:100%}.layout{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:var(--deep);color:#eadcc7;position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column;padding:27px 17px;z-index:5}.brand{padding:7px 14px 26px;border-bottom:1px solid #ffffff20}.brand-logo{font:700 25px 'Cormorant Garamond',serif;color:#f2d6a1;line-height:1.1;letter-spacing:1px}.brand-sub{font-size:9px;letter-spacing:1.2px;color:#bba58b;margin-top:8px}.nav-group{color:#ac9275;font-size:10px;letter-spacing:2px;font-weight:800;margin:27px 11px 10px}.nav-link{border:0;background:transparent;color:#e0d1ba;padding:13px 13px;border-radius:12px;display:flex;align-items:center;text-align:left;width:100%;gap:11px;font-weight:600;font-size:13px}.nav-link:hover,.nav-link.active{background:#6546307a;color:#ffe0ab}.nav-symbol{font-size:19px;width:23px;text-align:center}.sidebar-bottom{margin-top:auto;padding:20px 11px 6px;font-size:11px;color:#c0a78f;border-top:1px solid #ffffff19}.sidebar-bottom b{display:block;color:#f3dfbb;font-size:12px}.app-main{min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.5vw,55px);border-bottom:1px solid var(--border);background:#fffdf9dd;backdrop-filter:blur(15px);position:sticky;top:0;z-index:3}.topbar .breadcrumb{color:var(--muted);font-size:12px;letter-spacing:.5px}.topbar .userchip{display:flex;align-items:center;gap:12px;font-weight:800}.avatar{display:grid;place-items:center;border-radius:50%;width:37px;height:37px;background:#ead6b5;color:#634229;font:700 20px 'Cormorant Garamond',serif}.content{padding:36px clamp(18px,3.5vw,55px) 70px;max-width:1450px;margin:auto}.eyebrow{display:flex;gap:9px;align-items:center;color:var(--gold);text-transform:uppercase;font-size:11px;letter-spacing:2px;font-weight:800;margin-bottom:10px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:22px}.section-title p{margin:7px 0 0}.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 76% 25%,#795236,#3f2a21 58%,#291b16);color:#f5e9d6;border-radius:24px;padding:48px 52px;display:grid;grid-template-columns:1fr 260px;gap:30px;min-height:310px;box-shadow:var(--shadow)}.hero .eyebrow{color:#e5c18b}.hero h1{font-size:clamp(38px,4.4vw,64px)}.hero p{color:#e7d5bd;max-width:620px;font-size:15px;margin:15px 0 25px}.hero .hero-art{position:relative;display:grid;place-items:center}.hero .seal{width:215px;height:215px;border:2px solid #d6ae6e;border-radius:50%;display:grid;place-items:center;font:700 91px 'Cormorant Garamond',serif;color:#f5d09a;background:linear-gradient(150deg,#d8b06b18,#26191550);box-shadow:0 0 0 12px #ddad5830,0 0 0 14px #dfba7340;transform:rotate(-6deg)}.hero .seal small{position:absolute;font:700 11px 'DM Sans',sans-serif;letter-spacing:3px;transform:translateY(64px)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:23px 0 35px}.stat,.panel,.module-card,.period-card,.work-card,.question-card{background:var(--paper);border:1px solid var(--border);border-radius:var(--round);box-shadow:var(--shadow)}.stat{padding:21px 22px}.stat .num{font:700 35px 'Cormorant Garamond',serif;color:var(--deep);margin-top:6px;line-height:1}.stat .label{font-size:11px;letter-spacing:.7px;color:var(--muted);font-weight:800;text-transform:uppercase}.stat .hint{font-size:11px;color:var(--muted);margin-top:8px}.grid2{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.panel{padding:27px}.panel h3{margin-bottom:14px}.panel.plain{box-shadow:none}.pill{border-radius:25px;background:#efe1c8;color:#775333;padding:5px 11px;font-weight:800;font-size:11px;display:inline-flex;gap:6px;align-items:center}.pill.green{color:#3d6338;background:#e5f0df}.pill.red{color:#9d5445;background:#fae8e3}.pill.blue{color:#3a6880;background:#e2f0f6}.pill.gray{color:#6b665b;background:#eeece6}.progress{height:8px;border-radius:30px;background:#eadccb;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,#ad7c36,#e8bc77);border-radius:30px}.weight-row{display:grid;grid-template-columns:1fr 60px;gap:10px;align-items:center;margin-top:16px}.weight-row small{display:block;color:var(--muted);font-size:11px}.periods{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.period-card{padding:22px;position:relative;overflow:hidden}.period-card::before{content:'';height:4px;position:absolute;top:0;left:0;right:0;background:linear-gradient(90deg,#ba893e,#edc782)}.period-card h3{margin:8px 0}.period-card p{font-size:12px;color:var(--muted);min-height:37px}.period-card .period-footer{margin-top:20px;border-top:1px solid var(--border);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module-card{padding:22px;display:flex;flex-direction:column;gap:8px;transition:transform .2s,border-color .2s;min-height:195px}.module-card:not(.locked):hover{transform:translateY(-3px);border-color:#c9ad82}.module-card.locked{opacity:.56;box-shadow:none}.module-top{display:flex;justify-content:space-between;gap:10px}.module-number{font:700 31px 'Cormorant Garamond',serif;color:var(--gold)}.module-card h3{font-size:23px}.module-card p{font-size:12px;color:var(--muted);flex:1}.module-card .mod-footer{display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px solid var(--border)}.module-card .open-link{background:transparent;border:0;color:var(--coffee);font-size:12px;font-weight:800}.module-card button.open-link:hover{text-decoration:underline}.module-block{margin-top:36px}.module-block:first-child{margin-top:0}.module-block .block-head{margin-bottom:16px;border-bottom:1px solid var(--border);padding-bottom:10px}.timeline{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.timeline span{font-size:11px;background:#f5ecdf;padding:7px 11px;border-radius:8px;color:#72553b}.tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:10px;margin-bottom:25px}.tab{border:0;border-radius:10px;background:transparent;padding:10px 15px;color:var(--muted);font-weight:800;font-size:12px}.tab.active,.tab:hover{background:#efe0c5;color:var(--coffee)}.lesson-section{padding:26px 0;border-bottom:1px solid var(--border)}.lesson-section:first-child{padding-top:0}.lesson-section h3{margin-bottom:9px}.lesson-section p{font-size:14px;color:#4b4036;line-height:1.85}.gold-card{background:#f5e8d2;border-left:4px solid var(--gold);padding:18px 22px;border-radius:12px;margin-top:22px}.flip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:17px}.flip{perspective:800px;min-height:95px}.flip button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:95px;border:1px dashed #b99c75;border-radius:12px;background:#fff8e8;color:#573c26;font-weight:800;transition:background .2s}.flip button.flipped{background:#5b3a2b;color:#ffe7b9;border-color:#5b3a2b}.flip small{font-size:10px;opacity:.7}.question-card{padding:21px 23px;margin-bottom:15px;box-shadow:none}.question-heading{display:flex;gap:10px;align-items:start;margin-bottom:16px}.question-number{background:#efdfc4;color:#7c5630;border-radius:8px;padding:4px 9px;font-size:11px;font-weight:800}.question-heading b{line-height:1.5}.options{display:grid;gap:9px}.option{display:flex;align-items:center;gap:13px;padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:#fffefb;cursor:pointer;transition:.12s}.option:hover{background:#faf1e4;border-color:#cbb28c}.option.chosen{border-color:#ae7b36;background:#fcf1df}.option input{accent-color:#9e733d}.review{padding:13px;border-radius:10px;margin-top:11px;background:#f4ecdd;font-size:12px}.review.good{background:#ecf4e8}.review.bad{background:#fcf0e8}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.work-panel{max-width:900px}.work-panel .field textarea{min-height:230px;font-size:14px;line-height:1.8}.rubric-rows{display:grid;gap:9px;margin:15px 0}.rubric-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px dashed var(--border);padding:8px 0}.rubric-row input{width:95px;border:1px solid var(--border);padding:9px;border-radius:9px;background:#fff}.toast{position:fixed;right:25px;bottom:25px;background:#32221b;color:white;border-radius:12px;max-width:360px;padding:13px 18px;box-shadow:0 12px 45px #2c211b42;transform:translateY(120px);transition:.2s;z-index:1000}.toast.show{transform:translateY(0)}.notice{padding:12px 15px;background:#f8ebd5;border:1px solid #e6d2ae;border-radius:12px;color:#74512f;margin-bottom:18px}.notice.success{background:#e7f1e3;color:#38643e;border-color:#c7ddc0}.notice.warning{background:#f9e4de;color:#954e3e;border-color:#edcfc6}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:13px;background:white}table{border-collapse:collapse;width:100%;min-width:650px}th,td{text-align:left;border-bottom:1px solid #ebdfce;padding:13px 15px;font-size:12px}th{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#856f55;background:#f5eddf}tr:last-child td{border-bottom:0}.right{text-align:right}.teacher-grades{display:flex;gap:8px;flex-wrap:wrap}.queue-item{border:1px solid var(--border);border-radius:13px;padding:17px;background:#fffefa;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:15px}.queue-item h4{font-size:20px;margin-bottom:3px}.queue-item p{font-size:12px;color:var(--muted);margin:0}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}.exam-side{position:sticky;top:105px}.timer{font:700 42px 'Cormorant Garamond',serif;color:#6a3b24;line-height:1}.timer.low{color:#b14037}.exam-numgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:12px}.num-btn{height:36px;border:1px solid var(--border);background:#fffaf2;border-radius:7px;color:#755942;font-size:11px;font-weight:800}.num-btn.filled{background:#e6c999;border-color:#b78b50}.num-btn.current{outline:2px solid var(--coffee);outline-offset:1px}.exam-main .options{margin-top:24px}.exam-pager{display:flex;justify-content:space-between;margin-top:28px}.empty{padding:43px 25px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:16px;background:white}.empty .emoji{font-size:38px;margin-bottom:13px}.cards-detail{display:grid;gap:14px}.grade-chip{font:700 26px 'Cormorant Garamond',serif}.footer{margin-top:45px;padding-top:24px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:11px;flex-wrap:wrap}.footer a{margin-left:12px}.mobile-bar{display:none}.big-value{font:700 49px 'Cormorant Garamond',serif;line-height:1;color:var(--deep)}.checklist{display:grid;gap:10px;margin-top:20px}.checklist .check{display:flex;justify-content:space-between;gap:10px;padding:11px 13px;border-radius:10px;background:#f7efe3;font-size:12px}.checklist .check b{color:var(--coffee)}.modal-backdrop{position:fixed;inset:0;background:#1e130fd6;z-index:11;display:grid;place-items:center;padding:20px}.modal{background:var(--paper);border-radius:20px;max-width:690px;width:100%;padding:27px;max-height:90vh;overflow:auto;box-shadow:0 35px 80px #0003}.modal header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.modal h3{font-size:29px}.close-btn{font-size:24px;border:0;background:transparent;color:#73543d}.submission-text{white-space:pre-wrap;word-break:break-word;padding:20px;background:#f8f0e3;border-radius:12px;line-height:1.8;max-height:240px;overflow:auto}.nav-toggle{display:none}.center{text-align:center}@media (max-width:1150px){.periods{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.hero{grid-template-columns:1fr 170px;padding:40px}.hero .seal{width:160px;height:160px;font-size:65px}.hero .seal small{transform:translateY(50px)}}@media(max-width:800px){.layout{display:block}.sidebar{position:fixed;left:0;top:0;width:265px;transform:translateX(-105%);transition:transform .2s;box-shadow:8px 0 35px #0002}.sidebar.show{transform:translateX(0)}.nav-toggle{display:block;background:transparent;border:0;font-size:24px;color:var(--coffee)}.topbar{height:65px;padding:0 16px}.content{padding:22px 16px 65px}.auth{grid-template-columns:1fr}.auth-visual{display:none}.auth-main{min-height:100vh}.hero{grid-template-columns:1fr;padding:35px 28px}.hero .hero-art{display:none}.grid3{grid-template-columns:1fr 1fr}.exam-layout{grid-template-columns:1fr}.exam-side{position:static;order:-1}.exam-numgrid{grid-template-columns:repeat(10,1fr)}.footer a{margin:0 12px 0 0}}@media(max-width:530px){.stats,.module-grid,.periods,.grid3{grid-template-columns:1fr}.flip-grid{grid-template-columns:1fr}.section-title{align-items:start;flex-direction:column}.panel{padding:19px}.auth-card h2{font-size:36px}.hero h1{font-size:41px}.exam-numgrid{grid-template-columns:repeat(5,1fr)}.queue-item{align-items:start;flex-direction:column}.topbar .userchip span{display:none}}

/* Teacher-only examination management: preserves the original Rizalverse palette. */
.exam-period-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.exam-settings{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin-top:18px}
.exam-settings .field{min-width:160px;flex:1 1 170px;max-width:240px}
.exam-settings .btn{min-height:46px}
.exam-question-list{display:grid;gap:12px;margin-top:19px}
.exam-edit-card{border:1px solid var(--border);border-radius:14px;padding:15px 18px;background:#fffdfa}
.exam-edit-card[open]{background:#fffaf1}
.exam-edit-card summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none}
.exam-edit-card summary::-webkit-details-marker{display:none}
.exam-edit-card summary b{flex:1;line-height:1.5}
.exam-edit-card summary .module-number{flex:none}
.exam-edit-card .exam-options{margin:18px 0 14px;padding-left:16px}
.exam-edit-card .exam-options p{margin:6px 0}
.exam-edit-card .pill{white-space:nowrap}
.exam-question-form{display:grid;gap:14px;margin-top:22px}
.exam-question-form .field textarea{min-height:80px}
.exam-question-form .field select{width:100%;min-height:45px;border:1px solid var(--border);border-radius:11px;padding:10px;background:var(--paper);color:var(--ink)}
@media(max-width:650px){.exam-edit-card summary{flex-wrap:wrap}.exam-edit-card summary b{min-width:70%}.exam-settings .field{max-width:none}}

/* Administrator classroom access controls (same cream / gold / brown design). */
.panel select,.panel .actions input[type=password]{font:inherit;background:#fffefa;border:1px solid var(--border);border-radius:11px;padding:10px 12px;color:var(--ink);max-width:100%;min-width:155px}
.panel .actions select{flex:1;max-width:350px}
.panel .actions input[type=password]{flex:1;min-width:170px}
.panel form .field{margin-top:12px}
.panel form>.btn{margin-top:18px}
.panel .queue-item .actions{margin-top:0}
@media(max-width:650px){.panel .queue-item .actions{width:100%}.panel .actions select{width:100%}.panel .actions input[type=password]{width:100%}}

/* Administrator-only student deletion: explicit, accessible warning controls. */
.delete-student-modal{max-width:670px}
.danger-notice{background:#fff0ec;border:1px solid #deac9e;color:#74352e;margin-bottom:19px}
.danger-notice p{margin:7px 0 0}
.delete-counts{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0 20px}
.delete-counts span{background:#f4eadc;border-radius:8px;padding:7px 10px;font-size:12px}
#deleteStudentForm{display:grid;gap:16px}
.delete-check{display:flex;gap:10px;align-items:start;font-size:13px;line-height:1.55}
.delete-check input{margin-top:4px;flex:none}
.deletion-receipt{margin-bottom:19px;overflow-wrap:anywhere}
.deletion-receipt code{font-size:12px;word-break:break-all}

/* Secure administrator account management controls. */
.account-edit-modal{max-width:720px}
.account-edit-modal form{display:grid;gap:14px;margin-top:19px}
.account-edit-modal .field input{background:#fffefa;border:1px solid var(--border);border-radius:11px;padding:11px 14px;width:100%;color:var(--ink)}
.account-edit-modal .field label{font-size:11px;font-weight:800;letter-spacing:.5px;color:#695245}
.checkbox-line{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:12px;color:#694c37;line-height:1.55}
.checkbox-line input{flex:none;margin-top:3px;accent-color:var(--gold)}
.account-edit-modal .tabs{margin-top:14px;margin-bottom:12px}
.account-edit-modal .notice{margin-top:12px}

.hero .seal .seal-title {
  display: block;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #f5d09a;
  text-align: center;
}
