
:root{
  --bg:#eaf3fb;
  --panel:#ffffff;
  --panel2:#f5f9fe;
  --blue:#0b3b82;
  --blue2:#1769b0;
  --blue3:#2384d1;
  --gold:#f4ad16;
  --text:#10233f;
  --muted:#71839a;
  --green:#20ad73;
  --danger:#d85050;
  --border:#cbddef;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text)
}
body:not(.light){
  --bg:#0b1724;
  --panel:#10253a;
  --panel2:#0d2135;
  --text:#f1f7fd;
  --muted:#a9bfd3;
  --border:#264b6c;
}
button,input{font:inherit}
.portal-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  min-height:100vh;
  gap:0;
}
.brand-panel{
  position:relative;
  min-height:100vh;
  border:0;
  border-radius:0;
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue2) 100%);
  color:#fff;
  padding:28px 20px;
  display:flex;
  flex-direction:column;
  text-align:center;
  box-shadow:8px 0 28px rgba(11,59,130,.14);
}
.logo-ring{height:116px;display:grid;place-items:center}
.logo-placeholder{
  width:92px;height:92px;
  border:2px solid rgba(255,255,255,.75);
  border-radius:16px;
  display:grid;place-items:center;
  font-size:42px;color:#fff;
  background:rgba(255,255,255,.08);
  box-shadow:none
}
.brand-small{
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  letter-spacing:1.3px;
  margin-top:7px;
  color:#dcecff
}
.brand-name{
  font-family:Arial,Helvetica,sans-serif;
  font-size:27px;
  font-weight:800;
  color:#fff;
  letter-spacing:.5px;
  margin-top:3px
}
.brand-arabic{font-size:17px;margin:6px 0 10px;color:#e8f4ff}
.gold-line{
  height:1px;
  background:linear-gradient(90deg,transparent,#fff4bd,transparent);
  margin:8px 0 16px
}
.tagline{
  font-family:Arial,Helvetica,sans-serif;
  font-style:normal;
  color:#fff4bd;
  line-height:1.5;
  font-size:13px;
  font-weight:700
}
.contact-block{margin-top:20px;text-align:left;font-size:12px;line-height:1.5}
.contact-block div{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.16)
}
.brand-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.24);
  font-size:11px;
  color:#dcecff
}
.main-area{
  padding:24px 26px 12px;
  display:flex;
  flex-direction:column;
  min-width:0
}
.top-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}
.portal-kicker{
  display:block;
  color:var(--blue2);
  font-size:10px;
  letter-spacing:1.5px;
  font-weight:900
}
body:not(.light) .portal-kicker{color:#7abaf1}
.top-row h1{
  font-size:36px;
  line-height:1;
  margin:6px 0 8px;
  letter-spacing:-.5px
}
.top-row h1 span{color:var(--blue2)}
body:not(.light) .top-row h1 span{color:#6cb6f4}
.welcome{font-weight:700;font-size:14px}
.institution{
  color:var(--muted);
  font-weight:400;
  font-size:13px;
  margin-top:4px
}
.theme-switch{
  border:1px solid var(--border);
  border-radius:9px;
  padding:3px;
  display:flex;
  background:var(--panel)
}
.theme-switch button{
  border:0;
  background:transparent;
  color:var(--text);
  padding:8px 11px;
  border-radius:7px;
  cursor:pointer;
  font-size:11px
}
.theme-switch button.active{
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff
}
.session-bar,.error-box{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:11px 13px;
  background:var(--panel);
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px
}
.session-bar a{
  color:var(--blue2);
  text-decoration:none;
  font-weight:700
}
.error-box{color:#c33;border-color:#e7bcbc}
.module-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px
}
.module-card{
  position:relative;
  min-height:132px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
  color:var(--text);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transition:.16s ease;
  box-shadow:0 8px 22px rgba(11,59,130,.055);
  overflow:hidden
}
.module-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--blue),var(--blue3))
}
.module-card:hover{
  transform:translateY(-3px);
  border-color:#9fc5e6;
  box-shadow:0 13px 28px rgba(11,59,130,.12)
}
.module-card.inactive{opacity:.55}
.module-icon{
  width:45px;
  height:45px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:24px;
  color:#fff;
  margin-bottom:8px;
  background:linear-gradient(135deg,var(--blue),var(--blue2))
}
.module-title{
  font-weight:800;
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px
}
.module-status{
  font-size:10px;
  margin-top:6px;
  color:var(--muted)
}
.status-dot{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  margin-right:4px
}
.status-dot.online{background:var(--green)}
.status-dot.offline{background:#8693a0}
.page-footer{
  margin-top:auto;
  border-top:1px solid var(--border);
  padding:12px 0 4px;
  text-align:right;
  color:var(--blue2);
  font-family:Arial,Helvetica,sans-serif;
  font-style:normal;
  font-size:12px
}
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,17,31,.68);
  display:grid;
  place-items:center;
  padding:20px;
  z-index:100
}
.modal-backdrop[hidden]{display:none}
.login-modal{
  position:relative;
  width:min(420px,100%);
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:13px;
  padding:24px;
  box-shadow:0 22px 70px rgba(0,0,0,.35)
}
.login-modal h2{text-align:center;margin:6px 0}
.login-logo{text-align:center;font-size:34px}
.modal-close{
  position:absolute;right:12px;top:10px;
  border:0;background:transparent;color:var(--text);
  font-size:28px;cursor:pointer
}
.login-modal label{
  display:block;margin:12px 0 5px;
  font-size:13px;font-weight:700
}
.login-modal input{
  width:100%;
  padding:11px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--panel2);
  color:var(--text);
  outline:none
}
.login-modal input:focus{border-color:var(--blue2)}
.btn-primary,.btn-secondary{
  display:inline-block;
  border-radius:8px;
  border:1px solid var(--border);
  padding:10px 14px;
  text-decoration:none;
  cursor:pointer
}
.btn-primary{
  width:100%;
  margin-top:15px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  font-weight:800
}
.btn-secondary{background:transparent;color:var(--text)}
#loginMessage{font-size:12px;margin-top:10px;color:#d85454;min-height:16px}
.small-muted{color:var(--muted);font-size:12px}
.module-shell{min-height:100vh;padding:18px}
.module-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.module-placeholder{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.module-big-icon{font-size:62px;color:var(--blue2)}

@media(max-width:1100px){
  .portal-layout{grid-template-columns:220px minmax(0,1fr)}
  .module-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .portal-layout{display:block}
  .brand-panel{
    min-height:auto;
    padding:16px;
    border-radius:0;
    display:grid;
    grid-template-columns:64px 1fr;
    text-align:left;
    gap:8px 12px
  }
  .logo-ring{height:auto;grid-row:1/4}
  .logo-placeholder{width:58px;height:58px;border-radius:10px;font-size:27px}
  .brand-small,.brand-arabic,.gold-line,.tagline,.contact-block,.brand-footer{display:none}
  .brand-name{font-size:19px;align-self:end}
  .main-area{padding:18px 14px}
  .module-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:620px){
  .top-row{display:block}
  .theme-switch{margin-top:12px;width:max-content}
  .module-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .module-card{min-height:108px;border-radius:9px}
  .module-icon{width:38px;height:38px;border-radius:9px;font-size:20px}
  .top-row h1{font-size:30px}
}

/* ===== MIBS v11.3 - Header logo lebih gelap ===== */
.sidebar .brand{
  background:#082f63!important;
  margin:-14px -12px 12px!important;
  padding:16px 14px!important;
  min-height:82px!important;
  border-bottom:1px solid rgba(255,255,255,.18)!important;
}
.sidebar .brand-logo{
  width:62px!important;
  height:62px!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  flex:0 0 62px!important;
}
.sidebar .brand b,
.sidebar .brand .brand-name{
  color:#fff!important;
}
.sidebar .brand small{
  color:#d8eaff!important;
}

/* ===== MIBS v11.4 - Logo lebih kontras ===== */
.sidebar .brand{
  background:#082f63!important;
  min-height:92px!important;
}
.sidebar .brand-logo{
  width:72px!important;
  height:72px!important;
  flex:0 0 72px!important;
  object-fit:contain!important;
  background:#ffffff!important;
  border:2px solid #f1cf3a!important;
  border-radius:16px!important;
  padding:5px!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}
.sidebar .brand > div:last-child{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.sidebar .brand b,
.sidebar .brand .brand-name{
  color:#ffffff!important;
  font-size:17px!important;
  line-height:1.05!important;
}
.sidebar .brand small{
  color:#dcecff!important;
  font-size:11px!important;
  margin-top:3px!important;
}

/* ===== MIBS KEBUMEN v12 ===== */
.sidebar .brand b,.sidebar .brand .brand-name{
  white-space:normal!important;
  word-break:normal!important;
  line-height:1.08!important;
}

/* ===== MIBS v12.1 - Komposisi Header Sidebar Seragam ===== */
.sidebar .brand{
  min-height:96px!important;
  height:96px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 16px!important;
  margin:0!important;
  background:#082f63!important;
  border-bottom:1px solid rgba(255,255,255,.18)!important;
}
.sidebar .brand-logo{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  flex:0 0 58px!important;
  object-fit:contain!important;
  background:#fff!important;
  border:2px solid #f1cf3a!important;
  border-radius:14px!important;
  padding:4px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}
.sidebar .brand > div:last-child{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.sidebar .brand b,
.sidebar .brand .brand-name{
  display:block!important;
  margin:0!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:1.08!important;
  white-space:normal!important;
}
.sidebar .brand small{
  display:block!important;
  margin-top:4px!important;
  color:#dcecff!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:500!important;
}

/* ============================================================
   v52 - PORTAL UTAMA RINGKAS, TANPA BIRU GELAP
   ============================================================ */

/* Portal selalu menggunakan mode terang */
body{
  --bg:#edf5fc!important;
  --panel:#ffffff!important;
  --panel2:#f6f9fd!important;
  --text:#10233f!important;
  --muted:#71839a!important;
  --border:#cbddef!important;
}
.theme-switch{display:none!important}

/* Desktop: dibuat muat satu layar 1366x768 tanpa scroll */
@media(min-width:821px){
  html,body{height:100%;overflow:hidden}
  .portal-layout{
    height:100vh;
    min-height:0!important;
    grid-template-columns:230px minmax(0,1fr)!important;
  }
  .brand-panel{
    min-height:0!important;
    height:100vh;
    padding:18px 16px 14px!important;
  }
  .logo-ring{height:84px!important}
  .logo-placeholder{
    width:74px!important;height:74px!important;
    font-size:34px!important;border-radius:13px!important
  }
  .brand-small{font-size:10px!important;margin-top:4px!important}
  .brand-name{font-size:25px!important;margin-top:2px!important}
  .brand-arabic{font-size:14px!important;margin:4px 0 6px!important}
  .gold-line{margin:5px 0 10px!important}
  .tagline{font-size:11px!important;line-height:1.35!important}
  .contact-block{margin-top:12px!important;font-size:10px!important;line-height:1.3!important}
  .contact-block div{padding:7px 0!important}
  .brand-footer{padding-top:9px!important;font-size:9px!important}

  .main-area{
    height:100vh;
    overflow:hidden;
    padding:16px 18px 8px!important;
  }
  .top-row{
    min-height:88px;
    align-items:flex-start!important
  }
  .portal-kicker{font-size:9px!important}
  .top-row h1{font-size:32px!important;margin:4px 0 5px!important}
  .welcome{font-size:12px!important}
  .institution{font-size:11px!important;margin-top:2px!important}

  .session-bar{
    margin-top:8px!important;
    padding:8px 11px!important;
    min-height:38px!important;
    align-items:center!important;
    font-size:11px!important;
  }
  .session-actions{display:flex;align-items:center;gap:13px}
  .session-bar .system-link{
    background:var(--blue)!important;
    color:#fff!important;
    padding:6px 9px!important;
    border-radius:6px!important;
    font-size:10px!important
  }

  .module-grid{
    flex:1 1 auto;
    min-height:0;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:minmax(92px,1fr);
    gap:9px!important;
    margin-top:10px!important;
    align-content:stretch;
  }
  .module-card{
    min-height:0!important;
    height:100%!important;
    max-height:118px;
    border-radius:9px!important;
    box-shadow:0 4px 13px rgba(11,59,130,.045)!important;
  }
  .module-card:before{height:3px!important}
  .module-icon{
    width:38px!important;height:38px!important;
    font-size:20px!important;
    margin-bottom:5px!important;
    border-radius:10px!important
  }
  .module-title{font-size:13px!important}
  .module-status{font-size:8.5px!important;margin-top:4px!important}
  .status-dot{width:6px!important;height:6px!important}

  .page-footer{
    flex:0 0 auto;
    margin-top:7px!important;
    padding:6px 0 0!important;
    font-size:9px!important;
  }
}

/* Sedikit lebih compact pada layar desktop pendek */
@media(min-width:821px) and (max-height:720px){
  .top-row{min-height:72px!important}
  .top-row h1{font-size:28px!important}
  .brand-panel{padding-top:12px!important}
  .logo-ring{height:68px!important}
  .logo-placeholder{width:60px!important;height:60px!important;font-size:28px!important}
  .brand-name{font-size:22px!important}
  .contact-block div{padding:5px 0!important}
  .module-grid{grid-auto-rows:minmax(82px,1fr)!important;gap:7px!important}
  .module-icon{width:34px!important;height:34px!important;font-size:18px!important}
  .module-title{font-size:12px!important}
  .page-footer{display:none!important}
}

/* Mobile tetap boleh scroll */
@media(max-width:820px){
  html,body{overflow:auto}
}

/* ============================================================
   v53 - SIDEBAR PORTAL KEMBALI KE UKURAN SEMULA
   Fokus compact hanya pada area kanan.
   ============================================================ */
@media(min-width:821px){
  .portal-layout{
    grid-template-columns:260px minmax(0,1fr)!important;
  }
  .brand-panel{
    min-height:100vh!important;
    height:100vh!important;
    padding:28px 20px!important;
  }
  .logo-ring{
    height:116px!important;
  }
  .logo-placeholder{
    width:92px!important;
    height:92px!important;
    border-radius:16px!important;
    font-size:42px!important;
  }
  .brand-small{
    font-size:11px!important;
    margin-top:7px!important;
  }
  .brand-name{
    font-size:27px!important;
    margin-top:3px!important;
  }
  .brand-arabic{
    font-size:17px!important;
    margin:6px 0 10px!important;
  }
  .gold-line{
    margin:8px 0 16px!important;
  }
  .tagline{
    font-size:13px!important;
    line-height:1.5!important;
  }
  .contact-block{
    margin-top:20px!important;
    font-size:12px!important;
    line-height:1.5!important;
  }
  .contact-block div{
    padding:10px 0!important;
  }
  .brand-footer{
    padding-top:16px!important;
    font-size:11px!important;
  }
}

/* Pada layar desktop pendek sidebar tetap ukuran desain asli;
   hanya panel kanan yang menyesuaikan agar muat layar. */
@media(min-width:821px) and (max-height:720px){
  .brand-panel{
    padding:28px 20px!important;
  }
  .logo-ring{height:116px!important}
  .logo-placeholder{
    width:92px!important;
    height:92px!important;
    font-size:42px!important;
  }
  .brand-name{font-size:27px!important}
  .contact-block div{padding:10px 0!important}
}

/* ============================================================
   v56 - Branding Sidebar Portal MIBS
   ============================================================ */
.portal-mibs-logo{
  display:block;
  width:100px;
  height:100px;
  object-fit:contain;
  background:transparent;
  border:0;
  box-shadow:none;
}
.logo-ring{
  height:116px!important;
  display:grid!important;
  place-items:center!important;
}
.brand-name{
  font-size:25px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  letter-spacing:.2px!important;
  margin-top:5px!important;
}
@media(max-width:820px){
  .portal-mibs-logo{width:58px;height:58px}
  .brand-name{font-size:18px!important}
}

/* ============================================================
   v57 - GRADASI SIDEBAR DIBALIK
   Atas lebih terang, bawah lebih gelap.
   ============================================================ */
.brand-panel{
  background:linear-gradient(
    180deg,
    #2479bd 0%,
    #1769b0 42%,
    #0b3b82 100%
  )!important;
}

/* ============================================================
   v58 - SIDEBAR FINAL MOCKUP
   Gelap di atas -> biru terang di bawah, logo dibuat putih.
   ============================================================ */
.brand-panel{
  background:linear-gradient(
    180deg,
    #061b48 0%,
    #082f6b 24%,
    #0758a8 58%,
    #0b8de3 100%
  )!important;
}

/* Logo asli dipertahankan, ditampilkan monokrom putih */
.portal-mibs-logo{
  width:104px!important;
  height:104px!important;
  object-fit:contain!important;
  filter:grayscale(1) brightness(0) invert(1)!important;
  opacity:.98!important;
}

/* Identitas tetap bersih di atas background gradasi */
.brand-small,
.brand-name,
.brand-arabic{
  color:#fff!important;
}
.brand-name{
  text-shadow:0 2px 4px rgba(0,0,0,.18);
}


/* ============================================================
   MIBS v108 - Header portal mobile FINAL
   Logo di kiri, identitas sekolah + Arab + tagline di kanan.
   ============================================================ */
@media (max-width:820px){
  .portal-layout{display:block!important;}
  .brand-panel{
    min-height:118px!important;
    height:auto!important;
    padding:13px 14px!important;
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:12px!important;
    row-gap:2px!important;
    align-items:center!important;
    align-content:center!important;
    text-align:left!important;
    overflow:visible!important;
    background:linear-gradient(135deg,#082f6b 0%,#0b8de3 100%)!important;
  }
  .brand-panel .logo-ring{
    display:grid!important;
    grid-column:1!important;
    grid-row:1 / span 3!important;
    width:68px!important;
    height:76px!important;
    min-height:0!important;
    place-items:center!important;
    margin:0!important;
  }
  .brand-panel .portal-mibs-logo{
    display:block!important;
    width:64px!important;
    height:64px!important;
    max-width:64px!important;
    max-height:64px!important;
    object-fit:contain!important;
    filter:grayscale(1) brightness(0) invert(1)!important;
  }
  .brand-panel .brand-small,
  .brand-panel .gold-line,
  .brand-panel .contact-block,
  .brand-panel .brand-footer{
    display:none!important;
  }
  .brand-panel .brand-name{
    display:block!important;
    grid-column:2!important;
    grid-row:1!important;
    align-self:end!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    font-size:16px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:.15px!important;
    white-space:normal!important;
    text-shadow:none!important;
  }
  .brand-panel .brand-arabic{
    display:block!important;
    grid-column:2!important;
    grid-row:2!important;
    align-self:center!important;
    margin:2px 0!important;
    padding:0!important;
    color:#fff!important;
    font-family:"Tahoma","Arial",sans-serif!important;
    font-size:11px!important;
    line-height:1.35!important;
    font-weight:600!important;
    direction:rtl!important;
    text-align:right!important;
    white-space:normal!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .brand-panel .tagline{
    display:block!important;
    grid-column:2!important;
    grid-row:3!important;
    align-self:start!important;
    margin:0!important;
    padding:0!important;
    color:#eaf6ff!important;
    font-size:8.8px!important;
    line-height:1.25!important;
    font-style:normal!important;
    font-weight:600!important;
    white-space:normal!important;
    visibility:visible!important;
    opacity:1!important;
  }
}
@media (max-width:390px){
  .brand-panel{
    grid-template-columns:60px minmax(0,1fr)!important;
    column-gap:9px!important;
    padding:11px 12px!important;
    min-height:108px!important;
  }
  .brand-panel .logo-ring{width:60px!important;height:68px!important;}
  .brand-panel .portal-mibs-logo{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important;}
  .brand-panel .brand-name{font-size:14px!important;}
  .brand-panel .brand-arabic{font-size:9.8px!important;line-height:1.3!important;}
  .brand-panel .tagline{font-size:7.8px!important;line-height:1.2!important;}
}

/* ===== v109: polish header mobile ===== */
@media (max-width:700px){
  .brand-panel{
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:11px!important;
    row-gap:2px!important;
    padding:10px 14px!important;
    min-height:104px!important;
    align-content:center!important;
  }
  .brand-panel .logo-ring{
    width:68px!important;height:76px!important;
    grid-row:1 / 4!important;
    align-self:center!important;
  }
  .brand-panel .portal-mibs-logo{
    width:64px!important;height:64px!important;
    max-width:64px!important;max-height:64px!important;
  }
  .brand-panel .brand-name{
    font-size:15px!important;line-height:1.1!important;
    letter-spacing:.2px!important;margin:0!important;
    align-self:end!important;
  }
  .brand-panel .brand-arabic{
    font-size:11.5px!important;line-height:1.35!important;
    margin:0!important;text-align:left!important;
    direction:rtl!important;unicode-bidi:plaintext!important;
    white-space:normal!important;
  }
  .brand-panel .tagline{
    font-size:9.3px!important;line-height:1.25!important;
    font-weight:600!important;margin:0!important;
    white-space:normal!important;
  }
}
@media (max-width:390px){
  .brand-panel{
    grid-template-columns:62px minmax(0,1fr)!important;
    column-gap:10px!important;padding:9px 12px!important;
    min-height:98px!important;
  }
  .brand-panel .logo-ring{width:62px!important;height:70px!important;}
  .brand-panel .portal-mibs-logo{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;}
  .brand-panel .brand-name{font-size:13.5px!important;}
  .brand-panel .brand-arabic{font-size:10.5px!important;line-height:1.3!important;}
  .brand-panel .tagline{font-size:8.5px!important;line-height:1.2!important;}
}

/* ===== v110: logo + MIBS Kebumen lebih menonjol di mobile ===== */
@media (max-width:700px){
  .brand-panel{
    grid-template-columns:78px minmax(0,1fr)!important;
    column-gap:12px!important;
    padding:10px 14px!important;
    min-height:108px!important;
  }
  .brand-panel .logo-ring{
    width:78px!important;
    height:82px!important;
  }
  .brand-panel .portal-mibs-logo{
    width:74px!important;
    height:74px!important;
    max-width:74px!important;
    max-height:74px!important;
  }
  .brand-panel .brand-name{
    font-size:17px!important;
    line-height:1.08!important;
    font-weight:800!important;
    letter-spacing:.2px!important;
  }
  .brand-panel .brand-arabic{
    font-size:11.5px!important;
    line-height:1.3!important;
  }
  .brand-panel .tagline{
    font-size:9.3px!important;
    line-height:1.2!important;
  }
}
@media (max-width:390px){
  .brand-panel{
    grid-template-columns:70px minmax(0,1fr)!important;
    column-gap:10px!important;
    padding:9px 11px!important;
    min-height:102px!important;
  }
  .brand-panel .logo-ring{width:70px!important;height:76px!important;}
  .brand-panel .portal-mibs-logo{width:66px!important;height:66px!important;max-width:66px!important;max-height:66px!important;}
  .brand-panel .brand-name{font-size:15.5px!important;}
  .brand-panel .brand-arabic{font-size:10.4px!important;}
  .brand-panel .tagline{font-size:8.3px!important;}
}
