:root{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#142033;background:#eef3f8;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#0b3b68 0,#0b3b68 132px,#eef3f8 132px)}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar{
  min-height:112px;padding:24px max(18px,env(safe-area-inset-left));
  display:flex;align-items:center;justify-content:space-between;color:white;
}
.brand{font-size:24px;font-weight:800;letter-spacing:.2px}
.wst{display:inline-block;margin-right:5px;font-weight:900}
.subtitle{font-size:13px;opacity:.82;margin-top:2px}
.shell{width:min(680px,100%);margin:0 auto;padding:0 16px 36px}
.card{
  background:white;border-radius:18px;padding:22px;margin-bottom:16px;
  box-shadow:0 12px 32px rgba(13,38,66,.12);border:1px solid rgba(15,54,88,.08);
}
.card.compact{padding:16px 18px}
h1,h2{margin:0 0 12px;line-height:1.2}
h1{font-size:24px} h2{font-size:20px}
label{display:block;font-weight:700;font-size:14px;margin:16px 0 7px}
input,select{
  width:100%;min-height:50px;border:1px solid #b9c7d4;border-radius:12px;
  padding:11px 13px;background:#fff;color:#142033;outline:none;
}
input:focus,select:focus{border-color:#0b5c9b;box-shadow:0 0 0 3px rgba(11,92,155,.12)}
.primary,.danger,.ghost{
  border:0;border-radius:12px;min-height:48px;padding:11px 16px;font-weight:800;
}
.primary{width:100%;background:#0b5c9b;color:white;margin-top:16px}
.primary:disabled,.danger:disabled{opacity:.55;cursor:not-allowed}
.danger{width:100%;background:#b42318;color:white;margin-top:18px}
.ghost{background:#e8eff5;color:#15324c}
.topbar .ghost{background:rgba(255,255,255,.16);color:white}
.large{min-height:56px;font-size:17px}
.row{display:flex;gap:12px;align-items:center}
.between{justify-content:space-between}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:.11em;color:#668096}
.muted,.note,.message{color:#607489;line-height:1.5}
.muted{margin-top:0}
.note{font-size:13px;margin:12px 0 0}
.note.important{color:#455c70}
.message{min-height:20px;font-size:14px;margin:12px 0 0}
.badge{
  padding:7px 10px;border-radius:999px;background:#e8eef4;color:#355067;
  font-size:12px;font-weight:900;white-space:nowrap;
}
.badge.online{background:#e3f5e8;color:#176b32}
.badge.offline-state{background:#fff0e8;color:#9a3412}
.status-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;
}
.status-grid>div{
  background:#f4f7fa;border-radius:12px;padding:12px;min-height:76px;
  display:flex;flex-direction:column;justify-content:center;
}
.status-grid span{font-size:12px;color:#6b7f91;margin-bottom:5px}
.status-grid strong{font-size:16px}
.offline{
  margin-top:14px;padding:12px;border-radius:12px;background:#fff4e5;
  color:#8a4b08;font-size:13px;line-height:1.45;font-weight:650;
}
.hidden{display:none!important}
footer{text-align:center;color:#688096;font-size:12px;padding:2px 16px 24px}
@media (max-width:420px){
  .topbar{padding-top:20px}
  .brand{font-size:22px}
  .card{padding:18px;border-radius:16px}
  .row.between{align-items:flex-start}
}

.company-link{
  display:block;margin:10px 0 4px;color:#0b5c9b;font-weight:800;
  text-decoration:none;font-size:14px;
}
.company-link:hover{text-decoration:underline}

.top-actions{display:flex;align-items:center;gap:8px}
.home-link{display:inline-flex;align-items:center;text-decoration:none}
