:root { font-family: "SimSun", "Songti SC", serif; color: #253342; background: #f4f6f8; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #176f9e; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; font-size: 14px; }
.topbar { min-height: 72px; background: white; border-bottom: 1px solid #dce2e7; display: flex; align-items: center; gap: 32px; padding: 16px max(24px, calc((100% - 1360px) / 2)); }
.topbar img { display: block; object-fit: contain; }
.topbar nav { display: flex; gap: 24px; font-size: 14px; }
#accountState { margin-left: auto; font-size: 13px; color: #637280; }
main { max-width: 1360px; padding: 28px 24px 40px; margin: auto; }
.heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
h1 { margin: 0 0 8px; font-size: 26px; }
.heading p { margin: 0; font-size: 14px; color: #667684; }
.access-label { color: #466859; background: #e8f3ed; border: 1px solid #c9e1d4; padding: 7px 10px; border-radius: 4px; font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 18px 0; border-top: 1px solid #dce2e7; border-bottom: 1px solid #dce2e7; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #546574; min-width: 108px; }
.search { flex: 1; min-width: 180px; }
input, select { height: 38px; border: 1px solid #bdcbd5; border-radius: 4px; background: white; padding: 0 10px; color: #253342; min-width: 0; }
button { height: 38px; padding: 0 16px; background: white; color: #31566d; border: 1px solid #bdcbd5; border-radius: 4px; cursor: pointer; white-space: nowrap; }
button:hover { background: #eef5f9; }
button:disabled { opacity: .4; cursor: default; }
.primary { background: #167aad; color: white; border-color: #167aad; }
.primary:hover { background: #11638e; }
:focus-visible { outline: 2px solid #167aad; outline-offset: 3px; }
.results-header { display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-size: 14px; }
#refresh, .pagination button { width: 38px; padding: 0; font-size: 20px; }
#refresh svg, .pagination button svg { width: 18px; height: 18px; vertical-align: middle; }
.table-scroll { overflow-x: auto; background: white; border: 1px solid #dce2e7; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; min-width: 920px; }
th { background: #edf2f5; font-weight: 600; white-space: nowrap; color: #546574; }
th, td { padding: 15px 14px; border-bottom: 1px solid #e4e9ed; vertical-align: top; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f6fafc; }
.time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.muted { color: #72808b; font-size: 12px; display: block; margin-top: 3px; }
.status { padding: 4px 7px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.success { background: #e7f4ec; color: #256744; }
.failed { background: #fcecea; color: #a63731; }
.blocked { background: #fff0d7; color: #805608; }
.empty { text-align: center; padding: 60px 20px; color: #72808b; }
.device { min-width: 130px; max-width: 240px; overflow-wrap: anywhere; }
.history-note { color: #72808b; font-size: 12px; line-height: 1.6; }
.pagination { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #667684; }
.pagination div { display: flex; gap: 8px; }
#errorState { color: #a63731; background: #fcecea; padding: 12px; }
@media (max-width: 640px) { .topbar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; } .topbar nav { order: 3; width: 100%; } main { padding: 24px 16px; } label { flex: 1; min-width: 140px; } .search { flex-basis: 100%; } h1 { font-size: 24px; } }
