.section-before-footer {
    padding-bottom: 1rem !important;
}
.page-container-narrow {
    width: 100%;
    max-width: 850px;
    margin: 3rem auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.bot-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.bot-details-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; position: relative; }
.bot-actions-toggle { border: none; font: inherit; color: inherit; }
.bot-actions-more { display: none; }
@media (min-width: 992px) {
    .bot-details-actions > #open-bot-share { display: none; }
    .bot-details-actions .bot-actions-toggle { border-radius: var(--app-notice-radius); background-color: transparent; color: var(--color-text-secondary); }
    .bot-details-actions .bot-actions-toggle:hover,
    .bot-details-actions .bot-actions-toggle[aria-expanded="true"] { background-color: rgba(0, 0, 0, .04); color: var(--color-dark); }
    .bot-actions-more { display: inline-flex; padding-left: .75rem; border-left: 1px solid var(--color-border); }
    .bot-actions-menu:not([hidden]) { display: block; }
}
.bot-details-header .bot-title-group { min-width: 0; }
.bot-details-header .bot-title-group h1 { overflow-wrap: anywhere; }
.bot-share-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0;
    border: 1px solid transparent; border-radius: 8px; background: transparent;
    color: var(--color-text-secondary); cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.bot-share-icon:hover { background: rgba(0, 0, 0, .04); color: var(--color-dark); }
