:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; color: #182226; background: #eef2f1; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { min-height: 34px; border: 1px solid #c6d0ce; background: #fff; color: #263133; border-radius: 5px; padding: 6px 10px; cursor: pointer; }
button:hover { border-color: #376c65; background: #f2f8f7; }
button.primary { border-color: #146c62; background: #146c62; color: #fff; }
button.primary:hover { background: #0c584f; }
button.danger-button { color: #a42b25; border-color: #dca9a4; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 24px; font-weight: 680; margin-bottom: 3px; }
h2 { font-size: 18px; margin-bottom: 6px; }
.eyebrow { margin: 0 0 7px; color: #60716e; font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.subtle, .toolbar p, .backup-strip p { color: #5c6b69; font-size: 14px; line-height: 1.55; }
.topbar { min-height: 94px; background: #fff; border-bottom: 1px solid #d6dfdd; padding: 18px max(24px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-actions, .toolbar-actions, .modal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { max-width: 1320px; margin: 0 auto; padding: 28px 24px 48px; }
#task-status { min-height: 38px; display: flex; align-items: center; padding: 8px 12px; border-left: 3px solid #6b7b78; background: #e5ebea; color: #42514e; font-size: 14px; }
#task-status[data-type="success"] { border-color: #28776b; background: #dcefe9; color: #15574e; }
#task-status[data-type="error"] { border-color: #bd3b33; background: #f9e3e1; color: #8e241e; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 0 15px; }
.toolbar h2 { margin: 0 0 5px; }
.toolbar p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid #cfd9d7; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 940px; font-size: 14px; }
th { text-align: left; color: #53625f; background: #f3f6f5; font-weight: 650; }
th, td { padding: 12px; border-bottom: 1px solid #e0e7e5; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: #677572; margin-top: 5px; font-size: 11px; word-break: break-all; }
.actions { display: flex; gap: 6px; min-width: 240px; flex-wrap: wrap; }
.actions button { min-height: 29px; padding: 4px 8px; font-size: 12px; }
.link { padding: 0; min-height: 0; color: #12675e; border: 0; background: transparent; text-align: left; font-weight: 650; }
.status { display: inline-block; border-radius: 99px; padding: 3px 7px; font-size: 12px; background: #e6ebea; color: #566462; white-space: nowrap; }
.status.good { background: #dcefe9; color: #166258; }
.status.risk { background: #f9e2df; color: #a02620; }
.danger, .form-error { color: #a02620; }
.empty { text-align: center; padding: 42px; color: #65726f; }
.backup-strip { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #d4deda; margin-top: 28px; padding: 20px 0; color: #60716e; font-size: 13px; }
.backup-strip h2 { margin: 0 0 3px; }
.backup-strip p { margin: 0; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #e9eeec; }
.login-form { width: min(100%, 400px); background: #fff; border: 1px solid #d4dedb; padding: 32px; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 22px; color: #fff; background: #146c62; font-weight: 750; font-size: 13px; }
.login-form label, .form-grid label { display: grid; gap: 7px; color: #4d5d5a; font-size: 13px; font-weight: 600; }
.login-form input { margin: 14px 0 18px; }
input, select { width: 100%; min-height: 38px; border: 1px solid #bdc9c6; padding: 7px 9px; border-radius: 4px; color: #1e292b; background: #fff; }
input:focus, select:focus { outline: 2px solid #96c4bd; outline-offset: 1px; border-color: #347c72; }
.login-form .primary { width: 100%; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; background: rgb(17 29 28 / 48%); display: grid; place-items: center; padding: 20px; }
.modal { position: relative; width: min(100%, 620px); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid #bccac7; padding: 30px; }
.modal .close { position: absolute; right: 13px; top: 13px; border: 0; min-width: 30px; padding: 3px 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.proxy-toggle { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 9px; color: #243432 !important; }
.proxy-toggle input { width: auto; min-height: auto; margin: 0; }
.proxy-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 15px; border: 1px solid #d4dfdc; background: #f7f9f8; }
.proxy-fields label { min-width: 0; }
.modal-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: 8px; }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 11px 14px; font-size: 14px; }
dt { color: #687774; } dd { margin: 0; word-break: break-word; }
.qr-wrap { min-height: 250px; display: grid; place-items: center; padding: 18px; border: 1px solid #d3dfdc; background: #f7f9f8; }
.qr-wrap img { display: block; width: min(100%, 280px); height: auto; }
@media (max-width: 680px) { .topbar, .toolbar, .backup-strip { align-items: flex-start; flex-direction: column; } .topbar { padding: 18px 20px; } .content { padding: 20px 14px; } .toolbar { padding-top: 22px; } .form-grid, .proxy-fields { grid-template-columns: 1fr; } dl { grid-template-columns: 1fr; gap: 4px; } dd { margin-bottom: 10px; } .modal { padding: 25px 20px; } }
