/* ─────────────────────────────────────────
   GRAPHITE — monochrome, minimalist theme
   Palette, 1px borders, flat surfaces.
───────────────────────────────────────── */
:root {
    --color-bg:            #F2F2F3;/*#fafafa;*/
    --color-surface:       #ffffff;
    --color-surface-muted: #f4f4f5;

    /* Graphite scale replaces the old blue accents */
    --color-primary:       #1B3B56; /*#18181b;*/
    --color-primary-hover: #3f3f46;
    --color-secondary:     #52525b;
    --color-accent:        #18181b;

    /* Status hues kept (muted) — they carry meaning, not decoration */
    --color-success:       #16a34a;
    --color-warning:       #ca8a04;
    --color-danger:        #dc2626;

    --color-text:          #27272a;
    --color-text-muted:    #71717a;
    --color-border:        #e4e4e7;
    --color-border-strong: #d4d4d8;

    --color-nav-bg:        #18181b;
    --color-nav-text:      #fafafa;
    --color-admin-bg:      #f4f4f5;

    --radius:              10px;
    --radius-pill:         999px;
    --shadow:             none;
    --font:               'Inter', 'Segoe UI', sans-serif;

    --chequea-green:     #89C1B5;
    --chequea-blue:      #1B3B56;

    /* Accent palette — added to lift the graphite base with some color */
    --color-cta:         #BF1B68; /* magenta — primary actions & title accents */
    --color-cta-hover:   #9e1556;
    --color-electric:    #00B1FF; /* bright blue — focus, hover, active states */
    --color-teal:        #69C2B6; /* teal — soft positive accent */
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(191, 27, 104, 0.18); }

/* Font Awesome icons sit slightly smaller than text by default */
.btn i, nav i, .brand i { font-size: 0.95em; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
    background: var(--color-surface);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 90px;
    border-bottom: 1px solid var(--color-border);
    /* Always visible while scrolling. Below the chat widget (9000+) and the
       modal/loading overlays (9998/9999), which must cover the whole page. */
    position: sticky;
    top: 0;
    z-index: 500;
    flex-shrink: 0;
}

.navbar .brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar .brand-logo {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 5px;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: var(--color-secondary);
    margin-left: 1.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar nav a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-electric);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5rem;
}

.navbar .admin-badge {
    background: var(--color-primary);
    color: var(--color-nav-text);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.card-sm {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chequea-blue);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input, select, textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-electric);
    box-shadow: 0 0 0 3px rgba(0, 177, 255, 0.18);
    background: #fff;
}

textarea { resize: vertical; min-height: 100px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
    font-family: var(--font);
    line-height: 1.4;
}

.btn-primary   { background: var(--color-cta); color: #fff; border-color: var(--color-cta); }
.btn-primary:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); }
.btn-success   { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { opacity: 0.9; }
.btn-danger    { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { opacity: 0.9; }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-surface-muted); border-color: var(--color-secondary); }
.btn-sm        { padding: 0.3rem 0.85rem; font-size: 0.78rem; }

/* ─────────────────────────────────────────
   ALERTS
───────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
}
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info    { background: var(--color-surface-muted); color: var(--color-text); border-color: var(--color-border); }

/* ─────────────────────────────────────────
   TABLES
───────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.65rem 1rem; background: var(--color-surface-muted); color: var(--color-secondary); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--color-border); font-weight: 600; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────
   BADGES  (status hues kept but muted)
───────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}
.badge-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.badge-warning { background: #fefce8; color: #a16207; border-color: #fde68a; }
.badge-info    { background: var(--color-surface-muted); color: var(--color-secondary); border-color: var(--color-border); }
.badge-muted   { background: var(--color-surface-muted); color: var(--color-text-muted); border-color: var(--color-border); }
.badge-primary   { background: var(--color-primary); color: #fff; }
.badge-secondary { background: var(--color-surface-muted); color: var(--color-secondary); border-color: var(--color-border); }

/* ─────────────────────────────────────────
   CATEGORY (VERDICT) PILLS — shared by Repositorio & Inicio
   Scoped to .cat-badge so the library's filter-pill tints are unaffected.
───────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cat-badge.cat-falso             { background: #CB0C22; color: #fff; }
.cat-badge.cat-verdadero         { background: #0DCB33; color: #06340f; }
.cat-badge.cat-enganoso          { background: #005586; color: #fff; }
.cat-badge.cat-fuera-de-contexto { background: #BC43CA; color: #fff; }
.cat-badge.cat-fotomontaje       { background: #69C2B6; color: #0e463e; }

/* ─────────────────────────────────────────
   PAGE TITLE
───────────────────────────────────────── */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.page-title span {
    color: var(--color-cta);
}

