/*
 * FOR’U vNext · Phase C1
 * Shared visual foundation and navigation shell.
 * Loaded after the existing domain stylesheets; content renderers remain untouched.
 */
:root {
  --accent-green: #3d4f3c;
  --accent-green-active: #33432f;
  --accent-green-outline: var(--accent-green);
  --ivory: #f4f1e9;
  --paper: #fbfaf6;
  --ink: #20231f;
  --muted: #686b62;
  --line: #d8d4c9;
  --moss: #566454;
  --moss-dark: #3f4d3d;
  --sage: #dde1d6;
  --stone: #e9e4da;
  --oxblood: #713b35;

  /* Existing screens consume these legacy names; keep them on the approved palette. */
  --cream: var(--ivory);
  --sand: var(--stone);
  --soft-ink: var(--muted);
  --mute: var(--muted);
  --green: var(--moss-dark);
  --green-tint: var(--sage);
  --sky: var(--stone);
  --sky-tint: var(--stone);
  --soft: var(--stone);
  --faint: var(--muted);
  --olive: var(--moss);
  --olive-soft: var(--sage);
  --rose: var(--oxblood);
  --pink: var(--stone);
  --pink-tint: var(--stone);
  --blue: var(--stone);
  --blue-tint: var(--stone);
  --lime: var(--sage);
  --lime-tint: var(--sage);
  --apricot: var(--stone);
  --apricot-tint: var(--stone);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-heading: 34px;
  --font-size-ui-body: 16px;
  --font-size-ui-metadata: 13px;
  --font-size-ui-control: 13px;
  --font-size-ui-label: 11px;
  --serif: var(--font-display);
  --sans: var(--font-ui);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-control: 6px;
  --r-card: 10px;
  --r-hero: 12px;
  --r-sheet: 12px;
  --page-max: 1380px;
  --shadow: none;
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent-green) 24%, transparent);
}

html[data-theme="dark"],
html[data-color-scheme="dark"],
body.dark,
[data-theme="dark"] {
  --accent-green-outline: color-mix(in srgb, var(--accent-green) 38%, #f2f0eb);
}

html,
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  min-width: 0;
}

/* A shorter destination must not gain the scrollbar's width and shift the grid. */
html {
  scrollbar-gutter: stable;
}

button,
input,
textarea,
select {
  font-family: var(--sans);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a[href]:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand-apostrophe {
  color: var(--oxblood);
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* Desktop: an editorial rail, not a dashboard sidebar. */
.desktop-rail {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  min-width: 0;
}

.topbar > .brand {
  min-width: 0;
}

.topbar::before {
  background: rgba(244, 241, 233, .96);
  border-color: var(--line);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 34px;
}

.header-date,
.cloud-header-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.header-date {
  white-space: nowrap;
}

.cloud-header-status {
  max-width: 190px;
  text-align: right;
}

.mobile-utilities {
  display: none;
}

/* The single language control belongs to the shell, never a page. */
#interfaceLanguage {
  box-sizing: border-box;
  width: 106px;
  min-width: 106px;
  min-height: 44px;
  padding: 0 24px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper);
  color: var(--ink);
  font: 500 12px/1.2 var(--sans);
  cursor: pointer;
}

#interfaceLanguage:hover {
  background-color: var(--ivory);
}

.icon-btn,
.round-btn {
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.capture-card,
.memory-details,
.modal-card {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}

.primary-btn,
.card-btn.dark,
.universal-add {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #f2f0eb;
  box-shadow: none;
}

.primary-btn,
.soft-btn,
.card-btn,
.add-option {
  min-height: 44px;
  border-radius: var(--radius-control);
}

.text-button {
  min-height: 44px;
}

.soft-btn,
.card-btn,
.add-option {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.settings-link,
.text-button,
.row-action,
.feedback-control button {
  color: var(--accent-green);
}

.chip,
.chip:nth-child(4n + 2),
.chip:nth-child(4n + 3),
.chip:nth-child(4n + 4) {
  background: var(--sage);
  border-color: var(--line);
  color: var(--moss-dark);
}

.quiet-prompt,
.capture-result {
  background: var(--sage);
}

.cloud-gate {
  background: var(--ivory);
  color: var(--ink);
}

.cloud-card {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}

.cloud-error {
  color: var(--oxblood) !important;
}

.bottom-nav {
  background: var(--paper);
  border-top-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.bottom-nav .tab {
  min-height: 48px;
  color: var(--muted);
}

.bottom-nav .tab.active {
  background: transparent;
  color: var(--ink);
}

.universal-add {
  width: 48px;
  height: 48px;
}

.secondary-nav {
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-wrap: nowrap;
  padding: 3px 0 7px;
  justify-content: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 12px;
}

.secondary-nav::-webkit-scrollbar {
  display: none;
}

.subtab {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.subtab.active {
  border-color: var(--moss);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.subtab:not(.active):hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.desktop-nav .tab:not(.active):hover,
.bottom-nav .tab:not(.active):hover {
  color: var(--ink);
  background: var(--stone);
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subtab:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Shell-owned Home masthead. Domain styles only own content below its nav.
   Preserve the existing display scale; this is not a typography calibration. */
#homeGroup > .destination-title {
  display: none;
}

#homeGroup > .home-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  margin: 0 0 15px;
}

#homeGroup > .home-overview-header .home-overview-heading {
  min-width: 0;
}

#homeGroup > .home-overview-header .home-overview-eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .14em;
  letter-spacing: .17em;
  text-transform: uppercase;
}

#homeGroup > .home-overview-header h1 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(54px, 5.5vw, 76px)/.92 var(--serif);
  letter-spacing: -.045em;
}

#homeGroup > .home-overview-header .home-overview-add {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--moss-dark);
  color: var(--paper);
  font: 400 28px/1 var(--sans);
  cursor: pointer;
  transition: opacity .18s ease;
}

#homeGroup > .home-overview-header .home-overview-add:hover {
  opacity: .88;
}

#homeGroup > .secondary-nav {
  margin-bottom: 30px;
}

main {
  position: relative;
  display: flow-root;
}

main > .destination > .destination-title {
  margin: 0 0 20px;
}

main > .destination {
  padding-top: 0;
}

#shopping > .shopping-heading {
  margin: 0 0 17px;
}

@media (min-width: 768px) {
  .app-shell {
    padding: 22px clamp(40px, 5vw, 78px) var(--space-8) clamp(164px, calc(120px + 4vw), 190px);
  }

  .desktop-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    width: 132px;
    min-width: 132px;
    height: 100dvh;
    box-sizing: border-box;
    padding: 20px 12px 18px;
    border-right: 1px solid var(--line);
    background: var(--ivory);
  }

  .rail-brand {
    display: block;
    margin: 22px 0 68px;
    text-align: center;
    font-size: 27px;
  }

  .rail-utilities {
    position: fixed;
    left: 12px;
    bottom: 18px;
    z-index: 46;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: auto;
  }

  .rail-utilities .icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
  }

  .topbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 1120px;
    min-height: 38px;
    margin: 0 auto 28px;
    padding: 0;
  }

  .topbar::before {
    display: none;
  }

  .topbar > .brand {
    display: none;
  }

  .top-actions {
    width: auto;
  }

  .desktop-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .desktop-nav .tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 60px;
    padding: 7px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .desktop-nav .tab .line-icon {
    width: 18px;
    height: 18px;
    color: var(--moss);
  }

  .desktop-nav .tab.active {
    border-color: transparent;
    background: transparent;
    color: var(--ink);
  font-weight: 500;
  }

  .desktop-nav .tab.active::before {
    content: "";
    position: absolute;
    left: -12px;
    width: 2px;
    height: 60px;
    background: var(--moss);
  }

  main {
    width: 100%;
    max-width: 1120px;
    min-width: 0;
    margin: 0 auto;
  }

  .bottom-nav {
    display: none;
  }

  main > .universal-add {
    position: absolute;
    top: 2px;
    right: 0;
    bottom: auto;
    z-index: 35;
  }

  .toast {
    bottom: 25px;
  }

  .secondary-nav {
    gap: clamp(16px, 2vw, 30px);
  }

  #homeGroup > .home-overview-header {
    display: flex;
  }

  #homeGroup > .destination-title {
    display: none;
  }

  #homeGroup > .home-overview-header .home-overview-add {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  #appShell:has(#homeGroup.active-page) main > .universal-add {
    display: none;
  }
}

/* The existing side-by-side Calendar has a narrow month-label slot at tablet
   widths. Fit its display text through type size, not a layout change. */
@media (min-width: 768px) and (max-width: 1023px) {
  #appShell #plansCalendar .plans-month-head {
    --font-size-heading: clamp(18px, 2.4vw, 26px);
  }
}

@media (max-width: 767px) {
  .app-shell {
    padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(140px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .desktop-rail {
    display: none;
  }

  /* Utilities live in the mobile masthead; the rail group must not float over
     capture or review content. The install action remains in the desktop rail. */
  .rail-utilities {
    display: none !important;
  }

  .topbar {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 60;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0 14px;
    align-items: center;
  }

  .topbar::before {
    inset: -12px -16px -1px;
    width: auto;
    transform: none;
  }

  .topbar > .brand {
    display: block;
    flex: none;
    font-size: 29px;
  }

  .top-actions {
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
  }

  .top-actions .header-date {
    display: none;
  }

  /* Canonical transient/error status remains in the masthead and Settings. */
  .today-editorial .today-provenance {
    display: none;
  }

  .mobile-utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .mobile-language-control {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 500 11px/1 var(--sans);
    letter-spacing: .06em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-language-control #interfaceLanguage {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: transparent;
    font-size: 16px;
    opacity: 0;
    cursor: pointer;
  }

  .mobile-language-control #interfaceLanguage:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 2px;
    box-shadow: none;
  }

  .mobile-language-control:focus-within {
    outline: 2px solid var(--moss);
    outline-offset: 2px;
  }

  .mobile-utilities #settingsBtn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }

  .mobile-utilities #settingsBtn .line-icon {
    width: 18px;
    height: 18px;
  }

  .cloud-header-status {
    display: none;
    max-width: min(110px, 32vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cloud-header-status[data-mobile-state="syncing"],
  .cloud-header-status[data-mobile-state="error"] {
    display: block;
    font-size: 10px;
    line-height: 1.2;
  }

  .cloud-header-status[data-mobile-state="error"] {
    color: var(--oxblood);
  }

  .bottom-nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    box-sizing: border-box;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .bottom-nav .tab {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .bottom-nav .shopping-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 32px);
    margin: 0;
  }

  .bottom-nav .line-icon {
    width: 18px;
    height: 18px;
  }

  .universal-add {
    position: absolute;
    top: 2px;
    right: 0;
    bottom: auto;
    width: 44px;
    height: 44px;
  }

  button.universal-add {
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--moss-dark);
    color: var(--paper);
    font-size: 27px;
    box-shadow: none;
  }

  .secondary-nav {
    gap: 18px;
    margin-bottom: 24px;
  }

  .subtab {
    font-size: 13px;
  }

  #homeGroup > .home-overview-header {
    display: flex;
    min-height: 91px;
    margin: 0 0 10px;
    gap: 12px;
  }

  #homeGroup > .home-overview-header .home-overview-eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
  }

  #homeGroup > .home-overview-header h1 {
    font-size: clamp(48px, 14vw, 58px);
  }

  #homeGroup > .home-overview-header .home-overview-add {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  #homeGroup > .secondary-nav {
    gap: 15px;
    margin: 0 -16px 23px;
    padding-right: 16px;
    padding-left: 16px;
    scroll-snap-type: x proximity;
  }

  #homeGroup > .secondary-nav .subtab {
    scroll-snap-align: start;
  }

  /* Preserve the original mobile actions: Overview captures in Today;
     other destinations use the existing Add-information modal. Same anchor. */
  #appShell:has(#homeGroup.active-page #homeOverview.active-page) main > .universal-add {
    display: none;
  }

  #homeGroup:not(:has(#homeOverview.active-page)) > .home-overview-header .home-overview-add {
    display: none !important;
  }

  #appShell:not(:has(#homeGroup.active-page #homeOverview.active-page)) main > .universal-add {
    display: grid;
    place-items: center;
  }

  .today-welcome {
    padding-right: 56px;
  }
}

