/* node_modules/@fontsource/nunito/latin-400.css */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./assets/nunito-latin-400-normal-STXQN3YV.woff2") format("woff2"), url("./assets/nunito-latin-400-normal-XYKNV5V5.woff") format("woff");
}

/* node_modules/@fontsource/nunito/latin-600.css */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./assets/nunito-latin-600-normal-D4YHSYEV.woff2") format("woff2"), url("./assets/nunito-latin-600-normal-HGWTVWBY.woff") format("woff");
}

/* node_modules/@fontsource/nunito/latin-700.css */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./assets/nunito-latin-700-normal-BNRLMBX2.woff2") format("woff2"), url("./assets/nunito-latin-700-normal-OPDVKG55.woff") format("woff");
}

/* node_modules/@fontsource/nunito/latin-800.css */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("./assets/nunito-latin-800-normal-ZLC45ULI.woff2") format("woff2"), url("./assets/nunito-latin-800-normal-OEF6YSFC.woff") format("woff");
}

/* node_modules/@fontsource/lora/latin-400.css */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./assets/lora-latin-400-normal-CJC2X5VP.woff2") format("woff2"), url("./assets/lora-latin-400-normal-JSR2RUKL.woff") format("woff");
}

/* node_modules/@fontsource/lora/latin-500.css */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./assets/lora-latin-500-normal-H34GQE5R.woff2") format("woff2"), url("./assets/lora-latin-500-normal-IPZFC3CV.woff") format("woff");
}

/* node_modules/@fontsource/lora/latin-600.css */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./assets/lora-latin-600-normal-7O5BYF3Q.woff2") format("woff2"), url("./assets/lora-latin-600-normal-33KMSD2X.woff") format("woff");
}

/* web/site.css */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
}
button,
.dropdown-option {
  touch-action: manipulation;
}
.header-inner {
  padding-top: max(16px, env(safe-area-inset-top));
}
main {
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.login-screen {
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
dialog {
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
}
.account-sidebar {
  max-height: calc(100dvh - var(--sidebar-top, 12px) - max(12px, env(safe-area-inset-bottom)));
}
input {
  font-size: 16px;
}
.first-steps {
  margin-bottom: 24px;
  padding: 28px;
}
.first-steps h2 {
  margin: 10px 0;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.onboarding-grid li {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
}
.onboarding-grid h3 {
  margin: 12px 0;
  font-size: 17px;
}
.onboarding-grid p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-status {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}
.onboarding-grid button:disabled,
#review-cycle:disabled,
#compare-records:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.onboarding-grid .step-done {
  background: var(--sage);
}
.week-overview {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--background);
}
.week-overview p {
  line-height: 1.7;
  margin: 12px 0;
}
.week-overview-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.week-stat {
  padding: 14px;
  background: var(--surface);
  border-radius: 12px;
}
.week-stat strong,
.week-stat span {
  display: block;
}
.week-stat strong {
  font-size: 24px;
  color: var(--primary-dark);
}
.week-stat span {
  font-size: 13px;
  color: var(--muted);
}
#week-progress {
  width: 100%;
  height: 10px;
  accent-color: var(--primary);
}
.review-nudge,
.review-result {
  padding: 18px;
  background: var(--lavender);
  border-radius: 14px;
}
.day-guide {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
  padding: 7px;
}
.care-content {
  margin-top: 24px;
  line-height: 1.8;
}
.care-content h3 {
  font-size: 17px;
  margin: 22px 0 10px;
}
.care-content li {
  margin-bottom: 10px;
}
#care-tabs button[aria-pressed=true] {
  background: var(--lavender);
  color: var(--primary-dark);
  border-color: var(--primary);
}
.comparison-actions {
  margin: 20px 0;
}
.comparison-grid,
.comparison-selectors,
.review-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.comparison-selectors > div,
.review-fields > div {
  min-width: 0;
}
.comparison-entry {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.comparison-entry h3 {
  margin-bottom: 16px;
}
.comparison-entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 12px;
  background: var(--background);
}
.comparison-placeholder {
  padding: 24px 12px;
  text-align: center;
  background: var(--background);
  border-radius: 12px;
}
.comparison-entry dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
}
.comparison-entry dd {
  margin: 0;
  font-weight: 800;
}
.comparison-entry p,
.comparison-difference p {
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comparison-difference {
  margin-top: 20px;
  padding: 16px;
  background: var(--sage);
  border-radius: 14px;
}
.review-fields {
  margin: 24px 0;
}
#cycle-review-form > .date-field {
  margin: 20px 0;
}
.review-result p {
  line-height: 1.8;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .onboarding-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  .first-steps {
    padding: 20px;
  }
  .first-steps h2 {
    font-size: 24px;
  }
  .week-overview {
    padding: 16px;
  }
  .week-overview-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comparison-selectors,
  .review-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .comparison-grid {
    gap: 10px;
  }
  .comparison-entry {
    padding: 10px;
  }
  .comparison-entry h3 {
    font-size: 14px;
  }
  .comparison-entry dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
  }
  .comparison-entry dd {
    margin-bottom: 8px;
  }
  .comparison-entry p {
    font-size: 12px;
  }
  .day .day-guide {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0;
    min-height: 44px;
  }
}
@media print {
  #first-steps,
  .week-overview,
  .day-guide,
  #care-modal,
  #comparison-modal,
  #cycle-review-modal {
    display: none !important;
  }
}
@media (max-width: 420px) {
  .brand,
  .brand > div {
    min-width: 0;
  }
  .brand strong,
  .brand small {
    display: block;
    overflow-wrap: anywhere;
  }
  .header-inner {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .brand strong {
    font-size: 13px;
  }
  .brand small {
    font-size: 10px;
  }
  .account-menu-button {
    font-size: 12px;
    padding: 10px;
  }
}

/* web/theme.css */
:root {
  --background: #f5f2ee;
  --surface: #fcfaf7;
  --text: #39343e;
  --muted: #68616c;
  --primary: #735d82;
  --primary-dark: #584464;
  --border: #e2dbd8;
  --field: #fffdfa;
  --lavender: #eae3ee;
  --rose: #efe1e2;
  --sage: #e5ebe2;
  --hydration: #e3eaf1;
  --nutrition: #f0e7d7;
  --reconstruction: #e9e1ed;
  --wash: #e2ebe4;
  --rest: #eee2e6;
  --error: #8c3e50;
  --shadow: 0 4px 20px #39343e05, 0 1px 3px #39343e04;
  --heading-font:
    "Lora",
    Georgia,
    serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family:
    "Nunito",
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  transition: background-color .16s, border-color .16s;
}
button:hover {
  background: var(--lavender);
  border-color: #b8a8c1;
}
button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
button.primary:hover {
  background: var(--primary-dark);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: #dacde3;
  color: var(--text);
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.3;
}
h3 {
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
}
.brand-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 6px;
  background: var(--lavender);
  border: 1px solid #dcd2e2;
  border-radius: 16px;
}
.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.footer-mark {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
}
.public-home {
  background:
    radial-gradient(
      ellipse at 85% 12%,
      #eae3ee90,
      transparent 45%),
    var(--background);
}
.home-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary-dark);
}
.home-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.home-nav nav,
.home-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.public-home a {
  color: var(--primary-dark);
  text-underline-offset: 4px;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}
