/* Thoughts — a quiet, editorial reading surface. All rules stay within the Thoughts view. */

#homeGroup.active-page #homeThoughts.active-page .tp-library {
  --tp-oxblood: #763b43;
  --tp-sage: #e8eee5;
  --tp-sage-ink: #435d4a;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0;
  padding: 0 0 48px;
  color: var(--ink);
  font-family: var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-library :where(button, input, summary) {
  font: inherit;
}

#homeGroup.active-page #homeThoughts.active-page .tp-library :where(button, input, summary):focus-visible,
#detailModal:has(.tp-collection) :where(button, input, summary):focus-visible {
  outline: 2px solid var(--moss-dark);
  outline-offset: 3px;
}

#homeGroup.active-page #homeThoughts.active-page .tp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

#homeGroup.active-page #homeThoughts.active-page .tp-search input#thoughtSearchInput {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.3 var(--sans, Inter, sans-serif);
  box-shadow: none;
  appearance: none;
}

#homeGroup.active-page #homeThoughts.active-page .tp-search input#thoughtSearchInput::placeholder {
  color: var(--muted);
  opacity: .82;
}

#homeGroup.active-page #homeThoughts.active-page .tp-search button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 14px/1 var(--sans, Inter, sans-serif);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

#homeGroup.active-page #homeThoughts.active-page .tp-search button:hover {
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: var(--paper);
}

#homeGroup.active-page #homeThoughts.active-page p#thoughtSearchStatus {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.5 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page p#thoughtSearchStatus:empty {
  display: none;
}

#homeGroup.active-page #homeThoughts.active-page .tp-results:empty {
  display: none;
}

#homeGroup.active-page #homeThoughts.active-page .tp-results:not(:empty) {
  margin: 0 0 34px;
}

#homeGroup.active-page #homeThoughts.active-page .tp-section {
  min-width: 0;
  margin: 37px 0 0;
}

#homeGroup.active-page #homeThoughts.active-page .tp-heading {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
  margin: 0 0 10px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--line);
}

#homeGroup.active-page #homeThoughts.active-page .tp-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 500 26px/1.12 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
}

#homeGroup.active-page #homeThoughts.active-page .tp-count {
  color: var(--muted);
  font: 400 14px/1.3 var(--sans, Inter, sans-serif);
  white-space: nowrap;
}

#homeGroup.active-page #homeThoughts.active-page .tp-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-left: auto;
  padding: 3px 0 3px 10px;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.3 var(--sans, Inter, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page .tp-add:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf {
  display: flex;
  gap: 12px;
  min-width: 0;
  margin: 0 -2px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf-card,
#homeGroup.active-page #homeThoughts.active-page .tp-new-collection {
  position: relative;
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  min-height: 142px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf-card:hover,
#homeGroup.active-page #homeThoughts.active-page .tp-new-collection:hover {
  transform: translateY(-2px);
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf-card .tp-bookmark-svg {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 20px;
  height: 23px;
  color:var(--tp-oxblood);
  fill: currentColor;
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font: 500 22px/1.12 "Cormorant Garamond", Georgia, serif;
  text-overflow: ellipsis;
}

#homeGroup.active-page #homeThoughts.active-page .tp-shelf-card > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 400 13px/1.3 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-new-collection {
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 14px/1.3 var(--sans, Inter, sans-serif);
  text-align: center;
}

#homeGroup.active-page #homeThoughts.active-page .tp-new-collection:hover {
  border-color: var(--moss-dark);
  color: var(--moss-dark);
}

#homeGroup.active-page #homeThoughts.active-page .tp-list {
  min-width: 0;
}

#homeGroup.active-page #homeThoughts.active-page .tp-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

#homeGroup.active-page #homeThoughts.active-page .tp-entry-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

#homeGroup.active-page #homeThoughts.active-page .tp-date {
  margin: 0 0 8px;
  color: var(--muted);
  font: 400 13px/1.35 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page button.thought-entry-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page button.thought-entry-open:hover {
  color: var(--moss-dark);
}

