:root {
  --ink: #17362f;
  --muted: #687c75;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --green: #26725d;
  --green-dark: #174f40;
  --green-soft: #dcece5;
  --orange: #e58f52;
  --orange-soft: #f9e7d7;
  --red: #c85b55;
  --red-soft: #f8e1df;
  --line: #e2e8e3;
  --shadow: 0 18px 50px rgba(31, 71, 58, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.document-upload:focus-within {
  outline: 3px solid rgba(229, 143, 82, 0.55);
  outline-offset: 3px;
}

.landing {
  min-height: 100vh;
  padding: 28px 5vw 48px;
  background:
    radial-gradient(circle at 80% 12%, rgba(229, 143, 82, 0.18), transparent 26%),
    radial-gradient(circle at 15% 82%, rgba(38, 114, 93, 0.16), transparent 28%),
    var(--cream);
}

.topbar,
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #efc69f;
  border-radius: 999px;
  padding: 3px 7px;
  color: #8a4d20;
  background: var(--orange-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--green);
  box-shadow: 0 9px 20px rgba(38, 114, 93, 0.22);
}

.brand-mark::before {
  content: "✦";
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: var(--ink);
  background: white;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 71, 58, 0.12);
}

.btn-primary {
  color: white;
  background: var(--green);
}

.btn-danger {
  border: 1px solid rgba(170, 55, 49, .18);
  color: #fff;
  background: #a63f39;
}

.btn-dark {
  color: white;
  background: var(--ink);
}

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

.btn-soft {
  color: var(--green-dark);
  background: var(--green-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 7vw;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 100px);
  margin: auto;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #cbded5;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
}

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

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
}

.hero-card-inner {
  border-radius: 24px;
  padding: 24px;
  background: var(--green-dark);
  color: white;
}

.hero-card .mini-label {
  color: #bdd7cd;
}

.hero-card h3 {
  margin: 8px 0 24px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.premium-landing {
  padding: 0;
  overflow: hidden;
  background: #f4f7f2;
}

.premium-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1440px;
  margin: auto;
  padding: 22px 5vw;
}

.premium-nav .top-actions {
  justify-content: end;
}

.mobile-label {
  display: none;
}

.premium-nav .professional-join-btn {
  border-color: rgba(231, 194, 132, .42);
  color: #f0c98d;
  background: rgba(215, 168, 95, .08);
}

.premium-nav .professional-join-btn:hover {
  border-color: rgba(231, 194, 132, .72);
  color: #fff2d9;
  background: rgba(215, 168, 95, .16);
}

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

.professional-interest-form > p {
  margin: 0 0 4px;
}

.landing-links {
  display: flex;
  gap: 30px;
}

.landing-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.landing-links a:hover {
  color: var(--green-dark);
}

.premium-btn,
.premium-cta {
  background: linear-gradient(135deg, #26725d, #174f40);
  box-shadow: 0 12px 28px rgba(23, 79, 64, 0.2);
}

.premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: center;
  max-width: 1440px;
  min-height: 760px;
  margin: auto;
  padding: 75px 5vw 110px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-one {
  top: -180px;
  left: -220px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(177, 222, 199, 0.52), transparent 69%);
}

.orb-two {
  right: -240px;
  bottom: -250px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(239, 190, 145, 0.38), transparent 68%);
}

.premium-hero-copy {
  position: relative;
  z-index: 2;
}

.premium-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid #d8e6de;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39a37f;
  box-shadow: 0 0 0 5px rgba(57,163,127,.12);
}

.premium-kicker.light {
  border-color: rgba(255,255,255,.17);
  color: #c5ded4;
  background: rgba(255,255,255,.07);
}

.premium-hero h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-family: "Playfair Display", serif;
  font-size: clamp(55px, 6.2vw, 92px);
  line-height: .95;
  letter-spacing: -.055em;
}

.premium-hero h1 em,
.premium-section h2 em {
  color: var(--green);
  font-style: normal;
}

.premium-hero-copy > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.premium-cta {
  padding: 15px 21px;
}

.premium-cta span {
  margin-left: 10px;
}

.premium-hero .hero-actions {
  display: grid;
  justify-items: start;
}

.hero-demo-actions {
  display: flex;
  gap: 10px;
}

.btn-glass {
  border: 1px solid #dce6e0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}

.expert-demo-btn {
  border-color: #cbded5;
  color: var(--green-dark);
  background: rgba(238, 247, 243, 0.82);
}

.play-dot {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-size: 9px;
}

.expert-play-dot {
  background: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.trust-row b {
  color: var(--green);
}

.product-stage {
  position: relative;
  z-index: 2;
  min-width: 0;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  inset: 16% 8% 5%;
  border-radius: 50%;
  background: rgba(38,114,93,.19);
  filter: blur(80px);
}

.product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  background: white;
  box-shadow: 0 45px 100px rgba(23,54,47,.18), 0 8px 28px rgba(23,54,47,.08);
  transform: rotateY(-5deg) rotateX(2deg);
}

.window-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #edf1ee;
  padding: 11px 14px;
  color: #71847d;
  background: #fbfcfb;
  font-size: 9px;
  font-weight: 700;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e2dd;
}

.live-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 7px;
  color: #28755e;
  background: #e4f3ec;
}

.window-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 470px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 14px 9px;
  color: #a8c0b6;
  background: #173f35;
}

.mock-sidebar i,
.mock-logo {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  font-style: normal;
  font-size: 11px;
}

.mock-logo,
.mock-sidebar i.active {
  color: white;
  background: rgba(255,255,255,.14);
}

.mock-main {
  padding: 22px;
  background: #f7f9f7;
}

.mock-head,
.mock-title,
.mock-patient {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-head small {
  color: #8ca098;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.mock-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.mock-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 18px;
}

.mock-stats div,
.mock-list,
.mock-ai {
  border: 1px solid #e8edea;
  border-radius: 12px;
  background: white;
}

.mock-stats div {
  padding: 11px;
}

.mock-stats small,
.mock-stats b,
.mock-stats em {
  display: block;
}

.mock-stats small {
  color: #8b9c95;
  font-size: 7px;
}

.mock-stats b {
  margin: 5px 0;
  color: #17362f;
  font-size: 18px;
}

.mock-stats em {
  color: #36876b;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.mock-stats em.warm {
  color: var(--orange);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 9px;
  margin-top: 9px;
}

.mock-list,
.mock-ai {
  padding: 12px;
}

.mock-title {
  margin-bottom: 8px;
  font-size: 9px;
}

.mock-title span {
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}

.mock-patient {
  gap: 7px;
  border-top: 1px solid #edf1ee;
  padding: 9px 0;
  font-size: 8px;
}

.mock-person {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #4c8d79;
  font-size: 7px;
  font-weight: 800;
}

.mock-patient div:nth-child(2) {
  flex: 1;
}

.mock-patient b,
.mock-patient small {
  display: block;
}

.mock-patient small {
  margin-top: 2px;
  color: #95a49e;
  font-size: 6px;
}

.mini-progress {
  width: 42px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.mock-ai {
  color: white;
  background: linear-gradient(150deg,#174f40,#236d59);
}

.mock-ai span {
  color: #a9d5c5;
  font-size: 6px;
  font-weight: 800;
}

.mock-ai h4 {
  margin: 12px 0 8px;
  font-size: 13px;
  line-height: 1.2;
}

.mock-ai p {
  color: #bed8ce;
  font-size: 8px;
  line-height: 1.5;
}

.mock-ai-action {
  margin-top: 30px;
  border-radius: 8px;
  padding: 8px;
  color: var(--green-dark);
  background: white;
  font-size: 7px;
  font-weight: 800;
}

.tracker-mock {
  background:
    radial-gradient(circle at 85% 5%, rgba(68, 171, 135, .12), transparent 28%),
    #f7f9f7;
}

.tracker-summary {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 9px;
  margin-top: 18px;
}

.tracker-score,
.tracker-water,
.tracker-meals,
.tracker-assistant {
  border: 1px solid #e8edea;
  border-radius: 14px;
  background: white;
}

.tracker-score {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.tracker-ring {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-content: center;
  border: 6px solid #dceee6;
  border-top-color: #2c8a6c;
  border-right-color: #2c8a6c;
  border-radius: 50%;
  text-align: center;
}

.tracker-ring b,
.tracker-ring small,
.tracker-score small,
.tracker-score strong,
.tracker-score p,
.tracker-water small,
.tracker-water strong {
  display: block;
}

.tracker-ring b {
  color: #174438;
  font-size: 17px;
  line-height: 1;
}

.tracker-ring small,
.tracker-score small,
.tracker-water small {
  color: #8b9c95;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .06em;
}

.tracker-score strong {
  margin-top: 5px;
  color: #17362f;
  font-size: 11px;
}

.tracker-score p {
  margin: 4px 0 0;
  color: #879991;
  font-size: 7px;
  line-height: 1.4;
}

.tracker-water {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 13px;
}

.tracker-water strong {
  margin-top: 5px;
  color: #17362f;
  font-size: 12px;
}

.water-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.water-dots i {
  height: 8px;
  border-radius: 999px;
  background: #e8efec;
}

.water-dots i.filled {
  background: linear-gradient(90deg, #59a88e, #267a60);
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 9px;
  margin-top: 9px;
}

.tracker-meals,
.tracker-assistant {
  padding: 12px;
}

.tracker-meal {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #edf1ee;
  padding: 9px 0;
}

.tracker-meal > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  color: #8da198;
  background: #eef3f0;
  font-size: 9px;
  font-weight: 800;
}

.tracker-meal.done > span {
  color: white;
  background: #3e9275;
}

.tracker-meal b,
.tracker-meal small {
  display: block;
}

.tracker-meal b {
  color: #24463d;
  font-size: 8px;
}

.tracker-meal small,
.tracker-meal em {
  margin-top: 2px;
  color: #94a49e;
  font-size: 6px;
  font-style: normal;
}

.tracker-assistant {
  color: white;
  background: linear-gradient(150deg, #174f40, #236d59);
}

.tracker-assistant > span {
  color: #a9d5c5;
  font-size: 6px;
  font-weight: 800;
}

.tracker-assistant h4 {
  margin: 13px 0 8px;
  font-size: 13px;
  line-height: 1.2;
}

.tracker-assistant p {
  color: #bed8ce;
  font-size: 8px;
  line-height: 1.5;
}

.tracker-assistant .mock-ai-action {
  margin-top: 22px;
}

.forum-shell {
  min-height: 100vh;
  color: var(--ink);
  background: #f3f7f4;
}

.forum-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 86, 70, .1);
  background: rgba(250, 252, 250, .92);
  backdrop-filter: blur(18px);
}

.forum-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.forum-access-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 32px 16px;
  place-items: center;
}

.forum-access-card {
  width: min(620px, 100%);
  border: 1px solid rgba(31,86,70,.12);
  border-radius: 30px;
  padding: clamp(28px,6vw,54px);
  background: white;
  box-shadow: 0 28px 70px rgba(13,72,58,.12);
  text-align: center;
}

.forum-access-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px,5vw,52px);
  line-height: 1.05;
}

.forum-access-card p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.forum-access-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 24px;
  color: white;
  background: var(--green);
  font-size: 28px;
}

.forum-access-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.forum-access-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  border: 1px solid #d9e8e0;
  border-radius: 20px;
  padding: 18px 20px;
  background: #f8fbf9;
}

.forum-access-notice .forum-access-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 15px;
  font-size: 18px;
}

