.app-container .main-content.bh-page {
    flex: 1;
    margin-left: calc(240px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
    padding: 20px;
    background: #f2f2f7;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.app-container.sidebar-collapsed .main-content.bh-page {
    margin-left: calc(60px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
}

@media (max-width: 768px) {
    .app-container .main-content.bh-page {
        margin-left: 0;
        padding: 12px;
    }
}

.bh-container {
    max-width: 1400px;
    margin: 0 auto;
}

.bh-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.bh-header-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bh-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #34c759, #30b0c7);
    font-size: 20px;
    flex-shrink: 0;
}

.bh-header h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
}

.bh-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.45;
    max-width: 640px;
}

.bh-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.bh-period-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.bh-period-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bh-period-btn {
    border: 1px solid #d1d1d6;
    background: #fff;
    color: #1d1d1f;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bh-period-btn:hover {
    border-color: #007aff;
    color: #007aff;
}

.bh-period-btn.active {
    background: #007aff;
    border-color: #007aff;
    color: #fff;
}

.bh-period-month-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-period-month-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.bh-period-month-wrap .bh-month-input.active-month {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.bh-period-label {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 500;
}

.bh-month-input,
.bh-btn {
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #1d1d1f;
}

.bh-btn {
    border: none;
    background: #007aff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.bh-btn:hover {
    background: #0066d6;
}

.bh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bh-save-hint {
    font-size: 12px;
    color: #8e8e93;
}

.bh-save-hint.saving {
    color: #007aff;
}

.bh-save-hint.saved {
    color: #34c759;
}

.bh-goal-settings {
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.bh-goal-settings-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.bh-goal-settings-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.bh-goal-settings-label i {
    color: #007aff;
}

.bh-goal-base-select {
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    background: #fff;
    cursor: pointer;
}

.bh-goal-settings-note {
    margin: 0;
    flex: 1 1 240px;
    min-width: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.bh-goal-settings-note strong {
    color: #374151;
    font-weight: 600;
}

.bh-input.bh-goal-scaled {
    background: #f8fbff;
}

.bh-goal-cell {
    min-width: 220px;
    vertical-align: top;
}

.bh-goal-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bh-goal-wrap .is-hidden {
    display: none !important;
}

.bh-goal-fixed-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bh-goal-fixed-hint {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #8e8e93;
}

.bh-goal-mode {
    display: inline-flex;
    align-self: flex-start;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f7;
}

.bh-goal-mode-btn {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 4px 8px;
    cursor: pointer;
}

.bh-goal-mode-btn.active {
    background: #fff;
    color: #007aff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bh-goal-range-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bh-goal-band-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bh-goal-band-label {
    flex: 1 1 72px;
    min-width: 72px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 600;
}

.bh-goal-band-threshold {
    width: 52px;
    min-width: 52px;
    padding: 4px 6px;
    font-size: 13px;
}

.bh-goal-band-auto {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.bh-goal-range-op {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.bh-goal-range-input {
    width: 56px;
    min-width: 56px;
    padding: 4px 6px;
    font-size: 13px;
}

.bh-goal-range-suffix {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.bh-goal-range-hint {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #8e8e93;
}

.bh-status-ok {
    background: rgba(255, 149, 0, 0.14);
    color: #c93400;
    border: 1px solid rgba(255, 149, 0, 0.35);
}

.bh-status-decent {
    background: rgba(255, 204, 0, 0.16);
    color: #a66a00;
    border: 1px solid rgba(255, 204, 0, 0.35);
}

.bh-status-normal {
    background: rgba(255, 149, 0, 0.14);
    color: #c93400;
    border: 1px solid rgba(255, 149, 0, 0.35);
}

.bh-section {
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
}

.bh-section-title {
    margin: 0;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0f0f5;
    padding-right: 16px;
}

.bh-section-title-row .bh-section-title {
    border-bottom: none;
    flex: 1 1 auto;
    min-width: 0;
}

.bh-section-edit-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bh-section-edit-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.04);
}

.bh-section-empty {
    padding: 24px 20px;
    font-size: 13px;
    color: #8e8e93;
    text-align: center;
}

.bh-section-title i {
    color: #007aff;
    font-size: 15px;
}

.bh-table-wrap {
    overflow-x: auto;
}

.bh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bh-table th,
.bh-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: top;
}

.bh-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8e8e93;
    background: #fafafa;
}

.bh-table tr:last-child td {
    border-bottom: none;
}

.bh-metric-label {
    font-weight: 600;
    color: #1d1d1f;
    min-width: 180px;
}

.bh-star-col,
.bh-star-cell {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

.bh-star-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #c7c7cc;
    padding: 4px;
    font-size: 15px;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.bh-star-btn:hover,
.bh-star-btn.active {
    color: #ffcc00;
}

.bh-star-btn:hover {
    transform: scale(1.08);
}

tr.bh-metric-highlight {
    animation: bhMetricHighlight 1.6s ease;
}

@keyframes bhMetricHighlight {
    0%, 100% { background: transparent; }
    20%, 60% { background: rgba(255, 204, 0, 0.12); }
}

.bh-input,
.bh-select {
    width: 100%;
    min-width: 100px;
    max-width: 160px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    background: #fff;
    color: #1d1d1f;
}

.bh-input:focus,
.bh-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.bh-input.manual {
    background: #fffdf5;
}

.bh-current {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bh-current-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.bh-current-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid transparent;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.bh-current-toggle:hover:not(:disabled) {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.2);
}

.bh-current-toggle.open {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.25);
}

.bh-current-toggle.no-detail {
    cursor: default;
    background: transparent;
    padding-left: 0;
}

.bh-current-toggle:disabled {
    cursor: default;
}

.bh-detail-chevron {
    font-size: 11px;
    color: #007aff;
    transition: transform 0.2s ease;
}

.bh-current-toggle.open .bh-detail-chevron {
    transform: rotate(180deg);
}

.bh-marketing-save-status {
    font-size: 13px;
    color: #8e8e93;
    align-self: center;
}

.bh-marketing-save-status.saving {
    color: #007aff;
}

.bh-marketing-save-status.success {
    color: #34c759;
}

.bh-marketing-save-status.error {
    color: #ff3b30;
}

.bh-input[readonly] {
    background: #f2f2f7;
    color: #666;
}

.bh-detail-panel {
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    background: #fafafa;
    padding: 12px;
    max-width: 480px;
    max-height: 320px;
    overflow: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.bh-detail-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
}

.bh-detail-count {
    font-weight: 600;
    color: #8e8e93;
}

.bh-input.bh-readonly-date {
    background: #f2f2f7;
    color: #666;
}

.bh-detail-desc,
.bh-detail-note {
    margin: 0 0 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.45;
}

.bh-detail-formula {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.bh-detail-part {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #ececf1;
}

.bh-detail-part:last-child {
    border-bottom: none;
}

.bh-detail-part span {
    color: #666;
}

.bh-detail-subtitle {
    margin: 12px 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8e8e93;
}

.bh-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bh-detail-item {
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 8px;
}

.bh-detail-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.bh-detail-item-meta {
    font-size: 12px;
    color: #007aff;
    margin-top: 2px;
}

.bh-detail-item-note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.bh-detail-empty {
    font-size: 13px;
    color: #8e8e93;
    font-style: italic;
}

.bh-current-value {
    font-weight: 600;
    color: #1d1d1f;
}

.bh-auto-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.bh-mode-toggle {
    display: block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #007aff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.bh-mode-toggle:hover {
    text-decoration: underline;
}

.bh-current-wrap--manual {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 220px;
}

.bh-testing-cell {
    min-width: 200px;
}

.bh-tests {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.bh-test-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bh-test-label {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    min-width: 52px;
    flex-shrink: 0;
}

.bh-test-input {
    flex: 1;
    min-width: 0;
}

.bh-test-remove {
    border: none;
    background: transparent;
    color: #ff3b30;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    line-height: 1;
}

.bh-add-test {
    border: 1px dashed #c7c7cc;
    background: #fafafa;
    color: #007aff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bh-add-test:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: #007aff;
}

.bh-marketing-panel {
    margin-bottom: 18px;
}

.bh-marketing-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    justify-content: space-between;
    font-family: inherit;
}

.bh-marketing-panel.is-collapsed .bh-marketing-toggle {
    border-bottom: none;
}

.bh-marketing-toggle-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-marketing-toggle-summary {
    margin-left: auto;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.bh-marketing-chevron {
    font-size: 12px;
    color: #007aff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.bh-marketing-panel:not(.is-collapsed) .bh-marketing-chevron {
    transform: rotate(180deg);
}

.bh-marketing-panel.is-collapsed .bh-marketing-body {
    display: none;
}

.bh-marketing-body {
    padding: 0 20px 20px;
}

.bh-marketing-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.45;
}

.bh-marketing-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8f9fb;
    border: 1px solid #e8e8ed;
    border-radius: 10px;
}

.bh-marketing-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bh-marketing-summary-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8e8e93;
}

.bh-marketing-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
}

