/* =========================
   EyeV Dry Eye Support – styles.css
   CLEAN SINGLE VERSION
   ========================= */
/* =========================
   01) TOKENS
   ========================= */
:root {
  --eyv-pink: #E32264;
  --eyv-mint: #22E3A9;
  --eyv-mint-dark: #18c98f;

  --ink: #111827;
  --muted: #6b7280;

  --ff-base: "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-page-title: 1rem;
  --fs-card-title: 1rem;
  --fs-question: 1rem;
  --fs-answer: 0.95rem;
  --fs-matrix-head: 0.95rem;

  --fw-card-title: 700;
  --fw-page-title: 800;
  --fw-matrix-head: 800;
  --fw-question-impact: 400;
  --fw-question-symptom: 400;
  --fw-answer: 600;

  --card-border: rgba(17, 24, 39, 0.10);
  --card-shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
  --card-shadow-hover: 0 18px 55px rgba(15, 23, 42, 0.14);

  --surface: rgba(17, 24, 39, 0.03);
  --surface-2: rgba(17, 24, 39, 0.05);

  --mint-soft: rgba(34, 227, 169, 0.18);
  --pink-soft: rgba(227, 34, 100, 0.12);

  --fs-dashboard-title: 3.8rem;
  --fs-dashboard-subtitle: 1rem;
  --fs-case-title: 1.1rem;
  --fs-case-meta: 0.95rem;
  --fs-case-label: 0.95rem;
  --fs-score-label: 0.95rem;
  --fs-score-value: 3rem;
  --fs-action-btn: 0.95rem;
  --fs-table-head: 0.95rem;
  --fs-table-body: 0.95rem;

  --fs-patient-id: 1.2rem;
  --fw-patient-id: 800;

  --fs-record-title: 1rem;
  --fw-record-title: 700;
}

/* =========================
   02) BASE RESET
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body,
input,
button,
select,
textarea {
  font-family: var(--ff-base);
}

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

main,
section,
div {
  box-sizing: border-box;
}

a,
button,
.primary-btn,
.secondary-btn,
.tab-btn,
.panel,
.input,
.case-card,
.caseItem,
.caseCard,
.case,
.progress-card,
.info-card,
.domain,
.recordBtn,
.back-btn,
.role-btn,
.access-menu-btn {
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    opacity .15s ease,
    filter .15s ease;
}

/* =========================
   03) PAGE BACKGROUND + ALCON BRANDING
   ========================= */

header {
  display: none !important;
}

html,
body {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  background:
    linear-gradient(
      180deg,
      #e91e63 0%,
      #e11d68 100%
    ) !important;

  color: var(--ink);
  min-height: 100vh;
  display: block !important;
  overflow-x: hidden;
  position: relative;
}

/* Keep old overlays switched off */
body::before,
body::after {
  display: none !important;
}

/* Keep app content above page background */
header,
main,
footer,
#app {
  position: relative;
  z-index: 1;
}

/* Clickable Alcon logo */
.alconBrandLink,
.alcon-brand-link {
  position: fixed;
  left: 50%;

  /* MOVES LOGO MUCH HIGHER */
  bottom: 320px;

  transform: translateX(-50%);
  z-index: 1000;

  display: inline-flex;
  text-decoration: none;
}

.alconBrandLogo,
.alcon-brand-link img {
  width: 340px;
  max-width: 72vw;
  height: auto;
  display: block;

  border-radius: 10px;
  border: 4px solid rgba(255,255,255,0.96);
  background: #0b3ea9;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.22);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;

  opacity: 1;
  cursor: pointer;
}

.alconBrandLink:hover,
.alcon-brand-link:hover {
  transform: translateX(-50%) scale(1.04);
}

.alconBrandLink:hover .alconBrandLogo,
.alcon-brand-link:hover img {
  box-shadow:
    0 24px 52px rgba(0,0,0,0.30);
}

@media (max-width: 700px) {
  .alconBrandLink,
  .alcon-brand-link {
    bottom: 140px;
  }

  .alconBrandLogo,
  .alcon-brand-link img {
    width: 220px;
    max-width: 82vw;
  }
}

/* =========================
   04) APP LAYOUT
   ========================= */
#app {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
  padding: 20px;
}

.app-header {
  background: linear-gradient(180deg, #e32264 0%, #d81b60 100%) !important;
  color: #fff;
  padding: 18px 20px !important;
  text-align: center;
  box-shadow: 0 8px 24px rgba(227, 34, 100, 0.18);
}

.app-header h1 {
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  margin: 0;
}

.app-footer {
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92) !important;
  border-top: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative !important;
  margin-top: 0 !important;
}

/* =========================
   05) GENERIC CARDS
   ========================= */
.card,
.card--welcome,
.card--questionnaire,
.card--clinician,
.card--patient,
.card.glass,
.eyev-card {
  width: 100%;
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 56px rgba(17, 24, 39, 0.14) !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--ink) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.card-title {
  font-size: var(--fs-card-title);
  font-weight: var(--fw-card-title);
  margin-bottom: 0.6rem;
  text-align: center;
}

