:root {
    --coal: #172033;
    --coal-soft: #25324a;
    --graphite: #475467;
    --ash: #667085;
    --paper: #f6f8fb;
    --paper-deep: #eef2f7;
    --chalk: #ffffff;
    --copper: #4a76b8;
    --copper-hot: #315b96;
    --copper-pale: #eef4fc;
    --signal: #2f8f64;
    --danger: #c43d4b;
    --line: #dfe5ee;
    --line-dark: #cdd8e7;
    --shadow: 0 18px 48px rgba(49, 72, 105, .10);
    --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--coal);
    background: var(--paper);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

body::before,
.hero::before,
.flow-section::after,
.app-card::before {
    display: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(74, 118, 184, .35);
    outline-offset: 3px;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    color: var(--coal);
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 48px));
    min-height: 72px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--coal);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand small {
    color: var(--ash);
    font: 400 10px/1.5 var(--body);
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    color: #475467;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .18s ease;
}

.nav-links a:hover {
    color: var(--copper);
}

.market-nav {
    display: none;
}

.button {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: var(--copper);
    border: 1px solid var(--copper);
    border-radius: 10px;
    box-shadow: none;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.button:hover {
    color: #fff;
    background: var(--copper-hot);
    border-color: var(--copper-hot);
    box-shadow: 0 8px 18px rgba(49, 91, 150, .16);
}

.button.secondary,
header .button.secondary {
    color: #344054;
    background: #fff;
    border-color: #cfd7e3;
    box-shadow: none;
}

.button.secondary:hover,
header .button.secondary:hover {
    color: var(--copper-hot);
    background: var(--copper-pale);
    border-color: #b8cae2;
}

.button.small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.button.danger {
    color: var(--danger);
    background: #fff;
    border-color: #ebbdc3;
}

.button.danger:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.eyebrow,
.section-kicker {
    color: var(--copper);
    font: 600 13px/1.5 var(--body);
    letter-spacing: .02em;
    text-transform: none;
}

.hero {
    min-height: 0;
    padding: 70px 0 54px;
    display: block;
    border: 0;
}

.hero-copy-block {
    width: min(840px, 100%);
    padding: 0;
}

.hero-kicker {
    gap: 0;
}

.hero-kicker::before {
    display: none;
}

h1 {
    max-width: 720px;
    margin: 16px 0 18px;
    color: var(--coal);
    font-family: var(--display);
    font-size: clamp(43px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-transform: none;
}

h1 .hero-title-line,
h1 .accent {
    display: block;
}

h1 .accent {
    color: var(--copper);
    transform: none;
}

.hero-copy {
    max-width: 640px;
    margin: 0;
    padding: 0;
    color: #596579;
    font-size: 16px;
    line-height: 1.7;
}

.hero-market-tools {
    max-width: 760px;
    margin: 28px 0 0;
}

.market-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d5deea;
    border-radius: 14px;
    box-shadow: none;
}

.market-search {
    position: relative;
}

.market-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 19px;
    height: 19px;
    color: #7c8799;
    transform: translateY(-50%);
}

.market-search input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 44px;
    color: var(--coal);
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: 0;
}

.market-search input::placeholder {
    color: #8a95a6;
}

.market-search input:focus {
    background: #fff;
    border-color: var(--copper);
    outline: 3px solid rgba(74, 118, 184, .12);
}

.platform-filters {
    display: flex;
    gap: 6px;
}

.filter-button {
    min-height: 40px;
    padding: 8px 14px;
    color: #596579;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.filter-button:hover {
    color: var(--copper-hot);
    background: var(--copper-pale);
    border-color: #d4e0ef;
}

.filter-button.active {
    color: #fff;
    background: var(--copper);
    border-color: var(--copper);
}

main {
    padding: 0 0 90px;
}

.section {
    margin-top: 18px;
    scroll-margin-top: 92px;
}

.section-head {
    margin-bottom: 24px;
    padding: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    border: 0;
}

.section-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.section h2,
.flow-section h2 {
    margin: 0;
    color: var(--coal);
    font: 700 clamp(30px, 3.5vw, 42px)/1.2 var(--display);
    letter-spacing: -.035em;
    text-transform: none;
}

.section-note {
    color: #667085;
    font: 400 13px/1.5 var(--body);
}

