/* Today reference correction: editorial capture, open operational rows. */
.today-only[hidden] {
  display: none !important;
}

.today-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: start;
  gap: clamp(32px, 5.5vw, 88px);
  margin: 0 0 58px;
}

.today-welcome {
  min-width: 0;
}

.today-editorial-date {
  display: block;
  margin: 0 0 15px;
  color: var(--muted);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.today-welcome h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font: 400 72px/1 var(--serif);
  letter-spacing: -.01em;
}

.today-welcome > p {
  margin: 15px 0 0;
  color: var(--muted);
  font: italic 400 24px/1.2 var(--serif);
}

.today-provenance {
  min-width: 0;
  margin-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.today-provenance-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 78px;
  padding: 12px 0 0;
}

.today-provenance-top:has(.today-sync-summary:not([hidden]))::before {
  content: var(--today-status-label, "HOUSEHOLD STATUS");
  margin: 0 0 13px;
  color: var(--muted);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .14em;
}

.today-sync-summary {
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 500 30px/1.1 var(--serif);
  white-space: normal;
}

.today-provenance-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.capture-card.today-only {
  display: block;
  box-sizing: border-box;
  min-height: 314px;
  margin: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-left: 4px solid var(--moss);
  border-radius: 0 20px 20px 0;
  background: var(--paper);
}

.capture-card.today-only:has(#captureStatus:not(:empty)) {
  min-height: 366px;
}

.capture-index {
  position: absolute;
  top: 46px;
  left: 25px;
  color: var(--muted);
  font: 500 10px/1 var(--sans);
  letter-spacing: .12em;
}

.capture-main {
  position: relative;
  min-width: 0;
  padding: 39px 28px 30px 25px;
}

.capture-canonical-greeting {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.capture-main .capture-prompt {
  margin: 0 0 13px 45px;
  color: var(--ink);
  font: 500 36px/1.1 var(--serif);
}

.capture-main #captureInput {
  display: block;
  width: calc(100% - 45px);
  min-height: 96px;
  height: 96px;
  margin: 0 0 24px 45px;
  padding: 6px 0;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 19px/1.55 var(--sans);
}

.capture-main #captureInput::placeholder {
  color: var(--muted);
  opacity: 1;
}

.capture-main #captureInput:focus {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
  box-shadow: none;
}

.capture-main .capture-actions.today-capture-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 2px 0 0 -5px;
}

.capture-more {
  position: relative;
  flex: 0 0 auto;
}

.capture-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid var(--moss);
  border-radius: 50px;
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}

.capture-more > summary::-webkit-details-marker {
  display: none;
}

.capture-more > summary .line-icon {
  width: 20px;
  height: 20px;
}

.capture-more > summary span,
.capture-main .capture-mic > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.capture-more[open] > summary {
  background: var(--sage);
}

.capture-more-panel {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 5px 14px rgba(32, 35, 31, .07);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.capture-menu-close {
  justify-self: end;
  width: 44px;
  min-height: 44px;
  margin: -10px -10px -8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.capture-menu-close:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

.capture-main .capture-submit:has(#captureReviewLabel:not([hidden])) {
  width: auto;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 16px;
  border-radius: 50px;
}

#captureReviewLabel {
  font-size: 14px;
}

#captureReviewLabel[hidden] {
  display: none;
}

.capture-privacy-copy {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.capture-more-panel .capture-file,
.capture-more-panel .text-button {
  justify-content: flex-start;
  min-height: 48px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--moss-dark);
  font-size: 14px;
  text-decoration: none;
  white-space: normal;
}

.capture-main .capture-mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.capture-main .capture-mic.listening {
  border-color: var(--moss);
  background: var(--sage);
  color: var(--moss-dark);
  box-shadow: 0 0 0 2px rgba(86, 100, 84, .13);
}

.capture-main .capture-mic .line-icon {
  width: 21px;
  height: 21px;
}

.capture-main .capture-submit {
  display: grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b9bdb5;
  color: var(--paper);
  font-size: 26px;
  font-weight: 400;
}

.capture-main .capture-submit:disabled {
  background: #b9bdb5;
  color: var(--paper);
  opacity: 1;
}