.forum-access-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.forum-hero {
  display: grid;
  grid-template-columns: 1.5fr .55fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  padding: 44px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(235, 181, 99, .28), transparent 28%),
    linear-gradient(140deg, #073e33, #17604e);
  box-shadow: 0 24px 70px rgba(13, 72, 58, .2);
}

.forum-hero h1 {
  max-width: 720px;
  margin: 12px 0;
  color: white;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .98;
}

.forum-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.forum-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,.08);
}

.forum-hero-card strong {
  color: #f1c980;
  font-size: 28px;
}

.forum-hero-card span {
  align-self: center;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.community-note {
  margin: 16px 0;
  border: 1px solid #e8d8b9;
  border-radius: 14px;
  padding: 13px 16px;
  color: #745d31;
  background: #fff9ec;
  font-size: 12px;
  line-height: 1.5;
}

.forum-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 18px;
}

.forum-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.forum-categories button {
  flex: 0 0 auto;
  border: 1px solid #dce8e2;
  border-radius: 999px;
  padding: 9px 14px;
  color: #577168;
  background: white;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.forum-categories button.active {
  border-color: #1e755d;
  color: white;
  background: #1e755d;
}

.forum-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

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

.forum-feed-column {
  min-width: 0;
}

.forum-load-more {
  display: flex;
  min-height: 44px;
  margin: 18px auto 0;
}

.forum-post-card {
  overflow: hidden;
  border: 1px solid #e2ebe6;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 32px rgba(25, 73, 60, .06);
}

.forum-post-card.featured {
  border-color: rgba(211, 159, 80, .48);
  box-shadow: 0 14px 38px rgba(180, 126, 46, .12);
}

.forum-card-main {
  width: 100%;
  border: 0;
  padding: 22px;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.forum-card-meta,
.forum-author,
.forum-card-footer,
.forum-detail-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.forum-card-meta {
  flex-wrap: wrap;
}

.forum-category,
.editor-pick,
.weekly-topic-badge,
.popular-badge {
  border-radius: 999px;
  padding: 5px 9px;
  color: #246b57;
  background: #e6f3ed;
  font-size: 9px;
  font-weight: 800;
}

.forum-visibility-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
}

.forum-visibility-badge.is-public {
  border-color: #cfe4d9;
  color: #17644e;
  background: #eef8f2;
}

.forum-visibility-badge.is-members {
  border-color: #d8dfec;
  color: #405a79;
  background: #f1f4f9;
}

.forum-visibility-badge.is-private {
  border-color: #eadfca;
  color: #71562c;
  background: #fff8e9;
}

.forum-post-card.is-private-note,
.forum-article.is-private-note {
  border-color: #e4d9c5;
  background: #fffdf8;
}

.editor-pick {
  color: #7d5b22;
  background: #fff0ce;
}

.weekly-topic-badge {
  color: #725500;
  background: #fff3bf;
}

.popular-badge {
  color: #246b57;
  background: #e6f3ed;
}

.forum-card-main h3 {
  margin: 17px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.forum-card-main > p {
  min-height: 66px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.forum-author .avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
}

.forum-author strong,
.forum-author small {
  display: block;
}

.forum-author strong {
  font-size: 11px;
}

.forum-author small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.forum-card-footer {
  justify-content: space-between;
  border-top: 1px solid #edf2ef;
  padding: 11px 22px;
  color: #80938b;
  font-size: 10px;
}

.forum-card-stats {
  display: flex;
  gap: 14px;
  align-items: center;
}

.forum-options-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d9e5df;
  border-radius: 11px;
  padding: 7px 10px;
  color: #315e51;
  background: #f8fbf9;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.forum-options-button:hover {
  border-color: #8eb5a8;
  background: #eef6f2;
}

.forum-detail-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.forum-edited-label {
  display: block;
  margin-top: 2px;
  color: #6f8079;
  font-size: 9px;
  font-weight: 700;
}

.forum-sidebar {
  display: grid;
  gap: 14px;
}

.forum-sidebar .card {
  margin: 0;
}

.forum-sidebar p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.forum-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.forum-topic-list span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #41685c;
  background: #edf5f1;
  font-size: 9px;
}

.forum-detail {
  max-width: 860px;
  margin: 28px auto 0;
}

.forum-article {
  margin-top: 14px;
  border: 1px solid #e2ebe6;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 52px);
  background: white;
}

.forum-article h1 {
  margin: 20px 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

.forum-article-content {
  margin: 30px 0;
  color: #486158;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-line;
}

.forum-comments {
  margin-top: 16px;
}

.forum-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.forum-comment-form textarea {
  min-height: 82px;
}

.forum-comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.forum-comment-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  border-top: 1px solid #edf2ef;
  padding-top: 14px;
}

.forum-comment-list strong,
.forum-comment-list small {
  display: block;
}

.forum-comment-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.forum-comment-list p {
  margin: 8px 0 0;
  color: #536c63;
  font-size: 12px;
  line-height: 1.6;
}

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

.forum-post-form textarea {
  min-height: 180px;
}

.forum-visibility-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.forum-visibility-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.forum-visibility-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid #dfe9e4;
  border-radius: 17px;
  padding: 14px 34px 14px 14px;
  background: #fff;
  cursor: pointer;
}

.forum-visibility-choice:has(input:checked) {
  border-color: #16634e;
  box-shadow: 0 0 0 2px rgba(22,99,78,.1);
}

.forum-visibility-choice::after {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #16634e;
  content: "";
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease;
}

.forum-visibility-choice:has(input:checked)::after {
  content: "✓";
  opacity: 1;
  transform: scale(1);
}

.forum-visibility-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.forum-visibility-choice:focus-within {
  outline: 3px solid rgba(35,110,87,.18);
  outline-offset: 2px;
}

.forum-visibility-choice > span:last-child,
.forum-visibility-choice strong,
.forum-visibility-choice small,
.forum-visibility-choice em {
  display: block;
}

.forum-visibility-choice strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.forum-visibility-choice small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.forum-visibility-choice em {
  margin-top: 7px;
  color: #8a641d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.forum-visibility-choice.is-disabled {
  color: #71817b;
  background: #f4f6f5;
  cursor: not-allowed;
  opacity: .72;
}

.forum-visibility-choice-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #17644e;
  background: #eaf5ef;
}

.forum-visibility-choice-icon.is-members {
  color: #405a79;
  background: #edf1f7;
}

.forum-visibility-choice-icon.is-private {
  color: #71562c;
  background: #fbf1dd;
}

.forum-visibility-help {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.forum-private-message {
  border: 1px solid #eadfca;
  border-radius: 17px;
  padding: 16px;
  color: #604a27;
  background: #fff8e9;
}

.forum-private-message p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.forum-post-options,
.forum-delete-confirmation,
.forum-option-actions,
.forum-photo-editor {
  display: grid;
  gap: 12px;
}

.forum-option-summary {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe9e4;
  border-radius: 17px;
  padding: 16px;
  background: #f8fbf9;
}

.forum-option-summary .forum-visibility-badge {
  width: max-content;
}

.forum-option-summary strong {
  line-height: 1.4;
}

.forum-option-summary small {
  color: var(--muted);
}

.forum-option-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.forum-photo-editor {
  position: relative;
}

.forum-remove-photo {
  justify-self: end;
  border-color: #e4cbc8;
  color: #963f39;
}

.forum-public-history-warning {
  border: 1px solid #ead8b8;
  border-radius: 16px;
  padding: 14px 16px;
  color: #674c20;
  background: #fff8e8;
}

.forum-public-history-warning p,
.forum-delete-confirmation .safety-note p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.forum-delete-confirmation .consent-check {
  border-color: #e3c3c0;
  background: #fff8f7;
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 38px rgba(23,54,47,.14);
  backdrop-filter: blur(12px);
}

.floating-note b,
.floating-note small {
  display: block;
  white-space: nowrap;
}

.floating-note b {
  font-size: 9px;
}

.floating-note small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.note-one {
  top: -24px;
  right: 6%;
}

.note-two {
  bottom: 30px;
  left: -35px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px var(--red-soft);
}

.mini-ring {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 4px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: 1.8fr repeat(4,1fr);
  gap: 20px;
  align-items: center;
  max-width: 1320px;
  margin: -35px auto 0;
  border: 1px solid #e0e8e3;
  border-radius: 22px;
  padding: 22px 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 55px rgba(23,54,47,.08);
  backdrop-filter: blur(16px);
}

.proof-strip > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.proof-strip strong,
.proof-strip small {
  display: block;
}

.proof-strip strong {
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.proof-strip small {
  color: var(--muted);
  font-size: 9px;
}

.premium-section,
.security-section {
  max-width: 1320px;
  margin: auto;
  padding: 130px 5vw;
}

.landing-community {
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(215,168,95,.16), transparent 24%),
    linear-gradient(145deg, #062d27, #0c493d);
}

.landing-community-head {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 44px;
  padding: 0 5vw;
  color: white;
}

.landing-community-head > div:first-child {
  max-width: 760px;
}

.landing-community-head h2 {
  margin: 18px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px,5vw,68px);
  line-height: 1;
  letter-spacing: -.045em;
}

.landing-community-head h2 em {
  color: #e4b56e;
  font-style: normal;
}

.landing-community-head p,
.landing-community-note {
  color: #b8d0c7;
  line-height: 1.7;
}

.landing-community-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
}

.landing-community-actions .btn-ghost {
  border-color: rgba(255,255,255,.18);
  color: white;
}

.landing-community-private {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(230,196,140,.22);
  border-radius: 28px;
  padding: 30px 34px;
  color: white;
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 70px rgba(0,20,16,.18);
}

.landing-community-private h3 {
  margin: 8px 0 6px;
  font-family: "Playfair Display", serif;
  font-size: clamp(25px,3vw,36px);
}

.landing-community-private p {
  max-width: 720px;
  margin: 0;
  color: #b8d0c7;
  line-height: 1.65;
}

.landing-community-private .btn-ghost {
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  white-space: nowrap;
}

.landing-community-lock {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(230,196,140,.28);
  border-radius: 22px;
  color: #e4b56e;
  background: rgba(255,255,255,.08);
  font-size: 26px;
}

.landing-forum-window {
  overflow: hidden;
  padding: 10px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.landing-forum-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: forum-marquee 42s linear infinite;
}

.landing-forum-track-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  animation: none;
}

.landing-forum-track-static .landing-forum-card {
  width: 100%;
  min-height: 250px;
}

.landing-forum-window:hover .landing-forum-track,
.landing-forum-window:focus-within .landing-forum-track {
  animation-play-state: paused;
}

