.wrap { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 26px 0 46px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.dashboard-toolbar { padding: 20px 0 4px; }
.dashboard-toolbar .eyebrow { margin-bottom: 2px; }
.dashboard-toolbar .muted { overflow-wrap: anywhere; }
.dashboard-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.dashboard-actions .schroco-home { color: var(--blue); font-weight: 700; text-decoration: none; }
.dashboard-actions .schroco-home:hover { color: #c0e0fc; text-decoration: underline; }
.card { min-width: 0; margin-top: 18px; padding: clamp(18px, 3vw, 24px); border: 1px solid var(--line); border-radius: 9px; background: rgba(21, 31, 41, .96); box-shadow: 0 8px 26px rgba(0, 0, 0, .15); }
.login { width: min(100%, 470px); margin: 52px auto 30px; padding: clamp(22px, 5vw, 34px); }
.brandlockup { display: flex; align-items: center; gap: 15px; }
.brandlockup img { display: block; width: 165px; max-width: 52vw; height: auto; object-fit: contain; }
.brandlockup .brand { color: var(--text); font-size: 1.2rem; font-weight: 820; }
.brandlockup .muted { color: var(--quiet); font-size: .85rem; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.22; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.35rem; }
h3 { margin: 19px 0 9px; font-size: 1.1rem; }
h4 { margin: 20px 0 7px; color: var(--steel); font-size: .94rem; }
p { color: var(--muted); }
.muted { color: var(--muted); }
.label { margin-bottom: 4px; color: var(--quiet); font-size: .76rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.metric { color: var(--text); font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.grid > div { min-width: 0; }
.login h2 { margin: 21px 0 13px; }
.tabs { display: flex; gap: 8px; margin-top: 23px; border-bottom: 1px solid var(--line); }
.tab { min-height: 42px; padding: 9px 13px; border: 1px solid #40515f; border-bottom: 0; border-radius: 7px 7px 0 0; background: #101820; color: var(--steel); }
.tab.active { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.field-label { display: block; margin: 13px 0 5px; color: var(--steel); font-size: .87rem; font-weight: 710; }
.login input { width: 100%; margin: 0 0 10px; }
button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--blue-strong); border-radius: 7px; background: var(--blue-strong); color: #fff; font-weight: 740; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
button:hover:not(:disabled) { border-color: #286498; background: #286498; }
.secondary { border-color: #526575; background: #18232d; color: var(--text); }
.secondary:hover:not(:disabled) { border-color: #8296a7; background: #23313c; }
.danger { border-color: #9e454b; background: #742e35; color: #fff; }
.danger:hover:not(:disabled) { border-color: #c45a63; background: #923741; }
.linkbtn { min-height: 40px; padding: 8px 6px; border-color: transparent; background: transparent; color: var(--blue); text-decoration: underline; }
.linkbtn:hover:not(:disabled) { border-color: transparent; background: transparent; color: #c0e0fc; }
.login .linkbtn { margin-left: 5px; }
.err { min-height: 0; color: #ffc4c4; font-size: .88rem; }
.siteform { margin-top: 14px; padding-top: 15px; border-top: 1px solid var(--line); }
.siteform input, .siteform select { width: 100%; max-width: 560px; margin: 6px 0 12px; }
.siteform label { display: block; margin: 8px 0 4px; color: var(--steel); font-size: .88rem; font-weight: 700; }
.checkrow { display: flex !important; align-items: flex-start; gap: 9px; margin: 9px 0 14px !important; color: var(--muted) !important; line-height: 1.5; }
.checkrow input { width: auto !important; min-height: auto; margin: 4px 0 0 !important; flex: 0 0 auto; }
.smsconsent a, .legalfooter a { color: var(--blue); text-decoration: underline; }
.contacts { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); }
.contacts h3 { margin-top: 0; }
.contactadd { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.contactadd input { min-width: 0; flex: 1; margin: 0; }
.contactrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.contactrow > span { min-width: 0; overflow-wrap: anywhere; }
.contactrow button { margin-left: 5px; }
.healthdetails { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 115px; }
.healthdetails h3 { margin-top: 12px; }
.healthscore { margin: 7px 0; color: var(--good); font-size: 2.65rem; font-weight: 850; line-height: 1.15; }
.healthscore small { color: var(--quiet); font-size: .95rem; }
.healthgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.healthgrid > div, .healthtile, .sitemetric { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #101922; }
.healthgrid > div > strong { color: var(--quiet); font-size: .78rem; }
.healthtile span, .sitemetric span, .monitorpanel span { display: block; margin-bottom: 5px; color: var(--quiet); font-size: .75rem; font-weight: 650; }
.healthtile strong { color: var(--text); font-size: 1.65rem; }
.healthtile strong small { color: var(--quiet); font-size: .78rem; }
.healthtile.good { border-color: rgba(123, 208, 162, .4); background: rgba(43, 99, 73, .17); color: var(--good); }
.healthtile.caution { border-color: rgba(240, 198, 110, .43); background: rgba(110, 82, 28, .18); color: var(--warn); }
.healthtile.critical { border-color: rgba(255, 146, 146, .43); background: rgba(130, 44, 44, .18); color: var(--bad); }
.healthtile.good strong { color: var(--good); }
.healthtile.caution strong { color: var(--warn); }
.healthtile.critical strong { color: var(--bad); }
.healthrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.healthrow > * { min-width: 0; overflow-wrap: anywhere; }
.healthalert { margin: 13px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #101922; color: var(--muted); }
.healthalert.bad { border-color: rgba(255, 146, 146, .4); background: rgba(130, 44, 44, .16); }
.healthalert.warn { border-color: rgba(240, 198, 110, .4); background: rgba(110, 82, 28, .16); }
.ok { color: var(--good) !important; font-weight: 720; }
.warn { color: var(--warn) !important; font-weight: 720; }
.bad { color: var(--bad) !important; font-weight: 720; }
.sitecard { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #111a22; box-shadow: 0 2px 9px rgba(0, 0, 0, .12); }
.sitehead, .sitefooter { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sitehead h3 { margin: 0 0 4px; font-size: 1.15rem; }
.siteurl { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.statuspill { flex: 0 0 auto; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; font-size: .77rem; font-weight: 820; }
.statusup { border-color: rgba(123, 208, 162, .38); background: rgba(43, 99, 73, .21); color: #b9e9cc; }
.statusdown { border-color: rgba(255, 146, 146, .4); background: rgba(130, 44, 44, .2); color: #ffc4c4; }
.siteoverview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.sitemetric strong { display: block; color: var(--text); font-size: 1rem; overflow-wrap: anywhere; }
.sitemetric small { display: block; margin-top: 4px; color: var(--quiet); overflow-wrap: anywhere; }
.sitemetric.responsegood { border-color: rgba(123, 208, 162, .38); background: rgba(43, 99, 73, .15); }
.sitemetric.responsegood strong { color: var(--good); }
.sitemetric.responsecaution { border-color: rgba(240, 198, 110, .4); background: rgba(110, 82, 28, .16); }
.sitemetric.responsecaution strong { color: var(--warn); }
.sitemetric.responsecritical { border-color: rgba(255, 146, 146, .4); background: rgba(130, 44, 44, .16); }
.sitemetric.responsecritical strong { color: var(--bad); }
.monitorpanel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 7px; background: #101922; }
.monitorpanel > div { min-width: 0; padding: 12px 13px; border-right: 1px solid var(--line); }
.monitorpanel > div:last-child { border-right: 0; }
.monitorpanel strong { color: var(--steel); font-size: .83rem; overflow-wrap: anywhere; }
.sitefooter { padding-top: 13px; border-top: 1px solid var(--line); }
.sitefooter button + button { margin-left: 5px; }
.scantext { max-width: 58%; color: var(--muted); font-size: .86rem; }
.legalfooter { padding: 20px 8px 30px; color: var(--quiet); font-size: .84rem; text-align: center; }
.legalfooter a { color: var(--muted); }
.legalfooter a:hover { color: #fff; }
body:has(article) .wrap { padding-top: 34px; }
article.card { max-width: 930px; margin-inline: auto; padding: clamp(22px, 5vw, 44px); }
article.card h1 { margin-top: 0; }
article.card h2 { margin-top: 29px; font-size: 1.22rem; }
article.card p { color: var(--muted); }
article.card p strong { color: var(--steel); }

@media (max-width: 800px) {
  .wrap { width: min(100% - 32px, 1180px); padding-top: 20px; }
  .siteoverview, .monitorpanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitorpanel > div:nth-child(2) { border-right: 0; }
  .monitorpanel > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .monitorpanel > div:nth-child(3) { border-bottom: 0; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); padding-top: 16px; }
  .login { margin: 29px auto 23px; }
  .top.dashboard-toolbar { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
  .card { margin-top: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sitehead { align-items: flex-start; }
  .siteoverview, .monitorpanel, .healthgrid { grid-template-columns: minmax(0, 1fr); }
  .monitorpanel > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .monitorpanel > div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .monitorpanel > div:last-child { border-bottom: 0; }
  .sitefooter { align-items: stretch; flex-direction: column; }
  .scantext { max-width: 100%; }
  .contactadd { align-items: stretch; flex-direction: column; }
  .contactadd input, .contactadd button { width: 100%; }
  .contactrow { align-items: flex-start; flex-direction: column; }
  .contactrow button { margin: 8px 5px 0 0; }
  .healthrow { flex-direction: column; gap: 4px; }
  .healthdetails .top { align-items: flex-start; }
  .healthdetails .top button { width: auto; }
  body:has(article) .wrap { padding-top: 21px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .card { padding: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .sitehead { flex-direction: column; }
  .dashboard-actions button { min-width: 96px; }
}
