/* LC Sense Widget — lc-sense.css */

/* ── Hidden override — must be first ─────────────────────────────────────── */
.lcs-widget [hidden] { display: none !important; }

/* ── Reset & base ─────────────────────────────────────────────────────────── */
.lcs-widget,
.lcs-widget * {
    box-sizing: border-box;
}

.lcs-widget {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    max-width: 680px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

/* ── Light theme ──────────────────────────────────────────────────────────── */
.lcs-widget--light {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* ── Dark theme ───────────────────────────────────────────────────────────── */
.lcs-widget--dark {
    background: rgba(15, 23, 42, 0.82);
    color: #f1f5f9;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Compact mode ─────────────────────────────────────────────────────────── */
.lcs-widget--compact {
    padding: 20px 22px;
    border-radius: 14px;
    font-size: 14px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.lcs-header {
    margin-bottom: 24px;
}

.lcs-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #16301F;
    background: #DCEB9E;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.lcs-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    color: inherit;
}

.lcs-widget--compact .lcs-title {
    font-size: 20px;
}

.lcs-sub {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

.lcs-widget--dark .lcs-sub {
    color: #94a3b8;
}

/* ── Example pills ────────────────────────────────────────────────────────── */
.lcs-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.lcs-example-pill {
    display: inline-block;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.4;
    font-family: inherit;
}

.lcs-example-pill:hover {
    border-color: var(--color-green-light);
    color: var(--color-green);
    background: #DCEB9E;
}

.lcs-widget--dark .lcs-example-pill {
    border-color: rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

.lcs-widget--dark .lcs-example-pill:hover {
    border-color: #60a5fa;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.15);
}

/* ── Input wrap ───────────────────────────────────────────────────────────── */
.lcs-input-wrap {
    position: relative;
}

.lcs-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px 32px 16px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.lcs-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.lcs-textarea::placeholder {
    color: #94a3b8;
}

.lcs-widget--dark .lcs-textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

.lcs-widget--dark .lcs-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

.lcs-char-count {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
    line-height: 1;
}

/* ── Controls row ─────────────────────────────────────────────────────────── */
.lcs-controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

/* Mic button */
.lcs-mic-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    padding: 0;
    font-family: inherit;
}

.lcs-mic-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.lcs-mic-btn.lcs-mic--active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
    animation: lcsPulse 1.2s ease-in-out infinite;
}

.lcs-widget--dark .lcs-mic-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #94a3b8;
}

.lcs-widget--dark .lcs-mic-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
}

/* Submit button */
.lcs-submit-btn {
    flex: 1;
    
}

.lcs-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */
@keyframes lcsSpin {
    to { transform: rotate(360deg); }
}

.lcs-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lcsSpin 0.7s linear infinite;
    flex-shrink: 0;
}

.lcs-spinner--sm {
    width: 16px;
    height: 16px;
    border-color: #e2e8f0;
    border-top-color: #2563eb;
}

/* ── Recording bar ────────────────────────────────────────────────────────── */
.lcs-recording-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0f4f8;
    margin-top: 12px;
}

.lcs-widget--dark .lcs-recording-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Waveform */
.lcs-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}

.lcs-waveform span {
    display: block;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
    opacity: 0.6;
    animation: lcsWave 1.2s ease-in-out infinite;
}

.lcs-waveform span:nth-child(1)  { height: 8px;  animation-delay: 0.00s; }
.lcs-waveform span:nth-child(2)  { height: 16px; animation-delay: 0.10s; }
.lcs-waveform span:nth-child(3)  { height: 24px; animation-delay: 0.20s; }
.lcs-waveform span:nth-child(4)  { height: 32px; animation-delay: 0.30s; }
.lcs-waveform span:nth-child(5)  { height: 20px; animation-delay: 0.40s; }
.lcs-waveform span:nth-child(6)  { height: 28px; animation-delay: 0.50s; }
.lcs-waveform span:nth-child(7)  { height: 16px; animation-delay: 0.60s; }
.lcs-waveform span:nth-child(8)  { height: 24px; animation-delay: 0.70s; }
.lcs-waveform span:nth-child(9)  { height: 12px; animation-delay: 0.80s; }
.lcs-waveform span:nth-child(10) { height: 8px;  animation-delay: 0.90s; }

