@media (min-width: 1441px) {
  .curated-list-card--vertical .curated-card-count {
    font-size: 56px;
  }
}

@media (max-width: 767.98px) {
  .img-editor-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .img-editor {
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    animation: modalSlideUp 0.25s ease-out;
  }

  .img-editor__body {
    padding: 16px;
  }

  .img-editor__slider-row {
    grid-template-columns: 70px 1fr 48px;
    gap: 8px;
  }

  .img-editor__slider-label {
    font-size: 11.5px;
  }
}

/* ── Responsive: small mobile ── */
@media (max-width: 420px) {
  .img-editor-overlay {
    padding: 0;
  }

  .img-editor {
    border-radius: 14px 14px 0 0;
    max-height: 92dvh;
  }

  .img-editor__header {
    padding: 14px 16px 10px;
  }

  .img-editor__title {
    font-size: 15px;
  }

  .img-editor__body {
    padding: 12px 14px;
  }

  .img-editor__canvas-wrap {
    margin-bottom: 12px;
  }

  .img-editor__toolbar {
    margin-bottom: 12px;
  }

  .img-editor__tool-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .img-editor__controls {
    gap: 10px;
  }

  .img-editor__slider-row {
    grid-template-columns: 62px 1fr 44px;
    gap: 6px;
  }

  .img-editor__slider-label {
    font-size: 11px;
  }

  .img-editor__slider-val {
    font-size: 10px;
  }

  .img-editor__footer {
    padding: 12px 16px 16px;
    gap: 8px;
  }

  .img-editor__footer .pf-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 1440px) {
  .logo img {
    max-width: 170px;
  }

  .login-left h1 {
    font-size: 47px;
  }

  .login-from h2 {
    font-size: 31px;
  }

  .login-from p {
    font-size: 16px;
  }

  .login-input label {
    font-size: 14px;
  }

  .login-from button {
    font-size: 16px;
  }

  .login-input input::placeholder {
    font-size: 14px;
  }

  .header .navbar-brand img {
    height: 35px;
  }

  .footer {
    padding: 25px 0px;
    padding-bottom: max(25px, calc(25px + env(safe-area-inset-bottom)));
  }

  .stocksmarketing h2 {
    font-size: 14px;
  }

  .stock-name {
    font-size: 12px;
    padding-bottom: 7px;
    white-space: nowrap;
  }

  .stocksbase ul li a {
    font-size: 12px;
    padding: 10px 12px;
  }

  .f-logo img {
    height: 17px;
  }

  .funda-share h1 {
    font-size: 48px;
  }

  .detail-price {
    font-size: 30px;
  }

  .marketcap p {
    font-size: 19px;
  }

  .technical-score h2 {
    font-size: 54px;
  }

  .dividend-share h6 {
    font-size: 14px;
  }

  .dividend-share span {
    font-size: 14px;
  }

  .technical-graph h6 {
    font-size: 14px;
  }

  .viewoverall-details a {
    padding: 8px 18px;
  }

  .risk-hcontent-stock h6 {
    font-size: 19px;
  }

  .portfolio-view h2 {
    font-size: 23px;
  }

  .portfolio-graph h1 {
    font-size: 23px;
  }

  .portfolio-score button {
    font-size: 12px;
  }

  .screener-heading h1 {
    font-size: 43px;
  }

  .curated-list-card h2 {
    font-size: 13px;
  }

  .strong-up {
    width: 32px;
    height: 32px;
  }

  .strong-up img {
    max-width: 14px;
  }

  .sharelist-data ul li {
    font-size: 11px;
    padding: 4px 10px;
  }

  .mrd-vix-data {
    font-size: 14px;
  }

  .mrd-score-neutral {
    font-size: 12px;
  }

  .mrd-score-negative {
    font-size: 12px;
  }

  .mrd-score-positive {
    font-size: 12px;
  }

  .mrd-card .card-body {
    padding: 12px !important;
  }

  .mrd-card-custom .card-body {
    padding: 12px !important;
  }

  /* ---------- sub-block 2 / 2 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .crypto-table th:nth-child(1) {
    width: 8%;
  }

  .crypto-table th:nth-child(2) {
    width: 52%;
  }

  .crypto-table th:nth-child(3) {
    width: 18%;
  }

  .crypto-table th:nth-child(4) {
    width: 11%;
  }

  .crypto-table th:nth-child(5) {
    width: 11%;
  }
}

/* ============================================================
     2. @media (max-width: 1366px)
   ============================================================ */
@media (max-width: 1366px) {
  /* ---------- sub-block 1 / 3 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .login-left h1 {
    font-size: 43px;
    padding-left: 35px;
  }

  .logo img {
    max-width: 150px;
  }

  .login-input input {
    padding: 10px 10px;
  }

  .login-from h2 {
    font-size: 29px;
  }

  .login-from p {
    margin-bottom: 20px;
  }

  .login-input {
    margin-bottom: 15px;
  }

  /* Removed .login-input span top override — grid layout centers eye button automatically */

  .funda-share h1 {
    font-size: 44px;
  }

  .detail-price {
    font-size: 24px;
  }

  .marketcap span {
    font-size: 12px;
  }

  .marketcap p {
    font-size: 17px;
  }

  .technical-score h2 {
    font-size: 44px;
  }

  /*
  .updown-monthly {
     padding: 15px 0px; 
  }
     */

  .technical {
    padding: 15px 0px 0px;
  }

  .stock-details {
    padding: 15px 0px;
  }

  .events-data {
    margin-bottom: 15px;
  }

  .share-details {
    padding: 15px 0px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 36px;
  }

  .security-compose .score-header h6 {
    font-size: 17px;
  }

  .security p {
    font-size: 14px;
  }

  .long h2 {
    font-size: 20px;
  }

  .units-value h2 {
    font-size: 18px;
  }

  .total-protofolio-risk-data h2 {
    font-size: 20px;
  }

  .setvalue-data p {
    font-size: 14px;
  }

  .total-portfolio-value {
    padding: 15px;
  }

  .allocation-rules {
    padding: 15px;
  }

  .growth-pick-card {
    padding: 15px;
  }

  .manual-override {
    padding: 15px 0px;
  }

  .reblance-units span {
    font-size: 13px;
  }

  .crypto-table th:nth-child(1) {
    width: 8%;
  }

  .crypto-table th:nth-child(2) {
    width: 50%;
  }

  .crypto-table th:nth-child(3) {
    width: 18%;
  }

  .crypto-table th:nth-child(4) {
    width: 12%;
  }

  .crypto-table th:nth-child(5) {
    width: 12%;
  }

  /* ---------- sub-block 3 / 3 ---------- */
  /* original-context: Large desktop tweaks */
  /* source: plu-design/responsive.css */
  .sector-card__spark {
    width: 100px;
    height: 44px;
  }

  .market-insight-card__bg {
    width: 160px;
    height: 135px;
  }

  .market-insight-card__content {
    max-width: 65%;
  }
}

/* ============================================================
    3. @media (max-width: 1280px)
   ============================================================ */
@media (max-width: 1280px) {
  /* ---------- sub-block 1 / 1 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .login-left h1 {
    font-size: 40px;
    padding-left: 30px;
  }

  .logo img {
    max-width: 130px;
  }

  .pershare-profit {
    min-width: 40px;
  }

  .sharename h2 {
    font-size: 12px;
  }

  .funda-share h1 {
    font-size: 40px;
  }

  .marketcap p {
    font-size: 15px;
  }

  .select-universe {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .dividen-growth h6 {
    font-size: 16px;
  }

  .security-compose .score-header h6 {
    font-size: 16px;
  }

  .security h6 {
    font-size: 17px;
  }

  .parameters-stocks h2 span {
    font-size: 19px;
  }

  .weight-sum p {
    font-size: 14px;
  }

  .security-compose .custom-progress {
    height: 8px;
  }

  .security-compose .score-value {
    font-size: 15px;
  }

  .setvalue-data h6 {
    font-size: 14px;
  }

  .manual-override h6 {
    font-size: 14px;
  }

  .long p {
    font-size: 12px;
  }

  .mrd-score-negative {
    font-size: 13px;
  }

  .mrd-card-custom .card-body {
    padding: 0px 15px !important;
  }

  .mrd-vix-data {
    font-size: 14px;
    width: 140px;
  }

  .mrd-card .card-body {
    padding: 0px 15px !important;
  }
}

/* ============================================================
    4. @media (max-width: 1166px)
   ============================================================ */
@media (max-width: 1166px) {
  .login-left h1 {
    font-size: 35px;
    padding-left: 0px;
  }

  .login-from h2 {
    font-size: 27px;
  }

  .login-from p {
    font-size: 15px;
  }

  .pershare-profit {
    min-width: 40px;
  }

  .sharename h2 {
    font-size: 12px;
  }

  .funda-share h1 {
    font-size: 36px;
  }

  .detail-price {
    font-size: 21px;
  }

  .technical-score h2 {
    font-size: 40px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 32px;
  }

  .screener-heading p {
    margin-bottom: 15px;
  }

  .security-compose .score-subtext {
    font-size: 13px;
  }

  .str-mrs ul li {
    font-size: 12px;
  }

  .str-mrs span {
    font-size: 12px;
  }

  .setvpn-usd {
    column-gap: 10px;
  }

  .total-protofolio-risk-data h2 {
    font-size: 18px;
  }

  .mkt-sent-big-num {
    font-size: 32px;
  }

  .mkt-sent-main {
    gap: 32px;
  }

  .mkt-sent-donut {
    width: 80px;
    height: 80px;
  }

  .mkt-sent-donut::before,
  .mkt-sent-donut-inner {
    inset: 12px;
  }

  .gm-bar__container {
    gap: 14px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
  }

  .gm-bar__info-cards {
    gap: 8px;
    margin-left: 10px;
  }

  .gm-info-card {
    padding: 8px 12px;
    gap: 10px;
  }

  .gm-info-card__icon {
    width: 36px;
    height: 36px;
  }

  .gm-info-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .gm-info-card__title {
    font-size: 12px;
  }

  .gm-info-card__meta {
    font-size: 11px;
    gap: 6px;
  }

  .gm-segment {
    padding: 8px 12px 10px;
    font-size: 12.5px;
  }

  .gm-segment::after {
    left: 12px;
    right: 12px;
  }

  .sector-card {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 12px 12px;
  }

  .sector-card__spark {
    width: 86px;
    height: 40px;
  }

  .sector-card__price {
    font-size: 17px;
  }

  .crash-risk-card,
  .market-insight-card {
    border-radius: 14px;
  }

  .ts-grid--regime,
  .ts-grid--portfolio {
    grid-template-columns: 1fr;
  }

  .ts-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 58px;
    font-size: 22px;
  }

  .marketrisk-page .mrd-pill {
    padding: 0 16px;
  }

  .marketrisk-page .mrd-pill span {
    font-size: 22px;
  }

  .marketrisk-page .mrd-was-box {
    height: 88px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 26px;
  }
}

/* ============================================================
    5. @media (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .header .navbar-brand img {
    height: 30px;
  }

  .stocksmarketing {
    padding-bottom: 10px;
  }

  .recent-alerts h6 {
    font-size: 19px;
  }

  .stocksmarketing-prof h6 {
    font-size: 19px;
  }

  .change-bussell p {
    font-size: 14px;
  }

  .aap-inc p {
    font-size: 14px;
  }

  .addholding button {
    margin: 15px 0px;
  }

  .addholding button {
    font-size: 14px;
  }

  .high-demands button {
    font-size: 12px;
  }

  .crypto-table th:nth-child(1) {
    width: 10%;
  }

  .crypto-table th:nth-child(2) {
    width: 45%;
  }

  .crypto-table th:nth-child(3) {
    width: 20%;
  }

  .crypto-table th:nth-child(4) {
    width: 12%;
  }

  .crypto-table th:nth-child(5) {
    width: 13%;
  }

  .score-trend__chart-container > div {
    height: 190px !important;
  }

  .ts-shell {
    grid-template-columns: var(--ts-sidebar-w-collapsed) 1fr;
  }

  .ts-shell .ts-sidebar__brand-name,
  .ts-shell .ts-sidebar__brand-sub,
  .ts-shell .ts-nav__label,
  .ts-shell .ts-sidebar__section-title,
  .ts-shell .ts-sidebar__footer-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
  }
  .pdf-report-head {
    margin-top: 37px;
  }
}

/* ============================================================
    6. @media (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .marketing-sector .dash-section-card,
  .marketing-sector .crash-risk-card {
    height: auto;
  }

  .market-insight-card {
    margin-top: 14px;
  }

  .market-insight-card__bg {
    width: 150px;
    opacity: 0.85;
  }

  .dash-table-card__head {
    padding: 12px 16px;
  }

  .dash-table-card__title {
    font-size: 14px;
  }

  .dash-table-card .stock-table thead th,
  .dash-table-card .stock-table tbody td {
    padding: 11px 12px;
  }

  .mkt-sent-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mkt-sent-stats-row {
    justify-content: flex-start;
    width: 100%;
  }

  .screener-results-card__head {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .screener-results-card .screener-results-table thead th,
  .screener-results-card .screener-results-table tbody td {
    padding: 11px 12px;
    font-size: 12.5px;
  }

  .portfolio-positions-card .portfolio-positions-head {
    padding: 14px 16px 14px 18px;
    gap: 10px;
  }

  .portfolio-positions-card .portfolio-positions-table thead th,
  .portfolio-positions-card .portfolio-positions-table tbody td {
    padding: 11px 14px;
    font-size: 12.5px;
  }

  .portfolio-positions-card .portfolio-symbol-cell {
    min-width: 180px;
  }

  .portfolio-positions-card .portfolio-name {
    max-width: 220px;
  }

  .gm-bar {
    padding: 10px 0 12px;
  }

  .gm-bar__container {
    overflow-x: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
    /* Firefox: hide scrollbar to match WebKit */
  }

  .gm-bar__container::-webkit-scrollbar {
    height: 0;
    display: none;
  }

  .gm-country-btn {
    padding: 6px 12px 6px 5px;
    font-size: 12.5px;
  }

  .gm-country-btn__icon {
    width: 26px;
    height: 26px;
  }

  .gm-bar__segments {
    padding: 0 2px;
    gap: 4px;
  }

  .gm-bar__segments::before {
    display: none;
  }

  .gm-segment {
    padding: 7px 10px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .gm-segment::after {
    left: 10px;
    right: 10px;
    height: 2.5px;
  }

  .gm-segment__icon {
    width: 20px;
    height: 20px;
  }

  .gm-segment__icon svg {
    width: 12px;
    height: 12px;
  }

  .gm-filters-btn {
    margin-left: 6px;
    padding: 7px 7px 7px 14px;
    font-size: 12px;
  }

  .gm-filters-btn__badge {
    min-width: 24px;
    height: 24px;
    font-size: 11.5px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 8px;
  }

  .gm-bar__info-cards {
    gap: 8px;
    margin-left: 8px;
  }

  .gm-info-card {
    padding: 8px 10px;
  }

  .gm-info-card__meta {
    font-size: 11px;
  }

  .login-from button {
    margin: 12px 0px;
  }

  .header .navbar-toggler {
    border: solid 1px var(--color-white);
    padding: 4px 10px;
  }

  .header .navbar-toggler-icon {
    color: var(--color-white);
    background-image: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .header .navbar-nav {
    margin-right: 15px;
    margin-top: 13px;
  }

  .header .navbar-expand-lg .navbar-nav .nav-link {
    padding: 5px 0px;
    border-bottom: solid 1px var(--color-c-ffffff-a06);
  }

  .notifications {
    margin: 8px 15px;
  }

  .asfsdf {
    flex-direction: column;
  }

  .shareabout-content {
    width: 100%;
  }

  .sharepargraph {
    width: 100%;
  }

  .viewoverall-details a {
    font-size: 14px;
  }

  .viewoverall-details a {
    padding: 7px 15px;
  }

  .technical-score h2 {
    font-size: 36px;
  }

  .sharepargraph h2 {
    margin-bottom: 15px;
  }

  .funda-share {
    column-gap: 10px;
  }

  .stock-overview .nav-tabs {
    padding: 15px;
  }

  .profile-dropdown .profile-img {
    width: 25px;
    height: 25px;
  }

  .header .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 14px;
  }

  .search-data input {
    display: none;
  }

  .userprofile-icon {
    position: absolute;
    top: 0px;
    right: 75px;
  }

  .select-universe {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .select-etf h1 {
    font-size: 28px;
  }

  .recent-alerts h6 {
    font-size: 17px;
  }

  .stocksmarketing-prof h6 {
    font-size: 17px;
  }

  .victy-beta h6 {
    font-size: 12px;
  }

  .strong-sell span {
    font-size: 12px;
  }

  .header .container {
    position: relative;
  }

  .security h6 {
    font-size: 16px;
  }

  .speedometer-container.container {
    height: auto;
  }

  .header div#navbarSupportedContent {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0px;
    right: 0px;
    background: var(--color-brand-primary);
    padding: 0px 13px;
    z-index: 9999;
  }

  .crypto-table th:nth-child(1) {
    width: 12%;
  }

  .crypto-table th:nth-child(2) {
    width: 42%;
  }

  .crypto-table th:nth-child(3) {
    width: 20%;
  }

  .crypto-table th:nth-child(4) {
    width: 13%;
  }

  .crypto-table th:nth-child(5) {
    width: 13%;
  }

  .results-table th:nth-child(1) {
    width: 40%;
  }

  .results-table th:nth-child(2) {
    width: 18%;
  }

  .results-table th:nth-child(3) {
    width: 24%;
  }

  .results-table th:nth-child(4) {
    width: 18%;
  }

  .search-data.mobile-active {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    width: 100%;
    max-width: none;
    display: flex;
    height: 70px;
    background: var(--color-c-1a1a1a);
    padding: 0 15px;
    align-items: center;
    box-sizing: border-box;
  }

  .search-data.mobile-active input {
    display: block;
    width: 100%;
    background: var(--color-white);
    height: auto;
    padding-right: 40px;
    border: none;
    box-shadow: 0 4px 15px var(--color-c-000000-a20);
  }

  .search-data.mobile-active .search-results-dropdown {
    position: absolute;
    top: 70px;
    left: 15px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    right: 15px;
  }

  .header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .header .search-clear-btn {
    right: 20px;
  }

  .navbar-toggler {
    order: 2;
  }

  .userprofile-icon {
    order: 3;
    margin-left: 10px;
  }

  .navbar-collapse {
    order: 4;
    width: 100%;
    margin-top: 10px;
    background: var(--color-brand-primary);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
  }

  .header .navbar-nav {
    margin-right: 0;
  }

  .search-data {
    width: 40px;
    transition: width 0.3s ease;
  }

  .search-data.mobile-active {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--color-brand-primary);
    z-index: 1500;
    padding: 0 15px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .search-results-dropdown {
    z-index: 1400;
  }

  .header div#navbarSupportedContent {
    position: absolute;
    width: calc(100% - 20px);
    top: 102%;
    left: 10px;
    right: 10px;
    background: var(--color-brand-primary);
    padding: 0px 13px;
    z-index: 9999;
    border-radius: 0px;
    border-radius: 0px 0px 6px 6px;
    box-shadow: 0 4px 10px var(--color-c-000000-a15);
    border: none;
    border: solid 1px var(--color-c-ffffff-a37);
  }

  .header .navbar-expand-lg .navbar-nav .nav-link {
    padding: 8px 0px;
    border-bottom: solid 1px var(--color-c-ffffff-a30);
  }

  .str-mrs h6 {
    line-height: 14px;
  }

  /* Market and sectors section layout */
  .marketing-sector .col-md-8,
  .marketing-sector .col-md-4 {
    width: 100%;
    margin-bottom: 20px;
  }

  .marketing-sector .col-md-4 {
    margin-bottom: 0;
  }

  /* Sector cards - ensure proper spacing */
  .apple-marketinginside {
    padding: 12px;
  }

  .sharename h2 {
    font-size: 13px;
  }

  .pershare-profit {
    min-width: 50px;
    padding-bottom: 8px;
  }

  .pershare-profit span {
    font-size: 12px;
  }

  .sharename-up p {
    font-size: 10px;
    padding: 4px 6px;
  }

  .sharename-up span {
    font-size: 11px;
  }

  /* Risk overlay */
  .risk-overlay {
    padding: 15px;
  }

  .risk-overlay h2 {
    font-size: 13px;
  }

  /* Table adjustments */
  .stock-table th,
  .stock-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .stock-info {
    padding: 0px 10px 0px 0px;
  }

  .stock-info img {
    width: 20px;
    height: 20px;
  }

  .stock-name {
    font-size: 13px;
  }

  .stock-symbol {
    font-size: 10px;
  }

  /* Table section titles */
  .stocksmarketing h2 {
    font-size: 18px;
  }

  .stocksmarketing a {
    font-size: 14px;
  }

  /* Main container padding */
  .main {
    padding: 0 15px;
  }

  /* User portfolio section */
  .userprotofolio {
    padding: 15px 0px;
  }

  /* Ensure proper row spacing */
  .marketing-sector .row {
    --bs-gutter-y: 15px;
  }

  .marketrisk-page.mrd-header-section {
    padding: 26px 0 44px;
  }

  .marketrisk-page .marketrisk-section__body {
    padding: 18px 16px 18px;
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 52px;
    font-size: 18px;
    border-radius: 12px;
  }

  .marketrisk-page .mrd-pill::before,
  .marketrisk-page .mrd-risk-box::before {
    width: 90px;
    height: 90px;
  }

  .marketrisk-page .mrd-pill span {
    font-size: 16px;
  }

  .marketrisk-page .mrd-was-box {
    height: 80px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 24px;
  }

  .marketrisk-page .mrd-subscores .mrd-sub {
    padding: 10px 4px;
  }

  .marketrisk-page .mrd-val {
    font-size: 14px;
  }

  .marketrisk-page .mrd-lbl {
    font-size: 11px;
  }

  .marketrisk-page .mrd-list-item {
    font-size: 13.5px;
    padding: 8px 0;
  }

  .marketrisk-page .mrd-vix-data {
    font-size: 14px;
  }

  .marketrisk-page .mrd-risk-bar-labels span {
    font-size: 10px;
  }
}