.panel {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(17, 24, 39, 0.04);
  overflow: visible !important;
}

.muted {
  color: var(--muted);
  font-weight: 600;
}

/* =========================
   06) GLOBAL BUTTON SYSTEM
   ========================= */
button,
.primary-btn,
.secondary-btn,
.back-btn,
.tab-btn,
.recordBtn,
.role-btn,
.eyev-topBtn,
.eyev-recordBtn,
.access-menu-btn,
.topbar .secondary-btn,
.btn-row button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px !important;
  border: 2px solid #d1d5db !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-weight: 800;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.back-btn:hover,
.tab-btn:hover,
.recordBtn:hover,
.role-btn:hover,
.eyev-topBtn:hover,
.eyev-recordBtn:hover,
.access-menu-btn:hover,
.topbar .secondary-btn:hover,
.btn-row button:hover,
button:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.back-btn:focus-visible,
.tab-btn:focus-visible,
.recordBtn:focus-visible,
.role-btn:focus-visible,
.eyev-topBtn:focus-visible,
.eyev-recordBtn:focus-visible,
.access-menu-btn:focus-visible,
.topbar .secondary-btn:focus-visible,
.btn-row button:focus-visible {
  background: var(--eyv-mint) !important;
  color: #ffffff !important;
  border-color: var(--eyv-mint) !important;
  box-shadow: 0 8px 22px rgba(34, 227, 169, 0.25) !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

button:active,
.primary-btn:active,
.secondary-btn:active,
.back-btn:active,
.tab-btn:active,
.recordBtn:active,
.role-btn:active,
.eyev-topBtn:active,
.eyev-recordBtn:active,
.access-menu-btn:active,
.topbar .secondary-btn:active,
.btn-row button:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 10px rgba(34, 227, 169, 0.18) !important;
}

button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.back-btn:disabled,
.tab-btn:disabled,
.recordBtn:disabled,
.role-btn:disabled,
.access-menu-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover,
button.btn:hover {
  background: var(--eyv-mint);
  color: #ffffff;
  border-color: var(--eyv-mint);
  box-shadow: 0 8px 22px rgba(34,227,169,0.25);
  transform: translateY(-2px);
}

.btn:active,
button.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(34,227,169,0.18);
}

.btn-primary {
  background: var(--eyv-mint) !important;
  border-color: var(--eyv-mint) !important;
  color: white !important;
}

.btn-primary:hover {
  background: var(--eyv-mint-dark) !important;
  border-color: var(--eyv-mint-dark) !important;
}

.btn-outline {
  background: #fff;
  border: 2px solid #d1d5db;
}

/* =========================
   07) BUTTON ROWS
   ========================= */
.btn-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-row.center {
  justify-content: center;
}

.btn-row.end {
  justify-content: flex-end;
}

/* =========================
   08) TOPBAR + INPUTS
   ========================= */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.topbar .secondary-btn,
.topbar .back-btn,
#topLeftBtn {
  position: absolute;
  left: 0;
}

.topbar h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.step-pill {
  min-width: 110px;
  text-align: right;
  opacity: .9;
  font-weight: 800;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 12px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.input:focus {
  outline: none;
  border-color: rgba(34, 227, 169, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 227, 169, 0.16);
}

textarea.input,
textarea {
  min-height: 96px;
  resize: vertical;
  width: 100% !important;
  max-width: 100% !important;
}

.score-bar {
  display: none;
}

/* =========================
   09) WELCOME CARD
   ========================= */
.card--welcome {
  max-width: 680px !important;
  margin: 60px auto 0 !important;
  padding: 2.75rem 2.25rem !important;
  border-radius: 28px !important;
  animation: welcomeFade .45s ease;
}

.card--welcome:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(17,24,39,0.18) !important;
}

.card--welcome .card-title {
  font-size: 2.35rem !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  margin-bottom: 0.85rem !important;
  text-align: center !important;
  color: #111827 !important;
}

.card--welcome > div[style*="text-align:center"] {
  font-size: 1.15rem !important;
  line-height: 1.45 !important;
  color: #4b5563 !important;
  margin-bottom: 1.6rem !important;
}

.card--welcome .btn-row.center {
  justify-content: center !important;
  gap: 1rem !important;
  width: fit-content !important;
  margin: 0 auto !important;
  padding: 1.1rem 1.2rem !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(248,250,252,0.98) 0%, rgba(241,245,249,0.96) 100%) !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 10px 26px rgba(17,24,39,0.10) !important;
}

.card--welcome button.secondary-btn.role-btn,
.card--welcome button.secondary-btn,
.card--welcome .role-btn {
  min-width: 190px !important;
  min-height: 62px !important;
  padding: 0 28px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.card--welcome,
.card--welcome * {
  pointer-events: auto;
}

@keyframes welcomeFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   10) ACCESS MENU PANEL
   ========================= */
.access-menu-card {
  text-align: center;
}

