:root {
    --bg: #02050b;
    --surface: rgba(10, 16, 28, 0.68);
    --surface-soft: rgba(17, 24, 39, 0.52);
    --line: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --text-muted: #c7ceda;
    --text-soft: #8f9aaa;
    --blue: #3b82f6;
    --blue-deep: #2563eb;
    --green: #22c55e;
    --purple: #a855f7;
    --orange: #f59e0b;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #02050b;
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #02050b;
    background:
        radial-gradient(circle at 72% 38%, rgba(37, 99, 235, 0.2), transparent 30%),
        radial-gradient(circle at 26% 64%, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(130deg, #010206 0%, #050914 45%, #02050b 100%);
    background-color: #02050b;
    overflow-x: hidden;
    overscroll-behavior: none;
}

body.theme-dark-blue {
    --bg: #010816;
    background:
        radial-gradient(circle at 72% 38%, rgba(37, 99, 235, 0.26), transparent 30%),
        radial-gradient(circle at 24% 70%, rgba(14, 165, 233, 0.16), transparent 28%),
        linear-gradient(130deg, #01040d 0%, #071226 48%, #01050d 100%);
}

body.theme-ultra-dark {
    --bg: #000205;
    --surface: rgba(5, 10, 18, 0.76);
    background:
        radial-gradient(circle at 72% 38%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(130deg, #000000 0%, #02050b 52%, #000000 100%);
}

body.compact-mode .metric-card,
body.compact-mode .data-panel,
body.compact-mode .pricing-card,
body.compact-mode .settings-card {
    padding: 16px;
}

body.compact-mode .metric-card strong {
    font-size: 20px;
}

.background-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.055;
    pointer-events: none;
}

.background-vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(2, 5, 11, 0.18), transparent 30%, rgba(2, 5, 11, 0.35));
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(100% - 48px, 1200px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 36px;
    background: transparent;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    font-weight: 700;
    letter-spacing: 0;
}

.brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #02050b;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    clip-path: polygon(0 0, 36% 0, 50% 38%, 66% 0, 100% 0, 52% 100%);
}

.brand__name {
    color: #ffffff;
    font-size: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 28px);
    color: var(--text-muted);
    font-size: 14px;
}

.site-nav__button {
    appearance: none;
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    background: transparent;
    cursor: pointer;
}

.site-nav__link,
.button {
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-nav__link:hover {
    color: #ffffff;
}

.header-actions,
.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button--ghost {
    color: #eef2f7;
    padding-inline: 10px;
}

.button--ghost:hover {
    color: #ffffff;
}

.button--secondary {
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.18);
    border-color: rgba(203, 213, 225, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button--secondary:hover {
    border-color: rgba(203, 213, 225, 0.34);
    background: rgba(15, 23, 42, 0.58);
}

.button--large {
    min-height: 54px;
    padding-inline: 26px;
    font-size: 16px;
}

.button:disabled {
    cursor: default;
    opacity: 0.68;
    transform: none;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
}

.verify-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 750;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
    align-items: center;
    gap: 42px;
    min-height: 670px;
    padding: 52px 0 34px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 34px;
    padding: 0 16px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

h1 {
    max-width: 620px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(54px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero__text {
    max-width: 520px;
    margin: 24px 0 30px;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.55;
}

.trust-line {
    max-width: 440px;
    margin: 34px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 580px;
}

.hero__glow {
    position: absolute;
    width: 72%;
    height: 52%;
    background:
        radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 62%),
        radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 58%);
    filter: blur(38px);
    transform: translate(5%, 10%);
}

.laptop-mockup {
    position: relative;
    z-index: 1;
    width: min(850px, 124%);
    max-width: none;
    object-fit: contain;
    filter:
        drop-shadow(0 34px 64px rgba(0, 0, 0, 0.62))
        drop-shadow(0 0 34px rgba(59, 130, 246, 0.18));
    transform: translateX(5%);
    animation: floatLaptop 5.5s ease-in-out infinite;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.feature-card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
}

.feature-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.feature-card__icon--blue {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.16);
}

.feature-card__icon--purple {
    color: var(--purple);
    background: rgba(168, 85, 247, 0.16);
}

.feature-card__icon--green {
    color: var(--green);
    background: rgba(34, 197, 94, 0.14);
}

.feature-card__icon--orange {
    color: var(--orange);
    background: rgba(245, 158, 11, 0.14);
}

.feature-card h2 {
    margin: 1px 0 9px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.feature-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

@keyframes floatLaptop {
    0%,
    100% {
        transform: translateX(5%) translateY(0);
    }

    50% {
        transform: translateX(5%) translateY(-10px);
    }
}

@media (max-width: 1020px) {
    .page-shell {
        width: min(100% - 32px, 760px);
    }

    .site-header {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
        padding-top: 70px;
    }

    .hero__visual {
        min-height: 420px;
        justify-content: flex-start;
    }

    .laptop-mockup {
        width: min(760px, 112vw);
        transform: translateX(-6%);
    }

    @keyframes floatLaptop {
        0%,
        100% {
            transform: translateX(-6%) translateY(0);
        }

        50% {
            transform: translateX(-6%) translateY(-8px);
        }
    }

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 560px);
        padding-top: 18px;
    }

    .site-header,
    .header-actions,
    .hero__actions {
        align-items: stretch;
    }

    .site-header {
        gap: 18px;
    }

    .brand__name {
        font-size: 16px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .button {
        flex: 1;
    }

    .hero {
        padding-top: 52px;
    }

    h1 {
        font-size: clamp(42px, 14vw, 56px);
    }

    .hero__text {
        font-size: 17px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__visual {
        min-height: 320px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

.subpage-hero {
    max-width: 760px;
    padding: 112px 0 42px;
}

.subpage-hero--compact {
    padding-bottom: 28px;
}

.content-panel,
.form-panel,
.dashboard-panel,
.chat-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.content-panel {
    padding: 26px;
}

.legal-document {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.legal-notice,
.legal-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.legal-notice {
    padding: 16px 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-section {
    padding: 22px;
}

.legal-section h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 22px;
}

.legal-section > p,
.legal-clause p {
    color: var(--text-muted);
    line-height: 1.68;
}

.legal-clause {
    padding: 16px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.legal-clause:first-of-type {
    border-top: 0;
}

.legal-clause h3 {
    margin: 0 0 8px;
    color: #dbeafe;
    font-size: 15px;
}

.legal-clause p {
    margin: 0 0 10px;
}

.legal-clause p:last-child {
    margin-bottom: 0;
}

.visual-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), 0 0 44px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.visual-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.visual-panel--wide {
    margin-bottom: 30px;
}

.visual-panel--content {
    margin-bottom: 26px;
}

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

.feature-card--panel {
    min-height: 150px;
}

.app-page {
    padding: 34px 0 0;
}

.form-panel {
    padding: 30px;
}

.form-panel--narrow {
    max-width: 540px;
}

.paywall-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    gap: 28px;
    align-items: start;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
    gap: 48px;
    align-items: start;
    padding-top: 34px;
}

.app-form {
    display: grid;
    gap: 18px;
}

.app-form label,
.chat-form,
.settings-card label {
    display: grid;
    gap: 9px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 650;
}

.app-form input,
.app-form select,
.app-form textarea,
.chat-form input,
.chat-form select,
.settings-card input,
.settings-card select,
.settings-card textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--text);
    font: inherit;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 10px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus,
.chat-form input:focus,
.chat-form select:focus,
.settings-card input:focus,
.settings-card select:focus,
.settings-card textarea:focus {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(96, 165, 250, 0.54);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.app-form textarea,
.settings-card textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.price-display {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.price-display span {
    color: var(--text-muted);
    font-size: 15px;
}

.price-display strong {
    color: #ffffff;
    font-size: clamp(46px, 7vw, 72px);
    line-height: 0.95;
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: start;
}

.dashboard-panel {
    min-height: 100%;
    padding: 30px;
}

.dashboard-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
}

.hero__text--small {
    margin: 18px 0 24px;
    font-size: 16px;
}

.cashflow-list {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
}

.cashflow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.cashflow-row strong {
    color: #ffffff;
}

.chat-panel {
    display: grid;
    gap: 20px;
    padding: 30px;
}

.chat-output {
    display: grid;
    gap: 14px;
    max-height: 470px;
    overflow: auto;
    padding-right: 8px;
}

.chat-message {
    width: min(100%, 760px);
    padding: 18px;
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid rgba(203, 213, 225, 0.12);
    border-radius: 16px;
}

.chat-message--user {
    justify-self: end;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.2);
}

.chat-message strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.chat-message p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.chat-form {
    grid-template-columns: minmax(220px, 0.45fr) 1fr auto;
    align-items: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 48px;
    padding-top: 24px;
    color: var(--text-soft);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer a:hover {
    color: #ffffff;
}

.compact-actions {
    margin-top: 18px;
}

.compact-actions form {
    margin: 0;
}

.saved-list {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
}

.saved-list:empty {
    display: none;
}

.saved-list h3 {
    margin: 4px 0 2px;
    color: #ffffff;
    font-size: 15px;
}

.saved-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.saved-row strong {
    color: #ffffff;
}

.form-error {
    margin: 0 0 18px;
    padding: 13px 15px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: 10px;
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.auth-switch a {
    color: #60a5fa;
    font-weight: 650;
}

.console-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding-top: 52px;
}

.console-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 8px;
    align-self: start;
    padding: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.console-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.console-link:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.18);
    transform: translateX(2px);
}

.console-main {
    min-width: 0;
}

.console-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.metric-grid,
.mini-metric-grid,
.scenario-grid {
    display: grid;
    gap: 16px;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metric-card,
.mini-metric,
.scenario-card,
.idea-card,
.data-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric-card {
    padding: 18px;
}

.metric-card span,
.mini-metric span,
.scenario-card span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}

.metric-card strong,
.mini-metric strong,
.scenario-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
}

.metric-card small {
    display: block;
    margin-top: 10px;
    color: var(--green);
    font-size: 12px;
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.data-panel {
    padding: 22px;
}

.data-panel h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row strong {
    color: #ffffff;
    text-align: right;
}

.mini-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.mini-metric,
.scenario-card {
    padding: 16px;
}

.scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 28px;
}

.scenario-card--bull strong {
    color: var(--green);
}

.scenario-card--base strong {
    color: #60a5fa;
}

.scenario-card--bear strong {
    color: #f87171;
}

.ideas-section {
    margin-top: 32px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
}

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

.idea-card {
    position: relative;
    min-height: 170px;
    padding: 22px;
}

.idea-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.idea-card h3 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 17px;
}

.idea-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.plan-status-banner,
.upgrade-ad,
.pricing-card,
.comparison-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.plan-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 22px;
}