.bot-share-icon:active { transform: scale(.96); }
.bot-share-icon:disabled { opacity: .3; cursor: default; background: transparent; transform: none; }
.bot-share-icon svg,
.account-share-trigger svg {
    width: var(--share-icon-size, 18px);
    height: var(--share-icon-size, 18px);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bot-share-desktop-icon { display: inline-flex; }
.bot-share-mobile-content { display: none; }
/* Der Standard-Darkmode-Filter des Dialogs gleicht den globalen Canvas-Filter aus. */
.bot-share-modal { --modal-max-height: min(740px, calc(100dvh - 4rem)); text-align: left; }
.bot-share-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bot-share-caption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 14px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.4; }
#bot-share-page-count { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; }
.bot-share-preview { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; overflow: auto; }
#bot-share-preview, .tradic-snap-pages { display: block; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
#bot-share-preview::-webkit-scrollbar, .tradic-snap-pages::-webkit-scrollbar { display: none; }
.bot-share-track { display: flex; width: 100%; height: 100%; }
.bot-share-page { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.bot-share-artwork { height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; }
.bot-share-artwork canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.bot-share-artwork.is-transparent {
    background-color: #d6d6d6;
    background-image: linear-gradient(45deg, #c5c5c5 25%, transparent 25%), linear-gradient(-45deg, #c5c5c5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #c5c5c5 75%), linear-gradient(-45deg, transparent 75%, #c5c5c5 75%);
    background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.bot-share-settings { width: 100%; max-height: 100%; overflow-y: auto; padding: 12px; text-align: center; scrollbar-width: none; }
.bot-share-qr { width: min(218px, 100%); aspect-ratio: 1; margin: 0 auto 24px; }
.bot-share-qr svg { display: block; width: 100%; height: 100%; }
.bot-share-settings h3 { font-size: 20px; line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
.bot-share-settings p { max-width: 340px; font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin: 0 auto; }
.bot-share-options { flex-shrink: 0; padding-top: 16px; min-height: 80px; }
.bot-share-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; min-height: 28px; color: var(--color-text-secondary); font-size: 13px; cursor: pointer; }
.bot-share-identity input { position: absolute; right: 0; width: 40px; height: 28px; opacity: 0; margin: 0; cursor: pointer; }
.bot-share-switch { pointer-events: none; }
.bot-share-ink { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--color-text-secondary); min-height: 24px; }
.bot-share-swatch { width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 50%; padding: 0; cursor: pointer; }
.bot-share-swatch[aria-pressed="true"] { outline: 1px solid #888; outline-offset: 3px; }
.bot-share-swatch-white { background: #fff; }
.bot-share-swatch-dark { background: #1a1817; }
.bot-share-swatch-silver { background: #ddd url('/static/images/bot-share-background.png') center / cover; }
.bot-share-swatch-gray { background: #f5f5f5; }
.bot-share-swatch-black { background: #0b0b0b; }
@media (prefers-color-scheme: dark) {
    /* Die Farbmuster behalten ihre Originalfarben trotz Dialog-Invertierung. */
    .bot-share-swatch { filter: invert(1) hue-rotate(180deg); }
}
.bot-share-alpha { margin-left: auto; font-size: 10px; text-align: right; }
.bot-share-footer { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; padding-top: 16px; }
.bot-share-footer nav { display: flex; gap: 6px; }
.bot-share-export-actions { position: relative; }
.bot-share-fallback { position: absolute; left: 0; bottom: 42px; padding: 6px; border-radius: 12px; background: var(--color-white); box-shadow: 0 8px 28px #0002; white-space: nowrap; }
.bot-share-fallback button { display: block; border: 0; background: transparent; font: inherit; font-size: 13px; padding: 10px 14px; border-radius: 8px; cursor: pointer; color: var(--color-dark); }
.bot-share-fallback button:hover { background: var(--color-light); }
.bot-share-feedback { font-size: 12px; margin: 8px 0 0; line-height: 1.5; color: var(--color-text-secondary); }
.bot-share-feedback:empty { display: none; }
.bot-share-identity + .bot-share-identity { margin-top: 8px; }
.bot-share-modal [hidden] { display: none !important; }
.bot-share-receiver { max-width: 550px; padding-top: 70px; padding-bottom: 70px; }
.bot-share-apply-mobile { display: none; }
.bot-share-receiver h1 { font-size: 36px; margin: 8px 0 24px; }
.bot-share-receiver h2 { font-size: 20px; margin-bottom: 16px; }
.bot-share-receiver p { font-size: 14px; margin-bottom: 20px; }
.bot-share-receiver-settings { margin: 24px 0; }
.bot-share-receiver-settings div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14px; }
.bot-share-receiver-settings dd { margin: 0; font-weight: 700; }
.bot-share-friend { display: block; margin-top: 20px; }
@media (max-width: 768px) {
    .bot-share-modal .bot-share-icon, .bot-details-actions > .bot-share-icon { width: 44px; height: 44px; }
    .profile-section-heading .account-share-trigger { min-height: 44px; margin-block: -11px; }
    .bot-share-settings { padding: 4px; }
    .bot-share-settings h3 { font-size: 18px; }
    .bot-share-settings p { font-size: 13px; }
    .bot-share-qr { width: min(180px, 100%); }
    .bot-share-alpha { font-size: 9px; }
    .bot-share-caption { font-size: 12px; }
}
@media (max-height: 650px) {
    .bot-share-modal .filter-modal-header { margin-bottom: 12px; }
    .bot-share-qr { width: min(130px, 100%); margin-bottom: 12px; }
    .bot-share-settings h3 { font-size: 16px; }
    .bot-share-options { padding-top: 8px; min-height: 72px; }
}
.bot-title-group h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.bot-title-group .broker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}
.status-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.status-toggle-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
.status-label { font-size: 0.85rem; font-weight: 600; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background-color: var(--color-text-secondary); }
.status-indicator.active { background-color: var(--color-green); }
.card.graph-card {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    margin-bottom: var(--app-section-gap-before-heading);
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
    border: none;
    overflow: hidden;
}
.graph-container-inner {
    margin-bottom: 1rem;
    position: relative;
}
.timeframe-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-top: 1.5rem;
    width: 100%;
    gap: 0.75rem;
}
.timeframe-btn {
    flex: 0 1 auto;
    min-width: 45px;
    text-align: center;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-tertiary);
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.timeframe-btn:hover,
.timeframe-btn.active {
    color: var(--color-dark);
}
.bot-details-page .graph-container-inner,
.bot-details-page #bot-chart {
    height: 380px !important;
}
.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--app-section-gap-after-heading);
}
.details-section {
    margin-bottom: var(--app-section-gap-before-heading);
}
.bot-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    row-gap: 2rem;
    margin-bottom: 0;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}
.bot-details-page .stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    text-align: right;
    font-feature-settings: "tnum";
}
.bot-details-page .stat-value.accent-green { color: var(--color-green); }
.settings-section { margin-bottom: var(--app-section-gap-before-heading); }
.settings-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--app-section-gap-after-heading);
}
.settings-header-row .section-label { margin-bottom: 0; }
.history-section .settings-header-row { margin-bottom: 0 !important; }
.settings-actions,
.edit-actions-group {
    display: flex; align-items: center;
}
.edit-actions-group { gap: 0.75rem; }
.btn-text-action {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}
.btn-text-action .arrow {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-text-action:hover .arrow { transform: translateX(4px); }
.btn-text-action.active .arrow { transform: rotate(90deg); }
#edit-settings-btn .edit-settings-icon {
    display: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
#edit-settings-btn .edit-settings-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-ghost:hover {
    color: var(--color-dark);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: 8px; font-family: inherit; }
