.ai-main { position: relative; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter) 10vh; }
.ai-head { max-width: 800px; margin-bottom: 40px; }
.ai-head h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.015em; margin-top: 4px; }
.ai-head h1 em { color: var(--ink-3); }
.ai-sub { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 38em; }
.ai-sub a { text-decoration: underline; text-underline-offset: 3px; }
.ai-grid { columns: 3; column-gap: 14px; }
.ai-card { padding: 24px 26px; border-radius: 22px; break-inside: avoid; page-break-inside: avoid; margin-bottom: 14px; }
.ai-card h2 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.ai-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ai-card dl dt { color: var(--ink-3); }
.ai-card ul, .ai-card ol { padding-left: 1.2em; display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); }
.ai-card ol { list-style: decimal; }
.ai-card li::marker { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.ai-card p { font-size: 16px; color: var(--ink-2); }
.ai-card p + p { margin-top: 10px; }
.ai-card a { text-decoration: underline; text-underline-offset: 3px; }
.ai-card .small { font-size: 13px; margin-top: 14px; }
.big-list { list-style: none !important; padding-left: 0 !important; }
.big-list li { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); }
.ai-card.accent { background: rgba(226, 58, 40, 0.1); border-color: rgba(226, 58, 40, 0.35); }
.goal { font-family: var(--serif); font-size: 34px; line-height: 1.05; color: var(--ink) !important; }
.chips { list-style: none !important; padding-left: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
@media (max-width: 900px) { .ai-grid { columns: 2; } .ai-main { padding-top: 100px; padding-bottom: calc(10vh + 70px); } }
@media (max-width: 560px) { .ai-grid { columns: 1; } }

/* v11: flair */
.ai-head { position: relative; }
.prompt { font-size: 13px; color: var(--ink-3); margin: 6px 0 10px; letter-spacing: 0.04em; }
.prompt-mark { color: var(--verm); }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 3px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.s-ai { position: static; margin-top: 14px; }
.ai-card h2 .dim { text-transform: none; letter-spacing: 0; }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 14px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--verm), #ff9a8a); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.ai-card.in .meter i, .meter.on i { width: var(--w); }
.say { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--verm); color: #fff; vertical-align: middle; margin-right: 6px; transition: transform 0.4s var(--spring); }
.say svg { width: 16px; height: 16px; }
.say:hover { transform: scale(1.12); }
.say.talking { animation: talk 0.4s ease-in-out 4; }
@keyframes talk { 50% { transform: scale(1.18); } }
.tracks { list-style: none !important; padding: 0 !important; display: grid; gap: 6px !important; }
.tracks a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; text-decoration: none !important; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--spring); }
.tracks a:hover { background: rgba(255,255,255,0.06); border-color: var(--line); transform: translateX(4px); }
.play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid #0a0a0a; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tracks .t { display: grid; flex: 1; min-width: 0; }
.tracks b { color: var(--ink); font-weight: 600; }
.tracks small { color: var(--ink-3); font-size: 12.5px; }
.tracks .go { font-size: 11px; color: var(--ink-3); }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poster { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 2 / 3; padding: 14px; border-radius: 14px; text-decoration: none !important;
  background: linear-gradient(160deg, var(--a), #050505 85%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.5); position: relative; overflow: hidden; transition: transform 0.5s var(--spring), box-shadow 0.5s; }
.poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px circle at 70% 20%, var(--b), transparent 70%); opacity: 0.55; }
.poster:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.2); }
.poster .serif { position: relative; font-size: 24px; line-height: 1; color: var(--ink); }
.poster small { position: relative; font-size: 10px; color: rgba(242,239,233,0.7); }
.books { list-style: none !important; padding: 0 !important; display: grid; gap: 10px !important; }
.books li { display: grid; padding: 12px 14px; border-left: 3px solid var(--verm); background: rgba(255,255,255,0.03); border-radius: 0 12px 12px 0; }
.books b { color: var(--ink); font-weight: 600; }
.books small { color: var(--ink-3); font-size: 12.5px; }
.done li::marker { content: "✓  "; color: var(--verm); }

/* v14: embeds, posters, covers */
.yt-list { display: grid; gap: 8px; }
.yt { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid transparent; text-align: left; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--spring); position: relative; }
.yt:hover { background: rgba(255,255,255,0.06); border-color: var(--line); transform: translateX(4px); }
.yt > img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: #111; }
.yt-play { position: absolute; left: 36px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.5); }
.yt-play::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.yt-t { display: grid; min-width: 0; }
.yt-t b { color: var(--ink); font-weight: 600; }
.yt-t small { color: var(--ink-3); font-size: 12.5px; }
.poster { aspect-ratio: 2 / 3; padding: 0; overflow: hidden; display: block; background: #111; text-align: left; }
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::before { background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 45%); opacity: 1; }
.poster small { position: absolute; left: 12px; bottom: 10px; font-size: 10px; color: rgba(242,239,233,0.85); }
.poster .yt-play { left: 50%; top: 50%; margin-left: -18px; margin-top: -18px; width: 36px; height: 36px; }
.poster .yt-play::after { left: 14px; top: 10px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
.poster.book::before { background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 35%); }
.yt-box { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; }
