

.b2b-hero {
    padding: 50px 0 70px;
}
.b2b-hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}
.b2b-hero-title {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto 20px;
}
.b2b-hero-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 32px;
}
.b2b-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 48px;
    justify-content: center;
    margin-bottom: 36px;
}
.b2b-stat {
    font-size: 15px;
    color: #94a3b8;
}
.b2b-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.b2b-hero-cta { }
.b2b-hero-small { padding-bottom: 36px; }

.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}
.b2b-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}
.b2b-btn-primary {
    background: var(--accent, #b45309);
    color: #fff;
    box-shadow: 0 4px 14px rgba(180,83,9,0.35);
}
.b2b-btn-primary:hover {
    background: var(--accent-hover, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180,83,9,0.4);
}
.b2b-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}
.b2b-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.b2b-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.b2b-btn-outline:hover {
    background: rgba(180,83,9,0.08);
    border-color: var(--accent-hover);
}
.b2b-btn-sm { padding: 8px 16px; font-size: 13px; }

.b2b-section {
    padding: 64px 0;
    background: #fff;
    margin-bottom: 0;
}
.b2b-section:nth-child(even) { background: var(--bg-body, #f8fafc); }
.b2b-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--primary, #0f172a);
    text-align: center;
}
.b2b-section-intro {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-light, #64748b);
    max-width: 600px;
    margin: 0 auto 36px;
}

.b2b-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .b2b-benefits-grid { grid-template-columns: 1fr; }
}
.b2b-benefit-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.b2b-benefit-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.b2b-benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
}
.b2b-benefit-body {
    flex: 1;
    min-width: 0;
}
.b2b-benefit-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--primary);
}
.b2b-benefit-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main, #334155);
    margin: 0;
}

.b2b-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) {
    .b2b-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .b2b-steps-grid { grid-template-columns: 1fr; }
}
.b2b-step {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.b2b-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 14px;
}
.b2b-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--primary);
}
.b2b-step p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-light);
    margin: 0;
}

.b2b-mockup { padding-bottom: 72px; }
.b2b-mockup-intro {
    font-size: 15px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 24px;
}
.b2b-mockup-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    max-width: 680px;
    margin: 0 auto 8px;
}
.b2b-mockup-label-after {
    margin: 24px auto 8px;
}
#b2b-mockup-yards {
    margin-top: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.b2b-faq-list { max-width: 680px; margin-left: auto; margin-right: auto; }
.b2b-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.b2b-faq-item:first-child { padding-top: 0; }
.b2b-faq-item:last-child { border-bottom: none; }
.b2b-faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--primary);
}
.b2b-faq-item p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-main);
    margin: 0;
}

.b2b-cta {
    text-align: center;
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #fff;
}
.b2b-cta .b2b-section-title,
.b2b-cta .b2b-cta-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
}
.b2b-cta-desc {
    font-size: 17px;
    color: #94a3b8;
    margin: 0 0 28px;
}
.b2b-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.b2b-cta .b2b-btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.b2b-cta .b2b-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.b2b-hero-login {
    padding: 40px 0 48px;
}
.b2b-login-hero-title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    margin: 0 0 12px;
}
.b2b-login-hero-desc {
    font-size: 16px;
    line-height: 1.55;
    color: #cbd5e1;
    max-width: 520px;
    margin: 0;
}
.b2b-login-hero-desc a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.b2b-login-hero-desc a:hover {
    color: #fde68a;
}

.b2b-auth-column {
    display: flex;
    flex-direction: column;
}
.b2b-auth-tabs {
    display: flex;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: var(--bg-body, #f8fafc);
    overflow: hidden;
}
.b2b-auth-tab {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    background: transparent;
    transition: all 0.2s;
    border: none;
}
.b2b-auth-tab:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.8);
}
.b2b-auth-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 -1px 0 0 #fff;
}

