.all-markers-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.all-markers-controls .analysis-search { width: min(350px, 30vw); }
.analysis-view-switch { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #e8ede9; }
.analysis-view-switch [data-analysis-view] { min-height: 36px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #546661; font-size: var(--font-caption); font-weight: 700; white-space: nowrap; }
.analysis-view-switch [data-analysis-view]:hover { color: var(--deep); background: rgba(255,255,255,.5); }
.analysis-view-switch [data-analysis-view][aria-pressed="true"] { background: white; color: var(--deep); box-shadow: 0 1px 4px rgba(25,57,48,.12); }
.analysis-view-switch [data-analysis-view]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#analysesView #biomarkerColumns[hidden], #analysesView #mobileBiomarkerList[hidden], #analysesView #biomarkerTable[hidden], #analysesView #biomarkerList[hidden], #analysesView .analysis-list-container[hidden] { display: none !important; }

/* Table view: one table per category, each with its own dates (InsideTracker-style). */
.analysis-table { --table-name: 280px; --table-range: 170px; --table-nav: 40px; --table-column: 176px; display: grid; gap: 28px; color: var(--ink); }
.analysis-table.density-compact { gap: 22px; }
.analysis-table-section { min-width: 0; }
.analysis-table-title { display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px 2px; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.analysis-table-title small { color: #7c8b84; font-size: .8125rem; font-weight: 500; }
.analysis-table-grid { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #dfe6e1; border-radius: 12px; background: white; font-size: .875rem; line-height: 1.35; }
.analysis-table-grid th, .analysis-table-grid td { box-sizing: border-box; padding: 12px 8px; border-bottom: 1px solid #edf1ee; vertical-align: middle; text-align: center; overflow-wrap: anywhere; }
.analysis-table-grid tbody tr:last-child > * { border-bottom: 0; }
.analysis-table-grid thead th { height: 76px; padding-top: 10px; padding-bottom: 10px; border-bottom-color: #e3e9e4; color: #53655e; font-size: .8125rem; font-weight: 700; vertical-align: bottom; }
.analysis-table-grid .analysis-table-name { width: var(--table-name); padding-left: 18px; text-align: left; }
.analysis-table-grid .analysis-table-range { width: var(--table-range); background: #f6f5ef; }
.analysis-table-grid .analysis-table-nav { width: var(--table-nav); padding-right: 2px; padding-left: 2px; }
.analysis-table-grid .analysis-table-date { width: var(--table-column); }
.analysis-table.density-compact .analysis-table-grid .analysis-table-date { width: auto; }
.analysis-table-grid .is-latest-date { background: #f0f7ea; }
.analysis-table-grid thead .analysis-table-name, .analysis-table-grid thead .analysis-table-range { color: #4e6059; }

.analysis-table-date { font-weight: 400; }
.analysis-table-latest { display: block; margin-bottom: 4px; color: #5d7d49; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.analysis-table-date-label { display: block; color: var(--ink); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.analysis-table-count { display: block; margin-top: 3px; color: #7d8b85; font-size: .75rem; font-weight: 400; white-space: nowrap; }

.analysis-table-page { width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #e0e6e1; border-radius: 8px; background: #f4f6f3; color: #3f524b; font-size: 18px; line-height: 1; cursor: pointer; }
.analysis-table-page:hover:not(:disabled) { border-color: #c9d5cd; background: #e9efea; color: var(--deep); }
.analysis-table-page:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.analysis-table-page:disabled { opacity: .35; cursor: default; }
.analysis-table-grid thead .analysis-table-nav { vertical-align: middle; }

.analysis-table-name-content { display: flex; align-items: center; gap: 4px; min-height: 30px; }
.analysis-table-name a { min-width: 0; flex: 1; color: #2f63c3; font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.analysis-table-name a:hover { color: #1f4ea6; text-decoration: underline; text-underline-offset: 3px; }
.analysis-table-name a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.analysis-table-name .pin-button { width: 30px; height: 30px; position: static; flex: 0 0 30px; margin: -4px -4px -4px 0; border-radius: 8px; font-size: 17px; opacity: 0; }
.analysis-table-name .pin-button.pinned, .analysis-table-grid tr:hover .pin-button, .analysis-table-name .pin-button:focus-visible, .analysis-table-grid tr:focus-within .pin-button { opacity: 1; }
@media (hover: none) { .analysis-table-name .pin-button { opacity: 1; } }
/* Narrow tables keep the name readable; pinning stays available on the marker page and in cards. */
.analysis-table.density-compact .analysis-table-name .pin-button:not(.pinned) { display: none; }
.analysis-table-grid tbody tr:hover > * { background-image: linear-gradient(rgba(25, 57, 48, .035), rgba(25, 57, 48, .035)); }

.analysis-table-range-value { display: block; color: #33453f; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analysis-table-range-value small { color: #7f8b85; font-size: .8125rem; font-weight: 400; }
.analysis-table-range-source { display: block; margin-top: 2px; color: #8a938c; font-size: .6875rem; line-height: 1.3; }
.analysis-table-range-empty { color: #9aa49f; font-size: .8125rem; }
.analysis-table-name-range { margin-top: 3px; }
.analysis-table-name-range .analysis-table-range-value { font-size: .75rem; font-weight: 500; white-space: normal; }

.analysis-table-reading { display: block; }
.analysis-table-reading + .analysis-table-reading { margin-top: 6px; }
.analysis-table-value { display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 6px; }
.analysis-table-value strong { color: var(--ink); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.analysis-table-value small { color: #7f8b85; font-size: .6875rem; }
.analysis-table-dot { width: 8px; height: 8px; flex: 0 0 8px; align-self: center; border-radius: 50%; background: #b8c2bd; }
.analysis-table-reading.status-ok .analysis-table-dot { background: #4caf50; }
.analysis-table-reading.status-attention .analysis-table-dot { background: #e5484d; }
.analysis-table-reading.status-stale .analysis-table-dot { background: #e8a93a; }
.analysis-table-time { color: #85918b; font-size: .6875rem; }
.analysis-table-point-reference { display: block; margin-top: 2px; color: #8a938c; font-size: .6875rem; line-height: 1.3; }
.analysis-table-missing { color: #9aa49f; font-size: .8125rem; }
.analysis-list-sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.analysis-table.density-compact .analysis-table-grid th, .analysis-table.density-compact .analysis-table-grid td { padding: 10px 4px; }
.analysis-table.density-compact .analysis-table-grid .analysis-table-name { padding-left: 12px; }
.analysis-table.density-compact .analysis-table-grid thead th { height: 70px; }
.analysis-table.density-compact .analysis-table-page { width: 26px; height: 26px; font-size: 16px; }
.analysis-table.density-compact .analysis-table-name a { font-size: .8125rem; }
.analysis-table.density-compact .analysis-table-value strong { font-size: .875rem; }
.analysis-table.density-compact .analysis-table-date-label { font-size: .75rem; white-space: normal; }
.analysis-table.density-compact .analysis-table-count { font-size: .6875rem; white-space: normal; }

@media (max-width: 1100px) {
  .all-markers-head { flex-wrap: wrap; }
  .all-markers-controls { flex: 1; }
}
@media (max-width: 900px) {
  .all-markers-controls { justify-content: flex-start; margin-top: 11px; }
  .all-markers-controls .analysis-search { width: auto; min-width: 180px; flex: 1; margin-top: 0; }
  .analysis-view-switch [data-analysis-view] { min-height: 38px; }
}