/* Today desktop returns to the quiet narrow-rail composition. Keep this
   destination-specific so the rest of the application shell is unchanged. */
@media (min-width: 768px) {
  #appShell:has(#today.active-page) {
    position: relative;
    padding: 44px clamp(52px, 6.8vw, 110px) var(--space-8)
      clamp(160px, 16vw, 230px);
  }

  #appShell:has(#today.active-page) .desktop-rail {
    width: 96px;
    min-width: 96px;
    padding: 20px 6px 18px;
  }

  #appShell:has(#today.active-page) .rail-brand {
    margin: 22px 0 48px;
  }

  #appShell:has(#today.active-page) .desktop-nav .tab.active::before {
    left: -6px;
  }

  #appShell:has(#today.active-page) .rail-utilities {
    left: 2px;
    width: 92px;
  }

  #appShell:has(#today.active-page) .rail-utilities #interfaceLanguage {
    width: 92px;
    min-width: 92px;
    padding-right: 17px;
    padding-left: 10px;
  }

  #appShell:has(#today.active-page) .topbar {
    position: absolute;
    top: 20px;
    right: clamp(52px, 6.8vw, 110px);
    z-index: 40;
    width: auto;
    min-height: 0;
    margin: 0;
  }

  #appShell:has(#today.active-page) .top-actions {
    min-height: 0;
  }

  #appShell:has(#today.active-page) .header-date {
    display: none;
  }

  #appShell:has(#today.active-page) .cloud-header-status {
    max-width: 190px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--muted);
  }

  #appShell:has(#today.active-page) .cloud-header-status.cloud-error {
    color: var(--oxblood);
  }

  #appShell:has(#today.active-page) .today-editorial > .today-provenance {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-nav {
    scroll-behavior: auto;
  }
  #homeGroup > .home-overview-header .home-overview-add {
    transition: none;
  }
}

@media print {
  .desktop-rail,
  .rail-utilities,
  .bottom-nav,
  .topbar,
  .universal-add {
    display: none !important;
  }

  .app-shell {
    display: block;
    width: auto;
    max-width: none;
    padding: 0;
  }
}

/* Mobile Today atmosphere. The original portrait stays proportional beneath a
   page-height ivory fade; this is paint only and leaves the shell geometry intact. */
@media (max-width: 767px) {
  #appShell:has(#today.active-page) {
    background-color: var(--ivory);
    background-image:
      linear-gradient(
        to bottom,
        rgba(244, 241, 233, .55) 0,
        rgba(244, 241, 233, .55) 29svh,
        var(--ivory) 42svh
      ),
      url("/objects/today-curtain-light.webp");
    background-position: left top, center top;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
  }

  /* Let a little of the image through at the masthead while keeping its
     established opaque-enough ivory paint for legibility when it sticks. */
  #appShell:has(#today.active-page) .topbar::before {
    background: rgba(244, 241, 233, .76);
  }

  /* The two small/quiet lines need the existing ink over the darker folds.
     Keep their approved type, spacing and hierarchy otherwise unchanged. */
  #appShell:has(#today.active-page) #todayEditorialDate,
  #appShell:has(#today.active-page) .today-welcome > p {
    color: var(--ink);
  }
}

/* =========================================================
   FOR’U vNext — consolidated global typography system
   Editorial display is reserved for meaningful hierarchy;
   operational text and controls remain Inter.
   ========================================================= */
html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preserve existing domain token names as aliases to the approved pair. */
:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: var(--font-display);
  --sans: var(--font-ui);
  --tp-serif: var(--font-display);
  --tp-sans: var(--font-ui);
}

/* Normalize UA bold defaults without breaking weight inheritance in controls.
   Source declarations are limited to 400/500; rendered checks enforce this.
   Family overrides leave SVG and technical/icon fonts intact. */
#appShell :where(h1, h2, h3, h4, h5, h6, strong, b, th) {
  font-weight: 400;
}

#appShell :where(
  h1, h2, h3, h4, h5, h6, p, span, strong, small, label, button, a, li, time,
  summary, legend, dt, dd, th, td, input, textarea, select, option, b
):where(:not(.line-icon):not([class*="icon"])) {
  font-family: var(--font-ui);
}

#appShell :where(button, a, label, summary, select, input[type="button"], input[type="submit"]) {
  font-weight: 500;
}

#authGate :where(*) {
  font-weight: 400;
}

#authGate :where(h1, h2, h3, h4, p, span, strong, small, label, button, a, li, input) {
  font-family: var(--font-ui);
  font-weight: 400;
}

#authGate :where(button, a, label, input[type="button"], input[type="submit"]) {
  font-weight: 500;
}

#authGate h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.04;
}

#authGate input::placeholder {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-metadata);
  font-weight: 400;
}

/* Named editorial page headings. Ordinary card/status text stays UI sans. */
#appShell :is(
  .today-welcome h1,
  #homeGroup > .home-overview-header h1,
  .destination-title,
  .maintenance-operational-header h1,
  .thought-heading h2,
  #homeThoughts .thought-heading h2,
  .useful-header h2,
  .wtu-heading h2,
  .wtu-shell > h2,
  .hcu-heading h2,
  .in-heading h2,
  .plans-month-head h2,
  .plans-calendar-heading,
  .meal-editorial-heading,
  .trips-section-head h2,
  .passport-heading h2,
  .person-profile-heading h3,
  #detailContent[data-settings="true"] > .settings-sheet > h2,
  .tp-modal-title
) {
  font-family: var(--font-display);
  font-weight: 400;
}

#appShell .today-welcome h1 {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.01em;
}

#appShell #homeGroup > .home-overview-header h1,
#appShell .destination-title,
#appShell .maintenance-operational-header h1 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

#appShell .today-editorial .today-welcome > p {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

#appShell .today-provenance .today-sync-summary {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

/* Today, To do, Delegated and similar group names remain small UI labels.
   The first Today section is the specifically rendered “Needs you” heading. */
#appShell :is(
  .today-editorial-date,
  .home-overview-eyebrow,
  .plans-masthead-eyebrow,
  .today-section-head h2,
  .section-label,
  .eyebrow,
  .kicker,
  .shopping-group h2,
  .delegation-eyebrow,
  .thought-date-heading,
  .thought-card-meta,
  .thought-search-label,
  .thought-results-heading,
  .maintenance-eyebrow,
  .passport-create-section h3,
  .tp-eyebrow
) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#appShell #today .today-main > .today-section:first-child .today-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
}

#appShell .today-provenance-top:has(.today-sync-summary:not([hidden]))::before {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#appShell .capture-main .capture-prompt {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}

#appShell .capture-main #captureInput {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
}

#appShell .capture-main #captureInput::placeholder {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}

/* Reusable primary editorial section-title surfaces across destinations. */
#appShell :is(
  .section-title h2,
  .page-title h2,
  #homeOverview .home-overview-index-heading h2,
  #homeOverview .home-overview-group-copy h3,
  #assets .household-editorial-heading h1,
  #assets .household-section-heading h2,
  .household-editorial-heading h1,
  .household-section-heading h2,
  #family .people-index-heading h2,
  #family .people-group-heading h3,
  .people-index-heading h2,
  .people-group-heading h3,
  .today-main > .today-section:first-child .today-section-head h2,
  .useful-header h2,
  .useful-panel-heading h3,
  .useful-panel-heading .section-title h3,
  .thought-heading h2,
  .wdu-heading h2,
  .in-heading h2,
  .meal-editorial-intro h1,
  .meal-plans-section-head h2,
  .shopping-heading h1,
  .travel-editorial-heading h2,
  .place-memory-browser-heading h2,
  .place-memory-section-head h2,
  .travel-detail-hero-copy h2,
  .place-memory-detail h2,
  .plans-month-head h2,
  .plans-selected-day h2,
  .delegation-overview-head h2,
  .wdu-modal h2,
  .maintenance-history > summary,
  .passport-heading h2,
  .person-profile-heading h3,
  #detailContent[data-settings="true"] > .settings-sheet > h2,
  .tp-modal-title,
  .wtu-heading h2,
  .wtu-shell > h2,
  .hcu-heading h2,
  .maintenance-section-heading h2,
  .tp-section-header h3,
  .tp-accommodation h3,
  .wtu-trip-section header h3,
  .hcu-toolbar h3,
  .trips-section-head h2,
  .meal-plans-section-head h2,
  .wdu-heading h2
) {
  font-family: var(--font-display);
  font-size: var(--font-size-heading);
  font-weight: 500;
  line-height: 1.1;
}

#appShell #homeGroup > .home-overview-header h1,
#appShell .destination-title,
#appShell .maintenance-operational-header h1 {
  font-weight: 500;
}

#appShell .trip-destination {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

/* Thoughts alone keeps its journal-like body in the display face. */
#appShell #homeThoughts .thought-body,
#appShell .thought-collection-view .thought-body {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Calm operational rows: tasks, calendar events, shopping and delegated work. */
#appShell :is(
  .today-row-body strong,
  .today-agenda-row .today-row-body button,
  .agenda-row strong,
  .calendar-event-title,
  .plans-event-title,
  .plans-agenda-event > strong,
  .plans-coming-copy strong,
  .calendar-card .calendar-event-title,
  .calendar-event strong,
  .shopping-name,
  .delegation-open-copy strong,
  .trip-task,
  .maintenance-task-title,
  .maintenance-row-main h3,
  .maintenance-history-row h3,
  .hcu-record-title strong,
  .hcu-metric-main strong,
  .people-record .people-name,
  .thought-card h4,
  .meal-recipe-body h3,
  .meal-recipe-title,
  .useful-row-title,
  .in-card-title,
  .passport-card-title,
  .wtu-record-main strong,
  .wtu-trip-row strong,
  .wtu-launcher strong,
  .wtu-empty h3,
  .wtu-originals h3,
  .wtu-upload-box strong,
  .wdu-card-title,
  .wdu-upload-placeholder strong,
  .delegation-helper-role,
  .delegation-helper-name,
  .delegation-person-name,
  .delegation-person-link,
  .household-open-row-title,
  .household-passport-name,
  .home-overview-link-label,
  .plans-agenda-date h2
) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-body);
  font-weight: 400;
  line-height: 1.4;
}

#appShell :is(
  .today-row-body p,
  .today-row-body small,
  .row-copy,
  .row-meta,
  .item-copy,
  .doc-meta,
  .shopping-source,
  .trip-date,
  .trip-people,
  .today-provenance-note,
  .maintenance-detail,
  .maintenance-row-meta,
  .thought-card-detail,
  .thought-index-status,
  .thought-card-date,
  .hcu-record-title span,
  .cloud-header-status
) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-metadata);
  font-weight: 400;
  line-height: 1.4;
}

#appShell :is(time, .agenda-row time, .today-agenda-row time, .plans-agenda-time) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-metadata);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Domain metadata shares one quiet operational role. This also covers
   existing card/detail metadata without changing their containers. */
#appShell :is(
  [class*="-meta"]:where(:not([class*="label"]):not([class*="heading"])),
  .meal-recipe-source,
  .in-card-category,
  .wdu-card-meta
) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-metadata);
  font-weight: 400;
  line-height: 1.4;
}

#appShell :is(
  .today-link,
  .today-calendar-link,
  .text-button,
  .settings-link,
  .row-action,
  .service-link,
  .subtab,
  .card-btn,
  .primary-btn,
  .soft-btn,
  .add-option,
  .shopping-tab,
  .wtu-back,
  .wtu-primary,
  .wtu-secondary,
  .tp-detail-link,
  .tp-add
) {
  font-family: var(--font-ui);
  font-size: var(--font-size-ui-control);
  font-weight: 500;
  letter-spacing: .02em;
}

