:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-muted: #f7f4ec;
  --text: #182322;
  --muted: #68716f;
  --line: #dcd8ce;
  --line-soft: #ebe7dd;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --accent-soft: #e2f4ef;
  --warning: #8a5a0a;
  --warning-soft: #fff4d6;
  --danger: #9c3424;
  --danger-soft: #fff0ec;
  --ok: #20733a;
  --ok-soft: #def4e5;
  --surface-quiet: #fbfaf6;
  --surface-accent: #f4fbf8;
  --shadow: 0 12px 30px rgba(26, 31, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: white;
  font-weight: 850;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p {
  margin: 0;
}

.brand h1 {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.tabs {
  display: grid;
  gap: 5px;
}

.tab,
.subtle-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.tab:hover,
.subtle-button:hover {
  background: var(--surface-muted);
}

.tab:focus,
.subtle-button:focus,
.guide-snippet-header button:focus,
.side-tools summary:focus {
  outline: none;
}

.tab:focus-visible,
.subtle-button:focus-visible,
.guide-snippet-header button:focus-visible,
.side-tools summary:focus-visible,
#searchInput:focus-visible,
#leadMinutes:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.tab.active {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.side-block {
  display: grid;
  gap: 7px;
}

.side-tools {
  display: block;
}

.side-tools summary {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

.side-tools summary:hover {
  background: var(--surface-muted);
}

.side-tools-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.side-block label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

#searchInput,
#leadMinutes {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

#searchInput:focus,
#leadMinutes:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.subtle-button {
  border-color: var(--line);
  background: var(--surface);
  text-align: center;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 46px) 56px;
}

.view,
.panel,
.routine-block,
.doc-section,
.guide-card,
.shopping-card,
.shopping-mini-card,
.tabs,
.side-block,
.topbar,
.today-layout,
.today-support-grid,
.dashboard-grid,
.shopping-layout,
.shopping-inventory-grid,
.manual-grid,
.week-grid,
.frequency-secondary,
.frequency-layout,
.frequency-stack,
.frequency-blocks {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.grid,
.section-stack,
.timeline,
.clarity-body,
.now-help,
.now-help-grid,
.task-list,
.task,
.task-copy,
.task-help-content,
.help-section,
.product-list,
.mini-list,
.flagged-group,
.flagged-group ul,
.guide-card,
.guide-card-body,
.today-layout,
.today-support-grid,
.shopping-layout,
.shopping-card,
.shopping-card-body,
.shopping-inventory-grid,
.shopping-mini-card,
.compact-block,
.frequency-column,
.frequency-layout,
.frequency-secondary,
.frequency-stack,
.frequency-blocks {
  display: grid;
}

.grid {
  gap: 16px;
}

.section-stack,
.timeline {
  gap: 14px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(292px, 0.55fr);
  align-items: start;
}

.today-layout {
  gap: 14px;
}

.today-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.panel,
.planner-hero,
.routine-block,
.agenda-card,
.doc-section,
.guide-card,
.shopping-card,
.shopping-mini-card,
.frequency-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  box-shadow: var(--shadow);
}

.shopping-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.shopping-card {
  gap: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(26, 31, 29, 0.05);
}

.shopping-card-header {
  display: grid;
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}

.shopping-card-header h3,
.shopping-mini-card h4 {
  margin: 0;
  line-height: 1.2;
}

.shopping-card-body ul,
.shopping-mini-card ul {
  margin: 0;
  padding-left: 20px;
}

.shopping-card-body li,
.shopping-mini-card li {
  line-height: 1.48;
}

.shopping-inventory {
  grid-column: 1 / -1;
}

.shopping-inventory-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.shopping-mini-card {
  gap: 9px;
  align-content: start;
  padding: 13px;
  background: var(--surface-quiet);
}

.planner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.planner-hero h3 {
  margin: 8px 0 5px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.planner-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.45;
}

.planner-today {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--surface-accent);
}

