@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/drnakheel/fonts/cairo-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC, U+1EE00-1EEFF;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/drnakheel/fonts/cairo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #173126;
  --muted: #647166;
  --forest: #123e2a;
  --forest-2: #2e6f4c;
  --leaf: #4e7d5e;
  --gold: #c99b52;
  --gold-pale: #f3e6c7;
  --sand: #f7f3e8;
  --paper: #fffdf6;
  --line: #d9ddca;
  --line-strong: #8f9b96;
  --bottom-nav-height: 84px;
  --bottom-nav-offset: max(16px, env(safe-area-inset-bottom, 0px));
  --bottom-nav-reserve: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + 24px);
  --danger: #b84737;
  --danger-pale: #fff0ed;
  --warning: #9a6010;
  --warning-pale: #fff4dc;
  --success: #2f7d4d;
  --shadow: 0 18px 48px rgba(25, 48, 39, .1);
  --radius: 18px;
  font-family: "Cairo", "Tahoma", "Arial", sans-serif;
  font-size: 16px;
  background: var(--sand);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sand);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 0%, rgba(230, 184, 92, .14), transparent 30rem),
    linear-gradient(180deg, #fbf8f0, var(--sand));
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d39b2f;
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.3;
}

p {
  line-height: 1.75;
}

.loading-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
}

.loading-page span {
  color: var(--muted);
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(76px + env(safe-area-inset-top));
  padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 32px) 12px;
  border-bottom: 1px solid rgba(217, 221, 202, .72);
  background: rgba(247, 243, 232, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark,
.auth-logo,
.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(230, 184, 92, .75);
  border-radius: 15px;
  background: var(--forest);
  box-shadow: 0 7px 18px rgba(18, 61, 45, .2);
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
}

.logo-image {
  display: block;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.profile-chip {
  min-height: 44px;
  max-width: 150px;
  overflow: hidden;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip span {
  color: var(--leaf);
}

.page {
  padding: 28px clamp(16px, 4vw, 34px) calc(118px + env(safe-area-inset-bottom));
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.primary,
.secondary,
.ghost,
.danger-button {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary:active,
.secondary:active,
.ghost:active,
.danger-button:active {
  transform: translateY(1px);
}

.primary {
  border: 1px solid var(--forest);
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(18, 61, 45, .2);
  color: #fff;
}

.primary:hover {
  background: #0d3224;
}

.secondary {
  border: 1px solid var(--forest);
  background: #fff;
  color: var(--forest);
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.danger-button {
  border: 1px solid #e5b8b2;
  background: var(--danger-pale);
  color: var(--danger);
}

.wide {
  width: 100%;
}

.compact {
  min-height: 42px;
  padding: 9px 15px;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  width: min(620px, calc(100% - 24px));
  grid-template-columns: repeat(4, 1fr);
  padding: 7px;
  transform: translateX(50%);
  border: 1px solid rgba(222, 217, 205, .9);
  border-radius: 20px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 16px 42px rgba(23, 50, 42, .16);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  min-height: 54px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 14px;
  color: var(--muted);
}

.bottom-nav a.active {
  background: var(--forest);
  color: #fff;
}

.bottom-nav span {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.bottom-nav small {
  font-size: .7rem;
}

.hero-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 340px;
  align-items: center;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr);
  gap: 20px;
  padding: clamp(28px, 6vw, 60px);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.03), rgba(230,184,92,.08)),
    var(--forest);
  box-shadow: var(--shadow);
  color: white;
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  border: 1px solid rgba(230, 184, 92, .18);
  border-radius: 50%;
  content: "";
}

.hero-card::before {
  width: 320px;
  height: 320px;
  left: -100px;
  top: -140px;
}

.hero-card::after {
  width: 210px;
  height: 210px;
  left: 30px;
  bottom: -145px;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card .eyebrow {
  color: var(--gold);
}

.hero-card h1 {
  max-width: 560px;
  margin-bottom: 14px;
}

.hero-card p:not(.eyebrow) {
  max-width: 630px;
  color: rgba(255,255,255,.78);
}

.hero-card .primary {
  margin-top: 8px;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--forest);
}

.hero-palm {
  position: relative;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(230,184,92,.5);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.hero-palm img {
  display: block;
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.24));
}

.guest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #ead8a7;
  border-radius: 16px;
  background: #fff8e7;
  color: #6d5018;
}