#appShell .brand,
#appShell .rail-brand,
#appShell .brand .brand-apostrophe {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
}

#appShell .desktop-nav .tab,
#appShell .desktop-rail .tab {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

#appShell .bottom-nav .tab {
  font-family: var(--font-ui);
  font-weight: 500;
}

#appShell :is(.shopping-count, .shopping-tab-count, .today-section-head h2 span, .count-badge) {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
}

/* A date eyebrow is a label, not an event time. */
#appShell .today-welcome .today-editorial-date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
}

@media (min-width: 768px) {
  #appShell #today .today-main > .today-section:first-child .today-section-head h2 {
    font-size: 36px;
    line-height: 1.1;
  }
}

@media (max-width: 767px) {
  #appShell .today-welcome h1 {
    font-size: clamp(40px, 13.5vw, 56px);
  }

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

  #appShell .capture-main h2.capture-prompt {
    font-size: clamp(30px, 8.2vw, 32px);
  }

  #appShell .capture-main .capture-prompt,
  #appShell :is(
    #today .today-main > .today-section:first-child .today-section-head h2,
    .section-title h2,
    .page-title h2,
    #homeOverview .home-overview-index-heading h2,
    #homeOverview .home-overview-group-copy h3,
    #assets .household-editorial-heading h1,
    #assets .household-section-heading h2,
    .household-editorial-heading h1,
    .household-section-heading h2,
    #family .people-index-heading h2,
    #family .people-group-heading h3,
    .people-index-heading h2,
    .people-group-heading h3,
    .useful-header h2,
    .useful-panel-heading h3,
    .useful-panel-heading .section-title h3,
    .thought-heading h2,
    .wdu-heading h2,
    .in-heading h2,
    .meal-editorial-intro h1,
    .meal-plans-section-head h2,
    .shopping-heading h1,
    .travel-editorial-heading h2,
    .place-memory-browser-heading h2,
    .place-memory-section-head h2,
    .travel-detail-hero-copy h2,
    .place-memory-detail h2,
    .plans-month-head h2,
    .plans-selected-day h2,
    .delegation-overview-head h2,
    .wdu-modal h2,
    .maintenance-history > summary,
    .passport-heading h2,
    .person-profile-heading h3,
    #detailContent[data-settings="true"] > .settings-sheet > h2,
    .tp-modal-title,
    .wtu-heading h2,
    .wtu-shell > h2,
    .hcu-heading h2,
    .maintenance-section-heading h2,
    .tp-section-header h3,
    .tp-accommodation h3,
    #homeGroup > .home-overview-header h1,
    .destination-title,
    .maintenance-operational-header h1
  ) {
    font-size: clamp(29px, 8vw, 32px);
  }

  #appShell #today .today-main > .today-section:first-child .today-section-head h2 {
    font-size: clamp(30px, 8vw, 32px);
  }
}

/* =========================================================
   ATELIER — quiet household notebook
   Scoped to the root opt-in so this remains an isolated presentation layer.
   ========================================================= */
html[data-atelier] {
  color-scheme: light;
  --atelier-paper: #f2f0eb;
  --atelier-ink: #161918;
  --atelier-soft: #5f625e;
  --atelier-line: #cdc9bf;
  --atelier-olive: #2e382d;
  --atelier-brass: #a3864d;
  --atelier-alert: #7a3a33;
  --ivory: var(--atelier-paper);
  --paper: var(--atelier-paper);
  --ink: var(--atelier-ink);
  --muted: var(--atelier-soft);
  --faint: var(--atelier-soft);
  --line: var(--atelier-line);
  --moss: var(--atelier-olive);
  --moss-dark: var(--atelier-olive);
  --olive: var(--atelier-olive);
  --oxblood: var(--atelier-alert);
  --rose: var(--atelier-alert);
  --cream: var(--atelier-paper);
  --sand: #e8e5de;
  --soft: #e8e5de;
  --stone: #e8e5de;
  --sage: #e4e5df;
  --green: var(--atelier-olive);
  --green-tint: #e4e5df;
  --olive-soft: #e4e5df;
  --sky: #e8e5de;
  --sky-tint: #e8e5de;
  --pink: #e8e5de;
  --pink-tint: #e8e5de;
  --blue: #e8e5de;
  --blue-tint: #e8e5de;
  --lime: #e4e5df;
  --lime-tint: #e4e5df;
  --apricot: #e8e5de;
  --apricot-tint: #e8e5de;
  --font-size-heading: 46px;
  --radius-control: 2px;
  --r-card: 2px;
  --r-hero: 2px;
  --r-sheet: 2px;
  --shadow: none;
  --focus: 0 0 0 2px var(--atelier-brass);
  background: var(--atelier-paper);
  color: var(--atelier-ink);
}

@media (prefers-color-scheme: dark) {
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) {
    color-scheme: dark;
    --atelier-paper: #202421;
    --atelier-ink: #f2f0eb;
    --atelier-soft: #c1c3bb;
    --atelier-line: #555952;
    --atelier-olive: #a9b89d;
    --accent-green-outline: color-mix(in srgb, var(--accent-green) 38%, #f2f0eb);
    --atelier-brass: #d0b47c;
    --atelier-alert: #e1a099;
    --sand: #303530;
    --soft: #303530;
    --stone: #303530;
    --sage: #343a33;
    --green-tint: #343a33;
    --olive-soft: #343a33;
    --sky: #303530;
    --sky-tint: #303530;
    --pink: #303530;
    --pink-tint: #303530;
    --blue: #303530;
    --blue-tint: #303530;
    --lime: #343a33;
    --lime-tint: #343a33;
    --apricot: #303530;
    --apricot-tint: #303530;
  }
}

html[data-atelier][data-theme="dark"],
html[data-atelier][data-color-scheme="dark"],
html[data-atelier][data-theme="dark"] body,
html[data-atelier][data-color-scheme="dark"] body {
  color-scheme: dark;
  --atelier-paper: #202421;
  --atelier-ink: #f2f0eb;
  --atelier-soft: #c1c3bb;
  --atelier-line: #555952;
  --atelier-olive: #a9b89d;
  --atelier-brass: #d0b47c;
  --atelier-alert: #e1a099;
  --sand: #303530;
  --soft: #303530;
  --stone: #303530;
  --sage: #343a33;
  --green-tint: #343a33;
  --olive-soft: #343a33;
  --sky: #303530;
  --sky-tint: #303530;
  --pink: #303530;
  --pink-tint: #303530;
  --blue: #303530;
  --blue-tint: #303530;
  --lime: #343a33;
  --lime-tint: #343a33;
  --apricot: #303530;
  --apricot-tint: #303530;
}

html[data-atelier] body,
html[data-atelier] #appShell,
html[data-atelier] #authGate {
  background: var(--atelier-paper);
  color: var(--atelier-ink);
  font-family: var(--font-ui), sans-serif;
}

html[data-atelier] body::after {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

html[data-atelier] :where(button, input, textarea, select) {
  font-family: var(--font-ui), sans-serif;
}

html[data-atelier] :where(button, summary, [role="button"], input[type="button"], input[type="submit"], .file-btn, label[for]) {
  min-height: 44px;
}

html[data-atelier] :where(button, a[href], summary, [role="button"], input[type="button"], input[type="submit"]) {
  -webkit-tap-highlight-color: transparent;
}

html[data-atelier] :where(button, a[href], summary, [role="button"], input[type="button"], input[type="submit"]):focus-visible,
html[data-atelier] :where(input, textarea, select):focus-visible {
  outline: 2px solid var(--atelier-brass);
  outline-offset: 3px;
  box-shadow: none;
}

html[data-atelier] #appShell :where(h1, h2, h3, h4, .row-title, .item-title, .shopping-name, .trip-destination, .meal-recipe-title, .passport-card-title, .people-name, .delegation-person-name) {
  color: var(--atelier-ink);
  font-family: var(--font-display), Georgia, serif;
  font-weight: 400;
}

html[data-atelier] #appShell :where(p, small, .item-copy, .row-copy, .row-meta, .doc-meta, .shopping-source, .today-provenance-note, .cloud-header-status) {
  color: var(--atelier-soft);
}

html[data-atelier] #appShell :where(.eyebrow, .kicker, .section-label, .today-editorial-date, .home-overview-eyebrow, .plans-masthead-eyebrow, .maintenance-eyebrow, .delegation-eyebrow, .passport-create-section h3, .thought-date-heading, .thought-results-heading) {
  color: var(--atelier-soft);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
}

html[data-atelier] #appShell :where(.destination-title, .page-title h2, .section-title h2, .thought-heading h2, .useful-header h2, .wtu-heading h2, .hcu-heading h2, .passport-heading h2, .trips-section-head h2, .meal-editorial-heading, .maintenance-operational-header h1) {
  font-family: var(--font-display), Georgia, serif;
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.04;
}

html[data-atelier] #appShell :where(.destination, .page, main, .app-shell) {
  color: var(--atelier-ink);
}

html[data-atelier] #appShell :where(
  .capture-card, .memory-details, .modal-card, .item-card, .thought-card,
  .thought-search-results, .thought-search-entry, .thought-answer-sheet,
  .today-section, .calendar-card, .expired-card, .trip-card, .meal-card,
  .passport-card, .person-card, .wdu-card, .hcu-record, .hcu-metric,
  .wtu-record, .wtu-trip-row, .wtu-launcher, .quiet-prompt, .capture-result,
  .service-link, .capture-choice, .add-option, .edit-form, .thought-proposal,
  .thought-search-query, .thought-document-preview, .in-card, .subscription-card
) {
  border-radius: 2px;
  box-shadow: none;
}

html[data-atelier] #appShell :where(.capture-card, .memory-details, .modal-card, .item-card, .thought-card, .thought-search-entry, .calendar-card, .trip-card, .meal-card, .passport-card, .person-card, .wdu-card, .hcu-record, .wtu-record) {
  background-color: var(--atelier-paper);
  border-color: var(--atelier-line);
}

html[data-atelier] #appShell :where([class*="-card"], [class$="Card"], [class*="-sheet"], [class$="Sheet"], [class*="-panel"]) {
  border-radius: 2px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-atelier] #appShell :where([class*="-card"], [class$="Card"], [class*="-sheet"], [class$="Sheet"]) {
  background-color: var(--atelier-paper);
  border-color: var(--atelier-line);
}

html[data-atelier] #appShell :where(img, picture, video, iframe) {
  border-radius: 2px;
}

html[data-atelier] #appShell :where(.desktop-rail, .topbar::before, .bottom-nav, .bottom-nav .tab, .rail-utilities .icon-btn) {
  background-color: var(--atelier-paper);
  border-color: var(--atelier-line);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-atelier] #appShell :where(.brand-apostrophe) {
  color: var(--atelier-brass);
}

html[data-atelier] #appShell :where(.desktop-nav .tab, .bottom-nav .tab, .subtab) {
  color: var(--atelier-soft);
}

html[data-atelier] #appShell :where(.desktop-nav .tab.active, .bottom-nav .tab.active, .subtab.active) {
  border-color: var(--atelier-olive);
  background: transparent;
  color: var(--atelier-ink);
}

html[data-atelier] #appShell .secondary-nav {
  border-bottom: 1px solid var(--atelier-line);
  background: transparent;
}

html[data-atelier] #appShell .subtab.active {
  border-color: var(--atelier-olive);
  background: transparent;
  color: var(--atelier-ink);
}

html[data-atelier] #appShell :where(.section-title, .today-section-head, .home-overview-index-heading, .household-section-heading, .people-group-heading, .plans-section-heading, .shopping-group) {
  border-color: var(--atelier-line);
}

