/* The chat-first flow (clip chip, your take, reference watching, version checklist, task card, parts overview,
   listening panel, publish everywhere, export progress). Same tokens as base.css / premium.css. */

/* the clip she sent, as a file chip */
.fchip { justify-self: end; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 8px; max-width: 86%;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--sh-1); }
.fchip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.fchip { min-width: 250px; }
.fchip span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fchip b { font: 600 14px/1.25 var(--font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip em { margin-left: 6px; flex: none; font: 600 11px/1 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.fchip em.wait { background: var(--fill); color: var(--muted); }

/* "Clipul tau" and "ma uit la el cadru cu cadru": a small playing video and what the app sees */
.watch { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.watch .wv { position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: var(--video-bg, #1b0f10); }
.watch .wv video, .watch .wv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch .wv::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: rgba(255,255,255,.85);
  box-shadow: 0 0 10px rgba(255,255,255,.9); animation: scanline 2.2s linear infinite; }
.watch.done .wv::after { display: none; }
@keyframes scanline { from { top: 0; } to { top: 100%; } }
.watch small { display: block; font: 600 11px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.watch b { display: block; font: italic 500 19px/1.25 var(--display); color: var(--ink); margin: 4px 0 6px; }
.watch p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.facts span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); }

/* "Fac versiunea N": the live checklist */
.mk { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.mk-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-h b { font: italic 500 20px/1.2 var(--display); color: var(--ink); }
.mk-h span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-q, .task-q { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--accent); }
.mk ul, .task ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk li, .task li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--ink); }
.mk li .ic, .task li .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.mk li.now { color: var(--ink); font-weight: 500; }
.mk li.now .vspin { width: 16px; height: 16px; margin-top: 2px; }
.mk li.next { color: var(--faint); }
.mk li.next i { width: 8px; height: 8px; margin: 6px 0 0 5px; border-radius: 50%; background: var(--sep); display: block; }

/* task card: what she asked, what it cost, what changed */
.task { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.task-h { display: flex; align-items: center; gap: 8px; }
.task-h > .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.task-h b { flex: 1; font: 600 15px/1.3 var(--font); color: var(--ink); }
.task-q { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.cost { flex: none; font: 600 12px/1 var(--font); color: var(--accent-text); background: var(--accent-soft); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.task-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-acts a, .task-acts button { min-height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); font: 600 14px/1 var(--font); text-decoration: none; }
.task-acts a { background: var(--surface); border: 1px solid var(--sep); color: var(--ink); }

/* "Iti place asa?" */
.happy { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-soft); width: min(100%, 360px); }
.happy b { font: italic 500 20px/1.2 var(--display); color: var(--ink); }
.happy p { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.happy div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.happy button { min-height: 44px; }
.happy .quiet { background: var(--surface); }

/* hook versions: the "one more" tile and the + dot */
.htk-card { width: min(68vw, 250px); }
.htk-more .htk-media { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 18px; text-align: center;
  background: var(--ink) !important; color: #fff; }
.htk-more .plus { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center; }
.htk-more .plus .ic { width: 24px; height: 24px; }
.htk-more b { font: italic 500 20px/1.2 var(--display); }
.htk-more p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.75); }
.htk-more button { min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: none; font: 600 14px/1 var(--font); }
.htk-dots button.plusdot { background: transparent; border: 1.5px dashed var(--sep); }
.htk-dots button.plusdot.on { background: var(--ink); border-color: var(--ink); }
.htk-acts { display: grid; gap: 8px; margin: 0 14px; }

/* parts: overview (strip or list), approve a part, swipe through its looks */
.ptover-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; box-shadow: none; font: 500 13px/1 var(--font); color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(59,18,22,.1); }
.lockchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--sep); font: 500 13px/1 var(--font); color: var(--ink); }
.lockchip .ic { width: 15px; height: 15px; color: var(--accent); }
.ptover-bar .whole { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
.ptlist { display: grid; gap: 0; }
.ptrow { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line, var(--sep)); }
.ptrow:first-child { border-top: 0; }
.ptrow .pth, .ptcard .pth { position: relative; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: var(--video-bg, #1b0f10); }
.pth video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pth .lk { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.pth .lk .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.ptrow b { display: block; font: 600 15px/1.3 var(--font); color: var(--ink); }
.ptrow small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.ptrow button, .ptcard button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.ptrow button.open { background: var(--primary, var(--accent)); color: #fff; }
.ptrow button.open.done { background: var(--surface); color: var(--ink); border: 1px solid var(--sep); box-shadow: none; }
.ptstrip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; scroll-snap-type: x mandatory; }
.ptstrip::-webkit-scrollbar { display: none; }
.ptcard { flex: none; width: 96px; display: grid; gap: 6px; scroll-snap-align: start; text-align: center; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; cursor: pointer; }
.ptcard span { font: 500 12px/1.25 var(--font); color: var(--ink-2); }
.ptlook { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 2px 0; }
.ptlook span { font-size: 13px; color: var(--muted); }
.ptlook span b { color: var(--ink); font-weight: 600; }
.ptlock { width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--sep); color: var(--muted); box-shadow: none; flex: none; }
.ptlock.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ptlock .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.ptswipe { font-size: 12px; color: var(--faint); text-align: center; margin: 4px 0 0; }
.ptback { min-height: 40px; padding: 0 12px; border-radius: 999px; background: transparent; box-shadow: none; color: var(--ink-2); font-size: 14px; margin: -6px 0 6px -8px; display: inline-flex; align-items: center; gap: 4px; }
.ptback .ic { width: 18px; height: 18px; }

/* listening (live voice) */
.voice { max-width: 640px; margin: 0 auto 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-float); display: grid; gap: 10px; }
.voice[hidden] { display: none; }
.voice-h { display: flex; align-items: center; gap: 8px; }
.voice-h b { flex: 1; font: 600 15px/1.2 var(--font); color: var(--ink); }
.voice-h .dotrec { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: b 1.2s infinite; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; }
.wave i { width: 4px; border-radius: 4px; background: var(--accent); height: 8px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .12s; } .wave i:nth-child(3n) { animation-delay: .25s; } .wave i:nth-child(5n) { animation-delay: .4s; }
.voice.talking .wave i { animation-duration: .55s; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 34px; } }
.voice-t { min-height: 20px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.voice-t:empty::before { content: attr(data-hint); color: var(--faint); }
.voice-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-a button { min-height: 44px; }

/* export progress, big */
.vmedia .vpct { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; z-index: 2; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.vmedia .vpct b { display: block; font: 600 40px/1 var(--font); font-variant-numeric: tabular-nums; }
.vmedia .vpct span { font-size: 13px; opacity: .9; }

/* publish everywhere */
.pubnets { display: grid; gap: 8px; margin: 8px 0 12px; }
.pubnet { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--sep); background: var(--surface); cursor: pointer; }
.pubnet input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.pubnet span { flex: 1; font: 500 15px/1.2 var(--font); color: var(--ink); }
.pubnet small { font-size: 12px; color: var(--muted); }
.pubnet.off { opacity: .55; }
.pubres { display: grid; gap: 6px; margin: 8px 0; font-size: 14px; }

/* the composer hint under hook versions */
.composer .hint2 { max-width: 640px; margin: 0 auto 6px; font-size: 12px; color: var(--muted); text-align: center; }

/* home: greeting, three quick asks, the composer (clip + what she wants) */
.hhome { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 0 8px; }
.hmark { min-height: 64px; display: grid; place-items: center; }
.hlogo { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--sh-2); }
.hhi { margin: 6px 0 0; font: italic 500 22px/1.2 var(--display); color: var(--accent-text); }
.hhome .hhead { margin: 0; }
.hlead { margin: 0 auto; max-width: 320px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.hchips button, .hchips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--sep); box-shadow: none; color: var(--ink); font: 500 14px/1 var(--font); text-decoration: none; }
.hchips .ic { width: 18px; height: 18px; color: var(--accent); }
.hcomp { width: 100%; display: grid; gap: 8px; margin-top: 6px; text-align: left; }
.hfile { justify-self: stretch; max-width: none; }
.hfile .htk-x { margin-left: auto; }
.hbox { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px; align-items: end; border-radius: 28px; padding: 6px; background: var(--glass-warm, var(--surface));
  border: 1px solid var(--hairline); box-shadow: var(--edge-hi), var(--sh-float); }