.settings-container { display: flex; flex-direction: column; gap: 2.5rem; }
.settings-group-title {
    font-size: 1.1rem; font-weight: 700; margin: 0 0 1.5rem 0; color: var(--color-dark);
}
.group-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.group-header .settings-group-title { margin-bottom: 0; }
.lock-badge {
    font-size: 0.8rem; background: var(--color-light); color: var(--color-text-secondary);
    padding: 4px 10px; border-radius: 20px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    row-gap: 1.5rem;
}
.setting-item { display: flex; flex-direction: column; gap: 0.5rem; }
.setting-item.full-width { grid-column: 1 / -1; }
.setting-item label,
.setting-item .setting-label {
    font-size: 0.85rem; color: var(--color-text-secondary); font-weight: 500;
}
.setting-item .setting-status {
    font-size: 0.95rem; color: var(--color-text-secondary); font-weight: 600;
}
.setting-label-line {
    font-size: 0.85rem; color: var(--color-text-secondary); font-weight: 500;
}
.setting-label-line .automatic-buy-steps-action { font-size: inherit; }
/* Automatisch berechnete Positionsgröße: im Bearbeiten sichtbar nicht editierbar, gleiche Flucht. */
form.editing #bot-position-volume-input { padding: 8px 12px; }
.settings-grid input,
.settings-grid select {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600; color: var(--color-dark);
    background: transparent; border: 1px solid transparent;
    padding: 6px 0; border-radius: 8px;
    transition: all 0.2s ease; text-overflow: ellipsis;
}
form.editing .input-editable:not([disabled]),
form.editing #detail_trailing_stop_pct.input-editable {
    padding: 8px 12px;
}
.locked-group .settings-grid input,
.locked-group .settings-grid select,
.locked-group label { color: var(--color-text-tertiary); cursor: not-allowed; }
.locked-group .settings-group-title { color: var(--color-text-secondary); }
#history-content > div:not(.cycle-card) { font-size: 0.95rem !important; }
.bot-details-page #bot-settings-form {
    scroll-margin-top: calc(var(--bot-details-table-header-top, 0px) + 1rem);
}
.bot-details-page .details-section.history-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    scroll-margin-top: calc(var(--bot-details-table-header-top, 0px) + 1rem);
}
.bot-details-page #bot-settings-form[hidden] + .history-section {
    padding-top: 0;
}
.history-accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 0;
}
.history-accordion-wrapper.open { grid-template-rows: 1fr; }
.history-inner-content {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
}
.history-accordion-wrapper.open .history-inner-content {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
    overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
    .history-accordion-wrapper,
    .history-inner-content {
        transition: none;
    }
}
.danger-zone {
    margin-top: var(--app-danger-zone-gap-before) !important;
    padding-top: var(--app-danger-zone-divider-gap) !important;
    border-top: 1px solid var(--color-border);
}
.danger-zone-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.danger-text-block h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
}
.danger-text-block p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0.4rem 0 0 0;
}
@media (max-width: 640px) {
    .bot-stats-grid, .settings-grid { grid-template-columns: 1fr; row-gap: 1.5rem; }
    .danger-zone-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
.tradic-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tradic-modal-overlay.active { display: flex; opacity: 1; visibility: visible; }
.tradic-modal-content {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.1, 1, 0.3, 1);
}
.tradic-modal-overlay.active .tradic-modal-content { transform: scale(1); }
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}
.tradic-modal-content .btn {
    font-size: 1rem !important;
    padding: 14px 24px;
    font-weight: 600;
}
.confirm-modal-content {
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 2.5rem;
    margin: 0 auto;
}
.confirm-modal-content h3 { margin-top: 0; margin-bottom: 1rem; }
.confirm-modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 auto;
    max-width: 90%;
}
.confirm-modal-content .btn-group {
    display: flex; flex-direction: column;
    gap: 0.6rem;
    margin-top: 2.5rem;
    width: 100%;
}
.confirm-modal-content .btn { width: 100%; justify-content: center; }
.cycle-group {
    margin-bottom: 2.5rem;
}
.cycle-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}
.cycle-status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    color: var(--color-text-tertiary);
    font-size: 0.78rem;
    font-weight: 600;
}
.cycle-status.running {
    color: var(--color-dark);
}
.cycle-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--color-text-tertiary);
}
.cycle-status.running .cycle-status-dot {
    background-color: var(--color-green);
}
.cycle-date {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}
.cycle-profit {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.95rem;
}
.tr-table-wrapper {
    overflow: visible;
}
.tr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}
.tr-table thead {
    background-color: var(--color-light);
}
.tr-table th {
    position: sticky;
    top: var(--bot-details-table-header-top, var(--header-height));
    z-index: 20;
    background-color: var(--color-light);
    text-align: left;
    color: var(--color-text-tertiary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border);
}
.tr-table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--color-light);
    color: var(--color-dark);
}
.tr-table tr:last-child td { border-bottom: none; }
.text-right { text-align: right !important; }
.td-date { color: var(--color-text-secondary); white-space: nowrap; }
.type-pill {
    font-weight: 600;
    font-size: 0.8rem;
}
.type-pill.buy { color: var(--color-dark); }
.type-pill.sell { color: var(--color-green); }
.td-profit.pos { color: var(--color-green); font-weight: 600; }
.td-profit.neg { color: var(--color-dark); font-weight: 600; }
.empty-history-minimal {
    padding: 3rem 0;
    text-align: center;
}
.empty-history-minimal p {
    font-size: 0.95rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
    margin: 0;
}
.btn-text-action.active .arrow {
    transform: rotate(90deg);
}
.csv-export-container {
    text-align: left;
    padding: 1rem 0 2rem 0;
}
.bot-history-download-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-family-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.bot-history-download-action:hover {
    background-color: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}
