/* ==================================================================
   GWS Market View — Editorial redesign
   ==================================================================
   Design language: research-house editorial. Serif display titles,
   generous whitespace, measured line lengths, restrained color.
   The brand accent (navy) is reserved for the cover and the OW/N/UW
   dots; everything else is slate + ink.
   ================================================================== */

:root {
    --mv-ink:           #0f172a;
    --mv-ink-soft:      #334155;
    --mv-muted:         #64748b;
    --mv-border:        #e2e8f0;
    --mv-border-strong: #cbd5e1;
    --mv-paper:         #ffffff;
    --mv-paper-alt:     #f8fafc;
    --mv-cover-bg:      #2C3E50;
    --mv-cover-fg:      #f8fafc;
    --mv-accent:        #2C3E50;
    --mv-accent-hot:    #d97706;
    --mv-positive:      #059669;
    --mv-negative:      #dc2626;
    --mv-neutral:       #94a3b8;
    --mv-serif:         'Source Serif Pro', 'Source Serif 4', 'Charter', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --mv-sans:          'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mv-mono:          'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
    --mv-radius:        8px;
    --mv-radius-lg:     14px;
    --mv-shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --mv-shadow-md:     0 4px 12px rgba(15, 23, 42, 0.08);
    --mv-shadow-lg:     0 12px 32px rgba(15, 23, 42, 0.12);
    --mv-transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);
}

#gwsSectionMarketView.gws-mv-root { padding: 0; }

/* ── Cover / Masthead ────────────────────────────────────────────── */

.mv-masthead {
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
    border-radius: var(--mv-radius-lg);
    padding: 2.25rem 2rem 2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2rem;
    align-items: end;
    position: relative;
    /* No overflow:hidden — the history dropdown must escape the masthead */
    box-shadow: var(--mv-shadow-lg);
}
.mv-masthead::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.mv-masthead-text { position: relative; z-index: 1; }
.mv-masthead-eyebrow {
    font-family: var(--mv-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.62);
    margin-bottom: 0.65rem;
}
.mv-masthead-title {
    font-family: var(--mv-serif);
    font-size: clamp(1.9rem, 2.8vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 0.85rem;
    color: var(--mv-cover-fg);
    max-width: 24ch;
}
.mv-masthead-meta {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--mv-sans);
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.78);
}
.mv-masthead-meta .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(248, 250, 252, 0.22);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.mv-masthead-meta .pill.issue { background: rgba(248, 250, 252, 0.08); }
.mv-masthead-meta .sep { opacity: 0.4; }

.mv-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.mv-action {
    background: rgba(248, 250, 252, 0.08);
    color: var(--mv-cover-fg);
    border: 1px solid rgba(248, 250, 252, 0.22);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-family: var(--mv-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--mv-transition);
    white-space: nowrap;
}
.mv-action:hover {
    background: rgba(248, 250, 252, 0.18);
    border-color: rgba(248, 250, 252, 0.4);
}
.mv-action.primary {
    background: var(--mv-cover-fg);
    color: var(--mv-cover-bg);
    border-color: var(--mv-cover-fg);
}
.mv-action.primary:hover { background: #fff; border-color: #fff; }

.mv-action-back {
    background: var(--mv-paper);
    color: var(--mv-ink);
    border: 1px solid var(--mv-border-strong);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-family: var(--mv-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    transition: all var(--mv-transition);
}
.mv-action-back:hover { border-color: var(--mv-ink); color: var(--mv-ink); }

/* History dropdown */
.mv-history-wrap { position: relative; }
.mv-history-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: var(--mv-paper);
    color: var(--mv-ink);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    box-shadow: var(--mv-shadow-lg);
    min-width: 280px;
    max-height: 340px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 0.45rem;
}
.mv-history-wrap.open .mv-history-menu { display: block; }
.mv-history-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.6rem 0.85rem;
    border-radius: calc(var(--mv-radius) - 2px);
    cursor: pointer;
    font-family: var(--mv-sans);
    transition: background 160ms;
}
.mv-history-item:hover { background: var(--mv-paper-alt); }
.mv-history-item.current { background: rgba(44, 62, 80, 0.06); }
.mv-history-item .num {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--mv-ink);
}
.mv-history-item .date {
    font-size: 0.74rem;
    color: var(--mv-muted);
}
.mv-history-actions {
    display: flex; align-items: center; gap: 0.35rem;
}
.mv-history-item .tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
}
.mv-history-pdf {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    color: var(--mv-muted); text-decoration: none;
    transition: all 0.15s;
}
.mv-history-pdf:hover { background: rgba(0,0,0,0.06); color: var(--mv-ink); }

