
/* ============================================================
   ASTROTWIN — MAIN STYLESHEET
   AstroGirlies · NASA Space Apps Challenge

   Layout: compact top cards and larger bottom cards.
   Astronaut: smooth transition between two aligned images.
   Theme: galaxy background with white information panels.
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS AND GLOBAL STYLES
   ============================================================ */

   :root {
    --bg: #07132f;
    --surface: #fffdfa;
    --cream: #f9f7f2;
  
    --ink: #173057;
    --ink2: #415875;
    --muted: #7c8da4;
  
    --blue: #2866bf;
    --blue2: #69adf0;
    --red: #ee503f;
    --green: #24a38d;
  
    --line: #e6e9ee;
    --shadow: 0 16px 42px rgba(35, 63, 100, 0.045);
    --radius: 20px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    color: var(--ink);
  
    font-family:
      Inter, ui-sans-serif, -apple-system,
      BlinkMacSystemFont, "Segoe UI", sans-serif;
  
    font-size: 14px;
  
    background-color: var(--bg);
    background-image:
      linear-gradient(
        rgba(4, 12, 36, 0.12),
        rgba(4, 12, 36, 0.22)
      ),
      url("assets/space-background.jpg");
  
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
  button,
  input,
  select {
    font: inherit;
  }
  
  button {
    cursor: pointer;
  }
  
  button:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 3px solid #77c6f0;
    outline-offset: 3px;
  }
  
  .icon {
    width: 20px;
    height: 20px;
  
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
  
    stroke-linecap: round;
    stroke-linejoin: round;
  
    flex: none;
  }
  
  
  /* ============================================================
     02. HEADER AND BRANDING
     ============================================================ */
  
  .topbar {
    height: 82px;
    display: flex;
  
    align-items: center;
    justify-content: space-between;
  
    padding: 0 29px 0 28px;
    gap: 20px;
  
    border-bottom: 1px solid #e8e6e0;
    background: #fbfaf7;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 13px;
  }
  
  .logo {
    width: 48px;
    height: 48px;
  
    position: relative;
    display: grid;
    place-items: center;
  
    border-radius: 50%;
    overflow: hidden;
  
    background: radial-gradient(
      circle at 35% 25%,
      #3e75be,
      #0f397d
    );
  
    box-shadow: 0 4px 12px #2866bf22;
    color: white;
    font-size: 21px;
  }
  
  .logo::after {
    content: "";
    position: absolute;
  
    width: 61px;
    height: 2.6px;
  
    background: var(--red);
    transform: rotate(-40deg);
    left: -5px;
  }
  
  .brand h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -1px;
    line-height: 1.1;
  }
  
  .brand p {
    margin: 4px 0 0;
    color: #8795a6;
    font-size: 12px;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--ink2);
  }
  
  .mission-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
  
    color: #4f8292;
    font-size: 12px;
  }
  
  .online {
    width: 9px;
    height: 9px;
  
    background: #2ba58b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #2ba58b18;
  }
  
  .profile {
    display: flex;
    align-items: center;
    gap: 9px;
  
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }
  
  .profile-avatar {
    width: 36px;
    height: 36px;
  
    display: grid;
    place-items: center;
  
    background: #e3edf7;
    border: 2px solid white;
    border-radius: 50%;
  }
  
  .profile strong {
    display: block;
    font-size: 12px;
  }
  
  .profile small {
    font-size: 11px;
    color: var(--muted);
  }
  
  
  /* ============================================================
     03. APPLICATION LAYOUT AND SIDEBAR
     ============================================================ */
  
  .shell {
    display: grid;
  
    grid-template-columns: 174px minmax(0, 1fr);
    min-height: calc(100vh - 82px);
  
    background-color: transparent;
  }
  
  .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  
    padding: 28px 13px 18px;
  
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
  }
  
  .nav button {
    display: flex;
    align-items: center;
    gap: 12px;
  
    padding: 12px;
    text-align: left;
  
    border: 0;
    border-radius: 13px;
  
    background: transparent;
    color: #e3ecff;
  
    font-size: 13px;
    transition: 0.2s;
  }
  
  .nav button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }
  
  .nav button.active {
    background: #edf3ff;
    color: var(--blue);
  
    font-weight: 700;
    box-shadow: inset 3px 0 var(--blue);
  }
  
  .nav-foot {
    margin-top: auto;
  }
  
  .mars-card {
    position: relative;
    overflow: hidden;
  
    min-height: 190px;
    padding: 18px 13px;
  
    border-radius: 16px;
  
    background: linear-gradient(
      150deg,
      #071d43,
      #0c3878 65%,
      #1e568e
    );
  
    color: white;
  }
  
  .mars-card::before {
    content: "";
  
    position: absolute;
    right: -28px;
    top: -31px;
  
    width: 110px;
    height: 110px;
  
    border-radius: 50%;
  
    background: radial-gradient(
      circle at 25% 30%,
      #dc8265,
      #8d3d3a 55%,
      #4f2644
    );
  
    opacity: 0.9;
    box-shadow: inset -18px -14px 22px #081d4660;
  }
  
  .mars-card small {
    display: block;
  
    color: #bfd0e6;
    font-size: 10px;
    margin-top: 78px;
  }
  
  .mars-card strong {
    display: block;
    font-size: 21px;
    margin-top: 3px;
  }
  
  .offline-note {
    display: flex;
    align-items: center;
    gap: 7px;
  
    margin-top: 21px;
  
    color: #e2eaff;
    font-size: 11px;
  }
  
  
  /* ============================================================
     04. DASHBOARD GRID AND SYSTEM SELECTOR
     ============================================================ */
  
  .content {
    min-width: 0;
    padding: 24px 24px 14px;
    background: transparent;
  }
  
  /*
     Desktop layout:
     Column 1: body system selector.
     Column 2: astronaut visualization.
     Column 3: health information.
  
     Keep these widths unless redesigning the layout.
  */
  
  
