:root {
    --bg-0: #05080f;
    --bg-1: #09140f;
    --bg-2: #0f1f18;
    --bg-3: #173126;
    --line: #2a4a3d;
    --line-soft: #1f3a30;
    --text: #e8effa;
    --text-dim: #9fc4b5;
    --text-faint: #6f9988;
    --brand: #5dd39e;
    --accent-gold: #d4af37;
    --accent-green: #22c55e;
    --accent-red: #f87171;
    --accent-blue: #1fa77a;
    --accent-purple: #79d8b7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 100% -10%, #123326 0%, transparent 55%),
        radial-gradient(900px 380px at -5% -10%, #1a3b2f 0%, transparent 58%),
        linear-gradient(180deg, rgba(12, 30, 23, 0.5), rgba(7, 17, 13, 0.75)),
        var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    letter-spacing: 0.1px;
}

a { color: #8fe3bf; }
a:hover { color: #c8f6e3; }

.market-strip {
    border-bottom: 1px solid #2a3a33;
    background: linear-gradient(90deg, #0a110e, #111a16 50%, #0d1612);
}

.market-strip-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 8px 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #9fb6ab;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.market-pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #44584f;
    background: rgba(24, 35, 30, 0.62);
    color: #d8e7df;
    font-weight: 700;
}

.market-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.header {
    background:
        linear-gradient(90deg, rgba(10, 27, 20, 0.97), rgba(14, 38, 30, 0.95)),
        var(--bg-1);
    border-bottom: 1px solid #28503f;
    padding: 18px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
}

.header-left h1 {
    font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 31px;
    font-weight: 700;
    color: #f6fbff;
    letter-spacing: 0.2px;
}

.header-left h1 span {
    color: var(--accent-green);
    font-weight: 600;
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    color: inherit;
    text-decoration: none;
}

.header-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.header-right {
    font-size: 13px;
    color: var(--text-dim);
    text-align: right;
}

.header-right a {
    color: var(--text-dim);
    margin-left: 14px;
    text-decoration: none;
    font-weight: 500;
}

.header-right a:hover { color: #ebf3ff; }

.logout-inline { display: inline; margin-left: 12px; }

.logout-btn {
    background: transparent;
    border: 0;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.logout-btn:hover { color: #ebf3ff; }

.content {
    padding: 30px 34px;
    max-width: 1380px;
    margin: 0 auto;
}

.site-footer {
    border-top: 1px solid #244235;
    background:
        linear-gradient(180deg, rgba(9, 21, 16, 0.98), rgba(7, 16, 12, 0.98)),
        var(--bg-1);
    margin-top: 24px;
}

.site-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 22px 34px 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.site-footer-brand {
    max-width: 760px;
}

.site-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #f4f8fd;
    margin-bottom: 8px;
}

.site-footer-copy {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.pre-footer-signup-shell {
    padding-top: 6px;
    padding-bottom: 0;
}

.pre-footer-signup-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px 22px;
    background:
        linear-gradient(180deg, rgba(22, 29, 39, 0.97), rgba(15, 22, 31, 0.98)),
        var(--bg-2);
    border-color: #2b4157;
}

.pre-footer-signup-copy {
    max-width: 520px;
}

.pre-footer-signup-title {
    color: #f4f8fd;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pre-footer-signup-text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

.pre-footer-signup-form {
    min-width: min(520px, 100%);
}

.pre-footer-signup-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-footer-input {
    flex: 1;
    min-width: 0;
    height: 42px;
}

.pre-footer-signup-disclaimer {
    margin-top: 8px;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.45;
}

.site-footer-contact {
    min-width: 180px;
    text-align: right;
}

.site-footer-label {
    display: block;
    color: var(--text-faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.site-footer-link {
    color: #bdeed8;
    text-decoration: none;
    font-weight: 600;
}

.site-footer-link:hover {
    color: #ecfff6;
    text-decoration: none;
}

.score-link {
    text-decoration: none;
}

.score-link:hover {
    text-decoration: none;
}

.panel {
    background:
        linear-gradient(180deg, rgba(19, 42, 32, 0.95), rgba(12, 30, 23, 0.96)),
        var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

.panel h2 {
    margin-bottom: 11px;
    font-size: 40px;
    letter-spacing: 0.2px;
    line-height: 1.05;
    font-weight: 700;
}
.panel h3 { margin-bottom: 10px; font-size: 17px; color: #f5f9ff; }

.section-card h2 {
    font-size: 46px;
    font-weight: 700;
}

.panel-search {
    border-color: #2f5e49;
    background:
        linear-gradient(180deg, rgba(22, 50, 39, 0.95), rgba(14, 32, 24, 0.96)),
        var(--bg-2);
}

.lead {
    color: var(--text-dim);
    margin-bottom: 14px;
    line-height: 1.45;
}

.search-form { margin-top: 8px; }

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 11px;
}

label {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.65px;
}

input[type="text"], input[type="date"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0b1411;
    color: var(--text);
    font-size: 13px;
}

input[type="text"]:focus, input[type="date"]:focus, input[type="email"]:focus,
input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #3cab7c;
    box-shadow: 0 0 0 2px rgba(55, 156, 112, 0.22);
}

input[type="checkbox"] { transform: translateY(1px); }

.checkbox-row {
    margin: 12px 0;
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.btn-primary {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #3a6a56;
    background: linear-gradient(180deg, #2f7256, #235640);
    color: #edf6f1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #399069, #2a6c4e);
}

.warning {
    margin-bottom: 14px;
    background: rgba(80, 44, 7, 0.5);
    color: #f3c579;
    border: 1px solid #8b5a1f;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
}

.notice {
    margin-bottom: 14px;
    background: rgba(22, 74, 50, 0.52);
    color: #b8f0d6;
    border: 1px solid #2c7353;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
}

.stats-bar {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(180deg, #102a20, #0c1f17);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 20px;
    flex: 1;
    min-width: 130px;
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.05;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.stat-label {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.stat-card.green .stat-number { color: var(--accent-green); }
.stat-card.purple .stat-number { color: var(--accent-purple); }
.stat-card.blue .stat-number { color: #9fc2ff; }
.stat-card.orange .stat-number { color: #f59e0b; }
.stat-card.yellow .stat-number { color: #f3d45f; }
.stat-card.red .stat-number { color: var(--accent-red); }

.probe-score-card {
    border-color: rgba(191, 70, 82, 0.48);
    background: linear-gradient(180deg, rgba(84, 21, 28, 0.92), rgba(54, 16, 24, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 28px rgba(67, 16, 24, 0.24);
}

.stat-number-score,
.stat-number-score a {
    color: #ffd7db;
}

.stat-number-score a:hover {
    color: #fff2f4;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    margin-top: 8px;
}

.tab {
    padding: 11px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.16s;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.tab:hover { color: var(--text); }
.tab.active { color: #e9f2ed; border-bottom-color: var(--accent-gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 7px 12px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #0e1914;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.18s;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    font-weight: 600;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: #1f4e3b;
    color: #edf6f1;
    border-color: #3e8a69;
    text-decoration: none;
}

.search-box {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0d1713;
    color: var(--text);
    font-size: 12px;
    width: 260px;
    margin-left: auto;
}

.search-box:focus { outline: none; border-color: #3b9c72; }
.search-box::placeholder { color: #6d9183; }

.table-wrap {
    background: #0d1713;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    background: linear-gradient(180deg, #153626, #112a1f);
}

thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.95px;
    color: #8bb7a3;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

tbody tr {
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.15s;
}

tbody tr:hover { background: #173629; }
tbody tr:nth-child(even) { background: rgba(20, 48, 36, 0.24); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 14px; color: #d8e0dc; }

.company-name { color: #edf4f0; font-weight: 600; max-width: 340px; }

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-upload {
    background: rgba(33, 103, 73, 0.35);
    color: #9ce6c8;
    border: 1px solid #2b875f;
}

.badge-corresp {
    background: rgba(26, 100, 54, 0.34);
    color: #8fe0b1;
    border: 1px solid #2f8d58;
}

.badge-eightk {
    background: rgba(33, 57, 104, 0.35);
    color: #9fc2ff;
    border: 1px solid #476fbe;
}

.link-btn {
    display: inline-block;
    padding: 5px 10px;
    background: #274735;
    color: #b8f0d6;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.16s;
    border: 1px solid transparent;
}

.link-btn:hover {
    background: #2f6a4f;
    color: #f3faf6;
    border-color: #3c8f69;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(118, 132, 148, 0.34);
    background: linear-gradient(180deg, rgba(38, 47, 59, 0.98), rgba(24, 31, 40, 0.98));
    color: #e5ecf5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 22px rgba(8, 12, 18, 0.28);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
    border-color: rgba(147, 163, 184, 0.5);
    background: linear-gradient(180deg, rgba(47, 58, 72, 1), rgba(29, 37, 47, 1));
    color: #f8fbff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 2px rgba(111, 127, 148, 0.26),
        0 10px 22px rgba(8, 12, 18, 0.28);
}

.no-results {
    text-align: center;
    padding: 36px;
    color: #798d84;
    font-size: 13px;
}

.empty { text-align: center; padding: 56px 20px; color: #768a82; }
.empty-icon { font-size: 42px; margin-bottom: 14px; }

.thread-card {
    background: linear-gradient(180deg, #12271d, #0e1f17);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.thread-card-eightk {
    background: linear-gradient(180deg, #112238, #0d1b2f);
}

.thread-card-periodic {
    background: linear-gradient(180deg, #101b28, #0d1722);
    border-color: #294158;
    margin-bottom: 14px;
}

.thread-header {
    padding: 14px 20px;
    background: linear-gradient(180deg, #173626, #122c1f);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.thread-header-eightk {
    background: linear-gradient(180deg, #183357, #122847);
}

.thread-header-periodic {
    background: linear-gradient(180deg, #162537, #112031);
    padding: 10px 16px;
}

.thread-company { font-size: 15px; font-weight: 700; color: #edf4f0; }
.thread-meta { font-size: 11px; color: #93ab9f; margin-top: 3px; }

.thread-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.thread-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.status-awaiting { background: rgba(127, 83, 11, 0.45); color: #f3c46f; border: 1px solid #8a5d1e; }
.status-received { background: rgba(29, 103, 56, 0.42); color: #8de0af; border: 1px solid #2d8d59; }
.status-orphan { background: rgba(109, 30, 30, 0.45); color: #f5aaaa; border: 1px solid #8a3a3a; }
.status-eightk { background: rgba(38, 78, 150, 0.45); color: #b6ceff; border: 1px solid #4b77c6; }
.status-periodic { background: rgba(94, 122, 164, 0.28); color: #d4e4ff; border: 1px solid #5a759a; }

.thread-rounds { font-size: 11px; color: #95aba2; }
.thread-conf { font-size: 10px; color: #778f86; }
.thread-filters { margin-bottom: 16px; gap: 8px; flex-wrap: wrap; }
.thread-filter-empty { margin-bottom: 16px; }

.thread-timeline { padding: 20px; display: flex; flex-direction: column; gap: 0; }
.thread-timeline-compact { padding: 12px 16px; }

.timeline-item {
    border: 1px solid;
    border-radius: 11px;
    padding: 14px;
    transition: transform 0.16s;
}

.timeline-item:hover { transform: translateX(3px); }
.timeline-left { margin-right: 72px; background: #1b2a24; border-color: #40614f; }
.timeline-right { margin-left: 72px; background: #173024; border-color: #2e8353; }
.timeline-center { margin: 0 36px; background: #182334; border-color: #35537b; }
.timeline-item-periodic {
    margin: 0 10px;
    padding: 10px 12px;
    background: #132131;
    border-color: #40607c;
}

.timeline-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.timeline-icon { font-size: 15px; font-weight: 700; }
.timeline-label { font-size: 12px; font-weight: 700; flex: 1; text-transform: uppercase; letter-spacing: 0.45px; }
.timeline-label.upload { color: #9ce6c8; }
.timeline-label.corresp { color: #9ae1b9; }
.timeline-label.eightk { color: #9fc2ff; }
.timeline-label.tenk { color: #ffd59a; }
.timeline-label.tenq { color: #f7c38d; }
.timeline-date { font-size: 11px; color: #95ada3; }
.timeline-company { font-size: 12px; color: #b0c2ba; margin-bottom: 7px; }
.timeline-meta-stack { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px 0; }
.timeline-actions { margin-top: 9px; display: flex; gap: 7px; flex-wrap: wrap; }

.fn-tag {
    font-size: 10px;
    color: #9ce6c8;
    background: rgba(27, 92, 63, 0.34);
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-self: flex-start;
    border: 1px solid #2f7d59;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.timeline-event-tag {
    color: #b8d1ff;
    background: rgba(47, 83, 140, 0.34);
    border-color: #476fbe;
}

.ref-date { font-size: 11px; color: #95a99f; margin-bottom: 5px; font-style: italic; }

.text-preview {
    margin-top: 10px;
    background: #0a101b;
    border-radius: 9px;
    padding: 10px;
    border: 1px solid #2e483c;
}

.summary-preview-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s, transform 0.16s, background 0.16s;
}

.summary-preview-btn:hover {
    border-color: #4f6f93;
    background: #0d1420;
    transform: translateY(-1px);
}

.summary-preview-pending {
    width: 100%;
}

.summary-preview-error {
    border-color: #6c5663;
}

.preview-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #7e958b;
    margin-bottom: 6px;
}

.preview-text {
    font-size: 12px;
    color: #aabbb3;
    line-height: 1.6;
    max-height: 92px;
    overflow: hidden;
}

.summary-preview-cta {
    margin-top: 8px;
    font-size: 11px;
    color: #c7dbff;
    font-weight: 700;
}

.summary-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 16, 0.76);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.summary-modal-backdrop[hidden] {
    display: none !important;
}

.summary-modal {
    width: min(760px, 100%);
    max-height: min(82vh, 900px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(123, 152, 196, 0.36);
    background: linear-gradient(180deg, #142337, #0d1826);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.summary-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(123, 152, 196, 0.18);
}

.summary-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #f0f5ff;
}

.summary-modal-close {
    border: 1px solid rgba(123, 152, 196, 0.28);
    border-radius: 999px;
    background: rgba(18, 31, 47, 0.88);
    color: #d8e6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    padding: 7px 12px;
    cursor: pointer;
}

.summary-modal-body {
    padding: 18px;
    color: #d5e0ef;
    line-height: 1.7;
    font-size: 14px;
    white-space: pre-wrap;
}

body.summary-modal-open {
    overflow: hidden;
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #728a81;
    font-size: 13px;
    padding: 8px 0;
}

.connector-line { flex: 1; height: 1px; background: var(--line); }

.text-card {
    background: #111d18;
    border: 1px solid var(--line);
    border-radius: 11px;
    margin-bottom: 13px;
    overflow: hidden;
}

.text-card summary {
    cursor: pointer;
    list-style: none;
    padding: 11px 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #173126;
    color: #dbe9e2;
}

.text-card summary::-webkit-details-marker { display: none; }

.text-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 13px 0 13px;
    color: #93a79f;
    font-size: 11px;
}

.full-text {
    margin: 10px 13px 13px 13px;
    padding: 11px;
    background: #090f1a;
    border: 1px solid #2e483c;
    border-radius: 9px;
    color: #d7e2dc;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 380px;
    overflow: auto;
    font-family: "IBM Plex Mono", "Consolas", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
}

.filing-layout { margin-top: 12px; }

.filing-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.filing-meta-card {
    border: 1px solid var(--line);
    background: #0f1829;
    border-radius: 10px;
    padding: 10px;
}

.filing-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #7f978d;
    margin-bottom: 6px;
}

.filing-meta-value {
    font-size: 13px;
    color: #e4eee9;
    line-height: 1.45;
}

.filing-message {
    border: 1px solid var(--line);
    background: #0f1829;
    border-radius: 10px;
    padding: 13px;
}

.filing-message h3 { margin: 0 0 10px 0; font-size: 15px; }

.filing-prose {
    color: #d2dfd9;
    line-height: 1.75;
    font-size: 14px;
}

.filing-prose br { display: block; margin-bottom: 8px; content: ""; }

.filing-letter-body p {
    margin: 0 0 18px 0;
}

.filing-letter-body p:last-child {
    margin-bottom: 0;
}

.filing-subject {
    font-weight: 500;
    color: #e2ece7;
}

.ai-panel {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0f1829;
    padding: 13px;
}

.ai-panel h3 { margin: 0 0 10px 0; }
.ai-loading .skel-title { width: 200px; height: 22px; margin-bottom: 8px; }
.ai-loading .skel-card { height: 96px; }
.auth-panel { max-width: 520px; margin: 0 auto; }

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0b1411;
    color: var(--text);
    font-size: 13px;
}

.auth-alt { margin-top: 10px; color: var(--text-dim); font-size: 13px; }

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.home-card {
    background: linear-gradient(180deg, #101d18, #0b1612);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}

.home-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-card-company {
    color: #ecf4ef;
    font-weight: 600;
    margin-bottom: 6px;
}

.home-card-meta {
    color: #95ada3;
    font-size: 12px;
    margin-bottom: 10px;
}

.event-chip {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 14px;
    border: 1px solid #486357;
    color: #e1bf57;
    background: rgba(45, 62, 54, 0.42);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    font-weight: 700;
}

.home-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.widget-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}

.admin-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.info-widget,
.tracker-widget {
    background: linear-gradient(180deg, #101d18, #0b1612);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
}

.info-widget h3,
.tracker-widget h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.info-widget p {
    color: var(--text-dim);
    line-height: 1.5;
    font-size: 14px;
}

.tracker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2a4439;
    padding: 9px 0;
    color: var(--text-dim);
    font-size: 13px;
}

.tracker-row strong {
    color: #e5eee9;
    font-size: 14px;
    font-weight: 700;
}

.tracker-foot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a4439;
    color: var(--text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.library-preview {
    margin-top: 14px;
    padding: 8px 2px 2px;
}

.library-preview h3 { margin-bottom: 8px; font-size: 18px; }

.corr-example {
    border: 1px solid #365345;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #101d18, #0b1612);
}

.corr-example-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.corr-example-head strong {
    display: block;
    color: #edf5f1;
}

.corr-example-head span {
    color: var(--text-dim);
    font-size: 12px;
}

.corr-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.corr-example-card {
    border: 1px solid #355245;
    border-radius: 10px;
    padding: 10px;
    background: #0d1713;
}

.corr-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #9ab1a6;
    margin-bottom: 6px;
}

.corr-date {
    font-size: 14px;
    color: #ecf4ef;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.library-preview-note {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}

.section-latest-filings {
    margin-top: 26px;
}

.section-most-active {
    margin-top: 22px;
}

.panel-search {
    margin-bottom: 20px;
}

.section-heading-with-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.section-heading-with-info h2 {
    margin-bottom: 0;
}

.section-heading-with-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.section-heading-with-link h2 {
    margin-bottom: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(118, 132, 148, 0.32);
    background: linear-gradient(180deg, rgba(35, 43, 53, 0.96), rgba(24, 30, 38, 0.96));
    color: #d5dde6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.section-link:hover {
    color: #f1f5f9;
    border-color: rgba(151, 164, 179, 0.46);
    background: linear-gradient(180deg, rgba(42, 51, 62, 0.98), rgba(28, 35, 43, 0.98));
    transform: translateY(-1px);
}

.sortable-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font: inherit;
}

.sortable-header-link:hover {
    color: #eef4fb;
    text-decoration: none;
}

.sortable-header-indicator {
    color: #93a6bb;
    font-size: 12px;
    line-height: 1;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.home-topic-explorer {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(120, 138, 156, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19, 27, 35, 0.92), rgba(14, 20, 28, 0.96));
}

.home-topic-explorer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.home-topic-explorer-copy {
    margin: 4px 0 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}

.topic-widget-lead {
    margin: 0 0 18px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

.home-topic-search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.home-topic-search-form input {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    min-height: 44px;
    height: 44px;
    max-height: 44px;
    padding: 0 14px;
    line-height: 44px;
}

.home-topic-search-form .btn-primary {
    align-self: flex-start;
}

.home-topic-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.home-topic-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    color: #d8e2ef;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.section-topic-widget .section-heading-with-link {
    margin-bottom: 16px;
}

.section-topic-widget .section-link {
    margin-top: 2px;
}

.home-topic-chip:hover {
    color: #f5f9fd;
}

.home-topic-chip:visited {
    color: #d8e2ef;
}

.topic-preset-shell {
    margin-top: 4px;
}

.topic-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.topic-preset-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(110, 129, 150, 0.22);
    background: linear-gradient(180deg, rgba(23, 32, 42, 0.96), rgba(17, 24, 33, 0.96));
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topic-preset-card:hover {
    transform: translateY(-1px);
    border-color: rgba(147, 167, 188, 0.4);
    background: linear-gradient(180deg, rgba(31, 41, 53, 0.98), rgba(21, 29, 39, 0.98));
}

.topic-token-input {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(93, 112, 133, 0.34);
    background: linear-gradient(180deg, rgba(16, 23, 32, 0.98), rgba(12, 18, 27, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topic-token-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.topic-token-list input[data-topic-token-input] {
    flex: 1 1 240px;
    min-width: 220px;
    width: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    min-height: 34px;
    height: 34px;
    max-height: 34px;
    line-height: 34px;
    box-shadow: none;
    color: #eef5fc;
    font-size: 14px;
}

.topic-token-list input[data-topic-token-input]:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.topic-token-list input[data-topic-token-input]::placeholder {
    color: #7f93ab;
}

.topic-token-input:focus-within {
    border-color: #4d8d73;
    box-shadow: 0 0 0 2px rgba(55, 156, 112, 0.16);
}

.topic-token-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 8px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(103, 127, 153, 0.5);
    background: linear-gradient(180deg, rgba(31, 42, 55, 0.98), rgba(21, 29, 39, 0.98));
    color: #eef5fc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topic-token-chip-label {
    display: inline-flex;
    align-items: center;
}

.topic-token-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(108, 127, 151, 0.18);
    color: #f2f7fc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topic-token-chip-remove:hover {
    background: rgba(132, 151, 176, 0.34);
    color: #ffffff;
    transform: scale(1.04);
}

.topic-token-chip-remove:focus-visible {
    outline: 2px solid rgba(93, 211, 158, 0.45);
    outline-offset: 1px;
}

.topic-preset-title {
    color: #eef5fb;
    font-size: 14px;
    font-weight: 700;
}

.topic-preset-copy {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
}

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

.search-widget-grid-stacked {
    grid-template-columns: 1fr;
}

.search-widget-stack {
    gap: 24px;
}

.search-hero-card {
    margin-bottom: 22px;
    padding-top: 26px;
    padding-bottom: 24px;
}

.search-hero-card .lead {
    margin-bottom: 0;
    line-height: 1.65;
}

.search-widget-card {
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    padding-top: 34px;
    padding-bottom: 28px;
}

.search-widget-card h3 {
    margin: 4px 0 12px;
}

.search-widget-card .compact-filter-label {
    top: -11px;
    left: 14px;
}

.search-widget-card .topic-widget-lead {
    margin-bottom: 18px;
    max-width: 760px;
}

.search-widget-card .search-form {
    margin-top: 0;
}

.search-widget-form {
    margin-bottom: 18px;
}

.search-widget-card .field-grid {
    gap: 12px;
}

.search-widget-card .btn-primary {
    margin-top: 10px;
}

.topic-results-live {
    display: table-row-group;
}

.topic-results-skeleton {
    display: none;
}

.topic-results-shell.is-loading .topic-results-live {
    display: none;
}

.topic-results-shell.is-loading .topic-results-skeleton {
    display: table-row-group;
}

.topic-results-shell.is-loading-more .topic-results-live {
    display: table-row-group;
}

.topic-results-shell.is-loading-more .topic-results-skeleton {
    display: table-row-group;
}

.topic-skeleton-row td {
    vertical-align: middle;
}

.topic-skel-date {
    width: 44px;
    height: 52px;
}

.topic-skel-type {
    width: 72px;
    height: 20px;
    border-radius: 999px;
}

.topic-skel-ticker {
    width: 84px;
    height: 18px;
}

.topic-skel-company {
    width: 170px;
    height: 18px;
}

.topic-skel-pill-stack,
.topic-skel-actions,
.topic-skel-snippet {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-skel-pill {
    width: 128px;
    height: 20px;
    border-radius: 999px;
}

.topic-skel-pill.short {
    width: 84px;
}

.topic-skel-line {
    width: 100%;
    max-width: 520px;
    height: 14px;
}

.topic-skel-line.medium {
    max-width: 420px;
}

.topic-skel-line.short {
    max-width: 280px;
}

.topic-skel-btn {
    width: 80px;
    height: 28px;
    border-radius: 8px;
}

.topic-skel-btn.secondary {
    width: 94px;
}

@media (max-width: 900px) {
    .search-widget-grid {
        grid-template-columns: 1fr;
    }
}

.home-inline-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.55px;
    font-size: 11px;
    font-weight: 600;
}

.home-inline-filter select {
    min-width: 160px;
}

.latest-filings-filters {
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
}

.latest-filings-control-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.latest-filings-urgency-filters {
    padding-top: 0;
}

.home-filter-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-right: 2px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.filter-btn-neutral {
    background: #1a2330;
    border-color: #435264;
    color: #dde6f1;
}

.filter-btn-neutral:hover,
.filter-btn-neutral.active {
    background: #2a3543;
    border-color: #66778d;
    color: #f5f8fc;
}

.filter-btn-urgency {
    background: linear-gradient(180deg, #1c2430, #131923);
    border-color: #55657b;
    color: #d8e2ef;
}

.filter-btn-urgency:hover,
.filter-btn-urgency.active {
    background: linear-gradient(180deg, #53667d, #3f5064);
    border-color: #8da1ba;
    color: #f6f9fd;
}

.load-more-btn {
    min-width: 220px;
}

.section-subtitle {
    margin: -6px 0 14px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.periodic-context-panel h3 {
    margin-bottom: 0;
    font-size: 28px;
}

.periodic-context-summary {
    margin-top: 8px;
    color: var(--text-dim);
    line-height: 1.55;
}

.tag-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px 0;
}

.filter-outline-group {
    position: relative;
    padding: 22px 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 28, 43, 0.42), rgba(14, 22, 34, 0.2));
}

.filter-outline-group-home {
    margin-bottom: 12px;
}

.compact-filter-label {
    position: absolute;
    top: -10px;
    left: 12px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #162132;
}

.compact-filter-label-kicker {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #89a0bf;
    font-weight: 700;
    line-height: 1;
}

.compact-filter-label-title {
    font-size: 12px;
    color: #edf4ff;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.compact-filter-label-kicker:empty {
    display: none;
}

.tag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
}

.tag-filter-bar-negative {
    padding-bottom: 2px;
}

.tag-filter-bar-positive {
    padding-top: 2px;
}

.tag-filter-bar-market {
    padding-bottom: 2px;
}

.tag-filter-chip {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #17211c, #101713);
    color: #c3d6cd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    outline: none;
}

.tag-filter-chip-negative {
    border-color: #754246;
    background: linear-gradient(180deg, #25161a, #190d11);
    color: #f0ced2;
}

.tag-filter-chip-positive {
    border-color: #426454;
    background: linear-gradient(180deg, #17211c, #101713);
    color: #c3d6cd;
}

.tag-filter-chip-market {
    border-color: #55657b;
    background: linear-gradient(180deg, #1c2430, #131923);
    color: #d8e2ef;
    text-decoration: none;
}

.tag-filter-chip:hover {
    border-color: #4f7565;
    background: linear-gradient(180deg, #1b2822, #121a16);
    color: #edf4f0;
    transform: translateY(-1px);
}

.tag-filter-chip-negative:hover {
    border-color: #9a585f;
    background: linear-gradient(180deg, #2b181d, #1d1014);
    color: #fff0f1;
}

.tag-filter-chip-positive:hover {
    border-color: #4f7565;
    background: linear-gradient(180deg, #1b2822, #121a16);
    color: #edf4f0;
}

.tag-filter-chip-market:hover {
    border-color: #6c7f97;
    background: linear-gradient(180deg, #222c39, #18202b);
    color: #f4f8fd;
    text-decoration: none;
}

.about-hero-panel {
    overflow: hidden;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(94, 122, 151, 0.36);
    background: linear-gradient(180deg, rgba(27, 35, 46, 0.95), rgba(19, 25, 34, 0.96));
    color: #d6e2ef;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: 0.15px;
}

.about-hero-note {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.about-hero-aside {
    display: flex;
}

.about-signal-card {
    width: 100%;
    border: 1px solid rgba(59, 83, 108, 0.42);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(23, 31, 43, 0.96), rgba(16, 22, 31, 0.98));
}

.about-signal-label {
    display: block;
    margin-bottom: 10px;
    color: #93abc2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.about-signal-copy {
    margin: 0;
    color: #e7eef7;
    line-height: 1.7;
}

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

.about-feature-card,
.about-method-card,
.about-track-card,
.about-terminology-card {
    min-height: 100%;
}

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

.about-card-copy {
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.about-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

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

.about-disclaimer-panel {
    border-color: rgba(96, 113, 131, 0.34);
}

.tag-filter-chip.active {
    background: linear-gradient(180deg, #2f6f57, #245340);
    border-color: #4d9675;
    color: #f3faf6;
    box-shadow: 0 8px 18px rgba(20, 53, 40, 0.22);
}

.tag-filter-chip-negative.active {
    background: linear-gradient(180deg, #7a2730, #5b1c24);
    border-color: #c36b74;
    color: #fff5f6;
    box-shadow: 0 8px 18px rgba(84, 21, 28, 0.25);
}

.tag-filter-chip-positive.active {
    background: linear-gradient(180deg, #2f6f57, #245340);
    border-color: #4d9675;
    color: #f3faf6;
    box-shadow: 0 8px 18px rgba(20, 53, 40, 0.22);
}

.tag-filter-chip-market.active {
    background: linear-gradient(180deg, #53667d, #3f5064);
    border-color: #8da1ba;
    color: #f6f9fd;
    box-shadow: 0 8px 18px rgba(39, 49, 61, 0.24);
    text-decoration: none;
}

.tag-filter-chip.tag-filter-clear {
    border-color: rgba(118, 132, 148, 0.32);
    background: linear-gradient(180deg, rgba(35, 43, 53, 0.96), rgba(24, 30, 38, 0.96));
    color: #d5dde6;
}

.tag-filter-chip:focus-visible {
    box-shadow: 0 0 0 2px rgba(93, 211, 158, 0.22);
}

.issue-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.timeline-tag-list,
.table-tag-list,
.filing-tag-list {
    margin: 8px 0 0 0;
}

.issue-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #35584a;
    background: rgba(31, 72, 56, 0.4);
    color: #c6ebda;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.issue-tag-pill-negative {
    border-color: #7a4349;
    background: rgba(109, 36, 45, 0.32);
    color: #ffd9dd;
}

.issue-tag-pill-positive {
    border-color: #35584a;
    background: rgba(31, 72, 56, 0.4);
    color: #c6ebda;
}

.issue-tag-pill-market {
    border-color: #53657c;
    background: rgba(73, 88, 109, 0.34);
    color: #e4edf8;
}

.table-tag-list {
    margin-bottom: 8px;
}

.table-muted {
    color: #789086;
}

.tag-filter-empty {
    margin: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #101915;
    border: 1px dashed var(--line);
}

.regulatory-attention-table-bar {
    width: 100%;
    min-width: 120px;
    height: 10px;
    border-radius: 999px;
    background: rgba(47, 57, 70, 0.9);
    overflow: hidden;
}

.regulatory-attention-table-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f8f66, #6db893);
    box-shadow: 0 0 18px rgba(56, 181, 127, 0.22);
}

.regulatory-attention-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.panel-search h2,
.section-dataset-chat h2,
.section-issue-tags h2,
.section-latest-filings h2,
.section-most-active h2,
.section-regulatory-attention-sector h2,
.section-regulatory-attention-industry h2,
.section-regulatory-exposure-sector h2,
.section-regulatory-exposure-industry h2,
.section-division-filing-counts h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: 0.1px;
}

.section-link-static {
    cursor: default;
}

.dataset-chat-shell {
    border: 1px solid rgba(90, 111, 132, 0.32);
    border-radius: 16px;
    padding: 16px;
    background:
        radial-gradient(520px 180px at 100% 0%, rgba(56, 181, 127, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(19, 25, 34, 0.98), rgba(16, 21, 30, 0.98));
}

.dataset-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 14px;
}

.dataset-chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dataset-chat-role {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #91a2b7;
}

.dataset-chat-bubble {
    max-width: min(840px, 100%);
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #3a4859;
    background: #141b24;
    color: #e8eef6;
    font-size: 14px;
    line-height: 1.6;
}

.dataset-chat-message-user {
    align-items: flex-end;
}

.dataset-chat-message-user .dataset-chat-role {
    color: #9fd3bb;
}

.dataset-chat-message-user .dataset-chat-bubble {
    background: linear-gradient(180deg, rgba(39, 74, 60, 0.95), rgba(28, 56, 45, 0.98));
    border-color: #3c8463;
}

.dataset-chat-message-assistant .dataset-chat-bubble {
    background: linear-gradient(180deg, rgba(25, 33, 44, 0.98), rgba(18, 25, 35, 0.98));
}

.dataset-chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.dataset-chat-link-btn {
    min-height: 34px;
    font-size: 11px;
}

.dataset-chat-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.dataset-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.dataset-chat-input {
    min-height: 48px;
    font-size: 14px;
}

.dataset-chat-submit {
    min-height: 48px;
    min-width: 96px;
}

.dataset-chat-form.is-loading .dataset-chat-submit {
    opacity: 0.7;
    pointer-events: none;
}

.section-regulatory-attention-sector .filter-outline-group-home,
.section-regulatory-attention-industry .filter-outline-group-home,
.section-regulatory-exposure-sector .filter-outline-group-home,
.section-regulatory-exposure-industry .filter-outline-group-home {
    margin-top: 10px;
}

.info-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-hover-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(143, 157, 171, 0.34);
    background: rgba(25, 33, 43, 0.86);
    color: #d7dde5;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
}

.info-hover-card {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(420px, 78vw);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(143, 157, 171, 0.2);
    background: linear-gradient(180deg, rgba(28, 36, 47, 0.98), rgba(18, 24, 33, 0.98));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    color: #cdd5df;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 30;
}

.info-hover:hover .info-hover-card,
.info-hover:focus-within .info-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.latest-filing-symbol {
    display: inline-block;
    margin-right: 8px;
    color: #86c9a7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.signal-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(24, 34, 45, 0.82);
    color: #d9e3de;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.sentiment-tag {
    border-color: #315848;
    background: rgba(40, 74, 59, 0.28);
    color: #d7f1e2;
}

.urgency-tag {
    border-color: #4b4d55;
    background: rgba(54, 58, 66, 0.42);
    color: #e3e7ec;
}

.score-tag {
    color: #fff1f1;
}

.score-low {
    border-color: #a16f77;
    background: rgba(111, 53, 62, 0.3);
}

.score-watch {
    border-color: #ae5e67;
    background: rgba(128, 43, 56, 0.44);
}

.score-elevated {
    border-color: #bf4652;
    background: rgba(151, 35, 48, 0.6);
}

.score-high {
    border-color: #cf2d3c;
    background: rgba(173, 27, 42, 0.76);
}

.score-extreme {
    border-color: #de1528;
    background: rgba(191, 16, 33, 0.9);
}

.inline-monitor-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #355244;
    background: linear-gradient(180deg, rgba(22, 37, 31, 0.92), rgba(13, 23, 19, 0.96));
    color: #9fb6ab;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.72px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 16, 0.94);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px;
}

.loading-overlay.active { display: flex; }

.loading-shell {
    width: min(1080px, 100%);
    display: grid;
    gap: 14px;
}

.skel {
    position: relative;
    overflow: hidden;
    background: #15241d;
    border: 1px solid #2e483c;
    border-radius: 10px;
}

.skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(165, 219, 191, 0.18), transparent);
    animation: shimmer 1.22s infinite;
}

.skel-title { height: 32px; width: 280px; }
.skel-row { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skel-input { height: 46px; }
.skel-stat { height: 88px; }
.skel-card { height: 180px; }

@keyframes shimmer {
    100% { transform: translateX(120%); }
}

@media (max-width: 900px) {
    .market-strip-inner { padding: 8px 18px; }
    .header, .content { padding: 18px; }
    .header-left h1 { font-size: 26px; }
    .panel h2, .section-card h2 { font-size: 30px; }
    .widget-grid { grid-template-columns: 1fr; }
    .about-hero-grid,
    .about-value-grid,
    .about-track-grid,
    .about-terminology-grid { grid-template-columns: 1fr; }
    .about-hero-copy h1 { font-size: 34px; }
    .corr-example-grid { grid-template-columns: 1fr; }
    .timeline-left, .timeline-right, .timeline-center { margin: 0; }
    .thread-header { flex-direction: column; }
    .thread-header-right { align-items: flex-start; }
    .search-box { margin-left: 0; width: 100%; }
    .skel-row { grid-template-columns: 1fr; }
    .pre-footer-signup-card { flex-direction: column; align-items: stretch; }
    .pre-footer-signup-form { min-width: 0; }
    .pre-footer-signup-row { flex-direction: column; align-items: stretch; }
    .site-footer-inner { padding: 20px 18px 26px; flex-direction: column; }
    .site-footer-contact { text-align: left; min-width: 0; }
    .admin-insights-grid { grid-template-columns: 1fr; }
    .regulatory-attention-grid { grid-template-columns: 1fr; }
    .regulatory-attention-table-bar { min-width: 88px; }
    .dataset-chat-form { grid-template-columns: 1fr; }
}

/* Theme refresh: neutral charcoal/slate base + emerald accent */
:root {
    --bg-0: #0a0d12;
    --bg-1: #11161d;
    --bg-2: #171d25;
    --bg-3: #202937;
    --line: #313b48;
    --line-soft: #29323d;
    --text: #ecf1f7;
    --text-dim: #aab5c4;
    --text-faint: #7f8d9f;
    --brand: #38b57f;
    --accent-green: #38b57f;
    --accent-blue: #6f7f94;
    --accent-purple: #8c98ab;
    --cta: #38b57f;
    --cta-hover: #46c48f;
}

body {
    background:
        radial-gradient(1200px 560px at 100% -12%, rgba(56, 181, 127, 0.15) 0%, transparent 60%),
        radial-gradient(880px 340px at -6% -10%, rgba(94, 106, 124, 0.14) 0%, transparent 62%),
        linear-gradient(180deg, #0c1117 0%, #0a0d12 100%);
}

.header {
    background: linear-gradient(90deg, rgba(18, 24, 33, 0.98), rgba(20, 28, 38, 0.97));
    border-bottom-color: #313b48;
}

.header-right a {
    color: #b8c2cf;
}

.header-right a:hover,
.logout-btn:hover {
    color: #f1f5fb;
}

.header-left h1,
.company-name,
.thread-company,
.home-card-company,
.corr-date {
    color: #f4f7fc;
}

.header-sub,
.lead,
.tracker-row,
.thread-meta,
.timeline-company,
.preview-text,
.filing-prose,
.home-card-meta,
.library-preview-note {
    color: var(--text-dim);
}

.panel,
.thread-card,
.text-card,
.ai-panel,
.filing-meta-card,
.filing-message,
.info-widget,
.tracker-widget,
.corr-example,
.home-card,
.table-wrap {
    background: linear-gradient(180deg, rgba(27, 34, 44, 0.97), rgba(20, 26, 35, 0.98));
    border-color: var(--line);
}

.panel-search {
    border-color: #3a5f50;
    background:
        linear-gradient(180deg, rgba(27, 35, 38, 0.98), rgba(21, 29, 32, 0.98)),
        var(--bg-2);
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
.search-box {
    background: #121821;
    border-color: #374353;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
.search-box:focus {
    border-color: #4ca67e;
    box-shadow: 0 0 0 2px rgba(56, 181, 127, 0.22);
}

.btn-primary {
    border-color: #2f8663;
    background: linear-gradient(180deg, var(--cta), #2f9b6d);
    color: #f5fffb;
    box-shadow: 0 2px 10px rgba(56, 181, 127, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--cta-hover), #37b27e);
}

.link-btn {
    background: #263240;
    color: #e0e9f3;
    border-color: #425265;
}

.link-btn:hover {
    background: #2f8f66;
    color: #f7fdfb;
    border-color: #3ca575;
}

thead {
    background: linear-gradient(180deg, #242e3a, #1e2732);
}

thead th {
    color: #9cabbd;
}

tbody tr:hover {
    background: #253240;
}

tbody tr:nth-child(even) {
    background: rgba(44, 55, 69, 0.35);
}

.tab.active {
    color: #f0f5fc;
    border-bottom-color: var(--accent-green);
}

.filter-btn {
    background: #1a2330;
    border-color: #3c4a5d;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2f8f66;
    border-color: #41a97c;
    color: #f7fffb;
    text-decoration: none;
}

[data-home-section].section-loading {
    opacity: 0.65;
    transition: opacity 0.18s ease;
}

.badge-upload {
    background: rgba(55, 181, 122, 0.14);
    color: #99e2bf;
    border-color: #2f7d59;
}

.badge-corresp {
    background: rgba(112, 129, 152, 0.2);
    color: #d2deee;
    border-color: #61728b;
}

.timeline-left {
    background: #27313e;
    border-color: #5b6b80;
}

.timeline-right {
    background: #24382f;
    border-color: #328a65;
}

.text-preview,
.full-text {
    background: #10161f;
    border-color: #344153;
}

.notice {
    background: rgba(44, 56, 71, 0.5);
    border-color: #596b81;
    color: #d0dbea;
}

.warning {
    background: rgba(78, 60, 37, 0.5);
    border-color: #8f7650;
    color: #f0ddbf;
}

.admin-metric-good {
    border-color: rgba(56, 181, 127, 0.28);
    box-shadow: inset 0 0 0 1px rgba(56, 181, 127, 0.06);
}

.admin-metric-good .tracker-row strong,
.admin-metric-good h3 {
    color: #9ee2be;
}

.admin-metric-bad {
    border-color: rgba(210, 99, 99, 0.28);
    box-shadow: inset 0 0 0 1px rgba(210, 99, 99, 0.06);
}

.admin-metric-bad .tracker-row strong,
.admin-metric-bad h3 {
    color: #f0a7a7;
}