.access-menu-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px auto 0;
  padding: 18px 20px;
  border: 1px solid #d9dee6;
  border-radius: 26px;
  background: #eef2f6;
}

.access-menu-btn {
  min-width: 180px;
  min-height: 62px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.access-menu-btn--dev {
  min-width: 230px;
}

/* =========================
   11) AUTH / SIGN-IN UI
   ========================= */
.auth-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.03);
}

.auth-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}

.auth-status {
  margin-top: 10px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.signed-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 227, 169, 0.12);
  border: 1px solid rgba(34, 227, 169, 0.35);
  font-weight: 900;
  color: var(--ink);
}

.signed-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--eyv-mint);
}

.panel.signin {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.panel.signin strong {
  font-size: 1rem;
}

.panel.signin .muted {
  opacity: 0.82;
}

.status {
  margin-top: 8px;
  font-weight: 700;
}

.status.ok {
  color: #0f7a3a;
}

.status.error {
  color: #b00020;
}

/* =========================
   12) HERO
   ========================= */
header.hero {
  padding: 22px 12px;
}

header.hero h1 {
  line-height: 1.1;
}

/* =========================
   13) OSDI MATRIX
   ========================= */
.osdi-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(17, 24, 39, 0.02);
  margin-top: 24px;
  padding-top: 6px;
}

.osdi-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 900px;
}

.osdi-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(6, minmax(90px, 0.6fr));
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 4px 8px;
}

.osdi-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px;
  border-bottom: 1px solid rgba(17, 24, 39, .12);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .92);
}

.osdi-h {
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.1;
  padding: 6px 4px;
  white-space: normal;
  color: var(--ink);
}

.osdi-q {
  font-weight: 800;
  padding: 6px 4px;
  color: var(--ink);
}

.osdi-c {
  display: flex;
  justify-content: center;
  align-items: center;
}

.osdi-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.osdi-dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.osdi-dot span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, .55);
  display: inline-block;
}

.osdi-dot input:checked + span {
  background: var(--eyv-pink);
  border-color: var(--eyv-pink);
}

/* =========================
   14) DEQ-5 MATRIX
   ========================= */
.deq-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(17, 24, 39, 0.02);
  margin-top: 20px;
}

.deq-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 820px;
}

.deq-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) repeat(5, minmax(110px, 0.7fr));
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 4px 8px;
}

.deq-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px;
  border-bottom: 1px solid rgba(17, 24, 39, .12);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .92);
}

.deq-h {
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  padding: 6px 4px;
  white-space: normal;
  color: var(--ink);
}

.deq-h-left {
  text-align: left;
  font-weight: 900;
  padding-left: 6px;
}

.deq-q {
  font-weight: 800;
  padding: 6px 4px;
  line-height: 1.2;
  color: var(--ink);
}

.deq-c {
  display: flex;
  justify-content: center;
  align-items: center;
}

.deq-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.deq-dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deq-dot span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, .55);
  display: inline-block;
}

.deq-dot input:checked + span {
  background: var(--eyv-pink);
  border-color: var(--eyv-pink);
}

/* =========================
   15) QUESTIONNAIRE TABLES
   ========================= */
.q-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.q-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.q-table col.q-col-question {
  width: 30%;
}

.q-table col.q-col-option {
  width: 11.666%;
}

.q-table th,
.q-table td {
  vertical-align: middle;
}

.q-table thead th {
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  color: #243043;
  padding: 12px 8px 16px;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.q-table th:first-child,
.q-table td.q-cell-question {
  text-align: left;
}

.q-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
}

.q-table tbody tr:nth-child(even) {
  background: rgba(17,24,39,0.03);
}

.q-table tbody tr:nth-child(odd) {
  background: transparent;
}

.q-table tbody tr:hover {
  background: rgba(34,227,169,0.08);
}

.q-cell-question {
  text-align: left;
  line-height: 1.35;
  font-weight: 500;
}

.q-cell-option {
  text-align: center;
}

.q-table-radio {
  display: flex;
  justify-content: center;
  align-items: center;
}

.q-cell-option input[type="radio"] {
  margin: 0;
  transform: scale(1.15);
}

.deq-table th {
  text-align: center;
}

.deq-table th:first-child {
  text-align: left;
}

/* =========================
   16) CLINICIAN GRID
   ========================= */
.clinician-table {
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clinician-table .clinical-grid,
.clinician-table .clinician-head {
  min-width: 760px;
}

.clinician-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.colhead {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.03);
  font-weight: 900;
}

.colhead.center {
  text-align: center;
}

.clinical-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
  align-items: center;
}

