@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap'); :root {
    --blue: #6c99ca;
    --ink: #263647;
    --muted: #73818e;
    --paper: #f7f9fb
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px Manrope,Arial,sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer
}

header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e1e7ed;
    padding: 0 5%;
    background: #f7f9bf00
}

.brand {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px
}

.brand b {
    color: var(--blue);
    font-size: 30px;
    margin-right: 9px
}

nav {
    display: flex;
    gap: 32px;
    font-size: 13px
}

nav a:hover {
    color: #4874a1
}

.actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--blue);
    color: #ffffff;
    border: 0;
    border-radius: 9px;
    padding: 17px 24px;
    font-weight: 800;
    font-size: 13px;
    transition: transform .2s
}

.btn:hover {
    transform: translateY(-3px);
    background: #80a8d2
}

.outline {
    color: #6c99ca;
    background: transparent;
    border: 1px solid #cdd7e1
}

.wrap {
    max-width: 1280px;
    margin: auto;
    padding: 0 5%
}

.hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    position: relative
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #647e98
}

.eyebrow:before {
    content: '●';
    color: var(--blue);
    margin-right: 10px
}

h1 {
    font-size: clamp(42px,4.8vw,70px);
    line-height: 1.09;
    letter-spacing: -3px;
    margin: 26px 0
}

h1 span {
    color: var(--blue)
}

p {
    line-height: 1.85;
    color: var(--muted)
}

.hero p {
    max-width: 440px
}

.hero .buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px
}

.micro {
    font-size: 11px;
    margin-top: 20px;
    color: #7f8d99
}

.art {
    height: 530px;
    position: relative;
    overflow: hidden;
    overflow: clip;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse,#e1ecf6,transparent 68%)
}

.orbit {
    position: absolute;
    width: 470px;
    height: 470px;
    border: 1px dashed #b8cbdc;
    border-radius: 50%;
    transform: rotate(-20deg)
}

.orbit:after {
    content: '';
    position: absolute;
    inset: 48px;
    border: 1px solid #d3e0eb;
    border-radius: 50%
}

.poke {
    position: relative;
    width: 300px;
    height: 395px;
    background: linear-gradient(145deg,#fff,#edf3f9);
    border: 8px solid white;
    border-radius: 20px;
    box-shadow: 0 30px 70px #45698d20;
    transform: rotate(-9deg);
    padding: 20px
}

.poke .serial {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 2px;
    color: #8495a5
}

.poke img {
    width: 365px;
    max-width: none;
    position: absolute;
    left: -36px;
    top: 70px;
    filter: drop-shadow(0 18px 10px #41688b20)
}

.poke .caption {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px
}

.caption small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #8495a5
}

.caption h3 {
    font-size: 26px;
    margin: 8px 0
}

.tag {
    font-size: 10px;
    border: 1px solid #d5e1eb;
    border-radius: 5px;
    padding: 5px 9px;
    color: #6083a7
}

.floating {
    position: absolute;
    right: -8px;
    bottom: 54px;
    background: white;
    padding: 17px 23px;
    border-radius: 12px;
    box-shadow: 0 15px 40px #40608010;
    transform: rotate(6deg);
    font-size: 12px
}

.floating b {
    display: block;
    font-size: 19px;
    margin: 6px 0
}

.star {
    position: absolute;
    left: 20px;
    top: 80px;
    color: var(--blue);
    font-size: 55px
}

.art-label {
    position: absolute;
    right: 10px;
    top: 20px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #7791aa
}

.strip {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dfe6ed;
    border-bottom: 1px solid #dfe6ed;
    padding: 24px 0;
    color: #80909e;
    font-size: 11px;
    letter-spacing: 1px
}

.strip b {
    color: #40566b;
    margin-right: 10px
}

section {
    padding: 90px 0
}

.sectionhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px
}

h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin: 15px 0 0;
    line-height: 1.2
}

.sectionhead p {
    font-size: 12px;
    margin: 0;
    max-width: 250px
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px
}

.feature {
    border-top: 1px solid #d8e2eb;
    padding: 22px 0
}

.number {
    font-size: 10px;
    letter-spacing: 2px;
    color: #7c91a5
}

.visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    background: #eaf1f7;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.visual:before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: 0;
}

.visual .visual-background {position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;}
.visual .visual-background img {display:block;width:100%;height:100%;margin:0;object-fit:cover;object-position:center;filter:blur(2px);}
.visual > :not(.visual-background) {position:relative;z-index:1;}

.visual img {
    height: 150px
}