html[data-atelier] #appShell :where(.primary-btn, .card-btn.dark, .universal-add, .home-overview-add, .wtu-primary, .tp-add) {
  min-height: 44px;
  border: 1px solid var(--atelier-olive);
  border-radius: 22px;
  background: var(--atelier-olive);
  color: #f2f0eb;
  box-shadow: none;
  font: 500 11px/1.2 var(--font-ui), sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-atelier] #appShell :where(.soft-btn, .card-btn, .add-option, .row-action, .text-button, .settings-link, .today-link, .today-calendar-link, .capture-choice, .wtu-secondary, .tp-detail-link) {
  min-height: 44px;
  border-color: var(--accent-green);
  border-radius: 22px;
  background: transparent;
  color: var(--accent-green);
  box-shadow: none;
}

html[data-atelier][data-theme="dark"] #appShell :where(.soft-btn, .card-btn, .add-option, .row-action, .text-button, .settings-link, .today-link, .today-calendar-link, .capture-choice, .wtu-secondary, .tp-detail-link),
html[data-atelier][data-color-scheme="dark"] #appShell :where(.soft-btn, .card-btn, .add-option, .row-action, .text-button, .settings-link, .today-link, .today-calendar-link, .capture-choice, .wtu-secondary, .tp-detail-link) {
  border-color: var(--accent-green-outline);
  color: var(--accent-green-outline);
}

html[data-atelier] #appShell :where(.card-btn, .primary-btn, .soft-btn, .add-option) {
  padding-inline: 16px;
}

html[data-atelier] #appShell :where(.chip, .pill, .status-pill, .shopping-count, .thought-match) {
  border-color: var(--atelier-line);
  border-radius: 2px;
  background: #e8e5de;
  color: var(--atelier-ink);
}

html[data-atelier] #appShell :where(.cloud-error, .error, [data-state="overdue"], [data-status="error"]) {
  color: var(--atelier-alert);
}

html[data-atelier] #appShell :where(input, textarea, select) {
  border-color: var(--atelier-line);
  border-radius: 2px;
  background-color: var(--atelier-paper);
  color: var(--atelier-ink);
}

html[data-atelier] #appShell :where(.modal, dialog::backdrop) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-atelier] #appShell :where(.modal-card, dialog, .foru-subscriptions-dialog) {
  background: var(--atelier-paper);
  color: var(--atelier-ink);
  border-color: var(--atelier-line);
  box-shadow: none;
}

html[data-atelier] #authGate {
  color: var(--atelier-ink);
}

html[data-atelier] #authGate :where(.cloud-card, .cloud-card button, .cloud-card input) {
  border-radius: 2px;
  box-shadow: none;
}

html[data-atelier] #authGate .cloud-card {
  background: var(--atelier-paper);
  color: var(--atelier-ink);
  border-color: var(--atelier-line);
}

html[data-atelier] #authGate :where(button, a, input[type="submit"]) {
  min-height: 44px;
}

/* Today: the existing photo becomes a framed print; all live records stay put. */
html[data-atelier] #appShell .today-editorial {
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  width: min(100%, 930px);
  margin: 0 auto 36px;
  padding: 0;
}

html[data-atelier] #appShell .atelier-today-print {
  width: 100%;
  max-width: 310px;
  margin: 0;
}

html[data-atelier] #appShell .atelier-today-print img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  filter: saturate(.84);
  border: 1px solid var(--atelier-line);
  padding: 4px;
  background: var(--atelier-paper);
}

html[data-atelier] #appShell .atelier-today-print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--atelier-soft);
  font: 500 10px/1.4 var(--font-ui), sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

html[data-atelier] #appShell .today-welcome {
  padding: 0;
}

html[data-atelier] #appShell .today-editorial-date {
  display: grid;
  justify-items: start;
  gap: 0;
  margin: 0 0 16px;
}

html[data-atelier] #appShell .atelier-date-day {
  color: var(--atelier-ink);
  font: 300 64px/.9 var(--font-display), Georgia, serif;
  letter-spacing: -.035em;
}

html[data-atelier] #appShell .atelier-date-context {
  color: var(--atelier-soft);
  font: 500 10.5px/1.4 var(--font-ui), sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}

html[data-atelier] #appShell .today-welcome h1 {
  margin: 0;
  font: 300 40px/1.06 var(--font-display), Georgia, serif;
  letter-spacing: -.02em;
}

html[data-atelier] #appShell .today-welcome h1::after {
  display: block;
  width: 28px;
  height: 1px;
  margin: 17px 0 12px;
  background: var(--atelier-brass);
  content: "";
}

html[data-atelier] #appShell .today-welcome h1 em,
html[data-atelier] #appShell .today-welcome > p {
  font-family: var(--font-display), Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

html[data-atelier] #appShell .today-welcome > p {
  margin: 0;
  color: var(--atelier-soft);
  font-size: 20px;
  line-height: 1.4;
}

html[data-atelier] #appShell .capture-card.today-only {
  width: min(100%, 930px);
  margin: 0 auto 30px;
  border: 0;
  border-top: 1px solid var(--atelier-ink);
  padding: 20px 0 14px;
  background: transparent;
}

html[data-atelier] #appShell .capture-prompt {
  color: var(--atelier-ink);
  font: italic 400 27px/1.2 var(--font-display), Georgia, serif;
}

html[data-atelier] #appShell .today-section {
  border-top: 1px solid var(--atelier-line);
  padding-top: 17px;
}

html[data-atelier] #appShell .today-section-head h2 {
  font: 400 24px/1.15 var(--font-display), Georgia, serif;
}

html[data-atelier] #appShell .today-section-count {
  color: var(--atelier-soft);
  font: 500 10px/1 var(--font-ui), sans-serif;
  letter-spacing: .12em;
}

html[data-atelier] #appShell :where(.today-todo-check, .todo-row input[type="checkbox"], .shopping-row input[type="checkbox"]) {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  accent-color: var(--atelier-olive);
}

html[data-atelier] #appShell :where(.today-todo-row, .today-helper, .today-agenda-row, .today-attention-row, .todo-row, .shopping-row, .calm-row, .document-row, .people-record, .delegation-person-row, .household-open-row, .passport-grid > div) {
  border-color: var(--atelier-line);
}

html[data-atelier] #appShell .today-outro {
  color: var(--atelier-soft);
  font: italic 400 18px/1.4 var(--font-display), Georgia, serif;
}

html[data-atelier] #appShell #homeGroup > .home-overview-header h1 {
  font: 300 46px/1.04 var(--font-display), Georgia, serif;
}

html[data-atelier] #appShell :where(.today-todo-row, .shopping-row) input[type="checkbox"] {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border: 0;
  appearance: none;
  background: transparent;
  display: grid;
  place-items: center;
}

html[data-atelier] #appShell :where(.today-todo-row, .shopping-row) input[type="checkbox"]::before {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid var(--atelier-soft);
  background: var(--atelier-paper);
  content: "";
}

html[data-atelier] #appShell :where(.today-todo-row, .shopping-row) input[type="checkbox"]:checked::before {
  border-color: var(--atelier-olive);
  background: var(--atelier-olive);
  box-shadow: inset 0 0 0 3px var(--atelier-paper);
}

html[data-atelier] #appShell .atelier-auth-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

html[data-atelier] .foru-subscriptions,
html[data-atelier] .foru-subscriptions-dialog,
html[data-atelier] .foru-subscriptions-setup-offer {
  --fs-ink: var(--atelier-ink);
  --fs-muted: var(--atelier-soft);
  --fs-paper: var(--atelier-paper);
  --fs-card: var(--atelier-paper);
  --fs-line: var(--atelier-line);
  --fs-moss: var(--atelier-olive);
  --fs-moss-soft: #e4e5df;
  --fs-wine: var(--atelier-alert);
  --fs-wine-soft: #eee2df;
  color: var(--atelier-ink);
}

html[data-atelier] .foru-subscriptions :where(.foru-subscriptions-card, .foru-subscriptions-total, .foru-subscriptions-empty, .foru-subscriptions-fact),
html[data-atelier] .foru-subscriptions-dialog :where(input, select, textarea) {
  background-color: var(--atelier-paper);
  color: var(--atelier-ink);
  border-color: var(--atelier-line);
  border-radius: 2px;
}

html[data-atelier] .su-root {
  --su-paper: var(--atelier-paper);
  --su-ink: var(--atelier-ink);
  --su-muted: var(--atelier-soft);
  --su-line: var(--atelier-line);
  --su-accent: var(--atelier-olive);
  background: var(--atelier-paper);
  color: var(--atelier-ink);
  font-family: var(--font-ui), sans-serif;
}

html[data-atelier] .su-root :where(.su-guest-card, .su-card, .su-item, .su-empty, .su-candidate, .su-section, .su-photo-preview) {
  border-radius: 2px;
  box-shadow: none;
}

html[data-atelier] .su-root :where(.su-guest-card, .su-card, .su-item, .su-candidate) {
  background: var(--atelier-paper);
  border-color: var(--atelier-line);
  color: var(--atelier-ink);
}

html[data-atelier] .su-root :where(.su-title, .su-guest-card h4, .su-section h3) {
  color: var(--atelier-ink);
  font-family: var(--font-display), Georgia, serif;
  font-weight: 400;
}

html[data-atelier] .su-root :where(.su-kicker, .su-muted, .su-subtitle) {
  color: var(--atelier-soft);
}

html[data-atelier] .su-root :where(button, .su-btn, input[type="submit"], a.su-btn) {
  min-height: 44px;
  border-radius: 22px;
  border-color: var(--atelier-olive);
  background: var(--atelier-olive);
  color: #f2f0eb;
  box-shadow: none;
}

html[data-atelier] .su-root :where(.su-btn--quiet, .su-btn--plain) {
  border-color: var(--accent-green);
  background: transparent;
  color: var(--accent-green);
}

html[data-atelier] .su-root :where(input, select, textarea) {
  border-color: var(--atelier-line);
  border-radius: 2px;
  background: var(--atelier-paper);
  color: var(--atelier-ink);
}

html[data-atelier] .atelier-social-signoff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--atelier-soft);
}

