/* StockView font sizes plus four v1 */
@layer stockviewReadability {
    .sv-ref-bar {
        height: auto !important;
        min-height: 40px !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:20px!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:26px!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;
        font-weight:600!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;
    }
}

/* StockView larger gauges compact text v1 */
@layer stockviewReadability {
 body.svm-right-design #sv-signal-row .sv-signal-cell :is(h2,h3) {
   font-size:13px!important;
 }
 body.svm-right-design #sv-signal-row :is(#sv-technical-gauge,#sv-assessment-gauge-svg) {
   left:8%!important;
   top:18%!important;
   width:84%!important;
   height:42%!important;
   max-width:none!important;
   max-height:none!important;
   margin:0!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:60%!important;
   bottom:auto!important;
   font-size:16px!important;
   line-height:1.2!important;
 }
 body.svm-right-design #sv-signal-row .sv-signal-more {
   top:73%!important;
   bottom:auto!important;
   font-size:11px!important;
   line-height:1.2!important;
   padding:3px 10px!important;
 }
 body.svm-right-design #sv-signal-row .sv-signal-disclaimer {
   top:auto!important;
   bottom:3%!important;
   font-size:9px!important;
   line-height:1.3!important;
 }
}
/* StockView styled metric popup v3 */
@layer stockviewReadability {
 dialog#sv-metric-click-dialog {
   box-sizing:border-box!important;
   width:min(580px,calc(100vw - 32px))!important;
   max-height:80vh!important;
   overflow:auto!important;
   margin:auto!important;
   padding:22px!important;
   border:1px solid #dbe5f5!important;
   border-radius:16px!important;
   background:#fff!important;
   color:#14243f!important;
   box-shadow:0 20px 65px #10254233!important;
   font-family:var(--sv-site-font,-apple-system,BlinkMacSystemFont,"Trebuchet MS",Roboto,Ubuntu,sans-serif)!important;
   font-size:14px!important;
   line-height:1.6!important;
 }
 dialog#sv-metric-click-dialog::backdrop {
   background:rgba(15,23,42,.38)!important;
 }
 dialog#sv-metric-click-dialog h3 {
   margin:0 0 14px!important;
   font-size:18px!important;
   line-height:1.35!important;
 }
 dialog#sv-metric-click-dialog p {
   margin:12px 0!important;
   font-size:14px!important;
   overflow-wrap:anywhere!important;
 }
 dialog#sv-metric-click-dialog button {
   border:1px solid #dbe5f5!important;
   border-radius:8px!important;
   background:#eff5ff!important;
   color:#1655a4!important;
   padding:6px 12px!important;
   font-size:13px!important;
   cursor:pointer!important;
 }
}
/* StockView original compact chart text v1 */
@layer stockviewReadability {
 body.svm-right-design .sv-chart-panel .sv-detail-legend {
   font-size:10px!important;
   line-height:1.5!important;
 }
 body.svm-right-design .sv-chart-panel .sv-detail-legend > span {
   font-size:10px!important;
 }
 body.svm-right-design .sv-chart-panel .sv-detail-legend strong {
   font-size:12px!important;
 }
 body.svm-right-design .sv-chart-panel .sv-chart-toolbar-title {
   font-size:10px!important;
 }
 body.svm-right-design .sv-chart-panel :is(.svd-note,.sv-chart-footer) {
   font-size:9px!important;
 }
 body.svm-right-design .sv-chart-panel :is(.sv-chart-actions button,.svf-chart-controls button) {
   font-size:10px!important;
 }
}
/* StockView original chart font restoration v2 */
@layer stockviewSiteTypography {
 body.svm-right-design .sv-chart-panel .sv-detail-legend,
 body.svm-right-design .sv-chart-panel .sv-detail-legend :is(span,strong) {
   font-family:"JetBrains Mono",monospace!important;
 }
 body.svm-right-design .sv-chart-panel canvas {
   font-family:"JetBrains Mono",monospace!important;
 }
}
@layer stockviewReadability {
 body.svm-right-design .sv-chart-panel .sv-detail-legend,
 body.svm-right-design .sv-chart-panel .sv-detail-legend > span {
   font-size:10px!important;
   line-height:1.5!important;
 }
 body.svm-right-design .sv-chart-panel .sv-detail-legend strong {
   font-size:12px!important;
 }
}

