.mobile-home-quotes { display:none; }

@media (max-width:767px) {
  #market-view #market-sections > [data-group],
  #market-view .certificate-dashboard > [data-group="certificate"] { display:none; }
  #market-sections > .mobile-home-quotes { display:block; grid-column:1 / -1; min-width:0; width:100%; }
  .mobile-quote-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; margin:0 0 9px; padding:4px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  .mobile-quote-tabs button { min-width:0; min-height:38px; padding:6px 1px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); font:700 clamp(.56rem,2.35vw,.66rem)/1.4 "Vazir",Tahoma,sans-serif; white-space:nowrap; cursor:pointer; }
  .mobile-quote-tabs button[aria-selected="true"] { border-color:color-mix(in srgb,var(--accent) 35%,var(--line)); color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,var(--surface)); box-shadow:0 2px 6px #00000012; }
  .mobile-quote-tabs button:focus-visible,.mobile-quote-name:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .mobile-quote-status { margin:0 0 8px; padding:7px 9px; color:var(--muted); font-size:.7rem; line-height:1.7; }
  .mobile-quote-status[hidden] { display:none; }
  .mobile-quote-status.is-error { color:var(--red,#ee8f9d); }
  .mobile-quote-list { display:grid; align-content:start; gap:6px; outline-offset:3px; }
  .mobile-quote-card { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(86px,1fr) 58px; align-items:center; gap:3px 7px; min-width:0; padding:8px; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb,var(--text) 3%,var(--surface)); box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 3%,transparent); }
  .mobile-quote-card h3 { grid-column:1; min-width:0; margin:0; font-size:.72rem; line-height:1.5; }
  #market-view .mobile-quote-card .mobile-quote-name { display:inline; width:auto; min-height:0; margin:0; padding:0; border:0; border-radius:3px; background:transparent; box-shadow:none; color:var(--text); font:inherit; text-align:start; overflow-wrap:anywhere; }
  .mobile-quote-price { display:flex; grid-column:1; align-items:baseline; flex-wrap:wrap; gap:4px; color:var(--text); font-size:.81rem; font-weight:650; line-height:1.6; }
  .mobile-quote-price small { color:var(--muted); font-size:.58rem; font-weight:400; }
  .mobile-quote-change { display:grid; grid-column:3; grid-row:1 / span 2; align-self:center; justify-items:center; gap:2px; min-width:0; width:100%; padding:5px 2px; border-radius:8px; color:var(--muted); background:color-mix(in srgb,var(--text) 5%,transparent); font-size:.75rem; font-weight:750; }
  .mobile-quote-change small { color:var(--muted); font-size:.48rem; font-weight:400; }
  .mobile-quote-change bdi,.mobile-quote-bubble bdi { direction:ltr; unicode-bidi:isolate; }
  .mobile-quote-change.positive { color:var(--green,#78e0ba); }
  .mobile-quote-change.negative { color:var(--red,#ff9ca7); }
  .mobile-quote-bubble { display:block; text-align:center; color:var(--muted); font-size:.62rem; line-height:1.5; }
  .mobile-quote-bubble bdi { color:var(--text); font-weight:600; }
  .mobile-quote-details { grid-column:2; grid-row:1 / span 2; display:grid; align-content:center; min-width:0; gap:3px; }
  .mobile-quote-charts { display:flex; justify-content:center; gap:3px; }
  .mobile-quote-charts button { flex:1 1 0; min-width:0; min-height:34px; padding:3px 1px; border:1px solid var(--line); border-radius:6px; color:var(--accent); background:color-mix(in srgb,var(--accent) 5%,var(--surface)); font:500 .51rem/1.5 "Vazir",Tahoma,sans-serif; cursor:pointer; }
  .mobile-quote-charts button.active { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 15%,var(--surface)); }
  .mobile-quote-charts button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .mobile-quote-card > .mobile-row-chart-cell { grid-column:1 / -1; min-width:0; width:100%; padding:6px 0 0; }
  .mobile-quote-card .mobile-row-chart-card { min-width:0; margin:0; }
  .mobile-quote-card .mobile-row-chart-card .gradient-area-chart { min-width:0; }
  .mobile-quote-trade-note { grid-column:1 / -1; color:var(--muted); font-size:.57rem; }
}
