/* ==========================================================================
   SANIFUCV TALENT ARCHITECT DESIGN SYSTEM
   By Emmanuel Israel Mafabi · Mafabi Innovations
   Typography: Dynapuff font for titles and Bold text and Sniglet for Body text and all other text, Megrim font is reserved for: MAFABI text.
   Palette: Canvas (#EDF0F5), Surface (#FFFFFF), Cool Blue (#1B6EF3), Cream (#F4EFE8)
   Typographic Scale: 0.93rem (labels), 0.85rem (standard), 0.82rem (hints)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fascinate&family=Megrim&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   01. DESIGN TOKENS & BASE RESET (Typography & Sniglet Legibility)
   ========================================================================== */

:root {
    /* Background Canvas & Surfaces */
    --bg-canvas: #edf0f5;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafd;
    --bg-cream: #f4efe8;
    --bg-cream-strong: #e9e1d4;

    /* Google Brand Cool Blue Palette */
    --google-blue: #1b6ef3;
    --google-blue-deep: #155ad8;
    --google-blue-hover: #165ec9;
    --google-blue-active: #1350ac;
    --google-blue-surface: #eef4fe;
    --google-blue-soft: #dfeeff;

    /* Charcoal / Slate Text Hierarchy */
    --text-main: #1f242e;
    --text-muted: #5f6368;
    --text-subtle: #80868b;

    /* Borders */
    --border-color: #dfe3e8;
    --border-subtle: #e8eaed;
    --border-focus: #1b6ef3;
    --border-tactile: rgba(210, 204, 194, 0.94);

    /* Status Colors */
    --status-good: #137333;
    --status-good-surface: #e6f4ea;
    --status-warn: #e37400;
    --status-warn-surface: #fef7e0;
    --status-crit: #d93025;
    --status-crit-surface: #fce8e6;

    /* Status Depleted Lo-Fi Rose Palette */
    --depleted-rose: #c0392b;
    --depleted-rose-deep: #a93224;
    --depleted-rose-surface: #fdf2f0;
    --depleted-rose-soft: #fae4e1;
    --depleted-rose-border: #f1cbc6;
    --depleted-rose-text: #962d22;
    --shadow-3d-depleted: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(140, 35, 25, 0.32);

    /* FontFamily */
    --sanifucv-default-font: "Sniglet", system-ui, -apple-system, sans-serif;
    --sanifucv-mafabi-font: 'Megrim', cursive;
    --sanifucv-title-font: "DynaPuff", system-ui, -apple-system, sans-serif;

    /* Strict Typographic Sizes */
    --font-max: 0.93rem;
    --font-mid: 0.85rem;
    --font-min: 0.82rem;
    --font-extra: 1.5rem;

    /* Border Radiuses */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    /* Tactile 3D Shadows & Highlights */
    --shadow-subtle: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 0 rgba(221, 226, 232, 0.8);
    --shadow-card: 0 1px 3px 0 rgba(60, 64, 67, 0.08), 0 4px 12px 0 rgba(60, 64, 67, 0.04);
    --shadow-hover: 0 4px 14px 0 rgba(27, 110, 243, 0.22);
    --shadow-float: 0 8px 24px -4px rgba(60, 64, 67, 0.15);
    --shadow-modal: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
    --shadow-3d-primary: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(14, 75, 183, 0.34);
    --shadow-3d-secondary: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 0 rgba(188, 181, 172, 0.8);
    --shadow-3d-soft: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 18px rgba(15, 23, 42, 0.08), 0 2px 0 rgba(215, 220, 228, 0.9);
    --shadow-focus: 0 0 0 4px rgba(27, 110, 243, 0.16);

    /* Form & Input Tactile Defaults */
    --input-bg-default: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);
    --input-bg-hover: linear-gradient(180deg, #ffffff 0%, #f4ede3 100%);
    --input-border-default: rgba(210, 204, 194, 0.94);
    --input-border-hover: rgba(131, 141, 151, 0.9);
    --input-shadow-default: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(210, 204, 194, 0.4), 0 1px 2px rgba(31, 36, 46, 0.04);

    /* Motion family */
    --ease-sweet: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    font-family: inherit;

    outline: none;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7bb9ff 0%, #2b7ef8 38%, #145fd6 100%);

    border: 1px solid rgba(19, 80, 172, 0.35);
    border-radius: 999px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(13, 72, 168, 0.28), 0 2px 6px rgba(27, 110, 243, 0.18);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8ec1ff 0%, #2a7af5 40%, #1050c0 100%);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 0 rgba(13, 72, 168, 0.3), 0 3px 8px rgba(27, 110, 243, 0.22);
}

body {
    background:
        radial-gradient(circle at top left, rgba(27, 110, 243, 0.08), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, var(--bg-canvas) 100%);

    color: var(--text-main);
    font-family: var(--sanifucv-default-font);
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.012em;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    font-family: var(--sanifucv-title-font);
    font-weight: 600;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

button,
input,
select,
textarea {
    transition: box-shadow 0.2s var(--ease-sweet), transform 0.18s var(--ease-sweet), border-color 0.2s var(--ease-sweet), background 0.2s var(--ease-sweet);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;

    box-shadow: var(--shadow-focus);
}

.hidden {
    display: none !important;
}

/* Material Symbols Outlined Adjustments */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Animations */
@keyframes soft-pop {
    0% {
        transform: translateY(0) scale(0.98);
    }

    60% {
        transform: translateY(-1px) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes gentle-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   02. REUSABLE COMPONENT: BUTTONS & ACTIONS
   ========================================================================== */

.btn-pill-primary {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);
    border-radius: var(--radius-pill);

    color: #ffffff;
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    cursor: pointer;

    box-shadow: var(--shadow-3d-primary);

    padding: 0 1.55rem;

    transition: all 0.2s var(--ease-sweet);
    transform-origin: center bottom;

    height: 42px;
}

.btn-pill-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #69a6ff 0%, #2f80f8 42%, #1a62d7 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.46), inset 0 -3px 0 rgba(14, 75, 183, 0.26), 0 12px 22px rgba(27, 110, 243, 0.24), 0 2px 1px rgba(17, 95, 204, 0.5);

    transform: translateY(-2px);
}

.btn-pill-primary:active:not(:disabled) {
    background: linear-gradient(180deg, #1d69e8 0%, #165ed9 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(14, 75, 183, 0.18), 0 2px 1px rgba(17, 95, 204, 0.5);

    transform: translateY(1px) scale(0.99);
}

.btn-pill-primary:disabled {
    background: linear-gradient(180deg, #dfe4eb 0%, #ced4dd 100%);

    border-color: rgba(164, 172, 181, 0.9);

    color: #f7f8fa;

    cursor: not-allowed;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 rgba(177, 184, 192, 0.7);
    opacity: 0.8;
}

.btn-pill-secondary {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    padding: 0 1.35rem;

    transition: all 0.2s var(--ease-sweet);

    height: 40px;
}

.btn-pill-secondary:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffffff 0%, #f8f3ed 100%);

    border-color: rgba(131, 141, 151, 0.9);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -3px 0 rgba(192, 179, 164, 0.74), 0 12px 18px rgba(52, 61, 72, 0.08), 0 2px 1px rgba(218, 212, 201, 0.9);

    transform: translateY(-2px);
}

.btn-pill-secondary:active:not(:disabled) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(192, 179, 164, 0.7), 0 2px 1px rgba(218, 212, 201, 0.9);

    transform: translateY(1px) scale(0.99);
}

.btn-pill-secondary:disabled {
    color: #8d8d8d;

    cursor: not-allowed;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 rgba(204, 199, 192, 0.7);
    opacity: 0.72;
}

.btn-pill-subtle {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: var(--font-min);
    font-weight: 400;
    letter-spacing: 0.015em;
    white-space: nowrap;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 rgba(210, 204, 194, 0.75);

    padding: 0 1.05rem;

    transition: all 0.2s var(--ease-sweet);

    height: 38px;
    flex-shrink: 0;
}

.btn-pill-subtle .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.btn-pill-subtle:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4ede3 100%);

    border-color: rgba(165, 155, 140, 0.95);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 3px 0 rgba(195, 188, 178, 0.9);

    transform: translateY(-1px);
}

.btn-pill-subtle:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(195, 188, 178, 0.8);

    transform: translateY(1px) scale(0.99);
}

.nav-pill {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    padding: 0.5rem 1.15rem;

    transition: all 0.2s var(--ease-sweet);
}

.nav-pill:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f8f3ed 100%);

    border-color: rgba(131, 141, 151, 0.9);

    color: var(--google-blue);

    transform: translateY(-1px);
}

.nav-pill.active {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border-color: rgba(18, 81, 180, 0.9);

    color: #ffffff;

    box-shadow: var(--shadow-3d-primary);
}

.step-btn {
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;
    white-space: nowrap;
    flex-shrink: 0;                 /* never squish in the scrollable strip */

    cursor: pointer;

    padding: 0.5rem 1.15rem;

    transition: all 0.2s var(--ease-sweet);
}

.step-btn:hover {
    background: rgba(255, 255, 255, 0.7);

    color: var(--text-main);
}

.step-btn.active {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);

    border-color: rgba(173, 210, 255, 0.9);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 0 rgba(216, 228, 239, 0.9), 0 8px 18px rgba(27, 110, 243, 0.08);
}

/* Step label visibility (toggled by mobile breakpoint) */
.step-label-full { display: inline; }
.step-label-short { display: none; }

/* Custom section step buttons share the same styling */
.step-btn-custom {
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;                 /* never squish in the scrollable strip */

    cursor: pointer;

    padding: 0.5rem 1.15rem;

    transition: all 0.2s var(--ease-sweet);
}

.step-btn-custom:hover {
    background: rgba(255, 255, 255, 0.7);

    color: var(--text-main);
}

.step-btn-custom.active {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);

    border-color: rgba(173, 210, 255, 0.9);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 3px 0 rgba(216,228,239,0.9), 0 8px 18px rgba(27,110,243,0.08);
}


.option-btn {
    width: 100%;
}

.btn-icon {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 50%;

    color: var(--text-muted);

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

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    transition: all 0.2s var(--ease-sweet);

    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f8f3ed 100%);

    border-color: rgba(131, 141, 151, 0.9);

    color: var(--text-main);

    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(1px) scale(0.96);
}

.btn-icon.btn-icon-danger:hover,
.btn-icon[title*="Remove"]:hover,
.btn-icon[title*="Delete"]:hover {
    background: linear-gradient(180deg, #fff5f5 0%, #fde8e8 100%);

    border-color: rgba(220, 38, 38, 0.45);

    color: var(--status-crit);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(220, 38, 38, 0.16);
}

.btn-spinner {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    display: inline-block;

    animation: spin 0.75s linear infinite;

    width: 16px;
    height: 16px;
    border-top-color: #ffffff;
}

.btn-pill-secondary .btn-spinner {
    border: 2px solid rgba(27, 110, 243, 0.25);
    border-top-color: var(--google-blue);
}

.nav-hamburger-btn {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

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

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    transition: all 0.2s var(--ease-sweet);

    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.nav-hamburger-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f8f3ed 100%);

    border-color: rgba(131, 141, 151, 0.9);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 14px rgba(27, 110, 243, 0.12), 0 2px 1px rgba(218, 212, 201, 0.9);

    transform: translateY(-1.5px);
}

.nav-hamburger-btn:active {
    transform: translateY(1px) scale(0.96);
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;

    width: 20px;
    height: 18px;
}

.hamburger-bar {
    background: linear-gradient(90deg, #4d96ff 0%, var(--google-blue) 50%, var(--google-blue-deep) 100%);

    border-radius: 999px;

    box-shadow: 0 1px 2px rgba(27, 110, 243, 0.2);

    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;

    width: 20px;
    height: 2.5px;
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;

    transform: scaleX(0);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.step-label-short {
    display: none;
}

/* ==========================================================================
   03. REUSABLE COMPONENT: FORM INPUTS & TEXTAREAS
   (Inherits tactile warmth & cartoonish yet professional pill styling)
   ========================================================================== */

.form-label,
.field-group label {
    color: var(--text-main);
    font-size: var(--font-min);
    font-weight: 400;
    letter-spacing: 0.02em;

    display: block;

    margin-bottom: 0.45rem;
}

.form-label span {
    color: var(--google-blue);
}

.field-hint {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

    margin-bottom: 0.9rem;
}

.field-group {
    display: flex;
    flex-direction: column;

    margin-bottom: 1rem;
}

.field-group input,
input[type="text"],
input[type="email"],
input[type="tel"] {
    background: var(--input-bg-default);

    border: 1px solid var(--input-border-default);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;

    box-shadow: var(--input-shadow-default);

    padding: 0 1.25rem;

    transition: border-color 0.2s var(--ease-sweet), box-shadow 0.2s var(--ease-sweet), transform 0.18s var(--ease-sweet), background 0.2s var(--ease-sweet);

    width: 100%;

    height: 42px;
}

.field-group input::placeholder,
.field-group textarea::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: var(--text-subtle);
    font-weight: 400;
}

.field-group input:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover {
    background: var(--input-bg-hover);

    border-color: var(--input-border-hover);
}

.field-group input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    background: #ffffff;

    border-color: var(--border-focus);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-focus);

    transform: translateY(-1px);
}

.field-group textarea,
.fs-textarea,
.rich-markdown-editor {
    background: var(--input-bg-default);

    border: 1px solid var(--input-border-default);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-family: inherit;
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.015em;
    white-space: pre-wrap;
    word-break: break-word;

    box-shadow: var(--input-shadow-default);

    padding: 0.95rem 1.15rem;

    transition: border-color 0.2s var(--ease-sweet), box-shadow 0.2s var(--ease-sweet), transform 0.18s var(--ease-sweet), background 0.2s var(--ease-sweet);

    width: 100%;
    min-height: 110px;
    max-height: 480px;
    field-sizing: content;
    resize: vertical;
    overflow-y: auto;
    scrollbar-width: none;
}

.field-group textarea::-webkit-scrollbar,
.fs-textarea::-webkit-scrollbar,
.rich-markdown-editor::-webkit-scrollbar {
    display: none;
}

.field-group textarea:hover,
.fs-textarea:hover,
.rich-markdown-editor:hover {
    background: var(--input-bg-hover);

    border-color: var(--input-border-hover);
}

.field-group textarea:focus,
.fs-textarea:focus,
.rich-markdown-editor:focus {
    background: #ffffff;

    border-color: var(--border-focus);

    outline: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-focus);
}

.rich-markdown-editor:empty::before,
.rich-markdown-editor.is-empty::before {
    color: var(--text-subtle);

    display: block;

    pointer-events: none;

    content: attr(data-placeholder);
}

.rich-markdown-editor strong,
.rich-markdown-editor b {
    color: var(--text-main);
    font-weight: 600;
}

.rich-markdown-editor em,
.rich-markdown-editor i {
    font-style: italic;
}

/* Micro-formatting toolbar for rich ATS textareas */
.input-format-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.format-toolbar-left {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.btn-format-tool {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 9999px;

    color: var(--text-main);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    font-weight: 500;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;

    cursor: pointer;
    user-select: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1.5px 0 rgba(210, 204, 194, 0.4), 0 1px 2px rgba(15, 23, 42, 0.05);

    padding: 0 0.7rem;

    transition: all 0.18s var(--ease-sweet);

    height: 30px;
}

.btn-format-tool .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 16px;
    line-height: 1;

    transition: transform 0.18s var(--ease-sweet);
}

.btn-format-tool:hover {
    background: #ffffff;

    border-color: rgba(27, 110, 243, 0.45);

    color: var(--google-blue-deep);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 3px 8px -2px rgba(27, 110, 243, 0.2);

    transform: translateY(-1px);
}

.btn-format-tool:hover .material-symbols-outlined {
    transform: scale(1.1);
}

.btn-format-tool:active {
    background: #f4efe8;

    box-shadow: inset 0 2px 2px rgba(15, 23, 42, 0.12);

    transform: translateY(0.5px) scale(0.98);
}

.btn-format-tool.is-active {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);

    border-color: rgba(27, 110, 243, 0.45);

    color: var(--google-blue-deep);
    font-weight: 500;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(190, 218, 255, 0.6), 0 1px 3px rgba(27, 110, 243, 0.12);
}

.btn-format-tool.is-active:hover {
    background: linear-gradient(180deg, #e3f0ff 0%, #d4e8ff 100%);

    border-color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(27, 110, 243, 0.2);
}

.btn-format-tool.is-active .material-symbols-outlined {
    color: var(--google-blue);
    font-weight: 400;
}

.btn-format-tool--accent {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);

    border-color: rgba(27, 110, 243, 0.35);

    color: var(--google-blue-deep);
    /* font-weight: 600; */
}

.btn-format-tool--accent .material-symbols-outlined {
    color: #f59e0b;
}

.btn-format-tool--accent:hover {
    background: linear-gradient(180deg, #e3f0ff 0%, #d4e8ff 100%);

    border-color: var(--google-blue);
}

.format-toolbar-hint {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .format-toolbar-hint {
        display: none;
    }

    .btn-format-tool {
        font-size: 0.74rem;

        padding: 0 0.55rem;

        height: 28px;
    }
}

.chat-input-capsule {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 28px;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(210, 204, 194, 0.35), 0 3px 10px rgba(15, 23, 42, 0.06);

    padding: 0.35rem 0.5rem 0.35rem 1.35rem;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

    min-height: 52px;
}

.chat-input-capsule:focus-within {
    background: #ffffff;

    border-color: var(--border-focus);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-focus);
}

.chat-textarea {
    background: transparent;

    border: none;

    color: var(--text-main);
    font-family: inherit;
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.015em;

    display: block;

    padding: 0.45rem 0;

    transition: height 0.15s ease;

    width: 100%;
    height: 24px;
    min-height: 24px;
    max-height: 130px;
    resize: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-textarea::-webkit-scrollbar {
    display: none;
}

.chat-textarea::placeholder {
    color: var(--text-subtle);
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.45;
}

.chat-textarea:focus,
.chat-textarea:focus-visible {
    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}

.chat-send-btn {
    border-radius: 50%;

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

    padding: 0;

    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* ==========================================================================
   04. REUSABLE COMPONENT: CUSTOM DROPDOWN MENUS
   (Inherits secondary button warm tactile pill treatment)
   ========================================================================== */

.custom-select-wrapper {
    position: relative;

    width: 100%;
}

.custom-select-trigger {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    text-align: left;

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

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    padding: 0 1.25rem;

    transition: all 0.2s var(--ease-sweet);

    width: 100%;
    min-width: 0;
    height: 46px;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4ede3 100%);

    border-color: rgba(165, 155, 140, 0.95);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -3px 0 rgba(188, 181, 172, 0.85), 0 6px 16px rgba(15, 23, 42, 0.06);

    transform: translateY(-1px);
}

.custom-select-trigger.active {
    background: #ffffff;

    border-color: var(--google-blue);

    box-shadow: inset 0 1px 0 #ffffff, 0 4px 14px rgba(27, 110, 243, 0.14), 0 0 0 3px rgba(27, 110, 243, 0.12);

    transform: translateY(0);
}

.trigger-left {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.65rem;

    min-width: 0;
    overflow: hidden;
}

.trigger-icon {
    color: var(--google-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trigger-text {
    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;
    white-space: nowrap;

    display: block;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trigger-arrow {
    color: var(--text-muted);

    margin-left: 0.4rem;

    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
}

.custom-select-trigger.active .trigger-arrow {
    color: var(--google-blue);

    transform: rotate(180deg);
}

.custom-select-menu {
    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-lg);

    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 500;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 38px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);

    margin-top: 8px;
    padding: 0.5rem;

    animation: menuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.custom-select-menu::-webkit-scrollbar {
    display: none;
}

.custom-select-menu.has-more-above {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 38px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.custom-select-menu.has-more-below {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 38px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.custom-select-menu.has-more-above.has-more-below {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 38px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
}

@keyframes menuSlideDown {
    from {
        opacity: 0;

        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

.custom-select-option {
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    letter-spacing: 0.015em;
    white-space: nowrap;

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

    cursor: pointer;

    margin-bottom: 3px;
    padding: 0.6rem 1rem;

    transition: all 0.18s var(--ease-sweet);

    min-width: 0;
    box-sizing: border-box;
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);

    border-color: rgba(200, 215, 235, 0.9);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(27, 110, 243, 0.08);

    transform: translateX(3px);
}

.custom-select-option.active {
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);

    border-color: rgba(165, 205, 255, 0.95);

    color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 3px 8px rgba(27, 110, 243, 0.1);
}

.option-content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;
    overflow: hidden;
}

.option-icon {
    color: var(--text-muted);
    font-size: 1.2rem;

    transition: all 0.18s var(--ease-sweet);
    flex-shrink: 0;
}

.custom-select-option:hover .option-icon,
.custom-select-option.active .option-icon {
    color: var(--google-blue);

    transform: scale(1.08);
}

.option-label {
    font-size: var(--font-mid);
    white-space: nowrap;

    display: block;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-check {
    color: var(--google-blue);
    font-size: 1.15rem;

    opacity: 0;

    margin-left: auto;

    transition: all 0.18s var(--ease-sweet);

    transform: scale(0.85);
    flex-shrink: 0;
}

.custom-select-option.active .option-check {
    opacity: 1;

    transform: scale(1);
}

/* ==========================================================================
   05. REUSABLE COMPONENT: PILLS, BADGES & CHIPS
   ========================================================================== */

.trust-pill {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.015em;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(31, 36, 46, 0.04);

    padding: 0.45rem 0.85rem;
}

.trust-pill .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1rem;
}

.status-pill-badge {
    background: linear-gradient(180deg, #ffffff 0%, #dff3e4 100%);

    border: 1px solid rgba(86, 176, 109, 0.35);
    border-radius: var(--radius-pill);

    color: var(--status-good);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.04);

    margin-bottom: 0.6rem;
    padding: 0.3rem 0.85rem;
}

.file-badge {
    background: var(--google-blue-surface);

    border: 1px solid #c2e7ff;
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(27, 110, 243, 0.05);

    margin-top: 1rem;
    padding: 0.75rem 1rem;

    transition: all 0.2s ease;
}

.badge-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.file-badge-icon {
    color: var(--google-blue);
}

.file-info-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.file-name-text {
    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
}

.file-status-subtext {
    color: var(--status-good);
    font-size: var(--font-min);
    font-weight: 400;

    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.draft-score-pill {
    background: var(--google-blue-surface);

    border: 1px solid #c2e7ff;
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: var(--font-min);
    font-weight: 400;

    padding: 0.2rem 0.65rem;
}

.suggestion-chip,
.chat-chip,
.fs-chip {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream) 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: var(--font-min);
    font-weight: 400;
    letter-spacing: 0.015em;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(220, 214, 205, 0.8);

    padding: 0.45rem 0.95rem;

    transition: all 0.2s var(--ease-sweet);
}

.suggestion-chip:hover,
.chat-chip:hover,
.fs-chip:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f7f2ec 100%);

    border-color: rgba(131, 141, 151, 0.9);

    color: var(--google-blue);

    transform: translateY(-1px);
}

.suggestion-chip.active-chip,
.fs-chip.active-chip {
    background: var(--google-blue-surface);

    border-color: var(--google-blue);

    color: var(--google-blue);
}

/* ==========================================================================
   06. REUSABLE COMPONENT: TOASTS & NOTIFICATIONS
   ========================================================================== */

.toast-container {
    display: flex;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    pointer-events: none;

    transform: translateX(-50%);
}

.sanifu-toast {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 252, 0.97) 100%);

    border: 1px solid rgba(213, 221, 233, 0.96);
    border-radius: var(--radius-pill);

    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 0.85rem;

    pointer-events: auto;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 28px rgba(15, 23, 42, 0.1), 0 3px 0 rgba(220, 226, 234, 0.85);

    padding: 0.65rem 1.1rem 0.65rem 0.8rem;

    transition: all 0.22s ease;
    animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    min-width: 320px;
    max-width: 480px;
}

.sanifu-toast.toast-hiding {
    opacity: 0;

    transform: translateY(-12px) scale(0.96);
}

.toast-icon-wrap {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);
    border-radius: 50%;

    color: #ffffff;

    display: flex;
    position: relative;
    z-index: 1;
    justify-content: center;
    align-items: center;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(27, 110, 243, 0.25);

    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.toast-icon-wrap .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.15rem;
}

.sanifu-toast.toast-success .toast-icon-wrap {
    background: linear-gradient(180deg, #34d399 0%, #10b981 42%, #059669 100%);

    border-color: rgba(5, 150, 105, 0.9);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(16, 185, 129, 0.25);
}

.sanifu-toast.toast-error .toast-icon-wrap {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 42%, #dc2626 100%);

    border-color: rgba(220, 38, 38, 0.9);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(239, 68, 68, 0.25);
}

.sanifu-toast.toast-warning .toast-icon-wrap {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 42%, #d97706 100%);

    border-color: rgba(217, 119, 6, 0.9);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(245, 158, 11, 0.25);
}

.toast-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.toast-title {
    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.25;
}

.toast-msg {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;
    line-height: 1.35;
}

.toast-close {
    background: transparent;

    border: none;
    border-radius: 50%;

    color: var(--text-muted);

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

    cursor: pointer;

    padding: 4px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);

    color: var(--text-main);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;

        transform: translateY(-16px) scale(0.95);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

.upload-inline-error {
    background: var(--status-crit-surface);

    border: 1px solid rgba(217, 48, 37, 0.25);
    border-radius: var(--radius-sm);

    color: var(--status-crit);
    font-size: var(--font-min);
    font-weight: 400;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-top: 0.75rem;
    padding: 0.65rem 0.9rem;

    animation: inlineFadeIn 0.2s ease forwards;
}

.upload-inline-error .material-symbols-outlined {
    color: var(--status-crit);
    font-size: 1.15rem;
    flex-shrink: 0;
}

@keyframes inlineFadeIn {
    from {
        opacity: 0;

        transform: translateY(-4px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

/* ==========================================================================
   07. REUSABLE COMPONENT: CARDS & MODALS
   ========================================================================== */

.card-unified {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 252, 255, 0.95) 100%);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: 26px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px -24px rgba(15, 23, 42, 0.2), 0 6px 0 rgba(223, 229, 238, 0.82);

    margin: 0 auto 2.5rem auto;
    padding: 2.1rem 2rem;

    transition: box-shadow 0.25s ease, transform 0.25s ease;

    width: 100%;
    max-width: 980px;
}

.card-unified:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 28px -22px rgba(15, 23, 42, 0.16), 0 6px 0 rgba(223, 229, 238, 0.82);
}

.option-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-md);

    text-align: center;

    display: flex;
    flex-direction: column;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(31, 36, 46, 0.05);

    padding: 1.6rem 1.4rem;

    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    border-color: rgba(180, 172, 160, 0.95);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 24px -4px rgba(31, 36, 46, 0.1);

    transform: translateY(-2px);
}

.builder-card {
    background: var(--bg-surface);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.custom-modal-overlay {
    background: rgba(15, 23, 42, 0.5);

    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    justify-content: center;
    align-items: center;

    padding: 1.5rem;

    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(8px);
}

.custom-modal-overlay.hidden {
    display: none !important;
}

.custom-modal-card {
    background: var(--bg-surface);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-lg);

    display: flex;
    position: relative;
    flex-direction: column;

    box-shadow: var(--shadow-modal);

    animation: modalCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
}

.custom-modal-header {
    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 1.4rem 1.75rem 1rem 1.75rem;
}

.modal-icon-wrap {
    border-radius: 50%;

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

    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.modal-icon-wrap.modal-info {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);

    color: #ffffff;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(14, 75, 183, 0.4), 0 4px 10px rgba(27, 110, 243, 0.28);
}

.modal-icon-wrap.modal-info .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.4rem;
}

.modal-icon-wrap.modal-warn,
.modal-icon-wrap.modal-warning {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 42%, #d97706 100%);

    border: 1px solid rgba(217, 119, 6, 0.9);

    color: #ffffff;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(180, 83, 9, 0.4), 0 4px 10px rgba(245, 158, 11, 0.28);
}

.modal-icon-wrap.modal-warn .material-symbols-outlined,
.modal-icon-wrap.modal-warning .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.4rem;
}

.modal-icon-wrap.modal-error,
.modal-icon-wrap.modal-danger {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 42%, #dc2626 100%);

    border: 1px solid rgba(220, 38, 38, 0.9);

    color: #ffffff;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(185, 28, 28, 0.4), 0 4px 10px rgba(239, 68, 68, 0.28);
}

.modal-icon-wrap.modal-error .material-symbols-outlined,
.modal-icon-wrap.modal-danger .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.4rem;
}

.modal-icon-wrap.modal-success {
    background: linear-gradient(180deg, #34d399 0%, #10b981 42%, #059669 100%);

    border: 1px solid rgba(5, 150, 105, 0.9);

    color: #ffffff;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(4, 120, 87, 0.4), 0 4px 10px rgba(16, 185, 129, 0.28);
}

.modal-icon-wrap.modal-success .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.4rem;
}

.modal-header-text {
    flex: 1;
}

.modal-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

    display: block;
}

.modal-close-btn {
    align-self: flex-start;
}