.public-home .home-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.home-button:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}
.public-home .home-primary:hover {
  background: var(--primary-dark);
}
.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 88px;
}
.home-copy h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -1.6px;
  max-width: 15ch;
  margin-bottom: 24px;
}
.home-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 49ch;
}
.home-links {
  margin-top: 28px;
}
.home-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 0;
}
.home-preview {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.home-flower {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 20px;
}
.home-preview h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
.home-week {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.home-week > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--hydration);
  font-size: 14px;
}
.home-week > div:nth-child(2) {
  background: var(--nutrition);
}
.home-week > div:nth-child(3) {
  background: var(--wash);
}
.home-section {
  padding-top: 52px;
  padding-bottom: 52px;
  scroll-margin-top: 20px;
}
.home-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 20px;
}
.home-section-intro {
  max-width: 75ch;
  color: var(--muted);
  line-height: 1.85;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.home-grid article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.home-step {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: 800;
}
.home-grid h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.home-grid p {
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.home-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-features p {
  color: var(--muted);
  line-height: 1.85;
}
.home-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
.home-features li {
  border-left: 3px solid var(--border);
  padding-left: 20px;
}
.home-features strong,
.home-features span {
  display: block;
}
.home-features span {
  margin-top: 6px;
  color: var(--muted);
}
.home-invitation {
  text-align: center;
}
.home-invitation > p {
  max-width: 68ch;
  margin: 0 auto 24px;
  color: var(--muted);
}
.home-invitation .home-caption {
  margin-top: 24px;
}
@media (max-width: 800px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .home-copy h1 {
    max-width: 20ch;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-features {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 480px) {
  .home-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-nav {
    gap: 12px;
  }
  .home-nav nav {
    gap: 12px;
  }
  .home-nav nav > a:first-child {
    display: none;
  }
  .home-brand {
    font-size: 19px;
  }
  .home-preview {
    padding: 24px;
  }
  .home-copy h1 {
    letter-spacing: -.8px;
  }
  .home-week > div {
    flex-wrap: wrap;
  }
  .home-links {
    gap: 16px;
  }
  .home-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
@media print {
  .public-home {
    display: none !important;
  }
}
.login-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      #ead9df80,
      transparent 55%),
    radial-gradient(
      ellipse at 85% 80%,
      #e1dce980,
      transparent 55%),
    var(--background);
}
.login-card {
  width: min(100%, 460px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 16px 48px #5844640b;
}
.login-card .brand-icon {
  width: 72px;
  height: 72px;
  padding: 9px;
  border-radius: 22px;
  margin-bottom: 24px;
}
.login-card h2 {
  font-size: 48px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.login-card p {
  font-size: 15px;
  line-height: 1.75;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.field {
  margin-top: 20px;
}
input {
  width: 100%;
  border: 1px solid #958697;
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--field);
  color: var(--text);
  min-width: 0;
}
input:hover,
select:hover {
  border-color: var(--primary);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 92px;
}
.password-field button {
  position: absolute;
  right: 5px;
  top: 5px;
  min-height: 42px;
  padding: 9px;
  font-size: 12px;
  border: 0;
  color: var(--primary-dark);
}
.login-submit {
  width: 100%;
  margin-top: 22px;
}
.remember-login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  cursor: pointer;
  line-height: 1.5;
}
.remember-login input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}
.remember-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.auth-actions button {
  width: 100%;
  padding-inline: 10px;
}
#auth-status.awaiting-confirmation {
  padding: 16px;
  border: 1px solid #dcd2e2;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--primary-dark);
  text-align: left;
}
#auth-status.awaiting-confirmation strong {
  display: block;
  margin-bottom: 6px;
}
.notice-card {
  padding: 28px;
  margin-bottom: 28px;
}
.notice-card h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.notice-card p {
  max-width: 85ch;
  margin-bottom: 20px;
  color: var(--muted);
}
.notice-card button {
  align-self: start;
}
.auth-confirmation {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid #cbd8c7;
  border-radius: 14px;
  background: var(--sage);
  color: var(--text);
}
.error {
  color: var(--error);
  background: #f3e5e6;
  padding: 12px;
  border-radius: 10px;
  margin: 14px 0 0;
  font-size: 14px;
}
.login-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px !important;
}
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1320px;
  margin: auto;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand strong {
  font-size: 18px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 46px 36px 40px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0 20px;
}
.intro h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -1.1px;
}
.intro p {
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 0;
}
.intro .eyebrow {
  margin-bottom: 14px;
}
.welcome-note {
  flex: 0 0 230px;
  padding: 22px;
  border-left: 1px solid #d9cddc;
}
.welcome-note span {
  display: block;
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 8px;
}
.welcome-note p {
  font-family: var(--heading-font);
  font-size: 17px;
  color: var(--primary-dark);
  line-height: 1.7;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.planner {
  margin-top: 28px;
  padding: 28px;
}
.section-heading {
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.section-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.duration-field label {
  font-size: 12px;
  color: var(--muted);
}
#duration {
  min-height: 44px;
  border: 1px solid #958697;
  border-radius: 10px;
  padding: 9px 35px 9px 12px;
  background: var(--field);
  color: var(--text);
  font-weight: 800;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #34263f33;
}
.week {
  margin-top: 26px;
}
.week h2 {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--primary-dark);
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.day {
  padding: 16px 8px 10px;
  border-radius: 14px;
  background: #f1ede9;
  border: 1px solid #39343e12;
  transition: background-color .16s;
}
.day:focus-within {
  border-color: var(--primary);
}
.day label {
  text-align: center;
  margin-bottom: 14px;
  font-size: 12px;
}
.day-icon {
  display: block;
  text-align: center;
  font-size: 25px;
  margin-bottom: 12px;
}
.day select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 3px;
  font-size: 12px;
  border: 1px solid #958697;
  border-radius: 8px;
  color: var(--text);
  background: var(--field);
}
.print-treatment {
  display: none;
}
.saved {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  min-height: 18px;
}
.summary-section {
  margin-top: 36px;
}
.summary-section h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.summary-section > p {
  font-size: 14px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.summary-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.summary-top span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--treatment-color, var(--lavender));
  font-size: 22px;
}
.summary-top strong {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-dark);
}
.summary-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.profile-card {
  margin-top: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f0eaf1;
  border-color: #ded4e1;
}
.profile-card h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.profile-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.profile-card button {
  flex-shrink: 0;
}
dialog {
  width: min(740px, calc(100% - 32px));
  max-height: 90svh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px #34263f26;
}
dialog::backdrop {
  background: #34263f80;
}
#profile-modal::backdrop {
  opacity: 0;
  transition: opacity .24s ease;
}
#profile-modal.is-visible::backdrop {
  opacity: 1;
}
.smooth-modal::backdrop {
  opacity: 0;
  transition: opacity .22s ease;
}
.smooth-modal.is-visible::backdrop {
  opacity: 1;
}
#signup-modal {
  max-width: 620px;
}
#recovery-modal {
  max-width: 520px;
}
#signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}
#signup-form .field {
  margin: 0;
  min-width: 0;
}
#signup-form .field:nth-of-type(3),
#signup-error,
#signup-form .modal-actions {
  grid-column: 1 / -1;
}
#signup-form .modal-actions {
  margin-top: 0;
}
#recovery-modal h2 {
  font-size: 28px;
  margin-bottom: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .smooth-modal::backdrop,
  .routine-settings summary::before,
  .routine-card summary::before {
    transition: none !important;
  }
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.modal-heading h2 {
  font-size: 29px;
  margin-bottom: 14px;
}
.modal-heading button {
  min-width: 44px;
  padding: 6px 12px;
  font-size: 22px;
}
.modal-intro {
  font-size: 15px;
  line-height: 1.8;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 26px 0;
}
.profile-fields > div {
  min-width: 0;
}
.profile-fields select {
  width: 100%;
  min-height: 48px;
  padding: 11px 6px;
  font-size: 16px;
  border: 1px solid #958697;
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
}
select:disabled {
  color: var(--muted);
  background: #ebe7e3;
  cursor: default;
}
.profile-fields label {
  font-size: 14px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}