.guest-banner > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--gold-pale);
  color: var(--forest);
}

.guest-banner strong,
.guest-banner small {
  display: block;
}

.guest-banner small {
  margin-top: 3px;
  font-size: .75rem;
  line-height: 1.55;
}

.pulse {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(230,184,92,.35);
  border-radius: 50%;
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(.9); opacity: .45; }
  50% { transform: scale(1.08); opacity: 1; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 38px;
}

.stats-grid div {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,248,.8);
}

.stats-grid strong {
  color: var(--forest);
  font-size: 1.8rem;
}

.stats-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.section-head,
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.page-title h1 {
  margin-bottom: 0;
}

.section-head a {
  color: var(--leaf);
  font-weight: 800;
}

.page-title {
  align-items: center;
  margin-bottom: 26px;
}

.page-title p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}

.back-button {
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  font-size: 1.25rem;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 50, 42, .05);
}

.case-card a {
  display: block;
  min-height: 170px;
  padding: 20px;
}

.case-card:hover {
  border-color: #c8bd9f;
  transform: translateY(-1px);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.case-id {
  direction: ltr;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
}

.case-card h3 {
  overflow: hidden;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
}

.status,
.urgency-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f1eb;
  color: #52615b;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.status.processing,
.status.ready {
  border-color: #e9d092;
  background: var(--warning-pale);
  color: var(--warning);
}

.status.completed {
  border-color: #b9d7c6;
  background: #eaf5ee;
  color: var(--success);
}

.status.needs_review,
.status.failed {
  border-color: #e8b9b3;
  background: var(--danger-pale);
  color: var(--danger);
}

.urgency {
  font-size: .78rem;
}

.urgency.danger,
.urgency-badge.danger {
  color: var(--danger);
}

.urgency.warning,
.urgency-badge.warning {
  color: var(--warning);
}

.urgency.calm,
.urgency-badge.calm {
  color: var(--success);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  padding: 42px 24px;
  border: 1px dashed #cfc7b6;
  border-radius: 22px;
  background: rgba(255,253,248,.45);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 2rem;
}

.empty-state p {
  color: var(--muted);
}

.info-strip {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #e8c7bd;
  border-radius: 16px;
  background: #fff7f3;
  color: #713c34;
  line-height: 1.7;
}

.info-strip strong {
  display: block;
}

.case-form {
  display: grid;
  gap: 16px;
}

.form-card,
.case-meta,
.privacy-actions,
.account-card,
.result-card,
.error-card,
.analysis-progress {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 50, 42, .045);
}

.step-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.step-title > span {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  color: var(--gold);
  font-weight: 900;
}

.step-title h2 {
  margin-bottom: 2px;
}

.step-title p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mode-switch label {
  position: relative;
  display: grid;
  min-height: 130px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}

.mode-switch label.selected {
  border-color: var(--forest);
  background: #edf5ef;
  box-shadow: inset 0 0 0 1px var(--forest);
}

.mode-switch label:focus-within,
.symptom-grid label:focus-within {
  outline: 3px solid #d39b2f;
  outline-offset: 3px;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
}

.mode-switch b {
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 1.55rem;
}

.mode-switch strong,
.mode-switch small {
  display: block;
}

.mode-switch small {
  margin-top: 4px;
  color: var(--muted);
}

.photo-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed #beb49f;
  border-radius: 18px;
  background: #faf7ef;
}

.photo-drop p {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.form-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--leaf);
  font-size: .82rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #e8e4db;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-grid figcaption {
  overflow: hidden;
  padding: 7px 9px;
  background: #fff;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-grid button {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18,61,45,.88);
  color: white;
  font-size: 1.2rem;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-card label:not(.check-line):not(.mode-switch label):not(.symptom-grid label) {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #385148;
  font-size: .86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(60,122,85,.13);
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.symptom-grid label {
  position: relative;
  min-height: 52px;
  cursor: pointer;
}

.symptom-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.symptom-grid span {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #40554e;
  font-size: .78rem;
  line-height: 1.4;
}

.symptom-grid input:checked + span {
  border-color: var(--forest);
  background: #edf5ef;
  box-shadow: inset 0 0 0 1px var(--forest);
  color: var(--forest);
  font-weight: 800;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  line-height: 1.65;
}

.check-line input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--forest);
}

.check-line.required {
  padding: 14px;
  border: 1px solid #dccb9f;
  border-radius: 14px;
  background: #fffaf0;
}