.vs {
    font-size: 58px;
    font-weight: 800;
    color: var(--blue);
    border: 1px solid #b7cce0;
    border-radius: 50%;
    padding: 20px;
    transform: rotate(-10deg);
    background: #ffffff7a;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: rotate(-5deg);
    font-size: 12px
}

.chat span {
    padding: 12px 20px;
    background: white;
    border-radius: 8px
}

.chat span+span {
    background: var(--blue);
    margin-left: 45px;
    color: #213f5e
}

h3 {
    font-size: 21px;
    letter-spacing: -.5px
}

.feature p {
    font-size: 13px;
    min-height: 95px
}

.tags {
    display: flex;
    gap: 6px
}

.start {
    background: #eaf1f7;
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px
}

.start h2 {
    font-size: 40px
}

.start .btn {
    margin-top: 15px
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 26px
}

.step strong {
    color: var(--blue);
    font-size: 12px;
    border: 1px solid #c8d8e7;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center
}

.step h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.step p {
    font-size: 12px;
    margin: 0
}

.rankbox {
    background: white;
    border: 1px solid #e0e7ed;
    border-radius: 16px;
    padding: 25px
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e9eef3;
    padding-bottom: 22px
}

.tabs button {
    border: 0;
    background: transparent;
    color: #788896;
    padding: 11px 22px;
    border-radius: 8px
}

.tabs button.active {
    background: #eaf1f7;
    color: #365a7d
}

.ranking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px
}

.row {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #edf1f4;
    padding: 18px 8px;
    font-size: 12px
}

.row em {
    font-style: normal;
    color: #7898b7;
    width: 20px
}

.avatar {
    background: #edf3f8;
    border-radius: 50%;
    padding: 9px;
    color: #557c9e;
    font-weight: 800
}

.row b {
    margin-left: auto
}

.note {
    font-size: 10px;
    color: #8c99a5;
    margin: 16px 0 0
}

.final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 65px 0;
    border-top: 1px solid #dbe4ec
}

.final h2 {
    font-size: 40px
}

footer {
    padding: 35px 0;
    border-top: 1px solid #dbe4ec;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #82909c
}

footer .links {
    display: flex;
    gap: 20px
}

a:focus-visible,button:focus-visible {
    outline: 3px solid #436d97;
    outline-offset: 5px
}

@media(max-width: 800px) {
    nav {
        display:none
    }

    .wrap {
        padding: 0 6%
    }

    header {
        padding: 0 6%
    }

    .actions>a:first-child {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 50px;
        gap: 0
    }

    .hero h1 {
        letter-spacing: -2px
    }

    .art {
        height: 490px
    }

    .orbit {
        width: 340px;
        height: 340px
    }

    .floating {
        right: 0
    }

    .strip {
        gap: 20px;
        flex-wrap: wrap
    }

    .features {
        grid-template-columns: 1fr
    }

    .feature p {
        min-height: 0
    }

    .start {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 35px
    }

    .sectionhead {
        display: block
    }

    .sectionhead p {
        margin-top: 20px
    }

    .ranking {
        grid-template-columns: 1fr
    }

    .final {
        display: block
    }

    .final .btn {
        margin-top: 25px
    }

    footer {
        gap: 25px;
        flex-wrap: wrap
    }

    section {
        padding: 60px 0
    }

    .brand {
        font-size: 18px
    }

    .hero .buttons {
        gap: 8px
    }

    .btn {
        padding: 15px 17px;
        gap: 15px
    }

    .art-label {
        top: 30px
    }

    h2 {
        font-size: 30px
    }
}

.poke img {
    top: -45px
}

.visual img {
    height: 240px;
    margin-top: -90px
}

.login-trigger {
    border: 1px solid #d4dfe9;
    background: white;
    color: var(--ink);
    border-radius: 9px;
    padding: 13px 20px;
    font-weight: 700
}

.rankbox {
    padding: 30px
}

.tabs {
    border: 0;
    padding: 5px;
    background: #f0f4f8;
    width: fit-content;
    border-radius: 12px;
    margin-bottom: 26px
}

.tabs button.active {
    background: white;
    box-shadow: 0 3px 9px #294e7310
}

.rank-heading {
    display: flex;
    justify-content: space-between;
    padding: 0 22px 14px;
    color: #7a8d9f;
    font-size: 9px;
    letter-spacing: 1.8px
}