/* Override the default .gws-pdf-preview-eye corner-overhang here — the
   history dropdown clips overflow, so position the eye INSIDE the row
   rather than outside the top-right edge. */
.mv-history-item .gws-pdf-preview-eye {
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
}

/* Report button with small preview eye on hover */
.mv-report-wrap {
    display: inline-flex; align-items: center; position: relative;
}
.mv-report-eye {
    position: absolute; top: -4px; right: -4px;
    display: none; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--mv-ink, #2C3E50); color: #fff;
    font-size: 0.55rem; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.mv-report-wrap:hover .mv-report-eye { display: flex; }

/* ── Tab row ─────────────────────────────────────────────────────── */

.mv-tabs {
    display: flex;
    gap: 0.15rem;
    border-bottom: 1.5px solid var(--mv-border);
    margin-bottom: 1.75rem;
    padding: 0 0.15rem;
    flex-wrap: wrap;
}
.mv-tab {
    background: transparent;
    border: none;
    padding: 0.9rem 1.1rem 1rem;
    font-family: var(--mv-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mv-muted);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--mv-transition), border-color var(--mv-transition);
    white-space: nowrap;
}
.mv-tab:hover { color: var(--mv-ink-soft); }
.mv-tab.active {
    color: var(--mv-ink);
    border-bottom-color: var(--mv-ink);
}
.mv-tab-count {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--mv-muted);
    background: var(--mv-paper-alt);
    border-radius: 999px;
    padding: 0.08rem 0.5rem;
    letter-spacing: 0.02em;
}
.mv-tab.active .mv-tab-count { color: var(--mv-ink); background: #e2e8f0; }

.mv-panel { display: none; animation: mv-fade-in 320ms ease-out; }
.mv-panel.active { display: block; }
@keyframes mv-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* ── Section primitives ─────────────────────────────────────────── */

.mv-section { margin-bottom: 2.5rem; }
.mv-section:last-child { margin-bottom: 0.5rem; }

.mv-section-head {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding-bottom: 0.7rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--mv-border);
}
.mv-section-num {
    font-family: var(--mv-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--mv-muted);
}
.mv-section-title {
    font-family: var(--mv-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--mv-ink);
    margin: 0;
}
.mv-section-kicker {
    font-family: var(--mv-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mv-muted);
    margin-left: auto;
}

/* Mobile section-head layout. The original 3-column row
   (§-num | title | kicker) collapses awkwardly under ~640px: the title
   gets sandwiched between two small chunks and the kicker often clips
   or overflows. Re-flow so the title leads on the left, § XX jumps to
   the far right via margin-left:auto, and the kicker drops to its own
   full-width line below the divider. */
@media (max-width: 640px) {
    .mv-section-head {
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0.6rem;
        row-gap: 0.25rem;
    }
    .mv-section-title {
        order: 1;
        flex: 1 1 auto;
        font-size: 1.2rem;
        min-width: 0;
    }
    .mv-section-num {
        order: 2;
        margin-left: auto;
    }
    .mv-section-kicker {
        order: 3;
        flex: 1 0 100%;
        margin-left: 0;
    }
}

.mv-prose {
    font-family: var(--mv-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mv-ink-soft);
    /* No max-width — let prose fill the container. Previous 68ch cap
       collapsed the commentary to ~55% on wide layouts, leaving dead
       whitespace on the right and emphasising soft-wrap artifacts. */
}
.mv-prose p { margin: 0 0 0.95em; }
.mv-prose p:last-child { margin-bottom: 0; }