.custom-modal-card strong,
.custom-modal-card b,
.custom-modal-body strong,
.custom-modal-body b {
    font-family: var(--sanifucv-title-font);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.custom-modal-body {
    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.6;
    overflow-y: auto;

    padding: 1rem 1.75rem 1.5rem 1.75rem;
}

/* Recruiter Debrief & Copilot Advisory Callout */
.modal-recruiter-note {
    background: linear-gradient(180deg, #fffdfb 0%, #f7f3ec 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-3d-soft);

    margin-top: 1.15rem;
    padding: 0.95rem 1.15rem;
}

.modal-recruiter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.35rem;
}

.modal-recruiter-header .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.25rem;
}

.modal-recruiter-header strong {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-recruiter-text {
    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.55;

    margin: 0;
}

/* ATS Readiness Dialog Components */
.custom-modal-card:has(.ats-dialog-container) {
    max-width: 550px;
}

.ats-dialog-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ats-dialog-score-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(15, 23, 42, 0.04);

    padding: 0.95rem 1.15rem;
}

.ats-dialog-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.65rem;
}

.ats-dialog-score-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ats-dialog-score-title .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.25rem;
}

.ats-dialog-score-title strong {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;
}

.ats-dialog-score-badge {
    border-radius: var(--radius-pill);

    font-family: var(--sanifucv-title-font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.25rem 0.75rem;
}

.ats-dialog-score-badge.is-good {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);

    border: 1px solid rgba(16, 185, 129, 0.4);

    color: #047857;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(16, 185, 129, 0.12);
}

.ats-dialog-score-badge.is-warn {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);

    border: 1px solid rgba(245, 158, 11, 0.4);

    color: #b45309;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(245, 158, 11, 0.12);
}

.ats-dialog-score-badge.is-crit {
    background: linear-gradient(180deg, #fff1f2 0%, #fee2e2 100%);

    border: 1px solid rgba(239, 68, 68, 0.4);

    color: #be123c;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(239, 68, 68, 0.12);
}

.ats-dialog-progress-track {
    background: linear-gradient(180deg, #e4e7ed 0%, #edf0f5 100%);

    border: 1px solid rgba(205, 212, 222, 0.9);
    border-radius: var(--radius-pill);

    position: relative;

    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.85);

    padding: 2px;

    height: 14px;
    overflow: hidden;
}

.ats-dialog-progress-fill {
    border-radius: var(--radius-pill);

    transition: width 0.5s var(--ease-sweet);

    height: 100%;
}

.ats-dialog-progress-fill.is-crit {
    background: linear-gradient(180deg, #ff7676 0%, #f03e3e 42%, #c92a2a 100%);

    border: 1px solid rgba(185, 28, 28, 0.85);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(153, 27, 27, 0.45), 0 2px 6px rgba(239, 68, 68, 0.35);
}

.ats-dialog-progress-fill.is-warn {
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 42%, #d97706 100%);

    border: 1px solid rgba(217, 119, 6, 0.85);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(180, 83, 9, 0.45), 0 2px 6px rgba(245, 158, 11, 0.35);
}

.ats-dialog-progress-fill.is-good {
    background: linear-gradient(180deg, #4ade80 0%, #10b981 42%, #059669 100%);

    border: 1px solid rgba(5, 150, 105, 0.85);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(4, 120, 87, 0.45), 0 2px 6px rgba(16, 185, 129, 0.35);
}

.ats-dialog-section {
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-3d-soft);

    padding: 0.95rem 1.15rem;

    transition: all 0.2s var(--ease-sweet);
}

.ats-dialog-section.is-strengths {
    background: linear-gradient(180deg, #f4fbf6 0%, #ebf7f0 100%);

    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ats-dialog-section.is-issues {
    background: linear-gradient(180deg, #fff7f7 0%, #fdefef 100%);

    border: 1px solid rgba(239, 68, 68, 0.32);
}

.ats-dialog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.65rem;
}

.ats-dialog-section-heading-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Cute circular tactile 3D button badges for section headers */
.ats-dialog-header-badge {
    border-radius: 50%;

    color: #ffffff;

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

    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ats-dialog-header-badge.badge-good {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);

    border: 1px solid rgba(5, 150, 105, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 5px rgba(16, 185, 129, 0.3);
}

.ats-dialog-header-badge.badge-crit {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);

    border: 1px solid rgba(220, 38, 38, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 5px rgba(239, 68, 68, 0.3);
}

.ats-dialog-header-badge.badge-info {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 100%);

    border: 1px solid rgba(18, 81, 180, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 5px rgba(27, 110, 243, 0.3);
}

.ats-dialog-header-badge .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.1rem;
}

.ats-dialog-section.is-strengths .ats-dialog-section-heading-group strong {
    color: #065f46;
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;
}

.ats-dialog-section.is-issues .ats-dialog-section-heading-group strong {
    color: #991b1b;
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;
}

.ats-dialog-count-tag {
    border-radius: var(--radius-pill);

    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;

    padding: 0.18rem 0.6rem;
}

.ats-dialog-count-tag.tag-good {
    background: #d1fae5;

    border: 1px solid rgba(16, 185, 129, 0.28);

    color: #047857;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ats-dialog-count-tag.tag-crit {
    background: #fee2e2;

    border: 1px solid rgba(239, 68, 68, 0.28);

    color: #b91c1c;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ats-dialog-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.ats-dialog-list li {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;

    position: relative;

    padding-left: 1.25rem;
}

.ats-dialog-strengths .ats-dialog-list li {
    color: #1f242e;
}

.ats-dialog-issues .ats-dialog-list li {
    color: #7f1d1d;
}

.ats-dialog-list li::before {
    border-radius: 50%;

    position: absolute;
    top: 0.52rem;
    left: 0.15rem;

    width: 6px;
    height: 6px;
    content: '';
}

.ats-dialog-strengths .ats-dialog-list li::before {
    background: #10b981;

    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ats-dialog-issues .ats-dialog-list li::before {
    background: #ef4444;

    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.ats-dialog-empty-msg {
    font-size: 0.88rem;
    line-height: 1.5;

    margin: 0;
}

.custom-modal-footer {
    border-top: 1px solid var(--border-subtle);

    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;

    padding: 1rem 1.75rem;
}

/* Paywall / Premium Upgrade Modal Styling */
.custom-modal-card:has(.paywall-products) {
    max-width: 580px;
}

.paywall-intro {
    color: var(--text-muted);
    font-size: var(--font-mid);
    line-height: 1.55;

    margin-bottom: 1.15rem;
}

.paywall-email-step {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    text-align: left;

    box-shadow: var(--shadow-subtle);

    margin-bottom: 1.15rem;
    padding: 0.95rem 1.1rem;
}

.paywall-email-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;

    margin-bottom: 0.5rem;
}

.paywall-email-label-row label {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.84rem;
    font-weight: 600;

    margin: 0;
}

.paywall-cv-email-chip {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fe 100%);

    border: 1px solid rgba(27, 110, 243, 0.28);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-family: var(--sanifucv-default-font);
    font-size: 0.76rem;
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(27, 110, 243, 0.08);

    padding: 0.22rem 0.68rem;
}

.paywall-cv-email-chip .material-symbols-outlined {
    font-size: 0.92rem;
}

.paywall-cv-email-chip:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfeeff 100%);

    transform: translateY(-1px);
}

.paywall-email-step input.is-invalid {
    border-color: var(--status-crit);

    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.14);
}

.paywall-email-error {
    color: var(--status-crit);
    font-family: var(--sanifucv-default-font);
    font-size: 0.8rem;
    font-weight: 400;

    display: flex;
    align-items: center;
    gap: 0.35rem;

    margin: 0.5rem 0 0;
}

.paywall-email-error .material-symbols-outlined {
    font-size: 1rem;
}

.paywall-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    margin-bottom: 1.25rem;
}

.paywall-product-card {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-3d-soft);

    padding: 1.25rem 1.4rem;

    transition: all 0.2s var(--ease-sweet);
}

.paywall-product-card:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f7f2ea 100%);

    border-color: rgba(180, 172, 160, 0.95);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(31, 36, 46, 0.1);

    transform: translateY(-2px);
}

.paywall-product-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    margin-bottom: 0.4rem;
}

.paywall-product-kicker {
    color: var(--google-blue);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;

    display: block;

    margin-bottom: 0.2rem;
}

.paywall-product-heading h4 {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 700;
}

.paywall-product-heading strong {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.paywall-product-card p {
    color: var(--text-muted);
    font-size: var(--font-mid);
    line-height: 1.5;

    margin-bottom: 1rem;
}

.paywall-buy-btn {
    width: 100%;
}

.paywall-privacy-note {
    background: var(--bg-subtle);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);

    color: var(--text-muted);
    font-size: 0.78rem;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 1.25rem;
    padding: 0.65rem 0.9rem;
}

.paywall-privacy-note .material-symbols-outlined {
    color: var(--text-subtle);
    font-size: 1rem;
}

.paywall-recovery-divider {
    color: var(--text-subtle);
    font-size: var(--font-min);
    text-align: center;

    display: flex;
    align-items: center;

    margin: 1.25rem 0 1rem 0;
}

.paywall-recovery-divider::before,
.paywall-recovery-divider::after {
    border-bottom: 1px solid var(--border-subtle);

    content: '';

    flex: 1;
}

.paywall-recovery-divider span {
    padding: 0 0.85rem;
}

.paywall-recovery-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.paywall-recovery-row input {
    flex: 1;
}

.paywall-recovery-row button {
    white-space: nowrap;
}

/* Post-Payment Recovery Token & Tier Confirmation Modal */
.recovery-tier-badge-card {
    background: linear-gradient(180deg, #f0fdf4 0%, #e8f7ed 100%);

    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);

    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(16, 185, 129, 0.06);

    margin-bottom: 0.85rem;
    padding: 0.85rem 1.1rem;
}

.recovery-tier-header {
    color: var(--status-good);
    font-size: var(--font-max);

    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.recovery-tier-header .material-symbols-outlined {
    color: var(--status-good);
    font-size: 1.25rem;
}

.recovery-tier-allowance {
    color: var(--text-main);
    font-size: var(--font-mid);
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recovery-tier-disclaimer {
    color: var(--text-muted);
    font-size: var(--font-min);
    line-height: 1.4;

    display: flex;
    align-items: flex-start;
    gap: 0.4rem;

    margin-top: 0.2rem;
}

.recovery-tier-disclaimer .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1rem;
    flex-shrink: 0;

    margin-top: 1px;
}

.recovery-token-box {
    background: #ffffff;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);

    margin: 0.75rem 0;
    padding: 0.65rem 0.95rem;
}

.recovery-token-box code {
    color: var(--google-blue-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 600;

    user-select: all;
    word-break: break-all;
}

.recovery-token-actions {
    display: flex;
    justify-content: center;

    margin: 0.85rem 0 0.5rem 0;
}

/* Legal & Compliance Modal Styling */
.legal-modal-card {
    max-width: 680px;
    max-height: 86vh;
}

.legal-tab-switcher {
    background: var(--bg-subtle);

    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    gap: 0.5rem;

    padding: 0.5rem 1.65rem 0.75rem 1.65rem;
}

.legal-tab-btn {
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;

    padding: 0.5rem 1.15rem;

    transition: all 0.18s var(--ease-sweet);
}

.legal-tab-btn:hover {
    background: #ffffff;

    border-color: rgba(210, 204, 194, 0.85);

    color: var(--text-main);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.legal-tab-btn.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);

    border-color: rgba(165, 205, 255, 0.95);

    color: var(--google-blue);
    font-weight: 400;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(27, 110, 243, 0.12);
}

.legal-modal-body {
    padding: 1.25rem 1.75rem;

    max-height: calc(86vh - 215px);
    overflow-y: auto;
}

.legal-trust-banner {
    background: linear-gradient(180deg, #f0fdf4 0%, #e6f7ec 100%);

    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);

    display: flex;
    align-items: center;
    gap: 0.85rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);

    margin-bottom: 1.25rem;
    padding: 0.85rem 1.15rem;
}

.legal-trust-icon-box {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);

    border-radius: 50%;

    color: #ffffff;

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

    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);

    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.legal-trust-icon-box .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 1.15rem;
}

.legal-trust-text strong {
    color: #065f46;
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;

    display: block;

    margin-bottom: 2px;
}

.legal-trust-text p {
    color: #047857;
    font-size: var(--font-min);
    line-height: 1.4;

    margin: 0;
}

.legal-pane {
    animation: inlineFadeIn 0.22s var(--ease-sweet) forwards;
}

.legal-section {
    border-bottom: 1px dashed var(--border-subtle);

    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
}

.legal-section:last-child {
    border-bottom: none;

    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 0.45rem;
}

.legal-section-title .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.15rem;
}

.legal-section strong,
.legal-section b {
    color: var(--text-main);
    font-weight: 400;
}

.legal-section p {
    color: var(--text-muted);
    font-size: var(--font-min);
    line-height: 1.6;

    margin-bottom: 0.5rem;
}

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

.legal-section code {
    background: var(--bg-cream);

    border: 1px solid var(--border-tactile);
    border-radius: 4px;

    color: var(--text-main);
    font-family: monospace;
    font-size: 0.8rem;

    padding: 1px 5px;
}

.legal-section a {
    color: var(--google-blue);
    font-weight: 400;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-last-updated {
    color: var(--text-subtle);
    font-size: 0.78rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalCardPop {
    from {
        opacity: 0;

        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   08. APP HEADER & NAVIGATION
   ========================================================================== */

.app-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 250, 252, 0.85) 100%);

    border-bottom: 1px solid rgba(218, 220, 224, 0.9);

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(58, 74, 98, 0.04);

    padding: 0.8rem 2rem;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 0 auto;

    max-width: 1240px;
}

.brand {
    text-decoration: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    width: fit-content;
    height: 46px;

    .brand-title {
        color: var(--text-main);
        font-family: var(--sanifucv-title-font);
        font-size: var(--font-extra);
        font-weight: 700;

        line-height: 1.05;
        letter-spacing: -0.03em;

        width: fit-content;
        height: fit-content;

        .brand-accent-gradient {
            background: linear-gradient(135deg, var(--google-blue) 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;

            color: var(--google-blue);
        }
    }

    .brand-tagline {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;

        display: block;
    }
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   09. WORKSPACE & HERO
   ========================================================================== */

.workspace {
    position: relative;

    flex: 1 0 auto;

    margin: 2rem auto 4rem auto;
    padding: 0 1.25rem;

    width: 100%;
    max-width: 1240px;
}

.view-panel {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-panel.hidden {
    display: none !important;
}

.hero-intro {
    margin: 1.25rem auto 3rem auto;

    width: 100%;
    max-width: 1120px;
}

.hero-split-grid {
    text-align: left;

    display: grid;
    align-items: center;
    gap: 3rem;
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 1;
}

.hero-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.eyebrow {
    background: linear-gradient(180deg, rgba(31, 106, 255, 0.1) 0%, rgba(31, 106, 255, 0.04) 100%);

    border: 1px solid rgba(27, 110, 243, 0.18);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);

    margin-bottom: 1rem;
    padding: 0.48rem 0.95rem;
}

.hero-eyebrow {
    margin-bottom: 0.9rem;
}

.headline {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 2.5rem;
    font-weight: 700;

    margin-bottom: 1rem;
    text-wrap: balance;

    .headline-gradient {
        background: linear-gradient(135deg, var(--google-blue) 0%, #3b82f6 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        color: var(--google-blue);
        font-family: var(--sanifucv-title-font);
    }
}

.hero-headline {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.2;
    text-align: left;

    margin-bottom: 1rem;
}

.subheadline {
    color: var(--text-muted);
    font-size: clamp(0.96rem, 1.3vw, 1.08rem);
    font-weight: 400;
    line-height: 1.7;

    margin: 0 auto;

    max-width: 720px;
}

.hero-subheadline {
    font-size: clamp(0.94rem, 1.2vw, 1.02rem);
    line-height: 1.68;
    text-align: left;

    margin: 0 0 1.6rem 0;

    max-width: 580px;
}

.hero-actions-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;

    margin-bottom: 1.4rem;
}

.hero-btn-primary .hero-btn-arrow {
    font-size: 1.05rem;

    transition: transform 0.2s var(--ease-sweet);
}

.hero-btn-primary:hover:not(:disabled) .hero-btn-arrow {
    transform: translateY(2px);
}

.trust-strip {
    display: flex;
    justify-content: center;
    gap: 0.75rem;

    margin-top: 1.3rem;
    flex-wrap: wrap;
}

.hero-trust-strip {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;

    margin-top: 0;
}

/* Visual Artwork Frame */
.hero-visual-card {
    background: #ffffff;

    border: 1px solid rgba(210, 218, 228, 0.88);
    border-radius: 26px;

    position: relative;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition: transform 0.35s var(--ease-sweet), box-shadow 0.35s var(--ease-sweet);

    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

.hero-visual-card:hover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transform: translateY(-3px);
}

.hero-artwork-img {
    display: block;

    transition: transform 0.4s var(--ease-sweet);

    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.hero-visual-card:hover .hero-artwork-img {
    transform: scale(1.02);
}

.hero-visual-pill-floating {
    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(220, 226, 235, 0.9);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 500;

    display: flex;
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;

    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);

    padding: 0.5rem 0.85rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-visual-pill-floating .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.05rem;
}

/* Responsive Mobile Behavior: Visual on Top, Copy and CTAs on Bottom */
@media (max-width: 900px) {
    .hero-intro {
        margin: 0.75rem auto 2rem auto;
    }

    .hero-split-grid {
        text-align: center;

        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .hero-visual-col {
        order: 1;

        width: 100%;
    }

    .hero-content-col {
        text-align: center;

        align-items: center;
        order: 2;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 5.5vw, 2.25rem);
        text-align: center;
    }

    .hero-subheadline {
        text-align: center;

        margin: 0 auto 1.35rem auto;
    }

    .hero-actions-group {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;

        width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        justify-content: center;

        width: 100%;
    }

    .hero-trust-strip {
        justify-content: center;
    }

    .hero-visual-card {
        border-radius: 20px;

        max-width: 100%;
    }

    .hero-artwork-img {
        max-height: 250px;
    }

    .hero-visual-pill-floating {
        font-size: 0.74rem;

        right: 0.65rem;
        bottom: 0.65rem;
        left: 0.65rem;

        padding: 0.4rem 0.65rem;
    }
}

/* ==========================================================================
   09b. STORYTELLING — WHY RESUMES GET REJECTED
   ========================================================================== */

.story-rejection-section {
    margin: 0.5rem auto 3rem auto;
    padding: 0;

    width: 100%;
    max-width: 980px;
}

.story-section-header {
    text-align: center;

    margin-bottom: 2rem;
}

.story-headline {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;

    margin-bottom: 0.75rem;
    text-wrap: balance;

    .headline-gradient {
        background: linear-gradient(135deg, var(--google-blue) 0%, #3b82f6 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        color: var(--google-blue);
        font-family: var(--sanifucv-title-font);
    }
}

.story-subheadline {
    color: var(--text-muted);
    font-size: clamp(0.88rem, 1.1vw, 0.95rem);
    font-weight: 400;
    line-height: 1.65;

    margin: 0 auto;

    max-width: 760px;
}

.story-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    /* Allows each card to expand independently on hover without forcing siblings to stretch */
    align-items: start;

    gap: 1.35rem;

    margin-bottom: 1.75rem;
}

.rejection-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: 22px;

    display: flex;
    position: relative;
    flex-direction: column;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px -24px rgba(15, 23, 42, 0.2), 0 6px 0 rgba(223, 229, 238, 0.82);

    margin: 0;

    padding: 1.6rem 1.4rem;

    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease;
    transform: none;

    width: 100%;

    min-height: 540px;
    box-sizing: border-box;
}

.rejection-card:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 24px 44px -22px rgba(27, 110, 243, 0.18),
        0 8px 0 rgba(214, 222, 232, 0.94);

    transform: translateY(-3px);
}

.story-card-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: 8px;

    margin-bottom: 0.85rem;
}

.story-icon-wrap {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-cream) 100%);

    border: 1px solid rgba(210, 204, 194, 0.9);
    border-radius: var(--radius-pill);

    color: var(--google-blue);

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

    box-shadow: var(--shadow-3d-secondary);

    width: 38px;
    height: 38px;
    flex-shrink: 0;

    .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

.story-step-pill {
    color: var(--google-blue-deep);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;

    padding: 0.2rem 0.4rem;
}

.story-card-visual {
    background: #ffffff;

    border: 1px solid rgba(210, 204, 194, 0.75);
    border-radius: 16px;

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

    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 4px 14px -6px rgba(15, 23, 42, 0.08);

    margin-bottom: 1rem;

    transition: border-color 0.25s ease, box-shadow 0.25s ease;

    width: 100%;
    height: 225px;
    overflow: hidden;
}

.rejection-card:hover .story-card-visual {
    border-color: rgba(27, 110, 243, 0.32);

    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 8px 20px -8px rgba(27, 110, 243, 0.16);
}

.story-card-img {
    display: block;

    user-select: none;
    -webkit-user-drag: none;

    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    width: 100%;
    height: 100%;
}

.story-card-img--cover {
    object-fit: cover;
    object-position: center 25%;

    transform: scale(1.36);
    transform-origin: center 25%;
}

.story-card-img--contain {
    background: #ffffff;

    padding: 0;

    transform: scale(1.02);
    transform-origin: center bottom;
    object-fit: contain;
    object-position: center bottom;
}

.rejection-card:hover .story-card-img--cover {
    transform: scale(1.42);
}

.rejection-card:hover .story-card-img--contain {
    transform: scale(1.05);
}

.story-card-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.35;

    margin-bottom: 0.45rem;

    min-height: 2.75em;
}

.story-card-desc {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.86rem;
    line-height: 1.55;

    margin-bottom: 1.1rem;

    min-height: 5.5em;
}

.story-tag-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;

    margin-bottom: 0.5rem;
}

.story-mini-chip {
    background: rgba(217, 48, 37, 0.05);

    border: 1px solid rgba(217, 48, 37, 0.16);
    border-radius: var(--radius-pill);

    color: #a12017;
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.3rem 0.65rem;

    .material-symbols-outlined {
        color: var(--status-crit);
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.95rem;
    }
}

.story-details-drawer {
    opacity: 0;

    transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;

    max-height: 0;
    overflow: hidden;
}

.rejection-card:hover .story-details-drawer,
.rejection-card:focus-within .story-details-drawer,
.rejection-card.is-expanded .story-details-drawer {
    opacity: 1;

    margin-top: 0.85rem;
    margin-bottom: 0.25rem;

    max-height: 280px;
}

.story-points-list {
    background: rgba(255, 255, 255, 0.7);

    border: 1px solid rgba(210, 204, 194, 0.6);
    border-radius: 12px;

    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.65rem;

    margin: 0;
    padding: 0.5rem 0.65rem;
    list-style: none;
}

.story-points-list li {
    color: var(--text-main);
    font-family: var(--sanifucv-default-font);
    font-size: 0.82rem;
    line-height: 1.45;
}

.story-points-list strong {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    /* font-weight: 600; */
}

.story-card-footer {
    border-top: 1px dashed rgba(210, 204, 194, 0.7);

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

    margin-top: auto;
    padding-top: 0.85rem;
}

.story-status-tag {
    background: var(--status-crit-surface);

    border: 1px solid rgba(217, 48, 37, 0.2);
    border-radius: var(--radius-pill);

    color: var(--status-crit);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.28rem 0.65rem;

    .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.95rem;
    }
}

.story-hover-hint {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    opacity: 0.75;

    transition: opacity 0.2s ease, color 0.2s ease;

    .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.95rem;
    }
}

.rejection-card:hover .story-hover-hint,
.rejection-card:focus-within .story-hover-hint {
    color: var(--google-blue);

    opacity: 1;
}

.story-bridge-banner {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: 20px;

    display: flex;
    align-items: center;
    gap: 1.1rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px -24px rgba(15, 23, 42, 0.2), 0 6px 0 rgba(223, 229, 238, 0.82);

    padding: 1.2rem 1.6rem;
}

.story-bridge-icon {
    background: linear-gradient(180deg, #eef4fe 0%, #dfeeff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-pill);

    color: var(--google-blue);

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

    box-shadow: var(--shadow-3d-secondary);

    width: 44px;
    height: 44px;
    flex-shrink: 0;

    .material-symbols-outlined {
        font-size: 1.4rem;
    }
}

.story-bridge-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;

    strong {
        color: var(--text-main);
        font-family: var(--sanifucv-title-font);
        font-size: 0.95rem;
        font-weight: 700;
    }

    p {
        color: var(--text-muted);
        font-size: 0.84rem;
        line-height: 1.5;

        margin: 0;
    }
}

/* ==========================================================================
   09c. CAPABILITY STRIP — WHAT SANIFUCV DOES (1, 2, 3)
   ========================================================================== */

.capability-strip-section {
    margin: 1rem auto 3.5rem auto;
    padding: 0;

    width: 100%;
    max-width: 980px;
}

.capability-section-header {
    text-align: center;

    margin-bottom: 2rem;
}

.capability-headline {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;

    margin-bottom: 0.75rem;
    text-wrap: balance;

    .headline-gradient {
        background: linear-gradient(135deg, var(--google-blue) 0%, #3b82f6 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        color: var(--google-blue);
        font-family: var(--sanifucv-title-font);
    }
}

.capability-subheadline {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: clamp(0.88rem, 1.1vw, 0.96rem);
    font-weight: 400;
    line-height: 1.65;

    margin: 0 auto;

    max-width: 760px;
}

.capability-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    align-items: stretch;

    gap: 1.35rem;

    margin-bottom: 2rem;
}

.capability-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: 22px;

    display: flex;
    position: relative;
    flex-direction: column;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px -24px rgba(15, 23, 42, 0.2), 0 6px 0 rgba(223, 229, 238, 0.82);

    margin: 0;

    padding: 1.6rem 1.4rem;

    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease;
    transform: none;

    width: 100%;
    height: 100%;

    min-height: 520px;
    box-sizing: border-box;
}

.capability-card:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 24px 44px -22px rgba(27, 110, 243, 0.18),
        0 8px 0 rgba(214, 222, 232, 0.94);

    transform: translateY(-3px);
}

.capability-card-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: 8px;

    margin-bottom: 0.85rem;
}

.capability-icon-wrap {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-cream) 100%);

    border: 1px solid rgba(210, 204, 194, 0.9);
    border-radius: var(--radius-pill);

    color: var(--google-blue);

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

    box-shadow: var(--shadow-3d-secondary);

    width: 38px;
    height: 38px;
    flex-shrink: 0;

    .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

.capability-step-pill {
    color: var(--google-blue-deep);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;

    padding: 0.2rem 0.4rem;
}

.capability-card-visual {
    background: #ffffff;

    border: 1px solid rgba(210, 204, 194, 0.75);
    border-radius: 16px;

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

    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 4px 14px -6px rgba(15, 23, 42, 0.08);

    margin-bottom: 1rem;

    transition: border-color 0.25s ease, box-shadow 0.25s ease;

    width: 100%;
    height: 225px;
    overflow: hidden;
}

.capability-card:hover .capability-card-visual {
    border-color: rgba(27, 110, 243, 0.32);

    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 8px 20px -8px rgba(27, 110, 243, 0.16);
}

.capability-card-img {
    border-radius: 50%;

    display: block;

    user-select: none;
    -webkit-user-drag: none;

    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;

    width: 185px;
    max-width: 90%;
    height: 185px;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.1));
}

.capability-card:hover .capability-card-img {
    transform: scale(1.06) rotate(1deg);
    filter: drop-shadow(0 12px 24px rgba(27, 110, 243, 0.2));
}

.capability-card-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;

    margin-bottom: 0.45rem;

    min-height: 2.75em;
}

.capability-card-desc {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.86rem;
    line-height: 1.55;

    margin-bottom: 1.1rem;

    min-height: 5.5em;
}

.capability-tag-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;

    margin-bottom: 0.5rem;
}

.capability-mini-chip {
    background: rgba(27, 110, 243, 0.05);

    border: 1px solid rgba(27, 110, 243, 0.16);
    border-radius: var(--radius-pill);

    color: var(--google-blue-deep);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.3rem 0.65rem;

    .material-symbols-outlined {
        color: var(--status-good);
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.95rem;
    }
}

.capability-card-footer {
    border-top: 1px dashed rgba(210, 204, 194, 0.7);

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

    margin-top: auto;
    padding-top: 0.85rem;
}

.capability-status-pill {
    border-radius: var(--radius-pill);

    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.28rem 0.65rem;

    .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.95rem;
    }
}

.capability-status-pill.pill-active {
    background: var(--status-good-surface);

    border: 1px solid rgba(19, 115, 51, 0.22);

    color: var(--status-good);
}

.capability-status-pill.pill-roadmap {
    background: var(--status-warn-surface);

    border: 1px solid rgba(227, 116, 0, 0.24);

    color: var(--status-warn);
}

.capability-cta-container {
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;

    margin-top: 1.25rem;
}

.jump-to-upload-btn {
    font-family: var(--sanifucv-title-font);
    font-size: 0.94rem;
    /* font-weight: 600; */

    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    padding: 0.85rem 2rem;

    .jump-icon-arrow {
        transition: transform 0.22s ease;
    }

    &:hover .jump-icon-arrow {
        transform: translateY(3px);
    }
}

