/* Everyday tools share the main app shell, navigation and accessibility settings. */
.everyday .daily-agenda { list-style:none; padding:0; margin:0; }
.everyday .daily-agenda li { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.everyday .daily-agenda li>div { flex:1; min-width:0; }
.everyday .daily-agenda strong { display:block; font-size:1.05rem; }
.everyday .daily-agenda small { display:block; margin-top:4px; }
.everyday .daily-agenda .is-done strong { color:var(--muted); text-decoration:line-through; }
.everyday .daily-check { flex:0 0 48px; width:48px; border-radius:50%; background:#eef8f5; border:1px solid #a9cfc2; color:#075c54; font-size:1.5rem; }
.everyday .daily-check[aria-pressed="true"] { background:#075c54; color:white; }
.everyday .daily-empty { padding:12px 0; }
.everyday .daily-progress { display:grid; gap:8px; color:#075c54; font-weight:700; }
.everyday progress { width:100%; height:9px; accent-color:#128f85; }
.everyday .daily-week { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; padding-top:8px; }
.everyday .daily-week span { text-align:center; background:#f3f6f4; border-radius:12px; padding:8px 0; }
.everyday .daily-week b { display:block; color:#81928a; }
.everyday .daily-week .has-record { background:#e1f6f3; }
.everyday .daily-week .has-record b { color:#075c54; }
.everyday .daily-date-nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.everyday .daily-date-nav label { flex:1; min-width:140px; font-size:.85rem; }
.everyday .daily-date-nav input { width:100%; }
.everyday .daily-form-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.everyday .daily-form-pair label { min-width:0; }
.everyday select, .everyday input[type="date"], .everyday input[type="time"], .everyday input[type="text"], .everyday input[name="title"] { max-width:100%; box-sizing:border-box; min-height:48px; border:1px solid #aac7bc; border-radius:12px; padding:10px; color:#16231d; background:white; font:inherit; }
.everyday select:focus-visible { outline:3px solid #d97706; outline-offset:3px; }
.everyday .daily-presets { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.everyday .daily-chip { background:#eef8f5; border:1px solid #b2cfc3; border-radius:24px; padding:8px 12px; color:#075c54; }
.everyday .daily-weekdays, .everyday .daily-moods { border:0; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.everyday [hidden] { display:none !important; }
.everyday fieldset legend { font-weight:700; margin-bottom:10px; }
.everyday .daily-weekdays label, .everyday .daily-moods label, .everyday .daily-share-select { display:flex; align-items:center; gap:6px; min-height:48px; cursor:pointer; }
.everyday .daily-weekdays label, .everyday .daily-moods label { border:1px solid #c9dcd3; border-radius:12px; padding:6px 10px; background:#fff; }
.everyday input[type="checkbox"], .everyday input[type="radio"] { width:22px; height:22px; min-height:22px; accent-color:#075c54; flex-shrink:0; }
.everyday .daily-reminder-box, .everyday .daily-share-preview { border:1px solid #b8d6c9; background:#f3faf6; border-radius:20px; padding:20px; margin:20px 0; }
.everyday .daily-share-preview label { display:flex; align-items:center; gap:8px; min-height:48px; }
.everyday .daily-share-preview pre { font:inherit; white-space:pre-wrap; overflow-wrap:anywhere; background:white; padding:16px; border-radius:12px; border:1px solid var(--line); }
.everyday .daily-inline-note { border-left:3px solid #128f85; padding:12px 16px; margin:20px 0; background:#eef8f5; }
.everyday .daily-record-head { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; align-items:center; }
.everyday .daily-photo { width:100%; max-height:360px; object-fit:contain; border-radius:16px; background:#eef2ef; margin:12px 0; }
.everyday .journal-text { white-space:pre-wrap; }
.everyday .button-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.everyday .button-row button { flex:1 1 auto; }
@media(max-width:380px) { .everyday .daily-form-pair { grid-template-columns:1fr; } .everyday .daily-week {gap:3px;} }
.everyday {
  --green: var(--brand-dark, #075c54);
  --green-mid: var(--brand, #128f85);
  --green-soft: var(--brand-soft, #e1f6f3);
  --green-tint: #eef8f5;
  /* Inherit shared --line and --muted; self references invalidate CSS tokens. */
  --surface: #ffffff;
  --surface-subtle: #f7fbf9;
  --shadow-card: 0 10px 28px rgba(10, 56, 48, 0.07), 0 2px 6px rgba(10, 56, 48, 0.04);
  --shadow-soft: 0 4px 14px rgba(10, 56, 48, 0.05);
  color: var(--ink, #16231d);
}

.everyday button,
.everyday p,
.everyday h1,
.everyday h2,
.everyday summary,
.everyday label {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.everyday .dose-head > div,
.everyday .dose-meta > div,
.everyday .tool-copy {
  min-width: 0;
}

.everyday button,
.everyday input,
.everyday textarea {
  font: inherit;
}

.everyday button,
.everyday a,
.everyday input,
.everyday textarea {
  touch-action: manipulation;
}

.everyday button,
.everyday a {
  -webkit-tap-highlight-color: transparent;
}

.everyday button {
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.everyday button:active:not(:disabled) {
  transform: translateY(1px);
}

.everyday button:disabled {
  cursor: default;
  opacity: 0.65;
}

.everyday a {
  color: inherit;
}

.everyday button:focus-visible,
.everyday a:focus-visible,
.everyday input:focus-visible,
.everyday textarea:focus-visible,
.everyday summary:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 3px;
}

.everyday h1 {
  font-size: clamp(1.65rem, 4.8vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.24;
  margin: 0.2rem 0 0.55rem;
  color: #10241e;
}

.everyday h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  color: #122821;
}

.everyday p {
  line-height: 1.62;
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.everyday small,
.everyday .muted {
  color: var(--muted);
  line-height: 1.55;
}

.everyday .eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

/* Home everyday card inside #today and #life */
.everyday.everyday-home-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(18, 143, 133, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(225, 246, 243, 0.72), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%);
  box-shadow: var(--shadow-card);
}

.everyday .everyday-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.everyday .everyday-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid rgba(7, 92, 84, 0.14);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.everyday .everyday-local-badge .caremo-icon {
  width: 15px;
  height: 15px;
}

.everyday .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.everyday .tool {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid #d7e5df;
  border-radius: 18px;
  padding: 15px 16px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(10, 56, 48, 0.04);
  transition: transform 0.15s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.everyday .tool:hover {
  border-color: rgba(18, 143, 133, 0.45);
  background: #fbfefd;
  box-shadow: 0 8px 20px rgba(10, 56, 48, 0.08);
  transform: translateY(-1px);
}

.everyday .tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e3f6f2 0%, #effaf7 100%);
  color: var(--green);
  border: 1px solid rgba(18, 143, 133, 0.16);
}

.everyday .tool-icon .caremo-icon {
  width: 22px;
  height: 22px;
}

.everyday .tool-copy {
  display: grid;
  gap: 2px;
}

.everyday .tool-copy strong {
  font-size: 1rem;
  font-weight: 780;
  color: #132821;
  line-height: 1.3;
}

.everyday .tool-copy small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.everyday .tool-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b857a;
}

.everyday .tool-arrow .caremo-icon {
  width: 18px;
  height: 18px;
}

.everyday .everyday-home-doses {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e3ece8;
}

.everyday .everyday-home-doses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.everyday .everyday-home-doses-head strong {
  font-size: 0.92rem;
  color: #203830;
}

.everyday .text-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.everyday .text-link:hover {
  text-decoration: underline;
}

/* Standalone panel routes (#meds, #life/journal, #life/play) */
.everyday.everyday-panel {
  display: grid;
  gap: 16px;
  padding-bottom: 12px;
}

.everyday .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d5e2dc;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(10, 56, 48, 0.04);
}

.everyday .back:hover {
  background: var(--green-tint);
  border-color: rgba(7, 92, 84, 0.3);
}

.everyday .everyday-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 143, 133, 0.14), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
  border: 1px solid rgba(18, 143, 133, 0.22);
  box-shadow: var(--shadow-card);
}

.everyday .everyday-hero-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-mid) 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(7, 92, 84, 0.22);
}

.everyday .everyday-hero-badge .caremo-icon {
  width: 26px;
  height: 26px;
}

.everyday .section,
.everyday .everyday-card-section,
.everyday .reminder-card,
.everyday .journal-form-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #d8e4de;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.everyday .section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.everyday .section-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid rgba(7, 92, 84, 0.15);
}

.everyday .section-icon .caremo-icon {
  width: 21px;
  height: 21px;
}

.everyday .section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.everyday .count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.everyday .status-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4faf7;
  border: 1px solid #d5e6de;
  color: #18362e;
  font-weight: 650;
  margin: 10px 0 12px;
}

.everyday .notice {
  border-left: 4px solid #c27815;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e6;
  color: #5b3806;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.everyday .options,
.everyday .actions,
.everyday .days {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.everyday .actions > * {
  flex: 1 1 135px;
}

.everyday .reminder-actions {
  margin: 10px 0 6px;
  align-items: center;
}

.everyday .primary,
.everyday .secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 760;
  text-decoration: none;
  border: 1px solid var(--green);
  min-height: 50px;
}

.everyday .primary {
  color: #ffffff;
  background: linear-gradient(180deg, #0b6e65 0%, var(--green) 100%);
  box-shadow: 0 4px 12px rgba(7, 92, 84, 0.18);
}

.everyday .primary:hover:not(:disabled) {
  background: #064d46;
}

.everyday .secondary {
  color: var(--green);
  background: #ffffff;
  border-color: #abc7bc;
}

.everyday .secondary:hover:not(:disabled) {
  background: var(--green-tint);
  border-color: var(--green);
}

/* Dose cards */
.everyday .dose-list {
  display: grid;
  gap: 12px;
}

.everyday .dose {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d7e4de;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 56, 48, 0.03);
}

.everyday .dose.done {
  background: #f2f8f5;
  border-color: #c5ddd2;
}

.everyday .dose-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.everyday .dose-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.everyday .dose-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  color: var(--green);
}

.everyday .dose-icon .caremo-icon {
  width: 20px;
  height: 20px;
}

.everyday .dose-time {
  display: block;
  font-size: 1.25rem;
  font-weight: 850;
  color: #0e2821;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.everyday .dose-name {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: #243d35;
}

.everyday .state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eef4f1;
  color: #496157;
  border: 1px solid #d3e0da;
}

.everyday .state[data-status="taken"] {
  background: #def4ec;
  color: #065a51;
  border-color: #a9decb;
}

.everyday .state[data-status="skipped"] {
  background: #fff3dc;
  color: #7d4808;
  border-color: #edd2a4;
}

.everyday .dose-undo-row {
  display: flex;
  justify-content: flex-end;
  border-top: 1px dashed #cfe0d8;
  padding-top: 8px;
}

/* Details & Forms */
.everyday details.everyday-details {
  border-radius: 20px;
  border: 1px solid #d7e4de;
  background: #ffffff;
  padding: 6px 18px;
  box-shadow: var(--shadow-soft);
  margin: 0;
}

.everyday details.everyday-details[open] {
  padding-bottom: 18px;
}

.everyday details.nested-details {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 14px;
  background: #f6faf8;
  border: 1px solid #dce8e2;
}

.everyday details.nested-details[open] {
  padding-bottom: 14px;
}

.everyday summary {
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
  font-weight: 780;
  color: #142b24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.everyday summary::-webkit-details-marker {
  display: none;
}

.everyday summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 800;
  font-size: 1.05rem;
}

.everyday details[open] > summary::after {
  content: "−";
}

.everyday .record-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.everyday .journal-form-card {
  margin-top: 0;
}

.everyday label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #1b332b;
}

.everyday input[type="text"],
.everyday input[type="time"],
.everyday textarea {
  min-width: 0;
  width: 100%;
  border: 1.5px solid #adc2b7;
  background: #fcfefd;
  border-radius: 14px;
  padding: 13px 14px;
  color: #142a24;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.everyday input[type="text"]:focus,
.everyday input[type="time"]:focus,
.everyday textarea:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 143, 133, 0.14);
}

.everyday textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

.everyday fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.everyday legend {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1b332b;
}

.everyday .days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.everyday .days label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  font-size: 0.85rem;
  font-weight: 750;
  border: 1.5px solid #ceddd5;
  background: #f9fcfa;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
}

.everyday .days label:has(input:checked) {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
}

.everyday .days input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  margin: 0;
}

.everyday .empty {
  padding: 24px 18px;
  border-radius: 16px;
  background: #f7fbf9;
  border: 1px dashed #c8dbd2;
  text-align: center;
}

.everyday .text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 6px;
}

.everyday .record-list {
  display: grid;
  gap: 10px;
}

.everyday .record {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dce8e2;
  background: #fbfefd;
  overflow-wrap: anywhere;
}

.everyday .record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.everyday .record strong {
  display: block;
  color: #142a24;
  margin-bottom: 2px;
}

.everyday .journal-record small {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 750;
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.everyday .journal-record p {
  margin: 4px 0 0;
  color: #182e28;
  font-size: 1rem;
}

.everyday .history {
  font-size: 0.9rem;
}

/* Memory Game (#life/play) */
.everyday .play-board-card {
  display: grid;
  gap: 16px;
}

.everyday .play-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f3f9f6;
  border: 1px solid #d6e6de;
}

.everyday .play-status-bar p[role="status"] {
  margin: 0;
  font-weight: 780;
  color: var(--green);
}

.everyday .memory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
}

.everyday .memory button {
  min-width: 0;
  height: 82px;
  background: linear-gradient(180deg, #eaf6f1 0%, #dceee7 100%);
  border: 1.5px solid #a6c9bb;
  border-radius: 18px;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(7, 92, 84, 0.08);
}

.everyday .memory button:hover:not(:disabled) {
  border-color: var(--green);
  transform: translateY(-1px);
}

.everyday .memory button[data-open="true"] {
  background: linear-gradient(180deg, #fff9e6 0%, #ffefbf 100%);
  border-color: #d99b26;
  color: #6b4200;
  box-shadow: 0 6px 14px rgba(180, 114, 0, 0.14);
}

.everyday .memory button:disabled {
  background: linear-gradient(180deg, #d2ece2 0%, #bfe2d5 100%);
  border-color: #88beaa;
  color: #0b4a42;
  opacity: 1;
}

.everyday .memory-next-btn {
  width: 100%;
}

.everyday .play-complete-banner {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-tint);
  border: 1px solid #b8dfd3;
  color: var(--green);
  font-weight: 750;
  text-align: center;
}

@media (max-width: 420px) {
  .everyday .everyday-hero {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  .everyday .everyday-hero-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .everyday .days {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  }

  .everyday .memory {
    gap: 8px;
  }

  .everyday .memory button {
    height: 70px;
    font-size: 1.45rem;
  }
}

.everyday .everyday-hero.daily-text-hero { display:block; }

.everyday .daily-date-nav { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; }
.everyday .daily-date-nav label { min-width:0; }
.everyday .daily-date-nav button { width:auto; padding:8px; }
.everyday .daily-date-nav button[data-daily-action="today"] { grid-column:1/-1; justify-self:center; min-width:80px; }
.everyday .daily-agenda .text-button { width:auto; flex:0 0 auto; }
.everyday .daily-check { max-width:48px; padding:4px; }

.daily-journal-empty img { display:block; width:min(100%,240px); height:auto; aspect-ratio:3/2; object-fit:cover; margin:0 auto 1rem; border-radius:14px; }