.ranking {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.row {
    border: 1px solid #eaf0f5;
    border-radius: 12px;
    padding: 14px 20px;
    transition: background .2s;
    font-size: 14px
}

.row:hover {
    background: #f5f8fc
}

.row em {
    width: 30px;
    font-size: 13px
}

.row .avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    background-size: cover;
}

.row b {
    font-size: 17px;
    font-variant-numeric: tabular-nums
}

.leader {
    background: #f6f9fc;
    border-color: #dbe7f2
}

.leader em {
    font-size: 22px;
    font-weight: 800;
    color: #5b83ad
}

.leader-0 {
    background: #eaf2fa;
    border-color: #c7dbee
}


.leader-0 b {
    color: #3c6e9e
}

.note {
    margin-top: 22px
}

dialog {
    width: min(440px,calc(100% - 32px));
    padding: 38px;
    border: 1px solid #dce6ef;
    border-radius: 22px;
    color: var(--ink);
    box-shadow: 0 30px 100px #1d365940;
    background: #fbfcfe
}

dialog::backdrop {
    background: #253c5366;
    backdrop-filter: blur(7px)
}

dialog h2 {
    font-size: 30px;
    margin-top: 18px
}

dialog p {
    font-size: 13px;
    margin: 12px 0 24px
}

.close-login {
    position: absolute;
    right: 17px;
    top: 14px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #7b8f9f
}

.field {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 18px 0 8px
}

.input-wrap {
    position: relative
}

dialog input {
    font: inherit;
    width: 100%;
    padding: 14px;
    border: 1px solid #d7e2ec;
    border-radius: 9px;
    background: white;
    color: var(--ink)
}

dialog input:focus {
    outline: 2px solid #6c99ca;
    outline-offset: 2px
}

#password {
    padding-right: 85px
}

.reveal {
    position: absolute;
    right: 8px;
    top: 10px;
    padding: 6px;
    border: 0;
    background: none;
    font-size: 10px;
    color: #416b95
}

.login-submit {
    width: 100%;
    margin-top: 24px
}

.login-links {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 18px;
    color: #426c94
}

.demo-note {
    background: #edf3f9;
    padding: 12px;
    border-radius: 9px;
    font-size: 11px!important;
    line-height: 1.6;
    margin-bottom: 0!important
}

#login-status {
    font-size: 12px;
    color: #416b95;
    margin-top: 16px
}

body:has(dialog[open]) {
    overflow: hidden
}

@media(max-width: 600px) {
    .actions {
        gap:8px
    }

    .actions .btn {
        font-size: 10px;
        padding: 13px 10px
    }

    .login-trigger {
        font-size: 12px;
        padding: 12px
    }

    .brand {
        font-size: 16px
    }

    .brand b {
        margin-right: 3px
    }

    .rankbox {
        padding: 16px
    }

    .row {
        gap: 10px;
        padding: 12px
    }

    .row>span:not(.avatar) {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .rank-heading {
        padding-left: 12px;
        padding-right: 12px
    }

    dialog {
        padding: 28px
    }
}

.auth-tabs {
    display: flex;
    padding: 4px;
    background: #eaf1f7;
    border-radius: 10px;
    margin: 0 0 28px;
    gap: 4px
}

.auth-tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #637d96
}

.auth-tabs button[aria-selected="true"] {
    background: white;
    color: #294c6e;
    font-weight: 800;
    box-shadow: 0 3px 10px #294e7310
}

dialog.register-mode {
    width: min(600px,calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto
}

dialog form[hidden] {
    display: none
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px
}

.gender {
    border: 0;
    padding: 0;
    margin: 22px 0;
    display: flex;
    gap: 12px
}

.gender legend {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px
}

.gender label {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d7e2ec;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer
}

.gender label:has(:checked) {
    background: #e8f1fa;
    border-color: #6c99ca
}

.gender input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #6c99ca
}

.referral {
    background: #f0f5fa;
    border-radius: 12px;
    padding: 16px
}

.referral .field {
    margin-top: 0
}

.referral .field span {
    font-size: 10px;
    font-weight: 400;
    color: #7c8fa0;
    margin-left: 8px
}

.referral p {
    font-size: 11px;
    margin: 8px 0 12px
}

.agreement {
    font-size: 11px!important;
    line-height: 1.65;
    margin: 18px 0 0!important
}

#register-status {
    font-size: 12px;
    color: #416b95;
    margin-top: 14px
}

@media(max-width: 540px) {
    .register-grid {
        grid-template-columns:1fr
    }

    dialog.register-mode {
        padding: 25px
    }

    .auth-tabs {
        margin-top: 15px
    }
}