.bot-details-page .bot-history-download-action:hover { color: var(--color-dark); }

.buy-paused-notice {
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
}
.buy-paused-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}
.next-sell-target {
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    font-feature-settings: "tnum";
    display: inline-block;
}
.current-market-price {
    display: inline-block;
    white-space: nowrap;
}
.current-market-price-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}
.current-market-price-value {
    color: var(--color-text-primary);
    font-weight: 600;
    font-feature-settings: "tnum";
}
.current-market-price-tooltip {
    display: none;
}
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .buy-paused-notice .current-market-price.has-target,
    .buy-paused-notice .current-market-price-separator,
    .buy-paused-notice .next-sell-target-mobile-value {
        display: none;
    }
    .buy-paused-notice .current-market-price-tooltip {
        display: inline-flex;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        vertical-align: baseline;
    }
    .buy-paused-notice .current-market-price-tooltip:hover {
        background: transparent;
        color: inherit !important;
    }
}
.buy-paused-notice.is-compact .next-sell-target {
    color: var(--color-text-secondary);
    font-weight: 500;
}
.buy-paused-notice.is-compact .next-sell-target-value {
    color: var(--color-text-primary);
    font-weight: 600;
}
.next-sell-context {
    display: inline;
}
.next-sell-context.has-target {
    display: block;
    margin-top: 0.2rem;
}
.next-sell-separator {
    margin: 0 0.35rem;
    color: var(--color-text-secondary);
}
.next-sell-cycle-link {
    font-size: 0.9rem;
}
.buy-paused-notice.is-compact .next-sell-cycle-link {
    font-weight: 600;
}
.buy-paused-reactivate-link {
    color: var(--color-text-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.buy-paused-reactivate-link:hover {
    color: var(--color-text-secondary);
}
@media (min-width: 992px) {
    .coverage-reached-context.has-target {
        display: inline;
    }
    .coverage-reached-lead {
        display: inline-block;
    }
    .coverage-reached-tooltip {
        border: 0;
        padding: 0;
        vertical-align: middle;
    }
    .coverage-reached-details {
        display: none;
    }
}

@media (max-width: 991px) {
    .buy-paused-notice .next-sell-context.has-target {
        margin-top: 0.5rem;
    }
    .buy-paused-notice .coverage-reached-lead {
        display: none;
    }
    .buy-paused-notice .current-market-price,
    .buy-paused-notice .next-sell-target,
    .buy-paused-notice .next-sell-cycle-link {
        display: block;
    }
    .buy-paused-notice .next-sell-separator {
        display: none;
    }
    .buy-paused-notice .next-sell-cycle-link {
        margin-top: 0.5rem;
    }
    .buy-paused-notice #show-current-cycle-link::after {
        content: '';
        margin-left: 0.4em;
    }
}

.cycle-start-suggestions {
    display: grid;
    gap: 0.45rem;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}
.cycle-start-suggestions:empty {
    display: none;
}
.cycle-start-suggestions button {
    font: inherit;
    font-weight: 700;
    text-align: center;
    white-space: normal;
}
.cycle-start-suggestions button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.settings-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
    padding: 12px 20px;
    border-radius: 16px;
    background: var(--color-border);
    box-sizing: border-box;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.pending-config-changes {
    color: var(--color-text-secondary);
    font-weight: 700;
}
/* Fachlich ausgeblendete Zustände bleiben auch bei flex/grid-Komponenten verborgen. */
#bot-settings-form[hidden],
#bot-settings-form [hidden] {
    display: none !important;
}