.jump-subtext {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
}

/* ==========================================================================
   UNIFIED SANIFU SPOTLIGHT HALO & ISR STARRY BLUE VEIL (Global Attention Entity)
   Delivers a bubbly, tactile periwinkle-blue cushion halo and dreamy starry
   overlay across sections, cards, inputs, and preview modules.
   ========================================================================== */

@keyframes sanifuSpotlightAura {
    0% {
        border-color: rgba(96, 165, 250, 0.45);

        box-shadow:
            inset 0 0 0 0 rgba(255, 255, 255, 0),
            inset 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(147, 197, 253, 0),
            0 0 0 rgba(37, 99, 235, 0);
    }

    14% {
        border-color: #4b8df8;

        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.85),
            inset 0 0 32px rgba(96, 165, 250, 0.42),
            0 0 0 3px rgba(91, 155, 248, 0.92),
            0 0 0 8px rgba(147, 197, 253, 0.48),
            0 14px 36px -4px rgba(37, 99, 235, 0.28);
    }

    45% {
        border-color: #5b9bf8;

        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.78),
            inset 0 0 26px rgba(96, 165, 250, 0.32),
            0 0 0 2.5px rgba(91, 155, 248, 0.82),
            0 0 0 6.5px rgba(147, 197, 253, 0.36),
            0 10px 28px -4px rgba(37, 99, 235, 0.22);
    }

    75% {
        border-color: rgba(91, 155, 248, 0.6);

        box-shadow:
            inset 0 0 0 1.5px rgba(255, 255, 255, 0.45),
            inset 0 0 16px rgba(96, 165, 250, 0.16),
            0 0 0 2px rgba(96, 165, 250, 0.45),
            0 0 0 4.5px rgba(147, 197, 253, 0.18),
            0 6px 18px -2px rgba(37, 99, 235, 0.12);
    }

    100% {
        box-shadow:
            inset 0 0 0 0 rgba(255, 255, 255, 0),
            inset 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(147, 197, 253, 0),
            0 0 0 rgba(37, 99, 235, 0);
    }
}

.upload-card-welcome-glow,
.card-highlight-pulse,
.agent-spotlight-halo,
.agent-spotlight-active {
    border-radius: 20px !important;

    position: relative;

    outline: none !important;

    transition: box-shadow 0.55s cubic-bezier(0.2, 0.85, 0.25, 1), border-color 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) !important;
    animation: sanifuSpotlightAura 2.8s cubic-bezier(0.2, 0.85, 0.25, 1) forwards !important;
}

/* ==========================================================================
   ISR HAZY BLUE STARRY OVERLAY & TYPEWRITER CHOREOGRAPHY
   Matches the SanifuCV bubbly periwinkle-blue frosted starfield aesthetic.
   Both the Starry Veil and Halo Outline enter (0.36s) and dissolve (0.48s)
   in 100% synchronized lockstep.
   ========================================================================== */
.isr-veil-host,
.sanifu-spotlight-halo {
    border-color: #5b9bf8 !important;
    border-radius: 20px !important;

    position: relative !important;

    outline: none !important;

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.82),
        0 0 0 2.5px rgba(91, 155, 248, 0.9),
        0 0 0 7px rgba(147, 197, 253, 0.42),
        0 14px 36px -4px rgba(37, 99, 235, 0.24) !important;

    transition:
        box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.36s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.isr-veil-host-leaving,
.sanifu-spotlight-halo.isr-veil-host-leaving,
.isr-veil-host.isr-veil-host-leaving {
    border-color: var(--border-subtle) !important;

    box-shadow:
        inset 0 0 0 0 rgba(255, 255, 255, 0),
        0 0 0 0 rgba(91, 155, 248, 0),
        0 0 0 0 rgba(147, 197, 253, 0),
        0 0 0 0 rgba(37, 99, 235, 0) !important;

    transition:
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.48s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.48s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================================================
   Input-Only Halo Wrapper (Contact Fields, Professional Summary, Core Skills)
   Keeps the halo and starry veil strictly around the input/editor surface
   without overflowing onto labels, formatting toolbars, or adjacent elements.
   ========================================================================== */
.isr-input-halo-wrap {
    border: none !important;
    border-radius: var(--radius-md);

    display: block;
    position: relative;

    box-shadow:
        0 0 0 0 rgba(91, 155, 248, 0),
        0 0 0 0 rgba(147, 197, 253, 0),
        0 0 0 0 rgba(37, 99, 235, 0);

    margin: 0 !important;
    padding: 0 !important;

    width: 100%;
    box-sizing: border-box;
}

.isr-input-halo-wrap.isr-input-halo-pill {
    border-radius: var(--radius-pill) !important;
}

.isr-input-halo-wrap.isr-input-halo-box {
    border-radius: var(--radius-md) !important;
}

.isr-input-halo-wrap.isr-veil-host,
.isr-input-halo-wrap.sanifu-spotlight-halo {
    background: transparent !important;

    border: none !important;

    box-shadow:
        0 0 0 2px rgba(91, 155, 248, 0.92),
        0 0 0 5.5px rgba(147, 197, 253, 0.44),
        0 10px 24px -4px rgba(37, 99, 235, 0.22) !important;

    margin: 0 !important;
    padding: 0 !important;

    transition:
        box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.isr-input-halo-wrap.isr-veil-host > input,
.isr-input-halo-wrap.isr-veil-host > textarea,
.isr-input-halo-wrap.isr-veil-host > .rich-markdown-editor,
.isr-input-halo-wrap.sanifu-spotlight-halo > input,
.isr-input-halo-wrap.sanifu-spotlight-halo > textarea,
.isr-input-halo-wrap.sanifu-spotlight-halo > .rich-markdown-editor {
    background: #ffffff !important;

    border-color: #5b9bf8 !important;

    transition:
        border-color 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.36s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.isr-input-halo-wrap.isr-veil-host-leaving,
.isr-input-halo-wrap.sanifu-spotlight-halo.isr-veil-host-leaving,
.isr-input-halo-wrap.isr-veil-host.isr-veil-host-leaving {
    background: transparent !important;

    border: none !important;

    box-shadow:
        0 0 0 0 rgba(91, 155, 248, 0),
        0 0 0 0 rgba(147, 197, 253, 0),
        0 0 0 0 rgba(37, 99, 235, 0) !important;

    margin: 0 !important;
    padding: 0 !important;

    transition:
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.isr-input-halo-wrap.isr-veil-host-leaving > input,
.isr-input-halo-wrap.isr-veil-host-leaving > textarea,
.isr-input-halo-wrap.isr-veil-host-leaving > .rich-markdown-editor {
    background: var(--input-bg-default) !important;

    border-color: var(--input-border-default) !important;

    box-shadow: var(--input-shadow-default) !important;

    transition:
        border-color 0.48s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.48s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.isr-starry-overlay {
    /* Dreamy periwinkle-blue radial haze: clearer center so underlying card stays readable, lush blue perimeter */
    background:
        radial-gradient(ellipse 76% 70% at 50% 52%,
            rgba(191, 219, 254, 0.20) 0%,
            rgba(147, 197, 253, 0.38) 54%,
            rgba(96, 165, 250, 0.58) 84%,
            rgba(59, 130, 246, 0.72) 100%);

    border-radius: inherit !important;

    position: absolute;
    inset: 0;
    z-index: 28;

    pointer-events: none;

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.82),
        inset 0 0 24px rgba(59, 130, 246, 0.48),
        inset 0 0 52px rgba(96, 165, 250, 0.34);
    opacity: 0;

    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 0.42s ease, background 0.42s ease;
    animation: isrVeilFadeIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(1.15px) saturate(1.12);
    backdrop-filter: blur(1.15px) saturate(1.12);
}

/* Lighter spotlight-only wash when merely selecting/inspecting without editing */
.isr-starry-overlay.isr-mode-spotlight {
    background:
        radial-gradient(ellipse 84% 80% at 50% 50%,
            rgba(191, 219, 254, 0.06) 0%,
            rgba(147, 197, 253, 0.24) 68%,
            rgba(96, 165, 250, 0.46) 100%);

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.78),
        inset 0 0 22px rgba(59, 130, 246, 0.38);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Typewriter streaming mode: clears the center mist so live typing is 100% crisp while keeping the starry perimeter frame */
.isr-starry-overlay.isr-mode-typing {
    background:
        radial-gradient(ellipse 88% 84% at 50% 54%,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(191, 219, 254, 0.08) 65%,
            rgba(96, 165, 250, 0.36) 90%,
            rgba(59, 130, 246, 0.54) 100%);

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.85),
        inset 0 0 18px rgba(59, 130, 246, 0.34);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.isr-starry-overlay.isr-veil-dissolving {
    animation: isrVeilFadeOut 0.48s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes isrVeilFadeIn {
    0% {
        opacity: 0;

        transform: scale(0.992);
    }
    100% {
        opacity: 1;

        transform: scale(1);
    }
}

@keyframes isrVeilFadeOut {
    0% {
        opacity: 1;

        transform: scale(1);
    }
    100% {
        opacity: 0;

        transform: scale(1.005);
    }
}

/* Drifting shimmer aurora wave across the starry veil */
.isr-starry-aurora {
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 28%,
        rgba(255, 255, 255, 0.26) 46%,
        rgba(186, 230, 253, 0.32) 52%,
        rgba(255, 255, 255, 0) 70%
    );

    position: absolute;
    inset: -30%;

    pointer-events: none;

    animation: isrAuroraSweep 3.2s ease-in-out infinite;
}

@keyframes isrAuroraSweep {
    0% {
        transform: translateX(-35%) translateY(-10%) rotate(-4deg);
    }
    50% {
        transform: translateX(25%) translateY(8%) rotate(2deg);
    }
    100% {
        transform: translateX(-35%) translateY(-10%) rotate(-4deg);
    }
}

/* 4-Point Star Sparkles & Luminous Bokeh Particles */
.isr-starfield {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.isr-star-sparkle {
    color: #ffffff;

    position: absolute;

    animation: isrStarTwinkle var(--twinkle-dur, 1.8s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    transform-origin: center;
    translate: -50% -50%;
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.98))
        drop-shadow(0 0 10px rgba(147, 197, 253, 0.95))
        drop-shadow(0 0 18px rgba(59, 130, 246, 0.75));
}

.isr-input-halo-pill .isr-star-sparkle {
    scale: 0.76;
}

.isr-star-sparkle svg {
    display: block;

    width: 100%;
    height: 100%;
}

.isr-bokeh-dot {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(186, 230, 253, 0.75) 45%, rgba(96, 165, 250, 0) 100%);

    border-radius: 50%;

    position: absolute;

    animation: isrBokehFloat var(--twinkle-dur, 2.4s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    translate: -50% -50%;
}

@keyframes isrStarTwinkle {
    0%, 100% {
        opacity: 0.35;

        transform: scale(0.68) rotate(0deg);
    }
    50% {
        opacity: 1;

        transform: scale(1.18) rotate(12deg);
    }
}

@keyframes isrBokehFloat {
    0%, 100% {
        opacity: 0.28;

        transform: translateY(0) scale(0.85);
    }
    50% {
        opacity: 0.88;

        transform: translateY(-4px) scale(1.15);
    }
}

/* Bubbly Status Pill Badge inside the Starry Veil */
.isr-veil-badge {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.94) 100%);

    border: 1.5px solid rgba(96, 165, 250, 0.82);
    border-radius: 999px;

    color: #1d4ed8;
    font-family: var(--sanifucv-title-font);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;

    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 32;
    align-items: center;
    gap: 0.42rem;

    pointer-events: none;

    box-shadow:
        inset 0 1.5px 0 #ffffff,
        0 4px 14px rgba(37, 99, 235, 0.22),
        0 0 0 3px rgba(191, 219, 254, 0.45);

    padding: 0.34rem 0.78rem;

    animation: isrBadgePop 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.isr-veil-badge-star {
    color: #2563eb;

    display: inline-flex;

    animation: isrStarSpinPulse 2.2s ease-in-out infinite;

    width: 14px;
    height: 14px;
}

@keyframes isrBadgePop {
    0% {
        opacity: 0;

        transform: translateY(-6px) scale(0.9);
    }
    100% {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

.isr-input-halo-pill .isr-veil-badge {
    font-size: 0.7rem;

    top: 50%;
    right: 7px;

    padding: 0.2rem 0.62rem;

    animation: isrBadgePopPill 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes isrBadgePopPill {
    0% {
        opacity: 0;

        transform: translateY(-50%) scale(0.9);
    }
    100% {
        opacity: 1;

        transform: translateY(-50%) scale(1);
    }
}

@keyframes isrStarSpinPulse {
    0%, 100% {
        transform: scale(0.92) rotate(0deg);
    }
    50% {
        transform: scale(1.18) rotate(22deg);
    }
}

/* Field-Level Active Typewriter Halo & Pre-Type Starry Shimmer */
.isr-field-typing-active {
    background-color: #f8fbff !important;

    border-color: #3b82f6 !important;

    position: relative;

    box-shadow:
        inset 0 0 18px rgba(147, 197, 253, 0.32),
        0 0 0 3px rgba(96, 165, 250, 0.42),
        0 6px 20px rgba(37, 99, 235, 0.16) !important;

    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease !important;
}

.isr-field-pretype-shimmer {
    background-image: linear-gradient(
        100deg,
        rgba(239, 246, 255, 0.55) 20%,
        rgba(191, 219, 254, 0.65) 48%,
        rgba(239, 246, 255, 0.55) 78%
    ) !important;
    background-size: 220% 100% !important;

    animation: isrPretypeWave 0.75s linear infinite !important;
}

@keyframes isrPretypeWave {
    0% { background-position: 180% 0; }
    100% { background-position: -40% 0; }
}

.isr-typewriter-caret {
    background: linear-gradient(180deg, #60a5fa 0%, #1d4ed8 100%);

    border-radius: 2px;

    display: inline-block;

    box-shadow: 0 0 8px rgba(59, 130, 246, 0.85);

    margin-left: 2px;

    animation: isrCaretBlink 0.55s steps(2, start) infinite;

    width: 2.5px;
    height: 1.05em;
    vertical-align: text-bottom;
}

@keyframes isrCaretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.18; }
}

/* ==========================================================================
   ISR LAYER 2 — IN-CHAT AUTONOMOUS RUNTIME & CREATION MEMORY CARD
   ========================================================================== */
.chat-autonomous-run-card {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(239, 246, 255, 0.95) 100%);

    border: 1.5px solid rgba(96, 165, 250, 0.75);
    border-radius: 16px;

    box-shadow:
        inset 0 2px 0 #ffffff,
        0 0 0 3px rgba(147, 197, 253, 0.25),
        0 8px 20px -6px rgba(37, 99, 235, 0.16);

    margin-top: 0.75rem;
    padding: 0.9rem 1rem;

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

.chat-autonomous-run-card.is-completed {
    background: linear-gradient(180deg, rgba(248, 253, 250, 0.98) 0%, rgba(236, 253, 245, 0.94) 100%);

    border-color: rgba(52, 211, 153, 0.78);

    box-shadow:
        inset 0 2px 0 #ffffff,
        0 0 0 3px rgba(167, 243, 208, 0.28),
        0 8px 20px -6px rgba(5, 150, 105, 0.14);
}

.chat-autonomous-run-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.38rem;
    flex-wrap: wrap;
}

.chat-autonomous-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.45rem;
}

.chat-autonomous-title {
    color: #1e3a8a;
    font-family: var(--sanifucv-title-font);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.chat-autonomous-run-card.is-completed .chat-autonomous-title {
    color: #065f46;
}

.chat-autonomous-step-pill {
    background: rgba(59, 130, 246, 0.14);

    border: 1px solid rgba(96, 165, 250, 0.48);
    border-radius: 999px;

    color: #1d4ed8;
    font-family: var(--sanifucv-title-font);
    font-size: 0.69rem;
    font-weight: 600;

    padding: 0.15rem 0.55rem;
}

.chat-autonomous-run-card.is-completed .chat-autonomous-step-pill {
    background: rgba(16, 185, 129, 0.15);

    border-color: rgba(52, 211, 153, 0.55);

    color: #047857;
}

.chat-autonomous-timestamp {
    color: #64748b;
    font-family: var(--sanifucv-default-font);
    font-size: 0.72rem;
    font-weight: 400;
}

.chat-autonomous-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-autonomous-btn {
    background: #ffffff;

    border: 1px solid rgba(96, 165, 250, 0.65);
    border-radius: 999px;

    color: #1d4ed8;
    font-family: var(--sanifucv-title-font);
    font-size: 0.69rem;
    font-weight: 600;

    cursor: pointer;

    box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(37, 99, 235, 0.1);

    padding: 0.22rem 0.62rem;

    transition: transform 0.15s ease, background 0.15s ease;
}

.chat-autonomous-btn:hover {
    background: #eff6ff;

    transform: translateY(-1px);
}

.chat-autonomous-btn.is-stop {
    border-color: rgba(248, 113, 113, 0.65);

    color: #dc2626;
}

.chat-autonomous-btn.is-stop:hover {
    background: #fef2f2;
}

.chat-autonomous-sub {
    color: #475569;
    font-family: var(--sanifucv-default-font);
    font-size: 0.8rem;
    font-weight: 400;

    margin: 0 0 0.55rem 0;
}

/* SanifuCV 3D Tactile Progress Track & Fill */
.chat-autonomous-progress-track {
    background: #e2e8f0;

    border-radius: 999px;

    position: relative;

    box-shadow: inset 0 1.5px 2.5px rgba(0, 0, 0, 0.12), 0 1px 0 #ffffff;

    margin-bottom: 0.75rem;

    width: 100%;
    height: 8px;
    overflow: hidden;
}

.chat-autonomous-run-card.is-completed .chat-autonomous-progress-track {
    background: #d1fae5;

    box-shadow: inset 0 1.5px 2.5px rgba(5, 150, 105, 0.22), 0 1px 0 #ffffff;
}

.chat-autonomous-progress-fill {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);

    border-radius: 999px;

    position: relative;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 3px rgba(37, 99, 235, 0.35);

    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    height: 100%;
}

.chat-autonomous-run-card.is-completed .chat-autonomous-progress-fill {
    background: linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 3px rgba(5, 150, 105, 0.35);
}

.chat-autonomous-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.chat-autonomous-task-row {
    background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);

    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;

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

    box-shadow:
        inset 0 1px 0 #ffffff,
        0 2.5px 0 rgba(203, 213, 225, 0.65),
        0 4px 10px rgba(0, 0, 0, 0.03);

    padding: 0.72rem 0.95rem;

    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-wrap: wrap;
}

.chat-autonomous-task-row.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);

    border-color: rgba(96, 165, 250, 0.9);

    box-shadow:
        inset 0 1px 0 #ffffff,
        0 3px 0 rgba(59, 130, 246, 0.45),
        0 0 0 3px rgba(147, 197, 253, 0.35),
        0 6px 14px rgba(37, 99, 235, 0.12);
}

.chat-autonomous-task-row.is-done {
    background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);

    border-color: rgba(52, 211, 153, 0.65);

    box-shadow:
        inset 0 1px 0 #ffffff,
        0 2.5px 0 rgba(16, 185, 129, 0.32),
        0 4px 12px rgba(5, 150, 105, 0.06);
}

.chat-autonomous-task-row:hover {
    transform: translateY(-1px);
}

.chat-autonomous-task-left {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 0.65rem;

    min-width: 170px;
}

.chat-autonomous-check-badge {
    border-radius: 999px;

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

    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.chat-autonomous-badge-icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1.45rem;
    line-height: 1;

    display: inline-block;
}

.chat-autonomous-task-row.is-done .chat-autonomous-badge-icon {
    color: var(--status-success, #10b981);
    filter: drop-shadow(0 1.5px 2px rgba(16, 185, 129, 0.3));
}

.chat-autonomous-task-row.is-active .chat-autonomous-badge-icon {
    color: #2563eb;
    font-size: 1.3rem;
    filter: drop-shadow(0 1.5px 2px rgba(37, 99, 235, 0.35));

    animation: isrStarTwinkle 1.4s ease-in-out infinite;
}

.chat-autonomous-task-num {
    background: #f1f5f9;

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

    color: #94a3b8;
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 700;

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

    box-shadow: inset 0 1px 0 #ffffff, 0 1.5px 0 #cbd5e1;

    width: 22px;
    height: 22px;
}

.chat-autonomous-task-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.chat-autonomous-task-label {
    color: #1e293b;
    font-family: var(--sanifucv-title-font);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.chat-autonomous-task-row.is-active .chat-autonomous-task-label {
    color: #1d4ed8;
}

.chat-autonomous-task-row.is-done .chat-autonomous-task-label {
    color: #065f46;
}

.chat-autonomous-task-summary {
    color: #64748b;
    font-family: var(--sanifucv-default-font);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;

    margin-top: 0.12rem;
}

.chat-autonomous-inspect-btn {

    /* SanifuCV tactile 3D cream gradient + crisp bevel */
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream, #fdfbf7) 100%) !important;

    border: 1px solid var(--border-tactile, #dcd7ce) !important;
    border-radius: var(--radius-pill, 999px) !important;

    color: var(--text-main, #1e293b) !important;
    font-family: var(--sanifucv-title-font) !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    white-space: nowrap !important;

    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem !important;

    cursor: pointer !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 rgba(195, 188, 178, 0.85) !important;

    padding: 0 0.95rem !important;

    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;

    height: 34px !important;
    flex-shrink: 0 !important;
}

.chat-autonomous-inspect-btn .material-symbols-outlined {
    color: var(--google-blue, #2563eb) !important;
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1rem !important;
    line-height: 1 !important;

    transition: color 0.2s ease;
}

/* Green theme integration when inside a completed task or card */
.chat-autonomous-task-row.is-done .chat-autonomous-inspect-btn {
    border-color: rgba(167, 243, 208, 0.95) !important;

    box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 rgba(16, 185, 129, 0.35) !important;
}

.chat-autonomous-task-row.is-done .chat-autonomous-inspect-btn .material-symbols-outlined {
    color: #059669 !important;
}

.chat-autonomous-inspect-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;

    border-color: rgba(52, 211, 153, 0.85) !important;

    color: #047857 !important;

    box-shadow: inset 0 1px 0 #ffffff, 0 3px 0 rgba(16, 185, 129, 0.45) !important;

    transform: translateY(-1px) !important;
}

.chat-autonomous-inspect-btn:hover .material-symbols-outlined {
    color: #047857 !important;
}

.chat-autonomous-inspect-btn:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(16, 185, 129, 0.35) !important;

    transform: translateY(1px) scale(0.99) !important;
}


/* ISR Spatial Mutation Micro-Transitions */
.isr-entry-erasing {
    pointer-events: none !important;

    opacity: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateX(-16px) scale(0.96) !important;

    max-height: 0 !important;
    overflow: hidden !important;
}

.isr-entry-created {
    animation: isrEntryAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes isrEntryAppear {
    from {
        opacity: 0;

        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}


/* ==========================================================================
   ISR BIDIRECTIONAL SPATIAL RAYCASTING (Screen Preview Only)
   ========================================================================== */
@media screen {
    .cv-raycast-item,
    .resume-paper [data-raycast-target] {
        border-radius: 4px;

        position: relative;

        cursor: pointer;

        transition: background-color 0.16s ease, outline-color 0.16s ease;
    }

    .cv-raycast-item:hover,
    .resume-paper [data-raycast-target]:hover {
        background-color: rgba(27, 110, 243, 0.04);

        outline: 1.5px dashed rgba(27, 110, 243, 0.4);
        outline-offset: 3px;
    }

    .cv-raycast-active {
        background-color: rgba(27, 110, 243, 0.08) !important;

        outline: 2px solid var(--google-blue, #1b6ef3) !important;
        outline-offset: 3px !important;
    }
}

/* ==========================================================================
   10. UPLOAD CARD & DROPZONE
   ========================================================================== */

.industry-field-group {
    margin-bottom: 1.4rem;
}

.label-icon {
    color: var(--google-blue);
    font-size: 1.15rem;
}

.drop-zone {
    background: linear-gradient(180deg, #f9fbff 0%, #f2f6fb 100%);

    border: 2px dashed rgba(154, 168, 182, 0.96);
    border-radius: var(--radius-md);

    text-align: center;

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

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(15, 23, 42, 0.04);

    padding: 3rem 2rem;

    transition: all 0.25s var(--ease-sweet);
}

.drop-zone:hover {
    background: linear-gradient(180deg, #f1f7ff 0%, #ecf4ff 100%);

    border-color: rgba(27, 110, 243, 0.8);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px rgba(27, 110, 243, 0.08);

    transform: translateY(-2px);
}

.drop-icon-wrap {
    background: var(--bg-surface);

    border-radius: 50%;

    color: var(--google-blue);

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

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    margin-bottom: 0.85rem;

    width: 54px;
    height: 54px;
}

.drop-icon {
    font-size: 2rem;
}

.drop-text {
    color: var(--text-main);
    font-size: var(--font-max);
    font-weight: 400;

    margin-bottom: 0.35rem;
}

.browse-link {
    color: var(--google-blue);
    text-decoration: underline;
}

.file-spec {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;
}

.action-row {
    display: flex;
    justify-content: flex-end;

    margin-top: 1.5rem;
}

/* ==========================================================================
   11. AUDIT RESULTS & BREAKDOWN
   ========================================================================== */

.results-card {
    animation: drapeDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.results-card.hidden {
    display: none !important;
}

@keyframes drapeDown {
    from {
        opacity: 0;

        transform: translateY(-16px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.score-header {
    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    align-items: center;
    gap: 1.5rem;

    padding-bottom: 1.75rem;
}

.score-meter {
    background: linear-gradient(180deg, #eff8ff 0%, #dfeeff 100%);

    border: 2.5px solid rgba(120, 184, 255, 0.9);
    border-radius: 50%;

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(27, 110, 243, 0.08);

    width: 108px;
    height: 108px;
    flex-shrink: 0;
}

.score-value {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 2.1rem;
    font-weight: 700;

    line-height: 1;
    letter-spacing: -0.03em;
}

.score-summary {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.card-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.3rem, 1.9vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;

    margin-bottom: 0.35rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;

    max-width: 58ch;
}

.audit-breakdown {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;

    margin: 1.5rem 0;
}

.breakdown-col {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 250, 252, 0.9) 100%);

    border: 1px solid rgba(220, 225, 231, 0.9);
    border-radius: var(--radius-md);

    padding: 1.15rem;
}

.col-header {
    font-family: var(--sanifucv-title-font);
    font-size: 1.08rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.9rem;
}

.col-header .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.text-crit {
    color: var(--status-crit);
}

.text-good {
    color: var(--status-good);
}

.audit-list {
    list-style: none;
}

.audit-list li {
    color: var(--text-main);
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.6;

    position: relative;

    margin-bottom: 0.45rem;
    padding-left: 1.1rem;
}

.audit-list li::before {
    background: currentColor;

    border-radius: 50%;

    position: absolute;
    top: 0.62rem;
    left: 0;

    width: 5px;
    height: 5px;
    content: '';
}

.issues-col .audit-list li::before {
    background: var(--status-crit);
}

.strengths-col .audit-list li::before {
    background: var(--status-good);
}

.results-actions-wrapper {
    border-top: 1px solid var(--border-subtle);

    margin-top: 1.75rem;
    padding-top: 1.75rem;
}

.options-header {
    text-align: center;

    margin-bottom: 1.25rem;
}

.options-kicker {
    color: var(--google-blue);
    font-size: var(--font-min);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.options-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.25rem;
    font-weight: 700;

    margin-top: 0.2rem;
}

.options-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.options-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.option-card-primary {
    background: var(--bg-surface);

    border: 2px solid var(--google-blue);

    box-shadow: var(--shadow-card);
}

.option-card-primary .option-btn {
    margin-top: auto;
}

.option-card-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;

    margin-bottom: 0.5rem;
}

.option-sparkle {
    color: var(--google-blue);
    font-size: 1.05rem;
}

.option-category {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.option-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 600;

    margin-bottom: 0.75rem;
}

.option-preview-box {
    background: var(--google-blue-surface);

    border-radius: var(--radius-sm);

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

    margin-bottom: 0.85rem;
    padding: 0.6rem;

    width: 100%;
    height: 94px;
}

.option-svg {
    max-width: 100%;
    height: 100%;
}

.option-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;

    flex: 1;

    margin-bottom: 1.25rem;
}

/* ==========================================================================
   12. FULL-SCREEN GUIDED CAREER INTERVIEW MODE
   ========================================================================== */

.fullscreen-interview-stage {
    background: var(--bg-canvas);

    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;

    pointer-events: none;

    opacity: 0;

    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fullscreen-interview-stage::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

.fullscreen-interview-stage.active {
    pointer-events: auto;

    opacity: 1;
}

.fullscreen-interview-stage.hidden {
    display: none !important;
}

.interview-top-bar {
    background: var(--bg-surface);

    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding: 0.9rem 2.5rem;

    width: 100%;
    box-sizing: border-box;
}

.interview-top-bar.hidden {
    display: none !important;
}

.mock-live-indicator {
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(27, 110, 243, 0.1);

    padding: 0.28rem 0.8rem;

    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-pulse-dot {
    background: var(--status-good, #10b981);

    border-radius: 50%;

    display: inline-block;
    flex-shrink: 0;

    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);

    animation: pulseDot 2s infinite ease-in-out;

    width: 8px;
    height: 8px;
}

.interview-btn-text-full {
    display: inline;
}

.interview-btn-text-short {
    display: none;
}

@media (max-width: 640px) {
    .interview-top-bar {
        gap: 0.5rem;

        padding: 0.65rem 0.9rem;
    }

    .interview-btn-text-full {
        display: none !important;
    }

    .interview-btn-text-short {
        display: inline !important;
    }

    .mock-live-indicator {
        display: none !important;
    }

    .interview-progress-cluster {
        gap: 0.45rem;
    }

    .fs-step-counter {
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .fs-progress-track {
        width: 72px;
        height: 10px;
    }
}

.interview-progress-cluster {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.fs-step-counter {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;
}

.fs-progress-track {
    background: linear-gradient(180deg, #e4e7ed 0%, #edf0f5 100%);

    border: 1px solid rgba(205, 212, 222, 0.9);
    border-radius: var(--radius-pill);

    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.85);

    padding: 2px;

    width: 160px;
    height: 12px;

    overflow: hidden;
}

.fs-progress-fill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%), linear-gradient(90deg, #1b6ef3 0%, #10b981 100%);

    border-radius: var(--radius-pill);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 2px 6px rgba(27, 110, 243, 0.35);

    transition: width 0.5s cubic-bezier(0.34, 1.25, 0.64, 1);

    height: 100%;
}

.interview-main-stage {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: flex-start;

    opacity: 0;

    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;

    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(22px) scale(0.985);

    width: 100%;
    max-width: 780px;
    box-sizing: border-box;
}

.fullscreen-interview-stage.active .interview-main-stage {
    opacity: 1;

    transform: translateY(0) scale(1);
}

.interview-header-cluster {
    text-align: center;

    margin-bottom: 2rem;
}

.fs-role-headline {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.fs-company-subheadline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;

    margin-top: 0.25rem;
}

.fs-char-counter {
    color: var(--text-subtle);
    font-size: 0.78rem;
    font-weight: 400;

    display: block;

    margin-top: 0.4rem;
}

.interview-body-cluster {
    background: var(--bg-surface);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-3d-soft);

    padding: 2.2rem 2.4rem;
}

.fs-question-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;

    margin-bottom: 0.5rem;
}

.fs-question-helper {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;

    margin-bottom: 1.25rem;
}

.fs-chips-section {
    margin-bottom: 1.2rem;
}

.fs-chips-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;

    display: block;

    margin-bottom: 0.5rem;
}

.fs-chips-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fs-textarea {
    margin-top: 1rem;
}

.fs-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 1.75rem;
}

.fs-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.interview-loading-stage {
    text-align: center;
}

.fs-insights-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;

    margin-top: 2rem;
}

/* Imani Avatar Loading State for Guided Interview */
.fs-interview-avatar-wrap {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;

    margin: 0.5rem auto 0.75rem auto;

    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.fs-interview-spinner-ring {
    border: 3.5px solid rgba(27, 110, 243, 0.16);
    border-radius: 50%;

    position: absolute;
    inset: -6px;

    animation: wsRingSpin 1.15s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    border-top-color: var(--google-blue);
    border-right-color: #10b981;
}

.fs-interview-avatar-badge {
    background: #e8f0fe;

    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow: 0 8px 24px rgba(27, 110, 243, 0.25);

    width: 76px;
    height: 76px;
    overflow: hidden;
}

.fs-interview-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubbly-orb-stage {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;

    width: 120px;
    height: 120px;
}

.bubbly-orb-ripple {
    background: transparent;

    border: 2px solid rgba(27, 110, 243, 0.35);
    border-radius: 50%;

    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow: 0 0 16px rgba(27, 110, 243, 0.15);
    opacity: 0;

    animation: bubbleRipple 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.bubbly-orb-ripple.ripple-delay {
    animation-delay: 1.2s;
}

.bubbly-orb {
    background: linear-gradient(135deg, #4d96ff 0%, var(--google-blue) 55%, var(--google-blue-deep) 100%);

    border: 3px solid #ffffff;
    border-radius: 50%;

    display: flex;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;

    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 0 rgba(15, 23, 42, 0.25), 0 12px 28px rgba(27, 110, 243, 0.32);

    animation: bubbleFloat 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;

    width: 76px;
    height: 76px;
}

.bubbly-orb-shine {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);

    border-radius: 50%;

    position: absolute;
    top: 6px;
    left: 12px;

    pointer-events: none;

    transform: rotate(-30deg);

    width: 26px;
    height: 14px;
}

.bubbly-orb-icon {
    color: #ffffff;
    font-size: 2.3rem;

    animation: sparkleGleam 2.6s ease-in-out infinite;
}

.bubbly-dots-wave {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bubbly-dot {
    background: var(--google-blue);

    border-radius: 50%;

    display: inline-block;

    box-shadow: 0 2px 6px rgba(27, 110, 243, 0.25);

    animation: bubblyDotBounce 1.2s infinite ease-in-out;

    width: 8px;
    height: 8px;
}

.bubbly-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.bubbly-dot:nth-child(3) {
    animation-delay: 0.36s;
}

.fs-insights-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;

    margin: 0;
}

.fs-insights-subtitle {
    color: var(--text-muted);
    font-size: var(--font-mid);
    font-weight: 400;

    margin: 0;
}

@keyframes bubbleFloat {
    0%,
    100% {
        transform: translateY(0) scale(1, 1);
    }

    50% {
        transform: translateY(-10px) scale(1.05, 0.95);
    }
}

@keyframes bubbleRipple {
    0% {
        opacity: 0.85;

        transform: scale(0.65);
    }

    100% {
        opacity: 0;

        transform: scale(1.25);
    }
}

@keyframes sparkleGleam {
    0%,
    100% {
        opacity: 0.92;

        transform: scale(1);
    }

    50% {
        opacity: 1;

        transform: scale(1.12);
    }
}

@keyframes bubblyDotBounce {
    0%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-8px) scale(1.18);
    }
}

/* ==========================================================================
   12B. POST-INTERVIEW RECRUITER DEBRIEF STAGE (The Imani Assessment)
   ========================================================================== */
.interview-debrief-stage {
    display: flex;
    position: relative;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    margin: 0 auto;
    padding: 0;
    overflow: hidden;

    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
}

.debrief-scroll-container {
    overflow-y: auto;

    flex: 1 1 auto;

    padding: 2.2rem 1.5rem 5rem 1.5rem;

    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.debrief-scroll-container > * {
    margin-right: auto;
    margin-left: auto;

    width: 100%;
    max-width: 860px;
    box-sizing: border-box;
}

.debrief-hero-header {
    text-align: center;

    margin-bottom: 2rem;
}

.debrief-avatar-cluster {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.2);
    border-radius: var(--radius-pill);

    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
}

.debrief-avatar-ring {
    border: 1.5px solid var(--google-blue);
    border-radius: 50%;

    overflow: hidden;

    width: 28px;
    height: 28px;
}

.debrief-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.debrief-badge {
    color: var(--google-blue);
    font-size: 0.8rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 4px;
}

.debrief-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;

    margin-bottom: 0.5rem;
}

.debrief-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;

    margin: 0 auto;

    max-width: 620px;
}

.debrief-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 1.25rem;

    margin-bottom: 1.75rem;
}

.debrief-metric-card {
    background: var(--bg-surface);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: var(--shadow-sm);

    padding: 1.25rem 1.4rem;
}

.debrief-metric-label {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.75rem;
}

.debrief-metric-label .metric-icon {
    color: var(--google-blue);
    font-size: 1.15rem;
}

.debrief-density-track-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.debrief-density-values {
    font-family: var(--sanifucv-title-font);
    font-size: 0.9rem;
    font-weight: 600;

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

.density-before {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.density-arrow {
    color: var(--google-blue);
}

.density-after {
    color: var(--status-good, #10b981);
}

.debrief-progress-bar-bg {
    background: var(--border-color);

    border-radius: var(--radius-pill);

    margin-top: 4px;
    overflow: hidden;

    width: 100%;
    height: 8px;
}

.debrief-progress-bar-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);

    border-radius: var(--radius-pill);

    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    height: 100%;
}

.debrief-score-lift-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(27, 110, 243, 0.04) 100%);
}

.debrief-lift-value {
    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;

    margin-bottom: 0.25rem;
}

.debrief-lift-subtext {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.debrief-critique-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    position: relative;

    box-shadow: var(--shadow-3d-soft);

    margin-bottom: 2rem;
    padding: 1.5rem 1.65rem;
}

.debrief-critique-header {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    margin-bottom: 0.9rem;
}

.critique-quote-icon {
    font-size: 1.3rem;
}

.debrief-verdict-text {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-left: 4px solid var(--google-blue);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.68;

    position: relative;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    margin: 0 0 1rem 0;
    padding: 1rem 1.25rem;
}

.debrief-highlights-list {
    display: flex;
    flex-wrap: wrap;

    gap: 0.5rem;
}

.debrief-highlight-tag {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.16);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: 0.75rem;
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 0.25rem 0.75rem;
}

.debrief-transformations-section {
    margin-bottom: 2rem;
}

.transformations-section-header {
    margin-bottom: 1.2rem;
}

.transformations-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.2rem;
}

.transformations-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.debrief-transformations-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transformation-card {
    background: var(--bg-surface);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-3d-soft);

    padding: 1.25rem 1.4rem;

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

.transformation-card:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow: var(--shadow-hover);
}