.plan-status-banner span,
.upgrade-ad span,
.pricing-badge {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-status-banner strong {
    color: #ffffff;
    font-size: 24px;
}

.plan-status-banner small {
    color: var(--text-soft);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 28px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.28);
}

.pricing-card--highlight {
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 30px 90px rgba(37, 99, 235, 0.16), 0 0 44px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pricing-card--elite {
    border-color: rgba(96, 165, 250, 0.28);
}

.pricing-card h2,
.upgrade-ad h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

.pricing-card p,
.upgrade-ad p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-card__price {
    color: #ffffff;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 780;
    line-height: 1;
}

.pricing-card__price span,
.pricing-card__note {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
}

.pricing-card ul {
    display: grid;
    gap: 11px;
    min-height: 260px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.pricing-card li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.46);
}

.pricing-card form {
    margin: 0;
}

.pricing-card .button,
.pricing-card form,
.pricing-card form .button {
    width: 100%;
}

.comparison-panel {
    margin-top: 34px;
    padding: 28px;
}

.comparison-table {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.comparison-row:last-child {
    border-bottom: 0;
}

.comparison-row--head {
    background: rgba(37, 99, 235, 0.12);
}

.comparison-row span {
    color: #ffffff;
    font-weight: 700;
}

.comparison-row strong {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 650;
}

.upgrade-ad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 22px;
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upgrade-ad--active {
    border-color: rgba(34, 197, 94, 0.22);
}

.feature-lock {
    margin: 0 0 22px;
    padding: 13px 15px;
    color: var(--text-muted);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 10px;
}

.field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tooltip-help {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-help__icon {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
    cursor: help;
}

.tooltip-help__box {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 10;
    display: grid;
    gap: 7px;
    width: min(280px, 78vw);
    padding: 14px;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 28px rgba(37, 99, 235, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.tooltip-help__box strong {
    color: #ffffff;
    font-size: 13px;
}

.tooltip-help__box span,
.tooltip-help__box em,
.formula-hint,
.settings-note {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.tooltip-help:hover .tooltip-help__box,
.tooltip-help:focus-within .tooltip-help__box {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.settings-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.settings-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.settings-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
}

.setting-toggle {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.setting-toggle input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--blue);
}

.settings-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    align-items: center;
}

.form-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
}

.severity {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    border-radius: 999px;
}

.severity--low {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.severity--medium {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.severity--high {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.memo-panel pre {
    margin: 0;
    color: var(--text-muted);
    font: inherit;
    line-height: 1.7;
    white-space: pre-wrap;
}

.marketplace-filter {
    grid-template-columns: 1.2fr repeat(3, minmax(140px, 0.55fr)) auto;
    align-items: end;
    margin-bottom: 24px;
}

.marketplace-card {
    min-height: 360px;
}

.marketplace-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1020px) {
    .panel-grid,
    .calculator-layout,
    .metric-grid,
    .console-grid,
    .ideas-grid,
    .pricing-grid,
    .settings-layout,
    .marketplace-filter,
    .paywall-layout,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .console-shell {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .console-heading {
        display: grid;
    }
}

@media (max-width: 640px) {
    .subpage-hero {
        padding-top: 72px;
    }

    .content-panel,
    .form-panel,
    .dashboard-panel,
    .chat-panel {
        padding: 22px;
    }

    .price-display,
    .cashflow-row,
    .chat-form,
    .plan-status-banner,
    .upgrade-ad,
    .comparison-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .price-display,
    .cashflow-row,
    .plan-status-banner,
    .upgrade-ad {
        display: grid;
    }

    .console-sidebar,
    .mini-metric-grid,
    .scenario-grid,
    .settings-actions {
        grid-template-columns: 1fr;
    }

    .settings-actions {
        display: grid;
    }

.site-footer {
        display: grid;
    }
}

.nav-badge {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    place-items: center;
    color: #fff;
    font-size: 11px;
    background: rgba(37, 99, 235, 0.75);
    border-radius: 999px;
}

.role-investor {
    --surface: rgba(5, 11, 22, 0.78);
    --surface-soft: rgba(8, 14, 28, 0.64);
    --terminal-line: rgba(59, 130, 246, 0.18);
    --terminal-fill: rgba(4, 10, 22, 0.86);
    background:
        radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.18), transparent 24%),
        radial-gradient(circle at 14% 70%, rgba(34, 197, 94, 0.08), transparent 22%),
        linear-gradient(135deg, #000309 0%, #020815 45%, #000205 100%);
}

.role-founder {
    background:
        radial-gradient(circle at 74% 34%, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at 20% 70%, rgba(168, 85, 247, 0.08), transparent 24%),
        linear-gradient(130deg, #010206 0%, #050914 45%, #02050b 100%);
}

.investor-terminal {
    padding: 24px 0 0;
}

.terminal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 16px;
}

.terminal-hero h1 {
    max-width: 780px;
    font-size: clamp(38px, 4.4vw, 58px);
}

.terminal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.terminal-metrics {
    display: grid;
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.terminal-metrics--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.terminal-card,
.terminal-panel,
.marketplace-filters,
.deal-card,
.conversation-list,
.message-thread {
    background: linear-gradient(135deg, rgba(7, 12, 24, 0.86), rgba(2, 6, 14, 0.66));
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.terminal-card {
    min-height: 102px;
    padding: 16px;
}

.terminal-card--large {
    border-color: rgba(96, 165, 250, 0.26);
    box-shadow: 0 24px 80px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.terminal-card span,
.terminal-row span,
.deal-card__metrics span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.terminal-card strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: clamp(22px, 2vw, 32px);
}

.terminal-card small,
.terminal-empty {
    display: block;
    margin-top: 9px;
    color: var(--text-soft);
    line-height: 1.5;
}

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

.terminal-panel {
    padding: 18px;
}

.terminal-panel--wide {
    grid-column: 1 / -1;
}

.terminal-panel--chart {
    min-height: 280px;
}

.demo-mode-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin: 0 0 10px;
    padding: 0 10px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 99, 235, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.14);
}

.terminal-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.terminal-panel__head h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.terminal-panel__head a,
.terminal-table a {
    color: #60a5fa;
    font-weight: 700;
}

.terminal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.11);
}

.terminal-row strong {
    color: #fff;
    text-align: right;
}

.performance-chart {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 190px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.performance-chart span {
    flex: 1;
    min-height: 18px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.26);
}

.performance-chart--line span:nth-child(even) {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.terminal-table-wrap {
    overflow-x: auto;
}

.terminal-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
}

.terminal-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--text-soft);
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(2, 6, 14, 0.94);
}

