:root {
  color-scheme: light;
  font: 15px/1.55 system-ui, "Microsoft YaHei", sans-serif;
  color: #20283a;
  background: #f1f4f9;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #244ba4; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.25; margin: 0 0 1.6rem; overflow-wrap: anywhere; }
.signed-in { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
aside { background: #19283f; color: #e8eef9; padding: 2rem 1.25rem; overflow-wrap: anywhere; }
aside p { color: #afbed5; font-size: .88rem; }
aside nav { display: grid; gap: .6rem; margin: 2rem 0; }
aside a { color: inherit; }
aside nav a { padding: .5rem .7rem; border-radius: .45rem; }
aside nav a:hover { background: #263b58; }
.brand { font-size: 1.2rem; font-weight: 760; }
main { width: min(100%, 1000px); padding: clamp(1.4rem, 4vw, 3.4rem); }
.signed-out { display: grid; place-items: center; padding: 1rem; }
.signed-out main { border-radius: 1rem; border: 1px solid #d9e2ef; background: white; max-width: 440px; }
.fields { display: grid; gap: 1rem; max-width: 650px; }
label { display: grid; gap: .35rem; font-weight: 650; }
label.check { display: flex; align-items: center; gap: .5rem; }
input, textarea, select { font: inherit; min-width: 0; color: inherit; background: white; border: 1px solid #bac8da; border-radius: .45rem; padding: .65rem .75rem; }
textarea { resize: vertical; }
button, .button { font: inherit; font-weight: 650; cursor: pointer; color: white; background: #244ba4; border: 0; border-radius: .45rem; padding: .65rem .95rem; justify-self: start; }
button:hover, aside .button:hover { background: #183777; }
.secondary { color: #234270; background: #e1e8f3; }
.secondary:hover { color: white; }
.message { display: grid; gap: .3rem 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: .85rem 1rem; background: white; color: inherit; border-bottom: 1px solid #dfe6f1; overflow-wrap: anywhere; }
.message strong { grid-column: 1 / -1; }
.message span, time { color: #475571; font-size: .9rem; }
.message:hover { background: #eaf1ff; }
.empty, pre { padding: 1.1rem; border-radius: .6rem; background: white; border: 1px solid #dfe6f1; }
pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
table { width: 100%; background: white; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { text-align: left; border-bottom: 1px solid #dfe6f1; padding: .6rem; overflow-wrap: anywhere; }
.error { color: #a82834; }
@media (max-width: 630px) {
  .signed-in { display: block; }
  aside { padding: 1rem; }
  aside p { margin: .3rem 0; }
  aside nav { display: flex; flex-wrap: wrap; margin: .6rem 0; }
  .message { grid-template-columns: 1fr; }
}
