﻿:root {
    --ink: #111111;
    --body: #374151;
    --muted: #6b7280;
    --hair: #e5e7eb;
    --hair-soft: #f3f4f6;
    --canvas: #ffffff;
    --soft: #f8f9fa;
    --table-head: #eef2f7;
    --on: #ffffff;
    --brand-blue: #0f73f6;
    --brand-blue-soft: rgba(15, 115, 246, 0.08);
    --success-color: #10b981;
    --text-muted: #6b7280;
    --pill: 9999px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================
   БАЗОВЫЕ СТИЛИ СТРАНИЦЫ
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at 50% 220px, rgba(37, 99, 235, 0.10), transparent 320px), linear-gradient(180deg, #eef0f4 0%, #f7f8fb 42%, #ffffff 100%);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
.btn {
    font: inherit;
}

.page {
    min-height: 100vh;
    background: transparent;
}

/* ==========================================================
   ШАПКА
   ========================================================== */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;

    height: 72px;

    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.72);

    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.04);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-left: 36px;
    padding-right: 36px;
}


/* ==========================================================
   ОБЩИЕ СТИЛИ КНОПОК
   ========================================================== */

.btn {
    height: 46px;
    border-radius: var(--pill);
    padding: 0 26px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #2f8bff 0%, #0f73f6 100%);
    color: var(--on);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 16px 32px rgba(15, 115, 246, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn:hover {
    background: linear-gradient(180deg, #1d7df6 0%, #075ed2 100%);
}

.btn.secondary {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 28px rgba(17, 24, 39, 0.05);
}

.btn.secondary:hover {
    background: var(--soft);
}

/* ==========================================================
   ЭЛЕМЕНТЫ УПРАВЛЕНИЯ В ТАБЛИЦЕ
   ========================================================== */

.status-pill {
    height: 34px;
    padding: 0 16px;
    border-radius: var(--pill);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;

    border: 1px solid transparent;
}


.status-pill.completed {
    color: #16a34a;
    background: rgba(22,163,74,0.08);
}


.status-pill.processing {
    color: #0f73f6;
    background: rgba(15,115,246,0.08);
}


.status-pill.error {
    color: #dc2626;
    background: rgba(220,38,38,0.08);
}

/* кнопки в таблице */

.table-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.table-btn {
    height: 34px;
    padding: 0 16px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 8px 18px rgba(17,24,39,0.08);
}


.table-btn.download {
    color:#0f73f6;

    background:#ffffff;

    border-color:
        rgba(37,99,235,0.14);
}


.table-btn.download:hover {

    background:#ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 12px 28px rgba(37,99,235,0.08);
}


.actions {
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
}

/* ==========================================================
   ОСНОВНОЙ КОНТЕНТ И ПРИВЕТСТВЕННЫЙ БЛОК
   ========================================================== */

.main {
    flex: 1;
    min-width: 0;

    height: calc(100vh - 72px);

    overflow-y: auto;
}

.main > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}


.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 0 0;
    text-align: left;
}

.hero-copy {
    display: block;
}

.badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

h1 {
    margin: 0;
    max-width: 850px;
    color: #111827;
    font-family: var(--font);
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 600;
}

.about-page h1 {
    font-size: 42px;
}

.lead {
    margin: 0;
    max-width: none;
    color: #5f6673;
    font-size: 18px;
    line-height: 1.55;
}

.app-page[hidden] {
    display: none;
}

.home-page .upload-section {
    padding-top: 0;
}

.about-content {
    display: grid;
    gap: 24px;
    padding: 0 0 86px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-card,
.about-cta {
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.07);
    backdrop-filter: blur(16px);
}

.about-card {
    padding: 30px;
    border-radius: 12px;
}

.about-card h2,
.about-cta h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    font-weight: 600;
}

.about-card p,
.about-cta p {
    margin: 12px 0 0;
    color: var(--body);
    line-height: 1.65;
}

.about-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding-left: 20px;
    color: var(--body);
}

.about-list li::marker {
    color: var(--brand-blue);
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: about-step;
}

.about-steps li {
    position: relative;
    min-height: 118px;
    padding: 48px 18px 18px;
    border-radius: 9px;
    background: var(--soft);
    color: var(--body);
    line-height: 1.45;
    counter-increment: about-step;
}

.about-steps li::before {
    content: counter(about-step);
    position: absolute;
    top: 14px;
    left: 18px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
}

.about-note {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 255, 0.82));
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border-radius: 12px;
}

#aboutStartButton {
    border-radius: 9px;
}

/* ==========================================================
   ТАРИФЫ
   ========================================================== */

.pricing-page {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.pricing-heading {
    max-width: 1120px;
    margin: 0 auto 32px;
    text-align: left;
}

.pricing-heading h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    font-weight: 600;
}

.pricing-heading span {
    display: block;
    margin-top: 12px;
    color: var(--body);
    font-size: 17px;
    line-height: 1.5;
}

.pricing-trial-banner,
.pricing-packages {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-trial-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.035);
}

.pricing-trial-banner h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.pricing-trial-banner p {
    margin: 6px 0 0;
    color: var(--body);
}

.pricing-trial-banner .pricing-label {
    margin-bottom: 8px;
}

.pricing-trial-banner .pricing-button {
    width: auto;
    min-width: 210px;
    margin-top: 0;
    padding: 0 22px;
}

.pricing-packages {
    margin-top: 20px;
    padding: 28px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.035);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.pricing-card,
.pricing-rules,
.pricing-faq {
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.035);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.pricing-package-card {
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}

.pricing-package-card:hover,
.pricing-package-card:focus-visible {
    border-color: rgba(15, 115, 246, 0.58);
    background: #f8fbff;
    box-shadow: 0 14px 30px rgba(15, 115, 246, 0.12);
    transform: translateY(-3px);
    outline: none;
}