/* Main layout: astronaut and health panel */

.content-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(380px, 0.85fr);

  gap: 20px;
  align-items: stretch;
}


  .card {
    background: rgba(255, 255, 255, 0.98);
  
    border: 1px solid #e5e9ee;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .system-card {
    align-self: start;
    padding: 19px 13px;
  }
  
  .card-title {
    margin: 0 0 17px;
  
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.3px;
  }
  
  .system-btn {
    width: 100%;
    display: flex;
  
    align-items: center;
    gap: 12px;
  
    padding: 10px 11px;
    margin: 4px 0;
  
    border: 0;
    border-radius: 13px;
  
    background: transparent;
    color: #253e67;
  
    text-align: left;
    font-size: 12px;
  }
  
  .system-btn:hover {
    background: #f2f6fa;
  }
  
  .system-btn.selected {
    background: #eaf2fb;
    font-weight: 700;
  }
  
  .sys-symbol {
    width: 36px;
    height: 36px;
  
    display: grid;
    place-items: center;
  
    border-radius: 50%;
    border: 1px solid #dfe5ed;
  
    background: white;
    color: #22569a;
  
    font-size: 21px;
  }
  
  .system-btn.selected .sys-symbol {
    background: #ffe5e1;
    color: #e95e55;
    border-color: #fbd4ce;
  }
  
  .info-note {
    margin-top: 15px;
    padding: 11px;
  
    border-radius: 12px;
  
    background: #f7f9fb;
    color: #7888a0;
  
    font-size: 10px;
    line-height: 1.6;
  }
  
  
  /* ============================================================
     05. ASTRONAUT CARD
     ============================================================ */
  
  /*
     MAIN TOP HEIGHT:
     Change 650px here to adjust the astronaut card.
  
     The detail-card must use the same height.
  */
  
  
.twin-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* Larger astronaut viewing area */
  height: 780px;
  min-height: 0;
  max-height: 780px;

  /* No white card behind the astronaut */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;

  overflow: visible;
}

  
  .twin-header {
    align-self: stretch;
  
    display: flex;
    align-items: start;
    justify-content: space-between;
  
    gap: 12px;
    padding: 18px 20px 0;
  
    z-index: 5;
  }
  
  .twin-header strong {
    font-size: 14px;
    color: #ffffff;
  }
  
  .twin-header small {
    display: block;
    margin-top: 5px;
    color: #d7e6ff;
    font-size: 11px;
  }
  
  .twin-status {
    display: flex;
    align-items: center;
    gap: 5px;
  
    padding: 6px 8px;
  
    background: #e8f6f1;
    color: #328d78;
  
    border-radius: 22px;
  
    font-size: 10px;
    white-space: nowrap;
  }
  
 
.figure-scene {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 680px;
  flex: 0 0 680px;

  margin-top: 5px;

  background: transparent;
  border: none;
  box-shadow: none;
}

  
 
