*{box-sizing:border-box}
:root{font-family:Arial,Helvetica,sans-serif;color:#132238;background:#f5f7fb;--blue:#0b5fff;--green:#1b9c5a;--yellow:#e0a000;--red:#d63b3b;--border:#dfe5ee}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eef4ff 0%,#f7f9fc 35%,#f5f7fb 100%)}
.shell{width:min(820px,100%);margin:auto;padding:24px 16px 48px}.admin-shell{width:min(980px,100%)}
.brand{display:flex;gap:14px;align-items:center;margin:10px 0 22px}.logo{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:800}.brand h1{margin:0;font-size:1.4rem}.brand p{margin:3px 0 0;color:#64748b}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:0 12px 28px rgba(15,23,42,.07)}.hidden{display:none!important}
form{display:grid;gap:15px;margin-top:18px}label{display:grid;gap:7px;font-weight:650}input,select,button,textarea{font:inherit}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #cfd8e5;border-radius:10px;background:#fff;color:#132238}
button{border:0;border-radius:10px;padding:13px 16px;background:var(--blue);color:#fff;font-weight:750;cursor:pointer}button:disabled{opacity:.6}.secondary{background:#edf3ff;color:#0b4acb}.compact{padding:9px 12px}.muted{color:#64748b}.message{min-height:1.2em;color:#b42318}
.status-header,.detail-head,.admin-topline{display:flex;justify-content:space-between;align-items:center;gap:12px}.eyebrow{font-weight:800;color:#526172;margin:0 0 5px}.status-dot{width:18px;height:18px;border-radius:50%;background:#94a3b8}.status-dot.green{background:var(--green);box-shadow:0 0 0 7px rgba(27,156,90,.14)}.status-dot.yellow{background:var(--yellow);box-shadow:0 0 0 7px rgba(224,160,0,.16)}.status-dot.red{background:var(--red);box-shadow:0 0 0 7px rgba(214,59,59,.14)}
.details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.details div{background:#f7f9fc;border-radius:12px;padding:12px}.details span{display:block;font-size:.82rem;color:#64748b;margin-bottom:4px}
.troubleshooting{border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.wifi-note{margin-top:16px;padding:14px;border-radius:12px;background:#f7f9fc;border:1px solid #e3e8ef}.wifi-note p{margin:6px 0 0;color:#58677a;line-height:1.45}
.warning-button{background:#fff5cc;color:#7a5600;border:1px solid #f2d36b}.issue-list{margin-top:12px;display:grid;gap:9px}.issue-item{background:#fff8df;border:1px solid #f2d36b;border-radius:12px;padding:12px}.issue-item strong{display:block;margin-bottom:4px}
.topic-list,.option-list{display:grid;gap:10px;margin-top:18px}.topic-button,.option-button{width:100%;text-align:left;background:#f7f9fc;color:#18324f;border:1px solid #dfe5ee;padding:15px;border-radius:12px}.topic-button strong{display:block;margin-bottom:5px}.topic-button span{display:block;color:#65758a;font-weight:400;line-height:1.35}.option-button:hover,.topic-button:hover{border-color:#9bb8e8;background:#f1f6ff}.back-link{background:transparent;color:#0b5fff;padding:0;margin:4px 0 16px}.action-badge{display:inline-block;border-radius:999px;padding:6px 10px;font-weight:800;font-size:.82rem;margin-bottom:10px}.action-badge.resolved{background:#e4f6ec;color:#176a42}.action-badge.escalate{background:#fdeaea;color:#9e2929}.action-badge.information{background:#eef3ff;color:#274f9c}
.support-summary{margin:18px 0;padding:14px;border-radius:12px;background:#f7f9fc;border:1px solid #dfe5ee}.support-summary h3{margin-top:0}.support-summary ul{margin-bottom:0;padding-left:20px}
.property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 22px}.property-card{background:#fff;border:2px solid var(--border);border-radius:16px;padding:18px;text-align:left;color:#132238}.property-card.green{border-color:#9bd3b5;background:#f3fbf6}.property-card.yellow{border-color:#efd47a;background:#fffaf0}.property-card.red{border-color:#efaaaa;background:#fff4f4}.property-card .health-line{display:flex;align-items:center;gap:9px;margin-top:8px;font-weight:800}.health-badge{width:13px;height:13px;border-radius:50%;display:inline-block}.health-badge.green{background:var(--green)}.health-badge.yellow{background:var(--yellow)}.health-badge.red{background:var(--red)}
.detail-card{margin-top:10px}.status-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 16px}.status-choice{background:#eef2f7;color:#26384c}.status-choice.selected{outline:3px solid #0b5fff}.green-choice{background:#eaf8f0;color:#176a42}.yellow-choice{background:#fff7d9;color:#7b5900}.red-choice{background:#fdeaea;color:#9e2929}
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.device-list{display:grid;gap:9px}.device-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:#f7f9fc;border-radius:12px;padding:12px}.device-name{font-weight:800}.device-meta{font-size:.84rem;color:#64748b;margin-top:3px}.device-actions{display:flex;gap:6px;flex-wrap:wrap}.device-actions button{padding:7px 9px;font-size:.82rem;background:#e9edf3;color:#26384c}.device-actions button.active.operational{background:#dff4e8;color:#14683e}.device-actions button.active.warning{background:#fff0bd;color:#775600}.device-actions button.active.down{background:#f9dede;color:#972727}.device-actions button.active.unknown{background:#e4e7ec;color:#475467}.signout{margin-top:18px;background:#e9edf3;color:#344054}
hr{border:0;border-top:1px solid var(--border);margin:24px 0}footer{text-align:center;color:#8290a3;font-size:.82rem;padding-top:20px}
@media(max-width:700px){.property-grid{grid-template-columns:1fr}.status-picker{grid-template-columns:1fr 1fr}.three-col{grid-template-columns:1fr}.device-row{grid-template-columns:1fr}.details{grid-template-columns:1fr}.card{padding:18px}}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.small{font-size:.88rem}
.support-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.support-form h3{margin:0 0 4px}
.support-success{margin:18px 0;padding:15px;border:1px solid #9bd3b5;background:#f3fbf6;border-radius:12px;color:#176a42}
.support-success p{margin:5px 0 0;color:#315e49}
.support-admin-card{margin-bottom:24px}
.property-heading{margin-top:20px}
.admin-support-list{display:grid;gap:12px;margin-top:16px}
.admin-support-empty{padding:16px;background:#f7f9fc;border-radius:12px;color:#64748b}
.support-request-card{border:1px solid var(--border);border-radius:14px;padding:15px;background:#fbfcfe}
.support-request-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.support-request-top h3{margin:0 0 4px}
.support-request-meta{color:#64748b;font-size:.9rem;line-height:1.45}
.support-contact{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.support-contact a{display:inline-block;text-decoration:none;background:#edf3ff;color:#0b4acb;font-weight:750;padding:8px 10px;border-radius:9px}
.support-note-admin{padding:10px 12px;background:#fff;border:1px solid #e3e8ef;border-radius:10px;margin:10px 0;white-space:pre-wrap}
.support-request-card details{margin-top:10px}
.support-request-card summary{cursor:pointer;font-weight:750;color:#0b4acb}
.support-answer-list{margin:10px 0 0;padding-left:20px}
.support-answer-list li{margin:8px 0}
.health-pill{display:inline-block;padding:5px 8px;border-radius:999px;font-size:.78rem;font-weight:800}
.health-pill.green{background:#e4f6ec;color:#176a42}.health-pill.yellow{background:#fff3c4;color:#765400}.health-pill.red{background:#fdeaea;color:#9e2929}
@media(max-width:700px){.two-col{grid-template-columns:1fr}.support-request-top{display:block}.health-pill{margin-top:8px}}

.delete-support-request{
  margin-top:14px;
  background:#fdeaea;
  color:#9e2929;
  border:1px solid #efb2b2;
  padding:9px 11px;
}
.delete-support-request:hover{background:#f8dada}

.notification-panel{
  margin-top:18px;
  padding:16px;
  border:1px solid #dfe5ee;
  border-radius:14px;
  background:#f8fbff;
}
.notification-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.notification-head h3{margin:0 0 5px}
.notification-head p{margin:0 0 12px;color:#58677a;line-height:1.45}
.notification-badge{
  white-space:nowrap;
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#e9edf3;
  color:#475467;
  font-size:.78rem;
  font-weight:800;
}
.notification-badge.enabled{background:#e4f6ec;color:#176a42}
.notification-badge.blocked{background:#fdeaea;color:#9e2929}
.notification-badge.setup{background:#fff3c4;color:#765400}
.notification-badge.unavailable{background:#e9edf3;color:#667085}
#notification-help{margin:10px 0 0;line-height:1.4}
@media(max-width:700px){
  .notification-head{display:block}
  .notification-badge{margin-bottom:10px}
}