.pricing-card-action {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    color: var(--brand-blue);
    font-weight: 600;
}

.pricing-card-primary {
    border-color: rgba(15, 115, 246, 0.42);
}

.pricing-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pricing-card-heading h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.pricing-card-heading p {
    min-height: 48px;
    margin: 8px 0 0;
    color: var(--body);
    line-height: 1.5;
}

.pricing-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 28px 0 24px;
}

.pricing-amount strong {
    color: var(--ink);
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-amount span {
    color: var(--muted);
}

.pricing-features {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0;
    color: var(--body);
    list-style: none;
}

.pricing-features li {
    position: relative;
    padding-left: 24px;
    line-height: 1.45;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: 700;
}

.pricing-button {
    width: 100%;
    height: 42px;
    margin-top: auto;
    border: 1px solid rgba(15, 115, 246, 0.32);
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
}

.pricing-button-secondary {
    color: var(--brand-blue);
    background: #ffffff;
}

.pricing-button-secondary:hover {
    background: var(--brand-blue-soft);
}

.pricing-button-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(180deg, #2f8bff 0%, #0f73f6 100%);
    box-shadow: 0 8px 18px rgba(15, 115, 246, 0.2);
}

.pricing-button-primary:hover {
    background: linear-gradient(180deg, #1d7df6 0%, #075ed2 100%);
}

.pricing-rules,
.pricing-faq {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 28px;
}

.pricing-section-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.pricing-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.pricing-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.pricing-rules-grid article {
    padding: 18px;
    border-radius: 9px;
    background: var(--soft);
}

.pricing-rules-grid strong {
    font-weight: 600;
}

.pricing-rules-grid p {
    margin: 8px 0 0;
    color: var(--body);
    font-size: 14px;
    line-height: 1.55;
}

.pricing-faq-list {
    margin-top: 16px;
}

.pricing-faq details {
    border-top: 1px solid #edf0f4;
}

.pricing-faq details:first-child {
    border-top: 0;
}

.pricing-faq summary {
    padding: 17px 0;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

.pricing-faq details p {
    margin: -5px 0 18px;
    color: var(--body);
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pricing-page {
        width: calc(100% - 32px);
        padding-top: 0;
    }

    .pricing-heading h1 {
        font-size: 34px;
    }

    .about-page h1 {
        font-size: 34px;
    }

    .pricing-grid,
    .pricing-rules-grid {
        grid-template-columns: 1fr;
    }

    .pricing-trial-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .pricing-trial-banner .pricing-button {
        width: 100%;
    }

    .pricing-packages {
        padding: 22px;
    }

    .pricing-card-heading p {
        min-height: 0;
    }
}

/* ==========================================================
   ЛИЧНЫЙ КАБИНЕТ
   ========================================================== */

.account-page {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 60px;
}

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

.account-page-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.8px;
    font-weight: 600;
}

.account-page-heading span {
    display: block;
    margin-top: 8px;
    color: var(--body);
}

.page-heading {
    width: min(1120px, 100%);
    margin: 0 auto 32px;
    padding-top: 42px;
    text-align: left;
}

.home-page .page-heading,
.about-page .page-heading,
.pricing-page .page-heading {
    text-align: center;
}

.account-page > .page-heading {
    width: 100%;
}

.page-heading h1,
.about-page .page-heading h1,
.pricing-heading.page-heading h1,
.account-page-heading.page-heading h1 {
    margin: 0;
    max-width: none;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    font-weight: 600;
}

.page-heading .page-subtitle {
    display: block;
    max-width: none;
    margin: 8px 0 0;
    color: var(--body);
    font-size: 16px;
    line-height: 1.5;
}

.account-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 20px;
}

.account-bottom-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
    margin-top: 20px;
}

.account-panel {
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.035);
}

.account-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.account-operations-panel .account-panel-heading {
    border-bottom: 1px solid #edf0f4;
}

.account-panel-heading h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.account-panel-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.account-balance-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 22px 20px 0;
}

.account-balance-number strong {
    font-size: 42px;
    font-weight: 600;
}

.account-balance-number span {
    color: var(--body);
}

.account-progress {
    display: flex;
    height: 10px;
    margin: 18px 20px 0;
    overflow: hidden;
    border-radius: var(--pill);
    background: #e8edf4;
}

.account-progress-used {
    width: 25%;
    background: var(--brand-blue);
}

.account-progress-reserved {
    width: 3.75%;
    background: #f59e0b;
}

.account-progress-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 20px 20px;
}

.account-progress-legend div {
    display: grid;
    grid-template-columns: 10px 1fr;
    align-items: center;
    gap: 3px 7px;
}

.account-progress-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.account-progress-legend span {
    color: var(--muted);
    font-size: 14px;
}

.account-progress-legend strong {
    grid-column: 2;
    font-size: 14px;
}

.account-legend-blue {
    background: var(--brand-blue);
}

.account-legend-orange {
    background: #f59e0b;
}

.account-legend-gray {
    background: #d8dee7;
}

.account-balance-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 20px 20px;
    border: 1px solid #edf0f4;
}

.account-balance-sources div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
}

.account-balance-sources div + div {
    border-left: 1px solid #edf0f4;
}

.account-balance-sources span {
    color: var(--muted);
    font-size: 14px;
}

.account-balance-sources strong {
    font-size: 14px;
}

.account-active-job {
    margin: 0 20px 20px;
    padding: 13px 14px;
    border-left: 3px solid #f59e0b;
    background: #fff9ee;
}

.account-active-job div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-active-job div span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.account-active-job p {
    margin: 5px 0 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.account-active-job.empty {
    border-left: 0;
    background: transparent;
}

.account-active-job.empty p {
    margin: 0;
}

.account-tariff-name {
    display: block;
    padding: 22px 20px 12px;
    color: var(--brand-blue);
    font-size: 28px;
    font-weight: 600;
}

.account-package-list {
    display: grid;
    gap: 10px;
    padding: 22px 20px 12px;
}

.account-package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 9px;
    color: var(--body);
    background: #ffffff;
    cursor: pointer;
}