.bh-marketing-summary-sub {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.bh-marketing-form {
    border: 1px solid #e8e8ed;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.bh-marketing-range-toggle {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bh-range-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
}

.bh-marketing-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bh-marketing-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-marketing-dates .bh-input[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.bh-date-sep {
    color: #8e8e93;
    font-size: 13px;
}

.bh-marketing-actions {
    display: flex;
    gap: 8px;
}

.bh-btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
    border: 1px solid #d1d1d6;
}

.bh-btn-secondary:hover {
    background: #e8e8ed;
}

.bh-marketing-list-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bh-marketing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bh-marketing-empty {
    font-size: 14px;
    color: #8e8e93;
    padding: 8px 0;
}

.bh-marketing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8e8ed;
    border-radius: 10px;
    background: #fafafa;
}

.bh-marketing-item-main {
    flex: 1;
    min-width: 0;
}

.bh-marketing-item-dates {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.bh-marketing-item-breakdown {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.bh-marketing-item-total {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    white-space: nowrap;
}

.bh-marketing-item-actions {
    display: flex;
    gap: 6px;
}

.bh-marketing-item-btn {
    border: 1px solid #d1d1d6;
    background: #fff;
    color: #007aff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bh-marketing-item-btn:hover {
    background: rgba(0, 122, 255, 0.08);
}

.bh-marketing-item-btn.danger {
    color: #ff3b30;
}

.bh-marketing-item-btn.danger:hover {
    background: rgba(255, 59, 48, 0.08);
}

.bh-loading {
    text-align: center;
    padding: 48px 20px;
    color: #8e8e93;
}

.bh-loading i {
    margin-right: 8px;
}

.bh-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bh-status-good {
    background: rgba(52, 199, 89, 0.15);
    color: #248a3d;
    border: 1px solid rgba(52, 199, 89, 0.35);
}

.bh-status-bad {
    background: rgba(255, 59, 48, 0.12);
    color: #d70015;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.bh-status-neutral {
    background: #f2f2f7;
    color: #8e8e93;
    border: 1px solid #e5e5ea;
    font-weight: 600;
    text-transform: none;
}

[data-theme="dark"] .bh-header,
[data-theme="dark"] .bh-section,
[data-theme="dark"] .bh-goal-settings {
    background: #1c1c1e;
    border-color: #38383a;
}

[data-theme="dark"] .bh-header h1,
[data-theme="dark"] .bh-metric-label,
[data-theme="dark"] .bh-current-value,
[data-theme="dark"] .bh-section-title {
    color: #f2f2f7;
}

[data-theme="dark"] .bh-section-edit-btn {
    background: #2c2c2e;
    border-color: #48484a;
    color: #d1d5db;
}

[data-theme="dark"] .bh-section-edit-btn:hover {
    border-color: #007AFF;
    color: #93c5fd;
    background: rgba(0, 122, 255, 0.12);
}

[data-theme="dark"] .bh-section-empty {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-table th {
    background: #2c2c2e;
    color: #aeaeb2;
}

[data-theme="dark"] .bh-input,
[data-theme="dark"] .bh-select,
[data-theme="dark"] .bh-month-input {
    background: #2c2c2e;
    border-color: #48484a;
    color: #f2f2f7;
}

[data-theme="dark"] .bh-input.manual {
    background: #2a2820;
}

[data-theme="dark"] .bh-input.bh-goal-scaled {
    background: #1a2433;
}

[data-theme="dark"] .bh-goal-mode {
    background: #2c2c2e;
    border-color: #48484a;
}

[data-theme="dark"] .bh-goal-mode-btn {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-goal-mode-btn.active {
    background: #3a3a3c;
    color: #93c5fd;
}

[data-theme="dark"] .bh-goal-fixed-hint,
[data-theme="dark"] .bh-goal-band-auto,
[data-theme="dark"] .bh-goal-range-op,
[data-theme="dark"] .bh-goal-range-suffix,
[data-theme="dark"] .bh-goal-range-hint {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-status-ok,
[data-theme="dark"] .bh-status-normal {
    background: rgba(255, 149, 0, 0.18);
    color: #ffb340;
    border-color: rgba(255, 149, 0, 0.35);
}

[data-theme="dark"] .bh-status-decent {
    background: rgba(255, 204, 0, 0.16);
    color: #ffd60a;
    border-color: rgba(255, 204, 0, 0.35);
}

[data-theme="dark"] .bh-goal-settings-label,
[data-theme="dark"] .bh-goal-settings-note strong {
    color: #e5e7eb;
}

[data-theme="dark"] .bh-goal-settings-note {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-goal-base-select {
    background: #2c2c2e;
    border-color: #48484a;
    color: #f2f2f7;
}

[data-theme="dark"] .bh-marketing-desc,
[data-theme="dark"] .bh-marketing-item-breakdown,
[data-theme="dark"] .bh-marketing-toggle-summary {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-marketing-summary {
    background: #2c2c2e;
    border-color: #38383a;
}

[data-theme="dark"] .bh-marketing-summary-value,
[data-theme="dark"] .bh-marketing-summary-sub,
[data-theme="dark"] .bh-marketing-item-dates,
[data-theme="dark"] .bh-marketing-item-total,
[data-theme="dark"] .bh-range-option {
    color: #f2f2f7;
}

[data-theme="dark"] .bh-marketing-form,
[data-theme="dark"] .bh-marketing-item {
    background: #2c2c2e;
    border-color: #38383a;
}

[data-theme="dark"] .bh-marketing-item-btn {
    background: #1c1c1e;
    border-color: #48484a;
}

[data-theme="dark"] .bh-period-btn {
    background: #2c2c2e;
    border-color: #48484a;
    color: #f2f2f7;
}

[data-theme="dark"] .bh-period-btn.active {
    background: #007aff;
    border-color: #007aff;
    color: #fff;
}

[data-theme="dark"] .bh-period-month-wrap label,
[data-theme="dark"] .bh-period-label {
    color: #aeaeb2;
}

[data-theme="dark"] .bh-status-good {
    background: rgba(52, 199, 89, 0.2);
    color: #30d158;
    border-color: rgba(52, 199, 89, 0.4);
}

[data-theme="dark"] .bh-status-bad {
    background: rgba(255, 59, 48, 0.18);
    color: #ff6961;
    border-color: rgba(255, 59, 48, 0.35);
}

[data-theme="dark"] .bh-status-neutral {
    background: #2c2c2e;
    color: #8e8e93;
    border-color: #48484a;
}

[data-theme="dark"] .bh-current-toggle {
    background: #2c2c2e;
}

[data-theme="dark"] .bh-current-toggle:hover:not(:disabled),
[data-theme="dark"] .bh-current-toggle.open {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
}

[data-theme="dark"] .bh-detail-panel {
    background: #1c1c1e;
    border-color: #38383a;
}

[data-theme="dark"] .bh-detail-item {
    background: #2c2c2e;
    border-color: #38383a;
}

[data-theme="dark"] .bh-detail-item-name,
[data-theme="dark"] .bh-detail-formula {
    color: #f2f2f7;
}

[data-theme="dark"] .bh-detail-desc,
[data-theme="dark"] .bh-detail-note,
[data-theme="dark"] .bh-detail-item-note,
[data-theme="dark"] .bh-detail-part span {
    color: #aeaeb2;
}
