.process-feed {
  min-width: 0;
  padding: 0 0 8px !important;
}

.process-feed__toolbar {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.process-feed__filters {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.process-feed__filters::-webkit-scrollbar { display: none; }
.process-feed__filter-page {
  display: grid;
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.process-feed__filter {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  height: 44px;
  border: 1.5px solid var(--shell-border, #e0edeb);
  border-radius: 22px;
  color: var(--shell-muted, #7a9490);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 150ms, color 150ms, background 150ms;
  cursor: pointer;
}
.process-feed__filter span {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0 7px;
  place-items: center;
}
.process-feed__filter.is-active {
  color: var(--shell-teal, #1bbeaa);
  border-color: var(--shell-teal, #1bbeaa);
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 90.6%);
  font-weight: 900;
}
.process-feed__filter[data-filter="notes"].is-active { color: #7a5c00; border-color: var(--shell-yellow, #ffd32d); background: color-mix(in srgb, var(--shell-yellow, #ffd32d), transparent 86.7%); }
.process-feed__filter[data-filter="observations"].is-active { color: #2b86d1; border-color: #2b86d1; background: color-mix(in srgb, #2b86d1, transparent 90%); }
.process-feed__filter[data-filter="goldenMoments"].is-active { color: #9b7400; border-color: #ffd32d; background: color-mix(in srgb, #ffd32d, transparent 82%); box-shadow: 0 0 12px rgb(255 211 45 / 32%); }
.process-feed__filter[data-filter="objectives"].is-active { color: var(--shell-teal, #1bbeaa); border-color: var(--shell-teal, #1bbeaa); background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 90.6%); }
.process-feed__filter[data-filter="constraints"].is-active { color: #e83e54; border-color: #e83e54; background: color-mix(in srgb, #e83e54, transparent 91%); }
.process-feed__filter:focus-within { outline: 2px solid var(--shell-teal, #1bbeaa); outline-offset: 2px; }
[data-theme="dark"] .process-feed__filter[data-filter="notes"].is-active { color: var(--shell-yellow, #ffd32d); }
.process-feed__filter-edge { display: none; }

.process-feed__create-row {
  display: flex;
  justify-content: center;
  padding: 9px 0;
  margin: 2px 16px 14px;
  border-top: 1.5px dashed color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 52%);
  border-bottom: 1.5px dashed color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 52%);
}
.process-feed__create {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 35%);
  border-radius: 14px;
  color: var(--shell-teal, #1bbeaa);
  background: transparent;
  box-shadow: none;
  font-size: 26px;
  font-weight: 900;
  line-height: 42px;
}
.process-feed__create[data-filter="activities"] { color: var(--shell-teal, #1bbeaa); border-color: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 35%); }
.process-feed__create[data-filter="notes"] { color: #9b7400; border-color: color-mix(in srgb, var(--shell-yellow, #ffd32d), transparent 30%); }
.process-feed__create[data-filter="objectives"] { color: var(--shell-teal, #1bbeaa); border-color: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 35%); }
.process-feed__create[data-filter="constraints"] { color: #e83e54; border-color: color-mix(in srgb, #e83e54, transparent 35%); }
.process-feed__create[data-filter="observations"] { color: #2b86d1; border-color: color-mix(in srgb, #2b86d1, transparent 35%); }
.process-feed__create[data-filter="goldenMoments"] { color: #9b7400; border-color: color-mix(in srgb, #ffd32d, transparent 24%); box-shadow: 0 0 12px rgb(255 211 45 / 30%); }
[data-theme="dark"] .process-feed__create[data-filter="notes"] { color: var(--shell-yellow, #ffd32d); }

.feed-create-menu { max-width: 390px; }
.feed-create-menu__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feed-create-menu__options button {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  padding: 8px 5px;
  border: 1.5px solid var(--shell-border, #e0edeb);
  border-radius: 14px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-input, #eef5f4);
  font-size: 12px;
  text-align: center;
}
.feed-create-menu__options span { display: grid; width: 30px; height: 30px; place-items: center; font-size: 21px; }
.feed-create-menu__record-icon { color: var(--shell-teal, #1bbeaa); }
.feed-create-menu__options strong { max-width: 100%; line-height: 1.15; overflow-wrap: anywhere; }
.feed-create-menu__note-icon > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feed-create-menu__option--activity strong,
.feed-create-menu__option--objective span,
.feed-create-menu__option--objective strong { color: var(--shell-teal, #1bbeaa); }
.feed-create-menu__option--objective span { font-size: 25px; }
.feed-create-menu__option--constraint span,
.feed-create-menu__option--constraint strong { color: #e83e54; }
.feed-create-menu__options .feed-create-menu__note-type--note { color: var(--shell-yellow, #ffd32d); }
.feed-create-menu__note-type--note .feed-create-menu__note-icon { color: var(--shell-yellow, #ffd32d); }
.feed-create-menu__note-type--note .feed-create-menu__note-icon > svg { stroke: var(--shell-yellow, #ffd32d); }
.feed-create-menu__options .feed-create-menu__note-type--observation { color: #2b86d1; }
.feed-create-menu__options .feed-create-menu__note-type--goldenMoment { color: #e2ab00; }
.feed-create-menu__note-type--goldenMoment .feed-create-menu__note-icon > svg { fill: currentColor; filter: drop-shadow(0 0 5px rgb(255 211 45 / 62%)); }
[data-theme="dark"] .feed-create-menu__options .feed-create-menu__note-type--note { color: var(--shell-yellow, #ffd32d); }

.feed {
  min-width: 0;
  max-width: 100%;
}

.feed-record-card,
.process-note-card,
.process-objective-card {
  min-width: 0;
  overflow: hidden;
  margin: 0 16px 14px;
  border-radius: 20px;
  background: var(--shell-surface, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.feed-record-card:focus-visible,
.process-note-card:focus-visible,
.process-objective-card:focus-visible { outline: 2px solid var(--shell-teal, #1bbeaa); outline-offset: 2px; }
.process-note-card:focus-visible { outline-color: var(--shell-yellow, #ffd32d); }
.process-objective-card:focus-visible { outline-color: var(--shell-teal, #1bbeaa); }

[data-theme="dark"] .feed-record-card,
[data-theme="dark"] .process-note-card,
[data-theme="dark"] .process-objective-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.feed-record-card__objectives { display: grid; gap: 6px; margin-top: 16px; }
.feed-record-card__objectives > div { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 94%); }
.feed-record-card__objectives span { color: var(--shell-teal, #1bbeaa); font-weight: 900; }
.feed-record-card__objectives p { margin: 0; color: var(--shell-text, #1a2b28); font-size: 12px; font-weight: 800; line-height: 1.4; }

.feed-record-card__summary,
.feed-record-card__objectives p,
.feed-record-card__constraints p,
.feed-record-card__process-note > p,
.process-note-card > p,
.process-objective-card > p,
.process-objective-card > aside p {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.linked-parent-context {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--shell-border, #e0edeb);
  border-radius: 18px 18px 0 0;
  color: var(--shell-text, #1a2b28);
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), var(--shell-surface, #fff) 94%);
  text-align: left;
}

.linked-parent-context:hover {
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), var(--shell-surface, #fff) 90%);
}

.linked-parent-context:focus-visible {
  outline: 2px solid var(--shell-teal, #1bbeaa);
  outline-offset: -3px;
}

.linked-parent-context__icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--shell-teal, #1bbeaa);
  place-items: center;
}

.linked-parent-context__icon svg {
  width: 20px;
  height: 20px;
}

.linked-parent-context__copy,
.linked-parent-context__copy strong,
.linked-parent-context__copy small {
  display: block;
  min-width: 0;
}

.linked-parent-context__copy strong {
  color: var(--shell-text, #1a2b28) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.linked-parent-context__copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--shell-muted, #7a9490);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-parent-context__copy small span::after {
  content: " · ";
}

.linked-parent-context__copy time {
  display: inline;
  margin: 0;
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  text-shadow: none !important;
}

.linked-parent-context__arrow {
  color: var(--shell-teal, #1bbeaa);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.process-objective-card { padding: 14px 16px; border: 1.5px solid color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 62%); }
.process-objective-card > .linked-parent-context {
  width: calc(100% + 32px);
  margin: -14px -16px 14px;
}
.process-constraint-card { border-color: color-mix(in srgb, #e83e54, transparent 55%); }
.process-constraint-card .process-objective-card__icon { color: #e83e54; background: color-mix(in srgb, #e83e54, transparent 90%); }
.process-constraint-card .process-objective-card__status { color: #a91f37; background: color-mix(in srgb, #e83e54, white 88%); }
.process-constraint-card:focus-visible { outline-color: #e83e54; }
.constraint-danger-icon { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.process-objective-card[data-status="closed"] { border-color: var(--shell-border, #e0edeb); }
.process-objective-card > header { display: flex; align-items: center; gap: 10px; }
.process-objective-card__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; color: var(--shell-teal, #1bbeaa); background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 90%); font-size: 22px; place-items: center; }
.process-objective-card > header > div { min-width: 0; flex: 1; }
.process-objective-card > header strong, .process-objective-card > header small { display: block; }
.process-objective-card > header strong { font-size: 13px; font-weight: 900; }
.process-objective-card > header small { margin-top: 2px; color: var(--shell-muted, #7a9490); font-size: 10px; font-weight: 700; }
.process-objective-card__status { padding: 4px 8px; border-radius: 8px; color: #087a4d; background: #e7f8ef; font-size: 10px; font-weight: 900; }
.process-objective-card[data-status="closed"] .process-objective-card__status { color: var(--shell-muted, #7a9490); background: var(--shell-input, #eef5f4); }
.process-objective-card > p { margin: 12px 0 8px; color: var(--shell-text, #1a2b28); font-size: 14px; font-weight: 800; line-height: 1.45; }
.process-objective-card > footer { color: var(--shell-muted, #7a9490); font-size: 11px; font-weight: 700; }
.process-objective-card > aside { padding: 9px 10px; margin-top: 10px; border-radius: 10px; background: var(--shell-input, #eef5f4); }
.process-objective-card > aside strong { color: var(--shell-muted, #7a9490); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.process-objective-card > aside p { margin: 3px 0 0; font-size: 12px; font-weight: 700; line-height: 1.4; }

.feed-record-card__header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 10px;
}

.feed-record-card__scores { display: flex; grid-column: 4; grid-row: 1; align-items: center; justify-content: flex-end; gap: 10px; }

.feed-record-card__identity {
  grid-column: 2;
  grid-row: 1;
  flex: 1;
  min-width: 0;
}

.feed-record-card__date {
  display: block;
  overflow: hidden;
  color: var(--shell-muted, #7a9490);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-record-card__header > .avatar { grid-column: 1; grid-row: 1; }

.feed-record-card__header strong {
  display: block;
  overflow: hidden;
  color: var(--shell-text, #1a2b28);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-record-card__context {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--shell-muted, #7a9490);
  font-size: 11px;
}

.feed-record-card__context span {
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent), transparent 90.6%);
  font-weight: 600;
}

.feed-record-card__score-total,
.feed-record-card__score-average,
.feed-record-card__score-volume {
  display: inline-flex;
  height: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  box-sizing: border-box;
  border: 1px solid var(--shell-border, #e0edeb);
  border-radius: 999px;
  background: var(--shell-input, #eef5f4);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgb(20 55 49 / 7%);
}
.feed-record-card__scores > strong { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

.feed-record-card__score-total { color: var(--shell-text, #1a2b28); }
.feed-record-card__score-average[data-score-zone="white"] { border-color: #cbd7d5; color: #172421; background: #fff; }
.feed-record-card__score-average[data-score-zone="black"] { border-color: #111817; color: #fff; background: #1b2523; }
.feed-record-card__score-average[data-score-zone="blue"] { border-color: #2377ba; color: #fff; background: #2b86d1; }
.feed-record-card__score-average[data-score-zone="red"] { border-color: #bf1937; color: #fff; background: #e12646; }
.feed-record-card__score-average[data-score-zone="yellow"] { border-color: #e2ab00; color: #5f4800; background: var(--shell-yellow, #ffd42a); }
.feed-record-card__score-volume {
  border-color: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 50%);
  color: color-mix(in srgb, var(--shell-teal, #1bbeaa), #073b34 28%);
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), var(--shell-surface, #fff) 88%);
}

.feed-record-card__body {
  display: flex;
  min-height: 60px;
  padding: 0 16px 12px 0;
  margin-left: 16px;
}

.feed-record-card__type {
  display: flex;
  flex: 0 0 12px;
  width: 12px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: color-mix(in srgb, var(--feed-accent), transparent 27%);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.feed-record-card__body > i {
  flex: 0 0 3px;
  width: 3px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--feed-accent);
}

.feed-record-card__content {
  flex: 1;
  min-width: 0;
}

.feed-record-card__objective {
  padding: 7px 10px;
  margin: 0 0 8px;
  border: 0;
  border-left: 3px solid var(--feed-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--feed-accent), transparent 93.7%);
}

.feed-record-card__objective > strong {
  display: block;
  margin-bottom: 2px;
  color: var(--feed-accent);
  font-size: 10px;
  font-weight: 900;
}

.feed-record-card__objective p {
  margin: 0;
  color: var(--shell-text, #1a2b28);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.feed-record-card__summary {
  margin: 0;
  color: var(--shell-text, #1a2b28);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
}

.feed-record-card__content aside.next-work,
.feed-record-card__content aside.affirmation {
  padding: 8px 10px;
  margin: 10px 0 0;
  border-radius: 12px;
}

.technical-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.technical-summary > li {
  padding: 2px 7px;
  border: 1px solid var(--shell-border, #e0edeb);
  border-radius: 999px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-input, #eef5f4);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}

.technical-summary > li[data-kind='target'] {
  border-color: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 75%);
  color: var(--shell-teal, #1bbeaa);
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 92%);
}

.technical-summary > li[data-kind='distance'] {
  border-color: color-mix(in srgb, var(--shell-yellow, #ffd42a), transparent 55%);
  color: #7a5c00;
  background: color-mix(in srgb, var(--shell-yellow, #ffd42a), transparent 92%);
}

.feed-record-card__rating { display: flex; gap: 3px; margin-top: 8px; color: var(--shell-border, #e0edeb); font-size: 18px; line-height: 1; }
.feed-record-card__rating .is-filled { color: var(--shell-teal, #1bbeaa); }

.feed-record-card__constraints { display: grid; gap: 6px; margin-top: 10px; }
.feed-record-card__constraints > div { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: color-mix(in srgb, #e83e54, transparent 94%); }
.feed-record-card__constraints span { color: #e83e54; font-weight: 900; }
.feed-record-card__constraints p { margin: 0; color: var(--shell-text, #1a2b28); font-size: 12px; font-weight: 800; line-height: 1.4; }
.feed-record-card__constraints small { display: block; margin-bottom: 1px; color: #e83e54; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.feed-record-card__relations { display: grid; gap: 8px; min-width: 0; margin: 0 16px 12px 28px; }
.feed-record-card__relations > section { margin-top: 0; }
.feed-record-card__process-notes { display: grid; gap: 8px; margin-top: 10px; }
.feed-record-card__process-note { padding: 9px 10px; border: 0; border-radius: 10px; background: var(--color-note-surface); }
.feed-record-card__process-note[data-note-type="observation"] { background: var(--shell-surface, #fff); }
.feed-record-card__process-note[data-note-type="observation"] { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 7px; align-items: start; }
.feed-record-card__process-note[data-note-type="observation"] > header { grid-column: 1; }
.feed-record-card__process-note[data-note-type="observation"] > p { grid-column: 2; margin-top: 1px; }
.feed-record-card__process-note[data-note-type="observation"] > .process-note-media-gallery { grid-column: 1 / -1; }
.feed-record-card__process-note[data-note-type="goldenMoment"] { background: transparent; box-shadow: none; }
.feed-record-card__process-note > header { display: flex; gap: 7px; align-items: center; color: var(--color-note-ink); }
.feed-record-card__process-note[data-note-type="observation"] > header { color: #2b86d1; }
.feed-record-card__process-note[data-note-type="observation"] > p { color: #185d98; }
.feed-record-card__process-note[data-note-type="goldenMoment"] > header { color: #e2ab00; }
.feed-record-card__process-note[data-note-type="goldenMoment"] > p { color: #a87400; text-shadow: 0 0 9px rgb(255 211 45 / 28%); }
.feed-record-card__process-note > header > span { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; }
.feed-record-card__process-note > header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feed-record-card__process-note[data-note-type="goldenMoment"] > header svg { fill: currentColor; }
.feed-record-card__process-note > header strong { font-size: 11px; font-weight: 900; }
.feed-record-card__process-note > p { margin: 5px 0 0; color: var(--color-note-text); font-size: 12px; font-weight: 700; line-height: 1.45; }

.feed-record-card__content aside.next-work {
  padding-inline: 11px;
  border: 1px solid var(--shell-border, #e0edeb);
  background: var(--shell-surface-alt, #f4f9f8);
}

.feed-record-card__content aside.affirmation {
  padding-inline: 11px;
  border: 1.5px solid color-mix(in srgb, var(--feed-accent), transparent 73.3%);
  background: color-mix(in srgb, var(--feed-accent), transparent 92.9%);
}

.feed-record-card__content aside.next-work > strong,
.feed-record-card__content aside.affirmation > strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 900;
}

.feed-record-card__content aside.next-work > strong {
  color: var(--shell-muted, #7a9490);
}

.feed-record-card__content aside.affirmation > strong {
  color: var(--feed-accent);
}

.feed-record-card__content aside.next-work p,
.feed-record-card__content aside.affirmation p {
  margin: 0;
  color: var(--shell-text, #1a2b28);
  font-size: 13px;
  line-height: 1.45;
}

.feed-record-card__content aside.next-work p {
  font-weight: 700;
}

.feed-record-card__content aside.affirmation p {
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.tag-list li {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 20px;
  color: var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent), transparent 86.7%);
  font-size: 11px;
  font-weight: 700;
}

.feed-record-card__actions {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--shell-border, #e0edeb);
}

.feed-social { display: block; }

.process-objective-card > .feed-social {
  margin: 12px -16px -14px;
}

.process-objective-card > .feed-social > .feed-comments {
  border-radius: 0 0 16px 16px;
}

.feed-record-card__actions button {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--shell-muted, #7a9490);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.feed-record-card__actions button.is-liked {
  color: #ff6060;
}

.feed-record-card__actions button.is-open {
  color: var(--shell-teal, #1bbeaa);
}

.feed-comments {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--shell-border, #e0edeb);
  background: var(--shell-surface-alt, #f4f9f8);
}

.feed-comment {
  display: flex;
  gap: 8px;
  margin: 0;
}

.feed-comment + .feed-comment {
  margin-top: 10px;
}

.feed-comment > div:last-child {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--shell-surface, #fff);
}

.feed-comment__content {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--shell-text, #1a2b28);
  background: transparent;
  text-align: left;
}

.feed-comment__content strong {
  font-size: 12px;
  font-weight: 800;
}

.feed-comment__content time {
  margin-left: 4px;
  color: var(--shell-muted, #7a9490);
  font-size: 12px;
  font-weight: 600;
}

.feed-comment__content p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-comment nav {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.feed-comment nav button {
  padding: 0;
  border: 0;
  color: var(--shell-teal, #1bbeaa);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.feed-comment nav button:last-child {
  color: #ff6060;
}

.feed-comment--new {
  align-items: center;
}

.feed-comment--new > div:last-child {
  padding: 0;
  background: transparent;
}

.feed-comment--new > button {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--shell-border, #e0edeb);
  border-radius: 20px;
  color: var(--shell-muted, #7a9490);
  background: var(--shell-input, #eef5f4);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.process-note-card {
  border: 1.5px solid var(--color-note-border);
  background: var(--color-note-surface);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-note-accent), transparent 85%);
}

[data-theme="dark"] .process-note-card {
  background: var(--color-note-surface);
}

.process-note-card header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 10px;
}

.process-note-card__icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  place-items: center;
  background: color-mix(in srgb, var(--shell-yellow, #ffd32d), transparent 80%);
  font-size: 18px;
}

.process-note-card header > div {
  flex: 1;
}

.process-note-card strong,
.process-note-card time {
  display: block;
  color: var(--color-note-ink);
}

[data-theme="dark"] .process-note-card strong {
  color: var(--color-note-ink);
}

.process-note-card strong {
  font-size: 13px;
  font-weight: 700;
}

.process-note-card time {
  margin-top: 1px;
  color: color-mix(in srgb, var(--color-note-ink), transparent 18%);
  font-size: 11px;
  font-weight: 600;
}

[data-theme="dark"] .process-note-card time {
  color: color-mix(in srgb, var(--color-note-ink), transparent 22%);
}

.process-note-card header button {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--shell-yellow, #ffd32d), transparent 73.3%);
  border-radius: 8px;
  color: #7a5c00;
  background: color-mix(in srgb, var(--shell-yellow, #ffd32d), transparent 86.7%);
  font-size: 10px;
  font-weight: 800;
}

[data-theme="dark"] .process-note-card header button {
  color: var(--shell-yellow, #ffd32d);
}

.process-note-card > p {
  padding: 0 14px 14px;
  margin: 0;
  color: var(--color-note-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

[data-theme="dark"] .process-note-card > p {
  color: var(--color-note-text);
}

.process-note-card[data-note-type="observation"] {
  border-color: color-mix(in srgb, #2b86d1, transparent 55%);
  background: var(--shell-surface, #fff);
  box-shadow: 0 2px 10px color-mix(in srgb, #2b86d1, transparent 84%);
}
.process-note-card[data-note-type="observation"] .process-note-card__icon { color: #2b86d1; background: color-mix(in srgb, #2b86d1, transparent 86%); }
.process-note-card[data-note-type="observation"] strong,
.process-note-card[data-note-type="observation"] time,
.process-note-card[data-note-type="observation"] > p { color: #185d98; }
.process-note-card[data-note-type="goldenMoment"] { border-color: #ffd32d; background: color-mix(in srgb, #ffd32d, var(--shell-surface, #fff) 93%); box-shadow: 0 0 12px rgb(255 211 45 / 45%), 0 6px 24px rgb(255 211 45 / 28%); }
.process-note-card[data-note-type="goldenMoment"] .process-note-card__icon { color: #edb900; filter: drop-shadow(0 0 7px rgb(255 211 45 / 72%)); }
.process-note-card[data-note-type="goldenMoment"] strong,
.process-note-card[data-note-type="goldenMoment"] time,
.process-note-card[data-note-type="goldenMoment"] > p { color: #a87400; text-shadow: 0 0 9px rgb(255 211 45 / 28%); }
.process-note-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.process-note-card[data-note-type="goldenMoment"] .process-note-card__icon svg { fill: currentColor; }
[data-theme="dark"] .process-note-card[data-note-type="observation"] { background: var(--shell-surface, #162622); }
[data-theme="dark"] .process-note-card[data-note-type="observation"] strong,
[data-theme="dark"] .process-note-card[data-note-type="observation"] time,
[data-theme="dark"] .process-note-card[data-note-type="observation"] > p { color: #83c5f7; }
.process-note-card__actions { margin-top: 2px; }
.process-note-media-gallery {
  display: grid;
  width: min(calc(100% - 28px), 440px);
  aspect-ratio: 4 / 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  padding: 0;
  margin: 0 14px 14px;
  border-radius: 14px;
  background: #101817;
}
.process-note-media-gallery[data-count="1"] { aspect-ratio: 16 / 10; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.process-note-media-gallery[data-count="1"] figure,
.process-note-media-gallery[data-count="1"] img,
.process-note-media-gallery[data-count="1"] video { border-radius: inherit; }
.process-note-media-gallery[data-count="2"] { aspect-ratio: 2 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.process-note-media-gallery[data-count="3"] figure:first-child { grid-row: 1 / span 2; }
.process-note-media-gallery figure { position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0; background: #182321; }
.process-note-media-gallery__open { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; }
.process-note-media-gallery img,
.process-note-media-gallery video { display: block; width: 100%; height: 100%; background: #101817; object-fit: cover; }
.process-note-media-gallery figure.has-overflow img,
.process-note-media-gallery figure.has-overflow video { filter: blur(3px) brightness(0.68); transform: scale(1.05); }
.process-note-media-gallery__overflow { position: absolute; display: grid; color: #fff; background: rgba(10, 18, 17, 0.2); font-size: clamp(20px, 6vw, 34px); font-weight: 900; inset: 0; place-items: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); }
.process-note-media-gallery__play { position: absolute; top: 50%; left: 50%; display: grid; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: rgba(8, 18, 16, 0.68); font-size: 15px; place-items: center; transform: translate(-50%, -50%); }
.process-note-media-gallery--session { width: min(100%, 390px); margin: 8px 0 0; border-radius: 11px; }
.process-note-media-gallery--session .process-note-media-gallery__overflow { font-size: clamp(18px, 5vw, 28px); }

@media (min-width: 768px) {
  .process-note-media-gallery[data-count] {
    width: calc(100% - 28px);
    aspect-ratio: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(130px, 16vw, 165px);
    background: transparent;
  }
  .process-note-media-gallery--session[data-count] { width: 100%; }
  .process-note-media-gallery[data-count="3"] figure:first-child { grid-row: auto; }
}

.app-page-modal--process-note {
  --process-note-accent: var(--color-note-accent);
  --process-note-ink: var(--color-note-ink);
  --process-note-tint: var(--color-note-input);
  --shell-bg: var(--color-bg);
  --shell-surface: var(--color-surface);
  --shell-input: var(--color-input);
  --shell-text: var(--color-text);
  --shell-muted: var(--color-muted);
  --shell-border: var(--color-border);
}
.app-page-modal--process-note[data-note-type="observation"] { --process-note-accent: #2b86d1; --process-note-ink: #2b86d1; }
.app-page-modal--process-note[data-note-type="goldenMoment"] { --process-note-accent: #ffd32d; --process-note-ink: #a87400; --process-note-tint: #fff8b8; }
.app-page-modal--process-note .process-note-editor { border: 0; }
.app-page-modal--process-note[data-note-type="note"] .process-note-editor,
.app-page-modal--process-note[data-note-type="note"] .app-page-modal__fixed,
.app-page-modal--process-note[data-note-type="note"] .app-page-modal__scroll,
.app-page-modal--process-note[data-note-type="note"] .process-note-editor__footer { color: var(--color-note-text); background: var(--shell-surface, #fff); }
.app-page-modal--process-note[data-note-type="note"] .app-page-modal__header-copy p { color: var(--color-note-ink); }
.app-page-modal--process-note[data-note-type="note"] .app-page-modal__action:not(.process-note-editor__delete) { color: var(--color-note-ink); background: var(--color-note-input); }
.app-page-modal--process-note[data-note-type="note"] .feed-field input,
.app-page-modal--process-note[data-note-type="note"] .feed-field select,
.app-page-modal--process-note[data-note-type="note"] .feed-field textarea { border-color: var(--color-note-border); color: var(--color-note-text); background: var(--color-note-input); }
.app-page-modal--process-note[data-note-type="note"] .process-note-editor__footer { border-color: var(--color-note-border); box-shadow: 0 -10px 24px color-mix(in srgb, var(--color-note-accent), transparent 90%); }
.app-page-modal--process-note[data-note-type="note"] .process-note-editor__footer button { color: var(--color-note-ink); background: var(--color-note-input); }
.app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field input,
.app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field select,
.app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field textarea { color: #9e7000; text-shadow: 0 0 9px rgb(255 211 45 / 24%); }
.app-page-modal--process-note .app-page-modal__handle span { background: color-mix(in srgb, var(--process-note-accent), transparent 35%); }
.app-page-modal--process-note .app-page-modal__header-copy h2,
.app-page-modal--process-note .feed-field > span,
.process-note-media-editor > span { color: var(--process-note-ink); }
.app-page-modal--process-note .feed-field input:focus,
.app-page-modal--process-note .feed-field select:focus,
.app-page-modal--process-note .feed-field textarea:focus { border-color: var(--process-note-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--process-note-accent), transparent 88%); }
.app-page-modal--process-note .app-page-modal__action.process-note-editor__delete { color: #d72649; background: rgb(255 96 96 / 9%); }
.app-page-modal--process-note .app-page-modal__save,
.process-note-long-text-editor .app-page-modal__save { color: var(--process-note-ink); background: color-mix(in srgb, var(--process-note-accent), transparent 86%); }
.process-note-editor__scroll { display: flex; flex-direction: column; }
.process-note-editor__content { display: flex; width: 100%; min-width: 0; min-height: 100%; flex: 1 0 auto; flex-direction: column; gap: 12px; }
.process-note-editor__provenance { display: grid; gap: 6px; padding-top: 4px; margin-top: auto; }
.process-note-date-time { min-width: 0; margin-bottom: 0; }
.process-note-date-time input { margin-bottom: 0; font-size: 16px; font-weight: 800; }
.process-note-editor__provenance > p { margin: 0 2px; color: var(--shell-muted, #7a9490); font-size: 11px; font-weight: 700; }
.process-note-editor__provenance > p strong { color: var(--shell-text, #1a2b28); font-weight: 900; }
.app-page-modal--process-note .app-page-modal__header-copy h2,
.app-page-modal--constraint .app-page-modal__header-copy h2 { display: flex; align-items: center; gap: 8px; }
.process-note-editor__title-icon,
.constraint-editor__title-icon { display: grid; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; place-items: center; }
.process-note-editor__title-icon { color: var(--process-note-ink); background: var(--process-note-tint); }
.process-note-editor__title-icon[data-note-type="observation"] { background: color-mix(in srgb, #2b86d1, transparent 89%); }
.process-note-editor__title-icon[data-note-type="goldenMoment"] { color: #e2ab00; background: radial-gradient(circle, #fffde8 0%, #fff49a 52%, #ffd32d 145%); box-shadow: 0 0 9px rgb(255 211 45 / 60%); }
.constraint-editor__title-icon { color: #e83e54; background: color-mix(in srgb, #e83e54, transparent 90%); }
.process-note-editor__title-icon svg,
.constraint-editor__title-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.process-note-editor__title-icon[data-note-type="goldenMoment"] svg { fill: currentColor; }
.process-note-editor__text textarea { min-height: 150px; }
.process-note-editor__text textarea[readonly] { cursor: pointer; caret-color: transparent; }
.process-note-editor__error { min-height: 18px; margin: 0 0 4px; color: #d72649; font-size: 11px; font-weight: 800; }
.process-note-editor__error:empty { display: none; }
.process-note-media-editor {
  --media-attachment-accent: var(--process-note-accent);
  --media-attachment-ink: var(--process-note-ink);
}
.process-note-editor__footer {
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--shell-border, #e0edeb);
  background: var(--shell-surface, #fff);
  box-shadow: 0 -10px 24px rgb(17 45 40 / 9%);
}
.process-note-editor__footer button { width: 100%; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; color: #fff; background: var(--process-note-accent); font: inherit; font-size: 13px; font-weight: 900; }
.process-note-editor[data-note-type="goldenMoment"] .process-note-editor__footer button { color: #5a4400; box-shadow: 0 0 18px rgb(255 211 45 / 48%); }
.process-note-long-text-editor { --process-note-accent: var(--color-note-accent); --process-note-ink: var(--color-note-ink); --long-text-editor-shield: var(--color-note-surface); background: var(--long-text-editor-shield); }
.process-note-long-text-editor[data-note-type="note"] { --long-text-editor-shield: var(--color-surface); color: var(--color-note-text); background: var(--long-text-editor-shield); }
.process-note-long-text-editor[data-note-type="note"] .long-text-editor-overlay__field { border-color: var(--color-note-border); background: var(--color-note-input); }
.process-note-long-text-editor[data-note-type="note"] textarea { color: var(--color-note-text); }
.process-note-long-text-editor[data-note-type="note"] .process-note-long-text-editor__nav { border-color: var(--color-note-border); background: var(--color-surface); }
.process-note-long-text-editor[data-note-type="observation"] { --process-note-accent: #2b86d1; --process-note-ink: #2b86d1; --long-text-editor-shield: var(--color-surface); }
.process-note-long-text-editor[data-note-type="goldenMoment"] { --process-note-accent: #ffd32d; --process-note-ink: #a87400; --long-text-editor-shield: var(--color-surface); background: var(--long-text-editor-shield); }
.process-note-long-text-editor .long-text-editor-overlay__header strong { color: var(--process-note-ink); }
.process-note-long-text-editor .long-text-editor-overlay__field { border: 2px solid var(--process-note-accent); background: color-mix(in srgb, var(--process-note-accent), var(--color-input) 94%); }
.process-note-long-text-editor[data-note-type="goldenMoment"] .long-text-editor-overlay__field { position: relative; z-index: 2; box-shadow: 0 0 0 1px rgb(255 211 45 / 24%); }
.process-note-long-text-editor[data-note-type="goldenMoment"] textarea { color: #9e7000; }
.process-note-long-text-editor__type-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; order: -1; border: 1.5px solid var(--process-note-accent); border-radius: 13px; color: var(--process-note-ink); background: color-mix(in srgb, var(--process-note-accent), transparent 89%); place-items: center; }
.process-note-long-text-editor__type-icon[data-note-type="goldenMoment"] { color: #e2ab00; background: radial-gradient(circle, #fffde8 0%, #fff49a 48%, #ffd32d 145%); box-shadow: 0 0 8px rgb(255 211 45 / 68%), 0 0 18px rgb(255 211 45 / 42%); }
.process-note-long-text-editor__type-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.process-note-long-text-editor__type-icon[data-note-type="goldenMoment"] svg { fill: currentColor; }
.process-note-long-text-editor .process-note-long-text-editor__nav { position: relative; z-index: 1; justify-content: center; border-color: color-mix(in srgb, var(--process-note-accent), transparent 72%); background: var(--long-text-editor-shield); }
.process-note-long-text-editor .process-note-long-text-editor__nav > span { display: none; }
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .process-note-editor,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .app-page-modal__fixed,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .app-page-modal__scroll,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .process-note-editor__footer { color: var(--color-note-text); background: var(--color-surface); }
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .feed-field input,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .feed-field select,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="note"] .feed-field textarea { color: var(--color-note-text); background: var(--color-note-input); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="note"] { --long-text-editor-shield: var(--color-surface); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="note"],
[data-theme="dark"] .process-note-long-text-editor[data-note-type="note"] .process-note-long-text-editor__nav { color: var(--color-note-text); background: var(--color-surface); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="note"] .long-text-editor-overlay__field { background: var(--color-note-input); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="note"] textarea { color: var(--color-note-text); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="observation"] { --long-text-editor-shield: var(--color-surface); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="goldenMoment"] { --long-text-editor-shield: var(--color-surface); background: var(--long-text-editor-shield); }
[data-theme="dark"] .process-note-long-text-editor__type-icon[data-note-type="goldenMoment"] { color: #ffd32d; background: radial-gradient(circle, #6f5a00 0%, #403500 72%, #2b2400 100%); }
[data-theme="dark"] .process-note-long-text-editor[data-note-type="goldenMoment"] textarea,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field input,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field select,
[data-theme="dark"] .app-page-modal--process-note[data-note-type="goldenMoment"] .feed-field textarea,
[data-theme="dark"] .process-note-card[data-note-type="goldenMoment"] strong,
[data-theme="dark"] .process-note-card[data-note-type="goldenMoment"] time,
[data-theme="dark"] .process-note-card[data-note-type="goldenMoment"] > p { color: #ffe36a; }
[data-theme="dark"] .process-note-card[data-note-type="goldenMoment"] { background: color-mix(in srgb, #ffd32d, #101a1f 88%); }

@media (max-width: 767px) {
  .process-feed__toolbar { padding-right: 46px; padding-left: 46px; }
  .process-feed__filter-edge {
    position: absolute;
    z-index: 2;
    top: 14px;
    display: grid;
    width: 34px;
    height: 44px;
    padding: 0;
    border: 0;
    color: var(--shell-teal, #1bbeaa);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    place-items: center;
    background: var(--shell-bg, #f2f7f6);
  }
  .process-feed__filter-edge--previous { left: 8px; }
  .process-feed__filter-edge--next { right: 8px; }
  .process-feed__filter span { padding: 0 3px; line-height: 1.05; white-space: normal; }
  .process-note-editor,
  .process-note-editor__content,
  .process-note-editor .feed-field { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; }
  .process-note-editor .feed-field input,
  .process-note-editor .feed-field select,
  .process-note-editor .feed-field textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .process-note-editor__text textarea { min-height: 112px; }
}

.empty-state {
  padding: 18px;
  margin: 0 16px 14px;
  border-radius: 20px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-surface, #fff);
}

.feed-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.feed-modal__backdrop {
  position: absolute;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.42);
  inset: 0;
  touch-action: none;
}

.feed-modal__panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 16px;
  border: 1.5px solid var(--shell-border, #e0edeb);
  border-radius: 22px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-surface, #fff);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.feed-modal__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.feed-modal__header > div {
  flex: 1;
  min-width: 0;
}

.feed-modal__header h2 {
  margin: 0;
  color: var(--shell-text, #1a2b28);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.feed-modal__header p {
  margin: 3px 0 0;
  color: var(--shell-muted, #7a9490);
  font-size: 12px;
  font-weight: 700;
}

.feed-modal__close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--shell-muted, #7a9490);
  background: var(--shell-input, #eef5f4);
  font-size: 24px;
  font-weight: 800;
  line-height: 34px;
}

.feed-modal__close--round {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
}

.feed-field {
  display: block;
}

.feed-field > span {
  display: block;
  margin: 0 0 6px 2px;
  color: #8a6a00;
  font-size: 11px;
  font-weight: 800;
}

[data-theme="dark"] .feed-field > span {
  color: var(--shell-yellow, #ffd32d);
}

.feed-field input,
.feed-field textarea,
.feed-field select,
.comment-editor__textarea {
  width: 100%;
  border: 1.5px solid var(--shell-border, #e0edeb);
  outline: none;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-input, #eef5f4);
}

.feed-field input,
.feed-field textarea,
.feed-field select {
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.feed-field input {
  height: 46px;
  margin-bottom: 12px;
}
.feed-field select { width: 100%; height: 46px; margin-bottom: 12px; }
.feed-field input[readonly] { color: var(--shell-muted, #7a9490); }

.objective-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.objective-editor__head-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.objective-editor__content.is-creating .objective-editor__head-fields { grid-template-columns: minmax(0, 1fr); }
.objective-editor__content.is-creating .objective-editor__type { max-width: 260px; }
.objective-editor__state { min-width: 0; }
.objective-editor__state > span { display: block; margin: 0 0 6px 2px; color: var(--shell-teal, #1bbeaa); font-size: 11px; font-weight: 900; }
.objective-editor__status-toggle { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--shell-teal, #1bbeaa); border-radius: 14px; color: #fff; background: var(--shell-teal, #1bbeaa); }
.objective-editor__status-toggle[data-status="closed"] { border-color: var(--shell-border, #e0edeb); color: var(--shell-muted, #7a9490); background: var(--shell-input, #eef5f4); }
.objective-editor__status-toggle strong { font-size: 13px; font-weight: 900; }
.objective-editor__persistent { margin: 0 0 12px; }
.objective-editor__metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.objective-date-control {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--shell-border, #e0edeb);
  border-radius: 14px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-input, #eef5f4);
  box-sizing: border-box;
}
.feed-field > .objective-date-control {
  display: flex;
  margin: 0 0 12px;
  color: var(--shell-text, #1a2b28);
}
.objective-date-control__value {
  display: block;
  max-width: 100%;
  padding: 0 6px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  pointer-events: none;
}
.objective-date-control.is-empty .objective-date-control__value { color: var(--shell-muted, #7a9490); }
.objective-date-control:focus-within {
  border-color: var(--shell-teal, #1bbeaa);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 88%);
}
.feed-field .objective-date-control input[type="datetime-local"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.objective-editor__text textarea { min-height: 112px; overflow-y: hidden; }
.objective-editor__closure textarea { min-height: 86px; overflow-y: hidden; }
.app-page-modal--objective {
  --shell-bg: var(--color-bg);
  --shell-surface: var(--color-surface);
  --shell-surface-alt: var(--color-surface-alt);
  --shell-input: var(--color-input);
  --shell-text: var(--color-text);
  --shell-muted: var(--color-muted);
  --shell-border: var(--color-border);
  --shell-teal: var(--color-teal);
  --shell-yellow: var(--color-yellow);
}
.objective-editor__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--shell-input, #eef5f4);
}
.objective-editor__tabs button {
  display: flex;
  min-width: 0;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  color: var(--shell-muted, #7a9490);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}
.objective-editor__tabs button[aria-selected="true"] { color: #fff; background: var(--shell-teal, #1bbeaa); }
.objective-editor__tabs button span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  color: inherit;
  background: rgb(255 255 255 / 22%);
  font-size: 10px;
}
.objective-editor__content { width: 100%; min-width: 0; max-width: 100%; }
.objective-editor__text textarea[data-mobile-objective-trigger] {
  cursor: pointer;
  caret-color: transparent;
}
.objective-editor__closure textarea[readonly] {
  cursor: pointer;
  caret-color: transparent;
}
.objective-editor__origin {
  display: block;
  margin: -7px 2px 10px;
  color: var(--shell-muted, #7a9490);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.objective-sessions { display: grid; gap: 8px; }
.objective-session {
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--shell-border, #e0edeb);
  border-radius: 12px;
  color: var(--shell-text, #1a2b28);
  background: var(--shell-input, #eef5f4);
}
.objective-session header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.objective-session header strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.objective-session time { flex: 0 0 auto; color: var(--shell-muted, #7a9490); font-size: 10px; font-weight: 800; }
.objective-session p { margin: 8px 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.objective-session small {
  display: block;
  padding: 8px 9px;
  border-left: 3px solid var(--shell-teal, #1bbeaa);
  border-radius: 4px;
  color: var(--shell-muted, #7a9490);
  background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 92%);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.objective-session small b { color: var(--shell-text, #1a2b28); }
.objective-sessions__empty {
  padding: 22px 14px;
  border: 1px dashed var(--shell-border, #e0edeb);
  border-radius: 12px;
  color: var(--shell-muted, #7a9490);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.objective-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 2px 0;
  margin: 0;
  list-style: none;
}
.objective-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--color-border);
  content: '';
}
.objective-timeline__event {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 12px;
}
.objective-timeline__event:last-child { padding-bottom: 0; }
.objective-timeline__event > i {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 15px 0 0 5px;
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 1.5px var(--color-teal);
}
.objective-timeline__event.is-closed > i {
  background: var(--color-muted);
  box-shadow: 0 0 0 1.5px var(--color-muted);
}
.objective-timeline__event article {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  background: var(--color-input);
}
.objective-timeline__event header { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; }
.objective-timeline__event header strong { min-width: 0; font-size: 12px; font-weight: 900; }
.objective-timeline__event time { flex: 0 0 auto; color: var(--color-muted); font-size: 10px; font-weight: 800; }
.objective-timeline__event small { display: block; margin-top: 2px; color: var(--color-muted); font-size: 10px; font-weight: 700; }
.objective-timeline__event p { margin: 7px 0 0; color: var(--color-text); font-size: 11px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.objective-timeline__closure-editor {
  margin-top: 9px;
  border-top: 1px solid var(--color-border);
  padding-top: 7px;
}
.objective-timeline__closure-editor summary {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 7px 0 0 auto;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  list-style: none;
  place-items: center;
  touch-action: manipulation;
}
.objective-timeline__closure-editor summary::-webkit-details-marker { display: none; }
.objective-timeline__closure-trigger {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 7px 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.objective-timeline__closure-trigger svg,
.objective-timeline__closure-editor summary svg { display: block; width: 18px; height: 18px; }
.objective-timeline__closure-editor label { display: grid; gap: 5px; margin-top: 8px; }
.objective-timeline__closure-editor label span { color: var(--color-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.objective-timeline__closure-editor textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
}
.objective-timeline__closure-editor textarea:focus { border-color: var(--color-primary); outline: 2px solid color-mix(in srgb, var(--color-primary) 18%, transparent); }
.objective-timeline__empty {
  padding: 22px 14px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.objective-editor__error { min-height: 18px; margin: 0 0 6px; color: #d72649; font-size: 11px; font-weight: 800; }
.objective-editor__error:empty { display: none; }
.app-page-modal--objective .objective-editor { border: 0; }
.app-page-modal--constraint { --shell-teal: #e83e54; }
.app-page-modal--constraint .app-page-modal__save,
.constraint-long-text-editor .app-page-modal__save { color: #e83e54; background: color-mix(in srgb, #e83e54, transparent 89%); }
.app-page-modal--constraint .objective-timeline::before { background: color-mix(in srgb, #e83e54, transparent 68%); }
.app-page-modal--constraint .objective-timeline__event > i { background: #e83e54; box-shadow: 0 0 0 1.5px #e83e54; }
.app-page-modal--constraint .objective-timeline__event.is-closed > i { background: color-mix(in srgb, #e83e54, #7a9490 55%); box-shadow: 0 0 0 1.5px color-mix(in srgb, #e83e54, #7a9490 55%); }
.app-page-modal--objective .app-page-modal__handle span { background: color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 35%); }
.app-page-modal--objective .app-page-modal__header-copy h2,
.app-page-modal--objective .feed-field > span { color: var(--shell-teal, #1bbeaa); }
.app-page-modal--objective .feed-field > .objective-date-control { color: var(--shell-text, #1a2b28); }
.app-page-modal--objective .feed-field input:focus,
.app-page-modal--objective .feed-field select:focus,
.app-page-modal--objective .feed-field textarea:focus { border-color: var(--shell-teal, #1bbeaa); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shell-teal, #1bbeaa), transparent 88%); }
.objective-editor__save { background: var(--shell-teal, #1bbeaa); }
.objective-editor__persistent { display: flex; min-width: 0; min-height: 46px; align-items: center; gap: 9px; padding: 9px 12px; overflow-wrap: anywhere; border: 1px solid var(--shell-border, #e0edeb); border-radius: 14px; color: var(--shell-text, #1a2b28); background: var(--shell-input, #eef5f4); font-size: 12px; font-weight: 800; }
.objective-editor__persistent input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--shell-teal, #1bbeaa); }
.app-page-modal--objective .app-page-modal__action.objective-editor__delete {
  color: #d72649;
  background: rgb(255 96 96 / 9%);
}
.objective-editor__footer {
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--shell-border, #e0edeb);
  background: var(--shell-surface, #fff);
  box-shadow: 0 -10px 24px rgb(17 45 40 / 9%);
}
.objective-editor__footer button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--shell-teal, #1bbeaa);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.feed-field textarea {
  min-height: 118px;
  margin-bottom: 14px;
  overflow: hidden;
  resize: none;
  line-height: 1.45;
}

.comment-editor__textarea {
  min-height: 120px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  resize: none;
}

.comment-editor__content { display: grid; gap: 16px; padding: 18px; }
.comment-editor__author { display: flex; gap: 10px; align-items: center; }
.comment-editor__author strong { font-size: 14px; }
.comment-editor__field textarea { margin: 0; }
.comment-editor__error { min-height: 18px; margin: 0; color: #e83e54; font-size: 12px; font-weight: 800; }
.comment-editor__footer button {
  width: 100%; height: 48px; border: 0; border-radius: 14px;
  color: #fff; background: var(--shell-teal, #1bbeaa); font: inherit; font-size: 13px; font-weight: 900;
}
.comment-editor__footer button:disabled { color: var(--shell-muted, #7a9490); background: var(--shell-border, #e0edeb); }

.feed-modal__save {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--shell-teal, #1bbeaa);
  font-size: 14px;
  font-weight: 900;
}

.feed-modal__save:disabled {
  color: var(--shell-muted, #7a9490);
  background: var(--shell-border, #e0edeb);
  cursor: default;
}

@media (max-width: 767px) and (hover: none) {
  .feed-field input,
  .feed-field textarea,
  .feed-field select,
  .comment-editor__textarea {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .feed-record-card__header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px 10px;
  }
  .feed-record-card__header > .avatar {
    grid-row: 1;
    align-self: center;
  }
  .feed-record-card__identity {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-self: center;
    flex-direction: column;
    gap: 2px;
  }
  .feed-record-card__scores {
    grid-column: 2 / 4;
    grid-row: 2;
    display: flex;
    min-width: 0;
    align-self: start;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 4px;
    justify-self: stretch;
  }
  .feed-record-card__context {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    align-self: start;
    justify-content: flex-end;
    justify-self: end;
    margin: 0;
  }
  .feed-record-card__context span { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .feed-record-card__scores > strong { height: 25px; min-height: 25px; padding-inline: 7px; font-size: 10px; }
  .process-feed__filter { font-size: 11px; }
  .process-feed__filter span { padding: 0 4px; }
  .feed-modal--create { align-items: flex-end; padding: 12px; }
  .feed-modal--create .feed-create-menu { margin-bottom: max(0px, env(safe-area-inset-bottom)); }
  :root.feed-overlay-open .feed-modal {
    position: fixed;
    top: var(--visual-viewport-offset-top, 0px);
    bottom: auto;
    height: var(--visual-viewport-height, 100dvh);
  }

  .app-page-modal--objective .objective-editor__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .app-page-modal--objective .objective-editor__head-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-page-modal--objective .objective-editor__metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-page-modal--objective .objective-editor__metadata .feed-field > span { min-height: 28px; }
  .app-page-modal--objective .objective-editor__author { grid-column: 1 / -1; }
  .app-page-modal--objective .objective-editor__type select { padding-right: 27px; font-size: 12px; }
  .app-page-modal--objective .objective-editor__persistent { min-height: 42px; padding: 8px; font-size: 10px; }
  .app-page-modal--objective .objective-editor__text textarea { min-height: 96px; }
  .app-page-modal--objective .objective-editor__tabs button { padding: 0 5px; font-size: 10px; }
  .app-page-modal--objective .objective-editor,
  .app-page-modal--objective .objective-editor__content,
  .app-page-modal--objective .feed-field { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; }
  .app-page-modal--objective .feed-field input,
  .app-page-modal--objective .feed-field select,
  .app-page-modal--objective .feed-field textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .app-page-modal--objective .feed-field input[type="datetime-local"] { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
}

@media (min-width: 768px) {
  .app-page-modal--objective .objective-editor__metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page-modal--objective .objective-editor__author {
    grid-column: 1 / -1;
  }

  .app-page-modal--objective .objective-date-control__value {
    display: none;
  }

  .app-page-modal--objective .feed-field .objective-date-control input[type="datetime-local"] {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 0;
    opacity: 1;
    color: var(--shell-text, #1a2b28);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
  }

  .app-page-modal--objective .feed-field .objective-date-control input[type="datetime-local"][readonly] {
    color: var(--shell-muted, #7a9490);
    cursor: default;
  }

  .feed-record-card__scores {
    grid-row: 1;
    align-self: start;
    gap: 6px;
  }

  .feed-record-card__scores > strong { font-size: 11px; }

  .process-feed__filters {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .process-feed__filter-page:not(.is-clone) { display: contents; }
  .process-feed__filter-page.is-clone { display: none; }

  .process-feed__filter {
    flex: 1 1 0;
    min-width: 0;
  }

  .process-feed__filter[data-filter="activities"] { order: 1; }
  .process-feed__filter[data-filter="objectives"] { order: 2; }
  .process-feed__filter[data-filter="constraints"] { order: 3; }
  .process-feed__filter[data-filter="notes"] { order: 4; }
  .process-feed__filter[data-filter="observations"] { order: 5; }
  .process-feed__filter[data-filter="goldenMoments"] { order: 6; }

}
