:root { color-scheme: dark; font: 16px/1.55 system-ui, sans-serif; background: #160f19; color: #f9eff8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.25rem max(1rem, calc((100vw - 78rem) / 2)); background: #291731; border-bottom: 1px solid #65466a; }
.masthead > div { display: grid; margin-right: auto; }
.masthead strong { font-size: 1.25rem; }
.masthead div span, #operation-status { color: #e1c9e2; }
.mode { background: #55366a; color: #fff; border-radius: 2rem; padding: .35rem .75rem; font-weight: 700; }
main { max-width: 80rem; margin: auto; padding: 1rem; }
nav, .section-heading { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
nav { margin-bottom: 1rem; }
nav a { padding: .5rem .8rem; border-radius: .5rem; background: #36203e; }
a { color: #f3d0ff; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.section-heading { justify-content: space-between; margin-bottom: 1rem; }
.panel { background: #24162a; border: 1px solid #64476a; border-radius: 1rem; padding: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1rem; overflow-wrap: anywhere; scroll-margin-top: 1rem; }
.signin { max-width: 27rem; margin: 2rem auto 1rem; }
form, label { display: grid; gap: .4rem; }
form { gap: .8rem; margin-top: 1rem; }
button, input, select { border-radius: .5rem; border: 1px solid #8c6497; min-height: 2.75rem; font: inherit; color: inherit; padding: .45rem .8rem; }
button { background: #543267; cursor: pointer; font-weight: 650; }
button:disabled { opacity: .65; cursor: progress; }
input, select { background: #1a101f; }
input { width: 100%; }
.mfa-qr { display: inline-block; max-width: 100%; padding: 18px; background: #fff; border-radius: .55rem; }
.mfa-qr img, .mfa-qr canvas { display: block; max-width: 100%; height: auto; }
#mfa-enrollment h2 { font-size: 1.15rem; }
#mfa-copy { margin-top: .45rem; }
#mfa-secret { font-family: ui-monospace, monospace; }
.mfa-hint { color: #e1c9e2; font-size: .92rem; }
:focus-visible { outline: 3px solid #f8c676; outline-offset: 3px; }
#order-list, #message-list, #request-list { display: grid; gap: .65rem; }
#request-list, #more-requests { margin-top: .65rem; }
.request-record { display: grid; }
.record { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; border: 1px solid #684770; padding: .65rem; border-radius: .55rem; }
.record p { margin: 0; white-space: pre-wrap; }
#order-detail { margin-top: 1.25rem; border-top: 1px solid #684770; padding-top: 1rem; }
#operation-status:empty { display: none; }
@media (max-width: 36rem) { .record { align-items: stretch; flex-direction: column; } }
