* { box-sizing: border-box; }
:root { color-scheme: light; --bg: #f4f6fa; --surface: #fff; --text: #222c39; --muted: #526275; --line: #dce3ed; --accent: #244e92; }
:root[data-theme=dark] { color-scheme: dark; --bg: #151c26; --surface: #202b39; --text: #ecf1f9; --muted: #b7c6da; --line: #3b4a60; --accent: #b6d0ff; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 Tahoma, Arial, sans-serif; }
main { padding: 2rem; }
.signin { max-width: 26rem; margin: 9vh auto 0; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.signin form { display: grid; gap: 1rem; margin-bottom: .8rem; }
.signin button { width: 100%; }
h1 { margin-block: 0 1rem; font-size: 1.55rem; }
h2 { font-size: 1.15rem; margin-top: 0; }
.brand, .muted { color: var(--muted); }
.error { color: #aa2741; }
[data-theme=dark] .error { color: #ff9dac; }
aside { padding: 1rem; position: fixed; inset: 0 0 0 auto; width: 16rem; background: var(--surface); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
aside strong { font-size: 1.4rem; }
nav { display: grid; gap: .25rem; }
a { color: var(--accent); text-decoration: none; padding: .45rem .65rem; border-radius: .45rem; }
a:hover { background: var(--bg); }
.workspace { margin-inline-start: 16rem; }
section { padding: 1rem; margin-block: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; }
td, th { white-space: nowrap; padding: .6rem; border-block-end: 1px solid var(--line); }
label { display: block; }
input, select, button { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; padding: .4rem .65rem; }
input:not([type=checkbox]) { width: 100%; display: block; }
button { cursor: pointer; }
.primary { background: #244e92; color: white; border-color: #244e92; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  aside { position: static; width: auto; border-block-end: 1px solid var(--line); }
  nav { display: flex; flex-wrap: wrap; }
  .workspace { margin-inline-start: 0; }
  main { padding: 1rem; }
  .signin { margin: 5vh 1rem; }
}
