:root {
  color-scheme: light;
  /* Whose part of a segment it is: the creator's area is teal, the editor's is purple (the accent). */
  --creator: #0e8a8f; --creator-bg: #eef8f8; --creator-line: #c6e4e5;
  --editor: #7563f7; --editor-bg: #f4f2ff; --editor-line: #ddd8fb;
  --bg: #fafbfd; --panel: #ffffff; --text: #2a3040; --muted: #6b7385; --line: #e1e5ed;
  --accent: #7563f7; --accent-text: #fff; --ok: #38a572; --ok-text: #fff; --warn: #b8730a; --danger: #cf4a43;
  --chip: #f1f3f9;
  --shadow-1: 0 1px 2px rgba(30, 40, 70, .05), 0 6px 18px rgba(30, 40, 70, .06);
  --shadow-2: 0 2px 4px rgba(30, 40, 70, .06), 0 12px 28px rgba(30, 40, 70, .10);
  --pad-x: 18px; --pad-y: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Every text field is a clearly bordered box. */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 4.5rem; resize: vertical; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.field { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
label.field > :is(input, select, textarea) { margin-top: .25rem; font-weight: 400; }
.field > .kind-picker { font-weight: 400; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 600; }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: .5rem .9rem;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--danger); }
button.ghost { border-color: transparent; background: transparent; }
button:disabled { opacity: .5; cursor: default; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  padding: .6rem clamp(16px, 3vw, 56px); background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 800; letter-spacing: .04em; }
.topbar nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.topbar nav a { padding: .35rem .65rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.topbar nav a.active { background: var(--chip); }
.topbar select { width: auto; }
.badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 99px; background: var(--danger); color: #fff; font-size: .75rem; text-align: center; }

main { max-width: 1680px; margin: 0 auto; padding: 20px clamp(16px, 3vw, 56px); }
.card { background: var(--panel); border: 1px solid #e8ebf2; border-radius: 14px; padding: var(--pad-y) var(--pad-x);
  margin-bottom: 14px; box-shadow: var(--shadow-1); }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.row > .grow { flex: 1 1 220px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }

.chip { display: inline-block; padding: .1rem .55rem; border-radius: 99px; background: var(--chip); font-size: .78rem; font-weight: 600; }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); }
.weekbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.weekbar h1 { margin: 0 .5rem; }