.account-package-option:hover {
    color: var(--brand-blue);
    border-color: rgba(15, 115, 246, 0.42);
    background: var(--brand-blue-soft);
}

.account-package-option-primary {
    border-color: rgba(15, 115, 246, 0.42);
}

.account-tariff-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 20px;
    border-top: 1px solid #edf0f4;
}

.account-tariff-row span {
    color: var(--muted);
}

.account-tariff-row strong {
    font-size: 13px;
    text-align: right;
}

.account-outline-button {
    height: 36px;
    padding: 0 18px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #ffffff;
    color: var(--body);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.account-outline-button {
    width: calc(100% - 40px);
    margin: 18px 20px 0;
    border-color: rgba(15, 115, 246, .3);
    color: var(--brand-blue);
}

.account-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.account-tariff-panel .account-text-button {
    display: block;
    margin: 14px auto 20px;
}

.account-operations-panel {
    margin-top: 20px;
}

.account-table-heading {
    align-items: center;
}

.account-table-shell {
    overflow-x: auto;
}

.account-table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
}

.account-operations-table {
    width: 100%;
    border-collapse: collapse;
}

.account-operations-table th,
.account-operations-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    white-space: nowrap;
}

.account-operations-table th {
    background: var(--table-head);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-operations-table-header {
    table-layout: fixed;
}

.account-operations-table td:nth-child(2) {
    display: grid;
    gap: 3px;
    white-space: normal;
}

.account-operations-table td:nth-child(2) span {
    color: var(--muted);
    font-size: 12px;
}

.account-operations-table th:nth-child(3),
.account-operations-table th:nth-child(4) {
    text-align: right;
}

.account-operations-table td:nth-child(3),
.account-operations-table td:nth-child(4) {
    font-weight: 600;
    text-align: right;
}

.account-operations-table tbody tr.account-positive-row {
    background: rgba(22, 163, 74, 0.08);
}

.account-plus-value {
    color: #16a34a;
}

.account-reserved-value {
    color: #f59e0b;
}

.account-operations-table tbody tr.account-error-row {
    background: rgba(220, 38, 38, 0.08);
}

.account-error-value {
    color: #dc2626;
}

.account-payment-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
}

.account-payment-row > div {
    display: grid;
    gap: 4px;
}

.account-payment-row > div span {
    color: var(--muted);
    font-size: 12px;
}

.account-paid-status {
    padding: 5px 9px;
    border-radius: var(--pill);
    background: #eaf8f0;
    color: #07833d;
    font-size: 12px;
    font-weight: 600;
}

.account-payment-row button {
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    font-family: inherit;
    cursor: pointer;
}

.account-rules-panel > p {
    margin: 18px 20px 12px;
    color: var(--body);
    line-height: 1.6;
}

.account-rules-panel > .account-text-button {
    margin: 0 20px 20px;
}

@media (max-width: 1050px) {
    .account-top-grid,
    .account-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .account-page {
        width: calc(100% - 32px);
        padding-top: 0;
    }

    .account-progress-legend,
    .account-balance-sources {
        grid-template-columns: 1fr;
    }

    .account-balance-sources div + div {
        border-top: 1px solid #edf0f4;
        border-left: 0;
    }

    .account-payment-row {
        grid-template-columns: 1fr auto;
    }
}

/* ==========================================================
   ЗАГРУЗКА АУДИО
   ========================================================== */

.upload-section {
    padding: 16px 0 86px;
    scroll-margin-top: 25px;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    align-items: start;
}

.panel {
    width: 100%;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 248, 251, 0.72));
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px 0;
    margin-bottom: 20px;
}

.panel-head > div {
    width: 100%;
}

.section-title {
    margin: 0;
    font-family: var(--font);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    font-weight: 600;
}

.section-copy {
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
}

.drop {
    position: relative;
    min-height: 310px;
    border-radius: 12px;
    border: 1.5px dashed rgba(148, 163, 184, 0.74);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 251, 253, 0.78));
    display: grid;
    place-items: center;
    padding: 38px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -18px 42px rgba(37, 99, 235, 0.035);
    overflow: hidden;
}

.drop::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    border-radius: var(--pill);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06) 45%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
}

.drop:hover,
.drop.drag {
    border-color: #2f8bff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 24px 60px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px);
}

.drop-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    justify-items: center;
    max-width: 560px;
}