.danger-preview {
  margin-top: 16px;
  padding: 15px;
  border-right: 4px solid var(--danger);
  border-radius: 12px;
  background: var(--danger-pale);
  color: #713d37;
  line-height: 1.7;
}

.danger-preview strong {
  display: block;
  color: var(--danger);
}

.consent-card {
  border-color: #d7c7a2;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.submit-bar {
  position: sticky;
  z-index: 20;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(217,221,202,.95);
  border-radius: 18px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 12px 30px rgba(23,50,42,.12);
  backdrop-filter: blur(16px);
}

.submit-bar span {
  color: var(--muted);
  font-size: .76rem;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 3px;
}

.filter-row button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  white-space: nowrap;
}

.filter-row button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.analysis-progress {
  display: grid;
  align-items: center;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  margin-bottom: 18px;
  border-color: #dec98d;
  background: linear-gradient(135deg, #fffaf0, #fffdf8);
}

.analysis-progress h2 {
  margin-bottom: 5px;
}

.analysis-progress p:last-child {
  margin: 0;
  color: var(--muted);
}

.scanner {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #ddc682;
  border-radius: 28px;
  background: var(--forest);
  color: var(--gold);
}

.scanner b {
  font-size: 2.2rem;
}

.scanner span {
  position: absolute;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: scan 2s infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(-30px); opacity: .45; }
  50% { transform: translateY(30px); opacity: 1; }
}

.error-card {
  margin-bottom: 18px;
  border-color: #e7bab3;
  background: var(--danger-pale);
}

.result-card {
  margin-bottom: 18px;
  border-color: #cbbd98;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-head h2 {
  margin-bottom: 0;
}

.probability-warning,
.hard-safety {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 13px;
  line-height: 1.7;
}

.probability-warning {
  border: 1px solid #e2ce98;
  background: var(--warning-pale);
  color: #6c4a18;
  font-weight: 800;
}

.result-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.result-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.possibilities {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-right: 22px;
}

.possibilities li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf8f3;
}

.possibilities p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.result-metrics div {
  padding: 15px;
  border-radius: 13px;
  background: #f2f4ef;
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .74rem;
}

.safe-steps li {
  margin-bottom: 7px;
}

.hard-safety {
  border-right: 4px solid var(--danger);
  background: var(--danger-pale);
  color: #703a34;
}

.case-meta {
  margin-bottom: 18px;
}

.case-meta dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.case-meta dl div {
  padding: 12px;
  border-radius: 12px;
  background: #f5f3ed;
}

.case-meta dt {
  color: var(--muted);
  font-size: .73rem;
}

.case-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.original-note {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.privacy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy-actions h2,
.privacy-actions p {
  margin-bottom: 3px;
}

.privacy-actions p {
  color: var(--muted);
  font-size: .8rem;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.account-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 2rem;
}

.account-card h2,
.account-card p {
  margin-bottom: 3px;
}

.account-card p {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 92px;
  width: min(470px, calc(100% - 32px));
  padding: 14px 18px;
  transform: translate(50%, 24px);
  border-radius: 14px;
  background: var(--forest);
  box-shadow: 0 16px 38px rgba(15,35,28,.28);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.toast.show {
  transform: translate(50%, 0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
}

.toast.success {
  background: var(--success);
}

.auth-page {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  grid-template-columns: 1.05fr .95fr;
  margin: 0 auto;
  padding: 24px 0;
}

.auth-visual,
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 7vw, 78px);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(230,184,92,.2), transparent 16rem),
    linear-gradient(135deg, rgba(8,45,32,.92), rgba(18,61,45,.76)),
    url('/drnakheel/palm-doctor-hero.webp') center / cover no-repeat;
  color: white;
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-visual::after {
  position: absolute;
  width: 360px;
  height: 360px;
  left: -180px;
  bottom: -190px;
  border: 1px solid rgba(230,184,92,.25);
  border-radius: 50%;
  content: "";
}

.auth-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 32px;
  border-radius: 25px;
  font-size: 2.4rem;
}

.powered-by {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  margin: -18px 0 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-size: .68rem;
}

.powered-by img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: white;
  object-fit: contain;
}

.powered-by strong {
  color: white;
}

.auth-logo.small {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  font-size: 1.8rem;
}

.auth-visual .eyebrow {
  color: var(--gold);
}

.auth-visual h1 {
  margin-bottom: 14px;
}