.transformation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;

    margin-bottom: 0.75rem;
}

.transformation-role {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.92rem;
    font-weight: 600;
}

.transformation-company {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.transformation-badge {
    background: rgba(16, 185, 129, 0.1);

    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-pill);

    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;

    padding: 0.18rem 0.65rem;
}

.transformation-flow {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.raw-box {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px dashed rgba(210, 204, 194, 0.94);
    border-radius: 10px;

    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;

    padding: 0.65rem 0.85rem;
}

.raw-box-label {
    color: var(--text-subtle);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    margin-bottom: 0.2rem;
}

.xyz-box {
    background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: 10px;

    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;

    padding: 0.75rem 0.95rem;
}

.xyz-box-label {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    display: flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 0.2rem;
}

.debrief-sticky-footer {
    background: var(--bg-surface);

    border-top: 1px solid var(--border-subtle);

    display: flex;
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;

    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);

    padding: 0.9rem 2.5rem;

    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .debrief-scroll-container {
        padding: 1.4rem 1rem 3.5rem 1rem;
    }

    .debrief-metrics-grid {
        grid-template-columns: 1fr;
    }

    .debrief-sticky-footer {
        justify-content: center;
        gap: 0.55rem;
        flex-wrap: wrap;

        padding: 0.75rem 1rem;
    }

    .debrief-sticky-footer button {
        font-size: 0.8rem;

        flex: 1 1 auto;
        justify-content: center;

        padding: 0 0.9rem;

        height: 38px;
    }
}

/* ==========================================================================
   12C. MODE 2: RECRUITER MOCK INTERVIEW & EXECUTIVE TALENT VETTING REPORT
   ========================================================================== */

.mock-interview-stage {
    background:
        radial-gradient(circle at top left, rgba(27, 110, 243, 0.08), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, var(--bg-canvas) 100%);

    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    width: 100vw;
    height: 100vh;
}

.mock-interview-stage::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

.mock-main-stage,
.mock-question-stage {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;

    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem 1.25rem;

    width: 100%;
    max-width: 820px;
    box-sizing: border-box;

    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mock-main-stage::-webkit-scrollbar,
.mock-question-stage::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

.mock-interviewer-card {
    background: linear-gradient(135deg, rgba(27, 110, 243, 0.05) 0%, rgba(27, 110, 243, 0.02) 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    display: flex;
    align-items: center;
    gap: 1.25rem;

    box-shadow: var(--shadow-sm);

    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
}

.mock-interviewer-avatar-wrap {
    position: relative;
    flex-shrink: 0;

    width: 58px;
    height: 58px;
}

.mock-interviewer-avatar {
    border: 2px solid var(--google-blue);
    border-radius: 50%;

    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-interviewer-live-dot {
    background: var(--status-good, #10b981);

    border: 2px solid var(--bg-surface);
    border-radius: 50%;

    position: absolute;
    right: 2px;
    bottom: 2px;

    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);

    animation: pulseDot 2s infinite ease-in-out;

    width: 13px;
    height: 13px;
}

.mock-interviewer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mock-interviewer-badge {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: 0.74rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.2rem 0.65rem;

    width: fit-content;
}

.mock-target-role {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;

    margin: 0.2rem 0 0.15rem 0;
}

.mock-target-company {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.mock-q-hero-box {
    background: var(--bg-surface);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    margin-bottom: 1.5rem;
    padding: 1.5rem 1.6rem;
}

.mock-q-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.85rem;
}

.mock-category-row {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.85rem;
}

.mock-category-pill,
.mock-q-category-pill {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.18);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    padding: 0.2rem 0.65rem;
}

.mock-competency-pill {
    background: var(--bg-hover);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    padding: 0.2rem 0.65rem;
}

.mock-q-text {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.4;

    margin-bottom: 1rem;
}

.mock-lens-card {
    background: linear-gradient(180deg, #fffdf8 0%, #fff9ee 100%);

    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.5;

    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    box-shadow: 0 2px 8px -2px rgba(245, 158, 11, 0.1);

    margin-bottom: 1.15rem;
    padding: 0.85rem 1.15rem;
}

.mock-lens-header {
    color: #b45309;
    font-family: var(--sanifucv-title-font);
    font-size: 0.8rem;
    letter-spacing: 0.02em;

    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mock-lens-card .material-symbols-outlined,
.mock-lens-icon {
    color: #d97706;
    font-size: 1.15rem;

    flex-shrink: 0;
}

.mock-lens-text {
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.5;

    margin: 0;
    padding-left: 0.15rem;
}

.mock-star-guidance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.6rem;
}

.mock-star-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mock-star-chips .star-pill {
    background: var(--bg-hover);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;

    padding: 0.18rem 0.55rem;
}

.mock-star-chips .star-pill strong {
    color: var(--google-blue);
    font-weight: 700;
}

.mock-textarea {
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;

    resize: vertical;

    padding: 1rem 1.15rem;

    width: 100%;
    min-height: 160px;
}

.mock-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 0.5rem;
}

.mock-time-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.mock-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 1.75rem;
}

.mock-loading-stage {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;

    padding: 2rem;

    width: 100%;
    height: 100%;
    min-height: 0;

    overflow-y: auto;
}

.mock-loader-card {
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 520px;
}

.mock-loader-avatar-cluster {
    position: relative;

    margin-bottom: 1.5rem;

    width: 90px;
    height: 90px;
}

.mock-loader-spinner-ring {
    border: 3.5px solid rgba(27, 110, 243, 0.12);
    border-radius: 50%;

    position: absolute;
    top: -6px;
    right: -6px;
    bottom: -6px;
    left: -6px;

    pointer-events: none;

    border-top-color: #1b6ef3;
    border-right-color: #06b6d4;
    border-bottom-color: #10b981;
    border-left-color: transparent;

    box-shadow: 0 0 16px rgba(27, 110, 243, 0.25);

    animation: imaniHarmonicSpin 1.25s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.mock-loader-spinner-ring::before,
.mock-loader-spinner-ring::after {
    display: none !important;
}

.mock-loader-avatar-badge {
    border: 2px solid #ffffff;
    border-radius: 50%;

    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;

    box-shadow: 0 4px 14px rgba(27, 110, 243, 0.2);
    overflow: hidden;
}

.mock-loader-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes imaniHarmonicSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mock-report-stage {
    display: flex;
    position: relative;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    margin: 0 auto;
    padding: 0;

    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;

    overflow: hidden;
}

.mock-report-scroll-container {
    flex: 1 1 auto;

    padding: 2.2rem 1.5rem 5rem 1.5rem;

    width: 100%;
    min-height: 0;
    box-sizing: border-box;

    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mock-report-scroll-container > * {
    margin-right: auto;
    margin-left: auto;

    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
}

.mock-report-scroll-container::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

.mock-report-header {
    text-align: center;

    margin-bottom: 2rem;
}

.mock-report-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;

    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.mock-report-badge {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fe 100%);

    border: 1px solid rgba(27, 110, 243, 0.24);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(27, 110, 243, 0.12);

    padding: 0.35rem 0.9rem;
}

.mock-attempt-pill {
    background: linear-gradient(180deg, #ffffff 0%, #eafaf1 100%);

    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-pill);

    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(16, 185, 129, 0.14);

    padding: 0.35rem 0.9rem;
}

.mock-report-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;

    margin-bottom: 0.5rem;
}

.mock-report-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;

    margin: 0 auto;

    max-width: 620px;
}

.mock-verdict-grid {
    margin-bottom: 2rem;
}

.mock-score-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    display: flex;
    align-items: center;
    gap: 1.75rem;

    box-shadow: var(--shadow-3d-soft);

    padding: 1.75rem 2rem;
}

.mock-score-circle {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);

    border: 3px solid var(--google-blue);
    border-radius: 50%;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(27, 110, 243, 0.18), 0 2px 0 rgba(27, 110, 243, 0.22);

    width: 108px;
    height: 108px;
}

.mock-score-number {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
}

.mock-score-label {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-top: 4px;
}

.mock-verdict-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mock-verdict-badge {
    background: linear-gradient(180deg, #f2fbf6 0%, #e4f7ed 100%);

    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);

    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.92rem;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(16, 185, 129, 0.14);

    padding: 0.32rem 0.9rem;
}

.mock-tier-tag {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.85rem;
    font-weight: 600;
}

.mock-verdict-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;

    margin: 0;
}

.mock-pillars-section {
    margin-bottom: 2rem;
}

.mock-section-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 1rem;
}

.mock-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;
}

.mock-pillar-card {
    background: var(--bg-surface);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-md);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow: var(--shadow-3d-soft);

    padding: 1.2rem 1.35rem;
}

.mock-pillar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.55rem;
}

.mock-pillar-name {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.88rem;
    font-weight: 600;
}

.mock-pillar-score {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.mock-pillar-bar-bg {
    background: linear-gradient(180deg, #e4e7ed 0%, #edf0f5 100%);

    border: 1px solid rgba(205, 212, 222, 0.9);
    border-radius: var(--radius-pill);

    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.85);

    margin-bottom: 0.65rem;
    padding: 2px;

    width: 100%;
    height: 12px;

    overflow: hidden;
}

.mock-pillar-bar-fill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%), linear-gradient(90deg, #1b6ef3 0%, #10b981 100%);

    border-radius: var(--radius-pill);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 2px 6px rgba(27, 110, 243, 0.3);

    transition: width 0.8s cubic-bezier(0.34, 1.25, 0.64, 1);

    height: 100%;
}

.mock-pillar-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;

    margin: 0;
}

.mock-critique-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-3d-soft);

    margin-bottom: 2rem;
    padding: 1.5rem 1.65rem;
}

.mock-critique-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    margin-bottom: 1rem;
}

.mock-critique-avatar {
    background: #ffffff;

    border: 2px solid var(--google-blue);
    border-radius: 50%;

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

    box-shadow: 0 4px 12px rgba(27, 110, 243, 0.18);

    width: 44px;
    height: 44px;
    overflow: hidden;
}

.mock-critique-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-critique-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mock-critique-title,
.critique-header-title {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.mock-critique-subtitle {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    font-weight: 400;
}

.mock-critique-text {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-left: 4px solid var(--google-blue);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.68;

    position: relative;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    margin: 0 0 1.15rem 0;
    padding: 1.1rem 1.3rem;
}

.mock-takeaways-block {
    background: rgba(16, 185, 129, 0.04);

    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-md);

    padding: 0.9rem 1.1rem;
}

.mock-takeaways-heading {
    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    display: flex;
    align-items: center;
    gap: 0.4rem;

    margin-bottom: 0.55rem;
}

.mock-takeaways-heading .material-symbols-outlined {
    font-size: 1rem;
}

.mock-takeaways-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-takeaway-item {
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.48;

    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.mock-takeaway-item .material-symbols-outlined {
    color: var(--status-good, #10b981);
    font-size: 1rem;

    flex-shrink: 0;

    margin-top: 2px;
}

.mock-transcript-section {
    margin-bottom: 2rem;
}

.mock-evaluations-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.mock-eval-card {
    background: var(--bg-surface);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-3d-soft);

    padding: 1.45rem 1.6rem;

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

.mock-eval-card:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow: var(--shadow-hover);
}

.mock-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;

    margin-bottom: 0.65rem;
}

.mock-eval-q-badge {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 50%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);
    border-radius: var(--radius-pill);

    color: #ffffff;
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(27, 110, 243, 0.2);

    padding: 0.22rem 0.7rem;
}

.mock-eval-category-badge {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fe 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(27, 110, 243, 0.1);

    padding: 0.22rem 0.75rem;
}

.mock-eval-q-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;

    margin: 0 0 0.95rem 0;
}

.mock-eval-candidate-answer {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid rgba(210, 204, 194, 0.85);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.55;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    margin-bottom: 0.9rem;
    padding: 0.85rem 1.05rem;
}

.mock-eval-label {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    display: flex;
    align-items: center;
    gap: 0.35rem;

    margin-bottom: 0.35rem;
}

.mock-eval-label .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 0.95rem;
}

.mock-eval-answer-body,
.mock-eval-critique-body,
.mock-eval-gold-body {
    font-family: var(--sanifucv-default-font);
    font-weight: 400;
}

.mock-eval-critique-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0.85rem;

    margin-bottom: 0.9rem;
}

.mock-eval-icon-badge {
    border-radius: 50%;

    color: #ffffff;

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

    width: 22px;
    height: 22px;
}

.mock-eval-icon-badge .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 0.82rem !important;
}

.mock-eval-icon-badge.badge-worked {
    background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);

    border: 1px solid rgba(5, 150, 105, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(16, 185, 129, 0.22);
}

.mock-eval-icon-badge.badge-blindspot {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

    border: 1px solid rgba(217, 119, 6, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(245, 158, 11, 0.22);
}

.mock-eval-icon-badge.badge-gold {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 50%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.85);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(27, 110, 243, 0.22);
}

.mock-eval-worked {
    background: linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 100%);

    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.84rem;
    line-height: 1.5;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);

    padding: 0.85rem 1rem;
}

.mock-eval-worked-title {
    color: var(--status-good, #137333);
    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 0.4rem;
}

.mock-eval-blindspot {
    background: linear-gradient(180deg, #fffdf7 0%, #fef8e8 100%);

    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.84rem;
    line-height: 1.5;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);

    padding: 0.85rem 1rem;
}

.mock-eval-blindspot-title {
    color: #b45309;
    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 0.4rem;
}

.mock-eval-gold-box {
    background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);

    border: 1px solid rgba(27, 110, 243, 0.24);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.58;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    padding: 0.95rem 1.1rem;
}

.mock-eval-gold-title {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 0.45rem;
}

.mock-report-stage strong,
.mock-report-stage b,
.mock-eval-card strong,
.mock-eval-card b,
.mock-critique-card strong,
.mock-critique-card b,
.mock-takeaway-item strong,
.mock-takeaway-item b,
.mock-lens-card strong,
.mock-lens-card b {
    font-family: var(--sanifucv-title-font) !important;
    font-weight: 600;
}

.mock-sticky-footer {
    background: var(--bg-surface);

    border-top: 1px solid var(--border-subtle);

    display: flex;
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;

    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);

    padding: 0.9rem 2.5rem;

    width: 100%;
    box-sizing: border-box;
}

.fresh-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0.65rem;

    margin-bottom: 0.85rem;
}

.fresh-mode-option {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    border: 1.5px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;

    text-align: left;

    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(15, 23, 42, 0.05);

    padding: 0.75rem 0.85rem;

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

.fresh-mode-option.selected {
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%);

    border-color: var(--google-blue);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 rgba(27, 110, 243, 0.18);
}

.fresh-mode-option-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.8rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fresh-mode-option.selected .fresh-mode-option-title {
    color: var(--google-blue);
}

.fresh-mode-option-desc {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .mock-report-scroll-container {
        padding: 1.4rem 1rem 3.5rem 1rem;
    }

    .mock-interviewer-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .mock-score-card {
        text-align: center;

        flex-direction: column;
        align-items: center;
        gap: 1.15rem;

        padding: 1.35rem 1.15rem;
    }

    .mock-verdict-content {
        align-items: center;
    }

    .mock-verdict-badge {
        align-self: center;
    }

    .mock-pillars-grid {
        grid-template-columns: 1fr;
    }

    .mock-critique-card,
    .mock-eval-card {
        padding: 1.15rem 1.1rem;
    }

    .mock-eval-critique-row {
        grid-template-columns: 1fr;
    }

    .mock-sticky-footer {
        justify-content: center;
        gap: 0.55rem;
        flex-wrap: wrap;

        padding: 0.75rem 1rem;
    }

    .mock-sticky-footer button {
        font-size: 0.8rem;

        flex: 1 1 auto;
        justify-content: center;

        padding: 0 0.85rem;

        height: 38px;
    }

    .fresh-mode-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. UNIFIED RECRUITER CHAT PANEL
   Single component · two states:
     .state-mini → docked bottom-right drawer (380×520px)
     .state-full → full-screen advisory workspace
   Morph is a CSS transition on all positional/size properties.
   ========================================================================== */

/* ── Widget wrapper (fixed anchor, always bottom-right) ── */
.builder-copilot-widget {
    position: fixed;
    right: 2rem;
    bottom: 1.75rem;
    z-index: 900;
}

/* ── Unified chat panel shell ── */
.unified-chat-panel {
    /* Shared visual DNA */
    background: var(--bg-surface);

    border: 1px solid rgba(27, 110, 243, 0.18);

    display: flex;

    /* Anchored fixed to bottom-right for seamless upscale origin */
    position: fixed;
    flex-direction: column;

    box-shadow: 0 24px 56px -10px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(27, 110, 243, 0.06);

    /* Bubbly, jiggly spring transition expanding from bottom-right */
    transition:
        width 0.44s cubic-bezier(0.34, 1.25, 0.64, 1),
        height 0.44s cubic-bezier(0.34, 1.25, 0.64, 1),
        right 0.44s cubic-bezier(0.34, 1.25, 0.64, 1),
        bottom 0.44s cubic-bezier(0.34, 1.25, 0.64, 1),
        border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        opacity 0.22s ease;
    transform-origin: bottom right;
    overflow: hidden;
    will-change: width, height, right, bottom;
}

.unified-chat-panel.hidden {
    display: none !important;
}

/* ── Mini state: compact docked drawer anchored bottom-right ── */
.unified-chat-panel.state-mini {
    border: 1px solid rgba(27, 110, 243, 0.18);
    border-radius: 22px;

    right: 2rem;
    bottom: 1.75rem;
    z-index: 1000;

    box-shadow: 0 24px 56px -10px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(27, 110, 243, 0.06);

    width: 420px;
    max-width: calc(100vw - 2.5rem);
    height: 535px;
    max-height: calc(100vh - 5rem);
}

/* Bubbly pop-in when opening mini from launcher pill */
.unified-chat-panel.state-mini.is-opening {
    animation: ucpBubblyPop 0.38s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

@keyframes ucpBubblyPop {
    0% {
        opacity: 0;

        transform: translateY(22px) scale(0.92);
    }
    65% {
        opacity: 1;

        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

/* ── Full state: expands smoothly from bottom-right to overlay viewport ── */
.unified-chat-panel.state-full {
    border: none;
    border-radius: 0;

    right: 0;
    bottom: 0;
    z-index: 1050;

    box-shadow: none;

    width: 100vw;
    height: 100vh;
}

/* ── Responsive adaptations for smaller screens / mobile ── */
@media (max-width: 640px) {
    .builder-copilot-widget {
        right: 1rem;
        bottom: 1rem;
    }

    /* Mini state becomes an ergonomic floating bottom card/sheet */
    .unified-chat-panel.state-mini {
        border-radius: 20px;

        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;

        box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(27, 110, 243, 0.12);

        transform-origin: bottom center;

        width: auto;
        max-width: none;
        height: 65vh;
        max-height: 540px;
    }

    .unified-chat-panel.state-full {
        border-radius: 0;

        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        transform-origin: bottom center;

        width: 100vw;
        height: 100vh;
    }

    .state-full .ucp-header {
        padding: 0 1rem;

        min-height: 60px;
    }

    .state-full .ucp-thread-wrap {
        padding: 1rem;
    }

    .state-full .ucp-bottom-dock {
        padding: 0.75rem 1rem max(1rem, env(safe-area-inset-bottom, 1rem)) 1rem;
    }
}

/* ── Header ── */
.ucp-header {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);

    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;

    padding: 0 1.1rem;

    min-height: 58px;
}

/* Full-state header gets more breathing room */
.state-full .ucp-header {
    padding: 0 2rem;

    min-height: 66px;
}

.ucp-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ucp-header-brand {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.65rem;

    min-width: 0;
}

.ucp-header-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* Avatar circle */
.ucp-avatar {
    background: #ffffff;

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: 50%;

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

    box-shadow: 0 2px 8px rgba(27, 110, 243, 0.15);

    transition: width 0.3s ease, height 0.3s ease;

    width: 36px;
    height: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

.state-full .ucp-avatar {
    width: 42px;
    height: 42px;
}

.ucp-avatar-img {
    border-radius: 50%;

    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.copilot-launcher-avatar {
    background: #ffffff;

    border-radius: 50%;

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

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);

    width: 24px;
    height: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.copilot-launcher-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-btn-avatar {
    background: #ffffff;

    border-radius: 50%;

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

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);

    margin-right: 0.35rem;

    width: 22px;
    height: 22px;
    overflow: hidden;
    flex-shrink: 0;
}

.interview-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-avatar .material-symbols-outlined {
    font-size: 1.15rem;

    transition: font-size 0.3s ease;
}

.state-full .ucp-avatar .material-symbols-outlined {
    font-size: 1.35rem;
}

/* Title & subtitle */
.ucp-header-titles {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.ucp-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: var(--font-mid);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;

    margin: 0;

    transition: font-size 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-full .ucp-title {
    font-size: 1.15rem;
}

.ucp-subtitle {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;

    display: block;
}

.ucp-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ucp-credit-pill {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.2);
    border-radius: 999px;

    color: var(--primary);
    font-size: 0.72rem;
    /* font-weight: 600; */

    display: inline-flex;
    align-items: center;
    gap: 0.3rem;

    cursor: pointer;

    padding: 0.15rem 0.55rem;

    transition: all 0.2s ease;
}

.ucp-credit-pill:hover {
    background: rgba(27, 110, 243, 0.15);

    border-color: rgba(27, 110, 243, 0.35);
}

.ucp-credit-pill.is-depleted {
    background: rgba(239, 68, 68, 0.1);

    border-color: rgba(239, 68, 68, 0.25);

    color: #ef4444;
}

.ucp-credit-icon {
    font-size: 0.85rem !important;
}

/* Hide credit badge on mini docked chat window (top nav already has balance; only display in maximized chat) */
.unified-chat-panel.state-mini #ucpHeaderCreditPill {
    display: none !important;
}

/* Icon buttons (close / minimize / expand) */
.ucp-icon-btn {
    border-radius: 50%;

    color: var(--text-muted);

    transition: background 0.15s ease, color 0.15s ease;

    width: 32px;
    height: 32px;
}

.ucp-icon-btn:hover {
    background: var(--bg-subtle);

    color: var(--text-main);
}

/* Action buttons in full state */
.ucp-action-btn {
    font-size: 0.8rem;

    padding: 0 0.9rem;

    height: 34px;
}

.ucp-action-btn .material-symbols-outlined {
    font-size: 1rem;
}

.ucp-btn-label {
    display: none;
}

/* Show labels at wider widths in full state */
@media (min-width: 640px) {
    .state-full .ucp-btn-label {
        display: inline;
    }
}

/* Visibility toggles by state */
.ucp-mini-only {
    display: flex;
}

.ucp-full-only {
    display: none;
}

.state-full .ucp-mini-only {
    display: none;
}

.state-full .ucp-full-only {
    display: flex;
}

/* ── Active Interview In-Progress Banner (Docked below Chat Header) ── */
.ucp-active-interview-banner {
    background: linear-gradient(135deg, rgba(27, 110, 243, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);

    border-bottom: 1px solid rgba(27, 110, 243, 0.18);

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

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);

    padding: 0.65rem 1.1rem;
}

.ucp-active-interview-banner.hidden {
    display: none !important;
}

.ucp-aib-left {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 0.55rem;

    min-width: 0;
}

.ucp-aib-btn {
    font-size: 0.78rem;

    padding: 0.35rem 0.85rem;
    flex-shrink: 0;
}

/* ── Floating 3D Evaluations History Dropdown Menu ── */
.chat-eval-menu {
    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    display: flex;
    position: absolute;
    top: 60px;
    right: 1rem;
    z-index: 1200;
    flex-direction: column;

    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.25), var(--shadow-3d-soft);

    animation: ucpBubblyPop 0.28s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;

    width: 350px;
    max-width: calc(100vw - 2.5rem);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.chat-eval-menu.hidden {
    display: none !important;
}

.chat-eval-menu-header {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);

    border-bottom: 1px solid rgba(27, 110, 243, 0.12);

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

    padding: 0.9rem 1.15rem;
}

.chat-eval-menu-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-eval-icon {
    color: var(--google-blue);
    font-size: 1.15rem;
}

.chat-eval-menu-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.92rem;
    font-weight: 700;

    margin: 0;
}

.chat-eval-count-badge {
    background: rgba(27, 110, 243, 0.08);

    border: 1px solid rgba(27, 110, 243, 0.2);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-family: var(--sanifucv-default-font);
    font-size: 0.72rem;

    padding: 0.15rem 0.55rem;
}

.chat-eval-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    padding: 0.85rem;

    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-eval-list::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

.chat-eval-item {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);

    text-align: left;

    display: flex;
    flex-direction: column;
    gap: 0.35rem;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    padding: 0.75rem 0.85rem;

    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;

    width: 100%;
}

