.vd-app .lc-studio { max-width: 1040px; }
.vd-app .st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 0 24px; }
.vd-app .st-head h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
.vd-app .st-stats { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--vd-muted); font-size: .9375rem; }
.vd-app .st-stats b { color: var(--vd-ink); font-weight: 700; }
.vd-app .st-stats i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* tints shared by feature, rows */
.vd-app .st-feature, .vd-app .st-row { --a: #f2c25c; --b: #e0912f; }
.vd-app [data-tint="amber"] { --a: #f2c25c; --b: #e0912f; }
.vd-app [data-tint="coral"] { --a: #ee7a5b; --b: #cf4a38; }
.vd-app [data-tint="indigo"] { --a: #8b94d6; --b: #5b66b0; }
.vd-app [data-tint="teal"] { --a: #5ec4b0; --b: #2d8c85; }
.vd-app [data-tint="plum"] { --a: #b57ac4; --b: #7f4a9a; }
.vd-app [data-tint="slate"] { --a: #5d7391; --b: #34465f; }

/* latest deck */
.vd-app .st-feature { position: relative; display: grid; grid-template-columns: minmax(150px, 280px) 1fr auto; align-items: center; gap: 36px; padding: 32px 40px; border-radius: 36px; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: var(--lc-shadow); transition: transform 320ms var(--vd-ease), box-shadow 320ms; }
.vd-app .st-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 10% 0%, #ffffff47, transparent 60%); }
.vd-app .st-feature:hover { transform: translateY(-4px); box-shadow: var(--lc-shadow-lift); }
.vd-app .st-feature:active { transform: scale(.99); }
.vd-app .st-feature-stack { position: relative; aspect-ratio: 1; width: min(100%, 200px); justify-self: center; }
.vd-app .st-sheet { position: absolute; inset: 0; border-radius: 28px; display: grid; place-items: center; font-size: 5.5rem; transition: transform 400ms var(--vd-ease); }
.vd-app .st-sheet-0 { background: #fffefa30; backdrop-filter: blur(2px); box-shadow: 0 16px 32px #0003, inset 0 0 0 1.5px #ffffff59; filter: none; }
.vd-app .st-sheet-1 { background: #ffffff26; transform: rotate(-7deg) translate(-8px, 2px); }
.vd-app .st-sheet-2 { background: #ffffff14; transform: rotate(8deg) translate(10px, 0); }
.vd-app .st-sheet img { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 10px 22px #0003; }
.vd-app .st-feature:hover .st-sheet-1 { transform: rotate(-12deg) translate(-16px, 2px); }
.vd-app .st-feature:hover .st-sheet-2 { transform: rotate(13deg) translate(18px, 0); }
.vd-app .st-feature-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vd-app .st-feature-body small { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #ffffff2e; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vd-app .st-feature-body strong { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; overflow-wrap: break-word; }
.vd-app .st-feature-topics { color: #ffffffe0; font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-app .st-feature-meta { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #ffffffb3; }
.vd-app .st-feature-go { align-self: end; padding: 12px 20px; border-radius: 99px; background: #fffefa; color: var(--vd-ink); font-weight: 700; font-size: .9375rem; box-shadow: 0 6px 16px #0002; transition: transform 240ms var(--vd-ease); }
.vd-app .st-feature:hover .st-feature-go { transform: translateX(4px); }

/* rest as a tidy shelf of rows */
.vd-app .st-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vd-app .st-row { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 24px; background: var(--vd-panel); box-shadow: 0 1px 0 #fff inset, 0 4px 14px #263b5810; border: 1px solid var(--vd-line); color: var(--vd-ink); transition: transform 240ms var(--vd-ease), box-shadow 240ms; }
.vd-app .st-row:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #263b581c; }
.vd-app .st-row:active { transform: scale(.985); }
.vd-app .st-chip { flex: 0 0 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px #ffffff40; overflow: hidden; }
.vd-app .st-chip img { width: 100%; height: 100%; object-fit: cover; }
.vd-app .st-chip svg { width: 26px; height: 26px; }
.vd-app .st-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-app .st-row-body strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vd-app .st-row-body span { font-size: .8125rem; color: var(--vd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-app .st-row-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.vd-app .st-row-meta b { font-size: 1.375rem; font-weight: 750; letter-spacing: -.03em; }
.vd-app .st-row-meta small { font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vd-muted); }
.vd-app .st-row-new { background: transparent; border: 2px dashed #c9cabf; box-shadow: none; color: var(--vd-muted); }
.vd-app .st-row-new .st-chip { background: var(--lc-fill, #efede4); color: var(--vd-action); box-shadow: none; }
.vd-app .st-row-new:hover { border-color: var(--vd-action); color: var(--vd-action); box-shadow: none; }

/* empty */
.vd-app .st-blank { display: grid; justify-items: center; gap: 18px; padding: 64px 20px; border: 2px dashed #c9cabf; border-radius: 36px; text-align: center; color: var(--vd-ink); }
.vd-app .st-blank p { margin: 0; font-size: 1.25rem; font-weight: 700; }
.vd-app .st-blank-fan { position: relative; width: 90px; height: 90px; }
.vd-app .st-blank-fan i { position: absolute; inset: 10px 22px; border-radius: 16px; background: linear-gradient(150deg, #ee7a5b, #cf4a38); box-shadow: 0 8px 16px #263b5826; }
.vd-app .st-blank-fan i:nth-child(1) { transform: rotate(-14deg); background: linear-gradient(150deg, #8b94d6, #5b66b0); }
.vd-app .st-blank-fan i:nth-child(2) { transform: rotate(12deg); background: linear-gradient(150deg, #f2c25c, #e0912f); }

@media (max-width: 760px) {
  .vd-app .st-feature { grid-template-columns: 96px 1fr; gap: 18px; padding: 22px; border-radius: 28px; }
  .vd-app .st-feature-stack { width: 96px; }
  .vd-app .st-sheet { font-size: 2.6rem; border-radius: 20px; }
  .vd-app .st-feature-go { grid-column: 1 / -1; text-align: center; }
  .vd-app .st-list { grid-template-columns: 1fr; gap: 10px; }
  .vd-app .st-head .lc-pill { min-height: 40px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-app .st-feature, .vd-app .st-row, .vd-app .st-sheet, .vd-app .st-feature-go { transition: none; }
  .vd-app .st-feature:hover, .vd-app .st-row:hover, .vd-app .st-feature:hover .st-sheet-1, .vd-app .st-feature:hover .st-sheet-2, .vd-app .st-feature:hover .st-feature-go { transform: none; }
}

/* filters */
.vd-app .lc-studio [hidden] { display: none !important; }
.vd-app .st-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.vd-app .st-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; min-width: 0; }
.vd-app .st-chips::-webkit-scrollbar { display: none; }
.vd-app .st-fchip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid var(--vd-line); border-radius: 99px; background: var(--vd-panel); color: var(--vd-ink); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms, transform 160ms var(--vd-ease); }
.vd-app .st-fchip small { font-size: .75rem; opacity: .55; }
.vd-app .st-fchip:hover { border-color: #b9bbb0; }
.vd-app .st-fchip:active { transform: scale(.96); }
.vd-app .st-fchip[aria-pressed="true"] { background: var(--vd-ink); border-color: var(--vd-ink); color: #fff; }
.vd-app .st-fchip:focus-visible, .vd-app .st-search:focus-visible { outline: 3px solid #3b61c6; outline-offset: 2px; }
.vd-app .st-search { flex: 0 1 200px; min-height: 40px; padding: 0 16px; border: 1px solid var(--vd-line); border-radius: 99px; background: var(--vd-panel); color: var(--vd-ink); font: inherit; font-size: .875rem; }
.vd-app .st-none { margin: 28px 0; text-align: center; color: var(--vd-muted); }
.vd-app .st-feature + .st-list { margin-top: 22px; }
.vd-app .st-row-meta small { max-width: 110px; padding: 4px 10px; border-radius: 99px; background: var(--lc-fill, #efede4); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .vd-app .st-search { flex-basis: 120px; } .vd-app .st-row-meta { display: none; } }

/* ───── Add a deck ───── */
.vd-app .st-new { max-width: 1040px; }

/* steps */

/* idea tiles */
.vd-app .st-new .st-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.vd-app .st-new .st-idea { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 190px; padding: 18px; border: 0; border-radius: 26px; text-align: left; color: #fff; font: inherit; cursor: pointer; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, var(--a, #ee7a5b), var(--b, #cf4a38)); box-shadow: var(--lc-shadow); transition: transform 280ms var(--vd-ease), box-shadow 280ms; }
.vd-app .st-new .st-idea::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 70% at 10% 0%, #ffffff40, transparent 60%); }
.vd-app .st-new .st-idea:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--lc-shadow-lift); }
.vd-app .st-new .st-idea:active { transform: scale(.97); }
.vd-app .st-new .st-idea:focus-visible { outline: 3px solid #3b61c6; outline-offset: 3px; }
.vd-app .st-idea-art { position: absolute; right: -14px; top: -14px; width: 92px; height: 92px; border-radius: 26px; overflow: hidden; transform: rotate(9deg); box-shadow: 0 10px 22px #0003; transition: transform 400ms var(--vd-ease); }
.vd-app .st-idea-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-app .st-idea:hover .st-idea-art { transform: rotate(14deg) scale(1.08); }
.vd-app .st-new .st-idea small { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffffffcc; margin-top: 62px; }
.vd-app .st-idea-text { font-size: 1.25rem; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: break-word; }
.vd-app .st-idea-copy { margin-top: auto; padding: 6px 14px; border-radius: 99px; background: #fffefa; color: var(--vd-ink); font-size: .8125rem; font-weight: 650; box-shadow: 0 4px 10px #0002; }
.vd-app .st-new .st-idea.is-copied .st-idea-copy { background: #2f7a55; color: #fff; }

/* builder */
.vd-app .st-new .st-build { margin-top: 22px; }
.vd-app .st-new .st-build > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 99px; border: 2px dashed #c9cabf; color: var(--vd-action); font-weight: 650; cursor: pointer; list-style: none; transition: border-color 160ms, background 160ms; }
.vd-app .st-new .st-build > summary::-webkit-details-marker { display: none; }
.vd-app .st-new .st-build > summary:hover { border-color: var(--vd-action); background: #c74e360d; }
.vd-app .st-new .st-build[open] > summary { margin-bottom: 22px; }
.vd-app .st-new .st-builder { margin: 0; padding: 0 0 0; background: none; box-shadow: none; }

@media (max-width: 760px) {
  .vd-app .st-new .st-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vd-app .st-new .st-idea { min-height: 170px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-app .st-new .st-idea, .vd-app .st-idea-art { transition: none; }
  .vd-app .st-new .st-idea:hover { transform: none; }
}

.vd-app .st-toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 8px 8px 8px 20px; border-radius: 99px; background: var(--vd-ink); color: #fff; font-weight: 600; }
.vd-app .st-toast form { margin: 0; }
.vd-app .st-undo { min-height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: #fffefa; color: var(--vd-ink); font: inherit; font-weight: 700; cursor: pointer; }

/* hero: headline on top, the clip peeking up from the bottom edge */

/* steps share the clip's story: tighter connect step, tiles that fill the row */
.vd-app .st-new .st-ideas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vd-app .st-new .st-idea { grid-column: span 2; }
.vd-app .st-new .st-idea:nth-child(-n+2) { grid-column: span 3; min-height: 210px; }
.vd-app .st-new .st-idea:nth-child(-n+2) .st-idea-art { width: 112px; height: 112px; }
.vd-app .st-new .st-idea:nth-child(-n+2) .st-idea-text { font-size: 1.5rem; }
@media (max-width: 760px) {
  .vd-app .st-new .st-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-app .st-new .st-idea, .vd-app .st-new .st-idea:nth-child(-n+2) { grid-column: span 1; min-height: 170px; }
}


/* Add a deck */
.vd-app .stn-hero { display: flex; flex-direction: column; align-items: center; padding: 28px 0 8px; text-align: center; }
.vd-app .stn-hero h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.04; }
.vd-app .stn-rotor { display: grid; justify-items: center; color: var(--vd-action); }
.vd-app .stn-rotor > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); animation: stn-rotor 15s var(--vd-ease) infinite; animation-delay: calc(var(--i) * 3s); }
@keyframes stn-rotor { 0% { opacity: 0; transform: translateY(.35em); } 4%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-.35em); } }
.vd-app .stn-works { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; min-height: 44px; padding: 0 8px 0 18px; border: 1px solid var(--vd-line); border-radius: 99px; background: var(--vd-panel); color: var(--vd-ink); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px #1e2d4912; transition: transform 200ms var(--vd-ease), box-shadow 200ms; }
.vd-app .stn-works:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #1e2d4918; }
.vd-app .stn-works:focus-visible { outline: 3px solid #3b61c6; outline-offset: 3px; }
.vd-app .stn-works span { padding: 6px 14px; border-radius: 99px; background: var(--vd-ink); color: #fff; font-size: .8125rem; font-weight: 650; }
.vd-app .stn-works.is-connected { padding: 0 18px 0 12px; color: #2f7a55; background: #eef6ef; border-color: #cfe5d6; }
.vd-app .stn-works svg { width: 18px; height: 18px; }
.vd-app .stn-clip { display: block; width: min(100%, 920px); height: auto; aspect-ratio: 16 / 10; margin-top: 32px; border-radius: 32px; background: #f6f4ee; box-shadow: 0 30px 70px #1e2d4922, 0 0 0 1px var(--vd-line); }
.vd-app .stn-sub { margin: 6px 0 0; color: var(--vd-muted); }
.vd-app .st-new .stn-ideas { margin-top: 44px; }
.vd-app .stn-ideas .st-ideas { margin-top: 0; }
.vd-app .stn-ideas h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.vd-app .st-status { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #2f7a55; font-weight: 600; }
.vd-app .st-status svg { width: 18px; height: 18px; }

/* connect popover */
.vd-app .stn-pop { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border: 0; border-radius: 32px; background: var(--vd-panel); color: var(--vd-ink); box-shadow: 0 40px 100px #1e2d4940; }
.vd-app .stn-pop::backdrop { background: #1e2d4966; backdrop-filter: blur(6px); }
.vd-app .stn-pop h2 { margin: 0; font-size: 1.75rem; font-weight: 750; letter-spacing: -.04em; }
.vd-app .stn-pop-close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--lc-fill); color: var(--vd-ink); cursor: pointer; }
.vd-app .stn-pop-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vd-app .stn-connect .su-seg { margin-top: 20px; }
.vd-app .stn-how { list-style: none; counter-reset: s; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.vd-app .stn-how[hidden] { display: none; }
.vd-app .stn-how li { counter-increment: s; display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: .9375rem; }
.vd-app .stn-how li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lc-fill); font-size: .75rem; font-weight: 700; color: var(--vd-muted); }
.vd-app .stn-open { margin-left: auto; padding: 6px 14px; border-radius: 99px; background: var(--vd-ink); color: #fff; font-size: .8125rem; font-weight: 650; }
.vd-app .stn-pop .st-address { display: flex; gap: 10px; align-items: stretch; }
.vd-app .stn-pop .st-address code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 16px; min-height: 48px; border-radius: 16px; background: #fffefa; border: 1px solid var(--vd-line); font-size: .8125rem; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 760px) {
  .vd-app .stn-pop { padding: 24px 20px; border-radius: 26px; }
  .vd-app .stn-pop .st-address { flex-direction: column; }
  .vd-app .stn-clip { margin-top: 24px; border-radius: 20px; }
  .vd-app .stn-ideas { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .vd-app .stn-works { transition: none; } .vd-app .stn-rotor > span { animation: none; } .vd-app .stn-rotor > span:first-child { opacity: 1; transform: none; } }

/* decks as stacks of cards; rows never outgrow the screen */
.vd-app .st-list > li { min-width: 0; }
.vd-app .st-row { min-width: 0; padding: 14px 18px 14px 16px; }
.vd-app .st-row-body span { display: block; max-width: 100%; }
.vd-app .st-row-body em { font-style: normal; font-size: .6875rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--vd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-app .st-row-meta { display: none; }
.vd-app .st-chip.st-deckcard { position: relative; flex: 0 0 60px; width: 60px; height: 80px; margin: 0 8px 0 4px; border-radius: 0; background: none; box-shadow: none; overflow: visible; display: block; }
.vd-app .st-deckcard::before, .vd-app .st-deckcard::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 2px 6px #263b5826, inset 0 0 0 1px #ffffff59; transition: transform 300ms var(--vd-ease); }
.vd-app .st-deckcard::before { transform: rotate(-9deg) translate(-5px, 1px); opacity: .55; }
.vd-app .st-deckcard::after { transform: rotate(8deg) translate(6px, 0); opacity: .8; }
.vd-app .st-deckcard-face { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--a), var(--b)); color: #fff; font-size: 1.75rem; font-weight: 750; box-shadow: 0 6px 14px #263b5833, 0 0 0 2.5px #fffefa; }
.vd-app .st-deckcard-face img { width: 100%; height: 100%; object-fit: cover; }
.vd-app .st-row:hover .st-deckcard::before { transform: rotate(-14deg) translate(-8px, 1px); }
.vd-app .st-row:hover .st-deckcard::after { transform: rotate(13deg) translate(9px, 0); }
.vd-app .st-row-new .st-chip { width: 60px; height: 80px; border-radius: 12px; margin: 0 8px 0 4px; display: grid; place-items: center; border: 2px dashed #c9cabf; background: none; }
@media (max-width: 760px) {
  .vd-app .st-feature { grid-template-columns: 96px minmax(0, 1fr); }
  .vd-app .st-feature-body { min-width: 0; }
  .vd-app .lc-studio { overflow-x: clip; }
}
@media (prefers-reduced-motion: reduce) { .vd-app .st-deckcard::before, .vd-app .st-deckcard::after { transition: none; } }
