/* V9: keep the preparation action and its resources in one visual journey. */
.vc-page{padding-top:32px}
.vc-page .vc-intro{gap:12px;margin-bottom:24px}
.vc-page .vc-stages{width:min(720px,100%);margin-bottom:20px}
.vc-page .vc-work-card{container:preparation / inline-size;padding:28px 30px 24px}
.vc-page .vc-focus-top{margin-bottom:12px}
.vc-page .vc-focus h2{font-weight:500}
.vc-page .vc-tutorial{margin-top:24px;margin-bottom:16px}
.vc-page .vc-tutorial .vc-prep-step{min-height:0;padding:17px 0;border-top:0;align-items:start;gap:16px}
.vc-page .vc-tutorial .vc-prep-step:first-child{padding-top:4px}
.vc-page .vc-tutorial .vc-prep-step:before{position:relative;z-index:1;align-self:start;margin-top:0;background:var(--rd-surface);border-color:var(--vc-switch-line);color:var(--rd-muted);transition:color 180ms,border-color 180ms,box-shadow 180ms}
.vc-page .vc-tutorial .vc-prep-step:not(:last-child):after{content:"";position:absolute;left:11.5px;top:42px;bottom:-16px;width:1px;background:var(--vc-switch-line)}
.vc-page .vc-tutorial .vc-prep-step:first-child:not(:last-child):after{top:29px}
.vc-page .vc-tutorial .vc-prep-step:is(:focus-within,[data-resource-active]){background:transparent}
.vc-page .vc-tutorial .vc-prep-step:is(:focus-within,[data-resource-active]):before{color:var(--rd-accent);border-color:var(--rd-accent);box-shadow:0 0 0 4px var(--rd-accent-soft)}
.vc-page .vc-step-body:has(.vc-step-resources){display:block}
.vc-page .vc-step-title{font-weight:450}
.vc-page .vc-step-resources{justify-content:flex-start;margin-top:10px;gap:8px}
.vc-page .vc-step-resources :is(.va-shortcut,.vc-step-link){border-radius:9px;background:var(--vc-paper);border-color:transparent}
.vc-page .vc-step-resources :is(.va-shortcut,.vc-step-link):is(:hover,[data-resource-current]){border-color:var(--be-control-line);background:var(--rd-surface)}
.vc-page .vc-step-resources [data-resource-current]{box-shadow:inset 0 -2px var(--rd-accent)}
.vc-page .vc-guide{border-top:1px solid var(--vc-card-line)}
.vc-page .vc-guide-toggle{min-height:56px;padding:12px 0}
.vc-page .vc-guide-read{display:inline-flex;align-items:center;min-height:44px;margin:8px 20px;color:var(--rd-accent);font-size:14px;text-decoration:none;text-underline-offset:4px}
.vc-page .vc-guide-read:hover{text-decoration:underline}
.vc-page .vc-focus-actions{margin-top:2px;padding-top:16px;border-top:0}
.vc-page .vc-tasks{padding-top:8px}
.vc-page .vc-section-head h2{font-size:1rem}
.vc-page .vc-kit-links{gap:8px}
@container preparation (min-width:660px){
  .vc-page .vc-step-body:has(.vc-step-resources){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:16px}
  .vc-page .vc-step-resources{justify-content:flex-end;margin-top:0}
  .vc-page .vc-tutorial .vc-prep-step{align-items:center;min-height:80px}
  .vc-page .vc-tutorial .vc-prep-step:before{align-self:center}
  .vc-page .vc-tutorial .vc-prep-step:not(:last-child):after{top:calc(50% + 13px);bottom:calc(-50% + 13px)}
}
/* Consistent, contextual resource surfaces. Standalone resource pages are unchanged. */
.vc-page :is(.va-dialog,.tb-dialog,.vr-dialog){border-radius:14px;box-shadow:0 16px 70px #0000001a;background:var(--vc-paper)}
.vc-page :is(.va-dialog,.tb-dialog,.vr-dialog)::backdrop{background:#1616161a;backdrop-filter:none}
.vc-page :is(.va-dialog,.tb-dialog):has(~ .vr-dialog[open])::backdrop{background:transparent}
.vc-page :is(.va-header,.tb-header,.vr-header){gap:12px;padding:20px 24px;border-bottom:1px solid var(--vc-card-line);background:var(--rd-surface)}
.vc-page [data-resource-context]{margin:0 0 6px;color:var(--rd-muted);font-size:14px;font-weight:400;line-height:1.5;letter-spacing:0;text-transform:none;overflow-wrap:anywhere}
.vc-page .va-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.vc-page .va-header [data-resource-context]{grid-column:1/-1;grid-row:2;margin:0}
.vc-page .va-header .va-back{grid-column:1;grid-row:1;justify-self:start}
.vc-page .va-header .va-close{grid-column:2;grid-row:1;justify-self:end}
.vc-page .va-header #va-title{grid-column:1/-1;grid-row:3}
.vc-page .va-header:not(:has([data-resource-context]:not([hidden]))) #va-title{grid-row:2}
.vc-page .va-header :is(.va-back,.va-close){font-size:14px}
.vc-page :is(.tb-header,.vr-header){display:grid;grid-template-columns:minmax(0,1fr) 44px auto;gap:12px 6px}
.vc-page :is(.tb-back,.vr-back){grid-column:1;grid-row:1;justify-self:start}
.vc-page :is(.tb-external,.vr-external){grid-column:2;grid-row:1;display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:22px;text-decoration:none}
.vc-page :is(.tb-external-label,.vr-external-label){display:none}
.vc-page :is(.tb-close,.vr-close){grid-column:3;grid-row:1;justify-self:end}
.vc-page :is(.tb-heading,.vr-heading){grid-column:1/-1;grid-row:2}
.vc-page .vr-header :is(.vr-back,.vr-close){font-size:14px;font-weight:400;border-color:transparent;border-radius:10px;background:transparent;color:var(--rd-muted)}
.vc-page .vr-external{font-weight:400}
.vc-page .va-detail{padding-top:20px}
@media(min-width:1200px){
  .vc-page :is(.va-dialog,.tb-dialog,.vr-dialog){position:fixed;inset:16px 16px 16px auto;margin:0;width:clamp(640px,54vw,760px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}
  .vc-page .va-shell{height:100%;max-height:100%}
  .vc-page :is(.va-dialog,.tb-dialog,.vr-dialog)[open]{animation:vc-resource-in 300ms var(--vc-ease)}
}
@media(min-width:821px) and (max-width:1199px){
  .vc-page :is(.va-dialog,.tb-dialog,.vr-dialog){width:calc(100% - 48px);height:calc(100dvh - 48px);max-height:calc(100dvh - 48px)}
  .vc-page .va-shell{height:100%;max-height:100%}
}
@media(max-width:820px){
  .vc-page :is(.va-dialog,.tb-dialog,.vr-dialog){position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .vc-page .va-shell{height:100%;max-height:100%}
  .vc-page .vc-work-card{padding:24px}
}
@media(max-width:600px){
  .vc-page{padding-top:18px}
  .vc-page .vc-intro{gap:12px;margin-bottom:14px}
  .vc-page .vc-stages{margin-bottom:12px}
  .vc-page .vc-work-card{padding:21px 20px 22px}
  .vc-page .vc-tutorial{margin-top:18px;margin-bottom:10px}
  .vc-page .vc-tutorial .vc-prep-step{padding:11px 0;gap:12px}
  .vc-page .vc-tutorial .vc-prep-step:first-child{padding-top:0}
  .vc-page .vc-tutorial .vc-prep-step:not(:last-child):after{top:36px;bottom:-10px}
  .vc-page .vc-tutorial .vc-prep-step:first-child:not(:last-child):after{top:25px}
  .vc-page .vc-step-resources{margin-top:7px;gap:7px}
  .vc-page .vc-guide-toggle{min-height:52px;padding-block:10px}
  .vc-page .vc-focus-actions{padding-top:8px}
  .vc-page :is(.va-header,.tb-header,.vr-header){padding:calc(12px + env(safe-area-inset-top)) 16px 16px;gap:8px 6px}
  .vc-page [data-resource-context]{font-size:14px;margin-bottom:6px}
  .vc-page .va-header #va-title{font-size:25px}
  .vc-page .vr-external{border-color:transparent;background:transparent}
  .vc-page .vr-header :is(.vr-back,.vr-close){padding-inline:8px}
}
@media(max-width:360px){.vc-page .vc-work-card{padding-inline:16px}.vc-page .vc-step-resources{gap:6px}}
@keyframes vc-resource-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .vc-page :is(.va-dialog,.tb-dialog,.vr-dialog)[open]{animation:none!important}
  .vc-page .vc-prep-step:before,.vc-page .vc-step-resources a{transition:none!important}
}
