@charset "UTF-8";
:root {
  --paper: #f7f7f2;
  --white: #fffefa;
  --ink: #263f38;
  --muted: #68766e;
  --green: #234f46;
  --green-light: #e9eee3;
  --line: #dce1d7;
  --accent: #b77752;
  --red: #a23936;
  --shadow: 0 20px 80px #203c3020;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
a {
  color: inherit;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 3.5vw, 49px);
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
}
p {
  overflow-wrap: anywhere;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #b77752;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 38px;
  stroke-width: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 15px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 550;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #163f35;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--white);
}
.secondary:hover {
  background: var(--green-light);
}
.full {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
  text-underline-offset: 4px;
  text-decoration: underline;
  color: var(--muted);
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--green-light);
}
label,
legend {
  font-size: 13px;
  font-weight: 550;
}
label {
  display: block;
  margin-bottom: 7px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #858c83;
  font-weight: 400;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: 10px;
  width: 100%;
}
.form-error {
  font-size: 13px;
  color: var(--red);
  margin: 10px 0;
}
.form-error:empty {
  margin: 0;
}
.form-message {
  font-size: 13px;
  margin-top: 12px;
}
.form-message:empty {
  margin: 0;
}
.notice {
  padding: 16px;
  background: #fff0d7;
  color: #684623;
}
.round-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.danger {
  background: var(--red);
  color: #fff;
}
.danger-outline {
  border: 1px solid #e1b6b3;
  color: var(--red);
}
/* The front door */
.welcome-shell {
  max-width: 1400px;
  margin: auto;
  padding: 0 6%;
}
.welcome-header {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.beta {
  font:
    9px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-left: 14px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.welcome-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  column-gap: 8%;
  row-gap: 72px;
  min-height: calc(100vh - 190px);
  padding: 60px 0;
}
.welcome-story h1 {
  font-size: clamp(36px, 4.2vw, 57px);
  line-height: 1.15;
}
.welcome-story h1 em {
  font-weight: 400;
  color: #75846a;
}
.welcome-intro {
  color: var(--muted);
  max-width: 430px;
  line-height: 1.9;
  margin-top: 24px;
  font-size: 15px;
}
.welcome-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.welcome-benefits span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.welcome-benefits svg {
  width: 16px;
  height: 16px;
}
.welcome-nav,
.welcome-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.welcome-nav a {
  padding: 12px 0;
  font-size: 12px;
  text-decoration: none;
}
.welcome-actions {
  margin-top: 26px;
}
.landing-section {
  grid-column: 1 / -1;
  min-width: 0;
  scroll-margin-top: 24px;
}
#login-heading {
  scroll-margin-top: 30px;
}
.landing-section h2 {
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.landing-intro {
  max-width: 650px;
}
.landing-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.landing-cards,
.landing-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.landing-cards article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.landing-cards svg,
.landing-reassurance > div > svg {
  width: 25px;
  height: 25px;
  color: var(--green);
  margin-bottom: 15px;
}
.landing-section h3 {
  font: 25px Georgia, serif;
  margin-bottom: 12px;
}
.landing-category {
  display: block;
  margin-top: 22px;
  color: var(--green);
  letter-spacing: 1.5px;
  font-size: 9px;
}
.landing-example,
.landing-reassurance {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 45px;
}
.landing-example > div > p:not(.eyebrow),
.landing-reassurance p {
  margin-bottom: 18px;
}
.journal-preview {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 35px #203c3007;
}
.preview-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.preview-icon {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--green-light);
  color: var(--green);
}
.preview-icon svg {
  width: 17px;
  height: 17px;
}
.preview-entry h4 {
  font-size: 14px;
  margin: 5px 0;
  font-weight: 600;
}
.preview-entry .preview-time,
.journal-preview .preview-caption {
  font-size: 10px;
}
.preview-entry p:not(.preview-time) {
  font-size: 12px;
}
.preview-update {
  margin-top: 15px;
  padding-left: 13px;
  border-left: 2px solid #c5d3bc;
  font-size: 11px;
}
.preview-status {
  display: inline-block;
  font-size: 10px;
  color: var(--green);
  margin-top: 12px;
}
.landing-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.landing-steps article > span {
  display: block;
  font: 34px Georgia, serif;
  color: #82947c;
  margin-bottom: 18px;
}
.landing-reassurance {
  padding-top: 45px;
  border-top: 1px solid var(--line);
}
.landing-phone {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--green-light);
}
.landing-reassurance .landing-storage {
  font-size: 12px;
}
.landing-faq details {
  padding: 18px 0;
}
.landing-faq details p {
  max-width: 800px;
}
.landing-invitation {
  text-align: center;
  border-radius: 18px;
  padding: 45px 25px;
  background: #e9eddf;
}
.landing-invitation .button {
  margin: 22px 0 12px;
}
.landing-invitation small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.login-card {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 35px #203c3007;
  max-width: 440px;
  width: 100%;
}
.login-card h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
.login-card > p:not(.eyebrow):not(.form-error) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 25px;
}
.google {
  border: 1px solid var(--line);
  background: white;
  margin-top: 3px;
}
.google img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.google-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin: 23px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
#email-form .button {
  margin-top: 14px;
}
.login-card .login-footnote {
  font-size: 11px !important;
  text-align: center;
  margin: 18px 0 24px !important;
}
.privacy-note {
  display: flex;
  gap: 11px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.privacy-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.login-card > .text-link {
  width: 100%;
  font-size: 11px;
}
.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  min-height: 70px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
/* Journal */
.app-shell {
  display: flex;
  max-width: 1800px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  flex-shrink: 0;
  padding: 34px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding-left: 10px;
}
.sidebar-tagline {
  font-size: 11px;
  color: var(--muted);
  padding-left: 14px;
  margin-top: 9px;
}
.desktop-add {
  margin: 40px 0 25px;
  width: 100%;
}
.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  text-align: left;
  border-radius: 9px;
  font-size: 13px;
  min-height: 48px;
  color: var(--muted);
}
.nav-item.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
}
.sidebar-bottom > svg {
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
}
.sidebar-bottom p {
  font-size: 12px;
}
.sidebar-bottom p span {
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom .text-link {
  font-size: 10px;
}
.app-content {
  flex: 1;
  min-width: 0;
}
.app-header {
  height: 91px;
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.desktop-header-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.edition {
  font-size: 9px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.status-dot {
  height: 6px;
  width: 6px;
  display: inline-block;
  border-radius: 100%;
  background: #809b70;
}
.mobile-brand {
  display: none;
}
main > .view {
  padding: 45px 5% 35px;
  max-width: 1250px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading p:last-child:not(.eyebrow) {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}
.quick-capture {
  border: 1px solid #cbd6c2;
  border-radius: 13px;
  background: #eef1e6;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 23px 25px;
  margin-bottom: 36px;
}
.quick-capture:hover {
  background: #e6eddd;
}
.capture-plus {
  width: 43px;
  height: 43px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quick-capture strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
}
.quick-capture small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.capture-arrow {
  margin-left: auto;
  width: 20px;
}
.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 36px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 24px;
}
.section-title .muted {
  font-size: 11px;
}
.search-box {
  position: relative;
  margin: 0 0 16px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 18px;
  height: 18px;
  color: #7f8a7e;
}
.search-box input {
  padding-left: 42px !important;
  background: transparent !important;
  font-size: 13px !important;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.chip {
  padding: 8px 13px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 11px;
  border: 1px solid var(--line);
  white-space: nowrap;
  background: transparent;
}
.chip.selected {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.timeline-group {
  margin-bottom: 25px;
}
.group-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 600;
  margin: 22px 0 10px;
  text-transform: uppercase;
}
.entry-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 17px;
  margin-bottom: 10px;
}
.entry-card:hover {
  border-color: #9eae98;
  background: #fff;
}
.entry-kind-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ebeee3;
  color: #5b7155;
  flex-shrink: 0;
}
.entry-kind-icon.symptom {
  background: #f4e9df;
  color: #ac7552;
}
.entry-kind-icon.medication {
  background: #e3edeb;
  color: #517c77;
}
.entry-kind-icon.measurement {
  background: #eee9f0;
  color: #87718b;
}
.entry-kind-icon svg {
  width: 19px;
  height: 19px;
}
.entry-body {
  flex: 1;
  min-width: 0;
}
.entry-topline {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ongoing-tag {
  font-size: 8px;
  color: #8e6846;
  background: #f5efdf;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.entry-card h3 {
  font-size: 15px;
  font-weight: 550;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.entry-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.entry-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.entry-chevron {
  height: 16px;
  width: 16px;
  color: #9aa291;
  align-self: center;
}
.at-a-glance {
  padding: 25px 23px;
  border-radius: 12px;
  background: #eeeee4;
}
.at-a-glance .eyebrow {
  font-size: 9px;
}
.at-a-glance h2 {
  font-size: 24px;
  margin-bottom: 24px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #dce0d0;
  font-size: 12px;
  color: var(--muted);
}
.stat-row strong {
  color: var(--ink);
  font:
    25px Georgia,
    serif;
}
.aside-footnote {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 17px;
}
.gentle-note {
  padding: 25px 15px;
}
.gentle-note > svg {
  width: 22px;
  color: #9aab8c;
  margin-bottom: 11px;
}
.gentle-note h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.gentle-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin-top: 12px;
}
.aside-export {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  min-height: 60px;
  font-size: 11px;
}
.aside-export > svg {
  width: 18px;
  height: 18px;
}
.aside-export > svg:last-child {
  margin-left: auto;
  width: 15px;
}
.aside-export small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
  border: 1px dashed #ced6c5;
  border-radius: 14px;
}
.empty-state .round-icon {
  margin: 0 auto 18px;
  width: 58px;
  height: 58px;
}
.empty-state h3 {
  font:
    26px Georgia,
    serif;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 18px;
  line-height: 1.9;
}
.empty-state button {
  font-size: 12px;
}
.app-footer {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 22px 5%;
  margin-top: 30px;
}
.mobile-nav {
  display: none;
}
.account-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 650px;
  margin: 0 0 22px;
}
.account-card h2 {
  font-size: 25px;
  margin-bottom: 14px;
}
.account-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.account-card .account-email {
  font-size: 17px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.storage-link {
  display: block;
  width: fit-content;
  margin-top: 10px;
}
.danger-zone {
  background: transparent;
}
.danger-zone h2 {
  font-size: 22px;
  color: var(--red);
}
/* A single sheet, not an interview */
dialog {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  width: min(610px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #1d312b70;
  backdrop-filter: blur(3px);
}
.entry-dialog {
  scroll-padding: 24px 0 110px;
}
dialog > p {
  font-size: 14px;
  line-height: 1.8;
  margin: 15px 0;
}
dialog h2 {
  font-size: 31px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dialog-header .eyebrow {
  margin-bottom: 8px;
}
.dialog-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 22px;
}
#entry-title {
  font-size: 20px;
  padding: 15px;
  min-height: 60px;
  margin-bottom: 25px;
  background: #f9faf4;
}
.kind-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}
.optional {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.kind-picker label {
  flex: 1 1 45%;
  margin: 0;
  position: relative;
  min-width: 85px;
}
.kind-picker input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.kind-picker label > span {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  font-size: 11px;
}
.kind-picker svg {
  width: 17px;
  height: 17px;
}
.kind-copy strong,
.kind-copy small {
  display: block;
}
.kind-copy strong {
  font-size: 12px;
}
.kind-copy small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.timing-hint {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}
.field-row > .precision-field {
  flex-basis: 100%;
}
.journal-tools {
  margin-bottom: 24px;
}
.checkin-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px;
  margin-bottom: 28px;
  border: 1px solid #cbd6c2;
  border-radius: 12px;
  background: var(--green-light);
}
.checkin-banner > div {
  flex: 1 1 230px;
}
.checkin-banner h2 {
  font-size: 24px;
}
.checkin-banner p {
  font-size: 12px;
  margin-top: 8px;
}
.checkin-complete {
  padding: 24px 0;
}
.event-status {
  background: var(--green-light);
  border: 1px solid #cbd6c2;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 28px;
}
.event-status p:not(.form-error) {
  font-size: 13px;
  margin: 10px 0 16px;
}
.event-status .button {
  margin: 0 8px 8px 0;
}
.resolution-summary {
  color: var(--green);
  line-height: 1.7;
}
#resolution-time {
  min-width: 0;
}
#resolution-dialog {
  scroll-padding-bottom: 100px;
}
.kind-picker input:checked + span {
  background: var(--green-light);
  border-color: #82947c;
  color: var(--green);
}
.kind-picker input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.when-picker {
  margin-bottom: 25px;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.field-row > div {
  flex: 1;
  min-width: 140px;
}
#custom-time {
  margin-top: 16px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  min-height: 44px;
  line-height: 1.7;
}
summary span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 16px;
}
details[open] summary {
  margin-bottom: 18px;
}
.details-fields {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.details-fields > .field-row {
  margin-bottom: 16px;
}
.measurement-fields {
  background: var(--green-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 22px;
}
.measurement-fields .field-row,
#measurement-name-field,
#measurement-context-field {
  margin-top: 14px;
}
.measurement-fields .field-row {
  align-items: end;
}
.measurement-fields .field-row > div {
  min-width: 110px;
}
.measurement-reading {
  display: block;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin: 6px 0 10px;
  overflow-wrap: anywhere;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin: 10px 0 0;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}
.dialog-actions {
  position: sticky;
  bottom: -30px;
  z-index: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dialog-actions > span {
  font-size: 11px;
  color: var(--muted);
}
.detail-kind {
  margin: 15px 0 12px;
}
.detail-title {
  font:
    32px Georgia,
    serif;
  line-height: 1.2;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.detail-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
}
.detail-notes {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.detail-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}
.updates-heading {
  font:
    22px Georgia,
    serif;
  margin: 22px 0 16px;
}
.update {
  border-left: 2px solid #d3deca;
  padding: 0 0 4px 15px;
  margin-bottom: 20px;
}
.update time {
  font-size: 10px;
  color: var(--muted);
}
.update p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.update-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.update-form button {
  margin-top: 12px;
}
.detail-delete {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.detail-delete summary {
  color: var(--red);
  font-size: 12px;
}
.detail-delete p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 15px;
}
.location-picker-button {
  margin-top: 10px;
  font-size: 12px;
  width: 100%;
}
.body-picker-dialog {
  width: min(780px, calc(100% - 16px));
}
.body-picker-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  margin-top: 22px;
}
.body-view-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.body-side-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0 4px;
}
#body-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 19;
}
#body-map path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.2px;
}
.body-region,
.body-neck {
  fill: #e7ebdf;
  stroke: #82947c;
}
.body-region {
  cursor: pointer;
}
.body-region:hover,
.body-region:focus-visible {
  fill: #d2deca;
  stroke: var(--green);
  stroke-width: 3px !important;
  outline: none;
}
.body-region[aria-pressed="true"] {
  fill: #b6ceb5;
  stroke: var(--green);
  stroke-width: 2px !important;
}
.body-detail {
  stroke: #82947c;
  fill: none;
  pointer-events: none;
}
.body-location-choices {
  min-width: 0;
}
.body-location-choices h3 {
  font-size: 14px;
  margin: 18px 0 12px;
}
.location-options {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
}
.location-option {
  white-space: normal;
  text-align: left;
  font-size: 12px;
}
.body-picker-actions {
  position: sticky;
  bottom: -30px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.body-picker-actions p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.body-picker-actions .button {
  flex-shrink: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: calc(100% - 30px);
}
@media (min-width: 1450px) {
  .app-header {
    padding-left: 7%;
    padding-right: 7%;
  }
  main > .view {
    padding: 55px 7%;
  }
  .journal-grid {
    gap: 50px;
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .sidebar {
    width: 260px;
    padding: 40px 30px;
  }
  .app-footer {
    padding-left: 7%;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 16px;
  }
  .sidebar .brand {
    font-size: 27px;
  }
  .journal-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }
  .at-a-glance {
    padding: 22px 17px;
  }
  .at-a-glance h2 {
    font-size: 22px;
  }
  .heading-add {
    display: none;
  }
  .welcome-main {
    column-gap: 6%;
  }
  .login-card {
    padding: 28px;
  }
  .welcome-story h1 {
    font-size: 44px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 180px;
    padding: 27px 12px;
  }
  .sidebar .brand {
    font-size: 25px;
  }
  .sidebar .brand svg {
    width: 29px;
  }
  .journal-grid {
    display: block;
  }
  .journal-aside {
    display: none;
  }
  main > .view {
    padding: 35px 6%;
  }
  .app-header {
    padding: 0 6%;
    height: 80px;
  }
  .quick-capture {
    padding: 20px;
  }
  .welcome-main {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: auto;
    gap: 35px;
    padding: 35px 0 50px;
  }
  .welcome-story h1 {
    font-size: 43px;
  }
  .welcome-intro {
    max-width: 470px;
    font-size: 14px;
  }
  .landing-example,
  .landing-reassurance,
  .landing-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .welcome-benefits {
    margin-top: 18px;
  }
  .login-card {
    max-width: none;
    padding: 30px;
  }
  .welcome-header {
    height: 86px;
  }
  .welcome-shell {
    padding: 0 7%;
  }
  .welcome-story .eyebrow {
    font-size: 9px;
  }
  .welcome-footer {
    font-size: 9px;
  }
  .beta {
    font-size: 8px;
  }
  .welcome-main {
    min-height: auto;
  }
}
@media (max-width: 600px) {
  .welcome-header {
    height: auto;
    min-height: 110px;
    flex-wrap: wrap;
    padding: 16px 0 8px;
    gap: 5px;
  }
  .welcome-nav {
    gap: 20px;
    width: 100%;
  }
  .welcome-main > .landing-section {
    margin-top: 18px;
  }
  .landing-cards {
    grid-template-columns: 1fr;
  }
  .journal-preview,
  .landing-cards article,
  .landing-phone {
    padding: 22px;
  }
  .landing-section h2 {
    font-size: 31px;
  }
  .landing-section h3 {
    font-size: 24px;
  }
  :root {
    font-size: 15px;
  }
  .sidebar {
    display: none;
  }
  .app-header {
    height: 72px;
    padding: 0 22px;
  }
  .mobile-brand {
    display: flex;
    font-size: 25px;
  }
  .mobile-brand svg {
    width: 29px;
    height: 33px;
  }
  .desktop-header-label {
    display: none;
  }
  .edition {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .app-content {
    padding-bottom: 82px;
  }
  main > .view {
    padding: 29px 22px 22px;
  }
  .page-heading {
    margin-bottom: 26px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .page-heading p:last-child:not(.eyebrow) {
    font-size: 12px;
    margin-top: 10px;
  }
  .quick-capture {
    padding: 18px 15px;
    gap: 12px;
    margin-bottom: 30px;
    border-radius: 12px;
  }
  .capture-plus {
    width: 36px;
    height: 36px;
  }
  .quick-capture strong {
    font-size: 16px;
  }
  .quick-capture small {
    font-size: 11px;
    line-height: 1.7;
  }
  .capture-arrow {
    width: 17px;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .section-title {
    margin-bottom: 17px;
  }
  .filters {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
    scrollbar-width: thin;
  }
  .chip {
    font-size: 11px;
    min-height: 44px;
    padding: 8px 13px;
  }
  .entry-card {
    padding: 16px 13px;
    gap: 11px;
  }
  .entry-kind-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .entry-card h3 {
    font-size: 14px;
  }
  .entry-topline {
    font-size: 8px;
    gap: 8px;
  }
  .entry-meta {
    font-size: 10px;
    gap: 5px;
  }
  .entry-note {
    font-size: 11px;
  }
  .entry-chevron {
    width: 13px;
  }
  .empty-state {
    padding: 24px 20px;
  }
  .empty-state .round-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .empty-state h3 {
    font-size: 25px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(74px + env(safe-area-inset-bottom));
    padding: 0 20px env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
    justify-content: space-around;
  }
  .mobile-nav > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 75px;
    font-size: 9px;
    color: var(--muted);
  }
  .mobile-nav > button.active {
    color: var(--green);
    font-weight: 650;
  }
  .mobile-nav svg {
    width: 21px;
    height: 21px;
  }
  .mobile-add span {
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    width: 46px;
    height: 33px;
    border-radius: 12px;
  }
  .app-footer {
    font-size: 9px;
    line-height: 1.9;
    padding: 20px 22px;
    margin-top: 0;
  }
  dialog {
    width: calc(100% - 16px);
    max-height: 94dvh;
    padding: 24px 20px;
    border-radius: 18px;
    margin: auto 8px 8px;
  }
  dialog h2 {
    font-size: 29px;
  }
  .dialog-header .eyebrow {
    font-size: 9px;
  }
  #entry-title {
    font-size: 18px;
    margin-bottom: 21px;
  }
  .dialog-intro {
    font-size: 12px;
    margin: 12px 0 18px;
  }
  .kind-picker label > span {
    flex-direction: row;
    font-size: 10px;
    min-height: 63px;
    gap: 5px;
  }
  .kind-picker label {
    min-width: 0;
  }
  .kind-picker {
    gap: 6px;
  }
  .dialog-actions {
    bottom: -24px;
  }
  .dialog-actions > span {
    font-size: 10px;
  }
  .dialog-actions .button {
    font-size: 13px;
  }
  .detail-title {
    font-size: 29px;
  }
  .body-picker-layout {
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
  }
  .body-figure .timing-hint {
    font-size: 10px;
  }
  .body-picker-dialog .dialog-header h2 {
    font-size: 26px;
  }
  .body-picker-dialog > p {
    font-size: 12px;
  }
  .body-location-choices input {
    padding: 9px;
  }
  .location-option {
    width: 100%;
  }
  .location-options {
    max-height: 265px;
  }
  .body-picker-actions {
    bottom: -24px;
  }
  .account-card {
    padding: 23px 20px;
  }
  .account-card h2 {
    font-size: 24px;
  }
  .account-card p {
    font-size: 12px;
  }
  .welcome-shell {
    padding: 0 23px;
  }
  .welcome-header {
    height: 80px;
  }
  .welcome-header .brand {
    font-size: 28px;
  }
  .beta {
    margin-left: 10px;
    padding-left: 15px;
    font-size: 7px;
  }
  .welcome-main {
    padding: 29px 0 35px;
    gap: 28px;
  }
  .welcome-story h1 {
    font-size: 36px;
  }
  .welcome-story .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
  .welcome-intro {
    font-size: 13px;
    line-height: 1.85;
    margin-top: 18px;
  }
  .welcome-benefits {
    font-size: 10px;
    gap: 5px 18px;
    margin-top: 16px;
  }
  .login-card {
    padding: 25px 23px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .login-card .eyebrow {
    font-size: 9px;
  }
  .login-card > p:not(.eyebrow):not(.form-error) {
    font-size: 13px;
  }
  .welcome-footer {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 15px 0;
    font-size: 8px;
  }
  #toast {
    bottom: 100px;
    white-space: normal;
    text-align: center;
    min-width: 200px;
  }
}
@media (max-width: 360px) {
  .location-options {
    max-height: 225px;
  }
}
.profile-form {
  max-width: 650px;
}
.profile-form > .field-row,
.profile-form > label {
  margin-top: 22px;
}
.profile-form > label:first-child {
  margin-top: 0;
}
.profile-measurements {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px;
}
.profile-measurements h2 {
  font-size: 23px;
}
.profile-measurements > p {
  font-size: 13px;
  line-height: 1.8;
}
.profile-reading {
  background: var(--green-light);
  border-radius: 12px;
  padding: 16px;
  overflow-wrap: anywhere;
}
.profile-reading h3 {
  font-size: 16px;
}
.profile-reading .button {
  width: 100%;
}
.reading-date {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.profile-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.7;
}
.profile-note svg {
  flex: 0 0 20px;
}
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.policy-page {
  max-width: 750px;
  margin: 45px auto 60px;
}
.summary-dialog {
  width: min(780px, calc(100% - 16px));
}
.summary-criteria {
  font-size: 12px;
  margin: 24px 0 12px;
}
.summary-entry {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.summary-entry h3 {
  font-weight: 600;
}
.summary-notes {
  white-space: pre-wrap;
  margin-bottom: 20px;
}
@media print {
  body > :not(#summary-dialog) {
    display: none !important;
  }
  #summary-dialog:not([open]) {
    display: none !important;
  }
  #summary-dialog[open] {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #000;
    background: #fff;
  }
  #summary-dialog::backdrop,
  #summary-dialog button,
  .summary-help {
    display: none;
  }
  .summary-entry h3 {
    break-after: avoid;
  }
  .update {
    break-inside: avoid;
  }
}
.policy-page h1 {
  margin-bottom: 18px;
}
.policy-page h2 {
  font-size: 26px;
  margin: 30px 0 12px;
}
.policy-page p {
  color: var(--muted);
  line-height: 1.9;
}
.policy-page .button {
  margin-top: 30px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