#homeGroup.active-page #homeThoughts.active-page .tp-body {
  display: block;
  color: inherit;
  font: 500 26px/1.35 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

#homeGroup.active-page #homeThoughts.active-page .tp-distinct-title {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

#homeGroup.active-page #homeThoughts.active-page .tp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tp-sage);
  color: var(--tp-sage-ink);
  font: 500 13px/1.2 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-pill.tp-membership {
  background: color-mix(in srgb, var(--tp-oxblood) 11%, transparent);
  color: var(--tp-oxblood);
}

#homeGroup.active-page #homeThoughts.active-page p.tp-link {
  margin: 9px 0 0;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-entry-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 1px;
}

#homeGroup.active-page #homeThoughts.active-page button.tp-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

#homeGroup.active-page #homeThoughts.active-page button.tp-bookmark:hover {
  background: var(--tp-sage);
  color: var(--tp-oxblood);
}

#homeGroup.active-page #homeThoughts.active-page .tp-bookmark-svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#homeGroup.active-page #homeThoughts.active-page button.tp-bookmark[aria-pressed="true"] {
  color: var(--tp-oxblood);
}

#homeGroup.active-page #homeThoughts.active-page button.tp-bookmark[aria-pressed="true"] .tp-bookmark-svg {
  fill: var(--tp-oxblood);
  stroke: var(--tp-oxblood);
}

#homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow {
  position: relative;
  z-index: 2;
}

#homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow > summary::-webkit-details-marker,
#homeGroup.active-page #homeThoughts.active-page details.tp-archive > summary::-webkit-details-marker,
#homeGroup.active-page #homeThoughts.active-page details.tp-later > summary::-webkit-details-marker {
  display: none;
}

#homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow > summary:hover,
#homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow[open] > summary {
  background: var(--tp-sage);
  color: var(--ink);
}

#homeGroup.active-page #homeThoughts.active-page .thought-overflow-menu {
  position: absolute;
  top: 40px;
  right: 0;
  display: flex;
  width: max-content;
  min-width: 184px;
  max-width: min(260px, calc(100vw - 40px));
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgb(42 39 33 / 13%);
}

#homeGroup.active-page #homeThoughts.active-page .thought-overflow-menu button.thought-action {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: 400 13px/1.35 var(--sans, Inter, sans-serif);
  text-align: left;
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page .thought-overflow-menu button.thought-action:hover {
  background: var(--tp-sage);
}

#homeGroup.active-page #homeThoughts.active-page .thought-overflow-menu p {
  margin: 4px 8px;
  color: var(--muted);
  font: 400 12px/1.45 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-entry.tp-archived {
  color: var(--muted);
}

#homeGroup.active-page #homeThoughts.active-page .tp-entry.tp-archived .tp-body {
  color: var(--muted);
}

#homeGroup.active-page #homeThoughts.active-page .tp-duplicate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--moss-dark) 24%, var(--line));
  border-radius: 8px;
  background: var(--tp-sage);
  color: var(--tp-sage-ink);
  font: 400 14px/1.5 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page .tp-duplicate p {
  margin: 0;
}

