/* Mobile usability overrides for the private app and its sign-in screens. */
@media (max-width: 850px) {
  .layout { display: block; min-height: 100vh; }
  .sidebar {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    min-height: 0;
    padding: 5px 8px env(safe-area-inset-bottom);
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    box-shadow: 0 -5px 22px #0b172922;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar > .brand, .sidebar > .navlabel, .sidebar > .local-badge { display: none; }
  .sidebar > .nav, .sidebar-bottom, .sidebar-bottom > .nav { display: contents; }
  .sidebar .nav { flex: 0 0 auto; }
  .sidebar .nav button {
    display: flex;
    flex: 0 0 76px;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 3px;
    border-radius: 10px;
    font-size: .66rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
    scroll-snap-align: start;
  }
  .sidebar .nav button span { display: block; }
  .sidebar .nav button .icon { width: 18px; height: 18px; flex: 0 0 auto; }
  .sidebar .nav button.active { background: #243d50; }
  .sidebar .profile {
    display: flex;
    flex: 0 0 auto;
    align-self: center;
    border: 0;
    padding: 0 5px;
    gap: 5px;
  }
  .sidebar .profile .row-detail { display: none; }
  .sidebar .profile button { display: inline-flex; padding: 9px; }
  .main { min-height: 100vh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .content { padding-bottom: 28px; }
  .topbar { position: sticky; top: 0; z-index: 5; }
  .tablewrap { max-width: 100%; overscroll-behavior-x: contain; }
  .tablewrap table { min-width: 680px; }
  .investment-table { min-width: 850px !important; }
  .panel, .metric, .auth-form { min-width: 0; }
  .auth-form { padding: 28px 20px; }
  .auth-form > div { width: min(100%, 420px); }
  .auth-demo { flex-wrap: wrap; gap: 18px 28px; }
  dialog { width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
  .modalhead { padding: 17px 18px; }
  .modalbody { padding: 18px; }
  .modalfoot { position: sticky; bottom: -18px; margin: 0 -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  input, select, textarea, button { scroll-margin-bottom: 90px; }
}

@media (max-width: 540px) {
  .topbar { min-height: 58px; padding: 10px 14px; }
  .topbar > span { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: .72rem; white-space: nowrap; text-overflow: ellipsis; }
  .topbar .right { gap: 8px; }
  .topbar .right button { min-height: 38px; padding: 0 11px; }
  .content { padding: 20px 13px 24px; }
  .pagehead { gap: 12px; }
  .pagehead > div:first-child p { margin-top: 4px; line-height: 1.45; }
  .pagehead .actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .pagehead .actions > * { max-width: 100%; }
  .pagehead .actions .button, .pagehead .actions button { min-height: 42px; }
  .metrics { gap: 8px; }
  .metric { min-width: 0; overflow-wrap: anywhere; }
  .panelhead { gap: 10px; flex-wrap: wrap; }
  .panelhead > * { min-width: 0; }
  .panelbody { overflow-x: auto; }
  .actions { flex-wrap: wrap; }
  .filters, .toolbar { flex-wrap: wrap; }
  .filters > *, .toolbar > * { max-width: 100%; }
  .transactions-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .transactions-filters > input { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .transactions-filters > select { min-width: 0; width: 100%; }
  .goals-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .goals-filters > input { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .goals-filters > select { min-width: 0; width: 100%; }
  .metrics[style*="repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .metrics[style*="repeat(3"] > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .tablewrap { margin-inline: -13px; padding-inline: 13px; }
  .tablewrap:has(> table)::before { content: "Deslize para ver todas as colunas →"; display: block; padding: 0 2px 8px; color: var(--muted); font-size: .68rem; text-align: right; }
  .auth-form { padding: 24px 17px; }
  .auth-form h1 { font-size: 1.55rem; }
  .auth-demo { margin: 22px 0; }
  .modalfoot { flex-wrap: wrap; }
  .modalfoot > button { flex: 1 1 120px; }
  input, select, textarea { font-size: 16px; }
  #toast { bottom: calc(78px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 28px); text-align: center; }
  h1 { font-size: 1.75rem; line-height: 1.15; }
  h2 { font-size: 1.08rem; line-height: 1.3; }
  h3 { font-size: 1rem; line-height: 1.35; }
  .pagehead > div:first-child > p { display: none; }
  .mobile-page-help { margin-top: 7px; color: var(--muted); font-size: .82rem; }
  .mobile-page-help summary, .mobile-chart-help summary { width: fit-content; color: var(--accent); cursor: pointer; font-weight: 600; }
  .mobile-page-help p { max-width: 48ch; margin: 7px 0 0; line-height: 1.5; }
  .metric { padding: 14px 13px; }
  .metric-top { font-size: .78rem; line-height: 1.3; }
  .metric-value { margin: 12px 0 8px; font-size: 1.5rem; }
  .metric-foot { font-size: .76rem; line-height: 1.35; }
  .panelhead h2 { font-size: 1rem; }
  .panelhead p, .panelbody small, .panelbody .meta { font-size: .78rem; }
  .flow-panel .chart { height: 370px; }
  .flow-panel .chart-bars, .flow-panel .chart-single .chart-bars { height: 270px; }
  .flow-panel .chart-bars .bar-stack, .flow-panel .chart-bars .bar { width: 24px; }
  .flow-panel .chart-single .chart-bars .bar-stack { width: 28px; }
  .flow-panel .chart-labels, .flow-panel .chart-category-label { font-size: .7rem; }
  .dashboard-chart .chart-details { margin-top: 10px; }
  .dashboard-chart .chart-detail-group { margin-top: 10px; }
  .analysis-line { height: 280px; }
  .analysis-history-chart { padding: 10px 8px; }
  .analysis-history-chart .analysis-line { height: 350px; }
  .analysis-y-labels text { font-size: 12px; }
  .analysis-history-chart .analysis-y-labels text { font-size: 10px; }

  /* Compact page controls and progressively reveal secondary filters. */
  body[data-page="transactions"] .pagehead { margin-bottom: 16px; }
  body[data-page="transactions"] .pagehead .eyebrow { display: none; }
  body[data-page="transactions"] .pagehead h1 { font-size: 1.55rem; margin-bottom: 3px; }
  body[data-page="transactions"] .pagehead .actions { display: grid; grid-template-columns: 1fr auto; }
  body[data-page="transactions"] .pagehead .month { min-width: 0; gap: 2px; }
  body[data-page="transactions"] .pagehead .month input { width: 100%; min-width: 0; }
  body[data-page="transactions"] .pagehead .actions > .primary { white-space: nowrap; padding-inline: 12px; }
  .transactions-filters { margin-bottom: 14px; }
  .transactions-filters > #tx-period { grid-column: 1 / -1; }
  .mobile-extra-filters { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .mobile-extra-filters summary { padding: 11px 13px; color: var(--accent); font-size: .82rem; font-weight: 650; cursor: pointer; }
  .mobile-extra-filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }
  .mobile-extra-filter-fields select { width: 100%; min-width: 0; }
  .mobile-extra-filter-fields select:last-child { grid-column: 1 / -1; }

  /* Tables become touch-friendly cards instead of horizontal scrollers. */
  .tablewrap:has(> .mobile-card-table) { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .tablewrap:has(> .mobile-card-table)::before { content: none; display: none; }
  .mobile-card-table, .investment-table.mobile-card-table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
  .mobile-card-table thead { display: none; }
  .mobile-card-table tbody { display: block; }
  .mobile-card-table tr { position: relative; width: 100%; border-bottom: 1px solid var(--line); }
  .mobile-card-table tr:last-child { border-bottom: 0; }
  .mobile-card-table td { border: 0; }

  .mobile-tx-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 14px 13px; cursor: pointer; }
  .mobile-tx-table td { display: none; padding: 0; min-width: 0; }
  .mobile-tx-table td.desc, .mobile-tx-table td.money { display: block; }
  .mobile-tx-table td.desc { grid-column: 1; grid-row: 1; }
  .mobile-tx-table td.money { grid-column: 2; grid-row: 1; align-self: center; max-width: 42vw; font-size: .9rem; white-space: nowrap; }
  .mobile-tx-table .txdesc { gap: 9px; }
  .mobile-tx-table .txdesc > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
  .mobile-tx-table .txdesc small { display: none; }
  .mobile-tx-table tr::after { content: "Ver detalhes"; grid-column: 1 / -1; color: var(--muted); font-size: .68rem; padding-left: 47px; }
  .mobile-tx-table tr.is-open::after { content: "Ocultar detalhes"; }
  .mobile-tx-table tr.is-open td:not(.desc):not(.money) { display: block; grid-column: 1 / -1; padding-left: 47px; color: var(--muted); font-size: .78rem; }
  .mobile-tx-table tr.is-open td:not(.desc):not(.money)::before { content: attr(data-mobile-label) ": "; color: var(--text); font-weight: 650; }
  .mobile-tx-table tr.is-open .txdesc > div { white-space: normal; }
  .mobile-tx-table tr.is-open .txdesc small { display: block; }
  .mobile-tx-table tr.is-open td:last-child .actions { display: inline-flex; margin-top: 4px; }

  .mobile-fixed-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 15px 14px; }
  .mobile-fixed-table td { display: block; padding: 0; min-width: 0; }
  .mobile-fixed-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 650; }
  .mobile-fixed-table td:nth-child(1) .hint { margin-top: 3px; font-size: .7rem; font-weight: 400; }
  .mobile-fixed-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: .75rem; }
  .mobile-fixed-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; white-space: nowrap; }
  .mobile-fixed-table td:nth-child(3) .hint { font-size: .68rem; font-weight: 400; }
  .mobile-fixed-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .mobile-fixed-table td:nth-child(4) .pill { display: inline-block; max-width: 46vw; white-space: normal; }
  .mobile-fixed-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; padding-top: 5px; }
  .mobile-fixed-table td:nth-child(5) .actions { justify-content: flex-start; }
  .mobile-fixed-table td:nth-child(5) .actions button:first-child { flex: 1 1 auto; background: var(--accent); border-color: var(--accent); color: white; }

  .mobile-investment-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 15px 14px; }
  .mobile-investment-table td { display: none; padding: 0; min-width: 0; }
  .mobile-investment-table td:nth-child(1), .mobile-investment-table td:nth-child(3), .mobile-investment-table td:nth-child(5), .mobile-investment-table td:nth-child(7) { display: block; }
  .mobile-investment-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .mobile-investment-table td:nth-child(1) strong { font-size: .9rem; }
  .mobile-investment-table td:nth-child(1) .hint { display: none; }
  .mobile-investment-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; white-space: nowrap; }
  .mobile-investment-table td:nth-child(3)::before { content: "Aplicado"; display: block; color: var(--muted); font-size: .64rem; font-weight: 500; }
  .mobile-investment-table td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; }
  .mobile-investment-table td:nth-child(5)::before { content: "Rendeu "; color: var(--muted); font-size: .68rem; font-weight: 500; }
  .mobile-investment-table td:nth-child(5) strong { font-size: .78rem; }
  .mobile-investment-table .investment-yield-mode { display: none; }
  .mobile-investment-table td:nth-child(7) { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; }
  .mobile-investment-table .investment-actions { display: grid; grid-template-columns: 1fr auto auto; }
  .mobile-investment-table .investment-actions button:first-child { background: var(--accent); border-color: var(--accent); color: white; }

  /* Cleaner, larger charts on narrow screens. */
  .dashboard-chart { margin-top: 24px; }
  .dashboard-chart .flow-panel .panelbody { overflow-x: auto; overscroll-behavior-x: contain; }
  .dashboard-chart .chart { width: max-content; min-width: 100%; justify-content: flex-start; padding-inline: 4px; }
  .dashboard-chart .chart:not(.chart-single) { min-width: 650px; }
  .dashboard-chart .chart-col { flex: 0 0 100px; max-width: 100px; }
  .dashboard-chart .chart-single .chart-category-col { flex-basis: 104px; min-width: 104px; }
  .dashboard-chart .chart-top-values { visibility: visible; height: 43px; }
  .dashboard-chart .flow-panel .chart { height: 330px; }
  .dashboard-chart .flow-panel .chart-bars, .dashboard-chart .flow-panel .chart-single .chart-bars { height: 245px; }
  .mobile-chart-help { margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--line); }
  .mobile-chart-help summary { padding-block: 5px; }

  body[data-page="analyses"] .analysis-history-card .panelbody { padding-inline: 8px; }
  body[data-page="analyses"] .analysis-history-chart { min-height: 290px; }
  body[data-page="analyses"] .analysis-history-chart .analysis-line-wrap { min-height: 221px; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; }
  body[data-page="analyses"] .analysis-history-chart .analysis-line { flex: 0 0 auto; width: 560px; height: 221px; }
  body[data-page="analyses"] .analysis-history-legend { justify-content: center; }
  body[data-page="analyses"] .analysis-history-chart .analysis-y-labels text:nth-child(even) { display: none; }
  body[data-page="analyses"] .mobile-analysis-details { margin-top: 12px; border-top: 1px solid var(--line); }
  body[data-page="analyses"] .mobile-analysis-details > summary { padding: 13px 2px; color: var(--accent); font-size: .82rem; font-weight: 650; cursor: pointer; }
  body[data-page="analyses"] .analysis-history-details { margin-top: 0; padding-top: 8px; }
  body[data-page="analyses"] .analysis-month-bars { height: 228px; gap: 8px; }
  body[data-page="analyses"] .analysis-month-col:nth-last-child(n + 7) { display: none; }
  body[data-page="analyses"] .analysis-month-value { display: none; }
  body[data-page="analyses"] .analysis-month-track { height: 190px; }
  body[data-page="analyses"] .analysis-month-col > span { font-size: .72rem; }
  body[data-page="analyses"] .analysis-month-fill { width: min(28px, 72%); }
  body[data-page="analyses"] .analysis-average { white-space: normal; text-align: right; }
  body[data-page="analyses"] .analysis-calendar-tools { width: 100%; align-items: center; }
  body[data-page="analyses"] .analysis-calendar-tools > .meta { display: none; }
  body[data-page="analyses"] .analysis-calendar-head, body[data-page="analyses"] .analysis-calendar { gap: 4px; }
  body[data-page="analyses"] .analysis-day { min-height: 48px; padding: 5px; border-radius: 7px; }
  body[data-page="analyses"] .analysis-day > strong { align-self: center; width: 7px; height: 7px; overflow: hidden; border-radius: 50%; background: #d86b43; color: transparent; font-size: 0; }
  body[data-page="analyses"] .analysis-day > span { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; font-size: .65rem; line-height: 1.05; }
  body[data-page="analyses"] .analysis-day-today { display: block !important; max-width: 100%; margin: 3px 0 0 !important; font-size: .47rem; line-height: 1; white-space: nowrap; }
  body[data-page="analyses"] .analysis-day[data-spend-band="very-low"] { background: color-mix(in srgb, #237f68 12%, var(--surface)); border-color: color-mix(in srgb, #237f68 43%, var(--line)); }
  body[data-page="analyses"] .analysis-day[data-spend-band="low"] { background: color-mix(in srgb, #46a56f 15%, var(--surface)); border-color: color-mix(in srgb, #46a56f 50%, var(--line)); }
  body[data-page="analyses"] .analysis-day[data-spend-band="average"] { background: color-mix(in srgb, #c9ad3f 17%, var(--surface)); border-color: color-mix(in srgb, #c9ad3f 56%, var(--line)); }
  body[data-page="analyses"] .analysis-day[data-spend-band="high"] { background: color-mix(in srgb, #df913d 20%, var(--surface)); border-color: color-mix(in srgb, #df913d 63%, var(--line)); }
  body[data-page="analyses"] .analysis-day[data-spend-band="very-high"] { background: color-mix(in srgb, #dd643d 24%, var(--surface)); border-color: color-mix(in srgb, #dd643d 72%, var(--line)); }
  body[data-page="analyses"] .analysis-day[data-spend-band="very-low"] > strong { background: #237f68; }
  body[data-page="analyses"] .analysis-day[data-spend-band="low"] > strong { background: #46a56f; }
  body[data-page="analyses"] .analysis-day[data-spend-band="average"] > strong { background: #c9ad3f; }
  body[data-page="analyses"] .analysis-day[data-spend-band="high"] > strong { background: #df913d; }
  body[data-page="analyses"] .analysis-day[data-spend-band="very-high"] > strong { background: #dd643d; }
  .analysis-calendar-legend { gap: 7px 10px; font-size: .62rem; }
  .analysis-calendar-legend strong { flex-basis: 100%; font-size: .66rem; }
  .analysis-calendar-legend strong small { font-size: .6rem; }
  .analysis-calendar-legend i { width: 7px; height: 7px; }

  body[data-page="cards"] .panelbody { overflow-x: hidden; padding-inline: 14px; }
  body[data-page="cards"] .credit-visual { width: 100%; min-height: 0; aspect-ratio: 1.586 / 1; padding: 18px; border-radius: 15px; }
  body[data-page="cards"] .credit-visual h2 { max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-page="cards"] .card-number { font-size: .95rem; letter-spacing: 2px; }
  body[data-page="cards"] .card-bottom { gap: 7px; font-size: .55rem; letter-spacing: .75px; }
  body[data-page="cards"] .splitline { flex-wrap: wrap; }
  body[data-page="cards"] .guarantee-note { overflow-wrap: anywhere; }
  body[data-page="cards"] .panelbody > .actions { gap: 8px; }
  body[data-page="cards"] .panelbody > .actions button { min-width: 0; }
}

@media (max-width: 700px) {
  .analysis-month-tooltip, .analysis-day-tooltip {
    position: fixed;
    z-index: 30;
    inset: auto 14px calc(76px + env(safe-area-inset-bottom)) 14px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: 45dvh;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .analysis-month-col:hover .analysis-month-tooltip,
  .analysis-month-col:focus-within .analysis-month-tooltip,
  .analysis-day:hover .analysis-day-tooltip,
  .analysis-day:focus-within .analysis-day-tooltip { transform: none; }
}

@media (max-width: 540px) {
  body.mobile-popup-open { overflow: hidden; }
  .analysis-day > .analysis-day-tooltip,
  .analysis-month-col > .analysis-month-tooltip,
  .analysis-bar-row > .analysis-bar-tooltip { display: none !important; }
  .mobile-analysis-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: max(18px, env(safe-area-inset-top));
    background: #07111dcc;
    backdrop-filter: blur(4px);
  }
  .mobile-analysis-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(82dvh, 720px);
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: var(--nav);
    color: #f7fbff;
    box-shadow: 0 -18px 55px #02081299;
    overflow: hidden;
  }
  .mobile-analysis-sheet > header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 14px 10px 20px;
    border-bottom: 1px solid #ffffff20;
  }
  .mobile-analysis-sheet > header strong { font-size: .9rem; }
  .mobile-analysis-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ffffff29;
    border-radius: 50%;
    background: #ffffff12;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
  }
  .mobile-analysis-sheet-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 16px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-analysis-sheet-content > .analysis-day-tooltip,
  .mobile-analysis-sheet-content > .analysis-month-tooltip,
  .mobile-analysis-sheet-content > .analysis-bar-tooltip {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .mobile-analysis-sheet-content h3 { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.25; }
  .mobile-analysis-sheet-content .analysis-tooltip-summary { gap: 8px 14px; }
  .mobile-analysis-sheet-content .analysis-tooltip-summary span { font-size: .76rem; }
  .mobile-analysis-sheet-content .analysis-tooltip-summary b { min-width: 0; font-size: .8rem; overflow-wrap: anywhere; }
  .mobile-analysis-sheet-content .analysis-tooltip-box { max-height: none; padding: 13px; overflow: visible; }
  .mobile-analysis-sheet-content .analysis-tooltip-box-head { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .mobile-analysis-sheet-content .analysis-tooltip-sort { width: 100%; justify-content: space-between; }
  .mobile-analysis-sheet-content .analysis-tooltip-sort select { width: min(190px, 62%); min-width: 0; }
  .mobile-analysis-sheet-content .analysis-tooltip-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 9px 0; }
  .mobile-analysis-sheet-content .analysis-tooltip-entry span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .mobile-analysis-sheet-content .analysis-tooltip-entry b { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
