/* installer.css
   Eidos Installer — styles
   ------------------------------------------------------------ */

/* ============================================================
   1. TOKENS — extracted from the design system
   ============================================================ */
:root {
    /* color */
    --blue: #1E2F5D;
    --blue-2: #2f477f;
    --void: #0B0F1A;
    --void-2: #111729;
    --gold: #9B723A;
    --gold-2: #caa06a;
    --ink: #14171C;
    --ink-soft: #5a5e68;
    --linen: #F6F5F1;
    --linen-2: #EFECE4;
    --line: #E3DFD5;
    --on-dark: #F2F1ED;
    --on-dark-soft: rgba(242, 241, 237, .64);
    --line-dark: rgba(242, 241, 237, .14);
    --white: #fff;
    --gradient: linear-gradient(135deg, var(--blue) 0%, var(--gold) 100%);
    --gradient-on-dark: linear-gradient(90deg, var(--blue-2) 0%, var(--gold-2) 100%);
    --gradient-text: linear-gradient(120deg, var(--gold-2) 0%, #eddcc0 55%, var(--gold-2) 100%);
    /* status */
    --ok: #57d38c;
    --danger: #e06a6a;
    --warn: var(--gold-2);
    /* shape */
    --r-s: 10px;
    --r-m: 16px;
    --r-l: 26px;
    /* layout */
    --container: 1180px;
    --nav-h: 76px;
    --gutter: 32px;
    /* motion */
    --ease: cubic-bezier(.22, .75, .25, 1);
    --d-fast: .2s;
    --d-base: .35s;
    --d-slow: .7s;
    /* elevation */
    --shadow: 0 24px 60px -28px rgba(11, 15, 26, .4);
    --shadow-sm: 0 10px 26px -16px rgba(11, 15, 26, .3);
    /* type */
    --font-display: 'Instrument Sans', Inter, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --fs-hero: clamp(2.5rem, 5.4vw, 4.4rem);
    --fs-h2: clamp(1.9rem, 3.3vw, 2.6rem);
    --fs-h3: 1.05rem;
    --fs-lead: 1.08rem;
    --fs-body: 1rem;
    --fs-sm: .9rem;
    --fs-mono: .78rem;
    /* spacing */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box
}

[hidden] {
    display: none !important
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--void);
    color: var(--on-dark);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* radial glow + technical grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 50% -12%, rgba(30, 47, 93, .62), transparent 70%),
        radial-gradient(720px 520px at 88% 108%, rgba(155, 114, 58, .16), transparent 70%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(242, 241, 237, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 241, 237, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 50% 28%, #000, transparent 72%);
    mask-image: radial-gradient(circle at 50% 28%, #000, transparent 72%);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin: 0
}

p {
    margin: 0
}

button {
    font-family: inherit
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px
}

/* ============================================================
   3. UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--gold-2);
    color: var(--void);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
}

.skip-link:focus {
    left: 16px;
    top: 16px
}

.mono {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: .08em
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold-2);
}

.kicker::before {
    content: "";
    width: 16px;
    height: 1px;
    background: currentColor;
    flex: none
}

.grad-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

code {
    font-family: var(--font-mono);
    font-size: .86em;
    background: rgba(242, 241, 237, .08);
    color: var(--gold-2);
    padding: 2px 7px;
    border-radius: 6px;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--d-fast) var(--ease),
        box-shadow .25s var(--ease),
        background-color .2s var(--ease),
        border-color .2s var(--ease),
        color .2s var(--ease),
        opacity .2s var(--ease);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 12px 28px -14px rgba(155, 114, 58, .75);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -14px rgba(155, 114, 58, .85);
}

.btn-ghost {
    background: transparent;
    color: var(--on-dark);
    border-color: var(--line-dark);
}

.btn-ghost:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(242, 241, 237, .3);
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.btn-sm {
    padding: 10px 20px;
    font-size: .88rem
}

/* ============================================================
   5. THANK-YOU OVERLAY
   ============================================================ */
.thanks {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 32px;
    background: radial-gradient(800px 600px at 50% 40%, #0e1526 0%, var(--void) 70%);
    transition: opacity .65s var(--ease), visibility .65s var(--ease);
}

.thanks.is-out {
    opacity: 0;
    visibility: hidden
}

.thanks-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    max-width: 520px;
}

.thanks-mark {
    position: relative;
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.thanks-mark::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(202, 160, 106, .2), transparent 65%);
}

.ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.ring circle {
    fill: none;
    stroke: var(--gold-2);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 415;
    stroke-dashoffset: 415;
    animation: draw 1.35s var(--ease) .25s both;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0
    }
}

.thanks-title {
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    letter-spacing: -.025em;
    max-width: 18ch;
}

.thanks-sub {
    color: var(--on-dark-soft);
    max-width: 44ch
}