.hbox textarea { border: 0; box-shadow: none !important; background: transparent; min-height: 44px; max-height: 120px; resize: none; padding: 11px 8px; font-size: 16px; }
.hbox .icb { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px; box-shadow: none; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.hbox .send { background: var(--primary, var(--accent)); color: #fff; }
.hbox .icb.on { background: var(--accent); color: #fff; }
.shead.hmore { margin-top: 18px; }

/* studio: export quality, export progress, captions language list */
.qlist, .llist { display: grid; gap: 8px; }
.llist { max-height: 46dvh; overflow-y: auto; gap: 0; }
.qopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 10px 16px; border-radius: 18px;
  background: var(--surface); border: 1.5px solid var(--sep); box-shadow: none; text-align: left; color: var(--ink); }
.qopt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.qopt b { display: block; font: 600 16px/1.2 var(--font); } .qopt small { font-size: 12px; color: var(--muted); }
.qopt em, .lopt em { font-style: normal; font: 600 12px/1 var(--font); color: var(--accent-text); background: var(--accent-soft); padding: 5px 9px; border-radius: 999px; }
.qopt[aria-checked="true"] em { background: var(--surface); }
.xcard { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: center; }
.xpct { font: 600 48px/1 var(--font); font-variant-numeric: tabular-nums; }
.xbar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.xbar div { height: 100%; width: 0; background: #fff; transition: width .4s var(--ease, ease); }
.xcard p { margin: 0; font-size: 14px; opacity: .85; }
.xacts { display: grid; gap: 8px; margin-top: 10px; }
.lopt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--sep); border-radius: 0; background: transparent; box-shadow: none; text-align: left; color: var(--ink); font: 500 16px/1.2 var(--font); }
.lopt span { flex: 1; }
.lopt .ic { width: 20px; height: 20px; color: var(--accent); }
.lopt[aria-selected="true"] { font-weight: 600; }
.langpick { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--sep); box-shadow: none; text-align: left; color: var(--ink); }
.langpick span { flex: 1; font-size: 14px; color: var(--muted); } .langpick b { font: 600 15px/1.2 var(--font); }
.langpick .ic { width: 18px; height: 18px; color: var(--muted); }
.lk-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--sep); }
.lk-search .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.lk-search input { flex: 1; border: 0; background: transparent; min-height: 44px; font-size: 16px; box-shadow: none !important; padding: 0; }
.ai .task:has(+ .vcard) { margin-bottom: 44px; }

/* the changes she says in the clip: one row per change, ticked ones made with one tap */
.said { display: grid; gap: 10px; scroll-margin-top: 12px; }
.said-h { font: 600 13px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.said-list { display: grid; gap: 8px; }
.said-row { display: grid; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.said-row.done { opacity: .6; }
.said-pick { display: grid; grid-template-columns: 24px 54px 1fr; gap: 10px; align-items: center; min-height: 72px; cursor: pointer; }
.said-pick input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.said-frame { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--media-bg, var(--surface-2)); }
.said-body { display: grid; gap: 3px; min-width: 0; }
.said-body q { font-size: 13px; font-style: italic; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.said-body b { font: 600 15px/1.3 var(--font); color: var(--ink); }
.said-body small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.said-body em { justify-self: start; font: 600 11px/1 var(--font); font-style: normal; letter-spacing: .03em; padding: 5px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); }
.said-body em.warn { background: var(--fill); color: var(--ink); }
.said-test { min-height: 44px; border-radius: 22px; font-size: 14px; }
.said-go { min-height: 52px; }
