* { box-sizing: border-box; }
:root { color-scheme: light; --navy: #101e36; --blue: #245799; --line: #dbe2ed; }
body { margin: 0; min-height: 100vh; background: #f3f6fa; color: #17273e; font: 14px/1.5 system-ui, sans-serif; }
body.size-13 { font-size: 13px; }
body.size-16 { font-size: 16px; }
body.font-serif { font-family: Georgia, serif; }
.workspace { display: grid; grid-template-columns: 232px minmax(0,1fr); }
.workspace.narrow { grid-template-columns: 64px minmax(0,1fr); }
aside { background: var(--navy); color: #d9e6f6; min-height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; height: 60px; padding: 0 15px; color: white; font-weight: 750; text-decoration: none; }
.brand b { background: #3566a6; min-width: 34px; padding: 5px; text-align: center; border-radius: 5px; }
.brand small { color: #b5c5da; font-weight: 500; }
nav { padding: 12px 8px; }
nav h2 { color: #9bb1cd; font-size: .75em; margin: 22px 12px 6px; letter-spacing: .06em; text-transform: uppercase; }
nav a { min-height: 36px; align-items: center; display: flex; gap: 9px; padding: 6px 10px; border-radius: 4px; text-decoration: none; color: inherit; }
nav a:hover, nav [aria-current] { color: white; background: #243e63; }
nav i { min-width: 25px; text-align: center; font-style: normal; font-size: .9em; }
.narrow nav a span, .narrow nav h2, .narrow .brand span { display: none; }
header { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; background: white; border-bottom: 1px solid var(--line); }
.identity { font-weight: 650; overflow-wrap: anywhere; }
.identity small { margin-left: 8px; font-weight: 400; color: #526784; }
.utilities, .languages, .inline, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.languages { gap: 0; }
.languages button { border-radius: 0; }
.languages [aria-pressed="true"] { background: #e5eefb; color: #193f71; font-weight: 700; }
main { max-width: 1440px; padding: 24px; margin: auto; }
.guest main { max-width: 410px; margin-top: 7vh; }
h1 { font-size: 1.7em; margin: 0 0 18px; letter-spacing: -.025em; }
h2 { font-size: 1.15em; margin: 0; }
a { color: #1f528c; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; }
button, .button, input, select, textarea { font: inherit; border-radius: 4px; border: 1px solid #aebdd0; color: inherit; }
button, .button { padding: 5px 11px; background: white; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #edf3fa; }
button.primary { background: var(--blue); color: white; border-color: var(--blue); }
button.primary:hover { background: #1a447b; }
input, select, textarea { min-width: 0; background: white; padding: 6px 8px; }
textarea { min-height: 72px; }
.panel, .tile { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.form-grid { display: grid; gap: 12px; max-width: 520px; }
.form-grid label { display: grid; gap: 4px; }
.form-grid label.check { display: flex; align-items: center; }
.form-grid button { justify-self: start; align-self: end; }
.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.tile { display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: inherit; min-height: 95px; }
.tile:hover { border-color: #688ab6; }
.tile small { grid-column: 1/-1; color: #526784; }
.tile strong { font-size: 1.15em; }
.toolbar { margin-bottom: 10px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 11px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #eaf0f8; font-weight: 680; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f9fbfe; }
.notice { padding: 8px 12px; border-radius: 4px; background: #e4f3ea; }
.notice.error { background: #fbe9e9; color: #7f2020; }
:focus-visible { outline: 2px solid #4285e0; outline-offset: 2px; }
@media (max-width: 650px) {
  .workspace { grid-template-columns: 56px minmax(0,1fr); }
  nav a span, nav h2, .brand span { display: none; }
  .brand { padding: 0 10px; }
  nav a { padding-left: 6px; }
  header, main { padding-left: 12px; padding-right: 12px; }
}