.thanks-anim {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .8s var(--ease) both
}

.thanks-anim.d1 {
    animation-delay: .38s
}

.thanks-anim.d2 {
    animation-delay: .52s
}

.thanks-anim.d3 {
    animation-delay: .68s
}

.thanks-anim.d4 {
    animation-delay: .9s
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.thanks-logo {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    animation: logo-float 5.5s var(--ease) infinite;
}

.thanks-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55));
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

/* ============================================================
   6. APPLICATION SHELL
   ============================================================ */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: var(--container);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 28px var(--gutter) 40px;
}

/* --- topbar --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex: none
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -.02em;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--on-dark-soft);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 3px 9px;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 16px
}

#stepCounter {
    color: var(--on-dark-soft)
}

.remaining {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
}

.remaining::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(202, 160, 106, .16);
}

/* --- global progress bar --- */
.progress {
    height: 3px;
    border-radius: 999px;
    background: rgba(242, 241, 237, .09);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient-on-dark);
    box-shadow: 0 0 14px rgba(202, 160, 106, .45);
    transition: width .55s var(--ease);
}

/* --- main grid --- */
.shell {
    flex: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    gap: 36px;
    justify-content: center;
    align-items: start;
    padding-top: 12px;
}

/* --- step rail --- */
.rail {
    position: sticky;
    top: 24px
}

.rail-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.rail-item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 9px 12px;
    border-radius: 12px;
    transition: background-color .2s var(--ease);
}

.rail-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 42px;
    bottom: -6px;
    width: 1px;
    background: var(--line-dark);
}

.rail-dot {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    color: var(--on-dark-soft);
    border: 1px solid var(--line-dark);
    background: rgba(11, 15, 26, .6);
    transition: all .25s var(--ease);
}

.rail-label {
    font-size: .88rem;
    line-height: 1.35;
    color: var(--on-dark-soft);
    padding-top: 3px;
    transition: color .2s var(--ease);
}

.rail-item[data-state="current"] {
    background: rgba(242, 241, 237, .04)
}

.rail-item[data-state="current"] .rail-dot {
    border-color: var(--gold-2);
    color: var(--gold-2);
    box-shadow: 0 0 0 4px rgba(202, 160, 106, .12);
}

.rail-item[data-state="current"] .rail-label {
    color: var(--on-dark);
    font-weight: 500
}

.rail-item[data-state="done"] .rail-dot {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    font-size: 0;
}

.rail-item[data-state="done"] .rail-dot::after {
    content: "✓";
    font-size: .78rem
}

.rail-item[data-state="done"] .rail-label {
    color: rgba(242, 241, 237, .45)
}

.rail-note {
    margin: 22px 0 0;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    color: rgba(242, 241, 237, .32);
    text-transform: uppercase;
}

/* --- panel --- */
.panel {
    background: linear-gradient(180deg, rgba(17, 23, 41, .94), rgba(17, 23, 41, .74));
    border: 1px solid var(--line-dark);
    border-radius: var(--r-l);
    padding: clamp(24px, 3.2vw, 40px);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.panel-head h2 {
    font-size: var(--fs-h2);
    margin-bottom: 12px
}

.panel-head .lead {
    font-size: var(--fs-lead);
    color: var(--on-dark-soft);
    max-width: 62ch;
}

.panel-body {
    min-height: 250px;
    padding-top: 26px
}

.panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
}

.foot-hint {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: rgba(242, 241, 237, .38);
    text-transform: uppercase;
}

/* step change animation */
.panel.is-anim .panel-head {
    animation: stepIn .5s var(--ease) both
}

.panel.is-anim .panel-body {
    animation: stepIn .5s var(--ease) .06s both
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ============================================================
   7. STEP CONTENT
   ============================================================ */

/* ticked list */
.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 13px
}

.ticks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .95rem;
    color: var(--on-dark-soft);
}

.ticks li::before {
    content: "✓";
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(202, 160, 106, .12);
    color: var(--gold-2);
    border: 1px solid rgba(202, 160, 106, .3);
}

.hint {
    margin-top: 20px;
    font-size: var(--fs-sm);
    color: var(--on-dark-soft)
}

/* requirements */
.req-list {
    display: grid;
    gap: 10px
}

.req {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-s);
    background: rgba(11, 15, 26, .35);
}

.req-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .9rem;
    font-weight: 600;
    background: rgba(87, 211, 140, .12);
    color: var(--ok);
    border: 1px solid rgba(87, 211, 140, .28);
}

.req[data-state="checking"] .req-icon {
    background: rgba(202, 160, 106, .1);
    color: var(--gold-2);
    border-color: rgba(202, 160, 106, .3);
}

.req-text {
    display: grid;
    gap: 2px;
    min-width: 0
}

.req-text strong {
    font-size: .9rem;
    font-weight: 600;
    color: var(--on-dark)
}

