/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-800-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/vid-ui/be-vietnam-pro-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Vid interface system. Loaded last; visual rules only, no access or data changes. */
:root {
  --vid-font:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",sans-serif;
  --vid-ink:#242020;
  --vid-muted:#716767;
  --vid-body:#faf9f9;
  --vid-surface:#fff;
  --vid-surface-soft:#f7f5f5;
  --vid-line:#e7e4e4;
  --vid-lilac:#ebe4e4;
  --vid-lilac-soft:#f7f3f3;
  --vid-accent:#e36a70;
  --vid-accent-ink:#a0363b;
  --vid-radius:20px;
  --vid-radius-small:12px;
  --vid-shadow:0 8px 28px rgb(43 29 71 / 4%);
  --vid-focus:3px solid #d76268;
  --vid-ui-shadow:0 12px 38px rgb(43 29 71 / 6%);
  --vid-ui-motion:160ms cubic-bezier(.2,.7,.2,1);
  font-family:var(--vid-font);
  font-size:16px;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
}
html { -webkit-text-size-adjust:100%; scroll-padding-top:24px; }
body { font-family:var(--vid-font)!important; font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased; }
body:not(.homepage-next) { background-color:var(--vid-body); color:var(--vid-ink); }
*,*::before,*::after { box-sizing:border-box; }
:where(button,input,textarea,select,summary) { font-family:var(--vid-font)!important; }
:where(h1,h2,h3,h4) { font-family:var(--vid-font)!important; text-wrap:balance; }
:where(p,li,dd,label,legend,button,a) { overflow-wrap:break-word; }
:where(img,svg,video,canvas) { max-width:100%; }
:where(button,a,input,textarea,select,summary):focus-visible { outline:var(--vid-focus); outline-offset:4px; }
:where(button,a) { -webkit-tap-highlight-color:transparent; }
:where(button,.button,.dv-primary,.dv-quiet,.primary,.secondary,.info-studio,.vid-guide-action,.vid-nav-toggle) {
  min-height:44px;
  border-radius:var(--vid-radius-small);
  font-family:var(--vid-font)!important;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  transition:background-color var(--vid-ui-motion),border-color var(--vid-ui-motion),color var(--vid-ui-motion),box-shadow var(--vid-ui-motion),transform var(--vid-ui-motion);
}
:where(button,.button,.dv-primary,.dv-quiet,.primary,.secondary) { white-space:normal; }
:where(button):disabled {
  opacity:1;
  cursor:default;
}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) {
  max-width:100%;
  min-width:0;
  min-height:48px;
  font-size:16px;
  line-height:1.6;
  border-radius:12px;
  accent-color:var(--vid-accent-ink);
  transition:border-color var(--vid-ui-motion),box-shadow var(--vid-ui-motion),background-color var(--vid-ui-motion);
}
:where(input,textarea,select)::placeholder { color:var(--vid-muted); opacity:1; }
:where(input,textarea,select):focus-visible { border-color:var(--vid-accent); box-shadow:0 0 0 4px rgb(143 115 218 / 12%); }
:where(textarea) { resize:vertical; }
:where(details)>summary { min-height:44px; cursor:pointer; }
:where(label,legend) { font-size:14px; line-height:1.6; }
:where([role=status],[role=alert]) { overflow-wrap:anywhere; }