.terminal-table th,
.terminal-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    white-space: nowrap;
}

.terminal-table tr:hover td {
    background: rgba(37, 99, 235, 0.06);
}

.money-positive {
    color: #22c55e !important;
}

.money-negative {
    color: #f87171 !important;
}

.money-neutral {
    color: var(--text-muted) !important;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-chip--low,
.status-chip--positive {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.status-chip--medium,
.status-chip--watch {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.status-chip--high,
.status-chip--negative,
.status-chip--critical {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.status-chip--neutral {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.demo-live-panel,
.demo-ai-examples {
    margin: 14px 0;
    border-color: rgba(96, 165, 250, 0.2);
}

.demo-activity-grid,
.demo-ai-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.demo-activity-card,
.demo-ai-grid article {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 12px;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.demo-activity-card:hover,
.demo-ai-grid article:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.58));
}

.demo-activity-card span,
.demo-ai-grid span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-activity-card strong,
.demo-ai-grid strong {
    color: #fff;
    line-height: 1.35;
}

.demo-activity-card small,
.demo-ai-grid p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

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

.demo-memo-panel {
    min-height: 210px;
}

.demo-memo-panel--lead,
.demo-memo-panel--wide {
    grid-column: 1 / -1;
    min-height: auto;
}

.demo-memo-panel h2 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}

.demo-memo-panel p,
.demo-risk-list {
    color: var(--text-soft);
    line-height: 1.7;
}

.demo-risk-list {
    margin: 0;
    padding-left: 18px;
}

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

.activity-dashboard-grid article {
    min-width: 0;
    padding: 14px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
}

.activity-dashboard-grid h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 14px;
}

.access-gate-body {
    min-height: 100vh;
    background-color: #02050b;
    background:
        radial-gradient(circle at 50% 18%, rgba(37, 99, 235, 0.22), transparent 30%),
        radial-gradient(circle at 15% 76%, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(135deg, #010206 0%, #050914 52%, #02050b 100%);
    overflow: hidden;
}

.access-gate {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.access-card {
    width: min(100%, 460px);
    padding: 34px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(7, 12, 24, 0.9), rgba(2, 6, 14, 0.7));
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 18px;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    animation: accessFadeIn 220ms ease both;
}

.access-card--error {
    animation: accessShake 180ms ease both;
    border-color: rgba(248, 113, 113, 0.34);
}

.access-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 800;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
}

.access-card h1 {
    margin: 18px 0 10px;
    color: #fff;
    font-size: clamp(34px, 7vw, 54px);
    letter-spacing: 0;
}

.access-card p {
    margin: 0 auto 24px;
    max-width: 330px;
    color: var(--text-muted);
    line-height: 1.6;
}

.access-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    text-align: left;
}

.access-form label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.access-form input {
    min-height: 52px;
    width: 100%;
    color: var(--text);
    font: inherit;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.access-form input:focus {
    border-color: rgba(96, 165, 250, 0.44);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.access-error {
    margin: 0;
    max-width: none;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
}

.access-success {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-muted);
}

.access-success strong {
    color: #86efac;
}

.access-success a {
    color: #60a5fa;
    font-weight: 800;
}

.access-card small {
    display: block;
    margin-top: 22px;
    color: var(--text-soft);
}

@keyframes accessFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes accessShake {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
}

.terminal-filter,
.marketplace-filters form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 12px;
    margin: 18px 0;
}

.terminal-filter input,
.terminal-filter select,
.marketplace-filters input,
.marketplace-filters select,
.message-form textarea,
.watch-note-form input,
.inline-note-form input,
.pipeline-move input,
.pipeline-move select {
    min-height: 44px;
    width: 100%;
    padding: 0 13px;
    color: var(--text);
    font: inherit;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(203, 213, 225, 0.15);
    border-radius: 10px;
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
}

.marketplace-filters {
    position: sticky;
    top: 18px;
    align-self: start;
    padding: 18px;
}

.marketplace-filters form {
    grid-template-columns: 1fr;
    margin: 0;
}

.marketplace-filters label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

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

.deal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 20px;
}