@media (max-width: 767px) {
  html[data-atelier] #appShell:has(#today.active-page) {
    background: var(--atelier-paper);
    background-image: none;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero {
    padding: calc(12px + env(safe-area-inset-top)) 20px 18px;
    overflow: visible;
    border-radius: 0;
    background: var(--atelier-paper);
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero::before {
    display: none;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero > .topbar > .brand {
    color: var(--atelier-ink);
    font: 400 14px/1 var(--font-ui), sans-serif;
    letter-spacing: normal;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin: 24px auto 28px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .atelier-today-print {
    width: min(100%, 340px);
    max-width: 340px;
    margin-inline: auto;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-welcome h1 {
    color: var(--atelier-ink);
    font-size: 40px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-welcome > p {
    color: var(--atelier-soft);
    font-size: 20px;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .capture-card.today-only {
    margin-top: 25px;
    border: 0;
    border-top: 1px solid var(--atelier-ink);
    border-radius: 0;
    background: var(--atelier-paper);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tiles {
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid var(--atelier-line);
    border-bottom: 1px solid var(--atelier-line);
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile {
    min-height: 112px;
    padding: 13px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--atelier-ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile + .today-mobile-tile {
    border-left: 1px solid var(--atelier-line);
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-chip {
    width: 24px;
    height: 24px;
    border-color: var(--atelier-brass);
    background: transparent;
    color: var(--atelier-brass);
    font: 500 11px/1 var(--font-ui), sans-serif;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile:nth-child(1) .today-mobile-chip::after { content: "i."; }
  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile:nth-child(2) .today-mobile-chip::after { content: "ii."; }
  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile:nth-child(3) .today-mobile-chip::after { content: "iii."; }
  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-chip .dot { display: none; }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile strong {
    color: var(--atelier-ink);
    font: 400 18px/1.05 var(--font-display), Georgia, serif;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tile-state {
    color: var(--atelier-soft);
    font: 400 10px/1.35 var(--font-ui), sans-serif;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today :where(.today-section--attention, .today-section--agenda) {
    display: block !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-outro {
    display: block !important;
  }

  html[data-atelier] #appShell > .bottom-nav {
    border: 1px solid var(--atelier-line);
    border-radius: 2px;
    background: var(--atelier-paper);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-atelier] #appShell > .bottom-nav .tab.active {
    border-radius: 2px;
    background: transparent;
    color: var(--atelier-ink);
  }
}

@media (min-width: 768px) {
  html[data-atelier] #appShell:has(#today.active-page) .today-editorial {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-atelier] *,
  html[data-atelier] *::before,
  html[data-atelier] *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

/* Atelier hardening: deliberately outrank feature-level presentation rules. */
html[data-atelier] #appShell :where(button:not(.sr-only):not([hidden]), summary, input[type="button"], input[type="submit"], select, .file-btn) {
  min-height: 44px !important;
}

html[data-atelier] #appShell a[href] {
  min-height: 44px;
}

html[data-atelier] #appShell :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  min-height: 44px !important;
  border-radius: 2px !important;
  background-color: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] #appShell #interfaceLanguage {
  box-sizing: border-box !important;
  min-width: 44px !important;
  width: 44px !important;
}

html[data-atelier] #appShell :where(.today-link, .today-calendar-link, .todo-check, .hh-section-action, .hh-empty-action, .pp-add, .uv-filter, .thought-search-button, .tp-add, .wp-filter, .wp-add, .wdu-empty-add, .in-chip, .cv-primary, .cv-link, .mp-link, .mp-filter, .tp-link, .shopping-voice, .modal-close, .sp-share, .su-close) {
  min-height: 44px !important;
}

html[data-atelier] #appShell .todo-check {
  box-sizing: border-box !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
  display: grid !important;
  place-items: center !important;
}

html[data-atelier] #appShell .todo-check::before {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid var(--atelier-soft);
  background: var(--atelier-paper);
  content: "";
}

html[data-atelier] #appShell .todo-check.checked::before {
  border-color: var(--atelier-olive);
  background: var(--atelier-olive);
  box-shadow: inset 0 0 0 3px var(--atelier-paper);
}

html[data-atelier] #appShell .today-add input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: min(180px, 55vw) !important;
}

html[data-atelier] #appShell .modal-close,
html[data-atelier] #appShell .su-close {
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

html[data-atelier] #appShell :where(.today-section-head .today-link, .today-calendar-link) {
  padding: 0 10px !important;
  border: 1px solid var(--accent-green) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--accent-green) !important;
}

/* Keep every primary surface legible even where a module hard-codes a color. */
html[data-atelier] #appShell :is(
  .primary-btn, .card-btn.dark, .universal-add, .home-overview-add,
  .wtu-primary, .tp-add, .cv-primary,
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .su-btn:not(.secondary):not(.quiet):not(.danger):not(.su-btn--quiet):not(.su-btn--plain):not(.su-btn--danger),
  .su-tab[aria-selected="true"]
) {
  border-color: var(--accent-green) !important;
  background: var(--accent-green) !important;
  color: #f2f0eb !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell .foru-subscriptions :is(
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .foru-subscriptions-btn.primary,
  .foru-subscriptions-btn.confirm
) {
  border-color: var(--accent-green) !important;
  background: var(--accent-green) !important;
  color: #f2f0eb !important;
}

html[data-atelier] #appShell .foru-subscriptions-dialog :is(
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .foru-subscriptions-btn.primary,
  .foru-subscriptions-btn.confirm
) {
  border-color: var(--accent-green) !important;
  background: var(--accent-green) !important;
  color: #f2f0eb !important;
}

html[data-atelier] #appShell #plansCalendar:not([hidden]) .cv-page .cv-primary {
  min-height: 44px !important;
  border-color: var(--accent-green) !important;
  border-radius: 22px !important;
  background: var(--accent-green) !important;
  color: #f2f0eb !important;
}

html[data-atelier][data-theme="dark"] #appShell .su-root :where(.su-btn--quiet, .su-btn--plain),
html[data-atelier][data-color-scheme="dark"] #appShell .su-root :where(.su-btn--quiet, .su-btn--plain),
html[data-atelier][data-theme="dark"] #appShell :where(.today-section-head .today-link, .today-calendar-link),
html[data-atelier][data-color-scheme="dark"] #appShell :where(.today-section-head .today-link, .today-calendar-link) {
  border-color: var(--accent-green-outline) !important;
  color: var(--accent-green-outline) !important;
}

html[data-atelier] #appShell .su-root :where(button, .su-btn, input[type="submit"], a.su-btn):not(:disabled):is(:hover, :active) {
  border-color: var(--accent-green-active) !important;
  background: var(--accent-green-active) !important;
  color: #f2f0eb !important;
}

html[data-atelier] #appShell :is(
  .primary-btn, .card-btn.dark, .universal-add, .home-overview-add,
  .wtu-primary, .tp-add, .cv-primary,
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .su-btn:not(.secondary):not(.quiet):not(.danger):not(.su-btn--quiet):not(.su-btn--plain):not(.su-btn--danger),
  .su-tab[aria-selected="true"]
):not(:disabled):is(:hover, :active) {
  border-color: var(--accent-green-active) !important;
  background: var(--accent-green-active) !important;
  color: #f2f0eb !important;
}

html[data-atelier] #appShell #plansCalendar:not([hidden]) .cv-page .cv-banner {
  border: 1px solid var(--atelier-line) !important;
  border-radius: 2px !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] #appShell #plansCalendar:not([hidden]) .cv-page .cv-banner p {
  color: var(--atelier-ink) !important;
}

html[data-atelier] #appShell :where(
  .capture-card, .memory-details, .modal-card, .item-card, .thought-card,
  .thought-search-entry, .calendar-card, .trip-card, .meal-card, .passport-card,
  .person-card, .wdu-card, .hcu-record, .wtu-record, .today-thought-answer,
  .home-overview-link, .hh-card, .hh-empty-card, .people-card, .subscription-card,
  .settings-sheet, .settings-section, .wallet-card, .foru-subscriptions-dialog
) {
  border-radius: 2px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-atelier] #appShell :where(.home-overview-link, .hh-card, .hh-empty-card, .people-card, .settings-sheet, .settings-section, .wallet-card) {
  background-color: var(--atelier-paper) !important;
  border-color: var(--atelier-line) !important;
}

html[data-atelier] #appShell :where(.section-title h2, .today-section-head h2, .home-overview-index-heading h2, .household-section-heading h2, .people-index-heading h2, .people-group-heading h3, .shopping-group h2, .trips-section-head h2, .meal-plans-section-head h2, .passport-create-section h3, .thought-results-heading, .maintenance-section-heading h2, .wtu-trip-section header h3, .hcu-toolbar h3) {
  color: var(--atelier-ink) !important;
  font: 500 10.75px/1.35 var(--font-ui), sans-serif !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #appShell :where(.destination-title, .page-title h2, .home-overview-header h1, .maintenance-operational-header h1) {
  color: var(--atelier-ink) !important;
  font: 300 46px/1.04 var(--font-display), Georgia, serif !important;
  letter-spacing: -.025em !important;
}

html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeGroup > .home-overview-header h1 {
  font: 300 46px/1.04 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell :where(.section-title, .today-section-head, .home-overview-index-heading, .household-section-heading, .people-index-heading, .people-group-heading, .shopping-group, .trips-section-head, .meal-plans-section-head, .maintenance-section-heading, .wtu-trip-section header, .hcu-toolbar) {
  border-bottom: 1px solid var(--atelier-line);
  padding-bottom: 10px;
}

html[data-atelier] #appShell :where(.today-section-count, .section-count, .home-overview-count, .household-section-count) {
  margin-left: auto !important;
  color: var(--atelier-soft) !important;
  font: 500 10.75px/1.35 var(--font-ui), sans-serif !important;
  letter-spacing: .12em !important;
  font-variant-numeric: tabular-nums;
}

html[data-atelier] #appShell .today-section-head h2 {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

html[data-atelier] #appShell .today-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--atelier-line);
}

html[data-atelier] #appShell .today-section-head .today-link {
  flex: 0 0 auto;
}

html[data-atelier] #appShell #today .today-section--attention .today-section-count {
  display: inline !important;
}

html[data-atelier] #appShell .desktop-rail,
html[data-atelier] #appShell .topbar::before {
  background: var(--atelier-paper) !important;
  border-color: var(--atelier-line) !important;
}

html[data-atelier] #appShell :where(.home-overview-link, .home-overview-index-card, .home-overview-group-card, .home-overview-card, .trip-card, .passport-card, .thought-card, .review-card, .photo-card) {
  background: var(--atelier-paper) !important;
  border-color: var(--atelier-line) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell :where(.photo-card img, .review-card img, .passport-card img, .trip-card img) {
  display: block;
  border: 1px solid var(--atelier-line);
  border-radius: 2px !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) {
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) .cloud-card {
  border: 1px solid var(--atelier-line) !important;
  border-radius: 2px !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) .cloud-card > :is(.eyebrow, h1, p, label) {
  color: var(--atelier-ink) !important;
}

/* Phone-only Home Overview fixes: keep translated tile copy in a clear
   vertical reading order, and extend the opaque sticky paper through the
   iPhone safe-area above the masthead. */
@media (max-width: 767px) {
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: 3px;
  }

  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-label,
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-count {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-align: left;
    white-space: normal;
  }

  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-live {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-live-main {
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-live-date {
    flex: 0 1 auto;
    white-space: normal;
  }

  html[data-atelier] #appShell .topbar::before {
    inset: calc(0px - env(safe-area-inset-top) - 12px) -16px -1px;
    width: auto;
    transform: none;
    background: var(--atelier-paper) !important;
    backdrop-filter: none;
  }
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) .cl-formButtonPrimary {
  min-height: 44px !important;
  height: auto !important;
  border: 1px solid var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: var(--atelier-olive) !important;
  color: var(--atelier-paper) !important;
  box-shadow: none !important;
  font: 500 11px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) .cl-socialButtonsBlockButton {
  min-height: 44px !important;
  border: 1px solid var(--atelier-ink) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
  font: 500 11px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) .cl-formFieldInput {
  min-height: 44px !important;
  height: auto !important;
  border: 1px solid var(--atelier-line) !important;
  border-radius: 2px !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) :where(.cl-formFieldLabel, .cl-footerActionText, .cl-footerActionLink, .cl-formFieldHintText, .cl-formFieldErrorText) {
  color: var(--atelier-ink) !important;
}

html[data-atelier] .su-root {
  --su-cream: var(--atelier-paper);
  --su-paper: var(--atelier-paper);
  --su-sage: #e4e5df;
  --su-green: var(--atelier-olive);
  --su-ink: var(--atelier-ink);
  --su-muted: var(--atelier-soft);
  --su-line: var(--atelier-line);
  --su-coral: var(--atelier-alert);
  --su-shadow: none;
}

html[data-atelier] .su-root :is(.su-owner-dialog, .su-shell, .su-guest-card, .su-card, .su-item, .su-candidate, .su-empty) {
  border-radius: 2px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-atelier] .su-root :is(.su-owner-dialog, .su-shell, .su-guest-card, .su-card, .su-item, .su-candidate, .su-empty) {
  border-color: var(--atelier-line) !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] .su-root :is(.su-btn:not(.secondary):not(.quiet):not(.danger):not(.su-btn--quiet):not(.su-btn--plain):not(.su-btn--danger), .su-tab[aria-selected="true"]) {
  min-height: 44px !important;
  border: 1px solid var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: var(--atelier-olive) !important;
  color: var(--atelier-paper) !important;
  box-shadow: none !important;
}

html[data-atelier] .su-root :is(.su-btn.secondary, .su-btn.quiet, .su-btn.danger, .su-btn--quiet, .su-btn--plain, .su-btn--danger) {
  min-height: 44px !important;
  border: 1px solid var(--atelier-ink) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
}

html[data-atelier] .su-root .su-btn.danger,
html[data-atelier] .su-root .su-btn--danger {
  border-color: var(--atelier-alert) !important;
  color: var(--atelier-alert) !important;
}

