:root {
    color-scheme: light;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #182230;
    background: #f3f6fa;
}

* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: 40px auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topbar h1 { margin: 4px 0 0; font-size: 27px; }
.eyebrow { color: #55708f; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; box-shadow: 0 5px 18px #172b4d0b; }
.login-card { max-width: 440px; margin: 48px auto; }
h2, h3 { margin: 0 0 10px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { line-height: 1.55; }
.muted, .hint, .table-note { color: #66758a; font-size: 13px; }
form { margin: 0; }
.login-card form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 7px; color: #34445a; font-size: 13px; font-weight: 600; }
input, select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #182230; background: #fff; font: inherit; }
input:focus, select:focus { outline: 2px solid #93c5fd; border-color: #4388d4; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 10px 16px; background: #1769aa; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: #12598f; }
.button-light { color: #34445a; background: #e8eef5; }
.button-light:hover { background: #dbe5ef; }
.button-danger { background: #b42318; }
.button-danger:hover { background: #912018; }
.button-small { padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.logout { margin-left: 16px; }
.notice { margin: 0 0 18px; border-radius: 7px; padding: 12px 15px; background: #e8f5ec; color: #176537; }
.notice.error { background: #fff0ee; color: #9f261b; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading p { margin: 0; }
.domain-picker { display: flex; align-items: center; gap: 10px; }
.domain-picker label { white-space: nowrap; }
.domain-picker select { min-width: 190px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e7edf3; text-align: left; vertical-align: middle; }
th { color: #66758a; font-size: 12px; font-weight: 600; }
td input { min-width: 110px; }
td:first-child input { min-width: 190px; }
.check { display: flex; grid-auto-flow: column; justify-content: start; align-items: center; gap: 7px; white-space: nowrap; }
.check input { width: 16px; min-width: 16px; height: 16px; }
.actions, .delete-cell { white-space: nowrap; }
.empty { padding: 18px 8px; color: #66758a; }
.table-note { margin: 12px 0 0; }
.create-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7edf3; }
.create-form { display: grid; grid-template-columns: 2fr 2fr 1fr auto auto; align-items: end; gap: 14px; }
.hint { font-weight: 400; }
footer { margin: 18px 0; text-align: center; color: #78879a; font-size: 12px; }
@media (max-width: 760px) {
    .container { margin: 22px auto; }
    .card { padding: 18px; }
    .section-heading { display: grid; }
    .create-form { grid-template-columns: 1fr; }
    .create-form .check { margin: 4px 0; }
}