.clinical-grid .domain {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 800;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.clinical-grid select.input {
  text-align: center !important;
  text-align-last: center !important;
}

.clinical-grid select.input option {
  text-align: center;
}

.clinical-grid .domain.domain--cornealStaining,
.clinical-grid .domain.domain--conjStaining,
.clinical-grid .domain.domain--inflammation,
.clinical-grid .domain.domain--tearVolume,
.clinical-grid .domain.domain--tearvolume,
.clinical-grid .domain.domain--tearBUT {
  background: rgba(110, 76, 214, 0.12) !important;
  border-color: rgba(110, 76, 214, 0.30) !important;
}

.clinical-grid .domain.domain--lidMarginChanges,
.clinical-grid .domain.domain--meibomianStatus,
.clinical-grid .domain.domain--anteriorBlepharitis,
.clinical-grid .domain.domain--lidMarginNotching,
.clinical-grid .domain.domain--lashDropout {
  background: rgba(212, 142, 0, 0.14) !important;
  border-color: rgba(212, 142, 0, 0.32) !important;
}

.clinical-grid .domain.domain--llMalalignment,
.clinical-grid .domain.domain--llPunctalEntropion,
.clinical-grid .domain.domain--llEntropion,
.clinical-grid .domain.domain--llEctropion {
  background: rgba(32, 121, 199, 0.14) !important;
  border-color: rgba(32, 121, 199, 0.32) !important;
}

/* =========================
   17) CLINICIAN DASHBOARD
   ========================= */
.card.glass {
  border-radius: 26px;
  padding: 22px;
  max-width: 1450px;
  width: min(1450px, calc(100vw - 48px));
  margin: 22px auto;
}

.h1,
.card--clinician .card-title,
.eyev-card h1,
#app .card.glass h1 {
  font-size: 2.6rem;
}

.h2 {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.caseRow:hover {
  background: rgba(34,227,169,0.08);
  cursor: pointer;
}

.eyev-patientTopActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyev-patientTopActions .eyev-recordBtn {
  min-height: 36px;
  padding: 0 14px;
}

.eyev-countPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: #334155;
  font-weight: 800;
  font-size: 13px;
  cursor: default;
}

/* Grouped clinician dashboard restore */
#clinGroupedHost {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.patientCard {
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  overflow: hidden;
}

.patientCard__header {
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.patientCard__main,
.patientCard__summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.patientCard__title,
.patientCard__id {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.patientCard__meta {
  margin-top: 6px;
  font-size: var(--fs-case-meta);
  font-weight: 600;
  color: #667085;
}

.patientCard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.patientCard__chevron,
.eyev-chevron {
  appearance: none;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
  transition: all .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patientCard__chevron:hover,
.eyev-chevron:hover {
  background: #f8fafc;
}

.patientCard__body,
.eyev-patientBody {
  padding: 14px 18px 18px;
}

.recordsList,
.eyev-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.10);
  padding-top: 16px;
}

.recordRow,
.eyev-recordRow {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
}

.recordRow__main {
  min-width: 0;
}

.recordRow__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recordRow__case {
  font-size: var(--fs-case-title);
  font-weight: var(--fw-card-title);
  color: #111827;
}

.recordRow__meta,
.eyev-recordMeta {
  margin-top: 6px;
  font-size: var(--fs-case-meta);
  font-weight: 600;
  color: #334155;
}

.recordRow__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 227, 169, 0.18);
  color: #0f172a;
  border: 1px solid rgba(34, 227, 169, 0.35);
}

.recordRow__badge--pending {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.30);
  color: #7c4a03;
}

.recordRow__actions,
.eyev-recordActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.recordRow__actions .recordBtn,
.eyev-recordActions .eyev-recordBtn {
  min-width: 110px;
}

.casePid,
#app .casePid,
.eyev-patientId {
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

/* =========================
   18) RESULTS TABLE
   ========================= */
.results-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
  border: 1px solid #d9dde3 !important;
}

.results-table thead th {
  text-align: left !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  border-bottom: 1px solid #d9dde3 !important;
  background: #fbfcfd !important;
}

.results-table tbody td {
  padding: 14px 16px !important;
  font-size: 16px !important;
  color: #111827 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.results-table th,
.results-table td {
  border-right: 1px solid #e2e8f0 !important;
}

.results-table th:last-child,
.results-table td:last-child {
  text-align: right !important;
  border-right: none !important;
}

.results-table tbody td:last-child {
  font-weight: 700 !important;
}

.results-table tbody tr:hover {
  background: #f8fafc !important;
}

/* =========================
   19) PLAN PAGE
   ========================= */
.plan-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-weight: 800;
  color: var(--ink);
}

