/* Tivis 应用工坊：沿用 tivis.vip 首页的纸面、墨色、亮粉与彩色卡片语言 */
:root {
  --ink: #121212; --muted: #55554f; --paper: #f8f8f6;
  --lime: #bcf797; --yellow: #ffd877; --lilac: #cac0ec; --blue: #a9cfff; --rose: #f4bad6; --peach: #ffd0ad; --pink: #f64aa6;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1);
  --w: min(1280px, calc(100% - 64px));
  --shadow: inset 0 -2px 0 rgba(18,18,18,.1), 0 2px 4px rgba(18,18,18,.04), 0 18px 36px rgba(18,18,18,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(circle at 18% 12%, rgba(18,18,18,.025) 0 .6px, transparent .7px), radial-gradient(circle at 78% 72%, rgba(18,18,18,.018) 0 .55px, transparent .65px);
  background-size: 8px 8px, 11px 11px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.studio { position: relative; min-height: calc(100vh - 90px); overflow-x: clip; }

/* ---------- 顶栏与步骤轨 ---------- */
.topbar { position: sticky; top: 0; z-index: 40; width: var(--w); margin: 0 auto; min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: linear-gradient(var(--paper) 70%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 700; }
.brand b { font-family: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.brand span:last-child { white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; }
.brand-dot { width: 20px; height: 12px; display: inline-block; transform: rotate(-10deg); background: var(--pink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rail { position: relative; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(18,18,18,.06); }
.rail button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 700; color: rgba(18,18,18,.45); transition: color .3s; }
.rail button i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(18,18,18,.1); font-style: normal; font-size: 12px; transition: background .3s, color .3s, transform .4s var(--spring); }
.rail button.done { color: var(--ink); }
.rail button.done i { background: var(--lime); }
.rail button.on { color: var(--paper); }
.rail button.on i { background: var(--pink); color: var(--ink); transform: rotate(-8deg) scale(1.08); }
.rail button:disabled { cursor: default; }
.rail-fill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--ink); transition: left .5s var(--spring), width .5s var(--spring); }
.mode-pill { justify-self: end; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed rgba(18,18,18,.3); color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---------- 场景切换 ---------- */
.scene { display: none; width: var(--w); margin: 0 auto; padding: 8px 0 56px; }
.scene.on { display: block; animation: scene-in .7s var(--spring) both; }
.scene.leaving { display: block; animation: scene-out .32s var(--ease) both; pointer-events: none; }
@keyframes scene-in { from { opacity: 0; transform: translateY(40px) scale(.98) rotate(.4deg); } }
@keyframes scene-out { to { opacity: 0; transform: translateY(-24px) scale(.98); } }

/* ---------- 按钮 ---------- */
.cta { min-height: 60px; display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); font-size: 18px; font-weight: 800; box-shadow: 0 5px 0 var(--pink); transition: transform .2s var(--spring), box-shadow .2s, opacity .3s; }
.cta svg { font-size: 22px; transition: transform .3s var(--spring); }
.cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink); }
.cta:hover:not(:disabled) svg { transform: translateX(4px); }
.cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink); }
.cta:disabled { opacity: .28; cursor: not-allowed; box-shadow: 0 5px 0 rgba(18,18,18,.25); }
.cta.ready { animation: cta-call 2.4s var(--ease) infinite; }
@keyframes cta-call { 0%, 60%, 100% { box-shadow: 0 5px 0 var(--pink), 0 0 0 0 rgba(246,74,166,.45); } 30% { box-shadow: 0 5px 0 var(--pink), 0 0 0 14px rgba(246,74,166,0); } }
.cta-sm { min-height: 50px; padding: 0 20px; font-size: 16px; }
.cta.busy span::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ghost { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1.5px solid rgba(18,18,18,.22); border-radius: 999px; background: rgba(255,255,255,.5); font-size: 14px; font-weight: 700; transition: transform .2s var(--spring), background .2s; }
.ghost:hover { transform: translateY(-2px); background: #fff; }
.round { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: rgba(18,18,18,.07); font-size: 18px; transition: transform .2s var(--spring), background .2s; }
.round:hover { transform: scale(1.08); background: rgba(18,18,18,.12); }
.round.rec { background: var(--pink); color: var(--ink); animation: rec-pulse 1s ease-in-out infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 8px rgba(246,74,166,.2); } }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); transition: transform .2s var(--spring); }
.chip-btn:hover { transform: translateY(-2px) rotate(-1deg); }