/* StockView compact metric rows v7 */
@layer stockviewReadability {
 body.svm-right-design #sv-reference-information .svri-cell {
  box-sizing:border-box!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:nth-child(-n+3) > .svri-cell {
  height:64px!important;
  min-height:64px!important;
  padding:8px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  gap:0px!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:is(:nth-child(4),:nth-child(5)) > .svri-cell {
  height:90px!important;
  min-height:90px!important;
  padding:8px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:34px minmax(0,1fr)!important;
  column-gap:4px!important;
  row-gap:2px!important;
  align-content:start!important;
  align-items:start!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:is(:nth-child(4),:nth-child(5)) .svri-label {
  grid-column:1 / -1!important;
  grid-row:1!important;
  margin:0!important;
  line-height:1.25!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:is(:nth-child(4),:nth-child(5)) .svri-value {
  grid-column:1!important;
  grid-row:2!important;
  margin:0!important;
  line-height:1.3!important;
  min-width:0!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:nth-child(4) .svri-delta {
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  padding-top:2px!important;
  font-size:11px!important;
  line-height:1.5!important;
  white-space:nowrap!important;
 }

 body.svm-right-design #sv-reference-information
 .svri-row:nth-child(4) > .svri-cell:last-child .svri-value {
  grid-column:1 / -1!important;
 }
}

/* StockView two equal signal cards v1 */
@layer stockviewReadability {
 body.svm-right-design #sv-signal-row#sv-signal-row {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  overflow:visible!important;
 }

 body.svm-right-design #sv-signal-row#sv-signal-row
 > .sv-signal-cell:nth-child(n+3) {
  display:none!important;
 }

 body.svm-right-design #sv-signal-row#sv-signal-row
 > .sv-signal-cell:nth-child(-n+2) {
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  box-sizing:border-box!important;
 }
}

/* StockView full overview layout fix v3 */
@layer stockviewReadability {
 body.svm-right-design #sv-full-overview {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  margin-top:18px!important;
 }

 body.svm-right-design #sv-full-overview > * {
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
 }

 body.svm-right-design #sv-full-overview
 :is(#sv-technical-summary,.sv-portfolio-cta,#company-information,.sv-hub-report) {
  width:100%!important;
  padding:16px!important;
  border:1px solid #dce6f5!important;
  border-radius:12px!important;
  box-shadow:none!important;
 }

 body.svm-right-design #sv-full-overview #company-information {
  background:#fff!important;
  font-size:14px!important;
  font-weight:400!important;
 }

 body.svm-right-design #sv-full-overview #company-information p {
  margin:0 0 12px!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.65!important;
 }

 body.svm-right-design #sv-full-overview #company-information h2 {
  margin:0 0 14px!important;
  font-size:18px!important;
  line-height:1.4!important;
 }

 body.svm-right-design #sv-full-overview #company-information
 :is(p:last-child,.svci-note:last-child) {
  margin-bottom:0!important;
 }

 body.svm-right-design #sv-full-overview #company-information strong {
  font-weight:600!important;
 }

 body.svm-right-design #sv-full-overview
 :is(#sv-technical-summary,.sv-portfolio-cta) {
  font-size:13px!important;
  line-height:1.6!important;
 }

 body.svm-right-design #sv-full-overview .sv-portfolio-cta {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px!important;
 }

 body.svm-right-design #sv-full-overview .sv-portfolio-cta p {
  margin:4px 0 0!important;
  font-size:13px!important;
  line-height:1.6!important;
 }

 body.svm-right-design #sv-full-overview .sv-portfolio-cta-button {
  flex-shrink:0!important;
  font-size:14px!important;
 }

 body.svm-right-design #sv-full-overview .sv-hub-report {
  overflow-x:auto!important;
  background:#fff!important;
 }

 body.svm-right-design #sv-full-overview .sv-hub-report
 :is(th,td) {
  padding:10px!important;
  font-size:13px!important;
  line-height:1.5!important;
 }
}

/* StockView circular company identity logo v2 */
@layer stockviewReadability {
 body.svm-right-design .svf-rail
 .sv-dashboard-ident > .sv-dashboard-avatar {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  flex:0 0 52px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:50%!important;
  background:#eef3fc!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
 }

 body.svm-right-design .svf-rail
 .sv-dashboard-ident > .sv-dashboard-avatar img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
 }

 body.svm-right-design .svf-rail .sv-dashboard-ident {
  align-items:center!important;
  column-gap:12px!important;
 }

 body.svm-right-design .svf-rail .sv-dashboard-ident > .sv-company {
  min-width:0!important;
 }

 body.svm-right-design .svf-rail .sv-company > p {
  margin-top:0!important;
  margin-bottom:3px!important;
 }

 body.svm-right-design .svf-rail .sv-company > .sv-identity-sector {
  margin:0!important;
 }
}