.deal-card__head,
.deal-card__meta,
.deal-card__actions {
    display: flex;
    gap: 10px;
}

.deal-card__head {
    align-items: start;
    justify-content: space-between;
}

.deal-card h2 {
    margin: 10px 0 0;
    color: #fff;
}

.deal-card p {
    color: var(--text-muted);
    line-height: 1.55;
}

.deal-card__meta {
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 13px;
}

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

.deal-card__metrics div {
    padding: 12px;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.deal-card__metrics strong {
    display: block;
    margin-top: 7px;
    color: #fff;
}

.deal-card__actions {
    flex-direction: column;
    align-items: stretch;
}

.message-console {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
}

.conversation-list {
    display: grid;
    align-content: start;
    overflow: hidden;
}

.conversation-item {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.conversation-item.is-active,
.conversation-item:hover {
    background: rgba(37, 99, 235, 0.12);
}

.conversation-item span,
.conversation-item small {
    color: var(--text-soft);
}

.message-thread {
    min-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.message-context {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.message-context h2 {
    margin: 10px 0 4px;
}

.message-context p {
    margin: 0;
    color: var(--text-soft);
}

.message-list {
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 20px;
}

.message-bubble {
    max-width: 72%;
    padding: 13px 15px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
}

.message-bubble--self {
    justify-self: end;
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(96, 165, 250, 0.22);
}

.message-bubble span {
    color: var(--text-soft);
    font-size: 12px;
}

.message-bubble p {
    margin: 7px 0 0;
    color: var(--text);
    line-height: 1.5;
}

.message-form,
.watch-note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.watch-note-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0;
    border-top: 0;
}

.message-form textarea {
    min-height: 76px;
    padding: 13px;
    resize: vertical;
}

.message-empty {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 420px;
    padding: 30px;
    text-align: center;
}

.listing-control-card p {
    color: var(--text-muted);
    line-height: 1.55;
}

.vc-command .terminal-card {
    min-height: 108px;
}

.vc-hero {
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.vc-metrics {
    grid-template-columns: 1.35fr repeat(7, minmax(0, 1fr));
}

.decision-brief {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
    gap: 14px;
    margin: 0 0 14px;
}

.decision-brief__summary,
.decision-item {
    background: linear-gradient(135deg, rgba(7, 12, 24, 0.9), rgba(2, 6, 14, 0.64));
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.decision-brief__summary {
    padding: 18px;
}

.decision-brief__summary h2 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 34px);
}

.decision-brief__summary p,
.panel-subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

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

.decision-item {
    display: grid;
    gap: 7px;
    min-height: 112px;
    padding: 14px;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.decision-item:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.62));
}

.decision-item span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.decision-item strong {
    color: #fff;
    line-height: 1.35;
}

.decision-item small {
    color: var(--text-soft);
}

.decision-item--empty {
    grid-column: 1 / -1;
}

.vc-dashboard-grid,
.vc-company-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.vc-chart-panel {
    grid-row: span 2;
}

.finance-line-chart {
    position: relative;
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 240px;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0.16));
    background-size: 100% 25%, 12.5% 100%, auto;
    border: 1px solid rgba(96, 165, 250, 0.13);
    border-radius: 12px;
}

