/* ========== Body and Background ========== */
:root {
    scroll-padding-bottom: var(--vl-consent-body-padding-bottom, 0);
    /* Shared design tokens. Prefer these over hard-coded values in new CSS. */
    --vl-primary: #0d6efd;
    --vl-primary-dark: #0b5ed7;
    --vl-muted: #6c757d;
    --vl-radius: 0.75rem;
    --vl-card-border: #e9ecef;
    --vl-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f4f4f9;
    padding-bottom: var(--vl-consent-body-padding-bottom, 0);
}

.bg-page {
    background-color: #f4f4f9 !important;
}

/* ========== Navbar Styles ========== */
.custom-navbar {
    /* #0b5ed7 keeps white link text above the WCAG AA 4.5:1 contrast ratio
       (#007bff only reached 3.98:1). */
    background-color: var(--vl-primary-dark);
}

.custom-navbar .navbar-brand,
.custom-navbar .navbar-brand:hover,
.custom-navbar .navbar-brand:focus {
    color: #fff;
    font-weight: 600;
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar .navbar-nav .vl-nav-greeting,
.custom-navbar .navbar-nav .vl-nav-greeting:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    cursor: default;
}

/* Current section in the main navigation */
.custom-navbar .navbar-nav .nav-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45em;
}

/* Ensure all nav-link items have the same vertical alignment */
.navbar-nav .nav-link,
.navbar-nav .nav-item > span.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Style the Logout button to resemble nav-links */
.navbar-nav .nav-item .logout-button {
    border: none;
    background: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

/* Hide the focus ring for mouse clicks only; keyboard users keep it. */
.navbar-nav .nav-item .logout-button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Hover effect to match nav-links */
.navbar-nav .nav-item .logout-button:hover {
    text-decoration: underline;
}

/* 
   Make all nav items white text on the blue background.
   Use !important to override any inline or conflicting styles.
*/
.custom-navbar .navbar-nav .nav-link,
.custom-navbar .navbar-nav .logout-button {
    color: #fff !important;
}
.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .logout-button:hover {
    color: #e2e6ea !important; /* Light gray on hover */
}

/* ========== Skip link, main landmark, footer ========== */
.vl-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: #fff;
    color: var(--vl-primary-dark);
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vl-footer-link-btn {
    font-size: inherit;
    vertical-align: baseline;
}

.vl-footer-links .list-inline-item:not(:last-child)::after {
    content: "·";
    margin-left: 0.5rem;
    color: var(--vl-muted);
}

/* ========== Form Styles ========== */
.form-group.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Uniform margin for better spacing */
}

.col-form-label {
    flex: 0 0 15%; /* Consistent width for all labels */
    text-align: right;
    padding-right: 15px;
}

/* ========== Upload Container Styles ========== */
.upload-container {
    background-color: #fff; /* White background for container */
    border-radius: 8px;     /* Rounded corners */
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Scoped button hover effect (legacy upload contexts only) */
.upload-container .btn.btn-primary:hover {
    background-color: #0056b3;
}

/* ========== Responsive Styles ========== */
@media (max-width: 576px) {
    .col-form-label,
    .form-control {
        flex: 1 0 100%;
        text-align: left;
    }
    .col-form-label {
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* ========== Edit Link Styles ========== */
#edit-all {
    color: var(--vl-primary); /* Default link color */
    text-decoration: none;
}
#edit-all:hover {
    color: #0056b3; /* Darker on hover */
    text-decoration: underline;
}

/* ========== Streak Circle CSS ========== */
/* Base circle styling (gray background, zero fill by default) */
.streak-circle {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: #ddd; /* Gray unfilled portion */
    position: relative;
    vertical-align: middle;
    margin-left: 0.75rem; /* Some spacing from preceding text */
}

/* The fill portion (initially 0%) */
.streak-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 50%;
    background-color: #28a745; /* Green fill */
    width: 0%; /* no fill by default */
}

/* 1/3 fill */
.streak-circle.partial-1::after {
    width: 33%;
}

/* 2/3 fill */
.streak-circle.partial-2::after {
    width: 66%;
}

/* Full fill (3/3 or more) */
.streak-circle.full::after {
    width: 100%;
}


.vl-narrow-container {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.vl-wide-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vl-input-word {
    max-width: 32ch;
}

/* Dictionary meanings often list several senses ("a / b / c"). */
.vl-input-meaning {
    max-width: 60ch;
}

/* Review word: Save/Cancel live in the card footer (sticky on phones). The
 * bottom-bar copies are kept for the JS contract but would only duplicate
 * the same actions a few pixels lower. */
#nav-right-group #save-all-nav,
#nav-right-group #cancel-all-nav {
    display: none !important;
}