.mv-card {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 1.5rem 1.65rem;
    box-shadow: var(--mv-shadow-sm);
}
/* Consistent vertical spacing between any direct children of a section.
   Uses * + * so grids (mv-pair / mv-quad) and cards get the same gap,
   and grid items don't get a sibling-margin applied across rows. */
.mv-section > * + * { margin-top: 1rem; }

.mv-card-label {
    font-family: var(--mv-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mv-muted);
    margin-bottom: 0.4rem;
}
.mv-card-title {
    font-family: var(--mv-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.7rem;
    color: var(--mv-ink);
}

/* ── Summary page (5-col asset class grid) ─────────────────────── */

.mv-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 1100px) { .mv-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .mv-summary-grid { grid-template-columns: 1fr; } }

.mv-summary-col {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 1.25rem 1.15rem 1.35rem;
    box-shadow: var(--mv-shadow-sm);
    display: flex;
    flex-direction: column;
}
.mv-summary-col-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--mv-border);
}
.mv-summary-col-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--mv-paper-alt);
    color: var(--mv-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}
.mv-summary-col-title {
    font-family: var(--mv-sans);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mv-ink);
}
.mv-summary-col-body {
    font-family: var(--mv-serif);
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--mv-ink-soft);
    flex: 1;
}

.mv-overview {
    background: linear-gradient(180deg, var(--mv-paper) 0%, var(--mv-paper-alt) 100%);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--mv-shadow-sm);
}
.mv-overview-label {
    font-family: var(--mv-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mv-muted);
    margin-bottom: 0.75rem;
}
.mv-overview-text {
    font-family: var(--mv-serif);
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--mv-ink);
    max-width: 78ch;
}
.mv-overview-text p { margin: 0 0 0.85em; }
.mv-overview-text p:last-child { margin-bottom: 0; }
.mv-overview-text p.pos {
    border-left: 3px solid var(--mv-ink);
    padding-left: 1rem;
    margin-top: 1.1rem;
    font-size: 0.96rem;
    color: var(--mv-ink-soft);
}

/* ── OW/N/UW table (refreshed) ──────────────────────────────────── */

.mv-ow {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    overflow: hidden;
    box-shadow: var(--mv-shadow-sm);
}
.mv-ow + .mv-ow { margin-top: 1rem; }
.mv-ow-head {
    padding: 0.95rem 1.35rem 0.55rem;
    border-bottom: 1px solid var(--mv-border);
}
.mv-ow-head-title {
    font-family: var(--mv-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mv-muted);
}
.mv-ow-head-labels {
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    padding: 0.65rem 1.35rem 0.5rem;
    font-family: var(--mv-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mv-muted);
    text-transform: uppercase;
}
.mv-ow-head-labels span:first-child { text-align: left; }
.mv-ow-head-labels .scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.mv-ow-row {
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    padding: 0.75rem 1.35rem;
    border-top: 1px solid var(--mv-border);
    transition: background 160ms;
}
.mv-ow-row:hover { background: var(--mv-paper-alt); }
.mv-ow-name {
    font-family: var(--mv-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mv-ink);
}
.mv-ow-rail {
    position: relative;
    height: 22px;
}
.mv-ow-track {
    position: absolute;
    top: 50%;
    left: 10%; right: 10%;
    height: 2px;
    background: var(--mv-border-strong);
    border-radius: 2px;
    transform: translateY(-50%);
}
.mv-ow-track::before,
.mv-ow-track::after,
.mv-ow-track span {
    content: '';
    position: absolute;
    top: 50%;
    width: 2px; height: 8px;
    background: var(--mv-border-strong);
    transform: translate(-50%, -50%);
}
.mv-ow-track::before { left: 0; }
.mv-ow-track::after  { left: 100%; }
.mv-ow-track span    { left: 50%; height: 12px; }
.mv-ow-dot {
    position: absolute;
    top: 50%;
    width: 14px; height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px var(--mv-paper), 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: left 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mv-ow-dot.overweight  { left: 90%; background: var(--mv-positive); }
.mv-ow-dot.neutral     { left: 50%; background: var(--mv-neutral); }
.mv-ow-dot.underweight { left: 10%; background: var(--mv-negative); }

.mv-ow-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 900px) { .mv-ow-double { grid-template-columns: 1fr; } }
.mv-ow-double .mv-ow + .mv-ow { margin-top: 0; }