.finance-line-chart::after {
    content: "";
    position: absolute;
    inset: 20% 5% 22%;
    border-top: 2px solid rgba(34, 197, 94, 0.55);
    border-right: 2px solid rgba(59, 130, 246, 0.55);
    transform: skewY(-9deg);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25));
}

.finance-line-chart span {
    z-index: 1;
    flex: 1;
    min-height: 18px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.42));
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.22);
}

.chart-footnotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 12px;
}

.chart-footnotes span {
    min-height: 34px;
    padding: 9px 10px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9px;
}

.vc-disclaimer {
    margin-top: 18px;
}

.market-intel {
    padding: 24px 0 0;
}

.market-intel__hero {
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.market-intel__hero h1 {
    max-width: 760px;
    font-size: clamp(38px, 4.4vw, 58px);
}

.market-intel__meta {
    display: grid;
    gap: 8px;
    min-width: 230px;
    color: var(--text-soft);
    font-size: 12px;
    text-align: right;
}

.market-intel__meta span {
    min-height: 34px;
    padding: 9px 11px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;
}

.market-brief-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.7fr);
    gap: 14px;
    margin: 16px 0 14px;
}

.market-brief-summary,
.market-brief-item,
.market-event-card {
    background: linear-gradient(135deg, rgba(7, 12, 24, 0.88), rgba(2, 6, 14, 0.64));
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-brief-summary {
    padding: 18px;
}

.market-brief-summary h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.12;
}

