/* app-next 10/16: the live workspace + the new overview (glass chat, 3D project carousel), projects carousel and the video hub */

/* ---------- the overview grid gets a projects row under the chat ---------- */
.ovg.busy.hasproj{grid-template-areas:"hero hero feat" "proj proj feat" "line wk wk" "recent recent recent"}
.ovg.busy.nofeat.hasproj{grid-template-areas:"hero hero hero" "proj proj proj" "line line wk" "recent recent recent"}
.ovg.fresh.hasproj{grid-template-areas:"hero hero steps" "proj proj steps" "how how how"}
@media (max-width:1180px){
  .ovg.busy.hasproj{grid-template-areas:"hero hero" "proj proj" "feat line" "feat wk" "recent recent"}
  .ovg.busy.nofeat.hasproj{grid-template-areas:"hero hero" "proj proj" "line wk" "recent recent"}
  .ovg.fresh.hasproj{grid-template-areas:"hero hero" "proj proj" "steps how"}
}
@media (max-width:700px){
  .ovg.busy.hasproj{grid-template-areas:"hero" "proj" "feat" "line" "wk" "recent"}
  .ovg.busy.nofeat.hasproj{grid-template-areas:"hero" "proj" "line" "wk" "recent"}
  .ovg.fresh.hasproj{grid-template-areas:"hero" "proj" "steps" "how"}
}
.ov-proj{grid-area:proj;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.ov-proj .ovh{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ov-proj h2{margin:0;font:600 18px/1.2 var(--ui);color:var(--ink)}
.ov-proj .more{font-size:13.5px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}

/* ---------- the glass chat: the ONLY glass in the workspace (founder 10/16) ---------- */
.ov-chat{position:relative;z-index:1}
.gc{position:relative;display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:26px;color:#0E0E10;
  background:linear-gradient(150deg,rgba(255,255,255,.86),rgba(255,255,255,.62));border:1px solid rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.5),0 30px 60px -28px rgba(0,0,0,.55);
  -webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5)}
