:root { --text:#17253b; --line:#dfe5ed; --surface:#f3f6fa; --accent:#0b3473; }
* { box-sizing:border-box; }
body { margin:0; background:#f7f9fc; color:var(--text); font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; text-underline-offset:3px; }
aside { position:fixed; inset:0 auto 0 0; width:216px; padding:28px 20px; border-right:1px solid var(--line); display:flex; flex-direction:column; background:#fff; }
.brand { display:block; text-decoration:none; margin:0 0 32px; }
.brand img { display:block; width:177px; max-width:100%; height:auto; }
nav { display:grid; gap:3px; }
nav a { text-decoration:none; padding:9px 12px; border-radius:6px; }
nav a:hover { background:var(--surface); }
nav a[aria-current="page"] { background:#eaf0fa; color:var(--accent); }
nav a[aria-current="page"] { font-weight:600; }
.signout { margin-top:auto; padding:18px 10px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.account-name { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.signout button { border:0; padding:0; margin:0; background:none; }
main { margin-left:216px; padding:36px 44px; max-width:1320px; }
h1 { font-size:28px; line-height:1.25; font-weight:600; letter-spacing:-.5px; margin:0 0 28px; }
h2 { font-size:16px; line-height:1.4; font-weight:600; margin:0 0 12px; }
p { margin:10px 0; }
.narrow { max-width:640px; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:24px; margin:24px 0; }
.record { border:1px solid var(--line); background:#fff; border-radius:10px; padding:22px; margin:14px 0; }
.record .section-heading { margin-top:0; }
.record form { max-width:420px; }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.summary-grid a { background:#fff; padding:20px 22px; text-decoration:none; border:1px solid var(--line); border-radius:9px; }

.summary-grid a:hover { border-color:#a6bad8; }
.summary-grid span { display:block; }
.summary-grid strong { display:block; margin-top:6px; font-size:30px; color:var(--accent); font-weight:600; font-variant-numeric:tabular-nums; }
.settings-list { display:grid; grid-template-columns:160px minmax(0,1fr); gap:14px 24px; margin:20px 0; }
.settings-list dt { font-weight:500; }
.settings-list dd { margin:0; overflow-wrap:anywhere; }
.section-heading,.page-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:24px 0 14px; }
.page-heading { margin-top:0; }
.page-heading h1,.section-heading h2 { margin:0; }
.brief,.toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.brief { justify-content:space-between; margin-bottom:24px; }
.toolbar { margin:10px 0; }
.toolbar button { margin:0; }
label { display:block; font-size:13px; font-weight:500; margin:14px 0; }
input,textarea,select { display:block; width:100%; font:inherit; color:var(--text); background:#fff; border:1px solid #c4cedc; border-radius:6px; padding:9px 10px; margin-top:6px; }
textarea { resize:vertical; }
input[type="checkbox"] { display:inline-block; width:auto; margin:0 8px 0 0; accent-color:var(--accent); }
button,.button { display:inline-block; border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#fff; font-family:inherit; font-size:13px; font-weight:500; line-height:1.4; padding:9px 14px; cursor:pointer; text-decoration:none; margin:10px 12px 0 0; }
button.secondary,.button.secondary { background:#fff; color:var(--text); border-color:#c4cedc; }
button:disabled { opacity:.4; cursor:not-allowed; }
button:hover:not(:disabled),.button:hover { opacity:.8; }
:focus-visible { outline:2px solid #2268b3; outline-offset:3px; }
.notice { padding:12px 16px; border:1px solid var(--line); background:#eef3fa; border-radius:8px; margin-bottom:24px; overflow-wrap:anywhere; }
.empty { padding:24px; border:1px solid var(--line); border-radius:8px; background:#fff; }
details { margin:16px 0; }
summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
details p { max-width:760px; }
blockquote { margin:16px 0; border-left:2px solid var(--line); padding-left:16px; overflow-wrap:anywhere; }
.message-body { margin:20px 0; max-width:760px; line-height:1.65; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:9px; background:#fff; margin-top:20px; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
td,th { padding:12px 16px; border-bottom:1px solid var(--line); }
th { font-weight:600; background:#edf2f8; white-space:nowrap; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fafbfd; }
td { vertical-align:top; }
td details { margin:0; min-width:130px; }
.stats { gap:14px; }
.stats .card { margin:0; }

.stats strong { display:block; font-size:28px; color:var(--accent); font-weight:600; margin-bottom:4px; }
.errorlist { color:#a02222; padding-left:20px; }
#run-status:not(:empty) { border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
@media(max-width:800px) {
  aside { width:180px; padding:24px 14px; }
  main { margin-left:180px; padding:28px 24px; }
  .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-list { grid-template-columns:120px minmax(0,1fr); gap:12px; }
}
@media(max-width:560px) {
  aside { position:static; width:auto; padding:16px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { margin:0 0 18px; width:138px; }
  nav { display:flex; overflow-x:auto; gap:2px; }
  nav a { white-space:nowrap; font-size:13px; padding:7px 9px; }
  .signout { position:absolute; top:24px; right:18px; margin:0; padding:0; border:0; }
  main { margin-left:0; padding:24px 16px; }
  h1 { font-size:24px; }
  .grid.two { grid-template-columns:1fr; gap:0; }
  .card { padding:18px; }
  .settings-list { grid-template-columns:1fr; gap:5px; }
  .settings-list dd { margin-bottom:12px; }
  .summary-grid a { padding:16px; }
  .stats .card { padding:12px; }
  .stats span { font-size:12px; }
}
.card > .section-heading:first-child { margin-top:0; }

.unset, input::placeholder, textarea::placeholder { color:#767676; opacity:1; }

.breadcrumb { display:flex; gap:10px; font-size:13px; margin:0 0 16px; }
.breadcrumb span { color:#52637b; }
.status-label { display:inline-block; padding:3px 9px; background:#edf2f8; border-radius:5px; font-size:12px; }
.user-link { color:var(--accent); font-weight:600; }
.user-link + .status-label { margin-left:8px; }
.section-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--line); padding-bottom:8px; margin-top:30px; }
.section-tabs a { white-space:nowrap; }
.member-context .settings-list { margin:0; }
.unit-label { font-size:12px; }
.pagination { display:flex; justify-content:flex-end; align-items:center; gap:20px; margin:24px 0; }
.auth-page { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 20px; }
.auth-page aside { position:static; width:auto; padding:0; margin:0 0 28px; border:0; background:transparent; }
.auth-page .brand { width:200px; margin:0; background:#fff; border-radius:6px; padding:4px; }
.auth-page .brand img { width:100%; }
.auth-page main { width:100%; max-width:420px; margin:0; padding:30px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 28px rgba(17,42,81,.04); }
.auth-page h1 { font-size:24px; margin-bottom:24px; }
.auth-page button { width:100%; margin:14px 0 0; }
@media(max-width:560px) {
  .summary-grid { gap:10px; }
  .section-tabs { margin-top:24px; }
  .page-heading { flex-wrap:wrap; }
  .status-label { white-space:nowrap; }
  .auth-page { justify-content:flex-start; padding-top:64px; }
}