.figure-wrap {
  position: relative;

  /* Increase the size of both astronaut images */
  height: 660px;
  max-width: 100%;

  /* Preserve the proportions of both images */
  aspect-ratio: 808 / 1947;

  isolation: isolate;
  transition: filter 0.35s;
}

  
  
  /* ============================================================
     06. ASTRONAUT IMAGE TRANSITION
     ============================================================ */
  
  /*
     Both images occupy exactly the same position.
     JavaScript adds/removes the "open" class.
  */
  
  .astronaut-img,
  .astronaut-anatomy-img {
    position: absolute;
    inset: 0;
  
    width: 100%;
    height: 100%;
  
    object-fit: contain;
    object-position: center;
  
    pointer-events: none;
    user-select: none;
  
    filter: none;
    transition: opacity 0.45s ease-in-out;
  }
  
  /* Default: closed spacesuit visible. */
  
  .astronaut-img {
    opacity: 1;
    z-index: 1;
  }
  
  .astronaut-anatomy-img {
    opacity: 0;
    z-index: 2;
  }
  
  /* Open: display complete anatomy. */
  
  .figure-wrap.open .astronaut-img {
    opacity: 0;
  }
  
  .figure-wrap.open .astronaut-anatomy-img {
    opacity: 1;
  }
  
  /* Hide outdated body overlays. */
  
  .figure-wrap .anatomy,
  .figure-wrap .astronaut-organ-overlay {
    display: none !important;
  }
  
  /* Astronaut hover effects. */
  
  .figure-wrap:not(.open) {
    cursor: pointer;
  }
  
  .figure-wrap:not(.open):hover {
    filter: drop-shadow(0 0 14px #4b99ce32);
  }
  .glow {
    display: none;
  }
  
  /* ============================================================
     07. INTERACTIVE BODY HOTSPOTS
     ============================================================ */
  
  .hotspot {
    position: absolute;
    z-index: 4;
  
    display: grid;
    place-items: center;
  
    width: 26px;
    height: 26px;
  
    border: 2px solid #bcdaf6;
    border-radius: 50%;
  
    background: white;
    color: var(--blue);
  
    box-shadow: 0 3px 9px #26496c25;
  
    transform: translate(-50%, -50%);
  
    opacity: 0.85;
    transition: 0.2s;
  }
  
  .hotspot::before {
    content: "";
  
    width: 9px;
    height: 9px;
  
    border-radius: 50%;
    background: #3d8ff0;
  }
  
  .hotspot:hover,
  .hotspot.selected {
    border-color: #fe8f82;
    transform: translate(-50%, -50%) scale(1.15);
  }
  
  .hotspot.selected::before {
    background: var(--red);
  }
  
  /* Hide hotspots while spacesuit is closed. */
  
  .figure-wrap:not(.open) .hotspot {
    pointer-events: none;
    opacity: 0;
  }
  
  /* Anatomical hotspot coordinates. */
  
  
/* BRAIN — inside the helmet */
.hotspot[data-part="brain"] {
  left: 50%;
  top: 12%;
}

/* HEART — center-left of the chest anatomically */
.hotspot[data-part="heart"] {
  left: 55%;
  top: 30%;
}

/* LUNGS — left side of the chest */
.hotspot[data-part="lungs"] {
  left: 40%;
  top: 29%;
}

/* PULSE — right hand / wrist */
.hotspot[data-part="hand"] {
  left: 88%;
  top: 42%;
}

/* BONES — left knee */
.hotspot[data-part="bones"] {
  left: 38%;
  top: 68%;
}

/* MUSCLES — right thigh */
.hotspot[data-part="muscles"] {
  left: 63%;
  top: 55%;
}

  
  /* ============================================================
     08. BODY HOTSPOT LABELS
     ============================================================ */
  
  .hotspot-label {
    position: absolute;
    z-index: 2;
  
    padding: 5px 8px;
  
    background: #ffffffed;
  
    border: 1px solid #e8edf3;
    border-radius: 9px;
  
    color: #295286;
    font-size: 10px;
  
    box-shadow: 0 3px 12px #34537912;
  
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  
  .figure-wrap.open .hotspot-label {
    opacity: 1;
  }
  
  .label-brain {
    left: 68%;
    top: 10%;
  }
  
  .label-heart {
    left: 74%;
    top: 28%;
  }
  
  .label-hand {
    left: 100%;
    top: 49%;
  }
  
  .label-bones {
    left: 75%;
    top: 70%;
  }
  
  .label-lungs {
    right: 66%;
    top: 34%;
  }
  
  .label-muscles {
    right: 76%;
    top: 59%;
  }
  
  
  /* ============================================================
     09. SPACESUIT CONTROLS
     ============================================================ */
  
  .action-bubble {
    position: absolute;
  
    z-index: 3;
    bottom: 33px;
    left: 50%;
  
    transform: translateX(-50%);
  
    padding: 10px 16px;
  
    background: #183f77;
    color: white;
  
    border: 0;
    border-radius: 28px;
  
    font-size: 12px;
    white-space: nowrap;
  
    box-shadow: 0 6px 20px #1c4b7740;
  }
  
  .action-bubble:hover {
    background: #2d68b1;
  }
  
  .figure-helper {
    font-size: 10px;
    color: #d7e6ff;
    margin-top: -3px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  
  /* ============================================================
     10. HEALTH INFORMATION PANEL
     ============================================================ */
  
  /*
     MATCHING TOP HEIGHT:
     Keep this value equal to .twin-card.
  
     Content remains scrollable if necessary.
  */
  
  .detail-card {
    padding: 19px;
  
    height: 650px;
    min-height: 0;
    max-height: 650px;
  
    overflow-y: auto;
    overflow-x: hidden;
  
    scrollbar-width: thin;
    transform: translate(-70px, 60px);
  }
  
  .detail-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  
    padding-bottom: 16px;
  }
  
  .detail-icon {
    width: 45px;
    height: 45px;
  
    display: grid;
    place-items: center;
    flex: none;
  
    background: #ffede9;
    color: var(--red);
  
    border-radius: 50%;
    font-size: 23px;
  }
  
  .detail-header h2 {
    margin: 3px 0 6px;
  
    font-size: 19px;
    letter-spacing: -0.7px;
  }
  
  .detail-header p {
    margin: 0;
  
    font-size: 11px;
    color: #8b9bb0;
  }
  
  .demo-badge {
    margin-left: auto;
    padding: 7px 9px;
  
    background: #fff1e9;
    color: #b97551;
  
    border-radius: 30px;
  
    font-size: 10px;
    white-space: nowrap;
  }
  
  
  /* ============================================================
     11. ANATOMICAL ORGAN PREVIEW
     ============================================================ */
  
  /*
     Individual organ illustrations are shown
     only in the health information panel.
  */
  
  .organ-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  
    margin: 16px 0;
    padding: 20px;
  
    background: #fffaf5;
    border-radius: 18px;
  }
  
  .organ-visual[hidden] {
    display: none;
  }
  
  .organ-visual img {
    width: 220px;
    height: 220px;
    max-width: 100%;
  
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .organ-visual img:hover {
    transform: scale(1.08);
  }
  
  
  /* ============================================================
     12. HEALTH METRIC CARDS
     ============================================================ */
  
  .metric-cards {
    display: grid;
  
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  
    border: 1px solid var(--line);
    border-radius: 14px;
  
    overflow: hidden;
  }
  
  .metric-item {
    min-width: 0;
    padding: 15px 10px;
  
    border-right: 1px solid var(--line);
  }
  
  .metric-item:last-child {
    border: 0;
  }
  
  .metric-item label {
    display: block;
  
    color: #577293;
    font-size: 10px;
  }
  
  .metric-item strong {
    display: block;
  
    margin-top: 9px;
  
    font-size: 20px;
    letter-spacing: -0.6px;
  
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  
  .metric-item strong small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
  }
  
  .metric-item em {
    display: block;
  
    margin-top: 6px;
  
    color: #91a0b1;
  
    font-size: 10px;
    font-style: normal;
  }
  
  
  /* ============================================================
     13. HEALTH TREND CHARTS
     ============================================================ */
  
  .chart-card {
    margin-top: 14px;
    padding: 13px 15px;
  
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  
  .chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    gap: 10px;
    margin-bottom: 6px;
  }
  
  .chart-head strong {
    font-size: 12px;
  }
  
  .chart-head span {
    color: #9ba8b6;
    font-size: 10px;
  }
  
  .chart-svg {
    display: block;
    width: 100%;
    height: 159px;
  }
  
  .chart-svg text {
    font-size: 10px;
    fill: #9aadc1;
  }
  
  
  /* ============================================================
     14. MEASUREMENT INPUTS
     ============================================================ */
  
  .record-editor {
    margin-top: 14px;
    padding: 12px 14px;
  
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  
  .editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .editor-head strong {
    font-size: 12px;
  }
  
  .editor-head small {
    color: #a2adb9;
    font-size: 10px;
  }
  
  .input-row {
    display: grid;
  
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  
    margin-top: 13px;
  }
  
  .input-group label {
    display: block;
  
    margin-bottom: 5px;
  
    color: #617898;
    font-size: 10px;
  }
  
  .input-group input {
    width: 100%;
  
    padding: 9px 10px;
  
    border: 1px solid #dde5ed;
    border-radius: 9px;
  
    background: white;
    color: var(--ink);
  
    font-size: 13px;
  }
  
  .input-group small {
    display: block;
  
    margin-top: 4px;
  
    color: #8ea0ae;
    font-size: 9px;
  }
  
  .buttons-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    gap: 6px;
  
    min-height: 36px;
    padding: 9px 12px;
  
    border: 0;
    border-radius: 11px;
  
    font-size: 11px;
    font-weight: 700;
  }
  
  .btn-primary {
    background: #2866bf;
    color: white;
  }
  
  .btn-primary:hover {
    background: #1c509f;
  }
  
  .btn-soft {
    background: #ecf3fc;
    color: #245a9d;
  }
  
  .btn-soft:hover {
    background: #dbeafa;
  }
  
  
  /* ============================================================
     15. CLINICAL CONTEXT AND GUIDANCE
     ============================================================ */
  
  .insight-card {
    margin-top: 14px;
    padding: 13px 15px;
  
    background: #fbfcfe;
  
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  
  .insight-card strong {
    font-size: 12px;
  }
  
  .insight-card p {
    margin: 8px 0;
  
    color: #6f8098;
  
    font-size: 11px;
    line-height: 1.5;
  }
  
  .insight-banner {
    padding: 10px;
  
    background: #edf5fb;
    color: #4a6991;
  
    border: 1px solid #daeafb;
    border-radius: 11px;
  
    font-size: 10px;
    line-height: 1.6;
  }
  
  
  
/* ============================================================
   16. BOTTOM DASHBOARD GRID
   Hidden while the AstroCheck interface is redesigned.
   ============================================================ */

.bottom-grid {
  display: none;
}

  .bottom-card {
    min-height: 360px;
    padding: 26px;
  }
  
  .bottom-card .card-title {
    font-size: 17px;
    margin-bottom: 24px;
  }
  
  
  /* ============================================================
     17. HEALTH DATA OVERVIEW
     ============================================================ */
  
  .overview-inner {
    display: flex;
    align-items: center;
  
    gap: 26px;
  }
  
  .donut {
    position: relative;
  
    width: 130px;
    height: 130px;
  
    display: grid;
    place-items: center;
    flex: none;
  
    border-radius: 50%;
  
    background: conic-gradient(
      var(--green) 0 72%,
      #eaf0ed 72% 100%
    );
  }
  
  .donut::after {
    content: "";
  
    position: absolute;
    inset: 13px;
  
    border-radius: 50%;
    background: white;
  }
  
  .donut-text {
    z-index: 1;
    text-align: center;
  }
  
  .donut-text b {
    display: block;
    font-size: 21px;
  }
  
  .donut-text small {
    color: #8d9cae;
    font-size: 9px;
  }
  
  .readiness {
    flex: 1;
  
    display: grid;
    gap: 14px;
  }
  
  .readiness-line {
    display: grid;
  
    grid-template-columns: 1fr 90px;
  
    align-items: center;
    gap: 10px;
  
    color: #5c718d;
    font-size: 10px;
  }
  
  .readiness-line .meter {
    height: 5px;
  
    background: #eef2f5;
    border-radius: 10px;
  
    overflow: hidden;
  }
  
  .readiness-line .meter i {
    display: block;
  
    height: 100%;
  
    background: #31a99b;
    border-radius: 9px;
  }
  
  
  /* ============================================================
     18. QUICK ACTION BUTTONS
     ============================================================ */
  
  .quick-actions {
    display: grid;
    gap: 14px;
  }
  
  .quick-actions button {
    width: 100%;
  
    padding: 15px 16px;
  
    text-align: left;
  
    background: #fdfdfc;
    color: #315b8c;
  
    border: 1px solid #e7edf2;
    border-radius: 10px;
  
    font-size: 12px;
  }
  
  .quick-actions button:hover {
    background: #f0f6fd;
  }
  
  
  /* ============================================================
     19. RECENT MEASUREMENT RECORDS
     ============================================================ */
  
  .records {
    display: grid;
    gap: 0;
  
    max-height: 275px;
    overflow: auto;
  }
  
  .record {
    display: flex;
  
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  
    padding: 13px 0;
  
    border-bottom: 1px solid var(--line);
  
    font-size: 11px;
  }
  
  .record:last-child {
    border-bottom: 0;
  }
  
  .record strong {
    display: block;
    font-weight: 650;
  }
  
  .record small {
    display: block;
  
    margin-top: 3px;
  
    color: #9aa7b5;
    font-size: 9px;
  }
  
  .record span {
    color: #2b8c82;
  
    font-size: 10px;
    white-space: nowrap;
  }
  
  .records .empty {
    color: #9daab8;
  }
  
  
  /* ============================================================
     20. FOOTER AND NOTIFICATIONS
     ============================================================ */
  
  .footer {
    display: flex;
    justify-content: space-between;
  
    gap: 12px;
    padding: 14px 4px;
  
    color: #e2eaff;
    font-size: 10px;
  }
  
  .toasts {
    position: fixed;
  
    z-index: 50;
    bottom: 24px;
    right: 24px;
  
    display: grid;
    gap: 8px;
  }
  
  .toast {
    padding: 12px 15px;
  
    background: #173f76;
    color: white;
  
    border-radius: 12px;
  
    box-shadow: 0 14px 32px #102c4950;
  
    font-size: 12px;
  }
  
  
  /* ============================================================
     21. MODAL DIALOGS
     ============================================================ */
  
  .modal-backdrop {
    display: none;
  
    position: fixed;
    inset: 0;
    z-index: 30;
  
    align-items: center;
    justify-content: center;
  
    padding: 18px;
  
    background: rgba(18, 41, 69, 0.45);
    backdrop-filter: blur(4px);
  }
  
  .modal-backdrop.show {
    display: flex;
  }
  
  .modal {
    width: min(520px, 100%);
  
    padding: 27px;
  
    background: #fffefa;
  
    border-radius: 23px;
  
    box-shadow: 0 24px 65px #203d5a44;
  }
  
  .modal-header {
    display: flex;
  
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 22px;
  }
  
  .close {
    width: 34px;
    height: 34px;
  
    border: 0;
    border-radius: 9px;
  
    background: #f1f3f7;
    color: #4c6a90;
  
    font-size: 22px;
  }
  
  .modal p {
    line-height: 1.6;
    color: #627995;
  }
  
  
  /* ============================================================
     22. RADIATION SIMULATION
     ============================================================ */
  
  .slider-row {
    display: grid;
    gap: 6px;
    margin-top: 18px;
  }
  
  .slider-row label {
    font-size: 12px;
    font-weight: 650;
  }
  
  .slider-row input {
    width: 100%;
    accent-color: #2866bf;
  }
  
  .sim-result {
    margin-top: 20px;
    padding: 18px;
  
    background: #eff5fc;
    border-radius: 14px;
  }
  
  .sim-result strong {
    display: block;
  
    color: #154a91;
    font-size: 29px;
  }
  
  .sim-result small {
    color: #64819d;
  }
  
  .report-list {
    max-height: 260px;
    overflow: auto;
  }
  
  .report-list p {
    margin: 0;
    padding: 10px 0;
  
    border-bottom: 1px solid #e7edf2;
  }
  
  
  /* ============================================================
     23. STATUS AND EMPTY STATES
     ============================================================ */
  
  .flag {
    padding: 9px;
  
    background: #fff2ed;
    color: #be7666 !important;
  
    border-radius: 8px;
    font-size: 11px;
  }
  
  .empty {
    padding: 12px 0;
  
    color: #9aa9bb;
    font-size: 11px;
  }
  
  
  /* ============================================================
     24. RESPONSIVE DESIGN — SMALL DESKTOP
     ============================================================ */
  
  @media (max-width: 1450px) {
  
    .shell {
      grid-template-columns:
        148px
        minmax(0, 1fr);
    }
  
    .content {
      padding: 18px;
    }
  
   
.content-grid {
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(350px, 0.85fr);

  gap: 16px;
}

  
    .nav {
      padding-left: 9px;
      padding-right: 9px;
    }
  
    .detail-card {
      padding: 15px;
    }
  
    .metric-item {
      padding: 12px 7px;
    }
  
    .metric-item strong {
      font-size: 18px;
    }
  }
  
  
  /* ============================================================
     25. RESPONSIVE DESIGN — TABLETS
     ============================================================ */
  
  @media (max-width: 1180px) {
  
  
.content-grid {
  grid-template-columns: minmax(0, 1fr);
}

    /* Move health data below the astronaut on tablets. */
  
    .detail-card {
      grid-column: 1 / -1;
  
      height: auto;
      min-height: initial;
      max-height: none;
  
      overflow: visible;
    }
  
    .twin-card {
      height: auto;
      min-height: 635px;
      max-height: none;
    }
  
    .bottom-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .bottom-card:last-child {
      grid-column: 1 / -1;
    }
  }
  
  
  /* ============================================================
     26. RESPONSIVE DESIGN — MOBILE
     ============================================================ */
  
  @media (max-width: 740px) {
  
    .topbar {
      height: auto;
      padding: 15px 18px;
    }
  
    .brand h1 {
      font-size: 22px;
    }
  
    .header-right {
      gap: 8px;
    }
  
    .profile {
      display: none;
    }
  
    .shell {
      display: block;
    }
  
    .nav {
      display: flex;
      flex-direction: row;
  
      gap: 2px;
      padding: 8px 12px;
  
      border-right: none;
      border-bottom: 1px solid #e8e8e6;
  
      overflow-x: auto;
    }
  
    .nav button {
      padding: 9px;
  
      font-size: 11px;
      white-space: nowrap;
    }
  
    .nav button .icon {
      width: 15px;
      height: 15px;
    }
  
    .nav-foot {
      display: none;
    }
  
    .content {
      padding: 13px;
    }
  
    .content-grid {
      display: flex;
      flex-direction: column;
    }
  
    .system-card {
      width: 100%;
      padding: 13px;
    }
  
    .system-card .system-list {
      display: grid;
  
      grid-template-columns:
        repeat(3, minmax(0, 1fr));
  
      gap: 2px;
    }
  
    .system-btn {
      padding: 7px;
      gap: 5px;
  
      font-size: 10px;
    }
  
    .sys-symbol {
      width: 28px;
      height: 28px;
      font-size: 15px;
    }
  
    .info-note {
      display: none;
    }
  
    .twin-card,
    .detail-card {
      width: 100%;
  
      height: auto;
      min-height: unset;
      max-height: none;
    }
  
    .figure-scene {
      height: 530px;
      flex: 0 0 530px;
    }
  
    .figure-wrap {
      height: 510px;
    }
  
    .bottom-grid {
      grid-template-columns: 1fr;
    }
  
    .bottom-card:last-child {
      grid-column: auto;
    }
  
    .bottom-card {
      min-height: 240px;
      padding: 18px;
    }
  
    .footer {
      flex-direction: column;
    }
  
    .metric-item strong {
      font-size: 17px;
    }
  
    .modal {
      padding: 20px;
    }
  
    body {
      background-attachment: scroll;
    }
  }
  
  
  /* ============================================================
     27. ACCESSIBILITY — REDUCED MOTION
     ============================================================ */
  
  @media (prefers-reduced-motion: reduce) {
  
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
  
  }

/* Daily check: anatomy beside measurements */

.daily-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  margin: 12px 0 18px;
}

.daily-organ-panel {
  background: #fffaf7;
  border-radius: 16px;
  padding: 18px;
}

.daily-check-layout .daily-record-panel {
  margin: 0;
  padding: 18px;
}

.metric-cards[hidden],
.chart-card[hidden] {
  display: none !important;
}

  
/* ============================================================
   28. DAILY CHECKUP TITLE AND EXERCISE & RECOVERY
   Repaired additions; do not remove the original health GUI CSS.
   ============================================================ */

.daily-checkup-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

#checkupPage[hidden],
#exercisePage[hidden] { display: none !important; }

.exercise-page {
  width: 100%;
  padding: 10px 0 36px;
  box-sizing: border-box;
  color: #fff;
}

.exercise-heading { margin-bottom: 30px; }
.exercise-heading h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
}
.exercise-heading p { margin: 0; font-size: 14px; color: #c6d8f0; }

.exercise-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.exercise-option {
  width: 100%;
  min-width: 0;
  min-height: 335px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 20px;
  color: #173057;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.exercise-option:hover { transform: translateY(-4px); border-color: #8dbfff; }
.exercise-option:focus-visible { outline: 3px solid #85bcff; outline-offset: 3px; }
.exercise-option h3 { margin: 0; font-size: 25px; color: #215a9d; }
.exercise-option p { margin: 0; font-size: 13px; color: #7890aa; }

.exercise-card-image {
  width: 100%;
  max-width: 300px;
  height: 225px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto 8px;
  pointer-events: none;
}

.exercise-inline-editor {
  width: 100%;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
  border: 2px solid #367bd7;
  background: #fff;
  color: #173057;
  box-shadow: 0 10px 35px rgba(42, 112, 205, 0.17);
}
.exercise-inline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.exercise-inline-header h3 { margin: 0; font-size: 24px; color: #225eaa; }
.exercise-inline-header p { margin: 5px 0 0; font-size: 12px; color: #8195ad; }
.exercise-inline-close {
  border: none;
  border-radius: 8px;
  background: #edf4ff;
  color: #245d9b;
  font-size: 22px;
  padding: 5px 11px;
  cursor: pointer;
}
.exercise-inline-form { display: flex; flex-direction: column; }
.exercise-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.exercise-input-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #315477;
  font-size: 11px;
  font-weight: 600;
}
.exercise-input-group input,
.exercise-input-group select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #d8e5f2;
  border-radius: 9px;
  background: #f8fbff;
  color: #173057;
  font-family: inherit;
  font-size: 12px;
}
.exercise-inline-save {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #2866bf;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.exercise-inline-save:hover { background: #1e539e; }
.exercise-save-status { margin-top: 12px; color: #bfe5cf; font-size: 13px; }

@media (max-width: 850px) {
  .exercise-options { grid-template-columns: 1fr; }
  .exercise-option { min-height: 290px; }
  .exercise-card-image { height: 200px; }
  .exercise-inline-fields { grid-template-columns: 1fr; }
}


/* ================================================
   ASTROTWIN — EXERCISE CARD FORM DESIGN
   Restored polished styling
================================================ */

/* Card containing the selected exercise */

#exercisePage .exercise-inline-editor {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 26px;

  background: #ffffff;
  border: 2px solid #82b4f4;
  border-radius: 22px;

  box-shadow:
    0 14px 35px rgba(19, 61, 117, 0.13);

  color: #173057;
}

/* ================================================
   FORM HEADER
================================================ */

#exercisePage .exercise-inline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 16px;
  margin-bottom: 28px;
}

#exercisePage .exercise-inline-header h3 {
  margin: 0 0 7px;

  font-size: 26px;
  font-weight: 750;
  color: #215d9f;
  letter-spacing: -0.5px;
}

#exercisePage .exercise-inline-header p {
  margin: 0;

  font-size: 12px;
  line-height: 1.5;
  color: #8299b4;
}

/* Close button */

#exercisePage .exercise-inline-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 36px;
  height: 36px;
  padding: 0;

  background: #f0f5fd;
  color: #537ba7;

  border: none;
  border-radius: 11px;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition: background 0.2s ease;
}

#exercisePage .exercise-inline-close:hover {
  background: #dfeafb;
}

/* ================================================
   FORM LAYOUT
================================================ */

#exercisePage .exercise-inline-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Two properly aligned columns */

#exercisePage .exercise-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 18px;
  row-gap: 21px;

  width: 100%;
}

/* Each field: LABEL ABOVE INPUT */

#exercisePage .exercise-inline-fields label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;

  gap: 9px;
  min-width: 0;
  width: 100%;

  color: #345779;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

/* ================================================
   INPUTS AND DROPDOWN
================================================ */

#exercisePage .exercise-inline-fields input,
#exercisePage .exercise-inline-fields select {
  display: block !important;

  width: 100% !important;
  height: 45px !important;
  min-width: 0;

  box-sizing: border-box;

  padding: 11px 13px;

  background-color: #f5f9ff;
  color: #203d62;

  border: 1px solid #d9e6f5;
  border-radius: 11px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 450;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* Dropdown */

#exercisePage .exercise-inline-fields select {
  cursor: pointer;
  padding-right: 12px;
}