.landing-forum-card {
  width: min(390px, 82vw);
  min-height: 270px;
  border: 1px solid rgba(230,196,140,.18);
  border-radius: 25px;
  padding: 25px;
  color: #113d33;
  background: linear-gradient(145deg, #fffdf8, #edf4ef);
  box-shadow: 0 28px 70px rgba(0,20,16,.22);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

.landing-forum-card:hover {
  box-shadow: 0 35px 80px rgba(0,20,16,.3);
  transform: translateY(-6px);
}

.landing-forum-card h3 {
  margin: 25px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 27px;
  line-height: 1.08;
}

.landing-forum-card p {
  min-height: 66px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.landing-forum-card-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
  border-top: 1px solid rgba(20,74,61,.1);
  padding-top: 15px;
  color: #51736a;
  font-size: 10px;
  font-weight: 800;
}

.landing-community-note {
  max-width: 1320px;
  margin: 16px auto 0;
  padding: 0 5vw;
  font-size: 11px;
}

.landing-community-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 20px 22px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.landing-community-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #e4b56e;
  background: rgba(255,255,255,.08);
}

.landing-community-empty p {
  margin: 5px 0 0;
  color: #b8d0c7;
  font-size: 12px;
}

.landing-community-empty .btn-ghost {
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.forum-guest-callout {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border: 1px solid #d9e8e0;
  border-radius: 18px;
  padding: 18px;
  background: #f1f7f3;
}

.forum-guest-callout p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@keyframes forum-marquee {
  to { transform: translateX(calc(-50% - 8px)); }
}

.section-intro {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-intro h2,
.security-section h2,
.workflow-section h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px,5vw,68px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-intro p,
.security-section p,
.workflow-copy p,
.final-cta p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-bento {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.bento-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #e2e9e5;
  border-radius: 28px;
  padding: 28px;
  background: white;
  box-shadow: 0 18px 50px rgba(23,54,47,.06);
}

.bento-card > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.bento-card h3 {
  max-width: 500px;
  margin: 14px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 31px;
  line-height: 1.05;
}

.bento-card p {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.65;
}

.bento-large {
  grid-row: span 2;
  min-height: 596px;
  background: linear-gradient(150deg,#fff,#f1f7f3);
}

.bento-dark {
  color: white;
  background: linear-gradient(150deg,#123d32,#236c58);
}

.bento-dark > span,
.bento-dark p {
  color: #b7d5c9;
}

.bento-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.risk-stack {
  display: grid;
  gap: 10px;
  margin-top: 50px;
}

.risk-stack div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  border: 1px solid #e5ece8;
  border-radius: 15px;
  padding: 14px;
  background: white;
}

.risk-stack span {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
}

.risk-stack i {
  grid-column: 1/-1;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--orange),var(--red));
}

.macro-orbit {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  margin: 35px auto 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}

.macro-orbit::before {
  position: absolute;
  inset: 27px;
  border: 18px solid rgba(255,255,255,.08);
  border-top-color: #7ed4b2;
  border-right-color: #e8ad74;
  border-radius: 50%;
  content: "";
  transform: rotate(20deg);
}

.macro-orbit b {
  z-index: 1;
  font-size: 28px;
}

.macro-orbit small {
  display: block;
  color: #b8d7cb;
  font-size: 8px;
  text-align: center;
}

.macro-orbit span {
  position: absolute;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: white;
  font-size: 8px;
  font-weight: 800;
}

.macro-orbit span:nth-of-type(1) { top: 16px; right: -14px; }
.macro-orbit span:nth-of-type(2) { right: -25px; bottom: 32px; }
.macro-orbit span:nth-of-type(3) { bottom: -9px; left: 28px; }

.workflow-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: 110px max(5vw,calc((100vw - 1320px)/2));
  color: white;
  background: #123d32;
}

.workflow-copy p {
  color: #b8d0c7;
}

.btn-light {
  color: var(--green-dark);
  background: white;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 13px;
}

.workflow-steps div {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 25px;
  background: rgba(255,255,255,.05);
}

.workflow-steps span,
.workflow-steps b {
  display: block;
}

.workflow-steps span {
  color: #76c1a4;
  font-size: 10px;
  font-weight: 800;
}

.workflow-steps b {
  margin: 24px 0 7px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.workflow-steps p {
  margin: 0;
  color: #afc9bf;
  font-size: 12px;
  line-height: 1.5;
}

.security-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}

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

.security-grid div {
  border: 1px solid #e2e9e5;
  border-radius: 18px;
  padding: 22px;
  background: white;
}

.security-grid b,
.security-grid span {
  display: block;
}

.security-grid b {
  margin-bottom: 35px;
  color: var(--green);
  font-size: 10px;
}

.security-grid span {
  font-weight: 800;
}

.final-cta {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  max-width: 1320px;
  margin: 20px auto 80px;
  border-radius: 34px;
  padding: 58px;
  color: white;
  background: radial-gradient(circle at 85% 0,rgba(229,143,82,.35),transparent 34%),#173f35;
  box-shadow: 0 35px 80px rgba(23,54,47,.2);
}

.final-cta p {
  margin-bottom: 0;
  color: #bbd3c9;
}

.final-actions {
  display: flex;
  gap: 10px;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  background: transparent;
}

.premium-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dde6e1;
  padding: 30px 5vw 45px;
}

.premium-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.premium-footer div:last-child {
  display: flex;
  gap: 18px;
}

.premium-footer .footer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-footer button {
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 940px;
  margin: auto;
  border: 1px solid rgba(215, 168, 95, 0.35);
  border-radius: 20px;
  padding: 16px 18px;
  color: #f7f2e8;
  background: rgba(5, 48, 40, 0.96);
  box-shadow: 0 24px 70px rgba(3, 35, 29, 0.35);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  max-width: 650px;
  margin: 5px 0 3px;
  color: rgba(247, 242, 232, 0.75);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-banner .text-button {
  color: #edc27e;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-actions .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.call-list {
  display: grid;
  gap: 10px;
}

.call-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 12px;
  color: var(--ink);
  background: white;
}

.avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 700;
}

.avatar.orange {
  background: var(--orange);
}

.avatar.red {
  background: var(--red);
}

.call-item strong,
.patient-row strong {
  display: block;
}

.mini-label,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

.score-pill,
.status-pill {
  margin-left: auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.score-high,
.status-risk {
  color: #873f3a;
  background: var(--red-soft);
}

.score-mid,
.status-watch {
  color: #8b542d;
  background: var(--orange-soft);
}

.workspace {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
  background: #f4f7f4;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 26px 18px;
  color: white;
  background: var(--green-dark);
}

.sidebar .brand {
  padding: 0 8px;
}

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

.nav-button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  color: #c8ddd5;
  background: transparent;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  border-radius: 16px;
  padding: 16px;
  color: var(--green-dark);
  background: #d5e7df;
}

.sidebar-footer strong {
  display: block;
  margin-bottom: 4px;
}

.mobile-bottom-nav {
  display: none;
}

.main {
  padding: 24px 32px 48px;
  overflow: hidden;
}

.workspace-header {
  margin-bottom: 26px;
}

.workspace-header h2 {
  margin-bottom: 4px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.header-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.card {
  border: 1px solid #e7ece8;
  border-radius: var(--radius);
  padding: 20px;
  background: white;
  box-shadow: 0 8px 25px rgba(31, 71, 58, 0.04);
}

.stat-value {
  margin: 12px 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 700;
}

.trend {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 16px;
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h3 {
  margin: 0;
}

.patient-list {
  display: grid;
  gap: 9px;
}

.patient-row {
  display: grid;
  grid-template-columns: 1fr 95px 90px 30px;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 11px;
  background: #f8faf8;
  color: var(--ink);
  text-align: left;
}

.patient-row:hover {
  border-color: #c7ddd3;
  background: #f1f7f3;
}

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

.progress {
  overflow: hidden;
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: #e2e9e5;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress.risk span {
  background: var(--red);
}

.ai-card {
  color: white;
  background: var(--green-dark);
}

.ai-card .subtle {
  color: #c0d7ce;
}

.ai-card ul,
.risk-reasons {
  padding-left: 20px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
}

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

.profile-card .avatar {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  font-size: 19px;
}

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

.metric {
  border-radius: 15px;
  padding: 14px;
  background: #f6f8f6;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
}

.goal-evaluation-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.goal-ring {
  display: grid;
  width: 165px;
  height: 165px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--goal-progress), var(--green-soft) 0);
  box-shadow: inset 0 0 0 1px rgba(38, 114, 93, 0.08);
}

.goal-ring > div {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: white;
}

.goal-ring strong,
.goal-ring span {
  display: block;
}

.goal-ring strong {
  font-family: "Playfair Display", serif;
  font-size: 35px;
}

.goal-ring span {
  color: var(--muted);
  font-size: 12px;
}

.goal-summary h2 {
  margin: 5px 0 8px;
  font-family: "Playfair Display", serif;
}

.goal-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.weekly-goals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.week-goal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  background: #f8faf8;
  text-align: left;
}

.week-goal span,
.week-goal strong {
  display: block;
}

.week-goal span {
  margin-bottom: 5px;
  font-size: 11px;
}

.week-goal strong {
  color: var(--ink);
  font-size: 13px;
}

.week-goal.completed {
  border-color: #bcd8cc;
  background: var(--green-soft);
}

.week-goal.current {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.goal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.timeline-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
}

.timeline-item p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.action-stack {
  display: grid;
  gap: 10px;
}

.action-stack .btn {
  width: 100%;
  text-align: left;
}

.search-input {
  width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  background: #f8faf8;
}

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

.ai-plan-builder {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  border-radius: 26px;
  padding: 28px;
  color: white;
  background:
    radial-gradient(circle at 5% 100%, rgba(229, 143, 82, 0.35), transparent 35%),
    var(--green-dark);
  box-shadow: var(--shadow);
}

.ai-plan-builder h2 {
  max-width: 620px;
  margin: 5px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.08;
}

.ai-plan-builder p {
  max-width: 620px;
  margin-bottom: 0;
  color: #c9ddd5;
  line-height: 1.65;
}

.ai-plan-form {
  border-radius: 20px;
  padding: 20px;
  color: var(--ink);
  background: white;
}

.ai-plan-form select,
.ai-plan-form textarea,
.field-label select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: #f8faf8;
}

.ai-plan-form textarea {
  min-height: 80px;
  resize: vertical;
}

.ai-plan-form .btn {
  width: 100%;
  margin-top: 16px;
}

.plan-library-head {
  margin-top: 5px;
}

.plan-card {
  color: var(--ink);
  text-align: left;
}

.plan-card:hover {
  border-color: #b8d6c8;
  transform: translateY(-2px);
}

.plan-builder-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.plan-builder-shell,
.plan-meal-list {
  display: grid;
  gap: 14px;
}

.plan-builder-meta {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.7fr;
  gap: 12px;
  align-items: end;
}

.plan-builder-meta input,
.plan-builder-meta select,
.food-form-grid input,
.food-form-grid select {
  width: 100%;
  margin: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: white;
}

.macro-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.macro-summary div {
  border-radius: 13px;
  padding: 10px;
  background: var(--green-soft);
}

.macro-summary span,
.macro-summary strong {
  display: block;
}

.macro-summary span {
  color: var(--muted);
  font-size: 11px;
}

.plan-meal-card,
.add-food-panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  background: #fafcfb;
}

.plan-meal-head,
.plan-food-row,
.food-macros {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.plan-meal-head h3 {
  display: inline;
  margin-left: 10px;
}

.plan-food-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.plan-food-row > div:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.food-macros span {
  border-radius: 999px;
  padding: 5px 8px;
  background: white;
  font-size: 11px;
  font-weight: 700;
}

.food-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.food-alternative-field {
  grid-column: span 2;
}

.compliance-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.message-list {
  display: grid;
  gap: 5px;
}

.message-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 8px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.message-row:last-child {
  border-bottom: 0;
}

.message-row strong,
.message-row .subtle {
  display: block;
}

.message-meta {
  display: grid;
  gap: 7px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
}

.message-meta b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.ai-inbox {
  display: grid;
  gap: 13px;
}

.ai-message-item {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 17px;
  padding: 16px;
  background: #fbfcfb;
}

.ai-message-item.priority-medium {
  border-left-color: var(--orange);
}

.ai-message-item.priority-high {
  border-left-color: #dc7a3d;
  background: #fffbf6;
}

.ai-message-item.priority-urgent {
  border-left-color: var(--red);
  background: #fff8f7;
}

.ai-message-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
}