/* ── Chart gallery ──────────────────────────────────────────────── */

/* All images for a section render BELOW the prose in a single
   flex-wrap row. Each figure's width comes from the inline style the
   renderer emits from img.width_pct (set via the editor's ⋮ menu) —
   so two 50% figures sit side-by-side, a single 100% stands alone,
   three 33% fit across, etc. Charts get to be the size the editor
   chose instead of being squeezed into a narrow sidebar slot. */
.mv-gallery {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-start;
}
.mv-gallery-empty {
    font-family: var(--mv-sans);
    font-size: 0.75rem;
    color: var(--mv-muted);
    font-style: italic;
    padding: 0.5rem 0;
}
.mv-figure {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 180ms, box-shadow 180ms;
    box-sizing: border-box;
    min-width: 0;
}
.mv-figure:hover { transform: translateY(-1px); box-shadow: var(--mv-shadow-md); }
.mv-figure img {
    display: block;
    width: 100%;
    height: auto;
    /* Generous max-height so a tall infographic scales down but a
       chart isn't cropped to a 160px thumbnail like the old layout did.
       object-fit: contain (not cover) keeps the whole chart visible. */
    max-height: 520px;
    object-fit: contain;
    background: var(--mv-paper-alt);
}
.mv-figure-meta {
    padding: 0.55rem 0.8rem 0.7rem;
    font-family: var(--mv-sans);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--mv-ink-soft);
}
.mv-figure-meta .cap { font-weight: 600; color: var(--mv-ink); }
.mv-figure-meta .src { color: var(--mv-muted); margin-top: 0.2rem; font-style: italic; }

/* Lightbox */
.mv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
    cursor: zoom-out;
}
.mv-lightbox.open { display: flex; }
.mv-lightbox img {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--mv-radius);
    box-shadow: var(--mv-shadow-lg);
}
.mv-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #f8fafc;
    font-family: var(--mv-sans);
    font-size: 0.85rem;
    text-align: center;
    max-width: 70%;
}

/* ── Macro cards ────────────────────────────────────────────────── */

.mv-macro-card {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 1.85rem 2.1rem 1.95rem;
    box-shadow: var(--mv-shadow-sm);
}
.mv-macro-card + .mv-macro-card { margin-top: 1.25rem; }
.mv-macro-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--mv-border);
}
.mv-macro-title {
    font-family: var(--mv-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--mv-ink);
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.65rem;
}
.mv-macro-title .flag { font-size: 1rem; opacity: 0.75; }
.mv-macro-kicker {
    font-family: var(--mv-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mv-muted);
}

/* ── Bond detail subsections ────────────────────────────────────── */

.mv-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
}
.mv-pair > .mv-card { margin: 0; height: 100%; }
@media (max-width: 900px) { .mv-pair { grid-template-columns: 1fr; } }

.mv-quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
}
.mv-quad > .mv-card { margin: 0; height: 100%; }
@media (max-width: 900px) { .mv-quad { grid-template-columns: 1fr; } }

.mv-weight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    font-family: var(--mv-sans);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 0.6rem;
}
.mv-weight-chip.overweight  { background: rgba(5, 150, 105, 0.12); color: var(--mv-positive); }
.mv-weight-chip.neutral     { background: rgba(100, 116, 139, 0.15); color: var(--mv-ink-soft); }
.mv-weight-chip.underweight { background: rgba(220, 38, 38, 0.12); color: var(--mv-negative); }

/* ── Empty / error states ──────────────────────────────────────── */

.mv-empty {
    padding: 3rem 2rem;
    text-align: center;
    font-family: var(--mv-sans);
    color: var(--mv-muted);
    background: var(--mv-paper);
    border: 1px dashed var(--mv-border);
    border-radius: var(--mv-radius-lg);
}
.mv-empty h5 {
    font-family: var(--mv-serif);
    color: var(--mv-ink);
    margin: 0.5rem 0;
}
.mv-loading {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--mv-muted);
    font-family: var(--mv-sans);
    font-size: 0.85rem;
}
.mv-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 0.5rem;
    border: 2px solid var(--mv-border-strong);
    border-top-color: var(--mv-ink);
    border-radius: 50%;
    animation: mv-spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes mv-spin { to { transform: rotate(360deg); } }