.capture-main .capture-submit:not(:disabled) {
  background: var(--moss-dark);
}

#captureStatus:not(:empty) {
  margin: 20px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

#captureStatus:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--moss);
}

#today .today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .62fr);
  gap: clamp(36px, 5.5vw, 86px);
  margin-top: 94px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

#today .today-main,
#today .today-side {
  gap: 42px;
}

#today .today-section-head {
  align-items: baseline;
  margin: 0 0 20px;
}

#today .today-section-head h2 {
  color: var(--muted);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

#today .today-section-head h2 span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0;
}

#today .today-section-head .today-link {
  min-height: 44px;
}

#today .today-list {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#today .today-calendar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 20px 0 8px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 13px/1.4 var(--sans);
  text-align: left;
}

#today .today-list > .quiet-empty {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

#today .today-attention-row,
#today .today-todo-row,
#today .today-agenda-row {
  gap: 16px;
  min-height: 78px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

#today .today-icon,
#today .today-initials {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  color: transparent;
}

#today .today-icon .line-icon {
  display: none;
}

#today .today-row-body strong {
  font-size: 18px;
}

#today .today-agenda-row .today-row-body button {
  min-height: 44px;
  font-size: 18px;
  line-height: 1.35;
}

#today .today-row-body p,
#today .today-row-body small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

#today .today-attention-row .card-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font-size: 13px;
}

#today .today-agenda-row time {
  width: 56px;
  color: var(--muted);
  font-size: 14px;
}

#today .today-dot,
#today .today-dot.plans {
  width: 6px;
  height: 6px;
  background: var(--moss);
}

#today .today-outro {
  display: none;
}

@media (max-width: 767px) {
  .today-editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 0 34px;
  }

  .today-editorial-date {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .today-welcome h1 {
    font-size: clamp(40px, 13.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -.01em;
  }

  .today-welcome > p {
    margin-top: 12px;
    font-size: 23px;
  }

  .today-provenance {
    display: block;
    margin-top: 0;
  }

  .today-provenance-top {
    min-height: 0;
    padding-top: 10px;
  }

  .today-provenance-top:has(.today-sync-summary:not([hidden]))::before {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .today-sync-summary {
    font-size: 22px;
  }

  .today-provenance-note {
    margin: 5px 0 10px;
    font-size: 13px;
  }

  .capture-card.today-only {
    min-height: 292px;
  }

  .capture-card.today-only:has(#captureStatus:not(:empty)) {
    min-height: 346px;
  }

  .capture-main {
    padding: 28px 20px 22px 17px;
  }

  .capture-index {
    display: none;
  }

  .capture-main .capture-prompt {
    margin: 0 0 11px 12px;
    font-size: clamp(30px, 8vw, 32px);
  }

  .capture-main #captureInput {
    width: calc(100% - 12px);
    margin-left: 12px;
    min-height: 82px;
    height: 82px;
    margin-bottom: 18px;
    font: 400 16px/1.55 var(--sans);
  }

  .capture-main .capture-actions.today-capture-actions {
    gap: 8px;
    margin-left: 0;
  }

  .capture-more > summary {
    width: 52px;
    min-height: 52px;
    padding: 0;
  }

  .capture-main .capture-mic {
    gap: 0;
    padding: 0;
  }

  .capture-main .capture-submit {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .capture-main .capture-submit:has(#captureReviewLabel:not([hidden])) {
    gap: 6px;
    padding: 0 10px;
  }

  #captureStatus:not(:empty) {
    margin-left: 0;
  }

#today .today-section-head h2 {
    font-size: 12px;
  }

#today .today-attention-row,
#today .today-todo-row,
#today .today-agenda-row {
    min-height: 70px;
  }

#today .today-outro {
    margin: 30px 0 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .capture-main .capture-submit,
  .capture-more > summary {
    transition: none;
  }
}

/* Restored desktop Today proportions. These overrides deliberately stop at
   the 768px breakpoint; phone geometry and interactions remain as authored. */