.upload-icon {
    width: 112px;
    height: 112px;
    border-radius: var(--pill);
    background: radial-gradient(circle at 36% 24%, #ffffff 0%, #dcecff 34%, #9fc8ff 100%);
    color: #0f73f6;
    display: grid;
    place-items: center;
    font-size: 48px;
    font-weight: 700;
    box-shadow: 0 26px 52px rgba(15, 115, 246, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -16px 30px rgba(37, 99, 235, 0.12);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.upload-icon img {
    width: 54px;
    height: 54px;
}

.upload-text {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.45px;
    color: #111827;
    overflow-wrap: anywhere;
}

.formats-hint {
    max-width: 560px;
    color: #8a929f;
    font-size: 16px;
    line-height: 1.5;
}

#fileInput {
    display: none;
}

.panel.batch-has-files {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
    gap: 20px;
}

.panel.batch-has-files .panel-head {
    grid-column: 1 / -1;
}

.batch-panel {
    display: none;
    min-height: 310px;
    padding: 18px;
    border-radius: 12px;
    background: #eef3f9;
}

.panel.batch-has-files .batch-panel {
    display: flex;
    flex-direction: column;
}

.batch-files {
    display: grid;
}

.batch-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px 12px;
    padding: 11px 2px;
    border-bottom: 1px solid #d5dde8;
}

.batch-file-name {
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-file-duration,
.batch-file-state,
.batch-file-estimate {
    color: #64748b;
    font-size: 13px;
}

.batch-file-state,
.batch-file-estimate,
.batch-file-progress {
    grid-column: 1 / -1;
}

.batch-file-duration {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
}

.batch-file-estimate {
    margin-top: 2px;
}

.batch-file-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 3px;
}

.batch-file-progress span {
    height: 7px;
    border-radius: 4px;
    background: #dbe5f1;
}

.batch-file-progress span.filled {
    background: #0f73f6;
}

.batch-file-remove {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: center;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 20px;
}

.batch-file-state.completed {
    color: #0f73f6;
}

.batch-file-state.failed,
.batch-file-state.paused {
    color: #dc2626;
}

.batch-credit-cost {
    margin-top: auto;
    padding: 14px 0 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.batch-credit-cost[hidden] {
    display: none;
}

.batch-credit-cost strong {
    color: #111827;
    font-weight: 600;
}

.batch-warning {
    display: none;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #ffffff;
    color: #f97316;
    font-size: 14px;
    line-height: 1.4;
}

.drop.batch-processing .formats-hint {
    display: none;
}

.file-limit-message {
    margin: 8px 28px 4px 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.batch-warning.visible {
    display: block;
}

.batch-start {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #0f73f6;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.batch-start:disabled {
    background: #aeb8c6;
    cursor: not-allowed;
}

.batch-start[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .panel.batch-has-files {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   СТАТУС ТРАНСКРИБАЦИИ
   ========================================================== */

.status {
    display: none;
    margin-top: 18px;
    background: var(--canvas);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.status-top {
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--hair-soft);
    background: rgba(255, 255, 255, 0.78);
}

.status-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.status-kicker {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.status-current {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ink);
}

.status-body {
    display: block;
}

.steps {
    display: grid;
}

.step {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--hair-soft);
    font-size: 14px;
    color: var(--body);
}

.step:last-child {
    border-bottom: 0;
}

.step-icon {
    width: 18px;
    height: 18px;
    border-radius: var(--pill);
    border: 1px solid var(--hair);
    background: var(--canvas);
    position: relative;
}

.ss {
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--pill);
    padding: 4px 9px;
    background: var(--soft);
    color: var(--muted);
    white-space: nowrap;
}

.step.active {
    background: linear-gradient(90deg, var(--soft), #ffffff);
}

.step.active .step-icon {
    border-color: #8cc2ff;
    background: #0f73f6;
    box-shadow: 0 0 0 5px rgba(15, 115, 246, 0.16);
    animation: pulse 1.25s ease-in-out infinite;
}

.step.active .ss {
    background: #eaf3ff;
    color: #0f73f6;
}

.step.completed .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
}

.step.completed .step-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.step.completed .ss {
    background: #ecfdf5;
    color: #047857;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.23);
    }
}

#errorBlock {
    display: none;
    margin-top: 16px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: var(--r-md);
    padding: 14px;
    font-size: 14px;
}

/* ==========================================================
   ИСТОРИЯ ОБРАБОТОК
   ========================================================== */

.history {
    padding: 0 0 72px;
    scroll-margin-top: 90px;
}

.transcription-credit-rules {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -66px 0 24px;
    padding: 8px 16px;
    color: #64748b;
}

.transcription-credit-rules p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.transcription-credit-rules-link {
    flex: 0 0 auto;
    font-size: 14px;
    white-space: nowrap;
}

.history-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
}

.history-title {
    margin: 0;
    font-family: var(--font);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    font-weight: 600;
}

.history-copy {
    margin: 8px 0 0;
    color: var(--body);
    font-size: 16px;
}

.history-selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 760px;
    min-height: 58px;
    padding: 10px 0;
    border-top: 1px solid var(--hair-soft);
    border-bottom: 1px solid var(--hair-soft);
    background: #ffffff;
    color: var(--body);
    font-size: 14px;
}

.history-select-all-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 500;
    cursor: pointer;
}

.history-master-checkbox-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding-left: 22px;
    padding-right: 8px;
}

.history-selection-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: calc(18px + var(--history-scrollbar-width, 0px));
}

.history-selection-actions[hidden] {
    display: none;
}

.history-selection-actions .btn {
    height: 34px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
}

.history-clear-selection {
    color: var(--body);
    border-color: #cfd7e3;
    background: #ffffff;
}

.history-clear-selection:hover {
    color: var(--brand-blue);
    border-color: rgba(15, 115, 246, 0.35);
    background: var(--brand-blue-soft);
}

.history-delete-selection {
    color: var(--body);
    border-color: #cfd7e3;
    background: #ffffff;
}

.history-delete-selection:hover {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.48);
    background: rgba(220, 38, 38, 0.08);
}

.history-trash-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    mask: url('/static/icons/trash.svg') center / contain no-repeat;
    -webkit-mask: url('/static/icons/trash.svg') center / contain no-repeat;
}

.table-card {
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.07);
}

.history-table-shell {
    overflow-x: auto;
}

.history-table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
}

.history-table {
    table-layout: fixed;
}

.history-table-header {
    width: calc(100% - var(--history-scrollbar-width, 0px));
}

.history-select-col {
    width: 60px;
}

.history-status-col {
    width: 150px;
}

.history-result-col {
    width: 190px;
}

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

th,
td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--hair-soft);
    vertical-align: middle;
}

.table-card th {
    background: var(--table-head);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

td {
    font-size: 14px;
    color: var(--body);
}

.history-file-cell {
    white-space: normal;
    word-break: break-word;
}

.history-file-cell strong,
.history-file-cell span {
    display: block;
}

.history-select-column,
.history-select-cell {
    width: 52px;
    padding-left: 22px;
    padding-right: 8px;
    text-align: center;
}

.history-select-all-control input,
.history-select-cell input {
    appearance: none;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.72);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
}