.gc::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.55) 45%,transparent 60%);opacity:.5}
.gc-me{align-self:flex-end;max-width:80%;font-size:13.5px;color:#4B5058;background:rgba(14,14,16,.06);border-radius:14px;padding:6px 12px;overflow-wrap:anywhere}
.gc-say{display:flex;flex-direction:column;gap:4px;min-height:52px}
.gc .gc-line{margin:0;font:500 clamp(17px,1.5vw,21px)/1.35 var(--mono);color:#0E0E10;text-wrap:pretty;overflow-wrap:anywhere}
.gc .gc-sub{margin:0;font-size:14px;color:#4B5058}.gc .gc-sub:empty{display:none}
.gc-ch{display:flex;flex-wrap:wrap;gap:8px}.gc-ch:empty{display:none}
.gc-c{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border-radius:99px;border:1px solid rgba(14,14,16,.16);background:rgba(255,255,255,.7);color:#0E0E10;font:500 14px var(--ui);cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}
.gc-c:hover{background:#fff;border-color:rgba(14,14,16,.35)}
.gc-c.go{background:#0E0E10;color:#fff;border-color:#0E0E10}
.gc-files{display:flex;flex-wrap:wrap;gap:6px}.gc-files:empty{display:none}
.gc-f{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#4B5058;background:rgba(14,14,16,.06);border-radius:99px;padding:4px 11px}
.gc-f i{width:7px;height:7px;border-radius:50%;background:#9aa0a8}.gc-f.ok i{background:#1f9d63}.gc-f.bad i{background:#d33a4a}.gc-f.live i{background:#e5484d;animation:gcp 1s infinite}
@keyframes gcp{50%{opacity:.3}}
.gc-in{display:flex;align-items:center;gap:6px;background:#fff;border-radius:99px;padding:6px;border:1px solid rgba(14,14,16,.08);transition:box-shadow .2s}
.gc-in:focus-within{box-shadow:0 0 0 5px rgba(255,79,163,.28)}
.gc-in input#gcIn{flex:1;min-width:0;border:0;outline:none;background:none;height:42px;font:400 15.5px var(--ui);color:#0E0E10;padding:0 6px}
.gc-ib,.gc-go{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:0;background:none;color:#4B5058;cursor:pointer}
.gc-ib:hover{background:#F3F4F6;color:#0E0E10}
.gc-ib svg,.gc-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gc-go{background:#0E0E10;color:#fff}.gc-go:disabled{background:#CDD1D7;cursor:default}
.gc.rec .gc-mic{background:#e5484d;color:#fff}
.gc :focus-visible{outline:2px solid #0E0E10;outline-offset:2px}

/* ---------- the 3D carousel ---------- */
.c3{position:relative;padding:4px 0 26px}
.c3-stage{position:relative;height:clamp(250px,26vw,330px);perspective:1200px;transform-style:preserve-3d;outline:none;touch-action:pan-y;user-select:none}
.c3-stage:focus-visible{box-shadow:0 0 0 2px var(--ink);border-radius:16px}
.c3-card{position:absolute;left:50%;top:6px;width:clamp(170px,17vw,220px);margin-inline-start:calc(clamp(170px,17vw,220px) / -2);display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--ink);
  transition:transform .6s cubic-bezier(.2,.7,.2,1),opacity .4s;transform-style:preserve-3d;-webkit-user-drag:none}
[dir="rtl"] .c3-card{left:auto;right:50%}
.c3-th{position:relative;display:grid;place-items:center;aspect-ratio:4/5;border-radius:18px;background:var(--surface-2) center/cover no-repeat;border:1px solid var(--line);overflow:hidden;
  box-shadow:0 22px 40px -24px rgba(14,14,16,.5)}
.c3-card.front .c3-th{box-shadow:0 30px 50px -24px rgba(14,14,16,.6);border-color:var(--line-2)}
.c3-mk{font:700 64px/1 var(--display);color:var(--ink-3)}
.c3-b{position:absolute;top:10px;inset-inline-end:10px;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:var(--pink);color:#fff;font:700 12px/24px var(--ui);font-style:normal;text-align:center}
.c3-tx{display:flex;flex-direction:column;gap:1px;text-align:center}
.c3-tx b{font:600 15px/1.25 var(--ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c3-tx small{font:400 12.5px var(--ui);color:var(--ink-3)}
.c3-card:not(.front) .c3-tx{opacity:.6}
.c3-card:focus-visible .c3-th{outline:2px solid var(--ink);outline-offset:3px}
.c3-ar{position:absolute;top:calc(50% - 30px);z-index:200;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;box-shadow:0 6px 16px -8px rgba(0,0,0,.3)}
.c3-ar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.c3-ar.prev{inset-inline-start:4px}.c3-ar.next{inset-inline-end:4px}
[dir="rtl"] .c3-ar svg{transform:scaleX(-1)}
.c3-dots{position:absolute;bottom:4px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.c3-dots i{width:6px;height:6px;border-radius:50%;background:var(--line-2);transition:width .3s,background .3s}
.c3-dots i.on{width:18px;border-radius:3px;background:var(--ink)}
.c3-empty{color:var(--ink-3);margin:8px 0}
@media (prefers-reduced-motion:reduce){.c3-card{transition:none}}
.pr-car{margin:4px 0 18px}
.pv-car{margin:16px 0;display:flex;flex-direction:column;gap:6px;padding:16px 18px 6px}
.pv-car .ovh{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pv-car h2{margin:0;font:600 18px/1.2 var(--ui)}
.pv-car .more{font-size:13.5px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}

/* ---------- the video hub: every part of the video, in the order the work happens ---------- */
.vhub{display:flex;flex-direction:column;gap:12px;margin:18px 0 6px}
.vhub-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.vhub-hd h2{margin:0;font:600 18px/1.2 var(--ui)}.vhub-hd p{margin:0;color:var(--ink-3);font-size:13.5px}
.vhub-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media (max-width:1180px){.vhub-g{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){.vhub-g{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.vhub-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
.vp{position:relative;display:flex;flex-direction:column;gap:3px;width:100%;min-height:128px;height:100%;padding:14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  text-align:start;text-decoration:none;font:inherit;cursor:pointer;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.vp:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 14px 28px -18px rgba(14,14,16,.45);border-color:var(--line-2)}
.vp:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.vp-th{position:absolute;inset:0;background:center/cover no-repeat;opacity:.16;pointer-events:none}
.vp-n{font:500 12px var(--mono);color:var(--ink-3)}
.vp b{font:600 15.5px/1.2 var(--ui);margin-top:auto}
.vp small{font-size:12.5px;color:var(--ink-2);line-height:1.35;overflow-wrap:anywhere}
.vp-st{position:absolute;top:12px;inset-inline-end:12px;font:600 11px var(--ui);padding:3px 8px;border-radius:99px;background:var(--surface-2);color:var(--ink-2)}
.vp.done .vp-st{background:color-mix(in srgb,var(--ok,#1f9d63) 16%,transparent);color:var(--ok,#1f9d63)}
.vp.you{border-color:var(--pink);box-shadow:0 0 0 3px color-mix(in srgb,var(--pink) 25%,transparent)}
.vp.you .vp-st{background:var(--pink);color:#fff}
.vp.work .vp-st{background:color-mix(in srgb,var(--blue,#3b6cff) 16%,transparent);color:var(--blue,#3b6cff)}
.vp.wait{opacity:.55;cursor:default}
.vp:disabled{cursor:default}
.card.flash{box-shadow:0 0 0 3px var(--pink);transition:box-shadow .3s}
