:root {
  color-scheme: light;
  --mt-ink: #102238;
  --mt-muted: #65758a;
  --mt-muted-2: #526579;
  --mt-line: #e3e9ef;
  --mt-panel: #ffffff;
  --mt-page: #f4f7fa;
  --mt-soft: #f8fafc;
  --mt-green: #0f766e;
  --mt-green-dark: #0b5e58;
  --mt-green-soft: #e5f4ef;
  --mt-blue: #2563eb;
  --mt-red: #c24142;
  --mt-radius: 20px;
  --mt-shadow: 0 16px 46px rgba(16, 34, 56, .06);
}
.mt-page { margin: 0; background: var(--mt-page); color: var(--mt-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
.mt-page * { box-sizing: border-box; }
/* Honor semantic hidden state even when a component sets display:flex/block. */
.mt-page [hidden] { display: none !important; }
.mt-page a { color: inherit; text-decoration: none; }
.mt-page button, .mt-page input { font: inherit; }
.mt-page button { cursor: pointer; }
.mt-page button:focus-visible, .mt-page a:focus-visible, .mt-page input:focus-visible { outline: 3px solid rgba(15, 118, 110, .28); outline-offset: 3px; }
.mt-page .mt-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(222, 230, 237, .88); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.mt-header-inner { display: flex; align-items: center; gap: 30px; width: min(1440px, calc(100% - 64px)); min-height: 76px; margin: 0 auto; }
.mt-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mt-brand img { display: block; width: 38px; height: 38px; }
.mt-brand span { display: grid; color: #102238; font-size: 20px; line-height: 1.05; font-weight: 800; letter-spacing: -.7px; }
.mt-brand em, .mt-footer-brand em { color: var(--mt-green); font-style: normal; }
.mt-brand small { margin-top: 5px; color: #738397; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.mt-main-nav { display: flex; align-items: center; gap: 8px; height: 76px; margin-left: auto; }
.mt-main-nav a { padding: 11px 13px; border-radius: 10px; color: #56677c; font-size: 13px; font-weight: 650; white-space: nowrap; }
.mt-main-nav a:hover { background: #f1f6f7; color: var(--mt-green); }
.mt-main-nav a.is-active { background: var(--mt-green-soft); color: var(--mt-green-dark); }
.mt-header-actions { display: flex; align-items: center; gap: 9px; }
.mt-saved-link, .mt-home-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; color: #516176; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mt-saved-link { background: #f3f6f8; }
.mt-saved-link b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 7px; background: white; color: var(--mt-green); font-size: 11px; }
.mt-theme-toggle, .mt-icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--mt-line); border-radius: 12px; background: white; color: #53667b; }
.mt-home-link { padding-right: 0; }
.mt-shell { width: min(1340px, calc(100% - 64px)); margin: 0 auto; }
.mt-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 34px; align-items: center; overflow: hidden; margin: 32px 0 38px; padding: 42px 46px; border: 1px solid rgba(14, 56, 72, .45); border-radius: 26px; background: radial-gradient(ellipse at 8% 6%, rgba(26, 154, 130, .31), transparent 45%), linear-gradient(125deg, #0b2236 0%, #103449 52%, #0c5a59 100%); box-shadow: 0 22px 65px rgba(12, 41, 59, .12); color: white; }
.mt-hero:after { position: absolute; top: -150px; right: 20%; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; pointer-events: none; }
.mt-hero-copy, .mt-hero-aside { position: relative; z-index: 1; }
.mt-eyebrow { display: flex; align-items: center; gap: 10px; color: #a7e8d7; font-size: 10px; font-weight: 850; letter-spacing: 2.2px; }
.mt-live-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #12b886; box-shadow: 0 0 0 4px rgba(18,184,134,.13); }
.mt-hero h1 { margin: 17px 0 13px; font-size: clamp(38px, 4.2vw, 58px); font-weight: 760; line-height: 1.03; letter-spacing: -2.6px; }
.mt-hero h1 span { color: #8ce0c7; }
.mt-hero-copy > p { max-width: 660px; margin: 0; color: #d0e0e9; font-size: 16px; line-height: 1.75; }
.mt-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.mt-hero-tags span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(221,244,242,.17); border-radius: 9px; background: rgba(255,255,255,.05); color: #e3f1f4; font-size: 11px; font-weight: 650; }
.mt-hero-tags i { color: #7fdfc0; }
.mt-hero-aside { max-width: 420px; justify-self: end; width: 100%; padding: 22px; border: 1px solid rgba(224,244,244,.16); border-radius: 18px; background: rgba(2, 22, 36, .28); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.mt-aside-top { display: flex; align-items: center; justify-content: space-between; color: #afc5cf; font-size: 9px; font-weight: 850; letter-spacing: 1.55px; }
.mt-aside-top i { color: #84dfc1; font-size: 16px; }
.mt-aside-title { margin-top: 19px; font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.mt-hero-aside > p { margin: 5px 0 19px; color: #c5d6dd; font-size: 12px; }
.mt-provider-note { display: flex; gap: 9px; padding-top: 14px; border-top: 1px solid rgba(225,242,244,.14); color: #c0d5dc; font-size: 11px; line-height: 1.6; }
.mt-provider-note i { margin-top: 2px; color: #8bdfc5; }
.mt-section, .mt-workspace-section { margin: 36px 0; }
.mt-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.mt-section-eyebrow { display: block; margin-bottom: 5px; color: var(--mt-green); font-size: 9px; font-weight: 850; letter-spacing: 1.8px; }
.mt-section-heading h2 { margin: 0; font-size: clamp(24px, 2.7vw, 31px); line-height: 1.2; letter-spacing: -.9px; }
.mt-search { display: flex; align-items: center; gap: 10px; width: min(365px, 100%); padding: 0 12px; border: 1px solid #dfe7ed; border-radius: 12px; background: white; color: #718198; }
.mt-search i { font-size: 13px; }
.mt-search input { width: 100%; min-width: 0; height: 43px; border: 0; outline: 0; background: transparent; color: var(--mt-ink); font-size: 12px; }
.mt-search kbd { padding: 1px 6px; border: 1px solid #e1e7ec; border-radius: 5px; background: #f5f7f9; font-size: 10px; }
.mt-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.mt-category-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid #e1e8ee; border-radius: 11px; background: #fff; color: #5c6e81; font-size: 12px; font-weight: 720; white-space: nowrap; transition: background .15s, border .15s, transform .15s; }
.mt-category-tabs button:hover { transform: translateY(-1px); border-color: #b9d9d1; }
.mt-category-tabs button.is-active { border-color: var(--mt-green); background: var(--mt-green); color: white; box-shadow: 0 7px 16px rgba(15,118,110,.16); }
.mt-tab-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; border-radius: 6px; background: rgba(15,118,110,.1); color: var(--mt-green); font-size: 10px; }
.mt-category-tabs button.is-active .mt-tab-count { background: rgba(255,255,255,.18); color: white; }
.mt-market-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0 14px; }
.mt-market-heading-row h3 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.mt-market-heading-row p { margin: 3px 0 0; color: var(--mt-muted); font-size: 11px; }
.mt-refresh-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--mt-line); border-radius: 10px; background: white; color: #526579; font-size: 11px; font-weight: 750; }
.mt-refresh-button:hover, .mt-icon-button:hover { border-color: #9ecfc2; color: var(--mt-green); }
.mt-quotes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mt-quote-card, .mt-loading-card { min-width: 0; padding: 19px; border: 1px solid var(--mt-line); border-radius: 17px; background: var(--mt-panel); box-shadow: 0 7px 23px rgba(26,48,70,.025); transition: border-color .16s, box-shadow .16s, transform .16s; }
.mt-quote-card:hover { transform: translateY(-2px); border-color: #c7dcd8; box-shadow: var(--mt-shadow); }
.mt-quote-top { display: flex; align-items: flex-start; gap: 10px; }
.mt-asset-badge { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid #dbece7; border-radius: 12px; background: #edf8f4; color: var(--mt-green); font-size: 11px; font-weight: 850; }
.mt-asset-copy { min-width: 0; flex: 1; }
.mt-asset-copy h4 { overflow: hidden; margin: 1px 0 2px; color: var(--mt-ink); font-size: 13px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.mt-asset-copy p { margin: 0; color: var(--mt-muted); font-size: 10px; }
.mt-asset-category { padding: 4px 6px; border-radius: 6px; background: #f3f6f8; color: #738397; font-size: 8px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase; }
.mt-quote-price { overflow: hidden; margin: 20px 0 2px; font-size: clamp(21px, 2vw, 25px); font-weight: 780; letter-spacing: -.8px; text-overflow: ellipsis; white-space: nowrap; }
.mt-quote-subline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
.mt-quote-change { font-size: 11px; font-weight: 750; }
.mt-positive { color: #0c8b61 !important; }
.mt-negative { color: #c24142 !important; }
.mt-neutral { color: var(--mt-muted) !important; }
.mt-quote-asof { color: #8a98a9; font-size: 9px; }
.mt-quote-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #eef2f5; }
.mt-card-action { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--mt-green); font-size: 10px; font-weight: 800; }
.mt-card-tools { display: flex; align-items: center; gap: 11px; }
.mt-card-tools button { display: inline-grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e2e9ef; border-radius: 9px; background: #fff; color: #738397; }
.mt-card-tools button.is-saved { border-color: #b7ded3; background: #e9f7f2; color: var(--mt-green); }
.mt-compare-check { display: inline-flex; align-items: center; gap: 5px; color: #738397; font-size: 10px; font-weight: 650; cursor: pointer; }
.mt-compare-check input { accent-color: var(--mt-green); }
.mt-loading-card { display: grid; gap: 14px; min-height: 184px; }
.mt-skeleton { display: block; width: 47%; height: 13px; border-radius: 7px; background: linear-gradient(90deg, #edf1f5, #f8fafc, #edf1f5); background-size: 200% 100%; animation: mt-shimmer 1.4s linear infinite; }
.mt-skeleton-short { width: 63%; height: 28px; margin-top: 20px; }
.mt-skeleton-long { width: 82%; }
@keyframes mt-shimmer { to { background-position: -200% 0; } }
.mt-empty-state { grid-column: 1 / -1; padding: 37px 20px; border: 1px dashed #ccd9e1; border-radius: 16px; background: rgba(255,255,255,.7); text-align: center; }
.mt-empty-state i { color: var(--mt-green); font-size: 24px; }
.mt-empty-state h3 { margin: 9px 0 5px; }
.mt-empty-state p { max-width: 460px; margin: 0 auto 12px; color: var(--mt-muted); font-size: 12px; }
.mt-compare-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding: 13px 15px; border: 1px solid #b8ddd3; border-radius: 14px; background: #eef8f5; }
.mt-compare-toolbar > div { display: flex; align-items: center; gap: 10px; color: #26665e; font-size: 12px; font-weight: 720; }
.mt-compare-toolbar > div i { font-size: 17px; }
.mt-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 800; }
.mt-button-primary { background: var(--mt-green); color: white; }
.mt-button-primary:hover:not(:disabled) { background: var(--mt-green-dark); }
.mt-button:disabled { opacity: .45; cursor: not-allowed; }
.mt-button-secondary { border-color: #e0e8ed; background: #fff; color: #596b7e; }
.mt-workspace-section { padding-top: 10px; }
.mt-data-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #d8e6e4; border-radius: 9px; background: #f5fbf9; color: #46796f; font-size: 10px; font-weight: 750; white-space: nowrap; }
.mt-data-pill .mt-live-dot { width: 6px; height: 6px; }
.mt-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .8fr); gap: 16px; align-items: start; }
.mt-chart-panel, .mt-watchlist-panel, .mt-insight-panel { min-width: 0; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); background: var(--mt-panel); box-shadow: 0 7px 24px rgba(26,48,70,.03); }
.mt-chart-panel { padding: 23px 25px 17px; }
.mt-chart-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-chart-asset { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mt-chart-symbol-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid #d7e8e3; border-radius: 13px; background: #eff8f5; color: var(--mt-green); font-size: 16px; }
.mt-chart-kicker { display: block; color: var(--mt-muted); font-size: 9px; font-weight: 850; letter-spacing: 1.1px; }
.mt-chart-asset h3 { overflow: hidden; margin: 2px 0 0; font-size: 16px; font-weight: 780; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.mt-chart-price-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 23px 0 17px; }
.mt-chart-price { font-size: clamp(27px, 3vw, 37px); line-height: 1.1; font-weight: 790; letter-spacing: -1.3px; }
.mt-chart-change { margin-top: 7px; color: var(--mt-muted); font-size: 12px; font-weight: 740; }
.mt-chart-updated { color: var(--mt-muted-2); font-size: 10px; text-align: right; }
.mt-range-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #edf1f4; padding-bottom: 12px; }
.mt-range-tabs button { min-width: 42px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: #f4f7f9; color: #68798c; font-size: 10px; font-weight: 800; }
.mt-range-tabs button.is-active { border-color: #c2e2d9; background: #e8f7f2; color: var(--mt-green); }
.mt-chart-plot { position: relative; min-height: 260px; padding: 15px 0 5px; }
.mt-chart-plot svg { display: block; width: 100%; height: 250px; overflow: visible; }
.mt-chart-grid-line { stroke: #e9eef2; stroke-width: 1; stroke-dasharray: 4 6; }
.mt-chart-area { fill: url(#mt-chart-gradient); }
.mt-chart-line { fill: none; stroke: #0f8a74; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.mt-chart-line-2 { stroke: #4779df; }
.mt-chart-empty { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8492a2; text-align: center; }
.mt-chart-empty > i { color: #83b6a9; font-size: 28px; }
.mt-chart-empty strong { color: #526579; font-size: 13px; }
.mt-chart-empty span { max-width: 330px; padding: 0 12px; font-size: 11px; }
.mt-chart-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #edf1f4; color: #8996a5; font-size: 10px; }
.mt-chart-footer span:last-child { white-space: nowrap; }
.mt-chart-footer i { margin-right: 4px; color: var(--mt-green); }
.mt-compare-legend { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 13px; color: #63758a; font-size: 10px; font-weight: 700; }
.mt-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.mt-legend-swatch { display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: #0f8a74; }
.mt-legend-swatch.is-blue { background: #4779df; }
.mt-side-column { display: grid; gap: 16px; }
.mt-watchlist-panel, .mt-insight-panel { padding: 20px; }
.mt-side-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mt-side-panel-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.5px; }
.mt-watchlist-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #e8f6f1; color: var(--mt-green); font-size: 14px; }
.mt-panel-description { margin: 9px 0 15px; color: var(--mt-muted); font-size: 11px; line-height: 1.65; }
.mt-watchlist-items { display: grid; gap: 6px; }
.mt-watchlist-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf1f4; }
.mt-watchlist-row:last-child { border-bottom: 0; }
.mt-watchlist-row-main { min-width: 0; flex: 1; }
.mt-watchlist-row-main strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mt-watchlist-row-main span { color: var(--mt-muted); font-size: 9px; }
.mt-watchlist-row-price { text-align: right; }
.mt-watchlist-row-price strong { display: block; font-size: 11px; }
.mt-watchlist-row-price span { font-size: 9px; }
.mt-watch-remove { display: inline-grid; width: 26px; height: 26px; place-items: center; border: 1px solid #e8edf1; border-radius: 8px; background: white; color: #7e8b99; }
.mt-watchlist-view { width: 100%; margin-top: 12px; }
.mt-empty-mini { padding: 16px 10px; border: 1px dashed #dbe4ea; border-radius: 10px; color: #7c8b9c; font-size: 11px; line-height: 1.7; text-align: center; }
.mt-insight-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, #f0f8f5, #fff); }
.mt-insight-icon { display: grid; width: 37px; height: 37px; margin-bottom: 14px; place-items: center; border: 1px solid #d6eae3; border-radius: 11px; background: #fff; color: var(--mt-green); }
.mt-insight-panel .mt-section-eyebrow { margin-bottom: 7px; font-size: 8px; }
.mt-insight-panel h3 { max-width: 260px; margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.55px; }
.mt-insight-panel p { margin: 10px 0 14px; color: #66788a; font-size: 11px; line-height: 1.75; }
.mt-text-button { padding: 0; border: 0; background: transparent; color: var(--mt-green); font-size: 11px; font-weight: 800; }
.mt-bottom-note { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: start; margin: 35px 0 42px; padding: 20px 22px; border: 1px solid #dce7eb; border-radius: 16px; background: #edf4f6; }
.mt-note-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: white; color: #477b87; font-size: 15px; }
.mt-bottom-note h3 { margin: 1px 0 4px; font-size: 13px; }
.mt-bottom-note p { max-width: 900px; margin: 0; color: #627386; font-size: 10px; line-height: 1.75; }
.mt-bottom-note > a { align-self: center; color: #477b87; font-size: 10px; font-weight: 800; white-space: nowrap; }
.mt-bottom-note > a i { margin-left: 4px; }
.mt-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px max(32px, calc((100% - 1340px)/2)); border-top: 1px solid #e0e7ed; background: #fff; color: #718095; }
.mt-footer > div { display: flex; align-items: center; gap: 15px; }
.mt-footer-brand { color: #102238; font-size: 17px; font-weight: 850; letter-spacing: -.6px; }
.mt-footer > div > span { font-size: 10px; }
.mt-footer > a:last-child { color: var(--mt-green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.mt-toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(370px, calc(100vw - 44px)); padding: 13px 17px; border: 1px solid #c6ded7; border-radius: 12px; background: #f4fbf8; box-shadow: var(--mt-shadow); color: #17665b; font-size: 12px; font-weight: 700; }
.mt-page.is-dark { color-scheme: dark; --mt-ink: #e7eef7; --mt-muted: #a5b4c5; --mt-muted-2: #8999ad; --mt-line: #2c3b4e; --mt-panel: #132337; --mt-page: #091421; --mt-soft: #102034; --mt-green-soft: #133d3a; --mt-shadow: 0 16px 46px rgba(0,0,0,.18); background: var(--mt-page); color: var(--mt-ink); }
.mt-page.is-dark .mt-header, .mt-page.is-dark .mt-footer { border-color: #25364a; background: rgba(13,27,43,.95); }
.mt-page.is-dark .mt-brand span, .mt-page.is-dark .mt-footer-brand, .mt-page.is-dark .mt-asset-copy h4, .mt-page.is-dark .mt-chart-asset h3, .mt-page.is-dark .mt-side-panel-heading h3, .mt-page.is-dark .mt-market-heading-row h3, .mt-page.is-dark .mt-insight-panel h3 { color: #e7eef7; }
.mt-page.is-dark .mt-main-nav a { color: #a9b8c8; }
.mt-page.is-dark .mt-main-nav a.is-active { color: #94e0ce; background: #133d3a; }
.mt-page.is-dark .mt-search, .mt-page.is-dark .mt-category-tabs button, .mt-page.is-dark .mt-refresh-button, .mt-page.is-dark .mt-theme-toggle, .mt-page.is-dark .mt-icon-button, .mt-page.is-dark .mt-card-tools button, .mt-page.is-dark .mt-button-secondary { border-color: #2b3c50; background: #14263a; color: #c5d0dd; }
.mt-page.is-dark .mt-search input { color: #e7eef7; }
.mt-page.is-dark .mt-search kbd, .mt-page.is-dark .mt-asset-category, .mt-page.is-dark .mt-range-tabs button { border-color: #2c3c4f; background: #1b2c40; color: #a9b8c8; }
.mt-page.is-dark .mt-category-tabs button.is-active, .mt-page.is-dark .mt-range-tabs button.is-active { border-color: #2d9383; background: #11695f; color: white; }
.mt-page.is-dark .mt-asset-badge, .mt-page.is-dark .mt-chart-symbol-icon, .mt-page.is-dark .mt-watchlist-icon { border-color: #27534d; background: #143d3a; color: #8adac7; }
.mt-page.is-dark .mt-quote-foot, .mt-page.is-dark .mt-watchlist-row, .mt-page.is-dark .mt-chart-footer, .mt-page.is-dark .mt-range-tabs { border-color: #26374a; }
.mt-page.is-dark .mt-compare-toolbar, .mt-page.is-dark .mt-insight-panel, .mt-page.is-dark .mt-bottom-note { border-color: #2c454b; background: #122b32; }
.mt-page.is-dark .mt-compare-toolbar > div, .mt-page.is-dark .mt-bottom-note h3 { color: #b5e9df; }
.mt-page.is-dark .mt-bottom-note p, .mt-page.is-dark .mt-insight-panel p { color: #a7b7c8; }
.mt-page.is-dark .mt-chart-empty strong { color: #cbd7e4; }
.mt-page.is-dark .mt-empty-state, .mt-page.is-dark .mt-empty-mini { border-color: #314459; background: #132337; color: #a9b8c8; }
.mt-page.is-dark .mt-skeleton { background: linear-gradient(90deg, #203246, #2b3b4e, #203246); background-size: 200% 100%; }
.mt-page.is-dark .mt-watchlist-row-price strong, .mt-page.is-dark .mt-watchlist-row-main strong { color: #e7eef7; }
.mt-page.is-dark .mt-watch-remove { border-color: #2c3c4f; background: #14263a; color: #c5d0dd; }
.mt-page.is-dark .mt-footer > div > span { color: #a5b4c5; }
.mt-page.is-dark .mt-data-pill { border-color: #2c454b; background: #122b32; color: #b2e8dc; }
.mt-page.is-dark .mt-quote-card:hover { border-color: #2e675e; }
.mt-page.is-dark .mt-theme-toggle { color: #c5d0dd; }
@media (max-width: 1120px) {
  .mt-header-inner { width: min(100% - 40px, 1440px); gap: 15px; }
  .mt-main-nav { gap: 0; }
  .mt-main-nav a { padding: 10px 9px; font-size: 11px; }
  .mt-home-link { display: none; }
  .mt-shell { width: min(100% - 40px, 1340px); }
  .mt-hero { padding: 34px; gap: 22px; }
  .mt-quotes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mt-workspace-grid { grid-template-columns: minmax(0,1.3fr) minmax(250px,.8fr); }
}
@media (max-width: 760px) {
  .mt-header-inner { width: calc(100% - 28px); min-height: 66px; flex-wrap: wrap; gap: 0; padding: 9px 0; }
  .mt-brand img { width: 34px; height: 34px; }
  .mt-brand span { font-size: 18px; }
  .mt-brand small { font-size: 8px; }
  .mt-main-nav { display: none; }
  .mt-header-actions { gap: 6px; margin-left: auto; }
  .mt-saved-link { gap: 6px; padding: 9px 10px; }
  .mt-saved-link span { display: none; }
  .mt-theme-toggle { width: 36px; height: 36px; }
  .mt-shell { width: calc(100% - 28px); }
  .mt-hero { grid-template-columns: 1fr; gap: 24px; margin: 18px 0 28px; padding: 26px 21px; border-radius: 20px; }
  .mt-hero h1 { font-size: clamp(36px, 10vw, 48px); letter-spacing: -1.9px; }
  .mt-hero-copy > p { font-size: 13px; }
  .mt-hero-tags { gap: 7px; margin-top: 18px; }
  .mt-hero-tags span { padding: 7px 9px; font-size: 10px; }
  .mt-hero-aside { justify-self: stretch; max-width: none; padding: 17px; }
  .mt-aside-title { margin-top: 13px; font-size: 19px; }
  .mt-section, .mt-workspace-section { margin: 29px 0; }
  .mt-section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 14px; }
  .mt-section-heading h2 { font-size: 25px; }
  .mt-search { width: 100%; }
  .mt-category-tabs { margin-right: -14px; padding-right: 14px; }
  .mt-category-tabs button { min-height: 39px; padding: 0 12px; font-size: 11px; }
  .mt-market-heading-row { align-items: flex-start; }
  .mt-market-heading-row h3 { font-size: 15px; }
  .mt-market-heading-row p { max-width: 230px; line-height: 1.5; }
  .mt-refresh-button { padding: 8px 9px; font-size: 10px; }
  .mt-quotes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .mt-quote-card, .mt-loading-card { padding: 12px; border-radius: 14px; }
  .mt-quote-top { gap: 7px; }
  .mt-asset-badge { width: 32px; height: 32px; border-radius: 9px; font-size: 9px; }
  .mt-asset-copy h4 { font-size: 11px; }
  .mt-asset-copy p { font-size: 9px; }
  .mt-asset-category { display: none; }
  .mt-quote-price { margin-top: 14px; font-size: clamp(17px, 4.9vw, 22px); letter-spacing: -.5px; }
  .mt-quote-subline { align-items: flex-start; flex-direction: column; gap: 2px; }
  .mt-quote-change { font-size: 10px; }
  .mt-quote-asof { font-size: 8px; }
  .mt-quote-foot { flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 9px; }
  .mt-card-action { font-size: 9px; }
  .mt-card-tools { gap: 4px; }
  .mt-card-tools button { width: 26px; height: 26px; }
  .mt-compare-check { gap: 3px; font-size: 9px; }
  .mt-compare-toolbar { align-items: stretch; flex-direction: column; }
  .mt-compare-toolbar .mt-button { width: 100%; }
  .mt-workspace-grid { grid-template-columns: 1fr; gap: 12px; }
  .mt-chart-panel { padding: 17px 14px 13px; border-radius: 17px; }
  .mt-chart-price-row { align-items: flex-start; margin: 19px 0 14px; }
  .mt-chart-price { font-size: 29px; }
  .mt-chart-updated { max-width: 106px; font-size: 9px; line-height: 1.6; }
  .mt-range-tabs { gap: 3px; }
  .mt-range-tabs button { min-width: 36px; padding: 7px 8px; }
  .mt-chart-plot { min-height: 220px; }
  .mt-chart-plot svg { height: 215px; }
  .mt-chart-footer { flex-direction: column; gap: 4px; font-size: 9px; }
  .mt-side-column { grid-template-columns: 1fr; }
  .mt-watchlist-panel, .mt-insight-panel { padding: 17px; }
  .mt-bottom-note { grid-template-columns: 34px minmax(0,1fr); gap: 10px; margin: 28px 0; padding: 15px; }
  .mt-note-icon { width: 32px; height: 32px; }
  .mt-bottom-note > a { grid-column: 2; justify-self: start; }
  .mt-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 19px 14px; }
  .mt-footer > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mt-footer > a:last-child { white-space: normal; }
}
@media (max-width: 380px) {
  .mt-saved-link { padding: 8px; }
  .mt-quotes-grid { grid-template-columns: 1fr; }
  .mt-quote-card { padding: 15px; }
  .mt-quote-top { gap: 10px; }
  .mt-asset-category { display: inline-block; }
  .mt-quote-subline { flex-direction: row; align-items: center; }
}


/* Market Tracker enhancement: movers and professional chart modes */
.mt-movers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 6px; }
.mt-mover-panel { min-width: 0; padding: 19px 20px 14px; border: 1px solid var(--mt-line); border-radius: 17px; background: var(--mt-panel); box-shadow: 0 7px 23px rgba(26,48,70,.035); }
.mt-mover-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-mover-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.mt-mover-title h3 { margin: 0; font-size: 15px; font-weight: 780; letter-spacing: -.35px; }
.mt-mover-icon { display: inline-grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid #d8eae5; border-radius: 10px; background: #eef8f4; color: var(--mt-green); }
.mt-mover-live { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; background: var(--mt-soft); color: var(--mt-muted); font-size: 8px; font-weight: 850; letter-spacing: .7px; }
.mt-mover-description { margin: 9px 0 12px; color: var(--mt-muted); font-size: 10px; line-height: 1.6; }
.mt-mover-list { display: grid; }
.mt-mover-row { display: flex; align-items: center; gap: 8px; min-width: 0; border-bottom: 1px solid #edf1f4; }
.mt-mover-row:last-child { border-bottom: 0; }
.mt-mover-main { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 1px; border: 0; background: transparent; color: var(--mt-ink); text-align: left; }
.mt-mover-main:hover .mt-mover-copy strong { color: var(--mt-green); }
.mt-mover-copy, .mt-mover-stats { display: grid; min-width: 0; gap: 2px; }
.mt-mover-copy strong { overflow: hidden; font-size: 11px; font-weight: 740; text-overflow: ellipsis; white-space: nowrap; }
.mt-mover-copy small { overflow: hidden; color: var(--mt-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mt-mover-stats { flex: 0 0 auto; justify-items: end; max-width: 48%; text-align: right; }
.mt-mover-stats strong { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-mover-stats small { font-size: 10px; font-weight: 760; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-mover-add { display: inline-grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #dfe7ec; border-radius: 50%; background: var(--mt-panel); color: #8593a2; font-size: 14px; }
.mt-mover-add:hover, .mt-mover-add.is-saved { border-color: #b7ded3; background: #e9f7f2; color: var(--mt-green); }
.mt-mover-footnote { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #edf1f4; color: var(--mt-muted-2); font-size: 9px; line-height: 1.55; }
.mt-mover-loading, .mt-mover-empty { display: flex; min-height: 100px; align-items: center; justify-content: center; gap: 9px; color: var(--mt-muted); font-size: 11px; text-align: center; }
.mt-mini-spinner { width: 14px; height: 14px; border: 2px solid #d8eae5; border-top-color: var(--mt-green); border-radius: 50%; animation: mt-mini-spin .7s linear infinite; }
@keyframes mt-mini-spin { to { transform: rotate(360deg); } }
.mt-chart-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 3px; }
.mt-chart-control-label { flex: 0 0 auto; color: var(--mt-muted-2); font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.mt-chart-type-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.mt-chart-type-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: var(--mt-soft); color: var(--mt-muted); font-size: 10px; font-weight: 760; white-space: nowrap; }
.mt-chart-type-tabs button i { font-size: 10px; }
.mt-chart-type-tabs button:hover { border-color: #beded5; color: var(--mt-green); }
.mt-chart-type-tabs button.is-active { border-color: #b7ded3; background: #e8f7f2; color: var(--mt-green); }
.mt-candle line { stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.mt-candle rect { stroke-width: .7; vector-effect: non-scaling-stroke; }
.mt-candle-up line, .mt-candle-up rect { stroke: #0b9b6c; }
.mt-candle-up rect { fill: #0b9b6c; }
.mt-candle-down line, .mt-candle-down rect { stroke: #d94b55; }
.mt-candle-down rect { fill: #d94b55; }
.mt-chart-dot { fill: #0f8a74; stroke: #ffffff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mt-page.is-dark .mt-mover-panel { border-color: #2c3b4e; background: var(--mt-panel); }
.mt-page.is-dark .mt-mover-icon { border-color: #27534d; background: #143d3a; color: #8adac7; }
.mt-page.is-dark .mt-mover-live { background: #1b2c40; color: #a9b8c8; }
.mt-page.is-dark .mt-mover-row, .mt-page.is-dark .mt-mover-footnote { border-color: #26374a; }
.mt-page.is-dark .mt-mover-copy strong { color: #e7eef7; }
.mt-page.is-dark .mt-mover-main:hover .mt-mover-copy strong { color: #8adac7; }
.mt-page.is-dark .mt-mover-add { border-color: #2c3c4f; background: #14263a; color: #c5d0dd; }
.mt-page.is-dark .mt-mover-add:hover, .mt-page.is-dark .mt-mover-add.is-saved { border-color: #2d9383; background: #143d3a; color: #8adac7; }
.mt-page.is-dark .mt-chart-type-tabs button { border-color: #2c3c4f; background: #14263a; color: #a9b8c8; }
.mt-page.is-dark .mt-chart-type-tabs button.is-active { border-color: #2d9383; background: #133d3a; color: #94e0ce; }
.mt-page.is-dark .mt-chart-dot { stroke: #132337; }
@media (max-width: 760px) {
  .mt-movers-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .mt-mover-panel { padding: 16px 15px 12px; }
  .mt-mover-title h3 { font-size: 14px; }
  .mt-mover-main { gap: 8px; padding: 11px 1px; }
  .mt-mover-copy strong { font-size: 11px; }
  .mt-mover-stats { max-width: 46%; }
  .mt-chart-controls { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mt-chart-type-tabs { width: 100%; justify-content: flex-start; }
  .mt-chart-type-tabs button { flex: 1 1 auto; min-width: 56px; padding: 7px 8px; }
}
@media (max-width: 380px) {
  .mt-mover-heading { align-items: flex-start; }
  .mt-mover-live { font-size: 7px; letter-spacing: .3px; }
  .mt-mover-stats strong { font-size: 10px; }
  .mt-chart-type-tabs button { min-width: 0; gap: 4px; font-size: 9px; }
}

/* Premium stock-chart workspace, powered by real OHLCV history. */
.mt-market-chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 0 9px;border-top:1px solid var(--mt-line);border-bottom:1px solid var(--mt-line)}
.mt-chart-tools-left,.mt-chart-tools-right{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.mt-chart-tools-right{justify-content:flex-end;margin-left:auto}
.mt-chart-compare-button,.mt-indicator-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--mt-blue);font-size:11px;font-weight:800;white-space:nowrap}
.mt-chart-compare-button:hover,.mt-indicator-button:hover,.mt-indicator-button[aria-expanded="true"]{background:var(--mt-soft);border-color:var(--mt-line)}
.mt-range-tabs{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.mt-range-tabs button{min-width:30px;padding:7px 8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--mt-muted);font-size:11px;font-weight:780;white-space:nowrap}
.mt-range-tabs button:hover{color:var(--mt-ink);background:var(--mt-soft)}
.mt-range-tabs button.is-active{border-bottom-color:var(--mt-blue);color:var(--mt-ink);background:transparent}
.mt-chart-type-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.mt-chart-type-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:35px;min-height:34px;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--mt-muted);font-size:10px;font-weight:780;white-space:nowrap}
.mt-chart-type-tabs button i{font-size:12px}
.mt-chart-type-tabs button:hover{background:var(--mt-soft);border-color:var(--mt-line);color:var(--mt-ink)}
.mt-chart-type-tabs button.is-active{background:#edf4ff;border-color:#c8daf9;color:#205ac0}
.mt-indicator-wrap{position:relative;z-index:15}
.mt-indicator-button{border-color:var(--mt-line);background:var(--mt-panel);color:var(--mt-ink)}
.mt-indicator-button i:last-child{font-size:9px;color:var(--mt-muted)}
.mt-indicator-menu{position:absolute;right:0;top:calc(100% + 9px);width:240px;padding:12px;border:1px solid var(--mt-line);border-radius:13px;background:var(--mt-panel);box-shadow:0 18px 42px rgba(16,34,56,.15);z-index:40}
.mt-indicator-menu[hidden]{display:none}
.mt-indicator-menu-title{display:block;margin:0 0 9px;color:var(--mt-muted-2);font-size:9px;font-weight:850;letter-spacing:1px;text-transform:uppercase}
.mt-indicator-menu label{display:flex;align-items:flex-start;gap:9px;padding:10px 6px;border-top:1px solid var(--mt-line);cursor:pointer}
.mt-indicator-menu label input{margin-top:3px;accent-color:var(--mt-blue);width:15px;height:15px;flex:0 0 auto}
.mt-indicator-menu label strong,.mt-indicator-menu label small{display:block}
.mt-indicator-menu label strong{color:var(--mt-ink);font-size:11px}
.mt-indicator-menu label small{margin-top:3px;color:var(--mt-muted);font-size:10px;line-height:1.4}
.mt-ohlc-strip{display:flex;align-items:center;gap:13px;flex-wrap:wrap;min-height:40px;padding:9px 2px 8px;color:var(--mt-muted);font-size:10px;font-variant-numeric:tabular-nums}
.mt-ohlc-strip>span:not(.mt-ohlc-time){display:inline-flex;gap:5px;align-items:center}
.mt-ohlc-strip small{font-size:9px;color:var(--mt-muted-2);font-weight:850}
.mt-ohlc-strip strong{font-size:10px;color:var(--mt-ink);font-weight:790}
.mt-ohlc-time{margin-right:5px;color:var(--mt-muted);font-size:10px;font-weight:720}
.mt-chart-plot{min-height:0;padding:0}
.mt-chart-library{width:100%;height:420px;min-height:320px;overflow:hidden}
.mt-chart-library[hidden]{display:none}
.mt-chart-empty{min-height:330px}
.mt-chart-footer a{color:var(--mt-blue);font-weight:750}
.mt-page.is-dark .mt-market-chart-toolbar,.mt-page.is-dark .mt-ohlc-strip{border-color:#26374a}
.mt-page.is-dark .mt-range-tabs button.is-active{color:#e7eef7}
.mt-page.is-dark .mt-chart-type-tabs button.is-active{background:#18314e;border-color:#2d578d;color:#a9c8ff}
.mt-page.is-dark .mt-indicator-button{background:#14263a;border-color:#2c3c4f;color:#dce7f3}
.mt-page.is-dark .mt-indicator-menu{background:#101d2d;border-color:#2c3c4f;box-shadow:0 18px 42px rgba(0,0,0,.35)}
.mt-page.is-dark .mt-indicator-menu label{border-color:#26374a}
.mt-page.is-dark .mt-indicator-menu label strong,.mt-page.is-dark .mt-ohlc-strip strong{color:#e7eef7}
.mt-page.is-dark .mt-chart-compare-button:hover,.mt-page.is-dark .mt-indicator-button:hover{background:#172a41}
.mt-page.is-dark .mt-chart-plot{background:var(--mt-panel)}
@media(max-width:1100px){.mt-market-chart-toolbar{align-items:flex-start;flex-direction:column}.mt-chart-tools-left,.mt-chart-tools-right{width:100%;justify-content:flex-start}.mt-chart-tools-right{justify-content:space-between}.mt-chart-library{height:390px}}
@media(max-width:760px){.mt-chart-panel{padding:18px 15px 14px}.mt-chart-tools-left{align-items:flex-start;flex-direction:column;gap:6px}.mt-range-tabs{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.mt-range-tabs button{padding:8px 2px;text-align:center}.mt-chart-tools-right{align-items:flex-start;flex-direction:column;gap:8px}.mt-chart-type-tabs{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.mt-chart-type-tabs button{min-width:0;flex-direction:column;gap:4px;padding:7px 2px;font-size:9px}.mt-chart-type-tabs button i{font-size:13px}.mt-indicator-wrap{width:100%}.mt-indicator-button{width:100%;justify-content:space-between}.mt-indicator-menu{right:0;left:0;width:100%}.mt-ohlc-strip{gap:9px;font-size:9px}.mt-ohlc-time{width:100%;margin-right:0}.mt-chart-library{height:345px;min-height:310px}.mt-chart-empty{min-height:260px}}

/* Explicitly respect the hidden attribute; the loader must disappear after the chart is drawn. */
.mt-chart-empty[hidden] { display: none !important; }

/* Provider-backed quote detail strip for the selected instrument. */
.mt-quote-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0 4px;
}
.mt-quote-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--mt-line);
  border-radius: 11px;
  background: var(--mt-soft);
}
.mt-quote-metric span {
  color: var(--mt-muted-2);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .45px;
  text-transform: uppercase;
}
.mt-quote-metric strong {
  overflow: hidden;
  color: var(--mt-ink);
  font-size: 11px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mt-page.is-dark .mt-quote-metric {
  border-color: #2c3b4e;
  background: #132337;
}
.mt-page.is-dark .mt-quote-metric strong { color: #e7eef7; }
@media (max-width: 760px) {
  .mt-quote-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
  .mt-quote-metric { padding: 9px 8px; }
  .mt-quote-metric span { font-size: 8px; letter-spacing: .2px; }
  .mt-quote-metric strong { font-size: 10px; }
}
@media (max-width: 380px) {
  .mt-quote-metrics { grid-template-columns: 1fr; }
  .mt-quote-metric { padding: 10px; }
  .mt-quote-metric span { font-size: 9px; }
  .mt-quote-metric strong { font-size: 11px; }
}


.mt-note-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 3px;
}
.mt-note-links a {
  color: #477b87;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}
.mt-page.is-dark .mt-note-links a { color: #97d8cc; }
@media (max-width: 760px) {
  .mt-note-links { grid-column: 2; align-items: flex-start; }
  .mt-note-links a { text-align: left; white-space: normal; }
}


/* Fast discovery: popular instruments always lead into provider-backed quotes and charts. */
.mt-popular-searches {
  display: grid;
  grid-template-columns: minmax(175px, .72fr) minmax(0, 2fr);
  align-items: center;
  gap: 18px;
  margin: 15px 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--mt-line);
  border-radius: 16px;
  background: linear-gradient(115deg, #f4fbf8 0%, var(--mt-panel) 68%);
}
.mt-popular-copy h3 { margin: 0 0 4px; color: var(--mt-ink); font-size: 16px; font-weight: 800; letter-spacing: -.35px; }
.mt-popular-copy p { margin: 0; color: var(--mt-muted); font-size: 10px; line-height: 1.55; }
.mt-popular-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-popular-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #dce9e5;
  border-radius: 10px;
  background: var(--mt-panel);
  color: var(--mt-ink);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.mt-popular-chip i { color: var(--mt-green); font-size: 11px; }
.mt-popular-chip:hover { transform: translateY(-1px); border-color: #96cfc0; background: #ecf8f3; color: #0c625a; }
.mt-popular-chip:focus-visible { outline: 2px solid var(--mt-green); outline-offset: 2px; }
.mt-page.is-dark .mt-popular-searches { border-color: #2c3b4e; background: linear-gradient(115deg, #142c34 0%, var(--mt-panel) 72%); }
.mt-page.is-dark .mt-popular-chip { border-color: #2c3c4f; background: #14263a; color: #e7eef7; }
.mt-page.is-dark .mt-popular-chip i { color: #8adac7; }
.mt-page.is-dark .mt-popular-chip:hover { border-color: #2d9383; background: #143d3a; color: #b5f0e2; }
.mt-components-sector-grid { margin-top: 16px; }
.mt-components-sector-grid .mt-mover-description { max-width: 68ch; }
@media (max-width: 900px) {
  .mt-popular-searches { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
}
@media (max-width: 760px) {
  .mt-popular-searches { margin: 12px 0 16px; padding: 15px; }
  .mt-popular-chips { gap: 7px; }
  .mt-popular-chip { min-height: 35px; padding: 0 9px; font-size: 10px; }
  .mt-components-sector-grid { margin-top: 12px; }
}


/* Provider quote note and automatically refreshed data details. */
.mt-quote-source-note {
  margin: 0 0 8px;
  color: var(--mt-muted);
  font-size: 9px;
  line-height: 1.5;
}
@media (max-width: 380px) {
  .mt-quote-source-note { font-size: 9px; }
}


/* Trader-terminal polish: quote tape, simulator, dense ledger tables, and deliberate mobile overflow. */
.mt-market-tape {
  margin: 20px 0 28px;
  overflow: hidden;
  border: 1px solid var(--mt-line);
  border-radius: 18px;
  background: var(--mt-panel);
  box-shadow: var(--mt-shadow);
}
.mt-tape-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--mt-line);
}
.mt-tape-head > div { display: flex; align-items: center; gap: 12px; }
.mt-tape-head strong { color: var(--mt-ink); font-size: 13px; font-weight: 850; }
.mt-tape-update { color: var(--mt-muted-2); font-size: 10px; font-weight: 700; }
.mt-tape-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mt-tape-tile {
  display: flex; min-width: 0; flex-direction: column; align-items: flex-start;
  gap: 7px; padding: 15px 15px 14px; border: 0; border-right: 1px solid var(--mt-line);
  background: var(--mt-panel); text-align: left; transition: background .15s ease;
}
.mt-tape-tile:last-child { border-right: 0; }
.mt-tape-tile:hover { background: var(--mt-soft); }
.mt-tape-label { display: flex; align-items: center; gap: 6px; max-width: 100%; color: var(--mt-muted); font-size: 9px; font-weight: 850; letter-spacing: .3px; white-space: nowrap; }
.mt-tape-label small { padding: 2px 4px; border-radius: 4px; background: var(--mt-soft); color: var(--mt-muted-2); font-size: 8px; letter-spacing: 0; }
.mt-tape-market-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--mt-blue); }
.mt-tape-price { display: block; max-width: 100%; overflow: hidden; color: var(--mt-ink); font-size: clamp(12px, 1.15vw, 17px); font-weight: 850; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.mt-tape-change { color: var(--mt-muted); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-tape-footnote { margin: 0; padding: 9px 17px; border-top: 1px solid var(--mt-line); color: var(--mt-muted-2); font-size: 9px; }
.mt-tape-tile.is-stale .mt-tape-market-dot { background: #d97706; }
.mt-tape-tile.is-unavailable .mt-tape-market-dot { background: #98a5b4; }
.mt-page.is-dark .mt-market-tape { border-color: #2c3b4e; }
.mt-page.is-dark .mt-tape-head, .mt-page.is-dark .mt-tape-tile { border-color: #26374a; }
.mt-page.is-dark .mt-tape-tile:hover { background: #16283d; }
.mt-page.is-dark .mt-tape-head strong, .mt-page.is-dark .mt-tape-price { color: #e7eef7; }
.mt-page.is-dark .mt-tape-label small { background: #192c42; }
.mt-paper-desk {
  margin: 26px 0 24px; padding: 24px; border: 1px solid var(--mt-line);
  border-radius: 22px; background: var(--mt-panel); box-shadow: var(--mt-shadow);
}
.mt-paper-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.mt-paper-heading h2 { margin: 5px 0 7px; color: var(--mt-ink); font-size: clamp(23px, 2vw, 30px); letter-spacing: -.8px; line-height: 1.12; }
.mt-paper-heading p { max-width: 680px; margin: 0; color: var(--mt-muted); font-size: 12px; line-height: 1.65; }
.mt-paper-mode { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid #b7e1d4; border-radius: 12px; background: #f0faf6; }
.mt-paper-mode-dot { width: 9px; height: 9px; border-radius: 50%; background: #0f9f78; box-shadow: 0 0 0 4px rgba(15,159,120,.1); }
.mt-paper-mode strong, .mt-paper-mode small { display: block; }
.mt-paper-mode strong { color: #0d6b52; font-size: 9px; font-weight: 900; letter-spacing: .6px; }
.mt-paper-mode small { margin-top: 3px; color: #53776e; font-size: 9px; }
.mt-paper-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mt-paper-summary-card { display: flex; min-width: 0; min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding: 14px; border: 1px solid var(--mt-line); border-radius: 13px; background: var(--mt-soft); }
.mt-paper-summary-card > span { color: var(--mt-muted); font-size: 10px; font-weight: 760; }
.mt-paper-summary-card > strong { max-width: 100%; overflow-wrap: anywhere; color: var(--mt-ink); font-size: clamp(13px, 1.3vw, 19px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.35px; }
.mt-paper-summary-card > small { color: var(--mt-muted-2); font-size: 9px; line-height: 1.45; }
.mt-paper-summary-card.mt-paper-equity { border-color: #b9d7fa; background: linear-gradient(135deg, #f2f7ff, #f9fbff); }
.mt-paper-layout { display: grid; grid-template-columns: minmax(245px, .72fr) minmax(0, 1.8fr); align-items: start; gap: 14px; }
.mt-paper-order-panel, .mt-paper-table-panel { min-width: 0; overflow: hidden; border: 1px solid var(--mt-line); border-radius: 15px; background: var(--mt-panel); }
.mt-paper-order-panel { padding: 17px; }
.mt-paper-subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--mt-line); }
.mt-paper-order-panel .mt-paper-subheading { margin: -17px -17px 14px; padding: 15px 17px 12px; }
.mt-paper-subheading h3 { margin: 3px 0 0; color: var(--mt-ink); font-size: 15px; font-weight: 850; letter-spacing: -.3px; }
.mt-paper-market-label { display: inline-flex; align-items: center; gap: 5px; color: var(--mt-muted-2); font-size: 8px; font-weight: 850; letter-spacing: .5px; white-space: nowrap; }
.mt-paper-market-label i { color: #0f9f78; font-size: 6px; }
.mt-paper-selected { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--mt-line); border-radius: 10px; background: var(--mt-soft); }
.mt-paper-selected > div:first-child { min-width: 0; }
.mt-paper-selected span, .mt-paper-selected strong, .mt-paper-selected small { display: block; }
.mt-paper-selected span { color: var(--mt-muted-2); font-size: 9px; font-weight: 750; }
.mt-paper-selected strong { margin-top: 3px; color: var(--mt-ink); font-size: 12px; font-weight: 850; }
.mt-paper-selected small { margin-top: 3px; color: var(--mt-muted); font-size: 9px; }
.mt-paper-selected-price { min-width: 0; max-width: 48%; text-align: right; }
.mt-paper-selected-price strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mt-paper-selected-price span { margin-top: 4px; overflow-wrap: anywhere; font-size: 8px; }
.mt-paper-side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 14px 0; padding: 4px; border: 1px solid var(--mt-line); border-radius: 11px; background: var(--mt-soft); }
.mt-paper-side-switch button { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--mt-muted); font-size: 11px; font-weight: 900; letter-spacing: .8px; }
.mt-paper-side-switch button.is-active[data-paper-side="buy"] { background: #0e9472; color: #fff; box-shadow: 0 4px 12px rgba(14,148,114,.2); }
.mt-paper-side-switch button.is-active[data-paper-side="sell"] { background: #cb4656; color: #fff; box-shadow: 0 4px 12px rgba(203,70,86,.18); }
.mt-paper-field-label { display: block; margin: 0 0 6px; color: var(--mt-muted); font-size: 10px; font-weight: 800; }
.mt-paper-quantity-row { display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--mt-line); border-radius: 10px; background: var(--mt-panel); }
.mt-paper-quantity-row:focus-within { border-color: var(--mt-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.mt-paper-quantity-row input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--mt-ink); font-size: 14px; font-weight: 850; }
.mt-paper-quantity-row input:focus-visible { outline: none; }
.mt-paper-quantity-row span { color: var(--mt-muted-2); font-size: 8px; font-weight: 850; letter-spacing: .5px; }
.mt-paper-order-details { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; margin: 14px 0; padding: 12px 0; border-top: 1px dashed var(--mt-line); border-bottom: 1px dashed var(--mt-line); }
.mt-paper-order-details div { min-width: 0; }
.mt-paper-order-details span, .mt-paper-order-details strong { display: block; }
.mt-paper-order-details span { color: var(--mt-muted-2); font-size: 9px; }
.mt-paper-order-details strong { margin-top: 4px; overflow: hidden; color: var(--mt-ink); font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.mt-paper-place-order { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #0d8065; border-radius: 10px; background: #0f9274; color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 7px 16px rgba(15,146,116,.14); transition: opacity .15s ease, transform .15s ease; }
.mt-paper-place-order:hover:not(:disabled) { transform: translateY(-1px); background: #0b7c63; }
.mt-paper-place-order:disabled { cursor: not-allowed; border-color: var(--mt-line); background: #e9edf2; color: #8793a1; box-shadow: none; }
.mt-paper-status { min-height: 40px; margin: 10px 0 8px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--mt-soft); color: var(--mt-muted); font-size: 9px; line-height: 1.6; }
.mt-paper-status.is-error { border-color: #f3c2c5; background: #fff4f4; color: #a42d39; }
.mt-paper-status.is-success { border-color: #b5e5d3; background: #f0faf5; color: #16734f; }
.mt-paper-status.is-warn { border-color: #f2d6a0; background: #fff9eb; color: #8a5a0a; }
.mt-paper-reset { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; background: transparent; color: var(--mt-muted); font-size: 9px; font-weight: 800; }
.mt-paper-reset:hover { color: var(--mt-red); }
.mt-paper-ledger-column { display: grid; min-width: 0; gap: 14px; }
.mt-paper-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.mt-paper-table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.mt-paper-table th { padding: 10px 11px; border-bottom: 1px solid var(--mt-line); background: var(--mt-soft); color: var(--mt-muted-2); font-size: 8px; font-weight: 900; letter-spacing: .45px; text-align: right; text-transform: uppercase; white-space: nowrap; }
.mt-paper-table th:first-child, .mt-paper-table td:first-child { text-align: left; }
.mt-paper-table td { padding: 11px; border-bottom: 1px solid var(--mt-line); color: var(--mt-ink); font-size: 10px; font-weight: 760; text-align: right; white-space: nowrap; }
.mt-paper-table tbody tr:last-child td { border-bottom: 0; }
.mt-paper-table tbody tr:hover td { background: var(--mt-soft); }
.mt-paper-table td.mt-paper-empty { padding: 26px 18px; color: var(--mt-muted-2); font-size: 10px; font-weight: 600; text-align: center; white-space: normal; }
.mt-paper-symbol-link { display: flex; min-width: 115px; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; padding: 0; background: transparent; text-align: left; }
.mt-paper-symbol-link strong { color: var(--mt-ink); font-size: 10px; font-weight: 850; }
.mt-paper-symbol-link small, .mt-paper-order-ticker { color: var(--mt-muted-2); font-size: 8px; }
.mt-paper-action { padding: 5px 8px; border: 1px solid #f2c4c9; border-radius: 6px; background: #fff5f5; color: #b52f3d; font-size: 9px; font-weight: 850; }
.mt-paper-action:hover { background: #ffe7e9; }
.mt-paper-side-badge { display: inline-flex; padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 900; letter-spacing: .3px; }
.mt-paper-side-badge.is-buy { background: #e6f7f0; color: #0e805f; }
.mt-paper-side-badge.is-sell { background: #fff0f1; color: #bd3544; }
.mt-paper-table-note { margin: 0; padding: 8px 14px; border-top: 1px solid var(--mt-line); color: var(--mt-muted-2); font-size: 9px; line-height: 1.5; }
.mt-paper-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 12px 13px; border: 1px solid var(--mt-line); border-radius: 10px; background: var(--mt-soft); color: var(--mt-muted); font-size: 9px; line-height: 1.7; }
.mt-paper-disclaimer i { padding-top: 2px; color: var(--mt-blue); }
.mt-paper-summary-card .is-positive, .mt-paper-summary-card strong.is-positive, .mt-paper-summary-card strong.mt-positive { color: #07805f; }
.mt-paper-summary-card strong.is-negative { color: #c24142; }
.mt-paper-table .mt-positive { color: #07805f; }
.mt-paper-table .mt-negative { color: #c24142; }
.mt-paper-table .mt-neutral { color: var(--mt-muted); }
.mt-page.is-dark .mt-paper-desk { border-color: #2c3b4e; background: var(--mt-panel); }
.mt-page.is-dark .mt-paper-heading h2, .mt-page.is-dark .mt-paper-subheading h3,
.mt-page.is-dark .mt-paper-summary-card > strong, .mt-page.is-dark .mt-paper-selected strong,
.mt-page.is-dark .mt-paper-order-details strong, .mt-page.is-dark .mt-paper-symbol-link strong,
.mt-page.is-dark .mt-paper-table td { color: #e7eef7; }
.mt-page.is-dark .mt-paper-mode { border-color: #245949; background: #102f2b; }
.mt-page.is-dark .mt-paper-mode strong { color: #a1e8ce; }
.mt-page.is-dark .mt-paper-mode small { color: #8dc5b3; }
.mt-page.is-dark .mt-paper-equity { border-color: #2e527b; background: linear-gradient(135deg,#142b44,#122033); }
.mt-page.is-dark .mt-paper-selected, .mt-page.is-dark .mt-paper-side-switch,
.mt-page.is-dark .mt-paper-quantity-row, .mt-page.is-dark .mt-paper-order-details,
.mt-page.is-dark .mt-paper-status, .mt-page.is-dark .mt-paper-disclaimer { border-color: #2c3b4e; background: #132337; color: #b4c2d1; }
.mt-page.is-dark .mt-paper-quantity-row input { color: #e7eef7; }
.mt-page.is-dark .mt-paper-table th { border-color: #2c3b4e; background: #14263a; }
.mt-page.is-dark .mt-paper-table td { border-color: #25364a; }
.mt-page.is-dark .mt-paper-table tbody tr:hover td { background: #16283d; }
.mt-page.is-dark .mt-paper-status.is-error { border-color: #68323c; background: #351c26; color: #ffb6bd; }
.mt-page.is-dark .mt-paper-status.is-success { border-color: #245949; background: #102f2b; color: #a1e8ce; }
.mt-page.is-dark .mt-paper-status.is-warn { border-color: #6b512c; background: #322919; color: #f3d39a; }
.mt-page.is-dark .mt-paper-action { border-color: #64343c; background: #371e28; color: #ffbdc4; }
.mt-page.is-dark .mt-paper-side-badge.is-buy { background: #143c31; color: #8ce3bd; }
.mt-page.is-dark .mt-paper-side-badge.is-sell { background: #421f2a; color: #ffbdc4; }
@media (max-width: 1100px) {
  .mt-tape-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-tape-tile:nth-child(3) { border-right: 0; }
  .mt-tape-tile:nth-child(-n+3) { border-bottom: 1px solid var(--mt-line); }
  .mt-paper-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-paper-layout { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 760px) {
  .mt-market-tape { margin: 14px 0 20px; border-radius: 14px; }
  .mt-tape-head { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 13px 9px; }
  .mt-tape-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-tape-tile { padding: 13px 11px; border-bottom: 1px solid var(--mt-line); }
  .mt-tape-tile:nth-child(odd) { border-right: 1px solid var(--mt-line); }
  .mt-tape-tile:nth-child(even) { border-right: 0; }
  .mt-tape-tile:nth-last-child(-n+2) { border-bottom: 0; }
  .mt-tape-price { font-size: 14px; }
  .mt-paper-desk { padding: 15px 12px; margin: 20px 0; border-radius: 15px; }
  .mt-paper-heading { flex-direction: column; gap: 12px; }
  .mt-paper-mode { width: 100%; }
  .mt-paper-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mt-paper-summary-card { min-height: 95px; padding: 10px; }
  .mt-paper-summary-card > strong { font-size: 15px; }
  .mt-paper-summary-card > span { font-size: 9px; }
  .mt-paper-summary-card > small { font-size: 8px; }
  .mt-paper-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mt-paper-order-panel { padding: 13px; }
  .mt-paper-order-panel .mt-paper-subheading { margin: -13px -13px 12px; padding: 13px; }
  .mt-paper-subheading { align-items: flex-start; padding: 12px 13px; }
  .mt-paper-subheading h3 { font-size: 14px; }
  .mt-paper-table { min-width: 690px; }
  .mt-paper-disclaimer { padding: 10px; font-size: 9px; }
}
@media (max-width: 360px) {
  .mt-paper-summary-card > strong { font-size: 13px; }
  .mt-paper-selected { flex-direction: column; }
  .mt-paper-selected-price { max-width: 100%; text-align: left; }
}


.mt-paper-heading-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 9px; }
.mt-paper-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mt-paper-export-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid var(--mt-line); border-radius: 8px; background: var(--mt-panel); color: var(--mt-muted); font-size: 9px; font-weight: 850; }
.mt-paper-export-actions button:hover { border-color: #93cabb; background: var(--mt-green-soft); color: var(--mt-green-dark); }
.mt-paper-export-actions button i { color: var(--mt-green); font-size: 10px; }
.mt-page.is-dark .mt-paper-export-actions button { border-color: #2c3b4e; background: #14263a; color: #d0dbe7; }
.mt-page.is-dark .mt-paper-export-actions button:hover { border-color: #2d9383; background: #143d3a; color: #b5f0e2; }
@media (max-width: 760px) {
  .mt-paper-heading-actions { width: 100%; align-items: stretch; }
  .mt-paper-export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-paper-export-actions button { min-width: 0; padding: 0 6px; font-size: 9px; }
}


.mt-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.mt-hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 0 14px; border: 1px solid #9de4d1; border-radius: 10px; background: #8fe0c7; color: #0b2e35 !important; font-size: 11px; font-weight: 900; box-shadow: 0 6px 18px rgba(3,22,29,.12); transition: transform .15s ease, background .15s ease; }
.mt-hero-cta:hover { transform: translateY(-1px); background: #b3f0dd; }
.mt-hero-cta-secondary { border-color: rgba(215,243,238,.26); background: rgba(255,255,255,.07); color: #eefaf7 !important; box-shadow: none; }
.mt-hero-cta-secondary:hover { background: rgba(255,255,255,.14); }
.mt-hero-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .mt-hero-actions { display: grid; grid-template-columns: 1fr; }
  .mt-hero-cta { width: 100%; min-height: 43px; padding: 0 10px; text-align: center; }
}


/* Direct practice-trade shortcut on eligible NSE cash-equity cards. */
.mt-quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.mt-card-paper-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 29px; padding: 0 9px; border: 1px solid #b7ded3; border-radius: 8px; background: #eff9f5; color: #0a7a61; font-size: 9px; font-weight: 850; white-space: nowrap; }
.mt-card-paper-action i { font-size: 10px; }
.mt-card-paper-action:hover { border-color: #72c3ac; background: #dcf4ea; color: #075f4c; }
.mt-card-paper-action:focus-visible { outline: 2px solid var(--mt-green); outline-offset: 2px; }
.mt-page.is-dark .mt-card-paper-action { border-color: #245949; background: #102f2b; color: #a1e8ce; }
.mt-page.is-dark .mt-card-paper-action:hover { border-color: #2d9383; background: #143d3a; color: #b5f0e2; }
@media (max-width: 760px) {
  .mt-quote-foot { flex-wrap: wrap; align-items: center; }
  .mt-quote-actions { gap: 8px; }
  .mt-card-paper-action { min-height: 32px; padding: 0 8px; }
}


/* In-desk symbol picker and guided paper-trade workflow. */
.mt-paper-stock-picker { margin: 12px 0 10px; }
.mt-paper-stock-picker select { display: block; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--mt-line); border-radius: 10px; background: var(--mt-panel); color: var(--mt-ink); font: inherit; font-size: 11px; font-weight: 750; }
.mt-paper-stock-picker select:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: 2px; }
.mt-paper-stock-picker p { margin: 6px 0 0; color: var(--mt-muted-2); font-size: 9px; line-height: 1.5; }
.mt-paper-learning-steps { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 12px 0 14px; padding: 9px 10px; border: 1px solid var(--mt-line); border-radius: 9px; background: var(--mt-soft); color: var(--mt-muted); }
.mt-paper-learning-steps span { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.mt-paper-learning-steps b { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 5px; background: var(--mt-green-soft); color: var(--mt-green-dark); font-size: 8px; }
.mt-paper-learning-steps > i { color: var(--mt-muted-2); font-size: 8px; }
.mt-page.is-dark .mt-paper-stock-picker select { border-color: #2c3b4e; background: #132337; color: #e7eef7; }
.mt-page.is-dark .mt-paper-learning-steps { border-color: #2c3b4e; background: #132337; color: #b4c2d1; }
.mt-page.is-dark .mt-paper-learning-steps b { background: #143c31; color: #8ce3bd; }
@media (max-width: 760px) {
  .mt-paper-learning-steps { flex-wrap: wrap; justify-content: flex-start; gap: 7px; }
  .mt-paper-learning-steps span { font-size: 9px; }
  .mt-paper-learning-steps > i { margin: 0 2px; }
}


/* Paper trading desk: faster order sizing and app-like portfolio navigation. */
.mt-paper-stepper {
  display: inline-grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--mt-line); border-radius: 9px; background: var(--mt-soft);
  color: var(--mt-ink); font-size: 19px; font-weight: 800; line-height: 1;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.mt-paper-stepper:hover { border-color: var(--mt-blue); background: var(--mt-panel); }
.mt-paper-stepper:active { transform: scale(.96); }
.mt-paper-quick-sizes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 11px 0 2px;
}
.mt-paper-quick-sizes > span {
  margin-right: auto; color: var(--mt-muted-2); font-size: 8px; font-weight: 900; letter-spacing: .65px;
}
.mt-paper-size {
  min-width: 44px; min-height: 29px; padding: 0 8px; border: 1px solid var(--mt-line);
  border-radius: 8px; background: var(--mt-panel); color: var(--mt-muted);
  font-size: 9px; font-weight: 850; transition: .15s ease;
}
.mt-paper-size:hover:not(:disabled), .mt-paper-size.is-active {
  border-color: var(--mt-blue); background: #eff6ff; color: #1d4ed8;
}
.mt-paper-size:disabled { cursor: not-allowed; opacity: .42; }
.mt-paper-ledger-tabs {
  display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%;
  padding: 5px; border: 1px solid var(--mt-line); border-radius: 13px;
  background: var(--mt-soft);
}
.mt-paper-ledger-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--mt-muted); font-size: 10px; font-weight: 850;
  white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mt-paper-ledger-tabs button:hover { color: var(--mt-ink); }
.mt-paper-ledger-tabs button.is-active {
  border-color: var(--mt-line); background: var(--mt-panel); color: var(--mt-ink);
  box-shadow: 0 2px 6px rgba(20, 35, 60, .06);
}
.mt-paper-ledger-tabs button span {
  display: inline-grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center;
  border-radius: 6px; background: var(--mt-soft); color: var(--mt-muted-2);
  font-size: 9px; font-variant-numeric: tabular-nums;
}
.mt-paper-ledger-column > [data-paper-panel][hidden] { display: none !important; }
.mt-paper-order-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-paper-order-details strong#mt-paper-available-value { color: var(--mt-ink); }
.mt-paper-place-order { letter-spacing: .15px; }
.mt-paper-side-switch button { cursor: pointer; transition: background .15s ease, color .15s ease; }
.mt-paper-side-switch button:focus-visible, .mt-paper-size:focus-visible,
.mt-paper-stepper:focus-visible, .mt-paper-ledger-tabs button:focus-visible {
  outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px;
}
.mt-paper-status { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .mt-paper-quick-sizes { gap: 6px; }
  .mt-paper-quick-sizes > span { width: 100%; margin-bottom: 1px; }
  .mt-paper-size { flex: 1 1 0; min-width: 0; }
  .mt-paper-ledger-tabs { width: 100%; }
  .mt-paper-ledger-tabs button { flex: 1 1 0; gap: 4px; padding: 0 7px; font-size: 9px; }
  .mt-paper-stepper { flex-basis: 32px; width: 32px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-paper-stepper, .mt-paper-size, .mt-paper-ledger-tabs button { transition: none; }
}


/* Market Tracker theme contrast safeguards: it uses .mt-page.is-dark rather
   than the site-wide html.dark-mode class. */
.mt-page :is(
  .mt-paper-table-note, .mt-paper-valuation-note, .mt-paper-disclaimer,
  .mt-paper-summary-card > span, .mt-paper-summary-card > small,
  .mt-paper-order-details span, .mt-paper-selected-change,
  .mt-quote-asof, .mt-chart-updated, .mt-paper-symbol-help
) { color: #46596d; opacity: 1; }
.mt-page :is(input, select, textarea)::placeholder { color: #526579; opacity: 1; }
.mt-page.is-dark :is(
  .mt-paper-table-note, .mt-paper-valuation-note, .mt-paper-disclaimer,
  .mt-paper-summary-card > span, .mt-paper-summary-card > small,
  .mt-paper-order-details span, .mt-paper-selected-change,
  .mt-quote-asof, .mt-chart-updated, .mt-paper-symbol-help,
  .mt-paper-status:not(.is-error):not(.is-success):not(.is-warn)
) { color: #c4d0dd !important; opacity: 1; }
.mt-page.is-dark :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  color: #edf4fb; border-color: #455972; color-scheme: dark;
}
.mt-page.is-dark :is(input, select, textarea)::placeholder { color: #b8c5d6 !important; opacity: 1; }
.mt-page :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #2563eb; outline-offset: 3px;
}
.mt-page.is-dark :is(a, button, input, select, textarea):focus-visible {
  outline-color: #7dd3fc;
}


/* Keep risk-planner placeholders readable above browser/default field styles. */
.mt-page #mt-trade-entry::placeholder,
.mt-page #mt-trade-stop::placeholder,
.mt-page #mt-trade-target::placeholder {
  color: #536579 !important;
  opacity: 1 !important;
}
.mt-page.is-dark #mt-trade-entry::placeholder,
.mt-page.is-dark #mt-trade-stop::placeholder,
.mt-page.is-dark #mt-trade-target::placeholder {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  opacity: 1 !important;
}


/* Historical chart navigation controls */
.mt-chart-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  flex-wrap: wrap;
}
.mt-chart-history-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--mt-line);
  border-radius: 7px;
  background: var(--mt-card, #fff);
  color: var(--mt-ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.mt-chart-history-actions button:hover {
  border-color: var(--mt-blue, #2563eb);
  background: var(--mt-soft, #f4f7f9);
}
.mt-page.is-dark .mt-chart-history-actions button {
  border-color: #34475d;
  background: #142337;
  color: #e3edf7;
}
.mt-page.is-dark .mt-chart-history-actions button:hover {
  border-color: #7dd3fc;
  background: #20354b;
}
@media (max-width: 760px) {
  .mt-chart-history-actions {
    width: 100%;
    margin: 3px 0 0;
  }
  .mt-chart-history-actions button {
    min-height: 34px;
    flex: 1 1 auto;
    font-size: 11px;
  }
}

.mt-chart-history-note {
  display: block;
  width: 100%;
  margin: 2px 0 10px;
  color: var(--mt-muted, #65758a);
  font-size: 11px;
  line-height: 1.5;
}
.mt-chart-history-note i { margin-right: 5px; color: var(--mt-blue, #2563eb); }
.mt-page.is-dark .mt-chart-history-note { color: #c4d0dd; }
.mt-page.is-dark .mt-chart-history-note i { color: #7dd3fc; }


/* Full-history and custom-date controls for the market chart */
.mt-chart-data-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--mt-line, #e1e7ee);
}
.mt-chart-control-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 132px;
  color: var(--mt-muted, #65758a);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mt-chart-control-field select,
.mt-chart-control-field input {
  min-height: 35px;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--mt-line, #dbe3eb);
  border-radius: 7px;
  background: var(--mt-card, #fff);
  color: var(--mt-ink, #24364b);
  font: inherit;
  font-size: 12px;
  letter-spacing: normal;
}
.mt-chart-custom-dates {
  display: flex;
  align-items: end;
  gap: 8px;
  flex: 1 1 440px;
  flex-wrap: wrap;
}
.mt-chart-custom-dates .mt-chart-control-field { min-width: 150px; flex: 1 1 150px; }
.mt-chart-custom-apply,
.mt-chart-custom-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid #0f766e;
  border-radius: 7px;
  background: #0f766e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.mt-chart-custom-reset {
  border-color: var(--mt-line, #dbe3eb);
  background: var(--mt-card, #fff);
  color: var(--mt-ink, #24364b);
}
.mt-chart-custom-apply:hover { background: #115e59; }
.mt-chart-custom-reset:hover { background: var(--mt-soft, #f4f7f9); }
.mt-page.is-dark .mt-chart-data-controls { border-color: #2c4055; }
.mt-page.is-dark .mt-chart-control-field { color: #c4d0dd; }
.mt-page.is-dark .mt-chart-control-field select,
.mt-page.is-dark .mt-chart-control-field input {
  border-color: #455972;
  background: #142337;
  color: #edf4fb;
  color-scheme: dark;
}
.mt-page.is-dark .mt-chart-custom-reset {
  border-color: #455972;
  background: #142337;
  color: #edf4fb;
}
.mt-page :is(.mt-chart-custom-apply, .mt-chart-custom-reset):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .mt-chart-data-controls { align-items: stretch; gap: 10px; }
  .mt-chart-control-field { min-width: 0; }
  .mt-chart-data-controls > .mt-chart-control-field { width: 100%; }
  .mt-chart-data-controls > .mt-chart-control-field select { width: 100%; }
  .mt-chart-custom-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; flex-basis: 100%; }
  .mt-chart-custom-dates .mt-chart-control-field { min-width: 0; width: 100%; }
  .mt-chart-control-field input { width: 100%; min-width: 0; box-sizing: border-box; }
  .mt-chart-custom-apply, .mt-chart-custom-reset { width: 100%; }
}