.vl-flag-flow,
.vl-flag-flow .form-control-sm,
.vl-flag-flow .badge {
    font-size: 0.75rem;
}

.vl-flag-flow .vl-flag-hint {
    font-size: 0.7rem;
}

.review-sentence-card {
    background-color: #f8fafc;
    border: 1px solid #e9ecef;
}

.review-feedback {
    min-height: 1.5rem;
}

.review-btn-icon {
    display: inline-block;
    width: 1rem;
    text-align: center;
}

.card-top-offset {
    margin-top: -30px; /* Adjust this value to move the card higher or lower */
}

/* Mobile navbar rhythm and touch targets (for navbar-expand-lg) */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        color: #fff;
    }

    .custom-navbar .navbar-toggler:focus {
        box-shadow: none;
    }

    .custom-navbar .navbar-toggler:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }

    .custom-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
    }

    .vl-mobile-nav .nav-link {
        min-height: 44px;
        height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .vl-mobile-nav .vl-mobile-account {
        font-size: 0.9375rem;
    }

    .vl-mobile-nav hr {
        border-color: #fff;
        opacity: 0.4;
    }

    .vl-mobile-nav .lang-block {
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        padding-bottom: 0.25rem;
    }

    .vl-mobile-nav .form-label {
        color: #fff;
    }

    .vl-mobile-nav .form-select {
        min-height: 44px;
    }
}


.auth-or-divider hr {
    margin: 0;
    opacity: 0.2;
}

.auth-google-btn .bi {
    color: #4285F4;
}

.vl-media-overlay--thumb {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.5rem;
    overflow: hidden;
    isolation: isolate;
}

.vl-media-overlay--thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
    z-index: -1;
}

/* ========== Cookie consent card ========== */
.vl-consent-card {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 2rem);
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.25s ease-in-out;
}

.vl-consent-card.show {
    transform: translateY(0);
}


/* ========== public-home landing v2 ========== */
.public-home-hero-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 45%, #198cff 100%);
    color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.25rem rgba(13, 110, 253, 0.25);
}

.public-home-eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.public-home-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.public-home-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
}

.public-home-copy {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 65ch;
}

.public-home-btn-primary {
    color: #0a58ca;
}

.public-home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.public-home-checklist {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.public-home-checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.public-home-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.welcome-preview {
    background: #fff;
    color: #24344b;
    border-radius: 1rem;
    box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.2);
    padding: clamp(1rem, 2vw, 1.5rem);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.welcome-preview-label {
    font-size: 0.875rem;
    color: #4b5e75;
    font-weight: 600;
    margin-bottom: 0;
}

.welcome-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.welcome-preview-pause {
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid #bdcde3;
    border-radius: 0.5rem;
    background: #fff;
    color: #084fae;
}

.welcome-preview-pause[aria-disabled="true"] {
    color: #5e6c80;
    background: #edf2f9;
}

/* Only the current content sets card height. Answer and feedback variants
   still overlap below, so revealing or checking never resizes the exercise. */
.welcome-preview-body {
    display: grid;
}

.welcome-preview-body > .tab-pane {
    grid-area: 1 / 1;
    display: grid;
    visibility: hidden;
    min-width: 0;
}

.welcome-preview-body > .tab-pane.active {
    visibility: visible;
}

.welcome-preview .tab-pane:not(.active),
.welcome-preview .welcome-preview-sample:not(.is-current) {
    display: none;
}

.welcome-preview-sample { grid-area: 1 / 1; min-width: 0; }
.welcome-preview-sample:not(.is-current),
.welcome-preview-sample:not(.is-current) * { visibility: hidden !important; }
.welcome-preview-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -0.75rem 0 1rem;
    font-variant-numeric: tabular-nums;
}
.welcome-preview-navigation button { min-width: 44px; min-height: 44px; }

.welcome-preview-word-card {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e3eaf3;
    border-radius: 0.75rem;
    background: #f7f9fd;
}

.welcome-preview-word-slot,
.welcome-preview-gap {
    display: inline-grid;
    vertical-align: baseline;
}

.welcome-preview-word-slot {
    margin-bottom: 0.5rem;
}

.welcome-preview :is([data-word-mask], [data-word-answer]),
.welcome-preview-definition > div,
.welcome-preview-feedback > span {
    grid-area: 1 / 1;
}

.welcome-preview [data-word-answer],
.welcome-preview.is-revealed [data-word-mask],
.welcome-preview [data-definition="english"],
.welcome-preview.is-translated [data-definition="localized"] {
    visibility: hidden;
}