@media (min-width: 768px) {
  #appShell:has(#today.active-page) .today-editorial {
    grid-template-columns: minmax(240px, 304px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    min-height: 222px;
    margin-top: 0;
    margin-bottom: 58px;
  }

  #appShell:has(#today.active-page) .today-welcome {
    max-width: none;
  }

  #appShell:has(#today.active-page) .today-welcome h1 {
    max-width: 850px;
    font-size: 72px;
    line-height: 1;
  }

  #appShell:has(#today.active-page) .capture-card.today-only,
  #appShell:has(#today.active-page) .capture-card.today-only:has(#captureStatus:not(:empty)) {
    min-height: 200px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  #appShell:has(#today.active-page) .capture-index {
    top: 36px;
    left: 34px;
  }

  #appShell:has(#today.active-page) .capture-main {
    padding: 28px 36px 12px 40px;
  }

  #appShell:has(#today.active-page) .capture-main .capture-prompt {
    margin: 0 0 10px 45px;
  }

  #appShell:has(#today.active-page) .capture-main #captureInput {
    width: calc(100% - 45px);
    min-height: 44px;
    height: 44px;
    margin: 0 0 14px 45px;
  }

  #appShell:has(#today.active-page) #today .today-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
    gap: 38px 64px;
    margin-top: 50px;
    padding-top: 34px;
  }

  #appShell:has(#today.active-page) #today .today-main {
    grid-column: 1;
    display: grid;
    align-content: start;
    gap: 32px;
  }

  #appShell:has(#today.active-page) #today .today-side {
    grid-column: 2;
    display: grid;
    align-content: start;
    gap: 30px;
  }

  #appShell:has(#today.active-page) #today .today-list > .quiet-empty {
    padding: 6px 0;
  }

  #appShell:has(#today.active-page) #today .today-attention-row,
  #appShell:has(#today.active-page) #today .today-todo-row,
  #appShell:has(#today.active-page) #today .today-agenda-row {
    min-height: 64px;
    padding: 14px 0;
  }

  #appShell:has(#today.active-page) #today .today-row-body strong,
  #appShell:has(#today.active-page) #today .today-agenda-row .today-row-body button {
    font-size: 16px;
  }
}

/* Today refinement: page-local paint and layout; shared navigation is untouched. */
#appShell:has(#today.active-page) .today-editorial #todayEditorialDate {
  color:var(--muted);font:400 12px/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;
}
#appShell:has(#today.active-page) .today-editorial.today-only .today-welcome h1 {
  max-width:none;font:400 56px/1.08 var(--serif);letter-spacing:-.015em;white-space:nowrap;
}
#appShell:has(#today.active-page) .today-editorial.today-only .today-welcome h1 br {display:none;}
#appShell:has(#today.active-page) .today-editorial.today-only .today-welcome h1 em {font-style:italic;}
#appShell:has(#today.active-page) .today-editorial.today-only .today-welcome > p {
  margin-top:12px;color:var(--muted);font:italic 400 22px/1.35 var(--serif);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-main {padding:26px 28px 22px;}
