body,
button,
input,
textarea,
select,
h1,
h2,
h3,
.greeting h1 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-kerning: normal;
  font-variant-ligatures: none;
}

h1,
.greeting h1 {
  letter-spacing: -0.012em !important;
}

h2,
h3 {
  letter-spacing: -0.008em !important;
}

.intro h1,
.brand h1 {
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Completion wings used beside each protocol's save confirmation. */
#checkin[data-completion-state="complete"] #saved:not(:empty)::after {
  content: "";
  display: inline-block;
  width: 58px;
  height: 34px;
  margin-left: 10px;
  vertical-align: middle;
  background: url("biblical-proportions-wings-vector.svg") center / contain no-repeat;
}

#checkin[data-completion-state="complete"] #saved:not(:empty) {
  font-size: 0;
}

/* Carnivore's Food Pyramid link is the consistent top-right wing utility. */
body:has(#checkin) .page { position: relative; }
body:has(#checkin) .food-guide {
  position: absolute;
  top: 30px;
  right: 22px;
  width: 74px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: url("biblical-proportions-wings-vector.svg") center / contain no-repeat;
  transition: transform .18s ease;
}
body:has(#checkin) .food-guide:hover { transform: scale(1.08); }
body:has(#checkin) .food-guide > * { display: none; }

/* Keep macro-completion wings attached to their labels. */
#checkin .gram-label {
  justify-content: flex-start;
  gap: 7px;
}
#checkin .gram-result {
  min-width: 0;
  min-height: 0;
  display: inline-grid;
  flex: 0 0 auto;
}
#checkin .gram-result img {
  width: 58px !important;
}

/* Larger wings throughout the app, without changing surrounding layouts. */
.completion-wings,
.journal-wings { width: 76px !important; }
.utility-wing img,
.movement-wing img,
#safetyLink img,
.account-logo img { width: 92px !important; height: auto !important; }
body:has(#checkin) .food-guide { width: 94px; height: 61px; }

/* Keep protocol save actions visually concise. */
#steps button[type="submit"],
#checkin button[type="submit"],
#journal button[type="submit"] {
  font-size: 0 !important;
}

#steps button[type="submit"]::after,
#checkin button[type="submit"]::after,
#journal button[type="submit"]::after {
  content: "Save";
  font-size: 15px;
}

/* Readable text in flexible content areas; compact exercise and calendar
   components retain their own sizing and alignment. */
.page :is(input, textarea, select) {
  font-size: 17px !important;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
}
.page :is(form, .grid, .report-grid) label,
.page label.notes {
  font-size: 15px !important;
  line-height: 1.4;
  letter-spacing: .02em !important;
  min-width: 0;
  overflow-wrap: break-word;
}
.page :is(.intro, .lead, .rule, .avoid, .steps, .entry p) {
  font-size: 17px !important;
  line-height: 1.55;
}
.page :is(.example-meal p, .week-day p, .meal-note, .phase-rule,
  .night-note, .password-requirement, .report-content p, .report-content li) {
  font-size: 14px !important;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.page :is(.protocol-verse, .sleep-verse, .steps-verse) {
  font-size: 16px !important;
  line-height: 1.5;
}
.page :is(.protocol-verse, .sleep-verse, .steps-verse) cite {
  font-size: 13px !important;
}
.page .field span { font-size: 13px !important; }
.page .field b { font-size: 17px !important; overflow-wrap: anywhere; }
#steps button[type="submit"]::after,
#checkin button[type="submit"]::after,
#journal button[type="submit"]::after { font-size: 17px; }

/* Keep native selection and the copy/paste callout available in editable fields. */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
textarea,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
  touch-action: auto;
}
