/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.4.11_react-dom@19.2.7_react@19.2.7__react@19.2.7_sass@1.77.4/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.4.11_react-dom@19.2.7_react@19.2.7__react@19.2.7_sass@1.77.4/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(app)/app.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* =====================================================================
   Helm Health — authenticated app (Next/Payload tier).
   Mirrors the Astro marketing design system ("clinical cartography"):
   warm paper · deep slate ink · one sea-teal accent · calm signals.
   Self-contained so the Payload container ships it without the Astro build.
   ===================================================================== */

:root {
  --paper: #f7f4ec;
  --paper-raised: #fcfaf4;
  --panel: #f1ebdd;
  --ink: #13242f;
  --ink-soft: #3c4f59;
  --ink-faint: #6d7c83;
  --line: #ddd5c4;
  --line-strong: #c9bfa9;

  --helm: #0e7b6b;
  --helm-deep: #0a5246;
  --helm-bright: #14a18b;
  --helm-tint: #dde9e3;
  --helm-tint-2: #ecf2ee;

  --good: #2f8f6b;
  --watch: #b1741f;
  --watch-tint: #f3e6cf;
  --alert: #b23a2b;
  --alert-tint: #f1dcd6;

  --deep: #0b1a23;
  --deep-2: #102531;
  --on-deep: #eef3f0;
  --on-deep-faint: #8fa6ac;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(19, 36, 47, 0.05), 0 10px 30px -12px rgba(19, 36, 47, 0.18);
  --shadow-lift: 0 2px 6px rgba(19, 36, 47, 0.06), 0 24px 50px -20px rgba(19, 36, 47, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(transparent 31px, rgba(19, 36, 47, 0.035) 32px),
    linear-gradient(90deg, transparent 31px, rgba(19, 36, 47, 0.022) 32px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--helm-deep); text-underline-offset: 3px; }
a:hover { color: var(--helm); }
strong { font-weight: 600; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 560px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--helm-deep);
  margin: 0 0 0.6rem;
}
.mono { font-family: var(--font-mono); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.8em 1.3em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--helm);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--helm-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--helm-deep); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--helm-tint-2); color: var(--helm-deep); }

/* ---- app shell ---- */
.app-head {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-head__inner { display: flex; align-items: center; gap: 1.2rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand__mark { color: var(--helm); flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); font-weight: 560; }
.brand__name span { color: var(--ink-faint); font-weight: 400; }
.app-nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: var(--step--1); font-weight: 500; align-items: center; }
.app-nav a { color: var(--ink-soft); text-decoration: none; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--helm-deep); }
.app-nav__user { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.78rem; }

.app-main { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }

/* ---- cards / panels ---- */
.panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 1.2rem; }

.hairline { border: none; height: 1px; background: var(--line); margin: 1.4rem 0; }

/* ---- disclaimer banner ---- */
.disclaimer {
  background: var(--helm-tint-2);
  border: 1px solid var(--helm-tint);
  border-left: 3px solid var(--helm);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.disclaimer strong { color: var(--helm-deep); }

/* ---- red flags ---- */
.redflag {
  background: var(--alert-tint);
  border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.redflag h3 { color: var(--alert); margin-bottom: 0.3rem; font-size: var(--step-1); }
.redflag p { margin: 0.2rem 0 0; color: var(--ink-soft); }

/* ---- marker grid ---- */
.marker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-gap: 1rem; gap: 1rem; }
.mcard {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  position: relative;
}
.mcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.mcard__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin: 0; }
.mcard__val { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.mcard__val b { font-weight: 500; }
.mcard__unit { color: var(--ink-faint); font-size: 0.82rem; }
.mcard__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22em 0.6em; border-radius: 999px; border: 1px solid;
}
.pill--normal { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
.pill--low, .pill--high { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); background: var(--watch-tint); }
.pill--critical { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 45%, transparent); background: var(--alert-tint); }
.pill--trend { color: var(--ink-soft); border-color: var(--line-strong); background: var(--panel); }
.mcard__exp { font-size: 0.9rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.mcard__cites { margin: 0.7rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mcard__cites a { font-size: 0.72rem; font-family: var(--font-mono); color: var(--helm-deep); text-decoration: none; border-bottom: 1px dotted var(--helm); }

/* ---- guidance ---- */
.guide { list-style: none; padding: 0; margin: 0; display: grid; grid-gap: 0.8rem; gap: 0.8rem; }
.guide li { display: flex; gap: 0.9rem; padding: 0.9rem 1rem; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.guide__tier { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; color: var(--helm-deep); flex: none; width: 1.6rem; text-align: center; }
.guide__body { flex: 1 1; }
.guide__cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.guide__harm { color: var(--watch); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---- forms ---- */
.field { display: block; margin-bottom: 1rem; }
.field > label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.input, select.input {
  width: 100%; padding: 0.7em 0.9em; font-family: var(--font-body); font-size: var(--step-0);
  color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.input:focus { outline: 2px solid var(--helm); outline-offset: 1px; border-color: var(--helm); }
.row { display: flex; gap: 0.8rem; } .row > * { flex: 1 1; }

.error { color: var(--alert); font-size: var(--step--1); margin: 0.4rem 0; }
.note { color: var(--ink-faint); font-size: var(--step--1); }

/* ---- upload ---- */
.drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 2rem 1.2rem; text-align: center; cursor: pointer; background: var(--panel);
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop--over { border-color: var(--helm); background: var(--helm-tint-2); }
.filelist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-gap: 0.6rem; gap: 0.6rem; }
.filelist li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filelist .fname { flex: 1 1; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist input[type="date"] { width: 9.5rem; }
.filelist .fx { background: none; border: none; color: var(--ink-faint); font-size: 1.2rem; cursor: pointer; }

.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.center-screen { min-height: 70vh; display: grid; place-items: center; }
.empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }

@media (max-width: 620px) {
  .app-nav { gap: 0.9rem; }
  .app-nav__user { display: none; }
  .row { flex-direction: column; }
}

