/* MaxxTechies Teacher v6 - professional green education theme */
:root{
  --bg:#f4f8f6;
  --surface:#ffffff;
  --surface2:#f7fbf9;
  --text:#17332b;
  --muted:#667a73;
  --line:#dce8e2;
  --primary:#14845f;
  --primary2:#0f6f50;
  --primary3:#0b513d;
  --success:#138a62;
  --danger:#c94343;
  --warning:#a96b05;
  --shadow:0 16px 42px rgba(16,74,56,.08);
  --radius:18px;
}
body{background:linear-gradient(180deg,#f9fcfa 0,#f3f8f5 100%);color:var(--text)}
.public-shell{background:
  radial-gradient(circle at 90% 5%,rgba(111,213,165,.18),transparent 32%),
  radial-gradient(circle at 6% 95%,rgba(20,132,95,.08),transparent 30%),
  linear-gradient(180deg,#fbfefc,#f3f8f5)}
.brand-mark{background:linear-gradient(135deg,#1c9b70,#0b5c43);box-shadow:0 10px 28px rgba(20,132,95,.24)}
.brand small{color:#6b8179}
.btn{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#17966b,#0e6d50);box-shadow:0 10px 24px rgba(20,132,95,.22)}
.btn-primary:hover{box-shadow:0 13px 30px rgba(20,132,95,.28)}
.btn-secondary{background:#fff;border-color:#d7e5df}
.btn-secondary:hover{border-color:#a9cdbf;background:#f8fcfa}
.sidebar{background:linear-gradient(180deg,#0b2e25 0%,#0a251f 52%,#071d19 100%);color:#d7e9e1;box-shadow:10px 0 32px rgba(7,38,29,.08)}
.sidebar .brand{color:#fff}
.sidebar .brand small{color:#89ad9f}
.nav a{color:#b7d0c6;position:relative}
.nav a:hover{background:#123f33;color:#fff}
.nav a.active{background:linear-gradient(90deg,#176e53,#155e49);color:#fff;box-shadow:0 8px 20px rgba(3,25,19,.16)}
.nav a.active:before{content:"";position:absolute;left:-4px;top:10px;bottom:10px;width:3px;border-radius:4px;background:#63d5a7}
.nav-label{color:#719789}
.sidebar-bottom{border-color:#18483a}
.avatar{background:linear-gradient(135deg,#279c75,#175d49)}
.user-mini span{color:#88aa9d}.logout-link{color:#a8c7bb}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#dce8e2;box-shadow:0 5px 24px rgba(22,83,64,.035)}
.topbar .eyebrow{color:#70827b}
.content{background-image:radial-gradient(circle at 97% 2%,rgba(89,190,144,.08),transparent 22%)}
.page-head h2{color:#153a2e}.page-head p{color:#6a7c75}
.card{border-color:#deebe5;box-shadow:var(--shadow);transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.card:hover{border-color:#cfe1d8}
.stat{position:relative;overflow:hidden}
.stat:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-30px;top:-34px;background:radial-gradient(circle,rgba(54,179,128,.17),rgba(54,179,128,0) 70%)}
.stat .label{color:#657a72}.stat .value{color:#123f32}.stat .hint{color:#778a83}
.section-title h3{color:#173c30}
.input,.select,.textarea{border-color:#d9e7e1;background:#fff;color:#17332b}
.input:focus,.select:focus,.textarea:focus{border-color:#57ad8d;box-shadow:0 0 0 3px rgba(20,132,95,.12)}
.field label{color:#456158}
.table-wrap{border-color:#dce9e3;box-shadow:inset 0 1px 0 #fff}
.table th{background:#f2f8f5;color:#507067;border-bottom-color:#dce9e3}
.table td{border-bottom-color:#e9f0ed}
.table tbody tr:hover td{background:#fbfdfc}
.badge{background:#e9f7f1;color:#126d50;border:1px solid #d2eee2}
.badge-success{background:#e9f8f1;color:#08734f;border-color:#c8eddd}
.badge-warn{background:#fff7e6;color:#9b6200;border-color:#f6e4bb}
.flash-success{background:#ebfaf3;color:#0b6d4d;border-color:#c7ecdc}
.quick-item{border-color:#deebe5;background:#fff;transition:.16s ease}.quick-item:hover{border-color:#b9d9cc;background:#fbfefc;transform:translateY(-1px)}
.marklist-summary span{background:#eef8f3;border-color:#d6eae1;color:#365f50}
.marklist-editor{border-top:3px solid #22926b}
.action-row .btn-primary{min-width:180px}
.mobile-toggle{border-color:#d7e5df;color:#205847}
.auth-card{border-top:3px solid #1a9167}
.auth-foot a{color:#137453}
.hero-photo{background-image:linear-gradient(90deg,rgba(5,36,27,.96) 0%,rgba(7,49,37,.88) 38%,rgba(9,60,44,.46) 61%,rgba(9,60,44,.12) 100%),url('/assets/teacher-classroom-hero.webp');box-shadow:0 30px 80px rgba(8,58,43,.20)}
.hero-photo h1 span{color:#82e2b8}
.hero-photo .feature-chips span{background:#073c2f87;border-color:#9ce7c33c}
.hero-kicker{background:#0c5c456e;border-color:#a2e8c83a}
.auth-hero.auth-photo{background-image:linear-gradient(180deg,rgba(5,48,36,.38),rgba(5,39,30,.92)),url('/assets/teacher-classroom-hero.webp');box-shadow:0 20px 55px rgba(6,58,42,.17)}
.auth-hero.auth-photo:before{background:linear-gradient(100deg,rgba(7,75,55,.55),transparent 70%)}
.auth-hero.auth-photo .feature-chips span{background:#073c2f78;border-color:#98e1c02f}
.pdf-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px;padding:15px;border-radius:14px;background:linear-gradient(135deg,#f0faf5,#f8fcfa);border:1px solid #d7ebe2}
.pdf-actions .pdf-note{font-size:12px;color:#668077;margin-right:auto}
.result-link{white-space:nowrap}
.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.metric-mini{padding:14px 16px;border:1px solid #dbe9e3;border-radius:14px;background:linear-gradient(180deg,#fff,#f9fcfa)}.metric-mini span{display:block;color:#71847c;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.metric-mini strong{display:block;margin-top:5px;font-size:21px;color:#164734}
@media(max-width:760px){
  .hero-photo{background-image:linear-gradient(90deg,rgba(5,42,32,.95),rgba(6,54,40,.76)),url('/assets/teacher-classroom-hero.webp')}
  .metric-strip{grid-template-columns:repeat(2,1fr)}
  .pdf-actions{align-items:stretch}.pdf-actions .pdf-note{width:100%}.pdf-actions .btn{flex:1}
}

/* v7 spreadsheet import + reusable class lists */
.workflow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.workflow-card{background:linear-gradient(180deg,#fff,#f8fcfa);border:1px solid #dbe9e3;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:7px;box-shadow:0 10px 30px rgba(16,74,56,.05);transition:.18s}.workflow-card:hover{transform:translateY(-2px);border-color:#a9d3c2;box-shadow:0 15px 34px rgba(16,74,56,.09)}.workflow-card strong{font-size:14px;color:#153f31}.workflow-card small{color:#71847c;line-height:1.5}.workflow-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e8f7f0;color:#0f7454;font-weight:900;font-size:18px}
.import-steps{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.import-steps span{font-size:11px;font-weight:800;letter-spacing:.02em;color:#71847c;background:#fff;border:1px solid #dce9e3;border-radius:999px;padding:8px 11px}.import-steps span.active{color:#fff;background:linear-gradient(135deg,#169269,#0e6b4e);border-color:#0e6b4e;box-shadow:0 7px 18px rgba(20,132,95,.16)}
.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.source-card{border:1px solid #dce9e3;border-radius:16px;padding:18px;background:#fbfefc}.source-card.selected{border-color:#a8d7c4;background:linear-gradient(180deg,#f2fbf7,#fbfefc)}.source-card>div{margin-bottom:14px}.source-card strong{display:block;color:#174635;font-size:15px;margin-top:8px}.source-card p{font-size:12px;line-height:1.55;color:#71847c;margin:6px 0 0}.source-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e4f6ee;color:#0f7555;font-weight:900;font-size:18px}
.mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.help-panel,.validation-note,.info-banner{display:flex;gap:12px;align-items:flex-start;border:1px solid #d7ebe2;background:linear-gradient(135deg,#f0faf5,#fbfefc);border-radius:14px;padding:14px 16px;color:#5f776d;font-size:12px;line-height:1.5}.help-panel{margin-top:16px}.help-panel strong,.validation-note strong,.info-banner strong{color:#174a38;white-space:nowrap}.validation-note{margin-top:14px}.info-banner{margin-bottom:18px}.required-dot{color:#c94343}.compact-table{min-width:800px}.compact-table th,.compact-table td{white-space:nowrap;font-size:11px}
.roster-editor .table{min-width:1450px}.roster-editor .input{padding:8px 9px;border-radius:9px;font-size:12px;min-width:120px}.roster-editor td:nth-child(3) .input,.roster-editor td:nth-child(4) .input,.roster-editor td:nth-child(7) .input{min-width:145px}
@media(max-width:1100px){.workflow-grid{grid-template-columns:repeat(2,1fr)}.mapping-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.workflow-grid,.source-grid,.mapping-grid{grid-template-columns:1fr}.help-panel,.validation-note,.info-banner{display:block}.help-panel strong,.validation-note strong,.info-banner strong{display:block;margin-bottom:4px}.workflow-card{padding:16px}}

/* v8 complete class results + report cards */
.subject-builder{display:grid;gap:10px}.subject-row{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto;gap:10px;align-items:center}.result-matrix .table{min-width:1150px}.result-matrix th{vertical-align:bottom;text-align:center}.result-matrix th small{display:block;font-size:9px;font-weight:600;opacity:.8;margin-top:2px}.result-matrix td{text-align:center;vertical-align:top}.result-matrix td:nth-child(2),.result-matrix td:nth-child(3){text-align:left}.student-sticky{position:sticky!important;left:0;background:#fff!important;z-index:3;min-width:180px}.result-matrix thead .student-sticky{background:#f2f8f5!important;z-index:5}.score-cell{display:grid;gap:5px;min-width:92px}.score-cell .input,.score-cell .select{min-width:88px;padding:7px 6px;text-align:center;font-size:11px}.grade-chip{display:inline-flex;justify-content:center;padding:4px 7px;background:#e8f7f0;color:#0f6d50;border-radius:999px;font-size:10px;font-weight:800}.result-matrix .table-wrap{max-height:68vh}.result-matrix tbody tr:hover .student-sticky{background:#fbfdfc!important}
@media(max-width:760px){.subject-row{grid-template-columns:1fr 100px}.subject-row .btn{grid-column:1/-1}.result-matrix .table-wrap{max-height:none}.student-sticky{position:static!important}}
