:root {
    --tlai-navy: #071E3D;
    --tlai-deep-blue: #0B2F5B;
    --tlai-blue: #1557C0;
    --tlai-gold: #D4A017;
    --tlai-soft-gold: #F2C94C;
    --tlai-ink: #102033;
    --tlai-muted: #667085;
    --tlai-bg: #F5F7FB;
    --tlai-card: #FFFFFF;
    --tlai-line: #E5EAF1;
    --tlai-success: #16A34A;
    --tlai-warning: #F59E0B;
    --tlai-danger: #DC2626;
    --tlai-shadow: 0 18px 48px rgba(7, 30, 61, .12);
}

/* Premium dark public homepage */
.tlai-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 10, 15, 0.92);
    border-bottom: 1px solid rgba(217, 164, 7, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.tlai-nav .nav-link {
    color: #d8d3c3;
    font-weight: 750;
}

.tlai-nav .nav-link:hover,
.tlai-nav .nav-link.active {
    color: #e8c97a;
}

.tlai-nav .nav-cta,
.tlai-nav .tlai-btn.gold {
    background: linear-gradient(135deg, #d9a407, #e8c97a);
    color: #080a0f;
    border-color: rgba(232, 201, 122, 0.7);
}

.tlai-nav .brand-wordmark,
.tlai-footer .brand-wordmark {
    color: #f8fafc;
}

.tlai-nav .brand-wordmark span,
.tlai-footer .brand-wordmark span {
    color: #e8c97a;
}

.tlai-nav .mobile-menu-toggle {
    background: rgba(217, 164, 7, 0.12);
    border: 1px solid rgba(217, 164, 7, 0.24);
    color: #f8fafc;
}

.tlai-home-premium {
    --premium-bg: #080a0f;
    --premium-bg-2: #111827;
    --premium-card: #161b26;
    --premium-card-2: #1c1c28;
    --premium-gold: #d9a407;
    --premium-gold-light: #e8c97a;
    --premium-text: #f8fafc;
    --premium-muted: #b8b4a8;
    --premium-muted-blue: #94a3b8;
    --premium-border: rgba(217, 164, 7, 0.18);
    background: var(--premium-bg);
    color: var(--premium-text);
    font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.tlai-home-premium *,
.tlai-home-premium *::before,
.tlai-home-premium *::after {
    box-sizing: border-box;
}

.tlai-home-premium h1,
.tlai-home-premium h2,
.tlai-home-premium h3 {
    color: var(--premium-text);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    margin: 0;
}

.premium-wrap {
    max-width: 1180px;
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.premium-hero {
    position: relative;
    min-height: 720px;
    padding: 118px 0 86px;
    background:
        radial-gradient(circle at 80% 24%, rgba(27, 83, 178, 0.28), transparent 32%),
        radial-gradient(circle at 20% 16%, rgba(217, 164, 7, 0.14), transparent 28%),
        linear-gradient(135deg, #080a0f 0%, #0b1526 48%, #111827 100%);
    border-bottom: 1px solid var(--premium-border);
    isolation: isolate;
}

.premium-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(217, 164, 7, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 164, 7, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 78%);
}

.premium-hero-inner,
.premium-presentation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    gap: 54px;
    align-items: center;
}

.premium-badge,
.premium-section-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--premium-border);
    border-radius: 999px;
    background: rgba(217, 164, 7, 0.08);
    color: var(--premium-gold-light);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.premium-hero h1 {
    max-width: 720px;
    margin-top: 24px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.95;
}

.premium-hero h1 span {
    color: var(--premium-gold-light);
}

.premium-lead,
.premium-brand-line {
    max-width: 690px;
    color: #d9e2f1;
    font-size: 18px;
    line-height: 1.7;
}

.premium-lead {
    margin: 24px 0 0;
}

.premium-brand-line {
    margin: 12px 0 0;
    color: var(--premium-muted);
    font-size: 15px;
}

.premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.premium-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 6px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.premium-btn:hover {
    transform: translateY(-1px);
}

.premium-btn-gold {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-light));
    color: #080a0f;
    border: 1px solid rgba(232, 201, 122, 0.82);
    box-shadow: 0 14px 34px rgba(217, 164, 7, 0.24);
}

.premium-btn-outline,
.premium-btn-ghost {
    border: 1px solid var(--premium-border);
    color: var(--premium-text);
    background: rgba(255, 255, 255, 0.04);
}

.premium-btn-ghost {
    color: var(--premium-gold-light);
}

.premium-chip-row,
.premium-tag-row,
.premium-note-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-chip-row {
    margin-top: 28px;
}

.premium-chip-row span,
.premium-tag-row span,
.premium-note-row span {
    border: 1px solid rgba(217, 164, 7, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #efe7d1;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
}

.premium-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: 28px;
}

