:root {
    --background: #f5f5f7;
    --surface: #ffffff;
    --primary: #007aff;
    --primary-hover: #0062cc;
    --success: #34c759;
    --success-soft: rgba(52, 199, 89, 0.1);
    --warning: #ff9500;
    --warning-soft: #fff4e3;
    --danger: #ff3b30;
    --danger-soft: #fff0ef;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --border: #e5e5ea;
    --border-strong: #d1d1d6;
    --shadow-card: 0 4px 24px -6px rgba(0, 0, 0, 0.06), 0 2px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-button: 0 8px 16px -4px rgba(0, 122, 255, 0.25);
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100svh;
    padding-bottom: 92px;
    background: var(--background);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button[disabled] {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

.account-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.account-header-inner {
    display: flex;
    width: min(100%, var(--container));
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
    padding: 0 18px;
}

.account-logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.account-logo span span {
    color: var(--primary);
}

.account-logo-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-button);
}

.account-topbar {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.account-user {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background);
}

.account-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 750;
}

.account-user-copy {
    display: none;
    min-width: 0;
    padding-right: 10px;
}

.account-user-copy strong,
.account-user-copy span {
    display: block;
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-copy strong {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 750;
}

.account-user-copy span {
    margin-top: 1px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-logout:hover {
    border-color: var(--border-strong);
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.account-shell {
    display: block;
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 24px 16px 0;
}

.account-sidebar {
    display: none;
}

.account-main {
    min-width: 0;
}

.account-view {
    display: none;
}

.account-view.is-active {
    display: block;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1,
.placeholder-card h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 32px;
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.page-heading p {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 550;
}

.info-card,
.progress-card,
.placeholder-card {
    border: 1px solid rgba(229, 229, 234, 0.6);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.progress-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 14px;
    border-color: rgba(0, 122, 255, 0.14);
    box-shadow: none;
}

.progress-line {
    display: none;
}

.progress-steps {
    display: grid;
    gap: 10px;
}

.progress-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: var(--background);
}

.progress-dot {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--background);
    color: var(--text-secondary);
}

.progress-dot span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: inherit;
    background: currentColor;
}

.progress-step strong {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.progress-step-label {
    display: block;
    margin-bottom: 3px;
    color: var(--primary);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 850;
}

.progress-step small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.progress-step.is-done .progress-dot {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.progress-step.is-done strong {
    color: var(--text-main);
}

.progress-step.is-current {
    background: rgba(0, 122, 255, 0.07);
}

.progress-step.is-current .progress-dot {
    border-color: var(--primary);
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.1);
}

.progress-step.is-current strong {
    color: var(--primary);
    font-weight: 800;
}

.progress-step.is-error .progress-dot {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.account-grid,
.account-side-stack,
.account-content-stack {
    display: grid;
    gap: 16px;
}

.account-content-stack {
    order: 1;
}

.account-side-stack {
    order: 2;
}

.info-card {
    padding: 22px;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.card-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.card-icon.primary {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
}

.card-icon.warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.card-icon.success {
    background: var(--success-soft);
    color: var(--success);
}

.card-icon.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.overline {
    display: block;
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.card-heading h2,
.section-topline h2,
.mask-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.document-specs {
    display: grid;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--background);
}

.document-specs div {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 16px;
}

.document-specs div + div {
    border-top: 1px solid rgba(229, 229, 234, 0.8);
}

.document-specs dt,
.document-specs dd {
    margin: 0;
    font-size: 15px;
}

.document-specs dt {
    color: var(--text-secondary);
    font-weight: 550;
}

.document-specs dd {
    color: var(--text-main);
    font-weight: 650;
}

.card-actions {
    display: grid;
    gap: 8px;
}

.ghost-button,
.secondary-button,
.primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ghost-button {
    width: 100%;
    background: transparent;
    color: var(--primary);
}

.ghost-button:hover {
    background: rgba(0, 122, 255, 0.06);
}

.primary-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-button);
}

.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.primary-button[disabled] {
    border-color: #b8c0cc;
    background: #b8c0cc;
    color: #fff;
    box-shadow: none;
    transform: none;
}

.secondary-button {
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-main);
}

.secondary-button:hover {
    border-color: var(--border-strong);
    background: var(--border);
}

.section-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.section-topline h2 {
    min-width: min(100%, 260px);
}

.step-heading {
    display: grid;
    gap: 4px;
}

.step-heading span {
    color: var(--primary);
    font-size: 12px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: 0;
}

.step-heading strong {
    color: var(--text-main);
    font-size: 24px;
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.step-card {
    border-color: rgba(0, 122, 255, 0.18);
    box-shadow: 0 14px 36px -16px rgba(0, 122, 255, 0.22), var(--shadow-card);
}

.section-topline > span {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 999px;
    background: var(--background);
    color: var(--text-secondary);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 650;
}

.results-grid {
    display: grid;
    gap: 14px;
}

.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--background);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.result-card:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.28);
    outline-offset: 3px;
}