html[data-atelier] .su-root :is(input, select, textarea) {
  min-height: 44px !important;
  border-radius: 2px !important;
  border-color: var(--atelier-line) !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] .su-root .su-owner-dialog::backdrop {
  background: rgba(22, 25, 24, .72) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 767px) {
  html[data-atelier] #appShell .topbar {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0;
    min-height: 44px;
    padding: 0;
  }

  html[data-atelier] #appShell .topbar > .brand {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 13px;
  }

  html[data-atelier] #appShell .topbar > .top-actions,
  html[data-atelier] #appShell .topbar .mobile-utilities {
    display: contents !important;
  }

  html[data-atelier] #appShell .topbar #mobileLanguageControl {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atelier-ink) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font: 500 11px/1 var(--font-ui), sans-serif;
    letter-spacing: .12em;
  }

  html[data-atelier] #appShell .topbar #mobileLanguageControl #interfaceLanguage {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px !important;
  }

  html[data-atelier] #appShell .topbar #settingsBtn {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atelier-ink) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html[data-atelier] #appShell .topbar #settingsBtn .line-icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.2;
  }
}

@media (min-width: 768px) {
  html[data-atelier] #appShell .topbar {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    align-items: center;
    min-height: 44px;
  }

  html[data-atelier] #appShell .topbar > .brand {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  html[data-atelier] #appShell .topbar > .top-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding-right: 52px;
  }

  html[data-atelier] #appShell .topbar .mobile-utilities {
    display: contents !important;
  }

  html[data-atelier] #appShell .topbar #mobileLanguageControl {
    display: grid !important;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    color: var(--atelier-ink);
    font: 500 11px/1 var(--font-ui), sans-serif;
    letter-spacing: .12em;
    cursor: pointer;
  }

  html[data-atelier] #appShell .rail-utilities #interfaceLanguage {
    position: fixed !important;
    z-index: 55;
    top: 20px;
    left: calc(132px + 24px);
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: transparent !important;
    opacity: 0;
    cursor: pointer;
  }

  html[data-atelier] #appShell:has(#today.active-page) .rail-utilities #interfaceLanguage {
    left: calc(96px + 24px);
  }

  html[data-atelier] #appShell #settingsBtn {
    position: fixed !important;
    z-index: 55;
    top: 20px;
    right: 24px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atelier-ink) !important;
  }

  html[data-atelier] #appShell #settingsBtn .line-icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.2;
  }

  html[data-atelier] #appShell:has(#today.active-page) .topbar {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 44px;
    margin: 0 auto 18px;
  }

  html[data-atelier] #appShell .desktop-rail .rail-brand {
    visibility: hidden;
  }
}

/* Final presentation boundaries: no Today index outside Today, no decorative
   provider gradients, and no inherited dark-on-dark capture heading. */
html[data-atelier] #appShell:not(:has(#today.active-page)) #atelierTodayIndex {
  display: none !important;
}

html[data-atelier] #appShell .capture-card .capture-prompt,
html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .capture-card.today-only .capture-prompt {
  color: var(--atelier-ink) !important;
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

html[data-atelier] #appShell .today-welcome h1 em {
  display: block !important;
}

html[data-atelier] #appShell .home-overview-heading {
  font-size: 46px !important;
  font-weight: 300 !important;
}

html[data-atelier] .atelier-today-index-state.is-overdue {
  color: var(--atelier-alert) !important;
}

html[data-atelier] #authGate button,
html[data-atelier] #authGate button::before,
html[data-atelier] #authGate button::after {
  background-image: none !important;
  box-shadow: none !important;
}

html[data-atelier] button {
  box-shadow: none !important;
}

/* Atelier retains the Needs-you section on small screens too. Its original
   confirmation cards remain interactive; hide only the legacy mobile mirror. */
html[data-atelier] #foruSetupMobile {
  display: none !important;
}

html[data-atelier] #authGate .cl-footer,
html[data-atelier] #authGate .cl-footer::before,
html[data-atelier] #authGate .cl-footer::after,
html[data-atelier] #authGate .cl-internal-b3fm6y {
  background-image: none !important;
  box-shadow: none !important;
}

html[data-atelier] :is(.su-btn.secondary, .su-btn.quiet, .su-close,
 .foru-subscriptions-btn.secondary, .foru-subscriptions-btn.quiet) {
  border-radius: 2px !important;
  background: transparent !important;
  color: var(--atelier-ink) !important;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell #atelierTodayIndex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 930px);
    margin: 0 auto 34px;
    border-top: 1px solid var(--atelier-line);
    border-bottom: 1px solid var(--atelier-line);
  }

  html[data-atelier] #appShell .atelier-today-index-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 7px 10px;
    min-width: 0;
    min-height: 100px !important;
    padding: 16px 14px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atelier-ink) !important;
    text-align: left;
    cursor: pointer;
  }

  html[data-atelier] #appShell .atelier-today-index-item + .atelier-today-index-item {
    border-left: 1px solid var(--atelier-line) !important;
  }

  html[data-atelier] #appShell .atelier-today-index-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--atelier-brass);
    font: italic 400 16px/1.3 var(--font-display), Georgia, serif;
  }

  html[data-atelier] #appShell .atelier-today-index-label {
    color: var(--atelier-ink);
    font: 500 10.5px/1.3 var(--font-ui), sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
  }

  html[data-atelier] #appShell .atelier-today-index-state {
    color: var(--atelier-soft);
    font: 400 12px/1.4 var(--font-ui), sans-serif;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  html[data-atelier] #appShell #atelierTodayIndex {
    display: none !important;
  }
}

html[data-atelier] .foru-subscriptions-dialog {
  border-radius: 2px !important;
  border-color: var(--atelier-line) !important;
  background: var(--atelier-paper) !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
}

html[data-atelier] .foru-subscriptions-dialog :is(
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .foru-subscriptions-btn.primary,
  .foru-subscriptions-btn.confirm
) {
  min-height: 44px !important;
  border-color: var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: var(--atelier-olive) !important;
  color: var(--atelier-paper) !important;
}

html[data-atelier] .foru-subscriptions-dialog :is(.foru-subscriptions-btn.secondary, .foru-subscriptions-btn.quiet, .foru-subscriptions-btn.danger) {
  min-height: 44px !important;
  border-color: var(--atelier-ink) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier] .foru-subscriptions-dialog .foru-subscriptions-btn.danger {
  border-color: var(--atelier-alert) !important;
  color: var(--atelier-alert) !important;
}

/* The overview keeps the existing image and record title, but puts the caption
   on paper beneath the print instead of tinting text over an image. */
html[data-atelier] #appShell #homeOverview .home-overview-panel {
  display: grid !important;
  grid-template-rows: auto auto;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: var(--atelier-ink) !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-media,
html[data-atelier] #appShell #homeOverview .home-overview-panel-fallback {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border: 1px solid var(--atelier-line) !important;
  border-radius: 2px !important;
  background: var(--atelier-paper) !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-media::after {
  display: none !important;
  content: none !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-fallback {
  background: var(--atelier-paper) !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-fallback-copy {
  position: static !important;
  margin: 10px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-soft) !important;
  font: 500 10.5px/1.4 var(--font-ui), sans-serif !important;
  letter-spacing: .18em;
  text-align: left;
  text-transform: uppercase;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-caption {
  position: static !important;
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0 !important;
  color: var(--atelier-ink) !important;
  font: 400 23px/1.08 var(--font-display), Georgia, serif !important;
  text-shadow: none !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-label {
  color: var(--atelier-soft) !important;
  font: 500 10.5px/1.4 var(--font-ui), sans-serif !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
}

html[data-atelier] #appShell #homeOverview .home-overview-panel-title {
  color: var(--atelier-ink) !important;
  font: 400 23px/1.08 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell :where(
  .cv-calendar, .cv-selected, .cv-upcoming, .cv-all, .cv-row,
  .tp-card, .tp-place-card, .meal-recipe-card, .inspiration-card,
  .wtu-card, .passport-card, .hcu-card, .people-record-card,
  .home-overview-panel
) {
  border-radius: 2px !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell :where([class*="-card"], [class$="Card"], [class*="-sheet"], [class$="Sheet"], [class*="-panel"]) {
  border-radius: 2px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-atelier] #appShell :where(img, picture, video, iframe) {
  border-radius: 2px !important;
}

html[data-atelier] #appShell :where(input, textarea, select)::placeholder {
  color: var(--atelier-soft) !important;
  opacity: 1;
}

html[data-atelier] #appShell .capture-main #captureInput::placeholder {
  color: var(--atelier-soft) !important;
  font-family: var(--font-display), Georgia, serif !important;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell .topbar {
    position: relative;
  }

  html[data-atelier] #appShell .topbar #mobileLanguageControl {
    position: fixed !important;
    z-index: 55;
    top: 20px;
    left: calc(132px + 24px);
  }

  html[data-atelier] #appShell:has(#today.active-page) .topbar #mobileLanguageControl {
    left: calc(96px + 24px);
  }

  html[data-atelier] #appShell .rail-utilities #interfaceLanguage {
    z-index: 56;
  }
}

html[data-atelier] #appShell :where(button:not(.sr-only):not([hidden]), summary, [role="button"], a[href], input[type="button"], input[type="submit"], .file-btn) {
  min-width: 44px !important;
  min-height: 44px !important;
}

html[data-atelier] #appShell a[href] {
  display: inline-flex;
  align-items: center;
}

html[data-atelier] #appShell input[type="checkbox"],
html[data-atelier] #appShell input[type="radio"] {
  box-sizing: border-box;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0;
  border: 0;
  appearance: none;
  background: transparent;
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  vertical-align: middle;
}

html[data-atelier] #appShell input[type="checkbox"]::before,
html[data-atelier] #appShell input[type="radio"]::before {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid var(--atelier-soft);
  background: var(--atelier-paper);
  content: "";
}

html[data-atelier] #appShell input[type="radio"]::before {
  border-radius: 50%;
}

html[data-atelier] #appShell input[type="checkbox"]:checked::before {
  border-color: var(--atelier-olive);
  background: var(--atelier-olive);
  box-shadow: inset 0 0 0 3px var(--atelier-paper);
}

html[data-atelier] #appShell input[type="radio"]:checked::before {
  border-color: var(--atelier-olive);
  background: var(--atelier-olive);
  box-shadow: inset 0 0 0 3px var(--atelier-paper);
}

html[data-atelier] #appShell :where(
  .home-overview-group-title, .home-overview-section-heading h2,
  .household-editorial-heading h1, .household-section-heading h2,
  .people-index-heading h2, .people-group-heading h3,
  .trips-section-head h2, .meal-plans-section-head h2,
  .shopping-group h2, .today-section-head h2,
  .section-title h2, .page-title h2
) {
  color: var(--atelier-ink) !important;
}

html[data-atelier] #appShell :where(
  .home-overview-link-label, .home-overview-recent-title,
  .today-row-body strong, .shopping-name, .people-name,
  .trip-destination, .trip-card-title, .meal-recipe-title,
  .in-card-title, .passport-card-title, .wtu-record-main strong,
  .delegation-person-name, .household-open-row-title
) {
  color: var(--atelier-ink) !important;
  font-family: var(--font-display), Georgia, serif !important;
  font-weight: 400 !important;
}

html[data-atelier] #appShell .home-overview-link-label {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-group-links {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-link {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-height: 76px;
  padding: 14px 2px;
  border: 0 !important;
  border-top: 1px solid var(--atelier-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-link:hover {
  border-color: var(--atelier-line) !important;
  background: transparent !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-link-arrow {
  color: var(--atelier-soft) !important;
}

html[data-atelier] #appShell :where(.home-overview-group-title, .home-overview-section-heading h2, .pp-heading h2) {
  color: var(--atelier-ink) !important;
  font: 500 10.75px/1.35 var(--font-ui), sans-serif !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #appShell #homeOverview .home-overview-group-title,
html[data-atelier] #appShell #homeOverview .home-overview-section-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--atelier-line) !important;
}

html[data-atelier] #appShell .pp-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

html[data-atelier] #appShell .pp-heading h2 > span {
  margin-left: auto;
  color: var(--atelier-soft) !important;
  font: 500 10.75px/1.35 var(--font-ui), sans-serif !important;
  letter-spacing: .12em !important;
  font-variant-numeric: tabular-nums;
}