/* Hover */

#exercisePage .exercise-inline-fields input:hover,
#exercisePage .exercise-inline-fields select:hover {
  border-color: #9fc1e9;
  background-color: #ffffff;
}

/* Focus */

#exercisePage .exercise-inline-fields input:focus,
#exercisePage .exercise-inline-fields select:focus {
  border-color: #438de2;
  background-color: #ffffff;

  box-shadow:
    0 0 0 3px rgba(67, 141, 226, 0.12);
}


/* ================================================
   SAVE BUTTON
================================================ */

#exercisePage .exercise-inline-save {
  display: block;

  width: 100%;
  min-height: 47px;
  box-sizing: border-box;

  margin-top: 30px;
  padding: 13px 18px;

  background: #2866bf;
  color: #ffffff;

  border: none;
  border-radius: 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#exercisePage .exercise-inline-save:hover {
  background: #1d56a9;
  transform: translateY(-1px);
}

/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 1150px) {
  #exercisePage .exercise-inline-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  #exercisePage .exercise-inline-editor {
    padding: 20px;
  }
}


/* =========================================
   ASTROTWIN — HEALTH STATUS BARS
========================================= */

#healthStatusPanel {
  margin-top: 22px;
  padding: 16px;
  background: #f7faff;
  border: 1px solid #e2eaf5;
  border-radius: 14px;
}

