:root{
  --navy:#0d1e37;
  --navy-soft:#17345d;
  --blue:#17345d;
  --blue2:#274a80;
  --sky:#f2e4a9;
  --accent:#d2ac34;
  --accent-strong:#b98e16;
  --accent-soft:#f7efd0;
  --red:#d95b4a;
  --green:#7f9941;
  --yellow:#d2ac34;
  --ink:#1a2741;
  --muted:#6d665d;
  --line:#d9d0c4;
  --surface:#fffdfa;
  --surface-2:#f3eee7;
  --soft:#f7f2ea;
  --white:#ffffff;
  --shadow-lg:0 28px 64px rgba(28,24,17,.10);
  --shadow-card:0 12px 30px rgba(28,24,17,.05);
}

/* Interactive HTML, rich lesson links, and extended quiz types */
.interactive-card{margin-bottom:18px;overflow:hidden}
.interactive-frame{display:block;width:100%;min-height:240px;border:1px solid var(--line);border-radius:16px;background:#fff}
.lesson-media-embed{width:min(680px,100%);margin-top:14px;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#101820}
.lesson-media-embed iframe{display:block;width:100%;height:100%;border:0}
.classwork-icon.link{background:#8b5cf6}
.quiz-builder-layout{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(420px,1.1fr);gap:18px;align-items:start}
.matching-builder-row,.matching-answer-row{display:grid;grid-template-columns:auto minmax(120px,1fr) auto minmax(120px,1fr);gap:10px;align-items:center;margin:10px 0}
.matching-answer-row{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr);padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}
.question-summary-card,.quiz-answer-review{margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.quiz-answer-review.correct{border-left:5px solid #2d9e72}
.quiz-answer-review.wrong{border-left:5px solid #d65a4a}
.quiz-answer-review.manual{border-left:5px solid #d39b2a}
.matching-review-list>div{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.essay-response{margin:12px 0;padding:16px;border-radius:14px;background:#f7f9fc;white-space:normal}
.manual-grade-grid{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:start;margin-top:12px}
.manual-grade-grid label{display:grid;gap:7px;font-weight:700}
.word-limit-exceeded{color:#b3261e!important;font-weight:700}
@media(max-width:900px){.quiz-builder-layout{grid-template-columns:1fr}.matching-review-list>div{grid-template-columns:1fr}.manual-grade-grid{grid-template-columns:1fr}}
@media(max-width:620px){.matching-builder-row,.matching-answer-row{grid-template-columns:1fr}.matching-builder-row>span{display:none}}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Kanit","Sarabun","Noto Sans Thai",Arial,sans-serif;
  font-size:15px;
  line-height:1.55;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.82), rgba(255,255,255,0) 34%),
    radial-gradient(circle at top right, rgba(255,248,231,.92), rgba(255,248,231,0) 28%),
    linear-gradient(180deg, #f4efe7 0%, #ece5da 100%);
  letter-spacing:-0.2px;
  min-height:100vh;
}
body.modal-open{overflow:hidden}
a{text-decoration:none;color:var(--navy-soft)}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
.material-symbols-outlined{
  font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 24;
  font-size:20px;
  line-height:1;
}

.page-shell{padding:16px}
.auth-main{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 28px;
}
.auth-content{
  width:min(1280px,100%);
  display:flex;
  flex-direction:column;
  gap:20px;
}
.layout{
  display:flex;
  min-height:calc(100vh - 32px);
  max-width:1580px;
  margin:0 auto;
  background:var(--surface-2);
  border:1px solid rgba(185,166,126,.30);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.sidebar{
  width:286px;
  padding:22px 16px;
  background:linear-gradient(180deg, #0a1730 0%, #102342 56%, #14294d 100%);
  color:#fff;
  position:relative;
  overflow:auto;
}
.sidebar::before{
  content:"";
  position:absolute;
  inset:auto -20% 12% auto;
  width:240px;
  height:240px;
  background:radial-gradient(circle, rgba(210,172,52,.18) 0%, rgba(210,172,52,0) 70%);
}
.sidebar::after{
  content:"";
  position:absolute;
  inset:26% auto auto -28%;
  width:220px;
  height:220px;
  border:1px solid rgba(210,172,52,.10);
  border-radius:50%;
}
.brand,
.sidebar-logos,
.user-profile-box,
.nav{position:relative;z-index:1}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(210,172,52,.35);
}
.brand-mark{
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(210,172,52,.06);
  display:grid;
  place-items:center;
  box-shadow:inset 0 0 0 1px rgba(210,172,52,.52);
}
.brand-mark img{
  width:30px;
  height:30px;
  object-fit:contain;
  background:transparent;
  border-radius:50%;
  padding:0;
}
.brand-kicker{
  display:block;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(210,172,52,.92);
}
.brand-title{
  font-size:24px;
  font-weight:800;
  line-height:1.02;
  color:#fff;
}
.sidebar-logos{
  display:flex;
  justify-content:flex-start;
  gap:8px;
  margin-bottom:18px;
}
.sidebar-logos img{
  width:42px;
  height:42px;
  padding:4px;
  object-fit:contain;
  background:#fff;
  border-radius:50%;
  box-shadow:0 8px 16px rgba(0,0,0,.16);
}
.user-profile-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  margin-bottom:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(210,172,52,.18);
  border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.user-avatar{
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--accent);
  color:var(--navy);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:900;
  flex:none;
  overflow:hidden;
}
.user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.user-info b{
  display:block;
  font-size:14px;
  line-height:1.3;
  margin-bottom:4px;
}
.profile-link{
  color:#fff;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.38);
}
.profile-link:hover{
  color:#fff;
  border-bottom-color:rgba(255,255,255,.72);
}
.user-info small{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:11px;
  line-height:1.45;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav-mobile{display:none}
.nav-group{
  display:block;
  padding:2px 10px;
  margin-top:4px;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(210,172,52,.72);
}
.nav-link,
.nav-demo{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:12px;
  color:rgba(255,255,255,.80);
  font-size:13px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-link:hover,
.nav-demo:hover,
.nav-demo.active{
  color:#fff;
  background:rgba(255,255,255,.04);
  border-color:rgba(210,172,52,.18);
}
.nav-link.active,
.nav-demo.active{
  color:#fff;
  background:#17345d;
  border-color:rgba(210,172,52,.42);
  box-shadow:inset 4px 0 0 var(--accent);
}
.nav-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  background:rgba(210,172,52,.08);
  color:var(--accent);
  display:grid;
  place-items:center;
  flex:none;
}
.nav-link.active .nav-icon,
.nav-demo.active .nav-icon{
  background:rgba(210,172,52,.12);
  color:var(--accent);
}
.nav-label{flex:1}
.nav-parent{
  padding-right:12px;
}
.nav-parent-label{
  flex:1;
}
.nav-parent-chevron{
  font-size:16px;
  color:rgba(210,172,52,.86);
  transition:transform .2s ease;
}
.nav-section{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav-submenu{
  position:relative;
  margin:0 0 4px 46px;
  padding:2px 0 2px 14px;
  display:none;
  flex-direction:column;
  gap:4px;
}
.nav-section.open .nav-submenu{
  display:flex;
}
.nav-section:not(.open) .nav-parent-chevron{
  transform:rotate(-90deg);
}
.nav-section.open .nav-parent-chevron{
  transform:rotate(0deg);
}
.nav-submenu::before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  bottom:2px;
  width:1px;
  background:rgba(210,172,52,.22);
}
.nav-sublink{
  position:relative;
  display:block;
  padding:7px 10px 7px 14px;
  border-radius:10px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:600;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.nav-sublink::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(210,172,52,.38);
  transform:translate(-50%, -50%);
}
.nav-sublink:hover{
  color:#fff;
  background:rgba(255,255,255,.04);
  transform:translateX(2px);
}
.nav-sublink.active{
  color:#fff;
  background:rgba(23,52,93,.84);
}
.nav-sublink.active::before{
  background:var(--accent);
}
.nav-sublink-muted{
  color:rgba(255,255,255,.42);
  cursor:default;
}
.nav-sublink-muted::before{
  background:rgba(255,255,255,.16);
}
.nav-sublink-muted:hover{
  color:rgba(255,255,255,.42);
  background:transparent;
  transform:none;
}
.nav-badge{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:var(--accent);
  color:var(--navy);
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
}
.nav-link-logout{margin-top:18px}
.field-help{display:block;margin:5px 0 7px;color:#64748b;font-size:12px;line-height:1.55}
.course-teacher-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.course-person{display:inline-flex;align-items:center;gap:6px;margin-right:8px;font-weight:700}.course-person-avatar{display:inline-grid;place-items:center;width:28px;height:28px;overflow:hidden;border-radius:50%;background:#dbeafe;color:#1d4f98;font-size:12px;font-weight:800}.course-person-avatar img{width:100%;height:100%;object-fit:cover}
.excel-row-editing{outline:2px solid #7c3aed;outline-offset:-2px;background:#faf5ff}.assignment-grading-table input:focus,.assignment-grading-table select:focus{outline:2px solid #7c3aed;outline-offset:1px}
.bulk-grade-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border:1px solid #ddd6fe;border-radius:12px;background:#faf5ff}.bulk-grade-tools input,.bulk-grade-tools select{min-height:38px}.bulk-grade-tools b{color:#5b21b6}
.required-mark{color:#c2410c;font-weight:800}
.form-field-error{display:block;margin-top:5px;color:#b91c1c;font-size:12px;font-weight:700}
.field-has-error input,.field-has-error select,.field-has-error textarea{border-color:#dc2626;background:#fffafa}

.main{
  flex:1;
  min-width:0;
  background:linear-gradient(180deg, #f5f1ea 0%, #eee8de 100%);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 0 14px;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(210,172,52,.26);
  border-radius:0;
  box-shadow:none;
}
.topbar-left h2{
  margin:0 0 6px;
  font-size:20px;
  font-weight:800;
  color:var(--navy);
}
.topbar-left p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.topbar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:12px;
}
.icon-button{
  position:relative;
  width:40px;
  height:40px;
  border:1px solid rgba(210,172,52,.38);
  border-radius:50%;
  background:var(--surface);
  color:var(--navy);
  display:grid;
  place-items:center;
  box-shadow:0 6px 16px rgba(28,24,17,.05);
  cursor:pointer;
}
.icon-button:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
}
.status-dot{
  position:absolute;
  top:8px;
  right:8px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  border:2px solid var(--surface);
}
.term-select{
  width:auto;
  min-width:160px;
  border:1px solid rgba(210,172,52,.55);
  border-radius:12px;
  background:var(--surface);
  padding:10px 12px;
  font-size:13px;
  font-weight:700;
  color:var(--navy);
  box-shadow:0 6px 16px rgba(28,24,17,.04);
}
.btn-create{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  border:1px solid var(--accent-strong);
  border-radius:12px;
  background:linear-gradient(135deg, #dfbb42 0%, #c8970b 100%);
  color:var(--navy);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(185,142,22,.24);
}
.btn-create:hover{
  transform:translateY(-1px);
  color:var(--navy);
  box-shadow:0 10px 22px rgba(185,142,22,.22);
}
.content{display:flex;flex-direction:column;gap:16px}

.desktop-only{display:block}
.mobile-only,
.mobile-header,
.mobile-action-bar{display:none}

.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}

.card{
  background:var(--surface);
  border:1px solid rgba(208,198,183,.95);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-card);
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(28,24,17,.08);
}
.card h2,
.card h3{
  margin-top:0;
  line-height:1.25;
  color:var(--navy);
}
.card h2{
  font-size:18px;
  font-weight:800;
}
.card h3{
  font-size:16px;
  font-weight:800;
}
.stat{display:flex;align-items:center;gap:16px}
.stat .ico{
  width:56px;
  height:56px;
  border-radius:20px;
  background:linear-gradient(135deg, #faf3dd 0%, #fdf8ee 100%);
  color:var(--navy);
  display:grid;
  place-items:center;
  font-size:26px;
  box-shadow:inset 0 0 0 1px rgba(210,172,52,.22);
}
.stat b{font-size:28px;font-weight:900}
.muted{color:var(--muted)}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:4px 9px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:800;
  font-size:11px;
}
.badge.red{background:#fbe8e5;color:var(--red)}
.badge.green{background:#eef4de;color:var(--green)}
.badge.yellow{background:var(--accent-soft);color:var(--accent-strong)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 15px;
  border-radius:11px;
  border:1px solid rgba(23,52,93,.14);
  background:#fffdf8;
  color:var(--navy);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}
.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(23,52,93,.28);
  box-shadow:0 10px 20px rgba(28,24,17,.08);
}
.btn:active{transform:translateY(0)}
.btn.primary{
  border-color:rgba(15,30,55,.92);
  background:linear-gradient(135deg, #12284a 0%, #21477c 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(18,40,74,.22);
}
.btn.primary:hover{color:#fff}
.btn.secondary-strong{
  border-color:rgba(23,52,93,.18);
  background:#edf4ff;
  color:#17345d;
}
.btn.secondary-strong:hover{
  color:#17345d;
  border-color:rgba(23,52,93,.32);
  background:#e2ecfb;
}
.btn.accent-soft{
  border-color:rgba(210,172,52,.38);
  background:#fff3cf;
  color:#8b6500;
}
.btn.accent-soft:hover{
  color:#7a5700;
  border-color:rgba(210,172,52,.52);
  background:#ffedb4;
}
.btn.edit-soft{
  border-color:rgba(23,52,93,.20);
  background:#eef4ff;
  color:#17345d;
}
.btn.edit-soft:hover{
  color:#17345d;
  border-color:rgba(23,52,93,.34);
  background:#e2edff;
}
.btn.danger{
  border-color:transparent;
  background:var(--red);
  color:#fff;
}
.btn.danger-soft{
  border-color:rgba(217,91,74,.24);
  background:#fff0ec;
  color:#b13f34;
}
.btn.danger-soft:hover{
  color:#982e23;
  border-color:rgba(217,91,74,.42);
  box-shadow:0 10px 22px rgba(217,91,74,.12);
}
.btn.full{width:100%}
.btn-outline-white{
  background:rgba(255,255,255,.04);
  border-color:rgba(210,172,52,.68);
  color:var(--accent-soft);
}
.btn-outline-white:hover{
  color:#fff;
  background:rgba(255,255,255,.10);
}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.compact-actions{margin:10px 0 0}
.inline-form{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.inline-form .btn,
.compact-actions .btn{
  padding:10px 14px;
  font-size:13px;
}
.inline-form select{
  min-width:150px;
}
.pagination-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}

.table-wrap{
  overflow:auto;
  border:1px solid rgba(23,52,93,.20);
  border-radius:10px;
  background:var(--surface);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
table{
  width:100%;
  border-collapse:collapse;
  background:var(--surface);
  border:1px solid #d5dce7;
}
th,td{
  padding:10px 12px;
  border:1px solid #d5dce7;
  text-align:left;
  vertical-align:top;
  line-height:1.4;
}
th{
  background:#edf2f8;
  color:rgba(13,30,55,.86);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  border-bottom:2px solid rgba(23,52,93,.72);
}
td{
  font-size:12.5px;
  font-weight:500;
  color:var(--ink);
}
tbody tr:nth-child(even){background:#fffaf0}
tbody tr:hover{background:#f8f1e2}
.table-wrap thead th{
  position:sticky;
  top:0;
  z-index:3;
}
.excel-table-wrap{
  max-height:72vh;
  border-color:rgba(23,52,93,.34);
  box-shadow:0 8px 24px rgba(13,30,55,.07);
}
.excel-table{
  min-width:1180px;
}
.excel-table th{
  background:linear-gradient(180deg,#244b7f,#17345d);
  color:#fff;
  border-color:#46678f;
  letter-spacing:.02em;
}
.excel-table td:first-child,
.excel-table th:first-child{
  width:48px;
  text-align:center;
}
.excel-table td{
  vertical-align:middle;
}
.excel-row-actions{
  display:flex;
  gap:5px;
  flex-wrap:nowrap;
}
.course-excel-card{
  padding:18px;
}
.course-table-filter select{
  min-width:280px;
}
.table-wrap td b,
.table-wrap td strong{
  font-size:12.5px;
  font-weight:800;
}
.table-wrap td small{
  display:inline-block;
  font-size:11px;
  line-height:1.35;
}
.table-wrap .badge{
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
}
.table-wrap .btn{
  padding:8px 12px;
  border-radius:10px;
  font-size:12px;
}
.table-wrap input,
.table-wrap select,
.table-wrap textarea{
  min-height:40px;
  padding:10px 12px;
  font-size:12.5px;
  border-radius:12px;
}
.table-wrap a:not(.btn){
  font-size:12.5px;
  font-weight:700;
}
.progress{height:8px;background:#ece5d8;border-radius:99px;overflow:hidden}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--navy-soft))}

form .field{margin-bottom:14px}
.field > div[id^="id_resources"],
.field > div[id^="id_instructors"]{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:8px;
  max-height:260px;
  overflow:auto;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbf8f1;
}
.field > div[id^="id_resources"] > div label,
.field > div[id^="id_instructors"] > div label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:8px 10px;
  border:1px solid rgba(217,208,196,.75);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.field > div[id^="id_resources"] input,
.field > div[id^="id_instructors"] input{
  flex:none;
  margin:0;
  accent-color:var(--green);
}
label{
  display:block;
  margin:0 0 7px;
  font-size:12px;
  font-weight:800;
  color:var(--navy);
}
input,select,textarea{
  width:100%;
  border:1px solid rgba(217,208,196,.96);
  background:var(--surface);
  border-radius:13px;
  padding:11px 13px;
  font-size:13px;
  font-weight:500;
  color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(210,172,52,.12);
}
input[type=checkbox],input[type=radio]{width:auto}
.inline-readonly{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  padding:11px 14px;
  border:1px solid rgba(217,208,196,.96);
  border-radius:12px;
  background:#fcfaf4;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
}
.form-errors{
  background:#fdf0ee;
  color:#a7372c;
  border:1px solid #f4c7c1;
  padding:12px;
  border-radius:16px;
  margin-bottom:16px;
}

.messages{position:fixed;right:20px;top:24px;z-index:50}
.message{
  background:var(--surface);
  border-left:5px solid var(--accent);
  box-shadow:0 18px 34px rgba(28,24,17,.15);
  padding:12px 16px;
  border-radius:14px;
  margin-bottom:10px;
}
.file-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{font-size:12px;font-weight:900;color:#fff;border-radius:8px;padding:6px 8px}
.pdf{background:#e53935}
.docx{background:#2563eb}
.pptx{background:#f97316}
.xlsx{background:#16a34a}
.jpg,.png{background:#0891b2}
.zip{background:#ca8a04}
.other{background:#64748b}

.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(125deg, #10223e 0%, #163259 44%, #1b3e69 100%);
  border:1px solid rgba(210,172,52,.34);
  color:#fff;
  box-shadow:0 18px 40px rgba(10,18,33,.22);
}
.hero::before{
  content:"";
  position:absolute;
  right:-12%;
  bottom:-32%;
  width:360px;
  height:360px;
  background:radial-gradient(circle, rgba(210,172,52,.20) 0%, rgba(210,172,52,0) 70%);
}
.hero::after{
  content:"";
  position:absolute;
  top:-28%;
  right:24%;
  width:420px;
  height:420px;
  border:1px solid rgba(210,172,52,.12);
  border-radius:50%;
}
.hero-inner,
.logistics-strip{position:relative;z-index:1}
.hero-eyebrow{
  display:block;
  margin-bottom:8px;
  color:var(--accent-soft);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.hero-inner h1{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.15;
  font-weight:800;
}
.hero-inner p{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.84);
  font-size:13px;
}
.logistics-strip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(210,172,52,.42);
  font-weight:700;
  font-size:12px;
  backdrop-filter:blur(10px);
}
.transport{
  width:30px;
  height:30px;
  border-radius:10px;
  background:rgba(210,172,52,.12);
  display:grid;
  place-items:center;
}
.hero-cta{
  color:var(--accent-soft);
  border-color:rgba(210,172,52,.62);
  background:rgba(255,255,255,.04);
}
.hero-cta:hover{
  color:#fff;
  background:rgba(255,255,255,.10);
}
.hero-compact{
  padding:16px 18px;
  min-height:0;
}
.hero-admin{
  background:linear-gradient(125deg, #102342 0%, #183561 48%, #20467a 100%);
}
.admin-nav-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}
.admin-nav-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:132px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(23,52,93,.12);
  background:#fffdf9;
  color:var(--navy);
  box-shadow:0 12px 28px rgba(28,24,17,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.admin-nav-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(23,52,93,.10);
}
.admin-nav-card.tone-users{
  background:linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border-color:rgba(31,86,173,.18);
}
.admin-nav-card.tone-teachers{
  background:linear-gradient(180deg, #ffffff 0%, #eef8f0 100%);
  border-color:rgba(63,140,86,.18);
}
.admin-nav-card.tone-students{
  background:linear-gradient(180deg, #ffffff 0%, #fff8e8 100%);
  border-color:rgba(210,172,52,.22);
}
.admin-nav-card.tone-semesters{
  background:linear-gradient(180deg, #ffffff 0%, #f3f0ff 100%);
  border-color:rgba(109,84,193,.18);
}
.admin-nav-card.tone-courses{
  background:linear-gradient(180deg, #ffffff 0%, #eef8fb 100%);
  border-color:rgba(44,133,166,.18);
}
.admin-nav-card.tone-audit{
  background:linear-gradient(180deg, #ffffff 0%, #fff0ec 100%);
  border-color:rgba(184,69,57,.18);
}
.admin-nav-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.admin-nav-icon,
.admin-nav-open{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  flex:none;
}
.admin-nav-icon{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(23,52,93,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.admin-nav-card.tone-users .admin-nav-icon{color:#1d4f98}
.admin-nav-card.tone-teachers .admin-nav-icon{color:#2c7a46}
.admin-nav-card.tone-students .admin-nav-icon{color:#9f7800}
.admin-nav-card.tone-semesters .admin-nav-icon{color:#6b4fbf}
.admin-nav-card.tone-courses .admin-nav-icon{color:#167493}
.admin-nav-card.tone-audit .admin-nav-icon{color:#b84539}
.admin-nav-open{
  width:32px;
  height:32px;
  color:rgba(13,30,55,.56);
  background:rgba(255,255,255,.68);
}
.admin-nav-value{
  font-size:30px;
  font-weight:900;
  line-height:1;
  letter-spacing:-1px;
}
.admin-nav-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.admin-nav-copy b{
  font-size:13px;
  line-height:1.3;
}
.admin-nav-copy small{
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}
.admin-secondary-grid{
  align-items:start;
}
.admin-status-card{
  background:linear-gradient(180deg, #fffdfa 0%, #fdf6e9 100%);
  border-color:rgba(210,172,52,.22);
}
.admin-quick-card{
  background:linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border-color:rgba(23,52,93,.14);
}
.admin-status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.admin-status-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(23,52,93,.10);
  background:rgba(255,255,255,.84);
  color:var(--navy);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.admin-status-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(23,52,93,.08);
}
.admin-status-chip.is-amber{border-color:rgba(210,172,52,.28);background:#fff8e7}
.admin-status-chip.is-blue{border-color:rgba(31,86,173,.18);background:#eef4ff}
.admin-status-chip.is-red{border-color:rgba(184,69,57,.20);background:#fff1ed}
.admin-status-chip.is-green{border-color:rgba(63,140,86,.18);background:#eef8f0}
.admin-status-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(255,255,255,.86);
  display:grid;
  place-items:center;
  flex:none;
}
.admin-status-chip.is-amber .admin-status-icon{color:#a57400}
.admin-status-chip.is-blue .admin-status-icon{color:#1d4f98}
.admin-status-chip.is-red .admin-status-icon{color:#b84539}
.admin-status-chip.is-green .admin-status-icon{color:#2c7a46}
.admin-status-chip b{
  display:block;
  font-size:18px;
  line-height:1.05;
}
.admin-status-chip small{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.admin-metric-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.admin-metric-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(23,52,93,.10);
  background:#fff;
  color:var(--navy);
  font-size:11.5px;
  font-weight:700;
}
.admin-metric-pill:hover{
  border-color:rgba(23,52,93,.22);
}
.admin-metric-pill.static{
  background:#f8f5ef;
  color:var(--muted);
}
.admin-metric-pill .material-symbols-outlined{
  font-size:16px;
}
.admin-quick-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.admin-quick-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(23,52,93,.10);
  background:#fff;
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  line-height:1.45;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.admin-quick-link:hover{
  transform:translateY(-1px);
  border-color:rgba(23,52,93,.24);
  box-shadow:0 10px 22px rgba(23,52,93,.08);
}
.admin-quick-link.primary{
  background:linear-gradient(135deg, #17345d 0%, #21477c 100%);
  border-color:#17345d;
  color:#fff;
}
.admin-role-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.admin-role-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(23,52,93,.10);
}
.admin-role-pill b{
  font-size:12px;
  line-height:1;
}
.admin-role-pill small{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.admin-activity-card{
  background:linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-color:rgba(23,52,93,.14);
}
.admin-activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.admin-activity-item{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:start;
  padding:12px 0;
  border-bottom:1px solid rgba(23,52,93,.08);
}
.admin-activity-item:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.admin-activity-marker{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#edf4ff;
  color:#17345d;
  display:grid;
  place-items:center;
}
.admin-activity-marker .material-symbols-outlined{
  font-size:16px;
}
.admin-activity-content b{
  display:block;
  margin-bottom:3px;
  font-size:12.5px;
}
.admin-activity-content p,
.admin-activity-content small{
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}
.admin-activity-time{
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.admin-activity-sep{
  margin:0 4px;
}
.admin-empty-state{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0 4px;
}
.admin-empty-state .material-symbols-outlined{
  width:34px;
  height:34px;
  border-radius:10px;
  background:#eef4ff;
  color:var(--navy);
  display:grid;
  place-items:center;
}
.admin-empty-state b{
  display:block;
  margin-bottom:2px;
  font-size:13px;
  color:var(--navy);
}
.quiz-choice{display:block;border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0;background:#fbfdff}
.quiz-choice:hover{border-color:var(--accent)}
.correct{border-color:#22c55e;background:#f0fdf4}
.wrong{border-color:#ef4444;background:#fef2f2}
.timer{font-weight:900;color:var(--accent-strong);font-size:20px}
.rank-medal{
  width:76px;
  height:76px;
  border-radius:50%;
  background:linear-gradient(135deg,#ebcb67,#c89d22);
  display:grid;
  place-items:center;
  color:var(--navy);
  font-size:30px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(200,157,34,.3);
}

.login-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(360px,420px);
  gap:24px;
  align-items:stretch;
}
.login-banner{
  position:relative;
  min-height:540px;
  padding:42px;
  border-radius:30px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  background:url("../img/login_banner.png") center/cover no-repeat;
  box-shadow:0 24px 50px rgba(7,24,63,.22);
}
.login-banner::after{
  content:"";
  position:absolute;
  inset:auto -8% -20% auto;
  width:260px;
  height:260px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
}
.login-banner-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,24,63,.18) 0%, rgba(7,24,63,.28) 24%, rgba(7,24,63,.9) 100%),
    linear-gradient(90deg, rgba(7,24,63,.95) 0%, rgba(7,24,63,.42) 62%, rgba(7,24,63,.14) 100%);
}
.login-banner-content{
  position:relative;
  z-index:1;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.login-kicker{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:700;
  backdrop-filter:blur(8px);
}
.login-banner-content h1{
  margin:20px 0 14px;
  font-size:48px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
  text-shadow:0 10px 24px rgba(0,0,0,.18);
}
.login-banner-accent{
  width:52px;
  height:5px;
  border-radius:999px;
  background:var(--red);
  margin-bottom:18px;
}
.login-banner-content p{
  margin:0 0 18px;
  color:rgba(255,255,255,.86);
  font-size:17px;
  line-height:1.65;
}
.login-course-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:28px;
}
.login-course-meta span{
  color:rgba(255,255,255,.74);
  font-size:15px;
}

.login-form-box{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding:32px;
}
.login-form-box form{display:flex;flex-direction:column}
.login-logos{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
}
.login-logos img{
  height:60px;
  width:auto;
  object-fit:contain;
}
.login-form-box h2{
  margin:0;
  font-size:24px;
  font-weight:800;
  color:var(--navy);
}
.login-subtitle{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
}
.btn-google{
  justify-content:center;
  gap:12px;
  padding:14px 18px;
}
.google-mark{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid #e4ebf3;
  background:#fff;
  display:grid;
  place-items:center;
  color:#ea4335;
  font-weight:900;
}
.login-btn{
  min-height:56px;
  margin-top:4px;
  border-radius:16px;
  font-size:15px;
}
.login-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:13px;
}
.login-footer .material-symbols-outlined{
  color:#98a2b3;
  font-size:18px;
}
.login-register-link{
  margin-top:12px;
  text-align:center;
  font-size:13px;
  font-weight:700;
}
.filter-card{
  padding:20px;
}
.filter-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.filter-card label{
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  color:rgba(13,30,55,.82);
}
.filter-card input,
.filter-card select{
  min-height:46px;
  padding:11px 14px;
  font-size:13px;
  border-radius:12px;
}
.filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.filter-actions .btn{
  padding:11px 16px;
  font-size:13px;
}
.section-kicker{
  display:inline-flex;
  align-items:center;
  margin-bottom:8px;
  color:var(--accent-strong);
  font-size:10px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.table-panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.table-panel-title-rich{
  align-items:flex-start;
}
.table-panel-copy p{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.6;
}
.table-panel-title h3{
  margin-bottom:0;
  font-size:14px;
}
.semester-overview-grid{align-items:stretch}
.flow-guide-card,
.semester-summary-card{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.flow-guide-card{
  background:linear-gradient(180deg, #fffdfa 0%, #fbf3e3 100%);
  border-color:rgba(210,172,52,.26);
  box-shadow:0 14px 28px rgba(185,142,22,.08);
}
.semester-summary-card{
  background:linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border-color:rgba(23,52,93,.16);
  box-shadow:0 14px 28px rgba(23,52,93,.06);
}
.semester-table-card{
  border-color:rgba(23,52,93,.14);
}
.semester-table-card .table-panel-title{
  padding-bottom:12px;
  border-bottom:1px solid rgba(23,52,93,.08);
}
.flow-guide-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.flow-steps{
  display:grid;
  gap:10px;
}
.flow-step{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px;
  border:1px solid rgba(210,172,52,.24);
  border-left:4px solid rgba(210,172,52,.52);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}
.flow-step-index{
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg, #0f2342 0%, #1a4377 100%);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
  flex:none;
  box-shadow:0 6px 14px rgba(15,35,66,.18);
}
.flow-step b{
  display:block;
  margin-bottom:3px;
  font-size:12.5px;
  color:var(--navy);
}
.flow-step p{
  margin:0;
  font-size:11.5px;
  color:var(--muted);
  line-height:1.55;
}
.summary-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.summary-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff5df;
  border:1px solid rgba(210,172,52,.28);
}
.summary-note .material-symbols-outlined{
  color:var(--accent-strong);
  font-size:18px;
  margin-top:1px;
}
.summary-note p{
  margin:0;
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}
.summary-note-warning{
  margin-top:12px;
  background:#fff0eb;
  border-color:rgba(217,91,74,.24);
}
.summary-note-warning .material-symbols-outlined{
  color:#c34a3e;
}
.table-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.table-actions .btn{
  min-width:auto;
  font-weight:800;
}
.table-actions .material-symbols-outlined{
  font-size:17px;
}
.modal-layer{
  position:fixed;
  inset:0;
  z-index:70;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(10,23,48,.46);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  backdrop-filter:blur(4px);
}
.modal-layer.is-open{
  opacity:1;
  pointer-events:auto;
}
.modal-panel{
  width:min(540px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:var(--surface);
  border:1px solid rgba(217,208,196,.96);
  border-radius:22px;
  box-shadow:0 24px 60px rgba(9,17,31,.22);
}
.modal-panel-wide{
  width:min(720px, calc(100vw - 32px));
}
.modal-header,
.modal-footer{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:22px 22px 0;
}
.modal-header h3{
  margin:0;
  font-size:18px;
  color:var(--navy);
}
.modal-header p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6;
}
.modal-body{
  padding:18px 22px 10px;
}
.modal-footer{
  align-items:center;
  padding:0 22px 22px;
}
.modal-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
.modal-form-grid .field:last-child{
  grid-column:1 / -1;
}
.modal-close{
  width:40px;
  height:40px;
  border:1px solid rgba(217,208,196,.96);
  border-radius:50%;
  background:var(--surface);
  color:var(--navy);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.modal-close:hover{
  border-color:rgba(210,172,52,.55);
  background:#fff9ed;
}
.modal-errors{
  margin-bottom:16px;
}
.delete-check-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px;
  border-radius:18px;
  background:#fff8ef;
  border:1px solid rgba(210,172,52,.22);
}
.delete-check-card .material-symbols-outlined{
  color:#c34a3e;
}
.delete-check-card b{
  display:block;
  margin-bottom:4px;
  color:var(--navy);
  font-size:14px;
}

.features-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:12px;
}
.feature-item{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:18px;
}
.feature-item + .feature-item{border-left:1px solid #edf2f7}
.feature-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
  color:var(--blue);
  display:grid;
  place-items:center;
  flex:none;
  box-shadow:inset 0 0 0 1px rgba(13,79,170,.08);
}
.feature-icon .material-symbols-outlined{font-size:28px}
.feature-item b{
  display:block;
  font-size:15px;
  margin-bottom:4px;
}
.feature-item span{
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

/* --- Landing Page Styles --- */
.landing-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 50px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}
.landing-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:24px;
  color:var(--ink);
}
.landing-logo img{height:40px}
.landing-links{display:flex;gap:30px;font-weight:700}
.landing-links a{color:var(--ink)}
.landing-links a:hover{color:var(--red)}
.landing-actions{display:flex;gap:15px;align-items:center}
.btn-landing-primary{
  background:var(--accent);
  color:var(--navy);
  padding:12px 24px;
  border-radius:12px;
  font-weight:800;
}
.btn-landing-primary:hover{background:var(--accent-strong);color:var(--navy)}
.btn-landing-outline{
  border:1px solid var(--line);
  color:var(--ink);
  padding:10px 24px;
  border-radius:12px;
  font-weight:800;
}
.btn-landing-outline:hover{border-color:var(--blue);color:var(--blue)}

.landing-hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
  padding:80px 50px;
  background:#fff;
  overflow:hidden;
  position:relative;
}
.landing-hero-content h1{
  font-size:56px;
  font-weight:900;
  line-height:1.1;
  margin-bottom:20px;
  color:var(--ink);
}
.landing-hero-content p{
  font-size:18px;
  color:var(--muted);
  margin-bottom:40px;
  line-height:1.6;
}
.landing-hero-image{position:relative;text-align:center}
.landing-hero-image img{max-width:100%;position:relative;z-index:2}
.hero-shape-1{
  position:absolute;
  top:-20px;
  right:20px;
  font-size:40px;
  color:var(--red);
  z-index:1;
}
.hero-shape-2{
  position:absolute;
  bottom:20px;
  left:0;
  width:300px;
  height:300px;
  border:4px solid var(--red);
  border-radius:40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity:.3;
  z-index:0;
}
.hero-shape-3{
  position:absolute;
  top:10%;
  left:10%;
  font-size:30px;
  color:var(--yellow);
}

.landing-trusted{
  text-align:center;
  padding:50px;
  background:var(--soft);
}
.landing-trusted p{
  font-weight:800;
  color:var(--muted);
  margin-bottom:30px;
}
.trusted-logos{
  display:flex;
  justify-content:center;
  gap:50px;
  flex-wrap:wrap;
  font-size:24px;
  font-weight:900;
  color:var(--blue);
}
.trusted-logos span{display:flex;align-items:center;gap:10px}

.landing-categories{padding:80px 50px;background:#fff}
.cat-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:40px;
}
.cat-header h2{font-size:40px;font-weight:900;margin:0}
.cat-header p{
  color:var(--muted);
  max-width:500px;
  margin-top:15px;
}
.cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:20px;
}
.cat-card{
  background:var(--soft);
  border-radius:16px;
  padding:30px 20px;
  text-align:center;
  font-weight:800;
  transition:transform .3s ease;
}
.cat-card:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.cat-icon{font-size:50px;margin-bottom:15px}

.landing-about{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:60px;
  padding:80px 50px;
  background:#fff;
}
.about-image{position:relative;text-align:center}
.about-image-bg{
  position:absolute;
  top:10%;
  left:10%;
  right:10%;
  bottom:0;
  background:var(--line);
  border-radius:50% 50% 0 0;
  z-index:0;
}
.about-image img{position:relative;z-index:2;max-width:90%}
.about-content h2{
  font-size:40px;
  font-weight:900;
  margin-bottom:20px;
}
.about-content p{
  color:var(--muted);
  margin-bottom:30px;
  line-height:1.6;
}
.about-features{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:40px;
}
.about-feature{font-weight:800}
.about-feature span{color:var(--red);margin-right:10px}
.about-feature p{
  font-size:14px;
  font-weight:400;
  color:var(--muted);
  margin:5px 0 0 25px;
}

.course-hero{
  align-items:flex-start;
}
.course-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin:18px 0;
}
.mini-stat-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(23,52,93,.12);
  background:linear-gradient(180deg, #fffdf9 0%, #f7f8fb 100%);
  color:var(--navy);
  box-shadow:0 12px 24px rgba(23,52,93,.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.mini-stat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 32px rgba(23,52,93,.08);
  border-color:rgba(210,172,52,.32);
}
.mini-stat-card strong{
  font-size:28px;
  line-height:1;
  font-weight:900;
}
.mini-stat-card span{
  font-size:13px;
  font-weight:800;
}
.mini-stat-card small{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.5;
}
.static-card{
  cursor:default;
}
.course-top-grid,
.course-bottom-grid{
  align-items:start;
}
.course-panel{
  border-color:rgba(23,52,93,.12);
}
.workflow-list,
.workspace-list,
.group-board{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.workflow-step,
.workspace-row,
.group-board-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(23,52,93,.10);
  background:#fffdfa;
}
.workflow-step{
  flex-direction:column;
  gap:6px;
  background:rgba(255,255,255,.72);
}
.workflow-step b,
.workspace-main b,
.group-board-row b{
  font-size:13.5px;
  line-height:1.45;
}
.workflow-step small,
.workspace-main small,
.group-board-row small,
.workspace-main p{
  margin:0;
  font-size:12px;
  line-height:1.6;
}
.workspace-main,
.workspace-side{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.workspace-main{
  min-width:0;
  flex:1;
}
.workspace-title-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.workspace-actions,
.row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.workspace-link{
  color:inherit;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.workspace-link:hover{
  transform:translateY(-1px);
  border-color:rgba(210,172,52,.28);
  box-shadow:0 14px 24px rgba(23,52,93,.06);
  background:#fff;
}
.compact-list .workspace-row{
  padding:13px 15px;
}
.empty-state{
  padding:20px;
  border:1px dashed rgba(23,52,93,.16);
  border-radius:16px;
  color:var(--muted);
  font-size:12.5px;
  text-align:center;
  background:#fffcf6;
}
.stack-links{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.stack-links a{
  word-break:break-word;
}
.assignment-metric-grid{
  margin-top:16px;
}
.assignment-grading-table td{
  min-width:90px;
}
.assignment-grading-table th:nth-child(5),
.assignment-grading-table td:nth-child(5){
  min-width:180px;
}
.assignment-grading-table th:nth-child(7),
.assignment-grading-table td:nth-child(7){
  min-width:180px;
}
.table-note-input{
  min-width:170px;
}
.classroom-course-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
.classroom-course-card{
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(23,52,93,.12);
  background:#fff;
  box-shadow:0 18px 36px rgba(23,52,93,.08);
}
.classroom-course-card-link{
  display:block;
  color:inherit;
}
.classroom-course-banner{
  min-height:138px;
  padding:20px 22px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
}
.classroom-course-card.theme-a .classroom-course-banner{background:linear-gradient(135deg,#0f9b8e 0%,#18b0a1 100%)}
.classroom-course-card.theme-b .classroom-course-banner{background:linear-gradient(135deg,#ff8a63 0%,#ff9d6c 100%)}
.classroom-course-card.theme-c .classroom-course-banner{background:linear-gradient(135deg,#1b73d1 0%,#4d8cff 100%)}
.classroom-course-card.theme-d .classroom-course-banner{background:linear-gradient(135deg,#22416f 0%,#315993 100%)}
.classroom-course-banner small{
  font-size:11px;
  font-weight:700;
  opacity:.92;
}
.classroom-course-banner h3{
  margin:0;
  font-size:28px;
  line-height:1;
}
.classroom-course-banner p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.94);
}
.classroom-course-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 18px 14px;
}
.classroom-course-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.classroom-course-teachers{
  margin:0;
  font-size:12.5px;
  line-height:1.6;
  color:var(--ink);
}
.classroom-course-footer{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:0 18px 18px;
}
.classroom-banner-card{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:18px;
  padding:24px 26px;
  border-radius:28px;
  background:linear-gradient(135deg,#17345d 0%,#28548e 46%,#2f67ab 100%);
  box-shadow:0 26px 44px rgba(23,52,93,.18);
  color:#fff;
}
.classroom-banner-copy h1{
  margin-bottom:8px;
  color:#fff;
}
.classroom-banner-copy p{
  margin:0;
  color:rgba(255,255,255,.86);
  font-size:14px;
}
.classroom-banner-side{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:14px;
}
.classroom-chip-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.classroom-chip{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.classroom-chip strong{
  display:block;
  font-size:26px;
  line-height:1;
  font-weight:900;
}
.classroom-chip span{
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.84);
}
.classroom-tabbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0;
  padding:8px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(23,52,93,.10);
  box-shadow:0 12px 24px rgba(23,52,93,.05);
}
.classroom-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:90px;
  padding:10px 16px;
  border-radius:12px;
  color:rgba(13,30,55,.72);
  font-size:13px;
  font-weight:800;
}
.classroom-tab:hover{
  color:var(--navy);
  background:#f4f7fb;
}
.classroom-tab.active{
  color:#fff;
  background:linear-gradient(135deg,#17345d 0%,#28548e 100%);
  box-shadow:0 12px 22px rgba(23,52,93,.18);
}
.classroom-layout{
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.classroom-side-stack,
.classroom-feed-stack,
.classwork-section-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.classroom-side-card,
.classroom-toolbar-card,
.classwork-section-card{
  border-color:rgba(23,52,93,.12);
}
.classroom-info-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.classroom-info-list div{
  padding:12px 14px;
  border-radius:16px;
  background:#fffdfa;
  border:1px solid rgba(23,52,93,.08);
}
.classroom-info-list b{
  display:block;
  margin-bottom:4px;
  font-size:13px;
}
.classroom-info-list small{
  display:block;
  font-size:11.5px;
  line-height:1.55;
  color:var(--muted);
}
.classroom-feed-card{
  border-color:rgba(23,52,93,.12);
}
.classroom-feed-card.tone-announcement{background:linear-gradient(180deg,#fffdfa 0%,#fff7e8 100%)}
.classroom-feed-card.tone-assignment{background:linear-gradient(180deg,#ffffff 0%,#f4f9ff 100%)}
.classroom-feed-card.tone-quiz{background:linear-gradient(180deg,#ffffff 0%,#f1fbf7 100%)}
.classroom-feed-card.tone-lesson{background:linear-gradient(180deg,#ffffff 0%,#f7f5ff 100%)}
.classroom-feed-header,
.classroom-feed-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.classroom-feed-body{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:12px 0 0;
}
.classroom-feed-body h3{
  margin:0;
  font-size:18px;
}
.classroom-feed-body p{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:rgba(13,30,55,.84);
}
.feed-label{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#17345d;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.classwork-item-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.classwork-item-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid rgba(23,52,93,.08);
  background:#fffdfa;
}
.classwork-item-main{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  flex:1;
}
.classwork-item-main p{
  margin:4px 0 0;
  font-size:12px;
  line-height:1.55;
  color:var(--muted);
}
.classwork-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:#fff;
  flex:none;
}
.classwork-icon.resource{background:#d6614c}
.classwork-icon.assignment{background:#2c6fd4}
.classwork-icon.quiz{background:#2d9e72}
.attendance-bulk-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.attendance-student{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.attendance-avatar{
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(135deg,#ffd469,#f4a83a);
  box-shadow:0 10px 24px rgba(11,41,84,.14);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:none;
}
.attendance-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.attendance-avatar span{
  color:var(--navy);
  font-size:22px;
  font-weight:900;
}
.attendance-student-copy{
  min-width:0;
}
.attendance-bulk-bar select{
  flex:1 1 220px;
}

/* Compact spreadsheet-style attendance matrix */
.attendance-matrix-card{
  padding:0;
  overflow:hidden;
}
.attendance-matrix-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#fffdfa,#fff8e8);
}
.attendance-matrix-toolbar h3{
  margin:2px 0 8px;
}
.attendance-matrix-legend,
.matrix-save-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.attendance-matrix-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:11.5px;
  font-weight:700;
}
.legend-box{
  width:17px;
  height:17px;
  display:inline-block;
  border:2px solid #87929f;
  border-radius:4px;
  background:#fff;
}
.legend-box.present{
  border-color:var(--green);
  background:var(--green);
  box-shadow:inset 0 0 0 3px #fff;
}
.legend-pill,
.matrix-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  min-height:24px;
  padding:3px 6px;
  border-radius:7px;
  font-size:10px;
  font-style:normal;
  font-weight:900;
  line-height:1;
}
.legend-pill.present,
.matrix-status-select.status-present{background:#e7f4df;color:#315f20;border-color:#9cbc83}
.legend-pill.late,
.matrix-status-select.status-late,
.matrix-status-badge.late{background:#fff1c2;color:#8b6300;border-color:#e4c45b}
.legend-pill.leave,
.matrix-status-select.status-leave,
.matrix-status-badge.leave{background:#e8f0ff;color:#2357a5;border-color:#9db9e9}
.legend-pill.absent,
.matrix-status-select.status-absent{background:#fbe8e5;color:#a33a2e;border-color:#e5a39a}
.legend-pill.online,
.matrix-status-select.status-online,
.matrix-status-badge.online{background:#e7f7ee;color:#18734a;border-color:#9bd3b6}
.matrix-status-select.status-pending_leave,
.matrix-status-badge.pending_leave{background:#fff0df;color:#a45b13;border-color:#e7b77f}
.matrix-status-badge.missing{background:#f1eee8;color:#817a70}
.matrix-save-actions{
  justify-content:flex-end;
}
.matrix-save-state{
  color:var(--muted);
  font-size:11.5px;
  font-weight:700;
}
.matrix-save-state.dirty{
  color:#a45b13;
}
.attendance-matrix-wrap{
  max-height:calc(100vh - 310px);
  min-height:280px;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.attendance-matrix{
  width:max-content;
  min-width:100%;
  table-layout:fixed;
}
.attendance-matrix th,
.attendance-matrix td{
  height:49px;
  padding:6px;
  text-align:center;
  vertical-align:middle;
  border-right:1px solid rgba(217,208,196,.72);
  white-space:nowrap;
}
.attendance-matrix thead th{
  position:sticky;
  top:0;
  z-index:4;
  height:68px;
  background:#f6f0e5;
}
.attendance-matrix .matrix-sticky{
  position:sticky;
  z-index:2;
  text-align:left;
  background:#fffdfa;
}
.attendance-matrix tbody tr:nth-child(even) .matrix-sticky{
  background:#fffaf0;
}
.attendance-matrix tbody tr:hover .matrix-sticky{
  background:#f8f1e2;
}
.attendance-matrix thead .matrix-sticky{
  z-index:6;
  background:#f6f0e5;
}
.attendance-matrix .matrix-order{
  left:0;
  width:48px;
  min-width:48px;
  max-width:48px;
  text-align:center;
}
.attendance-matrix .matrix-student-id{
  left:48px;
  width:158px;
  min-width:158px;
  max-width:158px;
}
.attendance-matrix .matrix-student-name{
  left:206px;
  width:250px;
  min-width:250px;
  max-width:250px;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:5px 0 9px rgba(13,30,55,.06);
}
.attendance-matrix .matrix-student-name a{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.attendance-matrix .matrix-session-head,
.attendance-matrix .matrix-status-cell{
  width:74px;
  min-width:74px;
  max-width:74px;
}
.matrix-session-head > a{
  display:block;
  color:var(--navy);
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.1;
}
.matrix-session-head > small{
  display:block !important;
  margin:3px 0 1px;
  color:var(--muted);
  font-size:9.5px !important;
  font-weight:600;
}
.table-wrap .matrix-column-status{
  width:60px;
  height:22px;
  min-height:22px;
  margin:0;
  padding:1px 3px;
  border:1px solid #c7bda9;
  border-radius:6px;
  background:#fffdfa;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}
.table-wrap .matrix-status-select{
  width:62px;
  height:32px;
  min-height:32px;
  margin:0;
  padding:3px 15px 3px 5px;
  border-width:1px;
  border-style:solid;
  border-radius:7px;
  font-size:10px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  transition:box-shadow .12s ease,transform .12s ease;
}
.table-wrap .matrix-status-select:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(13,30,55,.10);
}
.table-wrap .matrix-status-select:focus-visible,
.table-wrap .matrix-column-status:focus-visible{
  outline:3px solid rgba(39,74,128,.25);
  outline-offset:2px;
}
.attendance-matrix .matrix-total{
  position:sticky;
  right:0;
  z-index:3;
  width:76px;
  min-width:76px;
  max-width:76px;
  background:#f7efd0;
  box-shadow:-5px 0 9px rgba(13,30,55,.07);
}
.attendance-matrix thead .matrix-total{
  z-index:6;
  background:#eadba4;
}
.attendance-matrix .matrix-total strong{
  display:inline;
  color:var(--navy);
  font-size:16px;
}
.attendance-matrix .matrix-total small{
  margin-left:2px;
  color:var(--muted);
}
.matrix-help{
  margin:0;
  padding:11px 20px 14px;
  border-top:1px solid var(--line);
  background:#fffdfa;
  font-size:11.5px;
}
.empty-state-card{
  padding:42px 24px;
  text-align:center;
}
.empty-state-card > .material-symbols-outlined{
  display:block;
  margin-bottom:8px;
  color:var(--accent-strong);
  font-size:48px;
}
.empty-state-card h3,
.empty-state-card p{
  margin:6px 0 14px;
}

@media(max-width:900px){
  .attendance-matrix-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .matrix-save-actions{
    width:100%;
    justify-content:flex-start;
  }
  .attendance-matrix-wrap{
    max-height:65vh;
  }
  .attendance-matrix .matrix-student-id{
    width:130px;
    min-width:130px;
    max-width:130px;
  }
  .attendance-matrix .matrix-student-name{
    left:178px;
    width:190px;
    min-width:190px;
    max-width:190px;
  }
}

@media(max-width:900px){
  .classroom-banner-card,
  .classroom-layout{
    grid-template-columns:1fr;
  }
  .classroom-chip-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .classroom-course-footer,
  .workspace-row,
  .group-board-row,
  .classwork-item-row{
    flex-direction:column;
    align-items:stretch;
  }
  .classwork-item-main{
    width:100%;
  }
  .workspace-actions,
  .row-actions{
    justify-content:flex-start;
  }
}

@media(max-width:1200px){
  .grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .login-grid{grid-template-columns:minmax(0,1.2fr) minmax(320px,400px)}
  .features-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-item:nth-child(3),
  .feature-item:nth-child(4){border-top:1px solid #edf2f7}
  .feature-item:nth-child(3){border-left:0}
}

@media(max-width:1024px){
  .page-shell{padding:18px}
  .auth-main{padding:24px 18px}
  .layout{min-height:calc(100vh - 36px)}
  .sidebar{width:280px}
  .main{padding:18px}
  .topbar{padding:20px}
  .login-grid{grid-template-columns:1fr}
  .login-banner{min-height:420px}
}

@media(max-width:900px){
  .page-shell{padding:0}
  .auth-main{
    align-items:flex-start;
    padding:16px;
  }
  .layout{
    min-height:100vh;
    border-radius:0;
    border:0;
    box-shadow:none;
    overflow:visible !important;
  }
  .sidebar{
    position:fixed;
    left:-280px;
    top:0;
    bottom:0;
    width:280px;
    height:100vh;
    background:linear-gradient(180deg, #0a1730 0%, #102342 56%, #14294d 100%);
    color:#fff;
    z-index:150;
    transition:left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:10px 0 30px rgba(0,0,0,0.25);
    display:block !important;
    overflow-y:auto;
  }
  .sidebar.active{
    left:0;
  }
  .sidebar::before,
  .sidebar::after{display:none}
  .sidebar .brand,
  .sidebar-logos,
  .user-profile-box,
  .nav-group{
    display:flex;
  }
  .sidebar .brand{
    border-bottom:1px solid rgba(210,172,52,.35);
    margin-bottom:16px;
    padding-bottom:14px;
  }
  .sidebar-logos{
    justify-content:flex-start;
    gap:8px;
    margin-bottom:18px;
  }
  .user-profile-box{
    margin-bottom:20px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(210,172,52,.18);
  }
  .nav-group{
    display:block;
    margin-top:4px;
  }
  .nav-desktop{
    display:flex !important;
    flex-direction:column;
    gap:6px;
  }
  .sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(2px);
    z-index:140;
    display:none;
  }
  .sidebar-overlay.active{
    display:block;
  }
  .nav-mobile{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:auto;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,252,247,.98);
    color:var(--ink);
    border-top:1px solid rgba(210,172,52,.24);
    z-index:40;
    box-shadow:0 -14px 32px rgba(15,23,42,.08);
    display:flex;
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
  }
  .nav-mobile .nav-link,
  .nav-mobile .nav-demo{
    position:relative;
    min-width:78px;
    padding:8px 10px;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    font-size:11px;
    color:var(--muted);
    text-align:center;
    white-space:nowrap;
  }
  .nav-mobile .nav-icon{
    width:32px;
    height:32px;
    border-radius:12px;
    background:#f8f1df;
    color:var(--navy);
  }
  .nav-mobile .nav-link:hover,
  .nav-mobile .nav-link.active,
  .nav-mobile .nav-demo:hover,
  .nav-mobile .nav-demo.active{
    color:var(--navy);
    background:#f3ecde;
    border-color:transparent;
  }
  .nav-mobile .nav-link.active .nav-icon,
  .nav-mobile .nav-demo.active .nav-icon{
    background:var(--navy);
    color:var(--accent);
  }
  .nav-mobile .nav-badge{
    position:absolute;
    top:4px;
    right:14px;
    min-width:20px;
    height:20px;
    font-size:11px;
    padding:0 5px;
  }
  .nav-mobile .nav-label{flex:none}

  .main{
    padding:16px 16px 92px;
    gap:16px;
  }
  .desktop-only{display:none !important}
  .mobile-only{display:flex !important}
  .mobile-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 16px;
    background:rgba(255, 252, 247, 0.96) !important;
    backdrop-filter:blur(12px);
    border:0;
    border-bottom:1px solid rgba(210,172,52,.12);
    border-radius:0 0 20px 20px;
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
    position:sticky;
    top:0;
    z-index:100;
    margin:-16px -16px 14px !important;
  }
  .mobile-header-brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:800;
  }
  .mobile-header-brand img{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#fff;
  }
  .mobile-brand-copy{
    display:flex;
    flex-direction:column;
    line-height:1.04;
  }
  .mobile-brand-copy span:last-child{
    font-size:13px;
    color:var(--muted);
    font-weight:600;
  }
  .mobile-action-bar{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
  }
  .mobile-action-bar .term-select{
    flex:1 1 180px;
    min-width:0;
  }
  .mobile-action-bar .btn-create{
    flex:1 1 150px;
  }
  .content{
    gap:16px;
    padding:10px 10px 96px !important;
  }
  .card{
    padding:14px 12px !important;
    border-radius:14px !important;
  }
  .table-wrap{
    overflow-x:auto !important;
    display:block;
    width:100%;
    -webkit-overflow-scrolling:touch;
  }
  .table-wrap table{
    min-width:680px !important;
  }
  .excel-table-wrap{
    overflow-x:auto !important;
    display:block;
    width:100%;
    -webkit-overflow-scrolling:touch;
  }
  .excel-table-wrap table{
    min-width:1200px !important;
  }
  .hero{
    padding:24px;
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-inner h1{font-size:25px}
  .logistics-strip{width:100%;flex-wrap:wrap}

  .grid-2,
  .grid-3,
  .grid-5{grid-template-columns:1fr}
  .grid-4{
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
  }
  .card.stat{
    padding:12px 10px !important;
    gap:10px !important;
  }
  .card.stat b{
    font-size:20px !important;
  }
  .card.stat span.muted{
    font-size:11px !important;
  }
  .card.stat .ico{
    width:42px !important;
    height:42px !important;
    border-radius:12px !important;
    font-size:18px !important;
  }
  .admin-nav-grid,
  .admin-status-grid,
  .admin-quick-links{
    grid-template-columns:1fr;
  }
  .admin-activity-item{
    grid-template-columns:auto 1fr;
  }
  .admin-activity-time{
    grid-column:2;
    white-space:normal;
  }
  .flow-guide-header,
  .table-panel-title,
  .modal-header,
  .modal-footer{
    flex-direction:column;
    align-items:stretch;
  }
  .modal-form-grid{grid-template-columns:1fr}
  .actions{flex-direction:column}
  .inline-form{align-items:stretch}
  .pagination-bar{
    flex-direction:column;
    align-items:stretch;
  }

  .login-banner{
    min-height:290px;
    padding:26px;
    border-radius:24px;
  }
  .login-banner-content{max-width:100%}
  .login-banner-content h1{font-size:30px}
  .login-banner-content p{font-size:14px}
  .login-course-meta span{font-size:13px}
  .login-form-box{padding:24px}
  .login-logos{
    justify-content:space-between;
    gap:10px;
  }
  .login-logos img{height:48px}
  .features-strip{grid-template-columns:1fr;padding:8px}
  .feature-item + .feature-item{
    border-left:0;
    border-top:1px solid #edf2f7;
  }

  .landing-nav{padding:15px 20px}
  .landing-links{display:none}
  .landing-hero,
  .landing-about{grid-template-columns:1fr;padding:40px 20px}
  .landing-hero-content h1{font-size:40px}
  .landing-categories{padding:40px 20px}
  .cat-header{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }
}

@media(max-width:640px){
  .topbar-left h2{font-size:20px}
  .card{padding:18px}
  .auth-main{padding:12px}
  .login-banner-content h1{font-size:26px}
  .login-subtitle{font-size:13px}
  .stat b{font-size:26px}
  .table-actions .btn{
    width:100%;
    justify-content:center;
  }
  .admin-nav-card{
    min-height:0;
    padding:14px;
  }
  .admin-nav-value{
    font-size:26px;
  }
  .admin-metric-pills,
  .admin-role-pills{
    flex-direction:column;
  }
  .admin-metric-pill,
  .admin-role-pill{
    width:100%;
    justify-content:flex-start;
  }
  .modal-layer{padding:12px}
  .modal-panel,
  .modal-panel-wide{
    width:calc(100vw - 24px);
  }
}

.context-lock{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #d8e2f0;background:#f7fbff;border-radius:10px;padding:12px 14px;margin-bottom:16px;color:#0b3f97}.context-lock span{color:#42526e}.danger-zone{border-color:#fecdd3;background:#fffafa}.danger-zone h3{color:#b91c1c}.workspace-actions .btn.danger,.btn.danger{background:#d91f2a;color:#fff;border-color:#d91f2a}.classwork-item-row .workspace-actions{display:flex;gap:8px;flex-wrap:wrap}.group-board-row.workspace-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px;background:#fff}.group-board-row .workspace-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:700px){.group-board-row.workspace-row{display:block}.group-board-row .workspace-actions{margin-top:10px}.context-lock{display:block}.context-lock b{display:block;margin-bottom:4px}}

/* Modal UI Additions */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 46, 0.62);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border:1px solid rgba(210,172,52,.68);
  border-top:5px solid var(--accent);
}
.modal-content.modal-lg {
  max-width: 920px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 4px;
}
.modal-close:hover {
  color: var(--red);
}
.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.remote-edit-body > .hero{
  margin:0 0 14px;
  padding:18px;
}
.remote-edit-body > .card{
  margin:0;
  box-shadow:none;
  border-color:var(--line);
}
.delete-record-label{
  margin:12px 0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f2ea;
  color:var(--navy);
  font-weight:800;
}
.delete-warning-box{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px 13px;
  border:1px solid #efb2aa;
  border-radius:10px;
  background:#fff1ef;
  color:#9c3024;
  font-size:12px;
}

/* Button Colors */
.btn-warning {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent-strong);
}
.btn-warning:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--navy);
}
.btn-danger {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn-danger:hover {
  background: #bd4336;
  border-color: #bd4336;
  color: white;
}
.btn-success {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-success:hover {
  background: #667e31;
  border-color: #667e31;
  color: white;
}

.classroom-view-tools {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin:-4px 0 14px;
}

.course-collapse-header {
  align-items:center;
  gap:12px;
}

.course-collapse-toggle {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:78px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #d8e2f0;
  border-radius:999px;
  background:#fff;
  color:#17345d;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(13,30,55,.06);
}

.course-collapse-toggle:hover {
  background:#eaf2ff;
  color:#0b57d0;
}

.course-collapse-toggle .material-symbols-outlined {
  font-size:18px;
}

.course-collapse-body[hidden] {
  display:none !important;
}

.is-course-collapsed {
  padding-bottom:14px;
}

.classwork-file-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.file-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  padding:7px 10px;
  border:1px solid #d8e2f0;
  border-radius:999px;
  background:#f7fbff;
  color:#17345d;
  font-size:12px;
  font-weight:800;
}

.file-pill:hover {
  background:#eaf2ff;
  color:#0b57d0;
}

.file-pill .material-symbols-outlined {
  font-size:16px;
  flex:none;
}

.file-pill small {
  color:var(--muted);
  font-weight:800;
}

@media(max-width: 700px) {
  .classroom-view-tools {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .classroom-view-tools .btn,
  .course-collapse-toggle {
    width:100%;
  }

  .course-collapse-header {
    display:grid !important;
    grid-template-columns:1fr;
  }

  .course-collapse-toggle {
    margin-left:0;
  }
}

/* Classroom-style course workspace refinements. Existing LMS actions remain intact. */
.classroom-banner-card,
.classroom-tabbar,
.classroom-layout,
.classwork-section-stack,
.student-grade-layout,
.private-score-card,
.student-private-score-card,
.student-grade-summary-card {
  letter-spacing:0;
}

.classroom-banner-card {
  position:relative;
  overflow:hidden;
  border-radius:18px;
  border:1px solid #d8e2f0;
  background:
    linear-gradient(115deg, rgba(13,30,55,.96) 0%, rgba(23,52,93,.92) 55%, rgba(210,172,52,.86) 100%);
  box-shadow:0 18px 48px rgba(13,30,55,.14);
}

.classroom-banner-card::after {
  content:"";
  position:absolute;
  right:28px;
  bottom:-26px;
  width:220px;
  height:140px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:22px;
  transform:rotate(-8deg);
  background:rgba(255,255,255,.08);
}

.classroom-banner-copy,
.classroom-banner-side {
  position:relative;
  z-index:1;
}

.classroom-banner-copy h1 {
  max-width:920px;
  font-size:clamp(28px, 4vw, 44px);
  line-height:1.18;
}

.course-teacher-summary {
  color:rgba(255,255,255,.88) !important;
}

.classroom-tabbar {
  position:sticky;
  top:0;
  z-index:20;
  gap:6px;
  padding:8px;
  margin:18px 0;
  border:1px solid #d8e2f0;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 28px rgba(13,30,55,.08);
  backdrop-filter:blur(12px);
}

.classroom-tab {
  position:relative;
  min-height:42px;
  border-radius:12px;
}

.classroom-tab.active {
  background:#eaf2ff;
  color:#0b57d0;
  box-shadow:inset 0 -3px 0 #0b57d0;
}

.classroom-tab-dot {
  width:8px;
  height:8px;
  margin-left:6px;
  border-radius:50%;
  background:#0b57d0;
  box-shadow:0 0 0 3px rgba(11,87,208,.12);
}

.classroom-layout {
  grid-template-columns:minmax(220px, 300px) minmax(0, 1fr);
  align-items:start;
}

.classroom-feed-stack {
  gap:14px;
}

.classroom-announce-card {
  display:grid;
  grid-template-columns:52px minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  border:1px solid #d8e2f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(13,30,55,.06);
}

.classroom-announce-card.student-score-alert {
  color:var(--ink);
}

.announce-avatar {
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#0b57d0;
  background:#dff3ff;
}

.announce-copy h3,
.private-score-item h3 {
  margin:0 0 4px;
}

.announce-copy p,
.private-score-item p {
  margin:0;
  color:var(--muted);
}

.classroom-feed-card {
  border:1px solid #d8e2f0;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(13,30,55,.06);
}

.classroom-feed-card.tone-score {
  background:linear-gradient(180deg,#fffefa 0%,#fff6d8 100%);
}

.private-score-card {
  border:1px solid #d8e2f0;
  border-radius:16px;
  background:#fff;
}

.private-score-settings {
  display:grid;
  grid-template-columns:minmax(180px, 1fr) 130px;
  gap:10px 12px;
  align-items:end;
  min-width:min(520px, 100%);
}

.private-score-settings label {
  display:grid;
  gap:6px;
  margin:0;
  color:var(--ink);
  font-weight:700;
}

.private-score-settings .inline-check {
  grid-template-columns:auto 1fr;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #d8e2f0;
  border-radius:12px;
  background:#f7fbff;
}

.private-score-table-wrap table {
  min-width:880px;
}

.private-score-table input {
  width:100%;
  min-height:38px;
}

.form-footer-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
}

.student-grade-layout {
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(280px, .8fr);
  gap:18px;
}

.private-score-list {
  display:grid;
  gap:12px;
}

.private-score-item {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  border:1px solid #d8e2f0;
  border-radius:16px;
  background:#f8fbff;
}

.private-score-item strong {
  min-width:112px;
  text-align:right;
  font-size:34px;
  line-height:1;
  color:#0b57d0;
}

.private-score-item strong small {
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

@media(max-width: 900px) {
  .classroom-announce-card,
  .student-grade-layout {
    grid-template-columns:1fr;
  }

  .announce-avatar {
    display:none;
  }

  .private-score-settings {
    grid-template-columns:1fr;
  }

  .private-score-item {
    align-items:flex-start;
  }
}

.course-join-share-card {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 220px;
  gap:24px;
  align-items:center;
  margin:18px 0;
  background:linear-gradient(135deg,#f5f9ff 0%,#eef7ff 100%);
}

.course-join-share-copy h3,
.join-course-confirm h2,
.join-course-confirm h3 {
  margin:6px 0;
}

.course-join-code {
  display:inline-block;
  margin:10px 0;
  padding:10px 18px;
  border:2px dashed #0b57d0;
  border-radius:14px;
  background:#fff;
  color:#0b57d0;
  font-size:36px;
  font-weight:900;
  letter-spacing:.24em;
  line-height:1.1;
}

.course-join-qr {
  display:grid;
  justify-items:center;
  gap:8px;
}

.course-join-qr img {
  width:200px;
  height:200px;
  padding:8px;
  border:1px solid #d8e2f0;
  border-radius:16px;
  background:#fff;
}

.join-course-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(300px, .8fr);
  gap:18px;
}

.join-code-form,
.join-confirm-form {
  display:grid;
  gap:12px;
}

.join-code-input {
  width:min(100%, 340px);
  min-height:62px;
  text-align:center;
  text-transform:uppercase;
  font-size:30px;
  font-weight:900;
  letter-spacing:.22em;
}

.join-code-input.compact {
  width:150px;
  min-height:44px;
  font-size:21px;
}

.dashboard-join-form {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.join-scan-help {
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
}

.join-scan-help > .material-symbols-outlined {
  font-size:72px;
  color:#0b57d0;
}

@media(max-width: 900px) {
  .course-join-share-card,
  .join-course-layout {
    grid-template-columns:1fr;
  }

  .course-join-qr {
    justify-self:start;
  }

  .dashboard-join-form {
    justify-content:flex-start;
  }
}

/* Classroom-inspired course workspace */
.course-context-nav {
  display:none;
}

.course-table-code {
  display:inline-flex;
  align-items:center;
  gap:9px;
}

.course-table-code > span {
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--row-course-soft);
  color:var(--row-course-color);
  font-weight:800;
}

body.course-context {
  background:#fff;
  color:#202124;
}

body.course-context .page-shell {
  padding:0;
}

body.course-context .layout {
  min-height:100vh;
  max-width:none;
  margin:0;
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}

body.course-context .sidebar {
  position:sticky;
  top:0;
  width:282px;
  height:100vh;
  padding:14px 12px;
  border-right:1px solid rgba(60,64,67,.12);
  background:#fff;
  color:#3c4043;
  backdrop-filter:blur(18px);
}

body.course-context .sidebar::before,
body.course-context .sidebar::after,
body.course-context .sidebar-logos,
body.course-context .user-profile-box {
  display:none;
}

body.course-context .brand {
  min-height:52px;
  margin:0 4px 14px;
  padding:8px 8px 14px;
  border-bottom:1px solid rgba(60,64,67,.12);
}

body.course-context .brand-mark {
  width:38px;
  height:38px;
  border-radius:8px;
  background:#fff;
  box-shadow:0 1px 3px rgba(60,64,67,.18);
}

body.course-context .brand-mark img {
  width:28px;
  height:28px;
}

body.course-context .brand-kicker {
  display:none;
}

body.course-context .brand-title {
  color:#5f6368;
  font-size:21px;
  font-weight:500;
}

body.course-context .nav-desktop > .nav-group,
body.course-context .nav-desktop > .nav-section {
  display:none;
}

body.course-context .course-context-nav {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-height:0;
  height:calc(100vh - 80px);
}

.course-simple-link,
.course-context-heading {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:44px;
  padding:8px 14px;
  border-radius:0 24px 24px 0;
  color:#3c4043;
  font-size:13px;
  font-weight:500;
}

.course-simple-link:hover {
  background:rgba(60,64,67,.08);
  color:#202124;
}

.course-context-heading {
  margin-top:12px;
  padding-top:13px;
  border-top:1px solid rgba(60,64,67,.12);
  font-weight:600;
}

.course-context-list {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-height:0;
  flex:1 1 auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:2px 4px 18px 0;
  scrollbar-width:thin;
  scrollbar-color:rgba(95,99,104,.35) transparent;
}

.course-context-list::-webkit-scrollbar { width:6px; }
.course-context-list::-webkit-scrollbar-thumb {
  border-radius:999px;
  background:rgba(95,99,104,.35);
}

.course-context-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:60px;
  padding:8px 10px;
  border-radius:0 28px 28px 0;
  color:#3c4043;
  transition:background-color .16s ease;
}

.course-context-link:hover {
  background:rgba(60,64,67,.07);
  color:#202124;
}

.course-context-link.active {
  background:var(--nav-course-soft);
  color:var(--nav-course-color);
}

.course-context-avatar {
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:none;
  background:var(--nav-course-color);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.course-context-copy {
  display:block;
  min-width:0;
  line-height:1.25;
}

.course-context-copy b,
.course-context-copy small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.course-context-copy b {
  font-size:12px;
  letter-spacing:.01em;
}

.course-context-copy small {
  margin-top:2px;
  color:#5f6368;
  font-size:11px;
  line-height:1.35;
}

.course-context-empty {
  padding:10px 14px;
  color:#80868b;
  font-size:12px;
}

body.course-context .main {
  padding:0;
  gap:0;
  background:#fff;
}

body.course-context .topbar {
  position:sticky;
  top:0;
  z-index:35;
  min-height:64px;
  padding:9px 24px;
  border-bottom:1px solid rgba(60,64,67,.14);
  background:#fff;
  box-shadow:none;
  backdrop-filter:blur(18px);
}

body.course-context .topbar-left h2 {
  margin:0;
  color:#3c4043;
  font-size:17px;
  font-weight:500;
}

body.course-context .topbar-left p,
body.course-context .topbar-right .term-select,
body.course-context .topbar-right .btn-create {
  display:none;
}

body.course-context .topbar .icon-button {
  border:0;
  background:transparent;
  box-shadow:none;
}

.course-breadcrumb {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

.course-breadcrumb a {
  color:#5f6368;
  font-size:20px;
}

.course-breadcrumb .material-symbols-outlined {
  color:#9aa0a6;
  font-size:18px;
}

.course-breadcrumb strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:500;
}

body.course-context .content {
  display:block;
  min-width:0;
  padding:22px 28px 56px;
  background:#fff;
}

body.course-context .card {
  border-color:rgba(60,64,67,.13);
  background:#fff;
  box-shadow:0 1px 3px rgba(60,64,67,.08);
  backdrop-filter:none;
}

body.course-context .card:hover {
  transform:none;
  box-shadow:0 2px 6px rgba(60,64,67,.11);
}

body.course-context .classroom-banner-card {
  max-width:1120px;
  margin:0 auto;
  padding:22px 26px;
  border:1px solid var(--course-border);
  border-left:7px solid var(--course-color);
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 12px rgba(60,64,67,.08);
  color:#202124;
}

body.course-context .classroom-banner-card::before,
body.course-context .classroom-banner-card::after {
  display:none;
}

body.course-context .classroom-banner-copy h1 {
  margin:3px 0 7px;
  color:#202124;
  font-size:clamp(24px,3vw,34px);
}

body.course-context .classroom-banner-copy p,
body.course-context .course-teacher-summary {
  color:#5f6368 !important;
}

body.course-context .classroom-banner-card .hero-eyebrow {
  color:var(--course-color);
}

body.course-context .classroom-chip {
  padding:11px 12px;
  border:1px solid var(--course-border);
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}

body.course-context .classroom-chip strong {
  color:var(--course-color);
  font-size:22px;
}

body.course-context .classroom-chip span {
  color:#5f6368;
  font-weight:500;
}

body.course-context .btn.primary,
body.course-context .feed-label {
  border-color:var(--course-color);
  background:var(--course-color);
  color:#fff;
}

body.course-context .classroom-tabbar {
  position:sticky;
  top:64px;
  z-index:30;
  justify-content:center;
  gap:22px;
  margin:18px -28px 22px;
  padding:0 28px;
  border-width:1px 0;
  border-color:rgba(60,64,67,.13);
  border-radius:0;
  background:#fff;
  box-shadow:none;
  backdrop-filter:blur(18px);
}

body.course-context .classroom-tab {
  min-height:50px;
  padding:12px 8px 10px;
  border-radius:0;
  color:#5f6368;
  font-weight:600;
}

body.course-context .classroom-tab:hover {
  background:var(--course-soft);
  color:var(--course-color);
}

body.course-context .classroom-tab.active {
  background:transparent;
  color:var(--course-color);
  box-shadow:inset 0 -3px 0 var(--course-color);
}

body.course-context .classroom-view-tools,
body.course-context .classroom-course-page,
body.course-context .course-join-share-card {
  width:100%;
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
}

body.course-context .classroom-view-tools {
  margin-bottom:16px;
}

body.course-context .course-join-share-card {
  border-color:var(--course-border);
  background:#fff;
}

body.course-context .course-join-code {
  border-color:var(--course-color);
  color:var(--course-color);
}

body.course-context .classroom-layout {
  grid-template-columns:minmax(300px,340px) minmax(0,1fr);
  gap:22px;
}

body.course-context .group-board-row.workspace-row {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:14px;
  padding:14px;
}

body.course-context .group-board-row .workspace-main {
  min-width:0;
  width:100%;
}

body.course-context .group-board-row .workspace-main > b {
  display:block;
  margin-bottom:6px;
  font-size:14px;
  line-height:1.35;
}

body.course-context .group-board-row .workspace-main > small {
  display:block;
  margin-top:5px;
  color:#5f6368;
  font-size:11px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

body.course-context .group-board-row .workspace-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

body.course-context .group-board-row .workspace-actions .btn {
  min-width:62px;
  padding:8px 12px;
  text-align:center;
}

body.course-context .classroom-side-card,
body.course-context .classroom-feed-card,
body.course-context .classroom-announce-card {
  border-color:rgba(60,64,67,.13);
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 3px rgba(60,64,67,.08);
}

body.course-context .classroom-feed-card.tone-announcement,
body.course-context .classroom-feed-card.tone-assignment,
body.course-context .classroom-feed-card.tone-quiz,
body.course-context .classroom-feed-card.tone-lesson {
  background:#fff;
}

body.course-context .announce-avatar {
  background:var(--course-soft);
  color:var(--course-color);
}

.classwork-classroom-layout {
  max-width:760px;
  margin:0 auto;
}

.classwork-topic-nav {
  position:sticky;
  top:132px;
  display:flex;
  flex-direction:column;
  gap:2px;
  max-height:calc(100vh - 150px);
  overflow:auto;
}

.classwork-topic-nav a {
  padding:10px 12px;
  border-radius:0 22px 22px 0;
  color:#5f6368;
  font-size:12px;
  font-weight:500;
}

.classwork-topic-nav a:hover,
.classwork-topic-nav a.active {
  background:var(--course-soft);
  color:var(--course-color);
}

.classwork-classroom-main {
  min-width:0;
}

body.course-context .classroom-toolbar-card {
  position:sticky;
  z-index:10;
  top:0;
  display:flex;
  align-items:center;
  min-height:70px;
  margin-bottom:18px;
  padding:10px 0 16px;
  border:0;
  border-bottom:1px solid rgba(60,64,67,.16);
  border-radius:0;
  background:rgba(255,255,255,.96);
  box-shadow:none;
  backdrop-filter:none;
}

body.course-context .classroom-toolbar-card .table-panel-title {
  width:100%;
  margin:0;
  align-items:center;
  justify-content:space-between;
}

.classwork-topic-picker { display:flex; align-items:center; gap:8px; margin-left:auto; color:#1967d2; }
.classwork-topic-picker select { width:170px; min-height:38px; padding:7px 28px 7px 8px; border:0; border-bottom:2px solid transparent; border-radius:0; color:#1967d2; font-weight:600; background:transparent; }
.classwork-topic-picker select:focus { border-bottom-color:#1967d2; outline:0; }

/* Classroom-style unified create menu */
.classroom-create-dropdown {
  position:relative;
  flex:0 0 auto;
}

.classroom-create-dropdown .dropdown-toggle-btn {
  min-width:100px;
  border-radius:22px;
  padding:9px 17px;
  box-shadow:0 2px 5px rgba(60,64,67,.24);
}

.classroom-create-menu {
  display:none;
  position:absolute;
  z-index:20;
  top:calc(100% + 8px);
  left:0;
  right:auto;
  width:246px;
  padding:8px 0;
  border:1px solid #dadce0;
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 14px rgba(60,64,67,.22);
}

.classroom-create-menu.is-open { display:block; }

.classroom-create-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  color:#202124;
  text-decoration:none;
}

.classroom-create-item:hover { background:#f1f3f4; }
.classroom-create-item b { display:block; font-size:14px; font-weight:600; }
.classroom-create-item small { display:block; margin-top:2px; color:#5f6368; font-size:11px; }
.cmi-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; flex:0 0 34px; }
.classroom-create-divider { height:1px; margin:6px 0; background:#e8eaed; }

@media(max-width:700px) {
  .classroom-create-menu { position:fixed; top:auto; right:16px; width:min(280px,calc(100vw - 32px)); }
}

body.course-context .classwork-section-stack {
  gap:0;
}

body.course-context .classwork-section-card {
  padding:11px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}

body.course-context .classwork-section-card:hover {
  box-shadow:none;
}

body.course-context .classwork-section-card > .table-panel-title {
  min-height:58px;
  margin-bottom:0;
  padding:0 12px 0 16px;
  border-bottom:1px solid var(--course-border);
}

body.course-context .classwork-section-card .section-kicker,
body.course-context .classwork-section-card .table-panel-copy h3 {
  color:var(--course-color);
}

body.course-context .classwork-section-card .table-panel-copy h3 { margin:0; font-size:16px; font-weight:600; }
body.course-context .classwork-section-card .table-panel-copy p { margin:3px 0 0; color:#5f6368; font-size:12px; }
.classwork-topic-actions { position:relative; flex:0 0 auto; }
.classwork-topic-actions summary { display:grid; width:36px; height:36px; place-items:center; border-radius:50%; color:#5f6368; cursor:pointer; list-style:none; }
.classwork-topic-actions summary::-webkit-details-marker { display:none; }
.classwork-topic-actions summary:hover { background:#f1f3f4; }
.classwork-topic-actions-menu { position:absolute; z-index:12; top:40px; right:0; width:210px; padding:6px 0; border:1px solid #dadce0; border-radius:8px; background:#fff; box-shadow:0 3px 12px rgba(60,64,67,.22); }
.classwork-topic-actions-menu a, .classwork-topic-actions-menu button { display:block; width:100%; padding:9px 14px; border:0; color:#202124; font:inherit; font-size:12px; text-align:left; text-decoration:none; background:#fff; cursor:pointer; }
.classwork-topic-actions-menu a:hover, .classwork-topic-actions-menu button:hover { background:#f1f3f4; }
.classwork-topic-actions-menu button:last-child { color:#c5221f; }

body.course-context .classwork-item-list {
  gap:0;
}

body.course-context .classwork-item-row {
  min-height:66px;
  padding:13px 16px;
  border:0;
  border-bottom:1px solid rgba(60,64,67,.14);
  border-radius:0;
  background:#fff;
}

body.course-context .classwork-item-row:hover {
  background:var(--course-soft);
}

body.course-context .classwork-icon {
  width:40px;
  height:40px;
  border-radius:50%;
}

body.course-context .classwork-item-row .btn {
  min-height:32px;
  padding:6px 9px;
  border-radius:8px;
  font-size:11px;
}

body.course-context .filter-card,
body.course-context .private-score-card,
body.course-context .student-private-score-card,
body.course-context .student-grade-summary-card {
  border-radius:12px;
}

body.course-context .hero {
  border:1px solid rgba(60,64,67,.14);
  border-left:6px solid var(--course-color);
  background:#fff;
  color:#202124;
  box-shadow:0 1px 3px rgba(60,64,67,.08);
}

body.course-context .hero::before,
body.course-context .hero::after {
  display:none;
}

body.course-context .hero-inner h1,
body.course-context .hero-inner h2,
body.course-context .hero-inner h3 {
  color:#202124;
}

body.course-context .hero-inner p {
  color:#5f6368;
}

body.course-context .hero-eyebrow {
  color:var(--course-color);
}

body.course-context .table-wrap,
body.course-context table,
body.course-context tbody tr,
body.course-context tbody tr:nth-child(even),
body.course-context .filter-card,
body.course-context .resource-reader-card,
body.course-context .resource-document-reader,
body.course-context .resource-workbook-reader,
body.course-context .resource-slide-card,
body.course-context .resource-sheet-block {
  background:#fff;
}

body.course-context .table-wrap thead th {
  background:#fff;
  border-bottom-color:rgba(60,64,67,.2);
  color:#3c4043;
}

body.course-context tbody tr:hover {
  background:#f8fafd;
}

body.course-context input,
body.course-context select,
body.course-context textarea,
body.course-context .btn:not(.primary):not(.danger):not(.btn-danger) {
  background:#fff;
}

body.course-context .resource-reader-card {
  border-radius:12px;
  padding:0;
  overflow:hidden;
}

body.course-context .resource-pdf-frame {
  height:calc(100vh - 190px);
  min-height:680px;
  border:0;
  border-radius:0;
  background:#fff;
}

@media(max-width: 1100px) {
  body.course-context .sidebar {
    width:230px;
  }

  .classwork-classroom-layout {
    grid-template-columns:160px minmax(0,1fr);
    gap:20px;
  }
}

@media(max-width: 900px) {
  body.course-context .sidebar {
    position:fixed;
    left:-280px;
    top:0;
    bottom:0;
    width:280px;
    height:100vh;
    padding:0;
    background:linear-gradient(180deg, #0a1730 0%, #102342 56%, #14294d 100%);
    border-right:1px solid rgba(255,255,255,0.08);
    display:block !important;
    overflow-y:auto;
  }
  body.course-context .sidebar.active {
    left:0;
  }
  body.course-context .sidebar-logos,
  body.course-context .user-profile-box {
    display:flex !important;
  }

  body.course-context .content {
    padding:14px 14px 100px;
  }

  body.course-context .classroom-tabbar {
    position: sticky !important;
    top: 58px !important;
    z-index: 90 !important;
    background: rgba(255, 252, 247, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    justify-content: flex-start;
    margin: -10px -10px 18px !important;
    padding: 10px 14px !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(210,172,52,.12) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
  }

  body.course-context .classroom-tab {
    min-width:max-content;
  }

  body.course-context .classroom-banner-card,
  body.course-context .classroom-layout,
  .classwork-classroom-layout {
    grid-template-columns:1fr;
  }

  .classwork-topic-nav {
    position:static;
    flex-direction:row;
    max-height:none;
    padding-bottom:6px;
    overflow-x:auto;
  }

  .classwork-topic-nav a {
    min-width:max-content;
    border-radius:18px;
  }
}

/* In-course file reader and student analytics */
.resource-reader-card{min-height:360px;padding:18px;overflow:hidden}
.resource-pdf-frame{display:block;width:100%;height:78vh;min-height:620px;border:1px solid var(--line);border-radius:14px;background:#f4f6f9}
.resource-image-reader{text-align:center;padding:18px;background:#f5f7fa;border-radius:14px}.resource-image-reader img{max-width:100%;max-height:78vh;object-fit:contain}
.resource-media-reader{display:block;width:min(100%,960px);max-height:76vh;margin:auto;border-radius:14px;background:#101318}.resource-audio-reader{display:block;width:min(100%,720px);margin:50px auto}
.resource-text-reader{min-height:420px;margin:0;padding:22px;overflow:auto;border-radius:14px;background:#f8fafc;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.75}
.resource-document-reader{max-width:900px;min-height:720px;margin:auto;padding:56px 64px;border:1px solid #dce2ea;border-radius:8px;background:#fff;box-shadow:0 12px 32px rgba(31,45,61,.08);font-size:16px;line-height:1.85}.resource-document-reader p{margin:0 0 14px}
.resource-slide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.resource-slide-card{position:relative;min-height:240px;padding:42px 28px 28px;border:1px solid #dce2ea;border-radius:14px;background:linear-gradient(145deg,#fff,#f7f9fc);box-shadow:0 8px 22px rgba(31,45,61,.06)}.resource-slide-card>span{position:absolute;top:14px;right:16px;color:var(--muted);font-size:12px}.resource-slide-card h3{font-size:22px}.resource-slide-card p{margin:9px 0}
.resource-sheet-block{margin-bottom:24px}.resource-sheet-block table td{min-width:120px;white-space:pre-wrap}.resource-unsupported-state .material-symbols-outlined{font-size:52px;color:var(--muted)}
.student-course-dashboard{display:grid;gap:18px;margin-bottom:22px}.student-overview-head{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,var(--course-soft,#edf5ff),#fff)}.student-overview-head h2{margin:4px 0}.student-group-chips{display:flex;gap:8px;flex-wrap:wrap}.student-overview-score{display:grid;min-width:150px;text-align:center}.student-overview-score strong{font-size:42px;color:var(--course-color,var(--accent))}.student-overview-score span{color:var(--muted)}
.student-course-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.student-metric-card{position:relative;display:grid;gap:4px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}.student-metric-card>.material-symbols-outlined{position:absolute;right:14px;top:14px;padding:8px;border-radius:12px;background:var(--course-soft,#edf5ff);color:var(--course-color,var(--accent))}.student-metric-card strong{font-size:30px;color:#1f2937}.student-metric-card b{font-size:15px}.student-metric-card small{color:var(--muted)}.metric-progress{height:6px;margin-top:10px;border-radius:999px;background:#e8edf3;overflow:hidden}.metric-progress i{display:block;height:100%;max-width:100%;border-radius:inherit;background:var(--course-color,var(--accent))}
.student-insight-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.student-insight{display:flex;gap:12px;padding:14px;border-radius:14px;border:1px solid var(--line);background:#f8fafc}.student-insight p{margin:4px 0 0;color:var(--muted);font-size:13px}.student-insight.good{border-color:#b9e2cd;background:#f0fbf5}.student-insight.good>.material-symbols-outlined{color:#18794e}.student-insight.warning{border-color:#f1d18a;background:#fff8e6}.student-insight.warning>.material-symbols-outlined{color:#9a6700}
.student-status-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.student-status-summary span{padding:8px 12px;border-radius:999px;background:#f2f5f9;color:var(--muted)}.student-status-summary b{color:#1f2937}.student-course-table .table-subtext{display:block;margin-top:4px;color:var(--muted)}
@media(max-width:980px){.student-course-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-document-reader{padding:36px 30px}.resource-pdf-frame{min-height:520px}}
@media(max-width:600px){.student-overview-head{align-items:flex-start;flex-direction:column}.student-overview-score{text-align:left}.student-course-metrics{grid-template-columns:1fr}.resource-document-reader{padding:24px 18px}.resource-slide-grid{grid-template-columns:1fr}.resource-pdf-frame{min-height:440px}}

.quiz-bank-import-card{margin-bottom:18px;padding:0;overflow:hidden}.quiz-bank-import-card>summary{display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;background:linear-gradient(135deg,var(--course-soft,#eef5ff),#fff)}.quiz-bank-import-card>summary::-webkit-details-marker{display:none}.quiz-bank-import-card>summary>span:nth-child(2){display:grid;flex:1;gap:3px}.quiz-bank-import-card>summary small{font-weight:400;color:var(--muted)}.quiz-bank-import-card[open]>summary{border-bottom:1px solid var(--line)}.quiz-bank-import-form{padding:20px}.quiz-bank-notice{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;padding:14px;border:1px solid #b8d5f5;border-radius:14px;background:#f2f8ff}.quiz-bank-notice p{margin:0}.code-source-input{min-height:270px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.55;tab-size:2}.danger-check{margin:10px 0 18px;color:#8a3b12}.quiz-result-dashboard{margin-top:18px}.quiz-result-metrics{margin-bottom:18px}

/* Shared import / add controls for record-management tables */
.table-data-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:14px 16px;border:1px solid #c8d8ee;border-radius:16px;background:linear-gradient(135deg,#f3f8ff,#fff);box-shadow:0 7px 20px rgba(31,78,121,.06)}
.table-data-tools-copy{display:flex;align-items:center;gap:12px;min-width:220px}.table-data-tools-copy>.material-symbols-outlined{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#dbeafe;color:#1d4f91}.table-data-tools-copy>div{display:grid;gap:2px}.table-data-tools-copy small{color:var(--muted)}
.table-data-tools-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.table-data-tools-actions .btn{display:inline-flex;align-items:center;gap:6px}.table-data-tools-actions .material-symbols-outlined{font-size:19px}
.table-import-modal .modal-header p{margin:4px 0 0}.import-instruction{display:flex;gap:10px;align-items:flex-start;margin-bottom:16px;padding:13px 14px;border:1px solid #b8d5f5;border-radius:12px;background:#f2f8ff;color:#244b76}.import-instruction p{margin:0}.table-import-modal input[type="file"]{width:100%;padding:12px;border:1px dashed #9ab4d5;border-radius:12px;background:#fafcff}
.error-text{display:block;margin-top:5px;color:#b42318}.field-error input,.field-error select{border-color:#d92d20}
@media(max-width:760px){.table-data-tools{align-items:stretch;flex-direction:column}.table-data-tools-actions{justify-content:flex-start}.table-data-tools-actions .btn{flex:1;justify-content:center;min-width:140px}}

/* One filtering and pagination pattern shared by all list tables */
.filter-card .filter-stack{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end}.filter-card .filter-actions{align-self:end}.table-filter-standard{margin-bottom:16px}
.pagination-standard{padding-top:14px;border-top:1px solid var(--line)}.pagination-summary{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.pagination-summary>.material-symbols-outlined{font-size:20px;color:var(--accent)}.pagination-pages{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.page-button{display:grid;place-items:center;min-width:34px;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-size:13px;font-weight:700}.page-button:hover{border-color:var(--accent);background:#f1f6ff;color:var(--accent)}.page-button.active{border-color:var(--accent);background:var(--accent);color:#fff}.page-ellipsis{padding:0 4px;color:var(--muted)}
@media(max-width:700px){.filter-card .filter-stack{grid-template-columns:1fr}.pagination-pages{justify-content:flex-start}}

/* Friendly character-based attendance experience */
.attendance-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.attendance-summary-heading h2{margin:3px 0;font-size:22px}.attendance-summary-heading p{margin:0;color:var(--muted);font-size:12px}.attendance-summary-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#eef4ff;color:#2563eb;font-size:25px}.attendance-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}.attendance-course-card{padding:16px;border:1px solid #e0e7f0;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff)}.attendance-course-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.attendance-course-head b{font-size:11px;color:#2563eb}.attendance-course-head h3{margin:3px 0 0;font-size:14px;line-height:1.45}.attendance-ring{display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:50%;background:conic-gradient(#2563eb var(--attendance-percent),#e8eef7 0);position:relative}.attendance-ring:after{content:'';position:absolute;inset:7px;border-radius:50%;background:#fff}.attendance-ring strong,.attendance-ring small{position:relative;z-index:1}.attendance-ring strong{font-size:16px;line-height:1}.attendance-ring small{font-size:8px;color:#64748b}.attendance-ring.good{background:conic-gradient(#16a34a var(--attendance-percent),#e6f4ea 0)}.attendance-ring.warn{background:conic-gradient(#d97706 var(--attendance-percent),#fff0d9 0)}.attendance-ring.bad{background:conic-gradient(#dc2626 var(--attendance-percent),#fee2e2 0)}.attendance-course-bar{height:7px;margin:14px 0;border-radius:999px;background:#edf1f6;overflow:hidden}.attendance-course-bar i{display:block;height:100%;border-radius:inherit;background:#2563eb}.attendance-count-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.attendance-count-grid span{display:grid;justify-items:center;padding:7px 3px;border-radius:10px}.attendance-count-grid b{font-size:15px}.attendance-count-grid small{font-size:9px}.attendance-count-grid .present{background:#e9f8ef;color:#15803d}.attendance-count-grid .late{background:#fff3df;color:#b45309}.attendance-count-grid .leave{background:#eaf2ff;color:#2563eb}.attendance-count-grid .absent{background:#ffebeb;color:#b91c1c}.attendance-course-foot{display:flex;justify-content:space-between;gap:8px;margin-top:12px;color:#64748b;font-size:10px}.attendance-course-foot span{font-weight:800;color:#2563eb}
.attendance-game-hero{align-items:center;background:linear-gradient(135deg,#dcecff 0%,#f7fbff 54%,#fff2cf 100%);color:#17345d}
.attendance-game-hero .hero-inner h1{color:#17345d}.attendance-game-hero .hero-inner p{color:#47617f}
.attendance-hero-stats{display:flex;gap:10px;flex-wrap:wrap}.attendance-hero-stats span{display:grid;min-width:96px;padding:12px 16px;border:1px solid rgba(31,78,121,.12);border-radius:18px;background:rgba(255,255,255,.76);color:#47617f;text-align:center}.attendance-hero-stats strong{font-size:27px;line-height:1;color:#17345d}
.live-checkin-control{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:16px;border:1px solid #d9e2ee;background:linear-gradient(135deg,#f8fafc,#fff)}
.live-checkin-control.is-open{border-color:#8bd3aa;background:linear-gradient(135deg,#eafbf2,#fff)}
.live-checkin-control-copy{display:flex;align-items:center;gap:14px}.live-checkin-control-copy h3{margin:0 0 4px}.live-checkin-control-copy p{margin:0;color:var(--muted)}
.live-indicator{display:inline-flex;align-items:center;gap:7px;min-width:max-content;padding:8px 11px;border-radius:999px;background:#eef2f6;color:#526173;font-size:12px;font-weight:800}.live-indicator i,.live-checkin-pill i{width:9px;height:9px;border-radius:50%;background:#8b98a7}.is-open .live-indicator{background:#daf5e5;color:#087a42}.is-open .live-indicator i,.live-checkin-pill i{background:#17a45b;box-shadow:0 0 0 5px rgba(23,164,91,.12);animation:checkinPulse 1.7s infinite}
.live-checkin-form{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.live-checkin-form label{margin:0;font-size:12px;font-weight:800}.live-checkin-form select{width:auto;min-width:110px}.live-checkin-form .material-symbols-outlined{font-size:19px}
@keyframes checkinPulse{50%{box-shadow:0 0 0 9px rgba(23,164,91,0)}}
.attendance-card-board{padding:0;overflow:hidden}.attendance-board-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:20px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f6faff,#fff9ea)}.attendance-board-toolbar h2{margin:3px 0}.attendance-board-toolbar p{margin:0;color:var(--muted)}
.attendance-board-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.attendance-board-actions select{width:auto;min-width:175px}.attendance-all-present{border-color:#22a861!important;background:#e9fbf1!important;color:#087a42!important}
.attendance-character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:18px;padding:22px;background:#f5f8fc}
.attendance-character-card{position:relative;display:flex;align-items:center;flex-direction:column;min-width:0;padding:20px 16px 16px;border:2px solid #d8e1ed;border-radius:24px;background:#fff;box-shadow:0 10px 28px rgba(31,63,104,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.attendance-character-card:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(31,63,104,.14)}
.attendance-character-card.status-present{border-color:#60cb91}.attendance-character-card.status-late{border-color:#ff9c50}.attendance-character-card.status-leave{border-color:#eac64f}.attendance-character-card.status-absent{border-color:#ef7777}.attendance-character-card.status-unmarked{border-style:dashed}
.character-select{position:absolute;left:13px;top:13px;display:grid;cursor:pointer}.character-select input{position:absolute;opacity:0}.character-select .material-symbols-outlined{color:#9aa7b5}.character-select:has(input:checked) .material-symbols-outlined{color:#2d70ce;font-variation-settings:'FILL' 1}.character-select:has(input:checked) .material-symbols-outlined{font-size:0}.character-select:has(input:checked) .material-symbols-outlined::after{content:'check_box';font-family:'Material Symbols Outlined';font-size:24px}
.character-status-bubble{position:absolute;right:12px;top:12px;padding:6px 9px;border-radius:999px;background:#eef2f6;color:#617082;font-size:10px;font-weight:900}.status-present .character-status-bubble{background:#dcf7e8;color:#087a42}.status-absent .character-status-bubble{background:#ffe3e3;color:#b42328}.status-leave .character-status-bubble{background:#fff5c9;color:#836900}.status-late .character-status-bubble{background:#ffead8;color:#a8470a}
.character-portrait,.student-live-avatar{display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#dff0ff,#a9d2ff)}.character-portrait{width:116px;height:116px;margin:8px 0 12px;border:5px solid #fff;border-radius:36px;box-shadow:0 10px 25px rgba(36,77,126,.18)}.character-portrait img,.student-live-avatar img{width:100%;height:100%;object-fit:cover}.character-portrait>span{font-size:67px;filter:drop-shadow(0 6px 5px rgba(28,55,87,.12))}.tone-violet{background:linear-gradient(145deg,#eee4ff,#c8aaff)}.tone-mint{background:linear-gradient(145deg,#dff9ee,#9ee2c5)}.tone-orange{background:linear-gradient(145deg,#fff0d8,#ffc479)}.tone-rose{background:linear-gradient(145deg,#ffe7ed,#ffafc4)}.tone-yellow{background:linear-gradient(145deg,#fff8ce,#f7d86c)}.tone-indigo{background:linear-gradient(145deg,#e3e9ff,#aebdff)}.tone-teal{background:linear-gradient(145deg,#dff9f9,#91dcdc)}
.character-identity{min-height:68px;text-align:center}.character-identity small{color:#617082;font-weight:800}.character-identity h3{margin:3px 0 1px;overflow:hidden;text-overflow:ellipsis;font-size:18px;white-space:nowrap}.character-identity span{color:var(--muted);font-size:11px}
.character-status-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%;margin-top:12px}.status-btn{min-height:38px;padding:7px 5px;border:0;border-radius:10px;color:#fff;font:inherit;font-size:12px;font-weight:900;cursor:pointer;opacity:.82;transition:transform .15s ease,opacity .15s ease}.status-btn:hover,.status-btn.active{transform:translateY(-2px);opacity:1;box-shadow:0 6px 14px rgba(20,40,70,.16)}.status-btn.present{background:#20b463}.status-btn.absent{background:#e84f52}.status-btn.leave{background:#d5a900}.status-btn.late{background:#f47b20}
.character-leave-note{width:100%;margin-top:10px;padding:7px 9px;border-radius:9px;background:#fff8d8;color:#7e6700;font-size:11px}.character-remark{width:100%;margin-top:10px!important;padding:9px 10px!important;font-size:11px!important}.character-profile-link{margin-top:8px;color:#55708e;font-size:10.5px;font-weight:700}
.attendance-board-save{display:flex;justify-content:flex-end;padding:0 22px 18px;background:#f5f8fc}.attendance-board-save .material-symbols-outlined{font-size:18px}

.student-checkin-zone{margin:0 0 18px;padding:20px;border:1px solid #9bdcb8;border-radius:24px;background:linear-gradient(135deg,#edfff5,#f7fbff 55%,#fff7dc);box-shadow:0 13px 34px rgba(21,121,72,.09)}
.student-checkin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.student-checkin-heading h2{margin:2px 0 4px;color:#154f36}.student-checkin-heading p{margin:0;color:#547266}.live-checkin-pill{display:inline-flex;align-items:center;gap:9px;min-width:max-content;padding:9px 13px;border-radius:999px;background:#dff8e9;color:#087a42;font-size:12px;font-weight:900}
.student-checkin-grid{display:grid;gap:12px}.student-live-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:15px;border:1px solid rgba(34,168,97,.2);border-radius:18px;background:rgba(255,255,255,.9)}.student-live-card.is-complete{border-color:#7fcca1;background:#f1fff7}.student-live-avatar{width:74px;height:74px;border-radius:23px;box-shadow:0 8px 20px rgba(31,78,121,.14)}.student-live-avatar>span{font-size:46px}.student-live-course{color:#16834c;font-size:11px;font-weight:900;text-transform:uppercase}.student-live-copy h3{margin:3px 0;font-size:17px}.student-live-copy p,.student-live-copy small{margin:0;color:var(--muted)}
.student-checkin-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:11px 17px;border:0;border-radius:15px;background:linear-gradient(135deg,#20b463,#087a42);box-shadow:0 9px 19px rgba(8,122,66,.24);color:#fff;font:inherit;font-weight:900;cursor:pointer}.student-checkin-button:hover{transform:translateY(-2px);box-shadow:0 12px 23px rgba(8,122,66,.3)}.checkin-success,.checkin-blocked{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:13px;font-size:12px;font-weight:900}.checkin-success{background:#dcf7e8;color:#087a42}.checkin-blocked{background:#fff0d8;color:#984613}
@media(max-width:900px){.live-checkin-control,.attendance-board-toolbar,.student-checkin-heading{align-items:stretch;flex-direction:column}.live-checkin-form,.attendance-board-actions{justify-content:flex-start}.student-live-card{grid-template-columns:auto 1fr}.student-live-action{grid-column:1/-1}.student-checkin-button{width:100%}}
@media(max-width:600px){.attendance-character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.attendance-character-card{padding:16px 9px 12px;border-radius:18px}.character-portrait{width:82px;height:82px;border-radius:26px}.character-portrait>span{font-size:49px}.character-identity h3{font-size:14px}.character-status-buttons{grid-template-columns:repeat(2,1fr)}.status-btn{min-height:34px}.character-remark,.character-profile-link{display:none}.student-live-card{grid-template-columns:1fr;text-align:center}.student-live-avatar{margin:auto}.attendance-hero-stats{width:100%}.attendance-hero-stats span{flex:1}.live-checkin-form select,.live-checkin-form .btn{width:100%}}

/* Sequential attendance: one student at a time */
.attendance-focus-hero{border-left:6px solid #2563eb!important;background:#fff!important;color:#172033!important}.attendance-focus-hero .hero-inner h1{color:#172033!important}.attendance-focus-hero .hero-inner p{color:#5e6b7c!important}
.attendance-howto{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:14px;margin-bottom:16px;padding:14px 18px;border:1px solid #dbe3ee;border-radius:16px;background:#f8fafc}.attendance-howto>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.attendance-howto>div>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#172033;color:#fff;font-size:13px;font-weight:900}.attendance-howto b{font-size:13px}.attendance-howto small{color:#64748b}.attendance-howto>i{color:#94a3b8;font-size:20px}
.attendance-focus-layout{display:grid;grid-template-columns:255px minmax(0,1fr);align-items:start;gap:16px;margin-bottom:16px}.attendance-status-guide{position:sticky;top:16px;padding:18px}.attendance-status-guide h3{margin:3px 0 14px}.status-guide-item{display:flex;align-items:center;gap:11px;margin-top:9px;padding:11px;border:1px solid #e3e8ef;border-radius:12px;background:#fff}.status-guide-item>.material-symbols-outlined{font-size:26px}.status-guide-item div{display:grid}.status-guide-item small{color:#64748b;font-size:10.5px}.status-guide-item.present>.material-symbols-outlined{color:#15803d}.status-guide-item.late>.material-symbols-outlined{color:#b45309}.status-guide-item.leave>.material-symbols-outlined{color:#2563eb}.status-guide-item.absent>.material-symbols-outlined{color:#b91c1c}.status-guide-item.unmarked>.material-symbols-outlined{color:#64748b}.keyboard-help{margin:14px 0 0;padding:10px;border-radius:10px;background:#f1f5f9;color:#526173;font-size:11px;line-height:1.6}
.attendance-focus-stage{min-height:650px;padding:22px}.focus-progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.focus-progress-head>div{display:grid}.focus-progress-head>div>b{font-size:18px}.focus-progress-head>span{color:#64748b;font-size:12px;font-weight:800}.focus-progress-track{height:9px;margin:11px 0 20px;border-radius:999px;background:#e8edf4;overflow:hidden}.focus-progress-track i{display:block;height:100%;max-width:100%;border-radius:inherit;background:#2563eb;transition:width .3s ease}
.focus-student-card{position:relative;display:grid;justify-items:center;max-width:760px;margin:0 auto;padding:12px 34px 24px;text-align:center}.focus-student-status{position:absolute;right:0;top:0;display:grid;justify-items:end}.focus-student-status span{color:#64748b;font-size:10px}.focus-student-status b{padding:7px 11px;border-radius:999px;background:#eef2f7;color:#526173;font-size:12px}.focus-student-card.status-present .focus-student-status b{background:#dcfce7;color:#166534}.focus-student-card.status-late .focus-student-status b{background:#ffedd5;color:#9a3412}.focus-student-card.status-leave .focus-student-status b{background:#dbeafe;color:#1d4ed8}.focus-student-card.status-absent .focus-student-status b{background:#fee2e2;color:#991b1b}
.focus-student-portrait{display:grid;place-items:center;width:240px;height:240px;margin:5px 0 16px;border:7px solid #fff;border-radius:54px;overflow:hidden;box-shadow:0 16px 36px rgba(30,55,90,.18)}.focus-student-portrait img{width:100%;height:100%;object-fit:cover}.focus-student-portrait>span{font-size:142px;filter:drop-shadow(0 8px 7px rgba(28,55,87,.12))}.focus-student-identity{min-height:104px}.focus-student-id{display:inline-flex;padding:6px 11px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:900}.focus-student-identity h2{margin:7px 0 2px;font-size:30px;line-height:1.2;color:#172033}.focus-student-identity p{margin:0;color:#64748b}.focus-leave-alert{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:9px;padding:8px 12px;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800}
.focus-attendance-form{width:100%;margin-top:12px}.focus-attendance-form>label{display:block;margin-bottom:6px;text-align:left;color:#475569;font-size:11px;font-weight:800}.focus-attendance-form>input{width:100%;margin-bottom:12px}.focus-status-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.focus-status-button{display:grid;justify-items:center;gap:2px;min-height:105px;padding:12px 8px;border:2px solid transparent;border-radius:16px;background:#fff;font:inherit;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.focus-status-button:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(31,50,80,.15)}.focus-status-button>.material-symbols-outlined{font-size:32px}.focus-status-button b{font-size:15px}.focus-status-button small{font-size:9.5px}.focus-status-button.present{border-color:#15803d;color:#166534;background:#f0fdf4}.focus-status-button.late{border-color:#b45309;color:#9a3412;background:#fff7ed}.focus-status-button.leave{border-color:#2563eb;color:#1d4ed8;background:#eff6ff}.focus-status-button.absent{border-color:#b91c1c;color:#991b1b;background:#fef2f2}.focus-student-navigation{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:15px}.focus-student-navigation .btn{display:inline-flex;align-items:center;gap:5px}.focus-student-navigation .material-symbols-outlined{font-size:18px}.attendance-finished-state{display:grid;justify-items:center;max-width:560px;margin:75px auto 0;text-align:center}.attendance-finished-state>.material-symbols-outlined{font-size:82px;color:#15803d}.attendance-finished-state h2{margin:8px 0}.attendance-finished-state p{color:#64748b}.attendance-finished-state .actions{justify-content:center}
.attendance-roster-review{padding:0;overflow:hidden}.attendance-roster-review>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer;list-style:none;background:#fff}.attendance-roster-review>summary::-webkit-details-marker{display:none}.attendance-roster-review>summary h3{margin:2px 0}.attendance-roster-review>summary p{margin:0;color:#64748b}.attendance-roster-review[open]>summary{border-bottom:1px solid #e2e8f0}.attendance-roster-review[open]>summary>.material-symbols-outlined{transform:rotate(180deg)}.attendance-roster-body{padding:18px}.attendance-search-form{display:grid;grid-template-columns:2fr 1fr 150px auto;align-items:end;gap:10px;margin-bottom:14px}.attendance-search-form label{display:block;margin-bottom:5px;font-size:11px;font-weight:800}.attendance-search-form .filter-actions{display:flex;gap:7px}.attendance-status-label{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900}.attendance-status-label.present{background:#dcfce7;color:#166534}.attendance-status-label.late{background:#ffedd5;color:#9a3412}.attendance-status-label.leave{background:#dbeafe;color:#1d4ed8}.attendance-status-label.absent{background:#fee2e2;color:#991b1b}.attendance-status-label.unmarked{background:#e2e8f0;color:#475569}

/* Clear, column-specific filtering for attendance sessions */
.attendance-session-help{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.attendance-session-help>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:13px 15px;border:1px solid #dbe3ee;border-radius:14px;background:#fff}.attendance-session-help .material-symbols-outlined{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eff6ff;color:#2563eb}.attendance-session-help b{font-size:12px}.attendance-session-help small{color:#64748b;font-size:10px}.attendance-session-filter-card{margin-bottom:14px}.attendance-session-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end;gap:11px}.attendance-session-filter-grid label{display:block;margin-bottom:5px;font-size:11px;font-weight:800}.attendance-session-filter-grid .attendance-wide-search{grid-column:span 2}.attendance-session-filter-grid .filter-actions{display:flex;gap:7px}.attendance-session-filter-grid .btn{display:inline-flex;align-items:center;gap:5px}.attendance-session-filter-grid .material-symbols-outlined{font-size:18px}
.attendance-result-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:11px 20px;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;background:#f8fafc}.attendance-result-legend span{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800}.attendance-result-legend i{width:10px;height:10px;border-radius:3px}.attendance-result-legend .present i{background:#15803d}.attendance-result-legend .late i{background:#b45309}.attendance-result-legend .leave i{background:#2563eb}.attendance-result-legend .absent i{background:#b91c1c}.attendance-result-legend small{color:#64748b}.attendance-session-list-card{padding:0;overflow:hidden}.attendance-session-list-card>.table-panel-title{padding:18px 20px}.attendance-session-table td{vertical-align:middle}.attendance-session-table td>small{display:block;margin-top:4px;color:#64748b}.attendance-session-table th:nth-child(1){min-width:125px}.attendance-session-table th:nth-child(2){min-width:115px}.attendance-session-table th:nth-child(3){min-width:180px}.attendance-session-table th:nth-child(4){min-width:150px}.attendance-session-table th:nth-child(5){min-width:210px}.attendance-session-table th:nth-child(6){min-width:260px}.attendance-progress-label{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:10.5px;font-weight:900}.attendance-progress-label.open{background:#dcfce7;color:#166534}.attendance-progress-label.open i{width:8px;height:8px;border-radius:50%;background:#16a34a;animation:checkinPulse 1.7s infinite}.attendance-progress-label.not-started{background:#e2e8f0;color:#475569}.attendance-progress-label.in-progress{background:#ffedd5;color:#9a3412}.attendance-progress-label.completed{background:#dbeafe;color:#1d4ed8}.attendance-result-chips{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.attendance-result-chips span{padding:5px 7px;border-radius:8px;font-size:10px;font-weight:900;text-align:center}.attendance-result-chips .present{background:#dcfce7;color:#166534}.attendance-result-chips .late{background:#ffedd5;color:#9a3412}.attendance-result-chips .leave{background:#dbeafe;color:#1d4ed8}.attendance-result-chips .absent{background:#fee2e2;color:#991b1b}.attendance-row-actions{display:flex;gap:6px;flex-wrap:wrap}.attendance-row-actions .btn{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:7px 9px}.attendance-row-actions .material-symbols-outlined{font-size:17px}
@media(max-width:1050px){.attendance-focus-layout{grid-template-columns:1fr}.attendance-status-guide{position:static;display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.attendance-status-guide>h3,.attendance-status-guide>.section-kicker,.attendance-status-guide>.keyboard-help{grid-column:1/-1}.status-guide-item{margin:0;padding:8px}.attendance-session-filter-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}
@media(max-width:760px){.attendance-howto{grid-template-columns:1fr}.attendance-howto>i{display:none}.attendance-status-guide{grid-template-columns:1fr 1fr}.focus-status-actions{grid-template-columns:1fr 1fr}.attendance-search-form{grid-template-columns:1fr}.attendance-session-help{grid-template-columns:1fr}.attendance-session-filter-grid{grid-template-columns:1fr}.attendance-session-filter-grid .attendance-wide-search{grid-column:auto}.attendance-session-filter-grid .filter-actions{flex-wrap:wrap}.attendance-session-table-wrap{overflow:visible}.attendance-session-table,.attendance-session-table tbody,.attendance-session-table tr,.attendance-session-table td{display:block;width:100%}.attendance-session-table thead{display:none}.attendance-session-table tr{margin:12px;border:1px solid #dbe3ee;border-radius:14px;overflow:hidden;width:calc(100% - 24px)}.attendance-session-table td{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:10px 12px}.attendance-session-table td::before{font-size:10px;font-weight:900;color:#64748b}.attendance-session-table td:nth-child(1)::before{content:'วันที่'}.attendance-session-table td:nth-child(2)::before{content:'กลุ่ม / คาบ'}.attendance-session-table td:nth-child(3)::before{content:'หัวข้อ'}.attendance-session-table td:nth-child(4)::before{content:'ความคืบหน้า'}.attendance-session-table td:nth-child(5)::before{content:'สรุปสถานะ'}.attendance-session-table td:nth-child(6)::before{content:'จัดการ'}.attendance-row-actions{display:grid;grid-template-columns:1fr 1fr}.attendance-row-actions .btn.primary{grid-column:1/-1;justify-content:center}}
@media(max-width:520px){.attendance-focus-stage{min-height:0;padding:14px}.focus-student-card{padding:8px 0 16px}.focus-student-status{position:static;justify-items:center;margin-bottom:8px}.focus-student-portrait{width:185px;height:185px;border-radius:42px}.focus-student-portrait>span{font-size:108px}.focus-student-identity h2{font-size:23px}.focus-status-actions{gap:7px}.focus-status-button{min-height:94px}.attendance-status-guide{grid-template-columns:1fr}.focus-student-navigation .btn{padding:7px;font-size:10px}.attendance-howto{padding:12px}}