/* ---------- 1 备课材料 ---------- */
.drift { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.drift span { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; animation: drift var(--t, 22s) linear var(--d, 0s) infinite; }
.drift span svg { font-size: 16px; }
@keyframes drift { 0% { opacity: 0; transform: translate(0, 40px) rotate(var(--r)); } 12%, 82% { opacity: .32; } 100% { opacity: 0; transform: translate(var(--x), -60vh) rotate(calc(var(--r) * -1)); } }
[data-scene="0"] > :not(.drift) { position: relative; z-index: 1; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 0 30px; }
.intro h1 { margin: 0; font-size: clamp(42px, 5.4vw, 80px); font-weight: 850; line-height: 1.08; letter-spacing: -.06em; }
.hl { background: linear-gradient(transparent 62%, rgba(246,74,166,.4) 62% 90%, transparent 90%) no-repeat 0 0 / 0% 100%; animation: marker 1s var(--ease) .5s forwards; }
@keyframes marker { to { background-size: 100% 100%; } }
.intro h1 { animation: rise .8s var(--spring) both; }
.intro .ghost { animation: rise .8s var(--spring) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }

.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { position: relative; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; border-radius: 30px; box-shadow: var(--shadow); transform: rotate(var(--rest, -1deg)); transition: transform .5s var(--spring), box-shadow .3s; animation: tile-in .9s var(--spring) both; }
.tile-doc { --rest: -1.2deg; background: var(--yellow); cursor: pointer; animation-delay: .15s; }
.tile-voice { --rest: 1deg; background: var(--lilac); animation-delay: .28s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(60px) rotate(calc(var(--rest) * 5)); } }
.tile:hover { transform: rotate(0deg) translateY(-4px); box-shadow: inset 0 -2px 0 rgba(18,18,18,.1), 0 28px 50px rgba(18,18,18,.14); }
.tile-k { position: absolute; top: 20px; left: 22px; padding: 6px 14px; border-radius: 999px; color: var(--paper); background: var(--ink); font-size: 15px; font-weight: 800; }

