:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f3f6fa;
  color: #17243a;
  --blue: #1a54ac;
  --line: #d9e2ed;
  --muted: #51627a;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--blue); color: white; text-decoration: none; font-weight: 650; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.94); }
.secondary { color: #214568; border-color: var(--line); background: #f5f8fc; }
:focus-visible { outline: 3px solid #497dc9; outline-offset: 2px; }
.frame { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.top { background: #152744; }
.header-content { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { color: white; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.content { padding: 24px 0 44px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
nav a { padding: 9px 13px; color: var(--muted); text-decoration: none; font-weight: 650; border-bottom: 3px solid transparent; }
nav a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
h1 { font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.2; margin: 24px 0 18px; }
h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: .98rem; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.small, .label { font-size: .86rem; }
.label { color: var(--blue); font-weight: 700; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-heading h2 { overflow-wrap: anywhere; margin: 2px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.management, .monitor { margin-top: 14px; }
.management .button { margin: 0 6px 6px 0; }
.status { display: inline-block; font-size: .8rem; border-radius: 6px; padding: 3px 7px; font-weight: 650; }
.good { color: #135e3d; background: #e5f6ec; }
.pending, .notice { color: #724f10; background: #fff3d8; }
.notice { padding: 11px 13px; border-radius: 8px; }
.mailboxes { margin: 8px 0 18px; padding: 0; list-style: none; overflow-wrap: anywhere; }
.mailboxes li, .settings > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.settings > div { display: flex; gap: 12px; justify-content: space-between; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.metrics dd { font-size: 1.12rem; }
.metrics small { color: var(--muted); }
summary { color: var(--blue); cursor: pointer; font-weight: 650; }
.table-wrap { max-height: 390px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 5px 9px; }
th { position: sticky; top: 0; background: white; }
.card form { display: grid; gap: 7px; max-width: 460px; }
label { margin-top: 5px; font-weight: 650; }
input:not([type=hidden]), select { min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #a7b9cf; border-radius: 8px; color: inherit; background: white; }
.card form > button { justify-self: start; margin-top: 8px; }
.password-field { display: flex; gap: 6px; }
.eye { width: 43px; min-width: 43px; font-size: 1.25rem; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.hint:empty { display: none; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 18px; }
.login-card { width: min(100%, 440px); padding: 26px; }
.login-card h1 { margin: 7px 0; }
.login-card .label { margin: 0; }
@media (max-width: 540px) {
  .frame { width: calc(100% - 24px); }
  .card { padding: 15px; }
  nav a { padding: 7px 9px; }
}