.chat-eval-item:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow: 0 6px 18px -4px rgba(27, 110, 243, 0.16), var(--shadow-3d-soft);

    transform: translateY(-2px);
}

.chat-eval-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.chat-eval-item-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-eval-score-pill {
    background: linear-gradient(135deg, rgba(27, 110, 243, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);

    border: 1px solid rgba(27, 110, 243, 0.25);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-family: var(--sanifucv-default-font);
    font-size: 0.74rem;

    padding: 0.15rem 0.5rem;
    flex-shrink: 0;
}

.chat-eval-item-verdict {
    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-eval-item-meta {
    color: var(--text-muted);
    font-size: 0.72rem;

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

.chat-eval-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;

    padding: 1.5rem 1rem;
}

.chat-eval-menu-footer {
    background: #fafcff;

    border-top: 1px solid var(--border-subtle);

    display: flex;
    justify-content: stretch;

    padding: 0.65rem 0.85rem;
}

.chat-eval-fresh-btn {
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    /* font-weight: 600; */

    justify-content: center;
    gap: 0.4rem;

    width: 100%;
}

/* ── Chat Conversations / Threads Menu ── */
.chat-thread-item {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);

    text-align: left;

    display: flex;
    position: relative;
    flex-direction: column;
    gap: 0.35rem;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    padding: 0.75rem 0.85rem;

    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;

    width: 100%;
}

.chat-thread-item:hover {
    border-color: rgba(27, 110, 243, 0.35);

    box-shadow: 0 6px 18px -4px rgba(27, 110, 243, 0.16), var(--shadow-3d-soft);

    transform: translateY(-2px);
}

.chat-thread-item.active {
    background: linear-gradient(180deg, #f7faff 0%, #edf4fe 100%);

    border-color: var(--google-blue);
}

.chat-thread-snippet {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-delete-btn {
    background: transparent;

    border: none;
    border-radius: var(--radius-sm);

    color: var(--text-muted);

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

    cursor: pointer;

    padding: 0.2rem 0.35rem;

    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.chat-thread-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);

    color: #ef4444;
}

.chat-thread-delete-btn .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1.05rem;
}

/* ── Jolly Bubbly Delete Animation ── */
@keyframes itemPoofOut {
    0% {
        opacity: 1;

        margin-bottom: 0.65rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;

        transform: scale(1) translateX(0);

        max-height: 120px;
    }
    30% {
        background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);

        border-color: rgba(239, 68, 68, 0.4);

        opacity: 0.9;

        transform: scale(1.03) translateX(-6px);
    }
    100% {
        border-width: 0;

        box-shadow: none;
        opacity: 0;

        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;

        transform: scale(0.75) translateX(90px);

        max-height: 0;
    }
}

.item-poof-out {
    pointer-events: none !important;

    animation: itemPoofOut 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
    overflow: hidden !important;
}

/* ── Chat Mock Interview Launcher Card ── */
.mock-chat-launcher-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-lg);

    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    box-shadow: 0 8px 24px -4px rgba(27, 110, 243, 0.12);

    margin: 0.85rem 0;
    padding: 1.25rem 1.4rem;
}

.mclc-badge {
    background: rgba(27, 110, 243, 0.1);

    border: 1px solid rgba(27, 110, 243, 0.25);
    border-radius: var(--radius-pill);

    color: var(--google-blue);
    font-size: 0.72rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.2rem 0.65rem;

    width: fit-content;
}

.mclc-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;

    margin: 0;
}

.mclc-text {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;

    margin: 0;
}

.mclc-actions {
    display: flex;
    gap: 0.65rem;

    margin-top: 0.25rem;
}

/* ── Thread wrap ── */
.ucp-thread-wrap {
    background: #fafcff;

    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 1rem;

    min-height: 0;
    overflow-y: auto;
}

.ucp-thread-wrap::-webkit-scrollbar {
    width: 5px;
}

.ucp-thread-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.ucp-thread-wrap::-webkit-scrollbar-thumb {
    background: rgba(180, 195, 215, 0.4);

    border-radius: 999px;

    transition: background 0.2s ease;
}

.ucp-thread-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 110, 243, 0.5);
}

/* In full state, center & constrain thread for reading comfort */
.state-full .ucp-thread-wrap {
    padding: 1.5rem;
}

.ucp-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    margin: 0 auto;

    width: 100%;
}

.state-full .ucp-thread {
    gap: 1.5rem;

    max-width: 820px;
}

/* ── Chat bubbles (shared, same visual DNA in both states) ── */
.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;

    animation: chatMsgIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    max-width: 90%;
}

.chat-user {
    align-self: flex-end;

    flex-direction: row;
    justify-content: flex-end;

    margin-left: auto;
}

.chat-model {
    align-self: flex-start;

    width: 100%;
    max-width: 95%;
}

.state-full .chat-model {
    max-width: 90%;
}

.chat-avatar {
    border-radius: 50%;

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

    margin-top: 2px;

    transition: width 0.3s ease, height 0.3s ease;

    /* Mini: small avatar */
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    overflow: hidden;
}

.state-full .chat-avatar {
    width: 36px;
    height: 36px;
}

.chat-avatar-img {
    border-radius: 50%;

    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-user .chat-avatar {
    background: linear-gradient(180deg, #3884f8 0%, var(--google-blue) 100%);

    color: #ffffff;

    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

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

    user-select: none;

    box-shadow: 0 2px 8px rgba(27, 110, 243, 0.28);
}

.state-full .chat-user .chat-avatar {
    font-size: 0.84rem;
}

.user-initials {
    color: #ffffff;
    line-height: 1;

    display: inline-block;
}

.chat-model .chat-avatar {
    background: #ffffff;

    border: 1px solid rgba(27, 110, 243, 0.22);

    color: var(--google-blue);

    box-shadow: 0 2px 8px rgba(27, 110, 243, 0.15);
}

.chat-avatar .material-symbols-outlined {
    font-size: 0.95rem;

    transition: font-size 0.3s ease;
}

.state-full .chat-avatar .material-symbols-outlined {
    font-size: 1.15rem;
}

.chat-bubble-content {
    border-radius: 16px;

    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.55;

    padding: 0.65rem 0.9rem;

    transition: font-size 0.3s ease, padding 0.3s ease;
}

.state-full .chat-bubble-content {
    border-radius: 18px;

    font-size: var(--font-mid);
    line-height: 1.6;

    padding: 0.95rem 1.35rem;
}

.chat-user .chat-bubble-content {
    background: linear-gradient(180deg, #3d8bff 0%, var(--google-blue) 45%, var(--google-blue-deep) 100%);

    border-radius: 18px;

    color: #ffffff;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 14px rgba(27, 110, 243, 0.22);
}

.state-full .chat-user .chat-bubble-content {
    border-radius: 20px;
}

.chat-user .chat-bubble-content p {
    color: #ffffff;
    font-size: inherit;
    line-height: 1.55;

    margin: 0;
}

.chat-model .chat-bubble-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);

    border: 1px solid rgba(210, 218, 230, 0.9);
    border-radius: 18px;

    color: var(--text-main);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px -6px rgba(15, 23, 42, 0.07), 0 2px 0 rgba(220, 226, 236, 0.85);

    width: 100%;
}

.state-full .chat-model .chat-bubble-content {
    border-radius: 20px;
}

/* Model text formatting */
.chat-model-text strong,
.chat-model-text b {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.chat-heading {
    color: var(--google-blue-deep);
    font-family: var(--sanifucv-title-font);
    font-size: 1rem;
    font-weight: 700;

    margin: 0.75rem 0 0.4rem 0;
}

.state-full .chat-heading {
    font-size: 1.05rem;

    margin: 0.9rem 0 0.45rem 0;
}

.chat-heading:first-child {
    margin-top: 0;
}

.chat-list {
    margin: 0.45rem 0 0.75rem 0;
    padding-left: 1.35rem;
}

.chat-list li {
    line-height: 1.55;

    margin-bottom: 0.4rem;
}

.chat-code {
    background: var(--bg-cream);

    border: 1px solid var(--border-tactile);
    border-radius: 6px;

    color: var(--google-blue-deep);
    font-family: monospace;
    font-size: 0.85rem;

    padding: 2px 6px;
}

/* Artifact + Bridge cards */
.chat-artifact-card {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f1ff 100%);

    border: 1px solid rgba(165, 205, 255, 0.95);
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(27, 110, 243, 0.1);

    margin-top: 1rem;
    padding: 0.9rem 1.1rem;

    animation: chatMsgIn 0.35s var(--ease-sweet) forwards;
}

.chat-artifact-card button,
.chat-artifact-card .btn-pill-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

.artifact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;
}

.artifact-badge-icon {
    color: var(--google-blue);
    font-size: 1.3rem;
}

.artifact-text strong {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: var(--font-mid);
    font-weight: 600;

    display: block;
}

.artifact-text span {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

    display: block;
}

.chat-artifact-card.is-superseded {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);

    border: 1px dashed #cbd5e1;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    opacity: 0.82;
}

.chat-artifact-card.is-superseded .artifact-badge-icon {
    color: #94a3b8 !important;
}

.chat-artifact-card.is-superseded .artifact-text strong {
    color: #64748b;
    font-family: var(--sanifucv-title-font);
    font-weight: 600;
}

.chat-artifact-card.is-superseded .artifact-text span {
    color: #94a3b8;
    font-weight: 400;
}

.chat-artifact-card .btn-artifact-disabled,
.chat-artifact-card button:disabled {
    background: #e2e8f0 !important;

    border: 1px solid #cbd5e1 !important;

    color: #64748b !important;

    pointer-events: none;
    cursor: not-allowed !important;

    box-shadow: none !important;
    opacity: 0.88;

    transform: none !important;
}

.chat-bridge-card {
    background: linear-gradient(180deg, #fffcf5 0%, #fff6e5 100%);

    border: 1px solid rgba(255, 193, 7, 0.55);
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(230, 140, 10, 0.1);

    margin-top: 1rem;
    padding: 0.9rem 1.1rem;

    animation: chatMsgIn 0.35s var(--ease-sweet) forwards;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
}

.chat-artifact-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* In mini drawer or when container is narrow, stack cards vertically so headers never wrap word-by-word */
.state-mini .chat-bridge-card,
.state-mini .chat-artifact-card {
    text-align: left;

    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;

    padding: 0.85rem 1rem;
}

.state-mini .chat-bridge-card .bridge-header,
.state-mini .chat-artifact-card .artifact-header {
    width: 100%;
}

.state-mini .chat-bridge-card button,
.state-mini .chat-bridge-card .bridge-launch-btn,
.state-mini .chat-artifact-card button,
.state-mini .chat-artifact-card .btn-pill-primary {
    justify-content: center;

    width: 100%;
}

.state-mini .chat-autonomous-task-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;

    padding: 0.72rem 0.85rem;
}

.state-mini .chat-autonomous-task-left {
    width: 100%;
}

.state-mini .chat-autonomous-inspect-btn {
    justify-content: center !important;

    width: 100% !important;
    height: 34px !important;
}

.state-mini .chat-bubble {
    max-width: 100%;
}

.state-mini .chat-model {
    max-width: 100%;
}

.state-mini .chat-user {
    max-width: 100%;
}

.state-mini .chat-bubble-content {
    max-width: calc(100% - 38px);
}

.chat-bridge-card button,
.chat-bridge-card .bridge-launch-btn {
    font-size: 0.78rem !important;
    line-height: 1 !important;
    white-space: nowrap;

    padding: 0 1rem !important;

    height: 34px !important;
    flex-shrink: 0;
}

.chat-bridge-card button .material-symbols-outlined,
.chat-bridge-card .bridge-launch-btn .material-symbols-outlined {
    font-size: 0.95rem !important;
}

.bridge-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;
}

.bridge-badge-icon {
    color: #e67e00;
    font-size: 1.35rem;
}

.bridge-text strong {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: var(--font-mid);
    font-weight: 600;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;

    display: block;
}

.bridge-text span {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;
    line-height: 1.35;

    display: block;
}

/* Typewriter cursor (hidden for clean, distraction-free bubble rendering) */
.typewriter-cursor {
    display: none !important;
}

/* Typing indicators */
.typing-indicator-bubble {
    align-self: flex-start;

    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.typing-content {
    background: #ffffff;

    border: 1px solid rgba(210, 218, 230, 0.9);
    border-radius: 4px 18px 18px 18px;

    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px rgba(15, 23, 42, 0.05);

    padding: 0.75rem 1.15rem;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dot {
    background: var(--google-blue);

    border-radius: 50%;

    display: inline-block;

    animation: typingBounce 1.2s infinite ease-in-out;

    width: 6px;
    height: 6px;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0.35rem 0.2rem;
}

.chat-typing-dots .dot {
    background: var(--google-blue);

    border-radius: 50%;

    display: inline-block;

    box-shadow: 0 1px 4px rgba(27, 110, 243, 0.25);

    animation: typingBounce 1.2s infinite ease-in-out;

    width: 8px;
    height: 8px;
}

.chat-typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

.typing-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;

    margin-left: 0.5rem;
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%            { transform: translateY(-6px); }
}

@keyframes chatMsgIn {
    from { opacity: 0;

 transform: translateY(8px); }
    to   { opacity: 1;

 transform: translateY(0); }
}

/* ── Bottom dock (chips + input) ── */
.ucp-bottom-dock {
    background: var(--bg-surface);

    border-top: 1px solid var(--border-subtle);

    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-shrink: 0;

    padding: 0.7rem 0.85rem 0.8rem 0.85rem;

    transition: padding 0.3s ease;
}

.state-full .ucp-bottom-dock {
    background: linear-gradient(180deg, rgba(237, 240, 245, 0) 0%, rgba(237, 240, 245, 0.95) 28%, var(--bg-canvas) 100%);

    padding: 0.9rem 2rem 1.1rem 2rem;
}

/* Chip strip — scrollable via touch or mouse drag */
.ucp-chip-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;

    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    /* Extra padding lets last chip not clip at edge */
    padding: 0.2rem 0.25rem 0.35rem 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Prevent flex from ever wrapping — force single-line scroll */
    flex-wrap: nowrap;
}

.ucp-chip-strip:active,
.ucp-chip-strip.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.ucp-chip-strip.is-dragging .ucp-chip {
    pointer-events: none;
}

.ucp-chip-strip::-webkit-scrollbar {
    display: none;
}

/* Subtle fade-out on right edge to hint scrollability */
.ucp-bottom-dock::before {
    background: linear-gradient(to left, var(--bg-surface) 40%, transparent);

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    pointer-events: none;

    opacity: 0;

    transition: opacity 0.2s ease;

    width: 2.5rem;
    content: '';
}

.ucp-bottom-dock:has(.ucp-chip-strip) {
    position: relative;
}

/* Show fade hint only in mini state where space is constrained */
.state-mini .ucp-bottom-dock::before {
    opacity: 1;
}

.ucp-chip {
    background: linear-gradient(180deg, #fffdfb 0%, #f7f2ea 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    color: var(--text-main);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 rgba(210, 204, 194, 0.8), 0 2px 5px rgba(15, 23, 42, 0.04);

    padding: 0.38rem 0.8rem;

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, font-size 0.3s ease, padding 0.3s ease;
    flex-shrink: 0;
}

.state-full .ucp-chip {
    font-size: 0.82rem;

    padding: 0.45rem 0.95rem;
}

.ucp-chip:hover {
    background: #ffffff;

    border-color: rgba(27, 110, 243, 0.45);

    color: var(--google-blue-deep);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 3px 8px rgba(27, 110, 243, 0.12), 0 2px 0 rgba(210, 204, 194, 0.8);

    transform: translateY(-1px);
}

.ucp-chip:active {
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);

    transform: translateY(1px);
}

.ucp-chip .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 0.9rem;
    flex-shrink: 0;

    transition: font-size 0.3s ease;
}

.state-full .ucp-chip .material-symbols-outlined {
    font-size: 1.05rem;
}

/* Input Box: Modern Expandable Card (Gemini UI Inspired) */
.ucp-input-box,
.ucp-input-capsule {
    background: #ffffff;

    border: 1.5px solid rgba(27, 110, 243, 0.22);
    /* Soft rounded corners with breathing room instead of pill */
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(27, 110, 243, 0.06),
        0 1px 0 rgba(200, 210, 225, 0.6);

    padding: 0.75rem 0.85rem 0.55rem 1rem;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

    width: 100%;

    min-height: 82px;
    box-sizing: border-box;
}

.state-full .ucp-input-box,
.state-full .ucp-input-capsule {
    border-color: var(--border-tactile);
    border-radius: 22px;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(210, 204, 194, 0.3), 0 3px 10px rgba(15, 23, 42, 0.05);

    padding: 0.85rem 1rem 0.65rem 1.25rem;

    min-height: 90px;
}

.ucp-input-box:focus-within,
.ucp-input-capsule:focus-within {
    background: #ffffff;

    border-width: 1.5px;
    border-color: var(--google-blue);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(27, 110, 243, 0.12),
        0 4px 14px rgba(27, 110, 243, 0.14);
}

.ucp-textarea {
    background: transparent;

    border: none !important;

    color: var(--text-main);
    font-family: inherit;
    font-size: var(--font-mid);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.015em;
    white-space: pre-wrap;

    outline: none !important;

    box-shadow: none !important;

    margin: 0;
    padding: 0 0 4px 0;

    width: 100%;

    height: 40px;
    min-height: 40px;
    max-height: 160px;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
    word-break: break-word;

    caret-color: var(--google-blue);
}

.ucp-textarea::-webkit-scrollbar {
    width: 5px;
}

.ucp-textarea::-webkit-scrollbar-thumb {
    background: rgba(27, 110, 243, 0.2);

    border-radius: 4px;
}

.ucp-textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.86rem;

    opacity: 0.82;
}

/* In full state, slightly larger text */
.state-full .ucp-textarea {
    font-size: 0.95rem;
    line-height: 1.5;

    height: 44px;
    min-height: 44px;
}

.state-full .ucp-textarea::placeholder {
    font-size: 0.9rem;
}

.ucp-textarea:focus,
.ucp-textarea:focus-visible {
    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}

/* Bottom Action Bar inside input card */
.ucp-input-bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.03);

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

    margin-top: 0.25rem;
    padding-top: 0.2rem;

    width: 100%;
}

.ucp-input-bottom-hint {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.01em;

    user-select: none;

    opacity: 0.75;
}

/* Send button — docked at bottom-right with cute 3D primary tactile style */
.ucp-send-btn {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);
    border-radius: 50% !important;

    color: #ffffff;

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

    cursor: pointer;

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(14, 75, 183, 0.35), 0 3px 8px rgba(27, 110, 243, 0.25);

    margin-left: auto;

    padding: 0 !important;

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;

    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-shrink: 0;
}

.ucp-send-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #69a6ff 0%, #2f80f8 42%, #1a62d7 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.46), inset 0 -2px 0 rgba(14, 75, 183, 0.26), 0 6px 14px rgba(27, 110, 243, 0.35);

    transform: translateY(-1px) scale(1.05);
}

.ucp-send-btn:active:not(:disabled) {
    background: linear-gradient(180deg, #1d69e8 0%, #165ed9 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(14, 75, 183, 0.18), 0 1px 2px rgba(17, 95, 204, 0.4);

    transform: translateY(1px) scale(0.96);
}

.state-full .ucp-send-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
}

.ucp-send-btn .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.15rem;

    transition: transform 0.2s ease;
}

.ucp-chip.chip-clicked {
    background: #e8f0fe !important;

    border-color: var(--google-blue) !important;

    color: var(--google-blue-deep) !important;

    box-shadow: inset 0 2px 4px rgba(27, 110, 243, 0.2) !important;

    transform: scale(0.96) translateY(1px);
}

.ucp-chip.chip-active-ready {
    background: #eef5ff !important;

    border-color: var(--google-blue) !important;

    color: var(--google-blue-deep) !important;
    font-weight: 500;

    box-shadow: 0 0 0 2px rgba(27, 110, 243, 0.25), 0 2px 8px rgba(27, 110, 243, 0.16) !important;

    transform: translateY(-1px);
}

.ucp-chip.chip-active-ready .material-symbols-outlined {
    color: var(--google-blue-deep) !important;

    animation: ucpChipReadyPulse 1.6s infinite ease-in-out;
}

@keyframes ucpChipReadyPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.22);
    }
}

.state-full .ucp-send-btn .material-symbols-outlined {
    font-size: 1.15rem;
}

/* Autonomous Creation Run — Morphing Pause/Stop Send Button */
.ucp-send-btn.is-loop-active {
    background: linear-gradient(180deg, #ea4335 0%, #d93025 60%, #b31412 100%) !important;
    border: 1px solid rgba(179, 20, 18, 0.9) !important;
    border-radius: 11px !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 0 0 3px rgba(234, 67, 53, 0.28), 0 4px 12px rgba(217, 48, 37, 0.4) !important;
    animation: pulse-loop-active 1.8s infinite ease-in-out;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ucp-send-btn.is-loop-active:hover:not(:disabled) {
    background: linear-gradient(180deg, #f25547 0%, #e0382d 60%, #c41816 100%) !important;
    transform: translateY(-1px) scale(1.06);
}

.ucp-send-btn.is-loop-active .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1.25rem !important;
    color: #ffffff !important;
    font-variation-settings: 'FILL' 1;
}

.ucp-send-btn.is-loop-active.is-paused {
    background: linear-gradient(180deg, #fbbc04 0%, #f29900 60%, #e37400 100%) !important;
    border-color: rgba(227, 116, 0, 0.9) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(251, 188, 4, 0.3), 0 4px 12px rgba(242, 153, 0, 0.35) !important;
    animation: none !important;
}

.ucp-send-btn.is-loop-active.is-paused:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffc526 0%, #faa61a 60%, #f08107 100%) !important;
    transform: translateY(-1px) scale(1.06);
}

@keyframes pulse-loop-active {
    0%, 100% {
        box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 0 0 2px rgba(234, 67, 53, 0.25), 0 3px 8px rgba(217, 48, 37, 0.35);
    }
    50% {
        box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 0 5px rgba(234, 67, 53, 0.45), 0 6px 16px rgba(217, 48, 37, 0.55);
        transform: scale(1.04);
    }
}

/* Privacy hint */
.ucp-privacy-hint {
    color: var(--text-subtle);
    font-size: 0.68rem;
    font-weight: 400;
    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.28rem;
}

.ucp-privacy-hint .material-symbols-outlined {
    font-size: 0.82rem;
}

/* ── Empty thread state ── */
.ucp-empty-state {
    text-align: center;

    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    opacity: 1;

    padding: 2.25rem 1.5rem;
}

.ucp-empty-avatar-wrap {
    background: #ffffff;

    border-radius: 50%;

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

    box-shadow: 0 8px 24px -4px rgba(27, 110, 243, 0.22), 0 0 0 1px rgba(27, 110, 243, 0.15);

    margin-bottom: 0.45rem;

    transition: transform 0.25s var(--ease-sweet);

    width: 68px;
    height: 68px;
    overflow: hidden;
}

.ucp-empty-avatar-wrap:hover {
    transform: scale(1.05);
}

.ucp-empty-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-empty-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;

    margin: 0;
}

.ucp-empty-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;

    margin: 0;

    max-width: 360px;
}

/* ==========================================================================
   14. ATS RESUME BUILDER WORKSPACE & PRINTABLE CV PAPER
   ========================================================================== */

.builder-layout {
    display: grid;
    align-items: flex-start;
    gap: 1.75rem;
    grid-template-columns: 1.15fr 1fr;
}

.builder-column-left {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;

    min-width: 0;
}

/* Dedicated Target Opportunity Companion Card */
.builder-target-card {
    background: var(--bg-surface);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
    overflow: hidden;

    transition: border-color 0.25s var(--ease-sweet), box-shadow 0.25s var(--ease-sweet);
}

.builder-target-card:focus-within {
    border-color: rgba(27, 110, 243, 0.4);

    box-shadow: 0 4px 16px rgba(27, 110, 243, 0.12), var(--shadow-card);
}



.target-card-header {
    background: var(--bg-surface);

    border-bottom: 1px solid var(--border-subtle);

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

    padding: 1rem 1.5rem;

    min-height: 68px;
}

