/**
 * LandLens Legal Opinion Report Styles
 * Flagship report page styling
 */

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */

.ll-report-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Custom pointer for all clickable elements in report */
.ll-report-page a,
.ll-report-page button,
.ll-report-page summary,
.ll-report-page [onclick],
.ll-report-page [style*="cursor:pointer"],
.ll-report-page .ll-doc-link {
    cursor: var(--ll-cur-pointer, pointer);
}

/* ========================================
   SECTION NAVIGATION
   ======================================== */

.ll-section-nav {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ll-section-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.ll-section-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.375rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.ll-section-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    overflow: hidden;
    max-width: 38px;
}

.ll-section-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ll-section-nav-item span {
    opacity: 0;
    max-width: 0;
    transition: all 0.25s ease;
}

.ll-section-nav:hover .ll-section-nav-item {
    max-width: 160px;
}

.ll-section-nav:hover .ll-section-nav-item span {
    opacity: 1;
    max-width: 120px;
}

.ll-section-nav-item:hover {
    background: #f3f4f6;
    color: #1a1a1c;
}

.ll-section-nav-item.active {
    background: #fff7ed;
    color: #ea580c;
}

.ll-section-nav-item.active svg {
    color: #ea580c;
}

@media (max-width: 1400px) {
    .ll-section-nav {
        right: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .ll-section-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
    }

    .ll-section-nav-inner {
        flex-direction: row;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0.25rem 0.5rem;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        justify-content: space-between;
    }

    .ll-section-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .ll-section-nav-item {
        flex-direction: column;
        gap: 0.125rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.5625rem;
        max-width: none;
        flex-shrink: 0;
    }

    .ll-section-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .ll-section-nav-item span {
        opacity: 1;
        max-width: none;
    }

    .ll-section-nav:hover .ll-section-nav-item {
        max-width: none;
    }

    .ll-report-page {
        padding-bottom: 4rem;
    }
}

@media (max-width: 640px) {
    .ll-section-nav-item {
        padding: 0.25rem 0.375rem;
        font-size: 0.5rem;
    }

    .ll-section-nav-item svg {
        width: 16px;
        height: 16px;
    }
}

@media print {
    .ll-section-nav {
        display: none !important;
    }
}

/* ========================================
   FLOATING DOWNLOAD FAB
   ======================================== */

.ll-download-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.ll-download-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ll-download-fab:hover {
    box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45);
    transform: translateY(-2px);
}

.ll-download-fab:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .ll-download-fab {
        bottom: 4.5rem;
        right: 0.75rem;
        padding: 0.625rem;
        border-radius: 50%;
    }

    .ll-download-fab span {
        display: none;
    }
}