html[data-atelier] #appShell .household-section-meta {
  margin-left: auto;
  color: var(--atelier-soft) !important;
  font: 500 10.75px/1.35 var(--font-ui), sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

html[data-atelier] #appShell .household-count {
  color: var(--atelier-ink) !important;
  font-variant-numeric: tabular-nums;
}

html[data-atelier] #appShell :where([class*="-card"], [class$="Card"], [class*="-sheet"], [class$="Sheet"]) {
  background-image: none !important;
  background-color: var(--atelier-paper) !important;
  border-color: var(--atelier-line) !important;
}

html[data-atelier] .su-root .su-skeleton {
  background: var(--atelier-line) !important;
  background-image: none !important;
  animation: none !important;
}

html[data-atelier] .su-root .su-check input {
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
}

html[data-atelier] .su-root :where(button, a.su-btn, summary, [role="button"]) {
  min-width: 44px !important;
  min-height: 44px !important;
}

html[data-atelier] .foru-subscriptions :where(button, a.foru-subscriptions-link, input[type="button"], input[type="submit"]) {
  min-width: 44px !important;
  min-height: 44px !important;
}

html[data-atelier] .foru-subscriptions-dialog :where(button, a[href], summary, input[type="button"], input[type="submit"]) {
  min-width: 44px !important;
  min-height: 44px !important;
}

html[data-atelier] #authGate:has(.cloud-sign-in-form) :where(button, a[href]) {
  min-width: 44px !important;
  min-height: 44px !important;
}

@media (prefers-color-scheme: dark) {
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) .su-root {
    --su-sage: #343a33;
  }

  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) .su-root .su-status,
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) .su-root .su-pill {
    background: #343a33 !important;
    color: var(--atelier-ink) !important;
  }
}

html[data-atelier][data-theme="dark"] .su-root,
html[data-atelier][data-color-scheme="dark"] .su-root {
  --su-sage: #343a33;
}

html[data-atelier][data-theme="dark"] .su-root :is(.su-status, .su-pill),
html[data-atelier][data-color-scheme="dark"] .su-root :is(.su-status, .su-pill) {
  background: #343a33 !important;
  color: var(--atelier-ink) !important;
}

html[data-atelier][data-theme="dark"] #appShell .foru-subscriptions,
html[data-atelier][data-color-scheme="dark"] #appShell .foru-subscriptions,
html[data-atelier][data-theme="dark"] .foru-subscriptions-dialog,
html[data-atelier][data-color-scheme="dark"] .foru-subscriptions-dialog {
  --fs-moss-soft: #343a33;
  --fs-wine-soft: #463332;
}

html[data-atelier] #appShell :is(
  .primary-btn, .card-btn.dark, .universal-add, .home-overview-add,
  .wtu-primary, .tp-add, .cv-primary,
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .su-btn:not(.secondary):not(.quiet):not(.danger):not(.su-btn--quiet):not(.su-btn--plain):not(.su-btn--danger),
  .su-tab[aria-selected="true"]
) {
  font: 500 11px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html[data-atelier] .foru-subscriptions-dialog :is(
  .foru-subscriptions-btn:not(.secondary):not(.quiet):not(.danger),
  .foru-subscriptions-btn.primary,
  .foru-subscriptions-btn.confirm
) {
  font: 500 11px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html[data-atelier] .su-root :is(
  .su-btn:not(.secondary):not(.quiet):not(.danger):not(.su-btn--quiet):not(.su-btn--plain):not(.su-btn--danger),
  .su-tab[aria-selected="true"]
) {
  font: 500 11px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell:has(#today.active-page) .today-editorial {
    display: grid !important;
    grid-template-columns: minmax(0, 310px) minmax(260px, 1fr) !important;
    align-items: center;
    gap: clamp(28px, 5vw, 76px) !important;
    width: min(100%, 930px) !important;
    min-height: 0 !important;
    margin: 0 auto 36px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .today-welcome h1 {
    font: 300 46px/1.04 var(--font-display), Georgia, serif !important;
    letter-spacing: -.025em !important;
  }

  html[data-atelier] #appShell .topbar #mobileLanguageControl {
    position: fixed !important;
    top: 20px;
    left: calc(132px + 24px);
    z-index: 55;
  }

  html[data-atelier] #appShell:has(#today.active-page) .topbar #mobileLanguageControl {
    left: calc(96px + 24px);
  }

  html[data-atelier] #appShell .rail-utilities #interfaceLanguage {
    z-index: 56;
  }
}

@media (prefers-color-scheme: dark) {
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) .su-root,
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) #appShell .foru-subscriptions,
  html[data-atelier]:not([data-theme="light"]):not([data-color-scheme="light"]) #appShell .foru-subscriptions-dialog {
    --su-sage: #343a33;
    --fs-moss-soft: #343a33;
    --fs-wine-soft: #463332;
  }
}

/* The mobile ledger navigation is viewport-bound, above the page rather than
   behind the former hero stacking context. It never enlarges the viewport. */
/* Dialog actions must remain above navigation at every scroll position. */
html[data-atelier] .modal { z-index: 400; }
@media (max-width: 767px) {
  html[data-atelier] #appShell > .bottom-nav {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 200 !important;
    display: flex !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 64px !important;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--atelier-line) !important;
    border-radius: 0 !important;
    background: var(--atelier-paper) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
  }
  html[data-atelier] #appShell > .bottom-nav .tab {
    position: relative !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    column-gap: 3px !important;
    white-space: nowrap !important;
    min-height: 48px !important;
    padding: 10px 2px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atelier-soft) !important;
    font: 500 10.5px/1.2 var(--font-ui) !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
  }
  html[data-atelier] #appShell > .bottom-nav .tab.active {
    background: transparent !important;
    color: var(--atelier-ink) !important;
  }
  html[data-atelier] #appShell > .bottom-nav .tab.active::before {
    position: absolute;
    top: calc(50% + 8px);
    bottom: auto;
    left: 15%;
    width: 70%;
    height: 1px;
    border-radius: 0;
    background: var(--atelier-ink);
    content: "";
  }
  html[data-atelier] #appShell > .bottom-nav .line-icon {
    display: none !important;
  }
  html[data-atelier] #appShell > .bottom-nav .shopping-count {
    border: 0 !important;
    background: transparent !important;
    color: var(--atelier-soft) !important;
  }
  html[data-atelier] #appShell > .bottom-nav .tab[data-tab="shopping"] > span:first-of-type::before {
    letter-spacing: .08em !important;
  }
}

html[data-atelier] #appShell #todayEditorialGreeting {
  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
}
html[data-atelier] #appShell #todayEditorialGreeting > br {
  display: none !important;
}
html[data-atelier] #appShell #todayEditorialGreeting > em {
  display: block !important;
  font-weight: 400 !important;
}
html[data-atelier] #appShell #captureInput,
html[data-atelier] #appShell #captureInput::placeholder {
  font-family: var(--font-ui) !important;
  font-style: normal !important;
}
html[data-atelier] #authGate .cl-socialButtonsBlockButton {
  border-radius: 2px !important;
}

@media (max-width: 767px) {
  html[data-atelier][lang^="en"] .bottom-nav .tab[data-tab="shopping"] > span {
    font-size: 0 !important;
  }
  html[data-atelier][lang^="en"] .bottom-nav .tab[data-tab="shopping"] > span::before {
    content: var(--foru-shop-label, "SHOPPING");
    font: 500 10.5px/1.2 var(--font-ui);
    letter-spacing: .12em;
  }
  html[data-atelier][lang^="en"] .bottom-nav .shopping-count {
    font-size: 10.5px !important;
  }
  html[data-atelier] #appShell #today .today-grid,
  html[data-atelier] #appShell #today .today-main,
  html[data-atelier] #appShell #today .today-aside {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html[data-atelier] #appShell #today .today-section-head {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }
  html[data-atelier] #appShell #today .today-section-head h2 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }
  html[data-atelier] #appShell #today .today-section-head .today-link {
    flex: 0 0 auto !important;
    width: auto !important;
  }
}

/* Keep the shell opaque through the iPhone safe area on every page.
   Earlier presentation rules made this header relative on mobile. */
@media (max-width: 767px) {
  html[data-atelier] #appShell .topbar {
    position: sticky !important;
    top: env(safe-area-inset-top, 0px);
    z-index: 60;
    isolation: isolate;
    background: var(--atelier-paper) !important;
  }
  html[data-atelier] #appShell .topbar::before {
    background: var(--atelier-paper) !important;
    inset: calc(0px - env(safe-area-inset-top, 0px) - 16px) -16px -1px;
    z-index: -1;
    pointer-events: none;
  }
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-live {
    display: block;
    grid-column: 1;
    grid-row: 2;
  }
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-arrow {
    grid-column: 2;
    grid-row: 2;
  }
  html[data-atelier] #appShell:has(#homeGroup.active-page #homeOverview.active-page) #homeOverview .home-overview-link-label {
    grid-column: 1 / -1;
    width: 100%;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
  }
}

/* Provider-owned sign-in decoration is flat too; its controls and status text
   stay intact. The Google provider remains a secondary outlined action. */
html[data-atelier] #authGate *,
html[data-atelier] #authGate *::before,
html[data-atelier] #authGate *::after {
  background-image: none !important;
}
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton,
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton::before,
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton::after {
  border-radius: 2px !important;
}
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton {
  border: 1px solid var(--atelier-ink) !important;
  background: transparent !important;
}
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton::before,
html[data-atelier] #authGate #cloudClerkForm .cl-socialButtonsBlockButton::after {
  display: none !important;
}

/* =========================================================
   PAGE REVIEW OVERRIDES — Today, navigation, and Shopping
   Additive CSS only; uses the established Atelier palette.
   ========================================================= */