.result-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.result-card.is-selected {
    border: 2px solid var(--primary);
    background: #f0f7ff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.result-card.is-disabled {
    cursor: default;
    opacity: 0.72;
}

.result-card.is-disabled:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.result-status,
.result-selected-mark {
    position: absolute;
    z-index: 2;
}

.result-status {
    top: 18px;
    left: 18px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--success);
    color: #fff;
    font-size: 10px;
    line-height: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-status.is-loading {
    background: var(--warning);
}

.result-status.is-error {
    background: var(--danger);
}

.result-selected-mark {
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
}

.result-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #fff;
    isolation: isolate;
    user-select: none;
    -webkit-touch-callout: none;
}

.result-preview::after {
    position: absolute;
    inset: -34%;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='92'%20viewBox='0%200%20180%2092'%3E%3Ctext%20x='8'%20y='52'%20fill='%23000000'%20fill-opacity='0.05'%20font-family='Arial,%20Helvetica,%20sans-serif'%20font-size='18'%20font-weight='700'%20letter-spacing='2'%20transform='rotate(-20%2090%2046)'%3EDOCPHOTO.IO%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 92px;
    content: "";
    transform: rotate(-14deg);
    transform-origin: center;
}

.result-preview img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.5s ease;
}

.result-placeholder {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
    font-weight: 750;
}

.result-card:hover .result-preview img {
    transform: scale(1.02);
}

.result-title {
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 650;
}

.result-card.is-selected .result-title {
    color: var(--primary);
    font-weight: 800;
}

.result-button {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 750;
}

.result-button:hover {
    background: var(--border);
}

.result-card.is-selected .result-button {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.skeleton-grid {
    display: grid;
    gap: 18px;
}

.generation-status-panel,
.partial-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 122, 255, 0.16);
    border-radius: 18px;
    background: rgba(0, 122, 255, 0.06);
}

.generation-status-panel h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 850;
}

.generation-status-panel p,
.partial-panel p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.generation-progress-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.12);
}

.generation-progress-bar span {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 0.3s ease;
}

.generation-timeout {
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.skeleton-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.skeleton-photo,
.skeleton-line,
.skeleton-button {
    position: relative;
    overflow: hidden;
    background: #ececf1;
}

.skeleton-photo::after,
.skeleton-line::after,
.skeleton-button::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: skeleton 1.35s infinite;
    content: "";
}

.skeleton-photo {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.skeleton-line {
    width: 74%;
    height: 18px;
    margin: 14px auto 12px;
    border-radius: 999px;
}

.skeleton-button {
    height: 42px;
    border-radius: 12px;
}

.error-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 59, 48, 0.22);
    border-radius: 20px;
    background: var(--danger-soft);
}

.error-panel h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 800;
}

.error-panel p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 550;
}

.error-actions {
    display: grid;
    gap: 10px;
}

.mask-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
}

