:root {
  color-scheme: light;
  --bg: #eef2fa; --paper: #fff; --ink: #202a42; --muted: #516078;
  --blue: #293fa3; --line: #c8d2ec; --red: #9f2727;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 2rem), 30rem); margin: clamp(2rem, 10vh, 6rem) auto; }
.wrap.wide { width: min(calc(100% - 2rem), 47rem); }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 1rem; }
a { color: var(--blue); text-underline-offset: .2em; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.mark { width: 1rem; height: 1rem; border-radius: .15rem .15rem .55rem .55rem; background: var(--blue); border-top: 3px solid #8292ee; }
.card { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: .6rem .6rem 1.3rem 1.3rem; background: var(--paper); padding: clamp(1.2rem, 4vw, 2rem); }
h1, h2 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 1rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.45rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.stack { display: grid; justify-items: start; gap: .65rem; }
label { font-weight: 650; }
input { border: 1px solid #7684a4; border-radius: .4rem; min-height: 2.75rem; width: 100%; padding: .5rem .7rem; color: inherit; font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .5rem .9rem; border: 1px solid transparent; border-radius: .45rem; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; font: inherit; font-weight: 650; }
button:hover:not(:disabled), .button:hover { filter: brightness(.9); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #4b67d0; outline-offset: 3px; }
.secondary { background: var(--paper); color: var(--blue); border-color: #7684a4; }
.danger, .error { color: var(--red); }
.muted, small { color: var(--muted); }
.ticket { margin: 1rem 0; padding: .8rem 1rem; border: 1px dashed #7684a4; border-radius: .4rem; background: var(--bg); }
.ticket span { display: block; color: var(--muted); font: .75rem ui-monospace, monospace; }
.ticket output { display: block; overflow-wrap: anywhere; font: 700 clamp(1.5rem, 6vw, 2.2rem) ui-monospace, monospace; margin-top: .3rem; }
#approval .muted, #start-screen:not([hidden]) + [hidden] + #status { margin-top: 1rem; }
#status { font-weight: 650; }
.accounts { margin: 0; padding: 0; list-style: none; }
.accounts li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; border-top: 1px solid var(--line); padding: .9rem 0; }
.accounts li:last-child { padding-bottom: 0; }
.account { min-width: 0; overflow-wrap: anywhere; }
.account small { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; }
dialog { max-width: calc(100% - 2rem); color: var(--ink); border: 1px solid var(--line); border-radius: .65rem; padding: 1.2rem; }
dialog::backdrop { background: #202a4277; }