/* ── Ask AI chat drawer ─────────────────────────────────────────── */

.mv-chat {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: var(--mv-paper);
    border-left: 1px solid var(--mv-border);
    box-shadow: var(--mv-shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}
.mv-chat.open { transform: translateX(0); }
.mv-chat-head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--mv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.mv-chat-head-title {
    font-family: var(--mv-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mv-ink);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.mv-chat-head-title .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mv-positive);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    animation: mv-chat-pulse 2.2s ease-in-out infinite;
}
@keyframes mv-chat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.mv-chat-head button {
    background: transparent;
    border: none;
    color: var(--mv-muted);
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 160ms;
}
.mv-chat-head button:hover { color: var(--mv-ink); background: var(--mv-paper-alt); }
.mv-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 1.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.mv-chat-msg {
    max-width: 92%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-family: var(--mv-sans);
    font-size: 0.86rem;
    line-height: 1.55;
}
.mv-chat-msg.user {
    align-self: flex-end;
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
    border-bottom-right-radius: 4px;
}
.mv-chat-msg.assistant {
    align-self: flex-start;
    background: var(--mv-paper-alt);
    color: var(--mv-ink);
    border: 1px solid var(--mv-border);
    border-bottom-left-radius: 4px;
}
.mv-chat-msg.assistant.error {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--mv-negative);
}
.mv-chat-msg .citation {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(44, 62, 80, 0.08);
    color: var(--mv-ink);
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0.15rem;
    border: 1px solid var(--mv-border);
    white-space: nowrap;
}
.mv-chat-empty {
    color: var(--mv-muted);
    font-family: var(--mv-sans);
    font-size: 0.82rem;
    text-align: center;
    padding: 2rem 1rem;
    line-height: 1.5;
}
.mv-chat-empty .big { font-size: 1.5rem; margin-bottom: 0.5rem; }
.mv-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}
.mv-chat-suggestion {
    text-align: left;
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: var(--mv-sans);
    font-size: 0.78rem;
    color: var(--mv-ink-soft);
    cursor: pointer;
    transition: all 160ms;
}
.mv-chat-suggestion:hover {
    border-color: var(--mv-ink);
    color: var(--mv-ink);
    background: var(--mv-paper-alt);
}
.mv-chat-typing {
    align-self: flex-start;
    font-family: var(--mv-sans);
    font-size: 0.78rem;
    color: var(--mv-muted);
    padding: 0.5rem 0.25rem;
    font-style: italic;
}
.mv-chat-foot {
    padding: 0.85rem 1.1rem 1.1rem;
    border-top: 1px solid var(--mv-border);
    background: var(--mv-paper);
}
.mv-chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--mv-paper-alt);
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    transition: border-color 160ms;
}
.mv-chat-input-wrap:focus-within { border-color: var(--mv-ink); }
.mv-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--mv-sans);
    font-size: 0.88rem;
    color: var(--mv-ink);
    padding: 0.4rem 0.5rem;
    max-height: 140px;
}
.mv-chat-send {
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
    border: none;
    border-radius: 8px;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 160ms;
}
.mv-chat-send:hover:not(:disabled) { background: #1e293b; }
.mv-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.mv-chat-reset {
    display: block;
    margin-top: 0.55rem;
    background: none;
    border: none;
    color: var(--mv-muted);
    font-family: var(--mv-sans);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
}
.mv-chat-reset:hover { color: var(--mv-ink); text-decoration: underline; }
.mv-chat-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms;
}
.mv-chat-scrim.open { opacity: 1; pointer-events: auto; }