.premium-stat-row div {
    min-height: 84px;
    padding: 16px;
    border: 1px solid rgba(217, 164, 7, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.premium-stat-row strong,
.premium-stat-row span {
    display: block;
}

.premium-stat-row strong {
    color: var(--premium-gold-light);
    font-size: 15px;
}

.premium-stat-row span {
    margin-top: 5px;
    color: var(--premium-muted-blue);
    font-size: 12px;
}

.premium-analysis-card,
.premium-ppt-preview {
    position: relative;
    border: 1px solid rgba(232, 201, 122, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        #121827;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(217, 164, 7, 0.05);
}

.premium-analysis-card {
    padding: 26px;
}

.premium-analysis-card::before {
    content: "Privacy-first";
    position: absolute;
    right: 24px;
    top: -17px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff7dd;
    color: #0b1220;
    font-size: 12px;
    font-weight: 900;
}

.analysis-card-top,
.analysis-metrics,
.analysis-actions {
    display: grid;
    gap: 12px;
}

.analysis-card-top {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.analysis-card-top span,
.analysis-metrics span,
.ppt-topline {
    display: block;
    color: var(--premium-muted-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.analysis-card-top strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
}

.analysis-card-top em {
    border-radius: 999px;
    background: rgba(217, 164, 7, 0.12);
    color: var(--premium-gold-light);
    font-style: normal;
    font-weight: 900;
    padding: 8px 11px;
}

.analysis-source {
    margin: 16px 0 0;
    color: var(--premium-muted);
}

.analysis-metrics {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
}

.analysis-metrics div,
.analysis-summary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
}

.analysis-metrics strong {
    display: block;
    margin-top: 7px;
    color: #f8fafc;
}

.analysis-summary {
    margin-top: 16px;
}

.analysis-summary strong {
    color: var(--premium-gold-light);
}

.analysis-summary p {
    margin: 8px 0 0;
    color: #d8deea;
    line-height: 1.6;
}

.analysis-actions {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
}

.analysis-actions a {
    border-radius: 7px;
    background: rgba(217, 164, 7, 0.12);
    color: var(--premium-gold-light);
    font-weight: 900;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}

.premium-section {
    padding: 92px 0;
    background: var(--premium-bg);
}

.premium-section-alt {
    background: var(--premium-bg-2);
}

.premium-section h2 {
    max-width: 820px;
    margin-top: 16px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.03;
}

.premium-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.premium-section-head p,
.premium-section-subtitle,
.premium-section p {
    max-width: 760px;
    color: var(--premium-muted);
    line-height: 1.72;
}

.premium-card-grid,
.premium-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.premium-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-card,
.premium-tool-card {
    min-height: 210px;
    border: 1px solid rgba(217, 164, 7, 0.16);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        var(--premium-card);
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.premium-card-icon,
.premium-card-badge {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 164, 7, 0.13);
    color: var(--premium-gold-light);
    font-size: 12px;
    font-weight: 900;
}

.premium-card h3,
.premium-tool-card strong {
    display: block;
    margin-top: 18px;
    font-size: 22px;
}

.premium-card p,
.premium-tool-card p {
    color: var(--premium-muted);
    line-height: 1.65;
}

.premium-inline-link,
.premium-tool-card em {
    display: inline-flex;
    margin-top: 10px;
    color: var(--premium-gold-light);
    font-style: normal;
    font-weight: 900;
    text-decoration: none;
}

.premium-tool-card {
    min-height: 230px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.premium-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 201, 122, 0.42);
}

.premium-presentation-section {
    background:
        radial-gradient(circle at 82% 45%, rgba(217, 164, 7, 0.13), transparent 28%),
        linear-gradient(135deg, #0b1020, #080a0f);
}

.premium-presentation-grid {
    gap: 44px;
}

.premium-tag-row {
    margin-top: 22px;
}

.premium-ppt-preview {
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
}

.premium-ppt-preview::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(217, 164, 7, 0.12);
}

.premium-ppt-preview h3 {
    margin-top: 22px;
    max-width: 350px;
    font-size: 34px;
}

.ppt-bars {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.ppt-bars span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--premium-gold), rgba(232, 201, 122, 0.2));
}

.ppt-bars span:nth-child(2) {
    width: 74%;
}

.ppt-bars span:nth-child(3) {
    width: 56%;
}

.ppt-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.ppt-mini-grid div {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    padding: 12px;
}

.ppt-mini-grid strong,
.ppt-mini-grid em {
    display: block;
}

.ppt-mini-grid strong {
    color: var(--premium-muted-blue);
    font-size: 11px;
    text-transform: uppercase;
}

.ppt-mini-grid em {
    margin-top: 6px;
    color: #f8fafc;
    font-style: normal;
    font-weight: 850;
}

.premium-privacy-section {
    background:
        linear-gradient(180deg, rgba(217, 164, 7, 0.05), transparent),
        var(--premium-bg);
}

.premium-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.premium-trust-strip span {
    border: 1px solid rgba(217, 164, 7, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--premium-muted);
    padding: 9px 13px;
    font-weight: 800;
}

.premium-final-cta {
    border: 1px solid rgba(232, 201, 122, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 0%, rgba(217, 164, 7, 0.14), transparent 32%),
        linear-gradient(135deg, #111827, #0b1020);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
}

.premium-final-cta p {
    max-width: 720px;
    color: var(--premium-muted);
}

.premium-note-row {
    margin-top: 24px;
}

.tlai-footer {
    background: #080a0f;
    border-top: 1px solid rgba(217, 164, 7, 0.18);
    color: var(--premium-text, #f8fafc);
}

.tlai-footer p,
.tlai-footer a {
    color: #b8b4a8;
}

.tlai-footer a:hover {
    color: #e8c97a;
}

/* Final public header sizing override for the premium homepage release. */
.tlai-nav,
.tlai-nav-inner,
.navbar-inner {
    min-height: 52px;
    height: 52px;
}

.tlai-nav .nav-link,
.tlai-nav .tlai-links a {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tlai-nav .nav-cta,
.tlai-nav .tlai-btn.gold {
    min-height: 30px;
    border-radius: 2px;
    padding: 8px 13px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .tlai-nav,
    .tlai-nav-inner,
    .navbar-inner {
        min-height: 60px;
        height: 60px;
    }
}

/* Deployed public-page premium surface override. */
.tlai-body .tlai-section,
.tlai-body .legal-page,
.tlai-body .pdf-tools-section,
.tlai-body .pdf-tool-page,
.tlai-body .pdf-legal-band {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .legal-page,
.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head {
    background: #111119;
}

.tlai-body .tlai-card,
.tlai-body .legal-page-card,
.tlai-body .blog-guide-card,
.tlai-body .pdf-tool-card,
.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .guided-tool-card,
.tlai-body .workspace-differentiators,
.tlai-body .pdf-result-panel,
.tlai-body .pdf-coming-soon,
.tlai-body .pdf-text-preview,
.tlai-body .tlai-form {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
    color: #eee9df;
    box-shadow: none;
}

.tlai-body .pdf-tools-hero {
    background: radial-gradient(circle at 28% 20%, rgba(201, 168, 76, 0.08), transparent 24%), linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    padding: 96px 0 78px;
}

.tlai-body .pdf-tool-grid,
.tlai-body .blog-card-grid,
.tlai-body .guided-tool-grid {
    gap: 0;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tool-card,
.tlai-body .blog-guide-card,
.tlai-body .guided-tool-card {
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tools-hero h1,
.tlai-body .legal-page-header h1,
.tlai-body .guided-tools-hero h1,
.tlai-body .tlai-page-head h1 {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
}

.tlai-body .pdf-section-head h2,
.tlai-body .legal-content-section h2,
.tlai-body .pdf-tool-card h3,
.tlai-body .blog-guide-card strong,
.tlai-body .guided-tool-card h2 {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
}

.tlai-body .legal-content-section h2,
.tlai-body .pdf-faq summary {
    color: #e1c36f;
}

.tlai-body .tlai-muted,
.tlai-body .pdf-tool-card p,
.tlai-body .blog-guide-card span,
.tlai-body .guided-tool-card p,
.tlai-body .pdf-helper-text,
.tlai-body .pdf-limit-note {
    color: #9e998d;
}

.tlai-body .pdf-free-badge,
.tlai-body .page-kicker,
.tlai-body .guided-tool-status {
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tlai-body .pdf-icon,
.tlai-body .card-icon {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 2px;
    background: transparent;
    color: #c9a84c;
}

.tlai-body input,
.tlai-body textarea,
.tlai-body select {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .pdf-privacy-note,
.tlai-body .pdf-faq {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
    color: #c7c2b6;
}

/* Final premium dark theme override for all public pages. */
.tlai-body {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .tlai-section,
.tlai-body .legal-page,
.tlai-body .pdf-tools-section,
.tlai-body .pdf-tool-page {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .pdf-tools-section:nth-of-type(even),
.tlai-body .pdf-legal-band,
.tlai-body .legal-page,
.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head {
    background: #111119;
}

.tlai-body h1,
.tlai-body h2,
.tlai-body h3,
.tlai-body .section-title,
.tlai-body .card-title {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.tlai-body .tlai-muted,
.tlai-body p,
.tlai-body li,
.tlai-body .card-text {
    color: #9e998d;
}

.tlai-body .page-kicker,
.tlai-body .pdf-free-badge,
.tlai-body .guided-tool-status {
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tlai-body .tlai-card,
.tlai-body .legal-page-card,
.tlai-body .blog-guide-card,
.tlai-body .pdf-tool-card,
.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .guided-tool-card,
.tlai-body .workspace-differentiators,
.tlai-body .pdf-result-panel,
.tlai-body .pdf-coming-soon,
.tlai-body .pdf-text-preview,
.tlai-body .tlai-form {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
    color: #eee9df;
    box-shadow: none;
}

.tlai-body .tlai-card:hover,
.tlai-body .blog-guide-card:hover,
.tlai-body .pdf-tool-card:hover,
.tlai-body .guided-tool-card:hover {
    border-color: rgba(201, 168, 76, 0.32);
    background: #11131c;
}

.tlai-body .card-icon,
.tlai-body .pdf-icon {
    border-radius: 2px;
    background: transparent;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.18);
}

.tlai-body .tlai-btn,
.tlai-body .analysis-btn,
.tlai-body button.tlai-btn {
    border-radius: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
}

.tlai-body .tlai-btn.gold,
.tlai-body .btn-primary-gold,
.tlai-body button.tlai-btn.gold {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #090a0f;
}

.tlai-body .tlai-btn.light,
.tlai-body .analysis-btn.secondary,
.tlai-body .btn-secondary-light {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: #eee9df;
}

.tlai-body .tlai-inline-home-link,
.tlai-body .pdf-back-link,
.tlai-body a {
    color: #c9a84c;
}

.tlai-body input,
.tlai-body textarea,
.tlai-body select {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #090a0f;
    color: #eee9df;
}

.tlai-body input::placeholder,
.tlai-body textarea::placeholder {
    color: #706b62;
}

.tlai-body label {
    color: #d8d3c3;
}

.tlai-body .pdf-tools-hero {
    background: radial-gradient(circle at 28% 20%, rgba(201, 168, 76, 0.08), transparent 24%), linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    padding: 96px 0 78px;
}

.tlai-body .pdf-tools-hero h1,
.tlai-body .legal-page-header h1,
.tlai-body .guided-tools-hero h1,
.tlai-body .tlai-page-head h1 {
    max-width: 820px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
}

.tlai-body .pdf-privacy-note {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: rgba(201, 168, 76, 0.06);
    color: #c7c2b6;
}

.tlai-body .pdf-section-head h2 {
    font-size: clamp(30px, 3vw, 44px);
}

.tlai-body .pdf-tool-grid,
.tlai-body .blog-card-grid,
.tlai-body .guided-tool-grid {
    gap: 0;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tool-card,
.tlai-body .blog-guide-card,
.tlai-body .guided-tool-card {
    min-height: 220px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tool-card h3,
.tlai-body .blog-guide-card strong,
.tlai-body .guided-tool-card h2 {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
}

.tlai-body .pdf-tool-card p,
.tlai-body .blog-guide-card span,
.tlai-body .guided-tool-card p {
    color: #9e998d;
}

.tlai-body .legal-page {
    padding: 78px 0;
}

.tlai-body .legal-page-card {
    max-width: 980px;
    margin: 0 auto;
}

.tlai-body .legal-page-header,
.tlai-body .legal-content-section {
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.tlai-body .legal-content-section h2 {
    color: #e1c36f;
}

.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head {
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 42px;
    margin-bottom: 0;
}

.tlai-body .workspace-differentiators span {
    border-color: rgba(201, 168, 76, 0.18);
    color: #c7c2b6;
}

.tlai-body .pdf-tool-layout {
    align-items: start;
}

.tlai-body .pdf-helper-text,
.tlai-body .pdf-limit-note {
    color: #c7c2b6;
}

.tlai-body .pdf-faq {
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: #0d0e14;
    padding: 28px;
}

.tlai-body .pdf-faq summary {
    color: #e1c36f;
}

.tlai-body .pdf-text-preview pre {
    background: #090a0f;
    color: #eee9df;
}

@media (max-width: 760px) {
    .tlai-body .pdf-tools-hero {
        padding: 70px 0 54px;
    }
    .tlai-body .guided-tools-hero,
    .tlai-body .tlai-page-head {
        padding: 24px;
    }
    .tlai-body .pdf-tool-grid,
    .tlai-body .blog-card-grid,
    .tlai-body .guided-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium dark theme for all public pages. */
.tlai-body {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .tlai-section,
.tlai-body .legal-page,
.tlai-body .pdf-tools-section,
.tlai-body .pdf-tool-page {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .pdf-tools-section:nth-of-type(even),
.tlai-body .pdf-legal-band,
.tlai-body .legal-page,
.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head {
    background: #111119;
}

.tlai-body h1,
.tlai-body h2,
.tlai-body h3,
.tlai-body .section-title,
.tlai-body .card-title {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.tlai-body .tlai-muted,
.tlai-body p,
.tlai-body li,
.tlai-body .card-text {
    color: #9e998d;
}

.tlai-body .page-kicker,
.tlai-body .pdf-free-badge,
.tlai-body .guided-tool-status {
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tlai-body .tlai-card,
.tlai-body .legal-page-card,
.tlai-body .blog-guide-card,
.tlai-body .pdf-tool-card,
.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .guided-tool-card,
.tlai-body .workspace-differentiators,
.tlai-body .pdf-result-panel,
.tlai-body .pdf-coming-soon,
.tlai-body .pdf-text-preview,
.tlai-body .tlai-form {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
    color: #eee9df;
    box-shadow: none;
}

.tlai-body .tlai-card:hover,
.tlai-body .blog-guide-card:hover,
.tlai-body .pdf-tool-card:hover,
.tlai-body .guided-tool-card:hover {
    border-color: rgba(201, 168, 76, 0.32);
    background: #11131c;
}

.tlai-body .card-icon,
.tlai-body .pdf-icon {
    border-radius: 2px;
    background: transparent;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.18);
}

.tlai-body .tlai-btn,
.tlai-body .analysis-btn,
.tlai-body button.tlai-btn {
    border-radius: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
}

.tlai-body .tlai-btn.gold,
.tlai-body .btn-primary-gold,
.tlai-body button.tlai-btn.gold {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #090a0f;
}

.tlai-body .tlai-btn.light,
.tlai-body .analysis-btn.secondary,
.tlai-body .btn-secondary-light {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: #eee9df;
}

.tlai-body .tlai-inline-home-link,
.tlai-body .pdf-back-link,
.tlai-body a {
    color: #c9a84c;
}

.tlai-body input,
.tlai-body textarea,
.tlai-body select {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #090a0f;
    color: #eee9df;
}

.tlai-body input::placeholder,
.tlai-body textarea::placeholder {
    color: #706b62;
}

.tlai-body label {
    color: #d8d3c3;
}

.tlai-body .pdf-tools-hero {
    background:
        radial-gradient(circle at 28% 20%, rgba(201, 168, 76, 0.08), transparent 24%),
        linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    padding: 96px 0 78px;
}

.tlai-body .pdf-tools-hero h1,
.tlai-body .legal-page-header h1,
.tlai-body .guided-tools-hero h1,
.tlai-body .tlai-page-head h1 {
    max-width: 820px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
}

.tlai-body .pdf-privacy-note {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: rgba(201, 168, 76, 0.06);
    color: #c7c2b6;
}

.tlai-body .pdf-section-head h2 {
    font-size: clamp(30px, 3vw, 44px);
}

.tlai-body .pdf-tool-grid,
.tlai-body .blog-card-grid,
.tlai-body .guided-tool-grid {
    gap: 0;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tool-card,
.tlai-body .blog-guide-card,
.tlai-body .guided-tool-card {
    min-height: 220px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .pdf-tool-card h3,
.tlai-body .blog-guide-card strong,
.tlai-body .guided-tool-card h2 {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
}

.tlai-body .pdf-tool-card p,
.tlai-body .blog-guide-card span,
.tlai-body .guided-tool-card p {
    color: #9e998d;
}

.tlai-body .legal-page {
    padding: 78px 0;
}

.tlai-body .legal-page-card {
    max-width: 980px;
    margin: 0 auto;
}

.tlai-body .legal-page-header,
.tlai-body .legal-content-section {
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.tlai-body .legal-content-section h2 {
    color: #e1c36f;
}

.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head {
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 42px;
    margin-bottom: 0;
}

.tlai-body .workspace-differentiators span {
    border-color: rgba(201, 168, 76, 0.18);
    color: #c7c2b6;
}

.tlai-body .pdf-tool-layout {
    align-items: start;
}

.tlai-body .pdf-helper-text,
.tlai-body .pdf-limit-note {
    color: #c7c2b6;
}

.tlai-body .pdf-faq {
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: #0d0e14;
    padding: 28px;
}

.tlai-body .pdf-faq summary {
    color: #e1c36f;
}

.tlai-body .pdf-text-preview pre {
    background: #090a0f;
    color: #eee9df;
}

@media (max-width: 760px) {
    .tlai-body .pdf-tools-hero {
        padding: 70px 0 54px;
    }
    .tlai-body .guided-tools-hero,
    .tlai-body .tlai-page-head {
        padding: 24px;
    }
    .tlai-body .pdf-tool-grid,
    .tlai-body .blog-card-grid,
    .tlai-body .guided-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Reference-aligned premium homepage refinements. */
.tlai-nav {
    min-height: 52px;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid rgba(217, 164, 7, 0.14);
}

.tlai-nav-inner,
.navbar-inner {
    height: 52px;
}

.tlai-nav .brand-wordmark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 900;
}

.tlai-nav .nav-link,
.tlai-nav .tlai-links a {
    color: #a7a192;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tlai-nav .nav-cta,
.tlai-nav .tlai-btn.gold {
    min-height: 30px;
    border-radius: 2px;
    padding: 8px 13px;
    font-size: 11px;
}

.tlai-home-premium {
    --premium-bg: #090a0f;
    --premium-bg-2: #111119;
    --premium-card: #0d0e14;
    --premium-card-2: #171722;
    --premium-gold: #c9a84c;
    --premium-gold-light: #e1c36f;
    --premium-text: #eee9df;
    --premium-muted: #9e998d;
    --premium-muted-blue: #8f95a3;
    --premium-border: rgba(201, 168, 76, 0.18);
}

.premium-wrap {
    max-width: 1160px;
}

.premium-hero {
    min-height: 880px;
    padding: 210px 0 150px;
    background:
        radial-gradient(circle at 26% 42%, rgba(201, 168, 76, 0.08), transparent 24%),
        radial-gradient(circle at 74% 38%, rgba(201, 168, 76, 0.06), transparent 20%),
        linear-gradient(115deg, #090a0f 0%, #111119 54%, #090a0f 100%);
}

.premium-hero::before {
    background-image: linear-gradient(rgba(201, 168, 76, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
    background-size: 90px 90px;
}

.premium-hero-inner {
    grid-template-columns: minmax(0, 0.92fr) 360px;
    gap: 86px;
}

.premium-badge,
.premium-section-label {
    border-radius: 2px;
    background: transparent;
    color: var(--premium-gold);
    font-size: 10px;
    letter-spacing: 0.14em;
    padding: 6px 9px;
}

.premium-hero h1 {
    max-width: 590px;
    font-size: clamp(42px, 5.4vw, 62px);
    line-height: 0.98;
}

.premium-hero h1 span,
.premium-section h2 span {
    color: var(--premium-gold-light);
    font-style: italic;
}

.premium-lead {
    max-width: 570px;
    color: #c7c2b6;
    font-size: 14px;
    line-height: 1.7;
}

.premium-brand-line {
    max-width: 570px;
    color: #8f8a80;
    font-size: 12px;
}

.premium-actions {
    gap: 12px;
    margin-top: 26px;
}

.premium-btn {
    min-height: 38px;
    border-radius: 2px;
    padding: 11px 18px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.premium-btn-gold {
    background: var(--premium-gold);
    border-color: var(--premium-gold);
    box-shadow: none;
}

.premium-btn-outline,
.premium-btn-ghost {
    background: transparent;
    border-color: rgba(201, 168, 76, 0.28);
}

.premium-chip-row {
    display: none;
}

.premium-stat-row {
    max-width: 520px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 54px;
}

.premium-stat-row div {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.premium-stat-row strong {
    color: var(--premium-gold);
    font-size: 18px;
}

.premium-stat-row span {
    color: #716d64;
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.premium-analysis-card {
    border-radius: 0;
    background: #171722;
    box-shadow: none;
    padding: 20px;
}

.premium-analysis-card::before {
    content: "Ready";
    top: 18px;
    right: 18px;
    border-radius: 2px;
    background: rgba(42, 168, 105, 0.14);
    color: #68d391;
    font-size: 10px;
}

.analysis-card-top {
    grid-template-columns: 1fr;
}

.analysis-card-top span,
.analysis-metrics span,
.ppt-topline {
    color: #8f8a80;
    font-size: 9px;
    letter-spacing: 0.09em;
}

.analysis-card-top strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.analysis-card-top em {
    display: none;
}

.analysis-source {
    font-size: 11px;
}

.analysis-metrics {
    gap: 10px;
}

.analysis-metrics div,
.analysis-summary {
    border-radius: 0;
    background: #101119;
    border-color: rgba(201, 168, 76, 0.12);
}

.analysis-summary {
    border-left: 2px solid var(--premium-gold);
}

.analysis-summary p {
    color: #b9b4aa;
    font-size: 12px;
}

.analysis-actions a {
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.22);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.premium-section {
    padding: 78px 0;
}

.premium-section h2 {
    max-width: 770px;
    margin-top: 14px;
    font-size: clamp(30px, 3.3vw, 44px);
    line-height: 1.08;
}

.premium-section-head {
    margin-bottom: 34px;
}

.premium-section-head p,
.premium-section-subtitle,
.premium-section p {
    color: #9e998d;
    font-size: 13px;
    line-height: 1.75;
}

.premium-card-grid,
.premium-tool-grid {
    gap: 0;
    margin-top: 34px;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.premium-card,
.premium-tool-card {
    min-height: 180px;
    border: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 0;
    background: #0d0e14;
    box-shadow: none;
    padding: 28px;
}

.premium-card-icon,
.premium-card-badge {
    min-width: 26px;
    min-height: 26px;
    border-radius: 2px;
    background: transparent;
    color: var(--premium-gold);
    font-size: 10px;
}

.premium-card h3,
.premium-tool-card strong {
    margin-top: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.premium-card p,
.premium-tool-card p {
    color: #9e998d;
    font-size: 12px;
    line-height: 1.65;
}

.premium-inline-link,
.premium-tool-card em {
    color: var(--premium-gold);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.premium-tool-card:hover {
    transform: none;
    background: #11131c;
}

.premium-presentation-section {
    background: #090a0f;
}

.premium-presentation-grid {
    grid-template-columns: minmax(0, 1fr) 520px;
}

.premium-ppt-preview {
    min-height: 320px;
    border-radius: 0;
    background: #171722;
    box-shadow: none;
}

.premium-ppt-preview h3 {
    font-size: 28px;
}

.ppt-bars span {
    border-radius: 0;
    background: var(--premium-gold);
}

.ppt-mini-grid div {
    border-radius: 0;
    background: #101119;
}

.premium-trust-strip span,
.premium-tag-row span,
.premium-note-row span {
    border-radius: 0;
    background: transparent;
    color: #8f8a80;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.premium-final-cta {
    border-radius: 0;
    text-align: center;
    background: #111119;
    box-shadow: none;
}

.premium-final-cta h2,
.premium-final-cta p {
    margin-left: auto;
    margin-right: auto;
}

.premium-final-cta .premium-actions,
.premium-final-cta .premium-note-row {
    justify-content: center;
}

@media (max-width: 1080px) {
    .premium-hero {
        min-height: auto;
        padding-top: 120px;
    }
    .premium-hero-inner,
    .premium-presentation-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .premium-analysis-card,
    .premium-ppt-preview {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .tlai-nav-inner,
    .navbar-inner {
        height: 60px;
    }
    .premium-hero {
        padding: 88px 0 62px;
    }
    .premium-hero h1 {
        font-size: 42px;
    }
    .premium-stat-row,
    .premium-card-grid,
    .premium-card-grid-3,
    .premium-tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .premium-hero-inner,
    .premium-presentation-grid {
        grid-template-columns: 1fr;
    }
    .premium-analysis-card,
    .premium-ppt-preview {
        max-width: 720px;
    }
    .premium-card-grid,
    .premium-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .desktop-nav.is-open {
        background: rgba(8, 10, 15, 0.98);
        border: 1px solid rgba(217, 164, 7, 0.18);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
    }
    .premium-wrap {
        width: min(calc(100% - 28px), 1180px);
    }
    .premium-hero {
        min-height: auto;
        padding: 78px 0 56px;
    }
    .premium-actions,
    .premium-section-head {
        align-items: stretch;
        flex-direction: column;
    }
    .premium-btn {
        width: 100%;
    }
    .premium-stat-row,
    .analysis-metrics,
    .analysis-actions,
    .ppt-mini-grid,
    .premium-card-grid,
    .premium-card-grid-3,
    .premium-tool-grid {
        grid-template-columns: 1fr;
    }
    .premium-section {
        padding: 64px 0;
    }
    .premium-card,
    .premium-tool-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .premium-hero h1 {
        font-size: 42px;
    }
    .premium-lead {
        font-size: 16px;
    }
    .premium-analysis-card,
    .premium-ppt-preview {
        padding: 20px;
        border-radius: 14px;
    }
}

* { box-sizing: border-box; }

body.tlai-body {
    margin: 0;
    background: var(--tlai-bg);
    color: var(--tlai-ink);
    font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

a { color: inherit; }

.site-header,
.tlai-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 76px;
    background: #071E3D;
    color: #fff;
    border-bottom: 2px solid var(--tlai-gold);
}

.navbar-inner,
.tlai-nav-inner {
    max-width: 1180px;
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
}

.brand-logo,
.tlai-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 900;
}

.tlai-logo-brand { width: auto; max-width: none; }

.brand-logo img,
.tlai-logo-brand img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    filter: none;
}

.brand-logo,
.tlai-brand,
.brand {
    min-width: 220px;
}

.brand-wordmark {
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.4px;
}

.brand-wordmark span {
    color: var(--tlai-gold);
}

.tlai-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-link,
.tlai-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.nav-link:hover,
.nav-link.active,
.tlai-links a:hover { color: var(--tlai-soft-gold); }

.nav-cta {
    background: var(--tlai-gold) !important;
    color: var(--tlai-navy) !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 18px;
}

.nav-cta:hover {
    background: var(--tlai-soft-gold) !important;
    color: var(--tlai-navy) !important;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
}

.tlai-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.tlai-hero {
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #071E3D 0%, #0B2F5B 55%, #1557C0 100%);
    color: #fff;
    padding: 92px 0 76px;
    position: relative;
    overflow: hidden;
}

.hero-content { max-width: 820px; }

.hero-title,
.tlai-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.6px;
}

.hero-subtitle,
.tlai-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions,
.tlai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.tlai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 14px 22px;
    border: 0;
    border-radius: 9px;
    background: var(--tlai-blue);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.tlai-btn.gold,
.btn-primary-gold {
    background: var(--tlai-gold) !important;
    color: var(--tlai-navy) !important;
}

.tlai-btn.light,
.btn-secondary-light {
    background: #fff !important;
    color: var(--tlai-navy) !important;
    border: 1px solid var(--tlai-line);
}

.btn-blue { background: var(--tlai-blue) !important; color: #fff !important; }

.section,
.tlai-section { padding: 76px 0; }

.section-title,
.tlai-section h2 {
    margin: 0 0 18px;
    color: var(--tlai-navy);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.8px;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--tlai-muted);
    font-size: 17px;
}

.tlai-muted { color: var(--tlai-muted); }

.tlai-grid,
.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.tlai-card,
.step-card,
.feature-card {
    padding: 20px;
    border: 1px solid var(--tlai-line);
    border-radius: 16px;
    background: var(--tlai-card);
    box-shadow: 0 12px 30px rgba(7, 30, 61, .06);
}

.step-card { padding: 28px; }

.card-title,
.tlai-card h3 {
    margin: 0 0 8px;
    color: var(--tlai-navy);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.card-text { color: var(--tlai-muted); font-size: 15px; }

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(212, 160, 23, .16);
    color: #9A6B00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-chips,
.tlai-hero-visual {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 150px));
    gap: 12px;
    max-width: 820px;
    margin-top: 34px;
}

.hero-chip,
.tlai-hero-pill {
    min-width: 150px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.tlai-shell,
.app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.tlai-sidebar,
.app-sidebar {
    padding: 22px;
    background: var(--tlai-deep-blue);
    color: #dbe7f6;
}

.tlai-sidebar a {
    display: block;
    margin: 5px 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dbe7f6;
    text-decoration: none;
    font-weight: 700;
}

.tlai-sidebar a:hover { background: rgba(255, 255, 255, .08); }
.tlai-main { padding: 26px; min-width: 0; }
.tlai-page-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.tlai-page-head h1 { margin: 0; color: var(--tlai-navy); }
.tlai-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tlai-stat strong { display: block; margin-top: 8px; font-size: 28px; color: var(--tlai-navy); }
.tlai-doc-list { display: grid; gap: 12px; }
.tlai-doc-card { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tlai-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tlai-badge { padding: 5px 9px; border-radius: 999px; background: #eef4ff; color: var(--tlai-blue); font-size: 12px; font-weight: 800; }
.tlai-badge.risk-high { background: #fee4e2; color: #b42318; }
.tlai-badge.risk-medium { background: #fff3cd; color: #9a6700; }
.tlai-badge.risk-low { background: #dcfae6; color: #067647; }

.tlai-form { max-width: 760px; }
.tlai-form label { display: block; margin: 14px 0 6px; font-weight: 800; }
.tlai-form input,
.tlai-form textarea,
.tlai-form select,
.tlai-search {
    width: 100%;
    min-height: 44px;
    padding: 11px;
    border: 1px solid #b9c7d6;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.tlai-form textarea { min-height: 130px; }
.tlai-alert { margin: 12px 0; padding: 12px; border-radius: 8px; }
.tlai-alert.ok { background: #dcfae6; }
.tlai-alert.err { background: #fee4e2; }
.tlai-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tlai-tool-card { min-height: 150px; }
.tlai-tool-card p { color: var(--tlai-muted); }
.tlai-disclaimer { border-left: 4px solid var(--tlai-gold); background: #fff9e6; }
.tlai-mini-list { display: grid; gap: 8px; margin-top: 12px; }
.tlai-mini-list span { padding: 10px 12px; border: 1px solid var(--tlai-line); border-radius: 8px; background: #fff; }

.smart-tools-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 20px;
}

.smart-tools-hero > div,
.smart-recommendation,
.smart-panel {
    border: 1px solid var(--tlai-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 30, 61, .06);
}

.smart-tools-hero > div {
    padding: 30px;
}

.smart-tools-hero h1 {
    margin: 8px 0 12px;
    color: var(--tlai-navy);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
    max-width: 860px;
}

.smart-tools-hero p {
    max-width: 780px;
    color: #64748B;
    font-size: 18px;
    line-height: 1.65;
}

.smart-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.smart-recommendation {
    padding: 24px;
    display: grid;
    align-content: center;
    gap: 10px;
    background: #071E3D;
    color: #fff;
}

.smart-recommendation span {
    color: var(--tlai-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smart-recommendation h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.smart-recommendation p {
    margin: 0;
    color: #DCE6F3;
    line-height: 1.6;
}

.smart-recommendation a,
.smart-open {
    color: #071E3D;
    background: var(--tlai-gold);
    border-radius: 8px;
    padding: 10px 13px;
    text-decoration: none;
    font-weight: 900;
    width: fit-content;
}

.smart-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.smart-kpi-strip article {
    border: 1px solid var(--tlai-line);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.smart-kpi-strip span,
.smart-kpi-strip small {
    display: block;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
}

.smart-kpi-strip strong {
    display: block;
    margin: 4px 0;
    color: var(--tlai-navy);
    font-size: 30px;
    line-height: 1;
}

.smart-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.smart-workflow a {
    display: grid;
    gap: 7px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid var(--tlai-line);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.smart-workflow span {
    width: fit-content;
    color: #8A6400;
    background: #FFF4CF;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
}

.smart-workflow strong {
    color: var(--tlai-navy);
    font-size: 18px;
}

.smart-workflow small {
    color: #64748B;
    line-height: 1.5;
}

.tools-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 6px 0 14px;
}

.tools-section-head h2 {
    margin: 0 0 6px;
    color: var(--tlai-navy);
    font-size: 26px;
}

.tools-section-head p {
    margin: 0;
    color: #64748B;
}

.smart-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.smart-tool-card {
    display: grid;
    gap: 14px;
    min-height: 328px;
    padding: 20px;
    border: 1px solid var(--tlai-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(7, 30, 61, .06);
}

.smart-tool-card:hover {
    transform: translateY(-2px);
    border-color: #B7C5D8;
    box-shadow: 0 18px 38px rgba(7, 30, 61, .1);
}

.smart-tool-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.tool-stage {
    color: #8A6400;
    background: #FFF4CF;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
}

.tool-status-chip.soon {
    background: #F1F5F9;
    color: #475569;
}

.smart-tool-card h3 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 22px;
    line-height: 1.25;
}

.smart-tool-card p {
    margin: 0;
    color: #64748B;
    line-height: 1.6;
    font-size: 15px;
}

.smart-tool-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.smart-tool-card dt {
    color: #64748B;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.smart-tool-card dd {
    margin: 3px 0 0;
    color: #0B2342;
    line-height: 1.45;
    font-weight: 750;
}

.smart-open {
    margin-top: auto;
}

.smart-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.smart-panel {
    padding: 22px;
}

.smart-panel h2 {
    margin: 0 0 14px;
    color: var(--tlai-navy);
    font-size: 22px;
}

.smart-readiness-list,
.smart-recent-list {
    display: grid;
    gap: 10px;
}

.smart-readiness-list div,
.smart-recent-list a {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--tlai-line);
    border-radius: 8px;
    background: #F8FAFC;
}

.smart-readiness-list strong,
.smart-recent-list strong {
    color: var(--tlai-navy);
}

.smart-readiness-list span,
.smart-recent-list span {
    color: #64748B;
    line-height: 1.5;
}

.smart-recent-list a {
    text-decoration: none;
}

.tlai-footer {
    padding: 44px 0;
    background: var(--tlai-navy);
    color: #dbe7f6;
}

.tlai-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 26px;
}

.tlai-footer a {
    display: block;
    margin: 8px 0;
    color: #dbe7f6;
    text-decoration: none;
}

.tlai-footer a:hover { color: var(--tlai-soft-gold); }

body.upload-page {
    background: linear-gradient(180deg, #F5F7FB 0%, #EEF3F8 100%);
    min-height: 100vh;
}

.header-inner {
    max-width: 1180px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter: none;
}

.brand-text {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.brand-text .ai { color: var(--tlai-gold); }

.upload-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upload-page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.upload-hero {
    margin-bottom: 28px;
}

.upload-kicker {
    color: var(--tlai-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.upload-title {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 38px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.8px;
}

.upload-subtitle {
    max-width: 760px;
    margin: 12px 0 0;
    color: #53627A;
    font-size: 17px;
    line-height: 1.7;
}

.upload-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.upload-trust-badges span {
    padding: 8px 12px;
    border: 1px solid rgba(21, 87, 192, .14);
    border-radius: 999px;
    background: #fff;
    color: #243B5A;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(7, 30, 61, .05);
}

.upload-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(7, 30, 61, .10);
    overflow: hidden;
}

.upload-card-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--tlai-line);
    background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
}

.upload-card-title {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.25;
}

.upload-card-subtitle {
    margin: 8px 0 0;
    color: var(--tlai-muted);
    font-size: 15px;
}

.upload-card-body {
    padding: 32px;
}

.upload-error {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 12px;
    background: #FEF2F2;
    color: #991B1B;
    font-size: 14px;
    font-weight: 700;
}

.upload-error.is-visible {
    display: block;
}

.file-dropzone {
    border: 2px dashed #B8C7DA;
    background: #F8FAFC;
    border-radius: 18px;
    padding: 34px 24px;
    text-align: center;
    transition: all .2s ease;
    cursor: pointer;
    display: block;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
    border-color: var(--tlai-gold);
    background: #FFF9E8;
    transform: translateY(-1px);
}

.file-dropzone-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(212, 160, 23, .14);
    color: #9A6B00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
}

.file-dropzone-title,
.file-dropzone-text {
    display: block;
}

.file-dropzone-title {
    color: var(--tlai-navy);
    font-size: 18px;
    font-weight: 800;
}

.file-dropzone-text {
    margin-top: 6px;
    color: var(--tlai-muted);
    font-size: 14px;
}

.file-input-hidden {
    display: none !important;
}

.selected-file {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #D9E2EF;
    border-radius: 14px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.selected-file[hidden] {
    display: none;
}

.selected-file strong {
    display: block;
    color: var(--tlai-navy);
    font-size: 15px;
    line-height: 1.3;
    word-break: break-word;
}

.selected-file span {
    display: block;
    margin-top: 3px;
    color: var(--tlai-muted);
    font-size: 13px;
}

.selected-file button {
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #fff;
    color: var(--tlai-navy);
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.selected-file button:hover {
    background: #EEF3F8;
}

.document-details {
    margin-top: 30px;
}

.section-mini-head h3 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 18px;
    font-weight: 850;
}

.section-mini-head p {
    margin: 6px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #243B5A;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--tlai-ink);
    background: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: all .18s ease;
}

.form-control:focus {
    border-color: var(--tlai-blue);
    box-shadow: 0 0 0 4px rgba(21, 87, 192, .12);
}

textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.preference-section {
    margin-top: 30px;
    padding: 26px;
    border: 1px solid var(--tlai-line);
    border-radius: 18px;
    background: #F8FAFC;
}

.preference-title {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 17px;
    font-weight: 850;
}

.preference-subtitle {
    margin: 6px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
}

.preference-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.preference-card {
    position: relative;
    border: 1px solid #D9E2EF;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all .18s ease;
}

.preference-card:hover {
    border-color: var(--tlai-gold);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(7, 30, 61, .08);
}

.preference-card input {
    position: absolute;
    top: 18px;
    right: 18px;
    accent-color: var(--tlai-gold);
}

.preference-card.is-selected {
    border-color: var(--tlai-gold);
    background: #FFF9E8;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, .12);
}

.preference-card-title {
    display: block;
    padding-right: 28px;
    color: var(--tlai-navy);
    font-size: 15px;
    font-weight: 850;
}

.preference-card-text {
    display: block;
    margin-top: 8px;
    color: var(--tlai-muted);
    font-size: 13px;
    line-height: 1.55;
}

.privacy-note {
    margin-top: 18px;
    border: 1px solid rgba(21, 87, 192, .18);
    background: #EFF6FF;
    color: #243B5A;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
}

.privacy-note > span {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 8px;
    background: #DBEAFE;
    color: var(--tlai-blue);
    font-size: 12px;
    font-weight: 900;
}

.privacy-note p {
    margin: 0;
}

.upload-progress {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #D9E2EF;
    border-radius: 14px;
    background: #fff;
    align-items: center;
    gap: 14px;
}

.upload-progress.is-visible {
    display: flex;
}

.upload-progress strong {
    display: block;
    color: var(--tlai-navy);
    font-size: 15px;
}

.upload-progress p {
    margin: 2px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
}

.upload-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #E5EAF1;
    border-top-color: var(--tlai-gold);
    border-radius: 999px;
    animation: tlai-spin .8s linear infinite;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 24px 32px;
    border-top: 1px solid var(--tlai-line);
    background: #F8FAFC;
}

.upload-btn {
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.upload-btn.btn-primary {
    background: var(--tlai-gold);
    color: var(--tlai-navy);
}

.upload-btn.btn-primary:hover {
    background: var(--tlai-soft-gold);
}

.upload-btn.btn-primary:disabled {
    opacity: .7;
    cursor: wait;
}

.upload-btn.btn-secondary {
    background: #fff;
    color: var(--tlai-navy);
    border: 1px solid #CBD5E1;
}

.upload-btn.btn-secondary:hover {
    background: #EEF3F8;
}

.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #071E3D 0%, #0B2F5B 58%, #1557C0 100%);
}

.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.admin-login-card img {
    height: 58px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}

.admin-login-card h1 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 30px;
    line-height: 1.2;
}

.admin-login-card p {
    margin: 8px 0 18px;
    color: var(--tlai-muted);
}

.admin-login-card .tlai-form {
    max-width: none;
}

.admin-shell {
    min-height: calc(100vh - 76px);
}

.admin-sidebar {
    background: #061832;
}

.app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--tlai-bg);
}

.app-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #071E3D 0%, #0B2F5B 100%);
    color: #fff;
    padding: 24px 16px;
    box-shadow: 12px 0 30px rgba(7, 30, 61, .08);
}

.sidebar-org {
    padding: 8px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    margin-bottom: 12px;
}

.sidebar-org span {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-org strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    margin-top: 4px;
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
    font-weight: 800;
    margin: 18px 12px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .18s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(212,160,23,.18);
    color: var(--tlai-soft-gold);
    box-shadow: inset 3px 0 0 var(--tlai-gold);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sidebar-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-main {
    padding: 36px 36px 60px;
    background: var(--tlai-bg);
    min-height: calc(100vh - 76px);
    min-width: 0;
}

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.page-kicker {
    display: inline-flex;
    background: rgba(212,160,23,.14);
    color: #9A6B00;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 12px;
}

.page-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 850;
    color: var(--tlai-navy);
    letter-spacing: -.8px;
}

.page-subtitle {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--tlai-muted);
    font-size: 16px;
}

.page-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.page-badges span {
    border-radius: 999px;
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(7,30,61,.06);
    transition: all .18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(7,30,61,.10);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(212,160,23,.14);
    color: #9A6B00;
    font-size: 12px;
    font-weight: 900;
}

.stat-risk { background: #FEE2E2; color: #991B1B; }
.stat-draft { background: #DBEAFE; color: #1D4ED8; }
.stat-calendar { background: #DCFCE7; color: #166534; }
.stat-usage { background: #FEF3C7; color: #92400E; }

.stat-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--tlai-navy);
    margin-top: 2px;
}

.stat-label {
    font-size: 14px;
    font-weight: 800;
    color: #243B5A;
}

.stat-help {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--tlai-muted);
}

.usage-progress {
    height: 8px;
    background: var(--tlai-line);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}

.usage-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tlai-gold), var(--tlai-soft-gold));
}

.section-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(7,30,61,.05);
    margin-bottom: 22px;
}

.section-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-card-head h2 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 22px;
    font-weight: 850;
}

.section-card-head p {
    margin: 6px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quick-action-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: var(--tlai-navy);
    transition: all .18s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--tlai-gold);
    box-shadow: 0 14px 32px rgba(7,30,61,.08);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(212,160,23,.14);
    color: #9A6B00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 900;
}

.quick-action-title,
.quick-action-desc {
    display: block;
}

.quick-action-title {
    font-size: 15px;
    font-weight: 850;
}

.quick-action-desc {
    margin-top: 6px;
    color: var(--tlai-muted);
    font-size: 13px;
    line-height: 1.5;
}

.quick-action-arrow {
    display: inline-flex;
    margin-top: 14px;
    color: var(--tlai-blue);
    font-size: 13px;
    font-weight: 850;
}

.recent-analysis-list {
    display: grid;
    gap: 14px;
}

.recent-analysis-card {
    border: 1px solid var(--tlai-line);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.recent-analysis-left {
    display: flex;
    gap: 15px;
    min-width: 0;
}

.recent-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #EFF6FF;
    color: var(--tlai-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.recent-analysis-title {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    color: var(--tlai-navy);
}

.recent-analysis-summary {
    margin: 8px 0 0;
    color: var(--tlai-muted);
    line-height: 1.6;
    font-size: 14px;
}

.recent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
}

.badge-success { background: #DCFCE7; color: #166534; }
.badge-info { background: #DBEAFE; color: #1D4ED8; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-muted { background: #F1F5F9; color: #475569; }

.recent-analysis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.empty-state {
    text-align: left;
    padding: 22px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
}

.empty-state-title {
    font-weight: 850;
    color: var(--tlai-navy);
}

.empty-state-text {
    color: var(--tlai-muted);
    font-size: 14px;
    margin: 8px 0 14px;
}

.beta-notice-card {
    border: 1px solid rgba(212,160,23,.30);
    background: linear-gradient(180deg, #FFF8E1 0%, #FFFFFF 100%);
    border-radius: 18px;
    padding: 20px 22px;
    color: #334155;
}

.beta-notice-card strong {
    color: var(--tlai-navy);
    font-size: 16px;
}

.beta-notice-card p {
    margin: 6px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
    line-height: 1.7;
}

.analysis-page {
    background: linear-gradient(180deg, #F5F7FB 0%, #EEF3F8 100%);
}

.analysis-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 70px;
}

.document-top-card,
.result-hero-card,
.analysis-section {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 30, 61, .08);
    padding: 26px;
    margin-bottom: 22px;
}

.analysis-section {
    border-radius: 18px;
    margin-bottom: 18px;
}

.document-top-layout,
.result-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
}

.analysis-kicker {
    display: block;
    color: var(--tlai-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.document-top-card h1,
.result-hero-card h2,
.analysis-section h2 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 850;
    letter-spacing: -.2px;
}

.document-top-card h1 {
    font-size: 28px;
}

.analysis-section h3 {
    margin: 0 0 8px;
    color: var(--tlai-navy);
    font-size: 17px;
    font-weight: 800;
}

.analysis-text,
.analysis-section p,
.analysis-section li {
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.document-badges,
.impact-risk-row,
.phrase-list,
.quick-prompts,
.generated-draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.document-badges {
    margin-top: 14px;
}

.status-badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.badge-green,
.lai-badge-green { background: #DCFCE7; color: #166534; }
.badge-red,
.lai-badge-red { background: #FEE2E2; color: #991B1B; }
.badge-blue,
.lai-badge-blue,
.lai-badge-confidence { background: #DBEAFE; color: #1D4ED8; }
.badge-amber,
.lai-badge-orange { background: #FEF3C7; color: #92400E; }
.badge-gray,
.lai-badge-gray { background: #F1F5F9; color: #475569; }

.document-meta-grid,
.analysis-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.document-meta-grid div,
.analysis-info-grid div,
.risk-grid div,
.memory-grid div {
    border: 1px solid var(--tlai-line);
    border-radius: 14px;
    background: #F8FAFC;
    padding: 14px;
}

.document-meta-grid span,
.analysis-info-grid span {
    display: block;
    color: var(--tlai-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.document-meta-grid strong,
.analysis-info-grid strong {
    display: block;
    color: var(--tlai-navy);
    font-size: 15px;
    line-height: 1.45;
}

.analysis-info-grid .wide {
    grid-column: 1 / -1;
}

.privacy-status-card,
.recommended-action {
    margin-top: 18px;
    border-radius: 14px;
    padding: 15px 17px;
    font-size: 14px;
    font-weight: 700;
}

.privacy-status-card.warning { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.privacy-status-card.success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.privacy-status-card.info { background: #EFF6FF; color: #1E3A8A; border: 1px solid #BFDBFE; }

.analysis-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.analysis-btn,
.mini-action-btn {
    border: 0;
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.analysis-btn.primary { background: var(--tlai-gold); color: var(--tlai-navy); }
.analysis-btn.secondary { background: #fff; color: var(--tlai-navy); border: 1px solid #CBD5E1; }

.result-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    background: linear-gradient(135deg, #071E3D 0%, #0B2F5B 100%);
    color: #fff;
}

.result-hero-card h2 {
    color: #fff;
    font-size: 32px;
}

.result-hero-card p {
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.65;
}

.result-hero-right {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.recommended-action {
    grid-column: 1 / -1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
}

.recommended-action span {
    display: block;
    color: var(--tlai-soft-gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.recommended-action p { margin: 0; }

.summary-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.risk-header-line { margin-top: 14px; }

.risk-grid,
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.risk-grid strong,
.memory-grid strong {
    color: var(--tlai-navy);
}

.risk-grid p,
.memory-grid p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--tlai-muted);
}

.ask-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.ask-input {
    flex: 1;
    min-height: 48px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.ask-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--tlai-navy);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.quick-prompts { margin-top: 14px; }
.ask-answer {
    margin-top: 16px;
    border: 1px solid #D9E2EF;
    border-radius: 14px;
    background: #F8FAFC;
    padding: 16px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}
.quick-prompts button,
.phrase-list span {
    border: 1px solid #D9E2EF;
    border-radius: 999px;
    background: #F8FAFC;
    color: #243B5A;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.analysis-list {
    margin: 16px 0 0;
    padding-left: 22px;
}

.key-paragraph-box {
    margin-top: 12px;
    border: 1px solid #D9E2EF;
    border-radius: 14px;
    padding: 15px;
    background: #F8FAFC;
}

.key-paragraph-box span {
    color: var(--tlai-blue);
    font-size: 12px;
    font-weight: 900;
}

.key-paragraph-box p {
    margin: 6px 0 0;
}

.analysis-section blockquote {
    margin: 8px 0 0;
    border-left: 4px solid var(--tlai-gold);
    padding-left: 14px;
    color: #334155;
    line-height: 1.7;
}

.review-correction {
    margin-top: 14px;
    border: 1px solid var(--tlai-line);
    border-radius: 14px;
    padding: 14px;
}

.analysis-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.analysis-form-grid label,
.feedback-form label {
    display: block;
    color: #243B5A;
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
}

.analysis-form-grid input,
.feedback-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 11px 13px;
    font: inherit;
    margin-top: 6px;
}

.feedback-form textarea { min-height: 110px; }

.raw-debug pre {
    max-height: 420px;
    overflow: auto;
    background: #0B1220;
    color: #E5E7EB;
    padding: 16px;
    border-radius: 12px;
}

.draft-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.draft-card {
    border: 1px solid rgba(212,160,23,.35);
    background: linear-gradient(180deg, #FFF8E1 0%, #FFFFFF 100%);
    border-radius: 16px;
    padding: 18px;
    transition: all .18s ease;
}

.draft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7,30,61,.10);
    border-color: var(--tlai-gold);
}

.draft-card-icon,
.draft-empty-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212,160,23,.18);
    color: #9A6B00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

.draft-card-title {
    font-size: 15px;
    font-weight: 850;
    color: var(--tlai-navy);
    margin: 0;
}

.draft-card-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--tlai-muted);
    line-height: 1.5;
}

.draft-generate-btn {
    margin-top: 14px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: var(--tlai-gold);
    color: var(--tlai-navy);
    font-weight: 800;
    padding: 10px 12px;
    cursor: pointer;
}

.generated-drafts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.generated-draft-card {
    border: 1px solid var(--tlai-line);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(7,30,61,.05);
}

.generated-draft-title {
    font-size: 16px;
    font-weight: 850;
    color: var(--tlai-navy);
    margin: 0;
}

.generated-draft-meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--tlai-muted);
}

.mini-action-btn {
    min-height: 34px;
    padding: 8px 10px;
    background: #F8FAFC;
    color: var(--tlai-navy);
    border: 1px solid #CBD5E1;
    font-size: 12px;
}

.mini-action-btn.danger {
    color: #991B1B;
    background: #FEF2F2;
    border-color: #FECACA;
}

.draft-empty-state {
    margin-top: 16px;
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
    text-align: center;
    padding: 28px;
    background: #F8FAFC;
}

.draft-modal[hidden] { display: none; }
.draft-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.draft-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, .62);
}

.draft-modal-content {
    position: relative;
    width: min(900px, 100%);
    max-height: 88vh;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
}

.draft-modal-head,
.draft-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.draft-preview-body {
    border: 1px solid var(--tlai-line);
    background: #F8FAFC;
    border-radius: 14px;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    color: #334155;
    margin: 16px 0;
}

.tlai-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: none;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.tlai-toast.is-visible { display: block; }
.toast-success { background: var(--tlai-success); color: #fff; }
.toast-error { background: var(--tlai-danger); color: #fff; }

@media (max-width: 1100px) {
    .draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
    .hero-title,
    .tlai-hero h1 { font-size: 60px; }
}

@media (max-width: 991px) {
    .hero-title,
    .tlai-hero h1 { font-size: 42px; line-height: 1.12; }
    .section-title,
    .tlai-section h2 { font-size: 32px; }
    .brand-logo img,
    .tlai-logo-brand img { height: 40px; }
    .tlai-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preference-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .tlai-grid,
    .tlai-grid.two,
    .tlai-stats,
    .features-grid,
    .steps-grid,
    .tlai-footer-grid { grid-template-columns: 1fr; }
    .tlai-shell,
    .app-shell { grid-template-columns: 1fr; }
    .tlai-sidebar,
    .app-sidebar { position: static; width: 100%; }
    .tlai-doc-card { display: block; }
    .app-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        padding: 16px;
    }
    .sidebar-org,
    .sidebar-section-title { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .site-header,
    .tlai-nav,
    .navbar-inner,
    .tlai-nav-inner { height: 68px; }
    .header-inner { min-height: 68px; padding: 0 18px; }
    .navbar-inner,
    .tlai-nav-inner { width: 100%; padding: 0 18px; }
    .brand-logo img,
    .tlai-logo-brand img,
    .brand img { height: 36px; }
    .mobile-menu-toggle { display: inline-flex; }
    .desktop-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 14px 18px 18px;
        background: #071E3D;
        border-bottom: 2px solid var(--tlai-gold);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .desktop-nav.is-open { display: flex; }
    .nav-link,
    .tlai-links a { margin-left: 0; padding: 10px 0; }
    .nav-cta { justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
    .app-main { padding: 28px 18px 46px; }
    .dashboard-page-header,
    .section-card-head { display: block; }
    .page-actions { justify-content: flex-start; margin-top: 16px; }
    .recent-analysis-card,
    .recent-analysis-left { display: block; }
    .recent-doc-icon { margin-bottom: 12px; }
    .recent-analysis-actions { justify-content: flex-start; margin-top: 16px; }
    .analysis-container { padding: 24px 18px 52px; }
    .document-top-layout,
    .result-hero-card { grid-template-columns: 1fr; }
    .analysis-actions,
    .result-hero-right { justify-content: flex-start; }
    .document-meta-grid,
    .analysis-info-grid,
    .summary-story,
    .generated-drafts-grid,
    .analysis-form-grid,
    .memory-grid { grid-template-columns: 1fr; }
    .ask-box { flex-direction: column; align-items: stretch; }
    .ask-button,
    .ask-input { width: 100%; }
}

/* Chat workspace polish */
.tlai-body .chat-workspace {
    display: grid;
    gap: 18px;
}

.tlai-body .chat-head {
    padding: 28px 30px;
    min-height: auto;
    background:
        linear-gradient(135deg, rgba(12, 16, 26, 0.96), rgba(17, 17, 25, 0.96)),
        #111119;
    border: 1px solid rgba(201, 168, 76, 0.18);
}

.tlai-body .chat-head h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.tlai-body .chat-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.tlai-body .chat-controls,
.tlai-body .chat-main {
    background: #0d0f16;
    border: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.tlai-body .chat-controls {
    padding: 22px;
}

.tlai-body .chat-controls label {
    color: #e1c36f;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tlai-body .chat-language-status,
.tlai-body .workspace-field-label {
    color: #a9a196;
    display: block;
    font-size: 0.82rem;
    margin-top: -4px;
}

.tlai-body .chat-controls select,
.tlai-body .chat-composer textarea {
    background: #080a0f;
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: #eee9df;
}

.tlai-body .chat-controls select:focus,
.tlai-body .chat-composer textarea:focus {
    border-color: #d9a514;
    outline: 2px solid rgba(217, 165, 20, 0.14);
}

.tlai-body .chat-mode-note {
    background: rgba(238, 233, 223, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.16);
    color: #c7c2b6;
}

.tlai-body .chat-main {
    grid-template-rows: minmax(400px, 58vh) auto auto;
    padding: 18px;
}

.tlai-body .chat-history {
    padding: 12px;
}

.tlai-body .chat-bubble {
    border-radius: 8px;
    padding: 16px 18px;
}

.tlai-body .chat-bubble strong {
    color: inherit;
    letter-spacing: 0.02em;
}

.tlai-body .chat-bubble p {
    color: inherit;
}

.tlai-body .chat-bubble small {
    display: block;
    margin-top: 10px;
    color: inherit;
    opacity: 0.72;
    font-size: 12px;
}

.tlai-body .chat-bubble.user {
    background: #082044;
    border: 1px solid rgba(217, 165, 20, 0.14);
    color: #f8fafc;
}

.tlai-body .chat-bubble.ai {
    background: #f4f7fb;
    border: 1px solid rgba(201, 168, 76, 0.14);
    color: #172033;
}

.tlai-body .chat-bubble.ai strong {
    color: #071e3d;
}

.tlai-body .chat-bubble.user strong {
    color: #d9a514;
}

.tlai-body .chat-empty {
    color: #c7c2b6;
}

.tlai-body .chat-empty strong {
    color: #eee9df;
}

.tlai-body .chat-prompts {
    padding: 2px 2px 8px;
}

.tlai-body .chat-prompts button {
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid rgba(201, 168, 76, 0.18);
    color: #0b1f3a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tlai-body .chat-prompts button:hover {
    background: #d9a514;
    color: #071e3d;
}

.tlai-body .chat-composer {
    background: transparent;
    padding-top: 4px;
}

.tlai-body .chat-composer .tlai-btn {
    min-width: 92px;
}

@media (max-width: 980px) {
    .tlai-body .chat-layout {
        grid-template-columns: 1fr;
    }

    .tlai-body .chat-controls {
        position: static;
    }
}

@media (max-width: 575px) {
    .tlai-container { padding: 0 18px; }
    .tlai-hero { padding: 66px 0 56px; }
    .hero-title,
    .tlai-hero h1 { font-size: 32px; line-height: 1.16; letter-spacing: -.8px; }
    .hero-subtitle,
    .tlai-hero p { font-size: 16px; line-height: 1.6; }
    .section-title,
    .tlai-section h2 { font-size: 28px; }
    .hero-chips,
    .tlai-hero-visual { display: flex; flex-wrap: wrap; }
    .hero-chip,
    .tlai-hero-pill { min-width: auto; width: calc(50% - 6px); }
    .tlai-tool-grid { grid-template-columns: 1fr; }
    .stats-grid,
    .quick-actions-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 28px; }
    .stat-value { font-size: 26px; }
    .app-sidebar { grid-template-columns: 1fr; }
    .section-card { padding: 20px; }
    .upload-page-container { padding: 34px 18px 52px; }
    .upload-title { font-size: 30px; }
    .upload-card-header,
    .upload-card-body,
    .form-actions { padding-left: 20px; padding-right: 20px; }
    .file-dropzone { padding: 28px 16px; }
    .privacy-note { display: block; }
    .privacy-note > span { display: inline-block; margin-bottom: 8px; }
    .form-actions { flex-direction: column-reverse; }
    .upload-btn { width: 100%; }
    .selected-file { align-items: flex-start; flex-direction: column; }
    .document-top-card h1 { font-size: 24px; }
    .result-hero-card h2 { font-size: 25px; }
    .analysis-section,
    .document-top-card,
    .result-hero-card { padding: 20px; border-radius: 16px; }
    .draft-grid,
    .risk-grid { grid-template-columns: 1fr; }
    .draft-modal-content { padding: 20px; }
    .draft-modal-head,
    .draft-modal-actions { align-items: stretch; flex-direction: column; }
}

/* Public landing page final polish */
.tlai-logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    overflow: visible;
}

.header-logo-icon {
    height: 38px !important;
    width: auto;
    display: block;
    object-fit: contain;
}

.tlai-logo-brand .brand-wordmark,
.footer-brand .brand-wordmark {
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.3px;
    line-height: 1;
    white-space: nowrap;
}

.tlai-logo-brand .brand-wordmark span,
.footer-brand .brand-wordmark span {
    color: var(--tlai-gold);
}

.tlai-hero {
    display: block;
    padding: 0;
    isolation: isolate;
    overflow: hidden;
}

.tlai-hero::before,
.tlai-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.tlai-hero::before {
    inset: 0;
    background:
        radial-gradient(circle at 76% 35%, rgba(22, 96, 214, .48), transparent 34%),
        linear-gradient(135deg, #061A36 0%, #092A53 48%, #1557C0 100%);
}

.tlai-hero::after {
    width: 720px;
    height: 720px;
    right: -260px;
    top: -260px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: inset 0 0 0 90px rgba(255,255,255,.025);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 64px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 850;
}

.hero-kicker span,
.hero-kicker strong {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 12px;
}

.hero-kicker span {
    background: rgba(217,164,7,.16);
    color: #FFE29A;
}

.hero-kicker strong {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.hero-title,
.tlai-hero h1 {
    max-width: 680px;
    font-size: 50px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-subtitle,
.tlai-hero .hero-subtitle {
    max-width: 650px;
    margin-top: 20px;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.75;
}

.tlai-hero .hero-actions {
    gap: 12px;
    margin-top: 26px;
}

.tlai-hero .tlai-btn {
    min-height: 48px;
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 900;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-proof-row span {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.84);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-preview {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 34px 80px rgba(0,0,0,.26);
    backdrop-filter: blur(10px);
    transform: translateY(4px);
}

.preview-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    color: var(--tlai-navy);
    box-shadow: 0 20px 44px rgba(2, 12, 32, .18);
}

.preview-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: #64748B;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.preview-window-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9E2EF;
}

.preview-window-bar span:first-child { background: #D9A407; }
.preview-window-bar strong { margin-left: auto; }

.preview-card-head em {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #E9F8EF;
    color: #15803D;
    padding: 7px 10px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.preview-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tlai-line);
}

.preview-card-head span,
.preview-summary span,
.preview-status-row span {
    color: var(--tlai-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.preview-card-head strong {
    color: var(--tlai-navy);
    font-size: 16px;
}

.preview-status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.preview-status-row div {
    border: 1px solid var(--tlai-line);
    border-radius: 14px;
    background: #F8FAFC;
    padding: 12px;
}

.preview-status-row strong {
    display: block;
    margin-top: 4px;
    color: var(--tlai-navy);
    font-size: 15px;
}

.preview-summary {
    margin-top: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #EFF6FF, #F8FAFC);
    padding: 14px;
}

.preview-summary p {
    margin: 6px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.preview-draft {
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(217,164,7,.22), rgba(217,164,7,.10));
    color: #6F4C00;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.preview-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.preview-workflow span {
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #F8FAFC;
    color: #64748B;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.preview-workflow .is-done {
    background: #EFF6FF;
    color: #1557C0;
}

.preview-workflow .is-active {
    background: #FFF7DD;
    color: #8A6100;
    border-color: rgba(217,164,7,.35);
}

.preview-floating {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    background: #fff;
    color: var(--tlai-navy);
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.preview-one { top: -14px; right: 28px; }
.preview-two { bottom: -14px; left: 32px; }

.section,
.tlai-section {
    padding: 78px 0;
}

.section-title,
.tlai-section h2 {
    font-size: 34px;
    font-weight: 900;
}

.section-subtitle {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
}

.step-card,
.feature-card,
.usecase-card,
.privacy-card {
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(7,30,61,.06);
    transition: all .18s ease;
}

.feature-card:hover,
.step-card:hover,
.usecase-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,160,23,.55);
    box-shadow: 0 20px 46px rgba(7,30,61,.10);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(212,160,23,.14);
    color: #9A6B00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 900;
}

.card-title {
    font-size: 17px;
    font-weight: 850;
}

.card-text {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.65;
}

.step-card .step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    font-size: 13px;
    margin: 0;
}

.step-card {
    position: relative;
}

.hero-chips,
.tlai-hero-visual {
    display: flex;
    flex-wrap: wrap;
    max-width: 640px;
    gap: 10px;
    margin-top: 24px;
}

.hero-chip,
.tlai-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.18);
}

.hero-chip span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(242,201,76,.18);
    color: var(--tlai-soft-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

.privacy-section {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFF8E1 100%);
}

.trust-strip {
    margin-top: 18px;
    border: 1px solid rgba(21,87,192,.16);
    border-radius: 16px;
    background: #fff;
    padding: 15px 18px;
    color: #243B5A;
    font-size: 14px;
    font-weight: 850;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.trust-strip span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--tlai-gold);
}

.final-cta {
    background: linear-gradient(135deg, #071E3D, #0B2F5B);
    border-radius: 26px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 24px 60px rgba(7,30,61,.18);
}

.final-cta h2 {
    color: #fff;
    font-size: 34px;
    margin: 0;
}

.final-cta p {
    max-width: 760px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.7;
}

.cta-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.cta-mini-grid div {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    padding: 16px;
}

.cta-mini-grid strong,
.cta-mini-grid span {
    display: block;
}

.cta-mini-grid span {
    margin-top: 6px;
    color: rgba(255,255,255,.74);
    font-size: 14px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
    min-width: 220px;
}

.footer-brand img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.68);
    font-size: 13px;
}

.tlai-footer {
    font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tlai-footer strong {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.tlai-footer p,
.tlai-footer a {
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 991px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 60px;
    }
    .hero-title,
    .tlai-hero h1 {
        font-size: 40px;
    }
    .hero-preview {
        max-width: 560px;
    }
}

.admin-sidebar a.active {
    background: rgba(217, 165, 20, 0.14);
    border-color: rgba(217, 165, 20, 0.36);
    color: #fff;
    box-shadow: inset 4px 0 0 var(--tlai-gold);
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    background: #fff;
}

.admin-data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-data-table th,
.admin-data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #E5EAF1;
    text-align: left;
    vertical-align: top;
}

.admin-data-table th {
    background: #F6F8FB;
    color: var(--tlai-navy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-data-table td {
    color: #10213A;
    max-width: 300px;
    overflow-wrap: anywhere;
}

.admin-data-table tbody tr:hover {
    background: #FAFBFD;
}

.admin-analytics-page {
    max-width: 1320px;
}

.ai-workspace-hero,
.guided-tools-hero,
.demo-report-hero {
    background: #fff;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.ai-workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
    gap: 24px;
    align-items: stretch;
}

.ai-workspace-hero h1,
.guided-tools-hero h1,
.demo-report-hero h1 {
    margin: 8px 0 12px;
    font-size: 38px;
    line-height: 1.12;
    color: var(--tlai-navy);
}

.ai-workspace-hero p,
.guided-tools-hero p,
.demo-report-hero p {
    color: var(--tlai-muted);
    max-width: 860px;
}

.ai-workspace-hero aside {
    background: #F6F8FB;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    padding: 20px;
}

.ai-workspace-hero aside strong,
.ai-workspace-hero aside span {
    display: block;
}

.ai-workspace-hero aside span {
    margin-top: 10px;
    color: var(--tlai-muted);
    line-height: 1.55;
}

.workspace-primary-actions,
.smart-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.workspace-left,
.workspace-right {
    display: grid;
    gap: 16px;
}

.workspace-ai-card,
.workspace-result-card,
.demo-report-card {
    background: #fff;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.workspace-ai-card {
    padding: 18px;
}

.workspace-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.workspace-tabs button {
    border: 1px solid #D9E1EC;
    background: #F6F8FB;
    color: var(--tlai-navy);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.workspace-tabs button.active {
    background: var(--tlai-navy);
    color: #fff;
    border-color: var(--tlai-navy);
}

.workspace-panel {
    display: none;
    padding-top: 8px;
}

.workspace-panel.active {
    display: block;
}

.workspace-dropzone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 220px;
    border: 2px dashed #B9C6D8;
    border-radius: 8px;
    background: #FAFBFD;
    text-align: center;
    padding: 24px;
    cursor: pointer;
}

.workspace-dropzone span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(217, 165, 20, .16);
    color: var(--tlai-navy);
    font-weight: 900;
}

.workspace-dropzone small {
    color: var(--tlai-muted);
}

#workspace-document {
    margin: 14px 0;
}

.workspace-panel textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #D9E1EC;
    border-radius: 8px;
    padding: 14px;
    font: inherit;
    line-height: 1.55;
}

.workspace-ai-status {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 16px;
}

.workspace-ai-status.is-visible {
    display: flex;
}

.workspace-ai-status span {
    display: none;
    background: #F6F8FB;
    border: 1px solid #E5EAF1;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--tlai-muted);
    font-weight: 700;
}

.workspace-ai-status span.active {
    display: inline-flex;
    color: var(--tlai-navy);
    border-color: rgba(217, 165, 20, .4);
}

.workspace-mini-list,
.recommended-card {
    display: grid;
    gap: 10px;
}

.workspace-mini-list a,
.recommended-card a {
    display: block;
    padding: 10px;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    text-decoration: none;
    color: var(--tlai-navy);
    background: #FAFBFD;
}

.workspace-mini-list span,
.recommended-card p,
.privacy-mode-card p {
    display: block;
    margin-top: 4px;
    color: var(--tlai-muted);
    font-size: 13px;
    line-height: 1.45;
}

.workspace-result-card {
    margin-top: 18px;
    padding: 22px;
}

.recommended-next-step-card {
    margin: 18px 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(217, 165, 20, .38);
    border-left: 5px solid var(--tlai-gold);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.recommended-next-step-card span {
    display: block;
    color: var(--tlai-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.recommended-next-step-card strong {
    display: block;
    color: var(--tlai-navy);
    font-size: 20px;
    line-height: 1.35;
}

.workspace-result-card span,
.demo-report-card span {
    color: var(--tlai-muted);
    font-size: 13px;
    font-weight: 800;
}

.workspace-result-grid,
.demo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.workspace-result-grid article,
.demo-kpi-grid article {
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    padding: 14px;
    background: #FAFBFD;
}

.workspace-differentiators {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.workspace-differentiators span {
    border: 1px solid #D9E1EC;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: var(--tlai-navy);
    font-weight: 800;
    font-size: 13px;
}

.guided-tools-hero {
    margin-bottom: 18px;
}

.guided-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guided-tool-card {
    background: #fff;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.guided-tool-card p {
    color: var(--tlai-muted);
    min-height: 76px;
}

.guided-tool-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(217, 165, 20, .14);
    color: var(--tlai-navy);
    font-size: 12px;
    font-weight: 900;
}

.guided-tool-card.is-soon {
    background: #FAFBFD;
}

.ask-entry {
    display: grid;
    gap: 14px;
}

.chat-prompts.compact a {
    text-decoration: none;
}

.demo-report-page {
    background: var(--tlai-bg);
}

.demo-report-card {
    padding: 24px;
    margin-top: 18px;
}

.demo-report-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.demo-report-head strong {
    background: rgba(217, 165, 20, .16);
    color: var(--tlai-navy);
    padding: 10px 12px;
    border-radius: 8px;
}

.demo-report-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.demo-report-sections article {
    border-top: 1px solid #E5EAF1;
    padding-top: 14px;
}

.legal-search-hero,
.legal-search-form,
.search-agent-answer,
.legal-search-result-card {
    background: #fff;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.legal-search-hero,
.legal-search-form,
.search-agent-answer,
.legal-search-result-card {
    padding: 22px;
}

.legal-search-hero h1 {
    margin: 8px 0 10px;
    color: var(--tlai-navy);
    font-size: 34px;
    line-height: 1.15;
}

.legal-search-hero p,
.match-reason {
    color: var(--tlai-muted);
}

.legal-search-form {
    margin-top: 16px;
}

.legal-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.legal-search-box input,
.legal-search-filters select,
.legal-search-filters input {
    width: 100%;
    border: 1px solid #D9E1EC;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}

.legal-search-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.search-agent-answer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.search-agent-answer span,
.legal-search-result-card span {
    color: var(--tlai-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-search-results {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.search-result-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.search-result-head h2 {
    margin: 4px 0;
    color: var(--tlai-navy);
}

.search-result-meta {
    min-width: 170px;
    text-align: right;
}

.search-result-meta strong,
.search-result-meta span {
    display: block;
}

.legal-search-result-card blockquote {
    margin: 14px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--tlai-gold);
    background: #FAFBFD;
    color: #10213A;
    line-height: 1.55;
}

.search-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .workspace-layout {
        grid-template-columns: 1fr;
    }
    .workspace-left,
    .workspace-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ai-workspace-hero,
    .guided-tool-grid,
    .demo-report-sections,
    .workspace-result-grid,
    .demo-kpi-grid {
        grid-template-columns: 1fr;
    }
    .ai-workspace-hero h1,
    .guided-tools-hero h1,
    .demo-report-hero h1 {
        font-size: 30px;
    }
    .workspace-left,
    .workspace-right {
        grid-template-columns: 1fr;
    }
    .demo-report-head {
        display: block;
    }
    .guided-tool-card p {
        min-height: 0;
    }
    .legal-search-box,
    .legal-search-filters,
    .search-agent-answer,
    .search-result-head {
        grid-template-columns: 1fr;
        display: grid;
    }
    .search-result-meta {
        text-align: left;
    }
}

.analytics-head {
    align-items: flex-start;
    gap: 18px;
}

.analytics-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-filter-card,
.analytics-panel,
.analytics-kpi-card {
    background: #fff;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 30, 61, 0.08);
}

.analytics-filter-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin: 18px 0;
}

.analytics-range-pills,
.analytics-date-fields {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #E5EAF1;
    border-radius: 999px;
    color: #475467;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.analytics-pill.active {
    border-color: rgba(217, 165, 20, 0.65);
    background: #FFF6D8;
    color: #7A4E00;
}

.analytics-pill input {
    accent-color: var(--tlai-gold);
}

.analytics-date-fields label {
    display: grid;
    gap: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.analytics-date-fields input {
    min-height: 40px;
    border: 1px solid #D0D7E2;
    border-radius: 8px;
    padding: 0 10px;
    color: var(--tlai-navy);
    font-weight: 750;
}

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.analytics-kpi-card {
    padding: 18px;
}

.analytics-kpi-card span {
    display: block;
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: 900;
}

.analytics-kpi-card strong {
    display: block;
    margin-top: 8px;
    color: var(--tlai-navy);
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.analytics-chart-grid,
.analytics-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.analytics-table-grid {
    margin-top: 16px;
}

.analytics-panel {
    padding: 18px;
    min-width: 0;
}

.analytics-panel.full-span {
    grid-column: 1 / -1;
}

.analytics-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.analytics-panel-head h2 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.analytics-panel-head span {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    text-align: right;
}

.responsive-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.analytics-table th,
.analytics-table td {
    border-bottom: 1px solid #E5EAF1;
    padding: 11px 10px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.analytics-table th {
    color: #667085;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 950;
    background: #F8FAFC;
}

.analytics-table tr:last-child td {
    border-bottom: 0;
}

.analytics-table .url-cell {
    max-width: 440px;
    overflow-wrap: anywhere;
    color: var(--tlai-navy);
    font-weight: 750;
}

.analytics-event-chip {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #EEF4FF;
    color: #175CD3;
    font-size: 12px;
    font-weight: 850;
    text-transform: capitalize;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .analytics-chart-grid,
    .analytics-table-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }
    .analytics-export-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .analytics-panel-head {
        display: grid;
    }
    .analytics-panel-head span {
        text-align: left;
    }
}

.presentation-form textarea {
    min-height: 220px;
}

.presentation-gallery-page {
    background: #080A0F;
    color: #eee9df;
    padding: 34px 0 72px;
}

.presentation-gallery-hero,
.presentation-template-shell,
.presentation-selected-panel,
.presentation-builder-form,
.presentation-seo-faq {
    border: 1px solid rgba(201, 168, 76, .2);
    background:
        radial-gradient(circle at 16% 0%, rgba(201, 168, 76, .08), transparent 32%),
        linear-gradient(135deg, #111119 0%, #090A0F 100%);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.presentation-gallery-hero {
    padding: clamp(28px, 4vw, 44px);
    margin-bottom: 18px;
}

.presentation-gallery-hero h1,
.presentation-form-head h2,
.presentation-selected-panel h2 {
    margin: 10px 0 14px;
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}

.presentation-gallery-hero p,
.presentation-form-head p,
.presentation-selected-panel p,
.presentation-selected-panel dd {
    color: #b8b4a8;
    font-size: 16px;
    line-height: 1.7;
}

.presentation-hero-links,
.presentation-filter-row,
.presentation-source-row,
.presentation-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.presentation-hero-links a,
.presentation-filter,
.presentation-source-row label,
.presentation-options-row label {
    border: 1px solid rgba(201, 168, 76, .28);
    background: rgba(201, 168, 76, .08);
    color: #d9a407;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.presentation-template-shell {
    padding: clamp(18px, 3vw, 30px);
    margin-bottom: 24px;
    scroll-margin-top: 92px;
}

.presentation-gallery-toolbar {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.presentation-search span {
    display: block;
    color: #d9a407;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.presentation-search input,
.presentation-builder-form input,
.presentation-builder-form select,
.presentation-builder-form textarea,
.presentation-title-edit input {
    width: 100%;
    border: 1px solid rgba(201, 168, 76, .2);
    background: #080A0F;
    color: #eee9df;
    padding: 14px 15px;
}

.presentation-filter {
    cursor: pointer;
}

.presentation-filter.active,
.presentation-filter:hover {
    background: #d9a407;
    color: #080A0F;
}

.presentation-result-count {
    margin: 2px 0 0;
    color: #b8b4a8;
    font-size: 13px;
    font-weight: 800;
}

.presentation-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.presentation-template-card {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(201, 168, 76, .18);
    background: #0c0d13;
    padding: 12px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.presentation-template-card:hover,
.presentation-template-card.selected {
    transform: translateY(-3px);
    border-color: rgba(217, 164, 7, .78);
    background: #13141b;
}

.presentation-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(135deg, #111827, #071E3D);
    padding: 16px;
}

.presentation-thumb::after {
    content: "";
    position: absolute;
    inset: auto 14px 14px auto;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(217, 164, 7, .38);
}

.thumb-top {
    width: 34%;
    height: 5px;
    background: #d9a407;
    margin-bottom: 16px;
}

.thumb-title {
    max-width: 76%;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.05;
}

.thumb-lines {
    display: grid;
    gap: 5px;
    width: 58%;
    margin-top: 18px;
}

.thumb-lines i {
    display: block;
    height: 5px;
    background: rgba(255,255,255,.34);
}

.thumb-cards {
    display: flex;
    gap: 7px;
    position: absolute;
    left: 16px;
    bottom: 16px;
}

.thumb-cards b {
    display: block;
    width: 38px;
    height: 28px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(217,164,7,.24);
}

.presentation-thumb-report { background: linear-gradient(135deg, #0B2E4A, #F5F7FA); }
.presentation-thumb-report .thumb-title { color: #102033; }
.presentation-thumb-pitch { background: linear-gradient(135deg, #080A0F, #7F1D1D); }
.presentation-thumb-business { background: linear-gradient(135deg, #050608, #1B1E24); }
.presentation-thumb-minimal { background: linear-gradient(135deg, #FFFFFF, #F4F7FB); }
.presentation-thumb-minimal .thumb-title { color: #111827; }
.presentation-thumb-modern { background: linear-gradient(135deg, #071E3D, #166534); }
.presentation-thumb-education { background: linear-gradient(135deg, #064E3B, #ECFDF5); }
.presentation-thumb-education .thumb-title { color: #064E3B; }
.presentation-thumb-timeline { background: linear-gradient(135deg, #111827, #0B2E4A); }
.presentation-thumb-formal { background: linear-gradient(135deg, #0B2E4A, #111119); }

.presentation-card-body span {
    color: #d9a407;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.presentation-card-body h2 {
    margin: 7px 0;
    color: #eee9df;
    font-size: 18px;
    line-height: 1.15;
}

.presentation-card-body p {
    min-height: 54px;
    color: #b8b4a8;
    font-size: 13px;
    line-height: 1.45;
}

.presentation-selected-panel {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: clamp(22px, 4vw, 38px);
    margin-bottom: 24px;
}

.presentation-selected-panel h2,
.presentation-form-head h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.presentation-selected-panel dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 0;
}

.presentation-selected-panel dt {
    color: #d9a407;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.presentation-builder-form {
    padding: clamp(20px, 4vw, 34px);
    margin-bottom: 24px;
}

.presentation-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.presentation-setup-grid .wide {
    grid-column: 1 / -1;
}

.presentation-builder-form label {
    color: #eee9df;
    font-weight: 850;
}

.presentation-title-edit {
    display: grid;
    gap: 7px;
    max-width: 520px;
    margin: 10px 0 12px;
    color: #d9a407;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .presentation-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .presentation-selected-panel,
    .presentation-selected-panel dl,
    .presentation-setup-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 640px) {
    .presentation-gallery-page {
        padding: 18px 0 36px;
    }
    .presentation-template-grid {
        grid-template-columns: 1fr;
    }
    .presentation-gallery-hero,
    .presentation-template-shell,
    .presentation-selected-panel,
    .presentation-builder-form {
        padding: 18px;
    }
    .presentation-selected-panel .tlai-btn {
        width: 100%;
    }
}

.presentation-helper {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.presentation-custom-count {
    display: none;
}

.presentation-custom-count.is-visible {
    display: block;
}

.presentation-large-note {
    margin-top: 18px;
}

.presentation-outline-list {
    display: grid;
    gap: 14px;
}

.presentation-outline-item {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.presentation-outline-item span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.presentation-outline-item h2,
.presentation-outline-item h3 {
    margin: 6px 0 8px;
}

.presentation-outline-item ul {
    margin: 0;
    padding-left: 18px;
}

.presentation-home-band .final-cta {
    background: #071E3D;
    color: #fff;
}

.presentation-home-band .final-cta p {
    color: rgba(255,255,255,.78);
}

.presentation-use-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.presentation-use-list span {
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.presentation-demo-card {
    overflow: hidden;
}

/* Presentation builder preview/result pages. */
.tlai-body .presentation-preview-head {
    border: 1px solid var(--tlai-premium-border);
    background:
        radial-gradient(circle at 18% 0%, rgba(201, 168, 76, .08), transparent 28%),
        linear-gradient(135deg, #111119 0%, #0d0e14 100%);
    padding: 42px 36px;
}

.tlai-body .presentation-preview-head h1 {
    max-width: 760px;
    margin: 10px 0 12px;
    color: var(--tlai-premium-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

.tlai-body .presentation-preview-head .tlai-muted {
    color: var(--tlai-premium-muted);
    font-size: 15px;
}

.tlai-body .presentation-meta-row,
.tlai-body .presentation-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.tlai-body .presentation-meta-row span,
.tlai-body .presentation-samples span,
.tlai-body .presentation-sample-btn,
.tlai-body .presentation-note,
.tlai-body .presentation-content-source,
.tlai-body .presentation-progress-steps span {
    border: 1px solid rgba(201, 168, 76, .28);
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-gold);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tlai-body .presentation-sample-btn {
    cursor: pointer;
}

.tlai-body .presentation-sample-btn:hover {
    background: var(--tlai-premium-gold);
    color: #080A0F;
}

.tlai-body .presentation-helper {
    color: var(--tlai-premium-muted);
}

.tlai-body .presentation-progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.tlai-body .presentation-preview-card,
.tlai-body .presentation-ready-card {
    border: 1px solid var(--tlai-premium-border);
    border-radius: 0;
    background: var(--tlai-premium-card);
    box-shadow: none;
}

.tlai-body .presentation-preview-card {
    padding: 22px;
}

.tlai-body .presentation-outline-list {
    gap: 14px;
}

.tlai-body .presentation-outline-item {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    border: 1px solid rgba(201, 168, 76, .2);
    border-left: 4px solid var(--tlai-premium-gold);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(17, 17, 25, .98), rgba(9, 10, 15, .98)),
        var(--tlai-premium-card);
    padding: 24px 26px;
    color: var(--tlai-premium-text);
}

.tlai-body .presentation-outline-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(201, 168, 76, .06), transparent 42%);
}

.tlai-body .presentation-outline-item > * {
    position: relative;
    z-index: 1;
}

.tlai-body .presentation-outline-item span {
    display: inline-flex;
    color: var(--tlai-premium-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tlai-body .presentation-outline-item h2,
.tlai-body .presentation-outline-item h3 {
    margin: 12px 0 12px;
    color: var(--tlai-premium-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
}

.tlai-body .presentation-outline-item p,
.tlai-body .presentation-outline-item li {
    color: var(--tlai-premium-muted);
    font-size: 15px;
    line-height: 1.65;
}

.tlai-body .presentation-outline-item .presentation-note {
    display: inline-flex;
    margin-top: 14px;
    color: var(--tlai-premium-gold);
    line-height: 1.2;
}

.tlai-body .presentation-outline-item .presentation-content-source {
    display: inline-flex;
    margin: 0 0 10px;
    color: var(--tlai-premium-gold);
    line-height: 1.2;
}

.tlai-body .presentation-outline-item ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.tlai-body .presentation-preview-card form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--tlai-premium-border);
}

.tlai-body .presentation-ready-card h1 {
    color: var(--tlai-premium-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.04;
}

@media (max-width: 640px) {
    .tlai-body .presentation-preview-head,
    .tlai-body .presentation-preview-card {
        padding: 18px;
    }
    .tlai-body .presentation-outline-item {
        min-height: auto;
        padding: 18px;
    }
    .tlai-body .presentation-outline-item h2,
    .tlai-body .presentation-outline-item h3 {
        font-size: 28px;
    }
}

.tlai-inline-home-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 12px;
    color: #071E3D;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pdf-tools-hero .tlai-inline-home-link {
    color: #fff;
}

/* Premium analysis workspace */
.analysis-workspace {
    background: #F5F7FB;
}

.analysis-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 70px;
}

.analysis-toolbar {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    margin-bottom: 16px;
    background: rgba(245,247,251,.92);
    border-bottom: 1px solid #E5EAF1;
    backdrop-filter: blur(10px);
}

.toolbar-title h1 {
    margin: 0;
    color: #071E3D;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.toolbar-title p {
    margin: 6px 0 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
}

.toolbar-title p span::after {
    content: "/";
    margin: 0 7px;
    color: #CBD5E1;
}

.toolbar-actions,
.bottom-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.analysis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #071E3D;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.analysis-btn.primary {
    border-color: #D9A514;
    background: #D9A514;
}

.single-disclaimer {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #F3D47C;
    border-radius: 8px;
    background: #FFFAEA;
    color: #795200;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.executive-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    background: #071E3D;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.analysis-kicker {
    display: block;
    color: #D9A514;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.executive-snapshot h2 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: 0;
}

.executive-snapshot p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #DDE7F5;
    font-size: 16px;
    line-height: 1.6;
}

.snapshot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.snapshot-badges span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.snapshot-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.snapshot-metrics div,
.overview-grid article,
.direction-grid article,
.risk-card-grid article,
.next-action-grid article,
.analysis-section,
.key-para-card,
.generated-draft-card,
.draft-card {
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    background: #fff;
}

.snapshot-metrics div {
    padding: 13px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
}

.snapshot-metrics span,
.direction-grid span,
.analysis-info-grid span {
    display: block;
    color: #64748B;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.snapshot-metrics span {
    color: #AFC3DD;
}

.snapshot-metrics strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.analysis-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid #E5EAF1;
    margin-top: 20px;
}

.analysis-tab {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #667085;
    font-weight: 850;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.analysis-tab.active {
    background: #fff;
    color: #071E3D;
    border-color: #E5EAF1;
    border-bottom-color: #fff;
}

.analysis-tab-panel {
    display: none;
    padding-top: 18px;
}

.analysis-tab-panel.active {
    display: block;
}

.analysis-section {
    padding: 20px;
    margin-bottom: 16px;
}

.analysis-section h2 {
    margin: 0 0 12px;
    color: #071E3D;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.analysis-section h3,
.overview-grid h3,
.risk-card-grid h3,
.next-action-grid h3,
.generated-draft-card h3,
.draft-card h3 {
    margin: 0 0 8px;
    color: #071E3D;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
}

.analysis-text,
.overview-grid p,
.risk-card-grid p,
.next-action-grid p,
.draft-card p,
.generated-draft-card p {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.72;
}

.analysis-text.lead {
    font-size: 16px;
}

.highlight-list {
    margin: 16px 0 0;
    padding-left: 22px;
    color: #334155;
    line-height: 1.7;
    font-weight: 650;
}

.overview-grid,
.direction-grid,
.risk-card-grid,
.next-action-grid,
.generated-drafts-grid,
.draft-grid,
.analysis-info-grid,
.memory-grid {
    display: grid;
    gap: 14px;
}

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

.direction-grid,
.risk-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.next-action-grid,
.analysis-info-grid,
.memory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.draft-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.overview-grid article,
.direction-grid article,
.risk-card-grid article,
.next-action-grid article,
.analysis-info-grid div,
.memory-grid div {
    padding: 16px;
}

.direction-grid strong,
.analysis-info-grid strong {
    display: block;
    margin-top: 6px;
    color: #071E3D;
    font-size: 15px;
    line-height: 1.5;
}

.order-quote {
    margin: 0;
    padding: 18px;
    border-left: 4px solid #D9A514;
    border-radius: 8px;
    background: #FFF9E8;
    color: #25364D;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

.soft-details {
    margin-top: 12px;
}

.soft-details summary,
.key-para-card summary {
    color: #0B4A8F;
    font-weight: 850;
    cursor: pointer;
}

.party-side-form.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.party-side-form label {
    color: #071E3D;
    font-weight: 850;
}

.party-side-form select {
    min-height: 40px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
}

.key-para-card {
    padding: 18px;
    margin-bottom: 14px;
}

.key-para-card h3 {
    margin: 0 0 10px;
    color: #071E3D;
    font-size: 16px;
}

.key-para-text {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

mark {
    background: #FFF3C4;
    color: #7A4E00;
    padding: 0 3px;
    border-radius: 4px;
}

.phrase-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.phrase-list span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1E4D8F;
    font-size: 12px;
    font-weight: 850;
}

.ask-box {
    display: flex;
    gap: 10px;
}

.ask-input {
    flex: 1;
    min-height: 44px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 15px;
}

.ask-button,
.draft-generate-btn {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #071E3D;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.quick-prompts button {
    border: 1px solid #D8E0EA;
    border-radius: 999px;
    background: #fff;
    padding: 8px 11px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ask-answer {
    margin-top: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #17365D;
    line-height: 1.7;
}

.draft-card,
.generated-draft-card {
    padding: 16px;
}

.draft-card-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #FFF3C4;
    color: #7A4E00;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.generated-draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mini-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #071E3D;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.mini-action-btn.danger {
    color: #B42318;
}

.bottom-export-actions {
    justify-content: center;
    margin-top: 22px;
}

.draft-modal[hidden] {
    display: none;
}

.draft-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(7,30,61,.48);
}

.draft-modal-content {
    position: fixed;
    inset: 8vh 50%;
    z-index: 90;
    transform: translateX(-50%);
    width: min(820px, calc(100vw - 28px));
    max-height: 84vh;
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.draft-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #E5EAF1;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.draft-preview-body {
    white-space: pre-line;
    color: #334155;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .analysis-toolbar,
    .executive-snapshot {
        grid-template-columns: 1fr;
    }
    .analysis-toolbar {
        align-items: flex-start;
        flex-direction: column;
        top: 64px;
    }
    .toolbar-actions {
        justify-content: flex-start;
    }
    .overview-grid,
    .direction-grid,
    .risk-card-grid,
    .next-action-grid,
    .generated-drafts-grid,
    .draft-grid,
    .analysis-info-grid,
    .memory-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Admin premium surface: matches the public TheLegalAI dark/gold identity. */
.tlai-body.admin-login-page,
.tlai-body.admin-page {
    --admin-bg: #090a0f;
    --admin-panel: #111119;
    --admin-card: #0d0e14;
    --admin-border: rgba(201, 168, 76, 0.16);
    --admin-border-strong: rgba(201, 168, 76, 0.34);
    --admin-gold: #c9a84c;
    --admin-gold-light: #e1c36f;
    --admin-text: #eee9df;
    --admin-muted: #b8b4a8;
    --admin-soft: #9e998d;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.tlai-body.admin-login-page {
    display: grid;
    background:
        radial-gradient(circle at 22% 18%, rgba(201, 168, 76, 0.08), transparent 25%),
        linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%);
}

.tlai-body.admin-login-page .admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 18px;
}

.tlai-body.admin-login-page .admin-login-card {
    width: min(100%, 460px);
    padding: 36px;
    border: 1px solid var(--admin-border);
    border-radius: 0;
    background: var(--admin-card);
    color: var(--admin-text);
    box-shadow: none;
}

.tlai-body.admin-login-page .admin-login-card img {
    height: 60px;
    width: auto;
    margin: 0 0 22px;
    object-fit: contain;
}

.tlai-body.admin-login-page .admin-login-card h1,
.tlai-body.admin-page .tlai-page-head h1 {
    margin: 0;
    color: var(--admin-text);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.tlai-body.admin-login-page .admin-login-card h1 {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.04;
}

.tlai-body.admin-login-page .admin-login-card p {
    margin: 10px 0 22px;
    color: var(--admin-muted);
    font-size: 16px;
}

.tlai-body.admin-login-page .admin-login-card .tlai-form {
    display: grid;
    gap: 12px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.tlai-body.admin-login-page .admin-login-card label,
.tlai-body.admin-page label {
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 800;
}

.tlai-body.admin-login-page .admin-login-card input,
.tlai-body.admin-page input,
.tlai-body.admin-page textarea,
.tlai-body.admin-page select {
    min-height: 44px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 0;
    background: #090a0f;
    color: var(--admin-text);
    padding: 10px 12px;
    font: inherit;
}

.tlai-body.admin-login-page .admin-login-card .tlai-btn,
.tlai-body.admin-page .tlai-btn,
.tlai-body.admin-page .tlai-primary,
.tlai-body.admin-page button,
.tlai-body.admin-page input[type="submit"] {
    min-height: 42px;
    border: 1px solid var(--admin-gold);
    border-radius: 2px;
    background: var(--admin-gold);
    color: #090a0f;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
}

.tlai-body.admin-login-page .admin-login-card .tlai-btn:hover,
.tlai-body.admin-page .tlai-btn:hover,
.tlai-body.admin-page .tlai-primary:hover,
.tlai-body.admin-page button:hover {
    background: var(--admin-gold-light);
    border-color: var(--admin-gold-light);
    color: #090a0f;
}

.tlai-body.admin-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 76px;
    background: #0b0d14;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.tlai-body.admin-page .header-inner {
    max-width: none;
    width: 100%;
    height: 76px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
}

.tlai-body.admin-page .brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.tlai-body.admin-page .brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.tlai-body.admin-page .upload-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tlai-body.admin-page .nav-link {
    margin: 0;
    color: var(--admin-gold-light);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.tlai-body.admin-page .nav-cta {
    border-radius: 2px;
    padding: 11px 17px;
    background: var(--admin-gold) !important;
    color: #090a0f !important;
}

.tlai-body.admin-page .admin-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
    background: var(--admin-bg);
}

.tlai-body.admin-page .admin-sidebar {
    position: sticky;
    top: 76px;
    align-self: start;
    height: calc(100vh - 76px);
    width: 286px;
    overflow-y: auto;
    padding: 22px 18px;
    border-right: 1px solid var(--admin-border);
    background: #0b0d14;
    color: var(--admin-text);
    box-shadow: none;
}

.tlai-body.admin-page .admin-sidebar-title {
    display: block;
    margin: 0 8px 14px;
    color: var(--admin-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tlai-body.admin-page .admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 2px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--admin-muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.tlai-body.admin-page .admin-sidebar a:hover,
.tlai-body.admin-page .admin-sidebar a.active {
    border-color: var(--admin-border-strong);
    background: rgba(201, 168, 76, 0.08);
    color: var(--admin-gold-light);
    box-shadow: inset 3px 0 0 var(--admin-gold);
}

.tlai-body.admin-page .tlai-main {
    min-width: 0;
    padding: 30px 32px 46px;
    background: var(--admin-bg);
    color: var(--admin-text);
}

.tlai-body.admin-page .tlai-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
    padding: 28px 30px;
    border: 1px solid var(--admin-border);
    border-radius: 0;
    background: var(--admin-card);
    color: var(--admin-text);
    box-shadow: none;
}

.tlai-body.admin-page .tlai-page-head h1 {
    font-size: clamp(36px, 3.8vw, 54px);
    line-height: 1.02;
}

.tlai-body.admin-page .tlai-muted,
.tlai-body.admin-page p,
.tlai-body.admin-page li {
    color: var(--admin-muted);
    font-size: 15px;
    line-height: 1.68;
}

.tlai-body.admin-page .tlai-card,
.tlai-body.admin-page .analytics-filter-card,
.tlai-body.admin-page .analytics-panel,
.tlai-body.admin-page .analytics-kpi-card {
    border: 1px solid var(--admin-border);
    border-radius: 0;
    background: var(--admin-card);
    color: var(--admin-text);
    box-shadow: none;
}

.tlai-body.admin-page .tlai-card {
    padding: 22px;
}

.tlai-body.admin-page .tlai-card h2,
.tlai-body.admin-page .analytics-panel-head h2 {
    margin: 0 0 12px;
    color: var(--admin-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.15;
}

.tlai-body.admin-page .tlai-stats,
.tlai-body.admin-page .analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.tlai-body.admin-page .tlai-stat,
.tlai-body.admin-page .analytics-kpi-card {
    padding: 20px;
}

.tlai-body.admin-page .tlai-stat span,
.tlai-body.admin-page .analytics-kpi-card span {
    display: block;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tlai-body.admin-page .tlai-stat strong,
.tlai-body.admin-page .analytics-kpi-card strong {
    display: block;
    margin-top: 10px;
    color: var(--admin-gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.tlai-body.admin-page .admin-table-wrap,
.tlai-body.admin-page .responsive-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--admin-border);
    border-radius: 0;
    background: #090a0f;
}

.tlai-body.admin-page .admin-data-table,
.tlai-body.admin-page .analytics-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: var(--admin-text);
    font-size: 14px;
}

.tlai-body.admin-page .admin-data-table th,
.tlai-body.admin-page .admin-data-table td,
.tlai-body.admin-page .analytics-table th,
.tlai-body.admin-page .analytics-table td {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    color: var(--admin-text);
    text-align: left;
    vertical-align: top;
}

.tlai-body.admin-page .admin-data-table th,
.tlai-body.admin-page .analytics-table th {
    background: #111119;
    color: var(--admin-gold-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tlai-body.admin-page .admin-data-table td,
.tlai-body.admin-page .analytics-table td {
    max-width: 340px;
    overflow-wrap: anywhere;
    color: #ddd8cf;
}

.tlai-body.admin-page .admin-data-table tbody tr:hover,
.tlai-body.admin-page .analytics-table tbody tr:hover {
    background: rgba(201, 168, 76, 0.05);
}

.tlai-body.admin-page .tlai-badge,
.tlai-body.admin-page .analytics-event-chip,
.tlai-body.admin-page .analytics-pill {
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 0;
    background: rgba(201, 168, 76, 0.07);
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.tlai-body.admin-page .analytics-pill.active {
    border-color: var(--admin-border-strong);
    background: rgba(201, 168, 76, 0.14);
    color: var(--admin-gold-light);
}

.tlai-body.admin-page .analytics-filter-card,
.tlai-body.admin-page .analytics-panel {
    padding: 20px;
}

.tlai-body.admin-page .analytics-panel-head span {
    color: var(--admin-muted);
    font-size: 13px;
}

.tlai-body.admin-page .analytics-chart-grid,
.tlai-body.admin-page .analytics-table-grid {
    gap: 16px;
}

.tlai-body.admin-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tlai-body.admin-page .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlai-body.admin-page .checkbox-row input,
.tlai-body.admin-page input[type="checkbox"],
.tlai-body.admin-page input[type="radio"] {
    min-height: 0;
    width: auto;
    accent-color: var(--admin-gold);
}

@media (max-width: 1100px) {
    .tlai-body.admin-page .admin-shell {
        grid-template-columns: 1fr;
    }

    .tlai-body.admin-page .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        border-right: 0;
        border-bottom: 1px solid var(--admin-border);
    }

    .tlai-body.admin-page .admin-sidebar-title {
        grid-column: 1 / -1;
    }

    .tlai-body.admin-page .tlai-stats,
    .tlai-body.admin-page .analytics-kpi-grid,
    .tlai-body.admin-page .analytics-chart-grid,
    .tlai-body.admin-page .analytics-table-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tlai-body.admin-login-page .admin-login-card {
        padding: 26px;
    }

    .tlai-body.admin-page .header-inner {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 18px;
    }

    .tlai-body.admin-page .site-header {
        height: auto;
    }

    .tlai-body.admin-page .admin-sidebar {
        grid-template-columns: 1fr;
    }

    .tlai-body.admin-page .tlai-main {
        padding: 20px 16px 34px;
    }

    .tlai-body.admin-page .tlai-page-head {
        display: block;
        padding: 22px;
    }

    .tlai-body.admin-page .tlai-stats,
    .tlai-body.admin-page .analytics-kpi-grid,
    .tlai-body.admin-page .analytics-chart-grid,
    .tlai-body.admin-page .analytics-table-grid,
    .tlai-body.admin-page .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .analysis-page {
        padding: 18px 14px 54px;
    }
    .analysis-toolbar {
        position: static;
    }
    .toolbar-title h1 {
        font-size: 20px;
    }
    .toolbar-actions .analysis-btn {
        flex: 1 1 calc(50% - 8px);
    }
    .executive-snapshot {
        padding: 18px;
    }
    .executive-snapshot h2 {
        font-size: 24px;
    }
    .snapshot-metrics,
    .overview-grid,
    .direction-grid,
    .risk-card-grid,
    .next-action-grid,
    .generated-drafts-grid,
    .draft-grid,
    .analysis-info-grid,
    .memory-grid {
        grid-template-columns: 1fr;
    }
    .ask-box {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .tlai-logo-brand {
        min-width: auto;
    }
    .tlai-logo-brand .brand-wordmark {
        font-size: 20px;
    }
    .header-logo-icon {
        height: 34px !important;
    }
    .hero-inner {
        padding: 44px 18px 50px;
    }
    .hero-title,
    .tlai-hero h1 {
        font-size: 32px;
        line-height: 1.12;
    }
    .hero-kicker {
        margin-bottom: 14px;
    }
    .hero-kicker span,
    .hero-kicker strong {
        padding: 7px 10px;
    }
    .tlai-hero .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .tlai-hero .tlai-btn {
        width: 100%;
        min-height: 46px;
        padding: 12px 10px;
    }
    .hero-proof-row {
        display: none;
    }
    .hero-chips,
    .tlai-hero-visual {
        gap: 8px;
    }
    .hero-chip,
    .tlai-hero-pill {
        width: calc(50% - 4px);
        padding: 10px;
        font-size: 12px;
    }
    .hero-preview {
        display: none;
    }
    .preview-status-row,
    .cta-mini-grid {
        grid-template-columns: 1fr;
    }
    .final-cta {
        padding: 28px 22px;
        border-radius: 20px;
    }
    .trust-strip {
        display: block;
    }
    .trust-strip span {
        display: none;
    }
}

/* Chat and tool workflow stabilization */
.chat-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.chat-controls {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 88px;
}

.chat-controls label,
.tool-runner label {
    color: var(--tlai-navy);
    font-size: 13px;
    font-weight: 850;
}

.chat-mode-note {
    padding: 12px;
    border-radius: 8px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 13px;
    line-height: 1.55;
}

.chat-main {
    display: grid;
    grid-template-rows: minmax(360px, 58vh) auto auto;
    gap: 12px;
    padding: 16px;
}

.chat-history {
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: min(760px, 92%);
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.6;
}

.chat-bubble strong {
    display: block;
    margin-bottom: 4px;
    color: #071E3D;
    font-size: 12px;
}

.chat-bubble p {
    margin: 0;
    white-space: pre-line;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #071E3D;
    color: #fff;
}

.chat-bubble.user strong {
    color: #D9A514;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: #F1F5F9;
    color: #334155;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: #64748B;
    display: grid;
    gap: 6px;
}

.chat-prompts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chat-prompts button {
    flex: 0 0 auto;
    border: 1px solid #D8E0EA;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    padding: 8px 11px;
    font-weight: 800;
    cursor: pointer;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    position: relative;
    bottom: auto;
    background: #fff;
    padding-top: 10px;
}

.chat-composer textarea,
.tool-runner textarea,
.tool-runner input,
.tool-runner select {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

.tool-status-chip {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #EEF4FF;
    color: #175CD3;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 10px;
}

.tool-runner form {
    display: grid;
    gap: 12px;
}

.tool-result-card pre {
    margin: 0;
    white-space: pre-wrap;
    color: #334155;
    line-height: 1.65;
    font-family: inherit;
}

.tool-result-card.is-error {
    border-color: #FDA29B;
    background: #FFF7F6;
}

.coming-soon-card {
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .app-main,
    .tlai-container,
    .analysis-page {
        max-width: 100%;
    }
    .smart-tools-hero,
    .smart-bottom-grid {
        grid-template-columns: 1fr;
    }
    .smart-tool-grid,
    .smart-kpi-strip,
    .smart-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .chat-layout {
        grid-template-columns: 1fr;
    }
    .chat-controls {
        position: static;
    }
    .chat-main {
        grid-template-rows: minmax(300px, 54vh) auto auto;
        padding: 12px;
    }
    .chat-composer {
        grid-template-columns: 1fr;
    }
    .tlai-tool-grid,
    .smart-tool-grid,
    .smart-kpi-strip,
    .smart-workflow,
    .tlai-grid.two {
        grid-template-columns: 1fr !important;
    }
    .smart-tools-hero > div,
    .smart-recommendation,
    .smart-panel {
        padding: 18px;
    }
    .smart-tools-hero h1 {
        font-size: 34px;
    }
    .smart-tool-card {
        min-height: auto;
    }
    .app-sidebar {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .chat-bubble {
        max-width: 100%;
    }
    .tlai-page-head {
        gap: 12px;
    }
    .tlai-btn,
    .analysis-btn {
        width: 100%;
    }
}

/* Premium auth pages */
.auth-page {
    background: linear-gradient(180deg, #F5F7FB 0%, #EEF3F8 100%);
    min-height: calc(100vh - 76px);
    padding: 72px 24px;
}

.auth-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 28px;
    align-items: stretch;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 22px 60px rgba(7, 30, 61, .10);
}

.auth-title {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 32px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -.7px;
}

.auth-subtitle {
    margin: 10px 0 22px;
    color: var(--tlai-muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label,
.field-label-row label {
    display: block;
    color: #243B5A;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-label-row a,
.auth-switch a,
.auth-privacy-note a {
    color: var(--tlai-blue);
    font-weight: 850;
    text-decoration: none;
}

.auth-form .form-control {
    width: 100%;
    min-height: 50px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--tlai-ink);
    background: #fff;
    outline: none;
}

.auth-form .form-control:focus {
    border-color: var(--tlai-blue);
    box-shadow: 0 0 0 4px rgba(21, 87, 192, .12);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #102033 !important;
    transition: background-color 9999s ease-in-out 0s;
}

.password-field,
.mobile-input-group {
    display: flex;
    align-items: stretch;
}

.password-field .form-control {
    border-radius: 12px 0 0 12px;
}

.password-field button {
    border: 1px solid #CBD5E1;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #F8FAFC;
    color: var(--tlai-navy);
    padding: 0 14px;
    font-weight: 850;
    cursor: pointer;
}

.mobile-input-group span {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #CBD5E1;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #F8FAFC;
    color: var(--tlai-navy);
    font-weight: 850;
    display: inline-flex;
    align-items: center;
}

.mobile-input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.field-helper {
    display: block;
    color: var(--tlai-muted);
    font-size: 12px;
    margin-top: 7px;
}

.field-error {
    display: block;
    color: var(--tlai-danger);
    font-size: 12px;
    font-weight: 800;
    margin-top: 7px;
}

.beta-message {
    border: 1px solid rgba(212,160,23,.28);
    background: #FFF8E1;
    color: #7A5300;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 13px;
    line-height: 1.55;
}

.btn-auth-primary,
.btn-auth-secondary {
    border-radius: 12px;
    padding: 14px 22px;
    min-height: 50px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-auth-primary {
    background: var(--tlai-gold);
    color: var(--tlai-navy);
    border: none;
}

.btn-auth-primary:hover {
    background: var(--tlai-soft-gold);
}

.btn-auth-secondary {
    background: #fff;
    color: var(--tlai-navy);
    border: 1px solid #CBD5E1;
}

.auth-switch {
    margin: 0;
    text-align: center;
    color: var(--tlai-muted);
    font-size: 14px;
}

.auth-privacy-note {
    margin: 0;
    color: var(--tlai-muted);
    font-size: 12px;
    line-height: 1.65;
}

.auth-side-panel {
    background: linear-gradient(135deg, #071E3D 0%, #0B2F5B 100%);
    border-radius: 22px;
    padding: 34px;
    color: #fff;
    box-shadow: 0 22px 60px rgba(7, 30, 61, .14);
    position: relative;
    overflow: hidden;
}

.auth-side-panel h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: #fff;
}

.auth-side-panel p {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.65;
}

.auth-benefit-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.auth-benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.55;
}

.auth-benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(212,160,23,.18);
    color: var(--tlai-soft-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
}

.auth-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.auth-trust-badges span {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 850;
}

.tlai-footer {
    padding: 44px 0 32px;
}

.tlai-footer-grid {
    grid-template-columns: 1.4fr .8fr .8fr .8fr;
    gap: 42px;
}

.footer-brand img {
    height: 38px !important;
    max-height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-page {
        padding: 40px 18px;
    }
    .auth-card,
    .auth-side-panel {
        padding: 26px;
    }
    .auth-title {
        font-size: 28px;
    }
}

/* Legal policy pages */
.legal-page {
    background: linear-gradient(180deg, #F5F7FB 0%, #EEF3F8 100%);
    padding: 58px 0 78px;
}

.legal-page-card {
    background: #fff;
    border: 1px solid var(--tlai-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(7,30,61,.08);
    padding: 38px;
    max-width: 980px;
    margin: 0 auto;
}

.legal-page-header {
    border-bottom: 1px solid var(--tlai-line);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.legal-page-header h1 {
    margin: 0;
    color: var(--tlai-navy);
    font-size: 38px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: 0;
}

.legal-page-header p {
    margin: 10px 0 0;
    color: var(--tlai-muted);
    font-size: 14px;
    font-weight: 800;
}

.legal-page-card p,
.legal-page-card li {
    color: #334155;
    font-size: 15px;
    line-height: 1.78;
}

.legal-page-intro {
    display: grid;
    gap: 12px;
    margin-bottom: 6px;
}

.legal-page-card a {
    color: var(--tlai-blue);
    font-weight: 800;
    text-decoration: none;
}

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

.legal-content-section {
    margin-top: 28px;
}

.legal-content-section h2 {
    margin: 0 0 10px;
    color: var(--tlai-navy);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 850;
}

.legal-content-section ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

.ai-output-warning {
    border: 1px solid rgba(212,160,23,.32);
    border-radius: 8px;
    background: #FFF8E1;
    color: #7A5300;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 750;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 34px 0 52px;
    }
    .legal-page-card {
        padding: 24px 20px;
        border-radius: 8px;
    }
    .legal-page-header h1 {
        font-size: 30px;
    }
}

/* PDF tools funnel */
.pdf-tools-hero {
    background: #071E3D;
    color: #fff;
    padding: 58px 0 46px;
}

.pdf-tools-hero h1,
.pdf-tool-heading h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.14;
    letter-spacing: 0;
}

.pdf-tools-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 18px;
}

.pdf-privacy-note {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(212,160,23,.35);
    border-radius: 8px;
    background: #fff8e1;
    color: #7a5300;
    font-size: 14px;
    font-weight: 750;
}

.pdf-tools-hero .pdf-privacy-note {
    display: inline-flex;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.pdf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.pdf-section-head h2 {
    margin: 0 0 4px;
}

.pdf-tool-grid,
.pdf-home-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pdf-tool-card,
.pdf-home-tool,
.pdf-runner,
.pdf-tool-side,
.pdf-faq {
    border: 1px solid var(--tlai-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7,30,61,.06);
}

.pdf-tool-card,
.pdf-home-tool {
    min-height: 236px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pdf-home-tool .tlai-btn {
    width: 100%;
}

.pdf-home-subhead {
    margin: 18px 0 12px;
    color: var(--tlai-navy);
    font-size: 20px;
}

.pdf-home-all-tools {
    margin-top: 18px;
}

.pdf-home-all-tools summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--tlai-blue);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.pdf-tool-card h3,
.pdf-home-tool h3 {
    margin: 14px 0 8px;
    color: var(--tlai-navy);
    font-size: 18px;
    line-height: 1.3;
}

.pdf-tool-card p,
.pdf-home-tool p {
    margin: 0 0 16px;
    color: var(--tlai-muted);
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}

.pdf-tool-card .tlai-btn {
    width: 100%;
}

.pdf-tool-card-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.pdf-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--tlai-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.pdf-free-badge {
    border-radius: 999px;
    background: #dcfae6;
    color: #067647;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.pdf-tool-card .tlai-btn.light + *,
.pdf-tool-card-head .pdf-free-badge:not(:first-child) {
    white-space: nowrap;
}

.pdf-legal-band,
.pdf-home-band {
    background: #eef3f8;
}

.pdf-back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--tlai-blue);
    font-weight: 850;
    text-decoration: none;
}

.pdf-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.pdf-runner,
.pdf-tool-side,
.pdf-faq {
    padding: 24px;
}

.pdf-tool-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.pdf-tool-heading p {
    margin: 8px 0 0;
    color: var(--tlai-muted);
}

.pdf-upload-form {
    display: grid;
    gap: 12px;
}

.pdf-upload-form label {
    font-weight: 850;
    color: var(--tlai-navy);
}

.pdf-upload-form input,
.pdf-upload-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #b9c7d6;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    font: inherit;
}

.pdf-limit-note {
    margin: 0;
    color: var(--tlai-muted);
    font-size: 13px;
}

.pdf-helper-text {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d7e3f2;
    border-radius: 8px;
    background: #f8fbff;
    color: #334155;
    font-size: 14px;
}

.pdf-result-panel,
.pdf-coming-soon {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(22,163,74,.25);
    border-radius: 8px;
    background: #f0fdf4;
}

.pdf-coming-soon {
    border-color: rgba(245,158,11,.35);
    background: #fffbeb;
}

.pdf-result-panel h2,
.pdf-coming-soon h2,
.pdf-tool-side h2,
.pdf-faq h2 {
    margin: 0 0 8px;
    color: var(--tlai-navy);
    font-size: 24px;
    line-height: 1.25;
}

.pdf-result-panel p,
.pdf-coming-soon p,
.pdf-tool-side p,
.pdf-faq p {
    color: var(--tlai-muted);
}

.pdf-text-preview {
    margin: 16px 0;
    border: 1px solid var(--tlai-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pdf-text-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--tlai-line);
}

.pdf-text-preview pre {
    max-height: 280px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    white-space: pre-wrap;
    color: #1f2937;
    font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pdf-detected-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.pdf-detected-fields div {
    padding: 12px;
    border: 1px solid var(--tlai-line);
    border-radius: 8px;
    background: #fff;
}

.pdf-detected-fields strong,
.pdf-detected-fields span {
    display: block;
}

.pdf-detected-fields span {
    color: var(--tlai-muted);
    font-size: 14px;
}

.pdf-tool-side {
    position: sticky;
    top: 96px;
}

.pdf-tool-side .tlai-actions {
    display: grid;
}

.pdf-tool-side .tlai-btn {
    width: 100%;
}

.pdf-faq {
    margin-top: 20px;
}

.pdf-faq details {
    border-top: 1px solid var(--tlai-line);
    padding: 12px 0;
}

.pdf-faq summary {
    cursor: pointer;
    color: var(--tlai-navy);
    font-weight: 850;
}

@media (max-width: 980px) {
    .pdf-tool-grid,
    .pdf-home-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pdf-tool-layout {
        grid-template-columns: 1fr;
    }
    .pdf-tool-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .pdf-tools-hero h1,
    .pdf-tool-heading h1 {
        font-size: 32px;
    }
    .pdf-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .pdf-tool-grid,
    .pdf-home-tools {
        grid-template-columns: 1fr;
    }
    .pdf-home-tool.mobile-priority:nth-of-type(n+5) {
        display: none;
    }
    .pdf-home-tool.mobile-extra {
        display: none;
    }
    .pdf-home-all-tools[open] ~ .pdf-home-popular .pdf-home-tool.mobile-priority:nth-of-type(n+5) {
        display: flex;
    }
    .pdf-home-all-tools[open] .pdf-home-tool.mobile-extra {
        display: flex;
    }
    .pdf-tool-card,
    .pdf-home-tool,
    .pdf-runner,
    .pdf-tool-side,
    .pdf-faq {
        padding: 18px;
    }
}

/* Keep the premium public chrome authoritative after legacy shared rules. */
.tlai-nav {
    background: rgba(8, 10, 15, 0.92);
    border-bottom: 1px solid rgba(217, 164, 7, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.tlai-nav .nav-link,
.tlai-nav .tlai-links a {
    color: #d8d3c3;
}

.tlai-nav .nav-link:hover,
.tlai-nav .nav-link.active,
.tlai-nav .tlai-links a:hover {
    color: #e8c97a;
}

.tlai-footer {
    background: #080a0f;
    border-top: 1px solid rgba(217, 164, 7, 0.18);
    color: #f8fafc;
}

.tlai-footer p,
.tlai-footer a {
    color: #b8b4a8;
}

.tlai-footer a:hover {
    color: #e8c97a;
}

/* Final public header sizing override for the premium homepage release. */
.tlai-nav,
.tlai-nav-inner,
.navbar-inner {
    min-height: 52px;
    height: 52px;
}

.tlai-nav .nav-link,
.tlai-nav .tlai-links a {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tlai-nav .nav-cta,
.tlai-nav .tlai-btn.gold {
    min-height: 30px;
    border-radius: 2px;
    padding: 8px 13px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .tlai-nav,
    .tlai-nav-inner,
    .navbar-inner {
        min-height: 60px;
        height: 60px;
    }
}
/* Runtime public-page premium surface override. */
.tlai-body .tlai-section,
.tlai-body .legal-page,
.tlai-body .pdf-tools-section,
.tlai-body .pdf-tool-page,
.tlai-body .pdf-legal-band { background: #090a0f; color: #eee9df; }
.tlai-body .legal-page,
.tlai-body .guided-tools-hero,
.tlai-body .tlai-page-head { background: #111119; }
.tlai-body .tlai-card,
.tlai-body .legal-page-card,
.tlai-body .blog-guide-card,
.tlai-body .pdf-tool-card,
.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .guided-tool-card,
.tlai-body .workspace-differentiators,
.tlai-body .pdf-result-panel,
.tlai-body .pdf-coming-soon,
.tlai-body .pdf-text-preview,
.tlai-body .tlai-form { border: 1px solid rgba(201,168,76,.14); border-radius: 0; background: #0d0e14; color: #eee9df; box-shadow: none; }
.tlai-body .pdf-tools-hero { background: radial-gradient(circle at 28% 20%, rgba(201,168,76,.08), transparent 24%), linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%); border-bottom: 1px solid rgba(201,168,76,.14); padding: 96px 0 78px; }
.tlai-body .pdf-tool-grid,
.tlai-body .blog-card-grid,
.tlai-body .guided-tool-grid { gap: 0; border: 1px solid rgba(201,168,76,.1); }
.tlai-body .pdf-tool-card,
.tlai-body .blog-guide-card,
.tlai-body .guided-tool-card { border-top: 0; border-left: 0; border-right: 1px solid rgba(201,168,76,.1); border-bottom: 1px solid rgba(201,168,76,.1); }
.tlai-body .pdf-tools-hero h1,
.tlai-body .legal-page-header h1,
.tlai-body .guided-tools-hero h1,
.tlai-body .tlai-page-head h1 { color: #eee9df; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }
.tlai-body .pdf-section-head h2,
.tlai-body .legal-content-section h2,
.tlai-body .pdf-tool-card h3,
.tlai-body .blog-guide-card strong,
.tlai-body .guided-tool-card h2 { color: #eee9df; font-family: Georgia, "Times New Roman", serif; }
.tlai-body .legal-content-section h2,
.tlai-body .pdf-faq summary { color: #e1c36f; }
.tlai-body .tlai-muted,
.tlai-body .pdf-tool-card p,
.tlai-body .blog-guide-card span,
.tlai-body .guided-tool-card p,
.tlai-body .pdf-helper-text,
.tlai-body .pdf-limit-note { color: #9e998d; }
.tlai-body .pdf-free-badge,
.tlai-body .page-kicker,
.tlai-body .guided-tool-status { color: #c9a84c; letter-spacing: .12em; text-transform: uppercase; }
.tlai-body .pdf-icon,
.tlai-body .card-icon { border: 1px solid rgba(201,168,76,.18); border-radius: 2px; background: transparent; color: #c9a84c; }
.tlai-body input,
.tlai-body textarea,
.tlai-body select { border: 1px solid rgba(201,168,76,.18); border-radius: 0; background: #090a0f; color: #eee9df; }
.tlai-body .pdf-privacy-note,
.tlai-body .pdf-faq { border: 1px solid rgba(201,168,76,.14); border-radius: 0; background: #0d0e14; color: #c7c2b6; }

/* PDF tools final premium color normalization. */
.tlai-body .pdf-tool-card .tlai-btn,
.tlai-body .pdf-home-tool .tlai-btn,
.tlai-body .pdf-runner .tlai-btn,
.tlai-body .pdf-tool-side .tlai-btn,
.tlai-body .pdf-section-head .tlai-btn,
.tlai-body .pdf-result-panel .tlai-btn {
    background: #c9a84c;
    border: 1px solid #c9a84c;
    border-radius: 0;
    color: #090a0f;
    box-shadow: none;
}

.tlai-body .pdf-tool-card .tlai-btn:hover,
.tlai-body .pdf-home-tool .tlai-btn:hover,
.tlai-body .pdf-runner .tlai-btn:hover,
.tlai-body .pdf-tool-side .tlai-btn:hover,
.tlai-body .pdf-section-head .tlai-btn:hover,
.tlai-body .pdf-result-panel .tlai-btn:hover {
    background: #e1c36f;
    border-color: #e1c36f;
    color: #090a0f;
}

.tlai-body .pdf-free-badge {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 0;
    color: #e1c36f;
}

.tlai-body .pdf-tool-card-head {
    align-items: flex-start;
}

.tlai-body .pdf-tool-card {
    padding: 24px;
}

.tlai-body .pdf-tool-card .tlai-btn {
    width: 100%;
    margin-top: 18px;
}

/* Workspace/dashboard final consistency pass. */
.tlai-body .app-shell,
.tlai-body .app-main,
.tlai-body .workspace-layout,
.tlai-body .workspace-center,
.tlai-body .workspace-left,
.tlai-body .workspace-right {
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .ai-workspace-hero,
.tlai-body .workspace-ai-card,
.tlai-body .workspace-panel,
.tlai-body .workspace-result-card,
.tlai-body .recommended-card,
.tlai-body .privacy-mode-card,
.tlai-body .dashboard-page-header,
.tlai-body .section-card,
.tlai-body .stat-card,
.tlai-body .quick-action-card,
.tlai-body .recent-analysis-card,
.tlai-body .beta-notice-card,
.tlai-body .empty-state {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
    color: #eee9df;
    box-shadow: none;
}

.tlai-body .ai-workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: center;
    padding: 42px;
}

.tlai-body .ai-workspace-hero aside {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #111119;
    color: #b8b4a8;
    padding: 28px;
}

.tlai-body .ai-workspace-hero h1,
.tlai-body .workspace-left h2,
.tlai-body .workspace-right h2,
.tlai-body .dashboard-page-header h1,
.tlai-body .section-card h2,
.tlai-body .empty-state-title {
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
}

.tlai-body .ai-workspace-hero h1 {
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.03;
}

.tlai-body .ai-workspace-hero p,
.tlai-body .ai-workspace-hero aside span,
.tlai-body .workspace-left p,
.tlai-body .workspace-right p,
.tlai-body .section-card p,
.tlai-body .quick-action-desc,
.tlai-body .stat-help,
.tlai-body .recent-analysis-summary {
    color: #b8b4a8;
}

.tlai-body .workspace-tabs {
    gap: 0;
}

.tlai-body .workspace-tabs button {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .workspace-tabs button.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #090a0f;
}

.tlai-body .workspace-dropzone,
.tlai-body .upload-dropzone {
    border: 1px dashed rgba(201, 168, 76, 0.32);
    border-radius: 0;
    background: #090a0f;
    color: #eee9df;
}

.tlai-body .workspace-dropzone span {
    background: rgba(201, 168, 76, 0.1);
    color: #e1c36f;
}

.tlai-body .workspace-dropzone strong {
    color: #eee9df;
}

.tlai-body .workspace-dropzone small {
    color: #b8b4a8;
}

.tlai-body input[type="file"] {
    color: #eee9df;
}

.tlai-body input[type="file"]::file-selector-button {
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: #111119;
    color: #eee9df;
    padding: 9px 12px;
}

.tlai-body .workspace-mini-list a,
.tlai-body .recommended-card a,
.tlai-body .smart-recent-list a,
.tlai-body .document-card,
.tlai-body .recent-analysis-card {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #111119;
    color: #eee9df;
}

.tlai-body .workspace-mini-list a strong,
.tlai-body .recommended-card a,
.tlai-body .document-card strong,
.tlai-body .recent-analysis-title {
    color: #e1c36f;
}

.tlai-body .workspace-mini-list a span,
.tlai-body .document-card span {
    color: #b8b4a8;
}

.tlai-body .recommended-card a:hover,
.tlai-body .workspace-mini-list a:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.32);
}

.tlai-body .workspace-differentiators {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 0;
    background: #0d0e14;
}

.tlai-body .workspace-differentiators span {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #111119;
    color: #b8b4a8;
}

.tlai-body .app-sidebar {
    background: #0b0d14;
    border-right: 1px solid rgba(201, 168, 76, 0.14);
}

.tlai-body .sidebar-org {
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.tlai-body .sidebar-org span,
.tlai-body .sidebar-section-title {
    color: #c9a84c;
}

.tlai-body .sidebar-org strong,
.tlai-body .sidebar-link {
    color: #eee9df;
}

.tlai-body .sidebar-link.active,
.tlai-body .sidebar-link:hover {
    background: rgba(201, 168, 76, 0.08);
    color: #e1c36f;
}

@media (max-width: 980px) {
    .tlai-body .ai-workspace-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

/* Global premium design system override: keep every page visually consistent. */
:root {
    --tlai-premium-bg: #090a0f;
    --tlai-premium-panel: #111119;
    --tlai-premium-card: #0d0e14;
    --tlai-premium-border: rgba(201, 168, 76, 0.14);
    --tlai-premium-border-strong: rgba(201, 168, 76, 0.28);
    --tlai-premium-gold: #c9a84c;
    --tlai-premium-gold-light: #e1c36f;
    --tlai-premium-text: #eee9df;
    --tlai-premium-muted: #b8b4a8;
    --tlai-premium-soft: #9e998d;
}

html,
body.tlai-body {
    background: var(--tlai-premium-bg);
    color: var(--tlai-premium-text);
}

.tlai-body,
.tlai-body .app-main,
.tlai-body .app-shell,
.tlai-body .auth-page,
.tlai-body .tlai-section,
.tlai-body .legal-page,
.tlai-body .pdf-tools-section,
.tlai-body .pdf-tool-page,
.tlai-body .pdf-legal-band {
    background: var(--tlai-premium-bg);
    color: var(--tlai-premium-text);
}

.tlai-body h1,
.tlai-body h2,
.tlai-body h3,
.tlai-body h4,
.tlai-body .page-title,
.tlai-body .auth-title,
.tlai-body .section-title,
.tlai-body .card-title,
.tlai-body .feature-card h3,
.tlai-body .usecase-card h3,
.tlai-body .stat-value,
.tlai-body .empty-state-title,
.tlai-body .section-card h2,
.tlai-body .quick-action-title,
.tlai-body .pdf-tool-card h3,
.tlai-body .guided-tool-card h2,
.tlai-body .blog-guide-card strong,
.tlai-body .legal-page-header h1 {
    color: var(--tlai-premium-text);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.tlai-body .page-title,
.tlai-body .auth-title,
.tlai-body .legal-page-header h1,
.tlai-body .guided-tools-hero h1,
.tlai-body .tlai-page-head h1,
.tlai-body .pdf-tools-hero h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.02;
}

.tlai-body h2,
.tlai-body .section-card h2,
.tlai-body .pdf-section-head h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.tlai-body h3,
.tlai-body .feature-card h3,
.tlai-body .quick-action-title,
.tlai-body .pdf-tool-card h3 {
    font-size: 20px;
    line-height: 1.18;
}

.tlai-body p,
.tlai-body li,
.tlai-body .tlai-muted,
.tlai-body .page-subtitle,
.tlai-body .auth-subtitle,
.tlai-body .card-text,
.tlai-body .feature-card p,
.tlai-body .usecase-card p,
.tlai-body .quick-action-desc,
.tlai-body .stat-help,
.tlai-body .empty-state-text,
.tlai-body .blog-guide-card span,
.tlai-body .pdf-tool-card p,
.tlai-body .legal-page-intro p,
.tlai-body .legal-content-section p {
    color: var(--tlai-premium-muted);
    font-size: 15px;
    line-height: 1.72;
}

.tlai-body a {
    color: var(--tlai-premium-gold-light);
}

.tlai-body .page-kicker,
.tlai-body .pdf-free-badge,
.tlai-body .guided-tool-status,
.tlai-body .sidebar-section-title {
    color: var(--tlai-premium-gold);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tlai-body .tlai-card,
.tlai-body .feature-card,
.tlai-body .usecase-card,
.tlai-body .legal-page-card,
.tlai-body .blog-guide-card,
.tlai-body .pdf-tool-card,
.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .guided-tool-card,
.tlai-body .workspace-differentiators,
.tlai-body .pdf-result-panel,
.tlai-body .pdf-coming-soon,
.tlai-body .pdf-text-preview,
.tlai-body .tlai-form,
.tlai-body .auth-card,
.tlai-body .auth-side-panel,
.tlai-body .dashboard-page-header,
.tlai-body .stat-card,
.tlai-body .section-card,
.tlai-body .quick-action-card,
.tlai-body .empty-state,
.tlai-body .beta-notice-card,
.tlai-body .analysis-card,
.tlai-body .document-card {
    border: 1px solid var(--tlai-premium-border);
    border-radius: 0;
    background: var(--tlai-premium-card);
    color: var(--tlai-premium-text);
    box-shadow: none;
}

.tlai-body .tlai-card:hover,
.tlai-body .feature-card:hover,
.tlai-body .usecase-card:hover,
.tlai-body .blog-guide-card:hover,
.tlai-body .pdf-tool-card:hover,
.tlai-body .guided-tool-card:hover,
.tlai-body .quick-action-card:hover {
    border-color: var(--tlai-premium-border-strong);
    background: #11131c;
    transform: none;
}

.tlai-body .tlai-grid,
.tlai-body .features-grid,
.tlai-body .pdf-tool-grid,
.tlai-body .blog-card-grid,
.tlai-body .guided-tool-grid,
.tlai-body .quick-actions-grid,
.tlai-body .stats-grid {
    gap: 0;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .tlai-grid > *,
.tlai-body .features-grid > *,
.tlai-body .pdf-tool-grid > *,
.tlai-body .blog-card-grid > *,
.tlai-body .guided-tool-grid > *,
.tlai-body .quick-actions-grid > *,
.tlai-body .stats-grid > * {
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.tlai-body .blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tlai-body .blog-guide-card {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    text-decoration: none;
}

.tlai-body .card-icon,
.tlai-body .pdf-icon,
.tlai-body .quick-action-icon,
.tlai-body .stat-icon,
.tlai-body .auth-benefit-icon {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 2px;
    background: transparent;
    color: var(--tlai-premium-gold);
}

.tlai-body .tlai-btn,
.tlai-body .analysis-btn,
.tlai-body .btn-auth-primary,
.tlai-body button,
.tlai-body input[type="submit"] {
    border-radius: 2px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tlai-body .tlai-btn.gold,
.tlai-body .analysis-btn.primary,
.tlai-body .btn-auth-primary,
.tlai-body button[type="submit"] {
    background: var(--tlai-premium-gold);
    border-color: var(--tlai-premium-gold);
    color: #090a0f;
}

.tlai-body .tlai-btn.light,
.tlai-body .analysis-btn.secondary {
    background: transparent;
    border: 1px solid var(--tlai-premium-border-strong);
    color: var(--tlai-premium-text);
}

.tlai-body input,
.tlai-body textarea,
.tlai-body select,
.tlai-body .form-control,
.tlai-body .password-field,
.tlai-body .mobile-input-group {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: #090a0f;
    color: var(--tlai-premium-text);
}

.tlai-body input::placeholder,
.tlai-body textarea::placeholder {
    color: #706b62;
}

.tlai-body label,
.tlai-body .field-label-row label {
    color: var(--tlai-premium-text);
}

.tlai-body .auth-page {
    padding: 88px 0;
}

.tlai-body .auth-container {
    align-items: stretch;
}

.tlai-body .auth-card,
.tlai-body .auth-side-panel {
    border-radius: 0;
    background: var(--tlai-premium-card);
}

.tlai-body .auth-side-panel {
    background: var(--tlai-premium-panel);
}

.tlai-body .beta-message,
.tlai-body .tlai-alert,
.tlai-body .page-badges span,
.tlai-body .auth-trust-badges span,
.tlai-body .workspace-differentiators span {
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 0;
    background: rgba(201, 168, 76, 0.06);
    color: var(--tlai-premium-muted);
}

.tlai-body .app-sidebar {
    background: #0b0d14;
    border-right: 1px solid var(--tlai-premium-border);
}

.tlai-body .sidebar-link {
    color: var(--tlai-premium-muted);
}

.tlai-body .sidebar-link.active,
.tlai-body .sidebar-link:hover {
    background: rgba(201, 168, 76, 0.08);
    color: var(--tlai-premium-gold-light);
}

.tlai-body .dashboard-page-header {
    background: var(--tlai-premium-card);
}

.tlai-body .upload-dropzone,
.tlai-body .upload-panel,
.tlai-body .analysis-panel {
    border-color: var(--tlai-premium-border);
    background: #090a0f;
    color: var(--tlai-premium-text);
}

.tlai-body .pdf-tools-hero {
    background:
        radial-gradient(circle at 24% 20%, rgba(201, 168, 76, 0.08), transparent 24%),
        linear-gradient(115deg, #090a0f 0%, #111119 58%, #090a0f 100%);
}

.tlai-body .tlai-footer {
    background: #090a0f;
}

@media (max-width: 980px) {
    .tlai-body .blog-card-grid {
        grid-template-columns: 1fr;
    }
}
/* Runtime PDF tools premium color normalization. */
.tlai-body .pdf-tool-card .tlai-btn,
.tlai-body .pdf-home-tool .tlai-btn,
.tlai-body .pdf-runner .tlai-btn,
.tlai-body .pdf-tool-side .tlai-btn,
.tlai-body .pdf-section-head .tlai-btn,
.tlai-body .pdf-result-panel .tlai-btn { background: #c9a84c; border: 1px solid #c9a84c; border-radius: 0; color: #090a0f; box-shadow: none; }
.tlai-body .pdf-tool-card .tlai-btn:hover,
.tlai-body .pdf-home-tool .tlai-btn:hover,
.tlai-body .pdf-runner .tlai-btn:hover,
.tlai-body .pdf-tool-side .tlai-btn:hover,
.tlai-body .pdf-section-head .tlai-btn:hover,
.tlai-body .pdf-result-panel .tlai-btn:hover { background: #e1c36f; border-color: #e1c36f; color: #090a0f; }
.tlai-body .pdf-free-badge { background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.24); border-radius: 0; color: #e1c36f; }
.tlai-body .pdf-tool-card-head { align-items: flex-start; }
.tlai-body .pdf-tool-card { padding: 24px; }
.tlai-body .pdf-tool-card .tlai-btn { width: 100%; margin-top: 18px; }

/* Keep footer brand aligned exactly like the public header brand. */
.tlai-body .tlai-footer .footer-brand,
.tlai-body .tlai-footer a.footer-brand.tlai-logo-brand {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 10px;
    min-width: 220px;
    width: auto;
    margin: 0 0 18px;
    text-decoration: none;
}

.tlai-body .tlai-footer .footer-brand .header-logo-icon,
.tlai-body .tlai-footer .footer-brand img {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 44px !important;
    max-height: 44px;
    object-fit: contain;
}

.tlai-body .tlai-footer .footer-brand .brand-wordmark {
    display: inline-block;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.tlai-body .tlai-footer .footer-brand .brand-wordmark span {
    color: var(--tlai-premium-gold, var(--tlai-gold));
}

@media (max-width: 575px) {
    .tlai-body .tlai-footer .footer-brand,
    .tlai-body .tlai-footer a.footer-brand.tlai-logo-brand {
        min-width: auto;
    }
    .tlai-body .tlai-footer .footer-brand .header-logo-icon,
    .tlai-body .tlai-footer .footer-brand img {
        height: 40px !important;
        max-height: 40px;
    }
    .tlai-body .tlai-footer .footer-brand .brand-wordmark {
        font-size: 24px;
    }
}

/* Analysis report page: align document detail UI with the premium app theme. */
body.tlai-body.analysis-workspace {
    background: #090a0f;
    color: var(--tlai-premium-text);
}

.tlai-body.analysis-workspace .site-header {
    background: #071E3D;
    border-bottom: 1px solid var(--tlai-premium-gold);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.tlai-body.analysis-workspace .analysis-page {
    max-width: 1200px;
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 32px 24px 76px;
    background: #10131b;
}

.tlai-body.analysis-workspace .analysis-toolbar {
    top: 68px;
    padding: 18px;
    border: 1px solid var(--tlai-premium-border);
    border-radius: 0;
    background: rgba(13, 14, 20, .94);
    box-shadow: none;
}

.tlai-body.analysis-workspace .toolbar-title h1,
.tlai-body.analysis-workspace .executive-snapshot h2,
.tlai-body.analysis-workspace .analysis-section h2,
.tlai-body.analysis-workspace .overview-grid h3,
.tlai-body.analysis-workspace .risk-card-grid h3,
.tlai-body.analysis-workspace .next-action-grid h3,
.tlai-body.analysis-workspace .generated-draft-card h3,
.tlai-body.analysis-workspace .draft-card h3 {
    color: var(--tlai-premium-text);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.tlai-body.analysis-workspace .toolbar-title h1 {
    font-size: 26px;
    line-height: 1.15;
}

.tlai-body.analysis-workspace .toolbar-title p {
    color: var(--tlai-premium-muted);
    font-size: 13px;
}

.tlai-body.analysis-workspace .single-disclaimer,
.tlai-body.analysis-workspace .recommended-next-step-card {
    border: 1px solid rgba(201, 168, 76, .32);
    border-left: 4px solid var(--tlai-premium-gold);
    border-radius: 0;
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-muted);
}

.tlai-body.analysis-workspace .recommended-next-step-card {
    margin-top: 16px;
    padding: 18px 20px;
}

.tlai-body.analysis-workspace .recommended-next-step-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--tlai-premium-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tlai-body.analysis-workspace .recommended-next-step-card strong {
    display: block;
    color: var(--tlai-premium-text);
    font-size: 18px;
    line-height: 1.55;
}

.tlai-body.analysis-workspace .executive-snapshot {
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(7, 30, 61, .96), rgba(17, 17, 25, .98)),
        #071E3D;
    box-shadow: none;
}

.tlai-body.analysis-workspace .executive-snapshot h2 {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.04;
}

.tlai-body.analysis-workspace .executive-snapshot p,
.tlai-body.analysis-workspace .analysis-text,
.tlai-body.analysis-workspace .overview-grid p,
.tlai-body.analysis-workspace .risk-card-grid p,
.tlai-body.analysis-workspace .next-action-grid p,
.tlai-body.analysis-workspace .draft-card p,
.tlai-body.analysis-workspace .generated-draft-card p,
.tlai-body.analysis-workspace .key-para-text,
.tlai-body.analysis-workspace .draft-preview-body {
    color: var(--tlai-premium-muted);
}

.tlai-body.analysis-workspace .snapshot-badges span,
.tlai-body.analysis-workspace .phrase-list span {
    border: 1px solid rgba(201, 168, 76, .18);
    border-radius: 2px;
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-gold-light);
}

.tlai-body.analysis-workspace .snapshot-metrics div,
.tlai-body.analysis-workspace .overview-grid article,
.tlai-body.analysis-workspace .direction-grid article,
.tlai-body.analysis-workspace .risk-card-grid article,
.tlai-body.analysis-workspace .next-action-grid article,
.tlai-body.analysis-workspace .analysis-section,
.tlai-body.analysis-workspace .key-para-card,
.tlai-body.analysis-workspace .generated-draft-card,
.tlai-body.analysis-workspace .draft-card,
.tlai-body.analysis-workspace .analysis-info-grid div,
.tlai-body.analysis-workspace .memory-grid div {
    border: 1px solid var(--tlai-premium-border);
    border-radius: 0;
    background: var(--tlai-premium-card);
    color: var(--tlai-premium-text);
    box-shadow: none;
}

.tlai-body.analysis-workspace .snapshot-metrics div {
    background: rgba(238, 233, 223, .06);
}

.tlai-body.analysis-workspace .analysis-section h2 {
    font-size: 28px;
    line-height: 1.12;
}

.tlai-body.analysis-workspace .analysis-section h3,
.tlai-body.analysis-workspace .overview-grid h3,
.tlai-body.analysis-workspace .risk-card-grid h3,
.tlai-body.analysis-workspace .next-action-grid h3,
.tlai-body.analysis-workspace .generated-draft-card h3,
.tlai-body.analysis-workspace .draft-card h3 {
    font-size: 18px;
}

.tlai-body.analysis-workspace .analysis-tabs {
    gap: 0;
    margin-top: 22px;
    border: 1px solid var(--tlai-premium-border);
    background: var(--tlai-premium-card);
}

.tlai-body.analysis-workspace .analysis-tab {
    border: 0;
    border-right: 1px solid rgba(201, 168, 76, .12);
    border-radius: 0;
    background: transparent;
    color: var(--tlai-premium-muted);
}

.tlai-body.analysis-workspace .analysis-tab.active,
.tlai-body.analysis-workspace .analysis-tab:hover {
    background: rgba(201, 168, 76, .1);
    color: var(--tlai-premium-gold-light);
}

.tlai-body.analysis-workspace .direction-grid span,
.tlai-body.analysis-workspace .analysis-info-grid span,
.tlai-body.analysis-workspace .snapshot-metrics span,
.tlai-body.analysis-workspace .analysis-kicker {
    color: var(--tlai-premium-gold);
}

.tlai-body.analysis-workspace .direction-grid strong,
.tlai-body.analysis-workspace .analysis-info-grid strong,
.tlai-body.analysis-workspace .snapshot-metrics strong {
    color: var(--tlai-premium-text);
}

.tlai-body.analysis-workspace .order-quote,
.tlai-body.analysis-workspace .ask-answer {
    border-left: 4px solid var(--tlai-premium-gold);
    border-radius: 0;
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-text);
}

.tlai-body.analysis-workspace .ask-input,
.tlai-body.analysis-workspace .party-side-form select {
    background: #090a0f;
    color: var(--tlai-premium-text);
}

.tlai-body.analysis-workspace .ask-button,
.tlai-body.analysis-workspace .draft-generate-btn {
    border: 1px solid var(--tlai-premium-gold);
    border-radius: 2px;
    background: var(--tlai-premium-gold);
    color: #090a0f;
}

.tlai-body.analysis-workspace .quick-prompts button,
.tlai-body.analysis-workspace .mini-action-btn {
    border-color: var(--tlai-premium-border-strong);
    background: transparent;
    color: var(--tlai-premium-text);
}

.tlai-body.analysis-workspace .draft-card-icon {
    border: 1px solid var(--tlai-premium-border-strong);
    border-radius: 2px;
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-gold-light);
}

.tlai-body.analysis-workspace .draft-modal-content {
    border: 1px solid var(--tlai-premium-border);
    border-radius: 0;
    background: var(--tlai-premium-card);
}

@media (max-width: 640px) {
    .tlai-body.analysis-workspace .analysis-page {
        padding: 18px 12px 54px;
    }
    .tlai-body.analysis-workspace .analysis-toolbar {
        position: static;
        padding: 14px;
    }
    .tlai-body.analysis-workspace .toolbar-actions .analysis-btn {
        flex: 1 1 100%;
    }
    .tlai-body.analysis-workspace .executive-snapshot h2 {
        font-size: 30px;
    }
    .tlai-body.analysis-workspace .analysis-section h2 {
        font-size: 24px;
    }
}

/* Upload document page: match the premium workspace theme and keep form text readable. */
body.tlai-body.upload-page {
    background: #090a0f;
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .site-header {
    background: #071E3D;
    border-bottom: 1px solid var(--tlai-premium-gold, #c9a84c);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.tlai-body.upload-page .upload-page-container {
    max-width: 1120px;
    min-height: calc(100vh - 76px);
    background: #10131b;
}

.tlai-body.upload-page .upload-kicker,
.tlai-body.upload-page .preference-title,
.tlai-body.upload-page .section-mini-head h3 {
    color: var(--tlai-premium-gold-light, #e1c36f);
}

.tlai-body.upload-page .upload-title,
.tlai-body.upload-page .upload-card-title,
.tlai-body.upload-page .file-dropzone-title,
.tlai-body.upload-page .selected-file strong,
.tlai-body.upload-page .preference-card-title,
.tlai-body.upload-page .upload-progress strong {
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .upload-subtitle,
.tlai-body.upload-page .upload-card-subtitle,
.tlai-body.upload-page .section-mini-head p,
.tlai-body.upload-page .file-dropzone-text,
.tlai-body.upload-page .selected-file span,
.tlai-body.upload-page .preference-subtitle,
.tlai-body.upload-page .preference-card-text,
.tlai-body.upload-page .privacy-note p,
.tlai-body.upload-page .upload-progress p {
    color: var(--tlai-premium-muted, #b8b4a8);
}

.tlai-body.upload-page .upload-trust-badges span {
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: 2px;
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-gold-light, #e1c36f);
    box-shadow: none;
}

.tlai-body.upload-page .upload-card {
    border: 1px solid var(--tlai-premium-border, rgba(201, 168, 76, .14));
    border-radius: 0;
    background: var(--tlai-premium-card, #0d0e14);
    box-shadow: none;
}

.tlai-body.upload-page .upload-card-header,
.tlai-body.upload-page .form-actions {
    border-color: var(--tlai-premium-border, rgba(201, 168, 76, .14));
    background: #111119;
}

.tlai-body.upload-page .file-dropzone {
    border: 1px dashed rgba(201, 168, 76, .36);
    border-radius: 0;
    background: #090a0f;
}

.tlai-body.upload-page .file-dropzone:hover,
.tlai-body.upload-page .file-dropzone.is-dragover {
    border-color: var(--tlai-premium-gold-light, #e1c36f);
    background: rgba(201, 168, 76, .08);
    transform: none;
}

.tlai-body.upload-page .file-dropzone-icon {
    border: 1px solid rgba(201, 168, 76, .24);
    border-radius: 2px;
    background: rgba(201, 168, 76, .1);
    color: var(--tlai-premium-gold-light, #e1c36f);
}

.tlai-body.upload-page .selected-file,
.tlai-body.upload-page .preference-section,
.tlai-body.upload-page .preference-card,
.tlai-body.upload-page .privacy-note,
.tlai-body.upload-page .upload-progress {
    border: 1px solid var(--tlai-premium-border, rgba(201, 168, 76, .14));
    border-radius: 0;
    background: #111119;
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .preference-card:hover,
.tlai-body.upload-page .preference-card.is-selected {
    border-color: var(--tlai-premium-gold, #c9a84c);
    background: rgba(201, 168, 76, .08);
    box-shadow: none;
    transform: none;
}

.tlai-body.upload-page .preference-card input {
    accent-color: var(--tlai-premium-gold, #c9a84c);
}

.tlai-body.upload-page .privacy-note {
    border-left: 4px solid var(--tlai-premium-gold, #c9a84c);
}

.tlai-body.upload-page .privacy-note > span {
    border-radius: 2px;
    background: rgba(201, 168, 76, .12);
    color: var(--tlai-premium-gold-light, #e1c36f);
}

.tlai-body.upload-page .form-label {
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .form-control {
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: 0;
    background: #090a0f;
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .form-control:focus {
    border-color: var(--tlai-premium-gold-light, #e1c36f);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

.tlai-body.upload-page .form-control::placeholder {
    color: #706b62;
}

.tlai-body.upload-page .upload-error {
    border-radius: 0;
    background: rgba(220, 38, 38, .12);
    color: #fecaca;
}

.tlai-body.upload-page .selected-file button,
.tlai-body.upload-page .upload-btn.btn-secondary {
    border: 1px solid rgba(201, 168, 76, .28);
    border-radius: 2px;
    background: transparent;
    color: var(--tlai-premium-text, #eee9df);
}

.tlai-body.upload-page .selected-file button:hover,
.tlai-body.upload-page .upload-btn.btn-secondary:hover {
    background: rgba(201, 168, 76, .08);
    color: var(--tlai-premium-gold-light, #e1c36f);
}

.tlai-body.upload-page .upload-btn.btn-primary {
    border: 1px solid var(--tlai-premium-gold, #c9a84c);
    border-radius: 2px;
    background: var(--tlai-premium-gold, #c9a84c);
    color: #090a0f;
}

.tlai-body.upload-page .upload-btn.btn-primary:hover {
    background: var(--tlai-premium-gold-light, #e1c36f);
}

.tlai-body.upload-page .upload-spinner {
    border-color: rgba(238, 233, 223, .16);
    border-top-color: var(--tlai-premium-gold, #c9a84c);
}