.market-result {
    margin: 0 0 14px;
    color: #7a8699;
    font: 400 12px/1.5 var(--body);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-grid.count-1 {
    grid-template-columns: minmax(0, 760px);
}

.card {
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.app-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    grid-column: auto;
    overflow: hidden;
    transform: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.app-card:nth-child(3n + 2),
.app-card:nth-child(even) {
    transform: none;
}

.app-card:hover {
    background: #fff;
    border-color: #b9cce4;
    box-shadow: 0 10px 24px rgba(49, 72, 105, .08);
    transform: none;
}

.app-grid.count-1 .app-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(300px, 1.1fr);
}

.app-art {
    position: relative;
    min-height: 112px;
    aspect-ratio: auto;
    padding: 16px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #294b79;
    background: #f7f9fc;
    border-bottom: 1px solid #e5eaf1;
}

.app-grid.count-1 .app-art {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
}

.app-art[data-platform="MT4"] {
    background: #f7f9fc;
}

.app-art::before,
.app-art::after {
    display: none;
}

.app-art-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-art-top span,
.app-art-top small {
    font: 600 11px/1.2 var(--body);
    letter-spacing: 0;
}

.app-art-top span {
    color: #63728a;
}

.app-art-top small {
    padding: 5px 8px;
    color: var(--copper-hot);
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(74, 118, 184, .18);
    border-radius: 999px;
}

.app-art-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #294b79;
    font: inherit;
    letter-spacing: 0;
}

.app-art-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--copper);
    border-radius: 10px;
    box-shadow: none;
}

.app-art-icon svg {
    width: 20px;
    height: 20px;
}

.app-art-mark small {
    margin: 0;
    color: #5d6b7f;
    font: 500 12px/1.4 var(--body);
    letter-spacing: 0;
}

.app-card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.app-card h3 {
    margin: 0 0 8px;
    color: #1e2a40;
    font: 700 19px/1.3 var(--display);
    letter-spacing: -.02em;
    text-transform: none;
}

.app-merchant {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 12px;
}

.app-merchant svg {
    width: 15px;
    height: 15px;
    color: var(--copper);
}

.app-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 12px 0 16px;
    overflow: hidden;
    color: #5d687a;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-meta {
    display: flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

.app-meta span,
.detail-facts span {
    padding: 5px 9px;
    color: #536278;
    background: #f7f9fc;
    border: 1px solid #dfe5ee;
    border-radius: 999px;
    font: 500 11px/1.2 var(--body);
}

.app-file-name {
    margin-top: 10px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-card-footer small {
    color: #8a95a6;
    font-size: 11px;
}

.empty {
    grid-column: 1 / -1;
    padding: 52px;
    color: #667085;
    background: #fff;
    border: 1px dashed #c8d3e1;
    border-radius: 14px;
    text-align: center;
}

.flow-section {
    margin: 72px 0 56px;
    padding: 36px 0 0;
    color: var(--coal);
    background: transparent;
    border: 0;
    border-top: 1px solid #dfe5ee;
    border-radius: 0;
    overflow: visible;
    scroll-margin-top: 92px;
}

.flow-section .section-kicker {
    margin-bottom: 6px;
}

.flow-section h2 {
    max-width: 760px;
    font-size: clamp(26px, 3vw, 34px);
}

.flow-steps {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 0;
}

.flow-step {
    min-height: 0;
    padding: 16px 24px 4px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.flow-step + .flow-step {
    padding-left: 24px;
    border-left: 1px solid #e5eaf1;
}

.flow-step-index {
    width: auto;
    height: auto;
    display: block;
    color: var(--copper);
    background: transparent;
    border-radius: 0;
    font: 600 12px/1 var(--mono);
    letter-spacing: .06em;
}

.flow-step h3 {
    margin: 12px 0 6px;
    color: #25324a;
    font-size: 17px;
}

.flow-step p {
    margin: 0;
    color: #637087;
    font-size: 13px;
    line-height: 1.7;
}

.workspace {
    display: none;
    padding-top: 0;
}

.workspace.visible {
    display: block;
}

.workspace.visible::before {
    display: none;
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 760px;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
    font-size: 13px;
}

th {
    color: #667085;
    background: #f8fafc;
    font: 600 12px/1.4 var(--body);
    letter-spacing: 0;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font: 600 11px/1.3 var(--body);
    text-transform: none;
}

.badge.approved {
    color: #23734f;
    background: #eaf6f0;
}

.badge.pending {
    color: #936010;
    background: #fff5dd;
}

.badge.rejected,
.badge.revoked {
    color: #a5303d;
    background: #fdecef;
}

.badge.expired {
    color: #596579;
    background: #edf0f4;
}

dialog {
    width: min(500px, calc(100% - 28px));
    padding: 0;
    color: var(--coal);
    background: #fff;
    border: 1px solid #d7dfeb;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(31, 48, 75, .22);
}

dialog::backdrop {
    background: rgba(23, 32, 51, .54);
    backdrop-filter: blur(3px);
}

.dialog-body {
    padding: 28px;
}

.dialog-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5eaf1;
}

.dialog-head h3 {
    color: #1e2a40;
    font: 700 24px/1.2 var(--display);
    text-transform: none;
}

.close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #667085;
    background: #f6f8fb;
    border: 1px solid #e1e6ee;
    border-radius: 9px;
}

