/* The reminder workspace follows the olive/lemon mockup collection.
   These rules change presentation only; the existing controls and states stay
   mounted, including receipt recovery, shared-list permissions and alerts. */
body[data-current-view] {
  --today-muted: var(--muted);
  --all-muted: var(--muted);
  --completed-muted: var(--muted);
  --completed-panel: var(--paper);
  --completed-detail: color-mix(in srgb, var(--paper) 86%, var(--sage));
  --completed-control-border: var(--border);
  --today-overdue: #ae4c2e;
  --all-overdue: #ae4c2e;
  --today-overdue-bg: color-mix(in srgb, var(--paper) 93%, #ca7758);
  --today-alert-bg: color-mix(in srgb, var(--paper) 90%, var(--yellow));
  --today-alert-border: color-mix(in srgb, var(--border) 50%, var(--yellow));
}
html[data-theme="dark"] body[data-current-view] {
  --today-muted: var(--muted);
  --all-muted: var(--muted);
  --completed-muted: var(--muted);
  --completed-panel: var(--paper);
  --completed-detail: color-mix(in srgb, var(--paper) 86%, var(--sage));
  --completed-control-border: var(--border);
  --today-overdue: #ee946f;
  --all-overdue: #ee946f;
  --today-overdue-bg: #29231e;
}

/* A quiet, full-width collection of compact rows replaces the old tall cards. */
body[data-current-view]:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"], [data-current-view="completed"]) .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body[data-current-view]:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"], [data-current-view="completed"]) .reminder-column {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}
body[data-current-view]:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"], [data-current-view="completed"]) .right-panel {
  grid-column: auto;
  grid-row: auto;
  display: block;
}
body[data-current-view]:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"]) .attention-card {
  display: none;
}
body[data-current-view] .quick-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: none;
  overflow: visible;
}
body[data-current-view] .quick-entry {
  gap: 12px;
  min-height: 56px;
  padding: 6px 8px 6px 14px;
}
body[data-current-view] .quick-entry > .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-color: var(--border);
  color: var(--muted);
}
body[data-current-view] .quick-entry input {
  min-height: 42px;
  height: 42px;
  font-size: 14px;
  color: var(--ink);
}
body[data-current-view] .quick-entry input::placeholder { color: var(--muted); }
body[data-current-view] .quick-entry .quick-submit {
  min-width: 104px;
  min-height: 36px;
  height: 36px;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12px;
}
body[data-current-view] .quick-add:not(:focus-within):has(#quick-input:placeholder-shown) .quick-submit { display: none; }
body[data-current-view] .quick-add-footer {
  min-height: 44px;
  padding: 0 14px 0 0;
  border: 0;
}
body[data-current-view] #quick-example {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body[data-current-view] #quick-more-options { min-height: 36px; font-size: 12px; }
body[data-current-view] .list-toolbar {
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
body[data-current-view] .filter-tabs { gap: 4px; flex-wrap: wrap; }
body[data-current-view] .filter-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
body[data-current-view] .filter-tabs button.active { background: var(--sage); color: var(--ink); }
body[data-current-view] .filter-tabs button span {
  min-width: 18px;
  width: auto;
  height: 18px;
  min-height: 18px;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 10px;
  background: color-mix(in srgb, var(--sage) 70%, var(--border));
  color: var(--ink);
}
body[data-current-view] .sort-control {
  min-height: 36px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
body[data-current-view] .sort-control select { min-height: 34px; font-size: 12px; color: var(--ink); }
body[data-current-view] .sort-control > .icon { width: 15px; height: 15px; }
body[data-current-view] .reminder-group { margin: 0 0 22px; }
body[data-current-view] .group-heading {
  min-height: 22px;
  gap: 7px;
  padding: 0;
  margin: 0 0 8px;
  border: 0;
}
body[data-current-view] .group-heading h2,
body[data-current-view] .reminder-group:first-child .group-heading h2 {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
body[data-current-view] .group-count {
  min-width: 14px;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
body[data-current-view] .reminder-row {
  display: flex;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  margin: 0 0 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: none;
}
body[data-current-view] .reminder-row + .reminder-row { margin-top: 0; }
body[data-current-view] .reminder-row:hover { background: color-mix(in srgb, var(--paper) 86%, var(--sage)); border-color: color-mix(in srgb, var(--border) 60%, var(--muted)); box-shadow: none; }
body[data-current-view] .reminder-row.overdue {
  min-height: 66px;
  padding-left: 14px;
  background: var(--today-overdue-bg);
  border: 1px solid color-mix(in srgb, var(--today-overdue) 68%, var(--border));
}
html[data-theme="dark"] body[data-current-view] .reminder-row.overdue {
  border-color: color-mix(in srgb, var(--today-overdue) 68%, var(--border));
}
html[data-theme="dark"] body[data-current-view] .group-count { background: transparent; color: var(--muted); }
body[data-current-view] .reminder-row.is-priority::before { display: none; }
body[data-current-view] .complete-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 36px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent;
}
body[data-current-view] .complete-button::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
body[data-current-view] .complete-button .icon { position: relative; width: 16px; height: 16px; }
body[data-current-view] .complete-button:hover { color: var(--ink); }
body[data-current-view] .complete-button:hover::before { background: var(--sage); border-color: var(--ink); }
body[data-current-view] .reminder-name {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.12px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
}
body[data-current-view] .reminder-meta,
body[data-current-view] .world-times,
body[data-current-view] .time-task-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  gap: 4px 8px;
}
body[data-current-view] .reminder-meta :is(.time-label, .list-tag, .repeat-meta),
body[data-current-view] .world-times small { font-size: inherit; color: inherit; }
body[data-current-view] .reminder-meta .time-label .icon { width: 12px; height: 12px; }
body[data-current-view] .reminder-details .item-description { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
body[data-current-view] .late-label { color: var(--today-overdue); font-weight: 500; }
body[data-current-view] .priority-mark { border: 0; padding: 0; background: transparent; font-size: 10px; color: var(--today-overdue); }
body[data-current-view] .row-actions { gap: 5px; flex-wrap: wrap; justify-content: end; }
body[data-current-view] .row-actions .time-split {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
}
body[data-current-view] .row-actions .time-split button { min-height: 34px; padding: 5px 8px; font-size: 11px; }
body[data-current-view] .row-actions .time-split button + button { min-width: 28px; padding: 5px; }
body[data-current-view] .row-actions .time-split .icon { width: 14px; height: 14px; }
body[data-current-view] .row-actions .edit-button {
  min-width: 32px;
  width: 32px;
  min-height: 36px;
  height: 36px;
  padding: 7px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
}
body[data-current-view] .row-actions .edit-button > span { display: none; }
body[data-current-view] .row-actions .edit-button .icon { width: 18px; height: 18px; }
body[data-current-view="all"] .all-reminder-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(65px, 90px) 76px max-content; }
body[data-current-view="all"] .all-reminder-list .list-tag {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
body[data-current-view="all"] .all-reminder-list .list-tag::before { display: inline-block; width: 5px; height: 5px; }
body[data-current-view="all"] .all-reminder-time .time-label { font-size: 12px; color: var(--muted); }
body[data-current-view="all"] .all-reminder-time .late-label { font-size: 10px; }
body[data-current-view] #today-completed { margin-top: 12px; border-radius: 7px; background: var(--paper); }
body[data-current-view] #today-completed > summary { min-height: 42px; padding: 10px 14px; font-size: 12px; }
body[data-current-view] .main-footnote { margin: 18px 0 0; justify-content: flex-start; font-size: 11px; color: var(--muted); }

/* Utilities remain available, but read as the discreet bottom strips in the
   reference instead of competing with the reminder collection. */
body[data-current-view] #workspace-utilities { border-radius: 7px; background: var(--paper); }
body[data-current-view] #workspace-utilities > summary { min-height: 48px; padding: 9px 14px; border-radius: 6px; gap: 8px 14px; }
body[data-current-view] #workspace-utilities > summary strong { font-size: 12px; }
body[data-current-view] #workspace-utility-summary { font-size: 11px; }
body[data-current-view] .workspace-utility-panels { padding: 12px; gap: 12px; }
body[data-current-view] .workspace-utility-panels > section { padding: 16px; border-radius: 7px; }
body[data-current-view] .workspace-utility-panels .panel-heading h2 { font-size: 14px; }
body[data-current-view] .sidecar-alert { padding: 14px 16px; border-radius: 7px; border-color: color-mix(in srgb, var(--yellow) 45%, var(--border)); }

/* The shared example uses the same theme surfaces as a real list. Keep its
   scope and sign-in action readable in either appearance. */
body[data-current-view] .demo-shared-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 16px;
  border-radius: 7px;
}
body[data-current-view] .demo-shared-note strong { color: var(--ink); font-size: 14px; line-height: 1.5; }
body[data-current-view] .demo-shared-note strong small { color: var(--muted); font-size: 12px; font-weight: 500; }
body[data-current-view] .demo-shared-note p { margin: 0; font-size: 13px; line-height: 1.6; }
body[data-current-view] .demo-shared-note .button {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  margin-top: 4px;
  font-size: 12px;
  white-space: normal;
}

/* Inbox: one compact capture panel and separate, easy-to-scan idea rows. */
.inbox-page,
body[data-current-view="inbox"] .page-intro { max-width: none; }
body[data-current-view="inbox"] .page-intro { margin-bottom: 18px; }
.inbox-page .inbox-capture { padding: 18px; border-radius: 7px; }
.inbox-page .inbox-capture-heading { justify-content: flex-start; gap: 14px; margin-bottom: 10px; }
.inbox-page :is(.inbox-capture h2, .inbox-list-heading h2) { font-size: 16px; font-weight: 600; }
.inbox-page .inbox-capture-heading > span { font-size: 11px; }
.inbox-page .inbox-capture label { gap: 6px; font-size: 12px; font-weight: 500; margin: 12px 0; }
.inbox-page .inbox-capture :is(input, textarea),
.inbox-page .inbox-search input { min-height: 40px; padding: 9px 11px; font-size: 13px; border-radius: 5px; }
.inbox-page .inbox-capture textarea { min-height: 70px; }
.inbox-page .inbox-capture-row > .button { min-width: 142px; min-height: 40px; font-size: 12px; }
.inbox-page .inbox-capture-footer { margin-top: 7px; }
.inbox-page .inbox-capture-footer :is(p, .inbox-notes-toggle, .inbox-clear-draft),
.inbox-page .inbox-hint { font-size: 11px; }
.inbox-page .inbox-list-heading { margin: 22px 0 10px; gap: 12px; }
.inbox-page .inbox-list-heading h2 span { min-width: 18px; height: auto; margin-left: 4px; background: transparent; color: var(--muted); font-size: 13px; }
.inbox-page .inbox-search { width: min(270px, 40%); }
.inbox-page .inbox-items { display: grid; gap: 7px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.inbox-page .inbox-card { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--paper); }
.inbox-page .inbox-card:last-child { border-bottom: 1px solid var(--border); }
.inbox-page .inbox-card h3 { font-size: 14px; font-weight: 550; }
.inbox-page .inbox-card time { font-size: 10px; line-height: 21px; }
.inbox-page .inbox-notes { margin-top: 3px; font-size: 12px; line-height: 1.5; }
.inbox-page .inbox-card-actions { gap: 8px; margin-top: 1px; }
.inbox-page .inbox-card-actions :is(.button, .subtle-link) { min-height: 34px; padding: 6px 10px; margin-top: 0; border-radius: 5px; font-size: 11px; }
.inbox-page :is(.inbox-welcome, .inbox-readonly, .inbox-pending, .inbox-shared-note) { border-radius: 7px; }
@media (min-width: 1180px) {
  .inbox-page .inbox-card { grid-template-columns: minmax(0, 1fr) minmax(260px, auto); }
  .inbox-page .inbox-card > time { grid-column: 1; grid-row: 2; }
  .inbox-page .inbox-card-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-content: end; max-width: 460px; }
}

/* Completed reminders keep the restore and exact-time disclosures, with the
   modest cards and muted category labels from the reference. */
body[data-current-view="completed"] { --completed-columns: minmax(0, 1fr) 135px 124px; }
body[data-current-view="completed"] .completed-history { border: 0; border-radius: 0; background: transparent; overflow: visible; }
body[data-current-view="completed"] .completed-columns { display: none; }
body[data-current-view="completed"] .completed-day + .completed-day { margin-top: 18px; border: 0; }
body[data-current-view="completed"] .completed-day-heading { min-height: 26px; padding: 0; margin: 0 0 8px; background: transparent; }
body[data-current-view="completed"] .completed-day-heading h2 { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
body[data-current-view="completed"] .completed-day-heading > span { min-width: 16px; min-height: 0; padding: 0; background: transparent; color: var(--muted); font-size: 10px; }
body[data-current-view="completed"] .completed-history-row { gap: 8px 14px; margin-bottom: 8px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 7px; background: var(--paper); }
body[data-current-view="completed"] .completed-main { gap: 12px; }
body[data-current-view="completed"] .completed-check { width: 27px; height: 27px; background: var(--sage); color: var(--ink); }
body[data-current-view="completed"] .completed-check .icon { width: 17px; height: 17px; }
body[data-current-view="completed"] .completed-title { gap: 4px 10px; flex-direction: column; align-items: flex-start; }
body[data-current-view="completed"] .completed-title > strong { font-size: 14px; }
html body[data-current-view="completed"] .completed-category { min-height: 0; padding: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; }
html[data-theme="dark"] body[data-current-view="completed"] .completed-category:is(.personal, .work, .health) { background: transparent; color: var(--muted); }
body[data-current-view="completed"] .completed-title .sample-badge,
body[data-current-view="completed"] .completed-repeat-note { font-size: 11px; }
body[data-current-view="completed"] .completed-time > time { font-size: 12px; }
body[data-current-view="completed"] .completed-time-toggle,
body[data-current-view="completed"] .completed-restore { min-height: 34px; font-size: 11px; }
body[data-current-view="completed"] .completed-time-toggle { padding: 5px 0; }
body[data-current-view="completed"] .completed-restore { padding: 6px 11px; border-radius: 5px; }
body[data-current-view="completed"] .completed-actions > small,
body[data-current-view="completed"] .completed-restore-status,
body[data-current-view="completed"] .completed-notes { font-size: 11px; }
body[data-current-view="completed"] .completed-time-details { margin-top: 3px; padding: 12px 16px; border-radius: 5px; }
body[data-current-view="completed"] .completed-zone-grid { gap: 14px; }
body[data-current-view="completed"] .completed-zone-grid :is(strong, span) { font-size: 12px; }
body[data-current-view="completed"] #completed-toolbar { margin-bottom: 14px; gap: 10px; }
body[data-current-view="completed"] .completed-search { flex-basis: 280px; min-height: 38px; }
body[data-current-view="completed"] :is(.completed-sort, #completed-timezones) { min-height: 38px; border-radius: 5px; font-size: 12px; }
body[data-current-view="completed"] :is(#completed-sort, #completed-search-input) { min-height: 36px; height: 36px; font-size: 12px; }
body[data-current-view="completed"] #completed-clear-search { width: 36px; height: 36px; }

/* The four-type list dashboard keeps its shared audience and personal alert
   choices explicit. Primary actions stay visible; destructive actions disclose. */
.mixed-workspace { max-width: none; padding-top: 0; container-type: inline-size; }
.mixed-workspace .mixed-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mixed-workspace .mixed-button { min-height: 44px; padding: 9px 12px; border-radius: 7px; font-size: 14px; line-height: 1.35; white-space: normal; }
.mixed-workspace .mixed-button[data-primary-action] { background: var(--sage); border-color: color-mix(in srgb, var(--border) 60%, var(--ink)); font-weight: 650; }
.mixed-workspace .mixed-button[data-primary-action]:hover { background: var(--surface-hover); border-color: var(--ink); }
.mixed-workspace .mixed-status { min-height: 20px; margin-bottom: 8px; font-size: 12px; }
.mixed-workspace .mixed-status:empty { display: none; }
.mixed-header { margin: 0 0 24px; gap: 20px; align-items: center; }
.mixed-header > div { min-width: 0; }
.mixed-header [data-mixed-back] { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); }
.mixed-list-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mixed-header h2 { margin: 4px 0 10px; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -1px; overflow-wrap: anywhere; }
.mixed-scope { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--paper); font-size: 14px; }
.mixed-role { color: var(--muted); font-size: 13px; }
.mixed-header .mixed-summary { max-width: 68ch; font-size: 15px; line-height: 1.5; color: var(--ink); }
.mixed-header > .mixed-actions { flex: 0 1 auto; justify-content: flex-end; }
.mixed-toolbar { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 0; gap: 16px; border: 0; border-radius: 0; background: transparent; max-width: 900px; }
.mixed-toolbar label { gap: 7px; font-size: 13px; }
.mixed-toolbar :is(input, select) { min-height: 46px; border-radius: 8px; font-size: 15px; background: var(--paper); }
.mixed-toolbar .mixed-mobile-filter { display: none; }
.mixed-grouping { display: flex; align-items: center; min-height: 46px; padding: 10px 0; margin: 0; font-size: 14px; color: var(--muted); }
.mixed-type-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.mixed-type-filter { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.mixed-type-filter span { display: inline-flex; justify-content: center; align-items: center; min-width: 24px; min-height: 24px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); font-size: 12px; font-variant-numeric: tabular-nums; }
.mixed-type-filter[aria-pressed="true"] { background: var(--green, #bfd0aa); color: #182315; border-color: #9caf86; font-weight: 650; }
.mixed-type-filter:hover { border-color: var(--ink); }
.mixed-type-filter:focus-visible, .mixed-workspace summary:focus-visible { outline: 3px solid var(--focus, #53663f); outline-offset: 3px; }
.mixed-results { margin: 10px 0 18px; font-size: 13px; }
.mixed-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.mixed-dashboard > .mixed-group:only-child { grid-column: 1 / -1; }
.mixed-group { min-width: 0; }
.mixed-group > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ink); font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.35px; text-transform: none; }
.mixed-group > h3 > span { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font-size: 13px; text-align: center; }
.mixed-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mixed-group--reminder .mixed-items { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.mixed-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-radius: 10px; background: var(--paper); }
.mixed-card-heading { gap: 8px; align-items: flex-start; }
.mixed-card h3 { padding-top: 7px; font-size: 17px; line-height: 1.4; }
.mixed-card--reminder { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.mixed-card--reminder:last-child { border-bottom: 0; }
.mixed-card .mixed-meta { margin: 5px 0 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mixed-timer-duration, .mixed-counter-value { margin: 12px 0 4px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mixed-timer-duration span { font-weight: 500; }
.mixed-card-state { display: flex; align-items: center; min-height: 26px; margin: 0 0 10px; }
.mixed-badge { padding: 4px 7px; border-radius: 5px; font-size: 12px; line-height: 1.4; color: var(--muted); white-space: normal; }
.mixed-priority, .mixed-tracking { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); font-size: 12px; }
.mixed-priority > span { color: var(--danger, #ae4c2e); font-size: 22px; line-height: 1; }
.mixed-tracking .mixed-icon { color: var(--green, #53663f); width: 18px; height: 18px; flex-basis: 18px; }
.mixed-item-notes { margin: 0 0 8px; font-size: 13px; }
.mixed-item-notes > summary { display: flex; align-items: center; min-height: 44px; color: var(--muted); cursor: pointer; }
.mixed-item-notes > summary::after { content: '+'; margin-left: 8px; font-size: 18px; }
.mixed-item-notes[open] > summary::after { content: '−'; }
.mixed-description { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.mixed-card .mixed-actions { margin-top: auto; padding-top: 12px; gap: 8px; border-top: 1px solid var(--border); }
.mixed-card .mixed-actions .mixed-button { flex: 1 1 auto; min-width: 0; font-size: 13px; border-radius: 7px; }
.mixed-card--reminder .mixed-actions { padding-top: 4px; border-top: 0; }
.mixed-card--reminder .mixed-actions .mixed-button { flex: 0 1 auto; }
.mixed-card--timer .mixed-actions [data-primary-action] { flex-basis: 100%; }
.mixed-more { position: relative; flex: 0 0 44px; }
.mixed-more > summary { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border-radius: 7px; cursor: pointer; list-style: none; }
.mixed-more > summary::-webkit-details-marker { display: none; }
.mixed-more > summary:hover { background: var(--surface-hover); }
.mixed-more[open] { z-index: 5; }
.mixed-more-actions { position: absolute; right: 0; top: 46px; display: grid; gap: 4px; width: min(240px, calc(100vw - 64px)); padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.mixed-more-actions .mixed-button { width: 100%; justify-content: flex-start; border: 0; }
.mixed-group-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; min-height: 116px; padding: 18px; margin: 0; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mixed-group--reminder .mixed-group-empty { border: 0; }
.mixed-group-note { padding: 12px 0 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mixed-delivery-note { display: flex; align-items: flex-start; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mixed-footer { flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mixed-list-card { min-height: 108px; padding: 20px; border-radius: 9px; }
.mixed-list-card strong { margin-bottom: 8px; font-size: 18px; }
.mixed-list-card span { font-size: 14px; line-height: 1.5; }
@container (max-width: 820px) {
  .mixed-dashboard { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mixed-header { display: block; }
  .mixed-header > .mixed-actions { margin-top: 16px; justify-content: flex-start; }
  .mixed-type-filter { flex: 1 1 auto; padding-inline: 14px; }
}
@container (max-width: 520px) {
  .mixed-items { grid-template-columns: minmax(0, 1fr); }
  .mixed-toolbar { grid-template-columns: minmax(0, 1fr); }
  .mixed-toolbar .mixed-mobile-filter { display: grid; }
  .mixed-grouping, .mixed-type-filters { display: none; }
  .mixed-toolbar :is(input, select) { font-size: 16px; }
  .mixed-header h2 { font-size: 30px; }
  .mixed-scope { padding-inline: 9px; font-size: 13px; }
  .mixed-card { padding: 16px; }
  .mixed-card .mixed-actions .mixed-button { flex: 1 1 auto; }
  .mixed-timer-duration, .mixed-counter-value { font-size: 40px; }
  .mixed-footer .mixed-button { flex: 1 1 auto; }
}
.mixed-workspace-section { margin: 20px 0; }
.mixed-workspace-rows { gap: 7px; }
.mixed-workspace-row { padding: 11px 14px; gap: 10px; border-radius: 7px; }
.mixed-workspace-row .form-note { font-size: 11px; }
.mixed-workspace-row button { font-size: 12px; }
.mixed-workspace-description { margin-top: 5px; font-size: 12px; }
.mixed-history-section { margin: 18px 0; border-radius: 7px; }
.mixed-history-heading, .mixed-history-disclosure > summary { padding: 12px 15px; }
.mixed-history-heading h2 { font-size: 14px; }
.mixed-history-disclosure > summary { min-height: 44px; font-size: 12px; }
.mixed-history-row { padding: 14px 15px; }
.mixed-history-row h3 { font-size: 14px; }
.mixed-history-meta, .mixed-history-description, .mixed-history-note { font-size: 12px; }
.mixed-history-badge { border-radius: 4px; font-size: 10px; }
.mixed-history-button { border-radius: 5px; font-size: 12px; }
.mixed-history-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--yellow) 88%, white); color: #292e29; }

/* Calendar keeps exact zone and DST information. Only its surrounding visual
   chrome changes; FullCalendar remains responsible for time-grid geometry. */
body[data-current-view="calendar"] .nag-calendar {
  --calendar-muted: var(--muted);
  --calendar-main-bg: color-mix(in srgb, var(--paper) 65%, var(--sage));
  border: 0;
  border-radius: 0;
  background: transparent;
}
.nag-calendar .nag-calendar-toolbar { gap: 10px; padding: 0 0 12px; border: 0; }
.nag-calendar :is(.nag-calendar-nav, .nag-calendar-view) { padding: 2px; border-radius: 6px; background: var(--paper); }
.nag-calendar .nag-calendar-toolbar button,
.nag-calendar .nag-calendar-options > summary { min-height: 36px; padding: 6px 11px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.nag-calendar .nag-calendar-nav button:first-child,
.nag-calendar .nag-calendar-nav button:last-child { min-width: 36px; font-size: 22px; }
.nag-calendar .nag-calendar-toolbar button[aria-pressed="true"] { background: var(--sage); color: var(--ink); }
.nag-calendar :is(.nag-calendar-zones-button, .nag-calendar-settings, .nag-calendar-options > summary) { background: var(--paper); border-radius: 5px; }
.nag-calendar .nag-calendar-options-panel { border-radius: 7px; }
.nag-calendar .nag-calendar-filters { grid-template-columns: minmax(140px, 190px) minmax(180px, 1fr) auto; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); }
.nag-calendar .nag-calendar-filters label { gap: 5px; font-size: 11px; font-weight: 500; }
.nag-calendar .nag-calendar-filters :is(input, select) { min-height: 36px; padding: 6px 9px; border-radius: 5px; font-size: 12px; }
.nag-calendar :is(.nag-calendar-results, .nag-calendar-create-note) { font-size: 11px; }
.nag-calendar .nag-calendar-viewport { border: 1px solid var(--border); border-radius: 7px; background: var(--paper); }
.nag-calendar .nag-calendar-world-header { background: transparent; }
.nag-calendar .nag-calendar-clock-header { min-height: 58px; padding: 10px 8px; font-size: 11px; }
.nag-calendar .nag-calendar-clock-header small { margin-top: 4px; font-size: 10px; }
.nag-calendar .nag-calendar-canvas-label { padding: 10px 14px; font-size: 11px; }
.nag-calendar .nag-calendar-grid { font-size: 12px; }
.nag-calendar .nag-calendar-grid,
.nag-calendar .nag-calendar-grid [data-color-scheme] {
  --fc-pulse-radius: 5px;
  --fc-pulse-highlight: color-mix(in srgb, var(--sage) 60%, transparent);
  --fc-pulse-now: var(--yellow);
}
.nag-calendar .nag-calendar-footer { justify-content: flex-start; gap: 12px 24px; padding: 14px 0 0; border: 0; font-size: 11px; }
.nag-calendar .nag-calendar-comparison { padding: 2px 0 12px; border: 0; }
.nag-calendar .nag-calendar-comparison > strong { font-size: 11px; font-weight: 500; }
.nag-calendar .nag-calendar-comparison span { border-radius: 5px; padding: 5px 8px; background: var(--paper); font-size: 11px; }

/* Compact desktop spacing must not shrink touch targets or compress mobile
   forms. Keep all operations reachable when rows wrap at narrow widths. */
@container all-reminders (max-width: 820px) {
  /* The existing compact-row child placements use three tracks. Keep the
     parent in agreement when a desktop sidebar narrows this collection. */
  body[data-current-view="all"] .all-reminder-row { grid-template-columns: 44px minmax(0, 1fr) minmax(74px, auto); }
}
@media (max-width: 760px), (pointer: coarse) {
  body[data-current-view] .filter-tabs button,
  body[data-current-view] #quick-more-options,
  body[data-current-view] .sort-control,
  body[data-current-view] .sort-control select,
  body[data-current-view] .row-actions .time-split button,
  body[data-current-view] .row-actions .edit-button,
  body[data-current-view="completed"] :is(.completed-time-toggle, .completed-restore),
  .inbox-page .inbox-card-actions :is(.button, .subtle-link),
  .nag-calendar .nag-calendar-toolbar button,
  .nag-calendar .nag-calendar-options > summary { min-height: 44px; }
  body[data-current-view] .row-actions .edit-button { min-width: 44px; width: 44px; height: 44px; }
  body[data-current-view] .row-actions .time-split button + button { min-width: 44px; }
  body[data-current-view] .complete-button { flex-basis: 44px; width: 44px; height: 44px; }
  body[data-current-view] .complete-button::before { width: 24px; height: 24px; }
  body[data-current-view] .reminder-name { font-size: 14px; }
  body[data-current-view] .reminder-meta { font-size: 12px; }
  .inbox-page .inbox-capture :is(input, textarea),
  .inbox-page .inbox-search input,
  .nag-calendar .nag-calendar-filters :is(input, select) { font-size: 16px; min-height: 44px; }
}
@media (max-width: 760px) {
  body[data-current-view] .quick-add { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-current-view] .quick-entry { padding: 7px 11px; gap: 9px; }
  body[data-current-view] .quick-entry input { font-size: 16px; }
  body[data-current-view] .quick-entry .quick-submit { min-width: 0; min-height: 44px; height: 44px; padding-inline: 10px; }
  body[data-current-view] .quick-add-footer { justify-content: flex-end; min-height: 44px; padding: 0 12px; border-top: 1px solid var(--border); }
  body[data-current-view] .reminder-row { flex-wrap: wrap; gap: 8px; padding: 10px; }
  body[data-current-view] .reminder-row.overdue { padding-left: 10px; }
  body[data-current-view] .reminder-row .reminder-details { flex: 1 1 calc(100% - 60px); }
  body[data-current-view] .row-actions { max-width: 100%; margin-left: auto; }
  body[data-current-view="all"] .all-reminder-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  body[data-current-view="all"] .all-reminder-row .complete-button { grid-column: 1; grid-row: 1; }
  body[data-current-view="all"] .all-reminder-row .reminder-details { grid-column: 2 / -1; grid-row: 1; }
  body[data-current-view="all"] .all-reminder-list { grid-column: 2; grid-row: 2; }
  body[data-current-view="all"] .all-reminder-time { grid-column: 3; grid-row: 2; }
  body[data-current-view="all"] .all-reminder-row .row-actions { grid-column: 2 / -1; grid-row: 3; justify-self: end; }
  body[data-current-view="completed"] .completed-history-row { grid-template-columns: minmax(0, 1fr) auto; padding: 13px; }
  body[data-current-view="completed"] .completed-main { grid-column: 1 / -1; }
  body[data-current-view="completed"] .completed-time { grid-column: 1; padding-left: 39px; }
  body[data-current-view="completed"] .completed-actions { grid-column: 2; }
  body[data-current-view="completed"] .completed-zone-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-current-view="completed"] .completed-zone-grid > div { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  body[data-current-view="completed"] .completed-zone-grid > div:first-child { padding: 0; border: 0; }
  .inbox-page .inbox-capture { padding: 14px; }
  .inbox-page .inbox-card { padding: 13px 14px; }
  .inbox-page .inbox-card-actions { gap: 7px; }
  .inbox-page .inbox-search { width: 100%; }
  .mixed-workspace-row { padding: 13px; }
}
@container (max-width: 560px) {
  .nag-calendar .nag-calendar-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  body[data-current-view] .quick-entry > .icon { width: 24px; height: 24px; }
  body[data-current-view] .quick-entry .quick-submit { max-width: 96px; white-space: normal; }
  body[data-current-view] .filter-tabs button { padding-inline: 9px; }
  body[data-current-view="all"] .all-reminder-row .row-actions { grid-column: 1 / -1; }
  body[data-current-view="completed"] .completed-time { padding-left: 0; }
  body[data-current-view="completed"] .completed-notes { padding-left: 0; }
}
