/* StockView font sizes plus four v1 */
@layer stockviewReadability {
    .sv-ref-bar {
        height: auto !important;
        min-height: 48px !important;
    }

    #sv-reference-information {
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        grid-template-columns: repeat(5,minmax(130px,1fr)) !important;
    }

    #sv-reference-information .svri-cell {
        min-height: 100px !important;
        height: auto !important;
        padding: 12px !important;
        overflow: visible !important;
    }

    #sv-reference-information :is(.svri-label,.svri-value) {
        line-height: 1.4 !important;
    }

    :is(.svsn-info,.svih-info) {
        min-width: 22px;
        min-height: 22px;
    }

    body.svm-right-design #sv-signal-row {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(260px,1fr)) !important;
        overflow-x: auto !important;
        align-items: stretch !important;
    }

    body.svm-right-design #sv-signal-row .sv-signal-cell {
        min-width: 260px !important;
        width: auto !important;
        height: auto !important;
        aspect-ratio: 1 !important;
    }

    body.svm-right-design #sv-signal-row
    :is(#sv-technical-gauge,#sv-assessment-gauge-svg) {
        top: 12% !important;
        height: 35% !important;
    }

    body.svm-right-design #sv-signal-row
    :is(#sv-gauge-label,#sv-assessment-label),
    body.svm-right-design #sv-signal-row
    #sv-assessment-gauge.sv-no-signal::after {
        top: 46% !important;
        bottom: auto !important;
    }

    body.svm-right-design #sv-signal-row .sv-signal-more {
        top: 59% !important;
        bottom: auto !important;
    }

    body.svm-right-design #sv-signal-row .sv-signal-disclaimer {
        top: auto !important;
        bottom: 3% !important;
    }

    @media(max-width:600px) {
        #sv-reference-information {
            grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        }
    }
}
/* StockView compact selected sections v1 */
@layer stockviewReadability {
    body.svm-right-design .svf-rail .sv-company p {
        font-size:22px!important;
    }
    body.svm-right-design .svf-rail .sv-company>.sv-identity-sector {
        font-size:14px!important;
    }
    body.svm-right-design #stock-source-price {
        font-size:34px!important;
    }
    body.svm-right-design .svf-rail .svib-activity {
        font-size:14px!important;
    }
    body.svm-right-design .svf-rail .stock-return-item span {
        font-size:14px!important;
    }
    body.svm-right-design .svf-rail .stock-return-item strong {
        font-size:16px!important;
    }

    body.svm-right-design #sv-reference-information {
        grid-template-columns:repeat(5,minmax(0,1fr))!important;
        overflow:visible!important;
        width:100%!important;
        min-width:0!important;
    }
    body.svm-right-design #sv-reference-information .svri-cell {
        min-width:0!important;
        min-height:82px!important;
        padding:9px 7px!important;
    }
    body.svm-right-design #sv-reference-information .svri-label {
        font-size:13px!important;
        line-height:1.35!important;
    }
    body.svm-right-design #sv-reference-information .svri-value {
        font-size:17px!important;
        line-height:1.4!important;
    }
    body.svm-right-design #sv-reference-information .svri-delta {
        font-size:12px!important;
    }
    body.svm-right-design #sv-reference-information .svri-dates {
        font-size:14px!important;
    }

    body.svm-right-design :is(.svsn-info,.svih-info) {
        min-width:16px!important;
        min-height:18px!important;
    }
    body.svm-right-design
    :is(.svsn-info,.svih-info,.svih-chart) .svm-symbol {
        font-size:16px!important;
    }

    body.svm-right-design .sv-sidebar-symbol {
        font-size:15px!important;
    }
    body.svm-right-design .sv-sidebar-price {
        font-size:16px!important;
    }
    body.svm-right-design
    :is(.sv-sidebar-volume,.sv-sidebar-change,.sv-sidebar-percent) {
        font-size:12px!important;
    }

    body.svm-right-design #sv-signal-row {
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        overflow:visible!important;
        gap:10px!important;
    }
    body.svm-right-design #sv-signal-row .sv-signal-cell {
        min-width:0!important;
        min-height:0!important;
        width:auto!important;
        height:auto!important;
        aspect-ratio:1!important;
    }
    body.svm-right-design #sv-signal-row
    .sv-signal-cell :is(h2,h3) {
        font-size:15px!important;
    }
    body.svm-right-design #sv-signal-row
    :is(#sv-technical-gauge,#sv-assessment-gauge-svg) {
        top:14%!important;
        height:32%!important;
    }
    body.svm-right-design #sv-signal-row
    :is(#sv-gauge-label,#sv-assessment-label),
    body.svm-right-design #sv-signal-row
    #sv-assessment-gauge.sv-no-signal::after {
        top:48%!important;
        bottom:auto!important;
        font-size:18px!important;
    }
    body.svm-right-design #sv-signal-row .sv-signal-more {
        top:61%!important;
        bottom:auto!important;
        font-size:12px!important;
    }
    body.svm-right-design #sv-signal-row .sv-signal-disclaimer {
        font-size:10px!important;
        bottom:3%!important;
        top:auto!important;
    }

    body.svm-right-design .svf-ownership-snapshot>h3 {
        font-size:16px!important;
    }
    body.svm-right-design .svf-ownership-snapshot>small {
        font-size:12px!important;
    }
    body.svm-right-design .svf-ownership-values {
        grid-template-columns:repeat(5,minmax(0,1fr))!important;
    }
    body.svm-right-design
    .svf-ownership-values :is(span,small):not(.svm-symbol) {
        font-size:13px!important;
    }
    body.svm-right-design .svf-ownership-values strong {
        font-size:16px!important;
    }
    body.svm-right-design .svf-hide-stats {
        font-size:14px!important;
    }

    @container(max-width:600px) {
        body.svm-right-design #sv-reference-information .svri-value {
            font-size:15px!important;
        }
        body.svm-right-design .svf-rail .stock-return-item span {
            font-size:12px!important;
        }
    }
    @container(max-width:520px) {
        body.svm-right-design #sv-signal-row {
            grid-template-columns:repeat(2,minmax(0,1fr))!important;
        }
    }
    @container(max-width:360px) {
        body.svm-right-design #sv-signal-row {
            grid-template-columns:1fr!important;
        }
    }
    @media(max-width:600px) {
        body.svm-right-design .svf-rail .sv-company p {
            font-size:18px!important;
        }
    }
}
/* StockView compact depth and tabs v1 */
@layer stockviewReadability {
    body.svm-right-design .svf-tablist button {
        font-size:13px!important;
    }

    body.svm-right-design #sv-market-depth h2 {
        font-size:15px!important;
    }

    body.svm-right-design #sv-market-depth [data-depth-badge] {
        font-size:12px!important;
    }

    body.svm-right-design #sv-market-depth [data-depth-body] > p {
        font-size:14px!important;
        line-height:1.5!important;
    }

    body.svm-right-design #sv-market-depth
    .sv-depth-pair :is(th,td) {
        font-size:13px!important;
    }

    body.svm-right-design #sv-market-depth
    .sv-depth-pair :is(.sv-depth-buy-head,.sv-depth-sell-head) {
        font-size:15px!important;
    }

    body.svm-right-design #sv-market-depth
    .sv-depth-totals :is(span,strong) {
        font-size:13px!important;
    }

    body.svm-right-design #sv-market-depth [data-depth-refresh] {
        font-size:14px!important;
    }
}