/* The same app shell across the owner workspace and customer workspace. */
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) {
  --page:var(--vid-body);--rail:var(--vid-surface);--panel:var(--vid-surface);--panel-quiet:var(--vid-surface-soft);
  --border:var(--vid-line);--line:var(--vid-line);--text:var(--vid-ink);--muted:var(--vid-muted);
  --accent:var(--vid-accent-ink);--accent-soft:var(--vid-lilac-soft);--accent-border:var(--vid-accent);--button:var(--vid-surface);
  grid-template-columns:232px minmax(0,1fr);
  font-size:16px;
  line-height:1.65;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace)>:is(main,.workspace-main) {
  min-width:0;
  width:100%;
  max-width:1480px;
  padding:36px clamp(24px,3.2vw,52px) 64px;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-rail,.rail) {
  width:100%;
  min-width:0;
  padding:28px 16px 20px;
  border-color:var(--vid-line);
  background:var(--vid-surface);
  scrollbar-width:thin;
  scrollbar-color:#ebcacb transparent;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-brand,.wordmark) { padding:0 10px 8px; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-nav,.rail-nav) {
  display:grid;
  gap:5px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-nav a,.rail-nav a,.dv-tools a,.dv-tools summary,.dv-logout button,.rail button) {
  min-height:46px;
  padding:11px 12px;
  border-radius:11px;
  color:var(--vid-muted);
  font-size:14px;
  line-height:1.5;
  font-weight:500;
  text-decoration:none;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-nav a[aria-current],.rail-nav a[aria-current],.rail button[aria-current=true]) {
  color:var(--vid-accent-ink);
  background:var(--vid-lilac-soft);
  font-weight:700;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-top,.workspace-head) { margin-bottom:28px; align-items:center; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(h1,.workspace-head h1) {
  margin:5px 0 0;
  font-size:clamp(30px,3.5vw,43px);
  line-height:1.25;
  font-weight:750;
  letter-spacing:-.04em;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(h2,.dv-section h2) { line-height:1.35; letter-spacing:-.025em; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-channel,.dv-meta,.dv-section-head p,.calendar-slot p,.idea-brief p,.preview-caption,.owner-estimate) {
  font-size:14px;
  line-height:1.65;
  color:var(--vid-muted);
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.primary,.dv-primary,button.primary,.flow-primary,#save-story,.owner-flow-footer button.primary) {
  min-height:48px;
  padding:12px 20px;
  color:white;
  border:1px solid var(--vid-ink);
  background:var(--vid-ink);
  font-weight:650;
  box-shadow:0 4px 12px rgb(36 34 43 / 8%);
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-quiet,.secondary,.opening-jump,.packaging-action) {
  min-height:44px;
  border-radius:12px;
  border-color:var(--vid-line);
  color:var(--vid-accent-ink);
  background:var(--vid-surface-soft);
  padding:10px 14px;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) button:disabled {
  color:var(--vid-muted);
  border-color:var(--vid-line);
  background:var(--vid-surface-soft);
  opacity:1;
  box-shadow:none;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(input,select,textarea) {
  color:var(--vid-ink);
  background:var(--vid-surface);
  border:1px solid var(--vid-line);
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.project-head,.preview-card,.scene-card,.timeline-card,.exports-card,.dv-production,.dv-calendar,.finance-card,.opening-card,.packaging-card,.settings-card,.dv-project,.flow-content-card,.flow-export-card) {
  border-color:var(--vid-line);
  border-radius:var(--vid-radius);
  background-color:var(--vid-surface);
  box-shadow:var(--vid-shadow);
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-project,.settings-card,.finance-card,.opening-card,.packaging-card) { padding:22px; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) .dv-project-title { font-size:17px; line-height:1.55; font-weight:650; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-language,.studio-language) {
  display:flex;gap:4px;padding:4px;border:1px solid var(--vid-line);border-radius:13px;background:white;
}
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-language a,.studio-language a) { min-height:44px;min-width:44px;border-radius:9px;font-size:14px; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-language a[aria-current],.studio-language a[aria-current]) { color:var(--vid-accent-ink);background:var(--vid-lilac-soft);font-weight:700; }

/* Explicit owner control rules out-rank the legacy 12–13px form styles. */
:is(.owner-clarity,.studio-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) { min-height:48px;font-size:16px;line-height:1.65; }
:is(.owner-clarity,.studio-workspace) :is(button,.packaging-action,.opening-jump) { min-height:44px;font-size:14px;line-height:1.5; }
:is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-project,.dv-start) { transition:border-color var(--vid-ui-motion),box-shadow var(--vid-ui-motion),transform var(--vid-ui-motion); }
.studio-workspace :is(.packaging-choice-tools,.packaging-option-tools) button { min-height:44px;font-size:14px; }
/* First-use guidance names the next task, rather than the implementation. */
.vid-page-guide,.clarity-intro {
  min-width:0;
  padding:24px 28px;
  margin:0 0 26px;
  border:1px solid #f1dadb;
  border-radius:20px;
  background:linear-gradient(115deg,#f6f3f3 0,#fcfbfb 66%,#fff 100%);
}
.vid-page-guide>p:first-child,.clarity-intro>p:first-child { color:var(--vid-accent-ink); }
.vid-page-guide h2,.clarity-intro h2 { margin:0 0 9px;font-size:clamp(22px,2.6vw,29px);line-height:1.35;font-weight:700;letter-spacing:-.03em; }
.vid-page-guide p,.clarity-intro p { max-width:820px;margin:8px 0;color:var(--vid-muted);font-size:16px;line-height:1.7; }
.vid-guide-action,.clarity-next {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;max-width:100%;margin-top:14px;padding:12px 20px;
  color:white;background:var(--vid-ink);border:1px solid var(--vid-ink);border-radius:12px;text-decoration:none;font-size:16px;font-weight:650;
}
.vid-quick-start { margin:0 0 24px; }
.vid-quick-start-head { margin-bottom:18px; }
.vid-quick-start-head h2 { margin:0 0 8px;font-size:24px;line-height:1.4; }
.vid-quick-start-head>p:not(.vid-guide-eyebrow),.vid-dashboard-intro { margin:8px 0 0;color:var(--vid-muted);font-size:16px;line-height:1.7;max-width:820px; }
.vid-guide-eyebrow,.vid-start-guide .eyebrow { margin:0 0 9px;font-size:14px!important;font-weight:700;line-height:1.6;letter-spacing:.08em;color:var(--vid-accent-ink)!important; }
.vid-guide-links { display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:16px; }
.vid-guide-links .vid-guide-action { margin-top:0; }
.vid-guide-back { display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:var(--vid-accent-ink);text-underline-offset:4px; }
.owner-clarity .dv-start-arrow { display:none; }

.vid-guide-steps,.clarity-guide,.vid-quick-steps,.entry-first-steps {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;margin:20px 0 0;padding:0;counter-reset:vid-steps;
}
.vid-guide-steps>li,.clarity-guide-step,.vid-quick-steps>li,.entry-first-steps>li {
  position:relative;min-width:0;display:grid;align-content:start;gap:7px;
  border:1px solid var(--vid-line);border-radius:16px;background:var(--vid-surface);padding:20px;
  color:var(--vid-muted);font-size:14px;line-height:1.65;
}
.vid-guide-steps>li::before,.vid-quick-steps>li::before,.entry-first-steps>li::before {
  counter-increment:vid-steps;content:counter(vid-steps);display:grid;place-items:center;width:30px;height:30px;margin-bottom:4px;
  border-radius:10px;background:var(--vid-lilac-soft);color:var(--vid-accent-ink);font-size:14px;font-weight:700;
}
.vid-guide-steps strong,.clarity-guide-step strong,.vid-quick-steps strong,.entry-first-steps strong { color:var(--vid-ink);font-size:16px;line-height:1.5;font-weight:650; }
.owner-clarity .dv-channel-link > span[aria-hidden="true"] { display:none; }
.vid-guide-steps p,.vid-quick-steps p,.entry-first-steps p { margin:0;color:var(--vid-muted);font-size:14px; }
.vid-start-guide {
  position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:20px;align-items:center;
  margin:0 0 28px;padding:30px 32px;border:1px solid #f1dadb;border-radius:22px;background:linear-gradient(115deg,#f5f1f1,#fcfbfb 68%,white);overflow:hidden;
}
.vid-start-guide>div { min-width:0; }
.vid-start-guide>.vid-quick-steps { grid-column:1/-1;margin-top:10px; }
.vid-start-guide h2 { font-size:clamp(24px,3vw,32px);line-height:1.35;letter-spacing:-.035em;margin:0 0 12px; }
.vid-start-guide p { color:var(--vid-muted);font-size:16px;line-height:1.7;max-width:690px;margin:8px 0 20px; }
.vid-start-guide .dv-primary { font-size:16px;min-height:50px; }
.vid-start-art { position:relative;width:144px;height:144px;display:block;border:1px solid #f0d7d8;background:rgb(255 255 255 / 62%);border-radius:30px;transform:rotate(7deg);box-shadow:0 20px 32px rgb(96 65 149 / 8%); }
.vid-start-art>span { position:absolute;left:44px;top:28px;display:block;border:1px solid var(--vid-accent-ink);border-radius:12px;width:58px;height:88px;background:var(--vid-lilac); }
.vid-start-art>span:nth-child(1) { transform:translateX(-15px) rotate(-12deg);background:white; }
.vid-start-art>span:nth-child(2) { transform:translateY(-7px);z-index:2; }
.vid-start-art>span:nth-child(3) { transform:translateX(15px) rotate(12deg);background:#faf7f7; }
.vid-scope-note { font-size:14px!important;line-height:1.7!important;color:var(--vid-muted);max-width:850px; }
.vid-format-options { margin-top:24px;border:1px solid var(--vid-line);border-radius:18px;background:white;padding:8px 22px; }
.vid-format-options>summary { min-height:48px;padding:10px 0;font-size:16px;font-weight:650; }
.vid-format-options[open]>summary { margin-bottom:14px; }
.vid-format-options .dv-format-section { margin-top:0; }
.vid-editor-help { padding:15px 18px;border:1px solid #f1dadb;border-radius:14px;background:#f9f6f6;color:var(--vid-accent-ink);font-size:14px;line-height:1.7;margin:14px 0 22px; }
.vid-step-heading { margin:0 0 12px;font-size:22px;line-height:1.4;color:var(--vid-ink); }
.vid-draft-finish { display:grid;justify-items:start;gap:14px;margin:0;padding:28px;border:1px solid #f1dadb;border-radius:20px;background:linear-gradient(125deg,#f7f3f3,white); }
.vid-draft-finish h2 { margin:0;font-size:26px;line-height:1.35; }
.vid-draft-finish p { margin:0;max-width:720px;font-size:16px;line-height:1.7; }
.vid-draft-finish .button { min-height:48px; }
.vid-mobile-bar,.clarity-mobile-bar { display:none; }

/* Inputs and steps remain readable in the editing task. */
.customer-shared-studio .studio-intro h1 { font-size:clamp(30px,3.6vw,42px); }
.customer-shared-studio :is(.studio-intro p,.flow-content-card>p,.flow-content-card label,.scene-list label,.flow-content-card textarea,.preview-narration) { font-size:16px;line-height:1.7; }
.customer-shared-studio :is(.flow-context>p,.help,.flow-advanced summary,.scene-advanced summary,.flow-history summary) { font-size:14px;line-height:1.65; }
.customer-shared-studio .customer-flow-steps { margin:24px 0 22px;border:1px solid var(--vid-line);padding:6px;border-radius:17px;background:#f4efef; }
.customer-shared-studio .customer-flow-steps button { font-size:16px;min-height:68px;border-radius:11px;padding:12px 14px; }
.customer-shared-studio .customer-flow-steps button[aria-current=step] { border-color:#eccccd;background:white!important;color:var(--vid-accent-ink);box-shadow:0 3px 10px rgb(43 29 71 / 5%); }
.customer-shared-studio .flow-global-status { padding:14px 0 18px;gap:12px;border-color:var(--vid-line); }
.customer-shared-studio .flow-global-status :is(p,span) { font-size:14px; }
.customer-shared-studio .flow-global-status #studio-status { min-width:0;flex:1; }
.customer-shared-studio :is(.flow-content-card,.flow-export-card,.scene-card,.allowance-card,.preview-column>section) { padding:24px; }
.customer-shared-studio .scene-card+.scene-card { margin-top:16px; }
.customer-shared-studio .scene-select { font-size:14px;min-height:44px; }
.customer-shared-studio .scene-settings { gap:12px; }
.customer-shared-studio .preview-narration { color:var(--vid-muted); }
.customer-shared-studio .flow-actions { gap:10px; }
.customer-shared-studio .flow-actions button { min-height:48px;padding:12px 18px; }
.studio-workspace :is(.project-title input,.scene .toolbar button,.card-head,.packaging-choice-tools button,.packaging-option-tools button,.opening-jump,.packaging-action) { min-height:44px; }
.studio-workspace .project-title input { min-height:48px;font-size:19px!important;line-height:1.5; }
.studio-workspace :is(.opening-card label,.packaging-card label,.opening-card small,.packaging-card small,.card-head span) { font-size:14px;line-height:1.6; }
.studio-workspace .scene textarea { font-size:16px;line-height:1.7; }
.studio-workspace :is(.owner-step-nav button,.owner-flow-footer button,.owner-create-bar button) { min-height:48px;font-size:16px; }
.studio-workspace .owner-step-nav button { border-radius:14px; }
:is(.owner-clarity,.customer-shared-studio) :is(.dv-day-label,.dv-week-total,.dv-timezone,.dv-item-meta,.dv-production-checks,.dv-production-counts dt,.dv-production-head .dv-meta) { font-size:14px;line-height:1.6; }
:is(.owner-clarity,.customer-shared-studio) .dv-day { min-height:105px;padding:10px 6px; }
:is(.owner-clarity,.customer-shared-studio) :is(.dv-count,.dv-kind,.dv-state) { font-size:12px;line-height:1.5; }
:is(.owner-clarity,.customer-shared-studio) :is(.dv-switch button,.dv-week-nav button) { min-height:44px;min-width:44px;font-size:14px; }
:is(.owner-clarity,.customer-shared-studio) :is(.finance th,.finance td small,.finance td time) { font-size:14px;line-height:1.6; }
.finance-table { max-width:100%;overscroll-behavior-x:contain; }

/* Marketing keeps its cinematic hero; the type and interaction language match Studio. */
.homepage-next :is(.site-header,.header-actions,.site-header nav,.spatial-copy,.free-start-card,.faq-section,.final-cta,footer) { font-family:var(--vid-font)!important; }
.homepage-next .site-header { border-radius:18px; }
.homepage-next .site-header a,.homepage-next .site-header button { min-height:44px;font-size:14px; }
.homepage-next .spatial-actions .button { min-height:52px;font-size:16px;border-radius:13px; }
.homepage-next .spatial-copy>p { font-size:17px;line-height:1.85; }
.homepage-next .hero-free-scope { font-size:14px;line-height:1.8; }
.homepage-next :is(.free-start-card,.conversion-card,.faq-list details,.youtube-path-card) { border-radius:20px; }
.homepage-next :is(.conversion-card p,.free-start-card li,.youtube-path-card p) { font-size:16px;line-height:1.8; }
.homepage-next :is(.public-policy-links a,.text-link) { min-height:44px; }
.studio-entry .entry-card { border-radius:24px;border-color:#f1d9da;box-shadow:0 24px 70px rgb(60 40 91 / 8%); }
.studio-entry .entry-card h1 { font-size:clamp(32px,4.5vw,43px);line-height:1.3;letter-spacing:-.04em; }
.studio-entry .entry-card>form button { border-radius:13px;min-height:52px;font-size:16px; }
.studio-entry .entry-intro { font-size:16px;line-height:1.85; }
.studio-entry .entry-first-steps { grid-template-columns:1fr;gap:10px;margin:24px 0; }
.studio-entry .entry-first-steps>li { grid-template-columns:30px minmax(0,1fr);gap:4px 13px;padding:14px 16px; }
.studio-entry .entry-first-steps>li::before { grid-row:1/3;margin:0; }
.studio-entry .entry-first-steps>li>span { grid-column:2; }
.info-header { border-radius:18px;box-shadow:var(--vid-shadow); }
.info-main { max-width:900px; }
.info-main h1 { font-size:clamp(32px,4.8vw,46px);line-height:1.3;letter-spacing:-.04em; }
.info-content h2 { font-size:22px;line-height:1.45; }
.info-content p,.info-intro { font-size:16px;line-height:1.85; }
.info-studio { color:white;background:var(--vid-ink);border:1px solid var(--vid-ink);border-radius:12px; }
.info-footer { font-size:14px;line-height:1.75; }

@media(hover:hover) and (pointer:fine) {
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-primary,.primary,.flow-primary,#save-story):not(:disabled):hover,
  .vid-guide-action:hover,.clarity-next:hover,.info-studio:hover { background:#3e3939;border-color:#3e3939;box-shadow:0 7px 18px rgb(50 35 76 / 12%);transform:translateY(-1px); }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-project,.dv-start):hover { border-color:#e4b7b9;box-shadow:var(--vid-ui-shadow);transform:translateY(-2px); }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-nav a,.rail-nav a):hover { background:#f8f6f6;color:var(--vid-accent-ink); }
}

/* Tablet layouts use the full page; the owner's long tool menu is opt-in. */
@media(max-width:1100px) and (min-width:901px) {
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) { grid-template-columns:210px minmax(0,1fr); }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace)>:is(main,.workspace-main) { padding-inline:26px; }
  .vid-start-guide { grid-template-columns:minmax(0,1fr) 110px;padding:26px; }
  .vid-start-art { width:100px;height:112px;border-radius:22px; }
  .vid-start-art>span { width:45px;height:70px;left:30px;top:24px; }
}
@media(max-width:900px) {
  html { scroll-padding-top:88px; }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) { display:block;grid-template-columns:minmax(0,1fr); }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace)>:is(main,.workspace-main) { padding:26px 24px 48px;max-width:none; }
  .owner-clarity.vid-nav-ready .vid-mobile-bar,.owner-clarity.vid-nav-ready .clarity-mobile-bar {
    position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:16px;
    min-height:76px;padding:12px 24px;background:rgb(255 255 255 / 95%);border-bottom:1px solid var(--vid-line);backdrop-filter:blur(16px);
  }
  .vid-mobile-bar>a,.clarity-mobile-bar>a { display:flex;align-items:center;gap:12px;color:var(--vid-ink);text-decoration:none; }
  .vid-mobile-bar img,.clarity-mobile-bar img { display:block;width:91px;height:36px;object-fit:contain; }
  .vid-mobile-bar span,.clarity-mobile-bar span { font-size:14px;font-weight:600;color:var(--vid-muted); }
  .vid-nav-toggle,.clarity-menu-toggle { display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:76px;padding:9px 13px;border:1px solid var(--vid-line);border-radius:12px;background:var(--vid-surface);color:var(--vid-ink);font-size:14px; }
  .vid-nav-toggle[aria-expanded=true],.clarity-menu-toggle[aria-expanded=true] { background:var(--vid-lilac-soft);border-color:#e5bbbc;color:var(--vid-accent-ink); }
  .owner-clarity [data-vid-owner-rail],.owner-clarity [data-clarity-rail] { display:flex;position:static;width:100%;height:auto;max-height:none;overflow:visible;border:0;border-bottom:1px solid var(--vid-line);padding:16px 24px 20px; }
  .owner-clarity.vid-nav-ready:not(.vid-mobile-nav-open) [data-vid-owner-rail],.owner-clarity.vid-nav-ready:not(.clarity-nav-open) [data-clarity-rail] { display:none; }
  .owner-clarity.vid-mobile-nav-open [data-vid-owner-rail],.owner-clarity.clarity-nav-open [data-clarity-rail] { display:flex;flex-direction:column;gap:14px; }
  .owner-clarity [data-vid-owner-rail]>.dv-brand,.owner-clarity [data-vid-owner-rail]>.wordmark,.owner-clarity [data-clarity-rail]>.dv-brand { display:none; }
  .owner-clarity [data-vid-owner-rail] :is(.dv-nav,.rail-nav),.owner-clarity [data-clarity-rail] :is(.dv-nav,.rail-nav) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .owner-clarity [data-vid-owner-rail] :is(.dv-tools,.dv-logout,.rail-end) { margin-top:0; }
  .customer-shared-studio>.dv-rail { position:static;top:auto;height:auto;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px 24px 14px;border-right:0;border-bottom:1px solid var(--vid-line); }
  .customer-shared-studio .dv-brand { grid-column:1;padding:0;flex-direction:row!important;align-items:center!important;gap:10px!important; }
  .customer-shared-studio .dv-brand .studio-brand-logo { width:91px;height:36px; }
  .customer-shared-studio .dv-brand .studio-brand-by { display:none; }
  .customer-shared-studio .dv-logout { grid-column:2;grid-row:1;align-self:center;margin:0; }
  .customer-shared-studio .dv-logout button { width:auto;min-height:44px;padding:9px 12px;font-size:14px; }
  .customer-shared-studio .dv-rail .dv-nav { grid-column:1/-1;display:flex!important;gap:6px;flex-wrap:nowrap; }
  .customer-shared-studio .dv-nav a { flex:1;min-width:0;justify-content:center!important;text-align:center;padding:10px 8px;min-height:48px;gap:7px; }
  .customer-shared-studio .dv-icon { width:14px;height:14px; }
  .vid-guide-steps,.clarity-guide,.vid-quick-steps { gap:10px; }
  .vid-guide-steps>li,.clarity-guide-step,.vid-quick-steps>li { padding:17px; }
  .vid-start-guide { grid-template-columns:minmax(0,1fr) 110px;padding:26px;gap:18px; }
  .vid-start-art { width:104px;height:116px;border-radius:23px; }
  .vid-start-art>span { width:45px;height:70px;left:30px;top:24px; }
  .customer-shared-studio :is(.studio-grid,.flow-content-grid,.preview-column) { display:grid;grid-template-columns:minmax(0,1fr);gap:18px; }
  .customer-shared-studio .preview-column>section:first-child { grid-row:auto; }
  .customer-shared-studio .scene-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customer-shared-studio .customer-flow-steps button { font-size:14px;padding:10px;gap:7px; }
  .studio-workspace .workspace-grid { grid-template-columns:minmax(0,1fr); }
  .studio-workspace :is(.opening-body,.packaging-options,.packaging-options:has(>:nth-child(3))) { grid-template-columns:minmax(0,1fr); }
  .studio-workspace .rail { height:auto;position:static; }
  .studio-workspace .workspace-head { flex-wrap:wrap; }
  .owner-clarity :is(.dv-top,.workspace-head) { margin-bottom:22px; }
  .owner-clarity .vid-page-guide,.owner-clarity .clarity-intro { margin-bottom:24px; }
  .info-header { margin:16px 24px 0; }
}
@media(max-width:620px) {
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace)>:is(main,.workspace-main) { padding:24px 16px 40px; }
  .owner-clarity .vid-mobile-bar,.owner-clarity .clarity-mobile-bar { padding:10px 16px;min-height:70px; }
  .vid-mobile-bar>a>span,.clarity-mobile-bar>a>span { display:none; }
  .owner-clarity [data-vid-owner-rail],.owner-clarity [data-clarity-rail] { padding:12px 16px 18px; }
  .customer-shared-studio>.dv-rail { padding:14px 16px 12px;gap:12px; }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(h1,.workspace-head h1) { font-size:30px;line-height:1.3;letter-spacing:-.035em; }
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace) :is(.dv-top,.workspace-head,.studio-intro) { gap:16px; }
  .vid-page-guide,.clarity-intro { padding:22px 20px;border-radius:18px; }
  .vid-page-guide h2,.clarity-intro h2 { font-size:23px; }
  .vid-guide-action,.clarity-next { width:100%;font-size:16px; }
  .vid-guide-steps,.clarity-guide,.vid-quick-steps { grid-template-columns:minmax(0,1fr);gap:10px;margin-top:16px; }
  .vid-guide-steps>li,.vid-quick-steps>li { grid-template-columns:30px minmax(0,1fr);gap:4px 13px;padding:17px; }
  .vid-guide-steps>li::before,.vid-quick-steps>li::before { grid-row:1/3;margin:0; }
  .vid-guide-steps>li>:not(strong),.vid-quick-steps>li>:not(strong) { grid-column:2; }
  .vid-start-guide { grid-template-columns:minmax(0,1fr);padding:24px 22px;margin-bottom:24px; }
  .vid-start-guide h2 { font-size:26px; }
  .vid-start-guide p { font-size:16px;line-height:1.75; }
  .vid-start-guide .dv-primary { width:100%; }
  .vid-start-art { display:none; }
  .vid-format-options { padding:7px 18px; }
  .vid-draft-finish { padding:23px 20px; }
  .vid-draft-finish h2 { font-size:24px; }
  .vid-draft-finish .button { width:100%; }
  .customer-shared-studio .studio-intro { align-items:flex-start; }
  .customer-shared-studio .studio-entry-actions { width:100%;justify-content:space-between;gap:10px; }
  .customer-shared-studio .customer-flow-steps { margin:20px 0;gap:4px;padding:5px;border-radius:15px; }
  .customer-shared-studio .customer-flow-steps button { display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-size:14px;gap:5px;padding:10px 4px;min-height:83px; }
  .customer-shared-studio .customer-flow-steps button>span { width:25px;height:25px;flex:0 0 25px; }
  .customer-shared-studio .customer-flow-steps small { padding-left:0;font-size:12px;line-height:1.5; }
  .customer-shared-studio :is(.flow-content-card,.flow-export-card,.scene-card,.allowance-card,.preview-column>section) { padding:20px 18px; }
  .customer-shared-studio .flow-global-status { align-items:flex-start; }
  .customer-shared-studio .flow-save-tools { width:100%;justify-content:space-between;gap:12px; }
  .customer-shared-studio .flow-save-tools #save-story { min-height:44px;padding:10px 16px; }
  .customer-shared-studio .flow-actions { align-items:stretch; }
  .customer-shared-studio .flow-actions button { width:100%; }
  .customer-shared-studio .scene-settings { grid-template-columns:minmax(0,1fr); }
  .customer-shared-studio .dv-project { padding:19px;gap:14px; }
  .customer-shared-studio .dv-project .dv-quiet { width:100%; }
  :is(.owner-clarity,.customer-shared-studio) .dv-create { grid-template-columns:minmax(0,1fr); }
  :is(.owner-clarity,.customer-shared-studio) .dv-start { min-height:132px;padding:22px;grid-template-columns:minmax(0,1fr) 72px;gap:12px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-start-copy strong { font-size:21px;line-height:1.4; }
  :is(.owner-clarity,.customer-shared-studio) .dv-production { padding:18px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-production-counts { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-production-counts>div { padding:12px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-calendar { padding:16px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-week { grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-day { min-height:100px;padding:9px 5px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-details-head { gap:12px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-list-entry { grid-template-columns:minmax(0,1fr);gap:12px;padding-block:18px; }
  :is(.owner-clarity,.customer-shared-studio) .dv-item-actions { justify-content:flex-start; }
  :is(.owner-clarity,.customer-shared-studio) .dv-item-actions a { flex:1 1 125px; }
  :is(.owner-clarity,.customer-shared-studio) :is(.finance-filters,.finance-summary,.finance-expenses) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :is(.owner-clarity,.customer-shared-studio) .finance-card { padding:19px; }
  .studio-workspace :is(.owner-step-nav button,.owner-flow-footer button) { font-size:14px; }
  .studio-workspace .owner-step-nav button { padding:11px 7px!important;min-height:84px; }
  .studio-workspace .project-actions { width:100%;gap:9px; }
  .studio-workspace .project-actions button { flex:1; }
  .studio-workspace :is(.opening-alternatives,.scene .fields) { grid-template-columns:minmax(0,1fr); }
  .studio-workspace :is(.preview-card,.scene-card,.timeline-card,.exports-card) { border-radius:18px; }
  .studio-workspace .owner-flow-footer { gap:10px; }
  .studio-workspace .owner-flow-footer button { min-height:48px; }
  .customer-settings .settings-main { padding:24px 16px 40px; }
  .customer-settings .settings-card { padding:23px 20px; }
  .settings-card h2 { font-size:21px; }
  .settings-card .totals { gap:10px; }
  .settings-card .totals div { padding:14px; }
  .settings-card .totals strong { font-size:28px; }
  .studio-entry .entry-main { padding:12px 16px 32px; }
  .studio-entry .entry-card { padding:28px 22px; }
  .studio-entry .entry-card h1 { font-size:32px;line-height:1.35; }
  .studio-entry .entry-first-steps>li { padding:14px; }
  .homepage-next .spatial-copy>p { font-size:16px;line-height:1.8; }
  .homepage-next .spatial-actions .button { font-size:16px;min-height:50px; }
  .info-header { margin:14px 16px 0;padding:12px 14px;gap:10px; }
  .info-main { padding:34px 22px 44px; }
  .info-main h1 { font-size:34px; }
  .info-studio { min-height:44px;padding:9px 12px;font-size:14px; }
  .info-footer { margin-inline:22px; }
}
@media(max-width:380px) {
  :is(.owner-clarity,.customer-shared-studio,.studio-workspace)>:is(main,.workspace-main) { padding-inline:14px; }
  .customer-shared-studio>.dv-rail { padding-inline:14px; }
  .customer-shared-studio .dv-nav a { font-size:14px;gap:5px;padding-inline:5px; }
  .customer-shared-studio .dv-nav .dv-icon { display:none; }
  .vid-page-guide,.clarity-intro,.vid-start-guide { padding:21px 18px; }
  .vid-start-guide h2 { font-size:24px; }
  .studio-entry .entry-card { padding:26px 20px; }
  .info-header { margin-inline:12px; }
  .info-main { padding-inline:20px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
}