/* ── AI Edit drawer (power-user; separate from public Ask-the-View) ── */
.mv-chat.mv-chat-edit {
    /* Inherits all the .mv-chat styles — size, slide-in, header/body/foot
       layout. Overrides below distinguish it as an editor tool. */
}
.mv-chat.mv-chat-edit .mv-chat-head-title {
    color: #2c3e50;
}
.mv-chat.mv-chat-edit .mv-chat-head-title i {
    color: #3B7DDD;
    font-size: 0.95em;
}
.mv-chat-edit-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.4;
}
.mv-chat-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.mv-chat-edit-applied {
    font-size: 0.78rem;
    color: #059669;
    font-weight: 600;
    margin-top: 6px;
}
.mv-chat-edit-discarded {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* ── Manage panel ───────────────────────────────────────────────── */

.mv-manage {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 1.75rem 2rem 2rem;
    box-shadow: var(--mv-shadow-sm);
}
.mv-manage-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--mv-border);
}
.mv-manage-head h4 {
    font-family: var(--mv-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--mv-ink);
}
.mv-manage-head .actions { display: flex; gap: 0.5rem; }
.mv-btn {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border-strong);
    color: var(--mv-ink);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--mv-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 160ms;
}
.mv-btn:hover { border-color: var(--mv-ink); }
.mv-btn.primary {
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
    border-color: var(--mv-cover-bg);
}
.mv-btn.primary:hover { background: #1e293b; border-color: #1e293b; }
.mv-btn.danger { color: var(--mv-negative); border-color: rgba(220, 38, 38, 0.3); }
.mv-btn.danger:hover { background: rgba(220, 38, 38, 0.08); }
.mv-btn.subtle { border-color: transparent; background: transparent; color: var(--mv-muted); }
.mv-btn.subtle:hover { background: var(--mv-paper-alt); color: var(--mv-ink); }

.mv-issue-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.mv-issue-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    transition: all 160ms;
}
.mv-issue-row:hover { border-color: var(--mv-border-strong); background: var(--mv-paper-alt); }
.mv-issue-row.current {
    border-color: var(--mv-ink);
    background: rgba(15, 23, 42, 0.03);
}
.mv-issue-num {
    font-family: var(--mv-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mv-ink);
    background: var(--mv-paper-alt);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--mv-border);
    min-width: 52px;
    text-align: center;
}
.mv-issue-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mv-issue-title {
    font-family: var(--mv-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mv-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mv-issue-date {
    font-family: var(--mv-sans);
    font-size: 0.74rem;
    color: var(--mv-muted);
}
.mv-issue-status {
    font-family: var(--mv-sans);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.mv-issue-status.draft { background: rgba(217, 119, 6, 0.12); color: var(--mv-accent-hot); }
.mv-issue-status.published { background: rgba(5, 150, 105, 0.1); color: var(--mv-positive); }
.mv-issue-status.current { background: var(--mv-cover-bg); color: var(--mv-cover-fg); }

.mv-issue-row-actions { display: flex; gap: 0.35rem; }

/* Editor form */
.mv-editor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mv-editor-section {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    padding: 1.5rem 1.75rem;
}
.mv-editor-section h5 {
    font-family: var(--mv-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mv-ink);
    margin: 0 0 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mv-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mv-editor-section h5 .count {
    font-family: var(--mv-mono);
    font-size: 0.7rem;
    color: var(--mv-muted);
    font-weight: 500;
}
.mv-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}
.mv-field label {
    font-family: var(--mv-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mv-muted);
}
.mv-field input[type="text"],
.mv-field input[type="date"],
.mv-field textarea {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-family: var(--mv-sans);
    font-size: 0.88rem;
    color: var(--mv-ink);
    transition: border-color 160ms;
}
.mv-field input:focus,
.mv-field textarea:focus {
    outline: none;
    border-color: var(--mv-ink);
}
.mv-field textarea { resize: vertical; min-height: 120px; font-family: var(--mv-serif); line-height: 1.6; }
.mv-field-row {
    display: grid;
    grid-template-columns: 100px 1fr 140px;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--mv-border);
}
.mv-field-row:last-child { border-bottom: none; }
/* Match rule for <select> and freeform <input> — the Region positioning
   row uses <input type="text"> because region names are freeform while
   the other three categories (sector / fi_bond / fi_duration) use a
   canonical <select>. Without this second selector, the input inherits
   the browser default font and looks visibly "weird" next to the three
   selects that already specify font-family / size. */
.mv-field-row select,
.mv-field-row input[type="text"],
.mv-field-row input[type="number"] {
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-family: var(--mv-sans);
    font-size: 0.78rem;
}
.mv-field-row .mv-btn.subtle { padding: 0.3rem 0.6rem; }

.mv-commentary-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.mv-commentary-item {
    border: 1px solid var(--mv-border);
    border-radius: 8px;
    overflow: hidden;
}
.mv-commentary-item summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: var(--mv-paper-alt);
    font-family: var(--mv-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mv-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mv-commentary-item summary .len {
    margin-left: auto;
    font-family: var(--mv-mono);
    font-size: 0.7rem;
    color: var(--mv-muted);
    font-weight: 500;
}
.mv-commentary-item summary .len.filled { color: var(--mv-positive); }
.mv-commentary-item[open] summary { border-bottom: 1px solid var(--mv-border); }
.mv-commentary-body { padding: 1rem 1.1rem; }
.mv-commentary-body textarea {
    width: 100%;
    min-height: 160px;
    background: var(--mv-paper);
    border: 1px solid var(--mv-border);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    font-family: var(--mv-serif);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--mv-ink);
    resize: vertical;
}
.mv-commentary-body textarea:focus { outline: none; border-color: var(--mv-ink); }

/* Image upload zone */
.mv-upload {
    margin-top: 0.9rem;
    border: 1.5px dashed var(--mv-border-strong);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: var(--mv-paper-alt);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.mv-upload label {
    font-family: var(--mv-sans);
    font-size: 0.78rem;
    color: var(--mv-ink-soft);
}
.mv-upload input[type="file"] {
    font-family: var(--mv-sans);
    font-size: 0.74rem;
}
.mv-upload-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-top: 0.6rem;
    width: 100%;
}
.mv-upload-thumb {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.7rem;
    align-items: stretch;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--mv-border);
    border-radius: 8px;
    background: var(--mv-paper);
    font-family: var(--mv-sans);
    font-size: 0.74rem;
    color: var(--mv-ink-soft);
    box-shadow: var(--mv-shadow-sm);
    position: relative;  /* anchors .mv-thumb-menu-btn */
}

/* ⋮ kebab — visible entry point for the right-click context menu.
   Hidden until the thumb is hovered so the grid stays clean. On mobile
   (no hover) it's always visible — otherwise users have no way in. */
.mv-thumb-menu-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--mv-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mv-ink-soft);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    z-index: 2;
}
.mv-upload-thumb:hover .mv-thumb-menu-btn,
.mv-thumb-menu-btn:focus {
    display: inline-flex;
}
.mv-thumb-menu-btn:hover {
    background: #fff;
    color: var(--mv-ink);
    border-color: var(--mv-ink-soft);
}
.mv-upload-thumb > img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--mv-paper-alt);
}
.mv-upload-thumb .mv-img-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.mv-upload-thumb .mv-img-title,
.mv-upload-thumb .mv-img-source {
    width: 100%;
    min-width: 0;
    background: var(--mv-paper-alt);
    border: 1px solid var(--mv-border);
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
    font-family: var(--mv-sans);
    font-size: 0.74rem;
    color: var(--mv-ink);
}
.mv-upload-thumb .mv-img-title {
    font-weight: 600;
}
.mv-upload-thumb .mv-img-source {
    font-size: 0.7rem;
    color: var(--mv-ink-soft);
    font-style: italic;
}
.mv-upload-thumb input:focus {
    outline: none;
    border-color: var(--mv-ink);
    background: var(--mv-paper);
}
/* Image actions (resize / caption / move / delete) moved to the shared
   right-click context menu (gws_image_context_menu.js) as of 2026-04.
   The S/M/L pill toolbar, up/down arrows, and inline × button were
   removed from the thumb. Thumb now shows just the image + caption/
   source inputs, with a "Right-click for options" tooltip. */