.history-select-all-control input:hover,
.history-select-cell input:hover {
    border-color: rgba(100, 116, 139, 0.9);
}

.history-select-all-control input:checked,
.history-select-cell input:checked {
    border-color: #0f73f6;
    background: #0f73f6;
}

.history-select-all-control input:checked::after,
.history-select-cell input:checked::after {
    content: "";
    display: block;
    width: 4px;
    height: 8px;
    margin: 2px 0 0 5px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.history-select-all-control input:indeterminate {
    border-color: #0f73f6;
    background: #0f73f6;
}

.history-select-all-control input:indeterminate::after {
    content: "";
    display: block;
    width: 9px;
    height: 2px;
    margin: 7px auto 0;
    border-radius: 1px;
    background: #ffffff;
}

.history-select-cell input:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.history-row-selected td {
    background: rgba(15, 115, 246, 0.055);
}

.history-status-column,
.history-actions-column,
.history-status-cell,
.actions-cell {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.history-status-column,
.history-status-cell {
    padding-right: 20px;
}

.history-actions-column,
.actions-cell {
    padding-left: 20px;
}

.history-file-cell strong {
    font-weight: 600;
}

.history-file-cell span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.history-file-cell .history-expiry-warning {
    display: inline;
    margin-top: 0;
    color: #dc2626;
}

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

.empty-history {
    text-align: center;
    padding: 32px 18px;
    color: var(--muted);
}

.actions-cell {
    text-align: right;
    padding-right: 18px;
}

/* ==========================================================
   АДАПТИВНАЯ ВЁРСТКА
   ========================================================== */

@media (max-width: 820px) {
    .status-body {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .main {
        width: calc(100% - 28px);
    }

    .hero {
        text-align: left;
        padding: 42px 0 0;
    }

    .hero-copy {
        justify-items: start;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 42px;
        letter-spacing: -1.3px;
    }

    .lead {
        font-size: 16px;
    }

    .about-cta {
        display: grid;
    }

    .panel {
        border-radius: 30px;
        padding: 18px;
    }

    .panel-head,
    .history-head {
        display: grid;
        padding: 6px 6px 0;
    }

    .transcription-credit-rules {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 8px 16px;
        text-align: center;
    }

    .transcription-credit-rules-link {
        white-space: normal;
    }

    .history-selection-toolbar {
        min-height: 58px;
    }

    .history-selection-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .drop {
        min-height: 280px;
        border-radius: 28px;
        padding: 26px;
    }

    .upload-icon {
        width: 92px;
        height: 92px;
        font-size: 40px;
    }

    .step {
        grid-template-columns: 22px 1fr;
    }

    .ss {
        display: none;
    }
}

@media (max-width: 520px) {
    .main {
        width: 100%;
    }

    .hero,
    .history,
    .about-content,
    .transcription-credit-rules {
        margin-left: 16px;
        margin-right: 16px;
    }

    .home-page-heading {
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .upload-section {
        padding-bottom: 72px;
    }

    .panel {
        border-radius: 0;
    }

    .drop {
        min-height: 240px;
    }
}

.step.active .ss,
.step.completed .ss {
    font-size: 0;
}

.step.active .ss::after,
.step.completed .ss::after {
    font-size: 13px;
}

.step.active .ss::after {
    content: "в работе";
}

.step.completed .ss::after {
    content: "готово";
}

/* ==========================================================
   КНОПКИ И СОСТОЯНИЯ В ИСТОРИИ
   ========================================================== */

.nav-history-btn:hover,
body:has(#history:target) .nav-history-btn {
    color: #0f73f6;
    border-color: rgba(37, 99, 235, 0.14);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(37, 99, 235, 0.08);
}

.processing-icon {
    width: 54px;
    height: 54px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.table-btn.download {
    color: #ffffff;
    background: linear-gradient(180deg, #2f8bff 0%, #0f73f6 100%);
    border-color: transparent;

    box-shadow:
        0 8px 18px rgba(15,115,246,0.22);
}


.table-btn.download:hover {
    background: linear-gradient(180deg, #1d7df6 0%, #075ed2 100%);

    box-shadow:
        0 12px 24px rgba(15,115,246,0.28);
}


.table-btn.download .table-icon {
    filter: brightness(0) invert(1);
}

/* ==========================================================
   МОДАЛЬНЫЕ ОКНА И ПОДТВЕРЖДЕНИЕ УДАЛЕНИЯ
   ========================================================== */

.modal-overlay {

    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    background: rgba(17, 24, 39, 0.45);

    z-index: 1000;
}


.modal-overlay.show {
    display: flex;
}


.modal {

    width: 420px;
    max-width: calc(100vw - 32px);

    background: #ffffff;

    border-radius: 12px;

    padding: 28px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18);
    
    position: relative;
}

.modal .btn {
    border-radius: 9px;
}

.legal-document-modal {
    width: 720px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.legal-document-scroll {
    min-height: 260px;
    max-height: min(52vh, 460px);
    margin-bottom: 20px;
    padding: 18px 20px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

.legal-document-scroll p {
    margin: 0 0 16px;
}

.legal-document-scroll p:last-child {
    margin-bottom: 0;
}

.legal-document-notice {
    color: #64748b;
    font-weight: 500;
}

.legal-document-modal .modal-actions {
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .legal-document-modal {
        max-height: calc(100vh - 32px);
    }

    .legal-document-scroll {
        min-height: 220px;
        max-height: 52vh;
        padding: 16px;
    }
}


.modal-title {

    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}


.modal-text {

    font-size: 16px;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 20px;
}

.delete-modal-copy p {
    margin: 0;
}

.delete-modal-copy p + p {
    margin-top: 16px;
}

.delete-modal-copy .delete-balance-note {
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

.modal-option-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 12px;
}


.modal-actions {

    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


.btn.danger {

    box-shadow: none;
    color: #ffffff;

    background: linear-gradient(
        180deg,
        #f87171 0%,
        #dc2626 100%
    );

    border-color: transparent;
}


.btn.danger:hover {

    box-shadow:
        0 12px 24px rgba(220, 38, 38, 0.22);
}


.account-settings-modal {
    width: 560px;
}

.settings-page {
    padding-bottom: 64px;
}

.settings-page-heading,
.settings-layout {
    width: min(920px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}

.settings-page-heading {
    text-align: center;
}

.settings-layout {
    display: grid;
    gap: 20px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.05);
}

.settings-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.settings-card-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #111827;
}

.settings-card-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #64748b;
}

.settings-field,
.settings-form {
    border-top: 0;
    padding-top: 0;
}

.settings-profile-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.55fr);
    gap: 20px;
    align-items: stretch;
}

.settings-profile-grid > * {
    padding: 18px 20px;
    border-radius: 9px;
    background: #f8fafc;
}

.settings-readonly-field {
    display: grid;
    align-content: start;
    gap: 8px;
    padding-bottom: 18px;
}

.settings-readonly-field label,
.settings-form > label {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #374151;
}

.settings-readonly-field span {
    font-size: 16px;
    color: #111827;
}

.settings-readonly-field small,
.settings-help {
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

.settings-form {
    display: grid;
    gap: 10px;
}

.settings-name-form {
    align-content: start;
}

.settings-form input,
#deleteAccountConfirmation {
    min-height: 44px;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 10px 12px;
    font: inherit;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-password-input {
    position: relative;
    width: min(340px, 100%);
}

.settings-password-input input {
    padding-right: 44px;
}

.settings-password-input .input-eye {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    opacity: 0.72;
}

.settings-password-input .input-eye:hover,
.settings-password-input .input-eye:focus {
    opacity: 1;
    outline: none;
}

.settings-form input:focus,
#deleteAccountConfirmation:focus {
    border-color: #1687e8;
    box-shadow: 0 0 0 3px rgba(22, 135, 232, 0.12);
}

.settings-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.settings-password-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
}

.settings-card .btn {
    border-radius: 9px;
}

.settings-message {
    min-height: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-message:empty {
    display: none;
}

.settings-message.success {
    color: #15803d;
}

.settings-message.error {
    color: #dc2626;
}

.settings-danger-card {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(254, 242, 242, 0.62);
}

.settings-danger-card .settings-card-heading {
    margin-bottom: 0;
}

.contact-page {
    padding-bottom: 64px;
}

.contact-page-heading,
.contact-card,
.contact-note {
    width: min(920px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}

.contact-page-heading {
    text-align: center;
}

.contact-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.05);
}

.contact-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 26px;
}

.contact-card-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #111827;
}

.contact-card-heading p,
.contact-note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #64748b;
}

.contact-reply-address {
    flex: 0 0 auto;
    display: grid;
    gap: 3px;
    padding: 12px 15px;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
}

.contact-reply-address[hidden],
.contact-email-field[hidden] {
    display: none;
}

.contact-reply-address strong {
    color: #374151;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #374151;
}

.contact-form select,
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 11px 12px;
    font: inherit;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-email-field {
    display: grid;
    gap: 10px;
}

.contact-email-field:has(.contact-field-error:not([hidden])) {
    gap: 7px;
}

.contact-form input.contact-input-error {
    border-color: #dc2626;
}

.contact-form input.contact-input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-field-error {
    font-size: 13px;
    line-height: 1.4;
    color: #dc2626;
}

.contact-field-error[hidden] {
    display: none;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form select {
    min-height: 46px;
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form select:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #1687e8;
    box-shadow: 0 0 0 3px rgba(22, 135, 232, 0.12);
}

.contact-form input.contact-input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}

.contact-form-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

.contact-message-meta {
    display: grid;
    gap: 3px;
}

.contact-message-meta span {
    font-size: 13px;
    line-height: 1.4;
    color: #94a3b8;
}

.contact-form-footer .btn {
    flex: 0 0 auto;
    border-radius: 9px;
}

.contact-form-message {
    min-height: 20px;
    font-size: 14px;
    color: #64748b;
}

.contact-form-message:empty {
    display: none;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 115, 246, 0.18);
    border-radius: 12px;
    background: rgba(15, 115, 246, 0.05);
}