.paper-stack { position: relative; width: 150px; height: 180px; }
.paper-stack i { position: absolute; inset: 0; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(18,18,18,.12); transition: transform .5s var(--spring); }
.paper-stack i:nth-child(1) { transform: rotate(-9deg) translate(-12px, 6px); background: #fffdf4; }
.paper-stack i:nth-child(2) { transform: rotate(6deg) translate(10px, 4px); background: #fffaf0; }
.paper-stack i:nth-child(3) { display: flex; flex-direction: column; gap: 12px; padding: 30px 22px; animation: bob 3.2s ease-in-out infinite; }
.paper-stack b { display: block; height: 8px; border-radius: 6px; background: rgba(18,18,18,.12); }
.paper-stack b:nth-child(1) { width: 60%; height: 12px; background: rgba(18,18,18,.75); }
.paper-stack b:nth-child(3) { width: 80%; } .paper-stack b:nth-child(4) { width: 50%; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
.tile-doc.over .paper-stack i:nth-child(1) { transform: rotate(-22deg) translate(-40px, 10px); }
.tile-doc.over .paper-stack i:nth-child(2) { transform: rotate(18deg) translate(40px, 6px); }
.tile-doc.over { transform: scale(1.03) rotate(0); outline: 4px dashed var(--ink); outline-offset: -14px; }
.tile-doc.reading .paper-stack i:nth-child(3)::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: scan 1.1s ease-in-out infinite; }
@keyframes scan { 0% { top: 8%; } 50% { top: 90%; } 100% { top: 8%; } }
.tile-doc.loaded .paper-stack i:nth-child(3) { animation: none; transform: translateY(-6px); }
.tile-doc.loaded .paper-stack b { background: rgba(18,18,18,.55); }
.doc-state, .doc-done { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: 15px; font-weight: 700; }
.doc-state svg { font-size: 20px; }
.doc-done { background: #fff; animation: pop .5s var(--spring); }
.doc-done .ok { color: #fff; background: var(--ink); border-radius: 50%; padding: 4px; font-size: 22px; }
.doc-done strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-done small { color: var(--muted); font-weight: 600; }
.tile-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(18,18,18,.07); }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }

.mic-big { position: relative; width: 112px; height: 112px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pink); color: var(--ink); font-size: 44px; box-shadow: 0 8px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s, background .3s, color .3s; }
.mic-big:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 11px 0 var(--ink); }
.mic-big:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.mic-big svg { stroke-width: 2.2; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--pink); animation: ping 2.4s var(--ease) infinite; pointer-events: none; }
.ring.r2 { animation-delay: 1.2s; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
.tile-voice.recording .mic-big { background: var(--ink); color: var(--pink); box-shadow: 0 8px 0 var(--pink); }
.tile-voice.recording .ring { border-color: var(--ink); animation-duration: 1.1s; }
.bars { height: 54px; display: flex; align-items: center; gap: 5px; opacity: 0; transform: scaleY(.3); transition: opacity .3s, transform .4s var(--spring); }
.bars i { width: 7px; height: 12%; border-radius: 6px; background: var(--ink); transition: height .08s linear; }
.tile-voice.recording .bars { opacity: 1; transform: none; }
.rec-time { position: absolute; top: 22px; right: 24px; font-variant-numeric: tabular-nums; font-weight: 800; opacity: 0; transition: opacity .3s; }
.rec-time::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--pink); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tile-voice.recording .rec-time { opacity: 1; }
.need { width: 100%; max-height: 0; overflow: hidden; transition: max-height .5s var(--spring); }
.tile-voice.typing .need, .tile-voice.has-text .need { max-height: 180px; }
.need textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: rgba(255,255,255,.82); font: inherit; font-size: 16px; line-height: 1.6; resize: none; }
.need textarea:focus { outline: 3px solid var(--ink); }
.tile-voice.busy .need textarea { background: linear-gradient(90deg, rgba(255,255,255,.6), #fff, rgba(255,255,255,.6)) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tile-voice.has-text .bars, .tile-voice.typing .bars { display: none; }
.tile-voice.has-text .mic-big, .tile-voice.typing .mic-big { width: 76px; height: 76px; font-size: 30px; }
.kbd { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); font-size: 20px; transition: transform .2s var(--spring); }
.kbd:hover { transform: rotate(-8deg) scale(1.1); background: #fff; }
.go-row { display: flex; justify-content: center; margin-top: 40px; animation: rise .8s var(--spring) .45s both; }

/* ---------- 2 分析中 ---------- */
.thinking { position: relative; min-height: 62vh; display: grid; place-items: center; }
.scan-doc { position: relative; width: 180px; height: 230px; display: flex; flex-direction: column; gap: 14px; padding: 34px 26px; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(18,18,18,.14); transform: rotate(-3deg); animation: float 3s ease-in-out infinite; }
.scan-doc i { height: 9px; border-radius: 6px; background: rgba(18,18,18,.14); }
.scan-doc i:first-child { width: 70%; height: 14px; background: var(--ink); }
.scan-doc i:nth-child(3n) { width: 75%; } .scan-doc i:nth-child(4) { width: 55%; }
.scanline { position: absolute; left: -10px; right: -10px; height: 4px; border-radius: 4px; background: var(--pink); box-shadow: 0 0 18px var(--pink); animation: scan 1.6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-1deg) translateY(-12px); } }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit span { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; display: grid; place-items: center; margin: -29px; border-radius: 18px; font-size: 26px; box-shadow: var(--shadow); animation: orbit var(--t) linear infinite; animation-delay: var(--d); }
.orbit span.picked { animation: picked .8s var(--spring) forwards; }
@keyframes orbit { from { transform: rotate(0deg) translateX(var(--rad)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--rad)) rotate(-360deg); } }
@keyframes picked { to { transform: translate(0, 0) scale(1.4); opacity: 0; } }
.think-steps { position: absolute; bottom: 4vh; left: 50%; display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; transform: translateX(-50%); }
.think-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(18,18,18,.06); color: rgba(18,18,18,.4); font-weight: 800; transition: all .4s var(--spring); }
.think-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.think-steps li.on { color: var(--paper); background: var(--ink); transform: translateY(-4px) rotate(-2deg); }
.think-steps li.on::before { background: var(--pink); animation: blink .6s infinite; }
.think-steps li.done { color: var(--ink); background: var(--lime); }
.think-steps li.done::before { background: var(--ink); }

