:root {
  color-scheme: light;
  --ink: #231a46;
  --muted: #625c72;
  --purple: #5e38c7;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f6fa; }
a { color: var(--purple); text-underline-offset: .2em; }
.topbar { display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e6e3ec; padding: .5rem clamp(1rem, 5vw, 5rem); }
.brand { display: flex; align-items: center; }
.brand img { width: 8.5rem; height: auto; display: block; }
.home, .back { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; font-size: .875rem; font-weight: 600; }
.home { color: var(--ink); text-decoration: none; }
.home:hover, .switcher a:hover { text-decoration: underline; }
.shell { width: min(56rem, calc(100% - 3rem)); margin: clamp(2rem, 7vh, 5rem) auto; display: grid; grid-template-columns: .78fr 1.22fr; background: white; border: 1px solid #dfdbe7; border-radius: 1.4rem; overflow: hidden; box-shadow: 0 16px 48px #2519460c; }
.identity { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 28rem; padding: 2.3rem; background: #20164d; color: #faf8ff; }
.edition { font-size: .73rem; font-weight: 750; letter-spacing: .18em; }
.identity strong { font-size: clamp(4rem,7vw,6.2rem); line-height: .86; letter-spacing: -.075em; }
.identity em { font: italic 1.04em/.96 Georgia, serif; color: #dfcbff; }
.rings { position: absolute; z-index: -1; height: 21rem; width: 21rem; border-radius: 50%; border: 2rem solid #5d3dac; left: 43%; top: 14%; box-shadow: 0 0 0 1rem #3f297c, 0 0 0 3rem #503292, 0 0 0 4rem #372567; }
.panel { min-width: 0; align-self: center; padding: clamp(1.5rem,3.7vw,3.25rem); }
h1 { margin: 0; font-size: clamp(1.8rem,3.3vw,2.45rem); letter-spacing: -.045em; line-height: 1.12; }
.intro { margin: .7rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.switcher { display: flex; padding: .25rem; gap: .25rem; margin: 0 0 1.8rem; border-radius: .8rem; background: #f1eff6; }
.switcher a { flex: 1; text-align: center; line-height: 2.6rem; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; border-radius: .6rem; }
.switcher a[aria-current] { background: white; box-shadow: 0 1px 4px #23174026; color: var(--ink); }
form { display: grid; gap: 1.15rem; margin-top: 1.65rem; }
.field { display: grid; gap: .42rem; min-width: 0; }
label, dt { font-size: .89rem; font-weight: 650; }
label span, small { color: var(--muted); font-weight: 400; }
small { font-size: .81rem; }
input, button, .primary { font: inherit; }
input:not([type=checkbox]) { width: 100%; min-width: 0; padding: .72rem .85rem; border: 1px solid #a7a1b6; border-radius: .6rem; color: var(--ink); background: white; }
button, .primary { display: flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid transparent; padding: .65rem 1rem; border-radius: .65rem; background: var(--purple); color: white; cursor: pointer; font-size: .92rem; font-weight: 680; text-decoration: none; }
button:hover, .primary:hover { background: #4928aa; }
.secondary { background: #f3effd; color: #4c2b9c; border-color: #d6c9f1; white-space: nowrap; }
.secondary:hover { background: #e9e1fb; }
.with-button, .label-row { display: flex; align-items: center; gap: .55rem; }
.label-row { justify-content: space-between; }
.label-row a { font-size: .83rem; font-weight: 600; }
.show { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.show input { width: 1.1rem; height: 1.1rem; accent-color: var(--purple); }
#otp { letter-spacing: .12em; }
#otp::placeholder { letter-spacing: normal; }
.notice, [role=alert] { margin: .7rem 0 0; padding: .75rem 1rem; border-radius: .6rem; overflow-wrap: anywhere; font-size: .9rem; }
.notice { background: #edf6f1; color: #24583c; }
[role=alert] { background: #fff0eb; color: #79291c; }
.details { display: grid; gap: .2rem; margin: 1.3rem 0; }
dt { color: var(--muted); }
dd { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.primary + form { margin-top: .7rem; }
.back { margin-top: .7rem; }
:focus-visible { outline: 3px solid #6944da; outline-offset: 2px; }
[hidden], #feedback:empty { display: none !important; }
@media (max-width: 700px) {
  .shell { display: block; max-width: 31rem; width: calc(100% - 2rem); margin: 1.4rem auto; border-radius: 1rem; }
  .identity { display: none; }
  .panel { padding: clamp(1.2rem,5vw,2rem); }
  .switcher { margin-bottom: 1.4rem; }
}
@media (max-width: 410px) { .with-button { display: grid; } }
