/* Couples Bucket List Builder */
.tool .bl-view { display: flex; flex-direction: column; gap: 12px; }
.tool .bl-banner { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }

/* Category chips: wrap with no clipping. On phones the first five show, More opens the rest. */
.tool .bl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tool .bl-cats button {
  min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 750; white-space: nowrap;
  background: var(--surface); color: rgb(var(--ink) / .72); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out);
}
.tool .bl-cats button[aria-pressed="true"] { background: rgb(var(--ink)); color: var(--surface); box-shadow: none; }
.tool .bl-cats button:active { transform: scale(.96); }
.tool .bl-more-chip { background: transparent !important; color: var(--link) !important; }
@media (max-width: 599px) { .tool .bl-cats:not(.is-open) .bl-extra { display: none; } }
@media (min-width: 600px) { .tool .bl-more-chip { display: none; } }

/* Search or add */
.tool .bl-search { position: relative; display: flex; gap: 8px; }
.tool .bl-search input { flex: 1; }
.tool .bl-add {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 16px;
  background: rgb(var(--accent)); color: #fff; font-size: 15px; font-weight: 850; transition: transform .16s var(--ease-out);
}
.tool .bl-add .tool-icon { width: 18px; height: 18px; }
.tool .bl-add:active { transform: scale(.96); }
.tool .bl-picks { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 26px; background: rgb(var(--ink)); color: var(--surface); font-size: 14px; line-height: 20px; font-weight: 800; box-shadow: 0 8px 24px rgb(0 0 0 / .22); font-variant-numeric: tabular-nums; }
.tool .bl-picks span { flex: 1; color: inherit; }
.tool .bl-link-ink { align-self: flex-start; min-height: 36px; font-size: 14px; font-weight: 850; color: var(--link); text-decoration: underline; text-underline-offset: 3px; background: none; }
.tool .bl-opt { display: flex; align-items: center; gap: 10px; }
.tool .bl-opt > span { flex: none; width: 34px; font-size: 13px; font-weight: 850; color: rgb(var(--ink) / .62); }
.tool .bl-opt .tool-chips button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.tool .bl-pick-go { min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 850; color: inherit; background: rgb(255 255 255 / .14); white-space: nowrap; transition: transform .16s var(--ease-out); }
.tool .bl-pick-go:active { transform: scale(.96); }
.tool .bl-pick-go.is-main { background: rgb(var(--accent)); color: #fff; padding: 0 18px; }
.tool .bl-hint { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .55); margin: 0; }

/* Idea rows */
.tool .bl-rows, .tool .bl-list { display: flex; flex-direction: column; gap: 6px; }
.tool .bl-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; text-align: left;
  background: var(--surface); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .05);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: box-shadow .2s ease, transform .16s var(--ease-out);
}
.tool .bl-row:active { transform: scale(.985); }
.tool .bl-row[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .55); }
.tool .bl-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool .bl-t { font-size: 16px; line-height: 22px; font-weight: 750; overflow-wrap: anywhere; }
.tool .bl-meta { font-size: 13px; line-height: 18px; font-weight: 650; color: rgb(var(--ink) / .64); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tool .bl-them, .tool .bl-done-tag { font-weight: 800; color: var(--link); }
.tool .bl-done-tag { color: rgb(var(--ink) / .6); }
.tool .bl-heart {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--ink) / .55); box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / .22);
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tool .bl-heart .tool-icon { width: 20px; height: 20px; }
.tool .bl-row[aria-pressed="true"] .bl-heart { color: #fff; background: #E0338A; box-shadow: none; }
.tool .bl-row[aria-pressed="true"] .bl-heart path { fill: currentColor; }
.tool .bl-sub { font-size: 13px; line-height: 18px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--ink) / .5); padding: 8px 4px 2px; }
.tool .bl-empty { padding: 16px; text-align: center; color: rgb(var(--ink) / .55); }
.tool .bl-more { align-self: center; }
.tool .bl-idea-bar { gap: 6px; }
.tool .bl-idea-bar .u24-ib { min-height: 40px; padding: 0 12px; font-size: 13px; }
.tool .bl-view > .bl-more { margin-bottom: 4px; }
.tool .bl-rows { scroll-margin-bottom: 72px; }
.tool .bl-picks + * { margin-bottom: 0; }

