:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warn: #b45309;
  --bad: #b42318;
  --ok: #15803d;
  --shadow: 0 10px 24px rgba(24, 39, 75, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

body.booting .auth-gate,
body.booting .shell {
  visibility: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.analysis-main,
.upload-box,
.tab {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  max-width: 100%;
}

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding: 18px;
}

.auth-panel {
  width: min(720px, 100%);
  margin-top: min(8vh, 42px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead {
  margin: 8px 0 16px;
  color: var(--muted);
}

.consent-box {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: start;
  color: #27364a;
  min-width: 0;
  line-height: 1.4;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.consent-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.consent-row a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.health-form {
  display: grid;
  gap: 12px;
}

.auth-health-form {
  margin: 16px 0;
}

.health-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #27364a;
  font-size: 13px;
  font-weight: 700;
}

.health-form input,
.health-form select,
.health-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 10px;
  font-weight: 500;
}

.health-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.full-field {
  min-width: 0;
}

.profile-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-save {
  width: min(260px, 100%);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.primary-action {
  border: 0;
  background: var(--accent);
  color: white;
}

.primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #f2f5f8;
  color: var(--muted);
}

.legal-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.legal-page section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #38b2ac);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.brand-name {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.topbar-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.topbar-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 0;
  color: var(--muted);
}

.topbar-metrics small {
  display: inline;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.topbar-metrics strong {
  display: inline;
  margin-top: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.header-upload-action {
  min-width: 118px;
  min-height: 38px;
  padding: 0 16px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.02;
}

h2 {
  font-size: 18px;
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin-bottom: 14px;
}

.shell > .profile-strip {
  display: none;
}

.profile-strip > div {
  min-width: 0;
  background: var(--panel);
  padding: 13px;
}

.muted {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.upload-panel {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 280px);
  gap: 14px;
  align-items: stretch;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-dashboard + .upload-panel {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  align-items: center;
  padding: 10px 12px;
  box-shadow: none;
}

.home-dashboard + .upload-panel h2 {
  font-size: 16px;
}

.home-dashboard + .upload-panel p {
  display: none;
}

.home-dashboard + .upload-panel .upload-box {
  min-height: 58px;
  padding: 9px 12px;
}

.home-dashboard + .upload-panel .upload-hint {
  display: none;
}

.upload-panel p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.upload-box {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 104px;
  padding: 14px;
  border: 1px dashed #9aa8b7;
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  text-align: center;
}

.upload-box.busy {
  pointer-events: none;
  opacity: 0.86;
}

.upload-box.desktop-limited {
  border-style: solid;
  cursor: default;
}

.upload-box.desktop-limited .upload-title {
  color: var(--muted);
}

.upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-title {
  color: var(--accent-strong);
  font-weight: 800;
}

.upload-hint {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.upload-progress {
  width: min(220px, 100%);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ee;
}

.upload-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: upload-indeterminate 1.05s ease-in-out infinite;
}

@keyframes upload-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.upload-error {
  color: var(--bad);
}

.upload-success {
  color: var(--ok);
}

.upload-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 6px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.tab-panel {
  display: none;
  min-width: 0;
}

.tab-panel.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  min-width: 0;
}

.home-dashboard {
  display: grid;
  gap: 12px;
}

.home-hero {
  display: block;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-hero h2 {
  font-size: 24px;
}

.compact-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.compact-status span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f7;
  color: #40516a;
  font-size: 12px;
}

.compact-status strong {
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.latest-card {
  grid-column: span 2;
}

.dashboard-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-card h3 {
  margin: 2px 0 8px;
  overflow-wrap: anywhere;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-number {
  display: block;
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dashboard-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f5f3;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.text-action {
  min-height: 34px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.muted-action {
  border: 1px solid var(--line);
  background: #f3f7f8;
  color: var(--accent-strong);
}

.section-head > * {
  min-width: 0;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e7f5f3;
  color: var(--accent-strong);
  font-weight: 800;
}

.analysis-list,
.plans-list {
  display: grid;
  gap: 10px;
}

.analysis-card,
.plan-card,
.chart-wrap,
.marker-info {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.analysis-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  gap: 8px 14px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  transition: background-color 160ms ease;
}

.analysis-main:active {
  background: rgba(15, 118, 110, 0.04);
}

.analysis-main:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.35);
}

.file-name {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.analysis-meta span {
  min-width: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef3f7;
  overflow-wrap: anywhere;
}

.status-pill {
  color: var(--accent-strong);
  font-weight: 800;
}

.status-pill.failed,
.attention-pill {
  background: #fff4e5 !important;
  color: var(--warn);
  font-weight: 800;
}

.status-pill.processing {
  background: #e7f5f3 !important;
  color: var(--accent-strong);
}

.analysis-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 38px;
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.analysis-action::after {
  content: "›";
  display: inline-block;
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.analysis-card.open .analysis-action {
  background: #e7f5f3;
  color: var(--accent-strong);
}

.analysis-card.open .analysis-action::after {
  transform: rotate(90deg);
}

.markers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 180ms ease, padding 260ms ease, transform 260ms ease;
}

.analysis-card.open .markers {
  padding: 0 14px 14px;
  opacity: 1;
  transform: translateY(0);
}

.analysis-detail {
  display: grid;
  gap: 12px;
}

.analysis-detail-head {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.analysis-detail-head h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.analysis-insights {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #cbe7df;
  border-radius: 8px;
  background: #eef9f6;
  color: #274c4a;
}

.analysis-insights h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 16px;
}

.analysis-insights ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.analysis-insights li {
  overflow-wrap: anywhere;
}

.analysis-attempts {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.analysis-attempts h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.attempt-list {
  display: grid;
  gap: 6px;
}

.attempt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.attempt-row strong {
  color: var(--accent-strong);
}

.attempt-row.failed strong {
  color: var(--bad);
}

.attempt-row.processing strong {
  color: var(--warn);
}

.attempt-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.attempt-error {
  margin: -2px 0 4px;
  color: var(--bad);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.attempt-message {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.target-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eefaf7;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.target-low,
.target-high,
.target-critical,
.target-borderline {
  background: #fff7ed;
  color: #9a3412;
}

.target-critical {
  background: #fef2f2;
  color: var(--bad);
}

.analysis-groups {
  display: grid;
  gap: 10px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.group-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.group-card-top {
  display: flex;
  gap: 8px;
  align-items: start;
  justify-content: space-between;
}

.group-card h3 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.group-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.group-attention,
.group-ok {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.group-attention {
  background: #fff4e5;
  color: var(--warn);
}

.group-ok {
  background: #e7f5f3;
  color: var(--accent-strong);
}

.back-action {
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
}

.danger-action {
  justify-self: start;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--bad);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.18);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.danger-action:hover {
  background: #991b1b;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.24);
}

.danger-action:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(180, 35, 24, 0.2);
}

.danger-action:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.retry-action {
  justify-self: start;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.retry-action:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.retry-action:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.18);
}

.retry-action:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.detail-markers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.trend-observations {
  display: grid;
  gap: 8px;
}

.trend-observations p {
  margin: 0;
}

.analysis-card.processing .file-name {
  color: var(--accent-strong);
}

.analysis-card.failed .file-name {
  color: var(--bad);
}

.marker {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.marker-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  font-weight: 800;
}

.marker-top span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.marker-top span:last-child {
  max-width: 42vw;
  justify-self: end;
  text-align: right;
}

.marker small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.marker-status {
  font-weight: 800;
}

.marker .clinical-note {
  padding: 8px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #eef9f6;
  color: #274c4a;
}

.clinical-note strong {
  color: var(--accent-strong);
}

.status-normal {
  color: var(--ok);
  overflow-wrap: anywhere;
}

.status-low,
.status-high {
  color: var(--warn);
  overflow-wrap: anywhere;
}

.chart-wrap {
  padding: 12px;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

select {
  width: 100%;
  min-height: 40px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 10px;
}

#markerSelect {
  flex: 0 1 360px;
  width: min(360px, 100%);
}

.marker-info,
.plan-card {
  padding: 14px;
}

.marker-info.compact {
  box-shadow: none;
}

.plan-card {
  display: grid;
  gap: 8px;
}

.plan-card button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 680px) {
  .shell {
    padding: 14px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .topbar-metrics {
    justify-content: start;
    gap: 6px 10px;
  }

  .topbar-metrics span {
    padding: 0;
  }

  .topbar-metrics strong {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .header-upload-action {
    width: 100%;
  }

  .upload-panel,
  .home-dashboard + .upload-panel,
  .profile-strip,
  .home-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 96px;
    padding: 0 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .latest-card {
    grid-column: auto;
  }

  #markerSelect {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .markers {
    grid-template-columns: 1fr;
    padding: 0 10px 10px;
  }

  .analysis-main {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .analysis-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .marker {
    padding: 10px;
  }

  .marker-top {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .marker-top span:last-child {
    max-width: 100%;
    justify-self: start;
    text-align: left;
  }
}