.welcome-preview.is-revealed .active [data-word-answer],
.welcome-preview.is-translated .active [data-definition="english"] {
    visibility: visible;
}

.welcome-preview-input-row {
    display: flex;
    gap: 0.5rem;
}

.welcome-preview-input-row input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
}

.welcome-preview-input-row button {
    flex-shrink: 0;
}

@media (max-width: 359.98px) {
    .welcome-preview-input-row { flex-direction: column; }
    .welcome-preview-input-row input { flex-basis: auto; }
    .welcome-preview-input-row button { min-height: 44px; }
}

.welcome-preview-feedback {
    display: grid;
    margin: 0.5rem 0 1rem;
    font-size: 0.875rem;
    color: #4b5e75;
}

.welcome-preview-feedback > span { visibility: hidden; }
.welcome-preview:not([data-feedback]) .active [data-feedback="hint"],
.welcome-preview[data-feedback="correct"] .active [data-feedback="correct"],
.welcome-preview[data-feedback="retry"] .active [data-feedback="retry"],
.welcome-preview[data-feedback="revealed"] .active [data-feedback="revealed"] { visibility: visible; }
.welcome-preview [data-feedback="correct"] { color: #166534; }
.welcome-preview [data-feedback="retry"] { color: #a12525; }

.welcome-preview-reveal,
.welcome-preview-translate {
    min-height: 44px;
    white-space: normal;
}

.welcome-preview-definition { display: grid; }
.welcome-preview-translate { margin-bottom: 1rem; display: inline-grid; }
.welcome-preview-translate span { grid-area: 1 / 1; }
.welcome-preview [data-translation-label="english"],
.welcome-preview.is-translated [data-translation-label="show"] { visibility: hidden; }
.welcome-preview.is-translated .active [data-translation-label="english"] { visibility: visible; }

.welcome-preview-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    background: #edf2f9;
    margin-bottom: 1.5rem;
}

.welcome-preview-tabs .nav-link {
    min-height: 44px;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #344863;
    font-weight: 600;
    line-height: 1.35;
}

.welcome-preview-tabs .nav-link.active {
    background: #0b5ed7;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.welcome-preview :is(button, summary, [tabindex]):focus-visible {
    outline: 3px solid #153d70;
    outline-offset: 3px;
}

.welcome-preview-kicker {
    color: #4b5e75;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-preview-context {
    background: #f2f6fd;
    border-left: 3px solid #0b5ed7;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem;
    font-size: 1.125rem;
}

.welcome-preview-gap {
    color: #0b5ed7;
    white-space: nowrap;
}

.welcome-preview-word {
    color: #0b5ed7;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

.welcome-preview-word-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.welcome-preview-example {
    margin-bottom: 0.25rem;
}

.welcome-preview-example-translation {
    color: #4b5e75;
}

.welcome-preview-collocations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-preview-collocations li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e3eaf3;
}

.welcome-preview-collocations li span + span {
    color: #4b5e75;
}

.public-home-demo-card {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 1rem;
}

.public-home-section-kicker {
    color: #0d6efd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.public-home-muted-copy {
    color: #4f5b73;
}

.public-home-demo-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.public-home-demo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    max-width: 100%;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.public-home-steps {
    margin-bottom: 1rem;
}

.public-home-step-card {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 1rem;
}

@media (max-width: 991.98px) {
    .public-home-demo-actions {
        width: 100%;
    }

    .public-home-demo-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
  #main-card.is-editing .review-edit-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bs-body-bg);
    padding-top: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  }

  /* Small buttons on phones: with Cancel and Delete as icons, Save, Save and
   * next, Cancel and Delete fit in one row at 390 px in every UI language
   * (at 375 px German and French still wrap), instead of always two. */
  .review-edit-actions .btn {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
  }
}


.table-words-manage td {
    overflow-wrap: anywhere;
}

