body { font-family: system-ui, Segoe UI, sans-serif; margin: 0; background: #f4f5f7; color: #1b1f24; }
header.top { display: flex; gap: 1.5rem; align-items: center; padding: .6rem 1.2rem; background: #1b2733; color: #fff; }
header.top a { color: #cfe3ff; margin-right: 1rem; text-decoration: none; }
header.top .logout { margin-left: auto; }
main { padding: 1.2rem; max-width: 960px; margin: 0 auto; }
.toolbar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.alert-card { background: #fff; border-left: 8px solid #c62828; border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: 0 1px 3px #0002; }
.alert-card.late, .alert-card.tamper { border-left-color: #ef6c00; }
.alert-card h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.alert-card dl { display: grid; grid-template-columns: 8rem 1fr; margin: .4rem 0; }
.alert-card dt { color: #555; }
.alert-card .duration { font-weight: 600; }
.alert-card .note { width: 60%; margin-right: .5rem; }
.login { display: grid; gap: .8rem; max-width: 22rem; }
.error { color: #c62828; }
.reconnect-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: .7rem; background: #c62828; color: #fff; text-align: center; font-weight: 600; z-index: 10; }
#components-reconnect-modal.components-reconnect-show, #components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: block; }
table { border-collapse: collapse; width: 100%; background: #fff; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #e3e6ea; font-size: .92rem; }
th { background: #eef1f5; }
tr.online td { background: #ffe9e9; font-weight: 600; }
tr.late td { background: #fff4e5; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: .6rem 0; }
.pager { display: flex; gap: 1rem; align-items: center; }
.admin-box { background: #fff; border-radius: 6px; padding: .6rem 1rem; margin: 1rem 0; box-shadow: 0 1px 3px #0002; }
.device-info { display: grid; grid-template-columns: 10rem 1fr; }