#healthStatusPanel h3 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #203d67;
}

#healthStatusBars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#healthStatusBars .health-status-item {
  --bar-color: #a6b2c3;
  display: block;
  width: 100%;
}

#healthStatusBars .health-indicator-normal {
  --bar-color: #24a879;
}

#healthStatusBars .health-indicator-review {
  --bar-color: #edb43f;
}

#healthStatusBars .health-indicator-alert {
  --bar-color: #e35252;
}

#healthStatusBars .health-indicator-neutral {
  --bar-color: #a6b2c3;
}

#healthStatusBars .health-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

#healthStatusBars .health-status-name {
  font-size: 12px;
  font-weight: 650;
  color: #29496b;
}

#healthStatusBars .health-status-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--bar-color);
}

#healthStatusBars .health-status-track {
  display: block;
  width: 100%;
  height: 11px;
  background: #e6edf7;
  border-radius: 999px;
  overflow: hidden;
}

#healthStatusBars .health-status-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bar-color);
  border-radius: 999px;
}

#healthStatusBars .health-status-note {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #8091a8;
}

/* =========================================
   ASTROTWIN — NUMBERED HEALTH SCALES
========================================= */

#healthStatusBars .health-numbered-scale {
  position: relative;
  height: 14px;
  margin: 17px 4px 32px;
}