/* Desktop Today shares Home's centered content measure and shell gutters. */
@media (min-width: 1024px) {
  html[data-atelier] #appShell:has(#today.active-page) {
    padding: 22px clamp(40px, 5vw, 78px) var(--space-8)
      clamp(164px, calc(120px + 4vw), 190px) !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .today-editorial {
    display: grid !important;
    grid-template-columns: minmax(0, min(440px, 43%)) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(32px, 5vw, 76px) !important;
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;
    margin: 0 auto 36px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-print {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .today-welcome {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    min-width: 0;
    padding: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayEditorialGreeting {
    font-size: 56px !important;
    line-height: 1.02 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-date-day {
    font-size: 72px !important;
  }
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-print img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  object-fit: cover;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--atelier-soft);
  font: 500 10.5px/1.4 var(--font-ui), sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html[data-atelier] #appShell:has(#today.active-page) .today-editorial-date {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 14px;
  row-gap: 0;
  margin: 0 0 16px !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-date-context {
  display: grid;
  align-content: center;
  gap: 14px;
  color: var(--atelier-soft);
  font: 500 10.5px/1.4 var(--font-ui), sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-date-context > * {
  display: block;
}

/* The capture and index now live in the welcome column; keep them in its flow. */
html[data-atelier] #appShell:has(#today.active-page) .today-welcome > .capture-card.today-only {
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
  padding: 18px 0 12px !important;
}

html[data-atelier] #appShell:has(#today.active-page) #captureInput {
  resize: none !important;
}

html[data-atelier] #appShell:has(#today.active-page) :is(
  .capture-review-pill, .today-review-pill, .review-pill, #captureReviewLabel
) {
  color: var(--atelier-olive) !important;
  font: 500 10.5px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #appShell:has(#today.active-page) #atelierTodayIndex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-number {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-brass) !important;
  font: italic 400 16px/1.3 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-label {
  color: var(--atelier-ink) !important;
  font: 400 18px/1.15 var(--font-display), Georgia, serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Daily work: one full-width Needs you section, then tasks beside agenda. */
@media (min-width: 768px) {
  html[data-atelier] #appShell:has(#today.active-page) #today .today-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr) !important;
    grid-template-areas: "attention attention" "todos agenda" "todos delegated" !important;
    grid-template-rows: auto min-content 1fr !important;
    gap: 40px 48px !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 40px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today :is(.today-main, .today-side) {
    display: contents !important;
  }
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-section--attention {
  grid-area: attention;
  width: 100%;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-section--todos {
  grid-area: todos;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-section--agenda {
  grid-area: agenda;
}

html[data-atelier] #appShell:has(#today.active-page) #today .today-section--delegated {
  grid-area: delegated;
}

html[data-atelier] #appShell:has(#today.active-page) #today :is(
  .today-row-body strong, .today-agenda-row .today-row-body button,
  .delegation-person-name
) {
  color: var(--atelier-ink) !important;
  font: 400 20px/1.25 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell:has(#today.active-page) #today :is(
  .today-todo-row, .today-attention-row, .today-agenda-row, .today-helper
) {
  align-items: flex-start;
}

html[data-atelier] #appShell:has(#today.active-page) :is(
  .today-todo-check, .todo-check, .today-todo-row input[type="checkbox"],
  .shopping-row .shopping-check
) {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

html[data-atelier] #appShell:has(#today.active-page) .today-section-head :is(.today-link, .today-calendar-link),
html[data-atelier] #appShell:has(#today.active-page) .today-calendar-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
  box-shadow: none !important;
  font: 500 13px/1.25 var(--font-ui), sans-serif !important;
  text-decoration: none !important;
}

html[data-atelier] #appShell:has(#today.active-page) :is(
  .today-link, .today-calendar-link
):hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Household navigation stays an editorial rail with a small brass active mark. */
html[data-atelier] #appShell .desktop-nav .tab {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 2px !important;
  letter-spacing: .2em !important;
  text-align: left !important;
  text-transform: uppercase;
}

html[data-atelier] #appShell .desktop-nav .tab .line-icon {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
}

html[data-atelier] #appShell .desktop-nav .tab.active::before {
  left: -6px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50%;
  background: var(--atelier-brass) !important;
}

html[data-atelier] #appShell :is(.desktop-nav, .bottom-nav) .tab[data-tab="shopping"] > span:first-of-type {
  font-size: 0 !important;
}

html[data-atelier] #appShell :is(.desktop-nav, .bottom-nav) .tab[data-tab="shopping"] > span:first-of-type::before {
  content: var(--foru-shop-label, "SHOPPING");
  color: inherit;
  font: 500 10.5px/1.2 var(--font-ui), sans-serif;
  letter-spacing: .2em;
}

html[data-atelier] #appShell .atelier-nav-count {
  position: relative;
  top: -.35em;
  display: inline-block;
  margin-left: 3px;
  color: var(--atelier-brass);
  font: 500 9px/1 var(--font-ui), sans-serif;
  letter-spacing: .04em;
  vertical-align: super;
}

/* Review photos surface as a restrained fixed toast stack. */
html[data-atelier] #photoCaptureConfirmations {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  z-index: 250 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

html[data-atelier] #photoCaptureConfirmations > * {
  max-width: 100%;
  border: 1px solid var(--atelier-line);
  border-radius: 2px;
  background: var(--atelier-paper);
  color: var(--atelier-ink);
  box-shadow: none;
  pointer-events: auto;
}

html[data-atelier] #photoCaptureConfirmations .atelier-toast-hidden {
  display: none !important;
}

/* Shopping is a full-width ledger on desktop, not a narrow auxiliary column. */
@media (min-width: 768px) {
  html[data-atelier] #appShell #shopping.sp-page:has(.shopping-tab[data-shopping-tab="active"].active) .shopping-primary {
    width: 100% !important;
    max-width: none !important;
  }
}

html[data-atelier] #appShell #shopping.sp-page .shopping-row .shopping-check > span {
  width: 14px !important;
  height: 14px !important;
  border: 1px solid var(--atelier-soft) !important;
  border-radius: 0 !important;
}

html[data-atelier] #appShell #shopping.sp-page .shopping-row .shopping-check input:checked + span {
  border-color: var(--atelier-olive) !important;
  border-radius: 0 !important;
  background: var(--atelier-olive) !important;
  box-shadow: inset 0 0 0 3px var(--atelier-paper) !important;
}

/* Requested compact olive ADD treatment preserves the existing click targets. */
html[data-atelier] #appShell :is(.home-overview-add, .plans-add, .plans-calendar-add) {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 14px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
  box-shadow: none !important;
  font: 500 10.5px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

html[data-atelier] #appShell :is(.atelier-add-label, .plans-add-label) {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell:has(#today.active-page) .cloud-header-status {
    max-width: 190px;
    color: var(--atelier-soft) !important;
    font: 500 9.5px/1.3 var(--font-ui), sans-serif !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
  }
}

@media (max-width: 767px) {
  html[data-atelier] #appShell:has(#today.active-page) .today-editorial {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 24px auto 28px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-print {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    margin-inline: auto !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #todayEditorialGreeting {
    font-size: 40px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-date-day {
    font-size: 64px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #atelierTodayIndex {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    min-height: 44px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--atelier-line) !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item + .atelier-today-index-item {
    border-left: 0 !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-number {
    grid-row: auto;
  }

  html[data-atelier] #appShell:has(#today.active-page) #today .today-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "attention" "agenda" "todos" "delegated" !important;
    grid-template-rows: auto !important;
    gap: 32px !important;
    margin-top: 32px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .today-link,
  html[data-atelier] #appShell:has(#today.active-page) .today-calendar-link {
    min-height: 44px !important;
  }

  html[data-atelier] #photoCaptureConfirmations {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    width: min(340px, calc(100vw - 24px));
  }
}

/* Existing global capture control supplies the Home/Plans top-right action. */
html[data-atelier] #appShell :is(.atelier-add-original) { display: none !important; }
html[data-atelier] #appShell:has(:is(#homeGroup, #plansGroup).active-page) #universalAdd {
  width: auto !important;
  min-width: 78px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
  font: 500 11px/1 var(--font-ui), sans-serif !important;
  letter-spacing: .18em;
}
html[data-atelier] #appShell #today .today-calendar-link > span:not(.atelier-link-chevron) { display: none; }
html[data-atelier] #appShell:has(#today.active-page) .todo-check::before,
html[data-atelier] #appShell #shopping.sp-page .shopping-check > span { border-color: var(--atelier-ink) !important; }

/* Atelier final visual corrections — presentation only; actions and data stay intact. */
html[data-atelier] #appShell:has(#today.active-page) #atelierTodayIndex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
  border-top: 1px solid var(--atelier-line) !important;
  border-bottom: 1px solid var(--atelier-line) !important;
}

html[data-atelier] #appShell:has(#today.active-page) #todayMobileHero .today-mobile-tiles {
  display: none !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 86px !important;
  padding: 12px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item + .atelier-today-index-item {
  border-left: 1px solid var(--atelier-line) !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-number {
  display: block !important;
  color: var(--atelier-brass) !important;
  font: italic 400 16px/1.15 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-label {
  display: block !important;
  min-width: 0 !important;
  color: var(--atelier-ink) !important;
  font: 400 19px/1.05 var(--font-display), Georgia, serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-state {
  display: block !important;
  color: var(--atelier-soft) !important;
  font: 400 11.5px/1.3 var(--font-ui), sans-serif !important;
  overflow-wrap: anywhere;
}

html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-state.is-overdue {
  color: var(--atelier-alert) !important;
}

html[data-atelier] #appShell:has(#today.active-page) #rememberBtn #captureReviewLabel {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-paper) !important;
  font: 500 10.5px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

html[data-atelier] .foru-subscriptions-setup-offer .foru-subscriptions-btn.secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 8px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
  font: 500 10.5px/1.2 var(--font-ui), sans-serif !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

html[data-atelier] #appShell [data-setup-kind="recordTypos"] ul.item-copy {
  margin: 12px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html[data-atelier] #appShell [data-setup-kind="recordTypos"] ul.item-copy > li {
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--atelier-line) !important;
}

html[data-atelier] #appShell [data-setup-kind="recordTypos"] ul.item-copy > li > strong {
  display: block;
  color: var(--atelier-ink) !important;
  font: 400 20px/1.15 var(--font-display), Georgia, serif !important;
}

html[data-atelier] #appShell [data-setup-kind="recordTypos"] ul.item-copy > li > p {
  margin: 4px 0 0 !important;
  color: var(--atelier-soft) !important;
  font: 400 12px/1.4 var(--font-ui), sans-serif !important;
}

@media (min-width: 768px) {
  html[data-atelier] #appShell .desktop-rail {
    width: 148px !important;
    min-width: 148px !important;
    padding: 20px 20px 18px !important;
  }

  html[data-atelier] #appShell .desktop-nav .tab {
    padding-inline: 2px !important;
  }

  html[data-atelier] #appShell .desktop-nav .tab.active::before {
    left: -20px !important;
  }

  html[data-atelier] #appShell .rail-utilities {
    left: 20px !important;
    width: 108px !important;
  }

  html[data-atelier] #appShell .rail-utilities #interfaceLanguage {
    width: 108px !important;
    min-width: 108px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .cloud-header-status {
    display: none !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) #atelierTodayIndex {
    width: min(100%, 930px) !important;
    margin: 0 auto 34px !important;
  }
}

@media (max-width: 767px) {
  html[data-atelier] #appShell:has(#today.active-page) #atelierTodayIndex {
    margin-top: 20px !important;
  }

  html[data-atelier] #appShell:has(#today.active-page) .atelier-today-index-item {
    min-height: 82px !important;
    padding: 10px 7px !important;
  }
}

html[data-atelier] #appShell #rememberBtn {
  width: auto !important;
  min-width: 90px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 22px !important;
  background: var(--atelier-olive) !important;
  color: var(--atelier-paper) !important;
}
html[data-atelier] #appShell #rememberBtn #captureReviewLabel {
  display: inline !important;
  color: inherit !important;
}
html[data-atelier] #appShell #rememberBtn > span:not(#captureReviewLabel),
html[data-atelier] #appShell #rememberBtn::after { display: none !important; }
html[data-atelier] #appShell #universalAdd .atelier-add-label { display: none; }
html[data-atelier] #appShell #universalAdd .atelier-add-original { display: inline !important; }
html[data-atelier] #appShell:has(:is(#homeGroup, #plansGroup).active-page) #universalAdd .atelier-add-label { display: inline; }
html[data-atelier] #appShell:has(:is(#homeGroup, #plansGroup).active-page) #universalAdd .atelier-add-original { display: none !important; }
html[data-atelier] #appShell :is(.desktop-nav, .bottom-nav) .atelier-nav-count {
  font-size: 0 !important;
}
html[data-atelier] #appShell :is(.desktop-nav, .bottom-nav) .atelier-nav-count::before { display: none !important; }
html[data-atelier] #appShell :is(.desktop-nav, .bottom-nav) .atelier-nav-count::after {
  content: attr(data-atelier-count);
  font: 500 9px/1 var(--font-ui), sans-serif;
  letter-spacing: .04em;
}
html[data-atelier] #appShell:has(#today.active-page) .today-welcome #rememberBtn,
html[data-atelier] #appShell:has(#today.active-page) .today-welcome #rememberBtn #captureReviewLabel {
  color: var(--atelier-paper) !important;
}
html[data-atelier] #appShell:has(#today.active-page) .today-editorial-date { align-items: last baseline !important; }
html[data-atelier] #appShell #today :is(.today-link, .today-calendar-link)::after { content: none !important; }
html[data-atelier] #appShell #today .todo-check {
  align-items: start !important;
  padding-top: 6px !important;
}
html[data-atelier] #appShell:has(#homeGroup.active-page) #homeGroup .home-overview-add {
  width: auto !important;
  min-width: 78px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid var(--atelier-olive) !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: var(--atelier-olive) !important;
}