/* ============================================================
   7. @media (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  /* ---------- sub-block 1 / 2 ---------- */
  /* original-context: ------------------------------------------------- Tablet & Mobile Adjustments ------------------------------------------------- */
  /* source: plu-design/responsive.css */
  .price-trend__buckets {
    justify-content: center;
  }

  .price-trend__bucket {
    flex: 1 1 100px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }

  /* ---------- sub-block 2 / 2 ---------- */
  /* original-context: (no preceding comment in plu-design/trading-system.css) */
  /* source: plu-design/trading-system.css */
  .ts-shell {
    grid-template-columns: 1fr;
  }

  .ts-sidebar {
    display: none;
  }

  .ts-content {
    padding: 16px;
  }

  .ts-page-head__title {
    font-size: 22px;
  }

  .ts-metric__value {
    font-size: 22px;
  }

  .ts-drawer {
    width: 100%;
  }

  /* ---------- sub-block 1 / 6 ---------- */
  /* original-context: Small tablet / large phone */
  /* source: plu-design/responsive.css */
  .dash-section-card {
    padding: 14px 14px 10px;
    border-radius: 12px;
  }

  .dash-section-card__title {
    font-size: 16px;
  }

  .sector-card {
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    row-gap: 6px;
    padding: 12px;
  }

  .sector-card__icon {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
  }

  .sector-card__body {
    grid-column: 2 / 3;
  }

  .sector-card__spark {
    grid-column: 2 / 3;
    width: 100%;
    height: 38px;
  }

  .crash-risk-card {
    min-height: auto;
    padding: 16px 16px 14px;
  }

  .crash-risk-card__title {
    font-size: 14px;
  }

  .crash-risk-card__score-val {
    font-size: 22px;
  }

  .market-insight-card {
    padding: 16px 18px;
    min-height: 150px;
  }

  .market-insight-card__bg {
    width: 130px;
    height: 110px;
    opacity: 0.6;
    right: -16px;
  }

  .market-insight-card__content {
    max-width: 100%;
  }

  .market-insight-card__title {
    font-size: 16px;
  }

  .market-insight-card__desc {
    font-size: 12px;
  }

  /* Tables: compact on mobile */
  .dash-table-card__head {
    padding: 12px 14px;
  }

  .dash-table-card__title {
    font-size: 13.5px;
  }

  .dash-table-card .stock-table thead th {
    font-size: 10px;
    padding: 10px 10px;
  }

  .dash-table-card .stock-table tbody td {
    padding: 10px 10px;
  }

  .dash-table-card .row-no {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .dash-table-card .stock-info img {
    width: 28px;
    height: 28px;
  }

  .change-cell {
    gap: 6px;
  }

  .change-cell .spark-line {
    width: 60px;
    height: 22px;
  }

  .score-pill {
    min-width: 36px;
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .sector-cell__name {
    font-size: 12px;
  }

  /* ---------- sub-block 2 / 6 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .mkt-sent-main {
    gap: 22px;
    padding: 18px 12px;
  }

  /* ---------- sub-block 3 / 6 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .screener-results-card__title {
    font-size: 14px;
  }

  .screener-results-card__export {
    padding: 7px 13px;
    font-size: 11.5px;
  }

  .screener-pagination {
    padding: 12px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .screener-pagination__btn {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .screener-pagination__info {
    width: 100%;
    text-align: center;
    order: -1;
    padding: 4px 0;
  }

  /* ---------- sub-block 4 / 6 ---------- */
  /* original-context: ============================================================ SCREENERS â€” Curated List Popup responsive ============================================================ */
  /* source: plu-design/responsive.css */
  .screener-popup.modal-container-custom {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  .screener-popup__header {
    padding: 18px 18px;
    gap: 12px;
  }

  .screener-popup__title-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 12px;
  }

  .screener-popup .screener-card-title {
    font-size: 22px;
  }

  .screener-popup .screener-card-subtitle {
    font-size: 12px;
  }

  .screener-popup__illustration {
    width: 150px;
    height: 95px;
    right: 36px;
    opacity: 0.55;
  }

  .screener-popup__body {
    padding: 14px 18px 18px;
    min-height: 0;
    overflow: hidden;
  }

  .screener-popup__list {
    max-height: 55vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .screener-popup__ticker.stock-inventory-symbol {
    min-width: 64px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .screener-popup__name.stock-inventory-name {
    font-size: 12.5px;
  }

  .screener-popup__row-arrow {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* ---------- sub-block 5 / 6 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .portfolio-positions-card .portfolio-positions-head {
    align-items: flex-start;
    padding: 14px 16px 14px 18px;
  }

  .portfolio-positions-card .three-way-toggle-container {
    width: 100%;
  }

  .portfolio-positions-card .portfolio-positions-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .portfolio-positions-card .portfolio-positions-icon svg {
    width: 17px;
    height: 17px;
  }

  .portfolio-positions-card .setvalue-data h6 {
    font-size: 15px;
  }

  .portfolio-positions-card .portfolio-positions-table thead th,
  .portfolio-positions-card .portfolio-positions-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .portfolio-positions-card .portfolio-ticker {
    font-size: 12px;
    padding: 3px 9px;
  }

  .portfolio-positions-card .portfolio-name {
    font-size: 11.5px;
    max-width: 170px;
  }

  .portfolio-positions-card .portfolio-score-bar.score-bar {
    width: 60px;
  }

  /* ---------- sub-block 6 / 6 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .gm-country-btn__label {
    display: inline-block;
  }

  .gm-country-btn {
    padding: 5px 10px 5px 5px;
  }

  .gm-country-btn__caret {
    font-size: 9px;
  }

  .gm-bar__segments {
    flex-shrink: 0;
  }

  /* On mobile collapse to icon-only tabs to save space */
  .gm-segment__label {
    display: inline-block;
  }

  .gm-segment {
    padding: 7px 8px 10px;
  }

  .gm-segment::after {
    left: 8px;
    right: 8px;
  }

  .gm-filters-btn__label {
    display: inline-block;
  }

  .gm-filters-btn {
    padding: 6px 6px 6px 10px;
  }

  .portfolio-summary-card.total-portfolio-value,
  .portfolio-summary-card.allocation-rules {
    padding: 0;
  }

  .portfolio-summary-card .portfolio-positions-head {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .portfolio-summary-card .risk-mrs {
    min-width: 0;
    flex: 1 1 auto;
  }

  .portfolio-summary-card .setvalue-data {
    min-width: 0;
  }

  .portfolio-summary-card .setvalue-data h6 {
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .portfolio-summary-card .setvalue-data p {
    font-size: 12px;
    line-height: 1.25;
  }

  .neutral-market .total-protofolio-risk {
    width: auto;
    min-width: 48px;
    height: 30px;
    padding: 0 10px;
    flex-shrink: 0;
  }

  .neutral-market .portfolio-summary-body {
    padding: 14px !important;
  }

  .neutral-market .total-value {
    gap: 10px;
  }

  .neutral-market .units-value,
  .neutral-market .units-value-total {
    min-width: 0;
    flex: 1 1 0;
  }

  .neutral-market .units-value h2,
  .neutral-market .units-value-total h2 {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    padding: 0 8px;
  }

  .postions-limits {
    white-space: normal;
    overflow: visible;
  }

  .postions-limits .reblance {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 0;
  }

  .postions-limits .reblance-units {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--color-border-card);
    border-radius: 8px;
    background: var(--color-white);
  }

  .postions-limits .reblance-units span,
  .postions-limits .reblance-units h6 {
    font-size: 13px;
    line-height: 1.25;
  }

  .allocation-edit-form .regime-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .allocation-edit-form .regime-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .allocation-edit-form .regime-inputs .input-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
  }

  .allocation-edit-form .regime-inputs label {
    min-width: 0;
    text-align: center;
  }

  .allocation-edit-form .regime-inputs input {
    min-width: 0;
    height: 38px;
    padding: 6px 4px;
    font-size: 13px;
  }

  .allocation-edit-form .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .allocation-edit-form .form-actions .btn {
    width: 100%;
    margin: 0 !important;
  }

  /* ---------- sub-block 1 / 5 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .profile-empty-div {
    height: 65px;
  }

  .edit-profile-image .user-profile {
    margin-top: -32px;
  }

  .profile-card .user-profile {
    width: 60px;
    height: 60px;
  }

  .login {
    flex-direction: column;
  }

  .marketing-sector {
    margin: 0px 0px 10px;
  }

  .header input {
    min-width: 100%;
  }

  .header {
    padding: 10px 0px;
  }

  .header .navbar-toggler {
    font-size: 15px;
  }

  .login-left {
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-right {
    width: 100%;
    padding: 15px;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-from {
    width: 100%;
  }

  .login-left h1 br {
    display: none;
  }

  .logo {
    margin-bottom: 75px;
  }

  .stocksmarketing {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .stock-table td {
    padding: 10px 10px;
    white-space: nowrap;
  }

  .returns-funds h2 {
    padding: 17px 0px;
  }

  .f-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
  }

  .footer-pargraph p {
    text-align: center;
  }

  .f-logo img {
    height: 14px;
    margin-bottom: 6px;
  }

  .technical {
    flex-direction: column;
  }

  .technical-graph {
    width: 100%;
  }

  .technical-score {
    width: 100%;
    margin-top: 20px;
  }

  .dividend-share {
    background: var(--color-c-535353-a05);
    padding: 10px 10px;
  }

  .about-share {
    column-gap: 10px;
  }

  .funda-share h1 {
    font-size: 32px;
  }

  .detail-price {
    font-size: 17px;
  }

  .dividend-share h6 {
    font-size: 12px;
  }

  .dividend-share span {
    font-size: 12px;
  }

  .technical-score-share {
    min-height: auto;
  }

  .funda-share h1 {
    margin-bottom: 15px;
  }

  .userprofile-icon {
    position: absolute;
    top: 0px;
    right: 80px;
  }

  .select-etf h1 {
    font-size: 28px;
  }

  .stock-etf button {
    font-size: 15px;
  }

  .select-etf h6 {
    font-size: 14px;
  }

  .technical {
    column-gap: 10px;
  }

  .technical-score h2 {
    font-size: 21px;
    padding-top: 15px;
  }

  .portfolio-view {
    flex-direction: column;
  }

  .portfolio-graph h1 {
    font-size: 19px;
  }

  .portfolio-view h2 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .pie-chart::before {
    height: 100px;
    width: 100px;
  }

  .pie-chart {
    height: 130px;
    width: 130px;
  }

  .change-bussell p {
    font-size: 12px;
    padding-top: 5px;
  }

  .aap-inc p {
    font-size: 12px;
    padding-top: 5px;
  }

  .portfolio-view p {
    padding-bottom: 0px;
    line-height: 18px;
  }

  .crash-risk {
    padding: 15px;
  }

  .profile-dropdown .dropdown-menu {
    position: absolute;
    border-radius: 6px;
    min-width: 170px;
    margin-top: 12px !important;
    box-shadow: 0 4px 10px var(--color-c-000000-a15);
    border: none;
    padding-top: 8px;
    left: -120px;
    width: 100%;
    z-index: 10000;
  }

  .profile-dropdown .dropdown-menu::before {
    right: 20px;
    left: auto;
  }

  .price-trend__title {
    font-size: 27px;
  }

  .price-trend__bucket {
    font-size: 12px;
    padding: 10px 20px;
  }

  .price-trend__title {
    font-size: 27px;
  }

  .sortby-filter {
    flex-direction: column;
    gap: 12px;
  }

  .growth-pick-card h6 {
    font-size: 17px;
  }

  .mytech-stocks button {
    font-size: 13px;
  }

  .growth-pick-card {
    padding: 15px;
  }

  .screener-heading h1 {
    font-size: 37px;
  }

  .screener-heading p {
    font-size: 15px;
  }

  .screener {
    padding: 22px 0px;
  }

  .curated-list h6 {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .savechanges-btn {
    justify-content: start;
    padding-top: 15px;
  }

  .parameters-stocks p {
    font-size: 13px;
  }

  .security p {
    font-size: 13px;
  }

  .security-compose .score-value {
    font-size: 13px;
  }

  .security h6 {
    font-size: 14px;
  }

  .profile-card .user-profile {
    width: 50px;
    height: 50px;
  }

  .user-profile span {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .profile-card button {
    font-size: 14px;
  }

  .profile-card {
    margin-top: 20px;
  }

  .edit-profile-image h6 {
    font-size: 18px;
  }

  .profile-card.user-profile-data h6 {
    font-size: 18px;
  }

  .stocksmarketing h2 {
    padding: 0px 0px;
  }

  .trending-watchlist h6 {
    font-size: 18px;
  }

  .current-value-share h3 {
    font-size: 18px;
  }

  .current-status .stock-name {
    font-size: 17px;
  }

  .current-status img {
    width: 35px;
    height: 35px;
  }

  .trending-first-share {
    margin-top: 6px;
  }

  .watchlist-popup {
    padding: 12px 0px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 5px 15px 4px;
    margin-top: 0px !important;
  }

  .stocksmarketing .filter-btn svg {
    font-size: 12px;
  }

  .price {
    font-size: 12px;
  }

  .modal-header.all-stocks-modal-header {
    flex-direction: column;
  }

  .seeall-upper {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .seeall-upper .savechanges-btn button {
    width: 100%;
  }

  .seeall-upper .savechanges-btn {
    width: 100%;
  }

  /* ---------- sub-block 2 / 5 ---------- */
  /* original-context: @media (max-width: 1440px) { .stock-table.etfs-table th:nth-child(2) { width: 47%; } } @media (max-width: 1366px) { .stock-table.etfs-table th:nth-child(2) { width: 46%; } } @media (max-width: 1024px) { .stock-table th:nth-child(1) { width: */
  /* source: plu-design/responsive.css */
  .stock-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* .stock-table th:nth-child(1) {
      width: 50px;
    }
  
    .stock-table th:nth-child(2) {
      width: 180px;
    }
  
    .stock-table th:nth-child(3) {
      width: 110px;
    }
  
    .stock-table th:nth-child(4) {
      width: 85px;
    }
  
    .stock-table th:nth-child(5) {
      width: 95px;
    }
  
    .stock-table th:nth-child(6) {
      width: 80px;
    } */

  /* ---------- sub-block 3 / 5 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .crypto-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .crypto-table th:nth-child(1) {
    width: 50px;
  }

  .crypto-table th:nth-child(2) {
    width: 150px;
  }

  .crypto-table th:nth-child(3) {
    width: 80px;
  }

  .crypto-table th:nth-child(4) {
    width: 70px;
  }

  .crypto-table th:nth-child(5) {
    width: 70px;
  }

  /* ---------- sub-block 4 / 5 ---------- */
  /* original-context: Mobile: horizontal scroll + fixed pixel column widths */
  /* source: plu-design/responsive.css */
  .results-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .results-table th:nth-child(1) {
    width: 130px;
    min-width: 130px;
  }

  .results-table th:nth-child(2) {
    width: 75px;
    min-width: 75px;
  }

  .results-table th:nth-child(3) {
    width: 110px;
    min-width: 110px;
  }

  .results-table th:nth-child(4) {
    width: 75px;
    min-width: 75px;
  }

  /* Stack score-bar above the unit count for readability */
  .results-table .data-feed {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .results-table .score-bar {
    width: 70px;
  }

  .notifications img {
    width: 16px;
  }

  .profile-dropdown .dropdown-menu a {
    font-size: 13px;
  }

  /* ---------- sub-block 5 / 5 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .score-trend__chart-container > div {
    height: 190px !important;
  }

  .apply-filter-btn button {
    margin-top: 0px;
  }

  .toggle-save-btn {
    flex-direction: column;
  }

  .ts-grid--3,
  .ts-grid--4 {
    grid-template-columns: 1fr;
  }

  .profile.profile-shell--v2 {
    padding: 18px 0 40px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 120px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 108px;
    height: 108px;
    margin-top: -54px;
  }

  .profile-shell--v2 .pf-hero__avatar--initials {
    font-size: 32px;
  }

  .profile-shell--v2 .pf-identity {
    padding: 12px 18px 4px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 20px;
  }

  .profile-shell--v2 .pf-details {
    padding: 18px 18px 22px;
  }

  .profile-shell--v2 .pf-row {
    gap: 12px;
    padding: 12px 6px;
  }

  .marketrisk-page.mrd-header-section {
    padding: 20px 0 36px;
  }

  .marketrisk-page .mrd-icon-badge {
    width: 32px;
    height: 32px;
  }

  .marketrisk-page .mrd-icon-badge svg {
    width: 16px;
    height: 16px;
  }

  .marketrisk-page .mrd-section-header {
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
  }

  .marketrisk-page .mrd-was-box {
    height: 76px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 22px;
  }

  .marketrisk-page .mrs-chart__chart-container > div {
    height: 220px !important;
  }
}

/* ============================================================
   8. @media (max-width: 568px)
   ============================================================ */
@media (max-width: 568px) {
  /* ---------- sub-block 1 / 1 ---------- */
  /* original-context: Responsive chart height */
  /* source: plu-design/responsive.css */
  .score-trend__chart-container > div {
    height: 170px !important;
  }

  /* Legacy stock-inventory rule — kept for the old "Stock Inventory"
     blocks outside the screener popup, but we exclude
     `.screener-popup__row` so the modern flex pill + arrow layout
     survives (was rendering as a full-width red bar at 320–568px). */
  .stock-inventory-list:not(.screener-popup__row) span {
    color: var(--color-brand-primary);
    display: block;
    width: 90%;
    font-size: 12px;
  }

  /* ---------- sub-block 1 / 3 ---------- */
  /* original-context: Phone */
  /* source: plu-design/responsive.css */
  .dash-section-card__head {
    padding-left: 10px;
  }

  .dash-section-card__head::before {
    width: 3px;
  }

  .sector-card__name {
    font-size: 12px;
  }

  .sector-card__price {
    font-size: 16px;
  }

  .sector-card__change {
    font-size: 11px;
  }

  .crash-risk-card__view {
    font-size: 11px;
    padding: 5px 8px;
  }

  .market-insight-card__bg {
    width: 110px;
    opacity: 0.45;
  }

  /* ---------- sub-block 2 / 3 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .mkt-sent-container {
    padding: 14px;
    overflow: hidden;
  }

  .mkt-sent-title-text {
    font-size: 15px;
  }

  .mkt-sent-title-icon {
    width: 34px;
    height: 34px;
  }

  .mkt-sent-stats-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .mkt-sent-stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--color-surface-soft);
    border-radius: 10px;
  }

  .mkt-sent-stat-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .mkt-sent-divider {
    width: 100%;
    height: 1px;
  }

  .mkt-sent-main {
    gap: 12px;
    padding: 16px 12px;
  }

  .mkt-sent-big-num {
    font-size: 26px;
  }

  .mkt-sent-donut {
    width: 70px;
    height: 70px;
  }

  .mkt-sent-donut::before,
  .mkt-sent-donut-inner {
    inset: 10px;
  }

  .mkt-sent-donut-inner svg {
    width: 22px;
    height: 22px;
  }

  .mkt-sent-grid-bar {
    height: 14px;
    gap: 1px;
  }

  /* ---------- sub-block 3 / 3 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .screener-results-card .screener-results-table thead th,
  .screener-results-card .screener-results-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }

  .screener-ticker-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .screener-signal-pill {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .screener-score-cell {
    min-width: 110px;
    gap: 8px;
  }

  .screener-name-cell {
    max-width: 160px;
    font-size: 12px;
  }

  /* ---------- sub-block 1 / 1 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .login-left h1 {
    font-size: 27px;
    padding-left: 0px;
  }

  .risk-hcontent {
    width: 40px;
  }

  .stock-overview .nav-tabs .nav-link {
    font-size: 13px;
  }

  .stock-overview .nav-tabs {
    column-gap: 20px;
  }

  .stock-overview .nav-tabs .nav-item::after {
    right: -10px;
  }

  .detail-price {
    margin-bottom: 15px;
  }

  .dividend-share {
    margin-bottom: 12px;
  }

  .about-share {
    flex-direction: column;
    margin-bottom: 0px;
  }

  .addholding {
    flex-direction: column;
  }

  .risk-hcontent-stock h6 {
    font-size: 17px;
  }

  .addholding button {
    margin: 8px 0px;
  }

  .risk-hcontent-stock p {
    font-size: 13px;
  }

  .profile-dropdown .profile-name {
    display: none;
  }

  .mytech-stocks {
    flex-wrap: wrap;
    gap: 10px;
  }

  .apply-filter-btn button {
    font-size: 12px;
  }

  .notif-dropdown {
    width: 220px;
    z-index: 10000;
  }

  .notif-item strong {
    font-size: 13px;
  }

  span.reload-com {
    margin-right: 5px;
  }

  .savechanges-btn button {
    font-size: 12px;
  }

  .marketrisk-page.mrd-header-section {
    padding: 16px 0 28px;
  }

  .marketrisk-page .marketrisk-section__body {
    padding: 14px 12px 16px;
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 46px;
    font-size: 16px;
    border-radius: 10px;
  }

  .marketrisk-page .mrd-pill {
    padding: 0 14px;
  }

  .marketrisk-page .mrd-pill span {
    font-size: 14px;
  }

  .marketrisk-page .mrd-risk-box {
    font-size: 16px;
  }

  .marketrisk-page .mrd-was-box {
    height: 72px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 20px;
  }

  /* Subscores: 4-col flex â†’ 2Ã—2 grid so labels stay readable */
  .marketrisk-page .mrd-subscores {
    flex-wrap: wrap;
  }

  .marketrisk-page .mrd-subscores .mrd-sub {
    flex: 0 0 50%;
  }

  .marketrisk-page .mrd-subscores .mrd-sub:nth-child(2) {
    border-right: none;
  }

  .marketrisk-page .mrd-subscores .mrd-sub:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .marketrisk-page .mrs-chart__chart-container > div {
    height: 200px !important;
  }

  /* 5 labels in tight space — shrink + tighten so none drop off */
  .marketrisk-page .mrd-risk-bar-labels span {
    font-size: 9.5px;
  }
}

/* ============================================================
   9. @media (max-width: 450px)
   ============================================================ */
@media (max-width: 450px) {
  /* ---------- sub-block 1 / 1 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .events-data {
    flex-direction: column;
  }

  .marketcap {
    margin-bottom: 15px;
  }

  .allocation-edit-form .regime-input-group {
    padding: 10px;
  }

  .allocation-edit-form .regime-inputs {
    grid-template-columns: 1fr;
  }

  .allocation-edit-form .regime-inputs .input-wrapper {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
  }

  .allocation-edit-form .regime-inputs label {
    text-align: left;
  }

  /* ---------- sub-block 1 / 5 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .price-trend__title {
    text-align: center;
    width: 100%;
  }

  .price-trend__buckets {
    gap: 0.4rem;
  }

  .price-trend__bucket {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    min-width: 70px;
  }

  /* ---------- sub-block 2 / 5 ---------- */
  /* original-context: Responsive Fix */
  /* source: plu-design/responsive.css */
  .stats-grid {
    gap: 0.5rem;
    /* Tighter gap on very small screens */
  }

  .stat-card {
    padding: 0.5rem;
    flex-direction: column;
    /* Optional: stacks value over label if space is tight */
    align-items: center;
    text-align: center;
  }

  .setvpn-usd.mrs-weekly {
    display: flex;
    /* enable flexbox */
    /* stack children vertically */
    gap: 2px;
    /* space between items */

    align-items: flex-start;
    /* align items to the left */
  }

  .screener-popup .screener-card-title {
    font-size: 20px;
  }

  .screener-popup__row.stock-inventory-list {
    padding: 9px 12px;
    gap: 10px;
  }

  /* ---------- sub-block 4 / 5 ---------- */
  /* original-context: (no preceding comment in plu-design/responsive.css) */
  /* source: plu-design/responsive.css */
  .portfolio-positions-card .portfolio-positions-table thead th,
  .portfolio-positions-card .portfolio-positions-table tbody td {
    padding: 9px 10px;
  }

  .portfolio-positions-card .portfolio-symbol-cell {
    min-width: 140px;
  }

  .portfolio-positions-card .portfolio-name {
    max-width: 130px;
  }

  /* ---------- sub-block 5 / 5 ---------- */
  /* original-context: Drawer responsive */
  /* source: plu-design/responsive.css */
  .gm-drawer {
    max-width: 100%;
  }

  .gm-drawer__head {
    padding: 18px 18px 14px;
  }

  .gm-drawer__title {
    font-size: 18px;
  }

  .gm-drawer__body {
    padding: 14px 18px 18px;
    gap: 16px;
  }

  .gm-drawer__foot {
    padding: 14px 18px;
  }

  .gm-drawer__btn {
    height: 42px;
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-card {
    border-radius: 14px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 104px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 96px;
    height: 96px;
    margin-top: -48px;
  }

  .profile-shell--v2 .pf-hero__avatar--initials {
    font-size: 28px;
  }

  .profile-shell--v2 .pf-hero__camera {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .profile-shell--v2 .pf-identity {
    padding: 10px 14px 2px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 18px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-details {
    padding: 14px 14px 20px;
  }

  .profile-shell--v2 .pf-row {
    gap: 10px;
    padding: 11px 4px;
  }

  .profile-shell--v2 .pf-row__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
  }

  .profile-shell--v2 .pf-row__value,
  .profile-shell--v2 .pf-row__input {
    font-size: 14px;
  }

  .profile-shell--v2 .pf-icon-btn {
    width: 32px;
    height: 32px;
  }

  .profile-shell--v2 .pf-photo-actions {
    padding: 12px 14px 0;
  }

  .profile-shell--v2 .pf-btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 1440px) {
  /* shared chrome */
  .header .navbar-brand img {
    height: 34px;
  }

  .header .navbar-nav .nav-link {
    padding: 6px 12px;
    font-size: 14px;
  }

  .plutus-profile-btn .profile-name {
    font-size: 13.5px;
  }

  .notif-dropdown {
    width: 360px;
  }

  /* dashboard */
  .marketing-sector {
    padding-top: 18px;
    padding-bottom: 0px;
  }

  .dash-section-card,
  .crash-risk-card {
    padding: 18px;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 17px;
  }

  .dash-section-card__sub {
    font-size: 12.5px;
  }

  .sector-card__name {
    font-size: 13.5px;
  }

  .sector-card__price {
    font-size: 15px;
  }

  .dash-table-card {
    padding: 16px;
  }

  .dash-table-card__title {
    font-size: 16px;
  }

  /* details */
  .detail-page {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .detail-hero-card {
    padding: 22px;
  }

  .detail-hero-price__value {
    font-size: 44px;
  }

  .detail-hero-price__change {
    font-size: 14px;
  }

  .detail-section-card {
    padding: 22px;
  }

  .technical-score h2 {
    font-size: 50px;
  }

  .funda-share h1 {
    font-size: 44px;
  }

  /* portfolio */
  .portfolio-alocation,
  .long-postion,
  .userprotofolio {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 18px;
  }

  .portfolio-symbol-cell,
  .portfolio-score-cell,
  .portfolio-units-cell,
  .portfolio-price-cell {
    font-size: 13.5px;
  }

  .strong-bull-data {
    padding: 14px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 30px;
  }

  .screener-heading p {
    font-size: 13.5px;
  }

  .curated-list-card {
    padding: 16px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 22px;
  }

  .screener-results-card {
    padding: 18px;
  }

  .screener-results-card__head-text h2 {
    font-size: 18px;
  }

  .screener-ticker-pill {
    font-size: 13.5px;
  }

  .toprated-buys,
  .dividen-growth {
    padding: 12px;
  }

  /* watchlist */
  .watchlist-page {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .watchlist-page .dash-table-card {
    padding: 18px;
  }

  .mkt-toggle__btn {
    font-size: 13px;
  }

  .filter-btn {
    font-size: 13px;
  }

  /* profile */
  .profile-shell--v2 {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .profile-shell--v2 .pf-card {
    padding: 22px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 110px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 110px;
    height: 110px;
    margin-top: -55px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 22px;
  }

  /* seeall - full viewport modal across all breakpoints */
  .seeall-page .modal-dialog,
  .see-all-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .seeall-page .modal-content,
  .see-all-modal .modal-content {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    height: 100%;
  }

  .seeall-head {
    padding: 24px 24px 16px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 20px;
  }

  .seeall-head__sub {
    font-size: 12px;
  }

  /* marketrisk */
  .marketrisk-page,
  .mrd-header-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .marketrisk-intro {
    padding: 22px;
  }

  .marketrisk-section {
    padding: 22px;
  }

  .marketrisk-section__body {
    gap: 16px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 16px;
  }

  .marketrisk-page .mrd-pill {
    padding: 5px 12px;
  }

  /* weightings */
  .weightings-page,
  .score-weightings {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .weightings-intro {
    padding: 22px;
  }

  .weightings-intro__icon {
    width: 48px;
    height: 48px;
  }

  .security-compose {
    padding: 18px;
  }

  .score-value {
    font-size: 18px;
  }

  .score-header {
    font-size: 14.5px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 22px;
  }
}

@media (max-width: 1366px) {
  /* shared chrome */
  .header .navbar-brand img {
    height: 32px;
  }

  .header .navbar-nav .nav-link {
    padding: 6px 10px;
    font-size: 13.5px;
  }

  .search-data .form-control {
    font-size: 13.5px;
  }

  .gm-bar__container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 10px;
  }

  .gm-bar__info-cards {
    gap: 8px;
    margin-left: 10px;
  }

  .gm-info-card {
    padding: 8px 12px;
  }

  .gm-info-card__icon {
    width: 36px;
    height: 36px;
  }

  .gm-info-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .gm-info-card__title {
    font-size: 12px;
  }

  .gm-info-card__meta {
    font-size: 11px;
  }

  /* dashboard */
  .dash-section-card,
  .crash-risk-card {
    padding: 16px;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 16px;
  }

  .sector-card {
    padding: 10px 12px;
  }

  .sector-card__price {
    font-size: 14.5px;
  }

  .dash-table-card {
    padding: 14px;
  }

  .dash-table-card__title {
    font-size: 15.5px;
  }

  /* details */
  .detail-page {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .detail-hero-card {
    padding: 20px;
  }

  .detail-hero-price__value {
    font-size: 40px;
  }

  .detail-section-card {
    padding: 20px;
  }

  .detail-section-nav__btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .price-bucket-toggle__btn {
    padding: 5px 12px;
    font-size: 12.5px;
  }

  /* portfolio */
  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 16px;
  }

  .total-protofolio {
    font-size: 14px;
  }

  .total-portfolio-value .total-protofolio-risk {
    font-size: 12.5px;
  }

  .tpv-input-wrapper input {
    font-size: 14px;
  }

  .strong-bull-data h6 {
    font-size: 14px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 28px;
  }

  .curated-list-card {
    padding: 14px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 22px;
  }

  .screener-results-card {
    padding: 16px;
  }

  .screener-results-card__head-text h2 {
    font-size: 17px;
  }

  .screener-results-table th,
  .screener-results-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .screener-signal-pill {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  /* watchlist */
  .watchlist-page .dash-table-card {
    padding: 16px;
  }

  .watchlist-page .dash-table-card__head {
    gap: 10px;
  }

  .mkt-toggle__btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* profile */
  .profile-shell--v2 .pf-card {
    padding: 20px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 104px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 104px;
    height: 104px;
    margin-top: -52px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 21px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 13px;
  }

  /* seeall - full viewport modal */
  .see-all-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .see-all-modal .modal-content {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    height: 100%;
  }

  .seeall-head {
    padding: 20px 20px 12px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 20px;
  }

  .seeall-head__actions {
    gap: 10px;
  }

  .seeall-filter-field select.seeall-filter-select {
    font-size: 13px;
  }

  .seeall-export-btn {
    font-size: 13px;
    padding: 7px 12px;
  }

  /* marketrisk */
  .marketrisk-intro {
    padding: 20px;
  }

  .marketrisk-section {
    padding: 20px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 14px;
  }

  .mrd-section-header__title {
    font-size: 17px;
  }

  .mrd-subscores .mrd-sub .mrd-val {
    font-size: 18px;
  }

  /* weightings */
  .weightings-intro {
    padding: 20px;
  }

  .security-compose {
    padding: 16px;
  }

  .inner-accordion {
    padding: 14px;
  }

  .inner-toggle-btn {
    font-size: 14px;
  }

  .weightings-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .weight-sum-pill {
    font-size: 12.5px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 21px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

@media (max-width: 1280px) {
  /* shared chrome */
  .header .navbar-brand img {
    height: 30px;
  }

  .header .navbar-nav .nav-link {
    padding: 6px 9px;
    font-size: 13px;
  }

  .plutus-profile-btn .profile-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer {
    padding: 22px 0;
    padding-bottom: max(22px, calc(22px + env(safe-area-inset-bottom)));
  }

  .footer-pargraph p {
    font-size: 12.5px;
  }

  /* dashboard */
  .dash-section-card,
  .crash-risk-card {
    padding: 14px;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 15.5px;
  }

  .sector-card__name {
    font-size: 13px;
  }

  .sector-card__price {
    font-size: 14px;
  }

  .crash-risk-card__score-val {
    font-size: 22px;
  }

  /* details */
  .detail-hero-card {
    padding: 18px;
  }

  .detail-hero-price__value {
    font-size: 36px;
  }

  .detail-section-card {
    padding: 18px;
  }

  .technical-score h2 {
    font-size: 46px;
  }

  .funda-share h1 {
    font-size: 40px;
  }

  .detail-section-nav__btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* portfolio */
  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 14px;
  }

  .portfolio-symbol-cell,
  .portfolio-score-cell,
  .portfolio-units-cell,
  .portfolio-price-cell {
    font-size: 13px;
  }

  .regime-inputs {
    gap: 10px;
  }

  .strong-bull-data {
    padding: 12px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 26px;
  }

  .curated-list-card {
    padding: 14px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 18px;
  }

  .screener-results-card {
    padding: 14px;
  }

  .screener-results-card__head-text h2 {
    font-size: 16px;
  }

  .screener-results-table th,
  .screener-results-table td {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  /* watchlist */
  .watchlist-page .dash-table-card {
    padding: 14px;
  }

  .watchlist-page .stock-table th,
  .watchlist-page .stock-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .mkt-toggle__btn {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  /* profile */
  .profile-shell--v2 .pf-card {
    padding: 18px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 96px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 96px;
    height: 96px;
    margin-top: -48px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 20px;
  }

  .profile-shell--v2 .pf-row {
    padding: 12px 14px;
  }

  .profile-shell--v2 .pf-row__body {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  .profile-shell--v2 .pf-row__input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* seeall - full viewport modal */
  .see-all-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .see-all-modal .modal-content {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    height: 100%;
  }

  .seeall-head {
    padding: 18px 18px 12px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 20px;
  }

  .seeall-pagination {
    padding: 12px 18px;
  }

  /* marketrisk */
  .marketrisk-intro {
    padding: 18px;
  }

  .marketrisk-section {
    padding: 18px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 14px;
  }

  .mrd-section-header__title {
    font-size: 16.5px;
  }

  .mrd-was-box .mrd-val,
  .mrd-risk-box .mrd-val {
    font-size: 22px;
  }

  /* weightings */
  .weightings-intro {
    padding: 18px;
  }

  .security-compose {
    padding: 14px;
  }

  .inner-accordion {
    padding: 12px;
  }

  .score-value {
    font-size: 17px;
  }

  .weightings-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 20px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 11px 12px;
    font-size: 13px;
  }
}

@media (max-width: 1166px) {
  /* shared chrome */
  .header .navbar-brand img {
    height: 28px;
  }

  .header .navbar-nav .nav-link {
    padding: 6px 8px;
    font-size: 12.5px;
  }

  .search-data {
    max-width: 240px;
  }

  .notif-dropdown {
    width: 340px;
  }

  .gm-bar__segments {
    gap: 6px;
  }

  .gm-segment {
    padding: 6px 10px;
  }

  /* dashboard */
  .marketing-sector .row > [class*="col-"] {
    margin-bottom: 14px;
  }

  .dash-section-card,
  .crash-risk-card {
    padding: 14px;
  }

  .dash-section-card__head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dash-section-card__action {
    font-size: 12.5px;
  }

  .sector-card {
    padding: 10px;
  }

  .sector-card__icon {
    width: 28px;
    height: 28px;
  }

  .dash-table-card__see-all {
    font-size: 12.5px;
  }

  .market-insight-card__bg {
    padding: 18px;
    background-size: cover;
  }

  .stock-table th,
  .stock-table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  /* details */
  .detail-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-hero-card {
    padding: 16px;
  }

  .detail-hero-body {
    flex-wrap: wrap;
    gap: 12px;
  }

  .detail-hero-price__value {
    font-size: 34px;
  }

  .detail-section-card {
    padding: 16px;
  }

  .detail-section-nav {
    gap: 6px;
    flex-wrap: wrap;
  }

  .technical-score h2 {
    font-size: 42px;
  }

  .technical-graph h6 {
    font-size: 13px;
  }

  .marketcap p {
    font-size: 17px;
  }

  .dividend-share h6,
  .dividend-share span {
    font-size: 13px;
  }

  /* portfolio */
  .portfolio-alocation .row > [class*="col-"],
  .long-postion .row > [class*="col-"],
  .userprotofolio .row > [class*="col-"] {
    margin-bottom: 12px;
  }

  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 14px;
  }

  .portfolio-positions-card .stock-table,
  .portfolio-summary-card .stock-table {
    font-size: 12.5px;
  }

  .regime-inputs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .regime-input-group {
    flex: 1 1 calc(50% - 6px);
  }

  .manual-override {
    flex-wrap: wrap;
  }

  .manual-override > * {
    flex: 1 1 calc(50% - 6px);
  }

  .allocation-rules {
    padding: 14px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 24px;
  }

  .screener-heading p {
    font-size: 12.5px;
  }

  .curated-list-card {
    padding: 14px;
    margin-bottom: 14px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 16px;
  }

  .screener-results-card__head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .screener-results-card__head-text h2 {
    font-size: 15.5px;
  }

  .screener-results-table {
    font-size: 12.5px;
  }

  .screener-ticker-pill {
    font-size: 12.5px;
  }

  .screener-filters-body {
    gap: 12px;
  }

  .applyfilter-data,
  .sortby-filter {
    gap: 8px;
  }

  .toprated-buys,
  .dividen-growth {
    padding: 10px;
  }

  .pd-dropdown__trigger {
    font-size: 12.5px;
  }

  /* watchlist */
  .watchlist-page .dash-table-card {
    padding: 14px;
  }

  .watchlist-page .dash-table-card__head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .watchlist-page .stock-table {
    font-size: 12.5px;
  }

  .watchlist-page .stock-table th,
  .watchlist-page .stock-table td {
    padding: 9px 10px;
  }

  .dash-table-card .stock-table .watchlist-remove-btn {
    width: 28px;
    height: 28px;
  }

  .watchlist-empty {
    padding: 20px 12px;
    font-size: 12.5px;
  }

  .watchlist-remove-btn {
    width: 28px;
    height: 28px;
  }

  .mkt-toggle__btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  .mkt-toggle__dot {
    width: 5px;
    height: 5px;
  }

  .filter-btn {
    font-size: 12.5px;
  }

  .sort-icon {
    width: 14px;
    height: 14px;
  }

  /* profile */
  .profile-shell--v2 {
    padding: 12px 0;
  }

  .profile-shell--v2 .pf-card {
    padding: 12px;
    border-radius: 14px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 72px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 76px;
    height: 76px;
    margin-top: -38px;
  }

  .profile-shell--v2 .pf-hero__avatar {
    border-width: 3px;
  }

  .profile-shell--v2 .pf-hero__camera {
    width: 28px;
    height: 28px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 17px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-photo-actions {
    padding: 12px 14px 0;
  }

  .profile-shell--v2 .pf-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .profile-shell--v2 .pf-details {
    padding: 12px;
  }

  .profile-shell--v2 .pf-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-shell--v2 .pf-row.is-editing {
    flex-wrap: wrap;
  }

  .profile-shell--v2 .pf-row.is-editing .pf-row__body {
    flex: 1 1 100%;
    order: 1;
  }

  .profile-shell--v2 .pf-row.is-editing .pf-row__actions {
    order: 2;
    flex-shrink: 0;
  }

  .profile-shell--v2 .pf-row.is-editing .pf-row__icon {
    order: 0;
    align-self: flex-start;
  }

  .profile-shell--v2 .pf-row__body {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  .profile-shell--v2 .pf-row__label {
    font-size: 12px;
  }

  .profile-shell--v2 .pf-row__value {
    font-size: 13px;
    word-break: break-word;
  }

  .profile-shell--v2 .pf-row__input {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    box-sizing: border-box;
  }

  /* seeall */
  .seeall-head {
    padding: 12px;
    gap: 10px;
  }

  .seeall-head__inner {
    gap: 8px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 17px;
  }

  .seeall-head__sub {
    font-size: 12px;
  }

  .seeall-head__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .seeall-filter-field,
  .seeall-export-btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .seeall-filter-field select.seeall-filter-select {
    width: 100%;
    font-size: 12.5px;
  }

  .seeall-export-btn {
    justify-content: center;
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .seeall-table-scroll .stock-table {
    min-width: 640px;
    font-size: 12px;
  }

  .seeall-table-scroll .stock-table th,
  .seeall-table-scroll .stock-table td {
    padding: 8px 10px;
  }

  .seeall-pagination {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .seeall-pagination__label {
    text-align: center;
    font-size: 12px;
  }

  .seeall-pagination__buttons {
    justify-content: center;
  }

  .seeall-pagination__btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .close-button {
    width: 32px;
    height: 32px;
  }

  /* marketrisk */
  .marketrisk-page,
  .mrd-header-section {
    padding: 10px 0;
  }

  .marketrisk-intro,
  .marketrisk-section {
    padding: 12px;
    border-radius: 12px;
  }

  .marketrisk-intro h1,
  .marketrisk-intro h2 {
    font-size: 17px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 10px;
  }

  .mrd-section-header {
    gap: 8px;
  }

  .mrd-section-header__title {
    font-size: 15px;
  }

  .mrd-icon-badge {
    width: 30px;
    height: 30px;
  }

  .marketrisk-page .mrd-pill {
    padding: 4px 9px;
  }

  .mrd-subscores .mrd-sub {
    flex: 1 1 100%;
  }

  .mrd-subscores .mrd-sub .mrd-val {
    font-size: 14px;
  }

  .mrd-subscores .mrd-sub .mrd-lbl {
    font-size: 11px;
  }

  .mrd-was-box .mrd-val,
  .mrd-risk-box .mrd-val {
    font-size: 19px;
  }

  .mrd-risk-bar {
    height: 8px;
  }

  .mrd-list-item {
    padding: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mrd-list-item .mrd-val {
    font-size: 13px;
  }

  .mrd-vix-data {
    font-size: 12.5px;
  }

  /* weightings */
  .weightings-page,
  .score-weightings {
    padding: 10px 0;
  }

  .weightings-intro {
    padding: 12px;
    border-radius: 12px;
  }

  .weightings-intro h1,
  .weightings-intro h2 {
    font-size: 16.5px;
  }

  .weightings-intro p {
    font-size: 12.5px;
  }

  .weightings-intro__icon {
    width: 36px;
    height: 36px;
  }

  .security-compose {
    padding: 10px;
    border-radius: 12px;
  }

  .inner-accordion {
    padding: 10px;
    border-radius: 10px;
  }

  .inner-toggle-btn {
    font-size: 13px;
    padding: 8px 10px;
  }

  .score-header {
    font-size: 13px;
  }

  .score-value {
    font-size: 15.5px;
  }

  .score-subtext {
    font-size: 11.5px;
  }

  .weightings-btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .weight-sum-pill {
    font-size: 12px;
    padding: 6px 10px;
  }

  .weight-sum-pill__icon {
    width: 14px;
    height: 14px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-header {
    padding: 10px 12px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 16px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-body > div {
    padding: 10px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table {
    font-size: 12px;
    min-width: 640px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 8px 10px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 220px"] {
    min-width: 160px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 130px"] {
    min-width: 110px !important;
  }
}

@media (max-width: 568px) {
  /* shared chrome */
  .header .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header .navbar-brand img {
    height: 22px;
  }

  .notifications .plutus-icon-btn,
  .userprofile-icon .plutus-icon-btn {
    width: 34px;
    height: 34px;
  }

  .plutus-profile-btn .profile-img {
    width: 30px;
    height: 30px;
  }

  .notif-dropdown {
    width: 260px;
    right: 0;
    max-height: 75vh !important;
    overflow-y: auto;
  }

  /* Unit Allocation: Long / Short / Cash cards responsive styles */

  .cash-bull .long {
    padding: 6px 6px;
    min-width: 0;
  }

  .cash-bull .long h6 {
    font-size: 11px;
    padding-left: 12px;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .cash-bull .long h6::after {
    width: 7px;
    height: 7px;
  }

  .cash-bull .long h2 {
    font-size: 16px;
    padding: 2px 0;
  }

  .footer {
    padding: 14px 0;
    padding-bottom: max(14px, calc(14px + env(safe-area-inset-bottom)));
  }

  .footer-pargraph p {
    font-size: 12px;
    line-height: 1.45;
  }

  .gm-bar__container {
    padding: 6px 8px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 8px;
  }

  .gm-bar__info-cards {
    gap: 6px;
    margin-left: 8px;
  }

  .gm-info-card {
    padding: 6px 10px;
    gap: 8px;
  }

  .gm-info-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .gm-info-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .gm-info-card__title {
    font-size: 11px;
  }

  .gm-info-card__meta {
    font-size: 10px;
    gap: 4px;
  }

  .gm-info-card__date-icon,
  .gm-info-card__time-icon {
    width: 10px;
    height: 10px;
  }

  .gm-segment {
    padding: 5px 8px;
    border-radius: 8px;
  }

  .gm-segment__icon {
    width: 15px;
    height: 15px;
  }

  .gm-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  /* dashboard */
  .marketing-sector {
    padding: 8px 0;
  }

  .dash-section-card,
  .crash-risk-card {
    padding: 10px;
  }

  .dash-section-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 14.5px;
  }

  .sector-card__icon {
    width: 26px;
    height: 26px;
  }

  .crash-risk-card__score-val {
    font-size: 18px;
  }

  .crash-risk-card__score-label {
    font-size: 11px;
  }

  .dash-table-card {
    padding: 10px;
    border-radius: 10px;
  }

  .dash-table-card__title {
    font-size: 14px;
  }

  .dash-table-card .stock-table,
  .dash-table-card .etfs-table {
    min-width: 580px;
  }

  .dashboard-sector-popup {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dashboard-sector-popup__body {
    padding: 10px;
  }

  .market-insight-card__bg {
    padding: 14px;
    border-radius: 12px;
  }

  /* details */
  .detail-page {
    padding: 8px 8px 14px;
  }

  .detail-hero-card,
  .detail-section-card {
    padding: 12px;
  }

  .detail-hero-price__value {
    font-size: 24px;
  }

  .detail-hero-price__usd {
    font-size: 14px;
  }

  .technical-score h2 {
    font-size: 28px;
  }

  .funda-share h1 {
    font-size: 26px;
  }

  .marketcap p {
    font-size: 14px;
  }

  .detail-section-nav__btn {
    padding: 6px 9px;
    font-size: 11.5px;
  }

  .price-bucket-toggle__btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }

  .classification-detail {
    flex-direction: column;
    align-items: center;
  }

  /* portfolio */
  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 10px;
    border-radius: 10px;
  }

  .portfolio-positions-card .stock-table,
  .portfolio-summary-card .stock-table {
    min-width: 520px;
  }

  .portfolio-symbol-cell {
    min-width: 80px;
  }

  .portfolio-positions-icon,
  .total-protofolio {
    font-size: 12.5px;
  }

  .strong-bull-data {
    padding: 10px;
  }

  .strong-bull-data h6 {
    font-size: 12.5px;
  }

  .regime-input-group label,
  .regime-input-group span {
    font-size: 12px;
  }

  .tpv-input-wrapper input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .tpv-input-wrapper button,
  .allocation-rules button {
    width: 100%;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 18px;
  }

  .curated-list-card {
    padding: 10px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 15px;
  }

  .screener-results-card {
    padding: 10px;
  }

  .screener-results-card__head-text h2 {
    font-size: 14px;
  }

  .screener-results-table {
    min-width: 560px;
  }

  .screener-popup {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .screener-popup__header {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    z-index: 2;
  }

  .screener-popup__close {
    width: 32px;
    height: 32px;
  }

  .screener-popup__body {
    padding: 10px 12px 16px;
    min-height: 0;
    overflow: hidden;
  }

  .screener-popup__body-title {
    font-size: 13.5px;
    flex-shrink: 0;
  }

  .screener-popup__list {
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .screener-popup__row {
    padding: 9px 10px;
    gap: 8px;
  }

  .screener-popup__ticker {
    font-size: 12.5px;
  }

  .screener-popup__name {
    font-size: 12px;
  }

  .screener-popup__row-arrow {
    width: 18px;
    height: 18px;
  }

  .screener-empty {
    padding: 16px 10px;
  }

  /* watchlist */
  .watchlist-page .dash-table-card {
    padding: 10px;
    border-radius: 10px;
  }

  .watchlist-page .stock-table {
    min-width: 560px;
  }

  .watchlist-page .stock-table th,
  .watchlist-page .stock-table td {
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .mkt-toggle__btn {
    font-size: 11.5px;
    padding: 5px 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .watchlist-empty {
    padding: 16px 10px;
    font-size: 12px;
  }

  /* profile (fills the 568 gap from the audit) */
  .profile-shell--v2 .pf-card {
    padding: 12px;
    border-radius: 12px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 66px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 68px;
    height: 68px;
    margin-top: -34px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 16.5px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 12px;
  }

  .profile-shell--v2 .pf-photo-actions {
    padding: 10px 12px 0;
    gap: 8px;
  }

  .profile-shell--v2 .pf-photo-actions__label {
    font-size: 12px;
  }

  .profile-shell--v2 .pf-btn {
    flex: 1 1 calc(50% - 4px);
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-details {
    padding: 12px;
  }

  .profile-shell--v2 .pf-row {
    padding: 10px;
  }

  .profile-shell--v2 .pf-row__icon {
    width: 30px;
    height: 30px;
  }

  .profile-shell--v2 .pf-row__label {
    font-size: 11.5px;
  }

  .profile-shell--v2 .pf-row__value {
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-icon-btn {
    width: 30px;
    height: 30px;
  }

  /* seeall */
  .seeall-head {
    padding: 10px 12px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 16px;
  }

  .seeall-head__sub {
    font-size: 11.5px;
  }

  .seeall-table-scroll .stock-table {
    min-width: 560px;
    font-size: 11.5px;
  }

  .seeall-pagination__btn {
    flex: 1 1 0;
    padding: 6px 10px;
    font-size: 12px;
  }

  .close-button {
    width: 30px;
    height: 30px;
  }

  /* marketrisk */
  .marketrisk-intro,
  .marketrisk-section {
    padding: 10px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 10px;
    border-radius: 10px;
  }

  .mrd-section-header__title {
    font-size: 14.5px;
  }

  .mrd-icon-badge {
    width: 28px;
    height: 28px;
  }

  .marketrisk-page .mrd-pill {
    padding: 3px 8px;
  }

  .mrd-subscores .mrd-sub .mrd-val {
    font-size: 15.5px;
  }

  .mrd-was-box .mrd-val,
  .mrd-risk-box .mrd-val {
    font-size: 18px;
  }

  .mrd-list-item {
    padding: 7px 8px;
  }

  /* weightings */
  .weightings-intro {
    padding: 10px;
  }

  .weightings-intro h1,
  .weightings-intro h2 {
    font-size: 15.5px;
  }

  .weightings-intro__icon {
    width: 34px;
    height: 34px;
  }

  .security-compose {
    padding: 10px;
  }

  .inner-accordion {
    padding: 10px;
  }

  .inner-toggle-btn {
    font-size: 12.5px;
    padding: 8px;
  }

  .score-value {
    font-size: 15px;
  }

  .weightings-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .weight-sum-pill {
    font-size: 11.5px;
    padding: 5px 9px;
  }

  .mrs-slider-block {
    padding: 10px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-header {
    padding: 10px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 15.5px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-body > div {
    padding: 8px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table {
    font-size: 11.5px;
    min-width: 560px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 7px 8px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 220px"] {
    min-width: 140px !important;
  }
}

@media (max-width: 450px) {
  /* shared chrome */
  .header .navbar-brand img {
    height: 20px;
  }

  .notifications .plutus-icon-btn,
  .userprofile-icon .plutus-icon-btn {
    width: 32px;
    height: 32px;
  }

  .plutus-profile-btn {
    padding: 4px 6px;
  }

  .plutus-profile-btn .profile-img {
    width: 28px;
    height: 28px;
  }

  .footer {
    padding: 12px 0;
    padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom)));
  }

  .f-logo img {
    height: 14px;
  }

  .gm-bar__container {
    padding: 5px 6px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 6px;
    flex-shrink: 0;
  }

  .gm-bar__info-cards {
    gap: 6px;
    margin-left: 6px;
    width: 100%;
  }

  .gm-info-card {
    padding: 6px 8px;
    gap: 6px;
    width: 100%;
  }

  .gm-info-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .gm-info-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .gm-info-card__title {
    font-size: 14px;
  }

  .gm-info-card__meta {
    font-size: 12px;
    gap: 4px;
    align-items: start;
    flex-direction: column;
  }

  .gm-info-card__date-icon,
  .gm-info-card__time-icon {
    width: 10px;
    height: 10px;
  }

  .gm-info-card__divider {
    display: none;
  }

  .gm-bar__segments {
    gap: 4px;
  }

  .gm-segment {
    padding: 5px 7px;
    min-height: 36px;
    min-width: 36px;
  }

  .gm-segment__icon {
    width: 14px;
    height: 14px;
  }

  .gm-drawer__head,
  .gm-drawer__body,
  .gm-drawer__foot {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* dashboard */
  .dash-section-card,
  .crash-risk-card {
    padding: 10px;
    border-radius: 10px;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 14px;
  }

  .sector-card {
    padding: 8px 10px;
  }

  .sector-card__name {
    font-size: 12px;
  }

  .sector-card__price {
    font-size: 13px;
  }

  .dash-table-card {
    padding: 8px;
  }

  .dash-table-card__title {
    font-size: 13.5px;
  }

  .dash-table-card .stock-table,
  .dash-table-card .etfs-table {
    min-width: 520px;
    font-size: 11.5px;
  }

  .crash-risk-card__score-val {
    font-size: 17px;
  }

  .market-insight-card__bg {
    padding: 12px;
  }

  /* details */
  .detail-page {
    padding: 8px 6px 12px;
  }

  .detail-hero-card,
  .detail-section-card {
    padding: 10px;
    border-radius: 10px;
  }

  .detail-hero-price__value {
    font-size: 22px;
  }

  .technical-score h2 {
    font-size: 26px;
  }

  .funda-share h1 {
    font-size: 22px;
  }

  .marketcap p {
    font-size: 13.5px;
  }

  .detail-section-nav__btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .price-bucket-toggle__btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .technical-graph h6,
  .dividend-share h6,
  .dividend-share span {
    font-size: 12px;
  }

  /* portfolio */
  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 10px;
  }

  .portfolio-positions-card .stock-table,
  .portfolio-summary-card .stock-table {
    min-width: 480px;
    font-size: 11.5px;
  }

  .portfolio-symbol-cell {
    min-width: 70px;
  }

  .portfolio-empty {
    font-size: 12px;
  }

  .total-protofolio,
  .portfolio-positions-icon {
    font-size: 12px;
  }

  .strong-bull-data h6 {
    font-size: 12px;
  }

  .regime-header h6,
  .regime-header h5 {
    font-size: 13px;
  }

  .long-override,
  .short-override,
  .cash-override {
    padding: 8px;
  }

  .long-override label,
  .short-override label,
  .cash-override label {
    font-size: 11.5px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 17px;
  }

  .curated-list-card {
    padding: 10px;
    border-radius: 10px;
  }

  .curated-list-card--vertical .curated-card-count {
    font-size: 15px;
  }

  .toprated-buys,
  .dividen-growth {
    padding: 8px;
  }

  .screener-results-card {
    padding: 8px;
  }

  .screener-results-table {
    min-width: 520px;
    font-size: 11.5px;
  }

  .screener-results-table th,
  .screener-results-table td {
    padding: 7px 8px;
  }

  .screener-ticker-pill {
    font-size: 11.5px;
  }

  .screener-signal-pill {
    font-size: 10.5px;
  }

  .screener-popup__header {
    padding: 8px 10px;
  }

  .screener-popup__title-text h6 {
    font-size: 13px;
  }

  .screener-popup__count {
    font-size: 11.5px;
  }

  /* watchlist */
  .watchlist-page .dash-table-card {
    padding: 8px;
  }

  .watchlist-page .dash-table-card__title {
    font-size: 13.5px;
  }

  .watchlist-page .stock-table {
    min-width: 480px;
    font-size: 11px;
  }

  .watchlist-page .stock-table th,
  .watchlist-page .stock-table td {
    padding: 6px 8px;
  }

  .mkt-toggle__btn {
    font-size: 11px;
    padding: 5px 6px;
  }

  .filter-btn {
    font-size: 11.5px;
    padding: 5px 8px;
  }

  .watchlist-remove-btn {
    width: 26px;
    height: 26px;
  }

  /* profile */
  .profile-shell--v2 .pf-card {
    padding: 10px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 60px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 64px;
    height: 64px;
    margin-top: -32px;
  }

  .profile-shell--v2 .pf-hero__camera {
    width: 26px;
    height: 26px;
  }

  .profile-shell--v2 .pf-identity {
    padding: 0 10px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 15.5px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 11.5px;
  }

  .profile-shell--v2 .pf-btn {
    flex: 1 1 100%;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .profile-shell--v2 .pf-details {
    padding: 10px;
  }

  .profile-shell--v2 .pf-row {
    padding: 10px;
    gap: 8px;
  }

  .profile-shell--v2 .pf-row__icon {
    width: 28px;
    height: 28px;
  }

  .profile-shell--v2 .pf-row__label {
    font-size: 11px;
  }

  .profile-shell--v2 .pf-row__value {
    font-size: 12px;
  }

  .profile-shell--v2 .pf-icon-btn {
    width: 28px;
    height: 28px;
  }

  /* seeall */
  .seeall-head {
    padding: 10px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 15.5px;
  }

  .seeall-head__sub {
    font-size: 11px;
  }

  .seeall-table-scroll .stock-table {
    min-width: 480px;
    font-size: 11px;
  }

  .seeall-table-scroll .stock-table th,
  .seeall-table-scroll .stock-table td {
    padding: 7px 8px;
  }

  .seeall-pagination {
    padding: 10px;
  }

  .seeall-pagination__label {
    font-size: 11.5px;
  }

  .seeall-pagination__btn {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .close-button {
    width: 28px;
    height: 28px;
  }

  /* marketrisk */
  .marketrisk-intro,
  .marketrisk-section {
    padding: 10px;
    border-radius: 10px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 8px;
  }

  .mrd-section-header__title {
    font-size: 14px;
  }

  .mrd-icon-badge {
    width: 26px;
    height: 26px;
  }

  .marketrisk-page .mrd-pill {
    padding: 0;
  }

  .mrd-subscores .mrd-sub .mrd-val {
    font-size: 15px;
  }

  .mrd-was-box .mrd-val,
  .mrd-risk-box .mrd-val {
    font-size: 17px;
  }

  .mrd-list-item {
    padding: 6px 8px;
    gap: 6px;
  }

  .mrd-list-item .mrd-val {
    font-size: 12.5px;
  }

  .mrd-vix-data {
    font-size: 12px;
  }

  .mrd-risk-bar-labels {
    font-size: 10.5px;
  }

  /* weightings */
  .weightings-intro {
    padding: 10px;
    border-radius: 10px;
  }

  .weightings-intro h1,
  .weightings-intro h2 {
    font-size: 15px;
  }

  .weightings-intro p {
    font-size: 12px;
  }

  .weightings-intro__icon {
    width: 32px;
    height: 32px;
  }

  .security-compose {
    padding: 8px;
  }

  .inner-accordion {
    padding: 8px;
  }

  .inner-toggle-btn {
    font-size: 12px;
  }

  .score-header {
    font-size: 12.5px;
  }

  .score-value {
    font-size: 14.5px;
  }

  .score-subtext {
    font-size: 11px;
  }

  .weightings-btn {
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .weight-sum-pill {
    font-size: 11px;
    padding: 5px 8px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 15px;
  }

  .modal-fullscreen:not(.see-all-modal) .table {
    font-size: 11px;
    min-width: 480px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 6px 8px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 220px"] {
    min-width: 120px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 130px"] {
    min-width: 90px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 120px"] {
    min-width: 80px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 100px"] {
    min-width: 70px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 60px"] {
    min-width: 44px !important;
  }
}

@media (max-width: 320px) {
  .header .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header .navbar-brand img {
    height: 24px;
  }

  .notifications .plutus-icon-btn,
  .userprofile-icon .plutus-icon-btn {
    width: 30px;
    height: 30px;
  }

  .plutus-profile-btn {
    padding: 4px 4px;
  }

  .plutus-profile-btn .profile-img {
    width: 26px;
    height: 26px;
  }

  .notif-dropdown {
    width: 240px;
    right: 0;
    max-height: 75vh !important;
    overflow-y: auto;
  }

  .footer {
    padding: 10px 0;
    padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
  }

  .footer-pargraph p {
    font-size: 11px;
    line-height: 1.4;
  }

  .f-logo img {
    height: 12px;
  }

  .gm-bar__container {
    padding: 4px 6px;
  }

  .gm-bar__last-updated {
    font-size: 12px;
    margin-left: 4px;
    flex-shrink: 0;
  }

  .gm-bar__info-cards {
    gap: 4px;
    margin-left: 4px;
  }

  .gm-info-card {
    padding: 4px 6px;
    gap: 6px;
  }

  .gm-info-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .gm-info-card__icon svg {
    width: 12px;
    height: 12px;
  }

  .gm-info-card__title {
    font-size: 10px;
  }

  .gm-info-card__meta {
    font-size: 9px;
    gap: 3px;
  }

  .gm-info-card__date-icon,
  .gm-info-card__time-icon {
    width: 9px;
    height: 9px;
  }

  .gm-info-card__divider {
    display: none;
  }

  .gm-bar__segments {
    gap: 3px;
  }

  .gm-segment {
    padding: 5px 6px;
    min-height: 36px;
    min-width: 36px;
    border-radius: 8px;
  }

  .gm-segment__icon {
    width: 13px;
    height: 13px;
  }

  .gm-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .gm-drawer__head,
  .gm-drawer__body,
  .gm-drawer__foot {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* dashboard */
  .marketing-sector {
    padding: 6px 0;
  }

  .dash-section-card,
  .crash-risk-card {
    padding: 8px;
    border-radius: 10px;
  }

  .dash-section-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .dash-section-card__title,
  .crash-risk-card__title {
    font-size: 13.5px;
  }

  .dash-section-card__sub {
    font-size: 11px;
  }

  .dash-section-card__action {
    padding: 5px 8px;
    font-size: 11px;
  }

  .sector-card {
    padding: 7px 8px;
  }

  .sector-card__icon {
    width: 22px;
    height: 22px;
  }

  .sector-card__name {
    font-size: 11.5px;
  }

  .sector-card__symbol {
    font-size: 11px;
  }

  .sector-card__price {
    font-size: 12.5px;
  }

  .sector-card__change {
    font-size: 11px;
  }

  .crash-risk-card__score-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .crash-risk-card__score-val {
    font-size: 16px;
  }

  .crash-risk-card__score-label {
    font-size: 10.5px;
  }

  .dash-table-card {
    padding: 8px;
    border-radius: 10px;
  }

  .dash-table-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .dash-table-card__title {
    font-size: 13px;
  }

  .dash-table-card__see-all {
    font-size: 11px;
  }

  .dash-table-card .stock-table,
  .dash-table-card .etfs-table {
    min-width: 460px;
    font-size: 11px;
  }

  .stock-table th,
  .stock-table td {
    padding: 6px 7px;
  }

  .dashboard-sector-popup__body {
    padding: 8px;
    gap: 8px;
  }

  .market-insight-card__bg {
    padding: 10px;
    border-radius: 10px;
  }

  /* details */
  .detail-page {
    padding: 6px 6px 12px;
  }

  .detail-section-nav {
    padding: 3px;
    gap: 4px;
  }

  .detail-section-nav__btn {
    padding: 5px 7px;
    font-size: 10.5px;
  }

  .detail-hero-card,
  .detail-section-card {
    padding: 8px;
    border-radius: 10px;
  }

  .detail-hero-body {
    gap: 8px;
  }

  .detail-hero-price__value {
    font-size: 20px;
  }

  .detail-hero-price__usd {
    font-size: 12.5px;
  }

  .detail-hero-price__change {
    font-size: 11px;
  }

  .price-bucket-toggle__btn {
    padding: 4px 7px;
    font-size: 10.5px;
    white-space: nowrap;
    letter-spacing: -0.1px;
  }

  .technical {
    gap: 10px;
  }

  .technical-score h2 {
    font-size: 24px;
  }

  .technical-graph h6 {
    font-size: 11px;
  }

  .rank-score {
    padding: 8px;
  }

  .classification-detail {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .funda-share h1 {
    font-size: 20px;
  }

  .marketcap p {
    font-size: 12.5px;
  }

  .dividend-share h6,
  .dividend-share span {
    font-size: 11px;
  }

  .viewoverall-details a {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .risk-hcontent-stock h6 {
    font-size: 14px;
  }

  /* portfolio */
  .portfolio-alocation,
  .long-postion,
  .userprotofolio {
    padding: 6px 0;
  }

  .portfolio-positions-card,
  .portfolio-summary-card {
    padding: 8px;
    border-radius: 10px;
  }

  .portfolio-positions-card .stock-table,
  .portfolio-summary-card .stock-table {
    min-width: 440px;
    font-size: 10.5px;
  }

  .portfolio-positions-card .stock-table th,
  .portfolio-positions-card .stock-table td,
  .portfolio-summary-card .stock-table th,
  .portfolio-summary-card .stock-table td {
    padding: 5px 6px;
  }

  .portfolio-symbol-cell {
    min-width: 60px;
  }

  .portfolio-empty {
    padding: 14px 8px;
    font-size: 11.5px;
  }

  .portfolio-positions-icon,
  .total-protofolio {
    font-size: 11.5px;
  }

  .total-protofolio-risk {
    font-size: 10.5px;
  }

  .allocation-rules {
    padding: 8px;
  }

  .regime-header {
    flex-wrap: wrap;
    gap: 4px;
  }

  .regime-header h6,
  .regime-header h5 {
    font-size: 12.5px;
  }

  .regime-input-group label,
  .regime-input-group span {
    font-size: 11px;
  }

  .long-override,
  .short-override,
  .cash-override {
    padding: 7px;
  }

  .long-override label,
  .short-override label,
  .cash-override label {
    font-size: 11px;
  }

  .tpv-input-wrapper input {
    padding: 7px 8px;
    font-size: 12px;
  }

  .strong-bull-data {
    padding: 8px;
  }

  .strong-bull-data h6 {
    font-size: 11.5px;
  }

  .postions-limits {
    padding: 8px;
    gap: 6px;
  }

  .reblance-units {
    gap: 6px;
  }

  .price-trend__title {
    font-size: 15px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-align: left;
  }

  .price-trend__chart-container {
    padding: 8px 4px;
  }

  /* screeners */
  .screener-heading h1 {
    font-size: 15.5px;
  }

  .screener-heading p {
    font-size: 11px;
  }

  .curated-list-card {
    padding: 8px;
    border-radius: 10px;
  }

  /* Curated Lists count number — bumped from 13px to 26px so the "90 / 24 / etc"
     headline remains the visual anchor of each card at the smallest viewport. */
  .curated-card-count {
    font-size: 26px;
    line-height: 1;
    margin-top: 4px;
  }

  .toprated-buys,
  .dividen-growth {
    padding: 7px;
  }

  .screener-results-card {
    padding: 8px;
    border-radius: 10px;
  }

  .screener-results-card__head-text h2 {
    font-size: 13px;
  }

  .screener-results-table {
    min-width: 460px;
    font-size: 10.5px;
  }

  .screener-results-table th,
  .screener-results-table td {
    padding: 6px 7px;
  }

  .screener-ticker-pill {
    font-size: 11px;
    padding: 2px 6px;
  }

  .screener-signal-pill {
    font-size: 10px;
    padding: 2px 6px;
  }

  .screener-change {
    font-size: 11px;
  }

  .screener-empty {
    padding: 14px 8px;
    font-size: 11.5px;
  }

  .screener-popup__header {
    padding: 8px 10px;
  }

  .screener-popup__title-text h6 {
    font-size: 12.5px;
  }

  .screener-popup__count {
    font-size: 11px;
  }

  .screener-popup__close {
    width: 30px;
    height: 30px;
  }

  .screener-popup__body {
    padding: 8px 10px 14px;
  }

  .screener-popup__body-title {
    font-size: 12.5px;
  }

  .screener-popup__row {
    padding: 7px 8px;
    gap: 6px;
  }

  .screener-popup__ticker {
    font-size: 12px;
  }

  .screener-popup__name {
    font-size: 11.5px;
  }

  .screener-popup__row-arrow {
    width: 16px;
    height: 16px;
  }

  /* watchlist */
  .watchlist-page {
    padding: 6px 0;
  }

  .watchlist-page .dash-table-card {
    padding: 8px;
    border-radius: 10px;
  }

  .watchlist-page .dash-table-card__title {
    font-size: 13px;
  }

  .watchlist-page .stock-table {
    min-width: 440px;
    font-size: 10.5px;
  }

  .watchlist-page .stock-table th,
  .watchlist-page .stock-table td {
    padding: 5px 6px;
  }

  .mkt-toggle {
    width: 100%;
  }

  .mkt-toggle__btn {
    font-size: 10.5px;
    padding: 5px 5px;
  }

  .mkt-toggle__dot {
    width: 4px;
    height: 4px;
  }

  .filter-btn {
    width: 100%;
    font-size: 11px;
    padding: 5px 7px;
  }

  .filter-menu {
    width: 100%;
  }

  .sort-icon {
    width: 12px;
    height: 12px;
  }

  .watchlist-remove-btn {
    width: 24px;
    height: 24px;
  }

  .watchlist-empty {
    padding: 14px 8px;
    font-size: 11.5px;
  }

  /* profile */
  .profile-shell--v2 {
    padding: 8px 0;
  }

  .profile-shell--v2 .pf-card {
    padding: 8px;
    border-radius: 10px;
  }

  .profile-shell--v2 .pf-hero__banner {
    height: 54px;
  }

  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 58px;
    height: 58px;
    margin-top: -29px;
  }

  .profile-shell--v2 .pf-hero__avatar {
    border-width: 2px;
  }

  .profile-shell--v2 .pf-hero__camera {
    width: 22px;
    height: 22px;
  }

  .profile-shell--v2 .pf-identity {
    padding: 0 8px;
  }

  .profile-shell--v2 .pf-identity__name {
    font-size: 14.5px;
  }

  .profile-shell--v2 .pf-identity__email {
    font-size: 11px;
  }

  .profile-shell--v2 .pf-photo-actions {
    padding: 8px 10px 0;
    gap: 6px;
  }

  .profile-shell--v2 .pf-photo-actions__label {
    font-size: 11px;
  }

  .profile-shell--v2 .pf-btn {
    flex: 1 1 100%;
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .profile-shell--v2 .pf-details {
    padding: 8px;
  }

  .profile-shell--v2 .pf-row {
    padding: 8px;
    gap: 6px;
  }

  .profile-shell--v2 .pf-row__icon {
    width: 26px;
    height: 26px;
  }

  .profile-shell--v2 .pf-row__label {
    font-size: 10.5px;
  }

  .profile-shell--v2 .pf-row__value {
    font-size: 11.5px;
  }

  .profile-shell--v2 .pf-row__input {
    font-size: 11.5px;
  }

  .profile-shell--v2 .pf-icon-btn {
    width: 26px;
    height: 26px;
  }

  /* seeall */
  .seeall-head {
    padding: 8px 10px;
  }

  .seeall-head__title-wrap h2 {
    font-size: 14px;
  }

  .seeall-head__sub {
    font-size: 10.5px;
  }

  .seeall-head__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .seeall-filter-field,
  .seeall-export-btn {
    width: 100%;
  }

  .seeall-filter-field select.seeall-filter-select {
    font-size: 11.5px;
    padding: 6px 8px;
  }

  .seeall-export-btn {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .seeall-table-scroll .stock-table {
    min-width: 440px;
    font-size: 10.5px;
  }

  .seeall-table-scroll .stock-table th,
  .seeall-table-scroll .stock-table td {
    padding: 6px 7px;
  }

  .seeall-pagination {
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .seeall-pagination__label {
    font-size: 11px;
    text-align: center;
  }

  .seeall-pagination__buttons {
    justify-content: center;
    gap: 6px;
  }

  .seeall-pagination__btn {
    flex: 1 1 0;
    padding: 5px 7px;
    font-size: 11px;
  }

  .close-button {
    width: 26px;
    height: 26px;
  }

  /* marketrisk */
  .marketrisk-page,
  .mrd-header-section {
    padding: 6px 0;
  }

  .marketrisk-intro,
  .marketrisk-section {
    padding: 8px;
    border-radius: 10px;
  }

  .marketrisk-intro h1,
  .marketrisk-intro h2 {
    font-size: 14px;
  }

  .mrd-summary-card,
  .mrd-card-custom {
    padding: 7px;
    border-radius: 8px;
  }

  .mrd-section-header {
    gap: 6px;
    flex-wrap: wrap;
  }

  .mrd-section-header__title {
    font-size: 13px;
  }

  .mrd-icon-badge {
    width: 24px;
    height: 24px;
  }

  .marketrisk-page .mrd-pill {
    padding: 3px 7px;
  }

  .mrd-subscores {
    gap: 6px;
  }

  .mrd-subscores .mrd-sub {
    flex: 1 1 100%;
  }

  .mrd-subscores .mrd-sub .mrd-val {
    font-size: 13.5px;
  }

  .mrd-subscores .mrd-sub .mrd-lbl {
    font-size: 10.5px;
  }

  .mrd-was-box .mrd-val,
  .mrd-risk-box .mrd-val {
    font-size: 15.5px;
  }

  .mrd-risk-bar {
    height: 7px;
  }

  .mrd-risk-bar-labels {
    font-size: 10px;
  }

  .mrd-list-item {
    padding: 6px 7px;
    gap: 5px;
    flex-wrap: wrap;
  }

  .mrd-list-item .mrd-val {
    font-size: 11.5px;
  }

  .mrd-vix-data {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* weightings */
  .weightings-page,
  .score-weightings {
    padding: 6px 0;
  }

  .weightings-intro {
    padding: 8px;
    border-radius: 10px;
  }

  .weightings-intro h1,
  .weightings-intro h2 {
    font-size: 14px;
  }

  .weightings-intro p {
    font-size: 11px;
  }

  .weightings-intro__icon {
    width: 28px;
    height: 28px;
  }

  .security-compose {
    padding: 7px;
    border-radius: 10px;
  }

  .security {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .inner-accordion {
    padding: 7px;
    border-radius: 8px;
  }

  .inner-toggle-btn {
    font-size: 11.5px;
    padding: 6px 7px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .reload-com {
    width: 24px;
    height: 24px;
  }

  .score-header {
    font-size: 11.5px;
  }

  .score-value {
    font-size: 13.5px;
  }

  .score-subtext {
    font-size: 10.5px;
  }

  .weightings-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .weightings-actions__buttons {
    width: 100%;
    gap: 6px;
  }

  .weightings-btn {
    flex: 1 1 0;
    padding: 6px 7px;
    font-size: 11px;
    justify-content: center;
  }

  .weight-sum-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .weight-sum-pill {
    width: 100%;
    justify-content: center;
    font-size: 10.5px;
    padding: 5px 7px;
  }

  .weight-sum-pill__icon {
    width: 13px;
    height: 13px;
  }

  .mrs-slider-block {
    padding: 8px;
  }

  /* seeall - mobile viewport adjustments */
  .seeall-page .seeall-head {
    padding: 20px 16px 12px;
  }

  .seeall-page .seeall-head .dash-table-card__title {
    font-size: 18px;
  }

  .seeall-page .seeall-pagination,
  .seeall-pagination {
    padding: 10px 14px;
  }

  /* allsectors */
  .modal-fullscreen:not(.see-all-modal) .modal-header {
    padding: 8px 10px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-title {
    font-size: 14px;
  }

  .modal-fullscreen:not(.see-all-modal) .modal-body > div {
    padding: 7px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table {
    font-size: 10.5px;
    min-width: 440px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th,
  .modal-fullscreen:not(.see-all-modal) .table td {
    padding: 5px 6px;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 220px"] {
    min-width: 110px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 130px"] {
    min-width: 80px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 120px"] {
    min-width: 72px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 100px"] {
    min-width: 60px !important;
  }

  .modal-fullscreen:not(.see-all-modal) .table th[style*="min-width: 60px"] {
    min-width: 38px !important;
  }

  /* ============================================================
     320px wrap-up — issues #1-10 reported on 28 May 2026
     Each block addresses one of the user's reports; comments tie
     the override back to its specific symptom so future tweaks
     don't accidentally undo a fix.
     ============================================================ */

  /* #1 — Profile: camera icon floats away from the avatar.
     `.pf-hero__avatar-wrap` is a fixed 96px square cascaded from
     1366px; the inner avatar shrinks to 58px at 320px, so the
     camera button — anchored to the wrap's bottom-right — drifts
     about 38px below/right of the actual photo. Match the wrap
     to the avatar size and keep the camera flush to the rim. */
  .profile-shell--v2 .pf-hero__avatar-wrap {
    width: 72px;
    height: 72px;
    margin-top: -36px;
  }

  .profile-shell--v2 .pf-hero__camera {
    width: 26px;
    height: 26px;
    right: 0;
    bottom: 0;
    border-width: 2px;
  }

  /* #2 — Watchlist: page extends past 320px. The watchlist card
     deliberately keeps `overflow: visible` so the Sort dropdown
     can escape, so we can't clip it. Instead, contain the scroll
     at the page wrapper level using `overflow-x: clip` — it
     stops horizontal overflow from leaking to the body without
     promoting overflow-y to `auto` (which `hidden` would do) and
     without establishing a containing block for the dropdown's
     absolute positioning, so the Sort menu still drops down
     correctly. The 760px table still scrolls inside its own
     `.watchlist-table-scroll`. */
  .watchlist-page,
  .watchlist-page .userprotofolio,
  .watchlist-page .userprotofolio > .container {
    overflow-x: clip;
    max-width: 100%;
  }

  /* #3 — Portfolio: Market Risk Score / Total Portfolio Value
     headers stack into a column at <=768px (see line 1562 block).
     At 320px we want the icon + title on the left and the MRS
     pill (4.46) flush right, so flatten the column back to a row
     and let the title block ellipsize when the pill is showing. */
  .portfolio-positions-card .portfolio-positions-head,
  .portfolio-positions-card .setvpn-usd.mrs-weekly {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: nowrap;
  }

  .portfolio-positions-card .risk-mrs {
    flex: 1 1 auto;
    min-width: 0;
    column-gap: 8px;
  }

  .portfolio-positions-card .setvalue-data {
    min-width: 0;
  }

  .portfolio-positions-card .setvalue-data h6,
  .total-portfolio-value .setvalue-data h6 {
    font-size: 12.5px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .portfolio-positions-card .setvalue-data p,
  .total-portfolio-value .setvalue-data p {
    font-size: 10.5px;
    line-height: 1.2;
  }

  .portfolio-positions-card .portfolio-positions-icon,
  .total-portfolio-value .total-protofolio {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .portfolio-positions-card .portfolio-positions-icon svg,
  .total-portfolio-value .total-protofolio svg {
    width: 14px;
    height: 14px;
  }

  .total-protofolio-risk {
    flex-shrink: 0;
    width: auto;
    min-width: 44px !important;
    height: 24px;
    padding: 0 8px !important;
  }

  .total-protofolio-risk h6 {
    font-size: 12px;
  }

  /* Inside-card numeric callouts (Unit Value / Total Units / Market
     Regime / Bias) — defaults are 23px which crowds the card body
     at 320px, especially the long "Neutral" labels. */
  .total-portfolio-value .total-value h6 {
    font-size: 11px;
  }

  .total-portfolio-value .total-value h2 {
    font-size: 15px;
  }

  /* #5 — Alerts dropdown overflows the left edge on narrow screens.
     Shrink width and anchor flush-right so the panel stays inside
     the viewport while keeping the alerts scrollable. */
  .notif-dropdown {
    width: 220px;
    right: 0;
    left: auto;
    max-height: 75vh !important;
    overflow-y: auto;
  }

  /* #7 — Strong Bearish / Bullish popup rows stretch into a
     full-width red pill at 320px because the legacy
     `.stock-inventory-list span { display: block; width: 90% }`
     rule (568px block) bleeds into the modern screener-popup
     layout. Restore the inline-flex pill + name + arrow row.
     Also drop the long company name at 320px so the row reads as
     "ticker chip + arrow" exactly as the user requested. */
  .screener-popup__row.stock-inventory-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }

  .screener-popup__row .stock-inventory-symbol,
  .screener-popup__row .screener-popup__ticker {
    display: inline-flex;
    width: auto;
    min-width: 64px;
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 12px;
  }

  .screener-popup__row .screener-popup__row-arrow {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    font-size: 11px;
    margin-left: auto;
  }

  /* #9 — Dashboard top-5 tables show two horizontal scrollbars.
     The card had `overflow: hidden` only at the base ruleset; at
     <=991px the card padding shrinks but the table-responsive's
     scrollbar can leak outside its rounded corners, and any tiny
     2-3px overflow on the body pushes a second scrollbar onto
     the page. Re-clip the card and stop the page itself from
     ever scrolling sideways at 320px. The dashboard wrapper is
     `<div class="main">` (no page-specific class), so we scope to
     `.main` here — every page in the app sits under it and none
     of them want a horizontal body scrollbar at 320px anyway. */
  .main,
  .main .userprotofolio,
  .main .userprotofolio > .container {
    overflow-x: clip;
  }

  .dash-table-card {
    overflow: hidden;
  }

  .dash-table-card .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
  }

  /* #10 — SubHeader active underline visually drifts off the
     icon. With label hidden at 320px, the segment collapses to
     ~36px wide but the underline still reads `left: 8px; right:
     8px` (cascaded from 991px), giving a 20px bar that doesn't
     line up tightly under the 13px icon. Anchor the underline
     to the icon's center so it always sits directly below it. */
  .gm-segment {
    padding: 6px 8px 14px;
  }

  .gm-segment::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 18px;
    height: 2.5px;
    bottom: 4px;
  }

  .gm-segment.is-active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .gm-segment:hover::after {
    transform: translateX(-50%) scaleX(0.5);
  }
}

@media (max-width: 567.98px) {
  .seeall-page .seeall-head {
    padding: 16px 16px 12px 16px !important;
  }

  .seeall-page .seeall-head__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .seeall-page .seeall-head__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .seeall-page .seeall-filter-field {
    width: 100% !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
  }

  .seeall-page .seeall-filter-field .pd-dropdown {
    display: block !important;
    width: 100% !important;
  }

  .seeall-page .seeall-filter-field .pd-dropdown__trigger {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
  }

  .seeall-page .seeall-export-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    justify-content: center !important;
    margin-top: 0 !important;
    flex: 1 1 100% !important;
    padding: 8px !important;
  }
}

@media (min-width: 568px) and (max-width: 1198px) {
  .seeall-page .seeall-head {
    padding: 24px 24px 18px 24px !important;
  }

  .seeall-page .seeall-head__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .seeall-page .seeall-head__actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .seeall-page .seeall-filter-field {
    width: auto !important;
    margin: 0 !important;
    flex: none !important;
  }

  .seeall-page .seeall-filter-field .pd-dropdown {
    display: inline-block !important;
    width: auto !important;
  }

  .seeall-page .seeall-filter-field .pd-dropdown__trigger {
    display: inline-flex !important;
    width: auto !important;
    height: 38px !important;
  }

  .seeall-page .seeall-export-btn {
    width: auto !important;
    margin: 0 !important;
    height: 38px !important;
    flex: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1166px) {
  .header .search-clear-btn {
    right: -10px !important;
  }
}

@media (max-width: 1166px) {
  .marketrisk-page .risk-overview-col {
    width: 50%;
  }

  .marketrisk-page .marketrisk-section__body {
    padding: 16px;
  }

  .marketrisk-page .mrd-card .card-body,
  .marketrisk-page .mrd-card-custom .card-body {
    padding: 16px !important;
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 56px;
    font-size: 20px;
  }

  .marketrisk-page .mrd-pill {
    padding: 0 14px;
  }

  .marketrisk-page .mrd-pill span {
    font-size: 22px;
  }

  .marketrisk-page .mrd-risk-box {
    font-size: 18px;
  }

  .marketrisk-page .mrd-was-box {
    min-height: 90px;
    height: auto;
    padding: 12px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 24px;
  }

  .marketrisk-page .mrd-was-box span {
    display: block;
    max-width: 120px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
  }

  .marketrisk-page .mrd-subscores {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }

  .marketrisk-page .mrd-sub {
    padding: 10px 6px;
  }

  .marketrisk-page .mrd-risk-bar-labels {
    gap: 4px;
  }

  .marketrisk-page .mrd-risk-bar-labels span {
    flex: 1;
    white-space: normal;
    text-align: center;
    font-size: 9px;
    line-height: 1.15;
  }
}

@media (max-width: 991px) {
  .header .navbar-brand img {
    height: 35px !important;
  }

  .plutus-search-kbd {
    display: none;
  }

  .header .container {
    position: relative;
  }

  .header .userprofile-icon {
    top: 50% !important;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center !important;
  }

  .header .plutus-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .header .plutus-icon-btn img {
    width: 18px !important;
    height: 18px !important;
  }

  .header .search-data {
    width: 36px !important;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .header .search-data > .search-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
  }

  .header .search-data > .search-icon:hover {
    color: #ffffff !important;
  }

  .header .search-data.mobile-active {
    width: 100% !important;
    height: 70px;
    border-radius: 0;
    border: none !important;
    justify-content: flex-start;
  }

  .header .navbar-toggler {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .header .navbar-toggler-icon {
    font-size: 14px;
  }

  .header .userprofile-icon {
    gap: 8px !important;
    align-items: center;
  }

  .plutus-profile-btn {
    padding: 3px 8px 3px 3px !important;
  }

  .profile-dropdown .profile-img {
    width: 28px !important;
    height: 28px !important;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.65),
      0 0 0 3px rgba(255, 255, 255, 0.18) !important;
  }

  .header .userprofile-icon.search-active .notifications {
    display: none !important;
  }

  .header .profile-dropdown {
    flex-shrink: 0 !important;
  }

  .header.search-active .navbar-brand,
  .header.search-active .navbar-toggler,
  .header.search-active .profile-dropdown,
  .header.search-active .navbar-collapse {
    display: none !important;
  }

  .header .search-clear-btn {
    right: 16px !important;
  }

  .header.search-active .userprofile-icon {
    position: relative !important;
    width: 100% !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .header .search-data.mobile-active {
    position: relative !important;
    width: 100% !important;
    max-width: 240px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    justify-content: flex-start !important;
    margin-right: 0 !important;
    flex-shrink: 1 !important;
    min-width: 120px !important;
  }

  .header.search-active .search-data.mobile-active {
    max-width: none !important;
  }

  .header.search-active .search-data.mobile-active .search-results-dropdown {
    top: 42px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 400px !important;
  }

  .header .search-data.mobile-active input {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 44px 0 12px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    border: none !important;
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 58px;
    font-size: 22px;
  }

  .marketrisk-page .dash-section-card__title {
    font-size: 1.25rem;
  }

  .marketrisk-page .dash-section-card__sub {
    font-size: 0.95rem;
  }

  .marketrisk-page .mrd-list-item {
    gap: 8px;
  }

  .marketrisk-page .mrd-vix-data {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .marketrisk-page .mrd-score-positive,
  .marketrisk-page .mrd-score-negative,
  .marketrisk-page .mrd-score-neutral {
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .header .profile-dropdown .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    width: auto !important;
    min-width: 200px !important;
  }

  .header .profile-dropdown .dropdown-menu::before {
    right: 16px !important;
    left: auto !important;
  }

  .marketrisk-page .mrd-header-section {
    padding: 20px 0 32px;
  }

  .marketrisk-page .risk-overview-col {
    width: 100%;
  }

  .marketrisk-page .marketrisk-section__body {
    padding: 12px;
  }

  .marketrisk-page .dash-section-card__title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .marketrisk-page .dash-section-card__sub {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .marketrisk-page .mrd-pill,
  .marketrisk-page .mrd-risk-box {
    height: 52px;
    font-size: 18px;
    border-radius: 12px;
  }

  .marketrisk-page .mrd-pill {
    padding: 0 14px;
  }

  .marketrisk-page .mrd-pill span {
    font-size: 18px;
  }

  .marketrisk-page .mrd-was-box {
    min-height: 80px;
    height: auto;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .marketrisk-page .mrd-was-box span {
    font-size: 11px;
    max-width: none;
  }

  .marketrisk-page .mrd-risk-bar-labels {
    gap: 2px;
    overflow: visible;
  }

  .marketrisk-page .mrd-risk-bar-labels span {
    flex: 1;
    text-align: center;
    white-space: normal;
    font-size: 8px;
    line-height: 1.1;
  }

  .marketrisk-page .mrd-section-header {
    padding: 12px 14px;
  }

  .marketrisk-page .mrd-section-header__title {
    font-size: 14px;
  }

  .marketrisk-page .mrd-icon-badge {
    width: 32px;
    height: 32px;
  }

  .marketrisk-page .mrd-icon-badge svg {
    width: 15px;
    height: 15px;
  }

  .marketrisk-page .mrd-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
  }

  .marketrisk-page .mrd-vix-data {
    width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
  }

  .marketrisk-page .mrd-score-positive,
  .marketrisk-page .mrd-score-negative,
  .marketrisk-page .mrd-score-neutral {
    font-size: 12px;
  }

  .marketrisk-page .mrs-chart__chart-container > div {
    min-height: 260px !important;
  }

  .marketrisk-page .mrd-chart-wrapper {
    min-height: 260px;
  }
}

@media (max-width: 575px) {
  .plutus-brand-badge {
    display: none;
  }

  .plutus-profile-btn .arrow {
    display: none;
  }

  .plutus-profile-btn {
    padding: 3px !important;
    gap: 0 !important;
  }

  .header .userprofile-icon {
    gap: 6px !important;
  }

  .header .plutus-icon-btn,
  .header .search-data,
  .header .navbar-toggler {
    width: 34px !important;
    height: 34px !important;
  }

  .header .notif-dropdown {
    position: absolute !important;
    right: -109px !important;
    left: auto !important;
    width: 300px !important;
    max-width: calc(100vw - 32px) !important;
    top: 100% !important;
    margin-top: 8px !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  }

  .header .notif-arrow {
    right: 126px !important;
  }
}

@media (max-width: 425px) {
  .marketrisk-page .mrd-subscores {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 !important;
    overflow: hidden;
    border-radius: 12px;
  }

  .marketrisk-page .mrd-sub {
    min-height: 72px;
    padding: 12px 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
  }

  .marketrisk-page .mrd-sub:nth-child(odd) {
    border-right: 1px solid var(--color-border-soft, #e2e8f0);
  }

  .marketrisk-page .mrd-sub:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border-soft, #e2e8f0);
  }

  .marketrisk-page .mrd-val {
    font-size: 15px !important;
  }

  .marketrisk-page .mrd-lbl {
    font-size: 11px !important;
  }

  .marketrisk-page .mrd-was-box {
    padding: 12px !important;
    height: auto !important;
    min-height: 76px;
  }

  .marketrisk-page .mrd-was-box span {
    font-size: 11px !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 360px) {
  .marketrisk-page .mrd-pill {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    font-size: 14px;
    height: auto !important;
    text-align: center;
  }

  .marketrisk-page .mrd-risk-box {
    font-size: 14px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 18px;
  }

  .marketrisk-page .mrd-section-header__title {
    font-size: 13px;
  }
}

/* ============================================================
   SCORE CHANGE REPORT POPUP — responsive (base in custom.css)
   Single canonical block — do not duplicate.
   Table min-widths step down per breakpoint so the table stays
   fully reachable via the (now bounded) .pdf-report-scroll region.
   ============================================================ */
@media (max-width: 991px) {
  .pdf-report-title {
    font-size: 22px;
  }

  table.pdf-data-table th {
    font-size: 11px;
  }

  table.pdf-data-table td {
    font-size: 11px;
  }

  table.pdf-data-table.pdf-data-table--daily {
    min-width: 960px;
  }

  table.pdf-data-table.pdf-data-table--weekly {
    min-width: 1060px;
  }
}

@media (max-width: 767px) {
  .pdf-report-title {
    font-size: 14px;
  }

  .pdf-report-subtitle {
    font-size: 10px;
  }

  .pdf-report-meta {
    font-size: 10px;
  }

  .pdf-report-actions {
    flex-wrap: wrap;
  }

  /* Compact action buttons — close cross + Download PDF shrink together */
  .pdf-report-modal .pdf-report-wrap {
    padding-top: 40px;
  }

  .pdf-report-modal .pdf-report-wrap .pdf-report-close {
    width: 28px;
    height: 28px;
    background-size: 10px 10px;
  }

  .pdf-report-modal .pdf-report-wrap .pdf-report-download {
    height: 28px;
    right: 36px;
    padding: 4px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .pdf-report-modal .pdf-report-wrap .pdf-report-download svg {
    width: 12px;
    height: 12px;
  }

  table.pdf-data-table th {
    font-size: 10px;
    padding: 5px 4px 4px 4px;
  }

  table.pdf-data-table th .th-sub {
    font-size: 9px;
  }

  table.pdf-data-table td {
    font-size: 11px;
    padding: 5px;
  }

  table.pdf-data-table.pdf-data-table--daily {
    min-width: 860px;
  }

  table.pdf-data-table.pdf-data-table--weekly {
    min-width: 960px;
  }

  .pdf-pill {
    font-size: 10px;
  }

  .pdf-report-foot {
    font-size: 10px;
  }
  .pdf-report-head__right {
    padding-left: 0px;
    padding-right: 0px;
  }
  .pdf-report-head__left img {
    height: 30 !important;
  }
}

@media (max-width: 576px) {
  .score-report-btn {
    padding: 3px 10px;
    font-size: 12px;
  }

  .pdf-report-modal .pdf-report-body {
    padding: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .pdf-report-wrap {
    padding-top: 38px;
  }

  /* Smallest action buttons on phones */
  .pdf-report-modal .pdf-report-wrap .pdf-report-close {
    width: 26px;
    height: 26px;
  }

  .pdf-report-modal .pdf-report-wrap .pdf-report-download {
    height: 26px;
    right: 34px;
    padding: 3px 10px;
    font-size: 11px;
  }

  .pdf-report-head {
    align-items: stretch;
  }

  .pdf-report-head__left,
  .pdf-report-head__right {
    width: 100%;
    border-left: none;
    text-align: left;
    min-height: 0;
  }

  .pdf-report-head__left {
    padding-bottom: 6px;
  }

  .pdf-report-title,
  .pdf-report-subtitle {
    text-align: left;
  }

  .pdf-report-meta {
    text-align: left;
  }

  table.pdf-data-table th {
    font-size: 9px;
  }

  table.pdf-data-table th .th-sub {
    font-size: 8px;
  }

  table.pdf-data-table td {
    font-size: 10px;
  }

  table.pdf-data-table.pdf-data-table--daily {
    min-width: 720px;
  }

  table.pdf-data-table.pdf-data-table--weekly {
    min-width: 800px;
  }

  .pdf-pill {
    font-size: 9px;
  }

  .pdf-report-foot {
    font-size: 9px;
  }
}

.header .notif-dropdown {
  position: absolute !important;
  right: -109px !important;
  left: auto !important;
  width: 300px !important;
  max-width: calc(100vw - 32px) !important;
  top: 100% !important;
  margin-top: 8px !important;
  max-height: 75vh !important;
  overflow-y: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.header .notif-arrow {
  right: 126px !important;
}

@media (max-width: 425px) {
  .marketrisk-page .mrd-subscores {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 !important;
    overflow: hidden;
    border-radius: 12px;
  }

  .marketrisk-page .mrd-sub {
    min-height: 72px;
    padding: 12px 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
  }

  .marketrisk-page .mrd-sub:nth-child(odd) {
    border-right: 1px solid var(--color-border-soft, #e2e8f0);
  }

  .marketrisk-page .mrd-sub:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border-soft, #e2e8f0);
  }

  .marketrisk-page .mrd-val {
    font-size: 15px !important;
  }

  .marketrisk-page .mrd-lbl {
    font-size: 11px !important;
  }

  .marketrisk-page .mrd-was-box {
    padding: 12px !important;
    height: auto !important;
    min-height: 76px;
  }

  .marketrisk-page .mrd-was-box span {
    font-size: 11px !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 360px) {
  .marketrisk-page .mrd-pill {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    font-size: 14px;
    height: auto !important;
    text-align: center;
  }

  .marketrisk-page .mrd-risk-box {
    font-size: 14px;
  }

  .marketrisk-page .mrd-was-box h2 {
    font-size: 18px;
  }

  .marketrisk-page .mrd-section-header__title {
    font-size: 13px;
  }
}

/* NOTE: score-change report responsive rules live in the single canonical
   block above (base in custom.css) — no duplicate copy here. */

/* ============================================================
   DETAIL PAGE — RESPONSIVE OVERVIEW CHARTS & 2:1 RATIO
   ============================================================ */
.detail-page .price-chart-inner,
.detail-page .price-trend__chart-container > div {
  height: 300px !important;
}

.detail-page .score-chart-inner,
.detail-page .score-trend__chart-container > div {
  height: 150px !important;
}

/* Tablet & iPad (max-width: 991px) */
@media (max-width: 991px) {
  .detail-page .technical {
    flex-direction: column !important;
    row-gap: 16px !important;
  }

  .detail-charts-stack {
    width: 100% !important;
  }

  .detail-page .technical-graph,
  .detail-page .technical-score,
  .detail-page .detail-section-card .rank-score.technical-score {
    width: 100% !important;
  }

  /* 2:1 ratio on Tablet/iPad: 280px / 140px */
  .detail-page .price-chart-inner,
  .detail-page .price-trend__chart-container > div {
    height: 280px !important;
  }

  .detail-page .score-chart-inner,
  .detail-page .score-trend__chart-container > div {
    height: 140px !important;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .detail-page .technical {
    row-gap: 12px !important;
  }

  .detail-page .technical-graph,
  .detail-page .technical-score {
    padding: 10px 12px !important;
  }

  .detail-charts-stack .technical-graph {
    padding: 10px 12px 2px 12px !important;
  }

  /* 2:1 ratio on Mobile: 240px / 120px */
  .detail-page .price-chart-inner,
  .detail-page .price-trend__chart-container > div {
    height: 240px !important;
  }

  .detail-page .score-chart-inner,
  .detail-page .score-trend__chart-container > div {
    height: 120px !important;
  }
}