/* ─────────────────────────────────────────
   STATS ROW
───────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 160px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-teal);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cta);
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* ─────────────────────────────────────────
   SCRIPT OUTPUT
───────────────────────────────────────── */
.script-output {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* ─────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.3px;
}

.auth-card p.subtitle {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────
   FORM GRID
───────────────────────────────────────── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .stats-row   { flex-direction: column; }
}

/* ─────────────────────────────────────────
   TOKEN USAGE BAR
───────────────────────────────────────── */
.token-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────
   ADMIN SECTION
───────────────────────────────────────── */
.admin-section {
    background: var(--color-admin-bg);
    border: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────
   AI CHAT WIDGET (pages with #chat-widget)
───────────────────────────────────────── */
.chat-toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 4.9rem; /* clear the always-visible footer (~64px tall) */
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-cta, #BF1B68);
    background: var(--color-cta, #BF1B68);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.chat-toggle:hover { background: var(--color-cta-hover, #9e1556); }

.chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 4.9rem; /* clear the always-visible footer */
    z-index: 9001;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 540px;
    /* Keep the panel between the sticky navbar (90px) and the footer. */
    max-height: calc(100vh - 90px - 6.5rem);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    background: var(--color-nav-bg, #18181b);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.chat-header-actions { display: flex; gap: 0.25rem; }
.chat-hbtn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 7px;
    border-radius: 6px;
}
.chat-hbtn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.chat-ctx {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    user-select: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: #fafafa;
}
.chat-msg {
    max-width: 88%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-msg-user {
    align-self: flex-end;
    background: var(--color-primary, #1B3B56);
    color: #fff;
    border-bottom-right-radius: 3px;
}
.chat-msg-assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-bottom-left-radius: 3px;
}
.chat-msg-typing { color: var(--color-text-muted); font-style: italic; }
/* Sent/received time, tucked at the bottom-right of each bubble. Hovering it
   shows the full date. Kept small and low-contrast so it never competes with
   the message itself. */
.chat-msg-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    line-height: 1;
    text-align: right;
    opacity: 0.6;
    cursor: default;
}
.chat-msg-user .chat-msg-time      { color: #fff; }
.chat-msg-assistant .chat-msg-time { color: var(--color-text-muted); }
.chat-empty {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 1rem;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--color-border);
    background: #fff;
}
.chat-input-row textarea {
    flex: 1;
    resize: none;
    min-height: 42px;
    max-height: 180px;   /* auto-grow cap — beyond this it scrolls */
    overflow-y: auto;
    font-size: 0.86rem;
    padding: 0.5rem 0.65rem;
}
.chat-send {
    align-self: flex-end;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--color-cta, #BF1B68);
    background: var(--color-cta, #BF1B68);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.chat-send:hover { background: var(--color-cta-hover, #9e1556); }
.chat-send:disabled { opacity: 0.55; cursor: default; }

/* ── Chat panel resize handle (top-left corner) ── */
.chat-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 3;
    touch-action: none;
}
.chat-resize-handle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.65);
    border-left: 2px solid rgba(255, 255, 255, 0.65);
    border-top-left-radius: 3px;
}
.chat-resize-handle:hover::after {
    border-color: #fff;
}

/* ── AI-generated content disclaimer ── */
.ai-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.45rem 0.75rem;
    margin-top: 0.75rem;
    line-height: 1.45;
}
.ai-disclaimer i { color: var(--color-warning); flex-shrink: 0; }

/* Compact variant for the chat panel footer */
.chat-disclaimer {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.3rem 0.75rem 0.5rem;
    background: #fff;
    line-height: 1.35;
}

/* ─────────────────────────────────────────
   SCRIPT SECTIONS + PRODUCCIÓN TIMELINE
   Shared by the script generator and the Repositorio modal (ScriptView).
───────────────────────────────────────── */
.script-sections-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.script-section {
    padding: 1rem 1.25rem;
    background: #fff;
}
.script-section + .script-section {
    border-top: 1px solid #e2e8f0;
}
.script-sec-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    user-select: none;
}
.label-hook       { color: var(--color-secondary); }
.label-desarrollo { color: var(--color-secondary); }
.label-cta        { color: var(--color-secondary); }
.label-produccion { color: var(--color-cta, #BF1B68); }
.script-section-body {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--color-text);
    white-space: pre-wrap;
}
.script-section-body[contenteditable="true"] {
    outline: none;
    border-radius: 6px;
    transition: background 0.12s, box-shadow 0.12s;
}
.script-section-body[contenteditable="true"]:hover { background: #fafafa; }
.script-section-body[contenteditable="true"]:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 177, 255, 0.25);
}

