@charset "UTF-8";
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #172c44;
  background: #f5f7fa;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.6;
  --navy: #183750;
  --navy-hover: #254b69;
  --muted: #748193;
  --line: #e5eaf0;
  --white: #fff;
  --accent: #2b6c7a;
  --red: #a33f39;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8bb7c8;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #739eae;
  box-shadow: 0 0 0 3px #dcecf1;
  outline: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
small {
  font-size: 12px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
video {
  display: block;
  width: 100%;
  background: #101a27;
  border-radius: 10px;
  max-height: 520px;
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  border: none;
  border-radius: 10px;
  background: #e4eaf0;
  overflow: hidden;
  accent-color: #2b6c7a;
}
progress::-webkit-progress-bar {
  background: #e4eaf0;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #2b6c7a;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #2b6c7a;
  border-radius: 10px;
}
[hidden] {
  display: none !important;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.brand strong {
  font-weight: 650;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand-divider {
  padding: 0 12px;
  color: #c5ced8;
  font-weight: 300;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #8b97a6;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.text-link {
  font-size: 13px;
  text-decoration: none;
  color: #68798b;
}
.text-link:hover {
  color: var(--navy);
  text-decoration: underline;
}
.user-name {
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #586b7d;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 550;
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button svg {
  width: 17px;
  height: 17px;
}
.button-primary {
  background: var(--navy);
  color: #fff;
}
.button-primary:hover:not(:disabled) {
  background: var(--navy-hover);
}
.button-secondary {
  background: #fff;
  border-color: #d9e1e9;
  color: #30485e;
}
.button-secondary:hover:not(:disabled) {
  background: #f5f8fa;
  border-color: #aabdc9;
}
.button-quiet {
  background: transparent;
  color: #617285;
}
.button-quiet:hover:not(:disabled) {
  background: #edf2f6;
  color: var(--navy);
}
.button-icon {
  width: 38px;
  min-height: 38px;
  padding: 9px;
}
.button-large {
  min-height: 46px;
  padding: 12px 20px;
}
.text-button {
  border: none;
  background: none;
  padding: 0;
  color: #496a80;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  color: var(--navy);
}
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px;
}
.sidebar-heading h2 {
  font-size: 15px;
  margin-top: 4px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8b99a7;
  font-weight: 600;
  margin-bottom: 7px;
}
.count {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #8a98a8;
  margin-left: 5px;
  font-weight: 400;
  white-space: nowrap;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 50px;
}
.project-item {
  border: 1px solid transparent;
  background: none;
  text-align: left;
  padding: 13px 12px;
  border-radius: 10px;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  color: #6c7a8a;
}
.project-item:hover {
  background: #f6f8fa;
}
.project-item.is-selected {
  background: #edf3f7;
  border-color: #e4ebf1;
  color: #243f55;
}
.project-item strong {
  font-size: 13px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-item small {
  font-size: 10px;
  color: #8c99a7;
}
.project-item .project-list-format {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}
.project-item .project-list-state {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-list-state::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9aacbb;
}
.project-item.is-active .project-list-state::before {
  background: #39818c;
}
.project-list-empty {
  padding: 12px 6px;
  color: #9aa4b0;
  font-size: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #99a5b1;
}
.privacy-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fa8a1;
}
.main-content {
  padding: 38px 42px 60px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.heading-copy {
  min-width: 0;
}
.heading-copy h1 {
  overflow-wrap: anywhere;
}
.heading-copy .muted {
  margin-top: 8px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  background: #e9eef3;
  color: #6c7e90;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.is-active,
.status-pill.is-done {
  color: #367968;
  background: #e7f2ed;
}
.status-pill.is-error {
  color: var(--red);
  background: #f8eae7;
}
.step-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #dfe6ed;
  gap: 20px;
  margin-bottom: 28px;
}
.step-button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #a2adba;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 16px;
  min-width: 0;
  margin-bottom: -1px;
}
.step-button > span {
  font-size: 11px;
  border-radius: 50%;
  border: 1px solid #dce3e9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 29px;
  width: 29px;
  font-variant-numeric: tabular-nums;
}
.step-button strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.step-button small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  letter-spacing: 0.6px;
}
.step-button:hover {
  color: #57778e;
}
.step-button.is-current {
  border-bottom-color: var(--navy);
  color: var(--navy);
}
.step-button.is-current > span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.step-button.is-current small {
  color: #8b9ba9;
}
.step-content {
  min-width: 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.panel-heading .muted {
  margin-top: 6px;
}
.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.source-panel {
  min-height: 440px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 20px;
}
.field > span {
  font-size: 12px;
  font-weight: 550;
  color: #4d6175;
}
.field small {
  font-size: 10px;
  font-weight: 400;
  color: #95a1ae;
  margin-left: 4px;
}
.field input,
.field textarea,
.field select,
.stock-search input {
  border: 1px solid #dce3ea;
  background: #fff;
  color: #253e53;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  transition: border-color 0.15s;
  font-size: 13px;
  min-height: 42px;
}
.field input::placeholder,
.field textarea::placeholder,
.stock-search input::placeholder {
  color: #a2adba;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 110px;
}
.field select {
  padding-right: 28px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-help {
  color: #8d99a7;
  font-size: 11px;
  line-height: 1.8;
}
.format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.format-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dce4eb;
  border-radius: 9px;
  padding: 13px 9px;
  cursor: pointer;
  min-width: 0;
}
.format-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.format-option:has(input:checked) {
  border-color: #7597ac;
  background: #f2f7fa;
}
.format-option:has(input:focus-visible) {
  outline: 3px solid #8bb7c8;
  outline-offset: 3px;
}
.format-option strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.format-option small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #8a9aa9;
  margin: 2px 0 0;
}
.frame-icon {
  border: 1.5px solid #8099ac;
  display: block;
  border-radius: 3px;
  flex-shrink: 0;
}
.frame-landscape {
  width: 26px;
  height: 17px;
}
.frame-portrait {
  width: 17px;
  height: 26px;
  margin: 0 5px;
}
.preset-actions {
  display: flex;
  gap: 10px;
  color: #bbc5ce;
  margin-top: 3px;
  font-size: 11px;
}
.advanced-options {
  border-top: 1px solid #edf0f4;
  padding-top: 14px;
  margin: 3px 0 16px;
}
.advanced-options summary {
  font-size: 12px;
  color: #6c8194;
  cursor: pointer;
  padding: 2px 0 14px;
}
.advanced-options .field {
  margin-bottom: 14px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #617589;
  cursor: pointer;
}
.checkbox-field input {
  accent-color: var(--navy);
  height: 15px;
  width: 15px;
  margin: 3px 0 0;
  flex-shrink: 0;
}
.checkbox-field strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #4f6478;
}
.checkbox-field small {
  display: block;
  font-size: 11px;
  color: #91a0af;
  margin-top: 3px;
}
.advanced-options > .field-help {
  padding-left: 24px;
  margin-top: 7px;
}
.save-settings {
  width: 100%;
  min-height: 37px;
  font-size: 12px;
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c4d2de;
  border-radius: 12px;
  min-height: 220px;
  padding: 28px 16px;
  background: #fafcfd;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.15s,
    border-color 0.15s;
  gap: 7px;
}
.upload-zone:hover,
.upload-zone.is-dragging {
  background: #edf4f8;
  border-color: #688fa7;
}
.upload-zone.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}
.upload-zone strong {
  font-size: 13px;
  font-weight: 550;
  color: #476178;
}
.upload-zone > span:not(.upload-icon) {
  font-size: 11px;
  color: #94a4b3;
}
.upload-zone .upload-formats {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 6px;
  color: #b1bbc5;
}
.upload-icon {
  height: 44px;
  width: 44px;
  background: #eaf0f5;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #68859a;
  margin-bottom: 9px;
}
.upload-icon svg {
  width: 22px;
  height: 22px;
}
.upload-progress {
  margin-top: 20px;
}
.upload-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  font-size: 11px;
  color: #637d91;
}
.upload-progress strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-progress p {
  margin-top: 8px;
  font-size: 10px;
}
.media-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 2px;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #f0f3f6;
  padding: 12px 0;
  min-width: 0;
}
.media-item:last-child {
  border-bottom: 0;
}
.media-icon {
  width: 34px;
  height: 38px;
  border-radius: 7px;
  background: #f0f4f7;
  color: #8398a9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.media-icon svg {
  width: 18px;
  height: 18px;
}
.media-description {
  flex: 1;
  min-width: 0;
}
.media-description strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-description small {
  display: block;
  font-size: 10px;
  color: #96a4b1;
  margin-top: 3px;
}
.media-item .button {
  padding: 5px 8px;
  font-size: 11px;
  min-height: 32px;
}
.source-preview {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}
.preview-caption strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-caption .button {
  font-size: 11px;
  padding: 5px 8px;
  min-height: 30px;
}
.source-preview video {
  max-height: 300px;
}
.action-bar {
  margin-top: 24px;
  border: 1px solid #dce6ec;
  border-radius: 12px;
  background: #edf3f7;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.action-bar > div {
  min-width: 0;
}
.action-bar strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.action-bar p {
  font-size: 11px;
  color: #8394a3;
  line-height: 1.8;
  margin-top: 5px;
  max-width: 640px;
}
.action-bar .capability-note {
  color: #7c6b42;
}
.action-bar > .button {
  flex-shrink: 0;
}
.action-bar-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.task-status {
  background: #edf5f4;
  border: 1px solid #d9e9e5;
  border-radius: 12px;
  padding: 15px 20px;
  margin: 0 0 20px;
}
.task-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.task-status-line > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #3e726d;
}
.task-status-line strong {
  font-weight: 550;
}
.task-status-line .button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}
.task-status p {
  margin-top: 9px;
  font-size: 11px;
}
.loading-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #477e87;
  animation: pulse 1.8s ease-in-out infinite;
}
.notice {
  border: 1px solid;
  border-radius: 10px;
  padding: 13px 17px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.notice-error {
  color: #98534b;
  border-color: #efdbd5;
  background: #fcf4f1;
}
.plan-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-bottom: 22px;
}
.plan-summary h2 {
  font-size: 20px;
}
.plan-summary p:not(.eyebrow) {
  color: #8091a2;
  line-height: 1.9;
  font-size: 12px;
  margin-top: 10px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.plan-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 100px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.plan-metrics strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.plan-metrics > span {
  font-size: 11px;
  color: #92a0ae;
  margin-top: 2px;
}
.plan-warnings {
  grid-column: 1/-1;
}
.plan-warnings:empty {
  display: none;
}
.plan-warning {
  font-size: 11px;
  color: #94764e;
  background: #fbf7ef;
  border-radius: 7px;
  padding: 9px 12px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.timeline-panel .panel-heading {
  align-items: center;
}
.unsaved-badge {
  font-size: 10px;
  color: #977b4e;
  white-space: nowrap;
}
.segment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.segment-card {
  border: 1px solid #e0e7ed;
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}
.segment-card.is-previewing {
  border-color: #88a9b9;
  box-shadow: 0 0 0 2px #f1f6f8;
}
.segment-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 11px;
}
.segment-number {
  font-size: 10px;
  color: #8ca0b2;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
}
.segment-heading strong {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.segment-heading .button {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 10px;
}
.segment-reason {
  font-size: 11px;
  color: #8a9aa8;
  line-height: 1.85;
  margin-bottom: 13px;
  overflow-wrap: anywhere;
}
.segment-card .field {
  margin-bottom: 10px;
  gap: 5px;
}
.segment-card .field > span {
  font-size: 10px;
}
.segment-card .field input {
  padding: 6px 9px;
  min-height: 34px;
  font-size: 12px;
}
.segment-card .field-row {
  gap: 11px;
}
.segment-card .field-help {
  font-size: 10px;
}
.segment-card .field small {
  font-size: 9px;
}
.segment-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}
.segment-controls {
  display: flex;
  gap: 5px;
}
.segment-controls .button {
  min-width: 29px;
  min-height: 29px;
  padding: 4px 8px;
  font-size: 11px;
}
.segment-remove {
  font-size: 10px !important;
  color: #9a7c75 !important;
}
.segment-length {
  font-size: 10px;
  color: #8b9cab;
  font-variant-numeric: tabular-nums;
}
.crop-options {
  margin: 4px 0 12px;
}
.crop-options summary {
  font-size: 10px;
  color: #8296a6;
  cursor: pointer;
}
.crop-options .field-row {
  margin-top: 11px;
}
.crop-options input[type="range"] {
  padding: 0;
  box-shadow: none;
  accent-color: #638b9f;
  border: 0;
  background: none;
  min-height: 24px;
}
.crop-options .field > span {
  display: flex;
  justify-content: space-between;
}
.crop-value {
  color: #93a4b1;
}
.timeline-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.timeline-tools .button {
  font-size: 11px;
}
.editor-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 22px;
}
.preview-panel {
  padding: 20px;
}
.preview-panel .panel-heading h2 {
  font-size: 14px;
}
.preview-panel .panel-heading {
  margin-bottom: 16px;
  align-items: center;
}
.preview-panel .panel-heading .muted {
  font-size: 10px;
  margin: 0;
}
.preview-panel video {
  max-height: 390px;
}
.preview-panel > .field-help {
  margin-top: 13px;
  font-size: 10px;
}
.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: 16/10;
  background: #f1f4f7;
  border-radius: 8px;
  color: #9dadbb;
  gap: 9px;
}
.preview-empty svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.2;
}
.preview-empty p {
  font-size: 11px;
}
.cost-panel {
  padding: 20px;
}
.cost-panel > strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-top: 4px;
}
.cost-panel .muted {
  font-size: 10px;
  margin-top: 3px;
}
.cost-panel > .field-help {
  margin-top: 13px;
  font-size: 10px;
}
.stock-panel {
  margin-top: 24px;
}
.stock-panel .panel-heading {
  margin-bottom: 20px;
}
.stock-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
}
.stock-search input {
  flex: 1;
  min-width: 0;
}
.stock-search .button {
  flex-shrink: 0;
}
.search-term-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.search-term {
  border: 1px solid #e4eaf0;
  background: #f7f9fb;
  border-radius: 30px;
  color: #7f95a6;
  padding: 4px 11px;
  font-size: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-term:hover {
  background: #edf3f6;
}
.stock-panel > #stock-message {
  margin-top: 12px;
}
.stock-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.stock-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stock-card img {
  width: 100%;
  aspect-ratio: 16/10;
  display: block;
  object-fit: cover;
  background: #eef2f5;
}
.stock-card-content {
  padding: 12px;
}
.stock-card h3 {
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-card p {
  font-size: 10px;
  color: #93a1ae;
  margin-top: 4px;
}
.stock-card a {
  color: #7a90a2;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.stock-card .button {
  font-size: 10px;
  min-height: 32px;
  padding: 5px 9px;
  width: 100%;
  margin-top: 11px;
}
.outputs-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.output-card .panel-heading {
  align-items: center;
}
.output-card h2 {
  font-size: 17px;
}
.output-card .output-meta {
  font-size: 11px;
  color: #8a9ba9;
  margin-top: 5px;
}
.output-card video {
  max-height: 620px;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.output-card.is-portrait video {
  aspect-ratio: 9/16;
  max-width: 360px;
  max-height: 640px;
  margin: 0 auto;
  background: #101a27;
}
.output-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.output-actions .button {
  font-size: 12px;
}
.output-old-note {
  font-size: 10px;
  color: #97a5b0;
  margin-top: 16px;
}
.welcome {
  padding: 76px 30px;
  max-width: 900px;
  margin: 0 auto;
}
.welcome > .eyebrow {
  font-size: 11px;
  color: #7b919e;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.welcome h1 {
  font-size: 46px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -1.8px;
}
.welcome-description {
  max-width: 480px;
  font-size: 14px;
  color: #8a99a8;
  line-height: 2.05;
  margin-top: 23px;
}
.welcome > .button {
  margin-top: 32px;
}
.welcome-steps {
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  border-top: 1px solid #dfe6ed;
  padding-top: 28px;
}
.welcome-steps > div > span {
  color: #a8b7c4;
  font-size: 11px;
  letter-spacing: 1px;
}
.welcome-steps h3 {
  font-size: 13px;
  font-weight: 550;
  margin-top: 11px;
}
.welcome-steps p {
  font-size: 11px;
  line-height: 1.8;
  color: #94a3b1;
  margin-top: 6px;
}
.welcome-note {
  font-size: 11px;
  color: #a0adba;
  margin-top: 50px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 64px 24px;
  min-height: 340px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #eaf0f5;
  color: #8da4b5;
  margin-bottom: 19px;
}
.empty-symbol svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
}
.empty-state h2 {
  font-size: 18px;
  font-weight: 550;
}
.empty-state > p {
  color: #91a1af;
  font-size: 12px;
  max-width: 440px;
  margin: 12px 0 24px;
  line-height: 1.9;
}
.boot-screen {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8b9ba9;
  font-size: 13px;
}
.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 76px);
  padding: 48px 24px;
  gap: 24px;
}
.auth-card {
  width: 440px;
  max-width: 100%;
  min-width: 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 42px #19364d08;
}
.auth-card-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #e3ebf0;
  border-radius: 14px;
  background: #f4f8fa;
  color: var(--navy);
  margin-bottom: 26px;
}
.auth-card-mark svg {
  width: 26px;
  height: 26px;
}
.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.auth-description {
  color: #708294;
  font-size: 13px;
  margin: 14px 0 28px;
  line-height: 1.9;
}
.auth-form .field > span {
  font-size: 13px;
}
.auth-form .field input {
  font-size: 15px;
  min-height: 46px;
}
.auth-form .field .password-input {
  position: relative;
  display: block;
}
.auth-form .password-input input {
  padding-right: 64px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #627b90;
  padding: 9px 10px;
  font-size: 12px;
}
.password-toggle:hover {
  color: var(--navy);
}
.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  font-size: 14px;
}
.auth-form .form-error {
  margin: 8px 0 5px;
}
.auth-notice {
  border: 1px solid #dcebe4;
  background: #f2f8f5;
  color: #436b58;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 22px;
}
.auth-help {
  color: #7d8f9e;
  font-size: 11px;
  line-height: 1.9;
  padding-top: 23px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.auth-caption {
  color: #8294a4;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-align: center;
}
.auth-password-note {
  color: #74889a;
  font-size: 12px;
  line-height: 1.9;
  margin: 2px 0 14px;
}
.auth-retry {
  margin-top: 14px;
  font-size: 12px;
}
.noscript-notice {
  padding: 30px;
  text-align: center;
  color: #98534b;
}
.dialog {
  border: 1px solid var(--line);
  background: #fff;
  color: #253c50;
  border-radius: 18px;
  padding: 28px;
  max-width: calc(100vw - 32px);
  width: 460px;
  box-shadow: 0 24px 100px #102b4033;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop {
  background: #10273b66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 21px;
  font-weight: 550;
}
.dialog-heading > .button {
  margin-top: -5px;
  margin-right: -6px;
}
.dialog-heading .eyebrow {
  font-size: 9px;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-intro {
  font-size: 12px;
  color: #8b9aa8;
  line-height: 1.9;
  margin-top: -8px;
  margin-bottom: 24px;
}
.settings-dialog {
  width: 460px;
  max-height: 100dvh;
  height: 100dvh;
  max-width: 100%;
  margin: 0 0 0 auto;
  border-radius: 18px 0 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 32px;
  position: fixed;
}
.settings-provider {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 25px;
}
.settings-provider > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 6px;
}
.settings-provider .field-help {
  margin-bottom: 16px;
}
.settings-provider .field {
  margin-bottom: 12px;
}
.settings-provider .checkbox-field {
  font-size: 10px;
}
.settings-provider .checkbox-field input {
  height: 12px;
  width: 12px;
  margin-top: 2px;
}
.connection-status {
  font-size: 10px;
  color: #9ba8b4;
}
.connection-status.is-connected {
  color: #548371;
}
.form-error {
  font-size: 12px;
  color: #a45d50;
  background: #fcf4f1;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin-top: 15px;
}
.toast-region {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  border: 1px solid #d9e3eb;
  border-radius: 10px;
  box-shadow: 0 10px 40px #243a5026;
  background: #fff;
  color: #39586d;
  padding: 13px 20px;
  font-size: 12px;
  max-width: 500px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  pointer-events: auto;
}
.toast.is-error {
  border-color: #eccdc5;
  color: #9c5146;
}
.toast button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 0 0 12px;
  font-size: 16px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (min-width: 1600px) {
  .main-content {
    padding: 42px 56px 70px;
  }
  .source-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
  }
  .source-panel {
    min-height: 550px;
  }
  .upload-zone {
    min-height: 300px;
  }
  .sidebar {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .main-content {
    padding: 30px 26px 50px;
  }
  .panel {
    padding: 22px;
  }
  .source-grid {
    gap: 16px;
  }
  .format-option {
    gap: 7px;
    padding: 12px 5px;
  }
  .format-option small {
    font-size: 9px;
  }
  .format-option strong {
    font-size: 11px;
  }
  .brand-tag {
    display: none;
  }
  .edit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr);
    gap: 16px;
  }
  .action-bar {
    padding: 19px;
  }
  .action-bar-buttons {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 7px;
  }
  .action-bar-buttons .button {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 14px;
  }
  .stock-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome {
    padding: 60px 10px;
  }
  .welcome h1 {
    font-size: 40px;
  }
}
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 12px 18px;
  }
  .sidebar-heading {
    padding: 0 4px;
  }
  .sidebar-heading h2 {
    font-size: 13px;
  }
  .sidebar-heading .button {
    width: 32px;
    min-height: 32px;
    padding: 7px;
  }
  .sidebar-bottom {
    font-size: 9px;
    gap: 6px;
  }
  .project-item {
    padding: 11px 9px;
  }
  .project-item strong {
    font-size: 12px;
  }
  .project-item small {
    font-size: 9px;
  }
  .main-content {
    padding: 28px 22px 45px;
  }
  .source-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .source-panel {
    min-height: 0;
  }
  .upload-zone {
    min-height: 170px;
  }
  .media-list {
    margin-top: 12px;
  }
  .brief-panel .field textarea {
    min-height: 100px;
  }
  .format-option {
    padding: 14px 10px;
    gap: 12px;
  }
  .format-option strong {
    font-size: 12px;
  }
  .format-option small {
    font-size: 10px;
  }
  .edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .cost-panel > strong {
    font-size: 22px;
  }
  .preview-empty {
    aspect-ratio: 16/9;
  }
  .workspace-heading h1 {
    font-size: 25px;
  }
  .project-actions {
    padding-top: 15px;
    gap: 4px;
  }
  .project-actions > .button {
    padding: 5px 9px;
    font-size: 11px;
  }
  .step-nav {
    gap: 12px;
  }
  .step-button {
    gap: 8px;
  }
  .step-button > span {
    height: 25px;
    width: 25px;
    font-size: 10px;
  }
  .step-button strong {
    font-size: 12px;
  }
  .step-button small {
    font-size: 9px;
  }
  .action-bar {
    align-items: flex-start;
  }
  .action-bar > .button {
    font-size: 12px;
    padding: 11px 13px;
  }
  .action-bar strong {
    font-size: 12px;
  }
  .action-bar p {
    font-size: 10px;
  }
  .welcome-steps {
    gap: 16px;
  }
  .welcome h1 {
    font-size: 36px;
  }
  .welcome-description {
    font-size: 12px;
  }
  .stock-panel .panel-heading .muted {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand {
    gap: 9px;
    font-size: 14px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    border-radius: 9px;
  }
  .brand-mark svg {
    height: 20px;
    width: 20px;
  }
  .brand-divider {
    padding: 0 8px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .button {
    padding: 7px 9px;
    min-height: 36px;
    font-size: 12px;
  }
  .user-name {
    display: none;
  }
  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px 13px;
    gap: 11px;
  }
  .sidebar-heading {
    padding: 0;
    gap: 12px;
  }
  .sidebar-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar-heading .eyebrow {
    display: none;
  }
  .sidebar-heading h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #7f92a2;
  }
  .sidebar-heading .button {
    width: 27px;
    min-height: 27px;
    border-radius: 7px;
    padding: 5px;
  }
  .sidebar-heading .button svg {
    height: 15px;
    width: 15px;
  }
  .project-list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    min-height: 0;
    padding: 2px 1px 5px;
    scrollbar-width: thin;
    max-height: 80px;
  }
  .project-item {
    flex: 0 0 160px;
    min-width: 0;
    padding: 9px 10px;
    gap: 3px 10px;
    background: #fafbfd;
    border-color: #edf1f5;
    border-radius: 8px;
  }
  .project-item strong {
    font-size: 11px;
  }
  .project-item small {
    font-size: 9px;
  }
  .project-item .project-list-format {
    font-size: 8px;
  }
  .project-list-empty {
    padding: 2px 0;
    font-size: 11px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main-content {
    padding: 25px 18px 40px;
  }
  .workspace-heading {
    margin-bottom: 23px;
    gap: 12px;
  }
  .workspace-heading h1 {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .heading-copy .muted {
    font-size: 10px;
    margin-top: 7px;
  }
  .project-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 18px;
  }
  .project-actions > .button {
    font-size: 10px;
    padding: 3px 5px;
    min-height: 24px;
  }
  .status-pill {
    font-size: 9px;
    padding: 3px 7px;
  }
  .step-nav {
    margin-bottom: 20px;
    gap: 6px;
  }
  .step-button {
    padding-bottom: 13px;
    gap: 7px;
  }
  .step-button > span {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  .step-button strong {
    font-size: 11px;
    white-space: nowrap;
  }
  .step-button small {
    font-size: 8px;
    letter-spacing: 0.2px;
    margin-top: 2px;
  }
  .panel {
    padding: 20px;
    border-radius: 12px;
  }
  .panel h2 {
    font-size: 16px;
  }
  .panel-heading {
    margin-bottom: 19px;
  }
  .source-grid {
    gap: 16px;
  }
  .upload-zone {
    min-height: 170px;
    padding: 22px 12px;
  }
  .upload-zone strong {
    font-size: 12px;
  }
  .upload-zone > span:not(.upload-icon) {
    font-size: 10px;
  }
  .upload-icon {
    height: 37px;
    width: 37px;
    margin-bottom: 6px;
  }
  .upload-zone .upload-formats {
    font-size: 9px;
  }
  .field {
    margin-bottom: 19px;
  }
  .field input,
  .field textarea,
  .field select,
  .stock-search input {
    font-size: 16px;
    min-height: 44px;
    padding: 10px;
  }
  .field > span {
    font-size: 12px;
  }
  .field input::placeholder,
  .field textarea::placeholder,
  .stock-search input::placeholder {
    font-size: 12px;
  }
  .format-option strong {
    font-size: 12px;
  }
  .format-option small {
    font-size: 9px;
  }
  .format-option {
    gap: 10px;
    padding: 13px 7px;
  }
  .field-row {
    gap: 12px;
  }
  .advanced-options summary {
    font-size: 11px;
  }
  .checkbox-field strong {
    font-size: 11px;
  }
  .checkbox-field small {
    font-size: 10px;
  }
  .field-help {
    font-size: 10px;
  }
  .save-settings {
    min-height: 40px;
  }
  .action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 19px 20px;
    border-radius: 12px;
    margin-top: 19px;
  }
  .action-bar strong {
    font-size: 12px;
  }
  .action-bar p {
    font-size: 10px;
    line-height: 1.9;
  }
  .action-bar > .button {
    width: 100%;
    font-size: 13px;
    min-height: 44px;
  }
  .action-bar-buttons {
    flex-direction: row;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 9px;
  }
  .action-bar-buttons .button {
    font-size: 11px;
    padding: 10px 8px;
    min-height: 42px;
  }
  .action-bar-buttons .button svg {
    width: 14px;
    height: 14px;
  }
  .plan-summary {
    gap: 17px;
    margin-bottom: 16px;
  }
  .plan-summary h2 {
    font-size: 18px;
  }
  .plan-summary p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.9;
    margin-top: 8px;
  }
  .plan-metrics {
    min-width: 70px;
    padding-left: 16px;
    justify-content: flex-start;
    padding-top: 23px;
  }
  .plan-metrics strong {
    font-size: 20px;
  }
  .plan-metrics > span {
    font-size: 9px;
  }
  .plan-warning {
    font-size: 10px;
  }
  .edit-grid {
    gap: 16px;
  }
  .timeline-panel .panel-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .timeline-panel .panel-heading .muted {
    font-size: 10px;
  }
  .unsaved-badge {
    font-size: 9px;
  }
  .segment-card {
    padding: 13px;
  }
  .segment-heading {
    gap: 6px;
  }
  .segment-heading strong {
    font-size: 11px;
  }
  .segment-number {
    font-size: 9px;
    min-width: 18px;
  }
  .segment-reason {
    font-size: 10px;
  }
  .segment-card .field input {
    font-size: 16px;
    min-height: 40px;
  }
  .segment-card .field > span {
    font-size: 10px;
  }
  .segment-card .field-row {
    gap: 9px;
  }
  .segment-heading .button {
    min-height: 30px;
    font-size: 10px;
    padding: 4px 7px;
  }
  .segment-bottom {
    gap: 7px;
    margin-top: 4px;
  }
  .segment-controls {
    gap: 3px;
  }
  .segment-controls .button {
    min-height: 32px;
    min-width: 31px;
  }
  .segment-length {
    font-size: 9px;
  }
  .segment-remove {
    font-size: 9px !important;
  }
  .timeline-tools {
    gap: 7px;
    margin-top: 18px;
    padding-top: 15px;
  }
  .timeline-tools .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .timeline-tools .button svg {
    width: 14px;
    height: 14px;
  }
  .editor-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-panel {
    padding: 18px;
  }
  .preview-empty {
    aspect-ratio: 16/8;
    max-height: 180px;
  }
  .preview-panel video {
    max-height: 360px;
  }
  .cost-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    padding: 18px;
  }
  .cost-panel .eyebrow {
    grid-column: 1;
    margin: 0;
  }
  .cost-panel > strong {
    grid-row: 1/3;
    grid-column: 2;
    align-self: center;
    font-size: 23px;
    margin: 0;
  }
  .cost-panel .muted {
    grid-column: 1;
  }
  .cost-panel > .field-help {
    grid-column: 1/-1;
    margin-top: 8px;
    font-size: 9px;
  }
  .stock-panel {
    margin-top: 20px;
  }
  .stock-search {
    gap: 8px;
  }
  .stock-search .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .stock-panel .panel-heading .muted {
    font-size: 10px;
  }
  .stock-results {
    gap: 12px;
    margin-top: 15px;
  }
  .stock-card-content {
    padding: 10px;
  }
  .stock-card h3 {
    font-size: 10px;
  }
  .stock-card p {
    font-size: 9px;
  }
  .stock-card .button {
    font-size: 9px;
    min-height: 32px;
    padding: 5px 6px;
  }
  .search-term {
    font-size: 9px;
    padding: 5px 9px;
  }
  .output-card .panel-heading {
    align-items: flex-start;
  }
  .output-card .output-meta {
    font-size: 10px;
  }
  .output-card h2 {
    font-size: 15px;
  }
  .output-actions .button {
    font-size: 11px;
    min-height: 40px;
  }
  .output-actions {
    gap: 8px;
    margin-top: 17px;
  }
  .output-card video {
    max-height: 500px;
  }
  .output-card.is-portrait video {
    max-height: 560px;
  }
  .output-old-note {
    font-size: 9px;
  }
  .task-status {
    padding: 13px 15px;
  }
  .task-status-line > div {
    font-size: 11px;
    gap: 8px;
  }
  .task-status-line .button {
    font-size: 10px;
    padding: 4px 5px;
  }
  .task-status p {
    font-size: 10px;
  }
  .notice {
    font-size: 11px;
    padding: 12px 14px;
  }
  .welcome {
    padding: 35px 3px 25px;
  }
  .welcome > .eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .welcome h1 {
    font-size: 35px;
    line-height: 1.5;
    letter-spacing: -1px;
  }
  .welcome-description {
    font-size: 12px;
    margin-top: 20px;
    max-width: 340px;
  }
  .welcome > .button {
    margin-top: 25px;
    font-size: 12px;
    padding: 12px 17px;
  }
  .welcome-steps {
    margin-top: 42px;
    gap: 16px;
    padding-top: 22px;
  }
  .welcome-steps > div > span {
    font-size: 10px;
  }
  .welcome-steps h3 {
    font-size: 11px;
    margin-top: 9px;
    white-space: nowrap;
  }
  .welcome-steps p {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 6px;
  }
  .welcome-note {
    font-size: 10px;
    margin-top: 32px;
  }
  .empty-state {
    padding: 44px 20px;
    min-height: 300px;
  }
  .empty-state h2 {
    font-size: 17px;
  }
  .empty-state > p {
    font-size: 11px;
  }
  .empty-state .button {
    font-size: 12px;
  }
  .dialog {
    padding: 23px;
    border-radius: 14px;
    max-width: calc(100vw - 24px);
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .dialog-footer {
    gap: 8px;
  }
  .dialog-footer .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .settings-dialog {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    padding: 27px 24px;
  }
  .dialog-intro {
    font-size: 11px;
  }
  .settings-provider .field-help {
    font-size: 10px;
  }
  .toast-region {
    bottom: 18px;
    max-width: calc(100vw - 24px);
    width: max-content;
  }
  .toast {
    font-size: 11px;
    padding: 12px 16px;
    max-width: 100%;
  }
  .auth-screen {
    min-height: calc(100dvh - 64px);
    padding: 28px 18px;
    gap: 20px;
  }
  .auth-card {
    padding: 29px 24px;
    border-radius: 15px;
  }
  .auth-card h1 {
    font-size: 24px;
  }
  .auth-description {
    font-size: 12px;
  }
  .auth-form .field input {
    font-size: 16px;
    min-height: 46px;
  }
  .auth-form .password-input input {
    padding-right: 58px;
  }
}
@media (max-width: 370px) {
  .site-header {
    padding: 0 13px;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .brand-divider {
    padding: 0 6px;
  }
  .main-content {
    padding: 22px 13px 35px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .panel {
    padding: 17px;
  }
  .workspace-heading h1 {
    font-size: 21px;
  }
  .step-button {
    gap: 5px;
  }
  .step-button strong {
    font-size: 10px;
  }
  .step-button > span {
    height: 20px;
    width: 20px;
    font-size: 8px;
  }
  .step-button small {
    font-size: 8px;
  }
  .format-option {
    gap: 7px;
  }
  .format-option strong {
    font-size: 11px;
  }
  .format-option small {
    font-size: 8px;
  }
  .frame-landscape {
    width: 22px;
    height: 14px;
  }
  .frame-portrait {
    width: 14px;
    height: 22px;
    margin: 0 4px;
  }
  .plan-metrics {
    padding-left: 11px;
    min-width: 58px;
  }
  .plan-metrics strong {
    font-size: 18px;
  }
  .welcome h1 {
    font-size: 31px;
  }
  .welcome-steps {
    gap: 10px;
  }
  .welcome-steps p {
    font-size: 8px;
  }
  .welcome-steps h3 {
    font-size: 10px;
  }
  .timeline-tools .button {
    padding: 8px 7px;
  }
  .stock-results {
    gap: 9px;
  }
  .stock-card-content {
    padding: 9px;
  }
  .action-bar-buttons .button {
    font-size: 10px;
  }
  .segment-heading .button {
    font-size: 9px;
  }
  .segment-controls .button {
    padding: 4px 6px;
  }
  .segment-length {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.create-dialog {
  width: 580px;
  padding: 0;
  overflow: hidden;
}
.create-dialog > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
}
.create-dialog .dialog-heading {
  margin: 0;
  padding: 25px 28px 20px;
  flex-shrink: 0;
}
.create-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
#create-fields {
  padding: 0 28px 22px;
}
.create-dialog .dialog-footer {
  margin: 0;
  padding: 17px 28px;
  flex-shrink: 0;
  background: #fff;
}
#create-error {
  margin: 0 28px 12px;
  max-height: 100px;
  overflow-y: auto;
  flex-shrink: 0;
}
.create-dialog .batch-upload-status {
  margin: 14px 28px;
  flex-shrink: 0;
}
.create-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-radius: 9px;
  background: #f0f4f7;
  padding: 4px;
  margin-bottom: 21px;
}
.create-mode button {
  border: 0;
  background: transparent;
  color: #7d90a1;
  font-size: 12px;
  padding: 9px 6px;
  border-radius: 6px;
}
.create-mode button.is-selected {
  background: #fff;
  color: #294d65;
  box-shadow: 0 1px 4px #18375012;
}
.batch-file-picker {
  border: 1px dashed #b8ccda;
  border-radius: 11px;
  background: #f6fafc;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 22px 15px;
  cursor: pointer;
  text-align: center;
}
.batch-file-picker svg {
  width: 23px;
  height: 23px;
  color: #7695aa;
  margin-bottom: 5px;
}
.batch-file-picker strong {
  font-size: 13px;
  font-weight: 550;
}
.batch-file-picker span {
  font-size: 10px;
  color: #8da0b0;
}
.batch-file-list {
  margin: 11px 0 20px;
  max-height: 180px;
  overflow-y: auto;
}
.batch-file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-bottom: 1px solid #eef2f6;
  font-size: 11px;
}
.batch-file-row > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.batch-file-row small {
  color: #94a3b1;
  font-size: 10px;
}
.batch-file-row button {
  background: none;
  border: 0;
  color: #96a4af;
  padding: 3px 6px;
}
.batch-budget-note {
  margin: 16px 0 7px;
  color: #6b8396;
}
.batch-upload-status {
  padding: 18px;
  background: #edf5f4;
  border-radius: 10px;
  margin-top: 17px;
}
.batch-upload-status > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 11px;
  color: #406b6b;
}
.batch-upload-status strong {
  font-weight: 550;
}
.batch-upload-status .field-help {
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.project-back-batch {
  margin-bottom: 20px;
  display: block;
  font-size: 11px;
  text-decoration: none;
}
.batch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  padding: 25px 28px;
}
.batch-summary > div {
  border-right: 1px solid var(--line);
}
.batch-summary > div:last-child {
  border: 0;
}
.batch-summary span {
  font-size: 11px;
  color: #91a0ae;
  display: block;
}
.batch-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.batch-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 23px 0 20px;
}
.batch-toolbar > .muted {
  max-width: 440px;
  font-size: 11px;
  padding-top: 7px;
}
.batch-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.batch-toolbar .button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 37px;
}
.batch-items {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.batch-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 21px 24px;
}
.batch-item-number {
  display: grid;
  place-items: center;
  background: #eff4f7;
  color: #86a0b3;
  width: 38px;
  height: 43px;
  border-radius: 9px;
  font-size: 12px;
}
.batch-item-body {
  min-width: 0;
}
.batch-item-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.batch-item-heading h2 {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.batch-item-heading .status-pill {
  flex-shrink: 0;
  font-size: 9px;
}
.batch-item-body > .muted {
  font-size: 11px;
  margin-top: 6px;
}
.batch-item-body progress {
  margin-top: 10px;
  max-width: 550px;
  height: 4px;
}
.batch-item-error {
  margin-top: 7px;
  font-size: 11px;
  color: #a16a5e;
  overflow-wrap: anywhere;
}
.batch-item-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.batch-item-actions .button {
  font-size: 11px;
  min-height: 35px;
  padding: 7px 11px;
}
.batch-footnote {
  margin-top: 24px;
  font-size: 11px;
  color: #97a5b2;
  line-height: 1.9;
}
@media (max-width: 1100px) {
  .batch-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  .batch-toolbar > div {
    justify-content: flex-start;
  }
  .batch-item {
    gap: 12px;
    padding: 18px;
  }
  .batch-item-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .batch-item-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
@media (max-width: 700px) {
  .create-dialog {
    width: calc(100% - 24px);
  }
  .create-dialog .dialog-heading {
    padding: 22px 22px 17px;
  }
  #create-fields {
    padding: 0 22px 18px;
  }
  .create-dialog .dialog-footer {
    padding: 15px 22px;
  }
  #create-error {
    margin-left: 22px;
    margin-right: 22px;
  }
  .create-dialog .batch-upload-status {
    margin: 12px 22px;
  }
  .create-mode button {
    font-size: 11px;
    padding: 10px 5px;
  }
  .batch-file-picker {
    padding: 20px 12px;
  }
  .batch-file-picker strong {
    font-size: 12px;
  }
  .batch-file-list {
    max-height: 150px;
  }
  .batch-file-row {
    font-size: 10px;
    gap: 7px;
  }
  .batch-file-row small {
    font-size: 9px;
  }
  .batch-file-row button {
    min-width: 28px;
    min-height: 28px;
  }
  #batch-options .checkbox-field strong {
    font-size: 11px;
  }
  #batch-options .checkbox-field small {
    font-size: 10px;
  }
  .batch-upload-status {
    padding: 14px;
  }
  .batch-upload-status > div {
    font-size: 11px;
  }
  .batch-summary {
    gap: 12px;
    padding: 20px 17px;
  }
  .batch-summary span {
    font-size: 10px;
  }
  .batch-summary strong {
    font-size: 23px;
    margin-top: 6px;
  }
  #batch-workspace .workspace-heading {
    align-items: flex-start;
  }
  #batch-new {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 34px;
  }
  #batch-new svg {
    width: 13px;
    height: 13px;
  }
  .batch-toolbar {
    gap: 12px;
    margin: 16px 0;
  }
  .batch-toolbar > .muted {
    font-size: 10px;
    padding: 0;
  }
  .batch-toolbar > div {
    gap: 7px;
    width: 100%;
  }
  .batch-toolbar .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .batch-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 17px;
  }
  .batch-item-number {
    width: 30px;
    height: 37px;
    border-radius: 7px;
    font-size: 10px;
    align-self: start;
  }
  .batch-item-heading {
    gap: 6px;
  }
  .batch-item-heading h2 {
    font-size: 12px;
  }
  .batch-item-body > .muted {
    font-size: 10px;
  }
  .batch-item-actions {
    flex-direction: row;
    grid-column: 2;
    flex-wrap: wrap;
  }
  .batch-item-actions .button {
    font-size: 10px;
    min-height: 33px;
    padding: 7px 10px;
  }
  .batch-item-error {
    font-size: 10px;
  }
  .batch-footnote {
    font-size: 10px;
    margin-top: 18px;
  }
  .project-back-batch {
    font-size: 10px;
    margin-bottom: 17px;
  }
  #welcome-single {
    display: block;
    margin-top: 10px;
    padding-left: 0;
    font-size: 11px;
  }
}