.ai-message-head strong,
.ai-message-head small {
  display: block;
}

.ai-message-head small {
  margin-top: 3px;
  color: var(--muted);
}

.priority-badge {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
}

.priority-high .priority-badge,
.priority-medium .priority-badge {
  color: #8b542d;
  background: var(--orange-soft);
}

.priority-urgent .priority-badge {
  color: #873f3a;
  background: var(--red-soft);
}

.patient-message,
.ai-reply-preview {
  border-radius: 12px;
  padding: 11px 13px;
}

.patient-message {
  background: white;
}

.ai-reply-preview {
  margin: 8px 0 12px;
  background: var(--green-soft);
}

.patient-message small,
.ai-reply-preview small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.patient-message p,
.ai-reply-preview p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.ai-conversation-card,
.conversation-result {
  margin-top: 14px;
}

.ai-model-policy-card {
  margin-top: 14px;
  border-color: #d4e4dc;
  background: linear-gradient(145deg, #ffffff, #f5faf7);
}

.ai-model-policy-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.ai-model-policy-head h3 {
  margin: 5px 0 4px;
}

.ai-model-policy-head p,
.ai-model-routing-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ai-tier-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: #0d5b49;
  background: #dcefe6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ai-model-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.ai-model-policy-row {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 96px;
  border: 1px solid #e2ebe6;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .78);
}

.ai-model-policy-row.current {
  border-color: #72ac96;
  box-shadow: 0 6px 18px rgba(38, 114, 93, .1);
  background: #eef8f3;
}

.ai-model-policy-row span {
  color: #236a57;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-model-policy-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.ai-model-policy-row strong {
  align-self: end;
  font-size: 12px;
  line-height: 1.35;
}

.ai-model-policy-row i {
  position: absolute;
  top: 9px;
  right: 9px;
  color: #28755f;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-model-routing-note {
  margin-top: 13px;
  border-radius: 12px;
  padding: 11px 12px;
  background: #edf3f0;
}

.ai-conversation-card {
  border-color: #bcd8cc;
  box-shadow: 0 14px 35px rgba(38, 114, 93, 0.1);
}

.ai-chat-history {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  margin-top: 15px;
  border-radius: 18px;
  padding: 16px;
  background: #f7faf8;
  scrollbar-color: #b9d4c9 transparent;
}

.chat-message-row {
  display: flex;
  width: 100%;
}

.chat-message-row.user {
  justify-content: flex-end;
}

.chat-message-row.assistant {
  justify-content: flex-start;
}

.conversation-bubble {
  width: fit-content;
  max-width: min(82%, 680px);
  margin: 0;
  border-radius: 15px;
  padding: 12px 14px;
  box-shadow: 0 5px 15px rgba(30, 79, 65, 0.08);
}

.conversation-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
}

.conversation-bubble-meta strong {
  color: var(--ink);
  font-size: 12px;
}

.conversation-bubble-meta time {
  font-size: 10px;
  white-space: nowrap;
}

