#detailModal:has(.uv-detail) :is([data-useful-fill-details], .uv-product-fill) {
  border:0; background:transparent; padding:0; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px;
}
#detailModal:has(.uv-detail) .uv-product-source { color:inherit; text-underline-offset:3px; }
#homeGroup.active-page #homeUseful.active-page .uv-row{grid-template-columns:minmax(0,1fr)}
#homeGroup.active-page #homeUseful.active-page .uv-row:has(.uv-select){grid-template-columns:32px minmax(0,1fr)}
#homeUseful .uv-open{width:100%;text-align:left}
#homeUseful .uv-row{cursor:pointer}
.uv-more summary{cursor:pointer;font:400 13px Inter,sans-serif;color:var(--muted,#5f625e)}
.uv-photo{padding:0!important;border:0!important;background:none!important;display:block}
.uv-photo img{width:88px;height:88px;object-fit:cover;border:1px solid var(--line,#cdc9bf)}
#detailModal:has(.uv-detail) .uv-extra .uv-photo img{width:88px;height:88px;max-height:88px;object-fit:cover}
.uv-detail .useful-detail-steps{list-style:decimal;padding-left:24px}
.uv-detail .useful-detail-step{position:relative;padding:16px 30px 16px 0}
.uv-detail .useful-detail-step p{font:400 14px/1.5 Inter,sans-serif;color:var(--muted,#5f625e)}
.uv-step-menu{position:absolute;right:0;top:12px}
.uv-step-menu[open]{position:relative}
.uv-step-menu summary{cursor:pointer;list-style:none}
.uv-detail .uv-footer [data-action="useful-use"]{border:0;background:none;font:400 13px Inter,sans-serif}
#detailModal:has(.uv-detail) .uv-footer button:is([data-action="useful-use"],[data-action="useful-edit"]){border:0;border-radius:0;background:transparent;box-shadow:none;padding:8px;color:var(--muted,#5f625e);font:400 13px Inter,sans-serif}
#detailModal:has(.uv-detail) .useful-detail-steps{list-style:none;counter-reset:useful-step;padding-left:0}
#detailModal:has(.uv-detail) .useful-detail-step{counter-increment:useful-step;padding-left:26px}
#detailModal:has(.uv-detail) .useful-detail-step::before{content:counter(useful-step) ".";position:absolute;left:0;top:16px;font:400 14px Inter,sans-serif}
#detailModal:has(.uv-detail) .useful-detail-step .uv-photo{float:left;margin:0 12px 8px 0}
#detailModal:has(.uv-detail) .useful-detail-step::after{content:"";display:block;clear:both}
#detailModal:has(.uv-detail) .useful-detail-step:last-child{border-bottom:0}
/* Useful & Shareable — quiet editorial index, scoped to its destination only. */

#homeGroup.active-page #homeUseful.active-page .uv-library {
  min-width: 0;
  padding: 0 0 36px;
  color: var(--ink);
  font-family: var(--sans);
}

#homeGroup.active-page #homeUseful.active-page .uv-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin: 0 0 27px;
}

#homeGroup.active-page #homeUseful.active-page nav.uv-filters {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#homeGroup.active-page #homeUseful.active-page nav.uv-filters::-webkit-scrollbar {
  display: none;
}

#homeGroup.active-page #homeUseful.active-page button.uv-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1.25 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

#homeGroup.active-page #homeUseful.active-page button.uv-filter:hover {
  border-color: var(--line);
  color: var(--ink);
}

#homeGroup.active-page #homeUseful.active-page button.uv-filter.is-active {
  border-style:solid;
  border-width:0 0 1px;
  border-color: transparent;
  border-bottom-color: var(--moss-dark);
  border-radius:0;
  background: transparent;
  color: var(--moss-dark);
}

#homeGroup.active-page #homeUseful.active-page label.uv-search {
  display: flex;
  flex: 0 1 270px;
  align-items: center;
  min-width: 180px;
  height: 42px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
}

#homeGroup.active-page #homeUseful.active-page label.uv-search:focus-within {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(86, 100, 84, .12);
}

#homeGroup.active-page #homeUseful.active-page .uv-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 14px/1.4 var(--sans);
}

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

#homeGroup.active-page #homeUseful.active-page .uv-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}

#homeGroup.active-page #homeUseful.active-page .uv-heading h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 500 26px/1.08 var(--serif);
  letter-spacing: -.025em;
}

#homeGroup.active-page #homeUseful.active-page .uv-heading h2 > span {
  color: var(--muted);
  font: 400 14px/1.4 var(--sans);
  letter-spacing: 0;
}

#homeGroup.active-page #homeUseful.active-page .uv-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

#homeGroup.active-page #homeUseful.active-page .uv-heading-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.35 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

#homeGroup.active-page #homeUseful.active-page .uv-heading-actions button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#homeGroup.active-page #homeUseful.active-page .uv-list {
  min-width: 0;
  margin: 4px 0 0;
}

