/* ═══════════════════════════════════════════════════════════
   UDB 2030 — AI Coach Chat UI  (palette blu HEINEKEN)
   ═══════════════════════════════════════════════════════════ */

.cl-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow: hidden;
    background: #f5f8ff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(10,26,58,0.08);
    background-image:
        radial-gradient(ellipse at 70% 10%, rgba(24,95,165,0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(15,154,114,0.04) 0%, transparent 50%);
}

/* ─── MESSAGGI ───────────────────────────────────────────── */
.cl-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(24,95,165,0.18) transparent;
}

.cl-messages::-webkit-scrollbar { width: 5px; }
.cl-messages::-webkit-scrollbar-thumb { background: rgba(24,95,165,0.2); border-radius: 4px; }
.cl-messages::-webkit-scrollbar-track { background: transparent; }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.cl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    animation: cl-fadeInUp 0.45s ease both;
}

@keyframes cl-fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cl-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(24,95,165,0.2));
    animation: cl-iconFloat 3.5s ease-in-out infinite;
}

@keyframes cl-iconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.cl-empty-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0a1a3a;
    margin: 0 0 0.45rem;
    letter-spacing: -0.02em;
}

.cl-empty-sub {
    font-size: 0.9rem;
    color: #6b7a99;
    margin: 0 0 2rem;
    line-height: 1.6;
    max-width: 420px;
}

.cl-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.cl-suggestion {
    background: #ffffff;
    border: 1px solid #dce8f5;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.83rem;
    color: #1a2a4a;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    line-height: 1.5;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(10,26,58,0.06);
    position: relative;
    overflow: hidden;
}

.cl-suggestion::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #185fa5, #0f9a72);
    opacity: 0;
    transition: opacity 0.18s;
}

.cl-suggestion:hover {
    background: #eef5ff;
    border-color: #a8c8e8;
    color: #185fa5;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24,95,165,0.12);
}

.cl-suggestion:hover::before { opacity: 1; }

/* ─── TURNS ──────────────────────────────────────────────── */
.cl-turn {
    max-width: 820px;
    margin: 0 auto 1.6rem;
    width: 100%;
    animation: cl-msgSlideIn 0.28s ease both;
}

@keyframes cl-msgSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cl-turn-user { display: flex; justify-content: flex-end; }

.cl-user-msg {
    background: linear-gradient(135deg, #1a2a50 0%, #0a1a3a 100%);
    color: #e8f0ff;
    border-radius: 18px 18px 4px 18px;
    padding: 0.7rem 1.1rem;
    max-width: 72%;
    font-size: 0.93rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 2px 10px rgba(10,26,58,0.18);
}

.cl-turn-ai { display: flex; gap: 0.75rem; align-items: flex-start; }

.cl-ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #185fa5 0%, #0f9a72 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
    margin-top: 0.05rem;
    box-shadow: 0 2px 10px rgba(24,95,165,0.3), 0 0 0 2px rgba(24,95,165,0.1);
}

.cl-ai-content { flex: 1; min-width: 0; }

/* ─── LOADING ────────────────────────────────────────────── */
.cl-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #8a9ab8;
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.cl-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #185fa5;
    animation: cl-dpulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes cl-dpulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

/* ─── RISPOSTA ───────────────────────────────────────────── */
.cl-response {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #0d1a36;
}