#profile-feedback:empty {
  display: none;
}
.profile-note {
  font-size: 13px;
  line-height: 1.8;
}
.profile-group {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 12px 16px;
  background: var(--lavender);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.question-help {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.assessment {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid #d8ccdc;
  font-size: 15px;
  line-height: 1.8;
}
.assessment ul {
  padding-left: 20px;
  margin-bottom: 18px;
  max-width: 80ch;
}
.assessment li + li,
.outlook li + li {
  margin-top: 10px;
}
.assessment p {
  max-width: 80ch;
}
.assessment h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.assessment details {
  margin-top: 14px;
}
.assessment summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 0;
}
.assessment a {
  color: var(--primary-dark);
}
.profile-card {
  flex-wrap: wrap;
}
.profile-card > div:first-child {
  flex: 1;
}
.assessment {
  flex-basis: 100%;
}
.outlook {
  margin-top: 36px;
  padding: 32px;
  background: var(--surface);
}
.outlook h2 {
  font-size: clamp(26px, 3vw, 32px);
  max-width: 32ch;
  margin-bottom: 22px;
}
.outlook h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.outlook .outlook-followup {
  margin-top: 20px;
}
.outlook p,
.outlook li {
  font-size: 15px;
  line-height: 1.85;
  max-width: 80ch;
}
.outlook ul {
  padding-left: 20px;
  max-width: 80ch;
}
.outlook-horizon {
  display: inline-block;
  background: var(--lavender);
  color: var(--primary-dark);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.outlook-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.outlook-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.outlook-step {
  background: #f1eee9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.outlook-step h3 {
  color: var(--primary-dark);
}
.outlook-step p {
  margin-bottom: 0;
  font-size: 14px;
}
.outlook-alert {
  border-left: 3px solid var(--error);
  padding: 18px 22px;
  background: #f4e9e9;
  border-radius: 10px;
  margin: 22px 0;
}
.outlook details {
  font-size: 14px;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
  padding: 8px 0;
}
.outlook summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 0;
  color: var(--primary-dark);
}
.outlook a {
  color: var(--primary-dark);
}
.dropdown {
  position: relative;
  min-width: 0;
}
.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.dropdown-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  background: var(--field);
  border-color: #958697;
}
.dropdown-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-control::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin: -4px 2px 0 0;
  transition: transform .16s;
}
.dropdown-control[aria-expanded=true]::after {
  transform: rotate(225deg);
}
.dropdown-control:disabled {
  color: var(--muted);
  background: #ebe7e3;
  cursor: default;
}
.dropdown-control[aria-invalid=true] {
  border-color: var(--error);
}
.day .dropdown-control {
  font-size: 12px;
  padding: 8px 6px;
}
.dropdown-list {
  position: fixed;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  border: 1px solid #b8a8c1;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  box-shadow: 0 8px 24px #39343e18;
}
.dropdown-option {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.dropdown-option.active {
  background: var(--lavender);
}
.dropdown-option[aria-selected=true] {
  color: var(--primary-dark);
  font-weight: 800;
}
.sidebar-toggle-slot {
  flex-shrink: 0;
}
.account-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.menu-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 16px;
  flex-shrink: 0;
}
.menu-icon i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}
.menu-icon i:nth-child(1) {
  top: 0;
}
.menu-icon i:nth-child(2) {
  top: 7px;
}
.menu-icon i:nth-child(3) {
  top: 14px;
}
.account-menu-button[aria-expanded=true] .menu-icon i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.account-menu-button[aria-expanded=true] .menu-icon i:nth-child(2) {
  opacity: 0;
}
.account-menu-button[aria-expanded=true] .menu-icon i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.account-sidebar {
  inset: auto;
  top: var(--sidebar-top, 12px);
  left: var(--sidebar-left, 12px);
  margin: 0;
  width: min(370px, calc(100vw - 24px));
  height: min(720px, calc(100svh - 24px));
  max-height: calc(100svh - var(--sidebar-top, 12px) - 12px);
  border-radius: 22px;
  padding: 24px;
  display: none;
  scrollbar-gutter: auto;
  overflow-x: hidden;
}
.account-sidebar[open] {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.account-sidebar > .account-menu-button {
  position: absolute;
  top: var(--toggle-top);
  left: var(--toggle-left);
  width: var(--toggle-width);
  height: var(--toggle-height);
}
.account-sidebar::backdrop {
  background: #34263f50;
  opacity: 0;
  transition: opacity .28s ease;
}
.account-sidebar.is-visible::backdrop {
  opacity: 1;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-heading {
  min-height: 48px;
  padding-right: calc(var(--toggle-width, 112px) + 12px);
}
.sidebar-heading h2 {
  margin: 0;
  font-size: 21px;
}
.sidebar-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.sidebar-identity strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}
.sidebar-identity p {
  margin: 6px 0 0;
  font-size: 14px;
}
.sidebar-info {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sidebar-info dt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.sidebar-info dt:first-child {
  margin-top: 0;
}
.sidebar-info dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sidebar-actions {
  display: grid;
  gap: 12px;
}
.sidebar-logout {
  color: var(--error);
}
.sidebar-note {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
#account-modal {
  width: min(580px, calc(100% - 32px));
}
.account-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.account-fields .wide {
  grid-column: 1 / -1;
}
.disclosure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.disclosure-heading h3 {
  margin: 0;
}
.disclosure-heading button {
  flex-shrink: 0;
}
.assessment #assessment-details {
  padding-top: 18px;
}
.outlook .disclosure-heading h2 {
  margin-bottom: 0;
}
.outlook-preview {
  margin: 16px 0 0;
  color: var(--muted);
}
#outlook-content {
  padding-top: 22px;
}
#outlook-modal {
  width: min(920px, calc(100% - 32px));
  margin: auto;
  overflow-wrap: anywhere;
}
#outlook-modal .modal-heading h2 {
  min-width: 0;
}
#outlook-modal .modal-heading button {
  flex-shrink: 0;
}
@media (max-width: 540px) {
  #outlook-modal .modal-heading h2 {
    font-size: 24px;
  }
}
#panel-greeting {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .welcome-note {
    flex-basis: 200px;
  }
}
@media (max-width: 760px) {
  .intro {
    align-items: flex-start;
  }
  .welcome-note {
    display: none;
  }
  .header-inner {
    padding: 18px 24px;
  }
  main {
    padding: 32px 24px;
  }
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .day select {
    font-size: 16px;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .day .dropdown-control {
    font-size: 16px;
  }
  .outlook-columns,
  .outlook-timeline {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .header-inner {
    padding: 16px;
  }
  .brand {
    gap: 10px;
    min-width: 0;
  }
  .brand > div {
    min-width: 0;
  }
  .brand strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .brand small {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 13px;
  }
  .login-card .brand-icon {
    width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 19px;
  }
  main {
    padding: 28px 16px;
  }
  .planner {
    padding: 18px;
  }
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .day select {
    font-size: 16px;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1 1 auto;
    font-size: 14px;
  }
  .actions .primary {
    flex-basis: 100%;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-card {
    padding: 28px;
  }
  .profile-card {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
  .profile-card > div:first-child {
    flex: auto;
  }
  .assessment {
    flex-basis: auto;
    width: 100%;
  }
  .intro {
    padding-bottom: 8px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .modal-actions button {
    width: 100%;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .outlook {
    padding: 20px;
  }
  .outlook-columns,
  .outlook-timeline {
    grid-template-columns: 1fr;
  }
  .account-fields {
    grid-template-columns: 1fr;
  }
  .account-fields .wide {
    grid-column: auto;
  }
  .disclosure-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .account-menu-button {
    padding: 11px;
    font-size: 13px;
  }
}
@media (max-width: 540px) {
  .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .day {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: center;
    padding: 14px;
  }
  .day label {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: 13px;
  }
  .day-icon {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 24px;
    line-height: 1;
  }
  .day select,
  .day .dropdown {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
  .day .dropdown-control {
    min-height: 48px;
    padding: 10px 12px;
  }
  .day .execution-controls {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    margin-top: 0;
    padding-top: 12px;
  }
  .day .execution-controls small {
    overflow-wrap: break-word;
  }
  .day .execution-controls button {
    min-height: 44px;
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: white;
    color: #222;
    font-size: 10pt;
    overflow: visible !important;
  }
  header,
  .toolbar,
  .saved,
  footer,
  .intro .eyebrow,
  .welcome-note,
  .section-heading {
    display: none !important;
  }
  .intro {
    display: block;
    padding: 0;
  }
  .profile-card {
    background: white;
  }
  .assessment li + li,
  .outlook li + li {
    margin-top: 4px;
  }
  dialog,
  #edit-profile {
    display: none !important;
  }
  body:has(#app:not([hidden])) #outlook-modal {
    display: block !important;
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 16px 0 0;
    border: 0;
    transform: none !important;
    opacity: 1 !important;
  }
  #outlook-modal .modal-heading button {
    display: none !important;
  }
  .profile-card {
    padding: 12px;
    margin-top: 12px;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .intro h1 {
    font-size: 22pt;
  }
  .intro p {
    margin-bottom: 8px;
  }
  .planner {
    padding: 12px;
    margin-top: 12px;
  }
  .card {
    box-shadow: none;
    border-radius: 8px;
  }
  .week {
    margin-top: 12px;
    break-inside: avoid;
  }
  .week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .day {
    display: block;
    padding: 8px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .day label {
    margin-bottom: 6px;
  }
  .day-icon {
    font-size: 16pt;
    margin-bottom: 5px;
  }
  .day select {
    display: none;
  }
  .print-treatment {
    display: block;
    text-align: center;
    font-size: 8pt;
  }
  .dropdown {
    display: none !important;
  }
  .disclosure-heading button,
  .outlook-preview {
    display: none !important;
  }
  #assessment-details[hidden],
  #outlook-content[hidden] {
    display: block !important;
  }
  #assessment-details,
  #outlook-content {
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
  }
  .summary-section {
    margin-top: 16px;
    break-inside: avoid;
  }
  .summary-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .summary-item {
    padding: 10px;
  }
  .summary-top {
    margin-bottom: 4px;
  }
  .summary-top strong {
    font-size: 18pt;
  }
  .dot {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .outlook {
    background: white;
    padding: 14px;
  }
  .outlook h2,
  .outlook h3 {
    break-after: avoid;
  }
  .outlook-columns {
    display: block;
  }
  .outlook-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .outlook-step {
    break-inside: avoid;
  }
  .outlook details {
    display: none;
  }
}
.routine-settings {
  display: grid;
  gap: 18px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.routine-settings summary,
.routine-card summary,
.smooth-details > summary {
  cursor: pointer;
  font-weight: 800;
  padding: 10px 0;
}
.routine-settings details > div,
.routine-card details > div {
  padding-top: 12px;
}
.routine-card {
  margin-top: 24px;
  padding: 28px;
}
.routine-card h2 {
  font-size: 25px;
}
.routine-card p {
  line-height: 1.8;
}
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.routine-card > h2 {
  margin-bottom: 12px;
}
.routine-card > p {
  margin-bottom: 20px;
}
#diary-empty {
  margin-top: 16px;
  margin-bottom: 0;
}
.care-modal {
  width: min(920px, calc(100% - 32px));
  overflow-wrap: anywhere;
}
.care-modal > .routine-card {
  margin-top: 20px;
  box-shadow: none;
}
.care-modal .modal-heading h2 {
  margin-bottom: 8px;
  min-width: 0;
}
.care-modal .modal-heading button {
  flex-shrink: 0;
}
.care-modal > .muted {
  line-height: 1.7;
}
@media (max-width: 640px) {
  .care-modal {
    padding: 20px;
  }
  .care-modal > .routine-card {
    padding: 18px;
  }
  .care-modal .modal-heading h2 {
    font-size: 24px;
  }
}
#diary-section > details {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.routine-settings summary,
.routine-card summary,
.smooth-details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.routine-settings summary::-webkit-details-marker,
.routine-card summary::-webkit-details-marker,
.smooth-details > summary::-webkit-details-marker {
  display: none;
}
.routine-settings summary::before,
.routine-card summary::before,
.smooth-details > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform .22s ease;
}
.routine-settings details[open] > summary::before,
.routine-card details[open] > summary::before,
.smooth-details[open] > summary::before {
  transform: rotate(45deg);
}
.routine-card details[data-expanded=false] > summary::before,
.smooth-details[data-expanded=false] > summary::before {
  transform: rotate(-45deg);
}
.smooth-details > .smooth-details-body {
  padding-top: 0;
}
.smooth-details-inner {
  padding-top: 12px;
}
.check-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin: 0;
}
.check-chip input,
.check-line input {
  width: auto;
  flex-shrink: 0;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-field {
  max-width: 300px;
}
.date-field input {
  min-height: 48px;
}
.adherence {
  background: var(--lavender);
  padding: 14px 18px;
  border-radius: 12px;
  line-height: 1.7;
}
.execution-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid #ffffff90;
}
.execution-controls button {
  font-size: 12px;
  padding: 6px 8px;
  min-height: 36px;
}
.execution-controls small {
  width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.day-completed {
  box-shadow: inset 0 0 0 2px #6b8975;
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid #958697;
  border-radius: 12px;
  background: var(--field);
  padding: 12px;
  color: var(--text);
  font: inherit;
}
.notes-grid,
.diary-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.notes-grid > div,
.diary-fields > div {
  min-width: 0;
}
.diary-fields {
  margin: 24px 0;
}
.diary-fields select {
  width: 100%;
  min-height: 48px;
}
#diary-modal {
  overflow-wrap: anywhere;
}
#diary-modal .modal-heading h2 {
  min-width: 0;
}
#diary-modal .modal-heading button {
  flex-shrink: 0;
}
#diary-form {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
#diary-form > *,
.diary-field {
  min-width: 0;
}
#diary-form > p,
#diary-form .diary-fields {
  margin: 0;
}
#diary-scale-help {
  line-height: 1.7;
}
#diary-form .diary-fields > div {
  display: flex;
  flex-direction: column;
}
#diary-form .diary-fields label {
  flex: 1;
}
#diary-form input,
#diary-form textarea {
  display: block;
  font: inherit;
}
#diary-form #diary-date {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}
#diary-date::-webkit-date-and-time-value {
  min-height: 24px;
  text-align: left;
}
#diary-date::-webkit-datetime-edit {
  display: inline-flex;
  align-items: center;
  padding: 0;
  min-height: 24px;
}
#diary-date::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
#diary-date::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
#diary-form textarea {
  min-height: 110px;
}
#diary-photo {
  padding: 10px;
  font-size: 14px;
}
#diary-photo::file-selector-button {
  margin-right: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--lavender);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