.mv-upload-thumb {
    cursor: context-menu;
}

/* Mobile: one image per row in the public gallery. Context menu still
   usable via long-press on touch. Kebab always visible — no hover on
   touch devices, and users still need a way to open the menu. */
/* ── Tablet (incl. iPad portrait 768–834px) ──────────────────────
   The masthead and manage panel previously had NO breakpoint between
   the desktop layout and the 700px phone rules, so iPad portrait got
   the full desktop layout squeezed — a cramped header (dev: "se ve
   compacto") and manage/issue-row buttons overflowing their box
   (dev: "los botones salen del espacio"). Stack both at <=900. */
@media (max-width: 900px) {
    /* Header: drop the 1fr/auto two-column grid to a single column so
       the title gets full width and the action buttons sit on their own
       row, left-aligned, free to wrap instead of colliding with title. */
    .mv-masthead {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1.25rem 1.35rem;
        align-items: start;
    }
    .mv-actions { justify-content: flex-start; }

    /* Manage panel: title + actions stack; buttons wrap within the row. */
    .mv-manage { padding: 1.25rem 1.1rem 1.4rem; }
    .mv-manage-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .mv-manage-head .actions { flex-wrap: wrap; }

    /* Issue rows: the 4-col grid (num | meta | status | actions) can't
       hold 4–6 action buttons on tablet. Reflow to num+meta on row 1,
       status + wrapping action buttons on row 2. */
    .mv-issue-row {
        grid-template-columns: auto 1fr;
        gap: 0.5rem 0.85rem;
    }
    .mv-issue-status { justify-self: start; grid-column: 1 / -1; }
    .mv-issue-row-actions { grid-column: 1 / -1; flex-wrap: wrap; }
}

