:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #252823;
  background: #f7f8f6;
  font-synthesis: none;
  --ink: #252823;
  --muted: #969b93;
  --line: #e7e9e3;
  --lime: #789d4a;
  --green: #6d8250;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid #759a2e; }
button { color: inherit; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button svg { pointer-events: none; }
button { border: 0; }
.hidden { display: none !important; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 224px; flex: 0 0 224px; padding: 34px 18px 18px; background: #1e221d; color: #abb0a6; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30; }
.brand { display: flex; flex-direction: column; align-items: stretch; padding-top: 3px; color: #f7faf2; }
.brand-wordmark { display: block; width: 100%; }
.brand-wordmark svg { display: block; width: 100%; height: 26px; }
.brand-mark { display: none; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: transparent; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-caption { display: block; font-size: 9px; color: #7e8677; letter-spacing: .1px; margin-top: 8px; }
.workspace-switch { margin: 33px 0 32px; display: flex; gap: 11px; align-items: center; border: 1px solid #394034; border-radius: 8px; background: #292e26; padding: 12px 11px; width: 100%; text-align: left; }
.workspace-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--lime); background: #38412e; font-size: 14px; font-weight: 600; }
.workspace-copy { flex: 1; font-size: 13px; font-weight: 500; line-height: 1.8; color: #e6ebdf; }
.workspace-copy small { display: block; font-size: 10px; font-weight: 400; color: #7f8976; }
.workspace-switch > svg { width: 13px; color: #7f8976; }
.nav-section-label { margin: 0 12px 11px; color: #68725f; font-size: 9px; letter-spacing: 1.5px; }
.nav-link { display: flex; width: 100%; align-items: center; gap: 11px; padding: 12px 13px; margin: 4px 0; border-radius: 6px; background: transparent; color: #a6ae9f; font-size: 13px; text-align: left; transition: background .15s, color .15s; }
.nav-link:hover { background: #2a3025; color: #f4f7ef; }
.nav-link.active { background: var(--lime); color: #1c2417; font-weight: 600; }
.active-project { background: #2b3226; color: #dce5d1; }
.project-dot { width: 7px; height: 7px; border: 1px solid #a2b786; border-radius: 2px; flex-shrink: 0; }
.mini-dot { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: #b9d884; }
.new-project { color: #74806a; }
.nav-icon { display: inline-flex; align-items: center; }
.nav-pill { margin-left: auto; font-size: 12px; background: #adc18f; color: #1c2417; min-width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; }
.sidebar nav + .nav-section-label, .sidebar .nav-section-label:not(:first-child) { margin-top: 26px; }
.sidebar .projects-label { margin-top: 31px; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.storage-card { border: 1px solid #353d2e; border-radius: 8px; padding: 17px 14px; font-size: 12px; color: #929e86; line-height: 1.8; margin-bottom: 16px; background: #242a20; }
.storage-card strong { color: #c9d3bf; font-weight: 500; font-size: 12px; }
.storage-card svg { width: 13px; height: 13px; margin-right: 5px; }
.storage-card p { margin: 7px 0 12px; color: #839177; font-size: 11px; line-height: 1.8; }
.privacy-icon { display: grid; place-items: center; height: 27px; width: 27px; color: #aac87e; background: #35402a; border-radius: 5px; margin-bottom: 11px; }
.privacy-icon svg { margin: 0; }
.privacy-label { display: inline-flex; align-items: center; gap: 6px; color: #91ac6a; font-size: 8px; letter-spacing: .9px; }
.nav-external { margin-left: auto; width: 12px; height: 12px; }
.user-online { width: 6px; height: 6px; border-radius: 50%; background: #a6c575; }
.storage-meter { height: 3px; background: #394132; border-radius: 2px; margin-top: 9px; overflow: hidden; }
.storage-meter span { display: block; width: 25%; height: 100%; background: #a7c95c; }
.user-card { display: flex; gap: 10px; align-items: center; padding: 15px 9px 0; border-top: 1px solid #343b2e; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border: 2px solid #707e61; border-radius: 50%; background: #cbd1b5; color: #435137; font-size: 12px; font-weight: 600; }
.avatar svg { width: 16px; height: 16px; }
.user-details { flex: 1; color: #d9dfd2; font-size: 12px; line-height: 1.7; }
.user-details small { display: block; color: #77826c; font-size: 11px; }
.user-card > svg { width: 14px; color: #7d8970; }
.main { flex: 1; min-width: 0; margin-left: 224px; }
.topbar { display: flex; height: 72px; padding: 0 39px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.breadcrumb { display: flex; gap: 13px; align-items: center; font-size: 12px; color: #969e91; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb strong { color: #515b49; font-weight: 500; }
.topbar-actions { display: flex; gap: 17px; align-items: center; }
.topbar-actions > .topbar-divider { width: 1px; height: 20px; background: var(--line); }
.local-status { display: inline-flex; gap: 6px; align-items: center; color: #929c87; font-size: 10px; }
.icon-button { width: 28px; height: 28px; display: inline-grid; place-items: center; background: transparent; border-radius: 5px; color: #818a77; }
.icon-button:hover { background: #eef1e9; color: #3c4d2b; }
.icon-button svg { width: 17px; height: 17px; }
.avatar-small { width: 28px; height: 28px; border-radius: 50%; background: #d8dfc7; display: grid; place-items: center; color: #586747; font-size: 11px; font-weight: 700; }
.avatar-small svg { width: 15px; height: 15px; }
.page-content { max-width: 1530px; margin: 0 auto; padding: 34px 39px 18px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #7e8c71; font-size: 11px; letter-spacing: 1.6px; font-weight: 600; margin-bottom: 9px; }
.eyebrow svg { width: 12px; height: 12px; }
.heading-copy h1 { font-size: clamp(23px, 2vw, 30px); letter-spacing: -1.2px; line-height: 1.35; margin: 0; font-weight: 600; color: #252c20; }
.heading-copy h1 > span { color: #7f8e73; font-weight: 450; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #96ab79; }
.project-title { display: flex; gap: 13px; align-items: center; margin-bottom: 15px; }
.local-video-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.local-processing-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; min-width: 0; flex: 1; color: #62784b; font-size: 11px; line-height: 1.7; }
.local-processing-note svg { width: 12px; height: 12px; margin-top: 3px; }
.project-title-left { display: flex; gap: 13px; align-items: center; }
.project-title h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.25px; }
.project-title .project-status { padding: 4px 7px; border: 1px solid #dde6cf; border-radius: 4px; background: #edf3e3; font-size: 9px; color: #83986a; margin-right: 0; }
.heading-copy p { color: #91998a; font-size: 12px; margin: 9px 0 0; letter-spacing: .05px; }
.heading-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 11px; flex-shrink: 0; }
.project-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8c9682; margin-right: 7px; }
.status-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #8ba85e; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 0 13px; border: 1px solid #dce1d5; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { background: #f0f4e9; border-color: #c3cfb3; }
.button:active { transform: translateY(1px); }
.button svg { width: 14px; height: 14px; }
.button-primary { color: #f4f8ed; background: #293025; border-color: #293025; }
.button-primary:hover { color: #fff; background: #414e33; border-color: #414e33; }
#project-button { color: #35462a; background: #edf3e3; border-color: #cbd9bb; }
#project-button:hover { background: #e2ecd7; border-color: #b5c99f; }
.button-lime { background: var(--lime); border-color: var(--lime); color: #1c2417; }
.button-lime:hover { background: #88a85e; border-color: var(--lime); }
.button-ghost { background: transparent; border-color: transparent; }
.button-small { padding: 0 9px; min-height: 28px; font-size: 11px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid #e0e5d9; border-radius: 9px; background: #fff; }
.video-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 14px 16px; min-height: 51px; }
.video-card-head > .replace-video { margin-left: auto; flex-shrink: 0; }
.view-label { display: flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 600; }
.view-label h3, .alignment-title h3, .timeline-title h3 { font-size: 12px; font-weight: 600; margin: 0; }
.view-tag { color: #a0aa92; font-size: 8px; font-weight: 500; border: 1px solid #e4eadc; border-radius: 3px; padding: 2px 4px; margin-left: 2px; letter-spacing: .6px; white-space: nowrap; }
.view-icon-b { color: #8f9c64; }
.view-icon { display: inline-flex; color: #6b795c; }
.view-icon svg { width: 16px; height: 16px; }
.view-meta { color: #a0a894; font-size: 11px; letter-spacing: .3px; margin-left: 5px; font-weight: 400; }
.video-card-head > .view-meta { display: inline-flex; align-items: center; gap: 5px; }
.video-surface { aspect-ratio: 16 / 9; position: relative; background: #1f2b23; margin: 0 8px; border-radius: 5px; overflow: hidden; }
.video-preview, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-poster { user-select: none; }
.preview-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, #0002 0, transparent 40%, #0000 45%, #0007 100%); }
.video-badge { position: absolute; z-index: 2; top: 13px; left: 13px; display: flex; align-items: center; gap: 5px; color: #f7faef; padding: 5px 7px; background: #14201587; border: 1px solid #ffffff25; border-radius: 4px; font-family: Inter, sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .7px; backdrop-filter: blur(8px); }
.video-badge svg { width: 10px; height: 10px; }
.preview-center { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; }
.preview-play { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 43px; height: 43px; display: grid; place-items: center; color: #fff; border-radius: 50%; border: 1px solid #ffffff65; background: #ffffff22; backdrop-filter: blur(8px); pointer-events: auto; transition: background .2s; }
.preview-play:hover { background: #ffffff40; }
.preview-play svg { width: 16px; height: 16px; margin-left: 2px; }
.preview-bottom { position: absolute; inset: auto 13px 12px; color: #fff; display: flex; align-items: center; justify-content: space-between; z-index: 2; font-family: Inter, sans-serif; font-size: 11px; }
.preview-caption { display: flex; gap: 7px; align-items: center; letter-spacing: .2px; }
.preview-caption svg { width: 12px; height: 12px; }
.preview-bottom > div { display: flex; gap: 5px; }
.video-badge > span:first-child { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.video-badge { font-size: 8px; }
.demo-label { position: absolute; bottom: 42px; right: 12px; color: #ffffffa6; font-size: 6px; letter-spacing: .7px; pointer-events: none; }
.preview-bottom .icon-button { color: #fff; width: 22px; height: 22px; }
.preview-bottom .icon-button:hover { background: #ffffff30; }
.video-card-foot { min-height: 67px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reference-editor { margin: 12px 8px 0; padding: 14px; border: 1px solid #e1e8d8; border-radius: 6px; background: #f7f9f2; font-size: 14px; }
.reference-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #53663c; font-size: 14px; }
.reference-editor-heading label { font-weight: 500; }
.reference-current { flex-shrink: 0; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; font-variant-numeric: tabular-nums; }
.reference-instruction { margin: 9px 0 2px; color: #61724f; font-size: 14px; line-height: 1.6; }
.reference-seek { position: relative; margin: 0 10px; }
.reference-seek input { display: block; appearance: none; -webkit-appearance: none; width: calc(100% + 20px); height: 44px; margin: 0 -10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reference-seek input::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #d6e1c6; }
.reference-seek input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 20px; height: 20px; margin-top: -8px; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px #53663c; }
.reference-seek input::-moz-range-track { height: 4px; border-radius: 3px; background: #d6e1c6; }
.reference-seek input::-moz-range-thumb { box-sizing: border-box; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px #53663c; }
.reference-line { position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; transform: translateX(-50%); background: #53663c; z-index: 2; pointer-events: none; }
.reference-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reference-editor .button { min-height: 44px; font-size: 14px; }
.reference-editor .button-ghost { color: #61724f; }
.reference-label { min-height: 22px; margin: 10px 0 0; color: #61724f; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.reference-guide { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 16px 18px; border: 1px solid #dce6ce; border-radius: 8px; background: #eef4e5; }
.reference-guide-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; color: #62784b; background: #e1ebd2; }
.reference-guide h3 { margin: 0 0 7px; color: #53663c; font-size: 14px; font-weight: 600; }
.reference-guide p { margin: 0; color: #61724f; font-size: 14px; line-height: 1.65; }
.reference-guide .reference-guide-instruction { margin-top: 7px; }
.file-details { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.file-details > div:last-child { min-width: 0; }
.file-icon { width: 30px; height: 33px; background: #f2f5ec; color: #8a9975; border-radius: 4px; display: grid; place-items: center; flex-shrink: 0; }
.file-icon svg { width: 15px; height: 15px; }
.file-name { font-size: 11px; font-weight: 500; color: #48523e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.file-meta { color: #a0a894; font-size: 10px; margin-top: 0; }
.file-status { font-size: 10px; color: #7b9555; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.file-status svg { width: 12px; height: 12px; }
.upload-zone { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f3f5ee; color: #869574; gap: 10px; border: 1px dashed #b7c59f; border-radius: 5px; cursor: pointer; }
.upload-zone:hover, .video-surface.dragover .upload-zone { background: #eaf3db; border-color: #8dac5e; }
.upload-zone strong { font-size: 13px; color: #5c6c49; font-weight: 500; }
.upload-zone span { font-size: 11px; }
.upload-zone small { font-size: 9px; color: #9aa98b; margin-top: 3px; }
.upload-icon { width: 42px; height: 42px; border-radius: 50%; background: #e6eddc; display: grid; place-items: center; color: #7d925f; }
.upload-icon svg { width: 21px; height: 21px; }
.video-surface.dragover::after { content: 'Drop to open on this device'; position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; background: var(--lime); border: 2px dashed #7b9c3c; color: #1c2417; font-size: 15px; }
.alignment-bar { margin: 22px 0; padding: 15px 18px; border: 1px solid #e1e6d8; border-radius: 8px; background: #f0f3e9; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.alignment-title { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 11px; }
.alignment-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dfe7d1; background: #e6eddc; border-radius: 6px; flex-shrink: 0; }
.alignment-title svg { width: 15px; height: 15px; color: #7b8b63; }
.alignment-description { font-size: 10px; color: #98a18b; margin: 5px 0 0; line-height: 1.6; font-weight: 400; }
.alignment-options { display: flex; align-items: center; gap: 17px; }
.offset-control { display: flex; align-items: center; gap: 8px; color: #889677; font-size: 11px; white-space: nowrap; }
.offset-control input { background: #fff; border: 1px solid #dce4ce; border-radius: 4px; padding: 7px 8px; color: #53663c; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; width: 72px; outline-offset: 2px; }
.offset-unit { color: #9ba58f; font-size: 11px; }
.timeline-panel { background: #fff; border: 1px solid #e1e6d9; border-radius: 9px; overflow: hidden; }
.timeline-toolbar { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef0e9; gap: 14px; }
.timeline-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.timeline-title svg { width: 14px; height: 14px; color: #7c8e65; }
.timeline-title > .timeline-duration { font-size: 9px; color: #a2ac96; border: 1px solid #e5eadf; padding: 3px 5px; border-radius: 4px; font-weight: 400; }
.timeline-divider { display: inline-block; width: 1px; height: 15px; background: #e6ebdf; }
.linked-label { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #95a181; font-weight: 400; }
.linked-label svg { width: 11px; height: 11px; }
.timeline-tools { display: flex; align-items: center; gap: 12px; }
.timeline-tools > span { display: inline-flex; align-items: center; gap: 5px; color: #a2aa98; font-size: 10px; }
.timeline-tools > span svg { width: 11px; height: 11px; }
.zoom-control { display: flex; gap: 9px; align-items: center; color: #a0aa94; font-size: 12px; }
.zoom-control button { border: 0; padding: 3px; background: transparent; color: #9aa58f; }
.zoom-control button svg { width: 12px; height: 12px; }
.zoom-control input { width: 58px; height: 3px; accent-color: #8ba36b; cursor: pointer; }
.timeline-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #dce3d3 #fff; }
.timeline-content { position: relative; min-width: 570px; padding: 0 18px 17px; }
.time-ruler { position: relative; height: 39px; margin-left: 164px; border-bottom: 1px solid #eef0e8; cursor: crosshair; }
.ruler-corner { position: absolute; width: 148px; left: -164px; top: 16px; color: #b0baa4; font-size: 8px; letter-spacing: .7px; }
.ruler-labels { display: flex; justify-content: space-between; color: #aab19f; padding-top: 13px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 10px; }
.ruler-labels > span { position: relative; }
.ruler-labels > span::after { content: ''; position: absolute; width: 1px; height: 5px; background: #dfe5d6; bottom: -11px; left: 0; }
.tracks-area { position: relative; }
.timeline-track { display: flex; align-items: center; gap: 16px; margin-top: 11px; height: 58px; }
.track-label { width: 148px; flex-shrink: 0; font-size: 11px; font-weight: 500; color: #788668; display: flex; gap: 7px; align-items: center; }
.track-label strong { font-weight: 500; }
.track-label .track-mute { margin-left: auto; width: 23px; }
.track-label .track-mute svg { width: 12px; height: 12px; }
.track-label > div { min-width: 0; }
.track-label > svg { width: 13px; height: 13px; }
.track-dot { width: 5px; height: 5px; border-radius: 1px; background: #92a67d; flex-shrink: 0; }
.track-dot-b { background: #a9bf72; }
.track-meta { display: block; font-size: 7px; color: #a8b09d; font-weight: 400; margin-top: 5px; letter-spacing: .2px; }
.track-lane { min-width: 0; flex: 1; height: 58px; position: relative; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), #eaf0e3 calc(10% - 1px), #eaf0e3 10%), #f7f9f3; border-radius: 4px; }
.track-clip { position: absolute; height: 100%; left: 0; top: 0; border: 1px solid #aec68c; border-radius: 4px; overflow: hidden; background: #e8f0da; width: 85%; cursor: grab; touch-action: none; }
.track-clip:active { cursor: grabbing; }
.clip-a { background: #e7eddc; border-color: #b8c99e; }
.clip-b { background: #e5eccf; border-color: #a7bf82; }
.sync-marker { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; transform: translateX(-50%); border-left: 1px solid #53663c; background: var(--lime); z-index: 2; pointer-events: none; }
.clip-title { position: relative; display: block; z-index: 1; font-size: 9px; color: #768b58; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.clip-title svg { width: 10px; height: 10px; margin-right: 5px; }
.clip-handle { position: absolute; right: 3px; top: 19px; height: 18px; width: 3px; border-left: 1px solid #8ea66a; border-right: 1px solid #8ea66a; }
.waveform { position: absolute; bottom: 4px; left: 6px; width: calc(100% - 12px); height: 30px; overflow: hidden; opacity: .85; pointer-events: none; }
.waveform canvas { width: 100%; height: 100%; display: block; }
.timeline-playhead { position: absolute; top: -11px; bottom: -4px; left: 164px; width: 1.5px; background: #6e823f; z-index: 3; pointer-events: none; }
.timeline-playhead > span { display: block; position: absolute; top: -4px; left: -4px; width: 9px; height: 10px; background: #71883f; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.transport-bar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; border-top: 1px solid #e9eddf; background: #fcfdf9; }
.transport-left, .transport-right, .transport-controls { display: flex; align-items: center; gap: 9px; }
.transport-left { min-width: 0; }
.transport-left > span, .transport-right > span { display: inline-flex; align-items: center; gap: 5px; color: #9aa68b; font-size: 10px; white-space: nowrap; }
.transport-left > span svg { width: 11px; height: 11px; }
.transport-controls { gap: 12px; }
.transport-button { display: inline-flex; justify-content: center; align-items: center; background: transparent; color: #809268; width: 23px; height: 25px; border-radius: 4px; }
.transport-button svg { width: 14px; height: 14px; }
.transport-button:hover { background: #eaf1dc; }
.transport-button.main-play { width: 29px; height: 29px; background: var(--lime); color: #1c2417; border: 1px solid #6b8d41; }
.time-display { font-family: 'SFMono-Regular', Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 12px; color: #6b7c57; }
.time-display span { color: #b1b9a5; }
.time-display > span:first-of-type { margin: 0 5px; }
.time-display strong { font-weight: 500; }
.keyboard-tag, kbd { font-family: inherit; font-size: 10px; border: 1px solid #e0e6d7; border-bottom-width: 2px; border-radius: 3px; padding: 3px 5px; background: #fff; color: #9ba68e; }
.transport-right select { font-size: 11px; color: #869873; background: transparent; border: 0; padding: 4px; cursor: pointer; }
.bottom-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 18px; margin-top: 21px; }
.guide-card { border: 1px solid #e2e7d9; border-radius: 7px; background: #fbfcf8; padding: 17px 17px 15px; display: flex; gap: 12px; }
.guide-icon { width: 30px; height: 30px; flex-shrink: 0; background: #edf2e2; color: #8da86a; border-radius: 6px; display: grid; place-items: center; }
.guide-icon svg { width: 15px; height: 15px; }
.guide-copy { flex: 1; min-width: 0; }
.guide-copy h3 { font-size: 12px; font-weight: 500; margin: 0 0 6px; color: #596b45; }
.guide-copy p { color: #a0ab93; font-size: 10px; line-height: 1.7; margin: 0; }
.guide-steps { display: flex; gap: 17px; margin-top: 14px; }
.guide-step { display: flex; gap: 5px; align-items: center; color: #91a27c; font-size: 10px; white-space: nowrap; }
.step-number { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #d5e0c4; border-radius: 50%; font-size: 9px; color: #93ab70; }
.guide-step > svg { width: 9px; height: 9px; color: #bdc9ad; margin-left: 8px; }
.insight-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #e1e9d3; border-radius: 7px; background: #f0f5e7; }
.insight-icon { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; color: #91a86e; background: #e7efda; }
.insight-icon svg { width: 15px; height: 15px; }
.insight-card h3 { font-size: 12px; margin: 1px 0 7px; font-weight: 500; color: #657c4c; }
.insight-card p { font-size: 10px; color: #98aa81; line-height: 1.8; margin: 0; }
.insight-card > .icon-button { margin-left: auto; }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; font-size: 10px; color: #a7af9d; }
.page-footer > span { display: inline-flex; align-items: center; gap: 5px; }
.page-footer svg { width: 10px; height: 10px; }
.page-footer > span:nth-child(2) { font-size: 8px; }
.page-footer > a { font-size: 9px; color: #8da374; white-space: nowrap; }
.page-footer > a:hover { text-decoration: underline; }
.page-footer > span:nth-child(2) > span { padding: 0 5px; color: #c4cdb8; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: calc(50% + 112px); transform: translateX(-50%); background: #293423; color: #f1f7e9; border: 1px solid #526742; padding: 13px 20px; border-radius: 8px; box-shadow: 0 8px 30px #1b2b1725; font-size: 13px; max-width: min(560px, calc(100vw - 35px)); line-height: 1.6; text-align: center; }
.modal-backdrop { position: fixed; inset: 0; background: #16201075; backdrop-filter: blur(5px); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal { width: min(530px, calc(100% - 40px)); max-height: calc(100vh - 70px); overflow: auto; padding: 25px; border: 1px solid #dde6d2; border-radius: 12px; background: #fbfdf8; box-shadow: 0 20px 80px #15200d40; color: var(--ink); }
.modal::backdrop { background: #16201075; backdrop-filter: blur(5px); }
.modal h3 { font-size: 13px; margin: 23px 0 5px; font-weight: 600; color: #586e42; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.modal p { color: #8d9b7d; font-size: 13px; line-height: 1.9; }
.shortcut-list { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 12px; color: #7a8e63; align-items: center; padding-top: 15px; margin-top: 20px; border-top: 1px solid #e2e8d8; }
.shortcut-list > div { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.shortcut-list kbd { font-size: 12px; min-width: 32px; text-align: center; padding: 5px 9px; }
.modal .help-note { font-size: 10px; border-top: 1px solid #e2e8d8; padding-top: 16px; margin-top: 22px; }
.modal .help-credit { font-size: 9px; color: #9da88f; }
.help-credit a { text-decoration: underline; }
#media-list { margin: 20px 0; }
.loading svg { animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) {
  .page-content { padding-top: 42px; }
  .video-card-head { padding-top: 16px; padding-bottom: 16px; }
  .bottom-grid { margin-top: 26px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 202px; flex-basis: 202px; padding-left: 13px; padding-right: 13px; }
  .main { margin-left: 202px; }
  .topbar { padding: 0 25px; }
  .page-content { padding: 28px 25px 18px; }
  .alignment-options { gap: 11px; }
  .alignment-description { max-width: 220px; }
  .guide-steps { gap: 10px; }
  .guide-step > svg { margin-left: 2px; }
  .toast { left: calc(50% + 101px); }
}
@media (max-width: 1000px) {
  .sidebar { width: 72px; flex-basis: 72px; padding: 28px 11px 20px; align-items: center; }
  .main { margin-left: 72px; }
  .brand { padding: 0; width: 34px; }
  .brand-mark { display: grid; }
  .brand-wordmark, .brand-caption, .workspace-copy, .workspace-switch > svg, .nav-section-label, .nav-pill, .nav-link > span:not(.nav-icon), .sidebar .nav-link > .nav-label, .storage-card, .user-details, .user-card > svg, .nav-external, .user-online { display: none; }
  .workspace-switch { justify-content: center; padding: 8px; width: 42px; margin-top: 29px; margin-bottom: 25px; }
  .workspace-icon { width: 27px; height: 27px; background: transparent; }
  .sidebar nav { width: 100%; }
  .nav-link { justify-content: center; padding: 13px; width: 43px; margin: 6px auto; font-size: 0; gap: 0; }
  .nav-icon, .nav-icon svg { display: inline-flex; width: 17px; height: 17px; }
  .nav-link > .project-dot { display: block; width: 12px; height: 12px; }
  .sidebar-bottom { width: 100%; padding-top: 28px; }
  .user-card { justify-content: center; padding: 15px 0 0; }
  .topbar { height: 64px; }
  .page-heading { margin-bottom: 23px; }
  .heading-copy p { font-size: 12px; }
  .alignment-description { max-width: none; }
  .alignment-bar { flex-wrap: wrap; }
  .alignment-options { margin-left: auto; }
  .toast { left: calc(50% + 36px); }
}
@media (max-width: 800px) {
  .page-content { padding-left: 20px; padding-right: 20px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .page-heading { align-items: flex-start; }
  .heading-right { grid-template-columns: 1fr; gap: 7px; }
  .heading-right .button { min-height: 30px; font-size: 11px; }
  .editor-grid { gap: 12px; }
  .video-card-head { padding: 11px; }
  .video-card-head .view-meta { display: none; }
  .video-card-foot { padding: 11px; }
  .file-name { max-width: 145px; font-size: 11px; }
  .file-status { display: none; }
  .bottom-grid { grid-template-columns: 1fr; gap: 12px; }
  .guide-steps { gap: 20px; }
  .insight-card { padding: 14px 17px; }
  .timeline-tools > .timeline-divider { display: none; }
  .transport-left > span { display: none; }
  .linked-label { display: none; }
  .page-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 700px) {
  .project-title { flex-wrap: wrap; row-gap: 8px; }
  .local-video-actions { width: 100%; margin-left: 0; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { height: 58px; padding: 0 18px; }
  .topbar-actions { gap: 12px; }
  .topbar-actions .local-status, .topbar-actions > .topbar-divider { display: none; }
  .breadcrumb { font-size: 12px; gap: 9px; }
  .page-content { padding: 25px 18px 20px; }
  .heading-copy h1 { font-size: 24px; }
  .eyebrow { font-size: 10px; }
  .page-heading { gap: 12px; }
  .heading-copy { min-width: 0; }
  .page-heading > .button { font-size: 10px; padding: 0 10px; gap: 5px; }
  .page-heading > .button .small-icon { display: none; }
  .heading-copy p { font-size: 11px; max-width: 220px; line-height: 1.9; margin-top: 6px; }
  .editor-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-card-head { padding: 13px 15px; }
  .video-card-head .view-meta { display: initial; }
  .video-card-foot { padding: 13px 15px; }
  .file-name { max-width: 230px; font-size: 12px; }
  .file-status { display: flex; }
  .view-tag { font-size: 8px; }
  .alignment-bar { padding: 15px; margin: 18px 0; gap: 15px; }
  .alignment-title { font-size: 12px; }
  .alignment-description { font-size: 10px; }
  .alignment-options { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .alignment-options > .button { flex: 1; }
  .offset-control { gap: 5px; font-size: 10px; }
  .offset-control input { width: 63px; }
  .timeline-toolbar { padding: 14px; }
  .timeline-title { font-size: 12px; gap: 6px; }
  .timeline-title > .timeline-divider { display: none; }
  .timeline-tools { gap: 6px; }
  .timeline-tools .button { font-size: 10px; padding: 0 7px; }
  .zoom-control { padding-left: 6px; }
  .zoom-control input { width: 35px; }
  .transport-bar { padding: 8px 12px; flex-wrap: wrap; gap: 10px; }
  .transport-right { gap: 5px; }
  .transport-right > span { display: none; }
  .transport-controls { gap: 7px; }
  .time-display { font-size: 11px; }
  .guide-card { padding: 15px; }
  .guide-steps { flex-wrap: wrap; gap: 10px; }
  .guide-step { font-size: 10px; }
  .page-footer { gap: 10px; font-size: 9px; }
  .toast { left: 50%; bottom: 18px; font-size: 12px; width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.project-resume { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid #dce7ca; border-radius: 7px; background: #edf4e1; }
.project-resume-icon, .project-section-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; color: #8ba36b; background: #e3ecd7; }
.project-resume-icon svg, .project-section-icon svg { width: 16px; height: 16px; }
.project-resume > div { flex: 1; min-width: 0; }
.project-resume strong { color: #62794d; font-size: 12px; font-weight: 500; }
.project-resume p { margin: 5px 0 0; color: #98a987; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.project-resume > .button { flex-shrink: 0; border-color: #d1dfbd; color: #71875a; }
.project-modal { width: min(650px, calc(100% - 40px)); padding: 27px; }
.project-modal .modal-head { align-items: flex-start; gap: 15px; margin-bottom: 9px; }
.project-modal .modal-head .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 9px; }
.project-modal .modal-head h2 { font-size: 23px; letter-spacing: -.65px; }
.project-modal .project-intro { margin: 0 0 22px; font-size: 12px; line-height: 1.8; color: #98a58a; }
.project-local-card { padding: 18px; border: 1px solid #dfe8d2; border-radius: 8px; background: #f0f5e8; }
.project-section-heading { display: flex; align-items: center; gap: 11px; }
.project-modal .project-section-heading h3 { margin: 0; color: #62784d; font-size: 13px; font-weight: 500; }
.project-modal .project-section-heading p { margin: 5px 0 0; font-size: 11px; color: #9aa98a; line-height: 1.7; }
.project-save-state { display: flex; gap: 7px; align-items: flex-start; margin: 18px 0 0; color: #7b9163; font-size: 12px; line-height: 1.7; }
.project-save-state > .status-dot { margin-top: 7px; flex-shrink: 0; }
.project-modal .project-storage { margin: 7px 0 16px; color: #a0ad92; font-size: 10px; line-height: 1.8; }
.project-local-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.project-local-actions .button { font-size: 10px; padding-left: 10px; padding-right: 10px; }
.project-local-actions .project-delete { color: #aa8577; padding-left: 7px; padding-right: 7px; }
.project-delete:hover { background: #f8efea; border-color: transparent; }
.project-backup-section { padding: 22px 0 0; }
.project-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-backup-actions .button { font-size: 11px; }
.project-modal .project-iphone-hint { margin: 12px 0 0; color: #a1ac93; font-size: 10px; line-height: 1.8; }
.project-progress { display: block; width: 100%; height: 4px; margin: 21px 0 0; accent-color: var(--lime); border: 0; }
.project-modal .project-error { margin: 18px 0 0; padding: 11px 13px; border: 1px solid #e9c8bf; border-radius: 6px; background: #fcf0ec; color: #a97160; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.project-local-notice { display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid #e4eadc; padding-top: 16px; margin-top: 23px; }
.project-local-notice > svg { color: #97aa7f; width: 12px; height: 12px; margin-top: 3px; }
.project-modal .project-local-notice p { margin: 0; color: #9eaa90; font-size: 10px; line-height: 1.8; }
.project-modal a[aria-disabled='true'] { pointer-events: none; opacity: .4; }

@media (max-width: 600px) {
  .project-resume { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 13px; gap: 10px; }
  .project-resume > .button { grid-column: 2; justify-self: start; }
  .project-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); padding: 20px; }
  .project-modal .modal-head h2 { font-size: 20px; }
  .project-modal .project-intro { font-size: 11px; margin-bottom: 18px; }
  .project-local-card { padding: 15px; }
  .project-local-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .project-local-actions .button { font-size: 11px; }
  .project-local-actions .project-delete { justify-self: start; min-height: 28px; }
  .project-backup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-backup-actions .button { padding-left: 9px; padding-right: 9px; font-size: 10px; }
  .project-backup-actions > a { grid-column: 1 / -1; }
}

.export-modal { width: min(1000px, calc(100% - 48px)); max-height: calc(100vh - 48px); padding: 27px; border-radius: 13px; background: #fbfcf8; }
.export-modal .modal-head { align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.export-modal .modal-head .eyebrow { font-size: 9px; margin: 0 0 9px; letter-spacing: 1.7px; }
.export-modal .modal-head h2 { font-size: 24px; letter-spacing: -.8px; color: #2e3926; }
.export-modal .modal-head > .icon-button { margin-top: -3px; }
.export-modal .export-intro { font-size: 12px; color: #99a18f; margin: 0 0 24px; }
.export-body { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 27px; align-items: start; }
.export-preview-column, .export-settings { min-width: 0; }
.composition-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 310px; padding: 9px; background: #1d241c; border: 1px solid #313e29; border-radius: 8px; overflow: hidden; }
.composition-stage.portrait { height: 430px; }
.composition-stage canvas { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.composition-preview-tag { position: absolute; top: 11px; left: 11px; padding: 5px 7px; border: 1px solid #ffffff25; border-radius: 3px; background: #1a2419bb; color: #d9e4ca; font-size: 7px; letter-spacing: 1px; pointer-events: none; }
.composition-scrub { display: flex; gap: 10px; align-items: center; margin-top: 13px; font-family: 'SFMono-Regular', Consolas, monospace; color: #97a585; font-size: 9px; font-variant-numeric: tabular-nums; }
.composition-scrub span { flex-shrink: 0; }
.composition-scrub input { min-width: 0; flex: 1; height: 3px; margin: 0; accent-color: #90aa63; cursor: pointer; }
.composition-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding-top: 17px; font-size: 9px; color: #9eaa91; }
.composition-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.composition-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: #8eaa65; }
.composition-legend .legend-b { background: #bed282; }
.export-fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 21px; }
.export-fieldset legend { padding: 0; color: #9ca98b; font-size: 10px; letter-spacing: .5px; margin-bottom: 13px; }
.export-fieldset legend span { color: #536744; font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 7px; }
.export-fieldset:disabled { opacity: .55; }
.orientation-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.orientation-option { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 67px; padding: 11px 13px; border: 1px solid #e1e7d8; border-radius: 6px; background: #fff; text-align: left; }
.orientation-option:hover { border-color: #b5c891; background: #f2f7e8; }
.orientation-option.active, .orientation-option[aria-pressed='true'] { border-color: var(--lime); background: #edf5dc; }
.orientation-option strong { display: block; color: #62784b; font-size: 12px; font-weight: 500; }
.orientation-option small { display: block; margin-top: 5px; color: #98a886; font-size: 10px; }
.orientation-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #a5b98a; flex-shrink: 0; }
.orientation-icon i { width: 32px; height: 19px; border: 1.5px solid currentColor; border-radius: 3px; background: #f4f8eb; }
.orientation-portrait i { width: 19px; height: 32px; }
.orientation-option.active .orientation-icon { color: var(--lime); }
.layout-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.layout-option { min-width: 0; min-height: 129px; padding: 13px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid #e1e7d8; border-radius: 6px; transition: background .15s, border-color .15s; }
.layout-option:hover { background: #f2f7e8; border-color: #b5c891; }
.layout-option.active, .layout-option[aria-pressed='true'] { border-color: #8ea95a; background: #edf5dc; box-shadow: inset 0 0 0 1px #afc98535; }
.layout-option strong { display: block; font-size: 11px; color: #62784b; font-weight: 500; line-height: 1.5; text-align: center; }
.layout-option small { font-size: 10px; color: #a0ad8d; line-height: 1.5; }
.layout-diagram { display: flex; gap: 2px; width: 62px; height: 44px; margin-bottom: 6px; padding: 3px; border: 1px solid #cbd7b9; border-radius: 4px; background: #f5f8ee; }
.layout-diagram i { display: grid; place-items: center; flex: 1; border-radius: 2px; background: #dce7ca; color: #8aa067; font-size: 9px; font-style: normal; }
.layout-diagram i + i { background: #c0d48e; color: #718d49; }
.diagram-stacked { flex-direction: column; }
.diagram-side { height: 35px; margin-top: 5px; margin-bottom: 10px; }
.diagram-pip { position: relative; }
.diagram-pip i + i { position: absolute; bottom: 5px; right: 5px; width: 21px; height: 15px; border: 1px solid #f8fbed; }
.layout-option.active .layout-diagram, .layout-option[aria-pressed='true'] .layout-diagram { border-color: #aec681; background: #f6fbed; }
.corner-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.corner-option { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; background: #fff; border: 1px solid #e2e8d9; border-radius: 5px; color: #96a588; font-size: 10px; }
.corner-option:hover { border-color: #b5c891; background: #f3f7eb; }
.corner-option.active, .corner-option[aria-pressed='true'] { border-color: #9cb56c; background: #edf5de; color: #6c8550; }
.corner-screen { position: relative; width: 40px; height: 26px; border: 1px solid #ccdab8; background: #f0f5e7; border-radius: 2px; }
.corner-screen i { position: absolute; width: 12px; height: 9px; border-radius: 1px; background: #adc77b; }
[data-corner='top-left'] .corner-screen i { top: 3px; left: 3px; }
[data-corner='top-right'] .corner-screen i { top: 3px; right: 3px; }
[data-corner='bottom-left'] .corner-screen i { bottom: 3px; left: 3px; }
[data-corner='bottom-right'] .corner-screen i { bottom: 3px; right: 3px; }
.export-audio-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 0 0 18px; }
.export-output-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.export-output-options label { display: flex; flex-direction: column; gap: 8px; color: #728663; font-size: 11px; }
.export-output-options label:last-child { grid-column: 1 / -1; }
.export-output-options select { width: 100%; min-width: 0; padding: 9px 10px; color: #62774e; background: #fff; border: 1px solid #dfe7d4; border-radius: 5px; font-size: 11px; cursor: pointer; }
.export-modal .export-resolution-note { margin: 10px 0 0; font-size: 10px; line-height: 1.7; color: #92a17e; }
.export-audio-row label { color: #728663; font-size: 11px; }
.export-audio-row select { min-width: 0; width: 66%; padding: 9px 10px; color: #778c62; background: #fff; border: 1px solid #dfe7d4; border-radius: 5px; font-size: 11px; cursor: pointer; }
.export-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; border: 1px solid #e3e9da; border-radius: 6px; background: #f3f6ed; padding: 15px; }
.export-summary > div { display: flex; flex-direction: column; gap: 5px; }
.export-summary span { font-size: 10px; color: #a0ac90; }
.export-summary strong { font-size: 12px; font-weight: 500; color: #71875b; font-variant-numeric: tabular-nums; }
.export-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; }
.export-notice svg { width: 12px; height: 12px; color: #99ad81; margin-top: 3px; }
.export-modal .export-notice p { margin: 0; font-size: 10px; line-height: 1.8; color: #a1ad92; }
.export-progress { margin-top: 22px; padding: 16px; border: 1px solid #dce7ca; border-radius: 6px; background: #f0f6e6; }
.export-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; color: #7b9360; }
.export-progress-top strong { color: #647f46; font-weight: 500; }
.export-progress progress { display: block; width: 100%; height: 4px; margin-top: 13px; border: 0; border-radius: 3px; overflow: hidden; background: #dce7ca; accent-color: #94b36a; }
.export-progress progress::-webkit-progress-bar { background: #dce7ca; border-radius: 3px; }
.export-progress progress::-webkit-progress-value { background: #94b36a; border-radius: 3px; }
.export-progress progress::-moz-progress-bar { background: #94b36a; border-radius: 3px; }
.export-modal .export-progress p { margin: 9px 0 0; font-size: 11px; color: #95a783; line-height: 1.6; }
.export-modal .export-error { margin: 18px 0 0; border: 1px solid #e9c8bf; border-radius: 6px; padding: 11px 13px; background: #fcf0ec; color: #a97160; font-size: 11px; line-height: 1.8; }
.export-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e9da; padding-top: 18px; margin-top: 23px; }
.export-actions > div { display: flex; gap: 8px; align-items: center; }
.export-actions > .button { font-size: 10px; color: #9aab88; padding-left: 0; }
.export-actions .button { min-height: 37px; font-size: 12px; }
.export-actions .button-lime { padding: 0 17px; }
.export-actions .button-lime svg { width: 14px; height: 14px; }
.export-settings :disabled, .composition-scrub input:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 760px) {
  .export-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); padding: 20px; }
  .export-modal .modal-head h2 { font-size: 21px; letter-spacing: -.6px; }
  .export-modal .modal-head .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .export-modal .export-intro { font-size: 11px; line-height: 1.7; margin-bottom: 18px; }
  .export-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .composition-stage { height: 220px; }
  .composition-stage.portrait { height: 300px; }
  .composition-scrub { margin-top: 12px; }
  .composition-legend { padding-top: 12px; font-size: 8px; gap: 14px; }
  .layout-options { gap: 7px; }
  .orientation-option { padding: 10px; gap: 9px; }
  .orientation-option strong { font-size: 11px; }
  .layout-option { min-height: 125px; padding-left: 3px; padding-right: 3px; }
  .layout-option strong { font-size: 11px; }
  .layout-option small { font-size: 9px; }
  .corner-options { gap: 6px; }
  .corner-option { font-size: 10px; }
  .export-summary { padding: 13px; gap: 14px; }
  .export-actions { flex-wrap: wrap; gap: 10px; padding-top: 15px; margin-top: 20px; }
  .export-actions > div { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .export-actions > .button { font-size: 10px; }
  .export-actions .button { min-height: 35px; }
}



/* One composition surface keeps preview, controls, and timing together. */
.studio-editor { overflow: hidden; border: 1px solid #dce3d3; border-radius: 10px; background: #fff; }
.studio-sources { margin: 0; padding: 12px; gap: 12px; background: #f8faf5; border-bottom: 1px solid var(--line); }
.studio-source-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; border-radius: 7px; }
.studio-source-card.dragover { border-color: var(--lime); background: #edf3e5; box-shadow: inset 0 0 0 1px var(--lime); }
.studio-source-card .video-card-head { grid-column: 1; grid-row: 1; min-height: 44px; padding: 0; }
.studio-source-card .replace-video { min-height: 44px; padding: 0 10px; font-size: 14px; }
.studio-source-card .video-card-foot { grid-column: 2; grid-row: 1; min-width: 0; min-height: 44px; padding: 0; }
.studio-source-card .file-icon, .studio-source-card .file-status { display: none; }
.studio-source-card .file-name { max-width: 100%; font-size: 14px; }
.studio-source-card .file-meta { overflow: hidden; max-width: 100%; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.studio-source-card .video-surface { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.studio-source-card .video-preview { object-fit: contain; }
.studio-source-card .preview-bottom .icon-button { width: 44px; height: 44px; }
.studio-source-card .preview-caption { font-size: 14px; }
.studio-source-card .demo-label { bottom: 62px; font-size: 10px; }
.studio-editor > .reference-guide { margin: 12px; }
.studio-toolbar { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.studio-toolbar-main, .studio-toolbar-secondary { display: flex; align-items: center; gap: 10px; }
.studio-toolbar-main { flex-wrap: wrap; }
.studio-toolbar-secondary { justify-content: space-between; margin-top: 8px; }
.studio-choice-group { display: flex; gap: 4px; padding: 3px; border: 1px solid #e1e7d7; border-radius: 7px; background: #f4f7ee; }
.studio-toolbar .button { min-height: 44px; padding: 0 8px; font-size: 14px; }
.studio-choice { border-color: transparent; background: transparent; color: #62784b; }
.studio-choice.active { border-color: #b5c99f; background: #e5eed9; color: #35462a; }
.studio-primary-label { flex: 1; min-width: 0; color: #53663c; font-size: 14px; line-height: 1.4; }
.studio-corners { display: flex; flex-shrink: 0; gap: 6px; }
.studio-corners .corner-option { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 6px; }
.studio-corners .corner-screen { width: 28px; height: 20px; }
.studio-corners .corner-screen i { width: 9px; height: 6px; }
[data-studio-corner='top-left'] .corner-screen i { top: 3px; left: 3px; }
[data-studio-corner='top-right'] .corner-screen i { top: 3px; right: 3px; }
[data-studio-corner='bottom-left'] .corner-screen i { bottom: 3px; left: 3px; }
[data-studio-corner='bottom-right'] .corner-screen i { bottom: 3px; right: 3px; }
.studio-editor .alignment-bar { margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.studio-editor .alignment-title h3, .studio-editor .alignment-description { font-size: 14px; }
.studio-editor .alignment-description { color: #61724f; }
.studio-editor .alignment-options { gap: 10px; }
.studio-editor .alignment-options > .button { min-height: 44px; padding: 0 10px; font-size: 14px; }
.studio-editor .offset-control, .studio-editor .offset-unit { font-size: 14px; }
.studio-editor .offset-control input { width: 88px; min-height: 44px; font-size: 14px; }
.studio-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(220px, 32vw, 430px); max-height: 520px; overflow: hidden; background: #101310; }
.studio-stage.portrait { height: min(520px, 65vh); }
.studio-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-stage-status { position: absolute; top: 12px; left: 14px; padding: 5px 8px; border: 1px solid #ffffff25; border-radius: 4px; background: #172012bb; color: #e3ebd9; font-size: 14px; pointer-events: none; }
.studio-fullscreen { position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid #ffffff35; background: #ffffff18; color: #fff; }
.studio-fullscreen:hover { background: #ffffff30; color: #fff; }
.studio-stage:fullscreen { width: 100vw; height: 100vh; max-height: none; }
.studio-editor .timeline-panel { margin: 0; border: 0; border-top: 1px solid #dfe6d6; border-radius: 0; }
.studio-editor .timeline-toolbar { min-height: 52px; padding: 4px 12px; }
.studio-editor .timeline-title h3, .studio-editor .timeline-duration, .studio-editor .linked-label { font-size: 14px; }
.studio-editor .timeline-tools .icon-button { width: 44px; height: 44px; }
.studio-editor .zoom-control input { width: 60px; height: 44px; }
.studio-editor .timeline-content { padding: 0 12px 12px; }
.studio-editor .time-ruler { height: 28px; margin-left: 188px; }
.studio-editor .ruler-corner { top: 9px; left: -188px; width: 176px; font-size: 11px; }
.studio-editor .ruler-labels { padding-top: 8px; font-size: 11px; }
.studio-editor .ruler-labels > span::after { bottom: -7px; }
.studio-editor .timeline-track { height: 48px; margin-top: 8px; gap: 12px; }
.studio-editor .track-label { width: 176px; gap: 6px; font-size: 14px; }
.studio-editor .track-meta { margin-top: 2px; font-size: 14px; line-height: 1.3; letter-spacing: 0; }
.studio-editor .track-label .track-mute { width: 44px; height: 44px; }
.studio-editor .track-lane { height: 48px; }
.studio-editor .clip-title { padding: 4px 6px 0; font-size: 14px; }
.studio-editor .waveform { bottom: 3px; height: 20px; }
.studio-editor .transport-bar { min-height: 56px; padding: 6px 12px; }
.studio-editor .transport-controls { gap: 4px; }
.studio-editor .transport-button { width: 44px; height: 44px; }
.studio-editor .time-display { font-size: 14px; }
.studio-editor .transport-right select { min-height: 44px; font-size: 14px; }

@media (max-width: 800px) {
  .studio-editor .linked-label, .studio-editor .timeline-title > .timeline-divider { display: none; }
  .studio-editor .transport-left { display: none; }
  .studio-editor .transport-right > span { display: none; }
}
@media (max-width: 700px) {
  .studio-sources { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .studio-toolbar-main { gap: 8px; }
  .studio-toolbar-main > .studio-choice-group:first-child { flex-basis: 100%; }
  .studio-toolbar-main > .studio-choice-group:first-child .button { flex: 1; }
  .studio-toolbar-main > .studio-choice-group:nth-child(2) { flex: 1; }
  .studio-toolbar-main > .studio-choice-group:nth-child(2) .button { flex: 1; }
  .studio-toolbar-secondary { gap: 10px; }
  .studio-editor .alignment-bar { gap: 10px; }
  .studio-editor .alignment-options { width: 100%; }
  .studio-editor .offset-control { gap: 5px; }
  .studio-editor .offset-control input { width: 80px; font-size: 16px; }
  .studio-stage { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: 65vh; }
  .studio-stage.portrait { height: min(520px, 65vh); aspect-ratio: 9 / 16; }
  .studio-editor .timeline-toolbar { flex-wrap: wrap; gap: 6px; }
  .studio-editor .timeline-tools { margin-left: auto; gap: 4px; }
  .studio-editor .timeline-tools .timeline-divider { display: none; }
  .studio-editor .transport-controls { display: grid; grid-template-columns: repeat(4, 44px); gap: 4px; justify-content: center; }
  .studio-editor .time-display { grid-column: 1 / -1; text-align: center; }
  .studio-editor .transport-right { margin-left: auto; }
}

.heading-right .button { min-height: 44px; font-size: 14px; }


.studio-editor .timeline-content { min-width: 0; }
.studio-editor .timeline-panel:not(.synced) .timeline-content { padding-right: 72px; }
@media (max-width: 700px) {
  .studio-editor .track-label { width: 112px; }
  .studio-editor .track-meta { display: none; }
  .studio-editor .time-ruler { margin-left: 124px; }
  .studio-editor .ruler-corner { left: -124px; width: 112px; }
  .studio-editor .ruler-labels > span:nth-child(even) { visibility: hidden; }
}

.studio-editor .ruler-labels { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.studio-editor .ruler-labels > span { min-width: 0; }
.studio-editor .ruler-labels > span:last-child { position: absolute; top: 8px; right: 0; }
.studio-editor .ruler-labels > span:last-child::after { left: auto; right: 0; }

.studio-drop-hint { margin: 0; padding: 0 14px 12px; color: #61724f; font-size: 14px; line-height: 1.5; }
.studio-drop-feedback { position: absolute; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 4px; border: 3px dashed var(--lime); border-radius: 4px; background: #16260ed9; color: #fff; font-size: 14px; line-height: 1.25; font-weight: 600; text-align: center; overflow: hidden; pointer-events: none; }
.studio-stage.drop-active .studio-stage-status { opacity: 0; }
.studio-toolbar-secondary { flex-wrap: wrap; }
.studio-pip-size { display: flex; align-items: center; flex: 0 1 auto; min-height: 44px; gap: 10px; color: #53663c; font-size: 14px; line-height: 1.5; }
.studio-pip-size > span { min-width: 0; }
.studio-pip-size output { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.studio-view-hint { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: calc(100% - 16px); padding: 6px 9px; border: 1px solid #ffffff38; border-radius: 5px; background: #13200edb; color: #fff; font-size: 14px; line-height: 1.3; text-align: center; white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; }
.studio-hint-title { color: #e0e8d8; }
.studio-pip-move { position: absolute; z-index: 5; border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: grab; touch-action: none; pointer-events: auto; }
.studio-pip-move:hover { border-color: var(--lime); }
.studio-pip-move:active { border-color: var(--lime); cursor: grabbing; }
.studio-pip-move:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.studio-track-play { position: absolute; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 52px; height: 52px; padding: 5px; border: 1px solid #ffffff85; border-radius: 50%; background: #172012d9; color: #fff; box-shadow: 0 2px 12px #0003; transform: translate(-50%, -50%); touch-action: manipulation; }
.studio-track-play:hover { border-color: #e2edcf; background: #35462aeb; }
.studio-track-play:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.studio-track-play [data-play-icon] { width: 20px; height: 20px; }
.studio-track-play [data-play-label] { font-size: 14px; line-height: 16px; font-weight: 600; pointer-events: none; }
#independent-playback { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #e3e9db; background: #f6f8f1; }
.independent-playback .button { min-height: 44px; padding: 0 12px; font-size: 14px; }
.studio-stage.drop-active .studio-track-play { opacity: 0; pointer-events: none; }
.studio-hint-action { font-size: 14px; font-weight: 600; }
.studio-view-hint.inset { max-width: 140px; gap: 1px; padding: 4px 6px; }
.studio-view-hint.inset .studio-hint-title { font-size: 11px; }
.studio-view-hint.inset .studio-hint-here { display: none; }
.studio-view-hint.compact { padding: 3px 5px; }
.studio-view-hint.compact .studio-hint-title, .studio-view-hint.compact .studio-hint-video, .studio-view-hint.compact .studio-hint-here { display: none; }
.studio-stage.independent-playback .studio-view-hint.compact { padding: 1px 4px; font-size: 14px; line-height: 1; gap: 0; }
.studio-stage.drop-active .studio-view-hint { opacity: 0; }
@media (max-width: 700px) {
  .studio-pip-size { flex-basis: 100%; }
  .studio-view-hint.inset { padding: 3px 5px; }
  .studio-view-hint.inset .studio-hint-title { display: none; }
}

.studio-editor .timeline-reference-guide { display: block; margin: 0; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 14px; line-height: 1.5; }
.studio-editor .timeline-link-state { color: #61724f; font-size: 14px; }
.studio-editor .timeline-title { flex-wrap: wrap; }
.studio-editor .alignment-bar, .studio-editor .alignment-options { flex-wrap: wrap; }
.studio-editor .alignment-options { margin-left: auto; }
.studio-editor .timeline-track { height: auto; min-height: 48px; }
.studio-editor .timeline-track:first-child { position: relative; padding-top: 34px; padding-bottom: 52px; }
.studio-editor .timeline-track:nth-child(2) { margin-top: 38px; padding-bottom: 52px; }
.studio-editor .track-lane { flex-shrink: 1; }
.independent-ruler { position: absolute; top: -28px; left: 0; width: 100%; height: 28px; border-bottom: 1px solid #e5ebdc; pointer-events: none; }
.track-seek { position: absolute; z-index: 5; top: 0; left: 0; display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.track-seek::-webkit-slider-runnable-track { height: 48px; background: transparent; }
.track-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 2px; height: 48px; border: 0; background: transparent; }
.track-seek::-moz-range-track { height: 48px; background: transparent; }
.track-seek::-moz-range-thumb { width: 2px; height: 48px; border: 0; border-radius: 0; background: transparent; }
.track-cursor { position: absolute; z-index: 6; top: 0; bottom: 0; left: 0; width: 2px; background: #53663c; pointer-events: none; }
.track-cursor::before { content: ''; position: absolute; top: -7px; left: -4px; width: 10px; height: 8px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); }
.timeline-panel:not(.synced) .track-cursor:not(.active) { background: #8f9788; }
.timeline-panel:not(.synced) .track-cursor:not(.active)::before { background: #a7afa0; }
.timeline-sync-tools { position: absolute; z-index: 7; top: calc(100% + 8px); right: auto; left: 0; width: max-content; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; color: #53663c; font-size: 14px; transform: translateX(-50%); pointer-events: none; }
.timeline-sync-tools::before { content: ''; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 8px; background: #789d4a80; pointer-events: none; }
.timeline-sync-tools .reference-current, .timeline-sync-tools .reference-label { display: none; }
.timeline-sync-tools .reference-actions { position: relative; flex-wrap: nowrap; gap: 0; margin: 0; pointer-events: auto; }
.timeline-sync-tools .button { justify-content: center; min-width: 0; min-height: 44px; padding: 0 7px; border: 1px solid #789d4a99; background: #ffffff66; color: #486238; font-size: 14px; }
.timeline-sync-tools .button-lime { flex: none; }
.timeline-sync-tools .button-ghost { position: absolute; top: 0; right: calc(100% + 4px); width: 32px; min-width: 32px; padding: 0; font-size: 20px; }
.timeline-sync-tools:hover .button, .timeline-sync-tools:focus-within .button { background: #fff; }
.studio-editor .track-clip { cursor: default; touch-action: auto; }
.timeline-panel:not(.synced) #shared-ruler, .timeline-panel:not(.synced) #playhead { display: none; }
.timeline-panel.synced .independent-ruler, .timeline-panel.synced .track-seek, .timeline-panel.synced .track-cursor, .timeline-panel.synced .timeline-sync-tools, .timeline-panel.synced .timeline-reference-guide { display: none; }
.studio-editor .timeline-panel.synced .timeline-track { margin-top: 8px; padding-top: 0; padding-bottom: 0; }
.studio-editor .timeline-panel.synced .track-meta { visibility: hidden; }
.studio-editor .timeline-playhead { width: 44px; background: transparent; cursor: ew-resize; transform: translateX(-50%); touch-action: none; pointer-events: auto; }
.studio-editor .timeline-playhead::before { content: ''; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #6e823f; }
.studio-editor .timeline-playhead > span { left: 18px; }
.studio-editor .timeline-playhead:focus-visible { outline-offset: -2px; }
@media (max-width: 700px) {
  .studio-editor .timeline-title { width: 100%; gap: 7px; }
  .studio-editor .timeline-title h3 { font-size: 14px; }
  .studio-editor .timeline-link-state { flex-basis: 100%; }
  .studio-editor .timeline-track:first-child { padding-top: 34px; }
  .studio-editor .timeline-panel.synced .timeline-track:first-child { padding-top: 0; }
  .studio-editor .timeline-panel:not(.synced) .track-label { width: 96px; gap: 4px; }
  .studio-editor .timeline-panel:not(.synced) .track-label .track-dot { display: none; }
  .studio-editor .timeline-panel:not(.synced) .independent-ruler .ruler-labels > span:not(:first-child):not(:nth-child(5)):not(:last-child) { visibility: hidden; }
}

@media (max-width: 700px) {
  .studio-editor .ruler-labels > span:nth-child(3), .studio-editor .ruler-labels > span:nth-child(5), .studio-editor .ruler-labels > span:nth-child(7) { transform: translateX(-50%); }
  .studio-editor .ruler-labels > span:nth-child(3)::after, .studio-editor .ruler-labels > span:nth-child(5)::after, .studio-editor .ruler-labels > span:nth-child(7)::after { left: 50%; }
}

.studio-editor .timeline-panel .clip-title { display: none; }
.timeline-chain-state { position: absolute; z-index: 2; top: 58px; width: 40px; height: 138px; color: #98a28f; pointer-events: none; }
.timeline-chain-state svg { display: block; width: 100%; height: 100%; overflow: visible; }
.timeline-chain-left { left: 148px; }
.timeline-chain-right { right: -40px; }
.studio-editor .timeline-panel.synced .timeline-content { padding-right: 40px; }
.timeline-panel.synced .timeline-chain-state { top: 24px; height: 56px; color: var(--lime); }
.timeline-panel.synced .timeline-chain-state path { clip-path: none; }
@media (max-width: 700px) {
  .timeline-panel:not(.synced) .timeline-chain-left { left: 68px; }
  .timeline-panel.synced .timeline-chain-left { left: 84px; }
}