/* ---------- 2 方案 ---------- */
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 14px 0 22px; }
.plan-title h2 { display: inline-block; margin: 0; padding: 0 4px; font-size: clamp(34px, 3.6vw, 54px); font-weight: 850; letter-spacing: -.06em; border-bottom: 3px dashed transparent; animation: rise .7s var(--spring) both; }
.plan-title h2:hover, .plan-title h2:focus { border-bottom-color: rgba(18,18,18,.25); outline: none; }
.lesson-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.lesson-chips span { padding: 6px 13px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 80ms + .2s); }
.lesson-chips span:first-child { background: var(--ink); color: var(--paper); }
.insight { margin: 0; font-size: 18px; font-weight: 700; }
.insight::before { content: "✦ "; color: var(--pink); }
@keyframes note-in { from { opacity: 0; transform: translateY(-40px) rotate(-20deg); } }

.plan-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; padding: 10px 6px 26px; }
.lane { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; border-radius: 24px; scroll-snap-align: start; box-shadow: var(--shadow); transform: rotate(var(--rest)); animation: lane-in .8s var(--spring) both; animation-delay: calc(var(--i) * 110ms); transition: transform .4s var(--spring); }
.lane:nth-child(odd) { --rest: -.8deg; } .lane:nth-child(even) { --rest: .9deg; }
.lane:hover { transform: rotate(0); }
@keyframes lane-in { from { opacity: 0; transform: translateY(80px) rotate(8deg); } }
.lane.flash { animation: flash .9s var(--spring); }
@keyframes flash { 30% { transform: scale(1.04) rotate(-1deg); box-shadow: 0 0 0 5px var(--pink), var(--shadow); } }
.lane-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; }
.lane h3 { margin: 2px 0 0; font-size: 21px; font-weight: 850; letter-spacing: -.04em; }
.lane p { margin: 0 0 4px; color: rgba(18,18,18,.72); font-size: 14px; line-height: 1.5; }
.t-yellow { background: var(--yellow); } .t-lime { background: var(--lime); } .t-blue { background: var(--blue); } .t-rose { background: var(--rose); } .t-lilac { background: var(--lilac); } .t-peach { background: var(--peach); } .t-ink { background: var(--ink); color: var(--paper); }
.t-ink p { color: rgba(248,248,246,.7); } .t-ink .lane-tag { background: rgba(255,255,255,.15); }

.mcard { position: relative; display: grid; grid-template-columns: 34px 1fr 32px; align-items: center; gap: 4px 8px; padding: 10px 10px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.66); border: 2px dashed rgba(18,18,18,.25); color: var(--ink); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 90ms + .4s); transition: background .3s, border-color .3s, transform .3s var(--spring); }
.mcard:hover { transform: translateY(-2px); background: #fff; }
.mcard.in { background: #fff; border: 2px solid var(--ink); }
.mcard .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; font-size: 21px; }
.mcard strong { font-size: 15px; line-height: 1.2; }
.mcard small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; line-height: 1.35; }
.mcard small::before { content: "推荐"; margin-right: 5px; padding: 1px 6px; border-radius: 999px; color: var(--pink); border: 1px solid var(--pink); font-size: 10px; font-weight: 800; }
.mcard.self small::before { content: "自选"; color: var(--ink); border-color: var(--ink); }
.mcard.self small:empty::after { content: "老师加入"; }
.add { width: 32px; height: 32px; display: grid; place-items: center; grid-row: 1; grid-column: 3; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; transition: transform .35s var(--spring), background .3s; }
.add:hover { transform: rotate(90deg) scale(1.1); }
.in .add { background: var(--pink); color: var(--ink); }
.in .add:hover { transform: scale(1.1); }
.adopt { margin: 0 6px 34px; }