#appShell:has(#today.active-page) .capture-card.today-only .capture-prompt {margin:0 0 12px;font:500 30px/1.2 var(--serif);}
#appShell:has(#today.active-page) .capture-card.today-only #captureInput {width:100%;margin:0 0 14px;}
#appShell:has(#today.active-page) .capture-card.today-only .capture-actions {margin-left:0;gap:10px;align-items:center;}
#appShell:has(#today.active-page) .capture-card.today-only :is(.capture-more > summary,.capture-mic) {
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;
  border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);
}
#appShell:has(#today.active-page) .capture-card.today-only :is(.capture-more > summary,.capture-mic) > span {display:none;}
#appShell:has(#today.active-page) .capture-card.today-only .capture-more[open] > summary {
  border-color:var(--moss);outline:1px solid var(--moss);outline-offset:2px;border-radius:50%;background:transparent;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-submit {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:auto;min-width:108px;height:44px;min-height:44px;padding:0 18px;border-radius:999px;
  border:1px solid var(--moss-dark);background:var(--moss-dark);color:var(--paper);font:500 15px/1 var(--sans);
}
#appShell:has(#today.active-page) .capture-card.today-only #captureReviewLabel {display:inline !important;}
#appShell:has(#today.active-page) .capture-card.today-only .capture-more-panel {
  position:relative;left:auto;bottom:auto;z-index:1;box-sizing:border-box;
  width:100%;max-width:100%;max-height:none;
  padding:44px 0 0;border:1px solid var(--line);border-radius:12px;
  background:var(--paper);box-shadow:0 12px 32px rgba(32,35,31,.13);
  overflow:visible;overscroll-behavior:auto;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-actions.today-capture-actions {
  flex-wrap:wrap;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-more[open] {
  flex:1 1 100%;
  min-width:0;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-more-panel > :is(label.capture-file,button.text-button) {
  display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;
  width:100%;height:48px;min-height:48px;margin:0;padding:0 16px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;
  color:var(--ink);font:400 15px/1.35 var(--sans);text-align:left;text-decoration:none;
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-more-panel > :is(label.capture-file,button.text-button):hover {background:var(--ivory);}
#appShell:has(#today.active-page) .capture-card.today-only .capture-menu-close {
  position:absolute;top:8px;right:8px;display:grid;place-items:center;box-sizing:border-box;
  width:36px;height:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:50%;
  color:var(--muted);background:transparent;font:400 24px/1 var(--sans);
}
#appShell:has(#today.active-page) .capture-card.today-only .capture-privacy-copy {
  margin:0;padding:14px 16px 16px;color:var(--muted);font:400 13px/1.45 var(--sans);text-align:left;
}
#appShell:has(#today.active-page) #today .today-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.95fr);
  gap:38px 64px;
  margin-top:50px;
  padding-top:34px;
  border-top:1px solid var(--line);
  align-items:start;
}
#appShell:has(#today.active-page) #today .today-main {grid-column:1;display:grid;align-content:start;gap:32px;}
#appShell:has(#today.active-page) #today .today-side {grid-column:2;display:grid;align-content:start;gap:30px;}
#appShell:has(#today.active-page) #today .today-section {min-width:0;}
#appShell:has(#today.active-page) #today .today-section-head {
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0;padding:0 0 10px;border-bottom:1px solid var(--line);
}
#appShell:has(#today.active-page) #today .today-section-head h2 {
  display:block;margin:0;color:var(--ink);font:500 26px/1.2 var(--serif);letter-spacing:normal;text-transform:none;
}
#appShell:has(#today.active-page) #today .today-section-head h2 span {
  display:inline;width:auto;min-width:0;height:auto;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;color:var(--muted);font:400 14px/1.3 var(--sans);vertical-align:baseline;
}
#appShell:has(#today.active-page) #today :is(.today-link,.today-calendar-link,.today-connect,.today-todo-toggle) {
  width:auto;min-width:0;min-height:32px;margin:0;padding:4px 0;border:0;border-radius:0;
  background:transparent;color:var(--moss);font:500 14px/1.35 var(--sans);text-decoration:none;
}
#appShell:has(#today.active-page) #today .today-list {margin:0;border:0;}
#appShell:has(#today.active-page) #today .quiet-empty {margin:0;padding:12px 0 0;color:var(--muted);font:400 15px/1.45 var(--sans);}
#appShell:has(#today.active-page) #today :is(.today-attention-row,.today-todo-row,.today-agenda-row,.today-helper) {
  min-height:0;margin:0;padding:14px 0;border-bottom:1px solid var(--line);
}
#appShell:has(#today.active-page) #today .today-row-body {min-width:0;}
#appShell:has(#today.active-page) #today :is(.today-row-body strong,.today-agenda-row .today-row-body button) {
  font:500 17px/1.4 var(--sans);letter-spacing:normal;text-align:left;
}
#appShell:has(#today.active-page) #today :is(.today-row-body p,.today-row-body small) {
  display:block;margin:3px 0 0;color:var(--muted);font:400 14px/1.45 var(--sans);
}
#appShell:has(#today.active-page) #today .today-helper-pills small {font:400 13px/1.4 var(--sans);}
#appShell:has(#today.active-page) #today .today-next {
  margin:12px 0 0;padding:0;color:var(--muted);font:400 14px/1.45 var(--sans);
}
#appShell:has(#today.active-page) #today .today-icon {
  align-self:start;display:block;flex:none;width:7px;height:7px;min-width:7px;margin:9px 6px 0 0;
  padding:0;border:0;border-radius:50%;background:var(--moss);
}
#appShell:has(#today.active-page) #today .today-icon.plans {background:var(--oxblood);}
#appShell:has(#today.active-page) #today .today-icon svg {display:none;}
#appShell:has(#today.active-page) #today .today-todo-add-row {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#appShell:has(#today.active-page) #today #todayTodoForm {flex:1;min-width:0;margin:0;}
#appShell:has(#today.active-page) #today #todayTodoForm input {min-width:0;width:100%;}
#appShell:has(#today.active-page) #today #todayTodoToggle {flex:none;white-space:nowrap;}
#appShell:has(#today.active-page) #today [hidden] {display:none !important;}
@media(max-width:767px) {
  #appShell:has(#today.active-page) .today-editorial.today-only .today-welcome {padding-right:0;}
  #appShell:has(#today.active-page) .today-editorial.today-only .today-welcome h1 {font-size:40px;white-space:normal;}
  #appShell:has(#today.active-page) .today-editorial.today-only .today-welcome h1 br {display:block;}
  #appShell:has(#today.active-page) .today-editorial.today-only .today-welcome > p {font-size:20px;}
  #appShell:has(#today.active-page) .capture-card.today-only {min-height:232px;}
  #appShell:has(#today.active-page) .capture-card.today-only .capture-main {padding:22px 20px;}
  #appShell:has(#today.active-page) .capture-card.today-only .capture-prompt {font-size:26px;}
  #appShell:has(#today.active-page) #today .today-grid {
    grid-template-columns:minmax(0,1fr);
    gap:40px;
    margin-top:40px;
  }
  #appShell:has(#today.active-page) #today :is(.today-main,.today-side) {
    grid-column:1;
    display:grid;
    gap:28px;
  }
  #appShell:has(#today.active-page) #today .today-section-head h2 {font-size:22px;}
  #appShell:has(#today.active-page) :is(#universalAdd,#cloudHeaderStatus) {display:none !important;}
}