/* Account and functional authentication states */
.account-chip{display:flex;align-items:center;gap:10px;min-width:0}
.account-chip img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #dce8f3}
.account-chip span{display:grid;gap:3px;min-width:0}
.account-chip small{font-size:10px;color:var(--muted)}
.account-chip strong{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.account-logout{font-size:12px;color:#587591}
.auth-tabs button{padding:11px 7px;font-size:11px}
dialog{max-height:calc(100dvh - 32px);overflow:auto}
[role="status"]{font-size:12px;color:#a43f46;margin-top:14px;line-height:1.6;overflow-wrap:anywhere}
[role="status"]:empty{display:none}
[role="status"].is-success{color:#326b55}
.btn:disabled{opacity:.65;cursor:wait;transform:none}
.theme-picker{display:inline-flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #d4dfe9;border-radius:9px;background:#fff;color:var(--ink);flex-shrink:0}
.theme-picker>span{font-size:19px;color:var(--blue)}
.theme-picker select{font:inherit;font-size:12px;color:inherit;background:transparent;border:0;max-width:125px;cursor:pointer;padding:4px 0}
.theme-picker:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.theme-picker select:focus{outline:none}
.theme-picker {
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d4dfe9;
}

.theme-picker select {
    padding: 7px 24px 7px 4px;
    font: inherit;
    font-size: 12px;
    color: #263647;
    cursor: pointer;
}

.theme-picker select option {
    background: #fff;
    color: #263647;
    font-size: 13px;
}

.theme-picker:hover {
    border-color: #6c99ca;
    box-shadow: 0 0 0 3px #6c99ca18;
}

html[data-theme="light"]{color-scheme:light}
/* Keep the landing palette in sync with the final World2 dark-theme tokens. */
html[data-theme="dark"]{
    color-scheme:dark;
    --paper:#141414;--surface:#222222;--soft:#292929;--hover:#333333;--line:#363738;
    --ink:#e1e3e6;--muted:#939393;--blue:#71aaeb;--pill:#71aaeb1a;--primary:#456e9e;
    --danger:#ff6b6b;--success:#63c58b;
    background:var(--paper);color:var(--ink)
}
html[data-theme="dark"] :is(header,.strip,.feature,.final,footer){border-color:var(--line)}
html[data-theme="dark"] :is(.eyebrow,.number,.art-label,.serial,.caption small,.rank-heading,.strip,.micro,.note,footer,.referral .field span){color:var(--muted)}
html[data-theme="dark"] :is(.strip b,.step h3){color:var(--ink)}
html[data-theme="dark"] :is(.login-trigger,.theme-picker,dialog,.rankbox,.floating,.chat span){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .theme-picker select,html[data-theme="dark"] .theme-picker select option{background:var(--surface);color:var(--ink)}
html[data-theme="dark"] dialog input{background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .btn:not(.outline){background:var(--primary);color:#fff}
html[data-theme="dark"] .btn:not(.outline):hover{background:var(--blue);color:var(--paper)}
html[data-theme="dark"] :is(.login-trigger,.theme-picker,.outline):hover{background:var(--hover);border-color:var(--blue)}
html[data-theme="dark"] :is(nav a:hover,.tag,.outline,.login-links,.reveal,.account-logout,.close-login,.demo-note,.avatar){color:var(--blue)}
html[data-theme="dark"] :is(.start,.visual,.tabs,.auth-tabs,.referral,.demo-note){background:var(--soft)}
html[data-theme="dark"] :is(.tabs button,.auth-tabs button){color:var(--muted)}
html[data-theme="dark"] :is(.tabs button.active,.auth-tabs button[aria-selected="true"]){background:var(--surface);color:var(--blue);box-shadow:0 3px 9px #0003}
html[data-theme="dark"] .poke{background:linear-gradient(145deg,var(--soft),var(--surface));border-color:var(--line);box-shadow:0 30px 70px #0005}
html[data-theme="dark"] .caption h3 span{color:var(--blue)!important}
html[data-theme="dark"] .art{background:radial-gradient(ellipse,#33333380,transparent 68%)}
html[data-theme="dark"] :is(.orbit,.orbit:after,.step strong,.outline,.tag,.gender label,.account-chip img){border-color:var(--line)}
html[data-theme="dark"] .outline{background:transparent}
html[data-theme="dark"] .row{border-color:var(--line)}
html[data-theme="dark"] .leader{background:var(--soft)}
html[data-theme="dark"] .row:hover{background:var(--hover)}
html[data-theme="dark"] :is(.leader-0,.gender label:has(:checked)){background:var(--pill);border-color:var(--blue)}
html[data-theme="dark"] :is(.leader-0 b,.leader em,.row em){color:var(--blue)}
html[data-theme="dark"] .avatar{background-color:var(--hover)}
html[data-theme="dark"] .chat span+span{background:var(--primary);color:#fff}
html[data-theme="dark"] .vs{background:#222222c9;border-color:var(--line)}
html[data-theme="dark"] dialog::backdrop{background:#000000b3}
html[data-theme="dark"] input::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] :is(a,button):focus-visible,html[data-theme="dark"] dialog input:focus{outline-color:var(--blue)}
html[data-theme="dark"] .gender input{accent-color:var(--blue)}
html[data-theme="dark"] :is(#login-status,#register-status,[role="status"]){color:var(--danger)}
html[data-theme="dark"] :is(#login-status,#register-status,[role="status"]).is-success{color:var(--success)}
@media(max-width:1200px){header{height:auto;min-height:90px;flex-wrap:wrap;gap:16px;padding-top:15px;padding-bottom:15px}.actions{flex-wrap:wrap;gap:12px}nav{gap:18px}}
.row img.avatar{object-fit:cover}
@media(max-width:600px){header{height:auto;min-height:90px;flex-wrap:wrap;gap:12px;padding-top:15px;padding-bottom:15px}.actions{flex-wrap:wrap}.actions>.account-chip:first-child{display:flex}.account-chip strong{max-width:110px}.account-chip small{display:none}}
/* Compact native dialog, centered within the visible viewport. */
#login-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(440px,calc(100% - 24px));max-width:calc(100% - 24px);height:fit-content;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:32px;border:1px solid #dce6ef;border-radius:22px;transform:none;overflow:auto;overscroll-behavior:contain}
#login-dialog.register-mode{width:min(600px,calc(100% - 24px))}
#login-dialog>:not(.close-login){box-sizing:border-box;min-width:0;max-width:100%}
#login-dialog .close-login{position:absolute;right:12px;top:10px;z-index:2;width:30px;height:30px}
#login-dialog h2{font-size:clamp(24px,5vw,30px);line-height:1.2;overflow-wrap:anywhere}
#login-dialog :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
#login-dialog .auth-tabs{margin-top:16px}
#login-dialog .register-grid>*{min-width:0}
.recovery-card{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:20px 0 16px;background:linear-gradient(135deg,#e8f2fb,#f3f7fb);border:1px solid #cddfed;border-radius:14px}
.recovery-card strong,.recovery-card small{display:block}.recovery-card strong{font-size:15px;color:#213c55}.recovery-card small{margin-top:4px;font-size:11px;color:#62809a;letter-spacing:.025em}
.recovery-icon{flex:0 0 42px;height:42px;display:grid;place-items:center;font-size:23px;line-height:1;background:#dbeaf8;color:#4b83b2;border-radius:12px;border:1px solid #c7daee}
.recovery-key{font-size:28px;font-weight:700}.recovery-hint{font-size:12px!important;line-height:1.55;margin:12px 0 18px!important;color:#6b8093!important}
#login-dialog.reset-mode .auth-tabs{display:none}#login-dialog.reset-mode .eyebrow{margin-top:16px}
html[data-theme="dark"] #login-dialog{border-color:var(--line);box-shadow:0 30px 100px #0006}
html[data-theme="dark"] .recovery-card{background:var(--soft);border-color:var(--line)}html[data-theme="dark"] .recovery-card strong{color:var(--ink)}html[data-theme="dark"] .recovery-card small,html[data-theme="dark"] .recovery-hint{color:var(--muted)!important}html[data-theme="dark"] .recovery-icon{background:var(--pill);border-color:var(--line);color:var(--blue)}
@media(max-width:760px){#login-dialog :is(input,select,textarea){font-size:16px}}
@media(max-width:600px){#login-dialog{padding:24px 18px}#login-dialog .register-grid{grid-template-columns:1fr}}
@media(max-width:420px){#login-dialog .auth-tabs{gap:2px}#login-dialog .auth-tabs button{font-size:11px;padding:10px 5px}#login-dialog .login-links{flex-wrap:wrap;gap:10px}}
/* Rotated artwork must not enlarge the mobile layout viewport or its dialogs. */
@media(max-width:800px){
    .hero{grid-template-columns:minmax(0,1fr)}
    .hero>*{min-width:0}
    .hero .buttons{flex-wrap:wrap}
    header>.actions{min-width:0;max-width:100%}
}
