:root {
  font: 16px/1.55 Inter, system-ui, sans-serif;
  color: #f2f2fc;
  background: #10111a;
  color-scheme: dark;
  --muted: #adaec5;
  --line: #34354b;
  --panel: #1a1b2a;
  --accent: #c6b8ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.04em; }
h2, legend, label { font-size: .94rem; font-weight: 650; }
.top { background: #151622; border-bottom: 1px solid var(--line); }
.top-inner, .wrap { width: min(100% - 2rem, 48rem); margin-inline: auto; }
.top-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; color: inherit; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: .55rem; color: #17112c; background: var(--accent); }
.logout { border: 0; background: transparent; color: var(--muted); padding: .6rem 0 .6rem .6rem; }
.logout:hover { color: #fff; }
.wrap { padding-block: clamp(1.75rem, 5vw, 3.6rem) 3rem; }
.intro { display: grid; gap: 1.25rem; margin-bottom: 1.55rem; }
.tabs { display: flex; width: fit-content; max-width: 100%; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: #151622; }
.tabs a { color: var(--muted); padding: .45rem .85rem; border-radius: .5rem; text-decoration: none; font-size: .9rem; }
.tabs a:hover, .tabs a[aria-current] { background: #302b48; color: #eee7ff; }
.record-bar, .question-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.record-bar { margin-bottom: .6rem; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.arrows { display: flex; gap: .4rem; }
.arrows a, .arrows span { display: grid; place-items: center; font-size: 1.15rem; width: 2.35rem; height: 2.25rem; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; }
.arrows span { opacity: .45; }
.arrows a:hover { background: #302b48; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; }
.record > *, .empty, .login-card { padding: clamp(1rem, 4vw, 1.65rem); }
.record > * + * { border-top: 1px solid var(--line); }
.question-heading time { color: var(--muted); font-size: .8rem; }
.question-text, .answer-text { margin-top: .55rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.question-text { font-size: 1.18rem; font-weight: 600; }
.answer-text { color: #e0e1f2; }
.review-form, .login-form { display: grid; gap: .65rem; }
.review-form fieldset { border: 0; margin: 0 0 .55rem; padding: 0; min-width: 0; width: min(100%, 19rem); }
legend { padding: 0; margin-bottom: .6rem; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.score { position: relative; cursor: pointer; }
.score input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.score span { display: grid; place-items: center; height: 2.8rem; border: 1px solid var(--line); border-radius: .55rem; background: #151622; }
.score:hover span { border-color: var(--accent); }
.score input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.score input:checked + span { color: #17112c; background: var(--accent); border-color: var(--accent); }
.scale { display: flex; justify-content: space-between; margin-top: .3rem; font-size: .75rem; color: var(--muted); }
.muted { color: var(--muted); }
label .muted { font-weight: 400; }
input[type=password], textarea { width: 100%; border: 1px solid var(--line); border-radius: .6rem; padding: .65rem .8rem; background: #141520; color: inherit; }
textarea { resize: vertical; min-height: 6rem; }
textarea::placeholder { color: var(--muted); }
.primary { justify-self: start; margin-top: .4rem; padding: .65rem 1.1rem; background: var(--accent); color: #17112c; border: 0; border-radius: .6rem; font-weight: 700; }
.primary:hover { background: #d8ceff; }
.notice { padding: .65rem .85rem; border: 1px solid; border-radius: .6rem; }
.success { background: #182b28; color: #a9ecdb; border-color: #386258; margin-bottom: .85rem; }
.error { background: #34212c; color: #ffc6d8; border-color: #76465a; }
.empty .muted { margin-top: .35rem; }
.empty a { display: inline-block; margin-top: .8rem; }
.login-wrap { max-width: 28rem; padding-top: clamp(3rem, 14vh, 8rem); }
.login-card { padding: clamp(1.25rem, 5vw, 2rem); }
.login-card h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
.login-card p { margin-top: .65rem; }
.login-form { margin-top: 1.4rem; }
.login-form .primary { width: 100%; }