#homeGroup.active-page #homeUseful.active-page article.uv-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(63, 77, 61, .15);
}

#homeGroup.active-page #homeUseful.active-page .uv-open {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

#homeGroup.active-page #homeUseful.active-page .uv-open:hover .uv-name {
  color: var(--moss-dark);
}

#homeGroup.active-page #homeUseful.active-page .uv-name {
  max-width: 100%;
  color: var(--ink);
  font: 500 17px/1.3 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #homeUseful.active-page .uv-meta {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font: 400 14px/1.4 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#homeGroup.active-page #homeUseful.active-page .uv-share {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(63, 77, 61, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.25 var(--sans);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

#homeGroup.active-page #homeUseful.active-page .uv-share:hover {
  border-color: var(--moss-dark);
  background: rgba(232, 230, 223, .55);
}

#homeGroup.active-page #homeUseful.active-page .uv-share svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

#homeGroup.active-page #homeUseful.active-page details.uv-menu {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

#homeGroup.active-page #homeUseful.active-page details.uv-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  color: var(--moss-dark);
  font: 500 23px/1 var(--sans);
  list-style: none;
  cursor: pointer;
}

#homeGroup.active-page #homeUseful.active-page details.uv-menu > summary::-webkit-details-marker {
  display: none;
}

#homeGroup.active-page #homeUseful.active-page details.uv-menu > summary:hover,
#homeGroup.active-page #homeUseful.active-page details.uv-menu[open] > summary {
  background: rgba(232, 230, 223, .7);
}

#homeGroup.active-page #homeUseful.active-page .uv-menu-items {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(32, 35, 31, .13);
}

#homeGroup.active-page #homeUseful.active-page .uv-menu-items button {
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 400 14px/1.3 var(--sans);
  cursor: pointer;
}

#homeGroup.active-page #homeUseful.active-page .uv-menu-items button:hover {
  background: rgba(232, 230, 223, .7);
}

#homeGroup.active-page #homeUseful.active-page .uv-menu-items button:is([data-action*="delete"], .uv-delete) {
  color: var(--oxblood);
}

#homeGroup.active-page #homeUseful.active-page .uv-select {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(63, 77, 61, .38);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

#homeGroup.active-page #homeUseful.active-page .uv-select.is-selected,
#homeGroup.active-page #homeUseful.active-page .uv-select[aria-pressed="true"] {
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: var(--paper);
}

#homeGroup.active-page #homeUseful.active-page .uv-select svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#homeGroup.active-page #homeUseful.active-page .uv-sharebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin: 17px 0 0;
  color: var(--muted);
  font: 400 14px/1.4 var(--sans);
}

#homeGroup.active-page #homeUseful.active-page .uv-sharebar button.uv-bulk-share {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid var(--moss-dark);
  border-radius: 999px;
  background: var(--moss-dark);
  color: var(--paper);
  font: 500 14px/1.3 var(--sans);
  cursor: pointer;
}

#homeGroup.active-page #homeUseful.active-page .uv-bulk-share:hover {
  background: var(--ink);
}

#homeGroup.active-page #homeUseful.active-page .uv-empty {
  margin: 15px 0 0;
  padding: 18px 0;
  color: var(--muted);
  font: 400 15px/1.5 var(--sans);
}

#homeGroup.active-page #homeUseful.active-page :focus-visible,
#detailModal:has(.uv-detail) #detailContent :focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(86, 100, 84, .18);
}

/* Detail is shown inside the existing shared modal; only this content opts in. */
#detailModal:has(.uv-detail) .modal-card {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 16px));
  max-width: 640px;
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 55px rgba(32, 35, 31, .15);
}

#detailModal:has(.uv-detail) #detailContent {
  min-width: 0;
  padding-top: 3px;
  color: var(--ink);
  font-family: var(--sans);
}

#detailModal:has(.uv-detail) .modal-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--moss-dark);
}

#detailModal:has(.uv-detail) .modal-close:hover {
  background: rgba(232, 230, 223, .75);
}

#detailModal:has(.uv-detail) .uv-detail {
  min-width: 0;
  color: var(--ink);
  font-family: var(--sans);
}

#detailModal:has(.uv-detail) .uv-kicker {
  display: block;
  margin: 0 48px 8px 0;
  color: var(--muted);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

#detailModal:has(.uv-detail) h2#detailTitle.uv-title {
  max-width: 100%;
  margin: 0 48px 15px 0;
  color: var(--ink);
  font: 500 34px/1.08 var(--serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#detailModal:has(.uv-detail) .uv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  margin: 0 0 20px;
}

#detailModal:has(.uv-detail) .uv-tags > * {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(63, 77, 61, .12);
  border-radius: 999px;
  background: var(--sage);
  color: var(--moss-dark);
  font: 500 12px/1.35 var(--sans);
  overflow-wrap: anywhere;
}