.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shelf-head h3 { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -.05em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(18,18,18,.06); font-size: 13px; font-weight: 700; transition: all .3s var(--spring); }
.filters button.on { background: var(--ink); color: var(--paper); transform: rotate(-2deg); }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px; }
.product { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; transform: rotate(var(--rest, 0deg)); transition: transform .4s var(--spring), box-shadow .3s, opacity .3s; animation: pop .55s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.product:nth-child(3n+1) { --rest: -.6deg; } .product:nth-child(3n+2) { --rest: .5deg; }
.product:hover { transform: rotate(0) translateY(-6px); box-shadow: inset 0 -2px 0 rgba(18,18,18,.1), 0 26px 46px rgba(18,18,18,.14); }
.product.gone { display: none; }
.p-face { position: relative; height: 112px; display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.p-face img { position: absolute; right: -18px; bottom: -22px; width: 118px; height: 80px; object-fit: cover; border-radius: 10px; transform: rotate(-8deg); box-shadow: 0 8px 18px rgba(18,18,18,.2); transition: transform .5s var(--spring); }
.product:hover .p-face img { transform: rotate(-3deg) translate(-8px, -10px) scale(1.05); }
.p-face svg { position: relative; z-index: 1; stroke-width: 1.8; transition: transform .5s var(--spring); }
.product:hover .p-face svg { transform: scale(1.15) rotate(-8deg); }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 14px; }
.p-body strong { font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.p-body > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.caps { display: flex; flex-wrap: wrap; gap: 4px; }
.caps em { padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(18,18,18,.3); font-size: 11px; font-style: normal; font-weight: 700; }
.caps em.ai { color: var(--pink); border-color: var(--pink); }
.used { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(18,18,18,.08); font-size: 12px; }
.used a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); font-weight: 700; text-decoration: none; }
.used a:hover { text-decoration: underline; text-underline-offset: 3px; }
.effort { position: absolute; top: 10px; left: 12px; z-index: 2; display: flex; gap: 3px; }
.effort i { width: 7px; height: 7px; border-radius: 2px; background: rgba(18,18,18,.18); transform: rotate(45deg); }
.effort i.on { background: var(--ink); }
.product .add { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product.in { box-shadow: 0 0 0 3px var(--ink), var(--shadow); }

.cart { position: sticky; top: 84px; max-height: calc(100vh - 186px); display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 2px 0 rgba(18,18,18,.08), 0 24px 50px rgba(18,18,18,.12); animation: rise .8s var(--spring) .3s both; }
.cart-top { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.cart-top b { font-weight: 850; letter-spacing: -.04em; }
.count { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--pink); font-weight: 900; }
.count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-12deg); } }
.cart-blocks { flex: 1 1 auto; min-height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.cart-empty { margin: auto; display: grid; place-items: center; gap: 8px; color: rgba(18,18,18,.35); font-size: 14px; font-weight: 700; text-align: center; }
.cart-empty svg { font-size: 30px; padding: 8px; border: 2px dashed rgba(18,18,18,.2); border-radius: 12px; animation: bob 2.4s ease-in-out infinite; }
.cart-stage { font-size: 11px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.block { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; font-size: 14px; font-weight: 800; transform: rotate(var(--r, 0deg)); animation: drop .6s var(--spring) both; }
.block:nth-of-type(odd) { --r: -.8deg; } .block:nth-of-type(even) { --r: .7deg; }
.block svg { font-size: 18px; }
.block button { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); font-size: 12px; opacity: 0; transition: opacity .2s; }
.block:hover button { opacity: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(.8); } }
.cart-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.idea { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; border: 2px dashed var(--pink); color: var(--ink); background: #fff5fa; font-size: 13px; font-weight: 700; animation: drop .6s var(--spring) both; }
.idea::before { content: "✦"; color: var(--pink); }
.idea button { width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; background: none; font-size: 11px; opacity: .5; }
.meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.meter-bar { height: 10px; border-radius: 999px; background: rgba(18,18,18,.07); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--lime), var(--yellow) 50%, var(--pink)); background-size: 300% 100%; transition: width .6s var(--spring); }
.privacy { display: flex; flex-wrap: wrap; gap: 6px; }
.privacy span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(18,18,18,.06); font-size: 12px; font-weight: 700; animation: pop .4s var(--spring); }
.cart .cta { justify-content: center; }

.stage-pop { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px rgba(18,18,18,.25); animation: pop .35s var(--spring); }
.stage-pop small { font-weight: 700; opacity: .7; }
.stage-pop div { display: flex; flex-wrap: wrap; gap: 6px; max-width: 280px; }
.stage-pop button { padding: 7px 12px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 800; transition: transform .2s var(--spring); }
.stage-pop button:hover { transform: translateY(-2px) rotate(-2deg); }

.flyer { position: fixed; z-index: 90; pointer-events: none; display: grid; place-items: center; border-radius: 14px; font-size: 22px; box-shadow: 0 14px 30px rgba(18,18,18,.25); }