@media (max-width: 700px) {
    /* On phones, every figure spans the full container regardless of
       the editor's chosen width — narrow viewport defeats the multi-
       column layout anyway. */
    .mv-gallery .mv-figure {
        width: 100% !important;
    }
    .mv-thumb-menu-btn {
        display: inline-flex;
    }
}

.mv-editor-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--mv-paper-alt);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    position: sticky;
    bottom: 1rem;
    box-shadow: var(--mv-shadow-md);
}
.mv-editor-foot .status { font-family: var(--mv-sans); font-size: 0.78rem; color: var(--mv-muted); }
.mv-editor-foot .status.dirty { color: var(--mv-accent-hot); }
.mv-editor-foot .actions { display: flex; gap: 0.5rem; }

/* Toast */
.mv-toast {
    position: fixed;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 1rem));
    background: var(--mv-cover-bg);
    color: var(--mv-cover-fg);
    padding: 0.85rem 1.35rem;
    border-radius: 10px;
    font-family: var(--mv-sans);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--mv-shadow-lg);
    z-index: 10000;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mv-toast.show { transform: translateX(-50%) translateY(0); }
.mv-toast.error { background: var(--mv-negative); }
.mv-toast.success { background: var(--mv-positive); }
/* Info / working: the default navy bg is invisible over the navy footer, so
   these get a light surface + dark text + border. */
.mv-toast.info, .mv-toast.working {
    background: #ffffff;
    color: var(--mv-cover-bg);
    border: 1px solid rgba(15, 23, 42, 0.12);
}
/* Upload extraction progress (stay-on-page while the AI reads the PDF) */
.mv-extract-progress {
    max-width: 520px; margin: 4rem auto; text-align: center;
    padding: 2.5rem 2rem; background: var(--mv-surface, #ffffff);
    border: 1px solid var(--mv-border, #e2e8f0); border-radius: 14px;
    box-shadow: var(--mv-shadow-lg);
}
.mv-extract-progress h4 { margin: 1.1rem 0 0.5rem; color: var(--mv-cover-bg); }
.mv-extract-progress p { margin: 0 0 0.5rem; color: var(--mv-text-mute, #64748b); font-size: 0.9rem; }
.mv-extract-elapsed { font-variant-numeric: tabular-nums; }
.mv-extract-progress .mv-btn { margin-top: 1rem; }
.mv-extract-spinner {
    width: 42px; height: 42px; margin: 0 auto; border-radius: 50%;
    border: 3px solid var(--mv-border, #e2e8f0);
    border-top-color: var(--mv-cover-bg);
    animation: mv-extract-spin 0.8s linear infinite;
}
@keyframes mv-extract-spin { to { transform: rotate(360deg); } }
