html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: #0d1821;
    font: 16px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(25, 195, 125, 0.14), transparent 26%),
        radial-gradient(circle at right top, rgba(242, 166, 90, 0.18), transparent 22%),
        linear-gradient(180deg, #fff8f1, #f4eee6 58%, #f7f3ec);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 24, 33, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 24, 33, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    pointer-events: none;
}

* {
    box-sizing: border-box;
}

img,
canvas {
    max-width: 100%;
}

button,
textarea,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.app-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(16px, 3vw, 32px) clamp(14px, 3vw, 24px) clamp(48px, 7vw, 64px);
}

.site-topbar,
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-inline: clamp(14px, 3vw, 24px);
}

.site-topbar {
    padding-top: clamp(12px, 2vw, 18px);
}

.site-topbar-inner,
.site-footer-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(250, 245, 239, 0.84);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 34px rgba(13, 24, 33, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    border-radius: 20px;
    padding: 12px 18px;
    color: rgba(13, 24, 33, 0.82);
    font-size: 0.95rem;
}

.site-topbar-inner p,
.site-footer p {
    margin: 0;
}

.site-topbar-inner a,
.site-footer a {
    color: #0c6b57;
    font-weight: 700;
    text-decoration: none;
}

.site-topbar-inner a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.site-footer {
    padding-bottom: clamp(18px, 4vw, 28px);
}

.site-footer-inner {
    display: grid;
    gap: 16px;
    border-radius: 28px;
    padding: clamp(20px, 3vw, 28px);
}