.market-brief-summary p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

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

.market-brief-kpis span {
    display: grid;
    gap: 3px;
    min-height: 56px;
    padding: 10px;
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9px;
}

.market-brief-kpis strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: 0;
}

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

.market-brief-item {
    display: grid;
    gap: 9px;
    min-height: 150px;
    padding: 14px;
}

.market-brief-item div {
    display: grid;
    gap: 8px;
}

.market-brief-item strong {
    color: #fff;
    line-height: 1.35;
}

.market-brief-item p,
.market-brief-item small,
.market-event-card__summary,
.market-impact-grid p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.market-sector-strip,
.market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-sector-strip {
    margin: 0 0 14px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.48);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 12px;
}

.market-sector-strip span,
.market-tags span,
.market-confidence {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 750;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
}

.market-intel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 14px;
    align-items: start;
}

.market-feed {
    display: grid;
    gap: 12px;
}

.market-event-card {
    padding: 16px;
}

.market-event-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.market-event-card__head h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.28;
}

.market-event-card__time {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.market-event-card__source {
    display: inline-flex;
    margin-top: 7px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 750;
}

.market-event-card__signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.market-event-card__summary {
    max-width: 920px;
    margin-top: 12px;
}

.market-tags {
    margin-top: 12px;
}

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

.market-impact-grid section {
    min-height: 132px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.market-impact-grid h3 {
    margin: 0 0 7px;
    color: #dbeafe;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.global-markets {
    position: sticky;
    top: 18px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(7, 12, 24, 0.9), rgba(2, 6, 14, 0.66));
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.global-markets__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.global-markets__head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 18px;
}

.global-markets__head > span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 750;
}