/* Colored gradient */

#healthStatusBars .health-numbered-gradient {
  width: 100%;
  height: 14px;
  border-radius: 999px;

  box-shadow:
    inset 0 0 0 1px rgba(22, 48, 85, 0.10);
}

/* Indicator showing the current measurement */

#healthStatusBars .health-numbered-marker {
  position: absolute;
  top: -6px;

  width: 3px;
  height: 26px;

  transform: translateX(-50%);

  background: #173455;
  border-radius: 3px;
  z-index: 1;

  box-shadow: 0 0 0 1px white;

  transition: left 180ms ease;
}

/* Small downward-pointing arrow */

#healthStatusBars .health-numbered-marker::before {
  content: "";

  position: absolute;
  top: -8px;
  left: 50%;

  transform: translateX(-50%);

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #173455;
}

/* Numbers below the scale */

#healthStatusBars .health-numbered-tick {
  position: absolute;
  top: 20px;

  transform: translateX(-50%);

  font-size: 10px;
  font-weight: 600;
  line-height: 1;

  color: #6e829c;
  white-space: nowrap;
}

#healthStatusBars .health-scale-note {
  margin: -15px 0 12px;
  font-size: 10px;
  color: #a45534;
}

/* ==============================================
   ASTROTWIN — COLORED NUMBERED HEALTH SCALES
   Gradient + marker + numerical labels
============================================== */