.b2b-login-section {
    padding: 40px 0 80px;
}
.b2b-login-section .b2b-section {
    padding-top: 0;
}
.b2b-login-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px 48px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .b2b-login-wrap {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

.b2b-login-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}
.b2b-login-card-inner {
    padding: 36px 40px;
}
@media (max-width: 480px) {
    .b2b-login-card-inner { padding: 28px 24px; }
}

.b2b-login-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #0f172a);
    margin: 0 0 28px;
}

#b2b-login-form .login-username,
#b2b-login-form .login-password {
    margin-bottom: 20px;
}
#b2b-login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #334155);
    margin-bottom: 8px;
}
#b2b-login-form input[type="text"],
#b2b-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
#b2b-login-form input[type="text"]:focus,
#b2b-login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent, #b45309);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
#b2b-login-form input::placeholder {
    color: #94a3b8;
}

.b2b-register-form .b2b-form-row {
    margin-bottom: 20px;
}
.b2b-register-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.b2b-register-form .required { color: #dc2626; }
.b2b-register-form input[type="email"],
.b2b-register-form input[type="password"],
.b2b-register-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}
.b2b-register-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
.b2b-field-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.b2b-form-submit {
    margin: 28px 0 0;
}
.b2b-form-submit .b2b-btn {
    width: 100%;
    padding: 16px;
    text-align: center;
}
.b2b-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#b2b-login-form .login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
}
#b2b-login-form .login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
#b2b-login-form .login-remember label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

#b2b-login-form .login-submit {
    display: block;
    width: 100%;
    margin-top: 28px;
}
#b2b-login-form .login-submit input[type="submit"] {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: var(--accent, #ea580c);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
#b2b-login-form .login-submit input[type="submit"]:hover {
    background: var(--accent-hover, #d97706);
    transform: translateY(-1px);
}

.b2b-login-actions {
    margin-top: 20px;
    text-align: center;
}
.b2b-login-forgot {
    font-size: 14px;
    color: var(--text-light, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}
.b2b-login-forgot:hover {
    color: var(--accent);
}

.b2b-login-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.b2b-login-side-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 28px;
}
.b2b-login-side-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px;
}
.b2b-login-side-box p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-main);
    margin: 0 0 20px;
}
.b2b-btn-block {
    display: block;
    text-align: center;
}
.b2b-login-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}
.b2b-login-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2b-login-back {
    margin-top: 40px;
    text-align: center;
}
.b2b-login-back a {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.b2b-login-back a:hover {
    color: var(--primary);
}

.b2b-hero-dashboard {
    padding: 18px 0 20px;
}
.b2b-dashboard-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin: 0 0 4px;
}
.b2b-dashboard-stat-row {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px;
}

.b2b-dashboard { padding: 32px 0 80px; }
.b2b-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
}
@media (max-width: 900px) {
    .b2b-dashboard-layout { grid-template-columns: 1fr; gap: 32px; }
    .b2b-sidebar { position: static; }
    .b2b-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .b2b-nav-label { width: 100%; }
}
    .b2b-block {
        padding: 20px 20px;
    }
    .b2b-company-card {
        flex-wrap: wrap;
    }
    .b2b-company-actions {
        width: 100%;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
}

.b2b-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
}
.b2b-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.b2b-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 8px 12px 6px;
}
.b2b-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.b2b-nav-item:hover {
    background: var(--hover-bg, #f1f5f9);
}
.b2b-nav-item.active {
    background: var(--primary, #0f172a);
    color: #fff;
}
.b2b-nav-icon {
    font-size: 16px;
    line-height: 1;
}

.b2b-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.b2b-block:last-child { margin-bottom: 0; }
.b2b-block-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.b2b-block-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
}
.b2b-block-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.b2b-empty-state {
    text-align: center;
    padding: 48px 24px;
}
.b2b-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}
.b2b-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}
.b2b-empty-state p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.b2b-companies-list { display: flex; flex-direction: column; gap: 12px; }
.b2b-bulk-hint {
    font-size: 13px;
    color: var(--text-light);
    margin: -4px 0 14px;
}
.b2b-bulk-actions { margin-top: 18px; }
.b2b-bulk-actions--inline {
    display: none !important;
}
.b2b-bulk-float {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0));
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.92) 28%, #f8fafc 100%);
}
.b2b-bulk-float-inner {
    pointer-events: auto;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}