.plan-tabs {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-tabs .tab-btn {
  min-width: 150px;
  text-align: center;
}

.tab-btn.active {
  background: var(--eyv-mint) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(34, 227, 169, 0.22) !important;
}

.plan-content {
  margin-top: 12px;
}

.plan-pane {
  display: none;
}

.plan-pane.active {
  display: block;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.plan-h {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.plan-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.4;
}

.info-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  background: rgba(17, 24, 39, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.info-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.info-body {
  color: rgba(17, 24, 39, 0.85);
  font-weight: 600;
  line-height: 1.35;
}

.plan-pane .info-card a {
  color: var(--eyv-pink);
  font-weight: 900;
  text-decoration: none;
}

.plan-pane .info-card a:hover {
  text-decoration: underline;
}

.reminder-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.reminder-hint {
  margin-top: 6px;
  color: rgba(17, 24, 39, 0.75);
  font-weight: 650;
  line-height: 1.3;
  font-size: 0.92rem;
}

/* =========================
   20) PLAN HERO + PLAN CARDS
   ========================= */
.planHero {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.planHeroTitle {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
}

.planHeroText {
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
  margin-bottom: 10px;
}

.planHeroMeta {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.planSection {
  margin-top: 16px;
}

.planSectionTitle {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111827;
}

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

.planCard {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.planCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.planCardTitle {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.planCardFrequency {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}

.planCardTiming,
.planCardNotes,
.planCardHelp {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.planCardMedia {
  margin-top: 10px;
}

.planCardImage {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.planCardActions {
  margin-top: 10px;
}

.planDetailsBlock {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
}

.planDetailsBlock summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
}

/* =========================
   21) PATIENT PLAN
   ========================= */
.patientPlanCard {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 18px;
  padding: 16px;
}

.patientPlanHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.patientPlanTitle {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.patientPlanDate {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.patientPlanSummary {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}

.patientPlanSection {
  margin-top: 16px;
}

.patientPlanSectionTitle {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.patientPlanSteps,
.patientPlanRoutineGrid {
  display: grid;
  gap: 10px;
}

.patientPlanStep {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.patientPlanStepIcon {
  font-size: 20px;
  line-height: 1;
  color: #E32264;
  font-weight: 800;
}

.patientPlanStepText {
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
}

.patientPlanRoutineCard {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.patientPlanRoutineTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.patientPlanRoutineTitle {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.patientPlanRoutineWhen {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}

.patientPlanRoutineHowOften {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.patientPlanRoutineHelp {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.patientPlanMediaRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.patientPlanImageBox,
.patientPlanLinkBox {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  min-height: 120px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.patientPlanImagePlaceholder,
.patientPlanLinkPlaceholder {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.patientPlanImage {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 10px;
}

.patientPlanReview,
.patientPlanReviewBox {
  margin-top: 16px;
  background: #eefbf6;
  border: 1px solid #cdeee0;
  border-radius: 14px;
  padding: 14px;
}

.patientPlanReviewTitle {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.patientPlanReviewText {
  margin-top: 6px;
  font-size: 15px;
  color: #374151;
}

.patientPlanButtonRow {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.patientPlanDetails {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.patientPlanDetails summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
}

.patientPlanFullText {
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

/* =========================
   22) PLAN ITEM CARDS
   ========================= */
.plan-item-card {
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d7dce5;
  border-radius: 18px;
  background: #fff;
  margin-top: 14px;
}

.plan-item-media {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: #f4f6f8;
  border: 1px solid #e3e7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plan-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-item-note {
  font-size: 15px;
  color: #5b6472;
  margin-bottom: 10px;
}

.plan-item-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-item-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7dce5;
  text-decoration: none;
  font-weight: 600;
  color: #1f2937;
}

.plan-item-side {
  border-left: 1px solid #e7ebf0;
  padding-left: 14px;
}

.plan-item-side-label {
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
}

.plan-item-side-value {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* =========================
   23) PROGRESS TAB
   ========================= */
.progress-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.progress-title {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: left;
  color: var(--ink);
}

.progress-subtitle {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

#progressChart {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(17, 24, 39, 0.02);
}

.progress-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(17, 24, 39, 0.78);
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-wrap {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  padding: 10px;
}

.progress-canvas {
  width: 100%;
  height: 220px;
  display: block;
}

/* =========================
   24) LOADING / BOOT OVERLAY
   ========================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.loading-overlay[hidden],
#bootSplash[hidden],
.boot-splash[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.loading-card {
  min-width: 220px;
  max-width: 92vw;
  padding: 20px 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 14px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #E32264;
  animation: eyevSpin 0.8s linear infinite;
}

.loading-text {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: eyevSpin 0.8s linear infinite;
  vertical-align: -2px;
}

@keyframes eyevSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#bootSplash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f3f4f6;
  opacity: 1;
  pointer-events: auto;
}

.boot-card {
  width: min(720px,94vw);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.boot-splash__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  margin-bottom: 22px;
}

.boot-splash__panel {
  background: #ececef;
  border: 1px solid #d4d4d8;
  border-radius: 22px;
  padding: 18px 20px;
  color: #111827;
}

.boot-splash__panel + .boot-splash__panel {
  margin-top: 14px;
}

.boot-splash__text {
  margin-top: 10px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
}

.auth-progress {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #d1d5db;
  overflow: hidden;
}

.auth-progress__bar {
  position: absolute;
  top: 0;
  left: -38%;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E32264 0%, #2dd4bf 100%);
  animation: authSlide 4s linear infinite;
}

@keyframes authSlide {
  0% { left: -38%; }
  100% { left: 100%; }
}

/* =========================
   25) QUESTIONNAIRE PAGE FIXES
   ========================= */
.card--questionnaire {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 32px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

.card--questionnaire:hover {
  transform: none !important;
  box-shadow: 0 20px 56px rgba(17, 24, 39, 0.14) !important;
}

.card--questionnaire .panel,
.card--questionnaire .q-table-wrap,
.card--questionnaire .actions,
.card--questionnaire textarea,
.card--questionnaire textarea.input,
.osdi-scroll,
.deq-scroll {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* =========================
   26) RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .patientCard__header {
    flex-direction: column;
    align-items: stretch;
  }

  .patientCard__actions {
    justify-content: flex-start;
  }

  .eyev-recordRow,
  .recordRow {
    grid-template-columns: 1fr;
  }

  .eyev-recordActions,
  .recordRow__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .recordRow {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .recordRow__actions {
    justify-content: flex-start;
  }

  .app-header h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 820px) {
  .osdi-scroll,
  .deq-scroll {
    max-height: 65vh;
  }

  .osdi-matrix {
    min-width: 860px;
  }

  .osdi-row {
    grid-template-columns: minmax(240px, 1.2fr) repeat(6, minmax(80px, 0.6fr));
  }

  .deq-matrix {
    min-width: 760px;
  }

  .deq-row {
    grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(95px, 0.7fr));
  }
}

@media (max-width: 760px) {
  #app {
    padding: 14px !important;
  }

  .app-header h1 {
    font-size: 2.25rem;
  }

  .meta-grid,
  .plan-grid,
  .plan-meta,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card--welcome,
  .card--questionnaire,
  .card--clinician {
    padding: 18px !important;
  }
}

@media (max-width: 700px) {
  header.hero {
    padding: 14px 10px;
  }

  header.hero h1 {
    font-size: 2rem;
  }

  .app-header {
    padding: 20px 14px !important;
  }

  .app-header h1 {
    font-size: 1.9rem !important;
  }

  .patientCard__header {
    padding: 16px 18px;
  }

  .patientCard__body {
    padding: 0 18px 18px 18px;
  }

  .patientCard__id {
    font-size: 18px;
  }

  .recordBtn,
  .case-actions button,
  .caseActions button,
  .caseButtons button,
  .caseActionsRow button {
    width: 100%;
  }

  .recordRow__actions,
  .case-actions,
  .caseActions,
  .caseButtons,
  .caseActionsRow {
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .card--welcome {
    max-width: 92vw !important;
    padding: 2rem 1.25rem !important;
  }

  .card--welcome .card-title {
    font-size: 1.9rem !important;
  }

  .card--welcome > div[style*="text-align:center"] {
    font-size: 1rem !important;
  }

  .card--welcome .btn-row.center,
  .access-menu-panel {
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .card--welcome button.secondary-btn.role-btn,
  .card--welcome button.secondary-btn,
  .card--welcome .role-btn,
  .access-menu-btn,
  .access-menu-btn--dev {
    width: min(260px, 100%) !important;
    min-width: 0 !important;
  }
}
.eyev-topBtn {
  white-space: nowrap;
  padding: 8px 16px;
  min-width: 90px;
}
/* =========================
   CLINICIAN FINDINGS PAGE
   ========================= */

.clin-row {
  width: 100% !important;
  display: grid;
  grid-template-columns: 180px 1fr 180px !important;
  justify-content: stretch !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 10px 18px !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  border-radius: 16px !important;
}

.clin-row:nth-child(even) {
  background: #f1f5f9 !important;
}

.domain-pill {
  width: 100% !important;
  min-height: 44px !important;
  padding: 9px 22px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 18px !important;
  background: #eef2f7 !important;
  font-weight: 800 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.eye-cycle {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  height: 44px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  padding: 0 16px !important;
  transition: all 0.15s ease !important;
}

.eye-cycle:hover {
  border-color: var(--eyv-mint) !important;
  background: #f8fafc !important;
  color: #111827 !important;
  transform: none !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.eye-cycle[data-value="None"],
.eye-cycle[data-value="Normal"],
.eye-cycle[data-value="Absent"],
.eye-cycle[data-value="No"] {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
}

.eye-cycle[data-value="Mild"],
.eye-cycle[data-value="Reduced"],
.eye-cycle[data-value="Present"],
.eye-cycle[data-value="Yes"],
.eye-cycle[data-value="Abnormal"] {
  background: #fffbeb !important;
  border-color: #fed7aa !important;
}

.eye-cycle[data-value="Moderate"],
.eye-cycle[data-value="Very low"],
.eye-cycle[data-value="Very reduced"] {
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
}

.eye-cycle[data-value="Severe"] {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

@media (max-width: 760px) {
  .clin-row {
    grid-template-columns: 150px 1fr 150px !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }

  .eye-cycle {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    font-size: 0.9rem !important;
  }
}
/* =========================
   CLINICIAN PAGE – DARKER DEPTH
   ========================= */

/* 1. Page overlay – reduce washout */
body::before {
  background: rgba(255, 255, 255, 0.45);
}

/* 2. Main card – slightly stronger */
.card--clinician,
.card.glass {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14) !important;
}

/* 3. Rows – darker + more defined */
.clin-row {
  background: #e6edf5 !important;
  border-radius: 16px !important;
}

/* alternating rows */
.clin-row:nth-child(even) {
  background: #dde6f0 !important;
}

/* subtle edge definition */
.clin-row {
  border: 1px solid #d3dde8;
}

/* 4. Feature column – anchor */
.domain-pill {
  background: #cfd8e3 !important;
  border: 1px solid #b8c4d1 !important;
}

/* 5. Section header strip */
.clinician-head {
  background: #d9e2ec !important;
}

/* 6. Notes section */
textarea.input {
  background: #f1f5f9 !important;
  border: 1px solid #cfd8e3 !important;
}

/* notes container */
.card--clinician .panel,
.card--clinician .notes-section {
  background: #eef2f6 !important;
  border: 1px solid #d3dde8 !important;
}
/* =========================
   TREATMENT PLAN PAGE DEPTH
   ========================= */

.planHero,
.planDetailsBlock,
.patientPlanCard,
.info-card {
  background: #eef2f6 !important;
  border: 1px solid #d3dde8 !important;
}

.plan-item-card {
  background: #e6edf5 !important;
  border: 1px dashed #b8c7d8 !important;
  border-radius: 18px !important;
}

.plan-item-card:nth-of-type(even) {
  background: #dde6f0 !important;
}

.plan-item-media {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

.plan-item-title {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.plan-item-note,
.plan-item-side-label,
.plan-item-side-value {
  color: #334155 !important;
}

.plan-item-side {
  border-left: 1px solid #cbd5e1 !important;
}

.plan-item-links a {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

.plan-item-links a:hover {
  background: var(--eyv-mint) !important;
  border-color: var(--eyv-mint) !important;
  color: #ffffff !important;
}

.plan-section,
.planSection {
  background: #f1f5f9 !important;
  border-radius: 18px !important;
  padding: 14px !important;
  margin-top: 18px !important;
}

.planSectionTitle,
.plan-h,
h3 {
  color: #0f172a !important;
}

.plan-content select,
.plan-item-card select,
.plan-item-card .input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

.card.glass {
  background: rgba(255,255,255,0.96) !important;
}
/* =========================
   TREATMENT PLAN – STRONGER BACKGROUND TINT
   ========================= */

/* Main treatment page card */
.card.glass,
.card--clinician {
  background: #eef3f8 !important;
}

/* Inner white panels become tinted */
.card.glass > div,
.card--clinician > div {
  background-color: transparent;
}

/* Recorded + clinical summary outer panels */
.planHero,
.planDetailsBlock,
.info-card,
.plan-section,
.planSection {
  background: #dfe8f2 !important;
  border-color: #c5d3e2 !important;
}

/* Clinical summary inner boxes */
.info-grid .info-card,
.planHero .info-card,
.card.glass .info-card {
  background: #e8eef5 !important;
}

/* Treatment item cards */
.plan-item-card {
  background: #d6e1ec !important;
  border-color: #aebfd1 !important;
}

/* Alternate treatment cards slightly darker */
.plan-item-card:nth-of-type(even) {
  background: #cfdbea !important;
}

/* Inputs/selects stay white for contrast */
.plan-item-card select,
.plan-item-card .input,
.plan-content select {
  background: #ffffff !important;
}

/* Product image boxes */
.plan-item-media {
  background: #edf2f7 !important;
  border-color: #c5d3e2 !important;
}

/* Notes and text blocks */
textarea.input,
.patientPlanSummary,
.planDetailsBlock {
  background: #e8eef5 !important;
}

/* =========================================================
   Patient dashboard — treatment reminders
========================================================= */

.reminder-card--compact {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 32px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #dbe3ec;
  background: #ffffff;
  box-sizing: border-box;
}

.reminder-card__top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.reminder-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef6ff;
}

.reminder-card--compact h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.reminder-card--compact p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
}

.reminder-pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reminder-pill {
  min-height: 48px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f8fafc;
  font-weight: 800;
  font-size: 13px;
}

.reminder-pill input {
  display: none;
}

.reminder-pill:has(input:checked) {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #166534;
}

.reminder-consent-line {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
}

.reminder-consent-line input {
  width: 20px;
  height: 20px;
  accent-color: #16a34a;
}

.reminder-save-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 999px;
  border: 0;
  background: #111827;
  color: white;
  font-weight: 800;
}

@media (max-width: 520px) {
  .reminder-pill-row {
    grid-template-columns: 1fr;
  }
}
.toast,
.eyev-toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;

  background: #111827;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.eyev-recordBtn--secondary {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  color: #475569;
  font-size: 12px;
  padding: 8px 12px;
  min-height: 34px;
}
.eyev-recordBtn {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
}
.eyev-patientActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.eyev-patientActions--primary {
  margin-bottom: 10px;
}

.eyev-patientActions--secondary {
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  justify-content: space-between;
}

.eyev-actionGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.eyev-recordBtn {
  min-height: 36px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.eyev-recordBtn--event {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.eyev-recordBtn--secondary {
  background: #f8fafc;
  border-color: #dbe4ee;
  color: #475569;
}

.eyev-recordBtn--danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.eyev-recordBtn--danger {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #9f1239 !important;
}
.topbar h1,
.topbar-title,
.card--welcome h1 {
  white-space: nowrap;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.plan-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
  margin-top:18px;
}

@media (max-width: 900px){
  .plan-two-col{
    grid-template-columns:1fr;
  }
}
.patient-plan-two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: start !important;
  margin-top: 18px !important;
}

@media (max-width: 900px) {
  .patient-plan-two-col {
    grid-template-columns: 1fr !important;
  }
}
/* Patient treatment plan: centre all treatment option sections */
.patientPlanSectionGrid {
  width: 100% !important;
  max-width: 820px !important;
  margin: 24px auto 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px)) !important;
  gap: 18px !important;
  justify-content: center !important;
  align-items: start !important;
}

.patientPlanSectionGrid .patientPlanSection {
  margin-top: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.patientPlanSectionGrid .patientPlanRoutineGrid {
  display: grid !important;
  justify-content: center !important;
  justify-items: center !important;
}

@media (max-width: 560px) {
  .patientPlanSectionGrid {
    grid-template-columns: 1fr !important;
    max-width: 280px !important;
  }
}
/* Force patient plan cards to centre properly */
.patientPlanSectionGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 28px auto 0 auto !important;
}

.patientPlanSectionGrid .patientPlanSection {
  flex: 0 1 180px !important;
  max-width: 190px !important;
  width: 190px !important;
  margin: 0 !important;
}

.patientPlanSectionGrid .patientPlanRoutineGrid {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.patientPlanSectionGrid .patientPlanStep {
  width: 100% !important;
  max-width: 190px !important;
  box-sizing: border-box !important;
}

@media (max-width: 560px) {
  .patientPlanSectionGrid .patientPlanSection {
    width: 100% !important;
    max-width: 260px !important;
    flex-basis: 260px !important;
  }

  .patientPlanSectionGrid .patientPlanStep {
    max-width: 260px !important;
  }
}
/* =========================================================
   PRIVACY NOTICE BANNER
========================================================= */

.privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;

  transform: translateX(-50%);

  width: min(920px, calc(100vw - 32px));

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 18px;

  border-radius: 20px;

  background: rgba(255,255,255,0.92);

  border: 1px solid rgba(255,255,255,0.45);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 12px 34px rgba(0,0,0,0.16);

  z-index: 9999;
}

.privacy-banner__text {
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
  font-weight: 600;
}

.privacy-banner__text a {
  color: #E32264;
  font-weight: 800;
  text-decoration: none;
}

.privacy-banner__text a:hover {
  text-decoration: underline;
}

.privacy-banner__btn {
  flex-shrink: 0;

  min-width: 90px;
  min-height: 42px;

  border-radius: 999px;

  border: 2px solid #d1d5db;

  background: #ffffff;

  font-weight: 800;

  cursor: pointer;
}

.privacy-banner__btn:hover {
  background: var(--eyv-mint);
  border-color: var(--eyv-mint);
  color: white;
}

@media (max-width: 760px) {

  .privacy-banner {
    flex-direction: column;
    align-items: stretch;

    gap: 12px;

    bottom: 12px;

    padding: 16px;
  }

  .privacy-banner__btn {
    width: 100%;
  }
}
/* =========================================================
   REMOVE PINK BLEED-THROUGH FROM MAIN APP CARDS
========================================================= */

.card,
.card--welcome,
.card--questionnaire,
.card--clinician,
.card--patient,
.card.glass,
.eyev-card,
.patientCard,
.progress-card,
.panel,
.privacy-banner {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#app .card,
#app .card.glass,
#app .eyev-card {
  background: #ffffff !important;
}
/* =========================================================
   ALCON LOGO — HOME PAGE ONLY
========================================================= */

.alconBrandLink {
  display: none !important;
}

body.eyev-home .alconBrandLink {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  position: fixed !important;
  left: 50% !important;
  bottom: 260px !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;

  text-decoration: none !important;
}

body.eyev-home .alconBrandLogo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  width: 340px !important;
  max-width: 72vw !important;
  height: auto !important;

  border-radius: 10px !important;
  border: 4px solid #ffffff !important;
  background: #0b3ea9 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22) !important;
}

@media (max-width: 700px) {
  body.eyev-home .alconBrandLink {
    bottom: 140px !important;
  }

  body.eyev-home .alconBrandLogo {
    width: 220px !important;
    max-width: 82vw !important;
  }
}
/* =========================================================
   FIX: Keep Alcon logo behind pop-ups / privacy notice
========================================================= */

body.eyev-home .alconBrandLink {
  z-index: 10 !important;
}

/* Keep privacy notice and modal layers above the logo */
.privacy-banner,
.privacy-modal,
.modal,
.overlay,
.dialog,
[role="dialog"] {
  z-index: 999999 !important;
}