/* "Brief me" swipe deck, Listen buttons, idea notes */
.brief-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: .65em 1.2em; border-radius: 999px; background: rgb(255 255 255 / 16%); color: #fff; font-weight: 700; border: 1px solid rgb(255 255 255 / 30%); }
.brief-cta:hover { background: rgb(255 255 255 / 24%); text-decoration: none; }
.brief-cta b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #fbbf24; color: #1f1300; display: grid; place-items: center; font-size: .8rem; }

.brief { --track: var(--brand); max-width: 620px; margin: 0 auto; }
.brief-stack { position: relative; margin: 10px 0 18px; }
.brief-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgb(16 24 40 / 14%); touch-action: none; user-select: none; transition: transform .22s ease, opacity .22s; animation: slide-in .3s ease-out; cursor: grab; }
.brief-card:active { cursor: grabbing; transition: none; }
.brief-card[data-hint="keep"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 55%, transparent), 0 12px 40px rgb(16 24 40 / 14%); }
.brief-card[data-hint="archive"] { box-shadow: 0 0 0 4px color-mix(in srgb, #ef4444 50%, transparent), 0 12px 40px rgb(16 24 40 / 14%); }
.brief-card[data-hint="idea"] { box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 60%, transparent), 0 12px 40px rgb(16 24 40 / 14%); }
.fly-keep { transform: translateX(120%) rotate(12deg) !important; opacity: 0; }
.fly-archive { transform: translateX(-120%) rotate(-12deg) !important; opacity: 0; }
.fly-idea { transform: translateY(-120%) !important; opacity: 0; }
:dir(rtl) .fly-keep { transform: translateX(-120%) rotate(-12deg) !important; }
:dir(rtl) .fly-archive { transform: translateX(120%) rotate(12deg) !important; }
.brief-img { aspect-ratio: 16 / 8; background: var(--surface-2); overflow: hidden; }
.brief-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.brief-body { padding: 18px 22px 22px; display: grid; gap: 10px; }
.brief-body h2 { margin: 0; font-size: 1.3rem; }
.brief-body .lead { margin: 0; color: var(--text); }
.brief-points { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.brief-idea { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); }
.brief-actions { display: flex; justify-content: center; align-items: center; gap: 18px; }
.round { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; justify-content: center; font-size: 1.5rem; padding: 0; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.round:hover { text-decoration: none; transform: scale(1.06); }
.round.keep { border-color: var(--ok); color: var(--ok); width: 72px; height: 72px; }
.round.archive { border-color: #ef4444; }
.round.idea { border-color: #f59e0b; }
.round.open { width: 48px; height: 48px; font-size: 1.1rem; color: var(--muted); }
.brief-done { max-width: 520px; margin: 40px auto; }

h2 .listen { vertical-align: middle; margin-inline-start: 8px; text-transform: none; letter-spacing: 0; font-size: .75rem; }

.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.idea-foot .seg { margin-top: 0; }
.idea-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; }
.note-form { display: grid; gap: 8px; margin-top: 10px; }

/* one card fits one screen: short image, clamped text, buttons always reachable */
.brief-img { aspect-ratio: auto; height: min(30vh, 240px); }
.brief-body .lead { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.brief-points li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brief-actions { position: sticky; bottom: 14px; padding: 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); width: max-content; margin: 0 auto; }

/* labelled buttons in fixed slots */
.round { flex-direction: column; gap: 0; width: 70px; height: 70px; }
.round span { font-size: 1.35rem; line-height: 1; }
.round small { font-size: .62rem; font-weight: 700; color: var(--muted); margin-top: 3px; }
.round.keep { width: 78px; height: 78px; }
.round.open { width: 56px; height: 56px; }
.round.open small { font-size: .58rem; }
.round:disabled { opacity: .35; }
.brief-body { overflow-wrap: anywhere; }
.morning-loop { display: grid; gap: 10px; margin: 6px auto 14px; max-width: 420px; }
.morning-loop .button { justify-content: center; white-space: normal; }

/* the action row sits under the card, never on top of it */
.brief-actions { position: static; background: none; backdrop-filter: none; padding: 4px 0; }
.brief-idea { order: -1; }

.brief-card { min-height: min(620px, calc(100dvh - 230px)); }