.contact-note-icon {
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f73f6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.contact-note strong {
    display: block;
    margin-bottom: 3px;
    color: #111827;
}

@media (max-width: 720px) {
    .settings-page-heading,
    .settings-layout,
    .contact-page-heading,
    .contact-card,
    .contact-note {
        width: min(100% - 32px, 920px);
    }

    .settings-card {
        padding: 22px 20px;
    }

    .settings-card-heading,
    .settings-readonly-field,
    .settings-password-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-input-action {
        grid-template-columns: 1fr;
    }

    .settings-profile-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 22px 20px;
    }

    .contact-card-heading,
    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-reply-address {
        width: 100%;
    }

    .contact-form-footer .btn {
        width: 100%;
    }
}

.account-settings-modal > .modal-title {
    margin-bottom: 24px;
}

.account-settings-section {
    margin-bottom: 22px;
}

.account-settings-heading {
    margin: 0 0 10px;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.account-settings-row {
    min-height: 70px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-bottom: 0;
    background: #ffffff;
}

.account-settings-row:first-of-type {
    border-radius: 9px 9px 0 0;
}

.account-settings-row:last-child {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 0 9px 9px;
}

.account-settings-row:only-of-type {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 9px;
}

.account-settings-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-settings-label {
    color: #64748b;
    font-size: 13px;
}

.account-settings-value {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-settings-password {
    letter-spacing: 2px;
}

.account-settings-action {
    height: 38px;
    padding: 0 16px;
    flex: 0 0 auto;
}

.account-settings-danger {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #e2e8f0;
}

.account-settings-danger p {
    max-width: 310px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.account-settings-delete {
    height: 40px;
    padding: 0 18px;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .account-settings-modal {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .account-settings-danger {
        align-items: stretch;
        flex-direction: column;
    }

    .account-settings-delete {
        width: 100%;
    }
}





.step-info {
    margin-top: 10px;
    font-size: 12px;
}

.step-extra {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

#step2 {
    padding-top: 12px;
    padding-bottom: 12px;
}

#step2 .step-info,
#step2 .step-extra {
    grid-column: 2 / -1;
}



/* Варианты скачивания результата. */

.download-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 20px;
}

.download-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.35;
    color: #111111;
    cursor: pointer;
}

.download-processing {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}


.download-processing .processing-icon {
    width: 32px;
    height: 32px;
}


.processing-text {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}


/* ==========================================================
   КАРКАС ПРИЛОЖЕНИЯ И БОКОВОЕ МЕНЮ
   ========================================================== */

.app-layout {
    display: flex;
    width: 100%;

    min-height: calc(100vh - 72px);
}







.sidebar {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    padding: 24px 16px 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(229, 231, 235, 0.55);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.04);
    overflow-y: auto;

    display: flex;
    flex-direction: column;
}