.item { display: block; text-decoration: none; color: inherit; }
.item:hover { border-color: #c9c3fa; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.progress { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; margin-top: .6rem; }
.progress > span { display: block; height: 100%; background: var(--ok); }

.seg-head { display: grid; grid-template-columns: 1fr 180px auto; gap: .5rem; align-items: center; }
@media (max-width: 640px) { .seg-head { grid-template-columns: 1fr; } .seg-folded { grid-column: auto; } }
.seg-body { margin-top: .75rem; }
.seg-folded { display: flex; align-items: center; gap: .6rem; min-width: 0; grid-column: 1 / 3; }
.seg-folded[hidden], .seg-head input[hidden], .seg-head select[hidden] { display: none; }
.seg-folded .seg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.seg-folded .chip { flex: none; }
.seg-folded .seg-name { flex: 0 1 auto; }
.seg-folded .chip.status { margin-left: auto; }
.yt { border: 1px solid var(--accent); border-radius: 10px; padding: 12px; margin-top: .5rem; }
/* Each segment is split into a creator area (teal) and an editor area (purple). */
.zones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1250px) { .zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
/* Right column: the creator's Notes take the space above, the editor zone sits flush with the bottom edge. */
.zones-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.zones-right > .zone.editor { margin-top: auto; }
.zone.notes { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 180px; }
.zone.notes .field { display: flex; flex-direction: column; flex: 1 1 auto; }
.zone.notes .field textarea { flex: 1 1 auto; min-height: 140px; resize: vertical; }
.zone { --c: var(--creator); --c-bg: var(--creator-bg); --c-line: var(--creator-line);
  padding: 12px 14px 14px; background: var(--c-bg); border: 1px solid var(--c-line); border-top: 4px solid var(--c); border-radius: 10px; }
.zone.editor { --c: var(--editor); --c-bg: var(--editor-bg); --c-line: var(--editor-line); }
.zone-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .6rem; }
.zone-head h3 { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c); }
.zone-head .small { color: var(--muted); }
.zone :is(input[type=text], input[type=url], input[type=date], select, textarea) { background: #fff; }
.zone :is(input[type=checkbox]) { accent-color: var(--c); }
.zone .yt { border: 0; padding: 0; margin: 0; }
.zone .thumb { background: #fff; }
.zone .drop { background: rgba(255, 255, 255, .6); border-color: var(--c-line); }
.zone .drop:hover, .zone .drop.over { border-color: var(--c); }
.zone .credit { background: #fff; }
.zone .tweet-embed { background: #fff; }
.zone.creator button.sort { border-color: var(--c-line); }
.editor-switch { margin-bottom: .6rem; }
.who { display: inline-block; padding: .05rem .5rem; margin-left: .25rem; border-radius: 99px; background: var(--creator-bg); border: 1px solid var(--creator-line);
  color: var(--creator); font-weight: 700; }
/* The approval ticks are the creator's job inside the editor's area, so they carry the creator's colour. */
.zone.editor :is(.titles, .thumb) input[type=checkbox] { accent-color: var(--creator); }
.editor-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--editor-line); }
.editor-row { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; }
.editor-row > .check { padding-bottom: .55rem; }
.editor-row > label.field { flex: 1 1 280px; margin-bottom: 0; }
.editor-row > button { margin-bottom: .1rem; }
.shared { margin-top: 14px; display: grid; gap: 12px; }
.shared:empty { display: none; }
.shared > .stats { margin-top: 0; }
.card.zone .shared { margin-top: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: .5rem 0; }
@media (max-width: 480px) { .thumbs { grid-template-columns: minmax(0, 1fr); } }
.thumb { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); }
.thumb img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; border-radius: 6px; display: block; }
.thumb a { display: block; cursor: zoom-in; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--text); }
.titles li { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; }
.titles { list-style: none; padding: 0; margin: .25rem 0; }
.note { padding: .4rem .6rem; background: var(--bg); border-radius: 8px; margin: .3rem 0; white-space: pre-wrap; }
.note b { font-size: .8rem; }
.login { max-width: 360px; margin: 12vh auto; padding: 0 16px; }
.err { color: var(--danger); min-height: 1.2rem; }
.toast { position: fixed; bottom: 14px; right: 14px; background: var(--text); color: var(--bg); padding: .45rem .8rem; border-radius: 8px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

.seg-top { display: flex; gap: .4rem; align-items: flex-start; }
.seg-top .grow { flex: 1; min-width: 0; }
button.fold { font-size: 1.1rem; padding: .35rem .5rem; line-height: 1; }
.summary { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.summary .clip { flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[hidden] { display: none !important; }
.row > .grow.wide { flex: 2 1 280px; }
.credit { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: .6rem; margin-top: .25rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.credit-thumb { flex: none; line-height: 0; }
.credit-thumb img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--chip); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); }
.avatar.empty { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.btn { text-decoration: none; display: inline-block; }

.tweet { margin: .25rem 0 .75rem; }
.tweet-embed { width: 100%; max-width: 550px; height: 320px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: block; }

/* Stream sorted: a quiet pill under the Segments heading, not a banner. */
.sortrow { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 .9rem; }
button.sort { padding: .35rem .9rem; font-size: .9rem; font-weight: 600; border-radius: 999px;
  border: 1px solid #cdc7fb; background: #f4f2ff; color: var(--accent); }
button.sort:hover:not(:disabled) { background: #ebe7ff; }
button.sort.on { background: #eaf6ef; border-color: #b7e0c8; color: #2a7d56; }
.lib-row { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: .6rem 0; border-top: 1px solid var(--line); }
.lib-row:first-child { border-top: 0; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.stats { margin-top: .75rem; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: .5rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tile-n { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
button.small { padding: .2rem .55rem; font-size: .85rem; }

/* A quiet toggle for approving a segment, deliberately smaller than the stream-level button. */
.makebtn { margin-top: .6rem; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); }
.makebtn:hover { border-color: #9bd3b6; color: #2a7d56; }
.makebtn.on { background: #eaf6ef; border-color: #b7e0c8; color: #2a7d56; }
.card.makes { border-left: 3px solid #b7e0c8; }

/* ---- wide layouts -------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; align-items: start; }
.item-grid > .card, .item-grid > p { margin: 0; }
.main-col { min-width: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) 340px; }
  .split.item-page { grid-template-columns: 360px minmax(0, 1fr); }
  .side { position: sticky; top: 64px; }
}
.notes-box { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 1px 2px rgba(30, 40, 70, .05); }
.notes-box > summary { display: flex; gap: .5rem; align-items: center; cursor: pointer; list-style: none; }
.notes-box > summary::-webkit-details-marker { display: none; }
.notes-box > summary::before { content: '▸'; color: var(--muted); }
.notes-box[open] > summary::before { content: '▾'; }
.notes-box h3 { margin: 0; }
.notes-box[open] > summary { margin-bottom: .35rem; }
.notes-scroll { max-height: 40vh; overflow-y: auto; }
.notes-box .note { background: var(--panel); }

/* ---- logos ----------------------------------------------------------------------------- */
.brand-tile { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.item-title { display: flex; gap: .65rem; align-items: center; min-width: 0; }
.item-title.top { align-items: flex-end; }
.item-title.top .brand-tile { margin-bottom: .75rem; }
.item-title > .grow { flex: 1; min-width: 0; }
.kind-picker { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }
.kind-opt { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text); }
.kind-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-opt span { display: inline-flex; gap: .4rem; align-items: center; padding: .4rem .75rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); }
.kind-opt input:checked + span { border-color: var(--accent); background: #f4f2ff; }
.kind-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip svg, .check svg { vertical-align: -2px; }
.lib-row > .brand-tile { margin-right: .1rem; }
td .item-title { font-weight: 600; }

/* ---- channel logos --------------------------------------------------------------------- */
.chan-logo { border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); }
.chan-logo.empty { display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); }
.chan-pick { display: inline-flex; gap: .5rem; align-items: center; }
.chan-line { display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.chan-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
.chan-row:first-of-type { border-top: 0; }
.chan-row > .grow { flex: 1 1 160px; }
.chan-link { flex: 2 1 260px; }

/* ---- soft and tactile: depth on controls, calmer surfaces --------------------------------- */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], select, textarea {
  box-shadow: inset 0 1px 2px rgba(30, 40, 70, .06);
}
button, .btn { box-shadow: 0 1px 2px rgba(30, 40, 70, .08); }
button.ghost, button.fold { box-shadow: none; }
button.primary { box-shadow: 0 1px 2px rgba(117, 99, 247, .35), 0 4px 10px rgba(117, 99, 247, .18); }
button:hover:not(:disabled):not(.ghost) { box-shadow: 0 2px 6px rgba(30, 40, 70, .14); }
.topbar { box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(30, 40, 70, .04); }
.thumb, .stats, .tile, .credit { box-shadow: 0 1px 2px rgba(30, 40, 70, .05); }

/* ---- small motion: transitions only, nothing that runs on its own ---------------------------- */
button, .btn, .card, input, select, textarea, .makebtn, .kind-opt span, .toast {
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease, opacity .2s ease;
}
button:active:not(:disabled), .btn:active { transform: scale(.97); }
.toast { transform: translateY(8px); }
.toast.show { transform: none; }
.progress > span { transition: width .4s ease; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.seg-body.unfold { animation: unfold .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- compact list view ------------------------------------------------------------------ */
.seg-tools { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: .5rem; background: var(--panel); }
.view-toggle button { border: 0; border-radius: 0; box-shadow: none; padding: .3rem .8rem; font-size: .85rem; background: transparent; color: var(--muted); }
.view-toggle button.on { background: #f4f2ff; color: var(--accent); }
.card.compact { padding: 10px var(--pad-x); margin-bottom: 8px; box-shadow: none; }
.card.compact:hover { box-shadow: var(--shadow-1); }
.card.compact .seg-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .35rem; }
.card.compact .makebtn { margin-top: 0; }
.card.compact .summary { margin-top: 0; flex: 1 1 auto; }
.card.compact .summary .clip { display: none; }
.card.compact .editor-box { margin-top: 14px; }
.view-toggle button:hover:not(:disabled) { box-shadow: none; }
/* Thumbnail footer: Approved and Remove share one line under the picture. */
.thumb { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; }
.thumb > a { grid-column: 1 / -1; }
.thumb > label { margin-top: .4rem; }
.thumb > button { margin-top: .4rem; }

.stats-title { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.stats-title h3 { margin: 0; }

/* ---- inspiration pool -------------------------------------------------------------------- */
.pool { margin-top: 28px; padding: 18px; border-radius: 18px; border: 2px dashed #cfc8fb;
  background-color: #f6f4ff;
  background-image: radial-gradient(#d9d3fb 1.2px, transparent 1.3px); background-size: 18px 18px; }
.pool-head { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .5rem; }
.pool-head h2 { margin: 0; }
.pool-add { display: flex; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.pool-add .field { margin-bottom: 0; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 26px 20px;
  align-items: start; padding: 10px 6px 0; }
.pool-empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.pool-card { position: relative; background: var(--panel); border-radius: 12px; padding: 10px 8px 6px; cursor: grab;
  box-shadow: var(--shadow-1); transform: translateX(var(--nudge, 0)) rotate(var(--tilt, 0deg));
  box-sizing: border-box; min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.pool-card:hover { transform: translateX(var(--nudge, 0)) rotate(0deg) translateY(-3px) scale(1.015); box-shadow: var(--shadow-2); }
.pool-card:active { cursor: grabbing; }
.pool-card.lifted { opacity: .5; transform: rotate(0deg) scale(.97); }
.pool-card.paper-0 { background: #ffffff; }
.pool-card.paper-1 { background: #fff8d6; }
.pool-card.paper-2 { background: #ffe9ef; }
.pool-card.paper-3 { background: #e6f6ee; }
.pool-card .tape { position: absolute; top: -9px; left: 50%; width: 66px; height: 17px; margin-left: -33px;
  transform: rotate(-4deg); border-radius: 3px; opacity: .88; }
.pool-card .tape.fix-0 { background: repeating-linear-gradient(45deg, #ffc9c6 0 8px, #ffe3e1 8px 16px); }
.pool-card .tape.fix-1 { background: repeating-linear-gradient(45deg, #c9d3ff 0 8px, #e4e9ff 8px 16px); transform: rotate(5deg); }
.pool-card .tape.fix-2 { background: repeating-linear-gradient(45deg, #bfe8d2 0 8px, #dff4e8 8px 16px); transform: rotate(-9deg); }
.pool-card .tape.fix-3 { background: repeating-linear-gradient(45deg, #ffe08a 0 8px, #fff0c0 8px 16px); transform: rotate(2deg); }
.pool-card .pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .15), 0 3px 5px rgba(30, 40, 70, .3); }
.pool-card .pin.fix-0 { background: #ef5350; }
.pool-card .pin.fix-1 { background: #5c6bf0; }
.pool-card .pin.fix-2 { background: #2fb37a; }
.pool-card .pin.fix-3 { background: #f2a516; }
.pool-media { position: relative; border-radius: 8px; overflow: hidden; background: var(--chip); }
.pool-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pool-media .tweet-embed { position: absolute; top: 0; left: 0; width: 300px; height: 300px; border: 0;
  transform-origin: 0 0; background: #fff; }
.pool-card.is-x .pool-media { height: 240px; }
.pool-shield { position: absolute; inset: 0; }
.pool-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.pool-play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(30, 40, 70, .25); cursor: pointer; transition: transform .15s ease; }
.pool-play:hover { transform: scale(1.1); }
.pool-title { font-weight: 600; font-size: .92rem; margin: .5rem 2px 0; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pool-foot { display: flex; gap: .4rem; align-items: center; margin-top: .45rem; min-width: 0; }
.pool-foot .grow { flex: 1; }
.pool-who { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pool-foot button.small { padding: .15rem .5rem; font-size: .8rem; }
.week-drop { position: relative; min-height: 120px; border-radius: 16px; border: 2px dashed transparent;
  transition: background-color .15s ease, border-color .15s ease; }
.drop-hint { display: none; grid-column: 1 / -1; place-items: center; min-height: 90px; font-weight: 700; color: var(--accent); }
.pool-dragging .week-drop { border-color: #cfc8fb; background: #f6f4ff; }
.pool-dragging .drop-hint { display: grid; }
.week-drop.pool-over { border-color: var(--accent); background: #ece8ff; }
.card.item.pool-over { outline: 3px solid var(--accent); outline-offset: 2px; transform: scale(1.02); }
@media (max-width: 700px) { .pool-add { flex-direction: column; align-items: stretch; } }

/* ---- where should a pool card go ---------------------------------------------------------- */
.ask-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(30, 40, 70, .35); }
.ask { width: min(100%, 420px); max-height: 80vh; overflow: auto; }
.ask-list { display: grid; gap: .4rem; margin: .75rem 0 1rem; }
.ask-opt { display: flex; gap: .4rem; align-items: center; text-align: left; padding: .55rem .75rem; font-weight: 600; }
.ask-opt.new { justify-content: center; border-color: var(--accent); color: var(--accent); }

/* In-page confirmation (replaces the browser's confirm box) */
.veil { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.ask { background: var(--panel); color: var(--text); border-radius: 12px; padding: 1.1rem 1.25rem; max-width: 440px; width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.ask p { margin: 0 0 1rem; white-space: pre-line; }
.ask .row { justify-content: flex-end; gap: .5rem; }

/* Reddit posts in the inspiration pool: what we read from the post, since it can't be framed */
.pool-media.reddit-body { padding: 0; max-height: 240px; display: flex; flex-direction: column; }
.pool-media.reddit-body img { aspect-ratio: auto; max-height: 150px; }
.reddit-text { margin: 0; padding: .55rem .65rem; font-size: .85rem; white-space: pre-line; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; }
.reddit-empty { display: grid; place-items: center; height: 90px; }