/* ---------- 3 需求卡 ---------- */
[data-scene="2"] { display: none; }
[data-scene="2"].on { display: flex; justify-content: center; }
.ticket { position: relative; width: min(900px, 100%); margin-top: 18px; padding: 30px 40px 26px; border-radius: 28px; background: #fff; box-shadow: 0 2px 0 rgba(18,18,18,.08), 0 40px 80px rgba(18,18,18,.16); animation: ticket-in 1s var(--spring) both; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(120px) rotate(6deg) scale(.9); } }
.punch { position: absolute; top: 132px; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 4px 8px rgba(18,18,18,.08); }
.punch.l { left: -17px; } .punch.r { right: -17px; }
.ticket-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 2px dashed rgba(18,18,18,.12); }
.ticket-head small { font-weight: 800; color: var(--muted); }
.ticket-head b { margin-left: auto; font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.ticket h2 { margin: 26px 0 8px; font-size: clamp(36px, 4vw, 56px); font-weight: 850; letter-spacing: -.06em; }
.ticket-lesson { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ticket-lesson span { padding: 6px 12px; border-radius: 999px; background: rgba(18,18,18,.06); font-size: 14px; font-weight: 700; }
.ticket-flow { display: flex; flex-direction: column; gap: 10px; }
.trow { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; align-items: start; animation: rise .6s var(--spring) both; animation-delay: calc(var(--i) * 120ms + .4s); }
.trow-stage { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; font-weight: 850; transform: rotate(-1deg); }
.trow-stage small { font-size: 11px; opacity: .7; }
.trow-mods { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.tmod { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; background: var(--paper); border: 1.5px solid rgba(18,18,18,.12); font-size: 15px; font-weight: 800; animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 60ms + .7s); }
.tmod svg { font-size: 18px; }
.trow-act { grid-column: 2; margin: 0; color: var(--muted); font-size: 13px; }
.ticket-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ticket-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 2px dashed rgba(18,18,18,.12); }
.contact { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 2px solid rgba(18,18,18,.1); font-size: 18px; }
.contact input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; outline: none; }
.contact:focus-within { border-color: var(--ink); }
.stamp { position: absolute; top: 76px; right: 40px; padding: 10px 16px; border: 3px solid var(--pink); border-radius: 12px; color: var(--pink); background: rgba(255,255,255,.9); font-size: 22px; font-weight: 900; transform: rotate(12deg); opacity: 0; }
.stamp.on { animation: stamp .55s var(--spring) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(12deg) scale(2.6); } 100% { opacity: 1; transform: rotate(12deg) scale(1); } }