#homeGroup.active-page #homeThoughts.active-page .tp-duplicate button[data-tp-review-archive] {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--moss-dark) 36%, var(--line));
  border-radius: 999px;
  background: transparent;
  color: var(--tp-sage-ink);
  font: 500 13px/1.2 var(--sans, Inter, sans-serif);
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page .tp-duplicate button[data-tp-review-archive]:hover {
  background: var(--paper);
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive,
#homeGroup.active-page #homeThoughts.active-page details.tp-later {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive > summary,
#homeGroup.active-page #homeThoughts.active-page details.tp-later > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px 0;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive > summary > span:first-child,
#homeGroup.active-page #homeThoughts.active-page details.tp-later > summary > span:first-child {
  font: 500 22px/1.2 "Cormorant Garamond", Georgia, serif;
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive > summary::after,
#homeGroup.active-page #homeThoughts.active-page details.tp-later > summary::after {
  content: none;
  margin-left: auto;
  color: var(--moss-dark);
  font: 400 20px/1 var(--sans, Inter, sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive[open] > summary::after,
#homeGroup.active-page #homeThoughts.active-page details.tp-later[open] > summary::after {
  content: none;
}

#homeGroup.active-page #homeThoughts.active-page .tp-show-more,
#homeGroup.active-page #homeThoughts.active-page .tp-show-less {
  margin-left:auto;
  color:var(--moss-dark);
  font:500 14px/1.3 var(--sans,Inter,sans-serif);
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive .tp-show-less,
#homeGroup.active-page #homeThoughts.active-page details.tp-later .tp-show-less {
  display: none;
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive[open] .tp-show-more,
#homeGroup.active-page #homeThoughts.active-page details.tp-later[open] .tp-show-more {
  display: none;
}

#homeGroup.active-page #homeThoughts.active-page details.tp-archive[open] .tp-show-less,
#homeGroup.active-page #homeThoughts.active-page details.tp-later[open] .tp-show-less {
  display: inline;
}

#homeGroup.active-page #homeThoughts.active-page .tp-archive .tp-list,
#homeGroup.active-page #homeThoughts.active-page .tp-later .tp-list {
  padding-bottom: 3px;
}

#homeGroup.active-page #homeThoughts.active-page .tp-archive .tp-entry:first-child,
#homeGroup.active-page #homeThoughts.active-page .tp-later .tp-entry:first-child {
  border-top: 1px solid var(--line);
}

#homeGroup.active-page #homeThoughts.active-page .thought-index-status {
  color: var(--muted);
  font: 400 12px/1.45 var(--sans, Inter, sans-serif);
}

#detailModal:has(.tp-collection) .modal-card {
  width: min(680px, calc(100vw - 16px));
  max-width: 680px;
  padding: 32px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(35 32 28 / 20%);
}

#detailModal:has(.tp-collection) .tp-collection {
  min-width: 0;
}

#detailModal:has(.tp-collection) .tp-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans, Inter, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}

#detailModal:has(.tp-collection) h2#detailTitle {
  margin: 0 48px 22px 0;
  color: var(--ink);
  font: 500 30px/1.15 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.02em;
}

#detailModal:has(.tp-collection) button#closeDetail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

#detailModal:has(.tp-collection) button#closeDetail:hover {
  background: var(--tp-sage, #e8eee5);
}

#detailModal:has(.tp-collection) .tp-collection .tp-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

#detailModal:has(.tp-collection) .tp-entry-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

#detailModal:has(.tp-collection) .tp-date {
  margin: 0 0 8px;
  color: var(--muted);
  font: 400 13px/1.35 var(--sans, Inter, sans-serif);
}

#detailModal:has(.tp-collection) button.thought-entry-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

#detailModal:has(.tp-collection) button.thought-entry-open:hover {
  color: var(--moss-dark);
}

#detailModal:has(.tp-collection) .tp-body {
  display: block;
  color: inherit;
  font: 500 26px/1.35 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

#detailModal:has(.tp-collection) .tp-distinct-title {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans, Inter, sans-serif);
}

#detailModal:has(.tp-collection) .tp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

#detailModal:has(.tp-collection) .tp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8eee5;
  color: #435d4a;
  font: 500 13px/1.2 var(--sans, Inter, sans-serif);
}

#detailModal:has(.tp-collection) .tp-pill.tp-membership {
  background: color-mix(in srgb, #763b43 11%, transparent);
  color: #763b43;
}

#detailModal:has(.tp-collection) p.tp-link {
  margin: 9px 0 0;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans, Inter, sans-serif);
}