@keyframes lcsWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50%       { transform: scaleY(1.2); opacity: 1; }
}

.lcs-rec-timer {
    color: #ef4444;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    min-width: 32px;
}

.lcs-stop-btn {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.lcs-stop-btn:hover {
    background: #fee2e2;
}

/* ── Transcribing bar ─────────────────────────────────────────────────────── */
.lcs-transcribing-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #64748b;
    font-size: 13.5px;
    margin-top: 8px;
}

.lcs-widget--dark .lcs-transcribing-bar {
    color: #94a3b8;
}

/* ── Writing trigger ──────────────────────────────────────────────────────── */
.lcs-writing-trigger {
    margin-top: 8px;
}

.lcs-writing-trigger-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s, color 0.15s;
}

.lcs-writing-trigger-btn:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.lcs-widget--dark .lcs-writing-trigger-btn {
    color: #60a5fa;
}

/* ── Result stage ─────────────────────────────────────────────────────────── */
.lcs-result-stage {
    margin-top: 16px;
}

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

.lcs-result-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 20px 10px 20px;
    animation: lcsFadeInUp 0.25s ease-out forwards;
}

.lcs-result-card--service {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.lcs-result-card--qna {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.lcs-result-card--not-offered {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ── Not-offered service tiles ────────────────────────────────────────────── */
.lcs-not-offered-lead {
    font-size: 13px;
    color: #64748b;
    margin: 14px 0 10px;
}
.lcs-widget--dark .lcs-not-offered-lead {
    color: rgba(255,255,255,0.5);
}
.lcs-not-offered-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.lcs-not-offered-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    background: #f5fad8;
    border: 1.5px solid #bcda4e;
    transition: background 0.15s, transform 0.12s;
}
.lcs-not-offered-tile:hover {
    background: #ecf5c0;
    transform: translateY(-2px);
}
.lcs-not-offered-tile--alt {
    background: #f0f8ea;
    border-color: #b0cc60;
}
.lcs-not-offered-tile--alt:hover {
    background: #e4f2d8;
}
.lcs-not-offered-tile-label {
    font-size: 13px;
    font-weight: 600;
    color: #16301F;
    line-height: 1.3;
}
.lcs-widget--dark .lcs-not-offered-tile {
    background: rgba(188,218,78,0.08);
    border-color: rgba(188,218,78,0.25);
}
.lcs-widget--dark .lcs-not-offered-tile:hover {
    background: rgba(188,218,78,0.15);
}
.lcs-widget--dark .lcs-not-offered-tile--alt {
    background: rgba(188,218,78,0.05);
}
.lcs-widget--dark .lcs-not-offered-tile--alt:hover {
    background: rgba(188,218,78,0.12);
}
.lcs-widget--dark .lcs-not-offered-tile-label {
    color: #fff;
}

.lcs-result-card--out-of-scope {
    background: #fff7ed;
    border-color: #fed7aa;
}

.lcs-result-card--clarification {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.lcs-result-card--fallback {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.lcs-result-state-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lcs-result-card--service .lcs-result-state-label       { color: #0369a1; }
.lcs-result-card--qna .lcs-result-state-label           { color: #15803d; }
.lcs-result-card--not-offered .lcs-result-state-label   { color: #475569; }
.lcs-result-card--out-of-scope .lcs-result-state-label  { color: #c2410c; }
.lcs-result-card--clarification .lcs-result-state-label { color: #7c3aed; }

.lcs-result-topic-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.lcs-result-summary {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 4px;
}

.lcs-svc-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.lcs-svc-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--color-green-light);
    color: var(--color-green);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px 3px;
    border-radius: 20px;
    text-align: center;
    line-height: 16px;
    flex: 1;
}

.lcs-result-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.lcs-result-link:hover {
    color: #1d4ed8;
}

.lcs-widget--dark .lcs-result-summary {
    color: #cbd5e1;
}

.lcs-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 15px;
    align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.lcs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
    line-height: 1.2;
    text-decoration: none;
}

.lcs-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.lcs-btn--primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}

.lcs-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.lcs-btn--secondary {
    background: transparent;
    border: 1.5px solid #2563eb;
    color: #2563eb;
}

.lcs-btn--secondary:hover:not(:disabled) {
    background: #eff6ff;
}

.lcs-btn--ghost {
    background: transparent;
    border: 1.5px solid transparent;
    color: #64748b;
}

.lcs-btn--ghost:hover:not(:disabled) {
    color: #475569;
    background: #f1f5f9;
}

.lcs-back-btn {
    background: transparent;
    border: none;
    padding: 6px 0;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
    margin-top: 20px;
}

.lcs-back-btn:hover { color: #334155; }

.lcs-widget--dark .lcs-back-btn { color: #94a3b8; }
.lcs-widget--dark .lcs-back-btn:hover { color: #cbd5e1; }

/* Clarification textarea */
.lcs-clarify-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-top: 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    color: #0f172a;
}

.lcs-clarify-textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* ── Writing panel ────────────────────────────────────────────────────────── */
.lcs-writing-panel {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-top: 16px;
    background: #f8fafc;
}

.lcs-widget--dark .lcs-writing-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.lcs-writing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lcs-writing-label {
    font-weight: 700;
    font-size: 13px;
    color: #334155;
}

.lcs-widget--dark .lcs-writing-label {
    color: #cbd5e1;
}

.lcs-writing-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.lcs-writing-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.lcs-writing-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    padding: 8px 0;
}

.lcs-writing-diff {
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    color: #334155;
    max-height: 240px;
    overflow-y: auto;
}

.lcs-widget--dark .lcs-writing-diff {
    color: #cbd5e1;
}

.lcs-writing-flag {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #92400e;
    margin-top: 10px;
    line-height: 1.5;
}

.lcs-writing-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ── Disclaimer ───────────────────────────────────────────────────────────── */
.lcs-disclaimer {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ── Dark theme deep overrides ────────────────────────────────────────────── */
.lcs-widget--dark .lcs-result-card--service {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.lcs-widget--dark .lcs-result-card--qna {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
}

.lcs-widget--dark .lcs-result-card--not-offered {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.3);
}

.lcs-widget--dark .lcs-result-card--out-of-scope {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.3);
}

.lcs-widget--dark .lcs-result-card--clarification {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.lcs-widget--dark .lcs-result-topic-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
}

.lcs-widget--dark .lcs-btn--secondary {
    border-color: #60a5fa;
    color: #60a5fa;
}

.lcs-widget--dark .lcs-btn--secondary:hover {
    background: rgba(37, 99, 235, 0.15);
}

.lcs-widget--dark .lcs-btn--ghost {
    color: #94a3b8;
}

.lcs-widget--dark .lcs-clarify-textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

/* ── Pulse animation for mic active ───────────────────────────────────────── */
@keyframes lcsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .lcs-widget {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .lcs-widget--compact {
        padding: 16px;
    }

    .lcs-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .lcs-mic-btn {
        width: 100%;
        border-radius: 12px;
        height: 48px;
    }

    .lcs-submit-btn {
        flex: unset;
        width: 100%;
    }

    .lcs-result-actions {
        flex-direction: column;
    }

    .lcs-btn,
    .lcs-submit-btn {
        justify-content: center;
    }

    .lcs-title {
        font-size: 22px;
    }
}

/* ── QNA link cards ───────────────────────────────────────────────────────── */
/* ── Service routing action buttons ──────────────────────────────────────── */
.lcs-svc-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 18px;
}

.lcs-svc-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    border: 1.5px solid transparent;
}

.lcs-svc-btn-icon {
    flex-shrink: 0;
}

.lcs-svc-btn--read {
    background: #fff;
    border-color: #bae6fd;
    color: #0369a1;
}

.lcs-svc-btn--read:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    transform: translateY(-1px);
    color: #0284c7;
}

.lcs-svc-btn--book {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.lcs-svc-btn--book:hover {
    background: #166534;
    border-color: #166534;
    transform: translateY(-1px);
    color: #fff;
}

.lcs-widget--dark .lcs-svc-btn--read {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

.lcs-widget--dark .lcs-svc-btn--read:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
}

.lcs-widget--dark .lcs-svc-btn--book {
    background: #16a34a;
    border-color: #16a34a;
}

@media (max-width: 400px) {
    .lcs-svc-actions { flex-direction: column; }
}

.lcs-link-cards {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
    margin-bottom: 4px;
    align-items: flex-start;
}

.lcs-link-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    color: #15803d;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    line-height: 1.3;
}

.lcs-link-card:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateY(-1px);
    color: #166534;
}

.lcs-link-card-icon {
    flex-shrink: 0;
    opacity: 0.65;
}

.lcs-link-card-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lcs-link-card-arrow {
    flex-shrink: 0;
    color: #86efac;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.12s;
}

.lcs-link-card:hover .lcs-link-card-arrow {
    transform: translateX(3px);
    color: #4ade80;
}

.lcs-widget--dark .lcs-link-card {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
    color: #86efac;
}

.lcs-widget--dark .lcs-link-card:hover {
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(22, 163, 74, 0.5);
    color: #a7f3d0;
}

/* ── Floating widget ──────────────────────────────────────────────────────── */

/* Must honour [hidden] outside .lcs-widget scope */
#lcs-float-panel[hidden] { display: none !important; }

#lcs-float-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Trigger button — horizontal pill (v1a Click Point) ─────────────────── */
#lcs-float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0c2814;
    border: 1px solid rgba(186,209,66,.55);
    border-radius: 999px;
    padding: 9px 18px 9px 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.4);
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
    white-space: nowrap;
    user-select: none;
}

