/* L2, technical gauge and advertisement stack */

.sv-dashboard-depth {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sv-dashboard-depth > .sv-side-card {
    flex: none;
}

.sv-dashboard-depth .sv-depth-empty {
    min-height: 180px;
}

/* Summary below chart */

.sv-dashboard .sv-technical-summary {
    display: block !important;
    background: #eaf1fc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 14px;
}

.sv-technical-summary .sv-technical-stance-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sv-technical-summary .sv-technical-badge {
    font: 600 11px/1.5 var(--sv-font);
    padding: 3px 10px;
    border-radius: 20px;
    background: #73839c;
    color: #fff;
}

.sv-technical-badge[data-tone="buy"] {
    background: #229454 !important;
    color: #fff !important;
}

.sv-technical-badge[data-tone="sell"] {
    background: #d53c4d !important;
    color: #fff !important;
}

.sv-technical-badge[data-tone="neutral"] {
    background: #73839c !important;
    color: #fff !important;
}

.sv-dashboard .sv-technical-method {
    font-size: 10px;
    color: var(--sv-muted);
    margin-top: 9px;
}

/* Gauge */

.sv-technical-card {
    text-align: center;
}

.sv-technical-card h2 {
    text-align: left;
}

.sv-technical-gauge {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 8px auto 0;
}

.sv-gauge-label {
    display: block;
    font-size: 23px;
    line-height: 1.4;
    margin-top: 0;
    color: var(--sv-ink);
}

.sv-dashboard .sv-gauge-counts {
    font-size: 11px;
    margin-top: 7px;
}

.sv-gauge-more {
    display: inline-block;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--sv-surface);
    margin-top: 12px;
}

.sv-technical-rules {
    text-align: left;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--sv-border);
    scroll-margin-top: 20px;
}

.sv-technical-rules summary {
    cursor: pointer;
    font-size: 11px;
    color: var(--sv-primary);
}

.sv-technical-rules ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.sv-technical-rules li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #edf1f8;
    font-size: 10px;
}

.sv-technical-rules li strong {
    font-weight: 600;
    white-space: nowrap;
}

.sv-dashboard .sv-gauge-note {
    font-size: 9px;
    margin-top: 12px;
}

/* Advertisement */

.sv-stock-ad {
    min-width: 0;
    text-align: center;
    padding: 10px 0;
}

.sv-ad-label {
    display: block;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--sv-muted);
}

.sv-ad-square {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto;
    background: #f7f9fd;
    border: 0;
    outline: 1px dashed var(--sv-border);
    overflow: hidden;
}

.sv-ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #91a0b6;
    font-size: 12px;
}

.sv-ad-placeholder strong {
    font: 500 23px/1.4 var(--sv-mono);
}

.sv-ad-square > a {
    display: block;
    width: 100%;
    height: 100%;
}

.sv-ad-square img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 900px) {
    .sv-dashboard-trading:not(.sv-wide-mode) {
        grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
    }
}