#healthStatusBars .health-numbered-scale {
  position: relative !important;
  display: block !important;

  width: calc(100% - 8px) !important;
  height: 14px !important;

  margin: 22px 4px 35px !important;
  padding: 0 !important;
}

/* The colored gradient bar */

#healthStatusBars .health-numbered-gradient {
  display: block !important;

  width: 100% !important;
  height: 14px !important;

  border-radius: 999px !important;

  box-shadow:
    inset 0 0 0 1px rgba(20, 45, 85, 0.1);
}

/* Current measurement marker */

#healthStatusBars .health-numbered-marker {
  position: absolute !important;
  display: block !important;

  top: -7px !important;

  width: 3px !important;
  height: 28px !important;

  transform: translateX(-50%) !important;

  background: #173455 !important;
  border-radius: 3px !important;

  z-index: 5 !important;

  box-shadow: 0 0 0 1px #ffffff;
}

/* Arrow pointing to the measured value */

#healthStatusBars .health-numbered-marker::before {
  content: "" !important;

  position: absolute !important;

  top: -8px !important;
  left: 50% !important;

  transform: translateX(-50%) !important;

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #173455;
}

/* Numerical labels under the bar */

#healthStatusBars .health-numbered-tick {
  position: absolute !important;
  display: block !important;

  top: 22px !important;

  font-size: 10px !important;
  font-weight: 600 !important;

  line-height: 1 !important;

  color: #71859e !important;
  white-space: nowrap !important;
}

/* Spacing between measurements */

#healthStatusBars .health-status-item {
  display: block;
  min-width: 0;
  margin-bottom: 7px;
}

/* Warning when value is outside displayed axis */

#healthStatusBars .health-scale-note {
  margin: -16px 0 15px;
  color: #b75b40;
  font-size: 10px;
  line-height: 1.5;
}

/* =========================================
   ASTROTWIN — VERTICAL HEALTH CARD LAYOUT
========================================= */

/* Allow the entire medical card to grow downward */

#checkupPage .detail-card {
  height: auto !important;
  min-height: 780px !important;
  max-height: none !important;

  overflow: visible !important;
}

/* Keep the upper anatomy and measurement area compact */

#checkupPage .daily-check-layout {
  margin-bottom: 8px !important;
  gap: 12px !important;
}

#checkupPage .daily-organ-panel,
#checkupPage .daily-record-panel {
  min-height: 0 !important;
  height: auto !important;
}