.mask-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.mask-content > div:last-child {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mask-content p {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 550;
}

.mask-card .primary-button,
.mask-card .secondary-button {
    width: 100%;
}

.status-pill {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: var(--success-soft);
    color: #1f8f3c;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 750;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding-top: 0;
}

.quick-actions button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 650;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quick-actions button:hover {
    border-color: var(--border-strong);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.trust-note {
    display: flex;
    max-width: 820px;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 14px auto 0;
    color: var(--text-secondary);
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.document-card {
    padding: 16px;
    box-shadow: none;
}

.document-card .card-heading {
    gap: 10px;
    margin-bottom: 12px;
}

.document-card .card-icon {
    width: 36px;
    height: 36px;
}

.document-card .card-icon svg {
    width: 19px;
    height: 19px;
}

.document-card .card-heading h2 {
    font-size: 18px;
}

.document-card .overline {
    font-size: 11px;
}

.document-card .document-specs {
    margin-bottom: 10px;
    border-radius: 12px;
}

.document-card .document-specs div {
    min-height: 38px;
    padding: 0 12px;
}

.document-card .document-specs dt,
.document-card .document-specs dd {
    font-size: 13px;
}

.document-card .card-actions {
    gap: 4px;
}

.document-card .ghost-button {
    min-height: 34px;
    justify-content: flex-start;
    padding: 0 4px;
    font-size: 13px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    display: inline-flex;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-button);
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}

.profile-hero .placeholder-badge {
    margin-bottom: 10px;
}

.profile-logout {
    min-height: 44px;
    padding: 0 18px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions .primary-button,
.profile-actions .profile-logout {
    min-width: 190px;
    padding: 0 18px;
}

.support-telegram-card {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin-top: 24px;
    border-radius: 18px;
    background: var(--background);
    padding: 18px;
}

.support-telegram-card strong,
.support-channel {
    display: block;
}

.support-channel {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.support-telegram-card strong {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}

.telegram-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 750;
    box-shadow: var(--shadow-button);
}

.telegram-button:hover {
    background: var(--primary-hover);
}

.trust-note svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

.placeholder-card {
    padding: 26px;
}

.placeholder-card p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 550;
}

.placeholder-card .primary-button {
    width: 100%;
    max-width: 300px;
    margin-top: 24px;
}

.placeholder-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 800;
}

.profile-list,
.support-list {
    display: grid;
    gap: 12px;
    max-width: 460px;
    margin-top: 24px;
}

.profile-list div,
.support-list span {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 16px;
    background: var(--background);
    padding: 0 16px;
}

.profile-list span,
.support-list span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.profile-list strong {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

.mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border: 1px solid rgba(229, 229, 234, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: inline-flex;
    min-width: 74px;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
}

.mobile-nav-item.is-active {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 98px;
    z-index: 70;
    max-width: min(360px, calc(100vw - 36px));
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-main);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
}

@keyframes skeleton {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 420px) {
    .profile-hero {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}

@media (min-width: 520px) {
    .account-user-copy {
        display: block;
    }

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

@media (min-width: 720px) {
    body {
        padding-bottom: 0;
    }

    .account-header-inner {
        padding: 0 24px;
    }

    .account-shell {
        padding: 32px 24px 48px;
    }

    .page-heading {
        margin-bottom: 30px;
    }

    .page-heading h1,
    .placeholder-card h1 {
        font-size: 40px;
    }

    .info-card {
        padding: 28px;
    }

    .document-card {
        padding: 16px;
    }

    .progress-card {
        margin-bottom: 28px;
        padding: 24px 28px;
    }

    .progress-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .progress-step {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 10px 12px;
        text-align: center;
    }

    .progress-step strong {
        font-size: 13px;
    }

    .progress-step small {
        display: none;
    }

    .progress-line {
        display: none;
    }

    .progress-dot {
        position: relative;
        z-index: 1;
        box-shadow: 0 0 0 6px var(--surface);
    }

    .results-grid,
    .skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step-heading strong {
        font-size: 28px;
    }

    .mask-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 34px;
        padding: 32px;
    }

    .mask-content {
        gap: 20px;
    }

    .mask-card .primary-button,
    .mask-card .secondary-button {
        width: auto;
        min-width: 188px;
        flex: 0 0 auto;
        padding: 0 22px;
    }

    .placeholder-card {
        padding: 34px;
    }

    .support-telegram-card {
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .account-shell {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 30px;
        padding: 40px 40px 56px;
    }

    .account-sidebar {
        position: sticky;
        top: 88px;
        display: flex;
        height: calc(100svh - 120px);
        min-height: 520px;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgba(229, 229, 234, 0.6);
        border-radius: 24px;
        background: var(--surface);
        padding: 14px;
        box-shadow: var(--shadow-card);
    }

    .account-nav {
        display: grid;
        gap: 6px;
    }

    .account-nav-item {
        display: flex;
        min-height: 48px;
        align-items: center;
        gap: 11px;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: var(--text-secondary);
        padding: 0 14px;
        font-size: 15px;
        font-weight: 700;
        text-align: left;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .account-nav-item:hover {
        background: var(--background);
        color: var(--text-main);
    }

    .account-nav-item.is-active {
        background: rgba(0, 122, 255, 0.1);
        color: var(--primary);
    }

    .mobile-nav {
        display: none;
    }

    .account-side-stack,
    .account-content-stack {
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .account-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: start;
        gap: 22px;
    }

    .account-content-stack {
        grid-column: 1;
        grid-row: 1;
    }

    .account-side-stack {
        grid-column: 2;
        grid-row: 1;
    }
}