#existing-photo-note {
  margin: 0;
  font-weight: 600;
}
#remove-diary-photo {
  width: 19px;
  height: 19px;
  padding: 0;
  flex: 0 0 19px;
  accent-color: var(--primary);
}
#diary-form .modal-actions {
  margin-top: 0;
}
@media (max-width: 540px) {
  #diary-modal .modal-heading h2 {
    font-size: 24px;
  }
}
.diary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.diary-entry {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.diary-entry img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
}
.diary-chart {
  margin-top: 24px;
}
.diary-chart svg {
  width: 100%;
  height: auto;
}
.diary-chart text {
  font: 13px "Nunito", sans-serif;
  fill: var(--text);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.undo-toast {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(540px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  box-shadow: 0 8px 32px #34263f30;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.undo-toast span {
  flex: 1;
}
.undo-toast button {
  padding: 8px 10px;
}
#confirm-modal {
  max-width: 480px;
}
.reassessment-card {
  background: var(--lavender);
}
@media (max-width: 640px) {
  .routine-card,
  .notice-card {
    padding: 22px;
  }
  #signup-form {
    grid-template-columns: 1fr;
  }
  .notes-grid,
  .diary-fields,
  .diary-list {
    grid-template-columns: 1fr;
  }
  .undo-toast {
    flex-wrap: wrap;
  }
  .undo-toast span {
    flex-basis: 100%;
  }
}
@media print {
  .routine-settings,
  .execution-controls,
  .undo-toast,
  #diary-section,
  #reminders-section,
  #reassessment-card,
  #routine-status,
  #notes-section {
    display: none !important;
  }
}