#lcs-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,.5);
}

.lcs-float-btn-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lcs-float-btn-label .lcs-hero-di-tag {
    font-size: 9px;
    display: flex;
    align-items: center;
}

.lcs-float-btn-label .lcs-hero-di-line {
    width: 15px;
    margin-right: 5px;
}

.lcs-float-btn-sense {
    color: #bad142;
}

/* ── Click Point dot ─────────────────────────────────────────────────────── */
.lcs-float-cp {
    position: relative;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.lcs-float-cp-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1.5px solid #bad142;
    animation: lcsRing 2.6s ease-out infinite;
}

.lcs-float-cp-ring--d {
    animation-delay: .9s;
}

.lcs-float-cp-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #bad142;
    display: grid;
    place-items: center;
    animation: lcsDot 2.6s ease-in-out infinite;
    z-index: 1;
}

.lcs-float-cp-core {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #0c2814;
    display: block;
}

@keyframes lcsRing {
    0%   { transform: scale(1);   opacity: 0.75; }
    75%  { transform: scale(2.3); opacity: 0;    }
    100% { transform: scale(2.3); opacity: 0;    }
}

@keyframes lcsDot {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(0.88); }
}

/* ── Float panel ────────────────────────────────────────────────────────── */
#lcs-float-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 99999;
    width: 390px;
    max-height: 92vh;
    max-height: 92svh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 44px rgba(15,23,42,0.15), 0 2px 10px rgba(15,23,42,0.07);
    overflow: hidden;
    animation: lcsPanelIn 0.2s ease-out;
}

@keyframes lcsPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Panel header */
.lcs-float-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
    background: #fff;
}

.lcs-float-panel-title {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    line-height: 1;
}

.lcs-float-dot-wrap {
    border: 1px solid;
    padding: 3px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lcs-float-dot {
    background: #BAD142;
    height: 5px;
    width: 5px;
    display: inline-block;
    border-radius: 20px;
}

.lcs-float-panel-title-span {
    color: #BAD142;
}

.lcs-float-close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    font-family: inherit;
}

.lcs-float-close-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Widget inside panel — strip outer card chrome */
#lcs-float-panel .lcs-widget {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    overflow-y: auto;
    flex: 1;
    padding: 10px 20px 20px;
}

#lcs-float-panel .lcs-title {
    font-size: 22px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@keyframes lcsPanelInFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 768px) {
    #lcs-float-wrap {
        bottom: 16px;
        right: 10px;
    }

    #lcs-float-panel {
        top: 50%;
        bottom: auto;
        right: 10px;
        transform: translateY(-50%);
        width: calc(100vw - 20px);
        max-height: 97vh;
        max-height: 97svh;
        border-radius: 18px;
        animation: lcsPanelInFade 0.2s ease-out;
    }
}