#detailModal:has(.uv-detail) dl.uv-contacts {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
}

#detailModal:has(.uv-detail) .uv-contact {
  display: grid;
  grid-template-columns: minmax(68px, 80px) minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 13px;
  row-gap: 5px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(63, 77, 61, .14);
}

#detailModal:has(.uv-detail) .uv-contact dt {
  margin: 1px 0 0;
  color: var(--muted);
  font: 400 13px/1.45 var(--sans);
}

#detailModal:has(.uv-detail) .uv-contact dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#detailModal:has(.uv-detail) .uv-value {
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#detailModal:has(.uv-detail) .uv-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 0;
  justify-content:flex-end;
  justify-self:end;
  grid-column:3;
  grid-row:1;
}

#detailModal:has(.uv-detail) .uv-contact-actions a,
#detailModal:has(.uv-detail) .uv-contact-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.35 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

#detailModal:has(.uv-detail) .uv-contact-actions a:hover,
#detailModal:has(.uv-detail) .uv-contact-actions button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#detailModal:has(.uv-detail) .uv-notes {
  min-width: 0;
  margin: 23px 0 0;
}

#detailModal:has(.uv-detail) .uv-notes h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 400 22px/1.15 var(--serif);
  letter-spacing: -.015em;
}

#detailModal:has(.uv-detail) .uv-notes > :not(h3) {
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#detailModal:has(.uv-detail) .uv-extra {
  min-width: 0;
  margin-top: 20px;
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  overflow-wrap: anywhere;
}

#detailModal:has(.uv-detail) .uv-extra :is(p, li, dd, figcaption, label, summary) {
  font-family: var(--sans);
  overflow-wrap: anywhere;
}

#detailModal:has(.uv-detail) .uv-extra img {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
}

#detailModal:has(.uv-detail) .uv-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  position:sticky;
  bottom:0;
  z-index:2;
  padding-bottom:8px;
  background:var(--paper);
}

#detailModal:has(.uv-detail) .uv-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid rgba(63, 77, 61, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.3 var(--sans);
  cursor: pointer;
}

#detailModal:has(.uv-detail) .uv-footer button.uv-primary {
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: var(--paper);
}

#detailModal:has(.uv-detail) .uv-footer button:hover {
  border-color: var(--moss-dark);
  background: rgba(232, 230, 223, .65);
}

#detailModal:has(.uv-detail) .uv-footer button.uv-primary:hover {
  background: var(--ink);
}

#detailModal:has(.uv-detail) time.uv-saved {
  margin-left: auto;
  color: var(--muted);
  font: 400 13px/1.4 var(--sans);
}

@media (max-width: 767px) {
  #homeGroup.active-page #homeUseful.active-page .uv-library {
    padding-bottom: 24px;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  #homeGroup.active-page #homeUseful.active-page nav.uv-filters {
    flex: 0 0 auto;
    width: 100%;
    margin-inline: 0;
    padding-bottom: 2px;
  }

  #homeGroup.active-page #homeUseful.active-page label.uv-search {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-heading {
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-heading h2 {
    gap: 7px;
    font-size: 22px;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-heading-actions {
    gap: 11px;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-heading-actions button {
    min-height: 40px;
    font-size: 13px;
  }

  #homeGroup.active-page #homeUseful.active-page article.uv-row {
    gap: 9px;
    min-height: 68px;
    padding: 9px 0;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-share {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 13px;
  }

  #homeGroup.active-page #homeUseful.active-page .uv-sharebar {
    position: sticky;
    z-index: 5;
    bottom: calc(62px + env(safe-area-inset-bottom));
    margin: 15px -12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    box-shadow: 0 8px 22px rgba(32, 35, 31, .09);
  }

  #homeGroup.active-page #homeUseful.active-page .uv-sharebar button.uv-bulk-share {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  #detailModal:has(.uv-detail) .modal-card {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    padding: 22px 20px;
    border-radius: 12px;
  }

  #detailModal:has(.uv-detail) .uv-kicker {
    margin-bottom: 7px;
  }

  #detailModal:has(.uv-detail) h2#detailTitle.uv-title {
    margin-bottom: 13px;
    font-size: 34px;
  }

  #detailModal:has(.uv-detail) .uv-contact {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  #detailModal:has(.uv-detail) .uv-contact-actions {
    gap: 3px 10px;
  }

  #detailModal:has(.uv-detail) .uv-footer {
    align-items: flex-start;
    gap: 8px;
  }

  #detailModal:has(.uv-detail) .uv-footer button {
    min-height: 40px;
  }

  #detailModal:has(.uv-detail) time.uv-saved {
    flex-basis: 100%;
    margin: 3px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeGroup.active-page #homeUseful.active-page :is(.uv-filter, .uv-share, .uv-select) {
    transition: none;
  }
}