/* web/pages.css */
.login-modal {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border-radius: 28px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.login-modal .login-card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px;
  border: 0;
  box-shadow: none;
}
.login-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
}
.login-modal .brand-icon {
  margin-right: 48px;
}
.page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #f5f2ee;
  color: #34303b;
  display: none;
}
.page-loader[open] {
  display: grid;
  place-items: center;
}
.page-loader::backdrop {
  background: #f5f2ee;
}
.loading-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 20px;
}
.loading-content img {
  object-fit: contain;
  animation: flohair-loading-turn 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
.loading-brand {
  font-family:
    Lora,
    Georgia,
    serif;
  font-size: 32px;
}
.loading-content p {
  margin: 0;
  color: #70647b;
  font-size: 15px;
  max-width: 300px;
}
@keyframes flohair-loading-turn {
  0%, 18% {
    transform: rotate(0deg);
  }
  72%, 100% {
    transform: rotate(360deg);
  }
}
.panel-error {
  max-width: 560px;
  margin: 12vh auto;
  padding: 32px;
}
.panel-error a {
  display: inline-block;
  margin: 20px;
}
.presentation-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.care-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.day-icon .care-icon {
  display: block;
  margin: auto;
}
.home-week strong,
.notes-grid label,
#care-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-week .care-icon,
.notes-grid .care-icon,
#care-tabs .care-icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 480px) {
  .login-modal .login-card {
    padding: 26px 22px;
  }
  .login-modal h2 {
    font-size: 28px;
    padding-right: 38px;
  }
  .panel-error {
    margin: 12vh 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-content img {
    animation: none;
  }
}

/* web/guide.css */
.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.guide-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.guide-nav a {
  color: var(--primary-dark);
}
.guide-nav .home-brand {
  text-decoration: none;
}
.guide-wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 32px 64px;
}
.guide-hero {
  padding: 56px 0 36px;
  max-width: 820px;
}
.guide-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.025em;
}
.guide-lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
}
.guide-meta {
  font-size: 13px;
  color: var(--muted);
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}
.guide-content {
  min-width: 0;
}
.guide-content section {
  scroll-margin-top: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.guide-content h2 {
  font-size: 29px;
}
.guide-content h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.guide-content p,
.guide-content li {
  line-height: 1.85;
}
.guide-content a {
  color: var(--primary-dark);
  text-underline-offset: 3px;
}
.guide-content ol,
.guide-content ul {
  padding-left: 24px;
}
.guide-content li + li {
  margin-top: 12px;
}
.guide-toc {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  position: sticky;
  top: 24px;
}
.guide-toc h2 {
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.guide-toc a {
  display: block;
  margin: 14px 0;
  color: var(--primary-dark);
  text-underline-offset: 3px;
  font-size: 14px;
}
.guide-care {
  padding: 24px;
  margin: 16px 0;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.guide-care h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-care p:last-child {
  margin: 0;
}
.guide-hydration {
  background: var(--hydration);
}
.guide-nutrition {
  background: var(--nutrition);
}
.guide-reconstruction {
  background: var(--reconstruction);
}
.guide-example {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 20px 0;
}
.guide-example table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
  font-size: 14px;
}
.guide-example caption {
  text-align: left;
  padding: 16px;
  font-weight: 800;
  background: var(--lavender);
}
.guide-example th,
.guide-example td {
  text-align: left;
  padding: 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.guide-example th {
  font-weight: 800;
}
.guide-example tr > :first-child {
  width: 26%;
}
.guide-note {
  padding: 20px;
  background: var(--lavender);
  border-radius: 16px;
}
.guide-cta {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin: 24px 0;
}
.guide-cta .home-button {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
}
.guide-cta .home-primary {
  background: var(--primary);
  color: white;
}
.guide-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.home-guide {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.home-guide h2 {
  font-size: 30px;
}
.home-guide a {
  display: inline-block;
  font-weight: 800;
}
@media (max-width: 800px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-toc {
    position: static;
    grid-row: 1;
  }
  .guide-toc a {
    display: inline-block;
    margin: 6px 12px 6px 0;
  }
  .guide-hero {
    padding-top: 36px;
  }
}
@media (max-width: 480px) {
  .guide-nav {
    padding-top: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .guide-nav nav {
    gap: 16px;
  }
  .guide-wrap {
    padding: 0 20px 40px;
  }
  .guide-hero h1 {
    font-size: 34px;
  }
  .guide-lead {
    font-size: 17px;
  }
  .guide-care,
  .guide-cta {
    padding: 20px;
  }
  .guide-content h2 {
    font-size: 26px;
  }
  .home-guide {
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .guide-example th,
  .guide-example td {
    padding: 12px 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}
