/* StockView reference colour composition v6 — colour only, no typography */
@layer stockviewPalette, stockviewTheme;
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]){
  --blue:#0056ff!important;--sv-primary:#0056ff!important;--sv-primary-hover:#0044ca!important;
  --sv-primary-subtle:#0056ff1a!important;--ink:#000!important;--muted:#626364!important;
  --sv-muted:#626364!important;--bg:#fff!important;--white:#fff!important;--line:#dbdbdb!important;
  --sv-border:#dbdbdb!important;--sv-panel:#fff!important;--green:#008453!important;--red:#c42845!important;
 }
 html:not([data-sv-theme="dark"]) body{background-color:#fff!important;color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(.card,.svh-card,.svf-pane,.svf-stocklist,.sv-stock-sidebar,.auth-card,.svfc-input-grid article,.svfc-history-grid article){background-color:#fff!important;border-color:#dbdbdb!important;box-shadow:none!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-ref-header,.sv-smart-panel,.sv-search-panel,.sv-site-footer,.svf-footer){background-color:#fff!important;border-color:#dbdbdb!important}
 html:not([data-sv-theme="dark"]) body :is(.stock-return-item,.svri-dates,.svbn-outlook,.svfc-scenario,.svfc-scenario-cards article,.sv-fund-balance,.sv-fund-preview,.svh-stat,.svh-tool-links>a){background-color:#f4f4f4!important;border-color:#e5e5e5!important}
 html:not([data-sv-theme="dark"]) body :is(.svh-filter-bar,.sv-chart-mode-switch,.sv-scope-tabs,.svfc-chart-toolbar,.svfc-tabs){background-color:#f8f8f9!important;border-color:#dbdbdb!important}
 html:not([data-sv-theme="dark"]) body :is(h1,h2,h3,h4,h5,h6){color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(.muted,.text-muted,.svfc-muted,.svbn-muted,.sv-sidebar-note,.sv-sidebar-company,.sv-sidebar-volume,.svh-note,.svh-chart-note,.svh-index-note,.svh-ad-label,.svri-label,.svri-period){color:#626364!important}
 html:not([data-sv-theme="dark"]) body .stock-return-item span{color:#626364!important}
 html:not([data-sv-theme="dark"]) body :is(.brand,.sv-ref-brand,.sv-sidebar-symbol,.sv-smart-nav>a,.sv-smart-dropdown>summary,.sv-smart-submenu>summary){color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-smart-nav>a,.sv-smart-dropdown>summary,.sv-smart-submenu>summary):hover{background-color:#0056ff1a!important;color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body :is(.svh-card-head>a,.svh-bottom>a,.svfc-method a,.svfc-footnote a,.svh-news a,.svh-tool-links a){color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body :is(.btn:not(.btn-outline):not([class*="danger"]):not([class*="negative"]):not([class*="positive"]):not([class*="success"]):not([class*="buy"]):not([class*="sell"]),.sv-btn-primary,.sv-ref-portfolio,a.sv-portfolio-cta-button){background-color:#0056ff!important;border-color:#0056ff!important;color:#fff!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-btn-primary,.sv-ref-portfolio,a.sv-portfolio-cta-button,.btn:not(.btn-outline):not([class*="danger"]):not([class*="negative"]):not([class*="positive"]):not([class*="success"]):not([class*="buy"]):not([class*="sell"])):hover{background-color:#0044ca!important;border-color:#0044ca!important;color:#fff!important}
 html:not([data-sv-theme="dark"]) body .btn-outline{background-color:#0056ff1a!important;border-color:#0056ff33!important;color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body .btn-outline:hover{background-color:#0056ff33!important;color:#0044ca!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-chart-mode-switch,.sv-scope-tabs)>button[aria-pressed="true"],
 html:not([data-sv-theme="dark"]) body :is([role="tab"][aria-selected="true"],.stock-chart-ranges button.active,.svh-tabs button.active,.svh-chart-controls button.active){background-color:#0056ff!important;border-color:#0056ff!important;color:#fff!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-chart-mode-switch,.sv-scope-tabs)>button[aria-pressed="false"]{background-color:transparent!important;border-color:transparent!important;color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),select,textarea){background-color:#fff!important;border-color:#909090!important;color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(input[type="checkbox"],input[type="radio"]){accent-color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body ::placeholder{color:#626364!important;opacity:1}
 html:not([data-sv-theme="dark"]) body #sv-live-search{background-color:#fff!important;border-color:#909090!important}
 html:not([data-sv-theme="dark"]) body #sv-live-search:focus-within{border-color:#0056ff!important;box-shadow:0 0 0 3px #0056ff1a!important}
 html:not([data-sv-theme="dark"]) body :focus-visible{outline-color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body ::selection{background:#dfebff;color:#000}
 html:not([data-sv-theme="dark"]) body :is(.positive,.sv-positive,.svpr-up){color:#008453!important}
 html:not([data-sv-theme="dark"]) body :is(.negative,.sv-negative,.svpr-down){color:#c42845!important}
 html:not([data-sv-theme="dark"]) body .sv-sidebar-percent.up{background-color:#e0f3e7!important;color:#008453!important}
 html:not([data-sv-theme="dark"]) body .sv-sidebar-percent.down{background-color:#ffeff0!important;color:#c42845!important}
 html:not([data-sv-theme="dark"]) body .sv-sidebar-percent:not(.up):not(.down){background-color:#f1f1f1!important;color:#626364!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon{background-color:#fff!important;border-color:#dbdbdb!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon .svpr-item{background-color:#f8f8f9!important;border-color:#d1d1d1!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon .svpr-item:hover{background-color:#eff5fe!important;border-color:#0056ff33!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon :is(.svpr-info strong,.svpr-price){color:#000!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon .svpr-up .svpr-arrow{background-color:#00c11f4d!important;color:#008453!important}
 html:not([data-sv-theme="dark"]) body #sv-price-ribbon .svpr-down .svpr-arrow{background-color:#f411124d!important;color:#c42845!important}
 html:not([data-sv-theme="dark"]) body .svh-bar-track{background-color:#f1f1f1!important}
 html:not([data-sv-theme="dark"]) body .svh-bar-track>i{background-color:#0056ff!important}
 html:not([data-sv-theme="dark"]) body a.svh-map-tile{color:#fff!important;text-decoration:none!important}
 html:not([data-sv-theme="dark"]) body .svh-map-tile span{color:inherit!important}
 html:not([data-sv-theme="dark"]) body .svh-map-tile:hover{filter:none!important;box-shadow:inset 0 0 0 2px #fff!important}
 html:not([data-sv-theme="dark"]) body .svh-map-sector>strong{background-color:#2d3436!important;color:#fff!important}
 html:not([data-sv-theme="dark"]) body .svfc{--fc-bg:#fff;--fc-soft:#f4f4f4;--fc-line:#dbdbdb;--fc-text:#000;--fc-muted:#626364;--fc-blue:#0056ff;--fc-green:#008453;--fc-red:#c42845}
 html:not([data-sv-theme="dark"]) body .sv-fund-options input:checked+span{border-color:#0056ff!important;background-color:#0056ff1a!important;box-shadow:0 0 0 1px #0056ff!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-site-footer,.svf-footer,footer) a{color:#000!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-site-footer,.svf-footer) :is(p,.svf-small,.svf-bottom){color:#626364!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-site-footer,.svf-footer,footer) a.svf-button{background-color:#0056ff!important;border-color:#0056ff!important;color:#fff!important}
 html:not([data-sv-theme="dark"]) body :is(.sv-site-footer,.svf-footer,footer) a.svf-button:hover{background-color:#0044ca!important;color:#fff!important}
}

/* StockView component colour correction v6.1 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body.sv-stock-page {
 --sv-bg:#fff!important;--sv-surface:#f4f4f4!important;--sv-light:#f8f8f9!important;
 --sv-primary:#0056ff!important;--sv-border:#dbdbdb!important;--sv-muted:#626364!important;
 --sv-ink:#000!important;--sv-green:#008453!important;--sv-red:#c42845!important;
 }
 html:not([data-sv-theme="dark"]) body.sv-stock-page .container.page {background-color:#fff!important}
 html:not([data-sv-theme="dark"]) body .svh-stats>div {background-color:#f4f4f4!important;border-color:#dbdbdb!important}
 html:not([data-sv-theme="dark"]) body .svh-stats>.svh-up {background-color:#e0f3e7!important;border-color:#bde4cd!important}
 html:not([data-sv-theme="dark"]) body .svh-stats>.svh-down {background-color:#ffeff0!important;border-color:#f5ccd1!important}
 html:not([data-sv-theme="dark"]) body .svh-stats>.svh-up strong {color:#008453!important}
 html:not([data-sv-theme="dark"]) body .svh-stats>.svh-down strong {color:#c42845!important}
 html:not([data-sv-theme="dark"]) body :is(.stock-market-stat,.svri-card) {background-color:#f4f4f4!important;border-color:#e5e5e5!important}
 html:not([data-sv-theme="dark"]) body .stock-market-stat span {color:#626364!important}
 html:not([data-sv-theme="dark"]) body .stock-market-stat strong {color:#000!important}
}
/* StockView live colour correction v6.2 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body .svri-cell {
  background-color:#f4f4f4!important;border-color:#dbdbdb!important;color:#000!important;
 }
 html:not([data-sv-theme="dark"]) body .svri-cell .svri-value,
 html:not([data-sv-theme="dark"]) body .svri-cell .svri-value .sv-sn-number {color:#000!important}
 html:not([data-sv-theme="dark"]) body .svri-label {color:#626364!important}
 html:not([data-sv-theme="dark"]) body #sv-stock-search {background-color:#fff!important;color:#000!important}
 html:not([data-sv-theme="dark"]) body #sv-stock-search::placeholder {color:#626364!important;opacity:1!important}
}
/* StockView white metrics and search border v6.3 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body.sv-stock-page
 :is(.svri-cell,.stock-return-item,.stock-market-stat) {
  background-color:#fff!important;
  border:1px solid #dbdbdb!important;
  box-shadow:none!important;
 }
 html:not([data-sv-theme="dark"]) body #sv-live-search {
  background-color:#fff!important;
  border:1px solid #a7a7a7!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
 }
 html:not([data-sv-theme="dark"]) body #sv-live-search:focus-within {
  border-color:#0056ff!important;
  box-shadow:0 0 0 3px #0056ff1a!important;
 }
 html:not([data-sv-theme="dark"]) body
 #sv-live-search #sv-stock-search {
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#000!important;
 }
}

/* StockView exact search and metric correction v64 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body #sv-live-search {
  background:#fff!important;
  border:1px solid #a7a7a7!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
 }
 html:not([data-sv-theme="dark"]) body #sv-live-search:focus-within {
  border-color:#0056ff!important;
  box-shadow:0 0 0 3px #0056ff1a!important;
 }
 body #sv-reference-information .svri-row > .svri-cell {
  box-sizing:border-box!important;
  min-width:0!important;
  height:100px!important;
  min-height:100px!important;
  align-self:stretch!important;
 }
 html:not([data-sv-theme="dark"]) body
 #sv-reference-information .svri-row > .svri-cell {
  background:#fff!important;
  border:1px solid #dbdbdb!important;
  box-shadow:none!important;
 }
}


/* StockView equal heights within metric rows v65 */
@layer stockviewPalette {
 body #sv-reference-information .svri-row:nth-child(-n+3) > .svri-cell {
  height:66px!important;
  min-height:66px!important;
  box-sizing:border-box!important;
  padding:8px!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) > .svri-cell {
  height:100px!important;
  min-height:100px!important;
  box-sizing:border-box!important;
  padding:8px!important;
 }
 body #sv-reference-information .svri-row > .svri-cell {
  min-width:0!important;
  align-self:stretch!important;
 }
}


/* StockView light search border v66 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body #sv-live-search {
  border-color:#dbdbdb!important;
 }
}


/* StockView ownership boxes and centered arrows v3 */
@layer stockviewPalette {
 html:not([data-sv-theme="dark"]) body .sv-ownership-item {
  background:#fff!important;
  border:1px solid #dbdbdb!important;
  box-shadow:none!important;
 }
 body #sv-price-ribbon .svpr-arrow {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  flex:0 0 30px!important;
  padding:0!important;
  margin:0!important;
  border-radius:50%!important;
  line-height:1!important;
  text-align:center!important;
 }
}

/* StockView smaller company heading v1 */
.svri-header h1,
.svri-header h2 {
    font-size:18px !important;
    line-height:1.4 !important;
}
/* Company name 18px v2 */
.sv-company > p { font-size: 18px !important; }


/* StockView company name 18px layer fix v3 */
@layer stockviewPalette {
  body.svm-right-design .svf-rail .sv-company > p {
    font-size: 18px !important;
  }
}


/* StockView compact dividend v1 */
@layer stockviewPalette {
 body #sv-reference-information .svri-row > .svri-cell {
  height:100px!important;
  min-height:100px!important;
  box-sizing:border-box!important;
 }
 body #sv-reference-information .sv-div-period {
  display:block!important;
  font-size:10px!important;
  line-height:14px!important;
  font-weight:400!important;
  color:inherit;
 }
 body #sv-reference-information .sv-div-compact {
  display:inline-block!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:21px!important;
  cursor:help;
 }
}

/* StockView dividend compact 66px v3 */
@layer stockviewPalette {
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n) > .svri-cell {
  height:66px!important;
  min-height:66px!important;
  max-height:none!important;
  box-sizing:border-box!important;
 }
 body #sv-reference-information [data-sv-metric="cash_dividend"] .sv-sn-label {
  white-space:nowrap!important;
 }
 body #sv-reference-information [data-sv-metric="cash_dividend"] .sv-sn-number {
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:21px!important;
 }
 body #sv-reference-information [data-sv-metric="cash_dividend"] .sv-sn-period-line {
  display:none!important;
 }
}

/* StockView single-line reporting labels v1 */
@layer stockviewPalette {
 body #sv-reference-information .svri-row:nth-child(n+4) .svri-label {
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:15px!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .sv-sn-label {
  display:inline!important;
  white-space:nowrap!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) :is(.sv-sn-period-line,.svri-period) {
  display:inline!important;
  white-space:nowrap!important;
  font-size:inherit!important;
  line-height:inherit!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .svih-chart {
  flex-shrink:0!important;
  margin-left:0!important;
  padding:0!important;
  min-width:0!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .svih-chart .svm-symbol {
  font-size:12px!important;
 }
}


/* StockView restore original metric layout v4 */
@layer stockviewPalette {
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(-n+3) > .svri-cell {
  height:66px!important;
  min-height:66px!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) > .svri-cell {
  height:100px!important;
  min-height:100px!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .svri-label {
  display:block!important;
  white-space:normal!important;
  font-size:12px!important;
  line-height:16px!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .sv-sn-label {
  display:inline-block!important;
  white-space:normal!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) :is(.sv-sn-period-line,.svri-period) {
  display:block!important;
  font-size:9px!important;
  line-height:14px!important;
  font-weight:400!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .svih-chart {
  display:inline-flex!important;
  margin-left:5px!important;
  vertical-align:top!important;
 }
 body #sv-reference-information .svri-row:nth-child(n+4) .svih-chart .svm-symbol {
  font-size:15px!important;
 }
 body #sv-reference-information [data-sv-metric="cash_dividend"] .sv-sn-period-line {
  display:none!important;
 }
}


/* StockView inline reporting labels v5 */
@layer stockviewPalette {
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svri-label {
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:16px!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .sv-sn-label {
  display:inline!important;
  white-space:nowrap!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) :is(.sv-sn-period-line,.svri-period) {
  display:inline!important;
  white-space:nowrap!important;
  font-size:inherit!important;
  line-height:inherit!important;
  font-weight:400!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svih-chart {
  display:inline-flex!important;
  align-items:center!important;
  flex-shrink:0!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  vertical-align:middle!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svih-chart .svm-symbol {
  font-size:12px!important;
 }
 body #sv-reference-information#sv-reference-information [data-sv-metric="cash_dividend"] .sv-sn-period-line {
  display:none!important;
 }
}

/* StockView metric periods and ticker fallback v6 */
@layer stockviewPalette {
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) > .svri-cell {
  grid-template-rows:auto auto!important;
  align-content:start!important;
  row-gap:6px!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svri-label {
  display:block!important;
  font-size:13px!important;
  line-height:17.55px!important;
  min-height:32px!important;
  margin:0!important;
  white-space:normal!important;
  grid-row:1!important;
  grid-column:1 / -1!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .sv-sn-label {
  display:inline-block!important;
  white-space:normal!important;
  vertical-align:top!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) :is(.sv-sn-period-line,.svri-period) {
  display:block!important;
  font-size:10px!important;
  line-height:14px!important;
  font-weight:400!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svri-value {
  grid-row:2!important;
  grid-column:1!important;
  margin:0!important;
  align-self:start!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svri-delta {
  grid-row:2!important;
  grid-column:2!important;
  align-self:center!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svih-chart {
  display:inline-flex!important;
  margin-left:4px!important;
  vertical-align:top!important;
 }
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) .svih-chart .svm-symbol {
  font-size:15px!important;
 }
 body #sv-reference-information#sv-reference-information [data-sv-metric="cash_dividend"] .svri-value {
  grid-column:1 / -1!important;
 }
}

/* StockView reporting rows 80px v7 */
@layer stockviewPalette {
 body #sv-reference-information#sv-reference-information .svri-row:nth-child(n+4) > .svri-cell {
  height:80px!important;
  min-height:80px!important;
  box-sizing:border-box!important;
 }
}
