:root{
  --h114-maintenance-height:0px;
  --h114-maintenance-red:#b91c1c;
  --h114-maintenance-red-dark:#7f1d1d;
}

.h114-maintenance-banner{
  position:fixed;
  inset:0 0 auto 0;
  z-index:2600;
  box-sizing:border-box;
  width:100%;
  min-height:42px;
  padding:9px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  background:linear-gradient(90deg,var(--h114-maintenance-red-dark),var(--h114-maintenance-red),var(--h114-maintenance-red-dark));
  border-bottom:1px solid rgba(255,255,255,.28);
  box-shadow:0 4px 14px rgba(127,29,29,.28);
  font:700 14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:center;
}
.h114-maintenance-banner[hidden]{display:none!important;}
.h114-maintenance-banner__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border:2px solid currentColor;
  border-radius:50%;
  font-size:16px;
  font-weight:900;
  line-height:1;
}
.h114-maintenance-banner__text{overflow-wrap:anywhere;}

body.h114-maintenance-banner-active{
  --h114-maintenance-height:42px;
}
body.h114-maintenance-banner-active .topbar{
  top:var(--h114-maintenance-height)!important;
}
body.has-fixed-topbar.h114-maintenance-banner-active{
  padding-top:calc(var(--topbar-offset,88px) + var(--h114-maintenance-height))!important;
}
body.h114-maintenance-banner-active:not(.has-fixed-topbar){
  padding-top:var(--h114-maintenance-height)!important;
}
body.ui-v2-shell.h114-maintenance-banner-active .topbar{
  max-height:calc(100vh - var(--h114-maintenance-height))!important;
}
html:has(body.h114-maintenance-banner-active){
  scroll-padding-top:calc(var(--topbar-offset,0px) + var(--h114-maintenance-height) + 12px)!important;
}

.h114-maintenance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.h114-maintenance-card{margin:0!important;}
.h114-maintenance-card--danger{
  border-color:rgba(185,28,28,.45)!important;
  box-shadow:0 0 0 1px rgba(185,28,28,.08) inset;
}
.h114-maintenance-check{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:12px;
}
.h114-maintenance-status-list{
  display:grid;
  gap:8px;
  margin:16px 0;
}
.h114-maintenance-status-list>div{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:9px 11px;
  border:1px solid var(--border);
  border-radius:10px;
}
.h114-maintenance-status-list dt{font-weight:700;}
.h114-maintenance-status-list dd{margin:0;text-align:right;}
.h114-maintenance-warning{margin:14px 0 0;}
.h114-maintenance-recovery{margin-top:18px!important;}
.h114-maintenance-recovery pre{
  overflow:auto;
  padding:12px;
  border-radius:10px;
  background:#0f172a;
  color:#e2e8f0;
}

@media(max-width:900px){
  .h114-maintenance-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .h114-maintenance-banner{
    min-height:48px;
    padding:8px 10px;
    align-items:flex-start;
    font-size:12px;
    text-align:left;
  }
  .h114-maintenance-banner__icon{width:21px;height:21px;flex-basis:21px;font-size:14px;}
}