#detailModal:has(.tp-collection) .tp-entry-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 1px;
}

#detailModal:has(.tp-collection) button.tp-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

#detailModal:has(.tp-collection) .tp-bookmark-svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#detailModal:has(.tp-collection) button.tp-bookmark[aria-pressed="true"] {
  color: #763b43;
}

#detailModal:has(.tp-collection) button.tp-bookmark[aria-pressed="true"] .tp-bookmark-svg {
  fill: #763b43;
  stroke: #763b43;
}

#detailModal:has(.tp-collection) details.thought-overflow.tp-overflow {
  position: relative;
  z-index: 2;
}

#detailModal:has(.tp-collection) details.thought-overflow.tp-overflow > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

#detailModal:has(.tp-collection) details.thought-overflow.tp-overflow > summary::-webkit-details-marker {
  display: none;
}

#detailModal:has(.tp-collection) .thought-overflow-menu {
  position: absolute;
  top: 40px;
  right: 0;
  display: flex;
  width: max-content;
  min-width: 184px;
  max-width: min(260px, calc(100vw - 40px));
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgb(42 39 33 / 13%);
}

#detailModal:has(.tp-collection) .thought-overflow-menu button.thought-action {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: 400 13px/1.35 var(--sans, Inter, sans-serif);
  text-align: left;
  cursor: pointer;
}

#detailModal:has(.tp-collection) .thought-overflow-menu button.thought-action:hover {
  background: #e8eee5;
}

#detailModal:has(.tp-collection) .tp-entry.tp-archived,
#detailModal:has(.tp-collection) .tp-entry.tp-archived .tp-body {
  color: var(--muted);
}

#detailModal:has(.tp-collection) .tp-collection-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

#detailModal:has(.tp-collection) .tp-collection-footer button.thought-action {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1.2 var(--sans, Inter, sans-serif);
  cursor: pointer;
}

#detailModal:has(.tp-collection) .tp-collection-footer button.thought-action:hover {
  border-color: var(--moss-dark);
  color: var(--moss-dark);
}

@media (max-width: 767px) {
  #homeGroup.active-page #homeThoughts.active-page .tp-library {
    padding-bottom: 32px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-section {
    margin-top: 31px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-heading h2 {
    font-size: 22px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-shelf-card,
  #homeGroup.active-page #homeThoughts.active-page .tp-new-collection {
    flex-basis: 190px;
    min-height: 132px;
    padding: 15px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-entry {
    gap: 6px;
    padding: 19px 0;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-body,
  #detailModal:has(.tp-collection) .tp-body {
    font-size: 23px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-entry-actions,
  #detailModal:has(.tp-collection) .tp-entry-actions {
    gap: 0;
  }

  #homeGroup.active-page #homeThoughts.active-page button.tp-bookmark,
  #homeGroup.active-page #homeThoughts.active-page details.thought-overflow.tp-overflow > summary,
  #detailModal:has(.tp-collection) button.tp-bookmark,
  #detailModal:has(.tp-collection) details.thought-overflow.tp-overflow > summary {
    width: 32px;
    height: 34px;
  }

  #homeGroup.active-page #homeThoughts.active-page .tp-duplicate {
    align-items: flex-start;
    flex-direction: column;
  }

  #detailModal:has(.tp-collection) .modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 20px;
    overflow: auto;
  }

  #detailModal:has(.tp-collection) h2#detailTitle {
    font-size: 30px;
  }

  #detailModal:has(.tp-collection) .tp-collection-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeGroup.active-page #homeThoughts.active-page .tp-shelf-card,
  #homeGroup.active-page #homeThoughts.active-page .tp-new-collection,
  #homeGroup.active-page #homeThoughts.active-page button.tp-bookmark,
  #homeGroup.active-page #homeThoughts.active-page .tp-search button {
    transition: none;
  }
}