.cl-response p          { margin: 0.45rem 0; }
.cl-response h1,
.cl-response h2         { font-size: 1.08rem; font-weight: 700; margin: 1.1rem 0 0.3rem; color: #0a1a3a; }
.cl-response h3,
.cl-response h4         { font-size: 0.97rem; font-weight: 600; margin: 0.85rem 0 0.22rem; color: #1a2a4a; }
.cl-response ul,
.cl-response ol         { padding-left: 1.3rem; margin: 0.3rem 0; }
.cl-response li         { margin: 0.18rem 0; }
.cl-response strong     { font-weight: 600; color: #0a1a3a; }
.cl-response em         { color: #3a5080; }
.cl-response code       { font-family: Consolas, monospace; background: #eef2f8;
                          padding: 0.1em 0.35em; border-radius: 4px;
                          font-size: 0.86em; color: #2a3a6a; }
.cl-response pre        { background: #1a1a2e; color: #e0e8ff; border-radius: 9px;
                          padding: 1rem 1.1rem; overflow-x: auto; margin: 0.55rem 0; }
.cl-response pre code   { background: none; padding: 0; color: inherit; }
.cl-response blockquote { border-left: 3px solid #185fa5; margin: 0.45rem 0;
                          padding: 0.2rem 0.75rem; color: #4a5a7a; }
.cl-response table      { border-collapse: collapse; width: 100%; margin: 0.55rem 0; font-size: 0.87rem; }
.cl-response th,
.cl-response td         { border: 1px solid #dde8f4; padding: 0.38rem 0.6rem; }
.cl-response th         { background: #f0f5fb; font-weight: 600; color: #1a2a4a; }
.cl-response a          { color: #185fa5; text-decoration: underline; text-underline-offset: 2px; }

/* ─── FONTI ──────────────────────────────────────────────── */
.cl-sources {
    margin-top: 0.85rem;
    border: 1px solid #d8e8f5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.18s;
}

.cl-sources:hover { box-shadow: 0 2px 10px rgba(24,95,165,0.07); }

.cl-sources-hdr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.42rem 0.8rem;
    background: linear-gradient(90deg, #f0f5fc 0%, #f8fbff 100%);
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    color: #4a5a7a;
    font-weight: 500;
    text-align: left;
    font-family: inherit;
    transition: background 0.14s;
}

.cl-sources-hdr:hover { background: linear-gradient(90deg, #e4eef8 0%, #eef5ff 100%); }

.cl-chevron { margin-left: auto; font-size: 0.6rem; opacity: 0.55; }

.cl-sources-list {
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    border-top: 1px solid #e8eef8;
}

.cl-source-item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #e8f0f8;
    font-size: 0.8rem;
    color: #4a5a7a;
    transition: all 0.15s ease;
}

.cl-source-item:hover { background: #eef5ff; border-color: #a8cce8; transform: translateX(2px); }

.cl-source-idx {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #185fa5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.cl-source-body { flex: 1; min-width: 0; font-size: 0.79rem; }

/* ─── INPUT AREA ─────────────────────────────────────────── */
.cl-input-wrap {
    padding: 0.6rem 1.25rem 0.8rem;
    background: linear-gradient(0deg, rgba(240,247,255,0.95) 0%, rgba(245,248,255,0.7) 100%);
    border-top: 1px solid rgba(24,95,165,0.1);
    flex-shrink: 0;
}

.cl-input-box {
    display: flex;
    align-items: flex-end;
    background: rgba(255,255,255,0.96);
    border: 1.5px solid #ccdaee;
    border-radius: 14px;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
    box-shadow: 0 2px 12px rgba(24,95,165,0.08);
    transition: border-color 0.18s, box-shadow 0.18s;
    gap: 0.4rem;
}

.cl-input-box:focus-within {
    border-color: #185fa5;
    box-shadow: 0 3px 18px rgba(24,95,165,0.14), 0 0 0 3px rgba(24,95,165,0.07);
    background: #ffffff;
}

.cl-textarea {
    flex: 1;
    border: none !important;
    outline: none !important;
    resize: none;
    background: transparent !important;
    font-size: 0.93rem;
    color: #1a1a2e !important;
    line-height: 1.55;
    min-height: 24px;
    max-height: 140px;
    overflow-y: auto;
    font-family: inherit;
    padding: 0;
    box-shadow: none !important;
}

.cl-textarea::placeholder { color: #a0b0c8; }
.cl-textarea:disabled     { opacity: 0.45; }

.cl-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #185fa5 0%, #1270b8 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(24,95,165,0.3);
}

.cl-send:hover:not(:disabled):not(.cl-send-off) {
    background: linear-gradient(135deg, #0f4a8a 0%, #185fa5 100%);
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 4px 14px rgba(24,95,165,0.4);
}

.cl-send-off {
    background: linear-gradient(135deg, #b8cfe8 0%, #c8daf0 100%) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.cl-spin {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cl-spin 0.7s linear infinite;
    display: inline-block;
}

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

.cl-input-hint {
    text-align: center;
    font-size: 0.69rem;
    color: #a0b4cc;
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   UDB 2030 — Sales Simulator UI  (palette amber/verde)
   ═══════════════════════════════════════════════════════════ */

.sim-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow: hidden;
    background: #fdf8f0;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(30,15,0,0.08);
    background-image:
        radial-gradient(ellipse at 70% 10%, rgba(201,112,10,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(0,132,61,0.04) 0%, transparent 50%);
}

.sim-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,112,10,0.2) transparent;
}

.sim-messages::-webkit-scrollbar { width: 5px; }
.sim-messages::-webkit-scrollbar-thumb { background: rgba(201,112,10,0.22); border-radius: 4px; }

.sim-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    animation: sim-fadeIn 0.45s ease both;
}

@keyframes sim-fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sim-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: sim-iconFloat 3.5s ease-in-out infinite;
}

@keyframes sim-iconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.sim-empty-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #2a1200;
    margin: 0 0 0.45rem;
    letter-spacing: -0.02em;
}

.sim-empty-sub {
    font-size: 0.9rem;
    color: #7a5a30;
    margin: 0 0 2rem;
    line-height: 1.6;
    max-width: 440px;
}

.sim-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.sim-suggestion {
    background: #ffffff;
    border: 1px solid #e8d8b8;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.83rem;
    color: #3a2010;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    line-height: 1.5;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(30,15,0,0.06);
    position: relative;
    overflow: hidden;
}

.sim-suggestion::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #C9700A, #00843D);
    opacity: 0;
    transition: opacity 0.18s;
}

.sim-suggestion:hover {
    background: #fff8ee;
    border-color: #d4a060;
    color: #C9700A;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201,112,10,0.14);
}

.sim-suggestion:hover::before { opacity: 1; }

.sim-turn {
    max-width: 820px;
    margin: 0 auto 1.6rem;
    width: 100%;
    animation: sim-msgIn 0.28s ease both;
}

@keyframes sim-msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sim-turn-user { display: flex; justify-content: flex-end; }

.sim-user-bubble { max-width: 72%; display: flex; flex-direction: column; align-items: flex-end; gap: 0.22rem; }

.sim-role-label {
    font-size: 0.69rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
    padding: 0 0.2rem;
}

.sim-turn-user .sim-role-label { color: #00843D; }
.sim-turn-ai  .sim-role-label  { color: #C9700A; }

.sim-user-msg {
    background: linear-gradient(135deg, #00843D 0%, #005a2a 100%);
    color: #efffef;
    border-radius: 18px 18px 4px 18px;
    padding: 0.7rem 1.1rem;
    font-size: 0.93rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 2px 10px rgba(0,100,40,0.2);
}

.sim-turn-ai { display: flex; gap: 0.75rem; align-items: flex-start; }

.sim-ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9700A 0%, #a05508 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
    margin-top: 1.2rem;
    box-shadow: 0 2px 10px rgba(201,112,10,0.3);
}

.sim-ai-content { flex: 1; min-width: 0; }

.sim-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #b88a50;
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.sim-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C9700A;
    animation: sim-dpulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sim-dpulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

.sim-response {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #2a1500;
    background: #ffffff;
    border: 1px solid #e8d8b8;
    border-radius: 4px 18px 18px 18px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(30,15,0,0.07);
}

.sim-response p      { margin: 0.45rem 0; }
.sim-response strong { font-weight: 600; color: #2a1200; }
.sim-response ul,
.sim-response ol     { padding-left: 1.3rem; margin: 0.3rem 0; }
.sim-response li     { margin: 0.18rem 0; }

.sim-input-wrap {
    padding: 0.6rem 1.25rem 0.8rem;
    background: linear-gradient(0deg, rgba(255,248,238,0.95) 0%, rgba(253,248,240,0.7) 100%);
    border-top: 1px solid rgba(201,112,10,0.15);
    flex-shrink: 0;
}

.sim-input-box {
    display: flex;
    align-items: flex-end;
    background: rgba(255,255,255,0.96);
    border: 1.5px solid #ddc898;
    border-radius: 14px;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
    box-shadow: 0 2px 12px rgba(201,112,10,0.08);
    transition: border-color 0.18s, box-shadow 0.18s;
    gap: 0.4rem;
}

.sim-input-box:focus-within {
    border-color: #C9700A;
    box-shadow: 0 3px 18px rgba(201,112,10,0.14), 0 0 0 3px rgba(201,112,10,0.07);
    background: #ffffff;
}

.sim-textarea {
    flex: 1;
    border: none !important;
    outline: none !important;
    resize: none;
    background: transparent !important;
    font-size: 0.93rem;
    color: #2a1500 !important;
    line-height: 1.55;
    min-height: 24px;
    max-height: 140px;
    overflow-y: auto;
    font-family: inherit;
    padding: 0;
    box-shadow: none !important;
}

.sim-textarea::placeholder { color: #c8a870; }
.sim-textarea:disabled     { opacity: 0.45; }

.sim-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #C9700A 0%, #a05508 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(201,112,10,0.35);
}

.sim-send:hover:not(:disabled):not(.sim-send-off) {
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 4px 14px rgba(201,112,10,0.45);
}

.sim-send-off {
    background: linear-gradient(135deg, #e8c898 0%, #ddb870 100%) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.sim-spin {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: sim-spin 0.7s linear infinite;
    display: inline-block;
}

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

.sim-input-hint {
    text-align: center;
    font-size: 0.69rem;
    color: #c0a070;
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

@media (max-width: 700px) {
    .cl-suggestions, .sim-suggestions { grid-template-columns: 1fr; }
    .cl-user-msg, .sim-user-msg       { max-width: 85%; }
    .cl-layout, .sim-layout           { height: calc(100vh - 80px); }
}

/* ── Source popup ─────────────────────────────────────────── */

/* Badge [N] nel testo della risposta */
.cl-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--rz-primary, #2874a6);
    color: white;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    vertical-align: super;
    line-height: 1;
    margin: 0 1px;
    transition: opacity 0.15s, transform 0.1s;
    user-select: none;
}

.cl-ref:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Tooltip vicino al badge [N] */
.cl-ref-tooltip {
    position: absolute;
    z-index: 9999;
    width: 320px;
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-color, #d5d8dc);
    border-left: 3px solid var(--rz-primary, #2874a6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 0.78rem;
    overflow: hidden;
    animation: tt-pop 0.12s ease;
}

@keyframes tt-pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.cl-ref-tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.75rem;
    background: var(--rz-primary, #2874a6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.5rem;
}

.cl-ref-tt-header span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-ref-tt-close {
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.75;
    flex-shrink: 0;
}

.cl-ref-tt-close:hover { opacity: 1; }

.cl-ref-tt-body {
    padding: 0.65rem 0.8rem;
    color: var(--rz-text-color, #333);
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 180px;
    overflow-y: auto;
}

.cl-source-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--rz-primary, #2874a6);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cl-source-link:hover { opacity: 0.75; }

.cl-source-eye {
    font-size: 0.75rem;
    opacity: 0.7;
}

.cl-excerpt-popup {
    margin-top: 0.5rem;
    background: var(--rz-base-background-color, #f8f9fa);
    border: 1px solid var(--rz-border-color, #d5d8dc);
    border-left: 3px solid var(--rz-primary, #2874a6);
    border-radius: 6px;
    font-size: 0.78rem;
    overflow: hidden;
    animation: excerpt-fade-in 0.15s ease;
}

@keyframes excerpt-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cl-excerpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.7rem;
    background: var(--rz-primary, #2874a6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.cl-excerpt-close {
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    opacity: 0.8;
}

.cl-excerpt-close:hover { opacity: 1; }

.cl-excerpt-text {
    padding: 0.6rem 0.8rem;
    color: var(--rz-text-color, #333);
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}
