*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:#0f172a;color:#e5eefb}
a{color:#8fc5ff}.wrap{max-width:1200px;margin:0 auto;padding:18px}.narrow{max-width:520px}.card{background:#172236;border:1px solid #2b3b55;border-radius:16px;padding:20px;margin-bottom:16px}
.login-card{margin-top:8vh}h1,h2,h3{margin-top:0}label{display:block;color:#a8b3c7;font-size:13px;margin:10px 0 5px}
input,textarea,select{width:100%;padding:10px;border-radius:9px;border:1px solid #3a4c69;background:#0f172a;color:#fff;font:inherit}
textarea{min-height:85px}.btn{display:inline-block;border:0;border-radius:9px;padding:9px 13px;background:#e2e8f0;color:#0f172a;text-decoration:none;font-weight:700;cursor:pointer}
.btn.primary{background:#4da3ff;color:#fff}.btn.danger{background:#ff7676;color:#201010}.btn.good{background:#4cd97b}.btn.warn{background:#ffbf47}.btn.full{width:100%;margin-top:14px}
.smallbtn{font-size:12px;padding:6px 9px}.muted{color:#a8b3c7}.small{font-size:12px}.alert{padding:11px;border-radius:9px;margin-bottom:12px}.alert.ok{background:#173a2a}.alert.error{background:#4a2020}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:#172236;border-bottom:1px solid #2b3b55}.topbar div{display:flex;gap:15px;align-items:center}.topbar span{color:#a8b3c7;font-size:13px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:9px;border-bottom:1px solid #334155;text-align:left;font-size:14px}th{color:#9fb1c7}.actions{display:flex;gap:5px}.actions form{margin:0}
.material-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:13px}.material{display:block;background:#22324b;border:1px solid #3a4c69;border-radius:13px;padding:16px;text-decoration:none;color:#fff}.material:hover{border-color:#4da3ff}
.activeState{outline:3px solid rgba(255,255,255,.65)}
code{background:#0f172a;padding:2px 5px;border-radius:4px}
@media(max-width:800px){.grid2{grid-template-columns:1fr}.topbar div{flex-direction:column;gap:2px;align-items:flex-start}}

.inline-form{display:inline-block;margin:0}.inline-form select{min-width:110px;padding:6px}
.mode-badge{display:inline-block;margin-top:8px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}
.mode-badge.normal{background:#173a2a;color:#9df4bf}.mode-badge.strict{background:#4a2020;color:#ffc0c0}
.strict-warning{background:#4a2020;border:1px solid #8a3838;border-radius:12px;padding:13px 15px;margin-bottom:12px;color:#ffe6e6}
.strict-warning .btn{margin-left:10px}

.progress-summary{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.summary-number{background:#0f172a;border:1px solid #334155;border-radius:12px;padding:12px 18px;min-width:130px;text-align:center}
.summary-number b{display:block;font-size:26px;color:#8fc5ff}.summary-number span{font-size:12px;color:#a8b3c7}
.mastery-bar{height:14px;background:#0f172a;border:1px solid #334155;border-radius:999px;overflow:hidden;margin-top:10px}
.mastery-bar>div{height:100%;background:#4cd97b}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
.filter-action{display:flex;gap:8px;align-items:end;padding-bottom:1px}
.student-shortcuts{margin:8px 0 16px}

.big-textarea{min-height:520px;font-family:Consolas,"Courier New",monospace;line-height:1.45}
.question-grid{grid-template-columns:1fr 1fr}.docx-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:10px}
.docx-images img{width:100%;max-height:180px;object-fit:contain;background:#fff;border-radius:8px;padding:5px}
.top-actions{display:flex!important;flex-direction:row!important;gap:8px!important;align-items:center!important}
hr{border:0;border-top:1px solid #334155;margin:18px 0}
@media(max-width:900px){.question-grid{grid-template-columns:1fr}.top-actions{flex-wrap:wrap}}

.listening-master{min-height:280px}.checkline{display:flex;gap:8px;align-items:center}.checkline input{width:auto}
.cloze-preview,.cloze-student{white-space:pre-wrap;background:#0f172a;border:1px solid #334155;border-radius:12px;padding:18px;line-height:1.9;font-size:18px}
.cloze-student{font-size:21px;min-height:220px}.audio-row{display:grid;grid-template-columns:130px 1fr;gap:10px;align-items:center;margin:10px 0}
.audio-row audio{width:100%}.speed-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.listening-player audio{width:100%;margin:12px 0 20px}
.ai-disclosure{background:#173a2a;border:1px solid #2f704d;padding:10px 12px;border-radius:10px;color:#c8f7da;margin:12px 0}
.answer-box{background:#182c47;border:1px solid #3b5d85;border-radius:10px;padding:14px;margin:10px 0}.listening-player #completeBtn{margin-top:18px}
pre{white-space:pre-wrap;background:#0f172a;border:1px solid #334155;border-radius:8px;padding:10px}
@media(max-width:700px){.audio-row{grid-template-columns:1fr}}


/* REVISI 6 — Branding Pembelajaran On Line + Gedung SMK SORE */
.topbar{
  position:relative;
  min-height:92px;
  padding-left:104px !important;
}
.topbar::before{
  content:"";
  position:absolute;
  left:14px;
  top:8px;
  width:78px;
  height:78px;
  background-image:url("gedung_smk_sore.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:10px;
  border:2px solid rgba(255,255,255,.28);
  box-shadow:0 4px 12px rgba(0,0,0,.28);
}
.login-card::before{
  content:"";
  display:block;
  width:130px;
  height:130px;
  margin:0 auto 18px;
  background-image:url("gedung_smk_sore.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:14px;
  border:2px solid rgba(255,255,255,.24);
  box-shadow:0 5px 16px rgba(0,0,0,.28);
}
@media(max-width:700px){
  .topbar{
    min-height:82px;
    padding-left:86px !important;
  }
  .topbar::before{
    width:62px;
    height:62px;
    left:10px;
    top:10px;
  }
}

.identity-note{background:#182c47;border:1px solid #3b5d85;border-radius:10px;padding:12px;margin:10px 0}.upload-owner{font-size:12px;color:#b8c7da;background:#111c2d;border-radius:8px;padding:7px 9px;margin:8px 0}code{font-family:Consolas,"Courier New",monospace}


/* REVISI 8 — MGMPS BAHASA INGGRIS di tengah atas */
.topbar{
  padding-top:42px !important;
  min-height:118px !important;
}
.topbar::after{
  content:"MGMPS BAHASA INGGRIS";
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  font-size:22px;
  font-weight:900;
  letter-spacing:1.2px;
  color:#ffffff;
  white-space:nowrap;
  text-align:center;
  text-shadow:0 2px 5px rgba(0,0,0,.35);
  z-index:2;
}
.login-card{
  position:relative;
  padding-top:58px !important;
}
.login-card::after{
  content:"MGMPS BAHASA INGGRIS";
  position:absolute;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 40px);
  text-align:center;
  font-size:22px;
  font-weight:900;
  letter-spacing:1.1px;
  color:#ffffff;
}
@media(max-width:700px){
  .topbar{
    padding-top:38px !important;
    min-height:110px !important;
  }
  .topbar::after{
    font-size:16px;
    letter-spacing:.7px;
    top:9px;
  }
  .login-card::after{
    font-size:18px;
  }
}