/* Swipe card */
.tool .bl-swipe-head { font-size: 14px; line-height: 20px; font-weight: 800; color: rgb(var(--ink) / .55); margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
.tool .bl-card {
  position: relative; min-height: 240px; padding: 28px 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.tool .bl-stack { position: relative; padding-bottom: 12px; }
.tool .bl-peek[hidden] { display: none; }
/* The next idea peeks out under the card, so the deck reads as a deck. */
.tool .bl-peek {
  position: absolute; inset: 14px 14px 0; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); opacity: .7;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 22px 2px; overflow: hidden; transform: scale(.96); transform-origin: 50% 100%;
}
.tool .bl-peek .bl-card-t { font-size: 13px; line-height: 12px; height: 12px; overflow: hidden; color: rgb(var(--ink) / .5); white-space: nowrap; text-overflow: ellipsis; max-width: 100%; letter-spacing: 0; font-weight: 800; }
.tool .bl-stack .bl-card { z-index: 1; }
.tool .bl-visit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; padding: 8px 12px; border-radius: 14px; background: rgb(var(--accent) / .08); font-size: 14px; line-height: 20px; font-weight: 850; color: rgb(var(--ink)); }
.tool .bl-plan-d b { display: block; color: var(--link); font-weight: 900; }
.tool .bl-card.is-new { animation: card-in .4s var(--ease-out) both; }
.tool .bl-card:focus-visible { outline: 3px solid rgb(var(--accent) / .55); outline-offset: 4px; }
.tool .bl-card-t { font-size: 26px; line-height: 33px; font-weight: 900; letter-spacing: -.015em; color: rgb(var(--ink)); text-wrap: balance; margin: 0; }
.tool .bl-card-m { font-size: 14px; line-height: 20px; font-weight: 750; color: rgb(var(--ink) / .64); margin: 0; }
.tool .bl-card-them { font-size: 14px; line-height: 20px; font-weight: 850; color: var(--link); margin: 0; min-height: 20px; }
.tool .bl-stamp {
  position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 12px; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; opacity: 0;
}
.tool .bl-stamp.is-yes { left: auto; right: 16px; color: #fff; background: #E0338A; }
.tool .bl-stamp.is-no { color: rgb(var(--ink) / .7); background: rgb(var(--ink) / .08); }
.tool .bl-acts { display: grid; grid-template-columns: .9fr 1.2fr 1.2fr; gap: 8px; }
.tool .bl-act {
  min-height: 56px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 850; background: var(--surface); color: rgb(var(--ink) / .75); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .16s var(--ease-out);
}
.tool .bl-act .tool-icon { width: 20px; height: 20px; flex: none; }
.tool .bl-act:active { transform: scale(.96); }
.tool .bl-yes { background: #E0338A; color: #fff; box-shadow: none; }
.tool .bl-yes path { fill: currentColor; }
.tool .bl-end { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 24px; background: var(--surface); text-align: center; }
.tool .bl-end .tool-actions { justify-content: center; }

/* Our list */
.tool .bl-poster { padding: 20px; border-radius: 24px; background: linear-gradient(160deg, #2E0B4F, #4A1580); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.tool .bl-eyebrow { font-size: 12px; line-height: 16px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #E3C2FF; margin: 0; }
.tool .bl-poster-t { font-size: 28px; line-height: 34px; font-weight: 950; letter-spacing: -.02em; color: #fff; margin: 0; overflow-wrap: anywhere; }
.tool .bl-link { align-self: flex-start; min-height: 32px; padding: 0; font-size: 14px; font-weight: 800; color: #E3C2FF; text-decoration: underline; text-underline-offset: 3px; background: none; }
.tool .bl-progress { display: flex; justify-content: space-between; margin-top: 8px; font-size: 15px; font-weight: 800; color: rgb(255 255 255 / .85); font-variant-numeric: tabular-nums; }
.tool .bl-poster .tool-meter { background: rgb(255 255 255 / .16); }
.tool .bl-names { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); }
.tool .bl-names .tool-row { grid-template-columns: 1fr 1fr; }
.tool .bl-names .btn { align-self: flex-start; }
.tool .bl-month { min-height: 0; gap: 10px; text-align: left; place-items: start; display: flex; flex-direction: column; font-size: 22px; line-height: 28px; }
.tool .bl-month small { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--link); font-weight: 900; }
.tool .bl-month-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tool .bl-month-btn {
  min-height: 56px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 850;
  background: var(--surface); color: var(--link); box-shadow: inset 0 0 0 2px rgb(var(--accent) / .35); transition: transform .16s var(--ease-out);
}
.tool .bl-month-btn:active { transform: scale(.97); }
.tool .bl-group { font-size: 13px; line-height: 18px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--ink) / .55); margin: 8px 4px -4px; }
.tool .bl-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 18px; background: var(--surface); }
.tool .bl-check {
  flex: none; width: 36px; height: 36px; margin: 4px; border-radius: 50%; display: grid; place-items: center; color: transparent;
  box-shadow: inset 0 0 0 2px rgb(var(--ink) / .3); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out);
}
.tool .bl-check .tool-icon { width: 20px; height: 20px; }
.tool .bl-check:active { transform: scale(.9); }
@media (hover: hover) { .tool .bl-check:hover { color: rgb(var(--ink) / .3); } }
.tool .bl-check[aria-pressed="true"] { background: rgb(var(--accent)); color: #fff; box-shadow: none; }
.tool .bl-item.is-done .bl-t { color: rgb(var(--ink) / .55); }
.tool .bl-x { flex: none; width: 36px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--ink) / .58); }
.tool .bl-x .tool-icon { width: 18px; height: 18px; }
@media (hover: hover) { .tool .bl-x:hover { color: rgb(var(--ink) / .7); background: rgb(var(--ink) / .06); } }
.tool .bl-date-wrap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgb(var(--ink) / .55); }
.tool .bl-date-wrap input.bl-date { min-height: 32px; width: auto; padding: 2px 8px; border-radius: 10px; font-size: 14px; }
.tool .bl-empty-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 24px; background: var(--surface); }
.tool .bl-share { margin-top: 8px; }