/* ---------- 4 试玩 ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 10px; }
.device { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 150px); padding: 14px; border-radius: 34px; background: var(--ink); box-shadow: 0 30px 70px rgba(18,18,18,.25); animation: ticket-in .9s var(--spring) both; display: flex; flex-direction: column; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 2px 10px 12px; color: rgba(248,248,246,.7); font-size: 13px; font-weight: 700; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(248,248,246,.2); }
.device-bar i:first-child { background: var(--pink); }
.device-bar span { margin-left: 8px; }
.build, #preview { flex: 1; min-height: 0; border-radius: 20px; }
#preview { width: 100%; border: 0; background: #fff; animation: flip-in .9s var(--spring); }
@keyframes flip-in { from { opacity: 0; transform: perspective(1200px) rotateY(-30deg) scale(.9); } }
.build { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #1b1b1b; }
.blocks { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 16px 6px; }
.blocks span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: rgba(248,248,246,.07); color: rgba(248,248,246,.45); font-size: 13px; font-weight: 800; transition: all .5s var(--spring); }
.blocks span.lit { color: var(--ink); transform: translateY(-3px) rotate(-2deg); }
.code { flex: 1; margin: 0; padding: 10px 18px; overflow: hidden; color: rgba(248,248,246,.75); font: 12px/1.65 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; mask-image: linear-gradient(transparent, #000 30%); }
.code .tg { color: var(--pink); } .code .at { color: var(--lime); } .code .st { color: var(--yellow); }
.code::after { content: "▍"; color: var(--pink); animation: blink .7s infinite; }
.build-meter { position: relative; height: 34px; margin: 0 16px 16px; border-radius: 999px; background: rgba(248,248,246,.08); overflow: hidden; }
.build-meter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--pink); transition: width .4s var(--ease); }
.build-meter span { position: relative; display: grid; height: 100%; place-items: center; color: #fff; font-size: 13px; font-weight: 800; mix-blend-mode: difference; }
.tweak { display: flex; flex-direction: column; gap: 14px; animation: rise .8s var(--spring) .3s both; }
.tweak-box { padding: 16px; border-radius: 24px; background: var(--lilac); box-shadow: var(--shadow); transform: rotate(1deg); }
.tweak-box textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255,255,255,.85); font: inherit; font-size: 15px; line-height: 1.5; resize: none; }
.tweak-actions { display: flex; justify-content: space-between; margin-top: 10px; }
.tweak-actions .round { background: rgba(255,255,255,.7); }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.versions { display: flex; flex-wrap: wrap; gap: 6px; }
.versions button { padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(18,18,18,.06); font-size: 13px; font-weight: 800; }
.versions button.on { background: var(--ink); color: var(--paper); }
.device:fullscreen { padding: 0; border-radius: 0; max-height: none; }
.device:fullscreen .device-bar { display: none; }
.device:fullscreen #preview { border-radius: 0; }
.confetti { position: fixed; z-index: 95; width: 12px; height: 12px; pointer-events: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---------- 头脑风暴 ---------- */
.tivis-fab { position: fixed; left: 26px; bottom: 26px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; color: var(--paper); background: var(--ink); box-shadow: 0 5px 0 var(--pink), 0 18px 36px rgba(18,18,18,.25); animation: fab-in .8s var(--spring) both; transition: transform .25s var(--spring); }
.tivis-fab:hover { transform: translateY(-3px) rotate(-2deg); }
.tivis-fab b { font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: 22px; font-weight: 900; }
.fab-dot { width: 22px; height: 14px; display: inline-block; background: var(--pink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(80px) scale(.6); } }
.eq { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 100%; border-radius: 3px; background: var(--pink); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.tivis-fab[data-tip]::before { content: attr(data-tip); position: absolute; left: 8px; bottom: calc(100% + 16px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 30px rgba(18,18,18,.16); animation: pop .5s var(--spring) 1s both; }
.brain { position: fixed; left: 22px; bottom: 22px; z-index: 55; width: min(400px, calc(100% - 32px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 28px; background: #fff; box-shadow: 0 2px 0 rgba(18,18,18,.06), 0 40px 80px rgba(18,18,18,.25); transform-origin: 0 100%; animation: brain-in .55s var(--spring); }
@keyframes brain-in { from { opacity: 0; transform: scale(.4) translateY(40px); } }
.brain header { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid rgba(18,18,18,.08); }
.brain header b { font-size: 17px; }
.brain header .round { margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 15px; line-height: 1.55; animation: msg-in .45s var(--spring) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.msg.ai { align-self: flex-start; background: var(--lilac); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: hop .9s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 30% { transform: translateY(-6px); } }
.action { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 9px 9px 10px; border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; }
.action .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; flex: none; }
.action span { flex: 1; line-height: 1.35; }
.action span small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.action button { padding: 7px 12px; border: 0; border-radius: 999px; background: var(--pink); font-size: 13px; font-weight: 800; transition: transform .2s var(--spring); }
.action button:hover { transform: scale(1.06) rotate(-2deg); }
.action.taken { opacity: .55; }
.action.taken button { background: rgba(18,18,18,.1); }
.sparks { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; }
.sparks button { flex: none; padding: 7px 12px; border: 1.5px solid rgba(18,18,18,.15); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; transition: all .2s var(--spring); }
.sparks button:hover { border-color: var(--ink); transform: translateY(-2px); }
.ask { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(18,18,18,.08); }
.ask input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 2px solid rgba(18,18,18,.1); border-radius: 999px; background: var(--paper); font: inherit; font-size: 15px; outline: none; }
.ask input:focus { border-color: var(--ink); }
.round.send { background: var(--ink); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 99; max-width: calc(100% - 40px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; transform: translateX(-50%); box-shadow: 0 0 0 3px var(--pink), 0 18px 36px rgba(18,18,18,.25); animation: toast .5s var(--spring); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 30px) scale(.8); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .plan-body, .demo { grid-template-columns: 1fr; }
  .cart { position: relative; top: 0; }
  .questions { max-width: none; justify-content: flex-start; }
  .plan-head { flex-direction: column; }
}
@media (max-width: 760px) {
  :root { --w: calc(100% - 28px); }
  .topbar { grid-template-columns: auto 1fr; }
  .rail { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .rail button span { display: none; }
  .rail button { padding: 7px; }
  .mode-pill { grid-row: 1; grid-column: 2; }
  .inputs { grid-template-columns: 1fr; }
  .tile { min-height: 290px; }
  .intro { flex-direction: column; align-items: flex-start; }
  .trow { grid-template-columns: 1fr; }
  .trow-act { grid-column: 1; }
  .ticket { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 深度思考 ---------- */
.think-live { position: absolute; left: 50%; bottom: calc(4vh + 66px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); animation: pop .5s var(--spring); }
.think-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; color: var(--paper); background: var(--ink); font-size: 15px; font-weight: 800; white-space: nowrap; animation: think-glow 1.8s ease-in-out infinite; }
.think-pill svg { color: var(--pink); font-size: 18px; animation: spin 2.4s linear infinite; }
.think-pill .eq { height: 14px; }
@keyframes think-glow { 50% { box-shadow: 0 0 0 7px rgba(246,74,166,.18), 0 0 30px rgba(246,74,166,.35); } }
.think-line { width: min(560px, 80vw); min-height: 1.5em; margin: 0; overflow: hidden; color: rgba(18,18,18,.5); font-size: 14px; text-align: center; white-space: nowrap; text-overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.msg.musing { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.msg.musing .think-pill { padding: 6px 12px; font-size: 13px; }
.msg.musing .think-line { width: 240px; text-align: left; font-size: 12px; }
.build-think { position: absolute; inset: 0; bottom: auto; top: 0; height: 100%; justify-content: center; transform: none; left: 0; right: 0; background: radial-gradient(circle at 50% 50%, rgba(246,74,166,.14), transparent 60%); }
.build-think .think-pill { color: var(--ink); background: var(--pink); }
.build-think .think-pill svg { color: var(--ink); }
.build-think .think-pill .eq i { background: var(--ink); }
.build-think .think-line { color: rgba(248,248,246,.55); }

/* ---------- 确认条：一次问一件事，点快捷答案即可 ---------- */
.confirm { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; margin: -4px 0 26px; padding: 10px 12px 10px 10px; border-radius: 22px; background: #fff; box-shadow: 0 2px 0 rgba(18,18,18,.06), 0 18px 40px rgba(18,18,18,.08); animation: rise .7s var(--spring) .35s both; }
.confirm-badge { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 16px 0 12px; border-radius: 16px; color: var(--paper); background: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.confirm-badge svg { color: var(--pink); font-size: 18px; animation: spin 6s linear infinite; }
.confirm-badge b { padding: 2px 8px; border-radius: 999px; color: var(--ink); background: var(--pink); font-size: 12px; font-variant-numeric: tabular-nums; }
.confirm-q { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; animation: q-in .5s var(--spring); }
@keyframes q-in { from { opacity: 0; transform: translateY(14px); } }
.confirm-q strong { font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.confirm-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-opts button, .confirm-own { min-height: 40px; padding: 0 16px; border: 2px solid rgba(18,18,18,.12); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 800; transition: transform .2s var(--spring), background .2s, border-color .2s; animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .1s); }
.confirm-opts button:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--yellow); }
.confirm-opts button.picked { border-color: var(--ink); background: var(--lime); transform: scale(1.06); }
.confirm-own { border-style: dashed; color: var(--muted); background: transparent; }
.confirm-own:hover { color: var(--ink); border-color: var(--ink); }
.confirm-input { display: flex; gap: 6px; flex: 1 1 220px; }
.confirm-input input { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-size: 14px; outline: none; }
.confirm-input button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.confirm-skip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 999px; background: none; color: rgba(18,18,18,.45); font-size: 13px; font-weight: 700; }
.confirm-skip:hover { color: var(--ink); background: rgba(18,18,18,.05); }
.confirm-dots { position: absolute; left: 22px; bottom: -14px; display: flex; gap: 5px; }
.confirm-dots i { width: 18px; height: 5px; border-radius: 9px; background: rgba(18,18,18,.12); transition: all .4s var(--spring); }
.confirm-dots i.on { width: 30px; background: var(--ink); }
.confirm-dots i.ok { background: var(--lime); }
.confirm.done { min-height: 0; padding: 8px 10px 8px 8px; border-radius: 999px; display: inline-flex; flex-wrap: wrap; box-shadow: var(--shadow); animation: pop .5s var(--spring); }
.confirm.done .confirm-badge { min-height: 36px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.confirm.done .confirm-badge svg { color: var(--ink); animation: none; }
.confirm-answers { display: flex; flex-wrap: wrap; gap: 6px; }
.confirm-answers span { padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 700; }
.confirm-answers span small { color: var(--muted); font-weight: 600; margin-right: 4px; }
.confirm-edit { padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ticket-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ticket-answers span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #f1fde9; border: 1.5px solid rgba(18,18,18,.08); font-size: 14px; font-weight: 700; animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 60ms + 1s); }
.ticket-answers span::before { content: "✓"; color: #2e8b3a; font-weight: 900; }
.ticket-answers small { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .confirm { flex-wrap: wrap; } .confirm-skip { margin-left: auto; } }
