:root {
  font-family: "DM Sans", sans-serif;
  color: #252638;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #252638;
  --muted: #85879b;
  --purple: #1d3c78;
  --line: #ececf3;
  --surface: #fff;
}

* { box-sizing: border-box; font-family: "DM Sans", Arial, sans-serif; }
html, body, button, input, select, textarea { font-family: "DM Sans", Arial, sans-serif; }
strong, h1, h2, h3, h4, .brand, .brand-mark, .hero-card h2, .stat-number, .agenda-date strong, .obe-percentage, .exam-timer, .modal-title, .large-course-top strong { font-family: "Manrope", "DM Sans", Arial, sans-serif; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7f8fc; }
body { zoom: var(--font-scale, 1); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.app-shell[hidden], .public-landing[hidden] { display: none; }
.public-landing { min-height: 100vh; display: flex; flex-direction: column; padding: 24px clamp(18px,5vw,72px) 18px; background: radial-gradient(ellipse at top right,#ebf0fb 0,transparent 42%),#f7f8fc; }
.public-landing-header { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; width: 100%; margin: 0 auto; }
.public-landing-main { flex: 1; width: 100%; max-width: 1280px; margin: 34px auto; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,.75fr); gap: 22px; align-items: stretch; }
.public-slide { min-height: 480px; display: flex; align-items: flex-end; padding: clamp(28px,5vw,64px); border-radius: 22px; color: #fff; background: linear-gradient(135deg,#40337b,#705be1); background-position: center; background-size: cover; overflow: hidden; box-shadow: 0 20px 55px #35296c22; }
.public-slide-copy { max-width: 680px; }
.public-slide h1 { font-size: clamp(30px,4.5vw,56px); line-height: 1.08; letter-spacing: -.04em; white-space: pre-line; margin: 18px 0 14px; }
.public-slide p { max-width: 560px; color: #eef3fc; font-size: 17px; line-height: 1.65; }
.public-slide .hero-pagination { position: static; justify-content: flex-start; margin-top: 28px; }
.public-slide .hero-pagination button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 50%; background: #ffffff70; }
.public-slide .hero-pagination button.selected { width: 24px; border-radius: 8px; background: white; }
.public-login-card { align-self: center; width: 100%; padding: clamp(22px,3vw,34px); border: 1px solid #eceaf5; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px #2720430d; }
.public-login-card h2 { margin: 8px 0; font-size: 25px; }
.public-login-card > p { color: #77798c; font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.public-google-action { width: 100%; min-height: 44px; margin-top: 9px; justify-content: center; font-size: 15px; }
.public-login-card > small { display: block; margin-top: 18px; color: #85879b; font-size: 13.5px; line-height: 1.6; }
.public-landing-footer { max-width: 1440px; width: 100%; margin: 0 auto; padding-top: 12px; color: #9091a0; font-size: 13.5px; }
.font-size-control { border: 1px solid #e8e6ef; border-radius: 7px; background: #fff; color: #6250b4; padding: 7px 9px; font-weight: 700; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid #eeedf4; position: fixed; inset: 0 auto 0 0; z-index: 5; padding: 28px 17px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px Manrope, sans-serif; letter-spacing: -.8px; color: #252638; padding: 0 13px; }
.brand-mark { width: 32px; height: 32px; background: #1d3c78; border-radius: 11px; color: white; font: 800 21px Manrope, "DM Sans", Arial, sans-serif; display: grid; place-items: center; letter-spacing: -2px; padding: 0 3px 3px 0; }
.brand-light { font-weight: 500; color: #7d7d90; }
.brand-mark.brand-mark-text { font-size: 15px; letter-spacing: -.5px; padding: 0; }
.brand-logo { display: block; order: -1; flex: 0 0 auto; max-height: 36px; max-width: 84px; width: auto; height: auto; object-fit: contain; }
.public-landing-header .brand-logo { max-height: 44px; max-width: 160px; }
.brand-logo[hidden] { display: none; }
.brand-name { white-space: nowrap; }
/* Logo unggahan menggantikan ikon "CS"; tulisan "LMS - CS by Coursesus.online" tetap di sebelahnya. */
.brand.has-logo .brand-mark { display: none; }
.branding-preview { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px; border: 1px dashed #d9d6ea; border-radius: 10px; background: #fbfaff; }
.branding-preview img { max-height: 56px; max-width: 220px; object-fit: contain; }
.branding-preview.favicon img { width: 32px; height: 32px; }
.workspace-label { font-size: 12.5px; font-weight: 700; color: #b0b0bd; letter-spacing: 1.4px; padding: 42px 14px 12px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { height: 43px; border-radius: 9px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: #77798c; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { background: #f8f6ff; color: var(--purple); }
.nav-link.active { background: #f1effc; color: #1d3c78; }
.nav-icon { width: 17px; font-size: 17px; text-align: center; color: currentColor; }
.nav-count { margin-left: auto; font-size: 13px; color: #9293a2; background: #f2f2f6; border-radius: 5px; padding: 3px 6px; }
.sidebar-bottom { margin-top: auto; }
.help-card { background: #f7f5ff; border-radius: 12px; margin: 0 3px 18px; padding: 15px; color: #353248; }
.help-icon { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; color: #7159d2; background: #ebe7ff; margin-bottom: 11px; font-size: 15px; }
.help-card strong { font-size: 13.5px; }
.help-card p { font-size: 12.5px; line-height: 1.6; color: #88869a; margin: 6px 0 11px; }
.help-card a { font-size: 12.5px; font-weight: 700; color: #7159d2; }
.help-card a span { padding-left: 4px; }
.profile-card { width: 100%; border: 0; border-top: 1px solid #f0f0f4; background: white; padding: 16px 5px 3px; display: flex; align-items: center; gap: 10px; text-align: left; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.avatar-purple { color: #1d3c78; background: #e3eaf8; }
.profile-copy { display: grid; gap: 3px; flex: 1; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { font-size: 12.5px; color: #9999a8; }
.profile-menu { color: #9d9eae; }
.main-area { margin-left: 248px; min-height: 100vh; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ececf2; padding: 0 42px; background: rgba(255,255,255,.78); }
.breadcrumbs { font-size: 13px; color: #9b9caa; display: flex; gap: 10px; align-items: center; }
.breadcrumbs strong { color: #4f5061; font-weight: 600; }
.crumb-divider { color: #c4c4ce; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.language-toggle { border: 1px solid #ecebf2; border-radius: 7px; background: #fff; color: #65667a; padding: 8px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.language-toggle span { color: #c5c4ce; padding: 0 3px; }
.google-login { white-space: nowrap; padding: 8px 11px; }
.google-login:disabled { cursor: not-allowed; opacity: .65; }
.hero-admin-edit { position: absolute; z-index: 4; top: 12px; right: 13px; border: 1px solid #ffffff55; border-radius: 6px; background: #3c32736e; color: white; padding: 6px 8px; font-size: 12px; }
.icon-button { background: transparent; border: 0; width: 28px; height: 28px; color: #75778a; font-size: 20px; position: relative; }
.notification-button { font-size: 17px; }
.notification-button i { width: 5px; height: 5px; border-radius: 50%; background: #ed8377; position: absolute; top: 4px; right: 5px; border: 1px solid white; }
.topbar-divider { width: 1px; height: 23px; background: #e8e8ef; margin: 0 2px; }
.semester-pill { background: #fff; border: 1px solid #eeeeF4; border-radius: 7px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: #737588; display: flex; align-items: center; gap: 8px; }
.semester-pill>span:last-child { color: #a1a2b0; margin-left: 3px; }
.live-dot { width: 6px; height: 6px; display: inline-block; background: #62c49a; border-radius: 50%; margin-right: 5px; }
.content { max-width: 1420px; margin: 0 auto; padding: 31px 42px 22px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { font-size: 12px; letter-spacing: 1px; color: #a4a4b3; font-weight: 700; }
.sun-icon { color: #e9a64c; font-size: 13px; margin-right: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 23px Manrope, sans-serif; letter-spacing: -.7px; margin: 9px 0 5px; color: #28293a; }
.wave { font: 18px "DM Sans", Arial, sans-serif; }
.welcome-subtitle { font-size: 13px; color: #9293a4; margin: 0; }
.button { border: 0; border-radius: 7px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px #4538902b; }
.button-primary { color: white; background: #1d3c78; }
.button-primary span { font-size: 12px; }
.hero-card { height: 208px; border-radius: 13px; background: linear-gradient(105deg, #4d3b9d 0%, #6952c6 48%, #8875df 100%); position: relative; overflow: hidden; padding: 27px 32px; color: white; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { color: #dad4ff; font-size: 12px; letter-spacing: 1.3px; font-weight: 700; }
.sparkle { color: #ffd17a; padding-right: 5px; }
.hero-card h2 { font: 700 23px Manrope, sans-serif; line-height: 1.25; letter-spacing: -.6px; margin: 11px 0 7px; }
.hero-card h2 em { color: #f4d18b; font-style: normal; }
.hero-card p { color: #e1dcff; font-size: 12.5px; margin: 0 0 12px; }
.hero-card p strong { color: white; }
.button-light { background: #fff; color: #1f3a6e; padding: 8px 11px; font-size: 12px; }
.button-light span { font-size: 14px; }
.hero-art { position: absolute; inset: 0 3% 0 53%; opacity: .96; }
.art-orbit { border: 1px solid #ffffff24; position: absolute; border-radius: 50%; }
.orbit-one { width: 235px; height: 235px; top: 31px; right: 76px; }
.orbit-two { width: 168px; height: 168px; top: 65px; right: 109px; }
.art-sun { position: absolute; width: 99px; height: 99px; border-radius: 50%; background: linear-gradient(145deg,#fee0a0,#e9a8a2); top: 41px; right: 73px; box-shadow: 0 0 55px #ffc9856b; }
.art-book { position: absolute; width: 141px; height: 55px; right: 98px; bottom: 20px; display: flex; gap: 3px; transform: rotate(-8deg); }
.art-book span { flex: 1; background: linear-gradient(145deg,#f8f3e6,#c6bbec); border-radius: 5px 5px 2px 2px; box-shadow: 1px -3px 0 #fffcf6; }
.art-book span:nth-child(2) { background: linear-gradient(145deg,#f3c0ae,#d67fa2); transform: translateY(-7px); }
.art-book span:nth-child(3) { background: linear-gradient(145deg,#bad8ce,#79b6ae); }
.art-plant { position: absolute; font: 72px "DM Sans", Arial, sans-serif; color: #a2d0b9; transform: rotate(45deg); }
.plant-one { right: 38px; bottom: 27px; }
.plant-two { right: 234px; bottom: 19px; transform: rotate(-37deg) scale(.75); color: #e6c28b; }
.art-star { position: absolute; color: #f5d78e; }
.star-one { right: 258px; top: 43px; }
.star-two { right: 20px; top: 83px; font-size: 14px; color: #c8baff; }
.hero-pagination { display: flex; gap: 4px; position: absolute; bottom: 12px; left: 32px; }
.hero-pagination span { width: 4px; height: 4px; border-radius: 5px; background: #ffffff65; }
.hero-pagination .selected { width: 15px; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 17px 0 20px; }
.stat-card { border: 1px solid #efeff4; background: white; border-radius: 10px; min-height: 122px; padding: 13px 15px 11px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; }
.icon-lilac { background: #eef3fc; color: #795fdf; }
.icon-mint { background: #e9f8f1; color: #48ae83; }
.icon-peach { background: #fff2e7; color: #e89b55; }
.icon-sky { background: #eaf5fd; color: #5ba8d7; }
.stat-trend { color: #7d7e8d; background: #f5f5f8; border-radius: 5px; padding: 4px 6px; font-size: 12px; }
.stat-trend:first-letter { color: #58b78b; }
.trend-good { color: #49a27b; background: #eff9f4; }
.trend-warm { color: #d8924f; background: #fff7ed; }
.stat-number { font: 700 22px Manrope,sans-serif; letter-spacing: -.6px; margin-top: 8px; }
.stat-unit { font-size: 13.5px; color: #848597; font-weight: 500; }
.stat-label { font-size: 12.5px; color: #848596; margin-top: 3px; }
.stat-foot { font-size: 12px; color: #a0a1ae; margin-top: 8px; display: flex; justify-content: space-between; }
.stat-foot span { color: #b2b2bf; }
.mini-progress { height: 4px; background: #f0eff7; border-radius: 5px; margin-top: 9px; overflow: hidden; }
.mini-progress span, .obe-track span { height: 100%; display: block; border-radius: 5px; background: linear-gradient(90deg,#8068de,#a28ee9); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.47fr) minmax(250px,.9fr); gap: 15px; }
.panel { border: 1px solid #efeff4; background: white; border-radius: 10px; padding: 17px 17px 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h3 { font: 700 15px Manrope,sans-serif; margin: 5px 0 0; letter-spacing: -.3px; }
.heading-count { font: 600 12px "DM Sans", Arial, sans-serif; color: #9998a9; background: #f4f3f8; border-radius: 4px; padding: 3px 5px; vertical-align: 2px; margin-left: 4px; }
.text-link { color: #24489a; font-size: 12px; font-weight: 700; }
.text-link span { font-size: 13.5px; margin-left: 4px; }
.course-list { margin-top: 14px; }
.course-row { display: flex; align-items: center; border-top: 1px solid #f3f3f6; padding: 11px 0; gap: 10px; }
.course-art { width: 37px; height: 37px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; font-size: 16.5px; font-weight: 700; }
.art-green { background: #e6f4eb; color: #579c75; }
.art-orange { background: #fff0df; color: #d68c46; }
.art-blue { background: #e9f2fb; color: #538fbe; }
.art-pink { background: #f8eaf1; color: #bd729b; }
.course-info { flex: 1; min-width: 0; }
.course-info strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-info small { display: block; color: #a0a0ae; font-size: 12px; margin-top: 4px; }
.course-progress-wrap { width: 94px; }
.course-progress-label { display: flex; justify-content: space-between; color: #8d8d9d; font-size: 11px; margin-bottom: 5px; }
.course-progress { height: 4px; border-radius: 5px; background: #f1f0f5; overflow: hidden; }
.course-progress span { height: 100%; display: block; border-radius: 5px; background: #8b76df; }
.course-arrow { color: #babac5; font-size: 16px; margin-left: 6px; }
.right-column { display: grid; gap: 13px; align-content: start; }
.more-button { color: #9d9dac; border: 0; background: none; font-size: 17px; letter-spacing: 1px; }
.agenda-list { margin-top: 11px; }
.agenda-row { display: flex; align-items: center; border-top: 1px solid #f3f3f6; padding: 10px 0; gap: 9px; }
.agenda-date { width: 32px; height: 34px; border: 1px solid #f0eff4; border-radius: 6px; display: grid; align-content: center; text-align: center; line-height: 1.2; flex: 0 0 auto; }
.agenda-date strong { font: 700 13.5px Manrope, "DM Sans", Arial, sans-serif; }
.agenda-date small { color: #9999a9; font-size: 11px; }
.agenda-copy { flex: 1; min-width: 0; }
.agenda-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-copy small { display: block; color: #a0a0ae; font-size: 11px; margin-top: 4px; }
.agenda-tag { background: #fff3e6; color: #d69453; border-radius: 4px; padding: 4px 5px; font-size: 11px; white-space: nowrap; }
.agenda-tag.tag-quiz { background: #eef3fc; color: #7c66d5; }
.calendar-link { width: 100%; display: flex; justify-content: center; gap: 7px; align-items: center; border: 0; border-top: 1px solid #f2f2f6; margin-top: 2px; padding-top: 11px; background: white; color: #735bd4; font-size: 12px; font-weight: 700; }
.obe-mini-card { border: 1px solid #eeedf5; border-radius: 10px; background: linear-gradient(125deg,#fff 45%,#faf8ff); padding: 14px 15px 12px; }
.obe-mini-head { display: flex; align-items: center; gap: 8px; }
.obe-mini-icon { color: #2a4f9a; background: #eef3fc; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 16px; }
.obe-mini-head div { flex: 1; display: grid; gap: 3px; }
.obe-mini-head strong { font-size: 12.5px; }
.obe-mini-head small { color: #9c9cab; font-size: 11px; }
.obe-percentage { font: 700 16px Manrope, "DM Sans", Arial, sans-serif; color: #24489a; }
.obe-track { height: 5px; background: #efedf5; border-radius: 5px; margin: 12px 0 9px; overflow: hidden; }
.obe-mini-foot { display: flex; justify-content: space-between; font-size: 11px; color: #9999a8; }
.obe-mini-foot a { color: #1d3c78; font-weight: 700; }
.footer-note { display: flex; align-items: center; justify-content: space-between; color: #aaaab7; font-size: 11px; padding: 20px 1px 0; }
.mobile-menu { display: none; }
.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { background: #28263b; color: white; padding: 12px 16px; border-radius: 9px; box-shadow: 0 8px 25px #25223835; font-size: 14px; max-width: min(360px,calc(100vw - 40px)); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal { border: 0; padding: 0; background: transparent; max-width: min(620px, calc(100vw - 26px)); width: 100%; max-height: min(90vh, 850px); overflow: visible; }
.modal::backdrop { background: #1f203e7c; backdrop-filter: blur(3px); }
.modal-shell { position: relative; background: white; border-radius: 14px; padding: 27px; max-height: min(90vh,850px); overflow: auto; box-shadow: 0 24px 80px #11132d3b; }
.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: #f4f3f8; color: #757588; border-radius: 50%; width: 28px; height: 28px; font-size: 19px; z-index: 1; }
.modal-kicker { color: #2a4f9a; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.modal-title { font: 700 22px Manrope,sans-serif; letter-spacing: -.5px; margin: 0 30px 7px 0; }
.modal-subtitle { color: #8e8e9f; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.dashboard-shortcut { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.dashboard-shortcut strong { font: 700 15px Manrope,sans-serif; }
.dashboard-shortcut span { color: #8e8e9f; font-size: 13.5px; line-height: 1.5; }
.mfa-qr-code { display: grid; justify-items: center; gap: 8px; margin: 0 auto 16px; color: #777789; font-size: 13px; text-align: center; }
.mfa-qr-code img { display: block; width: 240px; max-width: 100%; height: auto; padding: 8px; border: 1px solid #edecf2; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.mfa-manual-setup { margin: 0 0 14px; color: #777789; font-size: 13px; }
.mfa-manual-setup summary { cursor: pointer; }
.modal-section { border: 1px solid #edecf2; border-radius: 9px; padding: 14px; margin: 12px 0; }
.modal-section h4 { font: 700 14px Manrope,sans-serif; margin: 0 0 6px; }
.modal-section p { color: #858596; font-size: 13px; line-height: 1.65; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.button-secondary { border: 1px solid #e9e8ef; background: white; color: #717185; }
.button-danger { background: #fff0ee; color: #c7655c; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 16px 0; }
.choice-card { border: 1px solid #eae9f1; background: white; text-align: left; border-radius: 10px; padding: 15px; transition: .15s; color: var(--ink); }
.choice-card:hover { border-color: #7f97c9; background: #faf9ff; }
.choice-card.selected { border-color: #2a4f9a; box-shadow: 0 0 0 2px #2a4f9a1a; }
.choice-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #eef3fc; color: #2a4f9a; margin-bottom: 10px; font-size: 17px; }
.choice-card strong { display: block; font-size: 13.5px; }
.choice-card p { color: #88889a; font-size: 12.5px; line-height: 1.5; margin: 5px 0 0; }
.checkline { display: flex; gap: 8px; align-items: flex-start; color: #79798b; font-size: 13px; line-height: 1.55; margin: 11px 0; }
.checkline input { accent-color: #745bd6; margin-top: 1px; }
.camera-preview { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 9px; background: #26243b; object-fit: cover; }
.exam-layout { display: grid; grid-template-columns: minmax(0,1fr) 178px; gap: 14px; }
.exam-question { border: 1px solid #edecf2; border-radius: 10px; padding: 18px; }
.exam-question h3 { font: 700 16px Manrope, "DM Sans", Arial, sans-serif; line-height: 1.5; }
.exam-option { display: flex; gap: 9px; border: 1px solid #eeedf3; padding: 10px; border-radius: 7px; margin-top: 8px; color: #67687b; font-size: 13px; }
.exam-option:has(input:checked) { border-color: #806cda; background: #fbfaff; }
.exam-option input { accent-color: #1d3c78; }
.exam-aside { border: 1px solid #edecf2; border-radius: 10px; padding: 12px; align-self: start; }
.exam-aside h4 { font: 700 13px Manrope, "DM Sans", Arial, sans-serif; margin: 0 0 9px; }
.exam-timer { color: #24489a; background: #f5f2ff; padding: 8px; border-radius: 6px; font: 700 16.5px Manrope, "DM Sans", Arial, sans-serif; text-align: center; margin-bottom: 12px; }
.question-dots { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.question-dot { display: grid; place-items: center; border: 1px solid #e8e7ef; border-radius: 5px; height: 26px; font-size: 12px; color: #828294; }
.question-dot.current { background: #7158d4; border-color: #7158d4; color: white; }
.camera-status { display: flex; gap: 7px; align-items: center; background: #eef8f2; color: #438d68; border-radius: 7px; padding: 9px; font-size: 12.5px; margin-bottom: 10px; }
.camera-status.off { background: #f5f4f7; color: #878796; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.field-input, .field-select { display: block; width: 100%; border: 1px solid #e5e4ed; border-radius: 7px; padding: 9px 10px; font: 13px "DM Sans", Arial, sans-serif; color: #444557; background: white; }
.field-help { font-size: 12.5px; color: #9292a2; line-height: 1.5; margin-top: 5px; }
.cpl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cpl-table th { text-align: left; color: #9696a7; font-size: 12px; font-weight: 600; padding: 10px 8px; border-bottom: 1px solid #ededf3; }
.cpl-table td { padding: 11px 8px; border-bottom: 1px solid #f1f1f5; vertical-align: middle; }
.cpl-code { font-weight: 700; color: #6f57d0; white-space: nowrap; }
.cpl-status { display: inline-flex; gap: 5px; align-items: center; border-radius: 5px; padding: 5px 7px; background: #eef8f2; color: #4d9d75; font-size: 12px; white-space: nowrap; }
.cpl-status.progress { background: #fff6e9; color: #c38b47; }
.cpl-status.pending { background: #f2f2f6; color: #88889a; }
.curriculum-report { margin-top: 14px; }
.curriculum-report h4 { margin: 18px 0 8px; font-size: 13.5px; }
.curriculum-report p, .curriculum-report li { font-size: 13px; color: #67687b; line-height: 1.6; }
.curriculum-report ul { padding-left: 19px; }
.curriculum-table-wrap { overflow-x: auto; }
.curriculum-outcomes { display: grid; gap: 8px; }
.curriculum-outcome { border: 1px solid #eeedf3; border-radius: 7px; padding: 10px; font-size: 13px; }
.curriculum-outcome small { display: block; color: #858596; margin-top: 5px; }
.curriculum-outcome div { border-top: 1px solid #f0eff4; margin-top: 8px; padding-top: 8px; line-height: 1.5; }
.curriculum-legal { border-top: 1px solid #f0eff4; padding-top: 10px; font-size: 13px; color: #67687b; }
.curriculum-legal summary { cursor: pointer; font-weight: 700; }
.curriculum-legal a { color: #24489a; line-height: 1.8; }
@media print {
  body * { visibility: hidden !important; }
  #teacherCurriculumReport, #teacherCurriculumReport * { visibility: visible !important; }
  #teacherCurriculumReport { position: absolute; inset: 0; border: 0; }
  #teacherCurriculumReport .modal-actions { display: none; }
}
.pill { border-radius: 5px; padding: 4px 6px; background: #f3f0ff; color: #745bd4; font-size: 12px; display: inline-block; }
.page-heading { margin: 5px 0 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.page-heading h2 { font: 700 23px Manrope, "DM Sans", Arial, sans-serif; margin: 5px 0; letter-spacing: -.7px; }
.page-heading p { color: #9292a2; font-size: 13px; margin: 0; }
.page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.large-course-card { border: 1px solid #edecf2; border-radius: 10px; background: white; padding: 16px; }
.large-course-top { display: flex; gap: 11px; align-items: center; }
.large-course-top .course-art { width: 43px; height: 43px; }
.large-course-top strong { display: block; font: 700 13.5px Manrope, "DM Sans", Arial, sans-serif; }
.large-course-top small { display: block; font-size: 12px; color: #9999a8; margin-top: 4px; }
.large-course-card p { color: #858596; font-size: 12.5px; line-height: 1.55; margin: 13px 0; }
.large-course-meta { display: flex; justify-content: space-between; font-size: 12px; color: #9696a6; padding-top: 10px; border-top: 1px solid #f0eff4; }
.assessment-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; border-top: 1px solid #f0eff4; padding: 12px 0; }
.assessment-row:first-child { border-top: 0; }
.assessment-row strong { font-size: 13px; display: block; }
.assessment-row small { color: #9696a6; font-size: 12px; display: block; margin-top: 4px; }
.assessment-row .button { padding: 8px 10px; }
.assessment-locked { opacity: .67; }
.grade-number { font: 700 15px Manrope, "DM Sans", Arial, sans-serif; color: #5a9b78; text-align: right; }
.grade-number small { font: 400 12px "DM Sans", Arial, sans-serif; }
.grade-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.grade-summary .stat-card { min-height: unset; }
.alert-note { border: 1px solid #f2e6c8; border-radius: 8px; background: #fffaf0; color: #947747; font-size: 12.5px; line-height: 1.6; padding: 11px 13px; margin-top: 14px; }
.review-photo { width: 92px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.review-empty { color: #9999a8; font-size: 13px; text-align: center; padding: 18px; border: 1px dashed #e5e4ed; border-radius: 8px; }
.search-overlay { display: flex; gap: 8px; }
.search-overlay input { flex: 1; min-width: 0; border: 1px solid #e6e5ee; border-radius: 7px; padding: 10px; font-size: 13.5px; }
.ai-chat-toggle { position: fixed; z-index: 12; left: 18px; bottom: 18px; width: 54px; height: 54px; border: 0; border-radius: 50%; color: white; background: linear-gradient(145deg,#8069e1,#6248c7); box-shadow: 0 7px 24px #4734a04a; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 18px; }
.ai-chat-toggle[hidden] { display: none; }
.ai-chat-toggle:hover { transform: translateY(-2px); }
.ai-chat-label { font-size: 12.5px; font-weight: 700; }
.ai-chat-panel { position: fixed; z-index: 11; left: 18px; bottom: 82px; width: min(390px,calc(100vw - 28px)); height: min(660px,calc(100dvh - 100px)); min-height: 360px; background: white; border: 1px solid #e9e7f1; border-radius: 15px; box-shadow: 0 18px 55px #29234730; display: flex; flex-direction: column; overflow: hidden; }
.ai-chat-panel[hidden] { display: none; }
#aiChatInteractive { display: flex; flex: 1; min-height: 0; flex-direction: column; }
#aiChatInteractive[hidden] { display: none; }
.ai-chat-header { min-height: 58px; background: #faf9ff; border-bottom: 1px solid #efedf5; display: flex; align-items: center; gap: 9px; padding: 9px 13px; }
.ai-chat-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: #2a4f9a; }
.ai-chat-heading { flex: 1; display: grid; gap: 3px; }
.ai-chat-heading strong { font-size: 13px; }
.ai-chat-heading small { font-size: 12px; color: #9393a3; }
.ai-chat-header button { border: 0; background: transparent; color: #89899a; font-size: 22px; }
.ai-chat-guidance { margin: 0; padding: 9px 12px 2px; color: #77798c; font-size: 13px; line-height: 1.45; }
.ai-chat-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #f0eff4; }
.ai-chat-controls label { grid-column: 1 / -1; font-size: 13px; color: #686a7e; }
.ai-chat-controls .field-select { width: 100%; min-width: 0; padding: 8px; font-size: 13.5px; }
.ai-chat-controls .button { padding: 8px 10px; font-size: 13px; }
.ai-source-picker { flex: 0 0 auto; border-bottom: 1px solid #f0eff4; padding: 9px 12px; font-size: 13px; color: #626477; }
.ai-source-picker summary { cursor: pointer; font-weight: 700; }
.ai-source-list { display: grid; gap: 7px; margin-top: 8px; max-height: 120px; overflow: auto; }
.ai-source-list label { display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; font-size: 13px; }
.ai-source-list input { accent-color: #1d3c78; }
.ai-chat-messages { flex: 1 1 auto; min-height: 60px; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: #fcfcfe; }
.ai-message { max-width: 90%; border-radius: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message { align-self: flex-start; background: #f0eef9; color: #49465d; }
.user-message { align-self: flex-end; background: #7158d4; color: white; }
.ai-chat-form { display: flex; align-items: flex-end; gap: 7px; padding: 9px; border-top: 1px solid #efedf5; }
.ai-chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid #e8e6ef; border-radius: 8px; padding: 8px; font-size: 13px; }
.ai-chat-form button { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 17px; }
.ai-chat-credits { margin: 0; padding: 6px 14px; font-size: 14px; font-weight: 700; color: #1f3a6e; background: #f7f5ff; border-bottom: 1px solid #ece9fb; }
.ai-chat-disclaimer { flex: 0 0 auto; color: #77798c; font-size: 12.5px; line-height: 1.4; text-align: center; margin: 0; padding: 4px 10px 9px; }
.ai-chat-disabled { display: grid; place-content: center; flex: 1; padding: 24px; color: #615b79; text-align: center; font-size: 15px; line-height: 1.6; background: #faf9ff; }
.ai-chat-disabled[hidden] { display: none; }
.meeting-chat-toggle { position: fixed; z-index: 12; right: 18px; bottom: 18px; min-width: 116px; height: 48px; padding: 0 15px; border: 0; border-radius: 28px; color: #fff; background: linear-gradient(145deg,#43a58a,#278269); box-shadow: 0 7px 24px #276e594a; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; }
.meeting-chat-toggle[hidden] { display: none; }
.meeting-chat-toggle:hover { transform: translateY(-2px); }
.meeting-chat-panel { position: fixed; z-index: 13; right: 18px; bottom: 82px; width: min(370px,calc(100vw - 28px)); height: min(560px,calc(100dvh - 108px)); background: #fff; border: 1px solid #e9e7f1; border-radius: 15px; box-shadow: 0 18px 55px #29234730; display: flex; flex-direction: column; overflow: hidden; }
.meeting-chat-panel[hidden] { display: none; }
.meeting-chat-header { min-height: 58px; background: #f5fbf9; border-bottom: 1px solid #e7f0ed; display: flex; align-items: center; gap: 9px; padding: 9px 13px; }
.meeting-chat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #278269; background: #dff2ec; }
.meeting-chat-heading { flex: 1; display: grid; gap: 3px; min-width: 0; }
.meeting-chat-heading strong { font-size: 13.5px; }
.meeting-chat-heading small { font-size: 12px; color: #85899a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-chat-header button { border: 0; background: transparent; color: #89899a; font-size: 22px; }
.meeting-chat-settings { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 7px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f0eff4; }
.meeting-chat-settings label { font-size: 12.5px; color: #77798c; font-weight: 600; }
.meeting-chat-settings .field-select { min-width: 0; padding: 7px; font-size: 13px; }
.meeting-chat-messages { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: #fbfcfd; }
.meeting-chat-empty { margin: auto; max-width: 230px; color: #9294a2; text-align: center; font-size: 13.5px; line-height: 1.6; }
.meeting-chat-message { max-width: 88%; align-self: flex-start; padding: 8px 10px; border-radius: 10px 10px 10px 3px; background: #f0f1f5; color: #3f4051; overflow-wrap: anywhere; }
.meeting-chat-message.own { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: #e4f4ef; color: #254c41; }
.meeting-chat-message-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.meeting-chat-message-meta strong { font-size: 12.5px; }
.meeting-chat-message-meta time { color: #9193a0; font-size: 12px; }
.meeting-chat-message p { margin: 0; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; }
.meeting-chat-form { display: flex; align-items: flex-end; gap: 7px; padding: 9px; border-top: 1px solid #efedf5; }
.meeting-chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid #e8e6ef; border-radius: 8px; padding: 8px; font-size: 13.5px; }
.meeting-chat-form button { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 17px; }
.meeting-chat-note { color: #999baa; font-size: 12px; text-align: center; margin: 0; padding: 0 8px 8px; }
.meeting-chat-launch { margin-top: 10px; }
.teacher-chat-exports { margin-bottom: 14px; }
.teacher-chat-exports > .field-help { line-height: 1.6; }
.teacher-export-list { display: grid; gap: 8px; margin-top: 10px; }
.teacher-export-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f0eff4; }
.teacher-export-row > span { display: grid; gap: 4px; min-width: 0; }
.teacher-export-row strong { font-size: 13px; overflow-wrap: anywhere; }
.teacher-export-row small { color: #85899a; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.teacher-export-row .button { flex: 0 0 auto; }
.teacher-export-divider { height: 1px; margin: 14px 0; background: #efeff4; }
.material-card, .meeting-card { border: 1px solid #edecf2; background: white; border-radius: 10px; overflow: hidden; }
.material-embed { display: block; width: 100%; height: 260px; border: 0; background: #f1f0f5; }
.material-image { object-fit: contain; }
.material-card-body .field-help { display: block; margin-top: 8px; }
.material-card-body, .meeting-card-body { padding: 13px; }
.meeting-card { padding: 14px; }
.essay-upload-box { display: grid; gap: 8px; padding: 12px; margin-top: 12px; background: #f8f7fd; border: 1px solid #e9e6f7; border-radius: 9px; }
.essay-upload-box img { display: block; max-width: min(100%, 420px); max-height: 320px; object-fit: contain; border-radius: 7px; background: #fff; }
.essay-review-list { display: grid; gap: 9px; margin-top: 14px; }
.essay-review-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.essay-review-row small, .essay-review-meta { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.essay-review-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.essay-image-history { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0; }
.essay-image-history figure { flex: 0 0 auto; margin: 0; }
.essay-image-history img { display: block; max-width: min(72vw, 520px); max-height: 60vh; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.essay-image-history object { display: block; width: min(72vw, 520px); height: 60vh; min-height: 260px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.essay-submission-pages { margin-top: 12px; }
.essay-submission-pages > h4 { margin: 0; }
.essay-page-list { display: grid; gap: 7px; }
.essay-page-row { display: flex; align-items: center; gap: 7px; }
.essay-page-row .field-input { flex: 1; min-width: 0; }
.admin-ai-settings { grid-column: 1 / -1; }
.ai-provider-form { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ai-provider-form h4 { margin: 0; }
.mfa-recovery-codes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: #f8f7fd; border-radius: 8px; }
.mfa-recovery-codes code { padding: 4px; font-weight: 700; letter-spacing: .04em; }
.essay-trial-codes { max-height: 240px; overflow: auto; padding: 12px; white-space: pre-wrap; word-break: break-all; background: #f8f7fd; border: 1px solid #e9e6f7; border-radius: 8px; font: 700 .9rem/1.7 ui-monospace, monospace; }
.essay-trial-redeem { display: grid; gap: 8px; max-width: 520px; margin-top: 12px; }
.essay-rubric-grid { display: grid; gap: 8px; margin: 12px 0; }
.essay-rubric-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.essay-rubric-row small { display: block; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.essay-state { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; color: #1f3a6e; background: #f1effc; font-size: 13px; font-weight: 700; }
.essay-state.error { color: #a34c35; background: #fff1eb; }
.essay-action-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.essay-grade-form { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 600px) {
  .public-landing { padding: 16px 14px; }
  .public-landing-main { grid-template-columns: 1fr; margin: 20px auto; gap: 14px; }
  .public-slide { min-height: 280px; padding: 24px 21px; border-radius: 15px; }
  .public-slide h1 { font-size: clamp(26px,8vw,38px); }
  .public-slide p { font-size: 15px; }
  .public-login-card { padding: 21px; }
  .essay-review-row { grid-template-columns: 1fr; }
  .essay-review-actions { justify-content: flex-start; }
  .meeting-chat-panel { right: 12px; width: min(370px,calc(100vw - 24px)); }
  .teacher-export-row { align-items: flex-start; }
  .teacher-export-row .button { padding: 8px; font-size: 12.5px; }
}
.meeting-start { margin-top: 10px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.admin-content-list { display: grid; gap: 8px; margin-top: 13px; }
.admin-content-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #efeff4; padding: 10px 0; font-size: 12.5px; }
.admin-content-row button { border: 0; border-radius: 5px; color: #b25353; background: #fff0ee; padding: 5px 8px; font-size: 12px; }

@media (min-width: 1500px) {
  .content { padding-top: 40px; }
  .hero-card { height: 228px; padding: 32px 38px; }
  .hero-card h2 { font-size: 27px; }
  .stat-card { min-height: 136px; padding: 16px 18px; }
  .panel { padding: 20px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .content { padding-left: 27px; padding-right: 27px; }
  .topbar { padding: 0 27px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.2fr) minmax(230px,.85fr); }
  .hero-art { right: -11%; }
}
@media (max-width: 840px) {
  .sidebar { width: 248px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 14px 0 40px #20203312; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { display: block; border: 0; color: #65667a; background: transparent; font-size: 18px; padding: 5px 9px 5px 0; }
  .topbar { justify-content: flex-start; gap: 13px; }
  .topbar-actions { margin-left: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1.2fr 1fr; }
  .hero-art { right: -2%; opacity: .75; }
}
@media (max-width: 600px) {
  .topbar { height: 58px; padding: 0 16px; }
  .semester-pill { display: none; }
  .topbar-divider { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-actions>.icon-button { display: none; }
  .google-login { font-size: 0; padding: 8px; width: 34px; height: 32px; justify-content: center; }
  .google-login::first-letter { font-size: 14px; }
  .language-toggle { padding: 7px; }
  .font-size-control { padding: 7px; }
  .breadcrumbs { font-size: 12.5px; gap: 6px; }
  .content { padding: 23px 15px 18px; }
  .welcome-row { align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  h1 { font-size: 19px; }
  .welcome-subtitle { max-width: 240px; line-height: 1.45; }
  .welcome-row>.button { padding: 9px; font-size: 0; gap: 0; flex: 0 0 auto; }
  .welcome-row>.button span { font-size: 13px; }
  .hero-card { height: 200px; padding: 22px 20px; }
  .hero-card h2 { font-size: 21px; }
  .hero-card p { max-width: 220px; line-height: 1.5; }
  .hero-art { inset: 0 -40% 0 48%; opacity: .38; }
  .hero-pagination { left: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0; }
  .stat-card { min-height: 112px; padding: 11px; }
  .stat-number { font-size: 20px; }
  .dashboard-grid { gap: 10px; }
  .panel { padding: 14px 12px 11px; }
  .right-column { grid-template-columns: 1fr; gap: 10px; }
  .course-progress-wrap { width: 75px; }
  .course-row { gap: 8px; }
  .course-art { width: 33px; height: 33px; }
  .course-arrow { margin-left: 0; }
  .footer-note { flex-wrap: wrap; gap: 8px; line-height: 1.4; padding-top: 15px; }
  .footer-note span:nth-child(2) { display: none; }
  .modal-shell { padding: 22px 16px; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-aside { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; align-items: center; }
  .exam-aside h4 { grid-column: 1/-1; margin: 0; }
  .exam-timer { margin: 0; }
  .exam-aside>.camera-status { margin: 0; }
  .question-dots { grid-column: 1/-1; grid-template-columns: repeat(8,1fr); }
  .choice-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .grade-summary { grid-template-columns: 1fr 1fr; }
  .cpl-table { font-size: 12.5px; }
  .cpl-table th, .cpl-table td { padding: 8px 5px; }
  .cpl-table th:nth-child(3), .cpl-table td:nth-child(3) { display: none; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .material-embed { height: 200px; }
  .ai-chat-panel { left: 10px; bottom: 70px; width: calc(100vw - 20px); height: min(650px,calc(100dvh - 82px)); min-height: 340px; }
  .meeting-chat-panel { bottom: 74px; height: min(560px,calc(100dvh - 90px)); }
}
/* ===== Keterbacaan: ukuran teks minimum yang nyaman dibaca ===== */
.nav-link { font-size: 15px; height: 40px; }
.button { font-size: 14px; }
.eyebrow { font-size: 13px; }
.pill { font-size: 13.5px; padding: 4px 8px; }
.page-heading p { font-size: 15px; line-height: 1.55; }
.section-heading h3 { font-size: 16.5px; }
.stat-label { font-size: 14px; }
.stat-foot { font-size: 13.5px; }
.field-label { font-size: 14px; }
.field-input, .field-select { font-size: 15px; padding: 9px 11px; }
.field-help { font-size: 14px; }
.checkline { font-size: 14.5px; }
.text-link { font-size: 14px; }
.review-empty { font-size: 14.5px; }
.alert-note { font-size: 14px; }
.admin-content-row { font-size: 14.5px; }
.admin-content-row button { font-size: 13.5px; }
.assessment-row strong { font-size: 15px; }
.assessment-row small { font-size: 14px; line-height: 1.5; }
.large-course-card p, .material-card-body p { font-size: 14.5px; line-height: 1.55; }
.modal-section p { font-size: 14.5px; }
.exam-option { font-size: 15px; }
.choice-card p { font-size: 14px; }
.ai-message { font-size: 14.5px; }
.ai-chat-heading strong { font-size: 14.5px; }
.ai-chat-heading small, .ai-chat-disclaimer, .ai-source-picker { font-size: 13.5px; }
.ai-chat-form textarea { font-size: 14.5px; }
.breadcrumbs, .semester-pill, .language-toggle { font-size: 13.5px; }
.profile-copy strong { font-size: 14px; }
.profile-copy small, .help-card p, .help-card a { font-size: 13.5px; }
.cpl-table { font-size: 14px; }
.essay-review-row small { font-size: 14px; }

/* ===== Navigasi & struktur ===== */
.sidebar { overflow-y: auto; }
.nav-section { padding: 16px 13px 5px; font-size: 13px; font-weight: 700; letter-spacing: 1.3px; color: #b0b0bd; }
.nav-section:first-child { padding-top: 22px; }
.nav-section[hidden], .nav-link[hidden] { display: none; }
.institution-strip { display: grid; gap: 7px; margin: 18px 3px 0; padding: 10px; border: 1px solid #eeedf4; border-radius: 10px; background: #fbfaff; }
.institution-strip[hidden] { display: none; }
/* Panel yang ditumpuk langsung di halaman diberi jarak yang konsisten. */
.content > .panel, .content > .dashboard-grid, .content > .page-grid, .content > .tab-bar + div,
.content > [id] > .panel, .content > [id] > .page-grid, .content > [id] > .dashboard-grid, .content > [id] > .studio-grid { margin-bottom: 14px; }
.dashboard-grid > .panel, .page-grid > .panel { margin-bottom: 0; }
.modal.modal-exam { max-width: min(960px, calc(100vw - 26px)); }
/* Tombol & panel AI tidak menutupi sidebar di layar lebar. */
@media (min-width: 1101px) {
  .ai-chat-toggle, .ai-chat-panel { left: calc(248px + 18px); }
}
@media (min-width: 841px) and (max-width: 1100px) {
  .ai-chat-toggle, .ai-chat-panel { left: calc(220px + 18px); }
}
.institution-strip .workspace-label { padding: 0; }
.heading-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.span-2 { grid-column: 1 / -1; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 5px; border: 1px solid #ecebf3; border-radius: 10px; background: #fff; }
.tab-button { border: 0; border-radius: 7px; padding: 9px 13px; background: transparent; color: #6e6f84; font-size: 14.5px; font-weight: 700; }
.tab-button:hover { background: #f6f4ff; color: #1d3c78; }
.tab-button.active { background: #1d3c78; color: #fff; }
.admin-tab-panel[hidden] { display: none; }
.admin-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .field-input, .inline-form .field-select { flex: 1 1 200px; width: auto; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.row-action { color: #1f3a6e !important; background: #f1effc !important; }
.row-with-logo { display: flex; gap: 10px; align-items: center; }
.pill-soft { background: #f3f3f7; color: #77798c; }
.field-warning { margin: 6px 0; color: #b4542f; font-size: 14px; }
.search-result { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 4px; border: 0; border-top: 1px solid #f0eff4; background: #fff; text-align: left; }
.search-result span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.search-result small { color: #8e8e9f; font-size: 13.5px; }
.modal.modal-wide { max-width: min(1120px, calc(100vw - 26px)); }

/* ===== Instansi & logo ===== */
.institution-badge { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin: 6px 0; color: #3f4052; }
.institution-logos { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.institution-logos img { height: 26px; width: auto; max-width: 64px; object-fit: contain; border-radius: 5px; background: #fff; border: 1px solid #efedf5; padding: 2px; }
.institution-initial { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #ebe7ff; color: #1d3c78; font-weight: 800; font-size: 15px; }
.institution-name { display: grid; gap: 2px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.institution-name small { font-size: 13.5px; font-weight: 500; color: #8e8e9f; }
.institution-badge.compact .institution-logos img, .institution-badge.compact .institution-initial { height: 20px; width: auto; min-width: 20px; font-size: 13.5px; }
.institution-badge.compact .institution-name { font-size: 13.5px; }
.institution-badge.large .institution-logos img { height: 46px; max-width: 110px; }
.institution-badge.large .institution-initial { width: 46px; height: 46px; font-size: 21px; }
.institution-badge.large .institution-name { font-size: 16.5px; }
.institution-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 12px; }
.institution-card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.invite-box { display: grid; gap: 6px; min-width: min(100%, 340px); padding: 14px; border: 1px dashed #cfc6f5; border-radius: 11px; background: #faf9ff; }
.invite-box small { color: #77798c; font-size: 14px; }
.invite-box .modal-actions { justify-content: flex-start; margin-top: 6px; }
.invite-code { font: 800 26px/1.1 Manrope, sans-serif; letter-spacing: 4px; color: #1f3a6e; }
.invite-link { font-size: 14px; }
.invite-banner { display: grid; gap: 6px; margin-bottom: 16px; padding: 12px; border-radius: 11px; background: #f3f0ff; border: 1px solid #e2dbff; }
.invite-banner[hidden] { display: none; }
.invite-banner small { color: #5f5a77; font-size: 14px; line-height: 1.5; }
.empty-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.empty-cta p { max-width: 640px; }
.join-form { margin-top: 10px; }
.class-card { display: grid; gap: 10px; }
.class-card.is-active { border-color: #7f97c9; box-shadow: 0 0 0 2px #2a4f9a1a; }
.institution-switcher { width: 100%; font-size: 14.5px; padding: 8px 10px; }
.switch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chip { border: 1px solid #e3e0f2; background: #fff; color: #5c5d72; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: #7f97c9; color: #1d3c78; }
.chip.active { background: #1d3c78; border-color: #1d3c78; color: #fff; }
.semester-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 700; color: #4b4d63; }
.join-inline { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0eff6; }
.join-inline .join-form { margin-top: 6px; }
.invite-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.invite-box.invite-teacher { border-color: #f2c48d; background: #fffaf3; }
.share-invite { margin-top: 4px; }
.share-invite summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: #1d3c78; }
.share-invite .invite-box { margin-top: 8px; }
button.semester-pill { cursor: default; font-family: inherit; }
button.semester-pill.editable { cursor: pointer; }
button.semester-pill.editable:hover { border-color: #7f97c9; color: #1d3c78; }
button.semester-pill[hidden] { display: none; }
.profile-institution { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; }
/* Kurikulum & capaian */
.curriculum-card[hidden] { display: none; }
.curriculum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.curriculum-references summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: #1d3c78; margin-top: 6px; }
.curriculum-references ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.curriculum-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #e3def7; border-radius: 10px; background: #fbfaff; font-size: 15px; color: #4b4d63; }
.curriculum-level-grid { grid-template-columns: repeat(3, 1fr); }
.curriculum-framework-list { display: grid; gap: 8px; margin: 10px 0 4px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.curriculum-framework-list .choice-card p { font-size: 14px; }
.curriculum-line { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.attainment-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.attainment-table th, .attainment-table td { border-bottom: 1px solid #efeef5; padding: 7px 8px; text-align: left; vertical-align: top; }
.attainment-table th { background: #f8f7fc; color: #5c5d72; font-weight: 800; white-space: nowrap; }
.attainment-table td:first-child { white-space: nowrap; }
.attainment-table td small { display: block; color: #8a8b9d; font-size: 13.5px; }
.attainment-table td.ok b { color: #2d8a5f; }
.attainment-table td.warn b { color: #c2413a; }
.attainment-table td.muted { color: #b0b0bd; }
.attainment-table .description-cell { min-width: 260px; font-size: 14px; color: #4b4d63; }
.weight-input { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #5c5d72; }
.weight-input .field-input { width: 80px; padding: 6px 8px; }
.attainment-course { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0eff6; }
.attainment-course h4 { margin: 0 0 8px; }
.attainment-bars { display: grid; gap: 6px; }
.attainment-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(80px, 1fr) auto; align-items: center; gap: 10px; font-size: 14.5px; }
.attainment-bar .bar { height: 8px; border-radius: 999px; background: #eeedf5; overflow: hidden; }
.attainment-bar .bar i { display: block; height: 100%; background: #c2413a; }
.attainment-bar.ok .bar i { background: #2f9a7d; }
.attainment-description { padding: 10px 12px; border-radius: 9px; background: #f7f5ff; font-size: 15px; color: #4b4d63; }
@media (max-width: 720px) { .curriculum-level-grid { grid-template-columns: 1fr; } .attainment-bar { grid-template-columns: 1fr; } }
.class-card-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: #77798c; font-size: 14px; }
.class-card-stats strong { color: #3f4052; font-size: 16px; }
.logo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.logo-tile { margin: 0; display: grid; gap: 6px; justify-items: center; width: 132px; padding: 10px; border: 1px solid #efedf5; border-radius: 10px; }
.logo-tile img { max-width: 110px; max-height: 64px; object-fit: contain; }
.logo-tile figcaption { font-size: 13.5px; color: #77798c; text-align: center; }
.logo-tile .button { padding: 6px 9px; font-size: 13.5px; }
.material-course { display: inline-block; margin: 0 0 6px 6px; color: #8e8e9f; font-size: 13.5px; font-weight: 700; }

/* ===== Dashboard ===== */
.stats-grid.stats-auto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.compact-stats .stat-card { min-height: 0; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.quick-action { display: grid; gap: 4px; padding: 13px; border: 1px solid #edecf2; border-radius: 10px; background: #fff; transition: .15s; }
.quick-action:hover { border-color: #b9aaf0; background: #faf9ff; transform: translateY(-1px); }
.quick-action strong { font-size: 15px; }
.quick-action small { color: #8e8e9f; font-size: 14px; line-height: 1.45; }
.quick-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #eef3fc; color: #1d3c78; font-size: 16.5px; }
.dash-list { display: grid; margin-top: 8px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #f1f0f5; color: inherit; }
.dash-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.dash-row strong { font-size: 15px; overflow-wrap: anywhere; }
.dash-row small { color: #8e8e9f; font-size: 14px; }
.dash-row .button { flex: 0 0 auto; }
.mini-wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.mini-wallet div { display: grid; gap: 3px; padding: 12px; border-radius: 10px; background: #f7f5ff; }
.mini-wallet strong { font: 800 21px Manrope, sans-serif; color: #1f3a6e; }
.mini-wallet small { color: #77798c; font-size: 13.5px; }
.health-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.health-flag { display: inline-flex; gap: 5px; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.health-flag.ok { background: #e8f6ef; color: #2d8a5f; }
.health-flag.warn { background: #fff3e6; color: #b56a21; }
.health-table { display: grid; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #f1f0f5; }
.health-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.health-row strong { font-size: 14.5px; }
.health-row small { color: #8e8e9f; font-size: 13.5px; overflow-wrap: anywhere; }
.setting-list { display: grid; margin-top: 8px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f0f5; }
.setting-row > span { display: grid; gap: 3px; min-width: 0; }
.setting-row small { color: #8e8e9f; font-size: 14px; }
.setting-row .field-select { width: auto; min-width: 210px; }
.account-summary { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; text-align: left; }
.wallet-card { display: grid; gap: 4px; flex: 1 1 220px; max-width: 360px; min-width: 220px; padding: 14px; border-radius: 11px; background: linear-gradient(135deg, #f3f0ff, #fff); border: 1px solid #e6e0fb; }
.wallet-card strong { font: 800 24px Manrope, sans-serif; color: #1f3a6e; }
.wallet-card small { color: #77798c; font-size: 14px; }
.wallet-toggle { margin: 0 0 12px; }
.assessment-actions { display: grid; justify-items: end; gap: 6px; }

/* ===== AI Chatbot ===== */
.ai-chat-header-action { width: 28px; height: 28px; border: 1px solid #ebe8f5 !important; border-radius: 8px; background: #fff !important; color: #1d3c78 !important; font-size: 16.5px !important; }
.ai-chat-attach { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #e8e6ef; border-radius: 8px; background: #fff; font-size: 17px; }
.ai-chat-attach:hover { background: #f6f4ff; }
.ai-chat-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 9px 0; border-top: 1px solid #efedf5; }
.ai-chat-attachments[hidden] { display: none; }
.attachment-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 4px 5px 9px; border: 1px solid #e3def8; border-radius: 999px; background: #f7f5ff; font-size: 14px; }
.attachment-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.attachment-chip small { color: #8e8e9f; font-size: 13.5px; white-space: nowrap; }
.attachment-chip button { border: 0; background: transparent; color: #8e8e9f; font-size: 16.5px; line-height: 1; padding: 0 5px; }
.attachment-chip.uploading { opacity: .7; }
.attachment-chip.error { border-color: #f2c5b6; background: #fff3ee; }
.chat-files { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chat-file { display: inline-block; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.22); font-size: 13.5px; color: inherit; text-decoration: underline; }
.assistant-message .chat-file { background: #fff; }
.ai-message-meta { display: block; margin-top: 6px; color: #8e8e9f; font-size: 13.5px; }
.ai-message.pending { opacity: .75; font-style: italic; }
.ai-message.error-message { background: #fff1eb; color: #a34c35; }
.ai-source-disabled { opacity: .55; }
.ai-chat-history { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.ai-chat-history[hidden] { display: none; }
.ai-chat-history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #f0eff4; }
.ai-chat-history-head .button { padding: 7px 10px; font-size: 13.5px; }
.ai-chat-history-list { flex: 1; overflow: auto; padding: 8px 10px; }
.history-item { display: flex; align-items: stretch; border-bottom: 1px solid #f1f0f5; }
.history-item.active { background: #f7f5ff; }
.history-open { flex: 1; display: grid; gap: 3px; padding: 9px 6px; border: 0; background: transparent; text-align: left; }
.history-open strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-open small { color: #8e8e9f; font-size: 13.5px; }
.history-delete { border: 0; background: transparent; color: #b25353; font-size: 18px; padding: 0 10px; }

/* ===== Studio AI ===== */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr); gap: 13px; align-items: start; }
.studio-help ul { margin: 10px 0; }
.studio-notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.auth-tabs { margin-top: 10px; }
.auth-tabs .tab-button { flex: 1 1 0; }
.auth-step { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-weight: 800; color: var(--ink); font-size: 15px; }
.auth-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d3c78; color: #fff; font-size: 14px; }
.auth-step.muted { color: #9a9aac; }
.auth-step.muted span { background: #cfcde0; }
.auth-role-grid { margin: 10px 0 4px; grid-template-columns: repeat(3, 1fr); }
.auth-role-card { display: grid; gap: 4px; padding: 16px; }
.auth-role-card strong { font-size: 16.5px; }
.auth-role-card p { font-size: 14px; }
.auth-role-icon { font-size: 26px; line-height: 1; }
.google-button-slot { display: flex; justify-content: center; min-height: 44px; margin: 10px 0 6px; }
.google-button-slot .button { min-width: 260px; }
.auth-switch { margin: 14px 0 0; text-align: center; font-size: 15px; color: #6e6f84; }
.auth-error { min-height: 1em; margin-top: 8px; color: #c2413a; font-size: 15px; font-weight: 600; text-align: center; }
.text-button { border: 0; background: none; padding: 0; color: #1d3c78; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
@media (max-width: 720px) { .auth-role-grid { grid-template-columns: 1fr; } }
.studio-credits { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f7f5ff; color: #4b4d63; font-size: 15px; line-height: 1.5; }
.studio-credits strong { color: #1f3a6e; }
.check-list { padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: #55566a; line-height: 1.5; }
.scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 4px; }
.scope-card { position: relative; cursor: pointer; }
.scope-card input { position: absolute; opacity: 0; pointer-events: none; }
.scope-card:has(input:checked) { border-color: #2a4f9a; background: #faf9ff; box-shadow: 0 0 0 2px #2a4f9a1a; }
.scope-card strong { font-size: 15px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.checkbox-row .checkline { margin: 4px 0; }
.source-uploader { margin-top: 12px; padding: 12px; border: 1px dashed #dcd5f5; border-radius: 10px; background: #fcfbff; }
.source-uploader .field-label { margin-top: 0; }
.source-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.curriculum-reference { margin: 10px 0 4px; padding: 10px 12px; border-left: 3px solid #1d3c78; background: #f8f6ff; font-size: 14px; line-height: 1.55; color: #4c4b60; }
.job-status { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; line-height: 1.5; }
.job-status[hidden] { display: none; }
.job-status.running { background: #f3f0ff; color: #4d3d9e; }
.job-status.done { background: #e8f6ef; color: #2d7a55; }
.job-status.failed { background: #fff1eb; color: #a34c35; }
.spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid #bccbea; border-top-color: #1d3c78; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-editor { margin-top: 13px; }
.editor-settings { display: grid; gap: 2px; margin: 10px 0 16px; padding: 12px; border-radius: 10px; background: #fafafd; border: 1px solid #f0eff5; }
.question-list { display: grid; gap: 12px; margin-top: 12px; }
.question-card { padding: 14px; border: 1px solid #e9e7f1; border-radius: 11px; background: #fff; }
.question-card.has-warning { border-color: #efc79f; box-shadow: 0 0 0 2px #fff3e6; }
.question-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.question-card-head strong { font-size: 16px; }
.level-select { width: auto; min-width: 170px; }
.question-card-actions { display: inline-flex; gap: 4px; margin-left: auto; }
.icon-action { width: 30px; height: 30px; border: 1px solid #e8e6ef; border-radius: 7px; background: #fff; color: #6e6f84; font-size: 15px; }
.icon-action:disabled { opacity: .4; cursor: not-allowed; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; filter: grayscale(.35); }
.icon-action.danger { color: #b25353; }
.level-tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; font-size: 13.5px; font-weight: 800; letter-spacing: .3px; }
.level-tag.lots { background: #e9f2fb; color: #3f78a8; }
.level-tag.hots { background: #fdecef; color: #b0425c; }
.abcd-editor { margin: 12px 0; padding: 10px 12px 12px; border: 1px solid #e4e0f6; border-radius: 10px; }
.abcd-editor.incomplete { border-color: #efc79f; background: #fffaf3; }
.abcd-editor legend { padding: 0 5px; font-size: 14px; font-weight: 800; color: #1f3a6e; }
.abcd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.abcd-grid label { display: grid; gap: 4px; }
.abcd-grid span { font-size: 13.5px; font-weight: 700; color: #6e6f84; }
.abcd-preview { margin: 9px 0 0; font-size: 14.5px; font-style: italic; color: #4c4b60; }
.abcd { display: grid; gap: 2px; margin-top: 5px; font-size: 13.5px; color: #6e6f84; }
.abcd b { display: inline-block; width: 15px; color: #1d3c78; }
.stimulus-editor { display: grid; gap: 7px; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fafafd; border: 1px solid #f0eff5; }
.stimulus-editor .field-label { margin: 0; }
.choice-editor, .rubric-editor { display: grid; gap: 7px; }
.choice-row { display: flex; align-items: center; gap: 7px; padding: 4px; border-radius: 8px; }
.choice-row.correct { background: #ecf8f2; }
.choice-key { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; font-weight: 800; color: #4c4b60; font-size: 15px; }
.choice-row .field-input { flex: 1; }
.rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 30px; gap: 7px; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; background: linear-gradient(180deg, transparent, #fff 35%); }
.level-distribution { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.level-pill { display: inline-flex; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 14px; }
.level-pill.lots { background: #e9f2fb; color: #3f78a8; }
.level-pill.hots { background: #fdecef; color: #b0425c; }
.level-pill.summary { background: #f1effc; color: #1f3a6e; font-weight: 700; }
.blueprint-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blueprint-table th { position: sticky; top: 0; background: #f6f5fb; text-align: left; font-size: 13.5px; color: #6e6f84; }
.blueprint-table th, .blueprint-table td { padding: 8px; border: 1px solid #ecebf2; vertical-align: top; }
.blueprint-table td small { display: block; color: #8e8e9f; }
.table-wrap { overflow-x: auto; }
.quiz-list { display: grid; gap: 10px; margin-top: 10px; }
.quiz-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 12px; border: 1px solid #edecf2; border-radius: 10px; }
.quiz-row.inactive { opacity: .6; }
.quiz-row > div:first-child { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.quiz-row small { color: #8e8e9f; font-size: 14px; line-height: 1.5; }
.quiz-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-document { margin-top: 13px; }
.document-body { font-size: 15px; line-height: 1.65; color: #34354a; }
.document-body h1 { font-size: 21px; }
.document-body h2 { margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #ecebf2; font: 700 16.5px Manrope, sans-serif; }
.document-body h3 { margin: 12px 0 6px; font-size: 15px; }
.document-body table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.document-body th, .document-body td { padding: 7px 8px; border: 1px solid #ecebf2; vertical-align: top; text-align: left; }
.document-body th { background: #f6f5fb; }
.document-body td small { display: block; color: #8e8e9f; margin-top: 3px; }
.document-body .meta { color: #6e6f84; font-size: 14px; }
.document-body { overflow-x: auto; }
.indicator-item { padding: 4px 0; border-bottom: 1px dashed #ecebf2; }
.indicator-item:last-child { border-bottom: 0; }
.verify-flag { display: inline-block; padding: 1px 6px; border-radius: 5px; background: #fff3e6; color: #b56a21; font-size: 13.5px; font-weight: 700; }

/* ===== Stimulus soal (juga tampil saat ujian) ===== */
.stimulus { margin: 0 0 14px; padding: 12px; border: 1px solid #e7e4f3; border-radius: 10px; background: #fcfbff; }
.stimulus figcaption { margin-bottom: 8px; font-size: 14.5px; font-weight: 800; color: #4c4b60; }
.stimulus-body p { margin: 0 0 8px; font-size: 15px; line-height: 1.65; color: #3a3b4f; }
.stimulus-source { display: block; margin-top: 6px; color: #8e8e9f; font-size: 13.5px; }
.stimulus-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.stimulus-table th, .stimulus-table td { padding: 7px 9px; border: 1px solid #e7e4f3; text-align: left; }
.stimulus-table th { background: #f3f0ff; }
.stimulus-chart { display: block; width: 100%; height: auto; max-height: 340px; }
.chart-text { font-size: 13.5px; fill: #5f6074; font-family: "DM Sans", Arial, sans-serif; }
.chart-axis-title { font-weight: 700; }
.chart-grid { stroke: #ecebf2; stroke-width: 1; }
.chart-axis { stroke: #9a9aab; stroke-width: 1; }
.stimulus-image { display: block; max-width: 100%; max-height: 380px; margin: 0 auto; object-fit: contain; border-radius: 8px; background: #fff; }
.stimulus-preview:empty { display: none; }

/* ===== Afiliasi ===== */
.affiliate-hero { background: linear-gradient(120deg, #f6f3ff, #fff 60%); }
.copy-field { display: flex; gap: 8px; margin-top: 12px; }
.copy-field .field-input { flex: 1; font-weight: 700; color: #4d3d9e; }
.share-actions { justify-content: flex-start; align-items: center; }
.steps { padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: #55566a; line-height: 1.55; }
.ledger { display: grid; margin-top: 8px; }
.ledger-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #f1f0f5; }
.ledger-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.ledger-row strong { font-size: 14.5px; }
.ledger-row small { color: #8e8e9f; font-size: 13.5px; overflow-wrap: anywhere; }
.ledger-amount { display: grid; justify-items: end; font-weight: 800; color: #2d8a5f; font-size: 15px; white-space: nowrap; }
.ledger-amount.minus { color: #b25353; }
.ledger-amount small { font-weight: 500; }
.economics-box { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.economics-box.ok { background: #e8f6ef; color: #2d6a4f; }
.economics-box.invalid { background: #fff1eb; color: #a34c35; }

@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .google-login { font-size: 13.5px; width: auto; height: auto; padding: 7px 9px; }
  .google-login::first-letter { font-size: inherit; }
  .tab-bar { flex-wrap: nowrap; overflow-x: auto; }
  .tab-button { white-space: nowrap; }
  .admin-form-grid.three, .scope-grid, .abcd-grid { grid-template-columns: 1fr; }
  .mini-wallet { grid-template-columns: 1fr; }
  .setting-row { flex-direction: column; align-items: stretch; }
  .setting-row .field-select { min-width: 0; width: 100%; }
  .question-card-actions { margin-left: 0; }
  .rubric-row { grid-template-columns: minmax(0, 1fr) 70px 30px; }
  .invite-code { font-size: 23px; }
  .copy-field { flex-direction: column; }
  .assessment-actions { justify-items: start; }
  .assessment-row { grid-template-columns: 38px 1fr; }
  .assessment-row .assessment-actions { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Dokumen legal & persetujuan */
.text-link-button { border: 0; background: none; padding: 0; color: #1d3c78; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.consent-check { align-items: flex-start; margin: 6px 0 4px; padding: 10px 12px; border: 1px solid #e3def7; border-radius: 10px; background: #fbfaff; font-size: 15px; line-height: 1.5; }
.consent-check input { margin-top: 3px; flex: 0 0 auto; }
.legal-dialog .modal-shell { max-width: 760px; }
.legal-text { max-height: 60vh; overflow-y: auto; padding-right: 6px; font-size: 15px; line-height: 1.65; color: #34364a; }
.legal-text h3 { font-size: 16.5px; margin: 18px 0 6px; }
.legal-text ul { padding-left: 20px; margin: 6px 0; }
.legal-text p { margin: 8px 0; }
.public-landing-footer .text-link-button { color: inherit; font-weight: 600; }
.legal-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.legal-editor h4 { margin: 0; }
.legal-textarea { font: 14.5px/1.55 ui-monospace, Consolas, monospace; min-height: 320px; }

/* Notifikasi */
.notification-bell { font-size: 17px; }
.notification-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #d64545; color: #fff; font: 700 13px/17px "DM Sans", sans-serif; text-align: center; }
.notification-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.notification-item { padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; background: #fff; }
.notification-item.unread { border-color: #bccbea; background: #f8f6ff; }
.notification-item p { margin: 4px 0; font-size: 15px; color: #45475c; }
.notification-item small { color: #8a8b9d; font-size: 14px; }
.chat-suspended { color: #b4462f !important; font-weight: 700; }

/* Pool API Claude */
.pool-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pool-summary div { padding: 12px; border-radius: 10px; background: #f8f7fc; }
.pool-summary strong { display: block; font: 800 19px Manrope, sans-serif; color: #252638; }
.pool-summary span { font-size: 14px; color: #6b6d80; }
.pool-alerts { display: grid; gap: 6px; margin: 10px 0; }
.pool-alert { padding: 9px 12px; border-radius: 9px; font-size: 15px; background: #fff8e8; color: #8a5a00; border: 1px solid #f3dfa8; }
.pool-alert.danger { background: #fff1ec; color: #a2401f; border-color: #f5c9b8; }
.pool-alert.exhausted { background: #fdeceb; color: #9e2b25; border-color: #f2c1bd; }
.pool-forms { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin: 12px 0; }
.pool-form { padding: 14px; border: 1px solid #ecebf3; border-radius: 12px; }
.pool-form h4, .pool-section-title { margin: 0 0 8px; }
.pool-section-title { margin-top: 18px; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pool-key { padding: 14px; border: 1px solid #ecebf3; border-radius: 12px; background: #fff; display: grid; gap: 8px; }
.pool-key.warning { border-color: #f3dfa8; }
.pool-key.danger, .pool-key.exhausted { border-color: #f2c1bd; }
.pool-key-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pool-key-head h4 { margin: 2px 0 0; }
.pool-usage { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pool-usage strong { font: 800 23px Manrope, sans-serif; color: #252638; }
.pool-usage span { font-size: 14px; color: #5c5d72; }
.pool-bar { height: 8px; border-radius: 999px; background: #eeedf5; overflow: hidden; }
.pool-bar i { display: block; height: 100%; background: #1d3c78; border-radius: inherit; }
.pool-bar.warning i { background: #e0a100; }
.pool-bar.danger i { background: #e0662b; }
.pool-bar.exhausted i { background: #c2413a; }
.pool-meta { display: grid; gap: 4px; font-size: 14px; color: #5c5d72; }
.pool-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pool-actions .button { padding: 6px 10px; font-size: 14px; }
.pool-events { display: grid; gap: 6px; margin-top: 8px; font-size: 14.5px; }
.pool-events small { color: #8a8b9d; }
.danger-text { color: #b4462f !important; }
.pill-warn { background: #fff4dc; color: #8a5a00; }
.pill-danger { background: #fde8e6; color: #a2302a; }
.ai-users-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.ai-users-toolbar .field-select, .ai-users-toolbar .field-input { width: auto; min-width: 160px; }
.ai-export-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.ai-export-form .field-input { width: auto; }
.ai-users-table td { vertical-align: top; }
.ai-users-table .pill { margin: 0 2px 2px 0; }
.ai-user-actions { white-space: nowrap; }
.ai-user-actions .button { padding: 5px 9px; font-size: 14px; margin-right: 6px; }
.flagged-row td { background: #fffaf0; }
.suspended-row td { background: #fdf3f2; }

/* Pajak */
.tax-breakdown { display: grid; gap: 3px; margin: 8px 0; padding: 8px 10px; border-radius: 9px; background: #f8f7fc; font-size: 14px; }
.tax-breakdown div { display: flex; justify-content: space-between; gap: 10px; color: #5c5d72; }
.tax-breakdown div.total { border-top: 1px solid #e6e4f1; padding-top: 4px; color: #252638; font-weight: 700; }
.tax-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.large-course-meta strong small { font-size: 13.5px; color: #77798c; font-weight: 600; }

/* Skor akhir & PDF koreksi */
.grade-number small { display: block; font-size: 13.5px; color: #77798c; font-weight: 500; }
.grade-number .text-link { display: block; font-size: 14px; margin-top: 2px; }
.essay-report-actions { justify-content: flex-start; margin: 4px 0 8px; }
.essay-review-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .pool-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-forms, .legal-editor-grid { grid-template-columns: 1fr; }
  .tax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Identitas penyelenggara */
.brand-name { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-by { font: 600 13px "DM Sans", sans-serif; letter-spacing: 0; color: #8a8b9d; margin-top: 2px; }
.sidebar-legal { margin: 10px 4px 0; font-size: 13.5px; line-height: 1.5; color: #9a9bab; text-align: center; }
.sidebar-legal .text-link-button { font-size: 13.5px; color: #7a6bd0; }
.public-landing-footer { line-height: 1.7; }
.support-contact-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid #efeef5; }
.support-contact-form h4 { margin: 0 0 4px; }

/* Laporan masalah */
.report-issue-button { width: 100%; margin: 10px 0 8px; padding: 9px 12px; border: 1px dashed #d4cdf3; border-radius: 10px; background: #fbfaff; color: #183466; font: 700 14.5px "DM Sans", sans-serif; cursor: pointer; text-align: left; }
.report-issue-button:hover { background: #f3f0ff; }
.report-inbox { font-size: 17px; }
.report-count { background: #e07b00; }
.report-form .report-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-form .report-category-grid .choice-card p { font-size: 14px; }
.report-severity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-bottom: 6px; }
.report-severity .checkline { font-size: 14.5px; }
.report-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.report-row:hover { border-color: #bccbea; }
.report-row span:first-child { display: grid; gap: 2px; }
.report-row small { color: #7d7f92; font-size: 14px; }
.report-row.unseen { border-color: #f1c27a; background: #fffaf2; }
.report-detail h4 { margin: 14px 0 4px; font-size: 15px; }
.report-text { white-space: pre-wrap; margin: 0; font-size: 15px; color: #34364a; }
.report-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.report-attachments img { max-width: 220px; max-height: 150px; border-radius: 8px; border: 1px solid #ecebf3; object-fit: cover; }
.report-diagnostics { white-space: pre-wrap; font-size: 13.5px; background: #f8f7fc; padding: 10px; border-radius: 8px; max-height: 240px; overflow: auto; }
.report-thread { display: grid; gap: 8px; margin-bottom: 10px; }
.report-message { padding: 9px 12px; border-radius: 10px; background: #f6f6fa; max-width: 85%; }
.report-message.from-admin { background: #eef3fc; justify-self: end; }
.report-message p { margin: 4px 0; white-space: pre-wrap; font-size: 15px; }
.report-message small { color: #8a8b9d; font-size: 13.5px; }

/* Penyimpanan */
.storage-summary .pool-usage strong { font-size: 24px; }
.storage-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.storage-options .modal-actions { grid-column: 1 / -1; }
.storage-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.storage-files td:last-child { white-space: nowrap; text-align: right; }

@media (max-width: 860px) {
  .report-form .report-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-severity { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .report-form .report-category-grid { grid-template-columns: 1fr; }
}
.slide-image-picker { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 14px; align-items: start; }
.slide-preview { position: relative; aspect-ratio: 16 / 9; border: 1px dashed #d9d6ea; border-radius: 10px; background: #fbfaff; display: grid; place-items: center; overflow: hidden; }
.slide-preview img { width: 100%; height: 100%; object-fit: cover; }
.slide-preview .pill { position: absolute; left: 6px; bottom: 6px; }
@media (max-width: 720px) { .slide-image-picker { grid-template-columns: 1fr; } }

/* Slide dashboard (peserta, pengajar, lembaga) */
.dash-slides { position: relative; min-height: 190px; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background-color: #4d3b9d; background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; padding: 26px 30px 34px; transition: background-image .5s ease; }
.dash-slides[hidden] { display: none; }
.dash-slide-copy { max-width: 620px; animation: dash-slide-in .55s ease both; }
.dash-slide-copy h2 { margin: 0 0 6px; font: 800 24px/1.25 Manrope, sans-serif; letter-spacing: -.4px; white-space: pre-line; }
.dash-slide-copy p { margin: 0; font-size: 16px; color: #ece8ff; }
.dash-slide-dots { position: absolute; left: 30px; bottom: 14px; display: flex; gap: 6px; }
.dash-slide-dots button { width: 22px; height: 5px; border: 0; border-radius: 999px; background: #ffffff66; cursor: pointer; padding: 0; }
.dash-slide-dots button.selected { background: #fff; width: 34px; }
.dash-slide-hide { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 999px; padding: 6px 11px; background: #00000040; color: #fff; font: 700 14px "DM Sans", sans-serif; cursor: pointer; backdrop-filter: blur(4px); }
.dash-slide-hide:hover { background: #00000066; }
@keyframes dash-slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash-slide-copy { animation: none; } .dash-slides { transition: none; } }
@media (max-width: 720px) {
  .dash-slides { min-height: 160px; padding: 20px 18px 30px; }
  .dash-slide-copy h2 { font-size: 20px; }
  .dash-slide-dots { left: 18px; }
}

/* Slide = gambar utuh tanpa tulisan di atasnya; tepi kosong diisi latar buram dari gambar yang sama. */
.public-slide.has-image { position: relative; padding: 0; background: #1f1a3a; min-height: 0; aspect-ratio: 16 / 9; align-self: center; }
.public-slide.has-image::before,
.dash-slides::before { content: ""; position: absolute; inset: -24px; background: var(--slide-image) center / cover no-repeat; filter: blur(24px) brightness(.75); }
.public-slide.has-image::after,
.dash-slides .dash-slide-image { position: absolute; inset: 0; background: var(--slide-image) center / contain no-repeat; }
.public-slide.has-image::after { content: ""; }
.public-slide.has-image .public-slide-copy h1,
.public-slide.has-image .public-slide-copy p { display: none; }
.public-slide.has-image .hero-pagination { position: absolute; left: 22px; bottom: 18px; margin: 0; z-index: 1; }
.dash-slides { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 16 / 9; max-height: 360px; padding: 0; background: #1f1a3a; }
.dash-slides .dash-slide-image { display: block; animation: dash-slide-in .55s ease both; }
.dash-slides .dash-slide-dots, .dash-slides .dash-slide-hide { z-index: 1; }
.dash-slide-dots { left: 50%; transform: translateX(-50%); bottom: 12px; }
.dash-slide-dots button { box-shadow: 0 0 0 1px #0000002e; }
.dash-slide-hide { opacity: .85; }
@media (max-width: 720px) {
  .dash-slides { max-height: none; }
  .dash-slide-dots { left: 50%; }
  .public-slide.has-image { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Bingkai slide dashboard tetap 3:1 (gambar khusus dashboard disarankan 1800×600 px). */
.dash-slides { aspect-ratio: 3 / 1; max-height: none; }
.slide-slot { border: 1px solid #ecebf3; border-radius: 12px; padding: 10px 14px 4px; margin: 10px 0; }
.slide-slot legend { padding: 0 6px; font-weight: 800; font-size: 15px; color: #34364a; }
/* Daftar gambar slide per halaman (masuk / dashboard), masing-masing dengan tombol Ubah dan Hapus. */
.slide-list-heading { margin: 18px 0 4px; font-size: 15px; color: #34364a; }
.slide-row { justify-content: flex-start; }
.slide-row-thumb { flex: 0 0 96px; border-radius: 6px; overflow: hidden; background: #f3f2f8; }
.slide-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-row-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.slide-row-title small { display: block; color: #7a7c90; }
[data-slide-form-mode] { font-weight: 700; }

/* ---------- Pengawasan ujian (autoproctor) ---------- */
.proctor-settings { border: 1px solid #ecebf3; border-radius: 12px; padding: 10px 14px 6px; margin: 12px 0; display: grid; gap: 2px; }
.proctor-settings legend { padding: 0 6px; font-weight: 800; font-size: 15px; color: #34364a; }
.proctor-rules ul { margin: 6px 0 0; padding-left: 18px; color: #5d5f73; font-size: 14px; line-height: 1.7; }
.proctor-status { display: grid; gap: 3px; border-radius: 8px; padding: 9px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.45; }
.proctor-status strong { font-size: 14.5px; }
.proctor-status small { color: inherit; opacity: .8; }
.proctor-status.proctor-low { background: #eef8f2; color: #2f7a55; }
.proctor-status.proctor-medium { background: #fff6e5; color: #9a6400; }
.proctor-status.proctor-high { background: #fdecec; color: #b23a3a; }
.proctor-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: #1d1e33e8; color: #fff; text-align: center; }
.proctor-gate[hidden] { display: none; }
.proctor-gate > div { max-width: 440px; display: grid; gap: 12px; justify-items: center; }
.proctor-gate h3 { margin: 0; font-size: 23px; }
.proctor-gate p { margin: 0; color: #e4e2f5; line-height: 1.6; font-size: 15px; }
.proctor-gate-icon { font-size: 42px; line-height: 1; }
.risk-badge { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.risk-low { background: #e7f6ee; color: #2f7a55; }
.risk-medium { background: #fff3db; color: #9a6400; }
.risk-high { background: #fde8e8; color: #b23a3a; }
.risk-none { background: #f1f1f5; color: #6f7184; }
.risk-text { color: #b23a3a; font-weight: 700; }
.proctor-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 14px 0; }
.proctor-summary > div { display: grid; gap: 4px; border: 1px solid #ecebf3; border-radius: 10px; padding: 10px 12px; background: #fff; }
.proctor-summary > div.risk-high, .proctor-summary > div.risk-medium { border-color: transparent; }
.proctor-summary strong { font-size: 21px; }
.proctor-summary span { font-size: 13.5px; color: #6f7184; }
.proctor-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.proctor-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.proctor-table th { text-align: left; font-size: 13.5px; color: #6f7184; font-weight: 700; padding: 8px; border-bottom: 1px solid #ecebf3; white-space: nowrap; }
.proctor-table td { padding: 9px 8px; border-bottom: 1px solid #f1f0f6; vertical-align: top; }
.proctor-table td small { display: block; color: #7a7c90; }
.proctor-table td.num { text-align: center; }
.proctor-table tr.row-risk-high td { background: #fff7f7; }
.proctor-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.proctor-gallery figure { margin: 0; }
.proctor-gallery img { width: 100%; border-radius: 8px; cursor: zoom-in; display: block; }
.proctor-gallery img.zoomed { position: fixed; inset: 5vh 5vw; width: 90vw; height: 90vh; object-fit: contain; background: #111; z-index: 60; cursor: zoom-out; }
.proctor-gallery figcaption { font-size: 13.5px; color: #7a7c90; margin-top: 4px; }
.proctor-timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.proctor-timeline li { display: grid; grid-template-columns: 64px 12px 1fr; gap: 4px 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid #f3f2f7; font-size: 14px; }
.proctor-timeline li[hidden] { display: none; }
.proctor-timeline time { color: #7a7c90; font-variant-numeric: tabular-nums; }
.proctor-timeline small { grid-column: 3; color: #7a7c90; }
.sev-dot { width: 9px; height: 9px; border-radius: 50%; background: #c7c8d4; }
.sev-violation .sev-dot { background: #d64545; }
.sev-warning .sev-dot { background: #e2a32b; }
.sev-violation strong { color: #b23a3a; }

/* ---------- Tombol Selesai materi ---------- */
.material-complete { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #efeff4; }
.material-complete-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.material-complete-row small { flex: 1 1 180px; color: #6f7184; line-height: 1.5; }
.material-progress { height: 6px; border-radius: 999px; background: #efeef6; overflow: hidden; }
.material-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1d3c78, #4fb38a); transition: width .6s ease; }
.material-done { color: #2f7a55; font-weight: 700; font-size: 14.5px; }
.material-complete.is-teacher { border-top: 0; padding-top: 0; }
.material-setting-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid #efeff4; padding: 8px 0; }
.material-completion-setting { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.material-completion-setting label { display: flex; gap: 6px; align-items: center; }
.mini-input { width: 76px; padding: 6px 8px; }
.visually-hidden-player { position: fixed; left: -10000px; top: 0; width: 320px; height: 180px; opacity: 0; pointer-events: none; }
.visually-hidden-player iframe, .visually-hidden-player video { width: 320px; height: 180px; border: 0; }

/* ---------- HP/tablet lama ----------
   iOS Safari < 15 dan Chrome Android < 88 belum mengenal aspect-ratio/inset: tanpa cadangan ini bingkai slide
   (yang hanya berisi gambar latar) runtuh menjadi tinggi 0 sehingga slide tidak tampil di HP. */
@supports not (aspect-ratio: 1 / 1) {
  .public-slide.has-image { height: 0; padding-top: 56.25%; }
  .dash-slides { height: 0; padding-top: 33.333%; }
  .public-slide.has-image::after, .dash-slides .dash-slide-image { top: 0; right: 0; bottom: 0; left: 0; }
  .public-slide.has-image::before, .dash-slides::before { top: -24px; right: -24px; bottom: -24px; left: -24px; }
}

/* ---------- HP & tablet: menu samping, tombol mengambang, panel chat, ujian ---------- */
.sidebar-backdrop { display: none; }
@media (max-width: 840px) {
  .sidebar { z-index: 30; }
  .sidebar-backdrop { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 29; background: #1f203e66; }
  .sidebar-backdrop[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .ai-chat-toggle, body.menu-open .meeting-chat-toggle { display: none; }
  /* Ruang kosong di bawah halaman agar teks terakhir dapat digulir keluar dari balik tombol mengambang. */
  .content { padding-bottom: 92px; }
}
@media (max-width: 600px) {
  .ai-chat-toggle { width: 46px; height: 46px; left: 12px; bottom: 12px; }
  .ai-chat-toggle .ai-chat-label { display: none; }
  .meeting-chat-toggle { min-width: 0; width: 46px; height: 46px; padding: 0; right: 12px; bottom: 12px; border-radius: 50%; }
  .meeting-chat-toggle span:last-child { display: none; }
  /* Panel chat memenuhi layar HP; tombol pembukanya disembunyikan agar tidak menutupi kolom tulis. */
  body.chat-open .ai-chat-toggle, body.chat-open .meeting-chat-toggle,
  body.meeting-chat-open .ai-chat-toggle, body.meeting-chat-open .meeting-chat-toggle { display: none; }
  body.chat-open .ai-chat-panel, body.meeting-chat-open .meeting-chat-panel { top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; z-index: 40; }
  /* Ujian di HP: modal layar penuh agar soal & tombol tidak sempit. */
  .modal.modal-exam { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
  .modal.modal-exam .modal-shell { height: 100%; max-height: 100%; border-radius: 0; padding: 18px 14px 24px; }
}
/* Elemen grid/flex tidak boleh melebarkan halaman karena tabel atau teks panjang di dalamnya
   (default min-width:auto membuat kolom ikut selebar tabel walau tabel punya wadah gulir). */
.page-grid > *, .dashboard-grid > *, .studio-grid > *, .right-column > *, .admin-tab-panel > *, .ai-users-toolbar > *, .panel { min-width: 0; }
.panel { overflow-wrap: break-word; }
@media (max-width: 600px) {
  /* Tab di HP dibungkus ke baris berikutnya (tidak terpotong di tepi layar). */
  .tab-bar { flex-wrap: wrap; overflow-x: visible; }
  .tab-button { padding: 8px 10px; }
  .ai-users-toolbar .field-select, .ai-users-toolbar .field-input { min-width: 0; flex: 1 1 140px; }
  .ai-export-form { flex-wrap: wrap; }
  .public-landing-header { gap: 8px; }
  .public-landing-header .brand-logo { max-width: 104px; }
  .proctor-summary { grid-template-columns: 1fr 1fr; }
}
.proctor-summary > div.risk-high { background: #fff4f4; border-color: #f6d4d4; }
.proctor-summary > div.risk-medium { background: #fffaf0; border-color: #f4e2bb; }
.ai-chat-toggle, .meeting-chat-toggle { transition: transform .25s ease, opacity .25s ease; }
@media (max-width: 840px) {
  body.fab-tucked .ai-chat-toggle, body.fab-tucked .meeting-chat-toggle { transform: translateY(90px); opacity: 0; pointer-events: none; }
}
/* HP kecil (≤420px, mis. 360px): bilah atas tidak boleh melebihi layar walau ada ikon notifikasi & laporan. */
@media (max-width: 420px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .breadcrumbs { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .breadcrumbs > span { display: none; }
  .breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 4px; flex: 0 0 auto; }
  .topbar-actions .icon-button { width: 26px; }
  .language-toggle { padding: 6px 5px; }
  .language-toggle span { padding: 0 1px; }
  .font-size-control { padding: 6px 7px; }
  .topbar-actions .google-login { padding: 7px 8px; }
}

/* ---------- Dashboard orang tua/wali ---------- */
.parent-child-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.parent-child-tab { display: flex; align-items: center; gap: 9px; border: 1px solid #e6e3f2; background: #fff; border-radius: 12px; padding: 8px 14px 8px 8px; text-align: left; cursor: pointer; font: inherit; }
.parent-child-tab strong { display: block; font-size: 15px; }
.parent-child-tab small { color: #7a7c90; font-size: 13.5px; }
.parent-child-tab.active { border-color: #1d3c78; box-shadow: 0 0 0 2px #1d3c7833; }
.parent-hero { border-left: 5px solid #4fb38a; }
.parent-hero.status-watch { border-left-color: #e2a32b; }
.parent-hero.status-attention { border-left-color: #d64545; }
.parent-hero-main { display: flex; gap: 14px; align-items: flex-start; }
.parent-hero-main > div { flex: 1; min-width: 0; }
.parent-hero-main h2 { margin: 2px 0 4px; font-size: 23px; }
.parent-avatar { width: 52px; height: 52px; font-size: 17px; }
.parent-institutions { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.parent-status { border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 800; white-space: nowrap; background: #e7f6ee; color: #2f7a55; }
.parent-status.watch { background: #fff3db; color: #9a6400; }
.parent-status.attention { background: #fde8e8; color: #b23a3a; }
.parent-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.parent-attention { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #f1f0f5; }
.parent-attention > span:last-child { display: grid; gap: 2px; min-width: 0; }
.parent-attention small { color: #7a7c90; }
.parent-attention-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; background: #f3f2f8; font-size: 16px; }
.parent-attention.missed .parent-attention-icon, .parent-attention.grade_low .parent-attention-icon, .parent-attention.auto_submitted .parent-attention-icon { background: #fde8e8; }
.parent-attention.due_soon .parent-attention-icon { background: #fff3db; }
.parent-attention.grade_high .parent-attention-icon { background: #e7f6ee; }
.pill-done { background: #e7f6ee; color: #2f7a55; }
.parent-score { display: inline-block; min-width: 42px; text-align: center; border-radius: 8px; padding: 4px 8px; font-weight: 800; background: #f3f2f8; }
.parent-score.score-low { background: #fde8e8; color: #b23a3a; }
.parent-score.score-mid { background: #fff7e6; color: #8a5a00; }
.parent-score.score-high { background: #e7f6ee; color: #2f7a55; }
.parent-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.parent-course { border: 1px solid #ecebf3; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.parent-course-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.parent-course-head small { display: block; color: #7a7c90; }
.parent-outcome { display: grid; gap: 4px; font-size: 14px; }
.parent-outcome small { color: #7a7c90; }
.attainment-bar-mini { height: 7px; border-radius: 999px; background: #efeef6; overflow: hidden; }
.attainment-bar-mini span { display: block; height: 100%; background: #e2a32b; }
.attainment-bar-mini span.ok { background: #4fb38a; }
.parent-chart { width: 100%; height: auto; display: block; }
.parent-chart .grid { stroke: #eceaf4; stroke-width: 1; }
.parent-chart .axis { fill: #8a8ca0; font-size: 13px; }
.parent-chart .threshold { stroke: #d64545; stroke-dasharray: 5 4; stroke-width: 1.2; }
.parent-chart .line { fill: none; stroke: #1d3c78; stroke-width: 2.5; }
.parent-chart .dot { fill: #1d3c78; }
.parent-chart .dot.low { fill: #d64545; }
.parent-chart .bar-material, .parent-legend .bar-material { fill: #1d3c78; background: #1d3c78; }
.parent-chart .bar-exam, .parent-legend .bar-exam { fill: #4fb38a; background: #4fb38a; }
.parent-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: #6f7184; margin-top: 6px; }
.parent-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.parent-material-bar { margin: 4px 0 12px; height: 9px; }
.parent-subhead { margin: 4px 0; font-size: 15px; color: #34364a; }
.parent-material-grid { margin-top: 0; }
.parent-alert-form { display: grid; gap: 6px; }
.parent-privacy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.parent-onboarding .parent-steps { margin: 4px 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.parent-steps li span { display: block; color: #6f7184; font-size: 14.5px; }
.parent-link-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.parent-access-panel .dash-row .button { white-space: nowrap; }
.parent-code-card { display: grid; gap: 4px; justify-items: start; border: 1px dashed #b9abef; background: #faf8ff; border-radius: 12px; padding: 12px 14px; margin: 6px 0 10px; }
.parent-code { font-family: "Manrope", monospace; font-size: 28px; letter-spacing: 3px; color: #4b34b8; }
@media (max-width: 600px) {
  .parent-link-form { grid-template-columns: 1fr; }
  .parent-hero-main { flex-wrap: wrap; }
  .parent-hero-main h2 { font-size: 20px; }
  .parent-status { order: -1; }
}

/* Cetak bagian tertentu saja (laporan orang tua, detail pengawasan) tanpa menu & tombol. */
@media print {
  body.print-parent #parentContent, body.print-parent #parentContent * { visibility: visible !important; }
  body.print-parent #parentContent { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-parent #parentContent button, body.print-parent #parentAlertsPanel, body.print-parent .parent-privacy button { display: none !important; }
  body.print-modal .modal-shell, body.print-modal .modal-shell * { visibility: visible !important; }
  body.print-modal .modal-shell { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; box-shadow: none; }
  body.print-modal .modal-shell button, body.print-modal .modal-close { display: none !important; }
  .panel { break-inside: avoid; }
}
.parent-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.parent-alert-history [hidden] { display: none; }
@media (max-width: 600px) { .parent-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .auth-role-grid { grid-template-columns: 1fr; } }
.parent-pending-codes { margin-top: 8px; font-size: 14.5px; }
.parent-pending-codes summary { cursor: pointer; color: #1d3c78; font-weight: 700; padding: 6px 0; }

/* ---------- Katalog produk (super admin) ---------- */
.catalog-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.catalog-summary > div { display: grid; gap: 3px; border: 1px solid #ecebf3; border-radius: 10px; padding: 10px 12px; background: #fff; }
.catalog-summary strong { font-size: 19px; }
.catalog-summary span { font-size: 13.5px; color: #6f7184; }
.catalog-summary .catalog-summary-warn { background: #fffaf0; border-color: #f4e2bb; }
.catalog-filters { display: grid; gap: 8px; margin-bottom: 12px; }
.catalog-type-tabs { margin: 0; }
.catalog-count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #efedf8; color: #5d4bb8; font-size: 13.5px; margin-left: 4px; }
.tab-button.active .catalog-count { background: #ffffff33; color: inherit; }
.catalog-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.catalog-filter-row .field-select, .catalog-filter-row .field-input { width: auto; flex: 1 1 160px; min-width: 0; }
.catalog-view-toggle { display: inline-flex; border: 1px solid #e3e0f2; border-radius: 8px; overflow: hidden; }
.catalog-view-toggle button { border: 0; background: #fff; padding: 8px 12px; cursor: pointer; font-size: 16px; color: #6f7184; }
.catalog-view-toggle button.active { background: #1d3c78; color: #fff; }
.catalog-result-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: #4f5061; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.catalog-card { display: grid; gap: 6px; align-content: start; border: 1px solid #ecebf3; border-radius: 12px; padding: 14px; background: #fff; }
.catalog-card h4 { margin: 2px 0 0; font-size: 16.5px; }
.catalog-card.inactive { background: #fafafc; }
.catalog-card.inactive h4, .catalog-card.inactive .catalog-price { color: #8a8ca0; }
.catalog-card.missing { border-style: dashed; background: #fcfbff; }
.catalog-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.catalog-status { border-radius: 999px; padding: 3px 9px; font-size: 13.5px; font-weight: 800; }
.catalog-status.active { background: #e7f6ee; color: #2f7a55; }
.catalog-status.inactive { background: #f1f1f5; color: #6f7184; }
.catalog-status.missing { background: #fff3db; color: #9a6400; }
.catalog-price { font: 800 21px Manrope, sans-serif; color: #2f2a6b; }
.catalog-price small { display: block; font: 500 13.5px "DM Sans", sans-serif; color: #7a7c90; }
.catalog-warning { background: #fff3db; color: #8a5a00; border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.catalog-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 4px 0; }
.catalog-stats div { min-width: 0; }
.catalog-stats dt { font-size: 13.5px; color: #8a8ca0; }
.catalog-stats dd { margin: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.catalog-stats dd small { font-weight: 500; color: #7a7c90; }
.catalog-card-actions, .catalog-row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.catalog-table td small { display: block; color: #7a7c90; }
.catalog-row-missing td { background: #fffdf6; }
.catalog-edit-stats { display: grid; gap: 2px; margin: 10px 0 4px; padding: 8px 10px; border-radius: 8px; background: #f7f6fb; font-size: 14px; color: #4f5061; }
@media (max-width: 600px) {
  .catalog-filter-row .field-select, .catalog-filter-row .field-input { flex: 1 1 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ===== Tampilan sederhana (gaya Google Classroom/Moodle) =====
   Ikon SVG standar, teks lebih besar, label huruf kapital kecil disembunyikan, dan komponen manajemen akun. */
:root { --ink-soft: #5f6175; --hover: #f1f4fb; --active: #e8eefb; --danger: #c5453a; }
body { font-size: 15px; color: var(--ink); }
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; vertical-align: middle; }
.button .ic { width: 18px; height: 18px; margin: -2px 0; }
.button { font-size: 14px; gap: 7px; }
.text-link { font-size: 14px; }
.field-help, .modal-subtitle { font-size: 13.5px; color: #6f7184; }
.field-input, .field-select { font-size: 14.5px; }
.pill { font-size: 12.5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: #8a8ca0; }

/* Label kategori kecil berhuruf kapital (eyebrow/kicker) tidak ditampilkan: judul sudah cukup jelas. */
.section-heading .eyebrow, .page-heading .eyebrow, .modal-kicker, .empty-cta .eyebrow { display: none; }
.section-heading h3 { font-size: 17px; margin-top: 0; }
.page-heading h2 { font-size: 26px; }
.page-heading p { font-size: 15px; color: #6f7184; max-width: 760px; }

/* Menu samping */
.sidebar { overflow-y: auto; padding-top: 22px; }
.main-nav { gap: 2px; margin-top: 14px; }
.nav-link { height: 42px; gap: 14px; padding: 0 14px; border-radius: 0 21px 21px 0; margin-left: -17px; padding-left: 31px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; border: 0; background: none; width: calc(100% + 17px); text-align: left; cursor: pointer; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.active { background: var(--active); color: #183466; font-weight: 700; }
.nav-icon { width: 20px; display: inline-grid; place-items: center; }
.nav-section { height: 1px; padding: 0; margin: 8px 6px; background: #ecebf2; font-size: 0; }
.nav-section:first-child { padding-top: 0; }
.sidebar-bottom { padding-top: 10px; border-top: 1px solid #f0f0f4; display: grid; gap: 2px; }
.report-issue-button, .report-issue-button:hover { margin: 0; border: 0; background: none; font: 500 14.5px "DM Sans", sans-serif; color: var(--ink-soft); }
.report-issue-button:hover { background: var(--hover); }
.profile-card { margin-top: 6px; padding: 12px 5px 4px; }
.profile-copy strong { font-size: 14px; }
.profile-copy small { font-size: 12.5px; color: #85879b; overflow-wrap: anywhere; }
.profile-menu .ic { width: 20px; height: 20px; }

/* Bilah atas */
.topbar { height: 64px; }
.breadcrumbs strong { font: 700 19px Manrope, sans-serif; color: var(--ink); letter-spacing: -.3px; }
.topbar-actions { gap: 6px; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-soft); font-size: 0; }
.icon-button:hover { background: #f1f1f5; color: var(--ink); }
.icon-button .ic { width: 22px; height: 22px; }
.icon-button[hidden] { display: none; }
.notification-count { top: 3px; right: 2px; font-size: 11px; }
.mobile-menu { display: none; }
.semester-pill { font-size: 13.5px; padding: 8px 12px; border-radius: 18px; }
.language-toggle { font-size: 13px; border-radius: 18px; padding: 8px 12px; }
@media (max-width: 840px) {
  .mobile-menu { display: inline-grid; padding: 0; }
  .nav-link { margin-left: 0; width: 100%; padding-left: 14px; border-radius: 21px; }
  .breadcrumbs strong { font-size: 17px; }
}
@media (max-width: 600px) {
  .language-toggle, .semester-pill { display: none; }
}

/* Kartu & daftar dashboard */
.stat-number { font-size: 26px; }
.stat-label { font-size: 14px; color: var(--ink-soft); }
.stat-foot { font-size: 12.5px; }
.quick-icon { width: 38px; height: 38px; border-radius: 50%; }
.quick-icon .ic { width: 22px; height: 22px; }
.quick-action strong { font-size: 14.5px; }
.quick-action small { font-size: 13px; }
.dash-row strong { font-size: 14.5px; }
.dash-row small { font-size: 13px; }
.dash-row > .ic { color: #a6a7b6; }
.health-flag .ic { width: 16px; height: 16px; }
.pool-alert { display: flex; gap: 8px; align-items: flex-start; }
.pool-alert .ic { width: 18px; height: 18px; }
.row-action { display: inline-flex; align-items: center; gap: 6px; }
.row-action .ic { width: 17px; height: 17px; }
.dash-slide-hide { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.dash-slide-hide .ic { width: 18px; height: 18px; }
.search-result > .ic { color: #a6a7b6; }
.course-art .ic { width: 20px; height: 20px; }

/* Chat AI & chat kelas */
.ai-chat-toggle .ic { width: 24px; height: 24px; }
.ai-chat-avatar .ic, .meeting-chat-icon .ic { width: 20px; height: 20px; }
.ai-chat-header-action, #aiChatClose, #meetingChatClose { display: inline-grid; place-items: center; }
.ai-chat-header-action .ic, #aiChatClose .ic, #meetingChatClose .ic { width: 18px; height: 18px; }
.ai-chat-attach { display: grid; place-items: center; color: var(--ink-soft); }
.ai-chat-form .button-primary, .meeting-chat-form .button-primary { justify-content: center; }
.meeting-chat-toggle .ic { width: 20px; height: 20px; }
.chat-file .ic { width: 16px; height: 16px; margin-right: 4px; }

/* Manajemen akun */
.accounts-panel { padding: 18px; }
.account-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; color: var(--ink-soft); font-size: 14px; }
.account-summary strong { color: var(--ink); font-size: 16px; }
.account-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.account-toolbar .field-select { width: auto; min-width: 150px; }
.search-field { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e5e4ed; border-radius: 22px; background: #fff; color: #8a8ca0; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; font: 14.5px "DM Sans", sans-serif; background: transparent; color: var(--ink); }
.search-field:focus-within { border-color: #9d8ae8; box-shadow: 0 0 0 3px #e8eefb; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: #f1f4fb; font-size: 14px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar > span { margin-right: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.account-table th { text-align: left; font-size: 13px; font-weight: 600; color: #6f7184; padding: 10px; border-bottom: 1px solid #ecebf3; white-space: nowrap; }
.account-table td { padding: 10px; border-bottom: 1px solid #f1f0f6; vertical-align: middle; }
.account-table tr:hover td { background: #fafaff; }
.account-table tr.row-muted td { color: #8a8ca0; }
.account-table td small { display: block; font-size: 12.5px; }
.account-table .check-cell { width: 40px; }
.account-table .check-cell input { width: 18px; height: 18px; accent-color: #1d3c78; }
.account-table .actions-cell { width: 1%; white-space: nowrap; text-align: right; }
.account-identity { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.account-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
.account-identity strong { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.account-identity small { color: #7a7c90; overflow-wrap: anywhere; }
.account-identity .avatar { width: 36px; height: 36px; font-size: 13px; }
.icon-action { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); display: inline-grid; place-items: center; }
.icon-action:hover:not(:disabled) { background: #f1effc; color: #183466; }
.icon-action.danger:hover:not(:disabled) { background: #fdecea; color: var(--danger); }
.icon-action:disabled { opacity: .4; cursor: default; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-active { background: #e7f6ee; color: #23774e; }
.status-inactive { background: #f1f1f5; color: #6a6c80; }
.status-removed { background: #fdecea; color: #a8362c; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .account-toolbar .field-select, .account-toolbar .button { flex: 1 1 45%; }
  .account-identity { min-width: 160px; }
}

/* Layar memuat awal: halaman masuk & dashboard disembunyikan sampai status login diketahui. */
.boot-splash { display: none; }
.app-booting .public-landing, .app-booting .app-shell { display: none !important; }
.app-booting .boot-splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #f7f8fc; }
.boot-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #e4e0f7; border-top-color: #1d3c78; opacity: 0; animation: boot-fade .2s ease .3s forwards, boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@keyframes boot-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot-spinner { animation: boot-fade .2s ease .3s forwards; } }
/* Judul slide bawaan (tanpa gambar) harus putih di atas latar ungu; h1 global berwarna gelap. */
.public-slide h1 { color: #fff; }
/* Peringatan koreksi AI (halaman Koreksi uraian, dashboard & Kelola lembaga). */
.ai-grading-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 14.5px; color: #7a5b1f; }
.ai-grading-notice .ic { width: 20px; height: 20px; color: #c08a1e; margin-top: 1px; }

/* ===== Mata kuliah / mata pelajaran (gaya Google Classroom) ===== */
.course-color-0 { --course-color: #1e7e5a; }
.course-color-1 { --course-color: #1a73e8; }
.course-color-2 { --course-color: #1d3c78; }
.course-color-3 { --course-color: #c2410c; }
.course-color-4 { --course-color: #0f766e; }
.course-color-5 { --course-color: #b91c1c; }
.course-color-6 { --course-color: #475569; }
.course-color-7 { --course-color: #a16207; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.course-card { display: flex; flex-direction: column; border: 1px solid #e6e5ee; border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .15s; }
.course-card:hover { box-shadow: 0 6px 18px #2720431a; }
.course-card.is-archived { opacity: .75; }
.course-card-banner { display: grid; gap: 3px; min-height: 104px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--course-color), color-mix(in srgb, var(--course-color) 70%, #000)); }
.course-card-banner strong { font: 700 19px Manrope, sans-serif; line-height: 1.25; overflow-wrap: anywhere; }
.course-card-banner span { font-size: 14px; opacity: .92; }
.course-card-banner small { font-size: 13.5px; opacity: .85; margin-top: auto; }
.course-card-banner:hover strong { text-decoration: underline; }
.course-card-body { display: grid; gap: 10px; padding: 12px 18px 14px; flex: 1; align-content: space-between; }
.course-card-stats { display: flex; gap: 18px; color: #6f7184; font-size: 14px; }
.course-card-stats span { display: inline-flex; align-items: center; gap: 6px; }
.course-card-stats .ic { width: 18px; height: 18px; }
.course-archive { margin-top: 8px; }
.course-archive summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; }
.color-picker { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 12px 0 4px; }
.color-picker legend { margin-bottom: 8px; padding: 0; }
.color-swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--course-color); cursor: pointer; display: grid; place-items: center; }
.color-swatch input { appearance: none; width: 14px; height: 14px; border-radius: 50%; margin: 0; cursor: pointer; }
.color-swatch input:checked { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--course-color) 60%, #000); }
.color-swatch:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.course-banner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 160px; padding: 22px 26px; margin-bottom: 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--course-color), color-mix(in srgb, var(--course-color) 65%, #000)); }
.course-back { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #ffffff26; }
.course-back:hover { background: #ffffff40; }
.course-banner-text { padding-top: 34px; min-width: 0; }
.course-banner-text h2 { margin: 0 0 6px; font: 700 clamp(24px, 3vw, 32px) Manrope, sans-serif; color: #fff; overflow-wrap: anywhere; }
.course-banner-text p { margin: 2px 0; font-size: 15px; opacity: .92; }
.course-banner .status-pill { margin-top: 8px; }
.course-code-box { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #ffffff1f; text-align: left; }
.course-code-box span { font-size: 13px; opacity: .9; }
.course-code-box strong { font: 700 24px/1.2 Manrope, sans-serif; letter-spacing: 2px; }
.course-code-box small { font-size: 12.5px; opacity: .85; }
.course-code-actions { display: flex; gap: 4px; margin-top: 4px; }
.course-code-box .icon-action { color: #fff; }
.course-code-box .icon-action:hover { background: #ffffff33; color: #fff; }
.course-tabs .tab-button { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.course-tabs .tab-button .ic { width: 18px; height: 18px; }
.course-tab-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.course-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.course-item > .material-card, .course-item > .meeting-card { flex: 1; }
.course-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.person-list { display: grid; gap: 4px; margin-top: 8px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f0f6; }
.member-pick-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; margin: 8px 0; padding: 4px; border: 1px solid #ecebf3; border-radius: 10px; }
.member-pick { padding: 6px 8px; border-radius: 8px; }
.member-pick:hover { background: #f6f5fb; }
.course-code-large { font: 700 32px/1.2 Manrope, sans-serif; letter-spacing: 3px; color: var(--ink); margin: 6px 0; }
.course-danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid #f1f0f6; }
.dash-courses { margin-bottom: 18px; }
.dash-courses .section-heading { margin-bottom: 10px; }
.heading-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.material-group { margin-bottom: 22px; }
.material-group > .section-heading { margin-bottom: 10px; }
@media (max-width: 600px) {
  .course-banner { padding: 18px; min-height: 140px; }
  .course-code-box { width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
}

/* ===== Forum, topik, tugas, buku nilai, backup ===== */
.ic.flip { transform: rotate(180deg); }
.forum-composer textarea { resize: vertical; }
.forum-composer .modal-actions { justify-content: space-between; align-items: center; }
.forum-post { margin-bottom: 12px; }
.forum-post.is-pinned { border-color: #e5d9a8; }
.forum-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forum-meta small { color: #8a8ca0; }
.forum-meta .avatar { width: 34px; height: 34px; font-size: 13px; }
.forum-actions { margin-left: auto; display: inline-flex; gap: 2px; }
.forum-body { margin: 10px 0 4px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.forum-comments { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f0f6; }
.forum-comment p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.forum-comment .icon-action { width: 30px; height: 30px; }
.forum-comment .icon-action .ic { width: 16px; height: 16px; }
.forum-comment-form { margin-top: 10px; display: flex; gap: 6px; }
.forum-comment-form .field-input { flex: 1; }
.topic-section { margin-bottom: 22px; }
.topic-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--active); }
.topic-heading h3 { margin: 0; font: 700 18px Manrope, sans-serif; }
.topic-actions { display: inline-flex; gap: 2px; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #e5e4ed; border-radius: 18px; background: #fff; font-size: 14px; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.file-chip:hover { border-color: #b9aaf0; background: #faf9ff; }
.file-chip .ic { width: 18px; height: 18px; color: #1d3c78; }
.file-chip-row { display: inline-flex; align-items: center; gap: 2px; }
.file-pick { cursor: pointer; margin-top: 6px; }
.assignment-instructions { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.submission-list { display: grid; gap: 10px; }
.submission-row { padding: 12px; border: 1px solid #ecebf3; border-radius: 10px; }
.submission-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.submission-head .muted { display: block; font-size: 12.5px; }
.grade-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.grade-form .field-input { flex: 1 1 200px; }
.grade-form .mini-input { flex: 0 0 96px; width: 96px; }
.gradebook-table th { min-width: 110px; vertical-align: bottom; }
.gradebook-table th small { display: block; font-weight: 500; }
.gradebook-head { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; white-space: normal; }
.gradebook-head .ic { width: 16px; height: 16px; flex: 0 0 auto; }
.gradebook-table td small { font-size: 12px; }
.backup-facts { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.backup-facts code, #adminBackupPanel td code { font-size: 13px; overflow-wrap: anywhere; }

/* ===== Pertemuan mata kuliah & bilah generate Studio AI ===== */
.nav-link { position: relative; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; background: #e5484d; color: #fff; font: 700 12px/1 "DM Sans", sans-serif; }
.nav-badge[hidden] { display: none; }
.form-step { margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid #f1f0f6; font: 700 15.5px Manrope, sans-serif; color: var(--ink); }
.form-step:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.session-test-options { display: grid; gap: 6px; align-content: end; padding-bottom: 4px; }
.session-card { margin-bottom: 14px; border: 1px solid var(--line); border-left: 4px solid var(--course-color, #1d3c78); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.session-card.kind-midterm, .session-card.kind-final { border-left-color: #d99a00; background: linear-gradient(90deg, #fffaf0, #fff 40%); }
.session-card.kind-general { border-left-color: #b8b9c8; }
.session-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.session-head h3 { margin: 0; font: 700 18px/1.3 Manrope, sans-serif; overflow-wrap: anywhere; }
.session-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.session-head-actions, .session-item-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; flex: 0 0 auto; }
.session-notes { margin: 8px 0 0; color: #4f5166; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.session-schedule { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f4f2ff; }
.session-items { display: grid; gap: 2px; margin-top: 10px; }
.session-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 4px; border-top: 1px solid #f3f2f8; }
.session-item:first-child { border-top: 0; }
.session-item > details { flex: 1; min-width: 0; }
.session-item summary, .session-item-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.session-item summary { cursor: pointer; list-style: none; border-radius: 8px; }
.session-item summary::-webkit-details-marker { display: none; }
.session-item summary:hover strong { color: #5a43c0; }
.session-item-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ebf0fb; color: #1d3c78; }
.session-item-icon .ic { width: 20px; height: 20px; }
.session-item-icon.quiz { background: #fff1de; color: #b56a00; }
.session-item-icon.task { background: #e3f5ec; color: #1f7a4d; }
.session-item-text { display: grid; gap: 2px; min-width: 0; }
.session-item-text strong { font-size: 15.5px; overflow-wrap: anywhere; }
.session-item-text small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.session-item-body { margin: 10px 0 4px 50px; }
.session-items > .field-help { margin: 4px 0; }
.session-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e1ee; }
.session-add .button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.session-add .button .ic { width: 18px; height: 18px; }
.session-add .button-primary { order: -1; }
.session-title-link { color: inherit; text-decoration: none; }
.session-title-link:hover, .session-title-link:focus-visible { color: #5a43c0; text-decoration: underline; text-underline-offset: 3px; }
.session-test-mode { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #7a5200; font-size: 14px; font-weight: 600; }
.session-test-mode .ic { width: 17px; height: 17px; }
.tone-warn-text { color: #8a5a00; }
.session-item-icon.test { background: #fff4dc; color: #8a5a00; }
.session-item-icon.quiz-link { background: #e8f1fd; color: #2a62b8; }
.session-item-text .session-item-note { color: var(--ink); white-space: pre-line; }

/* Buat kuis: kuis LMS + autoproctor (Pro) atau tautan kuis platform lain */
.quiz-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 4px; }
.quiz-choice { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 16px; border: 1px solid #eae9f1; border-radius: 12px; background: white; }
.quiz-choice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.quiz-choice strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16px; }
.quiz-choice .button { margin-top: 4px; }
.quiz-choice.locked { border-style: dashed; border-color: #d9d2f5; background: #faf8ff; }
.quiz-choice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff1de; color: #b56a00; }
.quiz-choice.locked .quiz-choice-icon { background: #e8eefb; color: #1d3c78; }
.quiz-choice-icon .ic { width: 20px; height: 20px; }
.pill-pro { background: #1d3c78; color: white; font-weight: 700; }
@media (max-width: 640px) {
  .quiz-choice-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Ruang satu pertemuan */
.session-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.session-workspace > * { min-width: 0; }
.session-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.session-nav-steps { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.session-nav-steps .field-select { width: auto; max-width: 340px; min-width: 0; }
.session-nav-steps .icon-action:disabled { visibility: hidden; }
.session-focus { padding: 20px 22px; }
.session-focus .session-head { padding-bottom: 14px; border-bottom: 1px solid #f0eff6; }
.session-focus .session-head h2 { margin: 2px 0 0; font: 800 24px/1.25 Manrope, sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.session-section { padding: 16px 0; border-bottom: 1px solid #f0eff6; }
.session-section:last-child { border-bottom: 0; padding-bottom: 2px; }
.session-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.session-section-head h4 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.3 Manrope, sans-serif; }
.session-section-head h4 .ic { width: 20px; height: 20px; color: #1d3c78; }
.session-section .session-head-actions .button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
/* Tombol di kepala bagian boleh turun baris di layar sempit (tidak melebarkan halaman). */
.session-section-head > .session-head-actions, .session-head > .session-head-actions { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.session-section > .field-help { margin: 8px 0 0; }
.session-section .session-schedule:first-of-type { margin-top: 10px; }
.session-material-form { margin-top: 12px; padding: 14px 16px; border: 1px solid #e4def9; border-radius: 12px; background: #fbfaff; }
.session-material-form .section-heading { margin-top: 0; }
.session-test-info { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff8e8; color: #4f5166; line-height: 1.5; }
.session-test-info .ic { flex: 0 0 auto; width: 22px; height: 22px; color: #8a5a00; }
.session-test-info span { display: grid; gap: 2px; }
.session-test-info b { color: var(--ink); }
.test-mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.test-mode-card { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; align-items: start; align-content: start; padding: 12px 14px; border: 1px solid #e6e4ef; border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.test-mode-card:hover { border-color: #b9aaee; }
.test-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.test-mode-card:focus-within { outline: 3px solid #bccbea; outline-offset: 1px; }
.test-mode-card.selected { border-color: #1d3c78; background: #f7f5ff; box-shadow: 0 0 0 1px #1d3c78 inset; }
.test-mode-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1effa; color: #1d3c78; }
.test-mode-card.selected .test-mode-icon { background: #1d3c78; color: #fff; }
.test-mode-icon .ic { width: 20px; height: 20px; }
.test-mode-card strong { font-size: 15px; }
.test-mode-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }

.alert-note:has(> .ic) { display: flex; align-items: flex-start; gap: 8px; }
.alert-note > .ic { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }

/* Materi teks, tingkatan akun, dan jalur Studio AI dari pertemuan */
.material-tiers { list-style: none; display: grid; gap: 4px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; background: #fbfbfe; font-size: 13.5px; }
.material-tiers li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); }
.material-tiers li .ic { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; fill: currentColor; }
.material-tiers li.ok .ic { color: #23774e; }
.material-tiers li.locked { color: var(--muted); }
.material-tiers li.locked .ic { color: #a3a5b5; }
.material-tiers small { color: #8a5a00; font-weight: 600; }
.material-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.material-card-text .material-card-body { gap: 6px; }
.material-text { color: #33354a; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.material-text p { margin: 0 0 10px; }
.material-document { max-height: 70vh; overflow-y: auto; padding: 4px 6px 4px 0; font-size: 14.5px; line-height: 1.65; }
.material-document h1 { font-size: 20px; margin: 4px 0 6px; }
.material-document h2 { font-size: 16.5px; margin: 16px 0 6px; }
.material-document h3 { font-size: 15px; margin: 12px 0 4px; }
.studio-context { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; margin-bottom: 12px; border-color: #d9d0fb; background: #f8f6ff; }
.studio-context-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #1d3c78; color: #fff; }
.studio-context-icon .ic { width: 22px; height: 22px; fill: currentColor; }
.studio-context div { display: grid; gap: 2px; min-width: 0; }
.studio-context strong { font-size: 16px; }
.studio-context small { color: var(--muted); font-size: 13.5px; }
.studio-context-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
.session-quiz-area { margin-top: 4px; padding-top: 14px; border-top: 1px solid #f0eff6; }
.studio-ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 10px 14px; border-radius: 10px; background: #f6f3ff; color: #4f5166; font-size: 14px; }
.studio-ai-bar > .ic { width: 20px; height: 20px; color: #1d3c78; fill: currentColor; }
.studio-ai-bar span { flex: 1 1 260px; }
.modal-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-right: 40px; }
.modal-title-row .modal-title { margin: 0; }
.add-by-email { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0eff6; }
.add-by-email h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.add-by-email h4 .ic { width: 19px; height: 19px; color: #1d3c78; }
.add-by-email-actions { grid-column: 1 / -1; margin-top: 0; }

/* Input nilai penilaian langsung & bobot nilai akhir */
.grade-entry-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.grade-entry-tools .field-input { max-width: 280px; }
.grade-entry-scroll { max-height: 56vh; overflow-y: auto; }
.grade-entry-table td { vertical-align: middle; }
.grade-entry-table td:nth-child(2) { min-width: 180px; }
.grade-entry-table td:nth-child(2) small { display: block; }
.grade-entry-table .grade-score { width: 96px; font-variant-numeric: tabular-nums; }
.grade-entry-table .grade-score.invalid { border-color: #c5453a; background: #fdf3f2; }
.grade-weights .section-heading { margin-bottom: 4px; }
.grade-weight-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 8px; }
.grade-weight-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; color: #4f5166; }
.grade-weight-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.grade-weight-input .field-input { width: 78px; }
.grade-weight-total { padding: 8px 10px; border-radius: 8px; background: #e7f6ee; color: #23774e; font-weight: 700; font-variant-numeric: tabular-nums; }
.grade-weight-total.bad { background: #fdecea; color: #a8362c; }
.grade-weight-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.gradebook-summary { background: #faf9ff; white-space: nowrap; }
th.gradebook-summary small { display: block; font-weight: 600; }
.generate-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 18px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e4def9; border-radius: 12px; background: #f8f6ff; }
.generate-model { display: grid; gap: 4px; min-width: 0; }
.generate-model .field-label { margin: 0; }
.generate-model .field-select { max-width: 360px; }
.generate-model [data-model-note] { margin: 0; color: #5d5f75; font-size: 13.5px; line-height: 1.5; }
.generate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.generate-actions .button { min-height: 44px; }
.manual-alternative { margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 700px) {
  .generate-bar { grid-template-columns: 1fr; }
  .generate-actions, .generate-actions .button { width: 100%; justify-content: center; }
  .manual-alternative { text-align: left; }
  .session-card { padding: 14px; }
  .session-item { flex-wrap: wrap; }
  .session-item-actions { width: 100%; }
  .session-item-body { margin-left: 0; }
  .session-schedule { flex-wrap: wrap; }
  .session-focus { padding: 14px; }
  .session-focus .session-head { flex-wrap: wrap; }
  .session-focus .session-head > .session-head-actions { flex: 1 1 100%; justify-content: flex-start; }
  .session-focus .session-head h2 { font-size: 20px; }
  .session-nav { align-items: stretch; }
  .session-nav > .button, .session-nav-steps { width: 100%; }
  .session-nav-steps .field-select { flex: 1; max-width: none; }
  .test-mode-grid { grid-template-columns: 1fr; }
  .grade-weight-actions { margin-left: 0; width: 100%; }
  .studio-context { grid-template-columns: auto minmax(0, 1fr); }
  .studio-context-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ===== Presensi tatap muka (foto + GPS) ===== */
.attendance-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; margin-right: 4px; }
.attendance-pill.tone-ok { background: #e7f6ee; color: #23774e; }
.attendance-pill.tone-warn { background: #fff4dc; color: #8a5a00; }
.attendance-pill.tone-info { background: #e8f0fe; color: #2a5bb8; }
.attendance-pill.tone-bad { background: #fdecea; color: #a8362c; }
.attendance-pill.tone-review { background: #f3e8ff; color: #7a3fbf; }
.tone-review-text { color: #7a3fbf; font-weight: 700; }
.tone-bad-text { color: #a8362c; }
.attendance-capture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.attendance-camera { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #1f2030; }
.attendance-camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.attendance-camera-hint { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: #0009; color: #fff; font-size: 13px; text-align: center; }
.attendance-steps { display: grid; gap: 10px; }
.attendance-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.attendance-step strong { display: block; font-size: 15px; }
.attendance-step small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.attendance-step-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ebf0fb; color: #1d3c78; }
.attendance-step-icon .ic { width: 20px; height: 20px; }
.attendance-step[data-tone="ok"] { border-color: #bfe5d0; background: #f3fbf6; }
.attendance-step[data-tone="ok"] .attendance-step-icon { background: #e7f6ee; color: #23774e; }
.attendance-step[data-tone="warn"] { border-color: #f1dfb2; background: #fffaf0; }
.attendance-step[data-tone="warn"] .attendance-step-icon { background: #fff4dc; color: #8a5a00; }
.attendance-step[data-tone="bad"] { border-color: #f3c9c4; background: #fff6f5; }
.attendance-step[data-tone="bad"] .attendance-step-icon { background: #fdecea; color: #a8362c; }
.attendance-privacy { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.attendance-privacy .ic { flex: 0 0 18px; width: 18px; height: 18px; }
.attendance-result { display: flex; gap: 18px; align-items: center; margin: 14px 0 6px; }
.attendance-result h3 { margin: 6px 0; font: 700 20px Manrope, sans-serif; }
.attendance-result-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; }
.attendance-result-icon .ic { width: 34px; height: 34px; color: #23774e; }
.attendance-point-capture { width: 100%; padding: 12px; border: 1px dashed #c9bdf3; border-radius: 12px; background: #faf8ff; }
.attendance-point-capture p { margin: 4px 0; }
.attendance-point-captured { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #23774e; font-weight: 600; }
.attendance-point-captured .ic { width: 18px; height: 18px; }
.attendance-control { display: grid; gap: 10px; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfe; }
.attendance-control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.attendance-control-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.attendance-control-actions .button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.attendance-point-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.attendance-point-label .ic { width: 20px; height: 20px; color: #1d3c78; }
.attendance-inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.attendance-inline-field .field-select { width: auto; min-width: 110px; padding-top: 6px; padding-bottom: 6px; }
.attendance-counters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.attendance-counters span { display: grid; min-width: 92px; padding: 8px 12px; border-radius: 10px; background: #f4f4f8; font-size: 13px; color: var(--ink-soft); }
.attendance-counters b { font: 700 20px Manrope, sans-serif; color: var(--ink); }
.attendance-counters .tone-ok { background: #eef8f2; }
.attendance-counters .tone-warn { background: #fff8e8; }
.attendance-counters .tone-review { background: #f6efff; }
.attendance-counters .tone-info { background: #eef3fd; }
.attendance-counters .tone-bad { background: #fdf0ee; }
.attendance-counters .attendance-counter-total { margin-left: auto; background: var(--active); }
.attendance-roster { display: grid; gap: 2px; margin-top: 12px; }
.attendance-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 6px; border-top: 1px solid #f1f0f6; }
.attendance-row:first-child { border-top: 0; }
.attendance-row.needs-review { background: #fbf7ff; border-radius: 10px; }
.attendance-photo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #ebf0fb; color: #1d3c78; font-weight: 700; }
.attendance-photo img { width: 100%; height: 100%; object-fit: cover; }
.attendance-person { display: grid; gap: 2px; min-width: 0; }
.attendance-person strong { overflow-wrap: anywhere; }
.attendance-person small { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.attendance-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.attendance-actions .button { min-height: 36px; padding: 5px 10px; font-size: 13.5px; }
.attendance-mark { width: auto; min-width: 130px; padding-top: 6px; padding-bottom: 6px; }
.attendance-table th { min-width: 64px; text-align: center; vertical-align: bottom; }
.attendance-table th:first-child { text-align: left; }
.attendance-table th small { display: block; font-weight: 500; color: var(--muted); }
.attendance-cell { text-align: center; position: relative; }
.attendance-cell .attendance-pill { margin: 0; padding: 2px 8px; }
.attendance-review-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #7a3fbf; }
.attendance-low { color: #a8362c; }
.attendance-mine-list { display: grid; gap: 2px; margin-top: 8px; }
.attendance-mine-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid #f1f0f6; }
.attendance-mine-row:first-child { border-top: 0; }
.attendance-mine-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.attendance-mine-row small { color: var(--ink-soft); font-size: 13.5px; }
.attendance-live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.attendance-live-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.attendance-live-card > small { color: var(--ink-soft); }
.attendance-live-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.attendance-live-head small { color: var(--ink-soft); font-weight: 600; }
.attendance-progress { height: 8px; border-radius: 6px; background: #eeedf5; overflow: hidden; }
.attendance-progress i { display: block; height: 100%; border-radius: 6px; background: #3aa86b; transition: width .4s; }
.attendance-live-count { margin: 0; font-size: 14px; }
.attendance-live-card .button { justify-self: start; min-height: 38px; padding: 6px 12px; font-size: 14px; }
.attendance-reminders { display: grid; gap: 8px; }
.attendance-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.attendance-reminder.is-open { border-color: #bfe5d0; background: #f3fbf6; }
.attendance-reminder > span:nth-child(2) { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.attendance-reminder small { color: var(--ink-soft); font-size: 13.5px; }
.attendance-reminder-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
section.attendance-live:not(.panel) { margin-bottom: 14px; }
#dashAttendance { margin-bottom: 16px; }
.session-schedule { flex-wrap: wrap; }
.session-attendance { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px solid #e3def8; }
.session-attendance-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.session-attendance-text > .ic { width: 18px; height: 18px; color: #1d3c78; }
.session-attendance .button { min-height: 36px; padding: 5px 12px; font-size: 14px; }
.attendance-fieldset { margin: 14px 0 6px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 12px; }
.attendance-fieldset legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font: 700 15px Manrope, sans-serif; }
.attendance-fieldset legend .ic { width: 18px; height: 18px; color: #1d3c78; }
.attendance-point-choice { display: grid; gap: 4px; margin: 4px 0 8px; }
@media (max-width: 700px) {
  .attendance-capture { grid-template-columns: 1fr; }
  .attendance-camera { max-width: 340px; width: 100%; margin: 0 auto; }
  .attendance-row { grid-template-columns: 48px minmax(0, 1fr); }
  .attendance-photo { width: 48px; height: 48px; }
  .attendance-status, .attendance-actions { grid-column: 2; justify-content: flex-start; }
  .attendance-control-actions { margin-left: 0; }
  .attendance-counters .attendance-counter-total { margin-left: 0; }
  .attendance-result { flex-direction: column; align-items: flex-start; }
}

/* Presensi: indikator rekap langsung, tombol kirim selalu terlihat di ponsel, aksi jadwal rata kanan. */
.attendance-live-badge { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #23774e; font-size: 13.5px; font-weight: 600; }
.attendance-live-badge .live-dot { width: 8px; height: 8px; margin: 0; animation: attendance-pulse 1.6s ease-in-out infinite; }
@keyframes attendance-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .attendance-live-badge .live-dot { animation: none; } }
.session-schedule > .session-item-text { flex: 1 1 260px; }
/* Presensi berbatas waktu dari pengajar: hitung mundur */
.attendance-countdown { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: #e7f6ee; color: #23774e; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.attendance-countdown .ic { width: 16px; height: 16px; }
.attendance-countdown b, .attendance-timer b { font-variant-numeric: tabular-nums; }
.attendance-countdown b.is-low, .attendance-timer b.is-low { color: #b45309; }
.attendance-countdown b.is-over, .attendance-timer b.is-over { color: #a8362c; }
.attendance-countdown-line { margin: 2px 0 10px; }
.attendance-state-row.is-open { padding: 8px 10px; border-radius: 10px; background: #f3fbf6; }
.attendance-timer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 10px; background: #fff; border: 1px solid #bfe5d0; color: #23774e; font-size: 20px; font-weight: 800; }
.attendance-timer .ic { width: 20px; height: 20px; }
.attendance-live-card .attendance-countdown { justify-self: start; }
.attendance-reminder-action .attendance-countdown { order: -1; }
#attendanceCheckIn .modal-actions { position: sticky; bottom: -1px; z-index: 1; margin-bottom: 0; padding: 12px 0 4px; background: var(--surface); }
@media (max-width: 700px) {
  .attendance-camera { aspect-ratio: 4 / 3; max-width: none; }
}

/* CBT (panitia & pengawas) */
.cbt-capacity { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.4fr) auto; gap: 14px 22px; align-items: center; margin-bottom: 14px; }
.cbt-capacity-main { display: grid; gap: 2px; }
.cbt-capacity-label { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.cbt-capacity-main strong { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.cbt-capacity-main small { color: var(--ink-soft); font-size: 13.5px; }
.cbt-capacity-usage { display: grid; gap: 6px; }
.cbt-capacity-usage small { color: var(--ink-soft); font-size: 13.5px; }
.cbt-meter { height: 10px; border-radius: 999px; background: #efedf8; overflow: hidden; }
.cbt-meter i { display: block; height: 100%; border-radius: inherit; background: #1d3c78; transition: width .3s; }
.cbt-capacity-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cbt-capacity .field-help { grid-column: 1 / -1; margin: 0; }
.cbt-capacity.tier-none { border-color: #f2e6c8; background: #fffdf6; }
.cbt-capacity-alert { display: flex; gap: 8px; align-items: flex-start; }
.cbt-capacity-alert .ic { width: 20px; height: 20px; flex: 0 0 auto; color: #b7791f; }
.cbt-exam-list { display: grid; gap: 8px; margin-top: 10px; }
.cbt-exam-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cbt-exam-main { display: grid; gap: 3px; min-width: 0; }
.cbt-exam-main strong { font-size: 15.5px; }
.cbt-exam-main small { color: var(--ink-soft); font-size: 13.5px; }
.cbt-exam-stats { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--ink-soft); font-size: 13.5px; }
.cbt-exam-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cbt-exam-actions .button { min-height: 38px; }
.cbt-exam-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: start; margin-bottom: 12px; }
.course-back.cbt-back { position: static; color: var(--ink); background: #f1f4fb; }
.course-back.cbt-back:hover { background: #e9e5fb; }
.cbt-exam-title { min-width: 0; }
.cbt-exam-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cbt-exam-title h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.cbt-exam-title p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.cbt-exam-title .field-help { margin-top: 6px; }
.cbt-exam-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 520px; }
.cbt-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.cbt-check-grid .checkline { margin: 7px 0; }
.cbt-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.cbt-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid #f1f0f6; }
.cbt-steps li span:last-child { display: grid; gap: 2px; }
.cbt-steps small { color: var(--ink-soft); font-size: 13.5px; }
.cbt-step-dot .ic { width: 22px; height: 22px; color: #b9bacb; }
.cbt-steps li.ok .cbt-step-dot .ic { color: #23774e; }
.cbt-facts { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; font-size: 14px; }
.cbt-facts dt { color: var(--ink-soft); }
.cbt-facts dd { margin: 0; font-weight: 600; }
.cbt-seating-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cbt-seating-bar h3 { margin: 0; font-size: 16px; }
.cbt-seating-bar .inline-form { flex: 0 1 auto; flex-wrap: nowrap; }
.cbt-seating-bar .inline-form .field-select { flex: 0 1 220px; }
.cbt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 6px; }
.cbt-toolbar .checkline { margin: 0; }
.cbt-room { margin-bottom: 14px; }
.cbt-room h3 .pill { margin-left: 6px; vertical-align: middle; }
.cbt-front { margin: 12px auto 8px; width: min(320px, 70%); padding: 6px; border-radius: 8px; background: #f1f4fb; color: #183466; font-size: 12.5px; font-weight: 700; text-align: center; letter-spacing: .04em; text-transform: uppercase; }
.cbt-seat-map { display: grid; gap: 5px; overflow-x: auto; }
.cbt-seat-mini { min-width: 64px; min-height: 46px; padding: 5px 6px; border: 1px dashed #dcdbe8; border-radius: 7px; display: grid; align-content: start; gap: 1px; font-size: 12px; color: var(--ink-soft); }
.cbt-seat-mini b { font-size: 11.5px; color: #8a8ca0; }
.cbt-seat-mini span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-weight: 600; line-height: 1.25; }
.cbt-seat-mini.taken { border-style: solid; border-color: #d8d1f7; background: #f8f6ff; }
.cbt-seat-mini.blocked { background: repeating-linear-gradient(45deg, #f6f6f9, #f6f6f9 5px, #eeeef3 5px, #eeeef3 10px); border-color: transparent; }
.cbt-search { flex: 0 1 340px; min-width: 200px; }
.cbt-participant-table td { white-space: nowrap; }
.cbt-participant-table td:nth-child(2) { white-space: normal; min-width: 160px; }
.cbt-token { font: 700 14px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: #f1f4fb; color: #3f2fa3; }
.cbt-row-actions { text-align: right; }
.cbt-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cbt-proctor-slot { margin-bottom: 12px; }
.cbt-proctor-slot .inline-form { margin-top: 10px; }
.cbt-staff-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cbt-staff-form { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.cbt-staff-form h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; }
.cbt-staff-form h4 .ic { width: 20px; height: 20px; color: #1d3c78; }
.cbt-staff-form .admin-form-grid { margin-top: 8px; }
.cbt-staff-list { margin-top: 12px; }
.cbt-staff-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Pantau: dashboard pengawas */
.cbt-live { display: grid; gap: 12px; }
.cbt-live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; font-size: 14px; }
.cbt-live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #c7c8d4; vertical-align: middle; }
.cbt-live-dot.on { background: #2e9e66; box-shadow: 0 0 0 0 #2e9e6666; animation: cbt-pulse 1.8s ease-out infinite; }
@keyframes cbt-pulse { 0% { box-shadow: 0 0 0 0 #2e9e6666; } 70% { box-shadow: 0 0 0 8px #2e9e6600; } 100% { box-shadow: 0 0 0 0 #2e9e6600; } }
.cbt-live-clock { font-weight: 700; font-variant-numeric: tabular-nums; }
.cbt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cbt-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #f4f4f8; color: var(--ink-soft); font-size: 13.5px; }
.cbt-chip b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.cbt-result-stats { margin: 0 0 14px; }
.cbt-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.cbt-room-tabs { margin-top: 0; }
.cbt-room-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.cbt-token-card { display: grid; gap: 2px; padding: 10px 16px; border-radius: 12px; background: #1d3c78; color: #fff; text-align: center; min-width: 190px; }
.cbt-token-card span { font-size: 12.5px; opacity: .85; }
.cbt-token-card b { font: 800 32px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .18em; }
.cbt-token-card small { font-size: 12.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.cbt-room-forms { display: grid; gap: 8px; }
.cbt-print-links { font-size: 13.5px; color: var(--ink-soft); }
.cbt-seat-scroll { overflow-x: auto; padding-bottom: 4px; }
.cbt-seat-grid { display: grid; gap: 6px; }
.cbt-seat { position: relative; min-height: 92px; padding: 7px 8px 8px; border: 1px solid var(--line); border-left: 4px solid #c7c8d4; border-radius: 9px; background: var(--surface); color: var(--ink); text-align: left; display: grid; align-content: start; gap: 2px; font-size: 12.5px; line-height: 1.3; }
button.cbt-seat:hover { box-shadow: 0 4px 14px #2526381a; transform: translateY(-1px); }
.cbt-seat b { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cbt-seat-label { font-size: 11.5px; font-weight: 700; color: #8a8ca0; }
.cbt-seat-meta { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cbt-seat-bar { height: 5px; margin-top: 3px; border-radius: 999px; background: #0000000f; overflow: hidden; }
.cbt-seat-bar i { display: block; height: 100%; background: currentColor; opacity: .55; }
.cbt-seat-count { font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cbt-seat-flag { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #c5453a; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cbt-seat-last { color: #b3261e; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cbt-seat.empty { border-style: dashed; border-left-width: 1px; background: transparent; color: #a3a5b5; }
.cbt-seat.blocked { border-color: transparent; border-left-width: 1px; background: repeating-linear-gradient(45deg, #f6f6f9, #f6f6f9 6px, #eeeef3 6px, #eeeef3 12px); }
.cbt-seat.compact { min-height: 74px; }
.cbt-seat.flash { animation: cbt-flash 1s ease-in-out 4; }
@keyframes cbt-flash { 50% { box-shadow: 0 0 0 3px #c5453a; } }
.cbt-compact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.cbt-room-summary + .cbt-room-summary { margin-top: 16px; }
.cbt-room-summary h4 { margin: 12px 0 8px; font-size: 15px; }
.cbt-room-summary h4 small { font-weight: 500; }
.cbt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.cbt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cbt-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
.cbt-feed { position: sticky; top: 78px; }
.cbt-feed .checkline { margin: 0; }
.cbt-feed-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 70vh; overflow-y: auto; display: grid; gap: 2px; }
.cbt-feed-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 7px 4px; border-bottom: 1px solid #f3f2f7; font-size: 13.5px; }
.cbt-feed-list li.review-empty { display: block; border: 1px dashed #e5e4ed; }
.cbt-feed-list time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cbt-feed-list span { display: grid; gap: 1px; min-width: 0; }
.cbt-feed-list small { color: var(--ink-soft); overflow-wrap: anywhere; }
.cbt-feed-list li.sev-violation { background: #fdf3f2; }
.cbt-feed-list li.sev-violation small { color: #a8362c; }
.cbt-feed-list li.sev-warning small { color: #8a5a00; }
.cbt-detail-grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.cbt-selfie { margin: 0; }
.cbt-selfie img { width: 100%; border-radius: 10px; display: block; background: #111; }
.cbt-selfie figcaption { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.cbt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cbt-warn-form { margin-top: 10px; }

/* Kamera langsung: dinding kamera per ruang dan kamera satu peserta */
.cbt-room-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.cbt-view-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f1f0f7; }
.cbt-view-toggle .chip { display: inline-flex; align-items: center; gap: 6px; border-color: transparent; background: transparent; padding: 5px 12px; }
.cbt-view-toggle .chip.active { background: #1d3c78; border-color: #1d3c78; color: #fff; }
.cbt-view-toggle .ic { width: 17px; height: 17px; fill: currentColor; }
.cbt-cam-help { margin: 10px 0 0; }
.cbt-cam-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; margin-top: 10px; }
.cbt-cam { position: relative; display: grid; align-content: start; padding: 0; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--tone, #c7c8d4); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; font-size: 12.5px; line-height: 1.3; cursor: pointer; }
.cbt-cam:hover { box-shadow: 0 4px 14px #2526381a; }
.cbt-cam:focus-visible { outline: 3px solid #1d3c78; outline-offset: 2px; }
.cbt-cam [hidden], .cbt-live-cam [hidden] { display: none !important; }
.cbt-cam-view { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #1b1c26; color: #b9bacb; }
.cbt-cam-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cbt-cam-empty { display: grid; justify-items: center; gap: 4px; padding: 8px; text-align: center; font-size: 12px; }
.cbt-cam-empty .ic { width: 26px; height: 26px; fill: currentColor; opacity: .75; }
.cbt-cam-age { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: #000000a8; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.cbt-cam.stale .cbt-cam-view img { filter: grayscale(1) brightness(.65); }
.cbt-cam.stale .cbt-cam-age { background: #b45309; }
.cbt-cam-info { display: grid; gap: 2px; min-width: 0; padding: 7px 9px 9px; }
.cbt-cam.tone-locked .cbt-cam-info, .cbt-cam.tone-offline .cbt-cam-info { background: var(--tone-bg); }
.cbt-cam-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.cbt-cam-name b { margin-right: 3px; color: #8a8ca0; }
.cbt-cam-meta { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cbt-cam-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cbt-cam-flags span { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: var(--tone-bg); color: var(--tone); font-size: 11.5px; font-weight: 700; }
.cbt-cam-flags .ic { width: 13px; height: 13px; fill: currentColor; }
.cbt-cam .cbt-seat-flag { top: 8px; right: 8px; box-shadow: 0 0 0 2px #fff; }
.cbt-cam.flash { animation: cbt-flash 1s ease-in-out 4; }
.cbt-detail-media { display: grid; gap: 10px; align-content: start; }
.cbt-live-cam { margin: 0; }
.cbt-live-cam-view { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #1b1c26; color: #b9bacb; font-size: 13px; text-align: center; }
.cbt-live-cam-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cbt-live-cam-view span { display: grid; justify-items: center; gap: 6px; padding: 10px; }
.cbt-live-cam-view .ic { width: 28px; height: 28px; fill: currentColor; opacity: .75; }
.cbt-live-cam figcaption { margin-top: 4px; color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.cbt-live-cam figcaption.stale { color: #b45309; font-weight: 600; }

/* Panitia per ujian & bank soal */
.cbt-committee-row { flex-wrap: wrap; }
.cbt-committee-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-left: auto; color: var(--ink-soft); font-size: 13.5px; }
.button.cbt-remove { min-height: 34px; padding: 5px 12px; font-size: 13.5px; }
.button.cbt-remove .ic { width: 17px; height: 17px; }
.cbt-author-form { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) 120px auto; gap: 8px; margin-top: 12px; }
.cbt-author-progress { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.cbt-author-progress b { color: var(--ink); }
.cbt-meter.mini { display: inline-block; width: 64px; height: 6px; vertical-align: middle; }
.cbt-author-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.cbt-author-card { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.cbt-author-card small { color: var(--ink-soft); }
.cbt-author-card .cbt-meter.mini { width: 100%; }
.cbt-author-card.done { border-color: #bfe3cf; background: #f3fbf6; }
.cbt-author-card.done .cbt-meter i { background: #23774e; }
.cbt-question-list { display: grid; gap: 10px; margin-top: 8px; }
.cbt-question { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cbt-question-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cbt-question-no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: #f1f4fb; color: #183466; font-weight: 800; font-variant-numeric: tabular-nums; }
.cbt-question-actions { display: inline-flex; gap: 2px; margin-left: auto; }
/* Tes berjenjang: editor bagian di formulir ujian dan jumlah soal per bagian di tab Soal. */
.cbt-section-list { display: grid; gap: 8px; margin: 8px 0; }
.cbt-section-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.cbt-section-row textarea { grid-column: 2 / -1; }
.cbt-section-minutes { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; }
.cbt-section-minutes .field-input { width: 84px; }
.cbt-section-actions { display: inline-flex; gap: 2px; }
.cbt-section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cbt-section-counts { margin-top: 12px; }
@media (max-width: 640px) {
  .cbt-section-row { grid-template-columns: auto minmax(0, 1fr); }
  .cbt-section-minutes, .cbt-section-actions, .cbt-section-row textarea { grid-column: 2 / -1; }
}
.cbt-question-prompt { margin: 10px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
.cbt-question .stimulus { margin: 10px 0 0; }
.cbt-question-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cbt-question-choices li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.cbt-question-choices li b { color: #8a8ca0; }
.cbt-question-choices li span { overflow-wrap: anywhere; }
.cbt-question-choices li.correct { background: #e7f6ee; }
.cbt-question-choices li.correct b, .cbt-question-choices em { color: #23774e; }
.cbt-question-choices em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; }
.cbt-question-choices em .ic { width: 15px; height: 15px; fill: currentColor; }
.cbt-question-form .stimulus-editor { display: grid; gap: 8px; margin-top: 12px; }
.cbt-question-form .choice-editor { display: grid; gap: 6px; }

/* Warna status peserta */
.tone-work { --tone: #2f6fd6; --tone-bg: #eaf2ff; }
.tone-ready { --tone: #127a73; --tone-bg: #e3f6f3; }
.tone-login { --tone: #5a48c8; --tone-bg: #efecff; }
.tone-offline { --tone: #b45309; --tone-bg: #fff3e4; }
.tone-locked { --tone: #b3261e; --tone-bg: #fdeceb; }
.tone-done { --tone: #23774e; --tone-bg: #e7f6ee; }
.tone-idle { --tone: #8a8ca0; --tone-bg: #f4f4f8; }
.tone-absent { --tone: #55576a; --tone-bg: #e9e9ef; }
.cbt-seat[class*="tone-"] { border-left-color: var(--tone); }
.cbt-seat.tone-locked, .cbt-seat.tone-offline { background: var(--tone-bg); }
.cbt-seat.tone-absent b { text-decoration: line-through; color: var(--ink-soft); }
.cbt-seat-bar { color: var(--tone, #1d3c78); }
.cbt-status[class*="tone-"], .cbt-chip[class*="tone-"] { background: var(--tone-bg); color: var(--tone); }
.cbt-chip[class*="tone-"] b { color: var(--tone); }
.cbt-legend [class*="tone-"] { color: var(--tone); }
.cbt-legend [class*="tone-"]::before { background: var(--tone); }
.tone-locked-text { color: #b3261e; font-weight: 700; }
.tone-work-text { color: #2f6fd6; font-weight: 600; }

@media (max-width: 1100px) {
  .cbt-live-grid { grid-template-columns: 1fr; }
  .cbt-feed { position: static; }
  .cbt-feed-list { max-height: 360px; }
}
@media (max-width: 760px) {
  .cbt-capacity { grid-template-columns: 1fr; }
  .cbt-capacity-actions { justify-content: flex-start; }
  .cbt-exam-row { grid-template-columns: 1fr; }
  .cbt-exam-actions { justify-content: flex-start; }
  .cbt-exam-head { grid-template-columns: auto minmax(0, 1fr); }
  .cbt-exam-buttons { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .cbt-check-grid, .cbt-staff-forms, .cbt-detail-grid { grid-template-columns: 1fr; }
  .cbt-room-tools { grid-template-columns: 1fr; }
  .cbt-seating-bar .inline-form { flex-wrap: wrap; width: 100%; }
  .cbt-token-card { min-width: 0; }
  .cbt-facts { grid-template-columns: 1fr; gap: 0; }
  .cbt-facts dd { margin-bottom: 8px; }
  .cbt-author-form { grid-template-columns: 1fr 1fr; }
  .cbt-author-form .button { grid-column: 1 / -1; }
  .cbt-committee-meta { margin-left: 0; width: 100%; }
  .cbt-cam-wall { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
  .cbt-question-choices li { grid-template-columns: 22px minmax(0, 1fr); }
  .cbt-question-choices em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .cbt-live-dot.on, .cbt-seat.flash, .cbt-cam.flash { animation: none; }
  .cbt-seat.flash, .cbt-cam.flash { box-shadow: 0 0 0 3px #c5453a; }
}

/* ----- Koreksi tugas AI ----- */
.ai-grading-fieldset { margin: 14px 0 6px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.ai-grading-fieldset legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font: 700 15px Manrope, sans-serif; }
.ai-grading-fieldset legend .ic { width: 18px; height: 18px; color: #1d3c78; }
.feature-lock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px dashed #d9d2f5; border-radius: 10px; background: #faf8ff; }
.feature-lock[hidden] { display: none; }
.feature-lock p { margin: 4px 0 0; }
.feature-lock-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8eefb; color: #1d3c78; }
.feature-lock-icon .ic { width: 18px; height: 18px; }
.rubric-editor { display: grid; gap: 8px; margin: 6px 0 8px; }
.rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 6px; align-items: center; padding: 8px; border: 1px solid #ecebf3; border-radius: 8px; }
.rubric-row .rubric-description { grid-column: 1 / -1; }
.text-danger { color: var(--danger, #c5453a); }
.ai-tag { display: inline-flex; align-items: center; gap: 3px; color: #1d3c78; font-weight: 600; }
.ai-tag .ic { width: 13px; height: 13px; }
.ai-review-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f6f3ff; color: #172e5c; }
.ai-review-bar > .ic { width: 18px; height: 18px; color: #1d3c78; }
.ai-review-bar > span { flex: 1 1 220px; }
.ai-suggestion { margin-top: 10px; padding: 10px 12px; border: 1px solid #e3dcfb; border-radius: 10px; background: #fbfaff; font-size: 14px; }
.ai-suggestion p { margin: 6px 0; }
.ai-suggestion.is-running { display: flex; align-items: center; gap: 6px; color: #1d3c78; }
.ai-suggestion.is-warning { border-color: #f2e6c8; background: #fffaf0; }
.ai-suggestion.is-approved { opacity: .75; }
.ai-suggestion .ic { width: 16px; height: 16px; vertical-align: -3px; color: #1d3c78; }
.ai-suggestion-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-suggestion-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ai-suggestion-actions:empty { display: none; }
.ai-criteria { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; }
.grade-form textarea.field-input { flex: 1 1 260px; min-height: 40px; resize: vertical; }
/* ----- Administrasi → Voucher (paket produk & koin) ----- */
.voucher-form { display: grid; gap: 10px; }
.voucher-kinds { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; }
.voucher-kinds .choice-card { cursor: pointer; }
.voucher-kinds .choice-card strong { display: inline-flex; align-items: center; gap: 6px; }
.voucher-kinds .choice-card:has(input:checked) { border-color: #1d3c78; background: #f6f3ff; }
.voucher-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.voucher-group { margin: 0; padding: 8px 12px 6px; border: 1px solid #ecebf3; border-radius: 10px; min-width: 0; }
.voucher-group legend { padding: 0 4px; font-weight: 700; font-size: 13.5px; color: #172e5c; }
.voucher-group .checkline { margin: 4px 0; }
.voucher-summary { margin-top: 0; }
.voucher-result { margin: 16px 0; padding: 14px; border: 1px solid #cfe9d6; border-radius: 12px; background: #f6fcf8; }
.voucher-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.voucher-result-head small { display: block; color: #8a5a00; font-weight: 600; }
.voucher-result-head span { display: flex; flex-wrap: wrap; gap: 8px; }
.voucher-result pre { max-height: 260px; overflow: auto; margin: 0; }
.voucher-history-head { margin-top: 18px; }
.voucher-batches { display: grid; }
.voucher-batch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #efeff4; }
.voucher-batch-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8eefb; color: #183466; }
.voucher-batch-icon.coins { background: #fff4dc; color: #8a5a00; }
.voucher-batch-icon .ic { width: 18px; height: 18px; }
.voucher-batch-main { display: grid; gap: 2px; min-width: 0; }
.voucher-batch-main small { color: var(--muted); font-size: 12.5px; }
.voucher-batch-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.affiliate-voucher { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e1ee; }
@media (max-width: 760px) {
  .voucher-batch { grid-template-columns: auto minmax(0, 1fr); }
  .voucher-batch-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ----- Baris tab mata kuliah: satu baris sejajar bergaya Google Classroom (garis bawah, geser di ponsel) ----- */
.tab-bar.course-tabs { flex-wrap: nowrap; gap: 0; padding: 0 4px; border: 0; border-bottom: 1px solid #e3e1ee; border-radius: 0; background: transparent; overflow-x: auto; scrollbar-width: none; }
.tab-bar.course-tabs::-webkit-scrollbar { display: none; }
.course-tabs .tab-button { flex: none; border-radius: 0; padding: 12px 16px 10px; background: transparent; color: #5f6175; border-bottom: 3px solid transparent; }
.course-tabs .tab-button:hover { background: #f6f4ff; color: #3f2fa0; }
.course-tabs .tab-button.active { background: transparent; color: #183466; border-bottom-color: #183466; }

/* ----- Tab Tugas: tampilan "Tugas Kelas" Google Classroom ----- */
.cw-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.cw-layout:not(:has(> .cw-topics)) { grid-template-columns: minmax(0, 1fr); }
.cw-topics { position: sticky; top: 12px; display: grid; gap: 2px; }
.cw-topic-link { padding: 9px 14px; border: 0; border-radius: 0 20px 20px 0; background: transparent; color: #3f4152; text-align: left; font: 600 14px "DM Sans", sans-serif; cursor: pointer; }
.cw-topic-link:hover { background: #f1f4fb; }
.cw-topic-link.active { background: #e8eefb; color: #172e5c; }
.cw-main { min-width: 0; }
.cw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.cw-create { border-radius: 999px; padding-inline: 18px; }
.cw-summary { color: var(--muted); font-size: 14px; }
.cw-topic-select { display: none; margin-left: auto; }
.cw-topic { margin-bottom: 24px; }
.cw-topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #183466; }
.cw-topic-head h3 { margin: 0; color: #3f2fa0; font: 600 21px Manrope, sans-serif; }
.cw-item { border-bottom: 1px solid #ecebf3; }
.cw-item.open { margin: 8px 0; border: 1px solid #e3e1ee; border-radius: 10px; box-shadow: 0 1px 3px rgba(37, 38, 56, .08); }
.cw-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cw-row:hover { background: #f8f7fd; }
.cw-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #183466; color: #fff; }
.cw-icon.offline { background: #b7791f; }
.cw-icon .ic { width: 20px; height: 20px; }
.cw-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.cw-title .ai-tag { font-size: 12px; margin-left: 4px; }
.cw-due { flex: none; color: var(--muted); font-size: 13px; }
.cw-pending { background: #e8eefb; color: #172e5c; }
.cw-detail { padding: 0 16px 6px 62px; }
.cw-detail-body { display: flex; justify-content: space-between; gap: 18px; padding: 4px 0 12px; }
.cw-detail-text { min-width: 0; }
.cw-detail-text small { color: var(--muted); font-size: 12.5px; }
.cw-detail-text p { margin: 6px 0 0; color: #3f4152; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.cw-counts { display: flex; flex: none; align-items: stretch; }
.cw-count { display: grid; align-content: start; gap: 2px; min-width: 92px; padding: 2px 14px; border: 0; border-left: 1px solid #e3e1ee; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cw-count:first-child { border-left: 0; }
.cw-count strong { font: 500 30px Manrope, sans-serif; line-height: 1.1; }
.cw-count span { color: var(--muted); font-size: 13px; }
.cw-count:hover strong, .cw-count.active strong { color: #183466; }
.cw-count.active span { color: #183466; font-weight: 700; }
.cw-detail-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 4px; border-top: 1px solid #ecebf3; }
.cw-detail-foot .text-button { text-decoration: none; }
.cw-card-status { flex: none; font-size: 13px; font-weight: 600; }
.tone-done { color: #1f7a4d; }
.tone-turned { color: #2563a8; }
.tone-late { color: #b4462f; }
.tone-todo { color: #8a5a00; }
/* Halaman Lihat tugas: Petunjuk | Tugas siswa */
.cw-work-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cw-work-head h2 { margin: 0; font: 700 22px Manrope, sans-serif; }
.cw-work-head small { color: var(--muted); }
.cw-work-tabs { display: flex; gap: 0; margin: 0 0 16px; border-bottom: 1px solid #e3e1ee; }
.cw-work-tabs button { padding: 12px 16px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #5f6175; font: 700 14.5px "DM Sans", sans-serif; cursor: pointer; }
.cw-work-tabs button.active { color: #183466; border-bottom-color: #183466; }
.cw-work-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cw-roster { padding: 12px; }
.cw-roster-head { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #ecebf3; }
.cw-roster-group h4 { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; color: #3f4152; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.cw-roster-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; }
.cw-roster-row .avatar { width: 30px; height: 30px; font-size: 12px; }
.cw-roster-name { overflow: hidden; border: 0; background: none; padding: 0; color: var(--ink); text-align: left; font: inherit; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cw-roster-name:hover { color: #183466; text-decoration: underline; }
.cw-score { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; }
.cw-score input { width: 64px; padding: 5px 6px; border: 0; border-bottom: 1px solid #c9c6da; background: transparent; font: inherit; font-size: 14px; text-align: right; }
.cw-score input:focus { outline: none; border-bottom: 2px solid #183466; }
.cw-score-text { color: var(--muted); font-size: 13px; }
.cw-board { padding: 16px; min-width: 0; }
.cw-board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #ecebf3; }
.cw-counts.big .cw-count { min-width: 104px; }
.cw-board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding-top: 14px; }
.cw-card { display: grid; justify-items: start; gap: 6px; padding: 12px; border: 1px solid #e3e1ee; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cw-card:hover { border-color: #183466; box-shadow: 0 2px 6px rgba(91, 69, 196, .12); }
.cw-card strong { font-size: 14.5px; }
.cw-card small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.cw-card small .ic { width: 15px; height: 15px; }
.cw-instructions h4 { margin: 16px 0 6px; }
@media (max-width: 1100px) {
  .cw-layout { grid-template-columns: minmax(0, 1fr); }
  .cw-topics { display: none; }
  .cw-topic-select { display: block; }
  .cw-work-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cw-row { flex-wrap: wrap; gap: 6px 12px; }
  .cw-title { flex-basis: calc(100% - 60px); }
  .cw-due, .cw-row .cw-card-status, .cw-row .cw-pending { margin-left: 50px; }
  .cw-row .cw-card-status + .cw-due, .cw-row .cw-pending + .cw-due { margin-left: 0; }
  .cw-detail { padding: 0 12px 6px; }
  .cw-detail-body { flex-direction: column; }
  .cw-count { min-width: 0; flex: 1; padding: 2px 10px; }
  .cw-counts { width: 100%; }
  .cw-topic-select, .cw-topic-select .field-select { width: 100%; margin-left: 0; }
  .cw-topic-head h3 { font-size: 18px; }
  .cw-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.chip-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 1px solid #e3e1ee; border-radius: 999px; background: #fff; color: var(--ink); font: 600 13.5px "DM Sans", sans-serif; cursor: pointer; }
.chip-button:hover { background: #f6f4ff; }
.chip-button.active { background: #1d3c78; border-color: #1d3c78; color: #fff; }
.chip-button .count-chip { background: #e8eefb; color: #172e5c; }
.chip-button.active .count-chip { background: rgba(255, 255, 255, .25); color: #fff; }
.chip-button.chip-alert:not(.active) { border-color: #f1c7c2; color: #b4462f; }
.cw-roster-group .count-chip, .tab-button .count-chip { background: #e8eefb; color: #172e5c; }
.ai-review-bar.is-off { background: #faf8ff; border: 1px dashed #d9d2f5; color: var(--ink-soft, #5f6175); }
.count-chip { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: rgba(255, 255, 255, .25); font-size: 12px; font-weight: 700; }
.button-secondary .count-chip { background: #e8eefb; color: #172e5c; }
.assignment-review-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #efeff4; padding: 12px 0; font-size: 14.5px; }
.assignment-review-row small { color: var(--muted); font-size: 13px; }
.assignment-review-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.assignment-review-row .row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; flex: none; }
#teacherAssignmentReviews .feature-lock { margin-bottom: 8px; }
@media (max-width: 760px) {
  .assignment-review-row { flex-direction: column; align-items: stretch; }
  .assignment-review-row .row-actions { justify-content: flex-start; }
}

/* ----- Katalog produk (peserta, pengajar, lembaga) ----- */
.product-catalog-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.product-account strong { display: block; font: 700 20px Manrope, sans-serif; margin: 2px 0 6px; }
.product-voucher .field-label { margin-top: 0; }
.product-tabs { margin-top: 0; }
.product-section { margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #ecebf3; border-radius: 12px; background: #fff; min-width: 0; }
.product-card.is-owned { border-color: #cfe9d6; background: #fbfefc; }
.product-card.is-focused { border-color: #1d3c78; box-shadow: 0 0 0 3px #e3dcfb; }
.product-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft, #5f6175); }
.product-card .status-pill { white-space: normal; margin-top: 4px; }
.product-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.product-card-head h4 { margin: 0; font: 700 16px Manrope, sans-serif; }
.product-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eef3fc; color: #1d3c78; }
.product-icon .ic { width: 20px; height: 20px; }
.product-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.product-benefits li { display: flex; gap: 6px; align-items: flex-start; }
.product-benefits .ic { flex: none; width: 16px; height: 16px; color: #2f9a5a; margin-top: 2px; }
.product-offers { display: grid; gap: 6px; margin-top: auto; }
.product-offer { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid #ecebf3; border-radius: 8px; cursor: pointer; }
.product-offer:has(input:checked) { border-color: #1d3c78; background: #faf8ff; }
.product-offer input { margin-top: 3px; }
.product-offer-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; flex: 1; font-size: 14px; }
.product-offer-body small { grid-column: 1 / -1; }
.product-buy { width: 100%; justify-content: center; }
.product-no-price { margin-top: auto; }
.product-trial { border-top: 1px dashed #ecebf3; padding-top: 8px; }
.product-trial .field-label { margin-top: 0; }
@media (max-width: 760px) {
  .product-catalog-top { grid-template-columns: 1fr; }
  .feature-lock { grid-template-columns: auto minmax(0, 1fr); }
  .feature-lock .button { grid-column: 1 / -1; justify-self: start; }
  .rubric-row { grid-template-columns: minmax(0, 1fr) 80px auto; }
}

/* ----- Koreksi per nomor & Kelola koreksi AI (tugas, tes tertulis, ujian uraian) ----- */
.modal.modal-xwide { max-width: min(1320px, calc(100vw - 26px)); }
.status-review { background: #e8eefb; color: #172e5c; }
.status-pending { background: #fff4dc; color: #8a5a00; }
.grading-warning { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border: 1px solid #f2d9a6; border-radius: 10px; background: #fffaf0; color: #6b4a00; font-size: 14px; line-height: 1.5; }
.grading-warning .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #b7791f; }
.grading-guide [data-ai-fields] { display: grid; gap: 8px; margin-top: 8px; }
.grading-guide [data-ai-fields][hidden] { display: none; }
.grading-guide .feature-lock { margin: 6px 0; }
.guide-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: flex-start; }
.guide-heading > div { flex: 1 1 320px; }
.guide-heading p { margin: 4px 0 0; }
.guide-studio { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-docs { display: grid; gap: 6px; padding: 10px; border: 1px dashed #e0dcf1; border-radius: 10px; background: #fcfbff; }
.guide-doc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-doc-list a { color: #172e5c; text-decoration: underline; }
.guide-doc-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-doc-upload .field-select { width: auto; min-width: 200px; }
.guide-items { display: grid; gap: 10px; }
.guide-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #ecebf3; border-left: 4px solid #1d3c78; border-radius: 10px; background: #fff; }
.guide-item .field-label { margin-top: 2px; }
.guide-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.guide-item-head strong { flex: 1; }
.guide-points { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.guide-points .mini-input { width: 90px; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.guide-total { color: #172e5c; font-size: 14px; }
.grading-workspace .tab-bar { margin: 12px 0; }
.grading-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.grading-chips, .grading-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.grading-chips .chip { cursor: default; }
.chip.chip-warn { border-color: #f2d9a6; background: #fffaf0; color: #8a5a00; }
.chip.chip-ai { display: inline-flex; align-items: center; gap: 4px; border-color: #e3dcfb; background: #f6f3ff; color: #172e5c; cursor: default; }
.chip .ic { width: 14px; height: 14px; }
.grading-table-wrap { max-height: 62vh; overflow: auto; border: 1px solid #ecebf3; border-radius: 10px; }
.grading-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.grading-table th, .grading-table td { padding: 8px 10px; border-bottom: 1px solid #f0eff5; text-align: left; vertical-align: middle; white-space: nowrap; }
.grading-table thead th { position: sticky; top: 0; z-index: 1; background: #f7f6fc; font-size: 13px; color: #3f4152; }
.grading-table th small, .grading-table td small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.grading-table td:first-child { white-space: normal; min-width: 180px; }
.grading-table .num { text-align: center; }
.grading-table .ai-cell { color: #1d3c78; font-style: italic; }
.grading-row-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.guide-view { display: grid; gap: 10px; }
.guide-view-item { padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; }
.guide-view-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guide-view-item p { margin: 6px 0; }
.guide-view-item dl, .review-number dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 6px 0 0; font-size: 14px; }
.guide-view-item dt, .review-number dt { color: var(--muted); font-weight: 600; }
.guide-view-item dd, .review-number dd { margin: 0; }
.pre { white-space: pre-line; }
.visibility-form { display: grid; gap: 10px; }
.visibility-form .choice-card { cursor: pointer; }
.visibility-form .choice-card:has(input:checked) { border-color: #1d3c78; background: #f6f3ff; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-head .modal-title { margin: 0; }
.review-answer { margin: 10px 0; padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; background: #fcfcfe; }
.review-answer h4 { margin: 0 0 6px; }
.review-form { display: grid; gap: 10px; }
.review-number { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #ecebf3; border-left: 4px solid #1d3c78; border-radius: 10px; background: #fff; }
.review-number.is-muted { border-left-color: #c7c8d4; background: #fafafc; }
.review-number header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.review-number details summary { cursor: pointer; color: #172e5c; font-size: 14px; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.review-photos img { max-width: min(260px, 100%); max-height: 260px; border: 1px solid #ecebf3; border-radius: 8px; object-fit: contain; background: #fff; }
.ai-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 8px; background: #f6f3ff; color: #3f2f8a; font-size: 14px; }
.ai-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.review-inputs { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.review-inputs label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.review-inputs .text-link-button { grid-column: 1 / -1; justify-self: start; }
.review-total { padding: 10px 12px; border-radius: 10px; background: #f7f6fc; font-size: 15px; }
.verify-line { padding: 10px 12px; border: 1px solid #f2d9a6; border-radius: 10px; background: #fffaf0; }
.essay-exam-list { margin-bottom: 10px; }
.essay-queue summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: #172e5c; }
@media (max-width: 760px) {
  .review-inputs { grid-template-columns: minmax(0, 1fr); }
  .guide-doc-upload .field-select { min-width: 0; width: 100%; }
  .grading-row-actions { justify-content: flex-start; }
}

/* ----- Prasyarat tes (UTS/UAS & CBT) dan prasyarat lembaga ----- */
.prereq-form { display: grid; gap: 8px; }
.prereq-form p { margin: 0; }
.prereq-options { display: grid; gap: 4px; }
.prereq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prereq-reasons { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.prereq-reasons li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.prereq-reasons li .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #b4462f; }
.prereq-reasons small { display: block; color: var(--muted); font-size: 12.5px; }
.prereq-blocked { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; padding: 12px; border: 1px solid #f1c7c2; border-radius: 10px; background: #fdf3f1; }
.prereq-blocked > .ic { flex: none; width: 20px; height: 20px; color: #b4462f; }
.prereq-blocked p { margin: 2px 0 0; }
.prereq-card-list { display: grid; gap: 8px; }
.prereq-card { padding: 10px 12px; border: 1px solid #f1c7c2; border-radius: 10px; background: #fffaf9; }
.prereq-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.prereq-card header small { color: var(--muted); }
.eligibility-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.eligibility-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border: 1px solid #ecebf3; border-radius: 8px; }
.eligibility-row .prereq-reasons { grid-column: 1 / -1; margin: 0; }
.eligibility-row[hidden] { display: none; }
.cbt-prereq { display: grid; gap: 6px; }
.cbt-prereq-note { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; white-space: normal; }
.cbt-prereq-note .ic { width: 13px; height: 13px; }
.requirement-list { display: grid; }
.requirement-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px solid #efeff4; }
.requirement-row > span:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 280px; }
.requirement-row small { color: var(--muted); font-size: 13px; }
.requirement-row.inactive strong { color: var(--muted); }
.requirement-row .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.holds-tools { flex-wrap: wrap; }
.holds-bulk { margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.holds-list { display: grid; gap: 4px; max-height: 55vh; overflow: auto; padding-right: 2px; }
.holds-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #ecebf3; border-radius: 8px; cursor: pointer; }
.holds-row small { display: block; color: var(--muted); font-size: 12.5px; }
.holds-row em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #23774e; }
.holds-row.is-held { border-color: #f1c7c2; background: #fdf3f1; }
.holds-row.is-held em { color: #b4462f; }
.holds-row[hidden] { display: none; }

/* ----- Bimbingan Konseling (Guru BK) ----- */
.bk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bk-head h3 { margin: 2px 0 0; }
.bk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bk-kkm { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; }
.bk-kkm .mini-input { width: 76px; }
.bk-list { display: grid; }
.bk-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid #efeff4; }
.bk-row > span:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }
.bk-row > .bk-flags, .bk-row > .bk-followup, .bk-row > .field-help { flex: 2 1 240px; }
.bk-row > .bk-indicators { flex: 0 1 auto; }
.bk-row > .button { flex: none; margin-left: auto; }
.bk-row small { color: var(--muted); font-size: 13px; }
.bk-row.is-due { background: #fffaf0; }
.bk-indicators { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.bk-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-flag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff4dc; color: #8a5a00; }
.bk-flag.level-high { background: #fdecea; color: #b4462f; }
.bk-flag .ic { width: 13px; height: 13px; }
.bk-followup { font-size: 14px; color: #3f4152; }
.bk-bar { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(80px, 2fr) 36px; gap: 10px; align-items: center; padding: 6px 0; }
.bk-bar small { display: block; color: var(--muted); font-size: 12px; }
.bk-bar-track { height: 10px; border-radius: 999px; background: #f0eff5; overflow: hidden; }
.bk-bar-track > span { display: block; height: 100%; border-radius: inherit; background: #1d3c78; }
.bk-report { margin-top: 14px; flex-wrap: wrap; align-items: end; }
.bk-report label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.bk-cycle { display: grid; gap: 6px; padding-left: 20px; }
.bk-mini-stats { margin: 12px 0; }
.bk-records { display: grid; gap: 8px; }
.bk-record { padding: 10px 12px; border: 1px solid #ecebf3; border-left: 4px solid #c7c8d4; border-radius: 10px; }
.bk-record.status-open { border-left-color: #c5453a; }
.bk-record.status-monitoring { border-left-color: #1d3c78; }
.bk-record.status-closed { border-left-color: #2f9a5a; }
.bk-record header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bk-record header small { color: var(--muted); }
.bk-record header .row-actions { margin-left: auto; display: flex; gap: 4px; }
.bk-record p { margin: 6px 0 0; white-space: pre-line; font-size: 14px; }
.counselor-form { flex-wrap: wrap; margin-top: 10px; }
.counselor-form .field-input { flex: 1 1 220px; }
@media (max-width: 760px) {
  .bk-bar { grid-template-columns: minmax(0, 1fr) 36px; }
  .bk-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ----- Studio AI: soal & rubrik, unduhan PDF/DOCX ----- */
.studio-grid.studio-grid-even { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.studio-export-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 4px 0 10px; }
.export-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.export-group small { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.dash-slides-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; }
.dash-slides-note:empty { display: none; }
.dash-slides-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #1d3c78; }

/* ----- Tes tertulis: pilihan ganda, lembar jawaban ber-QR, unggah massal & OMR ----- */
.guide-choice-fields { display: none; align-items: center; gap: 8px; }
.guide-choice-fields label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.guide-choice-fields .field-select, .guide-type { width: auto; min-width: 0; padding-top: 6px; padding-bottom: 6px; }
.grading-guide:not(.is-offline) .guide-type, .grading-guide:not(.is-offline) .guide-bulk-choice { display: none; }
.guide-item.is-choice { border-left-color: #2f9a5a; }
.guide-item.is-choice .guide-choice-fields { display: inline-flex; }
.guide-item.is-choice .guide-essay-fields { display: none; }
.guide-bulk-choice { padding: 8px 10px; border: 1px dashed #d6e9dc; border-radius: 10px; background: #f8fcf9; }
.guide-bulk-choice summary { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #23774e; font-weight: 600; font-size: 14px; }
.guide-bulk-choice summary .ic { width: 16px; height: 16px; }
.guide-bulk-choice .inline-form { flex-wrap: wrap; align-items: end; margin-top: 8px; }
.guide-bulk-choice .inline-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.guide-bulk-choice .inline-form .grow { flex: 1 1 180px; }
.review-number.is-choice { border-left-color: #2f9a5a; }
.chip.chip-ok { display: inline-flex; align-items: center; gap: 4px; border-color: #cbe9d6; background: #eefaf2; color: #23774e; cursor: default; }
.chip.chip-bad { display: inline-flex; align-items: center; gap: 4px; border-color: #f1c7c2; background: #fff4f2; color: #b4462f; cursor: default; }
.choice-entry-scroll { max-height: 60vh; overflow: auto; }
.choice-entry-table th, .choice-entry-table td { padding: 4px; text-align: center; }
.choice-entry-table th:first-child, .choice-entry-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 160px; background: #fff; text-align: left; }
.choice-entry-table thead th { position: sticky; top: 0; z-index: 2; background: #faf9fe; }
.choice-cell { width: 38px; padding: 6px 0; text-align: center; text-transform: uppercase; font-weight: 700; }
.choice-cell.invalid { border-color: #c5453a; }
.bulk-heading { margin: 14px 0 6px; }
.bulk-unassigned { padding: 10px; margin-bottom: 10px; border: 1px solid #f2d9a6; border-radius: 10px; background: #fffaf0; }
.bulk-unassigned h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #8a5a00; }
.bulk-unassigned h4 .ic { width: 16px; height: 16px; }
.bulk-list { display: grid; gap: 10px; }
.bulk-row { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #ecebf3; border-left: 4px solid #2f9a5a; border-radius: 10px; }
.bulk-row.is-flagged { border-left-color: #d79a1e; }
.bulk-row header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bulk-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-thumb { display: grid; gap: 4px; width: 132px; font-size: 12px; color: var(--muted); }
.bulk-thumb img { display: block; width: 132px; height: 186px; object-fit: cover; border: 1px solid #e3e1ee; border-radius: 6px; background: #f6f6f9; }
.bulk-thumb .field-select { padding: 4px 6px; font-size: 12.5px; }
.bulk-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.bulk-choice { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px 2px 6px; border: 1px solid #e3e1ee; border-radius: 8px; font-size: 12.5px; background: #fff; }
.bulk-choice span { min-width: 16px; color: var(--muted); font-weight: 700; }
.bulk-choice select { border: 0; background: transparent; font-weight: 700; font-size: 13px; padding: 2px; }
.bulk-choice.flag-kosong { background: #f6f6f9; }
.bulk-choice.flag-ganda, .bulk-choice.flag-ragu { border-color: #e5b44f; background: #fff6df; }
.bulk-choices small { flex-basis: 100%; }

/* ----- Tagihan & pembayaran sekolah ----- */
.bill-list { display: grid; gap: 10px; }
.bill-card { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #ecebf3; border-left: 4px solid #d79a1e; border-radius: 10px; background: #fff; }
.bill-card.is-overdue { border-left-color: #c5453a; }
.bill-card.is-closed { border-left-color: #2f9a5a; }
.bill-card header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.bill-card header > span:first-child { display: grid; gap: 2px; min-width: 0; }
.bill-card header small { color: var(--muted); }
.bill-card p { margin: 0; }
.bill-card.is-overdue .status-pill { background: #fdeceb; color: #b4462f; }
.bill-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bill-amount b { font-size: 20px; color: var(--ink); }
.bill-amount small { color: var(--muted); }
.bill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bill-items { display: grid; gap: 8px; }
.bill-item { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; }
.bill-item.is-inactive { opacity: .65; }
.bill-item-main { display: grid; gap: 2px; min-width: 0; }
.bill-item-main small { color: var(--muted); }
.bill-progress { display: grid; gap: 4px; min-width: 0; }
.bill-progress small { color: var(--muted); font-size: 12.5px; }
.bill-progress .bk-bar-track > span { background: #2f9a5a; }
.bill-steps { display: grid; gap: 4px; padding-left: 20px; margin: 4px 0 12px; font-size: 14px; color: #55566a; }
#billingSettingsForm label:not(.checkline), #adminWhatsappForm label:not(.checkline) { display: grid; gap: 4px; align-content: start; }
#billingSettingsForm .grow, #billingSettingsForm .checkline, #billingSettingsForm .modal-actions { grid-column: 1 / -1; }
#billingContent .section-heading .field-select { width: auto; }
.bill-detail-tools [data-bill-search] { flex: 1 1 180px; width: auto; min-width: 0; }
.bill-picker-tools { flex-wrap: wrap; margin: 6px 0; }
.bill-picker-tools .field-input { flex: 1 1 200px; }
.bill-picker-tools .field-select { width: auto; }
.bill-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2px 10px; max-height: 300px; overflow: auto; padding: 6px 8px; border: 1px solid #ecebf3; border-radius: 10px; }
.bill-picker label[hidden] { display: none; }
.bill-picker small { display: block; color: var(--muted); font-size: 12px; }
.bill-table td small { display: block; color: var(--muted); }
.bill-dash .section-heading { align-items: center; }
@media (max-width: 760px) {
  .bill-item { grid-template-columns: minmax(0, 1fr); }
  .bill-item .button { justify-self: start; }
  .bulk-thumb { width: calc(50% - 4px); }
  .bulk-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1.414; }
}

/* ----- Notifikasi WhatsApp ----- */
#adminWhatsappForm .admin-form-grid { margin-top: 8px; }
.wa-meta-fields[hidden] { display: none; }
#adminWhatsappTest { flex-wrap: wrap; margin-top: 12px; }
#adminWhatsappTest .field-input { flex: 1 1 220px; }
#manageWhatsapp .bill-progress { margin: 8px 0; }

/* ----- Analisis butir soal ----- */
.ia-stats { margin: 6px 0 12px; }
.ia-source { font-size: 13.5px; }
.ia-table td { vertical-align: top; }
.ia-table td small { display: block; color: var(--muted); font-size: 12px; }
.ia-table .status-pill { margin-left: 4px; font-size: 12px; }
.ia-notes { margin: 0; padding-left: 16px; font-size: 13.5px; }
.ia-distractors { margin-top: 6px; border-collapse: collapse; font-size: 12.5px; }
.ia-distractors th, .ia-distractors td { padding: 3px 10px 3px 0; text-align: left; }
.ia-distractors tr.is-key td { color: #23774e; font-weight: 700; }
.ia-distractors tr.is-weak td { color: #b4462f; }
.ia-guide { margin-top: 10px; }

/* ----- Anotasi lembar jawaban & bank komentar ----- */
dialog.modal-annotator { width: min(1280px, calc(100vw - 24px)); }
.annotator { display: grid; gap: 10px; }
.annotator-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.annotator-pages { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.annotator-pages[hidden] { display: none; }
.annotator-lock { flex-basis: 100%; }
.annotator-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px; border: 1px solid #ecebf3; border-radius: 10px; background: #faf9fe; position: sticky; top: 0; z-index: 3; }
.annotator-tools, .annotator-colors { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.annotator-tool { width: 38px; height: 38px; border: 1px solid #e3e1ee; border-radius: 8px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.annotator-tool.active { border-color: #1d3c78; background: #1d3c78; color: #fff; }
.annotator-color { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d0cee0; cursor: pointer; }
.annotator-color.active { box-shadow: 0 0 0 2px #1f2133; }
.annotator-width { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.annotator-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.annotator-stage { position: relative; max-height: 72vh; overflow: auto; border: 1px solid #ecebf3; border-radius: 10px; background: #f3f2f8; }
.annotator-stage canvas { display: block; width: 100%; height: auto; background: #fff; touch-action: none; cursor: crosshair; }
.annotator-stage canvas[hidden] { display: none; }
.annotator-stage canvas[data-tool="eraser"] { cursor: not-allowed; }
.annotator-stage canvas[data-tool="text"], .annotator-stage canvas[data-tool="pin"] { cursor: text; }
.annotator-input { position: absolute; z-index: 4; width: 270px; display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(31, 33, 51, .18); }
.annotator-input[hidden] { display: none; }
.annotator-input span { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.annotator-side { display: grid; gap: 6px; max-height: 72vh; overflow: auto; }
.annotator-side h4 { margin: 0; }
.annotator-side ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.annotator-side li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: start; }
.annotator-pin { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.annotator-status { margin-right: auto; color: var(--muted); font-size: 13px; }
.annotate-button { padding: 5px 10px; font-size: 13px; }
.annotate-count { color: #172e5c; }
.annotation-gallery { margin-top: 10px; }
.annotation-gallery[hidden] { display: none; }
.annotation-gallery strong { display: flex; align-items: center; gap: 6px; }
.annotation-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.annotation-thumbs a { display: grid; gap: 2px; width: 120px; color: var(--muted); font-size: 12px; text-decoration: none; }
.annotation-thumbs img { width: 120px; height: 160px; object-fit: cover; border: 1px solid #e3e1ee; border-radius: 6px; background: #fff; }
.comment-bank-trigger { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; }
.comment-bank-trigger .ic { width: 15px; height: 15px; }
.comment-bank-pop { position: absolute; z-index: 30; width: min(340px, calc(100vw - 40px)); display: grid; gap: 6px; padding: 10px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(31, 33, 51, .2); }
.comment-bank-head { display: flex; gap: 6px; align-items: center; }
.comment-bank-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.comment-bank-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: start; }
.comment-bank-use { display: grid; gap: 2px; width: 100%; padding: 6px 8px; border: 1px solid #ecebf3; border-radius: 8px; background: #fbfaff; color: var(--ink); text-align: left; font: inherit; font-size: 13.5px; cursor: pointer; }
.comment-bank-use:hover { border-color: #7f97c9; }
.comment-bank-use small { color: #1d3c78; font-weight: 700; }

/* ----- Syarat akses & jalur belajar ----- */
.session-item.is-locked { opacity: .85; background: #f8f8fb; }
.session-item-icon.locked { position: relative; background: #ecebf3; color: #6a6c80; }
.session-item-icon.locked .lock-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #8a5a00; color: #fff; box-shadow: 0 0 0 2px #fff; }
.session-item-icon.locked .lock-badge .ic { width: 11px; height: 11px; }
.lock-reasons { display: flex; align-items: flex-start; gap: 4px; color: #8a5a00; font-size: 12.5px; }
.lock-reasons .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.session-lock { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: #fff8e8; }
.icon-action.has-rules { color: #1d3c78; background: #eef3fc; }
.access-rule-mode { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.access-rule-list { display: grid; gap: 6px; margin: 8px 0; }
.access-rule-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1.4fr) auto auto; gap: 6px; align-items: center; }
.access-rule-row .mini-input { width: 80px; }
.learning-path { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.path-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.path-step::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: #e3e1ee; }
.path-step:last-child::before { display: none; }
.path-node { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1d3c78; color: #fff; font-weight: 700; }
.path-node .ic { width: 16px; height: 16px; }
.path-step.is-locked .path-node { background: #c7c8d4; }
.path-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.path-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.path-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 10px; align-items: center; padding: 6px 8px; border: 1px solid #ecebf3; border-radius: 8px; }
.path-items li.is-done { border-color: #cbe9d6; background: #f3fbf6; }
.path-items li.is-locked { background: #f8f8fb; }
.path-item-icon .ic { width: 18px; height: 18px; color: #1d3c78; }
.path-items li.is-done .path-item-icon .ic { color: #23774e; }
.path-items li.is-locked .path-item-icon .ic { color: #8e8fa6; }
.path-item-text { display: grid; gap: 2px; min-width: 0; }
.path-item-text small { color: var(--muted); font-size: 12px; }
.path-conditions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.path-conditions .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 12px; font-weight: 600; cursor: default; }
.path-stats { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ----- BK Pro ----- */
.bk-row-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.bk-sections { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 10px; }
.bk-items { display: grid; gap: 4px; max-height: 340px; overflow: auto; padding: 6px; border: 1px solid #ecebf3; border-radius: 10px; }
.bk-item-row { display: grid; grid-template-columns: auto 130px minmax(0, 1fr); gap: 6px; align-items: center; }
.bk-priorities { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.bk-survey-students tr.is-flagged td { background: #fff6f4; }
.bk-survey-students td small { display: flex; align-items: center; gap: 4px; }
.socio-layout { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 14px; align-items: start; }
.sociogram { width: 100%; height: auto; border: 1px solid #ecebf3; border-radius: 12px; background: #fbfaff; }
.sociogram line { stroke: #b9bacb; }
.sociogram line.mutual { stroke: #2f9a5a; }
.socio-node circle { fill: #e8eefb; stroke: #1d3c78; stroke-width: 1.5; }
.socio-node text { fill: #1f2133; font-size: 10px; font-weight: 700; text-anchor: middle; }
.socio-node .socio-label { font-size: 9px; font-weight: 500; fill: #5f6175; }
.socio-node.status-bintang circle { fill: #1d3c78; }
.socio-node.status-bintang text:not(.socio-label) { fill: #fff; }
.socio-node.status-terisolasi circle { fill: #fff; stroke: #c5453a; stroke-dasharray: 3 2; }
.socio-node.status-tertolak circle { fill: #fff3e0; stroke: #d79a1e; }
.bk-slot-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 8px 0 14px; }
.bk-slot-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.bk-slot-form .grow { flex: 1 1 220px; }
.bk-day { margin: 14px 0 6px; }
.bk-appt { display: grid; gap: 2px; min-width: 0; }
.bk-appt small { color: var(--muted); }
.bk-row.appt-requested { border-left: 4px solid #d79a1e; }
.bk-row.appt-confirmed { border-left: 4px solid #2f9a5a; }
.bk-hub { display: grid; gap: 4px; }
.bk-fill-group { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #ecebf3; border-radius: 10px; }
.bk-fill-group legend { padding: 0 6px; font-weight: 700; color: #172e5c; }
.bk-socio-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 10px; }
.bk-socio-selects label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.bk-slot-pick { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.bk-slot-pick > div { display: grid; gap: 4px; }
.bk-slot-pick > div > span { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-slot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #e3e1ee; border-radius: 10px; cursor: pointer; }
.bk-slot-chip small { display: block; color: var(--muted); font-size: 11.5px; }
.bk-slot-chip:has(input:checked) { border-color: #1d3c78; background: #eef3fc; }

/* ----- E-Rapor ----- */
.report-card-tile h3 { margin: 4px 0; }
.report-new-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.report-new-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.report-head > div:nth-child(2) { flex: 1 1 260px; }
.report-head h3 { margin: 2px 0; }
.report-subject-pick { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.report-grades td { vertical-align: top; }
.report-grades td small { display: block; font-size: 12px; }
.report-grades textarea { min-width: 260px; }
.report-students-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.report-student-list { display: grid; gap: 2px; max-height: 70vh; overflow: auto; }
.report-student-list button { display: grid; gap: 1px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.report-student-list button.active { background: #eef3fc; color: #172e5c; font-weight: 700; }
.report-student-list small { font-size: 11.5px; }
.report-student-form { display: grid; gap: 6px; }
.report-student-form .admin-form-grid label { display: grid; gap: 4px; }
.report-attendance { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.report-attendance label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.report-co-row, .report-ex-row { display: grid; gap: 6px; padding: 8px; margin-bottom: 6px; border: 1px solid #ecebf3; border-radius: 10px; }
.report-ex-row { grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.4fr); align-items: center; }
.report-dimensions { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; }
.report-subject-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 4px 0; }
.report-publish { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ecebf3; display: grid; gap: 8px; justify-items: start; }

/* ----- Integrasi LTI & Google Classroom ----- */
.lti-config { display: grid; gap: 4px; margin: 6px 0; }
.lti-config-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid #ecebf3; border-radius: 8px; background: #fbfaff; font-size: 13.5px; }
.lti-config-row code { overflow-wrap: anywhere; font-size: 12.5px; }
.lti-deep-course { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #ecebf3; border-radius: 10px; }
.lti-deep-course legend { padding: 0 6px; font-weight: 700; }
#ltiContent .inline-form label { display: grid; gap: 4px; }

@media (max-width: 760px) {
  .annotator-body { grid-template-columns: minmax(0, 1fr); }
  .annotator-side { max-height: none; }
  .access-rule-row { grid-template-columns: minmax(0, 1fr) auto; }
  .access-rule-row select:nth-child(2), .access-rule-row input[data-rule-at] { grid-column: 1 / -1; }
  .path-items li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .path-items li .path-stats { grid-column: 2 / -1; }
  .socio-layout, .report-students-layout { grid-template-columns: minmax(0, 1fr); }
  .report-student-list { max-height: 200px; }
  .report-ex-row, .report-subject-row { grid-template-columns: minmax(0, 1fr); }
  .bk-item-row { grid-template-columns: auto minmax(0, 1fr); }
  .bk-item-row input[data-bk-item-text] { grid-column: 1 / -1; }
  .lti-config-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lti-config-row span { grid-column: 1 / -1; }
  .report-grades textarea { min-width: 200px; }
}