/* Reduce the empty gap before Health indicators */

#checkupPage #healthStatusPanel {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

/* Keep numerical scales clearly visible */

#checkupPage .health-numbered-scale {
  margin-top: 22px !important;
  margin-bottom: 35px !important;
}

/* Make colored bars slightly thicker */

#checkupPage .health-numbered-gradient {
  height: 17px !important;
}

/* Prevent the indicators from being cut off */

#checkupPage #healthStatusBars {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}


/* =====================================
   KIDNEYS — INTERACTIVE HOTSPOT
===================================== */

.figure-wrap .hotspot[data-part="kidneys"] {
  left: 42%;
  top: 43%;
}

.figure-wrap .label-kidneys {
  left: 56%;
  top: 43%;
}


/* =========================================
   ASTROTWIN — COMPACT DAILY CHECKUP
   Less empty space, all body systems
========================================= */

/* Main medical card grows with its content */

#checkupPage .detail-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Reduce spacing in the upper section */

#checkupPage .daily-check-layout {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  align-items: start !important;

  gap: 12px !important;
  margin: 6px 0 0 !important;
}

/* Remove unnecessary empty height */

#checkupPage .daily-organ-panel,
#checkupPage .daily-record-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  align-self: start !important;
  padding: 12px !important;
}

/* Make anatomy area more compact */

#checkupPage .organ-visual {
  height: auto !important;
  min-height: 0 !important;

  margin: 8px 0 !important;
  padding: 6px !important;
}

/* Keep anatomical illustrations visible */

#checkupPage .organ-visual img {
  width: auto !important;
  height: 205px !important;
  max-height: 205px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Health indicators immediately below */

#checkupPage #healthStatusPanel {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* No unnecessary space below indicators */

#checkupPage #healthStatusBars {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* =========================================
   ASTROTWIN — COMPACT HEADER & RAISED PANEL
========================================= */

/* 1. Make the top AstroTwin header shorter */

.topbar {
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 24px !important;
}

/* Smaller AstroTwin logo */

.topbar .logo {
  width: 38px !important;
  height: 38px !important;
  font-size: 18px !important;
}

/* Smaller AstroTwin title */

.topbar .brand h1 {
  font-size: 22px !important;
}

/* Compact subtitle */

.topbar .brand p {
  margin-top: 2px !important;
  font-size: 10px !important;
}

/* Slightly smaller astronaut profile icon */

.topbar .profile-avatar {
  width: 30px !important;
  height: 30px !important;
}

/* 2. Reduce space below the header */

#checkupPage {
  margin-top: 0 !important;
}

.content {
  padding-top: 14px !important;
}

/* 3. Move medical card upwards only */

#checkupPage .detail-card {
  position: relative;
  top: -70px !important;
}

/* Avoid overlap on smaller screens */

@media (max-width: 1180px) {
  #checkupPage .detail-card {
    top: 0 !important;
  }
}

@media (max-width: 740px) {
  .topbar {
    height: auto !important;
    min-height: 60px !important;
    padding: 10px 16px !important;
  }
}

/* =========================================
   ASTROMED — HERO WITHOUT HEADER
========================================= */

/* Layout no longer reserves header space */

.shell {
  min-height: 100vh;
}

/* Intro placed directly on space background */

.astromed-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 12px 6px 18px;
  margin-bottom: 8px;

  background: transparent;
}

/* Branding */

.astromed-brand {
  min-width: 0;
}

.astromed-eyebrow {
  margin: 0 0 6px;

  color: #9fc4f5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.5px;
}

.astromed-brand h1 {
  margin: 0;

  font-size: clamp(48px, 5.8vw, 82px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -2px;

  color: #ffffff;

  text-shadow:
    0 4px 25px rgba(45, 115, 220, 0.3);
}

.astromed-tagline {
  margin: 10px 0 0;

  font-size: 17px;
  font-weight: 400;
  color: #c5d8f3;
}

/* Mission information: subtle, secondary */

.astromed-mission-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;

  flex-shrink: 0;

  padding: 14px 18px;

  background: rgba(12, 27, 55, 0.45);
  border: 1px solid rgba(184, 211, 251, 0.14);
  border-radius: 14px;
}

.astromed-mission-item {
  display: flex;
  align-items: center;
  gap: 9px;

  color: #c5d8f3;
  font-size: 11px;
  font-weight: 500;
}

.mission-green-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #3bbf95;
}

/* Keep dashboard close to intro */

.content {
  padding-top: 12px !important;
}

/* Responsive */

@media (max-width: 850px) {

  .astromed-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .astromed-mission-info {
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
  }

  .astromed-brand h1 {
    font-size: 52px;
  }
}

/* =========================================
   SMALL MISSION INFORMATION BESIDE ASTRONAUT
========================================= */

#checkupPage .figure-scene {
  position: relative;
}

.astronaut-mission-info {
  position: absolute;
  top: 18px;
  right: 8px;
  z-index: 5;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 10px 12px;

  background: rgba(12, 27, 55, 0.45);
  border: 1px solid rgba(184, 211, 251, 0.16);
  border-radius: 12px;

  pointer-events: none;
}

.astronaut-mission-line {
  display: flex;
  align-items: center;
  gap: 6px;

  color: #c5d8f3;
  font-size: 10px;
  white-space: nowrap;
}

.astronaut-status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;

  border-radius: 50%;
  background: #3bbf95;
}

/* Keep the information compact on narrow screens */

@media (max-width: 700px) {
  .astronaut-mission-info {
    top: 6px;
    right: 4px;
    padding: 7px 8px;
  }

  .astronaut-mission-line {
    font-size: 9px;
  }
}

/* =========================================
   MISSION INFO — CLOSER TO ASTRONAUT
========================================= */
#checkupPage .astronaut-mission-info {
  position: absolute;
  top: 32px;
  right: 140px;
  z-index: 6;
}