/* ── PRODUCCIÓN filming-guide timeline ── */
.prod-timeline {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
}
.prod-items[contenteditable="true"] {
    outline: none;
    border-radius: 6px;
    transition: background 0.12s, box-shadow 0.12s;
}
.prod-items[contenteditable="true"]:hover { background: #fafafa; }
.prod-items[contenteditable="true"]:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 177, 255, 0.25);
}
.prod-stage {
    display: flex;
    gap: 0.9rem;
}
.prod-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 34px;
}
.prod-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-electric, #00B1FF);
    color: var(--color-electric, #00B1FF);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.prod-stage:not(:last-child) .prod-rail::after {
    content: '';
    flex: 1;
    width: 2px;
    background: var(--color-border);
    margin: 4px 0;
}
.prod-content {
    padding-bottom: 1.1rem;
    min-width: 0;
    flex: 1;
}
.prod-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}
.prod-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-secondary);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 1px 8px;
    letter-spacing: 0.03em;
}
.prod-items {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.prod-items li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}
.prod-items li::marker { color: var(--color-electric, #00B1FF); }

/* ─────────────────────────────────────────
   SITE FOOTER (copyright) — on every page
───────────────────────────────────────── */
/* Flex column so the footer can sit at the bottom on short pages. */
body { display: flex; flex-direction: column; }
body > .site-footer { margin-top: auto; }

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    /* Always visible: as the last flex child of <body>, sticky bottom pins it
       to the viewport while taller content scrolls underneath. Same stacking
       level as the navbar — below chat widget and modal overlays. */
    position: sticky;
    bottom: 0;
    z-index: 500;
    flex-shrink: 0;
}
.site-footer-logo {
    height: 26px;
    width: auto;
    opacity: 0.85;
}

/* ─────────────────────────────────────────
   Generating overlay — shown while the server generates a script from an
   already-redacted verification. Those flows submit a hidden form, so without
   this the page just sits there for the whole LLM wait with no feedback.
   Mirrors the post generator's own #loading-overlay look; shared here because
   both the post result view and the Repositorio cards need it.
   ───────────────────────────────────────── */
.gen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.gen-box {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.gen-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: gen-spin 0.75s linear infinite;
    margin: 0 auto 1.25rem;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}
.gen-msg {
    font-size: 0.88rem;
    color: #64748b;
    min-height: 1.4em;
    transition: opacity 0.3s;
}