.auth-visual .lead {
  max-width: 570px;
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}

.trust-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: .75rem;
}

.safety-note {
  max-width: 600px;
  padding: 15px 17px;
  border: 1px solid rgba(230,184,92,.35);
  border-radius: 14px;
  background: rgba(230,184,92,.08);
  color: #f8eccd;
  font-size: .83rem;
  line-height: 1.7;
}

.auth-card {
  width: min(520px, 100%);
  justify-self: center;
}

.auth-card h2 {
  margin-bottom: 20px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #3c514a;
  font-size: .84rem;
  font-weight: 700;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.auth-actions button {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-size: .83rem;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #8a9892;
  font-size: .72rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #dfe6e1;
  content: "";
}

.guest-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 16px;
  border: 1px solid #c8d9cf;
  border-radius: 14px;
  background: #eff6f1;
  color: var(--forest);
  text-align: right;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.guest-button:hover {
  border-color: #7ca68e;
  background: #e6f1ea;
}

.guest-button:active {
  transform: translateY(1px);
}

.guest-button strong,
.guest-button small {
  display: block;
}

.guest-button small {
  margin-top: 2px;
  color: #5f756a;
  font-size: .7rem;
  font-weight: 500;
}

.guest-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  color: var(--gold);
}

.guest-note {
  margin: 9px 0 0;
  color: #7e8c86;
  font-size: .68rem;
  line-height: 1.65;
  text-align: center;
}

.guest-account-note {
  border-color: #ead8a7;
  background: #fffaf0;
}

.auth-page.single {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .hero-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-palm {
    display: none;
  }

  .case-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .symptom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .auth-visual {
    min-height: 370px;
    border-radius: 0 0 28px 28px;
  }

  .auth-card {
    padding-top: 38px;
    padding-bottom: 54px;
  }
}

@media (max-width: 560px) {
  :root {
    font-size: 16px;
  }

  .topbar {
    min-height: 68px;
  }

  .profile-chip {
    max-width: 108px;
    padding: 8px 10px;
    font-size: .72rem;
  }

  .brand small {
    display: none;
  }

  .page {
    padding-top: 18px;
  }

  .hero-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .stats-grid div {
    min-height: 88px;
    padding: 11px;
    text-align: center;
  }

  .stats-grid strong {
    font-size: 1.45rem;
  }

  .stats-grid span {
    font-size: .68rem;
  }

  .case-list {
    grid-template-columns: 1fr;
  }

  .case-card a {
    min-height: 145px;
  }

  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mode-switch,
  .fields-grid,
  .result-metrics,
  .case-meta dl {
    grid-template-columns: 1fr;
  }

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

  .photo-drop .secondary,
  .photo-drop .ghost {
    width: 100%;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .submit-bar {
    align-items: stretch;
    flex-direction: column;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .submit-bar span {
    text-align: center;
  }

  .analysis-progress {
    grid-template-columns: 1fr;
  }

  .scanner {
    width: 76px;
    height: 76px;
  }

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

  .auth-visual {
    min-height: 330px;
    padding: 32px 24px;
  }

  .auth-logo {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    font-size: 2rem;
  }

  .auth-card {
    padding: 34px 24px 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


.capture-guide {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #d8cba9;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf0, #f4f7f1);
}

.capture-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.capture-guide-head h3 {
  margin: 3px 0 0;
  font-size: 1.02rem;
}

.guide-kicker {
  color: var(--leaf);
  font-size: .72rem;
  font-weight: 800;
}

#photoGuideProgress {
  min-width: 62px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e5eee8;
  color: var(--forest);
  font-size: .78rem;
  text-align: center;
}

#photoGuideProgress.complete {
  background: var(--forest);
  color: white;
}

.capture-shot-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-shot-list li {
  display: flex;
  min-width: 0;
  gap: 8px;
  padding: 11px 9px;
  border: 1px solid rgba(205,197,176,.85);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}

.capture-shot-list b {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: var(--gold);
  font-size: .72rem;
}

.capture-shot-list strong,
.capture-shot-list small {
  display: block;
}

.capture-shot-list strong {
  color: var(--forest);
  font-size: .76rem;
}

.capture-shot-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.45;
}

.guide-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}

.photo-tips {
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.photo-tips summary,
.support-reference summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--leaf);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
}

.photo-tips ul {
  margin: 0 0 14px;
  padding-right: 20px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.75;
}