/* Swipe card band, by category */
.tool .bl-card { overflow: hidden; }
.tool .bl-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 10px; background: rgb(var(--accent)); opacity: .8; }
.tool .bl-card[data-c="home"]::before, .tool .bl-card[data-c="kidfree"]::before { background: #F2A541; }
.tool .bl-card[data-c="food"]::before { background: #E8603C; }
.tool .bl-card[data-c="out"]::before, .tool .bl-card[data-c="give"]::before { background: #3FA66B; }
.tool .bl-card[data-c="travel"]::before, .tool .bl-card[data-c="ldr"]::before { background: #3C8DE8; }
.tool .bl-card[data-c="romance"]::before { background: #E0338A; }

/* Plan and list columns */
.tool .bl-cols, .tool .bl-col-l, .tool .bl-col-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tool .bl-plan { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; padding: 18px; font-size: 16px; line-height: 22px; }
.tool .bl-plan small { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--link); font-weight: 900; }
.tool .bl-plan-rows li { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 6px; padding: 6px 0; font-size: 15px; line-height: 20px; }
.tool .bl-plan-rows li + li { border-top: 1px solid rgb(var(--ink) / .08); }
.tool .bl-plan-d { font-size: 12px; line-height: 16px; font-weight: 850; color: rgb(var(--ink) / .62); }
.tool .bl-plan-t { font-weight: 750; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.tool .bl-plan .is-done .bl-plan-t { text-decoration: line-through; color: rgb(var(--ink) / .55); }
.tool .bl-export { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool .bl-export .u24-ib { justify-content: center; padding: 8px 6px; flex-direction: column; gap: 2px; font-size: 13px; line-height: 16px; min-height: 60px; text-align: center; border-radius: 18px; }

/* Poster */
.tool .bl-poster-box { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tool .bl-poster-row { display: flex; flex-direction: column; gap: 12px; }
.tool .bl-poster-frame { display: flex; justify-content: center; max-height: 460px; }
.tool .bl-poster-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; border-radius: 8px; box-shadow: var(--shadow), 0 0 0 1px rgb(var(--ink) / .08); }
.tool .bl-poster-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool .bl-poster-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool .bl-poster-go .u24-ib { justify-content: center; }
.tool .bl-want { color: #E0338A; }
.tool .bl-both { padding: 0 10px; border-radius: 12px; background: #FFC94D; color: #260840; font-size: 13px; line-height: 22px; font-weight: 900; }

/* Print sheets */
.u24-sheet .bl-print { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24pt; }
.u24-sheet .bl-print li { break-inside: avoid; display: grid; grid-template-columns: 14pt 1fr; gap: 2pt 8pt; padding: 6pt 0; border-bottom: .5pt solid #ccc; font-size: 11pt; line-height: 1.3; font-weight: 650; }
.u24-sheet .bl-print li.head { display: block; border: 0; padding: 8pt 0 2pt; font-size: 10pt; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; break-after: avoid; }
.u24-sheet .bl-print-poster { display: block; width: 100%; max-height: 96vh; object-fit: contain; }
.u24-sheet .bl-print i { width: 12pt; height: 12pt; border: 1.2pt solid #333; border-radius: 3pt; margin-top: 1pt; }
.u24-sheet .bl-print i.on { background: #333; }
.u24-sheet .bl-print em { grid-column: 2; font-style: normal; font-size: 8.5pt; color: #777; }
.u24-sheet .bl-print-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.u24-sheet .bl-print-cards div { break-inside: avoid; height: 58mm; padding: 8mm; border: .6pt dashed #999; display: flex; flex-direction: column; justify-content: center; gap: 6pt; text-align: center; }
.u24-sheet .bl-print-cards small { font-size: 8pt; text-transform: uppercase; letter-spacing: .08em; color: #777; font-weight: 800; }
.u24-sheet .bl-print-cards b { font-size: 13pt; line-height: 1.25; font-weight: 850; }

@media (prefers-reduced-motion: reduce) { .tool .bl-card, .tool .bl-card.is-new { transition: none; animation: none; } }
/* Laptop: wider tool, ideas in two columns, so scanning takes no scrolling. */
@media (min-width: 1100px) { .tool .bl-rows { grid-template-columns: 1fr 1fr 1fr !important; } }
@media (min-width: 900px) {
  .tool .bl-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
  .tool .bl-col-l { position: sticky; top: 92px; }
  .tool .bl-poster-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .tool .bl-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .tool .bl-sub, .tool .bl-empty { grid-column: 1 / -1; }
  .tool .bl-row { height: 100%; }
}
@media (min-width: 1100px) { .tool[data-tool="couples-bucket-list"] { margin-inline: -120px; } }
@media (prefers-color-scheme: dark) {
  .tool .bl-poster { background: linear-gradient(160deg, #3A1266, #5A1C99); }
  .tool .bl-row, .tool .bl-item, .tool .bl-card, .tool .bl-plan, .tool .bl-cats button:not([aria-pressed="true"]), .tool .bl-act:not(.bl-yes) { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .14); }
  .tool .bl-heart { color: rgb(var(--ink) / .62); }
  .tool .bl-x { color: rgb(var(--ink) / .6); }
  .tool .bl-meta, .tool .bl-card-m { color: rgb(var(--ink) / .7); }
  .tool .bl-cats button[aria-pressed="true"] { background: #7A2FD0; color: #fff; box-shadow: none; }
}
@media (max-width: 599px) {
  .tool .bl-plan-rows li { grid-template-columns: 1fr 40px; grid-template-areas: "d x" "t x"; row-gap: 2px; }
  .tool .bl-plan-rows .bl-plan-d { grid-area: d; }
  .tool .bl-plan-rows .bl-plan-t { grid-area: t; }
  .tool .bl-plan-rows .bl-x { grid-area: x; }
  .tool .bl-plan-d b { display: inline; }
}