.builder-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.builder-card-icon {
    color: var(--google-blue, #1b6ef3);
    font-size: 1.35rem;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.target-scope-badge {
    background: #ebf3fe;

    border-radius: 999px;

    color: var(--google-blue, #1b6ef3);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    padding: 0.2rem 0.6rem;
}

.target-card-body {
    padding: 1.5rem;
}

.target-card-footer {
    border-top: 1px solid var(--border-subtle);

    margin-top: 0.5rem;
    padding-top: 1rem;
}

.target-hint-pill {
    background: #f1f5fa;

    border-radius: 999px;

    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.35rem 0.8rem;
}

.target-hint-pill .material-symbols-outlined {
    color: var(--google-blue, #1b6ef3);
    font-size: 0.95rem;
}

.builder-card-header {
    background: var(--bg-surface);

    border-bottom: 1px solid var(--border-subtle);

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

    padding: 1rem 1.5rem;

    min-height: 68px;
}

.builder-card-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 700;
}

.builder-card-sub {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

    display: block;
}

/* Stepper Navigation Strip Wrapper with Gesture Click & Drag Scroll */
.stepper-nav-wrapper {
    background: linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(240, 244, 248, 0.96) 100%);

    border-bottom: 1px solid rgba(220, 225, 232, 0.9);

    display: flex;
    position: relative;
    align-items: center;

    width: 100%;
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
    overflow: hidden;
}

.stepper-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.45rem;

    cursor: grab;
    user-select: none;

    padding: 0.75rem 1.25rem;
    flex-wrap: nowrap;

    /* Always scrollable strip — never wraps */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}

.stepper-nav.is-grabbing {
    cursor: grabbing !important;
    scroll-behavior: auto;
}

.stepper-nav.is-grabbing * {
    pointer-events: none;
    cursor: grabbing !important;
}

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

.stepper-content {
    padding: 1.5rem;

    min-height: 0;
}

.step-pane {
    /* Panes inherit padding from .stepper-content wrapper */
    min-height: 0;
}

.step-pane.hidden {
    display: none !important;
}

/* Custom section panes get a small top gap since they're direct children of customSectionPanesContainer */
.custom-section-pane {
    padding-top: 0;
}

.custom-section-pane.hidden {
    display: none !important;
}

.pane-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.1rem;
    font-weight: 600;

    margin-bottom: 1rem;
}

.pane-subtitle {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.1rem;
    font-weight: 600;
}

.input-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.pane-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;

    margin-bottom: 1.15rem;
}

.pane-header-row .pane-title,
.pane-header-row .pane-subtitle {
    line-height: 1.25;

    margin-bottom: 0;
}

.nested-entry-card {
    background: var(--bg-subtle);

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);

    margin-bottom: 1rem;
    padding: 1.15rem;
}

.nested-entry-card-header {
    border-bottom: 1px solid var(--border-subtle);

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

    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;

    strong {
        font-family: var(--sanifucv-title-font);
        font-size: 1rem;
    }
}

.nested-entry-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nested-card-drag-hint {
    color: var(--text-subtle);
    font-size: 1.15rem;

    user-select: none;

    opacity: 0.65;
}

.nested-card-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.nested-entry-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nested-entry-actions .btn-icon {
    border-radius: var(--radius-sm);

    color: var(--text-muted);

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

    padding: 0;

    transition: all 0.2s ease;

    width: 32px;
    height: 32px;
}

.nested-entry-actions .btn-icon:hover:not(:disabled) {
    background: var(--bg-surface);

    color: var(--text-main);

    box-shadow: var(--shadow-sm);
}

.nested-entry-actions .btn-icon:disabled {
    cursor: not-allowed;

    opacity: 0.35;
}

.pane-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.pane-header-actions .btn-pill-subtle,
.pane-header-row > .btn-pill-subtle {
    border-radius: var(--radius-pill);

    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1.5px 0 rgba(210, 204, 194, 0.7);

    padding: 0 0.85rem;

    transition: all 0.2s var(--ease-sweet);

    height: 32px;
}

.pane-header-actions .btn-pill-subtle .material-symbols-outlined,
.pane-header-row > .btn-pill-subtle .material-symbols-outlined {
    font-size: 1.05rem;
    line-height: 1;
}

.pane-header-actions .btn-pill-subtle:hover,
.pane-header-row > .btn-pill-subtle:hover {
    color: var(--google-blue);

    transform: translateY(-1px);
}

@media (max-width: 580px) {
    .pane-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .pane-header-actions {
        justify-content: flex-start;

        width: 100%;
    }
}