#appShell:has(#today.active-page) #today .today-row-body .today-helper-role {
  color: var(--muted);
  font: 400 14px/1.4 var(--sans);
}

#appShell:has(#today.active-page) #today .today-maintenance-overdue {color:var(--oxblood,#713b35)}
/* Manual capture uses a readable text button, not the circular review width. */
html[data-atelier] #appShell:has(#today.active-page) .capture-main:has(#rememberBtn[data-ai-manual-capture="true"]) {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
html[data-atelier] #appShell:has(#today.active-page) #rememberBtn[data-ai-manual-capture="true"] {
  width: max-content !important;
  max-width: 100% !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
}
html[data-atelier] #appShell:has(#today.active-page) #rememberBtn[data-ai-manual-capture="true"] #captureReviewLabel {
  display: block !important;
  width: auto !important;
  white-space: nowrap !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}
html[data-atelier] #appShell:has(#today.active-page) #rememberBtn[data-ai-manual-capture="true"] svg { display: none !important; }

/* The household portrait leads the editorial at every viewport. */
html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print {
  box-sizing: border-box;
  display: block;
  align-self: start;
  width: 100%;
  max-width: none;
  margin: 0;
}
html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print > img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 3px !important;
}
html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font: 500 10px/1.35 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print > .tp-change {
  position: static;
  display: inline-flex;
  min-width: 44px;
  min-height: 36px;
  margin: 3px 0 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 10px/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 767px) {
  #appShell:has(#today.active-page) .today-editorial {
    gap: 44px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print > img {
    aspect-ratio: 4 / 4.4 !important;
    object-position: center 52%;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print figcaption {
    margin-top: 8px;
    font-size: 10px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-editorial > .atelier-today-print > .tp-change {
    min-height: 36px;
    margin-top: 3px;
    padding-inline: 10px;
    border: 0;
    background: transparent;
    color: var(--moss-dark);
    font-size: 10px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #appShell:has(#today.active-page) .timed-reminder-quiet-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Foundation has an older area-based Today layout with !important declarations.
   Reset it at the owned template level so the authored wrappers stay intact. */
html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid :is(
  .today-section--attention,
  .today-section--todos,
  .today-section--agenda,
  .today-section--delegated
) {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 38px 64px !important;
    align-items: start !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid .today-main {
    display: grid !important;
    grid-area: 1 / 1 / 2 / 2 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
    align-content: start !important;
    gap: 32px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid .today-side {
    display: grid !important;
    grid-area: 1 / 2 / 2 / 3 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
    align-content: start !important;
    gap: 24px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid :is(.today-main, .today-side) > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 32px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid :is(.today-main, .today-side) {
    display: grid !important;
    grid-area: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
    grid-column: 1 !important;
    gap: 24px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template .today-grid :is(.today-main, .today-side) > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Final household Today composition.
   Desktop uses named placement; below 900px the authored DOM order is the
   reading order, with no visual reordering. */
html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  grid-auto-flow: row !important;
  align-items: start !important;
  gap: clamp(28px, 6vw, 44px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-wrap: anywhere;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > * {
  box-sizing: border-box;
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] .today-welcome {
  padding: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] .today-welcome h1 {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > [data-timed-reminders-top] {
  margin: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] .today-conversation {
  min-width: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print {
  align-self: start;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print > img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  border-radius: 3px !important;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--muted);
  font: 500 10px/1.35 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print > .tp-change {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  margin: 3px 0 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 10px/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  cursor: pointer;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] .today-coming-up {
  min-width: 0;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] :is(
  .today-section--todos,
  .today-section--delegated,
  .today-section--agenda
) {
  align-self: start;
  min-width: 0;
}

/* Due reminders remain actionable; future rows stay visually quiet. */
html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions .foru-reminder-primary {
  color: var(--paper, #f7f5ef);
  background: var(--moss-dark);
  border-color: var(--moss-dark);
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions button:not(.foru-reminder-primary) {
  color: var(--moss-dark);
  background: transparent;
  border-color: var(--line);
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .timed-reminder-more > summary {
  min-height: 36px;
  color: var(--muted);
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] :is(
  [data-timed-reminders-soon],
  [data-timed-reminders-lower]
) .timed-reminder-quiet-row {
  color: var(--muted);
  border-color: var(--line);
}

@media (min-width: 900px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] {
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 1fr) !important;
    grid-template-areas:
      "welcome photo"
      "reminders photo"
      "conversation photo"
      "todos delegated"
      "comingup agenda" !important;
    grid-template-rows: auto auto auto auto auto !important;
    grid-auto-flow: row !important;
    column-gap: clamp(38px, 5.2vw, 78px) !important;
    row-gap: clamp(30px, 4vw, 52px) !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-welcome {
    grid-area: welcome !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > [data-timed-reminders-top] {
    grid-area: reminders !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-conversation {
    grid-area: conversation !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print {
    grid-area: photo !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-section--todos {
    grid-area: todos !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-coming-up {
    grid-area: comingup !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-section--delegated {
    grid-area: delegated !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > .today-section--agenda {
    grid-area: agenda !important;
  }
}

@media (max-width: 899px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: clamp(26px, 7vw, 38px) !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] > figure.atelier-today-print > img {
    aspect-ratio: 1 / 1 !important;
    object-position: center 52%;
  }
}

/* Due reminders read as a single compact row where there is room. */
@media (min-width: 900px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .timed-reminders-list {
    gap: 0;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center;
    gap: 10px;
    min-height: 0 !important;
    padding: 12px 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    line-height: 1.25;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-label {
    margin-right: 4px;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: .065em;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-title {
    font-size: 13px;
    line-height: 1.3;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-datetime {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 30px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .timed-reminder-more > summary {
    min-height: 30px;
    padding: 4px 5px;
    font-size: 10px;
  }
}

@media (max-width: 899px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-card {
    min-width: 0;
    gap: 6px;
    padding: 7px 0;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-template[data-today-layout="final"] [data-timed-reminders-top] .foru-reminder-actions button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
}