.b2b-bulk-float-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #1e293b);
}
.b2b-block-header-yards {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.b2b-block-header-yards-text {
    flex: 1;
    min-width: min(100%, 220px);
}
.b2b-select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin-top: 4px;
}
.b2b-select-all-wrap input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #2563eb);
    cursor: pointer;
}
.b2b-freshness-good {
    color: #15803d !important;
}
.b2b-freshness-warn {
    color: #b45309 !important;
}
.b2b-freshness-crit {
    color: #b91c1c !important;
    font-weight: 600;
}
.b2b-page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    font-size: 14px;
    color: var(--text-light);
    user-select: none;
}
.b2b-opp-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.b2b-opp-item-main {
    display: grid;
    gap: 3px;
}
.b2b-opp-item .b2b-btn {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
}
.b2b-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.b2b-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.b2b-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.b2b-page-link:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.b2b-page-link.is-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.b2b-page-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}
.b2b-company-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.b2b-company-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.b2b-company-checkbox {
    flex-shrink: 0;
}
.b2b-company-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.b2b-company-info {
    flex: 1;
    min-width: 0;
}
.b2b-company-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}
.b2b-company-meta {
    font-size: 13px;
    color: var(--text-light);
    display: block;
}
.b2b-company-info .b2b-badge-premium,
.b2b-company-info .b2b-badge-pending {
    margin-left: 0;
    margin-top: 6px;
}
.b2b-badge-pending {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}
.b2b-badge-premium {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    padding: 3px 8px;
    border-radius: 4px;
}
.b2b-price-date {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}
.b2b-price-old { color: var(--danger, #dc2626); }
.b2b-price-missing { color: var(--text-light); font-style: italic; }
.b2b-company-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.b2b-company-actions .b2b-btn { margin: 0; }

.b2b-add-flow {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.b2b-add-step {
    padding: 20px 0;
}
.b2b-add-step:first-child { padding-top: 0; }
.b2b-add-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px;
}
.b2b-add-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 13px;
}
.b2b-add-divider::before,
.b2b-add-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.b2b-add-divider span {
    flex-shrink: 0;
}
.b2b-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.b2b-search-hint {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 12px;
    line-height: 1.5;
}
.b2b-search-section .b2b-label { margin-bottom: 8px; }
.b2b-create-section .b2b-form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.b2b-search-row {
    display: flex;
    gap: 10px;
}
.b2b-input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.b2b-input:focus {
    outline: none;
    border-color: var(--accent, #b45309);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
.b2b-search-results {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.b2b-search-results.visible { display: block; }
.b2b-search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.b2b-search-result-item:hover { background: var(--hover-bg); }
.b2b-search-result-item:last-child { border-bottom: none; }
.b2b-search-result-item.has-owner { opacity: 0.7; }
.b2b-search-result-item strong { display: block; }
.b2b-search-result-item small { color: var(--text-light); }

.b2b-form { max-width: 500px; }
.b2b-form-row { margin-bottom: 16px; }
.b2b-form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .b2b-form-row.two-cols {
        grid-template-columns: 1fr;
    }
}
.b2b-form-row textarea { resize: vertical; min-height: 60px; width: 100%; box-sizing: border-box; }
.b2b-form-row input.b2b-input { width: 100%; box-sizing: border-box; }
.b2b-form button[type="submit"] { margin-top: 10px; }
.b2b-sync-form {
    max-width: 760px;
}
.b2b-sync-form .b2b-msg {
    margin-top: 12px;
}

.b2b-request-form {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 3px;
}
.b2b-request-form input { margin-right: 8px; margin-bottom: 8px; }

.b2b-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.b2b-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.b2b-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: min(92vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.b2b-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.b2b-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.b2b-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.b2b-modal-close:hover {
    color: var(--primary);
    background: var(--bg-body);
}
.b2b-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(70vh, calc(92vh - 200px));
    -webkit-overflow-scrolling: touch;
}
.b2b-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.b2b-prices-targets { margin-bottom: 20px; }
.b2b-prices-target-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 10px;
}
.b2b-prices-target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.b2b-prices-target-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    padding: 6px 12px;
    background: var(--bg-body);
    border-radius: 3px;
}
.b2b-prices-editor { margin: 20px 0; }
.b2b-prices-editor-hint {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 14px;
    line-height: 1.5;
}
.b2b-price-row {
    display: grid;
    grid-template-columns: 1fr 120px 36px;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.b2b-price-row select,
.b2b-price-row input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.b2b-price-row select:focus,
.b2b-price-row input:focus {
    outline: none;
    border-color: var(--accent);
}
.b2b-price-row input.b2b-price-value-disabled,
.b2b-price-row input.b2b-price-value:disabled {
    background: var(--bg-body, #f1f5f9);
    color: var(--text-light);
    cursor: not-allowed;
}
.b2b-price-row-remove {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.b2b-price-row-remove:hover {
    color: var(--danger, #dc2626);
    background: rgba(220, 38, 38, 0.08);
}
.b2b-price-row-placeholder {
    width: 36px;
    display: block;
}
#b2b-add-price-row {
    margin-top: 12px;
}
#b2b-add-price-row:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.b2b-msg { padding: 12px 16px; border-radius: 3px; margin: 12px 0; }
.b2b-msg.success { background: #dcfce7; color: #15803d; }
.b2b-msg.error { background: #fee2e2; color: #b91c1c; }

.b2b-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.b2b-kpi {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: var(--bg-body, #f8fafc);
}
.b2b-kpi-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.b2b-kpi strong {
    font-size: 24px;
    color: var(--primary);
}
.b2b-alerts { margin-top: 14px; display: grid; gap: 8px; }
.b2b-alert-item {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.b2b-funnel-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.b2b-funnel-step {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.b2b-funnel-step span { display: block; font-size: 12px; color: var(--text-light); }
.b2b-funnel-step strong { font-size: 22px; color: var(--primary); }
.b2b-subtitle { font-size: 16px; margin: 4px 0 10px; }
.b2b-leaderboard { display: grid; gap: 8px; }
.b2b-leaderboard-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
}
.b2b-leaderboard-name { font-weight: 600; color: var(--primary); }
.b2b-leaderboard-metric { font-size: 12px; color: var(--text-light); }
.b2b-visibility-chart { display: grid; gap: 6px; margin-top: 10px; }
.b2b-chart-row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 8px; }
.b2b-chart-date { font-size: 11px; color: var(--text-light); }
.b2b-chart-bar-wrap { position: relative; background: #eef2ff; border-radius: 6px; height: 14px; }
.b2b-chart-bar { background: #2563eb; height: 14px; border-radius: 6px; }
.b2b-chart-marker { position: absolute; right: 6px; top: -2px; color: #16a34a; font-size: 14px; }
.b2b-chart-val { font-size: 11px; color: var(--text-light); text-align: right; }
.b2b-visibility-chart-canvas-wrap {
    position: relative;
    height: 260px;
    margin-top: 12px;
    max-width: 100%;
}
.b2b-visibility-chart-canvas-wrap canvas {
    max-height: 260px;
}
.b2b-dashboard-modern .choices {
    margin-bottom: 0;
}
.b2b-dashboard-modern .choices__inner {
    border-radius: 8px;
    border-color: var(--border, #e2e8f0);
    min-height: 44px;
    padding: 8px 12px;
}
.b2b-opps, .b2b-audience-list { display: grid; gap: 10px; margin-top: 0; }
.b2b-audience-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
}
.b2b-audience-item span { font-size: 13px; color: var(--text-main); }
.b2b-audience-item em { font-size: 12px; color: var(--text-light); font-style: normal; }

/* ── New UI elements for reworked copy ── */
.b2b-topbar-nudge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.b2b-topbar-nudge a {
    font-weight: 700;
    color: #9a3412;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.b2b-topbar-nudge a:hover { color: #7c2d12; }

.b2b-chip-good .b2b-overview-chip-label { color: #15803d; }
.b2b-chip-good strong { color: #15803d; }
.b2b-chip-warn .b2b-overview-chip-label { color: #b45309; }
.b2b-chip-warn strong { color: #b45309; }

.b2b-sidebar-tip {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.b2b-sidebar-tip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #92400e;
}
.b2b-sidebar-tip p {
    margin: 0;
    color: #78350f;
}

.b2b-chart-section { margin-top: 20px; }
.b2b-chart-hint {
    font-size: 13px;
    color: var(--text-light, #64748b);
    margin: 0 0 10px;
    line-height: 1.5;
}
.b2b-no-data-hint {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px !important;
    color: var(--text-main, #334155) !important;
    line-height: 1.55;
}

.b2b-kpi-hint {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    line-height: 1.3;
}
.b2b-kpi-highlight {
    border-color: #bfdbfe !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
}
.b2b-kpi-highlight strong { color: #1d4ed8; }

.b2b-modal-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 2px 0 0;
    font-weight: 400;
}

.b2b-funnel-step em {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    font-style: normal;
    margin-top: 3px;
}
.b2b-funnel-step-cta {
    border-color: #bfdbfe !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
}
.b2b-funnel-step-cta span { color: #1e40af !important; }
.b2b-funnel-step-cta strong { color: #1d4ed8 !important; }

.b2b-metric-calls {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

.b2b-audience-metal {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.b2b-audience-demand {
    font-size: 13px;
    color: #1d4ed8;
    font-weight: 500;
}

/* Modern dashboard redesign layer (UI only, no logic changes). */
.b2b-dashboard-modern {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --b2b-radius: 3px;
    --b2b-elev: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.05);
    --b2b-elev-float: 0 12px 28px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.b2b-dashboard-modern .b2b-dashboard-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.b2b-dashboard-modern .b2b-dashboard-head {
    min-width: 0;
}
.b2b-dashboard-modern .b2b-dashboard-title {
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}
.b2b-dashboard-modern .b2b-dashboard-stat-row {
    margin-bottom: 0;
}
.b2b-dashboard-modern .b2b-dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.b2b-dashboard-modern .b2b-overview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.b2b-dashboard-modern .b2b-overview-chip {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}
.b2b-dashboard-modern .b2b-overview-chip-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.b2b-dashboard-modern .b2b-overview-chip strong {
    font-size: 21px;
    color: #0f172a;
    line-height: 1;
}
.b2b-dashboard-modern .b2b-dashboard-layout {
    gap: 24px;
    grid-template-columns: 260px 1fr;
}
.b2b-dashboard-modern .b2b-sidebar {
    top: 16px;
}
.b2b-dashboard-modern .b2b-nav {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}
.b2b-dashboard-modern .b2b-nav-item {
    border: 1px solid transparent;
}
.b2b-dashboard-modern .b2b-nav-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.b2b-dashboard-modern .b2b-nav-item.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.b2b-dashboard-modern .b2b-main {
    display: grid;
    gap: 16px;
}
.b2b-dashboard-modern .b2b-block {
    margin-bottom: 0;
    border-radius: 14px;
    border: 1px solid #dbe4ee;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.b2b-dashboard-modern .b2b-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.b2b-dashboard-modern .b2b-block-title {
    letter-spacing: -0.015em;
}
.b2b-dashboard-modern .b2b-kpi-grid {
    gap: 10px;
}
.b2b-dashboard-modern .b2b-kpi {
    border: 1px solid #dbe4ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.b2b-dashboard-modern .b2b-kpi strong {
    font-size: 26px;
}
.b2b-dashboard-modern .b2b-chart-bar-wrap {
    background: #e2e8f0;
    height: 16px;
}
.b2b-dashboard-modern .b2b-chart-bar {
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
    height: 16px;
}
.b2b-dashboard-modern .b2b-company-card {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 16px 16px;
}
.b2b-dashboard-modern .b2b-company-info h3 {
    font-size: 17px;
}
.b2b-dashboard-modern .b2b-company-actions .b2b-btn {
    min-width: 132px;
}
.b2b-dashboard-modern .b2b-search-results {
    border-radius: 10px;
    border: 1px solid #dbe4ee;
}
.b2b-dashboard-modern .b2b-search-result-item {
    padding: 12px 14px;
}
.b2b-dashboard-modern .b2b-modal-inner {
    border-radius: 14px;
}
.b2b-dashboard-modern .b2b-leaderboard-row,
.b2b-dashboard-modern .b2b-opp-item,
.b2b-dashboard-modern .b2b-audience-item,
.b2b-dashboard-modern .b2b-funnel-step {
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 1100px) {
    .b2b-dashboard-modern .b2b-overview-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .b2b-dashboard-modern .b2b-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .b2b-dashboard-modern .b2b-dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .b2b-dashboard-modern .b2b-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .b2b-dashboard-modern .b2b-nav-label {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .b2b-dashboard-modern .b2b-overview-strip {
        grid-template-columns: 1fr;
    }
    .b2b-dashboard-modern .b2b-block {
        padding: 18px 14px;
    }
    .b2b-dashboard-modern .b2b-kpi-grid,
    .b2b-dashboard-modern .b2b-funnel-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── B2B industrial UI: tight radius, hard edges, actionable bulk bar ── */
.b2b-dashboard-modern .b2b-btn {
    border-radius: var(--b2b-radius);
}
.b2b-dashboard-modern .b2b-btn-primary {
    box-shadow: var(--b2b-elev);
}
.b2b-dashboard-modern .b2b-btn-primary:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.b2b-btn-analytics {
    background: var(--primary, #1e3a8a) !important;
    color: #fff !important;
    box-shadow: var(--b2b-elev, 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.05)) !important;
}
.b2b-btn-analytics:hover {
    background: #1d4ed8 !important;
    filter: brightness(1.02);
    transform: none !important;
}

.b2b-dashboard-modern .b2b-block,
.b2b-dashboard-modern .b2b-overview-chip,
.b2b-dashboard-modern .b2b-kpi,
.b2b-dashboard-modern .b2b-company-card,
.b2b-dashboard-modern .b2b-modal-inner,
.b2b-dashboard-modern .b2b-search-results,
.b2b-dashboard-modern .b2b-leaderboard-row,
.b2b-dashboard-modern .b2b-opp-item,
.b2b-dashboard-modern .b2b-audience-item,
.b2b-dashboard-modern .b2b-chart-hint + .b2b-no-data-hint,
.b2b-dashboard-modern .b2b-alert-item,
.b2b-dashboard-modern .b2b-topbar-nudge {
    border-radius: var(--b2b-radius) !important;
    box-shadow: var(--b2b-elev) !important;
}
.b2b-dashboard-modern .b2b-block {
    border: 1px solid var(--border, #e2e8f0);
}
.b2b-dashboard-modern .b2b-overview-chip {
    box-shadow: var(--b2b-elev) !important;
}
.b2b-dashboard-modern .b2b-nav {
    border-radius: var(--b2b-radius) !important;
    box-shadow: var(--b2b-elev) !important;
}
.b2b-dashboard-modern .b2b-nav-item {
    border-radius: var(--b2b-radius) !important;
}
.b2b-dashboard-modern .b2b-nav-item.active {
    box-shadow: none !important;
}
.b2b-dashboard-modern .b2b-sidebar-tip {
    border-radius: var(--b2b-radius) !important;
    box-shadow: var(--b2b-elev) !important;
}

.b2b-dashboard-modern .b2b-input,
.b2b-dashboard-modern .b2b-form-row textarea.b2b-input,
.b2b-dashboard-modern .b2b-price-row select,
.b2b-dashboard-modern .b2b-price-row input {
    border-radius: var(--b2b-radius) !important;
}
.b2b-dashboard-modern .choices__inner {
    border-radius: var(--b2b-radius) !important;
}
.b2b-dashboard-modern .b2b-modal-close {
    border-radius: var(--b2b-radius);
}
.b2b-dashboard-modern .b2b-price-row-remove {
    border-radius: var(--b2b-radius);
}
.b2b-dashboard-modern .b2b-prices-target-list label {
    border-radius: var(--b2b-radius) !important;
}

.b2b-dashboard-modern .b2b-company-info .b2b-badge-premium,
.b2b-dashboard-modern .b2b-company-info .b2b-badge-pending {
    border-radius: var(--b2b-radius);
}

/* Freshness = CRM-style chips */
.b2b-dashboard-modern .b2b-price-date.b2b-freshness-good {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    color: #166534 !important;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--b2b-radius);
    font-weight: 500;
}
.b2b-dashboard-modern .b2b-price-date.b2b-freshness-warn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    color: #a16207 !important;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--b2b-radius);
    font-weight: 500;
}
.b2b-dashboard-modern .b2b-price-date.b2b-freshness-crit,
.b2b-dashboard-modern .b2b-price-date.b2b-price-missing {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    color: #9a3412 !important;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--b2b-radius);
    font-weight: 600;
}

.b2b-insights-region {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.b2b-insights-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.b2b-insights-title {
    margin: 0 0 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light, #64748b) !important;
}
.b2b-insights-lead {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--text-main, #334155) !important;
    max-width: 52rem;
}
.b2b-subtitle-inline {
    margin-top: 18px !important;
}

/* Insight sub-panels: calmer hierarchy than stacked h3 + paragraphs */
.b2b-insight-panel {
    padding: 18px 0 22px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.b2b-insight-panel:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.b2b-insight-panel-head {
    margin-bottom: 14px;
}
.b2b-insight-panel-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary, #0f172a);
    letter-spacing: -0.02em;
}
.b2b-insight-panel-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light, #64748b);
    max-width: 48rem;
}

.b2b-insight-empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--b2b-radius, 3px);
    border: 1px solid var(--border, #e2e8f0);
    background: #f8fafc;
    color: var(--text-main, #334155);
}
.b2b-insight-empty--ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.b2b-insight-empty--neutral {
    background: #f8fafc;
}

/* Price gap rows: scan-friendly grid, action de-emphasized when low urgency */
.b2b-opp-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #e8eef4);
}
.b2b-opp-yard {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light, #64748b);
}
.b2b-opp-metal {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary, #0f172a);
    line-height: 1.35;
}
.b2b-opp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin-bottom: 12px;
}
@media (max-width: 560px) {
    .b2b-opp-grid {
        grid-template-columns: 1fr;
    }
}
.b2b-opp-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.b2b-opp-k {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light, #64748b);
}
.b2b-opp-v {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary, #0f172a);
}
.b2b-opp-cell--gap .b2b-opp-v {
    color: #9a3412;
    font-size: 15px;
    font-weight: 600;
}
.b2b-opp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}
.b2b-opp-missed {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.b2b-opp-missed--muted {
    color: var(--text-light, #64748b);
}
.b2b-opp-missed--warn {
    color: #9a3412;
    font-weight: 600;
}
.b2b-opp-item--urgent {
    box-shadow: inset 3px 0 0 0 #9a3412;
}
.b2b-opp-fix-muted {
    border-color: #cbd5e1 !important;
    color: var(--primary, #1e293b) !important;
    font-weight: 600;
}
.b2b-opp-fix-muted:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Audience demand: one horizontal row per metal */
.b2b-dashboard-modern .b2b-audience-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 12px 14px !important;
}
@media (max-width: 640px) {
    .b2b-dashboard-modern .b2b-audience-item {
        grid-template-columns: 1fr;
        align-items: start;
    }
}
.b2b-audience-note {
    font-size: 12px;
    color: var(--text-light, #64748b);
    text-align: right;
}
@media (max-width: 640px) {
    .b2b-audience-note { text-align: left; }
}
.b2b-audience-demand {
    font-size: 13px !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-main, #334155) !important;
    white-space: nowrap;
}

/* Leaderboard: column headers + numeric alignment */
.b2b-leaderboard-row--head {
    background: #f1f5f9 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light, #64748b) !important;
    padding: 8px 12px !important;
}
.b2b-leaderboard-row--head .b2b-leaderboard-name,
.b2b-leaderboard-row--head .b2b-leaderboard-metric {
    font-size: 10px !important;
    color: var(--text-light, #64748b) !important;
    font-weight: 700 !important;
}
.b2b-leaderboard-row--head .b2b-metric-calls {
    color: var(--text-light, #64748b) !important;
}
.b2b-leaderboard-compact .b2b-leaderboard-row:not(.b2b-leaderboard-row--head) .b2b-leaderboard-metric {
    font-variant-numeric: tabular-nums;
    text-align: right;
    justify-self: end;
}
.b2b-leaderboard-compact .b2b-leaderboard-row:not(.b2b-leaderboard-row--head) .b2b-leaderboard-name {
    font-weight: 600;
}
.b2b-leaderboard-compact .b2b-leaderboard-row:not(.b2b-leaderboard-row--head) .b2b-metric-calls {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.b2b-dashboard-modern .b2b-insight-panel .b2b-opp-item {
    padding: 14px 16px !important;
    background: #fafbfc;
    gap: 0;
}
.b2b-dashboard-modern .b2b-insight-panel .b2b-opps {
    gap: 12px;
}

.b2b-leaderboard-compact {
    gap: 6px;
}
.b2b-leaderboard-compact .b2b-leaderboard-row {
    padding: 8px 10px !important;
    gap: 8px !important;
}
.b2b-leaderboard-compact .b2b-leaderboard-name {
    font-size: 14px;
}
.b2b-leaderboard-compact .b2b-leaderboard-metric {
    font-size: 11px;
}
.b2b-leaderboard-empty {
    margin-top: 8px !important;
}

/* Yards list: Gmail-style control strip + flush cards */
.b2b-yards-stack {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--b2b-radius, 3px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--b2b-elev);
}
.b2b-list-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.b2b-list-controls-select-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #1e293b);
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.b2b-list-controls-select-all input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #1e3a8a);
    cursor: pointer;
    margin: 0;
}
.b2b-bulk-selected-count {
    font-size: 13px;
    color: var(--text-light, #64748b);
}

.b2b-yards-stack .b2b-companies-list {
    gap: 0;
}
.b2b-yards-stack .b2b-company-card {
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border, #e2e8f0) !important;
    box-shadow: none !important;
    margin: 0;
}
.b2b-yards-stack .b2b-company-card:last-child {
    border-bottom: none !important;
}

/* Floating bulk actions: docked above bottom, sharp card */
.b2b-bulk-float {
    top: auto;
    bottom: 20px;
    padding: 0 16px calc(8px + env(safe-area-inset-bottom, 0));
    background: transparent !important;
}
.b2b-bulk-float-inner {
    max-width: min(720px, 100%);
    border-radius: var(--b2b-radius, 3px) !important;
    box-shadow: var(--b2b-elev-float, 0 12px 28px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.08)) !important;
}

/* Toast */
.b2b-toast {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 100002;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--b2b-radius, 3px);
    box-shadow: var(--b2b-elev-float);
}

/* Save button loading */
@keyframes b2b-spin {
    to { transform: rotate(360deg); }
}
.b2b-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.b2b-btn.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: b2b-spin 0.65s linear infinite;
}
.b2b-btn-outline.is-loading::after,
.b2b-btn-analytics.is-loading::after {
    border: 2px solid rgba(30, 58, 138, 0.25);
    border-top-color: #1e3a8a;
}

.b2b-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
}
.b2b-modal-footer {
    position: sticky;
    bottom: 0;
    box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.08);
}
.b2b-modal-body {
    box-shadow: none;
}

@media (max-width: 640px) {
    .b2b-leaderboard-compact .b2b-leaderboard-row {
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: dense;
    }
    .b2b-toast {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