.stepper-footer {
    border-top: 1px solid var(--border-subtle);

    display: flex;
    justify-content: space-between;

    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.preview-status-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.preview-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.15rem;
    font-weight: 600;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.preview-actions .btn-pill-secondary,
.preview-actions .btn-pill-primary {
    font-size: var(--font-mid);
    white-space: nowrap;

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

    padding: 0 1.25rem;

    height: 42px;
}

.resume-paper {
    background: #ffffff;

    border-top: 1px solid var(--border-subtle);

    color: #111827;
    font-family: "Times New Roman", Times, "Liberation Serif", serif;
    font-size: 11pt;
    line-height: 1.45;
    text-align: left;

    position: relative;

    margin: 0 auto;
    padding: 2.25rem 2.5rem;

    width: 100%;
    max-width: 816px;
    min-height: 650px;
    box-sizing: border-box;
}

/* 1. Font Family Classes */
.resume-paper.font-times,
.resume-paper.font-times * {
    font-family: "Times New Roman", Times, "Liberation Serif", serif !important;
}

.resume-paper.font-inter,
.resume-paper.font-inter * {
    font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}

.resume-paper.font-garamond,
.resume-paper.font-garamond * {
    font-family: "EB Garamond", Garamond, Georgia, serif !important;
}

.resume-paper.font-georgia,
.resume-paper.font-georgia * {
    font-family: Georgia, Cambria, serif !important;
}

.resume-paper.font-roboto,
.resume-paper.font-roboto * {
    font-family: "Roboto", system-ui, -apple-system, sans-serif !important;
}

.resume-paper.font-merriweather,
.resume-paper.font-merriweather * {
    font-family: "Merriweather", Georgia, serif !important;
}

.resume-paper.font-calibri,
.resume-paper.font-calibri * {
    font-family: Calibri, "Aptos", "Segoe UI", sans-serif !important;
}

/* 2. Accent Color Classes */
.resume-paper.accent-slate {
    --cv-accent: #111827;
}

.resume-paper.accent-navy {
    --cv-accent: #1e3a8a;
}

.resume-paper.accent-blue {
    --cv-accent: #1b6ef3;
}

.resume-paper.accent-green {
    --cv-accent: #047857;
}

.resume-paper.accent-burgundy {
    --cv-accent: #831843;
    --cv-accent-rgb: 131, 24, 67;
}

.resume-paper.accent-amber {
    --cv-accent: #b45309;
    --cv-accent-rgb: 180, 83, 9;
}

.resume-paper.accent-teal {
    --cv-accent: #0f766e;
    --cv-accent-rgb: 15, 118, 110;
}

.resume-paper.accent-plum {
    --cv-accent: #6b21a8;
    --cv-accent-rgb: 107, 33, 168;
}

/* Base CV Document Elements */
.cv-header {
    border-bottom: 1.5px solid var(--cv-accent, #111827);

    text-align: center;

    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
}

.cv-name {
    color: var(--cv-accent, #111827);
    font-size: 18pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-bottom: 0.3rem;
}

.cv-contact-line {
    font-size: 9.5pt;
}

.cv-section {
    margin-bottom: 1.15rem;
}

.cv-section-title {
    border-bottom: 1px solid #374151;

    color: var(--cv-accent, #111827);
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    margin-bottom: 0.45rem;
    padding-bottom: 0.15rem;
}

.cv-text {
    font-size: 10pt;
    line-height: 1.45;
}

.cv-role-header {
    font-size: 10.5pt;
    font-weight: 700;

    display: flex;
    justify-content: space-between;
}

.cv-role-sub {
    font-style: italic;
    font-size: 10pt;

    margin-bottom: 0.25rem;
}

.cv-bullet-list {
    list-style-type: disc;

    margin-left: 1.25rem;
}

.cv-bullet-list li {
    font-size: 9.8pt;
    line-height: 1.4;

    margin-bottom: 0.25rem;
}

.cv-bullet-list li strong,
.cv-text strong,
.resume-paper h1,
.resume-paper h2,
.resume-paper h3,
.resume-paper h4,
.resume-paper h5,
.resume-paper h6,
.resume-paper strong,
.resume-paper b {
    font-family: inherit;
    font-weight: 700;
}

.cv-bullet-list li em,
.cv-text em,
.resume-paper em {
    font-style: italic;
}

.cv-inline-code {
    background: rgba(0, 0, 0, 0.04);

    border-radius: 2px;

    font-family: monospace;
    font-size: 0.9em;

    padding: 1px 4px;
}

/* --- TEMPLATE 1: CLASSIC ATS (Ivy League Standard) --- */
.resume-paper.template-classic {
    text-align: left;
}

.resume-paper.template-classic .cv-header {
    border-bottom: 1.5px solid #111827;

    text-align: center;

    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
}

.resume-paper.template-classic .cv-name {
    color: #111827;
    font-size: 18pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-bottom: 0.3rem;
}

.resume-paper.template-classic .cv-section-title {
    border-bottom: 1px solid #374151;

    color: #111827;
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    margin-bottom: 0.45rem;
    padding-bottom: 0.15rem;
}

/* --- TEMPLATE 2: MODERN EXECUTIVE --- */
.resume-paper.template-modern .cv-header {
    border-bottom: 2px solid var(--cv-accent, #1e3a8a);

    text-align: left;

    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
}

.resume-paper.template-modern .cv-name {
    color: var(--cv-accent, #1e3a8a);
    font-size: 20pt;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;

    margin-bottom: 0.25rem;
}

.resume-paper.template-modern .cv-contact-line {
    color: #4b5563;
    font-size: 9.2pt;
}

.resume-paper.template-modern .cv-section-title {
    border-bottom: 1.5px solid var(--cv-accent, #1e3a8a);

    color: var(--cv-accent, #1e3a8a);
    font-size: 10.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-bottom: 0.55rem;
    padding-bottom: 0.2rem;
}

.resume-paper.template-modern .cv-role-sub span {
    color: var(--cv-accent, #1e3a8a);
    font-style: normal;
    font-weight: 600;
}

/* --- TEMPLATE 3: TECH MINIMALIST --- */
.resume-paper.template-compact {
    padding: 1.75rem 2.25rem;
}

.resume-paper.template-compact .cv-header {
    border-bottom: 1px dashed #cbd5e1;

    text-align: left;

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

    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
}

.resume-paper.template-compact .cv-name {
    color: #0f172a;
    font-size: 17pt;
    font-weight: 800;
    letter-spacing: -0.02em;

    margin-bottom: 0;
}

.resume-paper.template-compact .cv-contact-line {
    color: #64748b;
    font-size: 8.8pt;
    text-align: right;
}

.resume-paper.template-compact .cv-section {
    margin-bottom: 0.85rem;
}

.resume-paper.template-compact .cv-section-title {
    border-bottom: none;
    border-left: 3.5px solid var(--cv-accent, #1b6ef3);

    color: var(--cv-accent, #1b6ef3);
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    margin-bottom: 0.35rem;
    padding-bottom: 0;
    padding-left: 0.45rem;
}

.resume-paper.template-compact .cv-role-header {
    font-size: 10pt;
}

.resume-paper.template-compact .cv-role-sub {
    font-size: 9.3pt;

    margin-bottom: 0.2rem;
}

.resume-paper.template-compact .cv-bullet-list li {
    font-size: 9.3pt;
    line-height: 1.35;

    margin-bottom: 0.18rem;
}

/* --- TEMPLATE 4: EDITORIAL ELEGANT --- */
.resume-paper.template-contemporary .cv-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);

    text-align: center;

    position: relative;

    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.resume-paper.template-contemporary .cv-name {
    color: var(--cv-accent, #831843);
    font-size: 19pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    margin-bottom: 0.35rem;
}

.resume-paper.template-contemporary .cv-contact-line {
    color: #4b5563;
    font-style: italic;
    font-size: 9.2pt;
    letter-spacing: 0.02em;
}

.resume-paper.template-contemporary .cv-section-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);

    color: var(--cv-accent, #831843);
    font-size: 11pt;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;

    margin-bottom: 0.55rem;
    padding-bottom: 0.2rem;
}

.resume-paper.template-contemporary .cv-role-sub {
    color: #4b5563;
    font-style: italic;
    font-size: 9.8pt;
}

/* --- TEMPLATE 5: NORDIC CLEAN --- */
.resume-paper.template-nordic {
    padding: 2.75rem 3rem;
}

.resume-paper.template-nordic .cv-header {
    border-bottom: 1px solid #e2e8f0;

    text-align: left;

    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
}

.resume-paper.template-nordic .cv-name {
    color: #0f172a;
    font-size: 19pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    margin-bottom: 0.35rem;
}

.resume-paper.template-nordic .cv-contact-line {
    color: #64748b;
    font-size: 9pt;
    letter-spacing: 0.02em;
}

.resume-paper.template-nordic .cv-section-title {
    border-bottom: 1px solid #f1f5f9;

    color: var(--cv-accent, #1b6ef3);
    font-size: 9.8pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;

    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}

.resume-paper.template-nordic .cv-role-header {
    font-size: 10.2pt;
    font-weight: 700;
}

.resume-paper.template-nordic .cv-role-sub {
    color: #475569;
    font-size: 9.5pt;
}

.resume-paper.template-nordic .cv-bullet-list li {
    font-size: 9.6pt;
    line-height: 1.5;

    margin-bottom: 0.3rem;
}

/* --- TEMPLATE 6: CORPORATE HORIZON --- */
.resume-paper.template-corporate .cv-header {
    border-bottom: 2px solid var(--cv-accent, #1e3a8a);

    text-align: center;

    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
}

.resume-paper.template-corporate .cv-name {
    color: var(--cv-accent, #1e3a8a);
    font-size: 20pt;
    font-weight: 800;
    letter-spacing: 0.02em;

    margin-bottom: 0.25rem;
}

.resume-paper.template-corporate .cv-contact-line {
    color: #334155;
    font-size: 9.2pt;
}

.resume-paper.template-corporate .cv-section-title {
    background: #f8fafc;

    border-bottom: none;
    border-left: 4px solid var(--cv-accent, #1e3a8a);
    border-radius: 0 4px 4px 0;

    color: var(--cv-accent, #1e3a8a);
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-bottom: 0.55rem;
    padding: 0.25rem 0.65rem;
}

.resume-paper.template-corporate .cv-role-header {
    font-size: 10.2pt;
    font-weight: 700;
}

.resume-paper.template-corporate .cv-role-sub {
    font-size: 9.5pt;

    margin-bottom: 0.25rem;
}

.resume-paper.template-corporate .cv-bullet-list li {
    font-size: 9.5pt;
    line-height: 1.45;

    margin-bottom: 0.25rem;
}

/* --- TEMPLATE 7: METRO PRECISION --- */
.resume-paper.template-metro .cv-header {
    border-bottom: none;
    border-left: 4px solid var(--cv-accent, #0f766e);

    text-align: left;

    margin-bottom: 1.25rem;
    padding-bottom: 0;
    padding-left: 1rem;
}

.resume-paper.template-metro .cv-name {
    color: #0f172a;
    font-size: 20pt;
    font-weight: 800;
    letter-spacing: -0.01em;

    margin-bottom: 0.2rem;
}

.resume-paper.template-metro .cv-contact-line {
    color: #475569;
    font-size: 9pt;
}

.resume-paper.template-metro .cv-section-title {
    border-bottom: 1.5px solid var(--cv-accent, #0f766e);

    color: var(--cv-accent, #0f766e);
    font-size: 10.2pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
}

.resume-paper.template-metro .cv-bullet-list li::marker {
    color: var(--cv-accent, #0f766e);
}

.resume-paper.template-metro .cv-bullet-list li {
    font-size: 9.6pt;
    line-height: 1.45;

    margin-bottom: 0.25rem;
}

/* ==========================================================================
   14B. COPILOT LAUNCHER PILL
   The unified chat panel lives in section 13. This section only contains
   the collapsed launcher pill button shown when the panel is closed.
   ========================================================================== */

.copilot-launcher-pill {
    /* Conforms strictly to Mafabi .btn-pill-primary standard button category */
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border: 1px solid rgba(18, 81, 180, 0.9);
    border-radius: var(--radius-pill);

    color: #ffffff;
    font-family: var(--sanifucv-default-font);
    font-size: var(--font-mid);
    letter-spacing: 0.015em;

    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    cursor: pointer;

    box-shadow: var(--shadow-3d-primary);

    padding: 0 1.35rem;

    transition: all 0.2s var(--ease-sweet);
    transform-origin: center bottom;

    height: 42px;
}

.copilot-launcher-pill:hover {
    background: linear-gradient(180deg, #69a6ff 0%, #2f80f8 42%, #1a62d7 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.46), inset 0 -3px 0 rgba(14, 75, 183, 0.26), 0 12px 22px rgba(27, 110, 243, 0.24), 0 2px 1px rgba(17, 95, 204, 0.5);

    transform: translateY(-2px);
}

.copilot-launcher-pill:active {
    background: linear-gradient(180deg, #1d69e8 0%, #165ed9 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(14, 75, 183, 0.18), 0 2px 1px rgba(17, 95, 204, 0.5);

    transform: translateY(1px) scale(0.99);
}

.copilot-launcher-icon {
    font-size: 1.25rem;
}

.copilot-sparkle-dot {
    background: #34d399;

    border-radius: 50%;

    box-shadow: 0 0 8px #34d399;

    animation: sparklePulse 2s infinite ease-in-out;

    width: 8px;
    height: 8px;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0.9;

 transform: scale(1); }
    50% { opacity: 0.5;

 transform: scale(1.35); }
}



/* ==========================================================================
   15. APPLICATION FOOTER
   ========================================================================== */

.app-footer {
    background: rgba(255, 255, 255, 0.6);

    border-top: 1px solid var(--border-subtle);

    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

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

    margin-top: auto;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
}

.app-footer a {
    color: var(--google-blue);
    font-family: var(--sanifucv-mafabi-font);
    font-weight: 700;

    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link-btn {
    background: transparent;

    border: none;
    border-radius: var(--radius-sm);

    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 500;

    cursor: pointer;

    padding: 0.2rem 0.45rem;

    transition: all 0.18s var(--ease-sweet);
}

.footer-link-btn:hover {
    color: var(--google-blue);

    transform: translateY(-1px);
}

.footer-link-btn:focus-visible {
    outline: none;

    box-shadow: var(--shadow-focus);
}

.footer-link-separator {
    color: var(--border-color);
    font-size: 0.75rem;
    line-height: 1;

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

    user-select: none;
}

/* ==========================================================================
   15B. RESUME STYLE & TEMPLATES CUSTOMIZER MODAL
   ========================================================================== */

.template-modal-card {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
}

.template-modal-header {
    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 1.25rem 1.75rem 1rem;
}

.template-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    padding: 1.5rem 1.75rem;

    overflow-y: auto;
}

.styler-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.styler-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.styler-section-kicker {
    color: var(--google-blue);
    font-family: var(--sanifucv-title-font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.styler-section-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.05rem;
    font-weight: 700;

    margin: 0;
}

/* Template Choice Grid */
.template-cards-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
}

.template-choice-card {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 16px;

    display: flex;
    position: relative;
    flex-direction: column;

    cursor: pointer;
    user-select: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(210, 204, 194, 0.4), 0 2px 4px rgba(15, 23, 42, 0.05);

    padding: 0.95rem;

    transition: all 0.2s var(--ease-sweet);
}

.template-choice-card:hover {
    background: #ffffff;

    border-color: rgba(27, 110, 243, 0.5);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 16px -3px rgba(27, 110, 243, 0.16);

    transform: translateY(-2px);
}

.template-choice-card:active {
    background: #f4efe8;

    box-shadow: inset 0 2px 2px rgba(15, 23, 42, 0.1);

    transform: translateY(0.5px) scale(0.99);
}

.template-choice-card.active {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);

    border-color: rgba(27, 110, 243, 0.55);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(190, 218, 255, 0.7), 0 3px 10px rgba(27, 110, 243, 0.15);
}

.template-choice-card.active .template-name {
    color: var(--google-blue-deep);
}

.template-blueprint {
    background: #f8fafd;

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

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 10px 12px;

    height: 78px;
    overflow: hidden;
}

.template-choice-card.active .template-blueprint {
    background: #edf5ff;

    border-color: #bfdbfe;
}

.bp-line {
    background: #cbd5e1;

    border-radius: 2px;

    height: 4px;
}

.bp-line.bp-title {
    background: #64748b;

    width: 48%;
    height: 6px;
}

.bp-line.bp-title.center {
    margin: 0 auto;
}

.bp-line.bp-contact {
    width: 65%;
    height: 3px;
}

.bp-line.bp-contact.center {
    margin: 0 auto;
}

.bp-divider {
    background: #94a3b8;

    margin: 3px 0 2px;

    height: 1px;
}

.bp-accent-rule {
    background: var(--google-blue);

    margin: 3px 0 2px;

    height: 1.5px;
}

.bp-double-rule {
    border-top: 1px solid #94a3b8;
    border-bottom: 1px solid #94a3b8;

    margin: 2px 0;

    height: 3px;
}

.bp-line.bp-sec-title {
    background: #475569;

    width: 38%;
    height: 4px;
}

.bp-line.bp-sec-tag {
    background: var(--google-blue);

    width: 32%;
    height: 4px;
}

.bp-line.bp-body.w-90 {
    width: 90%;
}

.bp-line.bp-body.w-85 {
    width: 85%;
}

.bp-line.bp-body.w-80 {
    width: 80%;
}

.bp-line.bp-body.w-75 {
    width: 75%;
}

.bp-line.bp-body.w-70 {
    width: 70%;
}

.bp-line.bp-body.w-65 {
    width: 65%;
}

.bp-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 2px;
}

.bp-line.bp-title-sm {
    background: #0f172a;

    width: 40%;
    height: 5px;
}

.bp-line.bp-contact-sm {
    width: 40%;
    height: 3px;
}

.bp-pills-row {
    display: flex;
    gap: 4px;

    margin-top: 2px;
}

.bp-mini-pill {
    background: #bfdbfe;

    border-radius: 4px;

    width: 22px;
    height: 5px;
}

.template-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    margin-top: 0.65rem;
}

.template-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-name {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.95rem;
    font-weight: 700;
}

.template-chip {
    background: #f1f5f9;

    border-radius: 999px;

    color: #475569;
    font-family: var(--sanifucv-title-font);
    font-size: 0.68rem;
    font-weight: 600;

    padding: 0.15rem 0.5rem;
}

.template-chip.chip-blue {
    background: #eff6ff;

    color: #1d4ed8;
}

.template-chip.chip-purple {
    background: #faf5ff;

    color: #7e22ce;
}

.template-chip.chip-amber {
    background: #fffbeb;

    color: #b45309;
}

.template-desc {
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.35;

    margin: 0;
}

.template-check-icon {
    color: var(--google-blue);
    font-size: 1.25rem;

    display: none;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

.template-choice-card.active .template-check-icon {
    display: block;
}

/* Font Choices Grid */
.font-choices-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(4, 1fr);
}

.font-choice-pill {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;

    cursor: pointer;
    user-select: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(210, 204, 194, 0.4), 0 2px 4px rgba(15, 23, 42, 0.05);

    padding: 0.85rem 0.65rem;

    transition: all 0.2s var(--ease-sweet);
}

.font-choice-pill:hover {
    background: #ffffff;

    border-color: rgba(27, 110, 243, 0.5);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px -2px rgba(27, 110, 243, 0.18);

    transform: translateY(-2px);
}

.font-choice-pill:active {
    background: #f4efe8;

    box-shadow: inset 0 2px 2px rgba(15, 23, 42, 0.1);

    transform: translateY(0.5px) scale(0.98);
}

.font-choice-pill.active {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);

    border-color: rgba(27, 110, 243, 0.55);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(190, 218, 255, 0.7), 0 2px 6px rgba(27, 110, 243, 0.14);
}

.font-choice-pill.active .font-sample,
.font-choice-pill.active .font-label {
    color: var(--google-blue-deep);
}

.font-sample {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;

    display: block;
}

.sample-times {
    font-family: "Times New Roman", serif;
}

.sample-inter {
    font-family: "Inter", sans-serif;
}

.sample-garamond {
    font-family: "EB Garamond", serif;
}

.sample-georgia {
    font-family: Georgia, serif;
}

.sample-roboto {
    font-family: "Roboto", sans-serif;
}

.sample-merriweather {
    font-family: "Merriweather", serif;
}

.sample-calibri {
    font-family: Calibri, "Aptos", sans-serif;
}

.font-label {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.font-tag {
    color: var(--text-muted);
    font-size: 0.66rem;
    text-align: center;
}

/* Accent Color Swatch Strip */
.accent-choices-strip {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    gap: 0.65rem;
}

.accent-swatch {
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);

    border: 1px solid var(--border-tactile);
    border-radius: 9999px;

    color: var(--text-main);

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;
    user-select: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1.5px 0 rgba(210, 204, 194, 0.4), 0 1px 2px rgba(15, 23, 42, 0.05);

    padding: 0 0.8rem;

    transition: all 0.18s var(--ease-sweet);

    height: 32px;
}

.accent-swatch:hover {
    background: #ffffff;

    border-color: rgba(27, 110, 243, 0.45);

    color: var(--google-blue-deep);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 3px 8px -2px rgba(27, 110, 243, 0.2);

    transform: translateY(-1px);
}

.accent-swatch:active {
    background: #f4efe8;

    box-shadow: inset 0 2px 2px rgba(15, 23, 42, 0.12);

    transform: translateY(0.5px) scale(0.98);
}

.accent-swatch.active {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);

    border-color: rgba(27, 110, 243, 0.45);

    color: var(--google-blue-deep);
    font-weight: 600;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(190, 218, 255, 0.6), 0 1px 3px rgba(27, 110, 243, 0.12);
}

.swatch-circle {
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;

    display: block;

    box-shadow: none;

    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.swatch-label {
    color: inherit;
    font-family: var(--sanifucv-title-font);
    font-size: 0.82rem;
    font-weight: 600;
}

.template-modal-footer {
    border-top: 1px solid var(--border-subtle);

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

    padding: 0.9rem 1.75rem;
}

/* ==========================================================================
   16. PRINT STYLING (Zero-Defect ATS PDF Export)
   ========================================================================== */

@media print {
    body:not(.document-export-authorized) #resumeRender,
    body:not(.document-export-authorized) #coverLetterStage {
        display: none !important;
    }

    html,
    body {
        background: #ffffff !important;

        color: #111827 !important;

        margin: 0 !important;
        padding: 0 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .app-header,
    .app-footer,
    .toast-container,
    .custom-modal-overlay,
    .builder-editor,
    .builder-column-left,
    .builder-target-card,
    #targetOpportunityCard,
    .preview-card-header,
    .hero-intro,
    .card-unified,
    .story-rejection-section,
    .builder-copilot-widget,
    #builderCopilotWidget,
    #btnOpenBuilderCopilot,
    #unifiedChatPanel,
    #fullscreenChatModal,
    #fullscreenInterviewModal,
    .copilot-launcher-pill,
    #uploadSection,
    #freshIntakeOverlay,
    #auditResultsCard,
    .fresh-start-divider,
    .btn-fresh-start,
    #sanifucv-pdf-export-overlay,
    #stepperNavWrapper {
        display: none !important;
    }

    .workspace,
    #mainWorkspace,
    #builderSection {
        background: transparent !important;

        border: none !important;

        display: block !important;
        position: static !important;

        box-shadow: none !important;

        margin: 0 !important;
        padding: 0 !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    .builder-layout {
        border: none !important;

        display: block !important;
        gap: 0 !important;

        box-shadow: none !important;

        margin: 0 !important;
        padding: 0 !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    .builder-card.builder-preview {
        background: transparent !important;

        border: none !important;

        display: block !important;

        box-shadow: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .resume-paper {
        background: #ffffff !important;

        border: none !important;

        color: #111827 !important;

        display: block !important;

        box-shadow: none !important;

        margin: 0 auto !important;
        padding: 14mm 16mm !important;

        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        -webkit-box-decoration-break: clone !important;
        box-decoration-break: clone !important;
    }

    .cv-header {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .cv-section {
        page-break-inside: auto !important;
        break-inside: auto !important;

        margin-bottom: 1.15rem !important;
    }

    .cv-section-title {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .cv-entry,
    .cv-experience-entry,
    .cv-education-entry,
    .cv-custom-entry,
    .cv-role-header,
    .cv-role-sub {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .cv-bullet-list {
        margin-left: 1.25rem !important;
        padding-left: 0 !important;
    }

    .cv-bullet-list li {
        font-size: 9.8pt !important;
        line-height: 1.4 !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;

        margin-bottom: 0.25rem !important;
    }

    .cv-contact-link {
        color: #111827 !important;
        text-decoration: underline !important;
    }

    @page {
        size: letter portrait;

        margin: 0;
    }
}

/* ==========================================================================
   17. COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }

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

    .audit-breakdown {
        grid-template-columns: 1fr;
    }
}

@keyframes mobileNavPop {
    from {
        opacity: 0;

        transform: scale(0.92) translateY(-6px);
    }

    to {
        opacity: 1;

        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.75rem 1.25rem;
    }

    .header-inner {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-hamburger-btn {
        display: inline-flex;
    }

    .nav-actions {
        background: rgba(255, 255, 255, 0.98);

        border: 1px solid var(--border-tactile);
        border-radius: var(--radius-lg);

        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 1000;
        flex-direction: column;
        gap: 0.5rem;

        box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(27, 110, 243, 0.08);

        padding: 0.65rem;

        animation: mobileNavPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        transform-origin: top right;

        min-width: 210px;
        backdrop-filter: blur(16px);
    }

    .nav-actions.is-open {
        display: flex;
    }

    .nav-actions .nav-pill {
        font-size: var(--font-max);

        justify-content: flex-start;

        padding: 0.65rem 1.15rem;

        width: 100%;
    }

    .brand-tagline {
        display: none;
    }

    .card-unified {
        padding: 1.5rem 1.25rem;
    }

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

    .score-header {
        text-align: center;

        flex-direction: column;
    }

    .status-pill-badge {
        align-self: center;
    }

    .builder-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;

        padding: 1.15rem 1.25rem;

        min-height: auto;
    }

    .builder-heading-cluster {
        width: 100%;
    }

    .builder-card-title {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    #btnManualOverride {
        align-self: flex-start;
    }

    .stepper-nav {
        white-space: nowrap;

        gap: 0.65rem;

        padding: 0.75rem 1.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

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

    .step-btn {
        font-size: var(--font-min);
        white-space: nowrap;

        padding: 0.45rem 0.95rem;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .stepper-content {
        padding: 1.25rem 1.15rem;
    }

    .preview-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;

        padding: 1.15rem 1.25rem;

        min-height: auto;
    }

    .preview-status-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;

        width: 100%;
    }

    .preview-actions {
        display: flex;
        flex-direction: row;
        gap: 0.65rem;

        width: 100%;
    }

    .preview-actions .btn-pill-secondary,
    .preview-actions .btn-pill-primary {
        font-size: var(--font-mid);
        white-space: nowrap;

        flex: 1;
        justify-content: center;

        padding: 0 0.85rem;

        height: 42px;
    }

    .resume-paper {
        font-size: 10pt;

        padding: 1.5rem 1.25rem;

        min-height: auto;
    }

    .cv-name {
        font-size: 15pt;
    }

    .cv-contact-line {
        font-size: 8.5pt;
        line-height: 1.4;
    }

    .chat-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;

        padding: 0.65rem 0.85rem;
    }

    .chat-btn-text-full,
    .chat-title-full,
    .interview-btn-text-full {
        display: none;
    }

    .chat-btn-text-short,
    .chat-title-short,
    .interview-btn-text-short {
        display: inline;
    }

    .chat-title-cluster {
        gap: 0.45rem;

        min-width: 0;
    }

    .recruiter-avatar-mini {
        width: 32px;
        height: 32px;
    }

    .chat-stage-heading {
        font-size: 0.95rem;
        white-space: nowrap;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-bar-actions {
        gap: 0.4rem;
    }

    .chat-nav-btn,
    .chat-action-btn {
        font-size: var(--font-min);

        gap: 0.35rem;

        padding: 0.45rem 0.7rem;
    }

    .chat-nav-btn .material-symbols-outlined,
    .chat-action-btn .material-symbols-outlined {
        font-size: 1.15rem;
    }

    .chat-thread-container {
        padding: 0.9rem 0.85rem 1.5rem 0.85rem;
    }

    .chat-thread {
        gap: 1.15rem;
    }

    .chat-bubble {
        gap: 0.65rem;

        max-width: 95%;
    }

    .chat-model {
        max-width: 98%;
    }

    .chat-avatar {
        width: 32px;
        height: 32px;
    }

    .chat-avatar .material-symbols-outlined {
        font-size: 1.15rem;
    }

    .chat-bubble-content {
        border-radius: 16px;

        font-size: 0.88rem;
        line-height: 1.55;

        padding: 0.85rem 1rem;
    }

    .chat-model-text strong,
    .chat-model-text b {
        font-size: 0.88rem;
    }

    .chat-heading {
        font-size: 0.98rem;

        margin: 0.75rem 0 0.35rem 0;
    }

    .chat-list {
        padding-left: 1.15rem;
    }

    .chat-artifact-card {
        text-align: left;

        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;

        padding: 0.85rem 1rem;
    }

    .chat-artifact-card .artifact-header {
        width: 100%;
    }

    .chat-artifact-card button,
    .chat-artifact-card .btn-pill-primary {
        justify-content: center;

        width: 100%;
    }

    .chat-autonomous-task-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;

        padding: 0.72rem 0.85rem;
    }

    .chat-autonomous-task-left {
        width: 100%;
    }

    .chat-autonomous-inspect-btn {
        justify-content: center !important;

        width: 100% !important;
        height: 34px !important;
    }

    .chat-bridge-card {
        text-align: left;

        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;

        padding: 0.85rem 1rem;
    }

    .chat-bridge-card .bridge-header {
        width: 100%;
    }

    .chat-bridge-card button,
    .chat-bridge-card .bridge-launch-btn {
        justify-content: center;

        width: 100%;
    }

    .builder-copilot-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .copilot-drawer {
        border-radius: 20px 20px 0 0;

        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        max-width: 100%;
        height: 72vh;
        max-height: 85vh;
    }

    .chat-bottom-dock {
        padding: 0.75rem 0.85rem 1rem 0.85rem;
    }

    .chat-chip {
        font-size: 0.78rem;

        gap: 0.35rem;

        padding: 0.42rem 0.8rem;
    }

    .chat-chip .material-symbols-outlined {
        font-size: 0.95rem;
    }

    .interview-top-bar {
        padding: 0.65rem 0.85rem;
    }

    .app-footer {
        text-align: center;

        flex-direction: column;
        gap: 0.75rem;
    }

    .legal-modal-card {
        border-radius: var(--radius-lg);

        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
    }

    .legal-modal-header {
        padding: 1rem 1.25rem 0.75rem 1.25rem;
    }

    .legal-tab-switcher {
        gap: 0.35rem;

        padding: 0.4rem 1.25rem 0.6rem 1.25rem;
    }

    .legal-tab-btn {
        font-size: var(--font-min);

        flex: 1;
        justify-content: center;

        padding: 0.45rem 0.65rem;
    }

    .legal-modal-body {
        padding: 1rem 1.25rem;

        max-height: calc(90vh - 185px);
    }

    .legal-trust-banner {
        gap: 0.65rem;

        padding: 0.75rem 0.85rem;
    }

    .legal-modal-footer {
        text-align: center;

        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;

        padding: 0.85rem 1.25rem;
    }

    #btnLegalModalConfirm {
        width: 100%;
    }

    /* Template & Style Customizer Modal (Mobile & Tablet) */
    .template-modal-card {
        border-radius: var(--radius-lg);

        width: 95vw;
        max-width: 95vw;
        max-height: 88vh;
    }

    .template-modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .template-modal-body {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;

        padding: 1rem 1.25rem;

        max-height: calc(88vh - 130px);
    }

    .template-cards-grid {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .font-choices-grid {
        display: grid;
        gap: 0.65rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .accent-choices-strip {
        display: flex;
        flex-wrap: wrap;

        gap: 0.65rem;
    }

    .accent-swatch {
        flex: 1 1 calc(33.333% - 0.65rem);
        justify-content: center;

        padding: 0.55rem 0.75rem;
    }

    .template-modal-footer {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.65rem;

        padding: 0.85rem 1.25rem;
    }

    .template-modal-footer #btnResetTemplateDefaults,
    .template-modal-footer #btnDoneTemplateModal {
        justify-content: center;

        width: 100%;
    }
}

@media (max-width: 600px) {
    .step-label-full {
        display: none;
    }

    .step-label-short {
        display: inline;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 1.85rem;
    }

    .card-unified {
        padding: 1.25rem 1rem;
    }

    .drop-zone {
        padding: 2rem 1rem;
    }

    .preview-actions .btn-pill-secondary,
    .preview-actions .btn-pill-primary {
        font-size: var(--font-min);

        padding: 0 0.65rem;

        height: 42px;
    }

    .resume-paper {
        font-size: 9.5pt;

        padding: 1.25rem 0.85rem;
    }

    .cv-name {
        font-size: 14pt;
    }

    .cv-contact-line {
        font-size: 8pt;
    }

    .stepper-footer {
        gap: 0.5rem;
    }

    .stepper-footer button {
        padding: 0 1rem;
    }

    .legal-modal-card {
        border-radius: var(--radius-md);

        width: 98vw;
        max-width: 98vw;
        max-height: 94vh;
    }

    .legal-tab-btn span:last-child {
        font-size: 0.78rem;
    }

    .legal-modal-body {
        padding: 0.85rem 1rem;

        max-height: calc(94vh - 175px);
    }

    .chat-top-bar {
        gap: 0.35rem;

        padding: 0.5rem 0.65rem;
    }

    .chat-title-cluster {
        gap: 0.35rem;
    }

    .recruiter-avatar-mini {
        width: 28px;
        height: 28px;
    }

    .recruiter-avatar-mini .material-symbols-outlined {
        font-size: 1.05rem;
    }

    .chat-stage-heading {
        font-size: 0.88rem;
    }

    .chat-bar-actions {
        gap: 0.3rem;
    }

    .chat-nav-btn {
        padding: 0.4rem 0.6rem;
    }

    #btnSwitchToQuestionnaire {
        padding: 0.4rem 0.55rem;
    }

    #btnSwitchToQuestionnaire .chat-btn-text-short {
        display: none;
    }

    #btnApplyAIToBuilder {
        padding: 0.4rem 0.65rem;
    }

    .chat-bubble {
        gap: 0.5rem;

        max-width: 100%;
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-avatar .material-symbols-outlined {
        font-size: 1.05rem;
    }

    .chat-bubble-content {
        border-radius: 14px;

        font-size: 0.84rem;

        padding: 0.75rem 0.85rem;
    }

    .chat-input-capsule {
        padding: 0.3rem 0.4rem 0.3rem 0.85rem;

        min-height: 46px;
    }

    .chat-textarea {
        font-size: 0.88rem;
    }

    .chat-textarea::placeholder {
        font-size: 0.82rem;
    }

    .chat-send-btn {
        width: 36px;
        height: 36px;
    }

    .chat-send-btn .material-symbols-outlined {
        font-size: 1.15rem;
    }

    .chat-privacy-hint {
        font-size: 0.68rem;
    }

    .interview-top-bar {
        padding: 0.5rem 0.65rem;
    }

    .fs-role-headline {
        font-size: 1.45rem;
    }

    .fs-company-subheadline {
        font-size: 1rem;
    }

    .fs-question-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   START FRESH — No CV CTA & Intake Modal
   ========================================================================== */
.fresh-start-divider {
    color: var(--text-muted);
    font-size: 0.8rem;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    margin: 0.85rem 0 0.65rem;
}

.fresh-start-divider::before,
.fresh-start-divider::after {
    background: var(--border-subtle);

    flex: 1;

    height: 1px;
    content: '';
}

.btn-fresh-start {
    background: transparent;

    border: 1.5px dashed var(--google-blue);
    border-radius: 50px;

    color: var(--google-blue);
    font-size: 0.85rem;
    font-weight: 500;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    cursor: pointer;

    padding: 0.65rem 1.25rem;

    transition: background 0.2s ease, box-shadow 0.2s ease;

    width: 100%;
}

.btn-fresh-start:hover {
    background: color-mix(in srgb, var(--google-blue) 6%, transparent);

    box-shadow: 0 0 0 3px color-mix(in srgb, var(--google-blue) 12%, transparent);
}

.btn-fresh-start .material-symbols-outlined {
    font-size: 1.05rem;
}

/* Fresh Intake Modal (Conforms Strictly to Custom Modal System) */
.fresh-intake-card {
    width: 100%;
    max-width: 530px;
    max-height: 90vh;
}

.fresh-intake-header {
    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 1.4rem 1.75rem 1rem 1.75rem;
}

.fresh-intake-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font) !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;

    margin: 0;
}

.fresh-intake-sub {
    color: var(--text-muted);
    font-size: var(--font-min);
    font-weight: 400;

    display: block;

    margin-top: 0.15rem;
}

.fresh-intake-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.25rem 1.75rem 1.5rem 1.75rem;
}

.fresh-intake-body .field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    margin-bottom: 0;
}

.fresh-intake-body .field-group label {
    color: var(--text-main);
    font-size: var(--font-max);
    font-weight: 500;

    display: block;
}

.intake-textarea {
    border-radius: var(--radius-md);

    font-size: var(--font-mid);
    line-height: 1.5;

    padding: 0.75rem 0.95rem;

    min-height: 84px;
    max-height: 180px;
    resize: vertical;
}

.fresh-intake-expectation-note {
    background: linear-gradient(180deg, #f0f6ff 0%, #e6f0fd 100%);

    border: 1px solid rgba(27, 110, 243, 0.18);
    border-radius: var(--radius-md);

    color: var(--text-main);
    font-size: var(--font-min);
    line-height: 1.45;

    display: flex;
    align-items: flex-start;
    gap: 0.55rem;

    padding: 0.75rem 0.9rem;
}

.fresh-intake-expectation-note .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.15rem;
    flex-shrink: 0;

    margin-top: 1px;
}

.fresh-intake-footer {
    border-top: 1px solid var(--border-subtle);

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;

    padding: 1rem 1.75rem;
}

/* ==========================================================================
   CUSTOM SECTIONS — Add Section Row & Section Picker Panel
   ========================================================================== */
.add-section-row {
    border-top: 1px dashed var(--border-subtle);

    display: flex;
    justify-content: center;

    margin-top: 1rem;
    padding: 1rem 0 0.5rem;
}

.btn-add-section {
    background: transparent;

    border: 1.5px dashed var(--border-main);
    border-radius: 50px;

    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;

    padding: 0.55rem 1.25rem;

    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-add-section:hover {
    background: color-mix(in srgb, var(--google-blue) 5%, transparent);

    border-color: var(--google-blue);

    color: var(--google-blue);
}

.btn-add-section .material-symbols-outlined {
    font-size: 1.05rem;
}

.section-picker-panel {
    background: var(--bg-subtle);

    border: 1px solid var(--border-subtle);
    border-radius: 14px;

    margin: 0.5rem 0 1rem;
    padding: 1rem;

    animation: slideDownFade 0.22s ease both;
}

@keyframes slideDownFade {
    from { opacity: 0;

 transform: translateY(-8px); }
    to   { opacity: 1;

 transform: translateY(0); }
}

.section-picker-panel.hidden {
    display: none;
}

.section-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.85rem;
}

.section-picker-title {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.6rem;
}

.section-type-btn {
    background: var(--surface-card);

    border: 1px solid var(--border-subtle);
    border-radius: 10px;

    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;

    cursor: pointer;

    padding: 0.65rem 0.4rem;

    transition: all 0.18s ease;
}

.section-type-btn .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1.3rem;
}

.section-type-btn:hover {
    background: color-mix(in srgb, var(--google-blue) 6%, white);

    border-color: var(--google-blue);

    color: var(--google-blue);

    box-shadow: 0 4px 12px rgba(27,110,243,.12);

    transform: translateY(-2px);
}

.section-type-custom .material-symbols-outlined {
    color: var(--text-muted);
}

/* Section button — already added / disabled state */
.section-type-btn--added {
    background: color-mix(in srgb, var(--google-blue) 5%, var(--surface-card));

    border-color: color-mix(in srgb, var(--google-blue) 30%, transparent);

    color: var(--google-blue);

    position: relative;

    cursor: not-allowed;

    opacity: 0.65;
}

.section-type-btn--added .material-symbols-outlined {
    color: var(--google-blue);
}

.section-type-btn--added::after {
    color: var(--google-blue);
    font-family: "Material Symbols Outlined";
    font-size: 0.7rem;

    position: absolute;
    top: 4px;
    right: 4px;

    opacity: 0.7;
    content: "check_circle";
}

.section-type-btn--added:hover {
    box-shadow: none;

    transform: none;
}

/* ── Inline custom section title row ── */
.custom-title-row {
    border-top: 1px dashed var(--border-subtle);

    margin-top: 0.75rem;
    padding-top: 0.65rem;

    animation: slideDownFade 0.2s ease both;
}

.custom-title-row.hidden {
    display: none;
}

.custom-title-input-wrap {
    background: var(--surface-card);

    border: 1.5px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    display: flex;
    align-items: center;
    gap: 0.45rem;

    box-shadow: var(--shadow-3d-secondary);

    padding: 0.3rem 0.55rem 0.3rem 0.75rem;

    transition: border-color 0.18s ease;
}

/* Deliberately NO focus-within glow — the input shows its caret naturally */

.custom-title-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.custom-title-input {
    background: transparent;

    border: none;

    color: var(--text-main);
    font-family: inherit;
    font-size: 0.84rem;

    flex: 1;

    outline: none;

    padding: 0.3rem 0;
    caret-color: var(--google-blue);
}

.custom-title-input::placeholder {
    color: var(--text-muted);
}

.custom-title-input.input-shake {
    animation: inputShake 0.42s ease both;
}

.btn-confirm-custom {
    background: var(--google-blue);

    border: none;
    border-radius: 50%;

    color: #fff;

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

    cursor: pointer;

    transition: background 0.15s ease, transform 0.15s ease;

    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-confirm-custom .material-symbols-outlined {
    font-size: 1rem;
}

.btn-confirm-custom:hover {
    background: #1558d6;

    transform: scale(1.1);
}

.custom-title-cancel {
    background: transparent;

    border: none;

    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    text-decoration: underline;

    cursor: pointer;

    padding: 0.25rem 0.25rem 0;

    transition: color 0.15s ease;
    text-underline-offset: 2px;
}

.custom-title-cancel:hover {
    color: var(--google-red, #d93025);
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── Premium Entry Select Wrap (proficiency / other selects in section entries) ── */
.entry-select-wrap {
    background: linear-gradient(180deg, #fffdfb 0%, var(--bg-cream, #faf6f0) 100%);

    border: 1px solid var(--border-tactile);
    border-radius: var(--radius-pill);

    display: flex;
    position: relative;
    align-items: center;

    cursor: pointer;

    box-shadow: var(--shadow-3d-secondary);

    padding: 0 0.75rem 0 0.75rem;

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

    height: 42px;
}

.entry-select-wrap:focus-within {
    border-color: var(--google-blue);

    box-shadow: 0 0 0 3px rgba(27,110,243,0.12), inset 0 1px 0 #fff;
}

.entry-select-wrap:hover {
    border-color: rgba(165,155,140,0.95);

    box-shadow: inset 0 2px 0 rgba(255,255,255,0.95), inset 0 -3px 0 rgba(188,181,172,0.85), 0 6px 16px rgba(15,23,42,0.06);
}

.entry-select-icon {
    color: var(--google-blue);
    font-size: 1.1rem;

    pointer-events: none;

    margin-right: 0.45rem;
    flex-shrink: 0;
}

.entry-select {
    background: transparent;

    border: none;

    color: var(--text-main);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 400;

    flex: 1;

    cursor: pointer;
    outline: none;

    padding: 0;

    height: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.entry-select-chevron {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;

    pointer-events: none;

    margin-left: 0.3rem;

    transition: transform 0.22s ease, color 0.18s ease;
}

.entry-select-wrap:focus-within .entry-select-chevron {
    color: var(--google-blue);

    transform: rotate(180deg);
}

/* Override generic .field-group select styles for the premium entry-select-wrap */
.field-group .entry-select-wrap .entry-select {
    background: transparent;

    border: none;
    border-radius: 0;

    box-shadow: none;

    padding: 0;

    width: 100%;
}

/* Entry custom select dropdown — tighter sizing (no icons, short option text) */
.entry-csd-wrapper {
    /* Inherit full width from field-group */
    position: relative;

    width: 100%;
    min-width: 0;
}

.entry-csd-trigger {
    padding: 0 0.85rem;
}

.entry-csd-menu {
    min-width: 100%;
    /* Override base menu max-height for a compact proficiency picker */
    max-height: 230px;
}

.entry-csd-menu .custom-select-option {
    /* No left icon — reduce left padding slightly for a cleaner look */
    padding: 0.55rem 0.85rem;
}

.entry-csd-menu .option-content {
    /* No icon slot needed */
    gap: 0;
}

.custom-section-pane {
    padding-top: 0.5rem;
}

/* ==========================================================================
   AGENT UI COMMAND — Highlight Pulse Animation
   ========================================================================== */
.agent-highlight {
    border-radius: 12px;

    position: relative;

    outline: none !important;

    animation: sanifuSpotlightAura 2.8s cubic-bezier(0.2, 0.85, 0.25, 1) forwards !important;
}



/* ==========================================================================
   RESPONSIVE — 2-col option grid at narrow viewports
   ========================================================================== */
/* ==========================================================================
   NESTED ENTRY CARD — Custom section entries
   ========================================================================== */
.nested-entry-card {
    background: var(--bg-subtle, #f8fafd);

    border: 1px solid var(--border-subtle);
    border-radius: 14px;

    position: relative;

    margin-bottom: 0.75rem;
    padding: 1rem;
}

.nested-entry-card-header {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;

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

    margin-bottom: 0.65rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0.65rem;

    margin-bottom: 0.65rem;
}

.form-select,
.field-group select {
    background: #ffffff;

    border: 1px solid var(--border-subtle);
    border-radius: 8px;

    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;

    cursor: pointer;
    outline: none;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    padding: 0.65rem 0.85rem;

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

    width: 100%;
}

.form-select:focus,
.field-group select:focus {
    border-color: var(--google-blue);

    box-shadow: 0 0 0 2px rgba(27, 110, 243, 0.15);
}

/* ==========================================================================
   MOBILE RESPONSIVE — Comprehensive
   ========================================================================== */

/* 2-col and 3-col options grids collapse to 1 col below 900px (builder already collapses at 1024px) */
@media (max-width: 900px) {
    .options-grid-2col,
    .options-grid-3col {
        grid-template-columns: 1fr;
    }

    .story-cards-grid {
        grid-template-columns: 1fr;

        gap: 1.25rem;
    }

    .capability-cards-grid {
        grid-template-columns: 1fr;

        gap: 1.25rem;
    }

    .story-bridge-banner {
        text-align: center;

        flex-direction: column;
    }
}

/* Mobile: simplify stepper labels, stack options */
@media (max-width: 768px) {
    /* Use shortened labels on mobile */
    .step-label-full {
        display: none;
    }

    .step-label-short {
        display: inline;
    }

    /* Section picker: 2 columns */
    .section-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Input grid: single column */
    .input-grid {
        grid-template-columns: 1fr;
    }

    /* Hide preview SVGs on mobile to save space */
    .option-preview-box {
        display: none;
    }

    /* Audit results: single column */
    .issues-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    /* Fresh intake: slide up from bottom */
    .fresh-intake-overlay {
        align-items: flex-end;

        padding: 0;
    }

    .fresh-intake-card {
        border-radius: 20px 20px 0 0;

        max-width: 100%;
    }

    /* Stacked stepper footer */
    .stepper-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stepper-footer .btn-pill-secondary,
    .stepper-footer .btn-pill-primary {
        justify-content: center;

        width: 100%;
    }

    /* Fresh intake footer: stacked */
    .fresh-intake-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fresh-intake-footer .btn-pill-secondary,
    .fresh-intake-footer .btn-pill-primary {
        justify-content: center;

        width: 100%;
    }

    /* Section picker: 2 cols on tiny */
    .section-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Add section row: full button */
    .btn-add-section {
        justify-content: center;

        width: 100%;
    }

    /* Jump to upload button: full width on mobile */
    .jump-to-upload-btn {
        justify-content: center;

        width: 100%;
    }

    /* Template Customizer Modal (Small Phone Drawer) */
    .template-modal-overlay {
        align-items: flex-end;

        padding: 0;
    }

    .template-modal-card {
        border-radius: 20px 20px 0 0;

        width: 100%;
        max-width: 100%;
        max-height: 90vh;
    }

    .template-modal-header {
        padding: 0.85rem 1rem 0.65rem;
    }

    .template-modal-body {
        gap: 1rem;

        padding: 0.85rem 1rem;

        max-height: calc(90vh - 125px);
    }

    .template-choice-card {
        padding: 0.7rem;
    }

    .template-blueprint {
        height: 58px;
    }

    .font-choices-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .font-choice-pill {
        padding: 0.65rem 0.5rem;
    }

    .accent-choices-strip {
        gap: 0.5rem;
    }

    .accent-swatch {
        flex: 1 1 calc(50% - 0.5rem);

        padding: 0.5rem 0.65rem;
    }

    .template-modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   AI CREDITS INDICATOR & LO-FI DEPLETED STATE (Tactile 3D Aesthetics)
   ========================================================================== */

/* Floating Launcher Pill Badge */
.copilot-credit-badge {
    background: rgba(255, 255, 255, 0.24);

    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--radius-pill);

    color: #ffffff;
    font-size: 0.73rem;
    letter-spacing: 0.01em;

    display: inline-flex;
    align-items: center;
    gap: 3px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);

    padding: 2px 8px;

    transition: all 0.25s var(--ease-soft);
    backdrop-filter: blur(4px);
}

.copilot-launcher-pill.is-depleted {
    background: linear-gradient(180deg, #d85c4e 0%, #b83324 100%);

    border-color: rgba(150, 40, 30, 0.9);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(138, 30, 20, 0.35), 0 8px 24px rgba(184, 51, 36, 0.28);
}

.copilot-launcher-pill.is-depleted:hover {
    background: linear-gradient(180deg, #e4685a 0%, #c43828 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(138, 30, 20, 0.35), 0 12px 28px rgba(184, 51, 36, 0.34);

    transform: translateY(-2px);
}

.copilot-launcher-pill.is-depleted .copilot-sparkle-dot {
    background: #fca5a5;

    box-shadow: 0 0 8px #ef4444;
}

/* Chat Header Title & Credit Pill */
.ucp-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.ucp-credit-pill {
    background: var(--google-blue-surface);

    border: 1px solid rgba(27, 110, 243, 0.22);
    border-radius: var(--radius-pill);

    color: var(--google-blue-deep);
    font-family: var(--sanifucv-default-font);
    font-size: 0.73rem;
    /* font-weight: 600; */
    letter-spacing: 0.01em;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(27, 110, 243, 0.06);

    padding: 2px 8px;

    transition: all 0.25s var(--ease-soft);
}

.ucp-credit-sparkle {
    font-size: 0.72rem;
}

.ucp-credit-pill.is-depleted {
    background: var(--depleted-rose-surface);

    border-color: var(--depleted-rose-border);

    color: var(--depleted-rose-text);

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(192, 57, 43, 0.08);
}

.ucp-credit-pill.is-depleted:hover {
    background: var(--depleted-rose-soft);
}

/* Option Card in Audit Results */
.option-category-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.option-credit-tag {
    background: var(--google-blue-surface);

    border: 1px solid rgba(27, 110, 243, 0.2);
    border-radius: var(--radius-pill);

    color: var(--google-blue-deep);
    font-family: var(--sanifucv-title-font);
    font-size: 0.74rem;
    font-weight: 600;

    padding: 2px 8px;

    transition: all 0.25s var(--ease-soft);
}

.option-credit-tag.is-depleted {
    background: var(--depleted-rose-surface);

    border-color: var(--depleted-rose-border);

    color: var(--depleted-rose-text);
}

#btnConsultRecruiter.is-depleted {
    background: linear-gradient(180deg, #d85c4e 0%, #b83324 100%);

    border-color: rgba(150, 40, 30, 0.9);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.38), inset 0 -3px 0 rgba(120, 20, 20, 0.34), 0 4px 14px rgba(184, 51, 36, 0.25);
}

#btnConsultRecruiter.is-depleted:hover {
    background: linear-gradient(180deg, #e4685a 0%, #c43828 100%);

    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(120, 20, 20, 0.38), 0 6px 18px rgba(184, 51, 36, 0.32);

    transform: translateY(-2px);
}

/* Depleted banner in Chat bottom dock */
.ucp-depleted-banner {
    background: var(--depleted-rose-surface);

    border: 1px solid var(--depleted-rose-border);
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(185, 28, 28, 0.05);

    margin-bottom: 8px;
    padding: 9px 13px;

    animation: fadeInBanner 0.25s var(--ease-soft);

    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeInBanner {
    from {
        opacity: 0;

        transform: translateY(4px);
    }
    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.ucp-depleted-content {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
}

.ucp-depleted-icon {
    color: var(--depleted-rose);
    flex-shrink: 0;

    font-size: 1.25rem;
}

.ucp-depleted-text {
    color: #7f1d1d;
    font-size: 0.77rem;
    line-height: 1.35;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

.ucp-depleted-text strong {
    color: var(--depleted-rose-text);
    font-family: var(--sanifucv-title-font);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-pill-depleted-sm {
    background: linear-gradient(180deg, #d85c4e 0%, #b83324 100%);

    border: 1px solid rgba(150, 40, 30, 0.85);
    border-radius: var(--radius-pill);

    color: #ffffff;
    font-family: var(--sanifucv-title-font);
    font-size: 0.77rem;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(120, 20, 20, 0.3), 0 2px 6px rgba(184, 51, 36, 0.2);

    padding: 6px 13px;

    transition: transform 0.15s var(--ease-soft), box-shadow 0.15s var(--ease-soft);
    flex-shrink: 0;
}

.btn-pill-depleted-sm:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(120, 20, 20, 0.35), 0 4px 10px rgba(184, 51, 36, 0.28);

    transform: translateY(-1px);
}

.btn-pill-depleted-sm:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);

    transform: translateY(1px);
}

/* Chat container depleted state */
.state-depleted .ucp-input-capsule {
    background: var(--depleted-rose-surface);

    border-color: var(--depleted-rose-border);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(192, 57, 43, 0.05);
}

.state-depleted .ucp-textarea {
    color: var(--depleted-rose-text);

    cursor: not-allowed;
}

.state-depleted .ucp-textarea::placeholder {
    color: var(--depleted-rose);

    opacity: 0.75;
}

.state-depleted .ucp-send-btn {
    background: linear-gradient(180deg, #d85c4e 0%, #b83324 100%);

    border-color: rgba(150, 40, 30, 0.85);

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(120, 20, 20, 0.3);
}

/* ==========================================================================
   GLOBAL NAV CREDIT BADGE — TACTILE 3D DYNAMIC COLOR TIERS
   ========================================================================== */

.nav-credit-pill {
    /* Base tactile 3D button matching .btn-pill-primary */
    border-radius: var(--radius-pill);

    font-family: var(--sanifucv-title-font), var(--font-body) !important;
    font-size: var(--font-mid);
    font-weight: 500;
    letter-spacing: 0.015em;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;

    cursor: pointer;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    padding: 0 1.25rem;

    transition: all 0.2s var(--ease-sweet);
    transform-origin: center bottom;

    height: 42px;
}

/* Default / Healthy Green Tier (5-10 Credits) */
.nav-credit-pill,
.nav-credit-pill.credit-tier-healthy {
    background: linear-gradient(180deg, #34d399 0%, #10b981 42%, #059669 100%);

    border: 1px solid rgba(4, 120, 87, 0.9);

    color: #ffffff !important;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 0 rgba(4, 70, 50, 0.35),
        0 4px 10px rgba(16, 185, 129, 0.25),
        0 2px 1px rgba(4, 120, 87, 0.4);
}

.nav-credit-pill:hover,
.nav-credit-pill.credit-tier-healthy:hover {
    background: linear-gradient(180deg, #4ade80 0%, #10b981 42%, #047857 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 rgba(4, 70, 50, 0.28),
        0 10px 20px rgba(16, 185, 129, 0.32),
        0 2px 1px rgba(4, 120, 87, 0.5);

    transform: translateY(-2px);
}

.nav-credit-pill:active,
.nav-credit-pill.credit-tier-healthy:active {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(4, 70, 50, 0.2),
        0 2px 1px rgba(4, 120, 87, 0.5);

    transform: translateY(1px) scale(0.99);
}

/* Warning Warm Orange / Amber Tier (2-4 Credits) - High contrast & warm urgency */
.nav-credit-pill.credit-tier-warning {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 42%, #ea580c 100%);

    border: 1px solid rgba(194, 65, 12, 0.9);

    color: #ffffff !important;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 0 rgba(154, 52, 18, 0.38),
        0 4px 10px rgba(249, 115, 22, 0.25),
        0 2px 1px rgba(194, 65, 12, 0.4);
}

.nav-credit-pill.credit-tier-warning:hover {
    background: linear-gradient(180deg, #fdba74 0%, #fb923c 42%, #ea580c 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 rgba(154, 52, 18, 0.3),
        0 10px 20px rgba(249, 115, 22, 0.32),
        0 2px 1px rgba(194, 65, 12, 0.5);

    transform: translateY(-2px);
}

.nav-credit-pill.credit-tier-warning:active {
    background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(154, 52, 18, 0.2),
        0 2px 1px rgba(194, 65, 12, 0.5);

    transform: translateY(1px) scale(0.99);
}

/* Critical Red / Depleted Tier (0-1 Credits) */
.nav-credit-pill.credit-tier-critical,
.nav-credit-pill.is-depleted {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 42%, #dc2626 100%);

    border: 1px solid rgba(185, 28, 28, 0.9);

    color: #ffffff !important;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 0 rgba(127, 29, 29, 0.38),
        0 4px 10px rgba(239, 68, 68, 0.25),
        0 2px 1px rgba(185, 28, 28, 0.4);
}

.nav-credit-pill.credit-tier-critical:hover,
.nav-credit-pill.is-depleted:hover {
    background: linear-gradient(180deg, #fca5a5 0%, #ef4444 42%, #b91c1c 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 rgba(127, 29, 29, 0.3),
        0 10px 20px rgba(239, 68, 68, 0.32),
        0 2px 1px rgba(185, 28, 28, 0.5);

    transform: translateY(-2px);
}

.nav-credit-pill.credit-tier-critical:active,
.nav-credit-pill.is-depleted:active {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(127, 29, 29, 0.2),
        0 2px 1px rgba(185, 28, 28, 0.5);

    transform: translateY(1px) scale(0.99);
}

.nav-credit-pill .nav-credit-icon {
    color: #ffffff !important;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.nav-credit-pill .nav-credit-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.nav-credit-pill.credit-pulse {
    animation: navCreditPulse 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes navCreditPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.45);

        transform: scale(1);
    }
    40% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0), inset 0 2px 0 rgba(255, 255, 255, 0.45);

        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), inset 0 2px 0 rgba(255, 255, 255, 0.45);

        transform: scale(1);
    }
}

/* Chat Header Credit Pill 3D Tiers */
.ucp-credit-pill {
    color: #ffffff !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.08);
}

.ucp-credit-pill,
.ucp-credit-pill.credit-tier-healthy {
    background: linear-gradient(180deg, #34d399 0%, #10b981 42%, #059669 100%) !important;

    border: 1px solid rgba(4, 120, 87, 0.85) !important;
}

.ucp-credit-pill.credit-tier-warning {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 42%, #ea580c 100%) !important;

    border: 1px solid rgba(194, 65, 12, 0.85) !important;
}

.ucp-credit-pill.credit-tier-critical,
.ucp-credit-pill.is-depleted {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 42%, #dc2626 100%) !important;

    border: 1px solid rgba(185, 28, 28, 0.85) !important;
}

.ucp-credit-pill .ucp-credit-icon,
.ucp-credit-pill.is-depleted .ucp-credit-icon {
    color: #ffffff !important;
}

/* Recruiter Thinking Animated State */
.thinking-phrase {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;

    display: inline-block;

    margin-left: 0.65rem;

    animation: thinkingFade 0.3s ease;
}

@keyframes thinkingFade {
    from {
        opacity: 0;

        transform: translateY(2px);
    }
    to {
        opacity: 1;

        transform: translateY(0);
    }
}

/* Mobile Declutter for Chat Header */
@media (max-width: 480px) {
    .ucp-title-row {
        flex-wrap: nowrap;

        gap: 0.4rem;
    }

    .ucp-title {
        max-width: 130px;
    }

    .ucp-credit-pill {
        font-size: 0.68rem;
        white-space: nowrap;

        padding: 1px 6px;
    }
}

/* ==========================================================================
   WORKSPACE PREPARATION & TRANSITION OVERLAY (Tactile 3D Aesthetics)
   ========================================================================== */

.workspace-transition-overlay {
    background: rgba(15, 23, 42, 0.68);

    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10500;
    justify-content: center;
    align-items: center;

    padding: 1.25rem;

    transition: opacity 0.3s var(--ease-soft), visibility 0.3s var(--ease-soft);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.workspace-transition-card {
    background: #ffffff;

    border-radius: 24px;

    box-shadow: 0 24px 60px -12px rgba(18, 81, 180, 0.28), 0 0 0 1px rgba(27, 110, 243, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    padding: 2.2rem 2.25rem 1.85rem;

    animation: wsCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center center;

    width: 100%;
    max-width: 520px;
}

@keyframes wsCardEnter {
    from {
        opacity: 0;

        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;

        transform: scale(1) translateY(0);
    }
}

.ws-trans-hero {
    display: flex;
    align-items: center;
    gap: 1.15rem;

    margin-bottom: 1.6rem;
}

.ws-trans-spinner-wrap {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;

    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.ws-trans-spinner-ring {
    border: 3px solid rgba(27, 110, 243, 0.16);
    border-radius: 50%;

    position: absolute;
    inset: -3px;

    animation: wsRingSpin 1.15s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    border-top-color: var(--google-blue);
    border-right-color: #10b981;
}

@keyframes wsRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.ws-trans-avatar-badge {
    background: #e8f0fe;

    border-radius: 50%;

    box-shadow: 0 4px 14px rgba(27, 110, 243, 0.22);

    width: 52px;
    height: 52px;
    overflow: hidden;
}

.ws-trans-avatar-img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-trans-text {
    flex: 1;

    min-width: 0;
}

.ws-trans-title {
    color: #0f172a;
    font-family: var(--sanifucv-title-font) !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;

    margin: 0 0 0.25rem 0;
}

.ws-trans-subtitle {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;

    margin: 0;
}

.ws-trans-steps {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;

    margin-bottom: 1.5rem;
}

.ws-step-item {
    background: #f8fafc;

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

    display: flex;
    align-items: center;
    gap: 0.9rem;

    padding: 0.8rem 1rem;

    transition: all 0.25s var(--ease-soft);
}

.ws-step-item.is-done {
    background: #f0fdf4;

    border-color: rgba(34, 197, 94, 0.35);
}

.ws-step-item.is-active {
    background: #eff6ff;

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

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

.ws-step-item.is-pending {
    opacity: 0.55;
}

.ws-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.ws-step-indicator .material-symbols-outlined {
    font-size: 1.35rem;
    line-height: 1;
}

.ws-step-item.is-done .ws-step-indicator .material-symbols-outlined {
    color: #16a34a;
}

.ws-step-item.is-pending .ws-step-indicator .material-symbols-outlined {
    color: #94a3b8;
}

.ws-step-spinner {
    border: 2px solid rgba(27, 110, 243, 0.2);
    border-radius: 50%;

    animation: wsRingSpin 0.75s linear infinite;

    width: 18px;
    height: 18px;
    border-top-color: var(--google-blue);
}

.ws-step-text {
    flex: 1;

    min-width: 0;
}

.ws-step-label {
    color: #1e293b;
    font-family: var(--sanifucv-title-font);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;

    display: block;
}

.ws-step-item.is-done .ws-step-label {
    color: #166534;
}

.ws-step-item.is-active .ws-step-label {
    color: var(--google-blue-deep);
}

.ws-step-sub {
    color: #64748b;
    font-size: 0.78rem;

    display: block;

    margin-top: 2px;
}

.ws-trans-footer {
    border-top: 1px solid #f1f5f9;

    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;

    padding-top: 0.85rem;
}

.ws-trans-shield-icon {
    color: #10b981;
    font-size: 0.95rem !important;
}

/* Primary CTA Highlight when Recovery Pass is Saved */
.btn-pill-primary.pass-ready-pulse {
    animation: passReadyPulse 1.8s infinite ease-in-out;
}

@keyframes passReadyPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45), var(--shadow-3d-primary);

        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15), var(--shadow-3d-primary);

        transform: scale(1.02);
    }
}

/* ==========================================================================
   TARGETED COVER LETTER ARCHITECT & VIEWPORT DUAL-MODE TOGGLE
   ========================================================================== */
.viewport-switcher-strip {
    background: linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(240, 244, 248, 0.96) 100%);

    border-bottom: 1px solid rgba(220, 225, 232, 0.9);

    display: flex;
    align-items: center;

    padding: 0 1.25rem;

    width: 100%;
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.viewport-switcher-strip::-webkit-scrollbar {
    display: none;
}

.viewport-doc-toggle {
    background: #ffffff;

    border: 1px solid rgba(216, 225, 235, 0.9);
    border-radius: var(--radius-pill);

    display: inline-flex;
    align-items: center;
    gap: 3px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);

    padding: 3px;
}

.doc-toggle-btn {
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--font-mid, 0.85rem);
    line-height: 1.2;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    cursor: pointer;
    user-select: none;

    padding: 0.45rem 1.15rem;

    transition: all 0.2s var(--ease-sweet);
    touch-action: manipulation;
}

.doc-toggle-btn .material-symbols-outlined {
    color: inherit;
    font-size: 1.15rem;

    transition: transform 0.2s ease;
}

.doc-toggle-btn:hover:not(.active) {
    background: rgba(243, 248, 255, 0.9);

    color: var(--google-blue);
}

.doc-toggle-btn.active {
    background: linear-gradient(180deg, #4d96ff 0%, var(--google-blue) 42%, var(--google-blue-deep) 100%);

    border-color: rgba(18, 81, 180, 0.9);

    color: #ffffff !important;

    box-shadow: var(--shadow-3d-primary);
}

.doc-toggle-btn.active .material-symbols-outlined {
    color: #ffffff;
}

/* Cover Letter Stage & Formulator Showcase Card */
.cover-letter-stage {
    background: #ffffff;

    border-top: 1px solid var(--border-subtle);

    min-height: 650px;
}

.cl-formulator-card {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 2.75rem 2.25rem;
}

.cl-hero-card-inner {
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 540px;
}

.cl-hero-visual-wrap {
    margin-bottom: 1.5rem;
}

.cl-hero-visual-circle {
    background: #fdfaf6;

    border: 2px solid rgba(27, 110, 243, 0.15);
    border-radius: 50%;

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

    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.12);

    width: 130px;
    height: 130px;
    overflow: hidden;
}

.cl-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-hero-step-badge {
    background: #ebf3fe;

    border-radius: 999px;

    color: var(--google-blue, #1b6ef3);
    font-family: var(--sanifucv-default-font);
    font-size: 0.75rem;
    letter-spacing: 0.05em;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 0.85rem;
    padding: 0.3rem 0.85rem;
}

.cl-hero-step-badge .material-symbols-outlined {
    font-size: 1rem;
}

.cl-hero-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;

    margin: 0 0 0.65rem 0;
}

.cl-hero-desc {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;

    margin: 0 0 1.5rem 0;

    max-width: 480px;
}

.cl-hero-tag-cluster {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    gap: 0.6rem;

    margin-bottom: 1.65rem;
}

.cl-hero-chip {
    background: #f8fafc;

    border: 1px solid var(--border-subtle);
    border-radius: 999px;

    color: var(--text-main);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.4rem 0.9rem;

    transition: background 0.2s, transform 0.2s;
}

.cl-hero-chip:hover {
    background: #edf2f7;

    transform: translateY(-1px);
}

.cl-hero-chip .material-symbols-outlined {
    color: #16a34a;
    font-size: 1rem;
}

.cl-target-status-card {
    background: #f8fafc;

    border: 1px solid var(--border-subtle);
    border-radius: 16px;

    text-align: left;

    display: flex;
    align-items: center;
    gap: 0.85rem;

    margin-bottom: 1.85rem;
    padding: 0.9rem 1.25rem;

    width: 100%;
    box-sizing: border-box;
}

.cl-target-status-icon {
    background: #ebf3fe;

    border-radius: 10px;

    color: var(--google-blue, #1b6ef3);

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

    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.cl-target-status-icon .material-symbols-outlined {
    font-size: 1.2rem;
}

.cl-target-status-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;

    min-width: 0;
}

.cl-target-status-label {
    color: var(--text-muted);
    font-family: var(--sanifucv-title-font);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cl-target-status-value {
    color: var(--text-main);
    font-family: var(--sanifucv-default-font);
    font-size: 0.88rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 1.15rem;

    margin-bottom: 1.15rem;
}

.cl-full-group {
    margin-bottom: 1.6rem;
}

.cl-input-group label,
.cl-full-group label {
    color: var(--text-main);
    font-size: var(--font-min, 0.82rem);
    font-weight: 500;

    display: block;

    margin-bottom: 0.45rem;
}

.optional-hint {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 400;
}

.required-star {
    color: var(--google-blue);
    font-weight: 600;
}

#clJobDescription {
    background: var(--input-bg-default);

    border: 1px solid var(--input-border-default);
    border-radius: var(--radius-md, 14px);

    color: var(--text-main);
    font-family: inherit;
    font-size: var(--font-mid, 0.85rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.015em;

    outline: none;

    box-shadow: var(--input-shadow-default);

    padding: 0.95rem 1.15rem;

    transition: border-color 0.2s var(--ease-sweet), box-shadow 0.2s var(--ease-sweet), transform 0.18s var(--ease-sweet), background 0.2s var(--ease-sweet);

    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    resize: vertical;
}

#clJobDescription::placeholder {
    color: var(--text-subtle);
    font-weight: 400;
}

#clJobDescription:hover {
    background: var(--input-bg-hover);

    border-color: var(--input-border-hover);
}

#clJobDescription:focus {
    background: #ffffff;

    border-color: var(--border-focus);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-focus);

    transform: translateY(-1px);
}

.cl-formulator-footer {
    border-top: 1px solid var(--border-subtle);

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

    padding-top: 1.25rem;

    width: 100%;
}

.cl-cost-pill {
    background: #f1f4f9;

    border-radius: 9999px;

    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.82rem;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.45rem 0.95rem;
}

.cl-cost-pill .material-symbols-outlined {
    color: var(--google-blue);
    font-size: 1rem;
}

.cl-synthesize-btn {
    font-family: var(--sanifucv-default-font);

    gap: 0.55rem;
}

/* Paper Preview & Stationery Canvas */
.cl-paper-toolbar {
    background: #f8fafd;

    border-bottom: 1px solid var(--border-subtle);

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;

    padding: 0.85rem 1.75rem;
}

.cover-letter-paper {
    border-top: none;

    padding: 3rem 3.25rem;

    min-height: 720px;
    box-sizing: border-box;
}

.cl-date-line {
    color: #374151;
    font-size: 10.5pt;

    margin: 1.85rem 0 1.25rem;
}

.cl-recipient-block {
    color: #1f2937;
    font-size: 10.5pt;
    line-height: 1.4;

    margin-bottom: 1.6rem;
}

.cl-recipient-title {
    font-weight: 600;
}

.cl-recipient-company {
    color: #4b5563;
}

.cl-salutation {
    color: #111827;
    font-size: 11pt;
    font-weight: 600;

    margin-bottom: 1.35rem;
}

.cl-body p {
    color: #1f2937;
    font-size: 10.5pt;
    line-height: 1.62;
    text-align: justify;

    margin-bottom: 1.25rem;
}

.cl-inline-textarea {
    background: #ffffff;

    border: 1.5px solid var(--google-blue);
    border-radius: 10px;

    font-family: inherit;
    font-size: 10.5pt;
    line-height: 1.62;

    box-shadow: 0 0 0 4px rgba(27, 110, 243, 0.08);

    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    width: 100%;
    min-height: 320px;
    box-sizing: border-box;
    field-sizing: content;
    overflow-y: hidden;
    resize: vertical;
}

.cl-inline-textarea:focus {
    border-color: var(--google-blue-deep);

    outline: none;

    box-shadow: 0 0 0 4px rgba(27, 110, 243, 0.16);
}

.cl-signoff {
    color: #111827;

    margin-top: 2.25rem;
}

.cl-signoff-lead {
    margin-bottom: 1.6rem;
}

.cl-signoff-name {
    font-size: 11pt;
    font-weight: 700;

    margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .preview-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .preview-status-wrap {
        justify-content: space-between;

        width: 100%;
    }

    .viewport-doc-toggle {
        margin-left: auto;
    }

    .preview-actions {
        justify-content: space-between;

        width: 100%;
    }

    .preview-actions .btn-pill-secondary,
    .preview-actions .btn-pill-primary {
        font-size: 0.78rem;

        flex: 1;
        justify-content: center;

        padding: 0 0.75rem;
    }

    .cl-input-row {
        grid-template-columns: 1fr;

        gap: 0.85rem;
    }

    .cl-formulator-card {
        padding: 1.75rem 1.25rem;
    }

    .cl-formulator-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .cl-formulator-footer button {
        justify-content: center;

        width: 100%;
    }

    .viewport-switcher-strip {
        padding: 0.5rem 0.75rem;
    }

    .viewport-doc-toggle {
        width: 100%;
    }

    .doc-toggle-btn {
        font-size: 0.78rem;

        flex: 1;
        justify-content: center;

        padding: 0.45rem 0.75rem;
    }

    .cover-letter-paper {
        padding: 1.75rem 1.25rem;
    }

    .cl-paper-toolbar {
        flex-wrap: wrap;

        justify-content: center;
        gap: 0.4rem;

        padding: 0.75rem 1rem;
    }

    .cl-paper-toolbar button {
        flex: 1 1 auto;
        justify-content: center;

        min-width: 90px;
    }
}

.pulse-active-chamber {
    box-shadow: 0 0 0 0 rgba(27, 110, 243, 0.45);

    animation: chamberPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chamberPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 110, 243, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(27, 110, 243, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 110, 243, 0);
    }
}

/* Dedicated Clean Print Rules for Cover Letter vs. Resume */
@media print {
    body.printing-cover-letter #resumeRender,
    body.printing-cover-letter #clFormulatorCard,
    body.printing-cover-letter .cl-paper-toolbar,
    body.printing-cover-letter .cl-edit-area,
    body.printing-cover-letter .builder-card-header,
    body.printing-cover-letter #docSwitcherStrip,
    body.printing-cover-letter .viewport-doc-toggle,
    #docSwitcherStrip {
        display: none !important;
    }

    body.printing-cover-letter #coverLetterStage,
    body.printing-cover-letter #clPaperContainer {
        background: transparent !important;

        border: none !important;

        display: block !important;

        box-shadow: none !important;

        margin: 0 !important;
        padding: 0 !important;

        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.printing-cover-letter .cover-letter-paper {
        background: #ffffff !important;

        border: none !important;

        color: #111827 !important;

        display: block !important;

        box-shadow: none !important;

        margin: 0 auto !important;
        padding: 14mm 16mm !important;

        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        -webkit-box-decoration-break: clone !important;
        box-decoration-break: clone !important;
    }

    body.printing-cover-letter .cl-date-line {
        margin: 1.15rem 0 0.85rem !important;
    }

    body.printing-cover-letter .cl-recipient-block {
        margin-bottom: 1rem !important;
    }

    body.printing-cover-letter .cl-salutation {
        margin-bottom: 0.95rem !important;
    }

    body.printing-cover-letter .cl-body p {
        line-height: 1.55 !important;

        margin-bottom: 0.95rem !important;
    }

    body.printing-cover-letter .cl-signoff {
        page-break-inside: avoid !important;
        break-inside: avoid !important;

        margin-top: 1.35rem !important;
    }

    body.printing-cover-letter .cl-signoff-lead {
        margin-bottom: 0.95rem !important;
    }

    body:not(.printing-cover-letter) #coverLetterStage {
        display: none !important;
    }
}
.template-chip.chip-teal {
    background: #f0fdf4;

    color: #0f766e;
}

.bp-metro-header {
    display: flex;
    gap: 5px;

    margin-bottom: 4px;
}

.bp-metro-bar {
    background: var(--cv-accent, #0f766e);

    border-radius: 1px;

    width: 3px;
    height: 16px;
}

.bp-metro-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.bp-line.bp-sec-title.left.accent-line {
    border-bottom: 1.5px solid var(--cv-accent, #0f766e);

    width: 60%;
}

.bp-banner-rule {
    background: var(--cv-accent, #1e3a8a);

    margin: 3px 0;

    height: 2px;
}

.bp-line.bp-sec-title.left.shaded {
    background: #e2e8f0;

    border-left: 2px solid var(--cv-accent, #1e3a8a);

    height: 6px;
}

.bp-line.bp-title.left.light-accent {
    background: #334155;

    width: 50%;
}

.bp-line.bp-sec-title.left.spaced {
    border-bottom: 1px solid #e2e8f0;

    width: 45%;
}

/* ==========================================================================
   ISR SPATIAL PAGINATION RAYCASTER & DRAG REORDERING
   ========================================================================== */
@media screen {
    .cv-page-boundary {
        border-top: 1.5px dashed rgba(27, 110, 243, 0.45);

        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
        justify-content: center;
        align-items: center;

        pointer-events: none;

        transition: top 0.2s ease, border-color 0.2s ease;

        height: 0;
    }

    .cv-page-boundary.hidden {
        display: none !important;
    }

    .cv-page-boundary.is-overflow {
        border-top-color: rgba(245, 158, 11, 0.85);
    }

    .cv-page-boundary.is-crit {
        border-top-color: rgba(239, 68, 68, 0.85);
    }

    .cv-page-badge {
        background: #ffffff;

        border: 1px solid rgba(27, 110, 243, 0.4);
        border-radius: var(--radius-pill);

        color: var(--google-blue, #1b6ef3);

        font-family: var(--sanifucv-default-font);
        font-size: 0.8rem;
        font-weight: 400;
        letter-spacing: normal;

        display: inline-flex;
        align-items: center;
        gap: 0.3rem;

        pointer-events: auto;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

        padding: 0.2rem 0.65rem;

        transform: translateY(-50%);
    }

    .cv-page-badge .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 0.85rem;
    }

    .cv-page-boundary.is-overflow .cv-page-badge {
        border-color: rgba(245, 158, 11, 0.85);

        color: #d97706;
    }

    .cv-page-boundary.is-crit .cv-page-badge {
        border-color: rgba(239, 68, 68, 0.85);

        color: #dc2626;
    }

    /* Drag and Drop Reordering */
    .nested-entry-card.is-dragging {
        border: 1.5px dashed var(--google-blue, #1b6ef3) !important;

        opacity: 0.45 !important;

        transform: scale(0.985);
    }

    .nested-entry-card.drag-over-indicator {
        border-top: 3px solid var(--google-blue, #1b6ef3) !important;
    }

    .nested-card-drag-hint {
        cursor: grab;
        user-select: none;

        transition: color 0.15s ease, transform 0.15s ease;
    }

    .nested-card-drag-hint:hover {
        color: var(--google-blue, #1b6ef3);
    }

    .nested-card-drag-hint:active {
        cursor: grabbing;
    }
}

#sanifucvVirtualPrintProbe {
    background: #ffffff !important;

    border: none !important;

    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: -99999px !important;
    z-index: -9999 !important;

    pointer-events: none !important;

    box-shadow: none !important;

    margin: 0 !important;
    padding: 14mm 16mm !important;

    width: 816px !important;
    max-width: 816px !important;
    box-sizing: border-box !important;
    visibility: hidden !important;
}

@media print {
    #sanifucvVirtualPrintProbe,
    .cv-page-boundary,
    .cv-page-badge {
        display: none !important;
    }
}

/* ==========================================================================
   LIVE ATS READINESS VERIFICATION BANNER IN CHAT & AUTONOMOUS RUNS
   ========================================================================== */
.chat-ats-verification-banner {
    background: linear-gradient(180deg, #f3faf6 0%, #eaf6ef 100%);

    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: var(--radius-md);

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

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 3px 10px rgba(16, 185, 129, 0.08);

    margin-top: 0.75rem;
    padding: 0.75rem 0.95rem;
}

.chat-ats-verification-banner.is-standalone {
    margin-top: 0.85rem;
}

.chat-ats-verification-banner.is-warn {
    background: linear-gradient(180deg, #fffcf2 0%, #fef7e6 100%);

    border-color: rgba(245, 158, 11, 0.38);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 3px 10px rgba(245, 158, 11, 0.08);
}

.chat-ats-verification-banner.is-crit {
    background: linear-gradient(180deg, #fff5f5 0%, #fef2f2 100%);

    border-color: rgba(239, 68, 68, 0.35);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 3px 10px rgba(239, 68, 68, 0.08);
}

.chat-ats-verification-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;
}

.chat-ats-score-Orb {
    background: #ffffff;

    border: 2px solid var(--status-good, #10b981);
    border-radius: 50%;

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

    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.16);

    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.chat-ats-verification-banner.is-warn .chat-ats-score-Orb {
    border-color: var(--status-warn, #d97706);

    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.16);
}

.chat-ats-verification-banner.is-crit .chat-ats-score-Orb {
    border-color: var(--status-crit, #dc2626);

    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.16);
}

.chat-ats-score-num {
    color: var(--status-good, #10b981);
    font-family: var(--sanifucv-title-font);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
}

.chat-ats-verification-banner.is-warn .chat-ats-score-num {
    color: var(--status-warn, #d97706);
}

.chat-ats-verification-banner.is-crit .chat-ats-score-num {
    color: var(--status-crit, #dc2626);
}

.chat-ats-verification-meta {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;

    min-width: 0;
}

.chat-ats-verification-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.45rem;
}

.chat-ats-tier-title {
    color: var(--text-main);
    font-family: var(--sanifucv-title-font);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
}

.chat-ats-lift-pill {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);

    border-radius: var(--radius-pill);

    color: #ffffff;
    font-family: var(--sanifucv-title-font);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;

    padding: 0.14rem 0.52rem;
}

.chat-ats-lift-pill.is-neutral {
    background: rgba(27, 110, 243, 0.12);

    border: 1px solid rgba(27, 110, 243, 0.25);

    color: var(--google-blue);
}

.chat-ats-verification-sub {
    color: var(--text-muted);
    font-family: var(--sanifucv-default-font);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.38;
}
