.pro-view {
  --pro-bg: #090c0d;
  --pro-panel: #15181c;
  --pro-panel-2: #1b1f24;
  --pro-line: #30353c;
  --pro-text: #f4f1e9;
  --pro-muted: #aaa69e;
  --pro-gold: #e5b457;
  --pro-gold-soft: #3c2d15;
  --pro-green: #65d5ad;
  --pro-red: #ff8585;
  --pro-space-1: 4px;
  --pro-space-2: 8px;
  --pro-space-3: 12px;
  --pro-space-4: 16px;
  --pro-space-6: 24px;
  --pro-space-8: 32px;
  background: radial-gradient(circle at 72% 8%, #e5b4570c, transparent 31%), #0d0f11;
}

.pro-view:not([hidden]) { display: grid; place-items: start center; padding: 28px 18px 72px; }
.motion-pro-app { width: min(100%, 470px); min-height: 820px; position: relative; overflow: hidden; border: 1px solid #383d44; border-radius: 34px; color: var(--pro-text); background: var(--pro-bg); box-shadow: 0 28px 90px #0008; }
.motion-pro-statusbar { height: 44px; padding: 17px 30px 0; display: flex; justify-content: space-between; color: var(--pro-text); font-size: 14px; font-weight: 760; }
.motion-pro-screen { min-height: 776px; padding: 18px 28px 30px; display: flex; flex-direction: column; scrollbar-width: none; }
.motion-pro-screen::-webkit-scrollbar { display: none; }
.motion-pro-screen button, .motion-pro-screen input, .motion-pro-screen textarea { font: inherit; }
.motion-pro-screen button { min-height: 44px; }
.motion-pro-screen h1, .motion-pro-screen h2, .motion-pro-screen h3, .motion-pro-screen p { max-width: none; }
.motion-pro-screen h1 { margin: 8px 0 9px; font-size: 42px; line-height: 1.02; letter-spacing: -.055em; }
.motion-pro-screen h2 { margin: 0; font-size: 27px; line-height: 1.16; letter-spacing: -.035em; }
.motion-pro-screen h3 { margin: 0; font-size: 16px; }
.motion-pro-screen p { margin: 0; }
.mp-kicker { color: var(--pro-gold); font-size: 11px; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.mp-lead { margin-top: 8px !important; color: var(--pro-muted); font-size: 14px; line-height: 1.65; }
.mp-header { min-height: 56px; display: grid; grid-template-columns: minmax(78px,auto) 1fr minmax(78px,auto); align-items: center; gap: 10px; margin-bottom: 18px; }
.mp-header > strong { justify-self: center; font-size: 18px; white-space: nowrap; }
.mp-back { min-width: 78px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--pro-line); border-radius: 13px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; font-weight: 760; }
.mp-back::before { content: '‹'; color: var(--pro-gold); font-size: 25px; line-height: 0; transform: translateY(-1px); }
.mp-header-end { justify-self: end; min-width: 0; }
.mp-badge, .mp-save { min-height: 28px; padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--pro-gold); background: var(--pro-gold-soft); font-size: 11px; font-weight: 740; }
.mp-save { color: var(--pro-green); background: #162a24; }
.mp-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 820; }
.mp-brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #161209; background: var(--pro-text); }
.mp-icon-button { width: 46px; padding: 0; border: 1px solid var(--pro-line); border-radius: 14px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; font-size: 19px; }
.mp-primary, .mp-secondary, .mp-text-button { border: 0; cursor: pointer; font-weight: 820; }
.mp-primary { width: 100%; min-height: 58px !important; padding: 0 20px; border-radius: 17px; color: #171209; background: var(--pro-gold); box-shadow: 0 14px 34px #e5b4571d; }
.mp-secondary { width: 100%; min-height: 52px !important; padding: 0 16px; border: 1px solid var(--pro-line); border-radius: 15px; color: var(--pro-text); background: var(--pro-panel); }
.mp-primary:disabled, .mp-secondary:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }
.mp-text-button { padding: 8px 4px; color: var(--pro-gold); background: transparent; }
.mp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pro-space-3); }
.mp-actions .mp-primary, .mp-actions .mp-secondary { margin: 0; }
.mp-action-stack { display: grid; gap: var(--pro-space-4); }
.mp-action-stack > .mp-primary,
.mp-action-stack > .mp-secondary,
.mp-action-stack > .mp-actions { margin: 0; }
.mp-caption { margin-top: 8px !important; color: var(--pro-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.mp-spacer { flex: 1; min-height: 22px; }
.mp-card { margin-top: 12px; padding: 17px; border: 1px solid var(--pro-line); border-radius: 18px; background: var(--pro-panel); }
.mp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mp-card-title { font-weight: 800; }
.mp-muted { color: var(--pro-muted); }
.mp-callout { margin-top: 12px; padding: 14px 15px; border: 1px solid #e5b45738; border-radius: 15px; color: var(--pro-muted); background: #241c11; font-size: 12px; line-height: 1.55; }
.mp-callout strong { color: var(--pro-text); }
.mp-error { margin-top: 8px; color: var(--pro-red); font-size: 12px; line-height: 1.5; }
.mp-field { display: grid; gap: 8px; margin-top: 20px; color: var(--pro-text); font-size: 13px; font-weight: 770; }
.mp-field > span { color: var(--pro-muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.mp-field input, .mp-field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--pro-line); border-radius: 15px; color: var(--pro-text); background: var(--pro-panel); outline: 0; }
.mp-field input:focus, .mp-field textarea:focus { border-color: var(--pro-gold); box-shadow: 0 0 0 3px #e5b45715; }
.mp-field textarea { min-height: 136px; resize: vertical; line-height: 1.62; }
.mp-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 5px; margin-top: 9px; padding: 4px; border-radius: 14px; background: var(--pro-panel); }
.mp-segmented button { padding: 0 8px; border: 0; border-radius: 10px; color: var(--pro-muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 740; }
.mp-segmented button.is-selected { color: var(--pro-text); background: #292d33; box-shadow: 0 3px 10px #0004; }
.mp-chips, .mp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.mp-chip, .mp-tab { flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--pro-line); border-radius: 999px; color: var(--pro-muted); background: transparent; cursor: pointer; }
.mp-chip.is-selected, .mp-tab.is-selected { color: var(--pro-gold); border-color: #e5b45775; background: var(--pro-gold-soft); }
.mp-bottom-nav { position: sticky; bottom: -30px; z-index: 5; margin: 24px -28px -30px; padding: 8px 20px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--pro-line); background: #090c0df2; backdrop-filter: blur(18px); }
.mp-bottom-nav button { display: grid; justify-items: center; gap: 3px; border: 0; color: var(--pro-muted); background: transparent; cursor: pointer; font-size: 11px; }
.mp-bottom-nav button b { font-size: 17px; font-weight: 500; }
.mp-bottom-nav button.is-active { color: var(--pro-gold); }
.mp-bottom-nav button:disabled { opacity: .35; cursor: not-allowed; }
.mp-project { width: 100%; margin-top: 11px; padding: 14px; display: grid; grid-template-columns: 86px 1fr; gap: 14px; border: 1px solid var(--pro-line); border-radius: 18px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-project-cover { overflow: hidden; background: radial-gradient(circle at 72% 28%,#e4b45c 0 4%,transparent 4.8%),linear-gradient(150deg,#22303c,#12171b 62%,#080a0c); }
.mp-project-cover { min-height: 96px; border-radius: 13px; }
.mp-project strong { display: block; margin-bottom: 6px; }
.mp-project small { color: var(--pro-muted); line-height: 1.5; }
.mp-project > span:last-child { min-width: 0; display: block; }
.mp-current-version { margin-top: 18px; padding: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border: 1px solid #e5b45766; border-radius: 18px; background: linear-gradient(145deg,#231c12,var(--pro-panel) 72%); }
.mp-current-version > div { display: grid; gap: 5px; }
.mp-current-version > div > span, .mp-current-version small { color: var(--pro-muted); font-size: 10px; line-height: 1.45; }
.mp-current-version strong { font-size: 17px; }
.mp-current-version > span { flex: 0 0 auto; font-size: 10px; }
.mp-version-list { display: grid; gap: 10px; margin-top: 10px; }
.mp-version-card { padding: 16px; border: 1px solid var(--pro-line); border-radius: 17px; background: var(--pro-panel); }
.mp-version-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mp-version-card > div span { color: var(--pro-gold); font-size: 10px; text-align: right; }
.mp-version-card p { margin: 7px 0 12px; color: var(--pro-muted); font-size: 11px; line-height: 1.55; }
.mp-version-card .mp-secondary { min-height: 42px !important; }
.mp-resume-storyboard { margin-top: 12px; padding: 17px; display: grid; gap: 15px; border: 1px solid #65d5ad66; border-radius: 18px; background: linear-gradient(145deg,#14241f,#15181c 72%); }
.mp-resume-storyboard > div { display: grid; gap: 5px; }
.mp-resume-storyboard span { color: var(--pro-green); font-size: 10px; font-weight: 760; }
.mp-resume-storyboard strong { color: var(--pro-text); font-size: 16px; }
.mp-resume-storyboard p { color: var(--pro-muted); font-size: 11px; line-height: 1.58; }
.mp-resume-storyboard .mp-primary { min-height: 52px !important; }
.mp-opening-project { min-height: 560px; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.mp-opening-project .mp-lead { max-width: 320px; }
.mp-opening-project .mp-live-steps { width: min(100%,360px); }
.mp-opening-spinner { width: 54px; height: 54px; border: 5px solid #ffffff18; border-top-color: var(--pro-gold); border-radius: 50%; animation: mp-opening-spin .8s linear infinite; }
@keyframes mp-opening-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mp-opening-spinner { animation-duration: 1.8s; } }
.mp-progress { position: relative; display: block; width: 100%; height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #ffffff12; font-size: 0; line-height: 0; }
.mp-progress span { display: block; height: 100%; border-radius: inherit; background: var(--pro-gold); transition: width .35s ease; }
.mp-progress.is-live i { position: absolute; top: 0; bottom: 0; width: 32%; border-radius: inherit; background: linear-gradient(90deg,transparent,#ffe49a 48%,transparent); animation: mp-progress-sweep 1.35s ease-in-out infinite; }
@keyframes mp-progress-sweep { from { left: -34%; } to { left: 102%; } }
.mp-live-progress { margin-top: 14px; padding: 15px; border: 1px solid #e5b45755; border-radius: 17px; background: linear-gradient(145deg,#211b12,#15181c 70%); }
.mp-live-head { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: start; gap: 10px; }
.mp-live-head strong { display: block; color: var(--pro-text); font-size: 13px; line-height: 1.4; }
.mp-live-head p { margin-top: 4px !important; color: var(--pro-muted); font-size: 11px; line-height: 1.5; }
.mp-live-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--pro-gold); box-shadow: 0 0 0 0 #e5b45766; animation: mp-live-pulse 1.4s ease-out infinite; }
.mp-live-progress:not(.is-active) .mp-live-dot { animation: none; background: var(--pro-green); box-shadow: none; }
.mp-live-time { color: var(--pro-gold); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-live-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 10px; color: var(--pro-muted); font-size: 9px; text-align: center; }
.mp-live-steps span { padding-top: 7px; border-top: 2px solid #ffffff12; }
.mp-live-steps .is-done { color: var(--pro-green); border-color: var(--pro-green); }
.mp-live-steps .is-current { color: var(--pro-gold); border-color: var(--pro-gold); }
.mp-progress-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.mp-progress-counts span { padding: 5px 8px; border-radius: 999px; color: var(--pro-muted); background: #0c0f12; font-size: 10px; }
.mp-progress-counts .is-running { color: var(--pro-gold); background: #3c2d15; }
.mp-progress-counts .is-done { color: var(--pro-green); background: #162a24; }
.mp-progress-counts .is-failed { color: var(--pro-red); background: #321b1b; }
.mp-progress-detail { margin-top: 11px; border-top: 1px solid var(--pro-line); }
.mp-progress-detail summary { padding-top: 11px; color: var(--pro-muted); cursor: pointer; font-size: 10px; }
.mp-progress-jobs { max-height: 210px; margin-top: 8px; overflow-y: auto; }
.mp-progress-job { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ffffff0b; color: var(--pro-muted); font-size: 10px; }
.mp-progress-job strong { color: var(--pro-text); font-size: 10px; }
.mp-progress-job > span { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.mp-progress-job small { max-width: 220px; color: var(--pro-muted); font-size: 9px; line-height: 1.45; }
.mp-inline-decision { display: grid; gap: 14px; margin: 14px 0; padding: 18px; border: 1px solid #edb95066; border-radius: 18px; background: #2c210f; }
.mp-inline-decision strong { color: var(--pro-text); }
.mp-inline-decision p { margin: 6px 0 0; color: var(--pro-muted); line-height: 1.6; }
.mp-inline-decision-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.mp-inline-decision-actions .mp-primary, .mp-inline-decision-actions .mp-secondary { margin: 0; min-height: 48px; }
@keyframes mp-live-pulse { 70% { box-shadow: 0 0 0 8px #e5b45700; } 100% { box-shadow: 0 0 0 0 #e5b45700; } }
@media (prefers-reduced-motion: reduce) { .mp-progress.is-live i, .mp-live-dot { animation-duration: 2.8s; } }
.mp-chapter { margin-top: 12px; padding: 16px; border: 1px solid var(--pro-line); border-radius: 17px; background: var(--pro-panel); }
.mp-chapter-head { display: flex; justify-content: space-between; gap: 10px; }
.mp-segment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mp-segment-pill { min-height: 38px !important; padding: 0 12px; border: 1px solid var(--pro-line); border-radius: 999px; color: var(--pro-text); background: #111418; cursor: pointer; font-size: 11px; }
.mp-segment-pill.is-edited::after { content: ' · 已改'; color: var(--pro-green); }
.mp-script-segment-summaries { display: grid; gap: 7px; margin-top: 11px; }
.mp-script-segment-summary { overflow: hidden; border: 1px solid var(--pro-line); border-radius: 13px; background: #101317; }
.mp-script-segment-summary[open] { border-color: #e5b45755; }
.mp-script-segment-summary summary { padding: 11px 12px; display: flex; justify-content: space-between; gap: 10px; color: var(--pro-text); cursor: pointer; font-size: 11px; line-height: 1.4; }
.mp-script-segment-summary summary b { flex: 0 0 auto; color: var(--pro-muted); font-size: 9px; font-weight: 680; }
.mp-script-segment-summary[open] summary b { color: var(--pro-gold); }
.mp-script-segment-copy { padding: 0 12px 12px; display: grid; gap: 8px; }
.mp-script-segment-copy p { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 8px; color: var(--pro-muted); font-size: 10px; line-height: 1.55; }
.mp-script-segment-copy p strong { color: var(--pro-text); }
.mp-script-segment-copy .mp-secondary { min-height: 40px !important; margin-top: 3px; }
.mp-editor-meta, .mp-summary-row { display: flex; justify-content: space-between; gap: 12px; color: var(--pro-muted); font-size: 12px; }
.mp-editor-grid { display: grid; gap: 10px; margin-top: 12px; }
.mp-editor-grid .mp-field { margin: 0; }
.mp-editor-grid textarea { min-height: 94px; }
.mp-summary-row { padding: 12px 0; border-bottom: 1px solid var(--pro-line); }
.mp-summary-row:last-child { border-bottom: 0; }
.mp-summary-row > :last-child { color: var(--pro-text); text-align: right; }
.mp-option-stack { display: grid; gap: 10px; margin-top: 15px; }
.mp-option { width: 100%; padding: 17px; border: 1px solid var(--pro-line); border-radius: 18px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-option:hover, .mp-option.is-selected { border-color: #e5b4578a; background: #211b12; }
.mp-option:disabled { opacity: .52; cursor: not-allowed; }
.mp-option-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 820; }
.mp-option p { margin-top: 8px; color: var(--pro-muted); font-size: 12px; line-height: 1.55; }
.mp-option-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mp-option-tags span { padding: 5px 8px; border-radius: 999px; color: var(--pro-muted); background: #0e1114; font-size: 10px; }
.mp-review-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.mp-review-tabs button { min-height: 44px; padding: 7px 9px; border: 1px solid var(--pro-line); border-radius: 12px; color: var(--pro-muted); background: var(--pro-panel); cursor: pointer; font-size: 11px; font-weight: 760; line-height: 1.3; }
.mp-review-tabs button.is-selected { color: #171209; border-color: #e8b656; background: #e8b656; }
.mp-review-panel { margin-top: 12px; }
.mp-source-copy { margin: 12px 0 0; color: var(--pro-muted); font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-diff-row { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pro-line); }
.mp-diff-row b { color: #e8b656; font-size: 11px; }
.mp-diff-row p { margin: 0; color: var(--pro-muted); font-size: 11px; line-height: 1.6; }
.mp-provider-strip, .mp-trial-strip { display: flex; gap: 10px; margin: 14px -28px 0; padding: 0 28px 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.mp-provider, .mp-trial-card { flex: 0 0 82%; padding: 16px; scroll-snap-align: center; border: 1px solid var(--pro-line); border-radius: 18px; color: var(--pro-text); background: var(--pro-panel); text-align: left; }
.mp-provider { cursor: pointer; }
.mp-provider.is-selected { border-color: var(--pro-gold); background: #211b12; }
.mp-status-live { color: var(--pro-green); }
.mp-status-wait { color: var(--pro-muted); }
.mp-story-review-summary, .mp-shot-context { margin: 4px 0 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--pro-line); border-radius: 16px; background: var(--pro-panel); }
.mp-story-review-summary strong, .mp-shot-context strong { display: block; color: var(--pro-text); font-size: 13px; }
.mp-story-review-summary p, .mp-shot-context p { margin-top: 4px; color: var(--pro-muted); font-size: 10px; line-height: 1.45; }
.mp-story-review-summary > span, .mp-shot-context > span { flex: 0 0 auto; font-size: 10px; font-weight: 760; }
.mp-story-confirm-top { margin-bottom: 14px; }
.mp-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mp-shot { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--pro-line); border-radius: 17px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-shot > button { width: 100%; min-height: 0; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.mp-shot-visual { aspect-ratio: 16 / 10; display: grid; overflow: hidden; color: #f0c46d; background: #11151a; }
.mp-shot-visual.is-pair { grid-template-columns: 1fr 1fr; }
.mp-shot-frame { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #11151a; }
.mp-shot-frame + .mp-shot-frame { border-left: 1px solid var(--pro-line); }
.mp-shot-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mp-shot-frame small { position: absolute; right: 7px; bottom: 7px; padding: 3px 6px; border-radius: 999px; color: #fff; background: #090b0dd9; font-size: 9px; letter-spacing: .04em; }
.mp-shot-frame .mp-provider-mark { position: absolute; top: 7px; right: 7px; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; color: rgb(255 255 255 / 76%); background: rgb(9 11 13 / 62%); backdrop-filter: blur(6px); font-size: 8px; line-height: 1; pointer-events: none; }
.mp-shot-frame-state { max-width: 90%; color: var(--pro-muted); font-size: 11px; line-height: 1.4; text-align: center; }
.mp-shot-copy { padding: 13px; }
.mp-shot-copy > span { display: block; margin-bottom: 4px; color: var(--pro-muted); font-size: 9px; }
.mp-shot-copy strong { display: block; margin-bottom: 5px; color: var(--pro-gold); font-size: 13px; }
.mp-shot-copy p { color: var(--pro-muted); font-size: 12px; line-height: 1.45; }
.mp-shot-copy label { margin-top: 10px; display: grid; gap: 5px; color: var(--pro-muted); font-size: 10px; }
.mp-shot-copy select, .mp-timeline-controls input, .mp-timeline-controls select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--pro-line); border-radius: 10px; color: var(--pro-text); background: #101419; }
.mp-animatic-player { margin: 14px 0; overflow: hidden; border: 1px solid var(--pro-line); border-radius: 18px; background: var(--pro-panel); }
.mp-animatic-canvas { min-height: 280px; position: relative; display: grid; place-items: center; overflow: hidden; background: #080a0c; }
.mp-animatic-canvas img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.mp-animatic-canvas > div { z-index: 1; align-self: end; width: 100%; padding: 14px; color: #fff; background: linear-gradient(transparent,#050708e8); }
.mp-animatic-canvas p { margin-top: 5px; color: #ffffffbd; font-size: 11px; }
.mp-timeline-controls { margin-top: 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.mp-timeline-controls label { display: grid; gap: 5px; color: var(--pro-muted); font-size: 9px; }
.mp-price-total { margin: 14px 0; padding: 22px; border-radius: 20px; color: #1b1409; background: var(--pro-gold); }
.mp-price-total strong { display: block; margin-top: 5px; font-size: 34px; letter-spacing: -.045em; }
.mp-stage-list { display: grid; gap: 13px; }
.mp-stage { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; }
.mp-stage i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--pro-muted); background: #262a2f; font-size: 11px; font-style: normal; }
.mp-stage.is-done i { color: #07110d; background: var(--pro-green); }
.mp-stage.is-current i { color: #171209; background: var(--pro-gold); }
.mp-video { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--pro-line); border-radius: 22px; background: #11151a; }
.motion-pro-screen > .mp-video { width: 100%; flex: 0 0 auto; }
.mp-shot-navigator { margin: 0 -4px 12px; padding: 0 4px 5px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mp-shot-navigator button { flex: 0 0 auto; min-width: 74px; min-height: 48px; padding: 8px 12px; display: grid; gap: 2px; scroll-snap-align: start; border: 1px solid var(--pro-line); border-radius: 13px; color: var(--pro-muted); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-shot-navigator button b { color: var(--pro-text); font-size: 11px; }
.mp-shot-navigator button span { font-size: 9px; }
.mp-shot-navigator button.is-active { border-color: var(--pro-gold); background: var(--pro-gold-soft); box-shadow: inset 3px 0 var(--pro-gold); }
.mp-shot-detail-frames { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.mp-shot-detail-frame { width: 100%; min-height: 0 !important; aspect-ratio: 16 / 9; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--pro-line); border-radius: 18px; color: var(--pro-text); background: #11151a; cursor: zoom-in; }
.mp-shot-detail-frame img { width: 100%; height: 100%; display: block; object-fit: contain; background: #080a0c; }
.mp-shot-detail-frame.is-missing { display: grid; place-items: center; color: var(--pro-muted); cursor: default; font-size: 11px; }
.mp-shot-detail-label { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ffffff1f; border-radius: 10px; color: #fff; background: #090c0dcc; backdrop-filter: blur(8px); text-align: left; }
.mp-shot-detail-label b { font-size: 11px; }
.mp-shot-detail-label small { color: #ffffffb5; font-size: 9px; }
.mp-shot-detail-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.mp-image-inspector[hidden] { display: none; }
.mp-image-inspector { margin: 16px 0 20px; overflow: hidden; border: 1px solid var(--pro-gold); border-radius: 20px; background: linear-gradient(145deg,var(--pro-gold-soft),#101318 38%); box-shadow: inset 4px 0 var(--pro-gold); }
.mp-image-inspector-head { min-height: 58px; padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--pro-line); }
.mp-image-inspector-head div { min-width: 0; display: grid; gap: 2px; }
.mp-image-inspector-head span { color: var(--pro-gold); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.mp-image-inspector-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mp-image-inspector-head button { min-height: 36px !important; padding: 0 15px; border: 1px solid var(--pro-line); border-radius: 10px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; }
.mp-image-inspector-canvas { padding: 12px; }
.mp-image-inspector img { width: 100%; max-height: min(68vh,760px); display: block; object-fit: contain; border-radius: 12px; background: #030405; }
.mp-play { width: 64px; height: 64px; border: 0; border-radius: 50%; color: #121417; background: var(--pro-text); cursor: pointer; font-size: 25px; }
.mp-player { width: 100%; flex: 0 0 auto; aspect-ratio: var(--delivery-aspect, 16 / 9); position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--pro-line); border-radius: 22px; background: #050607; }
.mp-player video { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; background: #050607; }
.mp-player-status { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 62px; padding: 8px 10px; border: 1px solid #ffffff20; border-radius: 10px; color: var(--pro-text); background: #090c0ddc; font-size: 11px; line-height: 1.4; text-align: center; pointer-events: none; }
.mp-player-controls { min-height: 52px; padding: 8px 10px; display: grid; grid-template-columns: auto auto minmax(72px,1fr) auto auto auto; align-items: center; gap: 8px; border-top: 1px solid var(--pro-line); background: #0c0f12; }
.mp-player-controls button { min-height: 36px !important; padding: 0 10px; border: 1px solid var(--pro-line); border-radius: 10px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; font-size: 11px; font-weight: 760; }
.mp-player-controls span { min-width: 38px; color: var(--pro-muted); font-variant-numeric: tabular-nums; font-size: 10px; text-align: center; }
.mp-player-controls input[type="range"] { width: 100%; min-width: 0; accent-color: var(--pro-gold); cursor: pointer; }
.mp-player-controls input[type="range"]:disabled { opacity: .45; cursor: wait; }
.mp-player-empty { display: grid; justify-items: center; gap: 8px; padding: 24px; color: var(--pro-muted); text-align: center; }
.mp-player-empty strong { color: var(--pro-text); font-size: 18px; }
.mp-player-empty span { max-width: 320px; font-size: 12px; line-height: 1.55; }
.mp-history { display: grid; gap: 9px; margin-bottom: 14px; }
.mp-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--pro-text); }
.mp-history-head span { color: var(--pro-muted); font-size: 11px; }
.mp-history-list { display: flex; gap: 9px; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mp-history-list button { flex: 0 0 min(280px,82vw); min-height: 82px; padding: 12px 14px; display: grid; gap: 4px; scroll-snap-align: start; border: 1px solid var(--pro-line); border-radius: 15px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-history-list button.is-selected { border-color: #e5b45788; background: linear-gradient(145deg,var(--pro-gold-soft),var(--pro-panel)); box-shadow: inset 3px 0 var(--pro-gold); }
.mp-history-list button span, .mp-history-list button small { color: var(--pro-muted); font-size: 10px; line-height: 1.45; }
.mp-process-tabs { min-height: 48px; flex: 0 0 auto; display: flex; gap: 8px; margin: 0 -28px 18px; padding: 0 28px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scroll-snap-type: x proximity; }
.mp-process-tabs button { flex: 0 0 auto; min-height: 40px; padding: 0 13px; scroll-snap-align: start; border: 1px solid var(--pro-line); border-radius: 999px; color: var(--pro-muted); background: var(--pro-panel); cursor: pointer; font-size: 11px; font-weight: 760; }
.mp-process-tabs button.is-selected { color: var(--pro-gold); border-color: #e5b45775; background: var(--pro-gold-soft); }
.mp-process-panel { display: grid; gap: 12px; }
.mp-process-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.mp-process-heading h2 { margin-top: 5px; }
.mp-process-timeline { display: grid; gap: 10px; }
.mp-process-timeline button { width: 100%; min-height: 68px; padding: 12px 14px; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px; border: 1px solid var(--pro-line); border-radius: 15px; color: var(--pro-text); background: var(--pro-panel); cursor: pointer; text-align: left; }
.mp-process-timeline button i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #07110d; background: var(--pro-green); font-style: normal; }
.mp-process-timeline button span { display: grid; gap: 4px; }
.mp-process-timeline button small { color: var(--pro-muted); }
.mp-readonly-block { padding: 13px 0; border-bottom: 1px solid var(--pro-line); }
.mp-readonly-block:last-child { padding-bottom: 0; border-bottom: 0; }
.mp-readonly-block p { margin-top: 7px; color: var(--pro-muted); font-size: 12px; line-height: 1.6; white-space: pre-line; }
.mp-readonly-block small { display: block; margin-top: 7px; color: var(--pro-gold); font-size: 10px; }
.mp-readonly-board { display: grid; gap: 10px; }
.mp-archive-board { display: grid; gap: 12px; margin-top: 14px; }
.mp-archive-shot { overflow: hidden; border: 1px solid var(--pro-line); border-radius: 17px; background: var(--pro-panel); }
.mp-archive-shot > div:last-child { padding: 14px; }
.mp-archive-shot p { margin-top: 7px; color: var(--pro-muted); font-size: 11px; line-height: 1.55; }
.mp-archive-shot small { display: block; margin-top: 6px; color: var(--pro-muted); font-size: 10px; }
.mp-archive-placeholder { min-height: 150px; display: grid; align-content: center; justify-items: center; gap: 7px; color: var(--pro-muted); background: #11151a; }
.mp-shot-detail-frames.is-single { grid-template-columns: 1fr; }
.mp-readonly-shot { overflow: hidden; display: grid; grid-template-columns: 130px minmax(0,1fr); border: 1px solid var(--pro-line); border-radius: 16px; background: var(--pro-panel); }
.mp-readonly-shot img, .mp-readonly-shot-placeholder { width: 100%; height: 100%; min-height: 112px; object-fit: cover; background: #11151a; }
.mp-readonly-shot-placeholder { display: grid; place-items: center; color: var(--pro-muted); font-size: 11px; }
.mp-readonly-shot > div:last-child { min-width: 0; padding: 13px; }
.mp-readonly-shot p { margin-top: 7px; color: var(--pro-muted); font-size: 11px; line-height: 1.5; }
.mp-readonly-shot small, .mp-process-stage-list small { display: block; margin-top: 6px; color: var(--pro-muted); font-size: 10px; }
.mp-process-stage-list { margin-top: 2px; padding: 16px; border: 1px solid var(--pro-line); border-radius: 18px; background: var(--pro-panel); }
.motion-pro-toast { position: fixed; z-index: 90; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: min(86vw,420px); padding: 12px 16px; border: 1px solid #e5b45766; border-radius: 12px; color: var(--pro-text); background: #211b12f5; box-shadow: 0 16px 45px #0008; font-size: 12px; }

@media (min-width: 900px) {
  .motion-pro-app { min-height: min(860px, calc(100vh - 124px)); }
  .motion-pro-screen { min-height: min(816px, calc(100vh - 168px)); max-height: calc(100vh - 168px); overflow-y: auto; }
}

@media (max-width: 680px) {
  .pro-view:not([hidden]) { display: block; padding: 0; }
  .motion-pro-app { width: 100%; min-height: calc(100vh - 62px); border: 0; border-radius: 0; box-shadow: none; }
  .motion-pro-statusbar { display: none; }
  .motion-pro-screen { min-height: calc(100vh - 62px); padding: 18px 20px calc(26px + env(safe-area-inset-bottom)); }
  .mp-bottom-nav { margin-left: -20px; margin-right: -20px; margin-bottom: calc(-26px - env(safe-area-inset-bottom)); }
  .mp-provider-strip, .mp-trial-strip { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .mp-process-tabs { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .mp-shot-detail-frames { grid-template-columns: 1fr; }
  .mp-inline-decision-actions { grid-template-columns: 1fr; }
  .mp-player-controls { grid-template-columns: auto auto minmax(54px,1fr) auto auto; }
  .mp-player-controls button[data-player-action="fullscreen"] { display: none; }
}

@media (max-width: 390px) {
  .motion-pro-screen h1 { font-size: 37px; }
  .mp-header { grid-template-columns: minmax(72px,auto) 1fr minmax(72px,auto); }
  .mp-back { min-width: 72px; }
  .mp-story-grid { grid-template-columns: 1fr; }
  .mp-timeline-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mp-story-review-summary, .mp-shot-context { align-items: flex-start; }
  .mp-shot-detail-actions { grid-template-columns: 1fr; }
  .mp-readonly-shot { grid-template-columns: 104px minmax(0,1fr); }
  .mp-player-controls { gap: 5px; padding: 7px; }
  .mp-player-controls button { padding: 0 7px; }
}

@media (max-width: 360px) {
  .mp-action-stack .mp-actions { grid-template-columns: 1fr; }
}
