/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format('woff2'), url(/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-cyrillic-400-normal-obahsSVq.woff2) format('woff2'), url(/assets/inter-cyrillic-400-normal-HOLc17fK.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2) format('woff2'), url(/assets/inter-greek-ext-400-normal-KugGGMne.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-greek-400-normal-B4URO6DV.woff2) format('woff2'), url(/assets/inter-greek-400-normal-q2sYcFCs.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-vietnamese-400-normal-DMkecbls.woff2) format('woff2'), url(/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-latin-ext-400-normal-C1nco2VV.woff2) format('woff2'), url(/assets/inter-latin-ext-400-normal-77YHD8bZ.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-latin-400-normal-C38fXH4l.woff2) format('woff2'), url(/assets/inter-latin-400-normal-CyCys3Eg.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* inter-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2) format('woff2'), url(/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-cyrillic-600-normal-CWCymEST.woff2) format('woff2'), url(/assets/inter-cyrillic-600-normal-4D_pXhcN.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2) format('woff2'), url(/assets/inter-greek-ext-600-normal-B8X0CLgF.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-greek-600-normal-plRanbMR.woff2) format('woff2'), url(/assets/inter-greek-600-normal-BZpKdvQh.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2) format('woff2'), url(/assets/inter-vietnamese-600-normal-BuLX-rYi.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2) format('woff2'), url(/assets/inter-latin-ext-600-normal-CIVaiw4L.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-latin-600-normal-LgqL8muc.woff2) format('woff2'), url(/assets/inter-latin-600-normal-CiBQ2DWP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  font-family: "Inter", system-ui, sans-serif;
  color: #172033;
  background: #f4f6fb;
  line-height: 1.5;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: #0f6cbd;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: #172033;
  color: #f7f9fc;
}

.sidebar-title,
h1,
h2,
p {
  margin: 0;
}

.sidebar-brand {
  display: grid;
  gap: 8px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d3ddf3;
}

.nav-link.active,
.nav-link:hover {
  background: #24304a;
  color: #ffffff;
}

.sidebar-session {
  display: grid;
  gap: 12px;
}

.main-content {
  padding: 32px;
}

.page {
  display: grid;
  gap: 24px;
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #57718f;
}

.muted {
  color: #57718f;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #0f6cbd;
  color: #ffffff;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button.secondary {
  background: #24304a;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.stack {
  display: grid;
  gap: 16px;
}

.toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
}

.grow {
  flex: 1 1 220px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #c4cfdf;
  border-radius: 8px;
  background: #ffffff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.metric-tile,
.list-row {
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
}

.metric-tile {
  display: grid;
  gap: 8px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1fb;
  color: #0f6cbd;
}

.metric-label {
  color: #57718f;
}

.metric-value {
  font-size: 32px;
  font-weight: 600;
}

.metric-value-small {
  font-size: 24px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-title {
  font-weight: 600;
}

.error-copy {
  color: #b42318;
}

.data-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e3e8f2;
}

.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: #57718f;
}

.chart-panel {
  display: grid;
  gap: 12px;
  position: relative;
}

.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-axis {
  stroke: #c4cfdf;
  stroke-width: 1;
}

.chart-interaction-surface {
  fill: transparent;
  cursor: crosshair;
  touch-action: none;
}

.chart-gridline {
  stroke: #e3e8f2;
  stroke-width: 1;
}

.chart-gridline-vertical {
  stroke-dasharray: 3 6;
}

.chart-band {
  fill: rgba(15, 108, 189, 0.12);
}

.chart-selection {
  fill: rgba(15, 108, 189, 0.14);
  stroke: #0f6cbd;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-line {
  fill: none;
  stroke: #0f6cbd;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: #0f6cbd;
  stroke: #ffffff;
  stroke-width: 2;
}

.chart-point-active {
  fill: #172033;
}

.chart-hit-area {
  fill: transparent;
  cursor: pointer;
}

.chart-tick-label {
  fill: #57718f;
  font-size: 11px;
}

.chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(23, 32, 51, 0.96);
  color: #f7f9fc;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.18);
}

.chart-tooltip .muted,
.chart-tooltip .list-title {
  color: #f7f9fc;
}

.chart-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}

.chart-footer-center {
  text-align: center;
}

.chart-footer-right {
  text-align: right;
}

.biomarker-list {
  display: grid;
  gap: 16px;
}

.biomarker-group-count {
  font-size: 14px;
  font-weight: 600;
}

.biomarker-matrix-wrap {
  overflow-x: auto;
}

.biomarker-matrix {
  display: grid;
  gap: 4px;
  min-width: max-content;
}

.biomarker-group-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #dfe7f5;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.biomarker-group-row:hover {
  background: #d5e0f2;
}

.biomarker-group-row-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.biomarker-group-row-icon {
  display: inline-flex;
  align-items: center;
  color: #57718f;
  flex: 0 0 auto;
}

.biomarker-group-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.biomarker-group-body {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.biomarker-matrix-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
}

.biomarker-matrix-corner {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 8px;
  align-items: end;
  padding: 0 12px 2px;
}

.biomarker-matrix-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.biomarker-matrix-date-row {
  display: grid;
  gap: 4px;
}

.biomarker-date-header-cell {
  display: grid;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e9eef8;
  font-size: 11px;
  font-weight: 600;
  color: #57718f;
  text-align: center;
}

.biomarker-row-header {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: center;
}

.biomarker-row-title {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.biomarker-row-count {
  font-size: 12px;
}

.biomarker-sample-cell {
  display: grid;
  gap: 2px;
  padding: 5px 8px;
  border: 1px solid #e3e8f2;
  border-radius: 6px;
  background: #fbfcfe;
  align-content: center;
}

.biomarker-sample-gap {
  min-height: 0;
}

.biomarker-sample-entry {
  display: grid;
  gap: 1px;
}

.biomarker-sample-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: #172033;
  line-height: 1.2;
}

.expandable-row-body {
  display: grid;
  grid-column: 1 / -1;
  grid-template-rows: 0fr;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    grid-template-rows 180ms ease,
    opacity 140ms ease;
}

.expandable-row-body.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: visible;
}

.expandable-row-body-inner {
  min-height: 0;
  overflow: hidden;
}

.expandable-row-body.is-expanded .expandable-row-body-inner {
  overflow: visible;
}

.biomarker-sample-date {
  font-size: 11px;
  font-weight: 600;
  color: #57718f;
}

.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 2;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #172033;
  color: #f8fbff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.18);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 20px;
  }

  .list-row {
    flex-direction: column;
    align-items: start;
  }

  .chart-footer {
    grid-template-columns: 1fr;
  }

  .chart-footer-center,
  .chart-footer-right {
    text-align: left;
  }

  .biomarker-matrix-corner,
  .biomarker-group-row,
  .biomarker-matrix-row {
    grid-template-columns: 1fr;
  }

  .biomarker-matrix-date-row {
    grid-auto-columns: 88px;
  }

  .biomarker-group-title {
    font-size: 20px;
  }
}