.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;

    height: 37px;
    width: 100%;

    padding: 0 14px;

    border-radius: 12px;

    border: none;
    background: transparent;

    color: var(--body);

    font-size: 14px;
    font-family: inherit;
    font-weight: 500;

    cursor: pointer;
    text-align: left;

    transition:
        background .18s,
        color .18s;
}

.sidebar-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: filter .18s;
}


.sidebar-item:not(.active):hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.sidebar-item.active {
    background: transparent;
    color: var(--brand-blue);
}

.sidebar-item:not(.active):hover .sidebar-item-icon,
.sidebar-item.active .sidebar-item-icon,
.user-action:hover .action-icon {
    filter: brightness(0) saturate(100%) invert(39%) sepia(99%) saturate(2536%) hue-rotate(202deg) brightness(99%) contrast(95%);
}


.sidebar-account-area {
    margin-top: auto;
}


.sidebar-billing {
    display: none;
    margin: 0 8px 14px;
    padding: 16px;
    border: 1px solid #dfe4ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}


.sidebar-account-area:has(.sidebar-user.authenticated) .sidebar-billing {
    display: block;
}


.sidebar-billing-plan {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}


.sidebar-billing-usage {
    margin-top: 5px;
    color: var(--body);
    font-size: 13px;
    line-height: 1.4;
}


.sidebar-billing-progress {
    display: flex;
    width: 100%;
    height: 7px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: var(--pill);
    background: #e8edf4;
}


.billing-progress-used {
    width: 25%;
    background: var(--brand-blue);
}


.billing-progress-reserved {
    width: 3.75%;
    background: #f59e0b;
}

.billing-progress-preview {
    width: 0;
    background: #f97316;
}


.sidebar-billing-reserved {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}


.billing-reserved-marker {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.billing-reserved-marker.preview {
    background: #f97316;
}


.sidebar-account-button {
    width: 100%;
    height: 36px;
    margin-top: 14px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #ffffff;
    color: var(--body);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}


.sidebar-account-button:hover {
    border-color: rgba(15, 115, 246, 0.35);
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}


.header-actions .btn.secondary {
    height: 36px;
    padding: 0 18px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: none;
    color: var(--body);
    font-size: 13px;
    font-weight: 500;
}


.header-actions .btn.secondary:hover {
    border-color: rgba(15, 115, 246, 0.35);
    background: var(--brand-blue-soft);
    box-shadow: none;
    color: var(--brand-blue);
}


.sidebar-user {

    margin-top: 0;

    padding: 0px 8px 0px;

    border-top: 1px solid rgba(255,255,255,0.72);

    font-size: 14px;

}

.user-name {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 12px;

    font-weight: 600;
}


.user-icon {
    flex-shrink: 0;
}


.user-text {
    display: flex;
    flex-direction: column;
}


.user-email {
    margin-top: 4px;

    font-size: 13px;
    color: #6b7280;
}


.user-actions {
    margin-top: 16px;
    padding-top: 0px;
    padding-bottom: 12px;

    border-top: 1px solid rgba(255,255,255,0.72);

}


.user-action {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 8px 12px;

    border-radius: 12px;

    background: none;
    border: none;

    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;

    cursor: pointer;
    text-align: left;

    transition:
        background .18s,
        color .18s;
}

.user-action:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.user-action .action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: filter .18s;
}



/* ==========================================================
   ОКНО УЧЁТНОЙ ЗАПИСИ
   ========================================================== */

.account-logo {

    display: block;

    margin: 0 auto 24px;

    height: 48px;

}

.modal-secondary-text {

    font-size: 15px;
    line-height: 1.5;

}

.account-subtitle {

    margin-top: -8px;
    margin-bottom: 28px;

    text-align: center;

    color: #6b7280;

}


.form-group {

    margin-bottom: 18px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 500;

}


.input-wrapper {

    display: flex;

    align-items: center;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    padding: 0 14px;

    height: 48px;

    background: white;

}


.input-icon {

    margin-right: 6px;

}


.input-wrapper input {

    flex: 1;

    border: none;

    outline: none;

    font-size: 15px;

    background: transparent;

}


.forgot-password {

    display: flex;
    justify-content: flex-end;
    align-items: center;

    width: 100%;

    margin-top: -6px;
    margin-bottom: 24px;

    padding: 0;

}


.register-block {

    margin-top: 0px;

    text-align: center;

    font-size: 15px;

    color: #6b7280;

}


.register-block a {

    margin-left: 4px;

    color: #2563eb;

    text-decoration: none;

    font-weight: 500;

}

.register-options {
    margin-bottom: 24px;
}

.account-modal .modal-title {
    text-align: center;
}

.password-reset-modal .modal-text {
    margin-bottom: 24px;
    color: #6b7280;
}

.password-reset-modal .form-group {
    margin-bottom: 24px;
}

.password-reset-modal .modal-actions .btn {
    min-width: 124px;
}

.new-password-modal .modal-text {
    margin-bottom: 24px;
    color: #6b7280;
}

.new-password-modal .form-error {
    min-height: 20px;
    margin: -6px 0 10px;
}

.new-password-modal .modal-actions {
    margin-bottom: 0;
}

/* Единая компактная компоновка окон входа и регистрации. */
.account-modal {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.account-modal .account-logo {
    margin-bottom: 16px;
}

.account-modal .form-group {
    margin-bottom: 8px;
}

.account-modal .field-error {
    min-height: 15px;
    margin-top: 3px;
    font-size: 12px;
    line-height: 15px;
}

.account-modal .register-options {
    margin-bottom: 14px;
}

.account-modal .modal-actions {
    height: auto;
    margin-bottom: 16px;
}

.account-submit {

    width: 100%;

}


.guest-login-btn {

    width: 100%;
    border-radius: 9px;

}


.guest-login-btn:hover {

    background: #2563eb;

}



.modal-close {

    position: absolute;

    top: 14px;
    right: 18px;

    border: none;
    background: none;

    font-size: 28px;
    line-height: 1;

    color: var(--text-muted);

    cursor: pointer;

}


.modal-close:hover {

    color: var(--text);

}


.input-eye {
    cursor: pointer;
}


/* ==========================================================
   ЭЛЕМЕНТЫ УПРАВЛЕНИЯ В ШАПКЕ
   ========================================================== */

.header-logo {
    display: flex;
    align-items: center;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.text-action-button {
    background: none;
    border: none;
    padding: 0;

    color: #2563eb;
    font-family: inherit;
    text-decoration: none;

    cursor: pointer;

    transition: color .18s;
}

.registration-consent-text {
    line-height: 1.45;
}


.text-action-button:hover {
    color: #1d4ed8;
}

.field-error {
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    color: #d9534f;
    visibility: hidden;
}


.input-wrapper:has(.input-error) {
    border-color: #d9534f !important;
}


/* ==========================================================
   Translation page
   ========================================================== */

.translation-form textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    padding: 11px 12px;

    font: inherit;
    color: #111827;
    background: #ffffff;

    outline: none;

    resize: vertical;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.translation-form textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ----------------------------------------------------------
   Поля перевода
   ---------------------------------------------------------- */

.translation-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.translation-field {
    width: 100%;
}


.translation-field label {
    display: block;
    margin-bottom: 7px;
}


/* ----------------------------------------------------------
   Счётчик
   ---------------------------------------------------------- */

.translation-field-meta {
    margin-top: 6px;

    display: flex;
    justify-content: flex-end;

    font-size: 13px;
    color: #64748b;
}


/* ----------------------------------------------------------
   Нижняя часть формы
   ---------------------------------------------------------- */

.translation-form-footer {
    margin-top: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}


.translation-message-meta p {
    margin: 0;

    font-size: 13px;
    color: #64748b;
}


/* ----------------------------------------------------------
   Сообщение
   ---------------------------------------------------------- */

.translation-form-message {
    margin-top: 14px;

    font-size: 14px;
}


/* ----------------------------------------------------------
   Нижняя информационная карточка
   ---------------------------------------------------------- */

.translation-note {
    margin-top: 20px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 16px 18px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #ffffff;
}


.translation-note-icon {
    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;
    color: #2563eb;

    font-weight: 600;
}


.translation-note strong {
    display: block;
    margin-bottom: 4px;
}


.translation-note p {
    margin: 0;

    color: #64748b;
}

.translation-page {
    padding-bottom: 64px;
}

.translation-page-heading {
    text-align: center;
}

.translation-content {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

.translation-file-card > p,
.translation-quick-card > p,
.translation-history-heading p {
    margin: 8px 0 0;
    color: var(--body);
    font-size: 16px;
    line-height: 1.55;
}

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

.translation-file-step {
    display: flex;
    min-width: 0;
    min-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
    border-radius: 10px;
    background: #f8fafc;
}

.translation-step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
}

.translation-file-step h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.translation-file-step label,
.translation-field label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.translation-file-step select,
.translation-language-row select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 40px 9px 12px;
    color: #111827;
    background-color: #ffffff;
    font: inherit;
}

.translation-file-step .btn {
    width: 100%;
    margin-top: auto;
    border-radius: 9px;
}

.translation-document-name,
.translation-document-status,
.translation-document-ready {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.translation-document-status {
    color: #c96c00;
}

.translation-document-ready {
    color: var(--brand-blue);
    font-weight: 600;
}

.translation-document-ready::before {
    content: "✓ ";
}

.translation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.translation-form textarea {
    min-height: 210px;
}

.translation-language-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.translation-language-row select {
    width: 190px;
}

.translation-form-footer .btn {
    border-radius: 9px;
}

.translation-history-heading {
    padding: 30px;
}

.translation-history-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    font-weight: 600;
}

.translation-history-table th:nth-child(2),
.translation-history-table td:nth-child(2) {
    width: 180px;
}

.translation-history-download {
    width: 170px;
    text-align: right;
}

.translation-history-table .btn {
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 9px;
    box-shadow: none;
}

.translation-history-table .btn:disabled {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #dbe3ef;
}

@media (max-width: 840px) {
    .translation-content {
        width: min(100% - 32px, 1120px);
    }

    .translation-file-steps,
    .translation-fields {
        grid-template-columns: 1fr;
    }

    .translation-file-step {
        min-height: auto;
    }

    .translation-file-step .btn {
        margin-top: 8px;
    }

    .translation-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .translation-language-row,
    .translation-language-row select,
    .translation-form-footer .btn {
        width: 100%;
    }
}