/* ========== Profile page (redesign) ========== */
.vl-avatar{
  width:64px;height:64px;border-radius:18px;
  background:#e7f1ff;color:#0b5ed7;
  display:flex;align-items:center;justify-content:center;
  font-size:1.75rem;font-weight:600;flex:0 0 auto;
}
.vl-eyebrow{
  font-size:.72rem;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;color:#6c757d;margin-bottom:1rem;
}
.vl-chip{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.35rem .75rem;border-radius:999px;
  font-size:.8125rem;font-weight:500;text-decoration:none;
}
.vl-chip-ok{background:#e8f5ec;color:#157347;}
.vl-chip-warn{background:#fff4e5;color:#9a4f00;}
.vl-chip-off{background:#eef0f3;color:#5c636a;border:1px dashed #c6ccd2;}
.vl-chip-off:hover{background:#e2e6ea;color:#0b5ed7;border-color:#9ec5fe;}
.vl-danger-zone{border-top:1px solid #f1c2c7;}
.vl-card{border:0;}

/* ========== Books & Study list ========== */
.vl-book-card { --vl-muted: #495057; --bs-secondary-rgb: 73, 80, 87; }
.vl-book-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.3;
    min-height: 2.6em;
}

.vl-book-byline {
    color: var(--vl-muted);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}
.vl-book-byline > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.vl-book-language { flex-shrink: 0; }

.vl-book-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.vl-book-meta > div {
    min-width: 0;
}

.vl-book-meta dt {
    font-weight: 500;
    color: var(--vl-muted);
}

.vl-book-meta dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vl-book-progress {
    height: 6px;
    border-radius: 999px;
}

.vl-book-states {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    background: #f5f7fa;
    border-radius: .5rem;
    padding: .75rem .5rem;
    margin: 1rem 0 .75rem;
    text-align: center;
}
.vl-book-states > div { display: grid; grid-template-rows: 1fr auto; }
.vl-book-states dt { font-size: .8125rem; font-weight: 400; color: var(--vl-muted); }
.vl-book-states dd { margin: .25rem 0 0; font-size: 1.1rem; font-weight: 600; }
.vl-book-guidance { color: var(--vl-muted); margin-bottom: .75rem; }
.vl-book-card .learning-summary-primary { display: flex; flex-wrap: wrap; gap: .5rem; }
.vl-book-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: normal;
    text-align: center;
}
.vl-book-actions .badge { flex-shrink: 0; }
.vl-book-actions .learning-summary-secondary { margin-top: .75rem; }
.vl-book-actions summary { padding-block: .5rem; }
.vl-book-extra summary { list-style: none; }
.vl-book-extra summary::-webkit-details-marker { display: none; }
.vl-book-extra[open] summary .bi-chevron-down { transform: rotate(180deg); }
.vl-book-extra form { padding: .75rem; background: #f5f7fa; border-radius: .375rem; }
.vl-book-actions .btn-link { justify-content: flex-start; text-align: left; }
.vl-book-actions .btn:focus-visible {
    outline: 3px solid #163d67;
    outline-offset: 3px;
}
.vl-book-tools { border-top: 1px solid #e9ecef; padding-top: .5rem; }
.vl-book-tools a { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 575.98px) {
    .vl-book-title { min-height: 0; }
    .vl-book-actions .learning-summary-primary > *,
    .vl-book-actions .btn { width: 100%; }
    .vl-book-tools a { min-height: 44px; }
}

/* Empty state on Books & Study (same look as the welcome hero) */
.vl-empty-hero {
    max-width: 1100px;
    /* Both gradient stops keep white text above 5:1 contrast. */
    background-color: #0b5ed7;
    background-image: linear-gradient(135deg, #0b5ed7 0%, #087990 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 4rem 1.5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}

.vl-empty-hero h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}

.vl-empty-hero p {
    font-size: 1.05rem;
    max-width: 70ch;
    margin-inline: auto;
    line-height: 1.55;
    text-align: start;
}

.vl-empty-hero-btns a {
    min-width: 12rem;
}

/* ========== Kindle import ========== */
/* Inline file names inside buttons keep the button's text colour. */
.btn code {
    color: inherit;
}

.vl-steps {
    counter-reset: vl-step;
    display: grid;
    gap: 1rem;
}

.vl-steps li {
    counter-increment: vl-step;
    display: grid;
    grid-template-columns: 1.75rem 1.25rem 1fr;
    align-items: start;
    gap: 0.5rem;
}

.vl-steps li::before {
    content: counter(vl-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e7f1ff;
    color: var(--vl-primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.vl-steps li > .bi {
    line-height: 1.75rem;
}

.vl-steps li > span {
    padding-top: 0.15rem;
}

.vl-dropzone {
    border: 2px dashed #c6d4ea;
    border-radius: var(--vl-radius);
    background: #f8fbff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vl-dropzone.is-dragover {
    border-color: var(--vl-primary);
    background: #e7f1ff;
}

.vl-dropzone-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* The Gold excerpt starts in the reader's language, with the nuance visible. */
.welcome-preview-gloss {
    font-weight: 600;
    margin: -0.4rem 0 1rem;
}

.welcome-preview-nuance {
    background: #f2f6fd;
    border-left: 3px solid #0b5ed7;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.welcome-preview-source {
    color: #4b5e75;
    font-size: 0.875rem;
    margin: 1rem 0 0;
}