.global-market-list {
    display: grid;
    gap: 8px;
}

.global-market-row {
    display: grid;
    gap: 9px;
    padding: 11px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.global-market-row:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(15, 23, 42, 0.66);
}

.global-market-row__top,
.global-market-row__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.global-market-row strong,
.global-market-row__bottom > span {
    display: block;
    color: #fff;
    font-size: 13px;
}

.global-market-row__top span,
.global-market-row time {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.global-market-row__bottom small {
    font-size: 12px;
    font-weight: 800;
}

.global-market-row--positive .global-market-row__bottom small {
    color: #86efac;
}

.global-market-row--negative .global-market-row__bottom small {
    color: #fca5a5;
}

.global-market-row--neutral .global-market-row__bottom small {
    color: var(--text-soft);
}

.global-market-sparkline {
    width: 82px;
    height: 34px;
}

.global-market-sparkline polyline {
    fill: none;
    stroke: var(--text-soft);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.global-market-row--positive .global-market-sparkline polyline {
    stroke: rgba(34, 197, 94, 0.88);
}

.global-market-row--negative .global-market-sparkline polyline {
    stroke: rgba(248, 113, 113, 0.9);
}

.vc-workspace .terminal-table {
    min-width: 1680px;
}

.workspace-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(4, minmax(120px, 0.7fr)) auto auto;
}

.column-picker {
    position: relative;
    color: var(--text-muted);
}

.column-picker summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    cursor: pointer;
    border: 1px solid rgba(203, 213, 225, 0.15);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.52);
}

.column-picker div {
    position: absolute;
    right: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 8px;
    width: min(520px, 88vw);
    max-height: 420px;
    overflow: auto;
    margin-top: 8px;
    padding: 16px;
    background: rgba(3, 8, 18, 0.98);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.column-picker label,
.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    color: var(--text-muted);
    font-size: 13px;
}

.inline-note-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px;
}