.planner-today strong {
  color: var(--accent-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.planner-today span {
  text-align: right;
  font-weight: 800;
  line-height: 1.25;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.panel-body {
  padding: 16px;
}

.day-profile,
.now-card {
  padding: 16px;
}

.day-profile {
  display: block;
}

.day-profile h3 {
  margin: 9px 0 5px;
  max-width: 760px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.day-profile p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

.now-card {
  display: grid;
  gap: 13px;
  border-left: 5px solid var(--accent);
}

.now-card h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  line-height: 1.15;
}

.now-meta,
.task-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.routine-block {
  gap: 11px;
  padding: 14px;
}

.routine-block.current {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.routine-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.routine-title h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.routine-time {
  color: var(--accent);
  font-weight: 850;
}

.task-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task {
  gap: 8px;
}

.task-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.task-main input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.task-copy {
  gap: 5px;
}

.task-copy > span {
  line-height: 1.42;
}

.task-main input:checked + .task-copy > span {
  color: var(--muted);
  text-decoration: line-through;
}

.task-soft .task-copy > span {
  color: var(--muted);
}

.task-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.task-badge.conditional {
  border-color: #dfc987;
  background: var(--warning-soft);
  color: var(--warning);
}

.task-badge.pending,
.task-badge.not-today {
  background: #f0eee8;
  color: #69665e;
}

.task-badge.cycle {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.task-badge.today {
  border-color: rgba(32, 115, 58, 0.32);
  background: var(--ok-soft);
  color: var(--ok);
}

.task-badge.caution {
  border-color: #e4b5aa;
  background: var(--danger-soft);
  color: var(--danger);
}

.task-help {
  margin-left: 33px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #fbfefd;
}

.task-help summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
}

.task-help[open] summary {
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.task-help-content,
.help-section,
.now-help-grid,
.product-list,
.flagged-group ul {
  gap: 9px;
}

.task-help-content {
  padding: 10px 11px 11px;
  background: var(--surface);
}

.task-note,
.note {
  margin: 0;
  border-left: 3px solid var(--danger);
  border-radius: 7px;
  background: #fff7f4;
  color: #432521;
  font-size: 0.9rem;
  line-height: 1.45;
}

.task-note {
  padding: 8px 10px;
}

.note {
  padding: 8px 10px;
}

.routine-block > .task-list + .note,
.routine-block > .task-list ~ .note {
  margin-left: 33px;
}

.compact-note {
  font-size: 0.86rem;
  padding: 8px 9px;
}

.help-section > strong,
.flagged-group > strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-snippet {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
}

.guide-snippet:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.guide-snippet-header,
.now-help-header,
.guide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.guide-snippet h5,
.now-help h4,
.guide-card h3,
.compact-block h4,
.frequency-column h3 {
  margin: 0;
}

.guide-snippet h5 {
  font-size: 0.94rem;
}

.guide-snippet-header button {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.guide-snippet-header button:hover {
  background: var(--accent-soft);
}

.guide-snippet ul,
.guide-card-body ul,
.guide-card-body ol,
.doc-section ul,
.doc-section ol {
  padding-left: 20px;
}

.guide-snippet ul,
.guide-snippet p,
.product-list,
.mini-list,
.flagged-group ul {
  margin: 0;
}

.guide-snippet li,
.guide-snippet p,
.guide-card-body li,
.guide-card-body p,
.doc-section p,
.doc-section li {
  line-height: 1.48;
}

.product-list,
.mini-list,
.flagged-group ul {
  padding-left: 0;
  list-style: none;
}

.product-list li,
.mini-list li,
.flagged-group li {
  border: 1px solid rgba(220, 216, 206, 0.85);
  border-radius: 8px;
  background: var(--surface);
}

.product-list li {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
}

.product-list span {
  font-weight: 800;
}

.product-list small,
.now-help-header span,
.legend-item small {
  color: var(--muted);
  line-height: 1.35;
}

.now-help {
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mini-list {
  gap: 9px;
}

.mini-list li,
.flagged-group li {
  padding: 9px 10px;
}

.clarity-panel {
  box-shadow: none;
}

.clarity-body {
  gap: 14px;
}

.badge-legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.flagged-group {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.section-stack {
  gap: 16px;
}

.doc-section,
.guide-card {
  padding: 16px;
}

.doc-section h2,
.doc-section h3,
.doc-section h4 {
  margin: 0 0 12px;
}

.doc-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.doc-section th,
.doc-section td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.doc-section th {
  background: var(--surface-muted);
}

.doc-section blockquote {
  margin: 14px 0;
  padding: 12px 13px;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-soft);
}

.doc-section code {
  border-radius: 5px;
  padding: 2px 5px;
  background: #ece8dc;
}

.manual-grid,
.week-grid,
.frequency-secondary,
.frequency-stack {
  display: grid;
  gap: 14px;
  align-items: start;
}

.manual-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.week-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  align-items: stretch;
}

.week-grid .agenda-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.frequency-layout {
  gap: 14px;
}

.frequency-secondary {
  grid-template-columns: minmax(0, 1fr);
}

.frequency-stack {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-content: start;
}

.agenda-card {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 16px;
  border-top: 4px solid var(--line-soft);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(26, 31, 29, 0.05);
}

.agenda-card.today-card {
  border-color: rgba(15, 118, 110, 0.45);
  border-top-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.agenda-card-header,
.frequency-header,
.compact-block-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.agenda-card-header > div,
.frequency-header > div,
.compact-block-header > div {
  min-width: 0;
}

.agenda-card-header span,
.frequency-header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.today-card .agenda-card-header span,
.frequency-header span {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.agenda-card-header h3,
.frequency-header h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.agenda-card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.agenda-card-header em,
.frequency-header em {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.guide-card {
  gap: 12px;
  scroll-margin-top: 18px;
}

.frequency-column,
.compact-block {
  gap: 11px;
}

.frequency-column {
  align-content: start;
  padding: 16px;
  border-top: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(26, 31, 29, 0.05);
}

.frequency-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.frequency-blocks {
  gap: 10px;
  align-items: start;
}

.frequency-primary-card {
  border-top-color: var(--accent-strong);
}

.frequency-primary-card .frequency-blocks {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
}

.frequency-primary-card .compact-block:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.compact-block {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--surface-quiet);
}

.compact-block-header h4 {
  font-size: 0.94rem;
  line-height: 1.25;
}

.compact-block-header span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.search-results {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #eef8f5;
}

.search-results h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.result {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid rgba(15, 118, 110, 0.15);
}

.result:first-of-type {
  border-top: 0;
}

.result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hidden {
  display: none;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    height: auto;
    z-index: 10;
    padding: 12px 14px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    min-height: 38px;
    text-align: center;
    padding: 8px 12px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .side-tools summary {
    min-height: 38px;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px 13px 44px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .brand p {
    font-size: 0.7rem;
  }

  .side-search {
    gap: 6px;
  }

  .side-search label {
    display: none;
  }

  #searchInput {
    min-height: 38px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .tab {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 7px;
    font-size: 0.88rem;
  }

  .topbar {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }

  .topbar h2 {
    font-size: 1.85rem;
  }

  .status-pill {
    white-space: normal;
  }

  .panel-header,
  .guide-snippet-header,
  .now-help-header,
  .guide-card-header,
  .agenda-card-header,
  .frequency-header,
  .compact-block-header {
    display: grid;
  }

  .panel-body,
  .day-profile,
  .now-card,
  .doc-section,
  .guide-card,
  .planner-hero,
  .agenda-card,
  .frequency-column {
    padding: 14px;
  }

  .panel-header {
    padding: 14px 14px 0;
  }

  .day-profile h3 {
    font-size: 1.2rem;
  }

  .now-card h3 {
    font-size: 1.35rem;
  }

  .routine-block {
    padding: 13px;
  }

  .routine-title {
    display: grid;
    gap: 3px;
  }

  .task-help {
    margin-left: 0;
  }

  .routine-block > .task-list + .note,
  .routine-block > .task-list ~ .note {
    margin-left: 0;
  }

  .manual-grid,
  .week-grid,
  .today-support-grid,
  .shopping-layout,
  .shopping-inventory-grid,
  .frequency-secondary,
  .frequency-primary-card .frequency-blocks {
    grid-template-columns: minmax(0, 1fr);
  }

  .shopping-card,
  .shopping-mini-card {
    padding: 14px;
  }

  .today-layout > .day-profile {
    order: 1;
  }

  .today-layout > .now-card {
    order: 2;
  }

  .today-layout > .panel:not(.day-profile):not(.now-card) {
    order: 3;
  }

  .today-support-grid {
    order: 4;
  }

  .planner-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .planner-today {
    justify-items: start;
    width: 100%;
    min-width: 0;
  }

  .planner-today span {
    text-align: left;
  }

  .agenda-card-header em,
  .frequency-header em {
    width: fit-content;
  }

  .compact-block-header span {
    width: fit-content;
    justify-self: start;
  }
}