.support-reference {
  margin: 10px 0 14px;
}

.support-reference code {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  color: #74463f;
  font-size: .7rem;
}

@media (max-width: 820px) {
  .capture-shot-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .capture-guide {
    padding: 15px;
  }

  .capture-shot-list {
    grid-template-columns: 1fr;
  }

  .capture-shot-list li {
    align-items: center;
  }
}


.case-next-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  border-color: #c9d9cf;
  background: linear-gradient(145deg, #f1f7f3, #fffdf8);
}

.case-next-actions h2 {
  margin-bottom: 5px;
}

.case-next-actions p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}

.case-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.case-action-buttons button {
  min-height: 46px;
}

@media (max-width: 720px) {
  .case-next-actions {
    grid-template-columns: 1fr;
  }

  .case-action-buttons {
    justify-content: stretch;
  }

  .case-action-buttons button {
    width: 100%;
  }
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  font-size: .84rem;
}

.legal-links a {
  color: var(--leaf);
  font-weight: 800;
}

.consent-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 28, 21, .72);
}

.consent-dialog-card {
  width: min(560px, 100%);
  max-height: 88dvh;
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(22px, 5vw, 34px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.consent-dialog-card h2 { margin: 6px 0 14px; }
.consent-dialog-card p,
.consent-dialog-card li { line-height: 1.85; }

.consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.consent-dialog-actions button { min-height: 48px; }

.human-review-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dbc987;
  border-radius: 12px;
  background: #fff9e8;
  color: #624f18;
  line-height: 1.8;
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(23, 50, 42, .07);
}

.legal-page h1 { margin: 10px 0 18px; }
.legal-page h2 { margin-top: 28px; }
.legal-page p, .legal-page li { line-height: 1.9; }
.legal-page .brand { display: inline-flex; }
.legal-page footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .consent-dialog-actions { flex-direction: column; }
  .consent-dialog-actions button { width: 100%; }
}

/* Palm Doctor v2 — synchronized with the approved Figma system */
body {
  font-family: "Cairo", "Tahoma", "Arial", sans-serif;
}

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

h1 {
  line-height: 1.35;
}

h2 {
  line-height: 1.45;
}

.brand-powered {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-powered img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: contain;
}

.brand-powered b {
  color: var(--leaf);
  font-weight: 800;
}

.page {
  padding-bottom: var(--bottom-nav-reserve);
  scroll-padding-bottom: var(--bottom-nav-reserve);
}

.primary,
.secondary,
.ghost,
.danger-button {
  min-height: 56px;
  padding: 13px 20px;
  border-radius: 16px;
}

.compact {
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 14px;
}

.bottom-nav {
  bottom: var(--bottom-nav-offset);
  width: min(620px, calc(100% - 32px));
  min-height: var(--bottom-nav-height);
  padding: 10px;
  border-color: rgba(217, 226, 220, .95);
  border-radius: 22px;
}

.bottom-nav a {
  min-height: 64px;
  gap: 4px;
  border-radius: 16px;
  font-weight: 650;
}

.bottom-nav a[aria-current="page"] {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 52, 38, .18);
}

.bottom-nav a[aria-current="page"] small {
  font-weight: 850;
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 0;
}

.nav-icon svg,
.guest-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav small {
  font-size: .72rem;
  line-height: 1.3;
}

.toast {
  bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + 12px);
}

.submit-bar {
  bottom: var(--bottom-nav-reserve);
}

.guest-button {
  min-height: 64px;
  border-color: var(--forest);
  border-radius: 16px;
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(18, 61, 45, .18);
  color: #fff;
}

.guest-button:hover {
  border-color: #0d3224;
  background: #0d3224;
}

.guest-button small {
  color: rgba(255, 255, 255, .75);
}

.guest-icon {
  background: var(--gold-pale);
  color: var(--forest);
}

.guest-banner {
  border-color: #d5c184;
  background: linear-gradient(135deg, #fff9e8, #fffdf8);
}

.guest-banner-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--forest);
  color: var(--gold);
}

.case-card-title,
.case-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.case-card-title h3,
.case-title-row h1 {
  min-width: 0;
  margin-bottom: 0;
}

.case-card-title h3 {
  flex: 1;
}

.case-code-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f1eb;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.status.failed,
.status.needs_review {
  border-color: #ead293;
  background: var(--warning-pale);
  color: var(--warning);
}

