:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #22241f; background: #f5f5ef; }
* { box-sizing: border-box; }
body { margin: 0; }
.top { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid #dedfd6; background: #fff; }
.top a { color: inherit; font-weight: 750; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.top a span { color: #636751; font-weight: 500; margin-left: 4px; }
.top form { display: flex; align-items: center; gap: 10px; }
main { width: min(1080px, calc(100% - 36px)); margin: 40px auto 60px; }
main.login { max-width: 400px; margin-top: 72px; }
.card { padding: 24px; margin: 0 0 18px; background: #fff; border: 1px solid #e0e1d7; border-radius: 14px; }
h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 22px; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 24px 0 10px; }
p, small { color: #54594c; }
small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
button, input { font: inherit; border-radius: 7px; min-height: 38px; }
button { padding: 7px 13px; font-weight: 620; background: #303b24; color: #fff; border: 1px solid transparent; cursor: pointer; }
button:hover { background: #465437; }
button.quiet, button.danger { background: #fff; color: #3c4536; border-color: #ced2c6; }
button.danger { color: #a43227; border-color: #e4bdb5; }
button.quiet:hover, button.danger:hover { background: #faf5ef; }
input { padding: 7px 10px; border: 1px solid #c7cbbe; background: #fff; color: #22241f; width: 100%; }
:focus-visible { outline: 3px solid #a96416; outline-offset: 2px; }
label { display: grid; gap: 6px; font-size: .9rem; }
.stack { display: grid; gap: 15px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card > .row { justify-content: space-between; margin-bottom: 14px; }
.fields { justify-content: flex-start !important; align-items: flex-end; }
.inline { display: flex; align-items: center; gap: 5px; }
.inline input { width: 63px; }
.devices, .audit { list-style: none; margin: 0; padding: 0; }
.devices li, .audit li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #eceee6; padding: 12px 0; overflow-wrap: anywhere; }
.devices li > div { min-width: min(190px, 100%); flex: 1; }
.admin-devices { flex-basis: 100%; padding: 6px 4px; }
.admin-devices summary { cursor: pointer; color: #3c4536; }
.status { border-radius: 16px; padding: 4px 9px; font-size: .81rem; background: #efefe9; }
.status.online { background: #e5efdd; color: #2e5326; }
.audit time { color: #54594c; font-variant-numeric: tabular-nums; }
.notice { color: #932d24; background: #fcefe9; padding: 12px 16px; border-radius: 8px; }
.invite { display: block; padding: 12px; background: #f1f3e8; overflow-wrap: anywhere; }
@media (max-width: 550px) { main, main.login { margin-top: 26px; } .card { padding: 18px; } .devices li form { flex-basis: 100%; } }