.compact-table {
    min-width: 760px;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(9, minmax(260px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.pipeline-column {
    min-height: 420px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(7, 12, 24, 0.82), rgba(2, 6, 14, 0.58));
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
}

.pipeline-column h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
}

.pipeline-card {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.pipeline-card h3 {
    margin: 0;
    color: #fff;
}

.pipeline-card p {
    margin: 0;
    color: var(--text-soft);
}

.pipeline-move {
    display: grid;
    gap: 8px;
}

.member-role-form {
    display: inline-grid;
    grid-template-columns: minmax(110px, 1fr) auto;
    gap: 8px;
    margin-right: 8px;
}

.member-role-form select {
    min-height: 38px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(203, 213, 225, 0.15);
    border-radius: 9px;
}

.shared-dashboard-prompt {
    margin: 18px 0;
    border-color: rgba(96, 165, 250, 0.24);
}

.vc-company-grid {
    grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
}

html,
body {
    background-color: #02050b;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background: #02050b;
}

.dashboard-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 5px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-tab {
    min-height: 36px;
    padding: 0 14px;
    color: var(--text-soft);
    font: inherit;
    font-size: 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.dashboard-tab:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

.dashboard-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.72), rgba(59, 130, 246, 0.38));
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.16);
}

.dashboard-panel-set {
    display: none;
}

.dashboard-panel-set.is-active {
    display: block;
}

.dashboard-alert-strip {
    margin: 14px 0;
}

.alert-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.alert-mini-card {
    display: grid;
    gap: 7px;
    min-height: 92px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.alert-mini-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.2);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.58));
}

.alert-mini-card strong {
    color: #fff;
    font-size: 14px;
}

.alert-mini-card span:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

.ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(4px);
}

.ai-overlay[hidden] {
    display: none;
}

.ai-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(430px, 100vw);
    height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(3, 8, 18, 0.98), rgba(2, 5, 11, 0.98));
    border-left: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.42);
    transform: translateX(104%);
    transition: transform 160ms ease;
}

.ai-panel.is-open {
    transform: translateX(0);
}

.ai-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-panel__head h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.ai-panel__head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ai-panel__close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.ai-panel__close:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.24);
}

.ai-panel__messages {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px 18px;
    overflow-y: auto;
}

.ai-panel .chat-message {
    margin: 0;
    padding: 13px 14px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.ai-panel .chat-message--user {
    margin-left: 34px;
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.22);
}

.ai-panel .chat-message p {
    margin-bottom: 0;
    color: var(--text-soft);
}

.ai-panel .chat-message--loading p::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: ai-loading-dots 1s steps(4, end) infinite;
}

@keyframes ai-loading-dots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75%,
    100% {
        content: "...";
    }
}

.ai-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px 4px;
}

.ai-prompt-chips button {
    padding: 8px 10px;
    color: var(--text-soft);
    font: inherit;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: 999px;
    cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.ai-prompt-chips button:hover {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.28);
    transform: translateY(-1px);
}

.ai-panel__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-panel__form input {
    min-height: 42px;
    width: 100%;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    padding: 0 12px;
}

@media (max-width: 1240px) {
    .vc-metrics,
    .vc-dashboard-grid,
    .vc-company-grid,
    .workspace-filter,
    .alert-strip-grid,
    .decision-brief,
    .market-brief-grid,
    .market-intel-layout,
    .market-impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .global-markets {
        position: static;
    }

    .vc-chart-panel {
        grid-row: auto;
    }
}

@media (max-width: 1120px) {
    .terminal-metrics,
    .terminal-metrics--compact,
    .terminal-grid,
    .marketplace-layout,
    .message-console,
    .decision-brief,
    .decision-queue,
    .chart-footnotes,
    .market-brief-grid,
    .market-brief-list,
    .market-intel-layout,
    .market-impact-grid,
    .demo-activity-grid,
    .demo-ai-grid,
    .demo-memo-grid,
    .activity-dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .marketplace-filters {
        position: static;
    }
}

@media (max-width: 720px) {
    .terminal-hero,
    .market-event-card__head,
    .message-context,
    .deal-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .terminal-actions,
    .market-event-card__signals,
    .deal-card__actions {
        justify-content: stretch;
    }

    .market-intel__meta {
        min-width: 0;
        text-align: left;
    }

    .terminal-filter,
    .deal-card__metrics,
    .message-form,
    .watch-note-form,
    .alert-strip-grid {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 100%;
    }

    .ai-panel {
        width: 100vw;
    }
}