.close:hover {
    color: var(--copper-hot);
    background: var(--copper-pale);
}

.close svg {
    width: 18px;
    height: 18px;
}

.tabs {
    gap: 20px;
    margin-bottom: 20px;
    display: flex;
    border-bottom: 1px solid #e5eaf1;
}

.tab {
    padding: 9px 1px;
    color: #667085;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
}

.form {
    display: grid;
    gap: 15px;
}

.field {
    display: grid;
    gap: 7px;
}

.tab.active {
    color: var(--copper-hot);
    border-color: var(--copper);
}

.field label {
    color: #475467;
    font-size: 13px;
}

.field input,
.field select {
    padding: 11px 12px;
    color: var(--coal);
    background: #fff;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
}

.field input:focus,
.field select:focus {
    border-color: var(--copper);
    outline: 3px solid rgba(74, 118, 184, .12);
}

.field small {
    color: #667085;
    line-height: 1.55;
}

.form-message {
    min-height: 20px;
    color: var(--danger);
    font-size: 13px;
}

.auth-dialog {
    width: min(460px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
}

.auth-panel {
    position: relative;
    padding: 30px 32px 32px;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.auth-heading {
    margin: 0 48px 24px 0;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
}

.auth-heading img {
    display: block;
}

.auth-heading h3 {
    margin: 0 0 3px;
    color: #1e2a40;
    font: 700 21px/1.25 var(--display);
    letter-spacing: -.02em;
}

.auth-heading p {
    margin: 0;
    color: #758197;
    font-size: 12px;
    line-height: 1.5;
}

.auth-tabs {
    margin: 0 0 22px;
    gap: 24px;
    padding: 0;
    display: flex;
    background: transparent;
    border-bottom: 1px solid #e5eaf1;
    border-radius: 0;
}

.auth-tabs .tab {
    min-height: 36px;
    padding: 7px 1px 10px;
    color: #667085;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 600;
}

.auth-tabs .tab.active {
    color: #315b96;
    background: transparent;
    border-bottom-color: #4a76b8;
    box-shadow: none;
}

.auth-form {
    gap: 14px;
}

.auth-form .field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-weight: 600;
}

.auth-form .field label small {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 400;
}

.auth-form .field input {
    min-height: 44px;
}

.password-control {
    position: relative;
}

.password-control input {
    width: 100%;
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #315b96;
    background: #eef4fc;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.captcha-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    gap: 10px;
}

.captcha-control input {
    width: 100%;
    min-width: 0;
}

.captcha-refresh {
    height: 44px;
    padding: 3px 8px 3px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    overflow: hidden;
    color: #61718a;
    background: #f6f8fb;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
}

.captcha-refresh:hover {
    color: #315b96;
    border-color: #9ab4d8;
}

.captcha-refresh img {
    width: 120px;
    height: 36px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

.captcha-refresh svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.captcha-refresh.loading img {
    opacity: .45;
}

.field-hint {
    margin-top: -2px;
    font-size: 11px;
}

.auth-message {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.auth-message:not(:empty) {
    min-height: 38px;
    padding: 10px 12px;
    background: #fff2f3;
    border: 1px solid #f4c8cd;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
}

.auth-submit[aria-busy="true"] {
    cursor: wait;
    opacity: .7;
}

.auth-submit[aria-busy="true"] svg {
    animation: auth-progress .8s linear infinite;
}

@keyframes auth-progress {
    to {
        transform: rotate(360deg);
    }
}

dialog.detail-dialog {
    width: min(930px, calc(100% - 28px));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
    gap: 28px;
}

.detail-visual {
    min-height: 280px;
    border-radius: 14px;
}

.detail-copy {
    padding-top: 18px;
}

.detail-copy h2 {
    margin: 8px 0;
    color: #1e2a40;
    font: 700 clamp(30px, 4vw, 44px)/1.2 var(--display);
    letter-spacing: -.035em;
}

.detail-copy p {
    color: #5d687a;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.detail-sidebar {
    align-self: start;
    padding: 24px;
    color: var(--coal);
    background: var(--copper-pale);
    border: 1px solid #d6e3f4;
    border-radius: 14px;
}

.detail-sidebar .button {
    width: 100%;
}

.detail-sidebar .button + .button {
    margin-top: 10px;
}

.download-file-name {
    margin: 0 0 14px;
    padding: 12px;
    display: grid;
    gap: 5px;
    background: #fff;
    border: 1px solid #cfdded;
    border-radius: 9px;
}

.download-file-name span {
    color: #738096;
    font-size: 11px;
}

.download-file-name strong {
    overflow: hidden;
    color: #25324a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-sidebar h3 {
    color: #25324a;
}

.detail-sidebar > p {
    color: #637087;
}

.detail-contact {
    margin: 20px 0;
    padding: 16px 0;
    display: grid;
    gap: 9px;
    border-top: 1px solid #cfdded;
    border-bottom: 1px solid #cfdded;
    border-color: #cfdded;
}

.detail-contact a {
    width: fit-content;
    color: var(--copper-hot);
    font: 500 12px/1.5 var(--body);
    text-decoration: none;
    transition: color .18s ease;
}

.detail-contact a:hover {
    color: #315f9f;
}

.request-summary {
    margin-bottom: 17px;
    padding: 16px 18px;
    background: var(--copper-pale);
    border-left: 4px solid var(--copper);
    border-radius: 0 10px 10px 0;
}

.request-summary strong {
    display: block;
    margin-bottom: 4px;
}

.request-summary span {
    color: #5d687a;
    font-size: 12px;
}

.success-panel {
    display: grid;
    gap: 16px;
}

.success-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--signal);
    background: #eaf6f0;
    border: 1px solid #b8dfce;
    border-radius: 50%;
}

.success-mark svg {
    width: 24px;
    height: 24px;
}

.success-panel h3 {
    margin: 0;
    color: #1e2a40;
    font: 700 28px/1.2 var(--display);
}

.success-panel p {
    margin: 0;
    color: #5d687a;
    line-height: 1.7;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    max-width: 360px;
    padding: 14px 17px;
    color: #fff;
    background: #25324a;
    border-left-color: var(--copper);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
}

.toast.show {
    transform: none;
    opacity: 1;
}

footer {
    padding: 30px 0 40px;
    color: #7a8699;
    background: #fff;
    border-top: 1px solid var(--line);
    font: 400 11px/1.5 var(--body);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 1020px) {
    .nav-links {
        gap: 18px;
    }

    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 58px 0 68px;
    }

    .app-grid.count-1 {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .flow-step {
        min-height: 0;
        padding-right: 0;
    }

    .flow-step + .flow-step {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #dce5f1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .shell,
    .nav {
        width: min(100% - 28px, 1180px);
    }

    .nav {
        min-height: 64px;
    }

    .brand-copy {
        display: none;
    }

    .hero {
        padding: 46px 0 56px;
    }

    h1 {
        font-size: clamp(39px, 11.5vw, 54px);
    }

    .hero-copy {
        font-size: 15px;
    }

    .market-tools {
        grid-template-columns: 1fr;
    }

    .platform-filters {
        width: 100%;
    }

    .filter-button {
        flex: 1;
    }

    .section {
        margin-top: 14px;
    }

    .section-head {
        display: grid;
        align-items: start;
        gap: 8px;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-grid.count-1 .app-card {
        display: flex;
    }

    .app-art,
    .app-grid.count-1 .app-art {
        min-height: 108px;
        height: auto;
        aspect-ratio: auto;
    }

    .flow-section {
        margin: 56px 0 46px;
        padding: 30px 0 0;
    }

    .dialog-body {
        padding: 20px;
    }

    .auth-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }

    .auth-panel {
        padding: 24px 20px;
    }

    .auth-close {
        top: 14px;
        right: 16px;
    }

    .auth-heading {
        margin: 0 44px 20px 0;
    }

    .auth-tabs {
        margin-bottom: 18px;
    }

    .captcha-control {
        grid-template-columns: minmax(0, 1fr) 146px;
    }

    .captcha-refresh img {
        width: 112px;
    }

    dialog.detail-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }

    .success-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 560px) and (max-height: 680px) {
    .auth-panel {
        padding: 14px 16px 16px;
    }

    .auth-close {
        top: 15px;
        right: 15px;
        color: #667085;
        background: #f6f8fb;
        border-color: #e1e6ee;
    }

    .auth-heading {
        min-height: 36px;
        margin: 0 44px 10px 0;
        grid-template-columns: 36px 1fr;
        gap: 9px;
    }

    .auth-heading img {
        width: 36px;
        height: 36px;
    }

    .auth-heading h3 {
        font-size: 18px;
    }

    .auth-heading p {
        display: none;
    }

    .auth-tabs {
        min-height: 40px;
        margin: 0 0 10px;
    }

    .auth-tabs .tab {
        min-height: 34px;
        padding-block: 6px;
    }

    .auth-form {
        gap: 8px;
    }

    .auth-form .field {
        gap: 4px;
    }

    .auth-form .field input,
    .captcha-refresh {
        min-height: 40px;
        height: 40px;
    }

    .captcha-refresh img {
        height: 32px;
    }

    .field-hint {
        display: none;
    }

    .auth-message:not(:empty) {
        min-height: 34px;
        padding-block: 8px;
    }

    .auth-submit {
        min-height: 42px;
    }
}