.conversation-bubble-meta > span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.ai-model-chip {
  border-radius: 999px;
  padding: 3px 7px;
  color: #236a57;
  background: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.conversation-bubble p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.patient-bubble {
  border-bottom-right-radius: 5px;
  background: var(--orange-soft);
}

.assistant-bubble {
  border-bottom-left-radius: 5px;
  background: var(--green-soft);
}

.ai-conversation-followup,
.ai-history-action {
  margin-top: 12px;
}

.ai-history-action {
  display: flex;
  justify-content: flex-end;
}

.solution-options {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  border-radius: 15px;
  padding: 15px;
  background: #f8faf8;
}

.solution-options label {
  display: flex;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.solution-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.feedback-question {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.feedback-question .subtle {
  display: block;
  margin-top: 3px;
}

.feedback-actions {
  display: flex;
  gap: 8px;
}

.conversation-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-color: #bcd8cc;
  background: #f2f8f5;
}

.conversation-result.handoff {
  border-color: #ebc29f;
  background: #fff8f1;
}

.conversation-result h3,
.conversation-result p {
  margin-bottom: 0;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 280px;
  margin-top: 25px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.chart-bars div {
  display: grid;
  flex: 1;
  height: 100%;
  align-items: end;
  gap: 8px;
  text-align: center;
}

.chart-bars span {
  display: block;
  min-height: 10px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--green), #7ab19f);
}

.chart-bars small {
  color: var(--muted);
}

.field-label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field-label input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: #f8faf8;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.patient-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 24px 5vw 100px;
  background:
    radial-gradient(circle at 8% 5%, rgba(114, 191, 161, 0.28), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(239, 190, 145, 0.25), transparent 24%),
    linear-gradient(180deg, #e6f1ec 0, #f5f7f4 430px),
    #f5f7f4;
}

.patient-shell::before {
  position: absolute;
  top: 155px;
  right: -160px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(38, 114, 93, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(38, 114, 93, 0.025), 0 0 0 110px rgba(38, 114, 93, 0.02);
  content: "";
  pointer-events: none;
}

.patient-shell > .topbar {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(23, 54, 47, 0.06);
  backdrop-filter: blur(18px);
}

.patient-shell > .topbar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.onboarding-shell {
  min-height: 100vh;
  padding: 24px 5vw 60px;
  background:
    radial-gradient(circle at 85% 10%, rgba(229, 143, 82, 0.2), transparent 30%),
    linear-gradient(145deg, #e3f0ea, var(--cream));
}

.onboarding-card {
  width: min(760px, 100%);
  margin: 45px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.onboarding-card h1 {
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 28px 0;
}

.onboarding-steps div {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.onboarding-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e8edea;
  font-weight: 700;
}

.onboarding-steps div.active {
  color: var(--green-dark);
}

.onboarding-steps div.active span {
  color: white;
  background: var(--green);
}

.onboarding-fields {
  display: grid;
  gap: 14px;
}

.onboarding-fields textarea {
  min-height: 90px;
  resize: vertical;
}

.info-box,
.safety-note,
.goal-preview {
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  background: var(--green-soft);
  line-height: 1.5;
}

.info-box p,
.goal-preview p {
  margin: 5px 0 0;
}

.safety-note {
  color: #765038;
  background: var(--orange-soft);
  font-size: 13px;
}

.document-upload {
  display: grid;
  min-height: 175px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 2px dashed #b7d3c7;
  border-radius: 17px;
  color: var(--green-dark);
  background: #eef6f2;
  cursor: pointer;
  text-align: center;
}

.document-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.document-upload small {
  color: var(--muted);
}

.onboarding-actions {
  margin-top: 22px;
}

.goal-preview strong,
.goal-preview span {
  display: block;
}

.goal-preview strong {
  margin-top: 5px;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.independent-badge {
  color: var(--green-dark);
  background: var(--green-soft);
}

.independent-plan-card {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-color: rgba(188, 216, 204, 0.8);
  background: linear-gradient(145deg, #ffffff, #f0f7f3);
}

.independent-plan-card::after {
  position: absolute;
  right: -45px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(38, 114, 93, 0.055);
  content: "";
  pointer-events: none;
}

.independent-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.independent-plan-grid div {
  border-radius: 13px;
  padding: 12px;
  background: #f6f8f6;
}

.independent-plan-grid span,
.independent-plan-grid strong {
  display: block;
}

.independent-plan-grid strong {
  margin-top: 5px;
  font-size: 13px;
}

.patient-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 28px auto 0;
}

.patient-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 32px;
  padding: 42px 44px;
  color: white;
  background:
    radial-gradient(circle at 82% 15%, rgba(229, 143, 82, 0.38), transparent 31%),
    linear-gradient(135deg, #123d32, #26725d);
  box-shadow: 0 30px 65px rgba(23, 79, 64, 0.2);
}

.patient-hero::after {
  position: absolute;
  right: 18%;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.018);
  content: "";
}

.patient-hero-copy {
  position: relative;
  z-index: 1;
}

.patient-hero .eyebrow {
  margin-bottom: 14px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #d1e7de;
  background: rgba(255, 255, 255, 0.08);
}

.patient-hero h1 {
  max-width: 660px;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.patient-hero .hero-copy {
  margin-bottom: 0;
  color: #c4dbd2;
  font-size: 14px;
}

.patient-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.patient-hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 7px 10px;
  color: #c9ded6;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 700;
}

.patient-hero-meta b {
  color: white;
}

.daily-score {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 185px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 20px 24px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.score-ring {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#f0b27a 0 82%, rgba(255, 255, 255, 0.12) 82%);
}

.score-ring::before {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #205f4e;
  content: "";
}

.daily-score strong {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.daily-score > span {
  font-size: 12px;
  font-weight: 800;
}

.daily-score small {
  margin-top: 3px;
  color: #bfd9cf;
  font-size: 9px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-action {
  position: relative;
  overflow: hidden;
  min-height: 135px;
  border: 1px solid rgba(226, 232, 227, 0.85);
  border-radius: 20px;
  padding: 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 32px rgba(23, 54, 47, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
  border-color: var(--green);
  box-shadow: 0 18px 38px rgba(23, 54, 47, 0.11);
  transform: translateY(-4px);
}

.quick-action::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green-soft);
  content: "";
  opacity: 0.45;
}

.quick-action:nth-child(3) .quick-icon,
.quick-action:nth-child(3)::after {
  background: #dcecf3;
}

.quick-action:nth-child(4) .quick-icon,
.quick-action:nth-child(4)::after {
  background: var(--orange-soft);
}

.quick-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
}

.quick-action strong,
.quick-action .subtle {
  position: relative;
  z-index: 1;
  display: block;
}

.quick-action .subtle {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.patient-insight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #e7d1ba;
  border-radius: 24px;
  padding: 20px 22px;
  background: linear-gradient(130deg, #fff9f2, #f9eee2);
  box-shadow: 0 14px 34px rgba(117, 77, 44, 0.07);
}

.insight-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, #e5a166, #cf7d43);
  box-shadow: 0 10px 22px rgba(207, 125, 67, 0.2);
}

.patient-insight .eyebrow {
  margin-bottom: 5px;
  border: 0;
  padding: 0;
  color: #a56332;
  background: transparent;
  font-size: 9px;
}

.patient-insight h3 {
  margin-bottom: 4px;
}

.patient-insight p {
  max-width: 700px;
  margin-bottom: 0;
  color: #7d6958;
  font-size: 12px;
  line-height: 1.55;
}

.patient-insight .btn {
  white-space: nowrap;
}

.patient-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

.patient-content > .card,
.patient-grid .card {
  border-color: rgba(226, 232, 227, 0.85);
  box-shadow: 0 14px 38px rgba(23, 54, 47, 0.055);
}

.meal {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meal:last-child {
  border-bottom: 0;
}

.meal-time {
  min-width: 55px;
  color: var(--green);
  font-weight: 700;
}

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

.meal-entry-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fafcfb;
}

.meal-entry-card > div:last-child {
  padding: 13px;
}

.meal-entry-card h3 {
  margin: 3px 0 5px;
}

.meal-entry-card p {
  margin-bottom: 0;
}

.meal-photo {
  display: grid;
  height: 145px;
  place-items: center;
  background: var(--green-soft);
  background-position: center;
  background-size: cover;
  font-size: 42px;
}

.meal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  background: rgba(14, 43, 35, 0.55);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border-radius: 25px;
  padding: 25px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-wide {
  width: min(760px, 100%);
}

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

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

.auth-form .consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #cfe0d8;
  border-radius: 13px;
  padding: 11px 12px;
  color: var(--green-dark);
  background: #f6faf8;
  font-size: 12px;
  line-height: 1.45;
}

.auth-form .consent-check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
}

.auth-form .consent-check .text-button {
  padding: 0;
  font-size: inherit;
}

.auth-role-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.registration-consents,
.registration-consent-section,
.canonical-consent-panel {
  display: grid;
  gap: 9px;
}

.registration-consent-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.canonical-consent-scroll {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #c9dcd3;
  border-radius: 14px;
  padding: 14px;
  background: white;
  line-height: 1.55;
  overscroll-behavior: contain;
}

.canonical-consent-scroll:focus-visible {
  outline: 3px solid rgba(18, 91, 73, 0.28);
  outline-offset: 2px;
}

.canonical-consent-scroll h4 {
  margin: 10px 0 6px;
}

.canonical-consent-scroll p {
  margin: 7px 0;
}

.consent-read-status,
.document-hash {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

[data-requires-consent-read]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.required-health {
  border-left: 3px solid var(--orange);
  padding-left: 10px;
}

.allergy-picker {
  display: grid;
  gap: 8px;
  margin: 5px 0 3px;
}

.allergy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.allergy-chip {
  border: 1px solid #cddbd4;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.allergy-chip:hover,
.allergy-chip.selected {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.consent-box {
  display: flex;
  gap: 11px;
  align-items: start;
  border: 1px solid #bcd8cc;
  border-radius: 15px;
  padding: 14px;
  background: #f2f8f5;
  cursor: pointer;
}

.consent-box input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
}

.consent-box strong,
.consent-box small {
  display: block;
}

.consent-box small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.consent-flow {
  display: grid;
  gap: 9px;
}

.unified-consent {
  align-items: center;
  padding: 12px 14px;
}

.unified-consent small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.unified-consent .text-button {
  padding: 0;
}

.consent-flow-head,
.consent-flow-head div,
.consent-flow-head small,
.consent-record span,
.consent-record small {
  display: block;
}

.consent-flow-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-top: 6px;
}

.consent-flow-head small,
.consent-record small {
  margin-top: 4px;
  color: var(--muted);
}

.confirmation-consent {
  border-color: #e3d7b7;
  background: #fffaf0;
}

.document-version,
.required-label,
.optional-label,
.consent-active,
.consent-revoked {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.document-version,
.optional-label {
  color: var(--green-dark);
  background: var(--green-soft);
}

.required-label,
.consent-revoked {
  color: #8a3834;
  background: var(--red-soft);
}

.consent-active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
}

.danger-text {
  color: var(--red);
}

.consent-center-card {
  margin-bottom: 14px;
}

.consent-center-list,
.consent-registry {
  display: grid;
  gap: 10px;
}

.consent-center-item,
.consent-record {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: white;
}

.consent-center-item p {
  max-width: 520px;
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.consent-center-item > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.consent-hash-details {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.consent-hash-details code {
  color: var(--green-dark);
  font-size: 10px;
  user-select: all;
}

.hash-copy-button {
  font-size: 11px;
}

.consent-history {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: white;
}

.consent-history summary {
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 800;
}

.consent-history > div {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.consent-history-record {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.consent-history-record > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.consent-history-record p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.legal-document {
  max-height: 65vh;
  overflow: auto;
  line-height: 1.65;
}

.legal-document h4 {
  margin-bottom: 4px;
}

.empty-consent {
  border: 1px dashed var(--line);
  border-radius: 15px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.modal textarea,
.modal input,
.modal select {
  width: 100%;
  margin: 10px 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: white;
}

@media (max-width: 680px) {
  .plan-builder-meta,
  .food-form-grid,
  .macro-summary,
  .compliance-layout {
    grid-template-columns: 1fr;
  }

  .plan-food-row,
  .food-macros {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .food-alternative-field {
    grid-column: auto;
  }

  .consent-flow-head,
  .consent-center-item,
  .consent-record {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-center-item > div:last-child {
    justify-items: start;
  }
}

.photo-upload {
  display: grid;
  min-height: 210px;
  margin: 12px 0;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border: 2px dashed #b7d3c7;
  border-radius: 17px;
  color: var(--green-dark);
  background: #eef6f2;
  cursor: pointer;
  text-align: center;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-upload img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-upload-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 28px;
}

.photo-upload small {
  color: var(--muted);
}

.registration-options {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.registration-option {
  display: grid;
  grid-template-columns: auto 42px 1fr;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: white;
  cursor: pointer;
}

.registration-option:hover {
  border-color: #a9cdbd;
  background: #f5faf7;
}

.registration-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.registration-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.registration-option .quick-icon {
  margin: 0;
}

.registration-option strong,
.registration-option small {
  display: block;
}

.registration-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.modal textarea {
  min-height: 110px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  z-index: 50;
  top: calc(84px + env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  bottom: auto;
  left: auto;
  max-width: min(420px, calc(100vw - 32px));
  border-radius: 14px;
  padding: 14px 18px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

@media (max-width: 1050px) {
  .premium-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-links {
    display: none;
  }

  .premium-hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .premium-hero-copy {
    max-width: 760px;
  }

  .product-stage {
    width: min(820px,100%);
    margin: 30px auto 0;
  }

  .proof-strip {
    grid-template-columns: repeat(4,1fr);
    margin: 0 4vw;
  }

  .proof-strip > span {
    grid-column: 1/-1;
  }

  .workflow-section,
  .security-section {
    grid-template-columns: 1fr;
  }

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

  .dashboard-grid,
  .detail-grid,
  .content-grid,
  .ai-plan-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    min-height: 100dvh;
  }

  button,
  .btn,
  .icon-button,
  .allergy-chip {
    min-height: 44px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .premium-nav {
    padding:
      max(16px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      16px
      max(14px, env(safe-area-inset-left));
  }

  .premium-nav .brand > span:nth-child(2) {
    display: none;
  }

  .premium-nav .btn {
    padding: 10px 12px;
    font-size: 10px;
  }

  .premium-nav .landing-login-btn {
    display: none;
  }

  .premium-nav .desktop-label {
    display: none;
  }

  .premium-nav .mobile-label {
    display: inline;
  }

  .premium-nav .professional-join-btn {
    display: inline-flex;
  }

  .premium-hero {
    min-height: auto;
    padding: 50px 16px 75px;
  }

  .premium-hero h1 {
    font-size: clamp(48px,15vw,66px);
  }

  .premium-hero-copy > p {
    font-size: 15px;
  }

  .premium-hero .hero-actions,
  .final-actions {
    display: grid;
  }

  .premium-hero .hero-actions > .btn,
  .final-actions .btn {
    width: 100%;
  }

  .hero-demo-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    width: 100%;
  }

  .hero-demo-actions .btn {
    min-width: 0;
    padding: 10px 11px;
    font-size: 10px;
  }

  .trust-row {
    display: grid;
    gap: 8px;
  }

  .product-window {
    transform: none;
  }

  .window-body {
    grid-template-columns: 38px 1fr;
    min-height: 350px;
  }

  .mock-main {
    padding: 12px;
  }

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

  .mock-stats div:last-child,
  .mock-ai,
  .tracker-assistant,
  .floating-note {
    display: none;
  }

  .mock-grid,
  .tracker-summary,
  .tracker-grid {
    grid-template-columns: 1fr;
  }

  .tracker-water {
    display: none;
  }

  .tracker-score {
    padding: 10px;
  }

  .tracker-ring {
    width: 52px;
    height: 52px;
  }

  .forum-content {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .forum-topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .forum-topbar .beta-badge,
  .forum-topbar .btn-ghost {
    display: none;
  }

  .forum-topbar .brand {
    gap: 0;
    font-size: 0;
  }

  .forum-topbar .brand-mark {
    font-size: 16px;
  }

  .forum-topbar .desktop-label {
    display: none;
  }

  .forum-topbar .mobile-label {
    display: inline;
  }

  .forum-topbar [data-action="forum-back"] {
    display: inline-flex;
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .forum-topbar .top-actions {
    gap: 6px;
  }

  .forum-topbar .btn-primary {
    padding-inline: 13px;
  }

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

  .forum-access-notice {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .forum-access-notice .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .forum-hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 26px 20px;
  }

  .forum-hero h1 {
    font-size: 38px;
  }

  .forum-layout,
  .forum-feed {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    display: none;
  }

  .forum-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .forum-detail-head,
  .forum-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .forum-options-button {
    width: 100%;
    justify-content: center;
  }

  .forum-card-stats {
    justify-content: space-between;
  }

  .forum-option-actions {
    grid-template-columns: 1fr;
  }

  .forum-option-actions .btn,
  .forum-remove-photo {
    width: 100%;
  }

  .forum-detail-actions .btn {
    width: 100%;
  }

  .forum-visibility-picker {
    grid-template-columns: 1fr;
  }

  .forum-visibility-picker legend,
  .forum-visibility-help {
    grid-column: auto;
  }

  .proof-strip {
    grid-template-columns: repeat(2,1fr);
    margin: -25px 12px 0;
    padding: 18px;
  }

  .premium-section,
  .security-section {
    padding: 85px 16px;
  }

  .landing-community {
    padding: 80px 0;
  }

  .landing-community-head {
    display: grid;
    margin-bottom: 28px;
    padding: 0 16px;
  }

  .landing-community-actions {
    width: 100%;
  }

  .landing-community-actions .btn {
    width: 100%;
  }

  .landing-community-private {
    grid-template-columns: 1fr;
    margin: 0 16px;
    padding: 24px;
  }

  .landing-community-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .landing-community-empty .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-community-private .btn {
    width: 100%;
  }

  .landing-forum-window {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .landing-forum-card {
    width: min(330px, 82vw);
    min-height: 290px;
    padding: 21px;
  }

  .landing-forum-track-static {
    grid-template-columns: 1fr;
  }

  .landing-forum-track-static .landing-forum-card {
    width: 100%;
    min-height: 0;
  }

  .landing-forum-card-footer,
  .forum-guest-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-community-note {
    padding: 0 16px;
  }

  .feature-bento,
  .workflow-steps,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-row: auto;
    min-height: auto;
  }

  .workflow-section {
    gap: 45px;
    padding: 80px 16px;
  }

  .final-cta {
    display: grid;
    margin: 0 12px 50px;
    padding: 32px 24px;
  }

  .premium-footer {
    display: grid;
    gap: 18px;
    padding: 26px 16px 40px;
  }

  .premium-footer .footer-actions {
    justify-content: flex-start;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero-card {
    transform: none;
  }

  .top-actions .btn-ghost {
    display: none;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding:
      18px
      max(14px, env(safe-area-inset-right))
      calc(112px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .workspace-header {
    display: grid;
    gap: 12px;
    align-items: start;
  }

  .header-tools {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header-tools .btn {
    display: inline-flex;
    flex: 1 1 auto;
    justify-content: center;
  }

  .header-tools .avatar {
    margin-left: auto;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .patient-row {
    grid-template-columns: 1fr 70px 24px;
  }

  .patient-row > :nth-child(3) {
    display: none;
  }

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

  .goal-evaluation-grid {
    grid-template-columns: 1fr;
  }

  .goal-ring {
    margin: auto;
  }

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

  .patient-shell {
    min-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      calc(112px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .patient-shell > .topbar {
    border-radius: 16px;
    padding: 8px 9px 8px 12px;
  }

  .onboarding-shell {
    min-height: 100dvh;
    padding:
      max(14px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(30px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .onboarding-card {
    margin-top: 22px;
    border-radius: 22px;
    padding: 20px;
  }

  .onboarding-steps small {
    display: none;
  }

  .independent-plan-grid {
    grid-template-columns: 1fr;
  }

  .patient-hero {
    display: block;
    border-radius: 24px;
    padding: 28px 22px;
  }

  .daily-score {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: center;
    justify-items: start;
    margin-top: 18px;
    padding: 12px;
  }

  .score-ring {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    margin: 0;
  }

  .score-ring::before {
    width: 48px;
    height: 48px;
  }

  .daily-score strong {
    font-size: 20px;
  }

  .daily-score small {
    margin-left: auto;
    text-align: right;
  }

  .patient-insight {
    grid-template-columns: auto 1fr;
    border-radius: 20px;
    padding: 17px;
  }

  .patient-insight .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .meal-gallery {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 25;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(23, 54, 47, 0.2);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav button {
    display: grid;
    gap: 3px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    min-height: 52px;
    padding: 7px 2px;
    color: var(--muted);
    background: transparent;
  }

  .mobile-bottom-nav button span {
    font-size: 18px;
  }

  .mobile-bottom-nav button small {
    max-width: 65px;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav button.active {
    color: var(--green-dark);
    background: var(--green-soft);
  }

  .patient-hero {
    margin-bottom: 14px;
  }

  .patient-hero h1 {
    font-size: 38px;
  }

  .quick-grid {
    gap: 9px;
  }

  .quick-action {
    min-height: 116px;
    padding: 13px;
  }

  .quick-icon {
    margin-bottom: 11px;
  }

  .goal-evaluation-card {
    margin-top: 14px !important;
  }

  .goal-evaluation-card .section-head {
    align-items: start;
    gap: 8px;
  }

  .patient-side-stack {
    display: grid;
    gap: 14px;
  }

  .patient-side-stack .ai-card {
    margin-top: 0 !important;
  }

  .conversation-bubble {
    max-width: 100%;
  }

  .feedback-question,
  .feedback-actions {
    display: grid;
    width: 100%;
  }

  .conversation-result {
    grid-template-columns: auto 1fr;
  }

  .conversation-result .btn {
    grid-column: 1 / -1;
  }

  .modal {
    width: 100%;
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top) - 12px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    padding: 19px;
    padding-bottom: max(19px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .modal-backdrop {
    align-items: end;
    padding:
      max(12px, env(safe-area-inset-top))
      0
      0;
  }

  .modal-backdrop::before {
    position: absolute;
    bottom: calc(min(88dvh, calc(100dvh - env(safe-area-inset-top) - 12px)) - 10px);
    z-index: 1;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: rgba(23, 54, 47, 0.2);
    content: "";
  }

  .modal-actions {
    position: sticky;
    bottom: calc(-1 * max(19px, env(safe-area-inset-bottom)));
    margin: 15px -19px -19px;
    padding: 12px 19px max(19px, env(safe-area-inset-bottom));
    background: var(--paper);
  }

  .modal-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .toast {
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    left: max(12px, env(safe-area-inset-left));
    max-width: none;
    text-align: center;
  }

  .registration-option {
    grid-template-columns: auto 1fr;
  }

  .registration-option .quick-icon {
    display: none;
  }
}

.forum-weekly-topic,
.forum-editor-picks-section,
.forum-featured-section,
.forum-new-section,
.forum-all-featured {
  margin-top: 30px;
}

.forum-weekly-topic {
  display: grid;
  gap: 12px;
}

.forum-weekly-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.forum-weekly-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.forum-weekly-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ead899;
  border-radius: 14px;
  color: #876609;
  background: #fff4c9;
}

.forum-weekly-card {
  display: grid;
  width: 100%;
  gap: 10px;
  border: 1px solid #e5d59b;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 30px);
  color: inherit;
  background: #fffdf4;
  box-shadow: 0 14px 34px rgba(121, 91, 13, .08);
  text-align: left;
  cursor: pointer;
}

.forum-weekly-card > strong {
  max-width: 880px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.forum-weekly-card > span:not(.forum-card-meta) {
  max-width: 900px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.forum-weekly-card > small {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: #71877f;
  font-size: 10px;
}

.forum-weekly-card > small b {
  color: var(--green);
}

.forum-editor-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.forum-editor-pick-card {
  overflow: hidden;
  border: 1px solid #d8e7df;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 28px rgba(25, 73, 60, .06);
}

.forum-editor-pick-card > button {
  display: flex;
  width: 100%;
  min-height: 190px;
  gap: 10px;
  flex-direction: column;
  border: 0;
  padding: 19px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.forum-editor-pick-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #7a5c08;
  font-size: 10px;
  font-weight: 900;
}

.forum-editor-pick-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.forum-editor-pick-card button > span:not(.forum-editor-pick-label) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.forum-editor-pick-card small {
  margin-top: auto;
  color: #71877f;
  font-size: 9px;
  line-height: 1.5;
}

.forum-section-heading {
  margin-bottom: 16px;
}

.forum-section-heading.is-inline {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.forum-section-heading h2 {
  margin: 5px 0 3px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
}

.forum-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.forum-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.forum-featured-card {
  overflow: hidden;
  border: 1px solid #d8e7df;
  border-radius: 22px;
  background: #f7fbf8;
  box-shadow: 0 12px 32px rgba(25, 73, 60, .07);
}

.forum-featured-card.is-primary {
  border-color: #b9d4c4;
  background: linear-gradient(145deg, #eaf6ee, #fffdf7);
  box-shadow: 0 16px 38px rgba(25, 98, 73, .13);
}

.forum-featured-card > button {
  display: flex;
  width: 100%;
  min-height: 220px;
  gap: 12px;
  align-items: flex-start;
  border: 0;
  padding: 20px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.forum-featured-rank {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.is-primary .forum-featured-rank {
  color: white;
  background: var(--green);
}

.forum-featured-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.forum-featured-copy > strong {
  font-size: 18px;
  line-height: 1.3;
}

.forum-featured-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.forum-featured-copy > small {
  margin-top: auto;
  color: #71877f;
  font-size: 9px;
  line-height: 1.5;
}

.forum-featured-arrow {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 900;
}

.forum-more-featured {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.forum-newest-label {
  color: var(--green-dark);
  font-size: 11px;
  white-space: nowrap;
}

.forum-read-more {
  display: inline-block;
  margin: -9px 0 15px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.forum-verified {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 3px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 9px;
  vertical-align: middle;
}

.forum-privacy-quarantine {
  display: grid;
  gap: 4px;
  margin: 0 22px 12px;
  border: 1px solid #d5e4d9;
  border-radius: 13px;
  padding: 11px 12px;
  color: #365e51;
  background: #eef7f1;
}

.forum-article .forum-privacy-quarantine {
  margin: 18px 0 0;
}

.forum-privacy-quarantine strong {
  font-size: 11px;
}

.forum-privacy-quarantine span {
  color: #61766e;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .forum-editor-picks-grid,
  .forum-featured-grid {
    grid-template-columns: 1fr;
  }

  .forum-editor-pick-card > button {
    min-height: 150px;
  }

  .forum-featured-card > button {
    min-height: 126px;
  }

  .forum-featured-card.is-primary > button {
    min-height: 175px;
  }

  .forum-section-heading.is-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-nav .professional-join-btn {
    display: inline-flex;
  }
}

.admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
  color: #102f28;
  background:
    radial-gradient(circle at 90% 0, rgba(215, 168, 95, 0.13), transparent 28%),
    #eef1ec;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px 18px;
  color: #f7f2e9;
  background:
    radial-gradient(circle at 20% 100%, rgba(215, 168, 95, 0.18), transparent 32%),
    linear-gradient(180deg, #061e1a, #0a372f);
}

.admin-brand,
.admin-owner {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 8px;
}

.admin-brand span:last-child,
.admin-owner span:last-child {
  display: grid;
  gap: 3px;
}

.admin-brand small,
.admin-owner small {
  color: #a9c7bd;
  font-size: 11px;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-nav button {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 12px;
  color: #bfd5ce;
  background: transparent;
  text-align: left;
}

.admin-nav button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-nav button:hover,
.admin-nav button.active {
  border-color: rgba(229, 184, 114, 0.18);
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.admin-nav button.active span {
  color: #17382f;
  background: #e6b978;
}

.admin-owner {
  margin-top: auto;
  border: 1px solid rgba(229, 184, 114, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-main {
  min-width: 0;
  padding: 28px 32px 55px;
}

.admin-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 7px 0 4px;
  font-family: "Playfair Display", serif;
  font-size: clamp(31px, 4vw, 46px);
}

.admin-header p,
.admin-panel-head p,
.admin-copy {
  margin: 0;
  color: #6c7e78;
  font-size: 13px;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-stat-grid article {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  border: 1px solid rgba(15, 71, 58, 0.08);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(11, 56, 46, 0.055);
}

.admin-stat-grid article::after {
  position: absolute;
  right: -28px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(35, 123, 96, 0.07);
  border-radius: 50%;
  content: "";
}

.admin-stat-grid article.attention::after {
  border-color: rgba(176, 83, 65, 0.09);
}

.admin-stat-grid span,
.admin-panel-head > div > span {
  color: #6d817a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  display: block;
  margin: 14px 0 5px;
  font-family: "Playfair Display", serif;
  font-size: 38px;
}

.admin-stat-grid small {
  color: #668078;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  border: 1px solid rgba(15, 71, 58, 0.08);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 20px 55px rgba(11, 56, 46, 0.06);
}

.admin-panel-wide {
  min-width: 0;
}

.admin-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.admin-panel-head h3 {
  margin: 5px 0;
  font-size: 19px;
}

.admin-panel-head button {
  border: 0;
  color: #176d58;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-badge-green {
  color: #17654f;
  background: #e1f1e9;
}

.admin-badge-gold {
  color: #805423;
  background: #f6e8d2;
}

.admin-badge-red {
  color: #8b4038;
  background: #f4dfdc;
}

.admin-badge-neutral {
  color: #586d66;
  background: #edf0ed;
}

.admin-readiness,
.admin-system-list {
  display: grid;
  gap: 3px;
}

.admin-readiness > div,
.admin-system-list > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 10px 11px;
  background: #f4f5f1;
  font-size: 12px;
}

.admin-system-list > div strong {
  text-align: right;
}

.admin-capacity strong {
  display: block;
  margin: 10px 0;
  font-family: "Playfair Display", serif;
  font-size: 46px;
}

.admin-capacity strong small {
  color: #769087;
  font-size: 20px;
}

.admin-capacity > span {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7ece8;
}

.admin-capacity > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #176c57, #d5a45e);
}

.admin-capacity p {
  margin-bottom: 0;
  color: #6c7e78;
  font-size: 12px;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e7ebe7;
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  padding: 10px 12px;
  color: #687d75;
  background: #f2f4f1;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  min-width: 115px;
  border-top: 1px solid #edf0ed;
  padding: 11px 12px;
  vertical-align: middle;
}

.admin-table td:first-child {
  min-width: 190px;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 3px;
  color: #7a8b85;
  font-size: 10px;
}

.admin-table code {
  color: #4f665e;
  font-size: 10px;
}

.admin-empty,
.admin-loading,
.admin-error {
  border: 1px dashed #cad5d0;
  border-radius: 15px;
  padding: 28px;
  color: #6c7e78;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.admin-loading {
  display: grid;
  gap: 12px;
  min-height: 220px;
  place-content: center;
}

.admin-loading span {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 3px solid #d7e1dc;
  border-top-color: #176c57;
  border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}

.admin-error {
  margin-bottom: 16px;
  border-color: #e8c4be;
  color: #8b4038;
  background: #fff2ef;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-access {
  display: grid;
  min-height: 100vh;
  padding: 22px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 168, 95, 0.2), transparent 25%),
    linear-gradient(145deg, #061e1a, #0b493c);
}

.admin-access-card {
  display: grid;
  width: min(100%, 470px);
  gap: 12px;
  border: 1px solid rgba(229, 184, 114, 0.23);
  border-radius: 28px;
  padding: 38px;
  background: #fffdf8;
  box-shadow: 0 38px 100px rgba(1, 20, 16, 0.38);
  text-align: center;
}

.admin-access-card h1 {
  margin: 3px 0;
  font-family: "Playfair Display", serif;
  font-size: 42px;
}

.admin-access-card p {
  margin: 0 0 12px;
  color: #6c7e78;
  line-height: 1.65;
}

.admin-lock {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 20px;
  color: #07352c;
  background: linear-gradient(145deg, #efd09f, #d39a50);
  font-size: 25px;
}

@media (max-width: 1100px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .forum-layout,
  .forum-feed {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    display: none;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-nav button {
    width: max-content;
    min-width: max-content;
  }

  .admin-owner {
    display: none;
  }

  .admin-main {
    padding: 20px 14px 42px;
  }

  .admin-header,
  .admin-header-actions {
    display: grid;
  }

  .admin-header-actions {
    grid-template-columns: 1fr 1fr auto;
    width: 100%;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid article {
    min-height: 125px;
  }

  .admin-header-actions {
    grid-template-columns: 1fr 1fr;
  }

  .admin-header-actions .icon-button {
    width: 100%;
  }

  .admin-access-card {
    padding: 28px 20px;
  }
}

@media (max-width: 390px) {
  .premium-hero h1 {
    font-size: clamp(43px, 14vw, 56px);
  }

  .hero-demo-actions {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 124px;
  }

  .patient-hero-meta {
    gap: 5px;
  }

  .patient-hero-meta span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .mobile-bottom-nav button small {
    font-size: 8px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .quick-action:hover {
    box-shadow: none;
    transform: none;
  }

  .btn:active,
  .quick-action:active,
  .mobile-bottom-nav button:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-forum-track {
    animation: none;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Aurora Atelier premium theme */
:root {
  --ink: #102e28;
  --muted: #657a72;
  --cream: #f2efe7;
  --paper: #fffdf8;
  --green: #16735e;
  --green-dark: #0a3b32;
  --green-soft: #dcece4;
  --orange: #d99b58;
  --orange-soft: #f7e9d8;
  --line: #dfe6e1;
  --shadow: 0 24px 70px rgba(11, 52, 43, 0.11);
  --radius: 24px;
  --gold: #d7a85f;
  --gold-soft: #f4e4c8;
  --obsidian: #062c26;
}

body {
  background: #f2efe7;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  opacity: 0.025;
  background-image: repeating-radial-gradient(circle at 18% 27%, #173f35 0 0.7px, transparent 0.8px 4px);
  content: "";
  pointer-events: none;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, #209376, #0a473b);
  box-shadow: 0 12px 30px rgba(6, 44, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-mark::after {
  position: absolute;
  top: -40%;
  left: -80%;
  width: 55%;
  height: 180%;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  transform: rotate(25deg);
  transition: left 0.55s ease;
}

.brand:hover .brand-mark::after {
  left: 140%;
}

.btn {
  border-radius: 15px;
  letter-spacing: -0.01em;
}

.btn-primary,
.premium-btn,
.premium-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #21816a, #0a493d);
  box-shadow: 0 14px 32px rgba(6, 54, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-landing {
  background:
    radial-gradient(circle at 7% 46%, rgba(215, 168, 95, 0.09), transparent 22%),
    #f2efe7;
}

.premium-nav {
  max-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px max(5vw, calc((100vw - 1320px) / 2));
  color: #f9f4e9;
  background: #062c26;
}

.premium-nav .brand {
  letter-spacing: -0.02em;
}

.premium-nav .landing-links a {
  color: #a9c1b8;
}

.premium-nav .landing-links a:hover {
  color: #f0c98d;
}

.premium-nav .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: #e7f0ec;
}

.premium-nav .beta-badge {
  border-color: rgba(231, 194, 132, 0.4);
  color: #f2d5a6;
  background: rgba(215, 168, 95, 0.12);
}

.premium-hero {
  max-width: none;
  min-height: 810px;
  padding: 90px max(5vw, calc((100vw - 1320px) / 2)) 145px;
  color: #f8f5ec;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 75% 35%, rgba(53, 148, 119, 0.26), transparent 29%),
    radial-gradient(circle at 12% 80%, rgba(215, 168, 95, 0.18), transparent 22%),
    linear-gradient(145deg, #062c26 0%, #0b3d34 48%, #082f29 100%);
  background-size: 64px 64px, auto, auto, auto;
}

.premium-hero::after {
  position: absolute;
  right: 4%;
  bottom: -320px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(215, 168, 95, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.012), 0 0 0 140px rgba(255, 255, 255, 0.008);
  content: "";
  pointer-events: none;
}

.premium-hero .premium-kicker {
  border-color: rgba(233, 202, 151, 0.25);
  color: #f0c98d;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-hero .premium-kicker i {
  background: #f0c98d;
  box-shadow: 0 0 0 5px rgba(240, 201, 141, 0.1), 0 0 24px rgba(240, 201, 141, 0.65);
}

.premium-hero h1 {
  max-width: 690px;
  color: #fffdf7;
  text-wrap: balance;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
}

.premium-hero h1 em,
.premium-section h2 em {
  color: #e6bb78;
}

.premium-hero-copy > p {
  color: #bcd0c8;
}

.premium-hero .premium-cta {
  color: #17352e;
  background: linear-gradient(135deg, #f2d29f, #d29a52);
  box-shadow: 0 18px 42px rgba(215, 168, 95, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.premium-hero .btn-glass {
  border-color: rgba(255, 255, 255, 0.14);
  color: #eaf2ee;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-hero .expert-demo-btn {
  color: #f3d6a6;
  background: rgba(215, 168, 95, 0.09);
}

.premium-hero .trust-row {
  color: #9db8ae;
}

.premium-hero .trust-row b {
  color: #e3bb7e;
}

.premium-hero .play-dot {
  background: linear-gradient(145deg, #e6b66d, #b97838);
  box-shadow: 0 5px 16px rgba(215, 168, 95, 0.28);
}

.premium-hero .expert-play-dot {
  background: #238269;
}

.stage-glow {
  background: rgba(67, 177, 140, 0.23);
  filter: blur(95px);
}

.product-window {
  border-color: rgba(236, 217, 184, 0.35);
  border-radius: 28px;
  box-shadow: 0 55px 130px rgba(0, 22, 18, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.window-top {
  border-bottom-color: #e6e0d5;
  color: #728078;
  background: #f5f0e6;
}

.floating-note {
  border-color: rgba(236, 217, 184, 0.46);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 22px 50px rgba(0, 25, 20, 0.28);
}

.proof-strip {
  position: relative;
  z-index: 5;
  margin-top: -44px;
  border-color: rgba(215, 168, 95, 0.28);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 30px 80px rgba(18, 52, 43, 0.13), inset 0 1px 0 white;
}

.proof-strip strong {
  color: #0b4639;
}

.premium-section {
  position: relative;
}

.premium-section::before {
  position: absolute;
  top: 85px;
  right: 6%;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.bento-card {
  border-color: rgba(25, 89, 72, 0.1);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 24px 70px rgba(12, 55, 45, 0.07), inset 0 1px 0 white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  box-shadow: 0 34px 80px rgba(12, 55, 45, 0.13);
  transform: translateY(-7px);
}

.bento-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(215, 168, 95, 0.16);
  border-radius: 50%;
  content: "";
}

.bento-large {
  background: linear-gradient(145deg, #fffdf8, #edf5f0);
}

.bento-dark {
  border-color: rgba(230, 187, 120, 0.18);
  background:
    radial-gradient(circle at 85% 10%, rgba(215, 168, 95, 0.25), transparent 25%),
    linear-gradient(150deg, #062f28, #0d5445);
}

.bento-icon {
  color: #7c5427;
  background: var(--gold-soft);
  box-shadow: inset 0 1px 0 white;
}

.workflow-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(215, 168, 95, 0.18), transparent 25%),
    linear-gradient(140deg, #052b25, #0d483d);
}

.workflow-section::after {
  position: absolute;
  right: -180px;
  bottom: -350px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(215, 168, 95, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.012), 0 0 0 140px rgba(255, 255, 255, 0.008);
  content: "";
}

.workflow-copy,
.workflow-steps {
  position: relative;
  z-index: 1;
}

.workflow-steps div {
  border-color: rgba(230, 196, 140, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.workflow-steps span {
  color: #e8bb78;
}

.security-grid div {
  border-color: rgba(25, 89, 72, 0.11);
  background: linear-gradient(145deg, #fffdf8, #f3f5ef);
  box-shadow: 0 18px 50px rgba(12, 55, 45, 0.055), inset 0 1px 0 white;
}

.security-grid b {
  color: #b67b38;
}

.final-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 187, 120, 0.18);
  background:
    radial-gradient(circle at 85% 5%, rgba(215, 168, 95, 0.32), transparent 28%),
    linear-gradient(135deg, #062c26, #0b4439);
  box-shadow: 0 45px 100px rgba(7, 46, 38, 0.24);
}

.final-cta::after {
  position: absolute;
  right: -85px;
  bottom: -210px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.018);
  content: "";
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.premium-footer {
  border-top-color: rgba(21, 73, 60, 0.1);
  background: #ebe8de;
}

.workspace {
  background:
    radial-gradient(circle at 85% 5%, rgba(215, 168, 95, 0.08), transparent 24%),
    #f1f0e9;
}

.sidebar {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(230, 187, 120, 0.15);
  background:
    radial-gradient(circle at 30% 95%, rgba(215, 168, 95, 0.16), transparent 28%),
    linear-gradient(180deg, #052c26, #093b32);
}

.sidebar::after {
  position: absolute;
  right: -105px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(215, 168, 95, 0.12);
  border-radius: 50%;
  content: "";
}

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

.nav-button {
  border: 1px solid transparent;
  border-radius: 14px;
}

.nav-button:hover,
.nav-button.active {
  border-color: rgba(230, 187, 120, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  border: 1px solid rgba(230, 187, 120, 0.2);
  color: #f4dfbd;
  background: rgba(215, 168, 95, 0.09);
}

.main {
  background: transparent;
}

.card {
  border-color: rgba(17, 77, 62, 0.09);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 16px 48px rgba(12, 55, 45, 0.055), inset 0 1px 0 white;
}

.stats-grid .card {
  position: relative;
  overflow: hidden;
}

.stats-grid .card::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(215, 168, 95, 0.7), transparent);
  content: "";
}

.stat-value {
  color: #0b4639;
}

.patient-row {
  border-color: rgba(17, 77, 62, 0.055);
  background: rgba(245, 247, 242, 0.78);
}

.patient-row:hover {
  border-color: rgba(215, 168, 95, 0.36);
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(12, 55, 45, 0.07);
  transform: translateX(3px);
}

.ai-card {
  border-color: rgba(230, 187, 120, 0.16);
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 168, 95, 0.25), transparent 28%),
    linear-gradient(145deg, #062f28, #0d5143);
}

.patient-shell {
  background:
    radial-gradient(circle at 7% 3%, rgba(54, 154, 122, 0.22), transparent 24%),
    radial-gradient(circle at 95% 8%, rgba(215, 168, 95, 0.2), transparent 21%),
    linear-gradient(180deg, #e7eee8 0, #f2efe7 520px),
    #f2efe7;
}

.patient-shell > .topbar {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 18px 50px rgba(12, 55, 45, 0.075), inset 0 1px 0 white;
}

.independent-badge {
  border: 1px solid rgba(215, 168, 95, 0.25);
  color: #78532a;
  background: var(--gold-soft);
}

.patient-hero {
  border: 1px solid rgba(230, 187, 120, 0.2);
  background:
    radial-gradient(circle at 86% 15%, rgba(215, 168, 95, 0.34), transparent 29%),
    radial-gradient(circle at 18% 110%, rgba(45, 150, 116, 0.25), transparent 40%),
    linear-gradient(135deg, #052e27, #0c5143);
  box-shadow: 0 36px 80px rgba(7, 54, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.patient-hero .eyebrow {
  border-color: rgba(230, 187, 120, 0.19);
  color: #efcc95;
}

.patient-hero-meta span {
  border-color: rgba(230, 187, 120, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.score-ring {
  background: conic-gradient(#e9bd7d 0 82%, rgba(255, 255, 255, 0.12) 82%);
  box-shadow: 0 0 38px rgba(215, 168, 95, 0.18);
}

.score-ring::before {
  background: #0c493d;
}

.quick-action {
  border-color: rgba(17, 77, 62, 0.08);
  border-radius: 23px;
  background: linear-gradient(145deg, #fffdf8, #f4f5ef);
  box-shadow: 0 18px 45px rgba(12, 55, 45, 0.07), inset 0 1px 0 white;
}

.quick-action:hover {
  border-color: rgba(215, 168, 95, 0.42);
  box-shadow: 0 28px 58px rgba(12, 55, 45, 0.13);
}

.quick-icon {
  border: 1px solid rgba(17, 77, 62, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.patient-insight {
  border-color: rgba(215, 168, 95, 0.3);
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 168, 95, 0.16), transparent 24%),
    linear-gradient(135deg, #fffaf1, #f6ead9);
  box-shadow: 0 20px 52px rgba(108, 73, 37, 0.09), inset 0 1px 0 white;
}

.insight-mark {
  background: linear-gradient(145deg, #edc382, #b97936);
  box-shadow: 0 14px 30px rgba(185, 121, 54, 0.24);
}

.independent-plan-card {
  border-color: rgba(215, 168, 95, 0.2);
  background: linear-gradient(145deg, #fffdf8, #eef4ef);
}

.independent-plan-grid div {
  border: 1px solid rgba(17, 77, 62, 0.06);
  background: rgba(255, 253, 248, 0.72);
}

.meal-entry-card {
  border-color: rgba(17, 77, 62, 0.09);
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(12, 55, 45, 0.055);
}

.mobile-bottom-nav {
  border-color: rgba(215, 168, 95, 0.25);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(7, 54, 44, 0.18), inset 0 1px 0 white;
}

.mobile-bottom-nav button.active {
  color: #725027;
  background: linear-gradient(145deg, #f6e7cf, #ecd2a7);
}

.modal {
  border: 1px solid rgba(215, 168, 95, 0.2);
  background: #fffdf8;
  box-shadow: 0 40px 110px rgba(3, 35, 29, 0.35), inset 0 1px 0 white;
}

.progress-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 190px);
  gap: 22px;
  align-items: center;
  margin: 18px 0;
  padding: 24px;
  border: 1px solid rgba(215, 168, 95, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 15%, rgba(102, 194, 152, 0.26), transparent 25%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(239, 247, 240, 0.95));
  box-shadow: 0 22px 55px rgba(12, 55, 45, 0.09), inset 0 1px 0 white;
}

.progress-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(21, 103, 81, 0.12);
  border-radius: 28px;
  color: #155b49;
  background: #eef5ef;
  font-size: 38px;
  font-weight: 700;
}

.assistant-trigger i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #47b889;
  box-shadow: 0 0 0 4px rgba(71, 184, 137, 0.15);
}

.habit-copy h3,
.habit-copy p {
  margin: 5px 0;
}

.habit-progress {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.habit-progress > span {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 77, 62, 0.1);
}

.habit-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #29866a, #e2ad62);
}

.habit-progress small,
.habit-score span,
.habit-score small {
  color: var(--muted);
}

.habit-score {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(21, 103, 81, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.habit-score strong {
  color: #0b513f;
  font-size: 34px;
}

.habit-score small {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.35;
}

.floating-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.assistant-trigger {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(230, 187, 120, 0.28);
  border-radius: 999px;
  color: #fff9ec;
  background: linear-gradient(145deg, #073d33, #116650);
  box-shadow: 0 18px 45px rgba(5, 51, 41, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.assistant-trigger span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 23px;
}

.assistant-trigger i {
  right: auto;
  bottom: 7px;
  left: 36px;
}

.assistant-popover {
  width: min(350px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(215, 168, 95, 0.27);
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 28px 80px rgba(3, 35, 29, 0.26), inset 0 1px 0 white;
  backdrop-filter: blur(18px);
}

.assistant-popover-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 13px;
}

.assistant-popover-head strong,
.assistant-popover-head small {
  display: block;
}

.assistant-popover-head small {
  margin-top: 2px;
  color: var(--muted);
}

.assistant-popover-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #0b513f;
  background: #edf3ed;
  font-size: 22px;
}

.assistant-brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #155b49;
  font-size: 18px;
  font-weight: 800;
}

.assistant-prompts {
  display: grid;
  gap: 7px;
}

.assistant-prompts button,
.assistant-custom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(17, 77, 62, 0.09);
  border-radius: 13px;
  color: #123f34;
  background: #f5f7f2;
  text-align: left;
}

.assistant-prompts button:hover,
.assistant-custom:hover {
  border-color: rgba(215, 168, 95, 0.42);
  background: #fff8eb;
}

.assistant-custom {
  justify-content: center;
  margin-top: 9px;
  color: #fff;
  background: #0d5a47;
}

.turkish-food-picker {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(17, 77, 62, 0.09);
  border-radius: 22px;
  background: linear-gradient(145deg, #f3f8f3, #fff9ee);
}

.turkish-food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 245px;
  margin: 13px 0;
  overflow-y: auto;
}

.turkish-food-grid button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(17, 77, 62, 0.08);
  border-radius: 14px;
  color: #123f34;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.turkish-food-grid button > span {
  grid-row: 1 / 3;
  font-size: 24px;
}

.turkish-food-grid button small {
  color: var(--muted);
}

.turkish-food-grid button.selected {
  border-color: rgba(215, 168, 95, 0.65);
  background: #fff4df;
  box-shadow: 0 10px 24px rgba(118, 81, 38, 0.1);
}

.selected-food-summary {
  padding: 13px;
  border: 1px solid rgba(215, 168, 95, 0.26);
  border-radius: 16px;
  background: #fffdf8;
}

.selected-food-summary > div:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}

.selected-food-summary > div:first-child small {
  margin-left: auto;
  color: var(--muted);
}

.food-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.food-macros b {
  padding: 8px;
  border-radius: 12px;
  background: #f1f5ef;
  text-align: center;
}

.food-macros small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.forum-card-image {
  display: block;
  width: calc(100% + 36px);
  height: 180px;
  margin: -18px -18px 16px;
  border-radius: 20px 20px 7px 7px;
  object-fit: cover;
}

.forum-tags,
.forum-tag-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.forum-tags {
  margin: 12px 0;
}

.forum-tags span,
.forum-tag-picker label span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #175c49;
  background: #e8f3eb;
  font-size: 11px;
}

.forum-tag-picker {
  display: grid;
  gap: 8px;
}

.forum-tag-picker label {
  cursor: pointer;
}

.forum-tag-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.forum-tag-picker input:checked + span {
  color: #fff;
  background: #0f6650;
}

.forum-detail-image {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 20px 0;
  border-radius: 24px;
  object-fit: cover;
}

.forum-photo-upload {
  min-height: 170px;
}

.meal-food-name {
  display: inline-block;
  margin: 6px 0;
  color: #155c48;
}

.meal-macro-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meal-macro-line span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #71502d;
  background: #f6ead9;
  font-size: 10px;
}

@media (max-width: 760px) {
  .ai-model-policy-head {
    align-items: center;
  }

  .ai-model-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-model-policy-row {
    min-height: 104px;
  }

  .premium-nav {
    background: #062c26;
  }

  .premium-hero {
    padding-top: 56px;
    background:
      radial-gradient(circle at 90% 15%, rgba(215, 168, 95, 0.18), transparent 22%),
      linear-gradient(155deg, #062c26, #0b4237);
  }

  .premium-hero h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .proof-strip {
    background: rgba(255, 253, 248, 0.96);
  }

  .bento-card:hover,
  .patient-row:hover {
    transform: none;
  }

  .patient-hero {
    border-radius: 27px;
  }

  .quick-action {
    border-radius: 21px;
  }

  .progress-summary-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border-radius: 23px;
  }

  .progress-mark {
    width: 64px;
    height: 64px;
    border-radius: 21px;
    font-size: 30px;
  }

  .habit-copy .eyebrow {
    font-size: 9px;
  }

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

  .habit-score {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
  }

  .habit-score strong {
    grid-row: 1 / 3;
  }

  .habit-score small {
    display: none;
  }

  .floating-assistant {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .assistant-trigger {
    min-height: 50px;
    padding-right: 12px;
  }

  .assistant-trigger b {
    display: none;
  }

  .assistant-popover {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }

  .turkish-food-picker {
    padding: 12px;
  }

  .turkish-food-picker .section-head {
    align-items: flex-start;
  }

  .turkish-food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .forum-card-image {
    height: 155px;
  }
}

@media (max-width: 760px) {
  .premium-nav .professional-join-btn {
    display: inline-flex;
  }
}

.health-consent-gate-shell {
  min-height: 100vh;
}

.health-consent-gate {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom));
}

.health-consent-gate > .card {
  width: min(100%, 620px);
  text-align: center;
  padding: clamp(24px, 5vw, 44px);
}

.health-consent-gate h1 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 5vw, 38px);
}

.health-consent-gate p {
  color: var(--muted);
  line-height: 1.65;
}

.health-consent-gate .modal-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}

.health-consent-gate-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--mint-soft, #e9f6ef);
  color: var(--green, #17634f);
  font-size: 30px;
}

.health-consent-verification-shield {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f7f4;
}

.health-consent-verification-shield > div {
  display: grid;
  width: min(100%, 420px);
  gap: 10px;
  justify-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.health-consent-verification-shield span {
  font-size: 30px;
  color: var(--green);
}

.health-consent-verification-shield small {
  color: var(--muted);
}