.error-card {
  margin-bottom: 20px;
  padding: clamp(22px, 5vw, 34px);
  border-color: #e7cc84;
  background: linear-gradient(145deg, var(--warning-pale), #fffaf0);
}

.error-card.is-failed {
  box-shadow: 0 16px 36px rgba(154, 96, 16, .1);
}

.error-card.is-ready {
  border-color: #c9d9cf;
  background: linear-gradient(145deg, #f1f7f3, var(--paper));
}

.error-card:focus {
  outline: none;
}

.error-card h2 {
  margin-bottom: 8px;
}

.error-card .primary {
  margin-top: 18px;
}

.result-section.safe-steps {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #bdd8c8;
  border-radius: 16px;
  background: #edf6f0;
}

.result-section.safe-steps .result-label {
  color: var(--forest);
  font-size: .84rem;
}

.result-section.safe-steps ul {
  margin-bottom: 0;
}

.case-meta dl {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.case-meta dl div {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.case-meta dl div:last-child {
  border-bottom: 0;
}

.photo-drop {
  border-color: #c7d8ce;
  background: #f7faf8;
}

.photo-drop .primary,
.photo-drop .secondary {
  flex: 1 1 220px;
}

.capture-guide {
  border-color: #ddc781;
  background: linear-gradient(145deg, #fffaf0, #f1f7f3);
}

input,
select,
textarea {
  border-color: var(--line);
  border-radius: 14px;
}

@media (max-width: 560px) {
  .topbar {
    min-height: calc(72px + env(safe-area-inset-top));
    padding-inline: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: .98rem;
  }

  .brand small,
  .brand-powered {
    display: flex;
    font-size: .58rem;
  }

  .brand-powered img {
    width: 12px;
    height: 12px;
  }

  .profile-chip {
    max-width: 92px;
    min-height: 44px;
  }

  .page {
    padding-inline: 16px;
    padding-bottom: var(--bottom-nav-reserve);
  }

  .bottom-nav {
    width: calc(100% - 32px);
  }

  .guest-banner {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .guest-banner small {
    line-height: 1.55;
  }

  .case-meta dl {
    grid-template-columns: 1fr;
  }

  .photo-drop {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .photo-drop .primary,
  .photo-drop .secondary {
    width: 100%;
  }

  .auth-card {
    padding-inline: 24px;
  }
}


/* Case library tools */
.case-tools {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 210px) auto;
  gap: 12px;
  margin: 18px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 50, 42, .04);
}

.case-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
}

.case-tools input,
.case-tools select {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.case-tools input:focus-visible,
.case-tools select:focus-visible {
  outline: 3px solid #d39b2f;
  outline-offset: 2px;
}

.case-tools .secondary {
  min-width: 150px;
}

.case-count {
  min-height: 24px;
  margin: 8px 2px 14px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.export-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.export-card h2 {
  margin-bottom: 4px;
}

.export-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
}

.guest-banner-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  padding: 8px 14px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .case-tools {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .case-tools .secondary {
    width: 100%;
  }

  .export-card {
    align-items: stretch;
    flex-direction: column;
  }

  .export-card button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .guest-banner {
    flex-wrap: wrap;
  }

  .guest-banner-action {
    width: 100%;
    margin-inline-start: 0;
  }
}


/* Same-account bridge when Palm Doctor opens inside Ain Al Mazraa */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.farm-eye-brand .brand-mark {
  border-radius: 14px;
  background: #fff;
}

.doctor-section {
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: var(--leaf) !important;
  font-weight: 750;
}

.doctor-section img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.farm-eye-return {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 800;
}

.farm-eye-return svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-farm-eye-embedded .page::before {
  content: "أنت داخل عين المزرعة · نفس الحساب ونفس الجلسة";
  display: block;
  width: fit-content;
  margin: 0 0 14px auto;
  padding: 6px 11px;
  border: 1px solid #c9d9cf;
  border-radius: 999px;
  background: #edf6f0;
  color: var(--forest);
  font-size: .7rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .farm-eye-topbar .profile-chip {
    display: none;
  }

  .farm-eye-return {
    min-width: 76px;
    justify-content: center;
    padding-inline: 10px;
    font-size: .72rem;
  }

  .farm-eye-brand {
    min-width: 0;
  }

  .farm-eye-brand > span {
    min-width: 0;
  }

  .farm-eye-brand strong,
  .doctor-section {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .doctor-section {
    max-width: 180px;
  }
}