@media print {
    .ll-download-fab {
        display: none !important;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.ll-report-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.ll-report-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ll-report-hero-glow {
    display: none;
}

.ll-report-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ll-report-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.ll-report-hero-left {
    flex: 1;
}

.ll-report-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.ll-report-back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ll-report-back-link svg {
    width: 16px;
    height: 16px;
}

.ll-report-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ll-report-hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.ll-report-hero-subtitle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ll-report-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ll-report-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.ll-report-badge svg {
    width: 14px;
    height: 14px;
}

.ll-report-badge.urban {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.ll-report-badge.rural {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.ll-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.ll-report-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ll-report-meta-item svg {
    width: 14px;
    height: 14px;
}

.ll-report-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

/* Risk Gauge */
.ll-risk-gauge {
    position: relative;
    width: 140px;
    height: 140px;
}

.ll-risk-gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ll-risk-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.ll-risk-gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out, stroke 0.3s ease;
}

.ll-risk-gauge-fill.safe { stroke: #22c55e; }
.ll-risk-gauge-fill.caution { stroke: #f59e0b; }
.ll-risk-gauge-fill.high_risk { stroke: #ef4444; }
.ll-risk-gauge-fill.critical { stroke: #b91c1c; }

.ll-risk-gauge-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ll-risk-gauge-score {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ll-risk-gauge-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.ll-risk-gauge-label.safe { color: #22c55e; }
.ll-risk-gauge-label.caution { color: #f59e0b; }
.ll-risk-gauge-label.high_risk { color: #ef4444; }
.ll-risk-gauge-label.critical { color: #f87171; }

.ll-report-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6725 0%, #ff8a5c 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ll-report-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.35);
}

.ll-report-download-btn svg {
    width: 18px;
    height: 18px;
}

.ll-simple-report-btn.ll-report-download-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
}
.ll-simple-report-btn.ll-report-download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ── Hero actions ────────────────────────────────────────────────────────────
   Three controls of two kinds. Quick Summary changes what you are looking at on
   this page; Download and Share take the report off it. Grouping them that way
   is the structure: the view control gets its own full-width row, the two output
   actions share the row beneath it.

   The block is a fixed width locked to the risk dial's column, so the right side
   of the hero reads as one object rather than three pills of whatever width
   their labels happened to need. The same one-over-two grid holds at every
   screen size, which is what stops the third button orphaning onto its own line
   on a narrow screen.
   ------------------------------------------------------------------------- */
.ll-report-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    /* Wide enough for two labelled buttons with their icons at this type size,
       measured rather than guessed: the pair needs ~146px each to avoid clipping. */
    width: 300px;
}

/* Quick Summary spans the row: it is the one you press to skim before deciding
   whether you want the whole thing. */
.ll-report-actions .ll-action-wide,
.ll-report-actions.is-solo #downloadPdfBtn {
    grid-column: 1 / -1;
}

/* One height and one radius for all three, so the block has a straight edge on
   every side. Labels centre because the buttons are now equal width. */
.ll-report-actions .ll-report-download-btn {
    width: 100%;
    /* A grid item will not shrink below its content without this, so the pair
       overflowed the block instead of sharing it. */
    min-width: 0;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0.625rem 0.875rem;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* A label that cannot fit gets ellipsis rather than breaking the grid. */
.ll-report-actions .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ll-report-actions .ll-report-download-btn svg {
    flex: 0 0 auto;
}

/* Lift only the primary on hover. Three things rising together read as noise,
   and the pair below needs to hold its line. */
.ll-report-actions .ll-report-download-btn:hover {
    transform: none;
}

.ll-report-actions #downloadPdfBtn:hover {
    transform: translateY(-2px);
}

.ll-report-actions .ll-report-download-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ll-report-actions .ll-report-download-btn,
    .ll-report-actions #downloadPdfBtn:hover {
        transform: none;
        transition: none;
    }
}

/* On the narrowest phones the block drops under 290px and the pair's labels
   start to clip. The label is the part that has to survive, so the icon goes:
   two buttons this size read fine on their words alone. Quick Summary keeps its
   icon because it has the whole row. */
@media (max-width: 380px) {
    .ll-report-actions .ll-report-download-btn:not(.ll-action-wide) svg {
        display: none;
    }

    .ll-report-actions .ll-report-download-btn:not(.ll-action-wide) {
        gap: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ========================================
   VERDICT BANNER
   ======================================== */

.ll-verdict-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.ll-verdict-banner.safe {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ll-verdict-banner.caution {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ll-verdict-banner.high_risk {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ll-verdict-banner.critical {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.14) 0%, rgba(185, 28, 28, 0.06) 100%);
    border: 1px solid rgba(185, 28, 28, 0.28);
}

.ll-verdict-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-verdict-icon svg {
    width: 28px;
    height: 28px;
}

.ll-verdict-banner.safe .ll-verdict-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.ll-verdict-banner.caution .ll-verdict-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.ll-verdict-banner.high_risk .ll-verdict-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.ll-verdict-banner.critical .ll-verdict-icon {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
}

.ll-verdict-content {
    flex: 1;
}

.ll-verdict-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.ll-verdict-banner.safe .ll-verdict-title { color: #16a34a; }
.ll-verdict-banner.caution .ll-verdict-title { color: #d97706; }
.ll-verdict-banner.high_risk .ll-verdict-title { color: #dc2626; }
.ll-verdict-banner.critical .ll-verdict-title { color: #991b1b; }

.ll-verdict-description {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.ll-doc-link {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    font-weight: 500;
    cursor: pointer;
}

.ll-doc-link:hover {
    color: #1d4ed8;
    text-decoration-style: solid;
}

/* ========================================
   ACTION REQUIRED STRIP
   ======================================== */

.ll-action-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid;
}

.ll-action-strip.has-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.ll-action-strip.has-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.ll-action-strip.has-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.ll-action-strip-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ll-action-strip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.has-critical .ll-action-strip-icon { color: #dc2626; }
.has-warning .ll-action-strip-icon { color: #d97706; }
.has-info .ll-action-strip-icon { color: #3b82f6; }

.ll-action-strip-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1c;
}

.ll-action-strip-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ll-action-strip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ll-action-strip-badge.high {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.ll-action-strip-badge.medium {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.ll-action-strip-badge.low {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.ll-action-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ff6725;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ll-action-strip-link:hover {
    color: #ea580c;
}

@media (max-width: 768px) {
    .ll-action-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

/* ========================================
   SUMMARY CARDS
   ======================================== */

.ll-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ll-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.ll-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ll-summary-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-summary-card-icon svg {
    width: 24px;
    height: 24px;
}

.ll-summary-card-icon.docs {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #6366f1;
}

.ll-summary-card-icon.issues {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
}

.ll-summary-card-icon.manual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #8b5cf6;
}

.ll-summary-card-icon.years {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    color: #22c55e;
}

.ll-summary-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1c;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.ll-summary-card-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

a.ll-summary-card-link {
    text-decoration: none;
    color: inherit;
    cursor: var(--ll-cur-pointer, pointer);
}

/* ========================================
   VERIFICATION CHECKLIST
   ======================================== */

.ll-checklist-section {
    margin-bottom: 2rem;
}

.ll-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ll-section-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6725 0%, #ff8a5c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ll-section-header-icon svg {
    width: 20px;
    height: 20px;
}

.ll-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1c;
    margin: 0;
}

.ll-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ll-checklist-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.ll-checklist-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ll-checklist-status {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-checklist-status svg {
    width: 20px;
    height: 20px;
}

.ll-checklist-status.pass {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
}

.ll-checklist-status.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #d97706;
}

.ll-checklist-status.fail {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
}

.ll-checklist-status.pending {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.08) 100%);
    color: #6b7280;
}

.ll-checklist-status.not_applicable {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.05) 100%);
    color: #9ca3af;
}

.ll-checklist-content {
    flex: 1;
    min-width: 0;
}

.ll-checklist-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0 0 0.125rem;
}

.ll-checklist-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   OWNERSHIP TIMELINE
   ======================================== */

.ll-timeline-section {
    margin-bottom: 2rem;
}

.ll-ownership-timeline {
    position: relative;
    padding: 1.5rem 0;
}

.ll-timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e5e7eb 0%, #ff6725 50%, #22c55e 100%);
}

.ll-timeline-item {
    position: relative;
    padding-left: 64px;
    padding-bottom: 2rem;
}

.ll-timeline-item:last-child {
    padding-bottom: 0;
}

.ll-timeline-node {
    position: absolute;
    left: 12px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ll-timeline-node svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.ll-timeline-item.current .ll-timeline-node {
    border-color: #22c55e;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.ll-timeline-item.current .ll-timeline-node svg {
    color: #fff;
}

.ll-timeline-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.ll-timeline-item.current .ll-timeline-card {
    border-color: #22c55e;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}

.ll-timeline-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ll-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.ll-timeline-owner {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1c;
    margin: 0;
}

.ll-timeline-relation {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 400;
}

.ll-timeline-period {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ff6725;
    background: rgba(255, 103, 37, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.ll-timeline-item.current .ll-timeline-period {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-timeline-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ll-timeline-detail {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ll-timeline-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.ll-timeline-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ll-timeline-doc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ll-timeline-doc-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4338CA;
}

.ll-timeline-notes {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.8125rem;
    color: #6b7280;
    font-style: italic;
}

.ll-timeline-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
}

.ll-timeline-current-badge svg {
    width: 14px;
    height: 14px;
}

/* Per-Survey Tabs */
.ll-survey-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
    padding: 0.375rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}
.ll-survey-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.ll-survey-tab:hover {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}
.ll-survey-tab.active {
    background: #fff;
    color: var(--tab-color, #334155);
    border-color: var(--tab-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-weight: 600;
}
.ll-survey-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ll-survey-tab-count {
    font-size: 0.65rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-weight: 600;
}
.ll-survey-tab.active .ll-survey-tab-count {
    background: color-mix(in srgb, var(--tab-color, #3b82f6) 10%, transparent);
    color: var(--tab-color, #3b82f6);
}
.ll-survey-tab svg {
    width: 14px;
    height: 14px;
}

/* Tab Content Panels */
.ll-survey-tab-content {
    display: none;
}
.ll-survey-tab-content.active {
    display: block;
}

/* Survey Pills */
.ll-survey-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    background: color-mix(in srgb, var(--pill-color, #64748b) 12%, transparent);
    color: var(--pill-color, #64748b);
    margin-right: 0.25rem;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .ll-survey-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    .ll-survey-tab {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   REPORT SECTION CARDS
   ======================================== */

.ll-report-section {
    margin-bottom: 2rem;
}

.ll-report-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.ll-report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.ll-report-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ll-report-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 103, 37, 0.1) 0%, rgba(255, 103, 37, 0.05) 100%);
    color: #ff6725;
}

.ll-report-card-icon svg {
    width: 20px;
    height: 20px;
}

.ll-report-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1c;
    margin: 0;
}

.ll-report-card-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.125rem 0 0;
}

.ll-report-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ll-report-card-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-report-card-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ll-report-card-badge.pending {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.ll-report-card-badge svg {
    width: 14px;
    height: 14px;
}

.ll-report-card-content {
    padding: 1.5rem;
}

/* ========================================
   REUSABLE COMPONENTS
   ======================================== */

.ll-empty-state {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ll-empty-state.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    color: #d97706;
}

.ll-empty-state.info {
    background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    color: #3b82f6;
}

.ll-empty-state-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    display: block;
}

.ll-empty-state-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.ll-empty-state.warning .ll-empty-state-title { color: #92400e; }
.ll-empty-state.info .ll-empty-state-title { color: #1e40af; }

.ll-empty-state-text {
    font-size: 0.8125rem;
    margin: 0;
    max-width: 520px;
    margin-inline: auto;
}

.ll-empty-state.warning .ll-empty-state-text { color: #b45309; }
.ll-empty-state.info .ll-empty-state-text { color: #3b82f6; }

.ll-subsection-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a1c;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ll-subsection-heading.warning {
    color: #d97706;
}

.ll-subsection-meta {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ========================================
   VERIFICATION TABLES
   ======================================== */

.ll-verification-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    position: relative;
}

@media (max-width: 768px) {
    .ll-verification-table-wrapper::after {
        content: 'Scroll →';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 48px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 0.625rem;
        font-size: 0.5625rem;
        font-weight: 600;
        color: #9ca3af;
        background: linear-gradient(to left, rgba(255,255,255,0.95) 40%, transparent);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .ll-verification-table-wrapper.scrolled::after {
        opacity: 0;
    }
}

.ll-verification-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.ll-verification-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ll-verification-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.ll-verification-table tr:last-child td {
    border-bottom: none;
}

.ll-verification-table tr:hover {
    background: rgba(255, 103, 37, 0.02);
}

.ll-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ll-match-badge.match {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-match-badge.mismatch {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.ll-match-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ll-match-badge.not-verified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.ll-match-badge svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   APPROVAL CARDS GRID
   ======================================== */

.ll-approvals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ll-approval-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.ll-approval-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ll-approval-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0;
}

.ll-approval-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ll-approval-status.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-approval-status svg {
    width: 12px;
    height: 12px;
}

.ll-approval-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ll-approval-detail {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ll-approval-detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #9ca3af;
}

.ll-approval-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* ========================================
   EC SECTION
   ======================================== */

.ll-ec-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ll-ec-summary-text {
    font-size: 0.9375rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

.ll-ec-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ll-ec-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.ll-ec-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1c;
    line-height: 1;
}

.ll-ec-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.25rem;
}

.ll-ec-chart-container {
    height: 250px;
    margin-bottom: 1.5rem;
}

.ll-mortgage-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.ll-mortgage-card.released {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.ll-mortgage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ll-mortgage-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0;
}

.ll-mortgage-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.ll-mortgage-status.released {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-mortgage-status.active {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.ll-mortgage-status.unknown {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.ll-mortgage-card.unknown {
    border-color: #fed7aa;
}

.ll-mortgage-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* ========================================
   DOCUMENT ANALYSIS
   ======================================== */

.ll-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ll-doc-item {
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    transition: all 0.2s ease;
}

.ll-doc-item:hover {
    border-color: #d1d5db;
}

.ll-doc-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ll-doc-item-title-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ll-doc-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-doc-type-icon svg {
    width: 16px;
    height: 16px;
    color: #71717a;
}

.ll-doc-item.has-docs .ll-doc-type-icon {
    background: rgba(255, 103, 37, 0.08);
}

.ll-doc-item.has-docs .ll-doc-type-icon svg {
    color: #ff6725;
}

.ll-doc-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #18181b;
    margin: 0;
    line-height: 1.2;
}

.ll-doc-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
}

.ll-doc-item-count {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #71717a;
}

.ll-doc-item-summary {
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
    padding-left: 2.625rem;
}

.ll-doc-item-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.ll-doc-item-status.verified {
    color: #16a34a;
}

.ll-doc-item-status.not_applicable {
    color: #9ca3af;
}

.ll-doc-item-status svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   TAX & UTILITIES
   ======================================== */

.ll-tax-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ll-tax-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.ll-tax-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ll-tax-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-tax-card-icon svg {
    width: 20px;
    height: 20px;
}

.ll-tax-card-icon.property {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: #6366f1;
}

.ll-tax-card-icon.water {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #3b82f6;
}

.ll-tax-card-icon.electricity {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #f59e0b;
}

.ll-tax-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0;
}

.ll-tax-card-authority {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.125rem 0 0;
}

.ll-tax-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ll-tax-status-badge.paid {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
}

.ll-tax-status-badge.uploaded {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #2563eb;
}

.ll-tax-status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #d97706;
}

.ll-tax-status-badge svg {
    width: 16px;
    height: 16px;
}

.ll-tax-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ll-tax-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.ll-tax-detail-label {
    color: #6b7280;
}

.ll-tax-detail-value {
    color: #374151;
    font-weight: 500;
}

.ll-tax-source {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-radius: 4px;
}

.ll-tax-auto-note {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 0.625rem;
    padding: 0.5rem 0.625rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: #92400e;
}
.ll-tax-auto-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

.ll-tax-amount {
    font-weight: 600;
}

.ll-tax-amount.due {
    color: #dc2626;
}

.ll-tax-amount.clear {
    color: #16a34a;
}

.ll-utility-status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.ll-utility-status.connected {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.ll-utility-status.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* No Data Message */
.ll-no-data-message {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(107, 114, 128, 0.05);
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.ll-no-data-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.ll-no-data-icon svg {
    width: 24px;
    height: 24px;
}

.ll-no-data-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem;
}

.ll-no-data-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ll-no-data-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ll-action-item {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    color: #374151;
}

/* ========================================
   ADDITIONAL SEARCHES
   ======================================== */

.ll-searches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ll-search-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.ll-search-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ll-search-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-search-card-icon svg {
    width: 24px;
    height: 24px;
}

.ll-search-card-icon.clear {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #16a34a;
}

.ll-search-card-icon.found {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #dc2626;
}

.ll-search-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0 0 0.25rem;
}

.ll-search-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ll-search-card-status.clear {
    color: #16a34a;
}

.ll-search-card-status.found {
    color: #dc2626;
}

.ll-search-card-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

/* ========================================
   SPECIAL CHECKS
   ======================================== */

.ll-special-checks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ll-special-check {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ll-special-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-special-check-icon svg {
    width: 16px;
    height: 16px;
}

.ll-special-check-icon.clear {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-special-check-icon.found {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.ll-special-check-content {
    flex: 1;
    min-width: 0;
}

.ll-special-check-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0;
}

.ll-special-check-status {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
}

/* ========================================
   RED FLAGS SECTION
   ======================================== */

/* Summary Stats Bar */
.ll-rf-stats-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.ll-rf-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    min-width: 0;
    transition: background 0.2s ease;
}

.ll-rf-stat:hover {
    background: #f3f4f6;
}

.ll-rf-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-rf-stat-icon svg {
    width: 15px;
    height: 15px;
}

.ll-rf-stat.high .ll-rf-stat-icon {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.ll-rf-stat.medium .ll-rf-stat-icon {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.ll-rf-stat.low .ll-rf-stat-icon {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.ll-rf-stat-num {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.ll-rf-stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9ca3af;
    line-height: 1;
}

.ll-rf-stat.high .ll-rf-stat-num { color: #dc2626; }
.ll-rf-stat.medium .ll-rf-stat-num { color: #d97706; }
.ll-rf-stat.low .ll-rf-stat-num { color: #16a34a; }

.ll-rf-stat-total {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    background: #1a1a2e;
}

.ll-rf-stat-total-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ll-rf-stat-total-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    max-width: 60px;
}

/* Column Grid */
.ll-red-flags-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.ll-red-flags-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.ll-red-flag-desc {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Column Headers */
.ll-red-flags-column-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin: -0.25rem -0.25rem 0.25rem;
}

.ll-red-flags-column-header.high {
    background: rgba(220, 38, 38, 0.04);
    border-bottom: none;
}

.ll-red-flags-column-header.medium {
    background: rgba(245, 158, 11, 0.04);
    border-bottom: none;
}

.ll-red-flags-column-header.low {
    background: rgba(34, 197, 94, 0.04);
    border-bottom: none;
}

.ll-red-flags-column-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-red-flags-column-icon svg {
    width: 18px;
    height: 18px;
}

.ll-red-flags-column-header.high .ll-red-flags-column-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.ll-red-flags-column-header.medium .ll-red-flags-column-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ll-red-flags-column-header.low .ll-red-flags-column-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-red-flags-column-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.ll-red-flags-column-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.ll-red-flags-column-subtitle {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 500;
}

.ll-rf-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.375rem;
    flex-shrink: 0;
}

.ll-rf-count-badge.high {
    background: #dc2626;
    color: #fff;
}

.ll-rf-count-badge.medium {
    background: #f59e0b;
    color: #fff;
}

.ll-rf-count-badge.low {
    background: #22c55e;
    color: #fff;
}

/* Flag Cards */
.ll-red-flag-card {
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    background: #fafafa;
}

.ll-red-flag-card:hover {
    background: #f5f5f5;
}

.ll-red-flag-card.high {
    background: #fafafa;
    border-color: #f0f0f0;
}

.ll-red-flag-card.medium {
    background: #fafafa;
    border-color: #f0f0f0;
}

.ll-red-flag-card.low {
    background: #fafafa;
    border-color: #f0f0f0;
}

/* Card Header with Number */
.ll-rf-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.ll-rf-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.ll-rf-num.high {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.ll-rf-num.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ll-rf-num.low {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.ll-red-flag-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

.ll-red-flag-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    font-style: normal;
    padding-left: 1.875rem;
}

/* Action Items */
.ll-red-flag-action {
    font-size: 0.7rem;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    margin-top: 0.625rem;
    margin-left: 1.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #4b5563;
    background: rgba(0, 0, 0, 0.025);
}

.ll-red-flag-action svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
}

/* Red Flag Source Citations */
.ll-red-flag-sources {
    margin-top: 0.5rem;
    margin-left: 1.875rem;
    padding: 0.5rem 0.625rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    font-size: 0.7rem;
}

.ll-source-label {
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ll-source-label svg {
    color: #9ca3af;
}

.ll-source-item {
    color: #4b5563;
    display: inline;
}

.ll-source-item::after {
    content: '';
}

.ll-source-quote {
    margin: 0.375rem 0 0 0;
    padding: 0.375rem 0.625rem;
    /* A hairline all round, never a bar down the left edge. */
    border: 1px solid #e5e7eb;
    background: rgba(0, 0, 0, 0.02);
    font-style: italic;
    color: #6b7280;
    font-size: 0.65rem;
    line-height: 1.5;
    border-radius: 6px;
}

/* Empty States */
.ll-red-flags-empty {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
}

.ll-red-flags-empty p {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.25rem;
}

.ll-rf-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.ll-rf-empty-icon svg {
    width: 24px;
    height: 24px;
}

.ll-rf-empty-sub {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 400;
}

/* ========================================
   RECOMMENDATIONS SECTION
   ======================================== */

.ll-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.ll-recommendation-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.ll-purchase-deed-card {
    grid-column: 1 / -1;
}

.ll-recommendation-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ll-recommendation-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-recommendation-card-icon svg {
    width: 20px;
    height: 20px;
}

.ll-recommendation-card-icon.collect {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: #6366f1;
}

.ll-recommendation-card-icon.verify {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #f59e0b;
}

.ll-recommendation-card-icon.clearance {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #8b5cf6;
}

.ll-recommendation-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0;
}

.ll-recommendation-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ll-recommendation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.ll-recommendation-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff6725;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.ll-recommendation-empty {
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
}

.ll-recommendation-summary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.ll-recommendation-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ll-recommendation-summary-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ll-recommendation-summary-icon svg {
    width: 24px;
    height: 24px;
}

.ll-recommendation-summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #16a34a;
    margin: 0;
}

.ll-recommendation-summary-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* Before Purchase Action Cards */
.ll-before-purchase-card {
    grid-column: span 2;
}

.ll-before-purchase-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.ll-action-item-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: background 0.2s ease;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: #fffcf7;
}

.ll-action-item-card:hover {
    background: #fff9f0;
}

.ll-action-item-card.high {
    background: #fef7f7;
    border-color: rgba(220, 38, 38, 0.25);
}

.ll-action-item-card.high:hover {
    background: #fef2f2;
}

.ll-action-item-card.medium {
    background: #fffcf7;
    border-color: rgba(245, 158, 11, 0.3);
}

.ll-action-item-card.low {
    background: #f8faff;
    border-color: rgba(59, 130, 246, 0.2);
}

.ll-action-item-card.low:hover {
    background: #f0f4ff;
}

.ll-action-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: #b45309;
}

.ll-action-item-card.high .ll-action-priority {
    color: #b91c1c;
}

.ll-action-item-card.medium .ll-action-priority {
    color: #b45309;
}

.ll-action-item-card.low .ll-action-priority {
    color: #1d4ed8;
}

.ll-action-priority svg {
    width: 12px;
    height: 12px;
}

.ll-action-text {
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.ll-action-reason {
    font-size: 0.7rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0.625rem 0 0;
    font-style: italic;
}

/* ========================================
   FOOTER
   ======================================== */

.ll-report-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.ll-report-disclaimer {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ll-report-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ll-report-disclaimer-header svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.ll-report-disclaimer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

.ll-report-disclaimer-text {
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.ll-report-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ll-report-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ll-report-footer-brand img {
    height: 24px;
}

.ll-report-footer-brand span {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.ll-report-footer-timestamp {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ========================================
   PROPERTY INFO GRID
   ======================================== */

.ll-property-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.ll-property-info-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ll-property-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ll-property-info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.ll-property-info-value {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

/* Land classification. Ordinary classes read as a quiet chip; government land (Poramboke,
   Sarkar tenure) carries the amber treatment used elsewhere for things a buyer must check,
   because a neutral value beside an owner name reads as ordinary private title. */
.ll-land-class {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
}

.ll-land-class.is-govt {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.ll-land-class-note {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #92400e;
}

@media (max-width: 640px) {
    .ll-land-class {
        white-space: normal;
    }

    .ll-land-class-note {
        font-size: 0.7188rem;
    }
}

.ll-show-more-surveys {
    display: inline;
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
}
.ll-show-more-surveys:hover {
    text-decoration: underline;
}

.ll-property-map {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ll-boundaries-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
}

.ll-boundary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.ll-boundary-direction {
    font-weight: 600;
    color: #1a1a1c;
    min-width: 50px;
}

.ll-boundary-value {
    color: #6b7280;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .ll-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-checklist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-searches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-special-checks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-red-flags-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-rf-stats-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .ll-rf-stat-total {
        margin-left: 0;
        flex: 1 0 100%;
        justify-content: center;
    }

    .ll-tax-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ll-report-page {
        padding: 0 0.5rem 1.5rem;
    }

    .ll-report-hero {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .ll-report-card-content {
        padding: 1rem;
    }

    .ll-report-card-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .ll-report-hero-content {
        flex-direction: column;
    }

    .ll-report-hero-right {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.625rem;
    }

    .ll-risk-gauge {
        width: 100%;
        height: 100px;
    }

    .ll-risk-gauge-score {
        font-size: 1.5rem;
    }

    .ll-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .ll-summary-card {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.625rem;
        row-gap: 0;
        align-items: center;
        text-align: left;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .ll-summary-card:hover {
        transform: none;
    }

    .ll-summary-card-icon {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 36px;
        height: 36px;
        margin: 0;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .ll-summary-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .ll-summary-card-value {
        grid-row: 1;
        grid-column: 2;
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .ll-summary-card-label {
        grid-row: 2;
        grid-column: 2;
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    /* Colored borders per card type */
    .ll-summary-card:nth-child(1) { border-color: rgba(99, 102, 241, 0.3); }
    .ll-summary-card:nth-child(2) { border-color: rgba(245, 158, 11, 0.3); }
    .ll-summary-card:nth-child(3) { border-color: rgba(139, 92, 246, 0.3); }
    .ll-summary-card:nth-child(4) { border-color: rgba(34, 197, 94, 0.3); }

    .ll-checklist-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-timeline-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-approvals-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-doc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-tax-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-searches-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-special-checks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-recommendations-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .ll-recommendation-card {
        padding: 1rem;
        grid-column: 1 / -1;
    }

    .ll-before-purchase-card,
    .ll-purchase-deed-card,
    .ll-recommendation-summary {
        grid-column: 1 / -1;
    }

    .ll-recommendation-card-title {
        font-size: 0.8125rem;
    }

    .ll-recommendation-summary {
        padding: 1rem;
    }

    .ll-recommendation-summary-title {
        font-size: 0.9375rem;
    }

    .ll-recommendation-summary-text {
        font-size: 0.8125rem;
    }

    .ll-recommendation-summary-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .ll-recommendation-summary-icon svg {
        width: 20px;
        height: 20px;
    }

    .ll-action-item-card {
        padding: 0.75rem 1rem;
    }

    .ll-action-text {
        font-size: 0.8125rem;
        word-break: break-word;
    }

    .ll-action-reason {
        font-size: 0.6875rem;
    }

    .ll-before-purchase-list {
        max-height: none;
        gap: 0.5rem;
    }

    .ll-recommendation-list li {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .ll-property-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-ec-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-mortgage-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Hero text sizing */
    .ll-report-hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .ll-report-hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .ll-report-back-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }

    .ll-report-hero-badges {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .ll-report-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .ll-report-meta {
        gap: 1rem;
        font-size: 0.75rem;
    }

    /* Hero right: score on own row centered, buttons below with text */
    .ll-risk-gauge {
        flex-basis: 100%;
        margin: 0 auto;
    }

    /* The block keeps its one-over-two shape and just fills the width, so the
       actions look the same on a phone as on a desktop. */
    .ll-report-actions {
        width: 100%;
    }

    .ll-report-download-btn {
        justify-content: center;
        padding: 0.625rem 1rem;
        border-radius: 10px;
        font-size: 0.8125rem;
    }

    /* Same size as the pair beneath it: on a phone every target should be
       comfortably tappable, and the ghost style already separates it. */
    .ll-report-actions .ll-simple-report-btn.ll-report-download-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }

    .ll-risk-gauge-label {
        font-size: 0.5625rem;
    }

    /* Risk breakdown */
    .ll-risk-breakdown {
        margin-top: 1rem;
    }

    .ll-risk-breakdown-toggle {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .ll-risk-breakdown-content {
        padding: 0 0.75rem 0.75rem;
    }

    .ll-score-category {
        margin-bottom: 0.5rem;
    }

    .ll-score-category-label {
        font-size: 0.6875rem;
    }

    .ll-score-category-value {
        font-size: 0.6875rem;
    }

    /* Verdict banner */
    .ll-verdict-banner {
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .ll-verdict-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .ll-verdict-icon svg {
        width: 22px;
        height: 22px;
    }

    .ll-verdict-title {
        font-size: 1.0625rem;
    }

    .ll-verdict-description {
        font-size: 0.8125rem;
    }

    /* Doc items mobile */
    .ll-doc-item {
        padding: 0.75rem;
    }

    .ll-doc-expanded {
        padding-left: 0;
    }

    .ll-doc-item-summary {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .ll-doc-detail-parties {
        padding-left: 0;
    }

    .ll-doc-findings {
        padding-left: 0;
    }

    .ll-doc-anomalies {
        padding-left: 0;
    }

    .ll-doc-detail-top {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .ll-doc-detail-name {
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: unset;
    }

    .ll-doc-detail-info {
        flex: 1;
        min-width: calc(100% - 36px);
    }

    .ll-doc-view-link {
        margin-left: 0;
    }

    .ll-doc-detail-top .ll-cc-actions {
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        gap: 0.375rem;
    }

    .ll-doc-detail-card {
        padding: 0.5rem 0.625rem;
    }
}

/* ========================================
   SMALL PHONE OPTIMIZATIONS
   ======================================== */

@media (max-width: 480px) {
    .ll-report-page {
        padding: 0 0.375rem 1.25rem;
    }

    .ll-report-hero {
        padding: 1rem;
        border-radius: 12px;
    }

    .ll-report-hero-title {
        font-size: 1.25rem;
    }

    .ll-report-hero-subtitle {
        font-size: 0.8125rem;
    }

    .ll-risk-gauge {
        width: 80px;
        height: 80px;
    }

    .ll-risk-gauge-score {
        font-size: 1.25rem;
    }

    .ll-risk-gauge-label {
        font-size: 0.5rem;
    }

    .ll-report-download-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .ll-verdict-banner {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .ll-verdict-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .ll-verdict-icon svg {
        width: 18px;
        height: 18px;
    }

    .ll-verdict-title {
        font-size: 0.9375rem;
    }

    .ll-verdict-description {
        font-size: 0.75rem;
    }

    .ll-report-card-header {
        padding: 0.75rem;
    }

    .ll-report-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .ll-report-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .ll-report-card-title {
        font-size: 0.9375rem;
    }

    .ll-report-card-subtitle {
        font-size: 0.75rem;
    }

    .ll-report-card-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .ll-report-card-content {
        padding: 0.75rem;
    }

    .ll-summary-card {
        padding: 0.625rem;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .ll-summary-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .ll-summary-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .ll-summary-card-value {
        font-size: 1.125rem;
    }

    .ll-summary-card-label {
        font-size: 0.625rem;
    }

    .ll-doc-item {
        padding: 0.625rem;
    }

    .ll-doc-type-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .ll-doc-type-icon svg {
        width: 14px;
        height: 14px;
    }

    .ll-doc-item-title {
        font-size: 0.75rem;
    }

    .ll-doc-file-icon {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .ll-doc-detail-name {
        font-size: 0.6875rem;
    }

    .ll-doc-finding-tag {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }

    .ll-doc-anomaly {
        font-size: 0.6875rem;
    }
}

@media (max-width: 360px) {
    .ll-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================
   GSAP INITIAL STATES
   ======================================== */

.ll-report-hero,
.ll-verdict-banner,
.ll-action-strip,
.ll-summary-grid,
.ll-vml-ai-summary,
.ll-checklist-section,
.ll-timeline-section,
.ll-report-section,
.ll-report-footer {
    visibility: hidden;
    animation: ll-gsap-safety 0s 3s forwards;
}

@keyframes ll-gsap-safety {
    to { visibility: visible; }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .ll-report-page {
        max-width: none;
        padding: 0;
    }

    .ll-report-back-link,
    .ll-report-download-btn {
        display: none !important;
    }

    .ll-report-hero,
    .ll-verdict-banner,
    .ll-action-strip,
    .ll-summary-grid,
    .ll-vml-ai-summary,
    .ll-checklist-section,
    .ll-timeline-section,
    .ll-report-section,
    .ll-report-footer {
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ll-report-card,
    .ll-timeline-card {
        break-inside: avoid;
    }

    .ll-red-flags-column {
        break-inside: avoid;
    }

    .ll-rf-stats-bar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ll-rf-stat-total {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================
   VML AI SUMMARY SECTION
   ======================================== */

.ll-vml-ai-summary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ll-vml-ai-summary.medium-risk {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.ll-vml-ai-summary.high-risk {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.ll-vml-ai-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ll-vml-ai-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    color: #fff;
}

.ll-vml-ai-summary.medium-risk .ll-vml-ai-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ll-vml-ai-summary.high-risk .ll-vml-ai-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ll-vml-ai-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1c;
    flex: 1;
}

.ll-vml-ai-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ll-vml-ai-badge.low-risk {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.ll-vml-ai-badge.medium-risk {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.ll-vml-ai-badge.high-risk {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.ll-vml-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #1a1a1c;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ll-vml-view-link:hover {
    background: #2d2d30;
    transform: translateY(-1px);
}

.ll-vml-ai-content {
    padding-top: 0.5rem;
}

.ll-vml-ai-summary-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.ll-vml-ai-findings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ll-vml-finding {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
}

.ll-vml-finding.positive {
    background: rgba(34, 197, 94, 0.1);
}

.ll-vml-finding.warning {
    background: rgba(245, 158, 11, 0.1);
}

.ll-vml-finding.negative {
    background: rgba(239, 68, 68, 0.1);
}

.ll-vml-finding-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ll-vml-finding.positive .ll-vml-finding-icon {
    color: #15803d;
}

.ll-vml-finding.warning .ll-vml-finding-icon {
    color: #b45309;
}

.ll-vml-finding.negative .ll-vml-finding-icon {
    color: #b91c1c;
}

.ll-vml-finding-icon svg {
    width: 100%;
    height: 100%;
}

.ll-vml-finding-text {
    flex: 1;
    line-height: 1.5;
}

.ll-vml-ai-recommendation {
    padding: 0.875rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

.ll-vml-ai-recommendation strong {
    color: #4f46e5;
}

/* ========================================
   VML ZONE CHECKS SECTION
   ======================================== */

.ll-vml-zone-summary {
    display: flex;
    gap: 0.75rem;
}

.ll-vml-zone-stat {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ll-vml-zone-stat.success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.ll-vml-zone-stat.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.ll-vml-zone-groups {
    display: grid;
    gap: 1.5rem;
}

.ll-vml-zone-group-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.ll-vml-zone-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.375rem;
}

.ll-vml-zone-check {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ll-vml-zone-check.success {
    background: rgba(34, 197, 94, 0.06);
}

.ll-vml-zone-check.warning {
    background: rgba(245, 158, 11, 0.1);
}

.ll-vml-zone-check.error {
    background: rgba(239, 68, 68, 0.08);
}

.ll-vml-zone-check-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ll-vml-zone-check-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.ll-vml-zone-check-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.ll-vml-zone-check-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.ll-vml-zone-check-icon svg {
    width: 10px;
    height: 10px;
}

.ll-vml-zone-check-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.ll-vml-zone-check-name {
    font-size: 0.6875rem;
    color: #374151;
}

.ll-vml-zone-check-status {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ll-vml-zone-check-status.success {
    color: #15803d;
}

.ll-vml-zone-check-status.warning {
    color: #b45309;
}

.ll-vml-zone-check-status.error {
    color: #b91c1c;
}

.ll-vml-zone-section {
    margin-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.ll-vml-zone-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.ll-vml-zone-toggle:hover {
    background: #f1f5f9;
}

.ll-vml-zone-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ll-vml-zone-toggle-left svg {
    color: #ea580c;
    flex-shrink: 0;
}

.ll-vml-zone-toggle-left h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1c;
}

.ll-vml-zone-toggle-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.ll-vml-zone-chevron {
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ll-vml-zone-section.expanded .ll-vml-zone-chevron {
    transform: rotate(180deg);
}

.ll-vml-zone-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.25rem;
}

.ll-vml-zone-section.expanded .ll-vml-zone-content {
    max-height: 2000px;
    padding: 1rem 0.25rem 0;
}

@media (max-width: 640px) {
    .ll-vml-zone-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .ll-vml-zone-toggle-subtitle {
        display: none;
    }

    .ll-vml-zone-chevron {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .ll-vml-zone-toggle {
        position: relative;
    }

    .ll-vml-zone-section.expanded .ll-vml-zone-chevron {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* ========================================
   OWNERSHIP COMPARISON SECTION
   ======================================== */

.ll-ownership-comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .ll-ownership-comparison-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-ownership-comparison-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

.ll-ownership-comparison-card {
    padding: 1.25rem;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ll-ownership-comparison-card.vml {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.ll-ownership-comparison-card.deed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.ll-ownership-comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ll-ownership-comparison-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.ll-ownership-patta-no {
    font-size: 0.6875rem;
    color: #9ca3af;
}

.ll-ownership-comparison-value {
    font-size: 0.9375rem;
    color: #1a1a1c;
    margin-bottom: 0.25rem;
}

.ll-ownership-comparison-value strong {
    color: #6b7280;
    font-weight: 500;
}

.ll-ownership-comparison-extent {
    font-size: 0.8125rem;
    color: #6b7280;
}

.ll-ownership-comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #9ca3af;
    align-self: center;
}

.ll-ownership-comparison-arrow svg {
    width: 20px;
    height: 20px;
}

.ll-ownership-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    color: #92400e;
    font-size: 0.875rem;
}

.ll-ownership-warning svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ll-ownership-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    color: #1e40af;
    font-size: 0.875rem;
}

.ll-ownership-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ========================================
   PATTA MUTATION STATUS (inside Revenue Records)
   ======================================== */

.ll-mutation-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.ll-mutation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ll-mutation-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.ll-mutation-header-left svg {
    width: 20px;
    height: 20px;
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ll-mutation-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.ll-mutation-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.125rem 0 0;
}

.ll-mutation-deed-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.ll-mutation-deed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e2e8f0;
}

.ll-mutation-deed-header strong {
    font-size: 0.8125rem;
    color: #334155;
}

.ll-mutation-deed-party {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 640px) {
    .ll-mutation-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   EC TRANSACTIONS SECTION
   ======================================== */

.ll-ec-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6725 0%, #e55a1f 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ll-ec-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.3);
}

.ll-ec-download-btn svg {
    width: 16px;
    height: 16px;
}

.ll-ec-matching-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ll-ec-match-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    background: #f9fafb;
}

.ll-ec-match-stat.matched {
    background: rgba(34, 197, 94, 0.08);
}

.ll-ec-match-stat.missing {
    background: rgba(245, 158, 11, 0.08);
}

.ll-ec-match-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1c;
}

.ll-ec-match-stat.matched .ll-ec-match-count {
    color: #15803d;
}

.ll-ec-match-stat.missing .ll-ec-match-count {
    color: #b45309;
}

.ll-ec-match-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.ll-ec-txn-table {
    font-size: 0.8125rem;
}

.ll-ec-txn-table th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ll-ec-txn-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 4px;
}

.ll-ec-parties {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.ll-ec-party {
    font-size: 0.8125rem;
}

.ll-ec-party.from {
    color: #6b7280;
}

.ll-ec-party.to {
    color: #1a1a1c;
    font-weight: 500;
}

.ll-ec-arrow {
    color: #9ca3af;
    font-size: 0.75rem;
}

.ll-ec-more-note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

/* ========================================
   CHECKLIST DESCRIPTIONS
   ======================================== */

.ll-checklist-description {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   OCCUPANCY ALERT
   ======================================== */

.ll-occupancy-alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid;
    margin-bottom: 1rem;
}

.ll-occupancy-alert.high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.ll-occupancy-alert.medium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.ll-occupancy-alert-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-occupancy-alert.high .ll-occupancy-alert-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.ll-occupancy-alert.medium .ll-occupancy-alert-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.ll-occupancy-alert-icon svg {
    width: 24px;
    height: 24px;
}

.ll-occupancy-alert-content {
    flex: 1;
}

.ll-occupancy-alert-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.ll-occupancy-alert.high .ll-occupancy-alert-title {
    color: #dc2626;
}

.ll-occupancy-alert.medium .ll-occupancy-alert-title {
    color: #d97706;
}

.ll-occupancy-alert-desc {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

.ll-occupancy-alert-action {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1a1a1c;
    line-height: 1.5;
}

.ll-occupancy-alert-action strong {
    color: #dc2626;
}

/* ========================================
   ZONE CHECK DETAILS
   ======================================== */

.ll-vml-zone-check-details {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    max-height: 80px;
    overflow-y: auto;
}

/* Custom scrollbar for zone details */
.ll-vml-zone-check-details::-webkit-scrollbar {
    width: 4px;
}

.ll-vml-zone-check-details::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 2px;
}

.ll-vml-zone-check-details::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.ll-vml-zone-check-details::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ll-vml-zone-check-details p {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    color: #6b7280;
    line-height: 1.4;
}

.ll-vml-zone-check-details p:last-child {
    margin-bottom: 0;
}

.ll-vml-zone-check-details strong {
    color: #374151;
    font-weight: 500;
}

.ll-zone-warning-note {
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
    color: #9ca3af;
    font-size: 0.625rem;
}

/* Make zone checks wrap properly with details */
.ll-vml-zone-check {
    flex-wrap: wrap;
}

/* ========================================
   SEARCH CARD ENHANCEMENTS
   ======================================== */

.ll-search-card-explanation {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}

.ll-search-card-date {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: #9ca3af;
}

/* ========================================
   REVENUE RECORDS SOURCE BADGE
   ======================================== */

.ll-revenue-source {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    margin-left: 0.75rem;
}

.ll-revenue-source.uploaded {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ========================================
   EC SOURCE INDICATOR
   ======================================== */

.ll-ec-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #059669;
    margin-left: auto;
}

.ll-ec-source-badge.uploaded {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ========================================
   DOCUMENT ANALYSIS ENHANCEMENTS
   ======================================== */

.ll-doc-item-parties {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.ll-doc-item-date {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: #9ca3af;
}

/* ========================================
   SPECIAL CHECKS ENHANCED
   ======================================== */

.ll-special-check-details {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   GSAP FALLBACK ANIMATIONS
   If GSAP fails to load, CSS animations take over
   ======================================== */

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

/* Ensure content is visible when GSAP fails to load */
.no-gsap .ll-report-hero,
.no-gsap .ll-verdict-banner,
.no-gsap .ll-action-strip,
.no-gsap .ll-summary-grid,
.no-gsap .ll-vml-ai-summary,
.no-gsap .ll-checklist-section,
.no-gsap .ll-timeline-section,
.no-gsap .ll-report-section,
.no-gsap .ll-report-footer {
    animation: ll-fade-in 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.no-gsap .ll-checklist-item,
.no-gsap .ll-timeline-item,
.no-gsap .ll-summary-card,
.no-gsap .ll-addsearch-item,
.no-gsap .ll-tax-card,
.no-gsap .ll-red-flag-card,
.no-gsap .ll-vml-zone-check,
.no-gsap .ll-action-item-card,
.no-gsap .ll-doc-item,
.no-gsap .ll-mutation-section {
    animation: ll-fade-in 0.4s ease-out forwards;
}

/* Stagger delays for items */
.no-gsap .ll-checklist-item:nth-child(1) { animation-delay: 0.1s; }
.no-gsap .ll-checklist-item:nth-child(2) { animation-delay: 0.15s; }
.no-gsap .ll-checklist-item:nth-child(3) { animation-delay: 0.2s; }
.no-gsap .ll-checklist-item:nth-child(4) { animation-delay: 0.25s; }
.no-gsap .ll-checklist-item:nth-child(5) { animation-delay: 0.3s; }
.no-gsap .ll-checklist-item:nth-child(6) { animation-delay: 0.35s; }

.no-gsap .ll-timeline-item:nth-child(1) { animation-delay: 0.2s; }
.no-gsap .ll-timeline-item:nth-child(2) { animation-delay: 0.3s; }
.no-gsap .ll-timeline-item:nth-child(3) { animation-delay: 0.4s; }
.no-gsap .ll-timeline-item:nth-child(4) { animation-delay: 0.5s; }
.no-gsap .ll-timeline-item:nth-child(5) { animation-delay: 0.6s; }

/* ==================== NEW STYLES - Report V2 ==================== */

/* Risk Breakdown */
.ll-risk-breakdown {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.ll-risk-breakdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.ll-risk-breakdown-toggle svg {
    transition: transform 0.2s;
    opacity: 0.6;
}

.ll-risk-breakdown.expanded .ll-risk-breakdown-toggle svg {
    transform: rotate(180deg);
}

.ll-risk-breakdown-content {
    display: none;
    padding: 0 1rem 1rem;
}

.ll-risk-breakdown.expanded .ll-risk-breakdown-content {
    display: block;
}

.ll-score-category {
    margin-bottom: 0.625rem;
}

.ll-score-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.ll-score-category-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.ll-score-category-value {
    font-size: 0.75rem;
    font-weight: 600;
}

.ll-score-category-value.low { color: #4ade80; }
.ll-score-category-value.medium { color: #fbbf24; }
.ll-score-category-value.high { color: #f87171; }

.ll-score-category-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ll-score-category-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.ll-score-category-fill.low { background: #4ade80; }
.ll-score-category-fill.medium { background: #fbbf24; }
.ll-score-category-fill.high { background: #f87171; }

/* VML Risk Note */
.ll-vml-risk-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #6366f1;
    line-height: 1.5;
}

.ll-vml-risk-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Chain Warning */
.ll-chain-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: #92400e;
    font-size: 0.875rem;
}

.ll-chain-warning svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 2px;
}

/* Authority Info Card */
.ll-authority-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: #1e40af;
    font-size: 0.875rem;
}

.ll-authority-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}

/* Approval Status - Not Verified */
.ll-approval-status.not-verified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: #d1d5db;
}

.ll-approval-description {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

/* Search Card - Not Checked */
.ll-search-card-icon.not_checked {
    background: rgba(107, 114, 128, 0.08);
    color: #9ca3af;
}

.ll-search-card-status.not_checked {
    color: #9ca3af;
    border-color: #d1d5db;
    background: rgba(107, 114, 128, 0.06);
}

/* How-to-check callout */
.ll-how-to-check {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(59, 130, 246, 0.04);
    border: 1px dashed rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
}

.ll-how-to-check strong {
    display: block;
    color: #1e40af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.ll-how-to-check p {
    margin: 0;
}

/* Consultation CTA */
.ll-consultation-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 10px;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
}

.ll-consultation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #ff6725;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    cursor: var(--ll-cur-pointer, pointer);
}

.ll-consultation-btn:hover {
    background: #ea580c;
    color: #fff;
}

/* Special Checks - expanded styles */
.ll-special-check {
    position: relative;
}

.ll-special-check.found .ll-special-check-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ll-special-check.not_verified .ll-special-check-icon {
    background: rgba(107, 114, 128, 0.08);
    color: #9ca3af;
}

.ll-special-check-desc {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
    padding-left: 2.75rem;
}

.ll-special-check.found .ll-special-check-desc {
    color: #b91c1c;
    font-weight: 500;
}

.ll-special-check-source {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-left: 2.75rem;
    margin-top: 0.25rem;
}

.ll-special-check-status.found {
    color: #ef4444;
    font-weight: 600;
}

.ll-special-check-status.not_verified {
    color: #9ca3af;
}

/* Zone Check - Not Checked */
.ll-vml-zone-check.not_checked {
    opacity: 0.6;
}

.ll-vml-zone-check-icon.not_checked {
    background: rgba(107, 114, 128, 0.08);
    color: #9ca3af;
}

.ll-vml-zone-check-status.not_checked {
    color: #9ca3af;
}

/* EC Cross Reference */
.ll-ec-cross-ref {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.ll-ec-cross-ref-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    min-width: 120px;
}

.ll-ec-cross-ref-stat.matched {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ll-ec-cross-ref-stat.missing {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ll-ec-cross-ref-stat.extra {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ll-ec-cross-ref-count {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.ll-ec-cross-ref-stat.matched .ll-ec-cross-ref-count { color: #16a34a; }
.ll-ec-cross-ref-stat.missing .ll-ec-cross-ref-count { color: #d97706; }
.ll-ec-cross-ref-stat.extra .ll-ec-cross-ref-count { color: #6366f1; }

.ll-ec-cross-ref-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Document Analysis - Expandable Cards */
.ll-doc-item.no-docs {
    opacity: 0.6;
    border-style: dashed;
}

.ll-doc-item.expanded {
    border-color: #ff6725;
    background: #fffcfa;
}

.ll-doc-expand-icon {
    transition: transform 0.25s ease;
    color: #a1a1aa;
    flex-shrink: 0;
}

.ll-doc-item.expanded .ll-doc-expand-icon {
    transform: rotate(180deg);
    color: #ff6725;
}

.ll-doc-expanded {
    display: none;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    padding-left: 2.625rem;
    border-top: 1px solid #f4f4f5;
}

.ll-doc-item.expanded .ll-doc-expanded {
    display: block;
}

.ll-doc-detail-card {
    padding: 0.625rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.375rem;
    border: 1px solid #f0f0f2;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ll-doc-detail-card:last-child {
    margin-bottom: 0;
}

.ll-doc-detail-card:hover {
    border-color: #e4e4e7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ll-doc-detail-card.ll-doc-highlight {
    outline: 2px solid #FF6725;
    outline-offset: 2px;
    background: #fff7ed;
    animation: ll-doc-pulse 0.6s ease-in-out 2;
}

@keyframes ll-doc-pulse {
    0%, 100% { outline-color: #FF6725; }
    50% { outline-color: transparent; }
}

.ll-doc-detail-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ll-doc-file-icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    color: #ff6725;
    flex-shrink: 0;
    background: rgba(255, 103, 37, 0.06);
    border-radius: 6px;
}

.ll-doc-detail-info {
    flex: 1;
    min-width: 0;
}

.ll-doc-detail-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: #18181b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ll-doc-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
}

.ll-doc-detail-num,
.ll-doc-detail-date {
    font-size: 0.6875rem;
    color: #a1a1aa;
}

.ll-doc-detail-num::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #d4d4d8;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.ll-doc-detail-meta span:last-child::after {
    display: none;
}

.ll-doc-detail-parties {
    font-size: 0.75rem;
    color: #52525b;
    margin: 0.375rem 0 0;
    padding-left: 2.25rem;
    line-height: 1.4;
}

.ll-doc-findings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding-left: 2.25rem;
}

.ll-doc-finding-tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    background: rgba(255, 103, 37, 0.05);
    border-radius: 100px;
    font-size: 0.625rem;
    color: #71717a;
}

.ll-doc-anomalies {
    margin-top: 0.375rem;
    padding-left: 2.25rem;
}

.ll-doc-anomaly {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.125rem 0;
    font-size: 0.75rem;
    color: #c2410c;
}

.ll-doc-anomaly svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.ll-doc-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: #ff6725;
    text-decoration: none;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 103, 37, 0.15);
    transition: all 0.15s;
}

.ll-doc-view-link:hover {
    background: rgba(255, 103, 37, 0.06);
    border-color: rgba(255, 103, 37, 0.3);
    text-decoration: none;
}

.ll-doc-item-status.not-uploaded {
    color: #9ca3af;
    border-color: transparent;
}

.ll-doc-item-status.expected {
    color: #d97706;
}

.ll-doc-item.expected-docs {
    background: #fffbeb;
    border-color: #fde68a;
}

.ll-doc-item.expected-docs .ll-doc-type-icon {
    background: rgba(245, 158, 11, 0.08);
}

.ll-doc-item.expected-docs .ll-doc-type-icon svg {
    color: #d97706;
}

/* ========================================
   ADDITIONAL SEARCHES - REDESIGNED
   ======================================== */
.ll-addsearch-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ll-addsearch-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: var(--ll-cur-pointer, pointer);
}

.ll-addsearch-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Status-based card colors */
.ll-addsearch-item.pass {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.3);
}
.ll-addsearch-item.pass:hover {
    border-color: rgba(34, 197, 94, 0.45);
}

.ll-addsearch-item.warning {
    background: #fef7f7;
    border-color: rgba(239, 68, 68, 0.25);
}
.ll-addsearch-item.warning:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.ll-addsearch-item.error {
    background: #f9fafb;
    border-color: rgba(107, 114, 128, 0.25);
}

.ll-addsearch-item.pending {
    background: #f5f3ff;
    border-color: rgba(99, 102, 241, 0.2);
}

.ll-addsearch-item.not_checked {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.ll-addsearch-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Status-based icon colors */
.ll-addsearch-item.pass .ll-addsearch-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.ll-addsearch-item.warning .ll-addsearch-icon {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}
.ll-addsearch-item.error .ll-addsearch-icon {
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
}
.ll-addsearch-item.pending .ll-addsearch-icon {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}
.ll-addsearch-item.not_checked .ll-addsearch-icon {
    background: rgba(107, 114, 128, 0.06);
    color: #9ca3af;
}

.ll-addsearch-icon svg {
    width: 20px;
    height: 20px;
}

.ll-addsearch-body {
    flex: 1;
    min-width: 0;
}

.ll-addsearch-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.375rem;
}

.ll-addsearch-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.ll-addsearch-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #92400e;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 9999px;
    white-space: nowrap;
}

.ll-badge-pass {
    color: #166534;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}
.ll-badge-warning {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}
.ll-badge-error {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.25);
}
.ll-badge-pending {
    color: #3730a3;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}

.ll-addsearch-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.25rem 0;
}

.ll-cersai-charges {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}
.ll-cersai-charges strong {
    color: #991b1b;
    display: block;
    margin-bottom: 0.375rem;
}
.ll-cersai-charges ul {
    margin: 0;
    padding-left: 1.25rem;
}
.ll-cersai-charges li {
    color: #7f1d1d;
    margin-bottom: 0.25rem;
}

/* CERSAI per-asset detail cards */
.ll-cersai-search-params {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    margin: 0.5rem 0 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    color: #475569;
}
.ll-cersai-search-params strong {
    color: #64748b;
    font-weight: 500;
    margin-right: 0.25rem;
}
.ll-cersai-survey-wrap {
    display: block;
    width: 100%;
    line-height: 1.8;
    word-wrap: break-word;
}
.ll-survey-badge {
    display: contents;
    padding: 0.1rem 0.35rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: #334155;
    white-space: nowrap;
    margin: 0.1rem 0;
}

/* CERSAI audit trail row */
.ll-cersai-audit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.ll-cersai-audit-row .ll-addsearch-meta {
    margin: 0;
}

/* CERSAI download button */
.ll-cersai-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.ll-cersai-download-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    text-decoration: none;
}
.ll-cersai-download-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}
.ll-cersai-download-btn.loading svg {
    animation: ll-spin 1s linear infinite;
}
.ll-cersai-download-btn.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

/* CERSAI retry button */
.ll-cersai-retry-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.625rem 0 0.25rem;
}
.ll-cersai-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ll-cersai-retry-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}
.ll-cersai-retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.ll-cersai-retry-btn.loading svg {
    animation: ll-spin 1s linear infinite;
}
.ll-cersai-retry-btn.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}
.ll-cersai-retry-status {
    font-size: 0.75rem;
    color: #64748b;
}
@keyframes ll-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ll-cersai-assets {
    margin: 0.625rem 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ll-cersai-asset-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    font-size: 0.8125rem;
}
.ll-cersai-asset-card.active {
    border-color: #fecaca;
    background: #fef2f2;
}
.ll-cersai-asset-card.satisfied {
    border-color: #d1fae5;
    background: #f0fdf4;
}
.ll-cersai-asset-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.ll-cersai-asset-header strong {
    font-size: 0.8125rem;
    color: #1e293b;
}
.ll-cersai-asset-area {
    font-size: 0.75rem;
    color: #64748b;
}
.ll-cersai-satisfied-msg {
    color: #166534;
    font-size: 0.8125rem;
    font-style: italic;
    margin: 0;
}
.ll-cersai-si-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.ll-cersai-si-item {
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.ll-cersai-si-item.unsatisfied {
    border-color: #fca5a5;
    background: #fff5f5;
}
.ll-cersai-si-item.satisfied {
    border-color: #86efac;
    background: #f0fdf4;
}
.ll-cersai-si-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
}
.ll-cersai-si-label {
    color: #64748b;
    font-weight: 500;
    min-width: 7rem;
    flex-shrink: 0;
}
.ll-cersai-si-id {
    color: #475569;
    font-family: monospace;
    font-size: 0.75rem;
}
.ll-cersai-si-value {
    color: #1e293b;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ll-cersai-si-status {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: auto;
    white-space: nowrap;
}
/* The SI number row holds the label, a 12 digit id and the status badge. On a phone
   the three do not fit on one line, and without wrapping the badge ran off the card
   and was clipped. Let the badge drop to its own line instead. */
.ll-cersai-si-head {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}
.ll-cersai-si-head .ll-cersai-si-id {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ll-cersai-si-status.unsatisfied {
    color: #991b1b;
    background: #fee2e2;
}
.ll-cersai-si-status.satisfied {
    color: #166534;
    background: #dcfce7;
}
.ll-cersai-txn-history {
    margin-top: 0.5rem;
}
.ll-cersai-txn-history summary {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6366f1;
    cursor: var(--ll-cur-pointer, pointer);
}
.ll-cersai-txn-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
    margin-top: 0.375rem;
}
.ll-cersai-txn-table th {
    background: #f1f5f9;
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.ll-cersai-txn-table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.ll-addsearch-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 0.375rem;
}

.ll-addsearch-howto {
    margin-top: 0.375rem;
}

.ll-addsearch-howto summary {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6366f1;
    cursor: var(--ll-cur-pointer, pointer);
    user-select: none;
}

.ll-addsearch-howto summary:hover {
    color: #4f46e5;
}

.ll-addsearch-howto p {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 8px;
}

/* eCourts case table */
.ll-ecourt-cases {
    margin-top: 0.5rem;
}
.ll-ecourt-cases summary {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: var(--ll-cur-pointer, pointer);
    user-select: none;
}
.ll-ecourt-table-wrap {
    overflow-x: auto;
    margin-top: 0.375rem;
}
.ll-ecourt-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}
.ll-ecourt-table th {
    background: #f1f5f9;
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.ll-ecourt-table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
tr.ll-ecourt-pending {
    background: #fffbeb;
}
tr.ll-ecourt-pending:hover {
    background: #fef3c7;
}
tr.ll-ecourt-disposed {
    color: #94a3b8;
}
tr.ll-ecourt-disposed td {
    color: #94a3b8;
}
.ll-ecourt-status-pending {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.ll-ecourt-status-disposed {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ========================================
   SPECIAL LAND CHECKS - REDESIGNED
   ======================================== */
.ll-special-alert {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.ll-special-alert.found {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border: 1px solid #fecaca;
}

.ll-special-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ll-special-alert.found .ll-special-alert-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.ll-special-alert-icon svg {
    width: 18px;
    height: 18px;
}

.ll-special-alert-content {
    flex: 1;
}

.ll-special-alert-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: inline;
}

.ll-special-alert-badge {
    display: inline-flex;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 9999px;
    vertical-align: middle;
}

.ll-special-alert-desc {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: #b91c1c;
    line-height: 1.5;
    font-weight: 500;
}

.ll-special-alert-source {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.ll-special-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ll-special-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    border: 1px solid;
}

.ll-special-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ll-special-pill.clear {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.ll-special-pill.not_verified {
    background: rgba(107, 114, 128, 0.06);
    border-color: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.ll-special-pill-name {
    font-weight: 500;
}

.ll-special-pill-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .ll-addsearch-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ll-addsearch-icon {
        width: 36px;
        height: 36px;
    }

    .ll-special-pills {
        flex-direction: column;
    }
}

/* Red Flag Source Links */
.ll-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ff6725;
    text-decoration: none;
    transition: color 0.2s;
}

.ll-source-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* Doc ID Links */
.ll-doc-link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #ea580c;
    padding: 0 2px;
    transition: all 0.2s ease;
}
.ll-doc-link:hover {
    color: #c2410c;
    border-bottom-style: solid;
    background: rgba(234, 88, 12, 0.08);
    border-radius: 2px;
}

/* Report Card Badge - Fail */
.ll-report-card-badge.fail {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* PDF Capture Mode */
.pdf-capture-mode {
    overflow: visible !important;
    max-height: none !important;
}
.pdf-capture-mode * {
    overflow: visible !important;
    max-height: none !important;
}
.pdf-capture-mode .ll-report-download-btn,
.pdf-capture-mode .ll-simple-report-btn,
.pdf-capture-mode .ll-report-back-btn,
.pdf-capture-mode .ll-report-back-link,
.pdf-capture-mode .ll-section-nav,
.pdf-capture-mode .ll-download-fab,
.pdf-capture-mode .ll-action-strip,
.pdf-capture-mode .ll-doc-expand-icon,
.pdf-capture-mode .ll-risk-breakdown-toggle,
.pdf-capture-mode .ll-vml-zone-chevron,
.pdf-capture-mode .ll-show-more-surveys,
.pdf-capture-mode .ll-action-strip-link,
.pdf-capture-mode .ll-vml-view-link,
.pdf-capture-mode .ll-ec-download-btn {
    display: none !important;
}

/* Keep map contained in PDF - prevent overflow bleed across pages */
.pdf-capture-mode .ll-property-map,
.pdf-capture-mode .leaflet-container {
    overflow: hidden !important;
}

/* The blanket `overflow: visible` above is what opens the collapsed sections,
   but it also switches off every text-overflow:ellipsis clip on the page. A
   document name that merely ended in an ellipsis on screen then paints its
   full nowrap length and runs straight off the right edge of the page, which
   is how the Documents Scrutinized cards lost their right-hand column into
   the margin. The PDF reader wants the whole name anyway, so let it wrap.
   The long identifiers these fields carry (an encumbrance reference like
   EC/Online/189170228/2026, a document number like Z.O.X/H.D/C.NO.134/01/2026)
   hold no space to break at, so they also need an explicit break opportunity
   or they just set a wider minimum for every box around them.
   Kept to these fields on purpose: `anywhere` on every table cell collapses a
   wide multi-column table (the eCourts case list) to one character per line. */
.pdf-capture-mode .ll-doc-detail-name {
    white-space: normal !important;
    max-width: none !important;
    text-overflow: clip !important;
}
.pdf-capture-mode :is(.ll-doc-item-title, .ll-doc-detail-name,
.ll-doc-detail-meta, .ll-doc-detail-date, .ll-doc-link, .ll-doc-finding-text,
.ll-tax-detail-value, .ll-property-id-value) {
    overflow-wrap: anywhere;
}

/* Expanded states for PDF */
.pdf-capture-mode .ll-risk-breakdown-content {
    display: block !important;
}
.pdf-capture-mode .ll-doc-expanded {
    display: block !important;
}
.pdf-capture-mode .ll-vml-zone-content {
    max-height: none !important;
    overflow: visible !important;
}

/* Inline Title Flow Story for PDF */
.ll-story-inline-pdf {
    display: none;
}
.pdf-capture-mode .ll-story-inline-pdf {
    display: block;
    margin: 2rem 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}
.pdf-capture-mode .ll-story-inline-pdf .ll-story-modal-header {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fef3ee, #fff7f3);
}
.pdf-capture-mode .ll-story-inline-pdf .ll-story-modal-header::after {
    display: none;
}
.pdf-capture-mode .ll-story-inline-pdf .ll-story-modal-body {
    padding: 1.5rem;
    max-height: none;
    overflow: visible;
}
.pdf-capture-mode .ll-story-inline-pdf .ll-story-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   TITLE FLOW STORY
   ======================================== */

.ll-title-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #ff6725, #ff8a50);
    border: none;
    border-radius: 9999px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Inter Tight', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 103, 37, 0.25);
}
.ll-title-story-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 103, 37, 0.35);
    background: linear-gradient(135deg, #e85d1f, #ff6725);
}
.ll-title-story-btn svg {
    flex-shrink: 0;
    color: #fff;
}

/* Story Overlay */
.ll-story-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 1.5rem;
}
.ll-story-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Story Modal */
.ll-story-modal {
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(255, 103, 37, 0.06);
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.ll-story-overlay.visible .ll-story-modal {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.ll-story-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #fdf8f5 0%, #fff 60%, #fefbf9 100%);
    position: relative;
}
.ll-story-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(26, 26, 28, 0.1), rgba(26, 26, 28, 0.04), transparent);
}
.ll-story-modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.ll-story-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6725, #ff8a50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.25);
}
.ll-story-modal-icon svg {
    color: #fff;
}
.ll-story-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1c;
    margin: 0;
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: -0.01em;
}
.ll-story-modal-subtitle {
    font-size: 0.8125rem;
    color: #8b8f97;
    margin: 0.2rem 0 0;
    font-weight: 500;
}
.ll-story-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ll-story-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #374151;
}

/* Modal Body */
.ll-story-modal-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #fefcfa 0%, #fff 120px);
}

/* Scrollbar */
.ll-story-modal-body::-webkit-scrollbar {
    width: 6px;
}
.ll-story-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.ll-story-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
.ll-story-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

/* Story Content Typography */
.ll-story-content {
    padding: 1.75rem 2rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
    font-family: 'Inter Tight', sans-serif;
}
.ll-story-divider {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 1.5rem;
    margin-bottom: 0.625rem;
    border-top: 1px solid #e5e7eb;
}
.ll-story-divider:first-child {
    padding-top: 0;
    border-top: none;
}
.ll-story-divider + p,
.ll-story-divider + ul {
    margin-top: 0;
}
.ll-story-content p {
    margin: 0 0 1rem;
}
.ll-story-content p:last-child {
    margin-bottom: 0;
}
.ll-story-content strong {
    font-weight: 600;
    color: #1a1a1c;
}
.ll-story-content .ll-story-seller {
    color: #9a3412;
    background: rgba(234, 88, 12, 0.07);
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
}
.ll-story-content .ll-story-buyer {
    color: #166534;
    background: rgba(22, 163, 74, 0.07);
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
}
.ll-story-content .ll-arrow {
    font-size: 0.7em;
    opacity: 0.6;
}
.ll-story-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    background: rgba(255, 103, 37, 0.08);
    color: #c2410c;
    padding: 0.1rem 0.375rem;
    border-radius: 4px;
}
.ll-story-doc-link {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    background: rgba(255, 103, 37, 0.08);
    color: #c2410c;
    padding: 0.1rem 0.375rem;
    border-radius: 4px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(194, 65, 12, 0.4);
    transition: background 0.15s, border-color 0.15s;
}
.ll-story-doc-link:hover {
    background: rgba(255, 103, 37, 0.15);
    border-bottom-color: #c2410c;
}
.ll-story-content ul {
    margin: 0.5rem 0 1rem;
    padding-left: 0;
    list-style: none;
}
.ll-story-content li {
    position: relative;
    padding-left: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.ll-story-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6725;
}
.ll-story-content li:last-child {
    margin-bottom: 0;
}

/* Modal Footer */
.ll-story-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f9fafb;
    font-size: 0.75rem;
    color: #a1a5ad;
}
.ll-story-powered {
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.ll-story-powered::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6725, #ff8a50);
    display: inline-block;
}
.ll-story-disclaimer {
    font-style: italic;
}

/* Mobile */
@media (max-width: 640px) {
    .ll-story-overlay {
        padding: 0;
    }
    .ll-story-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    .ll-story-content {
        padding: 1.25rem 1rem;
    }
    .ll-story-divider {
        font-size: 0.6875rem;
    }
    .ll-story-modal-footer {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    .ll-title-story-btn span {
        display: none;
    }
}

/* Hide story button in PDF mode */
.pdf-capture-mode .ll-title-story-btn {
    display: none !important;
}

/* ========================================
   REVENUE PDF VIEWER MODAL
   ======================================== */

.ll-pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}
.ll-pdf-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.ll-pdf-modal {
    max-width: 900px;
    width: 100%;
    height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.ll-pdf-overlay.visible .ll-pdf-modal {
    transform: translateY(0) scale(1);
}

.ll-pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f0fdf9 0%, #fff 100%);
    flex-shrink: 0;
}
.ll-pdf-modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #0d9488;
    min-width: 0;
}
.ll-pdf-modal-header-left svg {
    flex-shrink: 0;
}
.ll-pdf-modal-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1c;
    font-family: 'Inter Tight', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ll-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.ll-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.ll-pdf-download-btn:hover {
    background: #ccfbf1;
    color: #0f766e;
}
.ll-pdf-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ll-pdf-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.ll-pdf-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
}
.ll-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* Revenue PDF Buttons Row */
.ll-revenue-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ll-revenue-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Inter Tight', sans-serif;
    color: #0f766e;
    background: #fff;
    border: 1px solid #99f6e4;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ll-revenue-pdf-btn:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}
.ll-revenue-pdf-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.ll-revenue-pdf-btn svg {
    flex-shrink: 0;
    color: #14b8a6;
}

/* Mobile: PDF modal + buttons */
@media (max-width: 640px) {
    .ll-pdf-overlay {
        padding: 0;
    }
    .ll-pdf-modal {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .ll-revenue-pdf-buttons {
        gap: 0.375rem;
        padding: 0.75rem;
    }
    .ll-revenue-pdf-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Hide PDF buttons in PDF capture mode */
.pdf-capture-mode .ll-revenue-pdf-buttons,
.pdf-capture-mode .ll-pdf-overlay {
    display: none !important;
}

/* ===================================================================
   Seller background check in Additional Searches (.ll-sbc): the intake
   the owner fills before the credits are committed, the wait, and the
   delivered card. Same grammar as the LandLens seller-check page: dark
   plate for the subject and verdict, four-source strip, findings with a
   severity rail and an identity band. Hairline + shadow, never a one-sided
   border. Report palette (slate) with the LandLens primary for the action.
   =================================================================== */
.ll-sbc { margin-top: 0.75rem; font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; }
.ll-sbc-intake { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.ll-sbc-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ll-sbc-lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ll-sbc-lbl em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; margin-left: 0.35rem; }
.ll-sbc-intake input[type="text"], .ll-sbc-intake textarea { width: 100%; box-sizing: border-box; font: 500 0.85rem/1.4 inherit; color: #0f172a; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0.55rem 0.7rem; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; resize: vertical; }
.ll-sbc-intake input::placeholder, .ll-sbc-intake textarea::placeholder { color: #94a3b8; }
.ll-sbc-intake input:focus, .ll-sbc-intake textarea:focus { border-color: #864ffe; box-shadow: 0 0 0 3px rgba(134, 79, 254, .14); background: #fff; }
.ll-sbc-field.is-name input { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; padding: 0.6rem 0.75rem; }
.ll-sbc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.6rem; }
/* The identity row: who the seller's spouse or father is (a relation and a name), and the age. */
.ll-sbc-row.is-identity { grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem); }
.ll-sbc-relative { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 0.4rem; }
.ll-sbc-intake select { width: 100%; box-sizing: border-box; font: 500 0.85rem/1.4 inherit; color: #0f172a; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0.55rem 0.6rem; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.ll-sbc-intake select:focus { border-color: #864ffe; box-shadow: 0 0 0 3px rgba(134, 79, 254, .14); background: #fff; }
@media (max-width: 640px) { .ll-sbc-row.is-identity { grid-template-columns: minmax(0, 1fr); } .ll-sbc-relative { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); } }
.ll-sbc-segs { display: flex; background: #f1f5f9; border-radius: 9px; padding: 3px; gap: 2px; }
.ll-sbc-seg { flex: 1; min-width: 0; position: relative; }
.ll-sbc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ll-sbc-seg span { display: block; text-align: center; border-radius: 7px; padding: 0.45rem 0.25rem; font-size: 0.78rem; font-weight: 600; color: #64748b; transition: background .15s, color .15s, box-shadow .15s; }
.ll-sbc-seg input:checked + span { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 1px #e2e8f0; }
.ll-sbc-cov { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; }
.ll-sbc-cov span { font-size: 0.68rem; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.18rem 0.6rem; white-space: nowrap; }
.ll-sbc-cov span b { color: #334155; margin-right: 0.2rem; }
.ll-sbc-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.15rem; }
.ll-sbc-run { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: none; border-radius: 999px; background: #13171e; color: #fff; font: 600 0.8rem inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(19, 23, 30, .22); transition: background .15s, transform .15s; }
.ll-sbc-run:hover:not(:disabled) { background: #242a35; transform: translateY(-1px); }
.ll-sbc-run:disabled { opacity: .6; cursor: default; box-shadow: none; }
.ll-sbc-hint { font-size: 0.72rem; color: #94a3b8; }
.ll-sbc-status { font-size: 0.75rem; color: #475569; }
.ll-sbc-status.is-err { color: #b91c1c; }
.ll-sbc-rerun { margin-top: 0.6rem; }
.ll-sbc-rerun > summary { cursor: pointer; font-size: 0.76rem; font-weight: 600; color: #64748b; list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.ll-sbc-rerun > summary::-webkit-details-marker { display: none; }
.ll-sbc-rerun > summary::before { content: "+"; font-size: 0.9rem; color: #94a3b8; }
.ll-sbc-rerun[open] > summary::before { content: "\2212"; }

.ll-sbc-running { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 0.95rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.8rem; line-height: 1.5; color: #475569; }
.ll-sbc-running b { display: block; color: #0f172a; margin-bottom: 0.1rem; }
.ll-sbc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #864ffe; margin-top: 5px; animation: llSbcPulse 1.6s ease-out infinite; }
@keyframes llSbcPulse { 0% { box-shadow: 0 0 0 0 rgba(134, 79, 254, .45); } 100% { box-shadow: 0 0 0 9px rgba(134, 79, 254, 0); } }

.ll-sbc-card { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .05); }
.ll-sbc-cover { position: relative; overflow: hidden; padding: 1rem 1.1rem 0.95rem; color: #eef1f6; background: #13171e; --sbc-glow: rgba(238, 241, 246, .10); }
.ll-sbc-cover.is-attention { --sbc-glow: rgba(255, 103, 37, .34); }
.ll-sbc-cover.is-found { --sbc-glow: rgba(249, 235, 87, .22); }
.ll-sbc-cover.is-clear { --sbc-glow: rgba(198, 245, 111, .22); }
.ll-sbc-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 100% 0%, var(--sbc-glow) 0%, transparent 58%), repeating-linear-gradient(0deg, rgba(238, 241, 246, .035) 0 1px, transparent 1px 7px); }
.ll-sbc-cover > * { position: relative; }
.ll-sbc-eyebrow { display: flex; align-items: center; gap: 0.5rem; font-size: 0.62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 241, 246, .6); }
.ll-sbc-eyebrow em { margin-left: auto; flex: none; white-space: nowrap; font-style: normal; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.64rem; letter-spacing: .04em; text-transform: none; color: rgba(238, 241, 246, .5); }
.ll-sbc-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 0.5rem; overflow-wrap: anywhere; }
.ll-sbc-sub { font-size: 0.74rem; color: rgba(238, 241, 246, .62); margin-top: 0.25rem; }
.ll-sbc-verdict { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid rgba(238, 241, 246, .12); }
.ll-sbc-verdict b { font-size: 0.86rem; font-weight: 650; letter-spacing: -.01em; }
.ll-sbc-cover.is-attention .ll-sbc-verdict b { color: #ffcdb8; }
.ll-sbc-cover.is-found .ll-sbc-verdict b { color: #fbf1a1; }
.ll-sbc-cover.is-clear .ll-sbc-verdict b { color: #d9f9a3; }
.ll-sbc-body { padding: 0.8rem 0.9rem 0.9rem; }
.ll-sbc-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.ll-sbc-tile { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; padding: 0.55rem 0.65rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; }
.ll-sbc-tile b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.15rem; font-weight: 700; line-height: 1; color: #0f172a; font-variant-numeric: tabular-nums; }
.ll-sbc-tile b.na { color: #94a3b8; }
.ll-sbc-tile span { font-size: 0.62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; line-height: 1.25; }
.ll-sbc-tile span u { text-decoration: none; font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; }
.ll-sbc-tile i { font-style: normal; font-size: 0.66rem; color: #64748b; line-height: 1.3; overflow-wrap: anywhere; }
.ll-sbc-tile.is-attention { background: #fef2f2; border-color: #fecaca; } .ll-sbc-tile.is-attention b { color: #dc2626; }
.ll-sbc-tile.is-found { background: #fffbeb; border-color: #fde68a; } .ll-sbc-tile.is-found b { color: #b45309; }
.ll-sbc-tile.is-clear { background: #f0fdf4; border-color: #bbf7d0; } .ll-sbc-tile.is-clear b { color: #15803d; }
.ll-sbc-tile.is-failed, .ll-sbc-tile.is-muted { border-style: dashed; }
.ll-sbc-sum { margin: 0.7rem 0 0; font-size: 0.8rem; line-height: 1.6; color: #334155; padding: 0.55rem 0.75rem; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.ll-sbc-court { margin: 0.5rem 0 0; font-size: 0.74rem; line-height: 1.5; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 0.45rem 0.7rem; }
.ll-sbc-sec { font-size: 0.64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #64748b; margin: 0.8rem 0 0.45rem; }
.ll-sbc-sec em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; margin-left: 0.4rem; }
.ll-sbc-list { display: flex; flex-direction: column; gap: 0.45rem; }
.ll-sbc-f { display: flex; gap: 0.6rem; align-items: stretch; padding: 0.55rem 0.7rem 0.55rem 0.55rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.ll-sbc-f:hover { border-color: #cbd5e1; box-shadow: 0 3px 12px rgba(15, 23, 42, .07); transform: translateY(-1px); }
/* Severity is carried by the whole finding (a faint tint and a matching hairline all
   round) plus its HIGH / MEDIUM / LOW tag, never by a bar down one edge. */
.ll-sbc-f.is-high { border-color: #fecaca; background: #fffafa; }
.ll-sbc-f.is-medium { border-color: #fde68a; background: #fffdf7; }
.ll-sbc-fb { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.ll-sbc-fb > b { font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: #0f172a; overflow-wrap: anywhere; }
.ll-sbc-fm { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: center; font-size: 0.66rem; color: #64748b; }
.ll-sbc-fm i { font-style: normal; }
.ll-sbc-fm i.dom { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.64rem; color: #334155; }
.ll-sbc-fm i.tier { padding: 0.05rem 0.4rem; border-radius: 999px; border: 1px solid #cbd5e1; font-size: 0.6rem; font-weight: 600; text-transform: capitalize; }
.ll-sbc-fm i.lead { color: #6d28d9; font-weight: 600; }
.ll-sbc-fm em.sev { font-style: normal; font-weight: 700; font-size: 0.6rem; letter-spacing: .06em; text-transform: uppercase; padding: 0.05rem 0.4rem; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.ll-sbc-fm em.sev.is-high { background: #fef2f2; color: #dc2626; } .ll-sbc-fm em.sev.is-medium { background: #fffbeb; color: #b45309; }
.ll-sbc-id { align-self: flex-start; font-size: 0.66rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; }
.ll-sbc-id b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; color: inherit; }
.ll-sbc-id.is-strong { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.ll-sbc-id.is-partial { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.ll-sbc-id.is-weak { background: #f1f5f9; border-style: dashed; }
.ll-sbc-more { font-size: 0.7rem; color: #64748b; margin: 0.4rem 0 0; }
.ll-sbc-leads { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.75rem; }
.ll-sbc-leads-l { font-size: 0.64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; margin-right: 0.15rem; }
.ll-sbc-lead { font-size: 0.7rem; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.12rem 0.55rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-sbc-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid #e2e8f0; }
.ll-sbc-foot > span { flex: 1 1 220px; min-width: 0; font-size: 0.66rem; line-height: 1.5; color: #94a3b8; }
.ll-sbc-open { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.76rem; font-weight: 600; color: #fff !important; background: #13171e; border-radius: 999px; padding: 0.5rem 0.9rem; text-decoration: none; box-shadow: 0 4px 12px rgba(19, 23, 30, .22); transition: background .15s, transform .15s; }
.ll-sbc-open:hover { background: #242a35; transform: translateY(-1px); }
@media (max-width: 640px) {
    .ll-sbc-row { grid-template-columns: 1fr; }
    .ll-sbc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ll-sbc-name { font-size: 1.15rem; }
    .ll-sbc-open { width: 100%; justify-content: center; }
    .ll-sbc-run { width: 100%; justify-content: center; }
}

/* the case file button inside the eCourts table: compact, the table's own scale */
.ll-ecourt-table .ll-case-open { padding: 3px 9px 3px 7px; font-size: 11.5px; gap: 5px; }
.ll-ecourt-table .ll-case-open svg { width: 12px; height: 12px; }

/* Encumbrance entries grouped survey by survey, so each parcel reads as its own chain
   instead of the register's interleaved order. */
.ll-ec-survey-lead {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.ll-ec-survey-group {
    margin: 0 0 1.5rem;
}

.ll-ec-survey-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0 0.4rem;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.ll-ec-survey-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.ll-ec-survey-count {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

/* The same entry can sit under more than one survey. Say so on the row rather than
   letting the reader think it was registered twice. */
.ll-ec-also {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 0.25rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.6875rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ll-ec-survey-head {
        flex-direction: column;
        gap: 0.15rem;
    }

    .ll-ec-also {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
        white-space: normal;
    }
}

.ll-ec-survey-divider {
    margin: 1.75rem 0 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.ll-ec-survey-group.is-secondary .ll-ec-survey-title {
    font-weight: 500;
    color: #4b5563;
}

/* The register's own spelling of a parcel, filed with the parcel it relates to. */
.ll-ec-survey-relation {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
}

/* ── Municipal property tax demand rows (report, outside Chennai) ──────────
   The state municipal register answers half-year by half-year. The card
   summarises, and this foldable table carries the periods themselves, since
   which half-years are unpaid is what a buyer actually has to settle.
   ───────────────────────────────────────────────────────────────────────── */
.ll-tax-demands {
    margin-top: 0.75rem;
    border-top: 1px solid #f0ece8;
    padding-top: 0.625rem;
}

.ll-tax-demands > summary {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: #7a6f66;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ll-tax-demands > summary::-webkit-details-marker {
    display: none;
}

.ll-tax-demands > summary::before {
    content: "\203A";
    display: inline-block;
    transition: transform 0.15s ease;
    font-size: 1rem;
    line-height: 1;
}

.ll-tax-demands[open] > summary::before {
    transform: rotate(90deg);
}

.ll-tax-demands > summary:hover {
    color: #1a1a1a;
}

/* The card is one column of a grid, so five columns of figures are wider than the card. The
   table scrolls inside its own box rather than spilling over the card edge, and the cells are
   tightened so it usually does not have to. */
.ll-tax-demands-scroll {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.ll-tax-demands-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6875rem;
}

.ll-tax-demands-table th {
    text-align: left;
    font-weight: 500;
    color: #a09890;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.5625rem;
    padding: 0.375rem 0.3125rem;
    border-bottom: 1px solid #f0ece8;
    white-space: nowrap;
}

.ll-tax-demands-table td {
    padding: 0.4375rem 0.3125rem;
    border-bottom: 1px solid #f8f5f2;
    color: #4a4440;
}

/* The money columns never wrap; the period and tax name may, which is what lets the table
   fit a single grid column instead of scrolling. */
.ll-tax-demands-table td.num,
.ll-tax-demands-table th.num {
    white-space: nowrap;
}

.ll-tax-demands-table th.num,
.ll-tax-demands-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ll-tax-demands-table tr.is-due td {
    background: #fdf4ee;
    color: #a55a12;
}

.ll-tax-demands-note {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #a09890;
}

/* ========================================
   LOCATION AND SURROUNDINGS (findings ledger)
   A numbered list inside the standard report card. Rows are divided by a neutral
   hairline. A concern is signalled by a small label, never by a coloured edge.
   ======================================== */

.ll-locfind {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ll-locfind-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 0.875rem;
    align-items: start;
    padding: 0.9375rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ll-locfind-row:first-child {
    padding-top: 0;
}

.ll-locfind-row:last-child {
    border-bottom: 0;
}

.ll-locfind-num {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    line-height: 1.6;
    padding-top: 0.0625rem;
}

.ll-locfind-body {
    min-width: 0;
}

.ll-locfind-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.375rem;
    padding: 0.125rem 0.5625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ll-locfind-tag-concern {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.ll-locfind-tag-unchecked {
    color: #92400e;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.ll-locfind-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
    overflow-wrap: anywhere;
}

.ll-locfind-source {
    margin: 0.3125rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.ll-locfind-basis {
    margin: 1.125rem 0 0;
    padding-top: 0.9375rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #64748b;
}

@media (max-width: 640px) {
    .ll-locfind-row {
        grid-template-columns: 1.625rem minmax(0, 1fr);
        column-gap: 0.625rem;
        padding: 0.8125rem 0;
    }

    .ll-locfind-text {
        font-size: 0.84375rem;
    }
}

@media print {
    .ll-locfind-row {
        break-inside: avoid;
    }
}

/* A card's icon keeps its square. It was free to shrink, so beside a two-line subtitle on a
   phone it was squeezed to a 23px by 32px pill, on every card of the report. */
.ll-report-card-header-left > .ll-report-card-icon {
    flex-shrink: 0;
}