.req-text span {
    font-size: .8rem;
    color: var(--on-dark-soft);
    line-height: 1.4
}

.req-tag {
    margin-left: auto;
    flex: none;
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--ok);
    background: rgba(87, 211, 140, .1);
}

.req[data-state="checking"] .req-tag {
    color: var(--gold-2);
    background: rgba(202, 160, 106, .12)
}

/* contract */
.license {
    max-height: 240px;
    overflow: auto;
    padding: 18px 20px;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-m);
    background: rgba(11, 15, 26, .5);
    font-size: .86rem;
    line-height: 1.75;
    color: var(--on-dark-soft);
}

.license p {
    margin: 0 0 12px
}

.license p:last-child {
    margin-bottom: 0
}

.license strong {
    color: var(--on-dark);
    font-weight: 600
}

.license::-webkit-scrollbar {
    width: 8px
}

.license::-webkit-scrollbar-thumb {
    background: rgba(242, 241, 237, .14);
    border-radius: 999px
}

/* custom checkbox */
.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    cursor: pointer;
    font-size: .92rem;
    color: var(--on-dark-soft);
}

.check input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border-radius: 6px;
    border: 1px solid var(--line-dark);
    background: rgba(11, 15, 26, .6);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.check input:checked {
    background: var(--gradient);
    border-color: transparent
}

.check input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(42deg);
}

.check input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px
}

/* form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.form-grid .span2 {
    grid-column: 1 / -1
}

.field {
    display: grid;
    gap: 8px
}

.field label {
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--on-dark-soft);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-s);
    border: 1px solid var(--line-dark);
    background: rgba(11, 15, 26, .6);
    color: var(--on-dark);
    font-family: var(--font-body);
    font-size: .94rem;
    font-weight: 500;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.input::placeholder {
    color: rgba(242, 241, 237, .3)
}

.input:focus {
    outline: none;
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(202, 160, 106, .15);
}

/* file inputs */
.input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--on-dark-soft);
    font-size: .85rem;
}

.input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: transparent;
    color: var(--on-dark);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.input[type="file"]::file-selector-button:hover {
    border-color: rgba(242, 241, 237, .3);
    background: rgba(242, 241, 237, .04);
}

/* database test row */
.test-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.test-status {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--on-dark-soft);
}

.test-status[data-state="pending"] {
    color: var(--gold-2)
}

.test-status[data-state="ok"] {
    color: var(--ok)
}

.test-status[data-state="error"] {
    color: var(--danger)
}

/* terminal */
.terminal {
    border: 1px solid var(--line-dark);
    border-radius: var(--r-m);
    background: var(--void-2);
    overflow: hidden;
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(11, 15, 26, .55);
}

.term-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(242, 241, 237, .18)
}

.term-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    color: rgba(242, 241, 237, .4);
}

.term-body {
    min-height: 190px;
    max-height: 250px;
    overflow: auto;
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 1.85;
    color: var(--on-dark-soft);
}

.term-line {
    white-space: pre-wrap;
    word-break: break-word
}

.term-line.cmd {
    color: var(--on-dark)
}

.term-line.ok {
    color: var(--ok)
}

.term-body::-webkit-scrollbar {
    width: 8px
}

.term-body::-webkit-scrollbar-thumb {
    background: rgba(242, 241, 237, .14);
    border-radius: 999px
}

.install-meter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px
}

.meter {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(242, 241, 237, .1);
    overflow: hidden;
}

.meter-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient-on-dark);
    transition: width .35s var(--ease);
}

#installPct {
    color: var(--gold-2);
    min-width: 42px;
    text-align: right
}

/* completed */
.done {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 14px;
    padding: 6px 0
}

.done-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ok);
    background: rgba(87, 211, 140, .12);
    border: 1px solid rgba(87, 211, 140, .35);
    animation: pop .7s var(--ease) both;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.82)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.done h3 {
    font-size: 1.3rem
}

.done p {
    color: var(--on-dark-soft);
    font-size: .94rem;
    max-width: 46ch
}

.done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width:980px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 4px
    }

    .rail {
        display: none
    }

    .panel-body {
        min-height: 0
    }
}

@media (max-width:640px) {
    .app {
        padding: 20px 20px 32px
    }

    .topbar {
        align-items: flex-start
    }

    .topbar-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        font-size: .68rem
    }

    .brand-tag {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid .span2 {
        grid-column: auto
    }

    .panel-foot {
        flex-direction: column-reverse;
        align-items: stretch
    }

    .panel-foot .btn {
        width: 100%
    }

    .foot-hint {
        text-align: center
    }
}

/* ============================================================
   9. MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .ring circle {
        stroke-dashoffset: 0
    }

    .thanks-anim,
    .thanks-mark::before {
        opacity: 1 !important;
        transform: none !important
    }
}