.site-footer-lead {
    color: rgba(13, 24, 33, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.site-footer-meta {
    display: grid;
    gap: 6px;
    color: rgba(13, 24, 33, 0.74);
}

.hero-panel,
.signal-panel,
.chart-panel,
.analysis-panel {
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(250, 245, 239, 0.84);
    backdrop-filter: blur(18px);
    box-shadow:
        0 22px 44px rgba(13, 24, 33, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2vw, 24px);
    align-items: center;
    border-radius: clamp(22px, 3vw, 30px);
    padding: clamp(20px, 4vw, 36px);
    background:
        radial-gradient(circle at top right, rgba(25, 195, 125, 0.18), transparent 32%),
        radial-gradient(circle at left bottom, rgba(242, 166, 90, 0.2), transparent 28%),
        rgba(250, 245, 239, 0.9);
}

.hero-brand {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.hero-brand-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.hero-copy h1 {
    margin: 0;
    max-width: min(13ch, 100%);
    font-size: clamp(2.45rem, 5.8vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.hero-text {
    max-width: min(58ch, 100%);
    margin-top: clamp(14px, 2vw, 20px);
    color: rgba(13, 24, 33, 0.75);
    font-size: clamp(1.02rem, 1.45vw, 1.18rem);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.hero-telegram-button {
    max-width: 22rem;
    margin-top: 18px;
}

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

.hero-model-slider-stack {
    display: none;
}

.hero-model-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.hero-model-chip img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

.hero-model-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #0d1821;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-model-chip.compact {
    flex: 0 0 auto;
    min-width: 9.5rem;
    padding: 8px 10px;
}

.hero-model-slider {
    overflow: hidden;
    border-radius: 18px;
}

.hero-model-slider-track {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: hero-logo-marquee 26s linear infinite;
}

.hero-model-slider-track.reverse {
    animation-direction: reverse;
}

.hero-video-card {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(13, 24, 33, 0.08);
}

.hero-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: #081018;
}

.hero-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.metric-card span,
.style-footnote span,
.chart-note,
.action-note,
.model-chip,
.style-chip,
.style-recommendation {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-grid {
    display: grid;
    gap: clamp(18px, 2vw, 22px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(28.5rem, 46vw, 29.75rem)), 1fr));
    margin-top: clamp(18px, 2vw, 24px);
    align-items: start;
}

.workspace-grid > * {
    min-width: 0;
}

.lead-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.lead-panel {
    margin-top: clamp(18px, 2vw, 24px);
    border-radius: clamp(20px, 2.8vw, 26px);
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(250, 245, 239, 0.84);
    backdrop-filter: blur(18px);
    box-shadow:
        0 22px 44px rgba(13, 24, 33, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: clamp(20px, 2.6vw, 28px);
}

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

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

.lead-field {
    display: grid;
    gap: 8px;
}

.lead-field label {
    color: rgba(13, 24, 33, 0.7);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead-field input,
.lead-field select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(13, 24, 33, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
    color: #0d1821;
    background: rgba(255, 255, 255, 0.86);
}

.lead-field input:focus,
.lead-field select:focus {
    outline: 2px solid rgba(242, 166, 90, 0.34);
    border-color: rgba(242, 166, 90, 0.4);
}

.lead-phone-input {
    display: grid;
    grid-template-columns: minmax(7.75rem, 10rem) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.lead-phone-input-single {
    grid-template-columns: 5.25rem auto minmax(0, 1fr);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(13, 24, 33, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lead-phone-input-single select,
.lead-phone-input-single input {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 12px 10px;
}

.lead-phone-input-single select:focus,
.lead-phone-input-single input:focus {
    outline: none;
}

.lead-phone-field .iti {
    width: 100%;
}

.hero-lead-form > input[type="text"],
.lead-phone-field .iti__tel-input,
.lead-phone-field .iti input[type="tel"] {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(13, 24, 33, 0.12);
    border-radius: 20px;
    min-height: 60px;
    color: #0d1821;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 22px rgba(13, 24, 33, 0.06);
    font-size: 1rem;
    line-height: 1.35;
}

.hero-lead-form > input[type="text"] {
    padding: 16px 18px;
}

.lead-phone-field .iti__tel-input,
.lead-phone-field .iti input[type="tel"] {
    padding: 16px 18px;
}

.hero-lead-form > input[type="text"]:focus,
.lead-phone-field .iti input[type="tel"]:focus {
    outline: 2px solid rgba(242, 166, 90, 0.34);
    border-color: rgba(242, 166, 90, 0.4);
}

.hero-lead-form > input[type="text"]::placeholder,
.lead-phone-field .iti input[type="tel"]::placeholder {
    color: rgba(13, 24, 33, 0.52);
}

.lead-phone-field .iti__country-container {
    padding: 8px 0 8px 10px;
}

.lead-phone-field .iti__selected-country {
    min-height: 44px;
    border-radius: 14px;
    background: rgba(13, 24, 33, 0.06);
    margin: 0 8px 0 0;
}

.lead-phone-field .iti__selected-country-primary {
    padding: 0 12px 0 10px;
}

.lead-phone-field .iti__dropdown-content {
    border-radius: 16px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    box-shadow: 0 18px 32px rgba(13, 24, 33, 0.14);
}

.lead-phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 18px;
    border: 1px solid rgba(13, 24, 33, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: #0d1821;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lead-actions {
    display: flex;
    justify-content: flex-start;
}

.lead-instructions {
    margin: 0;
    color: rgba(13, 24, 33, 0.78);
    font-size: 1.02rem;
    line-height: 1.65;
}

.cta-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.hero-benefit-list {
    margin: 10px 0 0;
    padding-left: 1.2rem;
    color: rgba(13, 24, 33, 0.78);
    line-height: 1.7;
}

.hero-benefit-list li + li {
    margin-top: 6px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-panel-contact .hero-copy {
    display: grid;
    gap: 0;
}

.hero-panel-contact .hero-text {
    margin: 12px 0 0;
    font-size: 1.2rem;
}

.hero-panel-contact .hero-copy h1 {
    max-width: min(15ch, 100%);
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3.8vw, 2.95rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.hero-panel-contact .hero-benefit-list {
    margin-top: 4px;
    font-size: 1.3rem;
    line-height: 1.8;
}

.hero-panel-contact .platform-button-wide {
    font-size: 1.2rem;
}

.hero-lead-form {
    max-width: 32rem;
    margin-top: 22px;
    gap: 14px;
}

.hero-lead-actions {
    margin-top: 0;
}

.hero-cta-stack {
    max-width: 31rem;
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 14px 24px rgba(13, 24, 33, 0.12);
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    line-height: 1;
    flex: 0 0 28px;
}

.platform-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.platform-button-wide {
    grid-column: 1 / -1;
    min-height: 60px;
    font-size: 1.02rem;
}

.platform-telegram {
    color: #fff;
    background: linear-gradient(135deg, #27a5e7, #1482c4);
}

.platform-instagram {
    color: #fff;
    background: linear-gradient(135deg, #fd5949, #d6249f 52%, #285aeb);
}

.platform-facebook {
    color: #fff;
    background: linear-gradient(135deg, #1877f2, #0d5bd3);
}

.signal-panel,
.chart-panel,
.analysis-panel {
    width: 100%;
    min-width: 0;
    border-radius: clamp(20px, 2.8vw, 26px);
    padding: clamp(18px, 2.4vw, 26px);
}

.crm-shell {
    max-width: 1600px;
    margin: 0 auto;
}

.crm-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.crm-banner {
    margin-top: 16px;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 24, 33, 0.08);
}

.crm-banner-success {
    color: #0b7f4d;
    background: rgba(25, 195, 125, 0.12);
}

.crm-banner-error {
    color: #b43431;
    background: rgba(242, 95, 92, 0.12);
}

.crm-filters {
    position: relative;
    z-index: 30;
    margin-top: 18px;
}

.crm-overview-panel {
    margin-top: 18px;
    padding: 18px;
}

.crm-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.crm-overview-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.crm-overview-card span {
    color: rgba(13, 24, 33, 0.6);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-overview-card strong {
    color: #0d1821;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1;
}

.crm-overview-card small {
    color: rgba(13, 24, 33, 0.62);
    font-size: 0.92rem;
    line-height: 1.4;
}

.crm-add-contact-button {
    align-self: start;
}

.crm-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.crm-camille-toggle-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 239, 230, 0.84));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.crm-camille-toggle-copy {
    display: grid;
    gap: 4px;
}

.crm-camille-toggle-copy strong {
    color: #0d1821;
    font-size: 0.98rem;
}

.crm-camille-toggle-copy span {
    color: rgba(13, 24, 33, 0.64);
    font-size: 0.92rem;
}

.crm-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.crm-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crm-switch-ui {
    position: relative;
    width: 3.35rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(13, 24, 33, 0.16);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.crm-switch-ui::after {
    content: "";
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.64rem;
    height: 1.64rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(13, 24, 33, 0.16);
    transition: transform 180ms ease;
}

.crm-switch input:checked + .crm-switch-ui {
    background: linear-gradient(135deg, #19c37d, #0b7f4d);
}

.crm-switch input:checked + .crm-switch-ui::after {
    transform: translateX(1.35rem);
}

.crm-switch input:focus-visible + .crm-switch-ui {
    box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.18);
}

.crm-switch input:disabled + .crm-switch-ui {
    opacity: 0.6;
}

.crm-switch-text {
    min-width: 2.2rem;
    color: #0d1821;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(13, 24, 33, 0.42);
}

.crm-modal-card {
    width: min(100%, 42rem);
    padding: 22px;
    border-radius: 28px;
    background: #faf5ef;
    box-shadow: 0 24px 64px rgba(13, 24, 33, 0.22);
}

.crm-modal-heading {
    align-items: start;
}

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

.crm-modal-form .crm-filter-item:last-child {
    grid-column: span 2;
}

.crm-modal-actions {
    margin-top: 18px;
    justify-content: flex-end;
}

.crm-filter-form {
    display: grid;
    gap: 14px;
}

.crm-filter-row {
    display: grid;
    gap: 14px;
}

.crm-filter-row-primary {
    grid-template-columns: minmax(14rem, 1.55fr) minmax(10rem, 0.7fr) minmax(10rem, 0.7fr);
}

.crm-filter-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.crm-filter-form input,
.crm-filter-form select,
.crm-table textarea,
.crm-table select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(13, 24, 33, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    color: #0d1821;
    background: rgba(255, 255, 255, 0.9);
}

.crm-filter-form-table {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.crm-filter-item {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.crm-filter-item span {
    color: rgba(13, 24, 33, 0.7);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-filter-hint {
    color: rgba(13, 24, 33, 0.52);
    font-size: 0.76rem;
    line-height: 1.35;
}

.crm-filter-item-search {
    min-width: 15rem;
}

.crm-filter-item-dropdown {
    position: relative;
    min-width: 0;
}

.crm-multiselect {
    position: relative;
    display: block;
    min-width: 0;
}

.crm-multiselect summary {
    list-style: none;
}

.crm-multiselect summary::-webkit-details-marker {
    display: none;
}

.crm-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 24, 33, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    user-select: none;
    list-style: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.crm-multiselect-trigger:focus,
.crm-multiselect-trigger:focus-visible {
    outline: 2px solid rgba(242, 166, 90, 0.34);
    border-color: rgba(242, 166, 90, 0.4);
}

.crm-multiselect-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #0d1821;
}

.crm-multiselect-caret {
    color: rgba(13, 24, 33, 0.56);
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.crm-multiselect[open] .crm-multiselect-caret {
    transform: rotate(180deg);
}

.crm-multiselect-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 100%;
    max-height: 18rem;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 42px rgba(13, 24, 33, 0.16);
}

.crm-filter-row > * {
    min-width: 0;
}

.crm-multiselect-list {
    max-height: 15rem;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.crm-multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(13, 24, 33, 0.03);
    cursor: pointer;
}

.crm-multiselect-option:hover {
    background: rgba(242, 166, 90, 0.09);
}

.crm-multiselect-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: #17344a;
}

.crm-multiselect-option span {
    color: #0d1821;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.crm-multiselect-empty {
    padding: 14px 12px;
    color: rgba(13, 24, 33, 0.58);
    font-size: 0.92rem;
}

.crm-multiselect-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(13, 24, 33, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 238, 0.98));
}

.crm-multiselect-clear {
    border: 0;
    padding: 0;
    background: transparent;
    color: #0d5bd3;
    font-weight: 700;
    cursor: pointer;
}

.crm-multiselect-count {
    color: rgba(13, 24, 33, 0.56);
    font-size: 0.82rem;
}

.crm-table-panel {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

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

.crm-table {
    width: 100%;
    min-width: 1260px;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.crm-table th,
.crm-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.crm-table thead th {
    color: rgba(13, 24, 33, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(13, 24, 33, 0.08);
    background: transparent;
}

.crm-table td {
    background: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(13, 24, 33, 0.06);
    border-bottom: 1px solid rgba(13, 24, 33, 0.06);
}

.crm-date-cell {
    min-width: 12rem;
    color: rgba(13, 24, 33, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
}

.crm-meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.crm-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(180, 52, 49, 0.18);
    border-radius: 999px;
    color: #b43431;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.crm-delete-button:hover {
    background: rgba(242, 95, 92, 0.1);
}

.crm-table td:first-child {
    border-left: 1px solid rgba(13, 24, 33, 0.06);
    border-radius: 20px 0 0 20px;
}

.crm-table td:last-child {
    border-right: 1px solid rgba(13, 24, 33, 0.06);
    border-radius: 0 20px 20px 0;
}

.fees-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.fees-note {
    margin: 14px 0 0;
    max-width: min(70ch, 100%);
    color: rgba(13, 24, 33, 0.72);
}

.fees-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.fees-section-heading {
    margin-bottom: 14px;
}

.fees-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

#benef-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fees-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
}

.fees-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 20px;
    background: rgba(13, 24, 33, 0.08);
}

.fees-kpi-ca::before {
    background: linear-gradient(180deg, #0d5bd3, #69a7ff);
}

.fees-kpi-fees::before {
    background: linear-gradient(180deg, #f25f5c, #ff9f8e);
}

.fees-kpi-profit::before {
    background: linear-gradient(180deg, #0b7f4d, #44c88a);
}

.fees-kpi-split::before {
    background: linear-gradient(180deg, #7b61ff, #b7a7ff);
}

.fees-period-card {
    gap: 8px;
}

.fees-period-card small + small {
    margin-top: -2px;
}

.fees-filter-grid,
.fees-form-grid {
    display: grid;
    gap: 14px;
}

.fees-filter-grid {
    max-width: 28rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fees-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.fees-comment-field {
    grid-column: 1 / -1;
}

.fees-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    grid-column: 1 / -1;
}

.fees-table {
    min-width: 980px;
}

.fees-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.fees-pill-benjamin {
    color: #0d5bd3;
    background: rgba(13, 91, 211, 0.12);
}

.fees-pill-kylian {
    color: #8b5d00;
    background: rgba(242, 166, 90, 0.2);
}

.fees-amount-cell {
    color: #0b7f4d;
    font-size: 1.06rem;
}

.fees-comment {
    min-width: 18rem;
    color: rgba(13, 24, 33, 0.82);
    line-height: 1.55;
    white-space: pre-wrap;
}

.fees-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fees-row-button {
    padding: 10px 14px;
}

.benef-shell {
    max-width: 1240px;
}

.benef-filter-stack {
    display: grid;
    gap: 14px;
}

.benef-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benef-chip {
    border-color: rgba(13, 24, 33, 0.1);
    box-shadow: 0 10px 20px rgba(13, 24, 33, 0.05);
}

.benef-chip.active {
    color: #fff;
    background: linear-gradient(135deg, #17344a, #0d5bd3);
    border-color: transparent;
}

.benef-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.benef-shell .hero-panel {
    background:
        radial-gradient(circle at top right, rgba(13, 91, 211, 0.14), transparent 34%),
        radial-gradient(circle at left bottom, rgba(11, 127, 77, 0.18), transparent 28%),
        rgba(250, 245, 239, 0.9);
}

.benef-inline-actions {
    justify-content: flex-start;
}

.benef-chart-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background:
        radial-gradient(circle at top left, rgba(13, 91, 211, 0.07), transparent 28%),
        rgba(255, 255, 255, 0.66);
}

.benef-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(13, 24, 33, 0.74);
    font-size: 0.92rem;
}

.benef-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
}

.benef-dot-generated {
    background: #0d5bd3;
}

.benef-dot-fees {
    background: #f25f5c;
}

.benef-dot-net {
    background: #0b7f4d;
}

.benef-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.benef-chart-svg {
    display: block;
    width: 100%;
    min-width: 760px;
    height: auto;
    border: 1px solid rgba(13, 24, 33, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(13, 91, 211, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 252, 0.95));
}

.benef-grid-line {
    stroke: rgba(13, 24, 33, 0.09);
    stroke-width: 1;
}

.benef-zero-line {
    stroke: rgba(13, 24, 33, 0.18);
    stroke-width: 1.4;
    stroke-dasharray: 6 6;
}

.benef-axis-label {
    fill: rgba(13, 24, 33, 0.56);
    font-size: 12px;
}

.benef-series {
    fill: none;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.benef-series-generated {
    stroke: #0d5bd3;
}

.benef-series-fees {
    stroke: #f25f5c;
}

.benef-series-net {
    stroke: #0b7f4d;
}

.benef-series-dot {
    stroke: #fff;
    stroke-width: 2;
}

.benef-series-dot.benef-series-generated {
    fill: #0d5bd3;
}

.benef-series-dot.benef-series-fees {
    fill: #f25f5c;
}

.benef-series-dot.benef-series-net {
    fill: #0b7f4d;
}

.benef-chart-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
}

.benef-bar-track {
    width: min(14rem, 100%);
    height: 12px;
    border-radius: 999px;
    background: rgba(13, 24, 33, 0.08);
    overflow: hidden;
}

.benef-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d5bd3, #19c37d);
}

.benef-shell .crm-overview-card strong,
.fees-shell .crm-overview-card strong {
    letter-spacing: -0.03em;
}

.crm-cell-stack {
    display: grid;
    gap: 8px;
    min-width: 15rem;
}

.crm-camille-summary,
.crm-camille-error {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.crm-camille-judge {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #17344a;
    background: rgba(13, 91, 211, 0.06);
}

.crm-camille-summary {
    color: #17344a;
    background: rgba(23, 52, 74, 0.06);
}

.crm-camille-error {
    color: #b43431;
    background: rgba(242, 95, 92, 0.12);
}

.crm-camille-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.9rem;
}

.crm-camille-links a {
    color: #0d5bd3;
    text-decoration: none;
    font-weight: 700;
}

.crm-camille-links a:hover {
    text-decoration: underline;
}

.crm-contact-cell {
    min-width: 13rem;
}

.crm-activity-cell,
.crm-sale-cell {
    min-width: 14rem;
}

.crm-contact-name {
    display: block;
    font-size: 1.15rem;
    line-height: 1.15;
}

.crm-cell-title {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    color: #17344a;
}

.crm-phone {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17344a;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.crm-phone:hover,
.crm-phone:focus-visible {
    color: #0d5bd3;
    text-decoration: underline;
}

.crm-inline-stage {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.crm-subline {
    display: block;
    color: rgba(13, 24, 33, 0.6);
    font-size: 0.92rem;
}

.crm-table textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.crm-sync-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.crm-sync-ok {
    color: #0b7f4d;
    background: rgba(25, 195, 125, 0.12);
}

.crm-sync-saving {
    color: #0d5bd3;
    background: rgba(24, 119, 242, 0.14);
}

.crm-sync-dirty {
    color: #8b5d00;
    background: rgba(255, 214, 102, 0.16);
}

.crm-row-lost td {
    background: linear-gradient(180deg, rgba(252, 238, 238, 0.96), rgba(252, 244, 244, 0.92));
}

.crm-row-stage-warning td {
    background: linear-gradient(180deg, rgba(255, 245, 205, 0.98), rgba(255, 250, 229, 0.94));
}

.crm-row-stage-relance td {
    background: linear-gradient(180deg, rgba(226, 239, 255, 0.98), rgba(237, 245, 255, 0.94));
}

.crm-row-stage-unknown td {
    background: linear-gradient(180deg, rgba(242, 244, 247, 0.96), rgba(248, 249, 251, 0.92));
}

.crm-row-stage-qualified td {
    background: linear-gradient(180deg, rgba(255, 247, 214, 0.96), rgba(255, 250, 232, 0.92));
}

.crm-row-stage-account td {
    background: linear-gradient(180deg, rgba(229, 240, 255, 0.96), rgba(240, 247, 255, 0.92));
}

.crm-row-stage-commission td {
    background: linear-gradient(180deg, rgba(223, 247, 230, 0.96), rgba(236, 252, 241, 0.92));
}

.crm-empty-row {
    text-align: center;
    color: rgba(13, 24, 33, 0.6);
}

.signal-panel {
    order: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    gap: 18px 22px;
    align-items: start;
}

.analysis-panel {
    order: 2;
    grid-column: 1 / -1;
}

.chart-panel {
    order: 3;
    grid-column: 1 / -1;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(12px, 1.6vw, 16px);
    margin-bottom: 18px;
}

.panel-heading > div {
    flex: 1 1 16rem;
    min-width: 0;
}

.signal-panel > .panel-heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.signal-panel > .signal-textarea,
.signal-panel > .parse-alert {
    grid-column: 1;
}

.signal-panel > .metrics-grid,
.signal-panel > .panel-actions {
    grid-column: 2;
    margin-top: 0;
}

.signal-panel > .panel-actions {
    align-self: end;
}

.panel-heading h2,
.chart-topline h3,
.summary-card h3,
.style-card h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(13, 24, 33, 0.56);
    font-size: clamp(0.84rem, 1vw, 0.94rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.signal-textarea {
    width: 100%;
    min-height: clamp(160px, 24vw, 176px);
    border: 1px solid rgba(13, 24, 33, 0.12);
    border-radius: 22px;
    padding: clamp(14px, 2vw, 18px);
    resize: vertical;
    color: #0d1821;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 230, 0.92));
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.98rem;
    line-height: 1.6;
}

.signal-textarea:focus {
    outline: 2px solid rgba(242, 166, 90, 0.34);
    border-color: rgba(242, 166, 90, 0.4);
}

.metrics-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    margin-top: 18px;
}

.metric-card {
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(13, 24, 33, 0.08);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    color: #0d1821;
    font-size: 1.05rem;
}

.metric-card.accent {
    background: linear-gradient(135deg, rgba(25, 195, 125, 0.16), rgba(242, 166, 90, 0.12));
}

.style-selector-box,
.style-footnote,
.analysis-copy,
.summary-card,
.chart-card {
    margin-top: 18px;
    border-radius: 22px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.style-selector-box {
    padding: clamp(16px, 2vw, 18px);
}

.style-selector-box .panel-heading h2 {
    font-size: 1.15rem;
}

.chart-layout {
    display: block;
}

.chart-visual-panel {
    min-width: 0;
    margin-top: 18px;
}

.style-slider {
    position: relative;
    margin-top: 12px;
}

.style-card p,
.style-footnote p,
.chart-disclaimer,
.analysis-copy p,
.summary-card p,
.empty-panel,
.action-note {
    margin: 0;
    color: rgba(13, 24, 33, 0.72);
}

.parse-alert {
    color: #7d1d1b;
}

.parse-alert {
    margin-top: 16px;
    border-radius: 18px;
    padding: clamp(12px, 1.8vw, 14px) clamp(14px, 2vw, 16px);
    background: rgba(242, 95, 92, 0.1);
    border: 1px solid rgba(242, 95, 92, 0.22);
}

.panel-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.panel-actions.is-loading {
    grid-column: 1 / -1;
}

.panel-actions.is-loading .analysis-progress {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.analysis-progress {
    flex: 1 1 16rem;
    min-width: min(100%, 18rem);
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 232, 0.88));
    box-shadow: 0 12px 28px rgba(13, 24, 33, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.analysis-progress[data-phase="market"] {
    border-color: rgba(51, 102, 204, 0.18);
}

.analysis-progress[data-phase="analysis"] {
    border-color: rgba(25, 195, 125, 0.2);
    box-shadow: 0 16px 32px rgba(25, 195, 125, 0.08);
}

.analysis-progress[data-phase="final"] {
    border-color: rgba(242, 166, 90, 0.22);
    box-shadow: 0 16px 32px rgba(242, 166, 90, 0.08);
}

.analysis-progress[data-phase="complete"] {
    border-color: rgba(25, 195, 125, 0.26);
}

.analysis-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: rgba(13, 24, 33, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
}

.analysis-progress-head strong {
    color: #0d1821;
    font-size: 0.92rem;
}

.analysis-progress-track {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(13, 24, 33, 0.08);
}

.analysis-progress-fill {
    position: relative;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #19c37d, #f2a65a);
    transition: width 220ms ease;
}

.analysis-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.42) 34%,
            rgba(255, 255, 255, 0) 68%
        );
    transform: translateX(-100%);
    animation: progress-shimmer 1.4s linear infinite;
}

.analysis-progress-models {
    display: grid;
    grid-template-columns: repeat(18, minmax(0, 1fr));
    gap: 8px 5px;
    margin-top: 10px;
}

.analysis-progress-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 34px;
    height: 32px;
    justify-self: center;
    border-radius: 999px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.84);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.analysis-progress-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.analysis-progress-chip.pending {
    opacity: 0.35;
}

.analysis-progress-chip.bull {
    background: rgba(25, 195, 125, 0.14);
    border-color: rgba(25, 195, 125, 0.32);
}

.analysis-progress-chip.bear {
    background: rgba(242, 95, 92, 0.12);
    border-color: rgba(242, 95, 92, 0.28);
}

.analysis-progress-chip.neutral {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 24, 33, 0.12);
}

.analysis-progress-chip.error {
    background: rgba(13, 24, 33, 0.06);
    border-color: rgba(13, 24, 33, 0.12);
    opacity: 0.72;
}

@keyframes progress-shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(200%);
    }
}

.primary-button,
.secondary-button,
.style-card {
    border: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.primary-button,
.secondary-button {
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 600;
    max-width: 100%;
}

.primary-button {
    color: #faf5ef;
    background: linear-gradient(135deg, #0d1821, #17344a);
    box-shadow: 0 16px 28px rgba(13, 24, 33, 0.18);
}

.primary-button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-button {
    border: 1px solid rgba(13, 24, 33, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: #0d1821;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover,
.style-card:hover {
    transform: translateY(-2px);
}

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

.style-card {
    min-width: 0;
    border-radius: 22px;
    min-height: 10.5rem;
    padding: 12px 16px 11px;
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(13, 24, 33, 0.08);
}

.style-card.selected {
    border-color: rgba(13, 24, 33, 0.3);
    background: linear-gradient(180deg, rgba(13, 24, 33, 0.95), rgba(25, 57, 79, 0.96));
    color: #faf5ef;
    box-shadow: 0 20px 36px rgba(13, 24, 33, 0.2);
}

.style-card.selected p,
.style-card.selected small {
    color: rgba(250, 245, 239, 0.76);
}

.style-card.recommended:not(.selected) {
    border-color: rgba(25, 195, 125, 0.34);
    background: linear-gradient(180deg, rgba(25, 195, 125, 0.1), rgba(255, 255, 255, 0.72));
}

.style-card-topline {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.style-card h3 {
    margin-bottom: 6px;
}

.style-card p {
    font-size: 0.95rem;
    line-height: 1.35;
}

.style-chip,
.chart-note,
.model-chip {
    width: fit-content;
    border-radius: 999px;
    padding: 8px 10px;
}

.style-chip,
.chart-note,
.model-chip {
    background: rgba(13, 24, 33, 0.08);
    color: rgba(13, 24, 33, 0.7);
}

.style-footnote {
    padding: 16px 18px;
}

.style-footnote strong {
    display: block;
    margin: 8px 0 4px;
    color: #0d1821;
}

.chart-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(13, 24, 33, 0.04), rgba(255, 255, 255, 0.74));
}

.chart-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-surface {
    display: block;
    width: 100%;
    height: clamp(260px, 40vw, 380px);
    border-radius: 18px;
    background: #0d1821;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    color: rgba(13, 24, 33, 0.72);
    font-size: 0.9rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chart-legend i {
    width: 24px;
    height: 2px;
    display: inline-block;
}

.legend-entry {
    background: #ffd166;
}

.legend-tp {
    background: #19c37d;
}

.legend-sl {
    background: #f25f5c;
}

.chart-disclaimer {
    margin-top: 14px;
    font-size: 0.92rem;
}

.analysis-copy {
    padding: 18px;
}

.analysis-lead {
    margin: 0 0 12px;
    color: #0d1821;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.analysis-copy p:last-child {
    font-size: 1rem;
    line-height: 1.65;
}

.pro-con-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pro-con-table {
    width: 100%;
    min-width: 34rem;
    table-layout: fixed;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(13, 24, 33, 0.08);
}

.pro-con-table th,
.pro-con-table td {
    width: 50%;
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.pro-con-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(13, 24, 33, 0.66);
    background: rgba(13, 24, 33, 0.06);
}

.pro-con-table tbody tr:nth-child(even) td {
    background: rgba(245, 239, 230, 0.36);
}

.argument-stack {
    display: grid;
    gap: 12px;
}

.argument-card {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(13, 24, 33, 0.08);
}

.argument-card p {
    margin: 0;
    color: #0d1821;
    line-height: 1.55;
}

.argument-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.argument-meta {
    color: rgba(13, 24, 33, 0.58);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.argument-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.argument-logo-chip {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
}

.argument-logo-chip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.argument-empty {
    color: rgba(13, 24, 33, 0.58);
    line-height: 1.5;
}

.ai-brand-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 12px;
}

.ai-brand-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 236, 0.9));
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
    font: inherit;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 14px 24px rgba(13, 24, 33, 0.04);
}

.ai-brand-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-accent, #17344a);
    opacity: 0.9;
}

.ai-brand-card.bull {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 247, 238, 0.92));
}

.ai-brand-card.bear {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(253, 234, 233, 0.94));
}

.ai-brand-card.neutral {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 237, 0.94));
}

.ai-brand-card.selected {
    border-color: rgba(13, 24, 33, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 16px 28px rgba(13, 24, 33, 0.12);
}

.ai-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 24, 33, 0.08);
    display: grid;
    place-items: center;
    padding: 10px;
    overflow: hidden;
}

.ai-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-brand-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.ai-brand-name {
    display: block;
    color: #0d1821;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ai-brand-card h4 {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.25;
}

.ai-brand-card p {
    margin: 6px 0 0;
    color: rgba(13, 24, 33, 0.7);
    font-size: 0.82rem;
    line-height: 1.45;
}

.market-bias-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.bias-card {
    border-radius: 20px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    min-width: 0;
}

.verdict-split {
    margin-top: 10px;
}

.verdict-meta {
    margin: 0 0 12px;
    color: rgba(13, 24, 33, 0.62);
    font-size: 0.9rem;
    line-height: 1.45;
}

.verdict-meter-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(13, 24, 33, 0.08);
}

.verdict-meter-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 220ms ease;
}

.verdict-column-bull .verdict-meter-fill {
    background: linear-gradient(90deg, #19c37d, #0b7f4d);
}

.verdict-column-bear .verdict-meter-fill {
    background: linear-gradient(90deg, #f25f5c, #b43431);
}

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

.verdict-column {
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.84);
}

.verdict-column-bull {
    background: linear-gradient(180deg, rgba(226, 247, 238, 0.92), rgba(255, 255, 255, 0.9));
}

.verdict-column-bear {
    background: linear-gradient(180deg, rgba(253, 234, 233, 0.94), rgba(255, 255, 255, 0.9));
}

.verdict-column-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.verdict-column h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.verdict-column strong {
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.verdict-column-bull strong {
    color: #0b7f4d;
}

.verdict-column-bear strong {
    color: #b43431;
}

.verdict-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.verdict-logo-chip {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(13, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
}

.verdict-logo-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.verdict-empty {
    color: rgba(13, 24, 33, 0.58);
    font-size: 0.92rem;
    line-height: 1.5;
}
.bull-cell { color: #0b7f4d; font-weight: 700; }
.bear-cell { color: #b43431; font-weight: 700; }
.muted-cell { color: rgba(13, 24, 33, 0.62); font-weight: 700; }

.empty-panel {
    border-radius: 22px;
    padding: clamp(16px, 2.4vw, 20px);
    border: 1px dashed rgba(13, 24, 33, 0.18);
    background: rgba(255, 255, 255, 0.46);
    text-align: center;
}

@media (max-width: 980px) {
    .crm-filter-row-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .lead-field-grid {
        grid-template-columns: 1fr;
    }

    .hero-brand {
        grid-template-columns: 1fr;
    }

    .signal-panel {
        display: block;
    }

    .chart-visual-panel {
        margin-top: 18px;
    }

    .style-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .style-card {
        flex: 0 0 min(18rem, calc(100vw - 7rem));
        scroll-snap-align: start;
    }
}

@media (max-width: 1500px) {
    .analysis-progress-models {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 8px 6px;
    }
}

@media (max-width: 1180px) {
    .analysis-progress-models {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px 6px;
    }
}

@media (max-width: 640px) {
    .crm-camille-toggle-card {
        align-items: flex-start;
    }

    .crm-switch {
        width: 100%;
        justify-content: space-between;
    }

    .crm-overview-grid {
        grid-template-columns: 1fr;
    }

    .fees-filter-grid,
    .fees-form-grid {
        grid-template-columns: 1fr;
    }

    .benef-filter-grid {
        grid-template-columns: 1fr;
    }

    #benef-summary-grid {
        grid-template-columns: 1fr;
    }

    .fees-comment-field,
    .fees-form-actions {
        grid-column: auto;
    }

    .crm-modal-card {
        padding: 18px;
        border-radius: 24px;
    }

    .crm-modal-form {
        grid-template-columns: 1fr;
    }

    .crm-modal-form .crm-filter-item:last-child {
        grid-column: auto;
    }

    .crm-filter-row-primary,
    .crm-filter-row-secondary {
        grid-template-columns: 1fr;
    }

    .crm-table {
        min-width: 1180px;
    }

    .app-shell {
        padding: 12px 10px 32px;
    }

    .site-topbar,
    .site-footer {
        padding-inline: 10px;
    }

    .site-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 18px;
        padding: 14px 16px;
    }

    .site-footer-inner {
        border-radius: 24px;
        padding: 20px;
    }

    .lead-panel {
        margin-top: 16px;
        padding: 20px;
    }

    .workspace-grid {
        gap: 16px;
        margin-top: 16px;
    }

    .hero-panel,
    .signal-panel,
    .chart-panel,
    .analysis-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .hero-panel {
        gap: 16px;
    }

    .panel-heading {
        gap: 10px;
        margin-bottom: 16px;
    }

    .signal-textarea {
        min-height: 8rem;
        padding: 18px;
        border-radius: 24px;
    }

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

    .verdict-meters,
    .verdict-columns {
        grid-template-columns: 1fr;
    }

    .hero-brand-main {
        grid-template-columns: 1fr;
    }

    .hero-panel-contact .hero-copy h1 {
        max-width: 100%;
    }

    .hero-models-desktop {
        display: none;
    }

    .hero-model-slider-stack {
        display: grid;
        gap: 10px;
    }

    .analysis-progress-head {
        font-size: 0.9rem;
    }

    .analysis-progress-models {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px 6px;
        margin-top: 14px;
    }

    .analysis-progress {
        margin-top: 10px;
    }

    .panel-actions.is-loading {
        grid-column: 1 / -1;
    }

    .hero-video-card {
        padding: 10px;
        border-radius: 20px;
    }

    .hero-video-embed {
        border-radius: 16px;
    }

    .metric-card,
    .lead-panel,
    .style-selector-box,
    .chart-card,
    .analysis-copy,
    .bias-card,
    .verdict-column,
    .argument-card,
    .empty-panel {
        padding: 18px;
    }

    .panel-actions,
    .lead-actions,
    .style-selector-box,
    .chart-visual-panel,
    .market-bias-grid,
    .pro-con-table-wrap,
    .ai-brand-grid {
        margin-top: 16px;
    }

    .panel-actions {
        gap: 12px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
        padding: 15px 18px;
    }

    .lead-phone-input {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lead-phone-prefix {
        justify-content: flex-start;
        padding: 14px 16px;
    }

    .cta-stack {
        gap: 12px;
        margin-top: 16px;
    }

    .hero-lead-form {
        max-width: none;
        margin-top: 18px;
        gap: 12px;
    }

    .hero-cta-stack {
        max-width: none;
        margin-top: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #analyze-button {
        margin-top: 8px;
    }

    .style-grid {
        gap: 14px;
        padding-bottom: 4px;
    }

    .style-card {
        flex-basis: min(15.5rem, calc(100vw - 5rem));
        min-height: 10rem;
        padding: 16px 16px 14px;
    }

    .chart-legend {
        gap: 10px;
        margin-bottom: 16px;
    }

    .verdict-columns,
    .ai-brand-grid {
        gap: 14px;
    }

    .analysis-lead {
        margin-bottom: 10px;
    }
}

@keyframes hero-logo-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 5px));
    }
}
